/* ------------------------------------------------------------------
   Physare style.css
   Black / acid yellow / white. Helvetica Neue. Hairlines. No cards.
   ------------------------------------------------------------------ */

@font-face {
  font-family: "Helvetica Neue";
  src: url("/fonts/HelveticaNeue-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue";
  src: url("/fonts/HelveticaNeue-Roman.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue";
  src: url("/fonts/HelveticaNeue-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --fg: #fff;
  --fg-2: rgba(255, 255, 255, 0.62);
  --fg-3: rgba(255, 255, 255, 0.38);
  --rule: rgba(255, 255, 255, 0.16);
  --acid: #f0f870;
  --acid-dim: rgba(240, 248, 112, 0.55);

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --label-col: 180px;
  --nav-h: 64px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

::selection { background: var(--acid); color: #000; }

a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 300; }
em, cite { font-style: normal; }
ol, ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- type scale ---------- */

.display {
  font-weight: 300;
  font-size: clamp(2.6rem, 7.2vw, 6.75rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.display span { display: block; }
.display-small {
  font-size: clamp(2.2rem, 5.2vw, 4.75rem);
  letter-spacing: -0.025em;
}

.statement {
  font-weight: 300;
  font-size: clamp(1.5rem, 2.6vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  max-width: 26ch;
  text-wrap: balance;
}
.statement em { color: var(--acid); }

.lede {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.45;
  color: var(--fg-2);
  max-width: 44ch;
}

.eyebrow,
.section-label,
.row-index,
.step-meta,
.hero-caption,
.footer-meta,
.button,
.empty-label {
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
}

.prose p {
  color: var(--fg-2);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 44ch;
}
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px 48px;
}

.footnote {
  color: var(--fg-3);
  font-size: 0.8rem;
  line-height: 1.5;
  max-width: 60ch;
}
.footnote em { color: var(--fg-2); }

/* ---------- links & buttons ---------- */

.arrow { display: inline-block; transition: transform 0.25s var(--ease); }

.textlink {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  font-size: 0.95rem;
  color: var(--fg);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.textlink:hover { border-color: var(--acid); }
.textlink:hover .arrow { transform: translateX(3px); }

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.95em 1.4em;
  border: 1px solid var(--acid);
  color: var(--acid);
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.button:hover { background: var(--acid); color: #000; }
.button:hover .arrow { transform: translateX(3px); }
.button-small { padding: 0.7em 1em; }
.button-large { padding: 1.15em 1.8em; font-size: 0.8rem; }

:focus-visible {
  outline: 1px solid var(--acid);
  outline-offset: 3px;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--gutter);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav > .button { justify-self: end; }

.wordmark {
  font-weight: 300;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: clamp(16px, 2.4vw, 36px);
  font-size: 0.88rem;
  color: var(--fg-2);
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover { color: var(--fg); }
.nav-links a[aria-current="true"] { color: var(--fg); }
.nav-links a[aria-current="true"]::after { transform: scaleX(1); }

@media (max-width: 760px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: flex-end;
  padding: clamp(96px, 14vh, 160px) var(--gutter) clamp(56px, 8vh, 96px);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 900px;
  display: grid;
  gap: 28px;
}
.hero-copy .eyebrow { color: var(--fg-2); }
.hero-copy .lede { margin-top: 4px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  margin-top: 8px;
}

.hero-caption {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(56px, 8vh, 96px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-3);
  z-index: 1;
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--acid);
}
@media (max-width: 760px) {
  .hero-caption { display: none; }
  .hero-canvas { opacity: 0.7; }
}

/* ---------- sections ---------- */

.section {
  display: grid;
  grid-template-columns: var(--label-col) minmax(0, 1fr);
  gap: 32px clamp(24px, 4vw, 72px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 11vh, 144px) var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.section:last-of-type { border-bottom: 0; }

.section-label {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  align-self: start;
  display: flex;
  gap: 14px;
  color: var(--fg-2);
}
.section-label .index { color: var(--acid); }

.section-body {
  display: grid;
  gap: clamp(36px, 5vh, 64px);
  align-content: start;
}

@media (max-width: 760px) {
  .section {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .section-label { position: static; }
}

/* ---------- rows (what I do) ---------- */

.rows {
  border-top: 1px solid var(--rule);
  max-width: 900px;
}
.row {
  display: grid;
  grid-template-columns: 48px minmax(0, 260px) minmax(0, 1fr);
  gap: 8px 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.row-index { color: var(--acid); padding-top: 0.45em; }
.row-title {
  font-weight: 300;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.row-text {
  color: var(--fg-2);
  line-height: 1.6;
  max-width: 48ch;
}
@media (max-width: 760px) {
  .row { grid-template-columns: 36px 1fr; }
  .row-text { grid-column: 2; }
}

.pull {
  font-weight: 300;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 34ch;
  padding-left: 20px;
  border-left: 1px solid var(--acid);
}

/* ---------- stepper (process) ---------- */

.stepper {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px clamp(32px, 5vw, 96px);
  max-width: 1000px;
  border-top: 1px solid var(--rule);
  padding-top: 8px;
}

.step {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 16px;
  align-items: baseline;
  width: 100%;
  text-align: left;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--fg-2);
  transition: color 0.2s;
}
.step:hover { color: var(--fg); }
.step[aria-selected="true"] { color: var(--fg); }
.step-num {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--fg-3);
  transition: color 0.2s;
}
.step[aria-selected="true"] .step-num { color: var(--acid); }
.step-name {
  font-weight: 300;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.step-meta { color: var(--fg-3); }

.step-detail {
  display: grid;
  gap: 18px;
  align-content: start;
  padding-top: 20px;
  min-height: 200px;
}
.step-detail .step-meta { color: var(--acid); }
.step-detail h3 {
  font-weight: 300;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.step-detail p {
  color: var(--fg-2);
  line-height: 1.6;
  max-width: 44ch;
}
.step-detail.is-changing { opacity: 0; }
.step-detail { transition: opacity 0.18s; }

@media (max-width: 760px) {
  .stepper { grid-template-columns: 1fr; }
  .step-detail { min-height: 0; }
}

/* ---------- grainpath modules ---------- */

.modules-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  max-width: 1000px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  color: var(--fg-2);
}
.modules-count { color: var(--fg-3); }

.modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 96px);
  max-width: 1000px;
  margin-top: -1px;
}
.module {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 6px 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.module-index {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--acid);
  padding-top: 0.4em;
}
.module-name {
  font-weight: 300;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.module-text {
  grid-column: 2;
  color: var(--fg-2);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 40ch;
}
@media (max-width: 760px) {
  .modules { grid-template-columns: 1fr; }
}

/* ---------- videos (shared) ---------- */

.videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1000px;
}
.videos[hidden] { display: none; }
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
  border: 1px solid var(--rule);
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- portfolio ---------- */

.portfolio { max-width: 1000px; }

.portfolio-empty {
  display: grid;
  gap: 16px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.empty-label { color: var(--acid); }
.portfolio-empty p {
  color: var(--fg-2);
  line-height: 1.6;
  max-width: 48ch;
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 24px clamp(32px, 5vw, 96px);
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.project + .project { border-top: 0; }

.project-meta {
  display: grid;
  gap: 8px;
  align-content: start;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.3;
}
.project-year { color: var(--acid); }
.project-client { color: var(--fg); }
.project-type { color: var(--fg-3); }

.project-body {
  display: grid;
  gap: 18px;
  align-content: start;
  justify-items: start;
}
.project-title {
  font-weight: 300;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
  max-width: 24ch;
}
.project-text {
  color: var(--fg-2);
  line-height: 1.6;
  max-width: 52ch;
}
.project-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.project-modules li + li::before {
  content: "·";
  margin: 0 10px;
  color: var(--fg-3);
}

.project .videos {
  grid-column: 1 / -1;
  margin-top: 8px;
}

@media (max-width: 760px) {
  .project { grid-template-columns: 1fr; gap: 16px; }
  .project-meta { grid-auto-flow: column; justify-content: start; gap: 16px; }
}

/* ---------- book ---------- */

.section-book .section-body { gap: 28px; }
.section-book .button-large { justify-self: start; margin-top: 12px; }

/* ---------- footer ---------- */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--gutter) 48px;
  border-top: 1px solid var(--rule);
}
.footer-meta { color: var(--fg-3); }
