/* ==========================================================================
   CALLUM JANES — callumjanes.com
   Design language: "Broadcast Noir" — a black studio lit by signal green.
   Display: Archivo (variable width) · Accent: Instrument Serif italic
   Labels: JetBrains Mono · Pure static, no frameworks.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wdth,wght@0,62..125,100..900;1,62..125,100..900&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:ital,wght@0,400;0,500;1,400&display=swap');

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Core palette — black room, green signal */
  --bg:           #050805;
  --bg-2:         #080C08;
  --surface:      #0B110C;
  --surface-2:    #0F160F;
  --line:         rgba(140, 245, 178, 0.13);
  --line-strong:  rgba(140, 245, 178, 0.32);

  --green:        #3BF583;   /* signal green — the one accent */
  --green-bright: #66FFA8;
  --green-dim:    #1B7A48;
  --green-deep:   #0C2417;
  --mint:         #A9E9C4;   /* soft green for quiet accents */

  --text:         #EBF5ED;
  --text-2:       rgba(235, 245, 237, 0.64);
  --text-3:       rgba(235, 245, 237, 0.38);

  /* Semantic */
  --text-primary:   var(--text);
  --text-secondary: var(--text-2);
  --text-muted:     var(--text-3);
  --border:         var(--line);
  --border-strong:  var(--line-strong);

  /* Type */
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body:    'Archivo', system-ui, sans-serif;
  --font-accent:  'Instrument Serif', Georgia, serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Space */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  7.5rem;
  --space-2xl: 11rem;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-inout:    cubic-bezier(0.87, 0, 0.13, 1);

  /* Layout */
  --max-width: 1320px;
  --content-width: 860px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* --------------------------------------------------------------------------
   Reset + base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem; /* 16px floor — iOS zoom prevention */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Faint phosphor grid across the whole room */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(140, 245, 178, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.35));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.35));
}

main { position: relative; z-index: 1; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
a, button, input, textarea, select { touch-action: manipulation; }

::selection { background: var(--green); color: #04130A; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-sm);
  z-index: 200;
  background: var(--green);
  color: #04130A;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.75rem 1.25rem;
  transition: top 0.2s var(--ease-out-expo);
}
.skip-link:focus { top: var(--space-sm); }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--content-width); }

.section { padding-block: var(--space-xl); position: relative; }
.section--tight { padding-block: var(--space-lg); }
.section--dark { background: var(--bg-2); border-block: 1px solid var(--line); }

hr.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: var(--space-lg);
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.display-xl, .display-lg, .display-md, .display-sm {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 116;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 0.94;
  text-wrap: balance;
}

.display-xl { font-size: clamp(2rem, 8.8vw, 9rem); }
.display-lg { font-size: clamp(2.4rem, 6vw, 5.4rem); }
.display-md { font-size: clamp(1.7rem, 3.4vw, 3rem); line-height: 1.02; }
.display-sm { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.1; }

/* The signature: lowercase serif italic inside uppercase display type */
.accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0;
  color: var(--green);
  font-size: 1.05em;
}

.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.7; color: var(--text-2); max-width: 56ch; }
.body-lg { font-size: 1.125rem; line-height: 1.75; }
.body-sm { font-size: 0.875rem; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.text-green  { color: var(--green); }
.text-mint   { color: var(--mint); }
.text-muted  { color: var(--text-2); }
.text-faint  { color: var(--text-3); }

p + p { margin-top: 1em; }

/* Eyebrow label — mono with live signal dot */
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
}
.label::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(59, 245, 131, 0.8);
  flex-shrink: 0;
}
.label--static::before { background: var(--text-3); box-shadow: none; }

/* Section header with ghosted outline index numeral */
.sec-head {
  position: relative;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  /* Shared baseline rule ties the title and ghost numeral to the content edges */
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}
.sec-head__main > .label { margin-bottom: 1.1rem; }
.sec-head__num {
  /* Pinned to the exact right edge of the content column, sitting on the rule.
     Absolute positioning so no flex/font quirk can ever push it off that line. */
  position: absolute;
  right: 0;
  bottom: clamp(1.25rem, 2.5vw, 1.75rem);
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 120;
  font-weight: 850;
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(140, 245, 178, 0.22);
  user-select: none;
  /* Tuck the digit's empty side bearing so the ink sits on the edge */
  margin-right: -0.04em;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--green);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.35s var(--ease-out-expo),
              border-color 0.35s var(--ease-out-expo),
              box-shadow 0.35s var(--ease-out-expo),
              transform 0.35s var(--ease-out-expo);
}
.btn:active { transform: scale(0.985); }

.btn--solid {
  background: var(--green);
  color: #04130A;
  font-weight: 500;
}
.btn--solid:hover {
  box-shadow: 0 0 0 1px var(--green), 0 8px 40px -8px rgba(59, 245, 131, 0.55);
}

.btn--ghost {
  background: transparent;
  color: var(--green);
  border-color: rgba(140, 245, 178, 0.4);
}
.btn--ghost:hover {
  border-color: var(--green);
  box-shadow: 0 0 24px -6px rgba(59, 245, 131, 0.35);
}

.btn__arrow { display: inline-block; transition: transform 0.3s var(--ease-spring); }
.btn:hover .btn__arrow { transform: translate(3px, -3px); }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(5, 8, 5, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.nav__logo {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
}
.nav__logo b { color: var(--green); font-weight: 500; }
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  list-style: none;
}
.nav__link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  position: relative;
  transition: color 0.25s var(--ease-out-expo);
}
.nav__link:hover { color: var(--text); }
.nav__link.active { color: var(--green); }
.nav__link.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  height: 1px;
  background: var(--green);
  box-shadow: 0 0 8px rgba(59, 245, 131, 0.7);
}
.nav__cta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #04130A;
  background: var(--green);
  border-radius: 2px;
  padding: 0.55rem 1.1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: box-shadow 0.3s var(--ease-out-expo);
}
.nav__cta:hover { box-shadow: 0 0 24px -4px rgba(59, 245, 131, 0.6); }

/* Hamburger */
.nav__hamburger {
  display: none;
  width: 48px; height: 48px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  z-index: 130;
}
.nav__hamburger span {
  position: absolute;
  left: 13px; right: 13px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s, top 0.4s var(--ease-out-expo);
}
.nav__hamburger span:nth-child(1) { top: 18px; }
.nav__hamburger span:nth-child(2) { top: 28px; }
.nav__hamburger.open { border-color: var(--green); }
.nav__hamburger.open span:nth-child(1) { top: 23px; transform: rotate(45deg); background: var(--green); }
.nav__hamburger.open span:nth-child(2) { top: 23px; transform: rotate(-45deg); background: var(--green); }

/* Full-screen overlay menu */
.nav__overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(4, 6, 4, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out-expo), visibility 0.45s;
}
.nav__overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
.nav__overlay-link {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 116;
  font-weight: 780;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 9vw, 4.5rem);
  line-height: 1.18;
  color: var(--text);
  display: block;
  padding-block: 0.25rem;
  transform: translateY(28px);
  opacity: 0;
  transition: transform 0.6s var(--ease-out-expo), opacity 0.5s var(--ease-out-expo), color 0.3s;
}
.nav__overlay-link:hover, .nav__overlay-link.active { color: var(--green); }
.nav__overlay.open .nav__overlay-link { transform: translateY(0); opacity: 1; }
.nav__overlay.open .nav__overlay-link:nth-child(1) { transition-delay: 0.05s; }
.nav__overlay.open .nav__overlay-link:nth-child(2) { transition-delay: 0.1s; }
.nav__overlay.open .nav__overlay-link:nth-child(3) { transition-delay: 0.15s; }
.nav__overlay.open .nav__overlay-link:nth-child(4) { transition-delay: 0.2s; }
.nav__overlay.open .nav__overlay-link:nth-child(5) { transition-delay: 0.25s; }
.nav__overlay.open .nav__overlay-link:nth-child(6) { transition-delay: 0.3s; }
.nav__overlay.open .nav__overlay-link:nth-child(7) { transition-delay: 0.35s; }
.nav__overlay-foot {
  margin-top: var(--space-lg);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* --------------------------------------------------------------------------
   Imagery — every photo sits in a signal frame
   -------------------------------------------------------------------------- */
.frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.06);
  transition: transform 1.1s var(--ease-out-expo), filter 0.7s var(--ease-out-expo);
}
.frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(5, 8, 5, 0.42), transparent 45%);
}
a .frame:hover img, .frame--hover:hover img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.04);
}
.frame__caption {
  position: absolute;
  left: 0.9rem; bottom: 0.8rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
}

/* --------------------------------------------------------------------------
   Panels (cards)
   -------------------------------------------------------------------------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  transition: border-color 0.4s var(--ease-out-expo),
              background 0.4s var(--ease-out-expo),
              transform 0.5s var(--ease-out-expo),
              box-shadow 0.5s var(--ease-out-expo);
}
.panel--hover:hover, a.panel:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-4px);
  box-shadow: 0 30px 70px -38px rgba(59, 245, 131, 0.3);
}
.panel--green {
  background: var(--green-deep);
  border-color: rgba(140, 245, 178, 0.28);
}

/* --------------------------------------------------------------------------
   HERO (homepage)
   -------------------------------------------------------------------------- */
.hero {
  padding-top: calc(64px + clamp(3.5rem, 9vh, 7rem));
  padding-bottom: var(--space-lg);
  position: relative;
}
.hero::before {
  /* signal glow rising behind the stage */
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 60vw; height: 70vh;
  background: radial-gradient(ellipse at center, rgba(59, 245, 131, 0.07), transparent 65%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: stretch;
}
.hero__text .label { margin-bottom: 1.5rem; }
.hero__headline {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  /* Sized to its column so the longest word (ARCHITECTURE.) never overflows */
  font-size: clamp(2.2rem, 5.6vw, 5.2rem);
}
.hero__sub { margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
/* Portrait matches the full height of the hero text column */
.hero__image-col { display: flex; }
.hero__portrait { width: 100%; min-height: 420px; }
.hero__portrait img { height: 100%; }

/* Signal bar — credentials strip under the hero */
.signal-bar {
  margin-top: clamp(3rem, 6vw, 5rem);
  border-block: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.signal-item {
  padding: 1.5rem clamp(1rem, 2vw, 2rem);
  border-right: 1px solid var(--line);
}
.signal-item:last-child { border-right: 0; }
.signal-number {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 116;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  line-height: 1;
  color: var(--green);
  display: block;
  margin-bottom: 0.4rem;
}
.signal-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* --------------------------------------------------------------------------
   Ticker — scrolling credit marquee
   -------------------------------------------------------------------------- */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding-block: 1.1rem;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 36s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.ticker__item {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 116;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  letter-spacing: 0.02em;
  color: var(--text-2);
  white-space: nowrap;
  padding-inline: 1.6rem;
}
.ticker__sep { color: var(--green); font-size: 0.8em; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Three doors (homepage)
   -------------------------------------------------------------------------- */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.door {
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.door__tag { margin-bottom: auto; }
.door__title { margin-block: 1.25rem 0.9rem; }
.door__body { color: var(--text-2); font-size: 0.95rem; }
.door__credits {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 0.9rem;
}
.door__image {
  margin-top: 1.25rem;
  aspect-ratio: 16 / 9;
}
.door__cta {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   Pull quote
   -------------------------------------------------------------------------- */
.pull-quote { text-align: center; }
.pull-quote__text {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 5.5vw, 4.6rem);
  line-height: 1.15;
  max-width: 20ch;
  margin-inline: auto;
  color: var(--text);
}
.pull-quote__text em { color: var(--green); font-style: italic; }
.pull-quote__context { margin-top: 1.75rem; }
a.pull-quote__context {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-3);
  transition: color 0.25s;
}
a.pull-quote__context:hover { color: var(--green); }

/* --------------------------------------------------------------------------
   Cinematic band — full-bleed image with stats
   -------------------------------------------------------------------------- */
.band {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-block: 1px solid var(--line);
}
.band__bg {
  position: absolute;
  inset: 0;
}
.band__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.85);
}
.band__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 8, 5, 0.92) 8%, rgba(5, 8, 5, 0.25) 60%, rgba(5, 8, 5, 0.55));
}
.band__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: var(--space-lg);
}
.band__title { margin-block: 1rem 2.5rem; }
.band__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.band-stat__number {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 116;
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1;
  color: var(--green);
  display: block;
  margin-bottom: 0.35rem;
}
.band-stat__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mint);
}

/* --------------------------------------------------------------------------
   Photo strip
   -------------------------------------------------------------------------- */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  padding-inline: 0.6rem;
}
.photo-strip .frame { aspect-ratio: 3 / 4; }

/* --------------------------------------------------------------------------
   CTA section
   -------------------------------------------------------------------------- */
.cta-section { text-align: center; }
.cta-section .label { justify-content: center; margin-bottom: 1.25rem; }
.cta-section__title { margin-bottom: 1.25rem; }
.cta-section__body { max-width: 46ch; margin-inline: auto; margin-bottom: 2.25rem; color: var(--text-2); }
.cta-section__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

/* --------------------------------------------------------------------------
   ABOUT page
   -------------------------------------------------------------------------- */
.page-hero {
  padding-top: calc(64px + clamp(3rem, 8vh, 6rem));
  padding-bottom: var(--space-lg);
}
.page-hero .label { margin-bottom: 1.5rem; }
.page-hero__sub { margin-top: clamp(1.5rem, 3vw, 2.25rem); }

.about-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
.about-hero__photo { aspect-ratio: 4 / 5; }

.bio-block {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(2rem, 4vw, 3.25rem);
  border-top: 1px solid var(--line);
}
.bio-block:last-child { border-bottom: 1px solid var(--line); }
.bio-block__title { position: sticky; top: 96px; align-self: start; }
.bio-block__title .label { margin-bottom: 0.9rem; }
.bio-block__body { color: var(--text-2); }
.bio-block__body strong { color: var(--text); font-weight: 600; }

.press-photo .frame { aspect-ratio: 21 / 9; }

/* Timeline (the section-header rule above acts as the opening line) */
.timeline__item {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 5fr);
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease-out-expo), padding-left 0.35s var(--ease-out-expo);
}
.timeline__item:hover { background: rgba(59, 245, 131, 0.03); padding-left: 0.75rem; }
.timeline__period {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--green);
}
.timeline__role {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 110;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.timeline__desc { color: var(--text-2); font-size: 0.95rem; }

/* Beliefs */
.belief {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.belief:last-child { border-bottom: 1px solid var(--line); }
.belief__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  display: block;
  margin-bottom: 0.75rem;
}
.belief__body { color: var(--text-2); align-self: center; }

/* FAQ */
.faq-list { display: grid; gap: 1rem; }
.faq-question { margin-bottom: 0.75rem; }
.faq-question .text-green { margin-right: 0.5rem; }
.faq-answer { color: var(--text-2); font-size: 0.97rem; }
.faq-answer a { color: var(--green); border-bottom: 1px solid rgba(59, 245, 131, 0.35); }
.faq-answer a:hover { border-bottom-color: var(--green); }

/* --------------------------------------------------------------------------
   WORK page
   -------------------------------------------------------------------------- */
.work-hero__image { margin-top: clamp(2.5rem, 5vw, 4rem); }
.work-hero__image .frame { aspect-ratio: 21 / 9; }

.work-feature { padding: clamp(2rem, 4.5vw, 3.75rem); }
.work-feature__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.work-feature__org {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 120;
  font-weight: 820;
  text-transform: uppercase;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1;
}
.work-feature__period { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; color: var(--green); }
.work-feature__body { max-width: 64ch; color: var(--text-2); margin-bottom: 2.25rem; }
.work-feature__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.stat-cell { background: var(--bg-2); padding: 1.4rem 1.5rem; }
.stat-number {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 116;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  line-height: 1;
  color: var(--green);
  display: block;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-3);
}
.role-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.role-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.45rem 0.8rem;
  transition: border-color 0.3s, color 0.3s;
}
.role-tag:hover { border-color: var(--line-strong); color: var(--green); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.work-card { display: flex; flex-direction: column; }
.work-card__org { margin-bottom: 0.9rem; }
.work-card__desc { color: var(--text-2); font-size: 0.95rem; margin-bottom: 1.25rem; }
.work-card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; }

/* Broadcast list */
.broadcast-item {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: baseline;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease-out-expo), padding-left 0.35s var(--ease-out-expo);
}
.broadcast-item:hover { background: rgba(59, 245, 131, 0.03); padding-left: 0.75rem; }
.broadcast-item__org {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 112;
  font-weight: 750;
  text-transform: uppercase;
  font-size: 1.15rem;
}
.broadcast-item__detail { color: var(--text-2); font-size: 0.95rem; }
.broadcast-item__role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  text-align: right;
}

.inline-link {
  color: var(--green);
  border-bottom: 1px solid rgba(59, 245, 131, 0.35);
  transition: border-color 0.25s;
}
.inline-link:hover { border-bottom-color: var(--green); }

/* External reference links (sample work, credit pages) */
.ext-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: 1.1rem;
}
.ext-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 32px;
  border-bottom: 1px solid rgba(59, 245, 131, 0.3);
  transition: border-color 0.25s, color 0.25s;
}
.ext-link:hover { border-bottom-color: var(--green); color: var(--green-bright); }

/* Card-bottom call to action (mono, green) */
.card-cta {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   VOICE OVER page
   -------------------------------------------------------------------------- */
.vo-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  background: var(--surface);
}
.vo-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.demo-card { display: flex; flex-direction: column; }
.demo-card__type { margin-bottom: 1.1rem; }
.demo-card__title { margin-bottom: 0.6rem; }
.demo-card__desc { color: var(--text-2); font-size: 0.92rem; margin-bottom: 1.75rem; }

/* Audio player — transport control */
.audio-player {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}
.audio-player__play {
  width: 54px; height: 54px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease-out-expo),
              color 0.3s var(--ease-out-expo),
              box-shadow 0.3s var(--ease-out-expo),
              transform 0.3s var(--ease-spring);
}
.audio-player__play:hover {
  box-shadow: 0 0 28px -6px rgba(59, 245, 131, 0.55);
  transform: scale(1.05);
}
.audio-player__play svg { width: 16px; height: 16px; fill: currentColor; }
.audio-player__play .icon-stop { display: none; }
.audio-player.playing .audio-player__play {
  background: var(--green);
  color: #04130A;
  box-shadow: 0 0 32px -4px rgba(59, 245, 131, 0.7);
}
.audio-player.playing .icon-play { display: none; }
.audio-player.playing .icon-stop { display: block; }
.audio-player__info { display: flex; flex-direction: column; gap: 0.2rem; }
.audio-player__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
.audio-player__duration {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-3);
}
.audio-player.playing .audio-player__duration { color: var(--green); }

/* Equaliser bars — animate only while playing */
.audio-player__eq {
  margin-left: auto;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  opacity: 0.25;
  transition: opacity 0.3s;
}
.audio-player__eq span {
  width: 3px;
  height: 30%;
  background: var(--green);
  border-radius: 1px;
}
.audio-player.playing .audio-player__eq { opacity: 1; }
.audio-player.playing .audio-player__eq span { animation: eq-bounce 0.9s var(--ease-inout) infinite alternate; }
.audio-player.playing .audio-player__eq span:nth-child(2) { animation-delay: 0.15s; }
.audio-player.playing .audio-player__eq span:nth-child(3) { animation-delay: 0.3s; }
.audio-player.playing .audio-player__eq span:nth-child(4) { animation-delay: 0.45s; }
@keyframes eq-bounce {
  from { height: 20%; }
  to   { height: 100%; }
}

/* Credits grid */
.credits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.credit-item__category { margin-bottom: 1rem; }
.credit-item__title { margin-bottom: 0.5rem; }
.credit-item__detail { color: var(--text-2); font-size: 0.92rem; }

/* Capabilities */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.capability {
  padding: 1.75rem clamp(1.25rem, 2.5vw, 2rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease-out-expo);
}
.capability:hover { background: rgba(59, 245, 131, 0.035); }
.capability__title { margin-bottom: 0.4rem; }
.capability p { color: var(--text-2); font-size: 0.92rem; }

/* Studio spec */
.studio-spec { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.studio-spec__label { margin-bottom: 1.25rem; }
.studio-spec__items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.studio-spec__name { font-weight: 600; font-size: 0.92rem; display: block; }
.studio-spec__type {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* --------------------------------------------------------------------------
   NERDYNI page
   -------------------------------------------------------------------------- */
.ni-hero__title {
  font-size: clamp(3.4rem, 12vw, 11.5rem);
  line-height: 0.9;
}
.ni-hero__title .accent { font-size: 0.92em; }
.ni-stats {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-block: 1px solid var(--line);
}
.ni-stat { padding: 1.4rem 1.25rem; border-right: 1px solid var(--line); }
.ni-stat:last-child { border-right: 0; }
.ni-stat__number {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 116;
  font-weight: 800;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  line-height: 1;
  color: var(--green);
  display: block;
  margin-bottom: 0.35rem;
}
.ni-stat__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Gallery mosaic */
.ni-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.ni-gallery .frame { aspect-ratio: 1; }
.ni-gallery .frame--wide { grid-column: span 2; aspect-ratio: 2.05 / 1; }

/* Story */
.story-block {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-top: 1px solid var(--line);
}
.story-block:last-of-type { border-bottom: 1px solid var(--line); }
.story-block__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}
.story-block__body { color: var(--text-2); max-width: 64ch; }
.story-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-block: var(--space-md);
}
.story-photos .frame { aspect-ratio: 4 / 3; }

/* Principles */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.principle__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--green);
  display: block;
  margin-bottom: 1rem;
}
.principle__title { margin-bottom: 0.6rem; }
.principle p { color: var(--text-2); font-size: 0.94rem; }

/* History */
.history-item {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease-out-expo), padding-left 0.35s var(--ease-out-expo);
}
.history-item:hover { background: rgba(59, 245, 131, 0.03); padding-left: 0.75rem; }
.history-item__org {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 112;
  font-weight: 750;
  text-transform: uppercase;
  font-size: 1.05rem;
}
.history-item__desc { color: var(--text-2); font-size: 0.95rem; }

/* Archive */
.posters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.posters-grid .frame { aspect-ratio: 4 / 5; }
.moments-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.moments-grid .frame { aspect-ratio: 1; }
.venue-photo { margin-top: var(--space-md); }
.venue-photo .frame { aspect-ratio: 21 / 9; }

/* --------------------------------------------------------------------------
   CONTACT page
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.contact-areas { display: grid; border-top: 1px solid var(--line); }
.contact-area {
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.contact-area__type { margin-bottom: 0.4rem; }
.contact-area__desc { color: var(--text-2); font-size: 0.92rem; }

.contact-form { display: grid; gap: 1.5rem; }
.form-row--two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { display: grid; gap: 0.6rem; }
.form-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
}
.form-label .required { color: var(--green); }
.form-label .optional { color: var(--text-3); }
.form-input, .form-textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.9rem 1rem;
  min-height: 48px;
  transition: border-color 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
}
.form-textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-3); }
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green), 0 0 28px -10px rgba(59, 245, 131, 0.4);
}
.form-note { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; color: var(--text-3); }
.form-submit-row { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

.expect-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.expect-item__title { margin-block: 1rem 0.5rem; }
.expect-item p { color: var(--text-2); font-size: 0.92rem; }
.expect-link { color: var(--green); border-bottom: 1px solid rgba(59, 245, 131, 0.35); }
.expect-link:hover { border-bottom-color: var(--green); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  position: relative;
}
.footer__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--space-lg) var(--gutter) var(--space-md);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.footer__tagline { color: var(--text-2); max-width: 34ch; margin-top: 1rem; }
.footer__heading {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1.1rem;
}
.footer__links { list-style: none; display: grid; gap: 0.45rem; }
.footer__link {
  color: var(--text-2);
  font-size: 0.95rem;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  transition: color 0.25s;
}
.footer__link:hover { color: var(--green); }
.footer__wordmark {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 122;
  font-weight: 850;
  text-transform: uppercase;
  font-size: clamp(2rem, 9.2vw, 10.5rem);
  line-height: 0.85;
  letter-spacing: -0.01em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(140, 245, 178, 0.18);
  user-select: none;
  white-space: nowrap;
  transition: -webkit-text-stroke-color 0.6s var(--ease-out-expo);
}
.footer:hover .footer__wordmark { -webkit-text-stroke-color: rgba(140, 245, 178, 0.34); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: var(--space-md);
  margin-top: var(--space-md);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* --------------------------------------------------------------------------
   Error / thanks pages
   -------------------------------------------------------------------------- */
.splash {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--gutter);
}
.splash .label { justify-content: center; margin-bottom: 1.5rem; }
.splash__title { margin-bottom: 1.25rem; }
.splash p { color: var(--text-2); max-width: 44ch; margin-bottom: 2rem; }

/* --------------------------------------------------------------------------
   Grid overflow guards
   -------------------------------------------------------------------------- */
/* Grid children must never force their track wider than the column —
   without this, a long word inflates the track and the whole grid
   bleeds past the right edge of the page. */
.doors > *, .work-grid > *, .demo-grid > *, .credits-grid > *,
.principles-grid > *, .books-grid > *, .related-grid > *,
.expect-grid > *, .capabilities-grid > *, .concepts-grid > * { min-width: 0; }

/* Card titles sized so their longest single words (DOCUMENTARY,
   COMMERCIAL, SCREENRANT…) fit a one-third-width card at every viewport */
.door__title, .work-card__org, .demo-card__title {
  font-size: clamp(1.5rem, 1.9vw, 2.2rem);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .doors, .work-grid, .demo-grid, .credits-grid { grid-template-columns: 1fr 1fr; }
  /* A lone third card spans the full row instead of leaving a hole */
  .doors > :last-child:nth-child(odd),
  .work-grid > :last-child:nth-child(odd),
  .demo-grid > :last-child:nth-child(odd),
  .credits-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ni-stats { grid-template-columns: repeat(3, 1fr); }
  .ni-stat:nth-child(3n) { border-right: 0; }
  .ni-stat:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .posters-grid { grid-template-columns: repeat(2, 1fr); }
  .moments-grid { grid-template-columns: repeat(3, 1fr); }
  .studio-spec__items { grid-template-columns: repeat(2, 1fr); }
  .broadcast-item { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
  .broadcast-item__role { grid-column: 2; text-align: left; }
}

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: block; }

  .hero__grid, .about-hero__grid, .contact-grid { grid-template-columns: 1fr; }
  .hero__headline { font-size: clamp(2rem, 8.8vw, 5.2rem); }
  .hero__portrait { max-width: 480px; min-height: 0; aspect-ratio: 4 / 5; }

  .signal-bar { grid-template-columns: 1fr 1fr; }
  .signal-item { border-bottom: 1px solid var(--line); }
  .signal-item:nth-child(2n) { border-right: 0; }
  .signal-item:nth-last-child(-n+2) { border-bottom: 0; }

  .doors, .work-grid, .demo-grid, .credits-grid,
  .principles-grid, .expect-grid { grid-template-columns: 1fr; }
  .door { min-height: 0; }
  .door__tag { margin-bottom: 1rem; }

  .photo-strip { grid-template-columns: 1fr 1fr; }
  .ni-gallery { grid-template-columns: 1fr 1fr; }
  .ni-gallery .frame--wide { grid-column: span 2; }

  .bio-block, .belief, .story-block, .history-item { grid-template-columns: 1fr; gap: 0.75rem; }
  .bio-block__title { position: static; }
  .timeline__item { grid-template-columns: 1fr; gap: 0.4rem; }
  .work-feature__stats { grid-template-columns: 1fr; }
  .form-row--two { grid-template-columns: 1fr; }
  .capabilities-grid { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; }
  /* On mobile the numeral returns to the flow, above the title (unchanged look) */
  .sec-head { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .sec-head__num { position: static; order: -1; margin-right: 0; }

  .band { min-height: 60vh; }
}

@media (max-width: 520px) {
  .ni-stats { grid-template-columns: 1fr 1fr; }
  .ni-stat { border-bottom: 1px solid var(--line); }
  .ni-stat:nth-child(2n) { border-right: 0; }
  .ni-stat:nth-child(2n+1) { border-right: 1px solid var(--line); }
  .ni-stat:nth-last-child(-n+2) { border-bottom: 0; }
  .moments-grid { grid-template-columns: 1fr 1fr; }
  .story-photos { grid-template-columns: 1fr; }
  .studio-spec__items { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   IDEAS index (blog)
   -------------------------------------------------------------------------- */
.featured-essay {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 4.5vw, 3.5rem);
}
.featured-essay__title { margin-block: 1.1rem 0.9rem; }
.featured-essay__desc { color: var(--text-2); margin-bottom: 1.75rem; }
.featured-essay__photo { aspect-ratio: 4 / 3; }

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.55rem 1rem;
  min-height: 44px;
  cursor: pointer;
  transition: color 0.3s var(--ease-out-expo), border-color 0.3s var(--ease-out-expo), background 0.3s var(--ease-out-expo);
}
.filter-btn:hover { color: var(--text); border-color: var(--line-strong); }
.filter-btn--active {
  color: #04130A;
  background: var(--green);
  border-color: var(--green);
}

.essay-list { border-top: 1px solid var(--line); }
.essay-row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr) minmax(0, 2fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: baseline;
  padding-block: 1.9rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease-out-expo), padding-left 0.35s var(--ease-out-expo);
}
.essay-row:hover { background: rgba(59, 245, 131, 0.03); padding-left: 0.75rem; }
.essay-row__category {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--green);
}
.essay-row__title {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 112;
  font-weight: 750;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  line-height: 1.1;
  letter-spacing: 0;
  margin-bottom: 0.55rem;
  transition: color 0.3s var(--ease-out-expo);
}
.essay-row:hover .essay-row__title { color: var(--green); }
.essay-row__preview { color: var(--text-2); font-size: 0.93rem; max-width: 62ch; }
.essay-row__read {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
  text-align: right;
  white-space: nowrap;
}

.concepts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.concept__title { margin-bottom: 0.6rem; }
.concept p { color: var(--text-2); font-size: 0.92rem; }

.books-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.book {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
}
.book__category {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--green);
}
.book__title { font-weight: 650; font-size: 1.02rem; line-height: 1.3; }
.book__author { font-family: var(--font-accent); font-style: italic; color: var(--mint); font-size: 0.95rem; }
.book p { color: var(--text-2); font-size: 0.9rem; }

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 4.5vw, 3.5rem);
}
.newsletter__title { margin-block: 1rem 0.75rem; }
.newsletter p { color: var(--text-2); }
.newsletter__row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.newsletter__row .form-input { flex: 1 1 220px; }
.newsletter__note { margin-top: 0.9rem; font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em; color: var(--text-3); }

/* --------------------------------------------------------------------------
   ESSAY pages (blog posts)
   -------------------------------------------------------------------------- */
.essay-back {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mint);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  transition: color 0.25s;
}
.essay-back:hover { color: var(--green); }
.essay-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.essay-meta b { color: var(--mint); font-weight: 400; }

.prose { max-width: 68ch; }
.prose p { color: var(--text-2); font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.4em; }
.prose .prose-lede {
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 1.6em;
}
.prose h2 {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 114;
  font-weight: 770;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.05;
  margin: 2.6em 0 0.9em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
}
.prose em { font-family: var(--font-accent); font-style: italic; font-size: 1.08em; color: var(--mint); }
.prose strong { color: var(--text); font-weight: 650; }
.prose a { color: var(--green); border-bottom: 1px solid rgba(59, 245, 131, 0.35); transition: border-color 0.25s; }
.prose a:hover { border-bottom-color: var(--green); }
.prose-note {
  border-left: 2px solid var(--green);
  background: rgba(59, 245, 131, 0.04);
  padding: 1.25rem 1.5rem;
  margin-top: 2.5rem;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--mint);
}
.prose-note a { color: var(--green); }

.essay-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
}
.essay-footer__byline { display: grid; gap: 0.2rem; }
.essay-footer__name {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 112;
  font-weight: 750;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: var(--text);
  transition: color 0.25s;
}
.essay-footer__name:hover { color: var(--green); }

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.related-card__category {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 0.6rem;
}
.related-card__title {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 112;
  font-weight: 750;
  text-transform: uppercase;
  font-size: 1.05rem;
  line-height: 1.15;
}

@media (max-width: 1024px) {
  .concepts-grid { grid-template-columns: 1fr 1fr; }
  .concepts-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .featured-essay, .newsletter { grid-template-columns: 1fr; }
  .essay-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .essay-row__read { text-align: left; }
  .concepts-grid, .books-grid, .related-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; transform: none; }
}
