/* ── GSX — Taste × Grit ─────────────────────────────────────
   Dark industrial-brutalist system. Sharp corners only.       */

:root {
  --bg: #0e0f11;
  --bg-raise: #141619;
  --line: #26292e;
  --text: #f2f2f0;
  --muted: #9aa0a8;
  --accent: #ff5c00;          /* safety orange */
  --accent-ink: #0e0f11;
  --pad: clamp(20px, 4vw, 64px);
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* faint industrial grid */
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: center top;
}

.mono { font-family: var(--mono); }
.accent { color: var(--accent); }

::selection { background: var(--accent); color: var(--accent-ink); }

a { color: inherit; text-decoration: none; }

/* ── NAV ──────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 14px var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(14, 15, 17, 0.88);
  backdrop-filter: blur(8px);
}
.nav__brand {
  font-family: var(--mono);
  font-weight: 700; font-size: 18px; letter-spacing: 0.08em;
}
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
  padding: 8px 14px;
  border: 1px solid transparent;
  transition: border-color .15s, color .15s;
}
.nav__links a:hover { border-color: var(--accent); color: var(--accent); }
.nav__meta {
  display: flex; gap: 20px;
  font-size: 11px; letter-spacing: 0.08em; color: var(--muted);
}
@media (max-width: 720px) { .nav__meta span:first-child { display: none; } }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 61px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px var(--pad);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.hero__meta {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 12px; letter-spacing: 0.14em; color: var(--muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  margin-bottom: clamp(24px, 5vh, 56px);
}
.hero__title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(64px, 14vw, 200px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  display: flex; flex-direction: column;
}
.hero__x {
  color: var(--accent);
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.4;
}
.hero__outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--text);
  transition: color .25s ease, -webkit-text-stroke-color .25s ease;
}
.hero__title:hover .hero__outline {
  color: var(--accent);
  -webkit-text-stroke: 2px var(--accent);
}
.hero__foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; flex-wrap: wrap;
  margin-top: clamp(32px, 6vh, 72px);
}
.hero__statement {
  max-width: 460px;
  color: var(--muted);
  font-size: 17px;
}
.hero__cta { display: flex; gap: 12px; }
.hero__scroll {
  position: absolute; bottom: 18px; right: var(--pad);
  font-size: 11px; letter-spacing: 0.2em; color: var(--muted);
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  font-family: var(--mono);
  font-size: 13px; font-weight: 500; letter-spacing: 0.12em;
  padding: 14px 26px;
  border: 1px solid var(--text);
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent);
  transform: translateX(-101%);
  transition: transform .22s cubic-bezier(.65, 0, .35, 1);
  z-index: -1;
}
.btn:hover { color: var(--accent-ink); border-color: var(--accent); }
.btn:hover::before { transform: translateX(0); }
.btn--solid { background: var(--text); color: var(--bg); }

/* ── MARQUEE ──────────────────────────────────────────────── */
.marquee {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--accent);
  color: var(--accent-ink);
}
.marquee__track {
  display: flex; white-space: nowrap;
  font-size: 13px; font-weight: 700; letter-spacing: 0.18em;
  padding: 10px 0;
  animation: marquee 22s linear infinite;
}
.marquee__track span { padding-right: 12px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── SECTIONS ─────────────────────────────────────────────── */
.section { padding: clamp(64px, 10vh, 120px) var(--pad); border-bottom: 1px solid var(--line); }
.section__head { margin-bottom: clamp(32px, 6vh, 64px); }
.section__index {
  color: var(--accent); font-size: 13px; letter-spacing: 0.2em;
  display: block; margin-bottom: 8px;
}
.section__title {
  font-family: var(--mono);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700; letter-spacing: -0.01em; line-height: 1;
  text-transform: uppercase;
}
.section__sub { color: var(--muted); margin-top: 10px; font-size: 15px; }
.inline-link { border-bottom: 1px solid var(--accent); }
.inline-link:hover { color: var(--accent); }

/* ── DUALITY ──────────────────────────────────────────────── */
.duality {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}
@media (max-width: 860px) { .duality { grid-template-columns: 1fr; } }
.pillar {
  padding: clamp(28px, 4vw, 48px);
  background: var(--bg-raise);
  transition: background .2s;
}
.pillar:first-child { border-right: 1px solid var(--line); }
@media (max-width: 860px) {
  .pillar:first-child { border-right: none; border-bottom: 1px solid var(--line); }
}
.pillar:hover { background: #17191d; }
.pillar__head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; letter-spacing: 0.16em; color: var(--muted);
  margin-bottom: 28px;
}
.pillar__no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  color: var(--text); font-weight: 700; font-size: 15px;
}
.pillar--grit .pillar__no { border-color: var(--accent); color: var(--accent); }
.pillar__title {
  font-family: var(--mono);
  font-size: clamp(28px, 3.6vw, 44px); font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}
.pillar__body { color: var(--muted); max-width: 420px; margin-bottom: 28px; }
.pillar__list { list-style: none; font-size: 13px; letter-spacing: 0.02em; }
.pillar__list li {
  padding: 12px 0 12px 26px;
  border-top: 1px solid var(--line);
  position: relative;
}
.pillar__list li::before {
  content: "+";
  position: absolute; left: 0;
  color: var(--accent); font-weight: 700;
}

/* ── PROJECT GRID ─────────────────────────────────────────── */
.grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-raise);
  padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
  transition: background .2s;
}
.card::after {                 /* accent corner tick */
  content: "";
  position: absolute; top: 0; right: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .25s cubic-bezier(.65, 0, .35, 1);
}
.card:hover { background: #17191d; }
.card:hover::after { width: 100%; }
.card__top {
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.18em; color: var(--muted);
}
.card__title {
  font-family: var(--mono);
  font-size: clamp(20px, 2.4vw, 28px); font-weight: 700;
  letter-spacing: 0.01em;
}
.card:hover .card__title { color: var(--accent); }
.card__desc { color: var(--muted); font-size: 14.5px; flex-grow: 1; }
.card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.card__tags span {
  font-size: 10.5px; letter-spacing: 0.1em;
  padding: 5px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.card__links { display: flex; gap: 20px; font-size: 12px; letter-spacing: 0.12em; }
.card__links a {
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: color .15s, border-color .15s;
}
.card__links a:hover { color: var(--accent); border-color: var(--accent); }

/* ── CONTACT ──────────────────────────────────────────────── */
.contact { padding: clamp(64px, 10vh, 120px) var(--pad); border-bottom: 1px solid var(--line); }
.contact__cta {
  display: block;
  border: 1px solid var(--text);
  padding: clamp(32px, 5vw, 64px);
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: border-color .2s;
}
.contact__cta::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform .3s cubic-bezier(.65, 0, .35, 1);
  z-index: -1;
}
.contact__cta:hover::before { transform: translateY(0); }
.contact__cta:hover { border-color: var(--accent); color: var(--accent-ink); }
.contact__label {
  display: block;
  font-size: 12px; letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 16px;
  transition: color .2s;
}
.contact__cta:hover .contact__label { color: var(--accent-ink); }
.contact__mail {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(20px, 4.6vw, 56px);
  letter-spacing: -0.01em;
  word-break: break-all;
}
.contact__arrow {
  position: absolute; right: clamp(24px, 4vw, 56px); bottom: clamp(20px, 3vw, 48px);
  font-size: clamp(28px, 4vw, 48px);
  transition: transform .25s;
}
.contact__cta:hover .contact__arrow { transform: translateX(10px); }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  padding: 22px var(--pad);
  font-size: 11px; letter-spacing: 0.12em; color: var(--muted);
}
.footer__links { display: flex; gap: 24px; }
.footer__links a:hover { color: var(--accent); }

/* ── REVEAL ANIMATION ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}
