/* ─────────────────────────────────────────────────────────────────────────────
   LOQAL Design — Flagship v3
   Glowstore · Manrope · DM Mono
   Color system: night/deep/surface + teal (#1DCFBF) + lime (#CFFF36) dual accent
   Each section has its own color world. The shell stays composed.
───────────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Glowstore';
  src: url('fonts/Glowstore.woff2') format('woff2'),
       url('fonts/Glowstore.woff')  format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('fonts/manrope-300-500.woff2') format('woff2');
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('fonts/dm-mono-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('fonts/dm-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('fonts/dm-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('fonts/newsreader-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ── CUSTOM PROPERTIES ──────────────────────────────────────────────────────── */
:root {
  --night:    #060807;
  --deep:     #0D0E0C;
  --surface:  #161714;
  --bone:     #F2EFE7;
  --stone:    #D4D0C6;
  --warm:     #8E8B84;

  /* dual accents */
  --lime:  #CFFF36;
  --teal:  #1DCFBF;

  /* section color worlds */
  --bg-hero:        #060807;
  --bg-belief:      #07090F;   /* deep navy-black */
  --bg-work:        #060807;
  --bg-caps:        #F2EFE7;   /* bone */
  --bg-under:       #030C0E;   /* deep aqua-dark */
  --bg-systems:     #070612;   /* deep violet-dark */
  --bg-approach:    #0C0B09;
  --bg-studio:      #060807;
  --bg-engagements: #F2EFE7;   /* bone */

  --font-display: 'Glowstore', 'Manrope', system-ui, sans-serif;
  --font-sans:    'Manrope', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  --pad-x:       clamp(24px, 5vw, 88px);
  --pad-section: clamp(96px, 11vw, 152px);
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── RESET ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  background: var(--night);
  color: var(--bone);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-width: 280px;
}
body.menu-open { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; touch-action: manipulation; }
p, li { overflow-wrap: break-word; }
h1, h2, h3 { text-wrap: balance; }
::selection { background: rgba(29,207,191,0.3); color: var(--bone); }

/* ── ACCESSIBILITY ──────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -120%; left: 20px;
  padding: 8px 16px;
  background: var(--lime); color: var(--night);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em;
  z-index: 9999; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
#main:focus { outline: none; }
.sr-only {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important; border: 0 !important;
}
:where(section[id], main[id]) { scroll-margin-top: 80px; }

/* ── TYPE UTILITIES ─────────────────────────────────────────────────────────── */
.mono {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.label-dim { color: var(--warm); display: block; margin-bottom: 28px; }
.section-no { color: var(--warm); margin-bottom: 16px; }
em { font-family: 'Newsreader', Georgia, serif; font-style: italic; font-weight: 300; }
code { font-family: var(--font-mono); font-size: 10px; color: var(--teal); opacity: 0.8; }

/* ── GRAIN ──────────────────────────────────────────────────────────────────── */
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9000; opacity: 0.55;
  animation: grain-shift 9s steps(2) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-1%,1%); }
  50%  { transform: translate(1%,-1%); }
  75%  { transform: translate(-1%,-1%); }
  100% { transform: translate(0,0); }
}

/* ── PAGE CURTAIN (intro from darkness) ─────────────────────────────────────── */
.page-curtain {
  position: fixed; inset: 0; z-index: 8500;
  background: var(--night);
  opacity: 1;
  pointer-events: none;
  /* Long film fade: hold the black, then let the world arrive gradually. */
  transition: opacity 3.7s cubic-bezier(0.42, 0, 0.12, 1);
}
.page-curtain.is-lifted { opacity: 0; }

/* ── NAV ────────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  display: flex; align-items: center; gap: 24px;
  padding: 0 var(--pad-x); height: 64px;
  transition: background 0.5s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(6,8,7,0.92);
  border-color: rgba(29,207,191,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.brand-name small { font-size: 9px; letter-spacing: 0.14em; color: var(--warm); margin-left: 2px; }
.nav-links { display: flex; gap: 32px; margin-left: auto; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--warm);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--bone); }
.nav-cta {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal); border: 1px solid rgba(29,207,191,0.3);
  padding: 9px 18px; background: rgba(29,207,191,0.025);
  box-shadow: inset 0 1px rgba(255,255,255,0.04);
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.nav-cta:hover {
  transform: translateY(-1px); background: rgba(29,207,191,0.1); border-color: var(--teal);
  box-shadow: 0 10px 28px rgba(0,0,0,0.16), 0 0 20px rgba(29,207,191,0.06);
}
.menu-toggle {
  display: none; width: 44px; height: 44px; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; padding: 0; margin-left: auto;
}
.menu-toggle span { display: block; width: 22px; height: 1px; background: var(--bone); transition: transform 0.3s var(--ease), opacity 0.2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-nav {
  position: fixed; inset: 0; z-index: 700;
  background: rgba(6,8,7,0.97);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  padding: max(92px, env(safe-area-inset-top)) max(var(--pad-x), env(safe-area-inset-right)) max(40px, env(safe-area-inset-bottom)) max(var(--pad-x), env(safe-area-inset-left));
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; pointer-events: all; transition-delay: 0s; }
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between;
  width: min(100%, 520px); min-height: 58px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-mono); font-size: 13px; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone);
  transition: color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:last-child { color: var(--teal); }
.mobile-nav a:last-child { margin-top: 20px; padding: 0 16px; border: 1px solid rgba(29,207,191,0.32); }

/* ── BUTTONS ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  min-height: 48px; padding: 14px 24px; border: 1px solid;
  background: linear-gradient(135deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015));
  box-shadow: inset 0 1px rgba(255,255,255,0.07), 0 12px 34px rgba(0,0,0,0.08);
  transition: transform 0.35s var(--ease), background 0.35s ease,
    border-color 0.35s ease, box-shadow 0.35s ease;
}
.btn-ghost { color: var(--bone); border-color: rgba(29,207,191,0.3); }
.btn-ghost:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(29,207,191,0.14), rgba(29,207,191,0.035));
  border-color: rgba(29,207,191,0.7);
  box-shadow: inset 0 1px rgba(255,255,255,0.1), 0 16px 38px rgba(0,0,0,0.2), 0 0 28px rgba(29,207,191,0.07);
}
.btn:active { transform: translateY(0) scale(0.985); }
.text-link {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--warm);
  border-bottom: 1px solid rgba(29,207,191,0.18); padding: 10px 0 7px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.text-link:hover { color: var(--teal); border-color: var(--teal); }
.hero-actions .text-link {
  color: rgba(242,239,231,0.9);
  border-color: rgba(29,207,191,0.32);
  text-shadow: 0 0 22px rgba(29,207,191,0.08);
}
.hero-actions .text-link:hover { color: var(--bone); border-color: var(--teal); }

:where(.btn, .nav-cta, .caps-start, .under-link, .engagements-next a, .text-link) span {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}
:where(.btn, .nav-cta, .caps-start, .under-link, .engagements-next a, .text-link):hover span {
  transform: translateX(4px);
}
:where(.btn, .nav-cta, .caps-start, .under-link, .engagements-next a, .text-link):focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

/* ── LAYOUT UTILITIES ───────────────────────────────────────────────────────── */
.section-pad { padding: var(--pad-section) var(--pad-x); }
.section-head {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start; margin-bottom: 80px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 400; line-height: 1.12; letter-spacing: -0.02em;
}
.section-head > p { font-size: 16px; color: var(--warm); line-height: 1.75; padding-top: 4px; }

/* ── HERO ───────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--pad-x) 88px; overflow: hidden;
  background: var(--bg-hero);
}
.hero-video-wrap { position: absolute; inset: 0; overflow: hidden; }
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 65%;
  transform: scale(1.06);
  opacity: 1;
  animation:
    hero-scale 75s ease-out forwards,
    hero-awaken 6.2s cubic-bezier(0.22, 0.55, 0.2, 1) both;
}
@keyframes hero-scale {
  from { transform: scale(1.1); }
  to   { transform: scale(1.0); }
}
@keyframes hero-awaken {
  0%, 8% {
    opacity: 0;
    filter: brightness(0.08) saturate(0.12) contrast(1.28);
  }
  30% {
    opacity: 0.22;
    filter: brightness(0.22) saturate(0.3) contrast(1.22);
  }
  62% {
    opacity: 0.68;
    filter: brightness(0.6) saturate(0.68) contrast(1.12);
  }
  100% {
    opacity: 1;
    filter: brightness(1) saturate(0.96) contrast(1.02);
  }
}
/* Primary dark shade */
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(6,8,7,0.65) 0%,
    rgba(6,8,7,0.35) 40%,
    rgba(6,8,7,0.72) 78%,
    rgba(6,8,7,0.98) 100%
  );
}
/* Cinematic teal color wash — left-side light leak */
.hero-teal-wash {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 0% 40%, rgba(29,207,191,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 100% 80%, rgba(7,9,15,0.4) 0%, transparent 60%);
  pointer-events: none;
}

/* Hero elements — emerge from darkness while curtain is still lifting
   CSS animation fires immediately on load so content materializes
   through the fading curtain, not after it's gone */
.hero-el {
  animation: emerge-from-dark 1.4s var(--ease) var(--delay, 1s) both;
}
@keyframes emerge-from-dark {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy { position: relative; z-index: 2; max-width: 860px; }
.eyebrow { color: var(--teal); margin-bottom: 28px; opacity: 0.85; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 6.5vw, 96px);
  font-weight: 400; line-height: 1.0; letter-spacing: -0.03em;
  margin-bottom: 32px;
}
.hero-sub { color: var(--stone); font-size: 11px; letter-spacing: 0.18em; margin-bottom: 48px; }
.hero-actions { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.hero-contact-direct {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 24px;
  margin-top: 18px;
}
.hero-contact-direct p {
  flex: 0 0 100%;
  margin: 0;
  color: var(--stone);
  font-size: 12px;
}
.hero-contact-direct .contact-channel {
  min-height: 42px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  border-bottom: 1px solid rgba(212,181,118,.28);
}
.hero-contact-direct .contact-channel > span { color: var(--stone); font-size: 10px; }
.hero-contact-direct .contact-channel > strong { color: var(--interaction-gold); font-size: 11px; font-weight: 500; letter-spacing: .02em; }
.contact-channel i { padding-inline: 3px; color: currentColor; font-style: normal; opacity: .62; }
.hero-contact-direct .contact-channel a { color: inherit; }
.hero-contact-direct .contact-channel a:hover { color: var(--teal); }
.hero-index {
  position: absolute; bottom: 36px; right: var(--pad-x); z-index: 2;
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  color: rgba(142,139,132,0.45); font-size: 10px;
}

/* ── BELIEF BAND ────────────────────────────────────────────────────────────── */
.belief-band {
  background: var(--bg-belief);
  padding: clamp(96px, 12vw, 160px) var(--pad-x);
  position: relative; overflow: hidden;
  border-top: 1px solid rgba(29,207,191,0.06);
  border-bottom: 1px solid rgba(29,207,191,0.06);
}
/* Subtle radial teal glow in corner */
.belief-band::before {
  content: '';
  position: absolute; top: -20%; right: -10%;
  width: 60vw; height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29,207,191,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.belief-band h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 76px);
  font-weight: 400; line-height: 1.08; letter-spacing: -0.02em;
  max-width: 1040px; margin: 0 auto 36px; text-align: center;
  position: relative; z-index: 1;
}
.belief-band > p {
  font-size: 17px; color: var(--warm); line-height: 1.75;
  max-width: 580px; margin: 0 auto; text-align: center;
  position: relative; z-index: 1;
}
.belief-band .label-dim { text-align: center; color: var(--teal); opacity: 0.7; }

/* ── CONTRAST ───────────────────────────────────────────────────────────────── */
.contrast {
  display: grid; grid-template-columns: 1fr auto 1fr;
  grid-template-rows: 1fr auto; min-height: 72vh; overflow: hidden;
}
.contrast-panel { position: relative; overflow: hidden; min-height: 65vh; }
.contrast-panel:focus-visible {
  outline: 2px solid var(--teal); outline-offset: -3px;
}
.panel-media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 1.2s var(--ease);
}
.contrast-panel:hover .panel-media { transform: scale(1.04); }
.contrast-panel:focus-visible .panel-media { transform: scale(1.04); }
.panel-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,8,7,0.92) 0%, rgba(6,8,7,0.12) 60%);
}
.panel-copy { position: absolute; bottom: 44px; left: 40px; right: 40px; z-index: 2; }
.panel-copy span.mono { color: var(--teal); opacity: 0.8; display: block; margin-bottom: 14px; }
.panel-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 52px);
  font-weight: 400; line-height: 1.05; margin-bottom: 8px;
}
.panel-copy p { color: var(--stone); font-size: 15px; }
.contrast-spine {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 28px; background: var(--night); gap: 8px; z-index: 2;
  border-left: 1px solid rgba(29,207,191,0.06);
  border-right: 1px solid rgba(29,207,191,0.06);
}
.contrast-spine span,
.contrast-spine strong {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; writing-mode: vertical-rl; text-orientation: mixed;
}
.contrast-spine span  { color: var(--warm); }
.contrast-spine strong { color: var(--bone); font-weight: 500; }
.contrast-law {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 36px;
  padding: 36px var(--pad-x);
  font-size: 16px; color: var(--warm);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.contrast-law p { max-width: 900px; line-height: 1.65; }
.contrast-law a { color: var(--teal); font-size: 10px; white-space: nowrap; }
.contrast-law strong { color: var(--bone); }

/* A compact teaser of the full How We Think experience on Start. */
.decision-teaser { background: #0a0e0f; border-bottom: 1px solid rgba(29,207,191,0.08); }
.decision-teaser .section-head { align-items: end; }
.decision-teaser .section-head h2 { max-width: 950px; font-size: clamp(34px, 4.4vw, 66px); }
.decision-teaser .section-head h2 em { color: var(--teal); font-style: normal; }
.decision-teaser .section-head > a { justify-self: end; color: var(--teal); font-size: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(29,207,191,.3); }
.decision-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.12); border-left: 1px solid rgba(255,255,255,.12); }
.decision-grid article { min-height: 250px; padding: 28px; border-right: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.decision-grid span { color: var(--teal); }
.decision-grid p { margin: 72px 0 10px; color: var(--stone); font-size: 15px; }
.decision-grid strong { display: block; max-width: 12ch; font: 400 clamp(25px, 2.6vw, 40px)/1.08 var(--font-display); }

/* ── PROJECT GRID ───────────────────────────────────────────────────────────── */
.work { background: var(--bg-work); }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.project-tfd {
  grid-column: 1 / -1;
  aspect-ratio: 2/0.72;
}

.project {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3; display: block; background: var(--surface);
  /* Magnetic: JS writes --mx --my as % offsets */
  transform: translate(calc(var(--mx, 0) * 6px), calc(var(--my, 0) * 4px));
  transition: transform 0.9s var(--ease);
  will-change: transform;
}
.project:focus-visible {
  outline: 2px solid var(--teal); outline-offset: -4px;
  box-shadow: inset 0 0 0 5px rgba(6,8,7,0.6);
}

/* ── Media layer ── */
.project-media { position: absolute; inset: 0; overflow: hidden; }

/* Still image — fades out when video/pan activates */
.project-still {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: brightness(0.72) saturate(0.82);
  transition: opacity 0.65s ease, filter 0.65s ease, transform 1.2s var(--ease);
  transform: scale(1.0);
  z-index: 1;
}
.project:hover .project-still {
  opacity: 0;
  transform: scale(1.04);
}
.project:is(:focus-visible, .is-previewing) .project-still {
  opacity: 0;
  transform: scale(1.04);
}

/* Still-only cards keep their proof visible when the glass lifts. */
.project-static:hover .project-still,
.project-static:is(:focus-visible, .is-previewing) .project-still {
  opacity: 1;
  filter: brightness(0.6) saturate(1.04);
  transform: scale(1.045);
}

/* Real video preview (foothills) */
.project-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0;
  transition: opacity 0.65s ease;
  z-index: 2;
}
.project:hover .project-video { opacity: 1; }
.project:is(:focus-visible, .is-previewing) .project-video { opacity: 1; }
.project-tfd .project-still,
.project-tfd .project-video { object-position: center 46%; }

/* CSS vertical pan — for still-only cards */
.project-pan {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0;
  filter: brightness(0.58) saturate(1.05);
  transition: opacity 0.65s ease;
  animation: none;
  z-index: 2;
}
.project:hover .project-pan {
  opacity: 1;
  animation: pan-down 12s linear infinite;
}
.project:focus-visible .project-pan { opacity: 1; animation: pan-down 12s linear infinite; }
@keyframes pan-down {
  0%   { background-position: center top; }
  48%  { background-position: center bottom; }
  50%  { background-position: center bottom; }
  98%  { background-position: center top; }
  100% { background-position: center top; }
}

/* ── Blue glass — the real project media remains underneath ── */
.project-frosted {
  position: absolute; inset: 0; z-index: 3;
  background:
    linear-gradient(145deg, rgba(112, 197, 224, 0.12) 0%, rgba(29, 94, 127, 0.2) 48%, rgba(5, 18, 29, 0.3) 100%),
    radial-gradient(circle at 18% 8%, rgba(214, 244, 255, 0.12), transparent 38%);
  backdrop-filter: blur(10px) saturate(0.88) brightness(0.9);
  -webkit-backdrop-filter: blur(10px) saturate(0.88) brightness(0.9);
  opacity: 1;
  transition:
    opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1),
    backdrop-filter 0.75s ease,
    -webkit-backdrop-filter 0.75s ease;
  will-change: opacity;
}
/* Fine rim-light so the pane reads as glass, not a color wash. */
.project-frosted::after {
  content: '';
  position: absolute; inset: 0;
  border: 1px solid rgba(193, 235, 248, 0.12);
  background: linear-gradient(115deg, rgba(255,255,255,0.08), transparent 28%, transparent 72%, rgba(29,207,191,0.05));
  pointer-events: none;
}
/* On hover — lift the blue glass and reveal the same media underneath. */
.project:hover .project-frosted {
  opacity: 0;
  backdrop-filter: blur(0) saturate(1) brightness(1);
  -webkit-backdrop-filter: blur(0) saturate(1) brightness(1);
}
.project:is(:focus-visible, .is-previewing) .project-frosted {
  opacity: 0;
  backdrop-filter: blur(0) saturate(1) brightness(1);
  -webkit-backdrop-filter: blur(0) saturate(1) brightness(1);
}

/* ── Editorial cards (no screenshot) ── */
.project-editorial .project-editorial-bg {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(140deg, #111820 0%, #090C12 100%);
  transition: transform 1.2s var(--ease);
}
.project-legacy .project-editorial-bg {
  background: linear-gradient(140deg, #101408 0%, #080C05 100%);
}
.project-editorial:hover .project-editorial-bg { transform: scale(1.04); }

/* ── Overlay gradient ── */
.project-overlay {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(
    to top,
    rgba(6,8,7,0.96) 0%,
    rgba(6,8,7,0.12) 50%,
    transparent 100%
  );
  transition: opacity 0.6s ease;
}
.project:hover .project-overlay { opacity: 0.88; }
.project:is(:focus-visible, .is-previewing) .project-overlay { opacity: 0.88; }

/* ── Copy-legibility gradient — never blurs the revealed media ── */
.project-glass {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 65%;
  z-index: 4;
  background: linear-gradient(
    to top,
    rgba(8,10,9,0.78) 0%,
    rgba(8,10,9,0.35) 55%,
    transparent 100%
  );
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.5s ease,
    transform 0.6s var(--ease);
  pointer-events: none;
}
.project:hover .project-glass {
  opacity: 1;
  transform: translateY(0);
}
.project:is(:focus-visible, .is-previewing) .project-glass { opacity: 1; transform: translateY(0); }

/* ── Live pulse dot ── */
.project-live-dot {
  display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--teal); margin: 0 6px;
  opacity: 0;
  transition: opacity 0.4s 0.2s;
  animation: live-pulse 2s ease-in-out infinite;
}
.project:hover .project-live-dot { opacity: 1; }
.project:is(:focus-visible, .is-previewing) .project-live-dot { opacity: 1; }
@keyframes live-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.5); }
}

/* ── Card top / info ── */
.project-top {
  position: absolute; top: 22px; left: 26px; right: 26px;
  display: flex; align-items: center;
  color: rgba(242,239,231,0.58); font-size: 10px;
  z-index: 5;
  transition: color 0.4s ease;
}
.project:hover .project-top { color: rgba(242,239,231,0.65); }
.project:is(:focus-visible, .is-previewing) .project-top { color: rgba(242,239,231,0.78); }
.project-top > span:last-child { margin-left: auto; }

.project-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px 28px 28px;
  z-index: 6;
}
.project-type {
  color: var(--stone); font-size: 10px; margin-bottom: 7px;
  opacity: 0.82; letter-spacing: 0.08em;
  transition: color 0.4s ease, opacity 0.4s ease;
}
.project:hover .project-type { color: var(--teal); opacity: 1; }
.project:is(:focus-visible, .is-previewing) .project-type { color: var(--teal); opacity: 1; }

.project-info h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 400; line-height: 1.03; margin-bottom: 10px;
  transition: transform 0.55s var(--ease);
}
.project:hover .project-info h3 { transform: translateY(-5px); }
.project:is(:focus-visible, .is-previewing) .project-info h3 { transform: translateY(-5px); }

.project-thesis {
  display: block; font-size: 13px; color: var(--stone);
  margin-bottom: 18px; line-height: 1.55;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.45s 0.08s ease, transform 0.45s 0.08s var(--ease);
}
.project:hover .project-thesis { opacity: 1; transform: translateY(0); }
.project:is(:focus-visible, .is-previewing) .project-thesis { opacity: 1; transform: translateY(0); }

.project-proof {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin: 0 0 15px; opacity: 0; transform: translateY(9px);
  transition: opacity .45s .12s ease, transform .45s .12s var(--ease);
}
.project:hover .project-proof,
.project:is(:focus-visible, .is-previewing) .project-proof { opacity: 1; transform: none; }
.project-proof div { border-top: 1px solid rgba(255,255,255,.14); padding-top: 8px; }
.project-proof dt { margin-bottom: 4px; color: var(--teal); font: 500 8px/1 var(--font-mono); letter-spacing: .14em; }
.project-proof dd { margin: 0; color: rgba(242,239,231,.82); font-size: 11px; line-height: 1.35; }

.proof-tags { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.proof-tags::before { content: 'BUILT FOR'; margin-right: 4px; color: var(--teal); font: 500 8px/1 var(--font-mono); letter-spacing: .14em; }
.proof-tags b {
  font-weight: 400; font-size: 10px; letter-spacing: 0.08em;
  padding: 4px 9px;
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(242,239,231,0.78);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: border-color 0.4s ease, color 0.4s ease, background 0.4s ease;
}
.project:hover .proof-tags b {
  border-color: rgba(var(--accent-rgb, 29,207,191), 0.45);
  color: var(--bone);
  background: rgba(255,255,255,0.06);
}
.project:is(:focus-visible, .is-previewing) .proof-tags b {
  border-color: rgba(29,207,191,0.42);
  color: var(--bone);
  background: rgba(255,255,255,0.06);
}
.project-view { display: block; margin-top: 10px; color: var(--teal); font-size: 8px; letter-spacing: .15em; opacity: 0; transition: opacity .4s .16s ease; }
.project:hover .project-view,
.project:is(:focus-visible, .is-previewing) .project-view { opacity: 1; }

/* ── CAPABILITIES ───────────────────────────────────────────────────────────── */
/* Studio thesis: the creative and technical halves of the same build. */
.studio-thesis {
  position: relative; overflow: hidden; background: #070a0b;
  border-top: 1px solid rgba(29,207,191,0.08);
  border-bottom: 1px solid rgba(29,207,191,0.08);
}
.studio-thesis::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(6,8,7,0.94), rgba(6,8,7,0.75) 50%, rgba(6,8,7,0.93)), linear-gradient(to bottom, rgba(6,8,7,0.15), #070a0b 92%);
  pointer-events: none;
}
.thesis-film { position: absolute; inset: 0; z-index: 0; opacity: 0.22; }
.thesis-film video { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.65) contrast(1.12) brightness(0.65); }
.thesis-intro, .thesis-split, .thesis-close { position: relative; z-index: 1; }
.thesis-intro { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 64px; align-items: end; }
.thesis-intro .section-no { grid-column: 1 / -1; color: var(--teal); }
.thesis-intro h2 { font-family: var(--font-display); font-size: clamp(42px, 5.5vw, 78px); font-weight: 400; line-height: 1.03; letter-spacing: -0.03em; }
.thesis-intro > p:last-child { color: var(--stone); font-size: 15px; line-height: 1.8; padding-bottom: 8px; }
.thesis-split {
  display: grid; grid-template-columns: 1fr 1fr; margin-top: 88px;
  border: 1px solid rgba(255,255,255,0.08); background: rgba(6,8,7,0.52);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.thesis-side { min-height: 380px; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.thesis-side + .thesis-side { border-left: 1px solid rgba(255,255,255,0.08); }
.thesis-side > p { color: var(--teal); }
.thesis-side h3 { font-family: var(--font-display); font-size: clamp(36px, 4vw, 58px); font-weight: 400; line-height: 1.03; letter-spacing: -0.02em; }
.thesis-side span { max-width: 40ch; color: var(--warm); font-size: 14px; line-height: 1.7; }
.thesis-side--infrastructure { background: rgba(29,207,191,0.035); }
.thesis-close { margin-top: 28px; color: rgba(212,208,198,0.76); text-align: center; line-height: 1.7; }

.capabilities { background: var(--bg-caps); color: var(--night); }
.capabilities .section-head h2 { color: var(--night); }
.capabilities .section-head > p { color: #5a5853; }
.capabilities .section-no { color: #8a8780; }
.caps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid rgba(0,0,0,0.08);
  border-top: 1px solid rgba(0,0,0,0.08);
}
.cap {
  padding: 44px 36px;
  border-right: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: background 0.25s;
}
.cap:hover { background: rgba(0,0,0,0.02); }
.cap-no { color: #9a9890; font-size: 10px; margin-bottom: 18px; }
.cap h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 400; letter-spacing: -0.01em;
  margin-bottom: 10px; color: var(--night);
}
.cap-line { font-size: 14px; color: #5a5853; line-height: 1.55; margin-bottom: 22px; }
.cap-list {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 11px; font-weight: 400; color: #787570;
  letter-spacing: 0.04em; text-transform: none;
}
.cap-list code { color: #2a8a82; opacity: 1; }
.caps-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 38px 40px; border: 1px solid rgba(0,0,0,0.1); border-top: 0; background: #e9e5dc;
}
.caps-cta p { color: #2c2c29; font-size: 10px; margin-bottom: 7px; }
.caps-cta > div > span { color: #69665f; font-size: 14px; }
.caps-start {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 14px 20px; background: var(--night); color: var(--bone);
  border: 1px solid rgba(23,60,58,0.55);
  box-shadow: inset 0 1px rgba(255,255,255,0.07), 0 12px 30px rgba(6,8,7,0.1);
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: transform 0.35s var(--ease), background 0.35s, color 0.35s, box-shadow 0.35s;
}
.caps-start:hover {
  transform: translateY(-2px); background: #173c3a; color: white;
  box-shadow: inset 0 1px rgba(255,255,255,0.1), 0 16px 34px rgba(6,8,7,0.18), 0 0 24px rgba(29,207,191,0.08);
}
.caps-start:active { transform: translateY(0) scale(0.985); }
.caps-start span { color: var(--teal); }

/* ── UNDER THE SURFACE ──────────────────────────────────────────────────────── */
.under {
  background: var(--bg-under);
  border-top: 1px solid rgba(29,207,191,0.07);
  border-bottom: 1px solid rgba(29,207,191,0.07);
  position: relative; overflow: hidden;
}
/* Ambient aqua glow — left side where video is */
.under::before {
  content: '';
  position: absolute; top: 20%; left: -5%;
  width: 50%; height: 60%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(29,207,191,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.under-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 88px; align-items: start; position: relative; z-index: 1;
}
.under-media {
  position: relative; overflow: hidden;
  border: 1px solid rgba(29,207,191,0.08);
}
.under-video-wrap { position: relative; }
.under-video {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover; object-position: center;
  display: block;
}
/* Teal color grade overlay on the underwater video */
.under-media-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(3,12,14,0.25) 0%, rgba(3,12,14,0.55) 100%),
    linear-gradient(to right, rgba(29,207,191,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.under-content { padding-top: 8px; }
.under-content h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 400; line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 24px; margin-top: 8px;
}
.under-intro { font-size: 15px; color: var(--warm); line-height: 1.75; margin-bottom: 44px; }
.under-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px;
  border-top: 1px solid rgba(29,207,191,0.08); padding-top: 36px;
}
.under-col-label { color: var(--teal); opacity: 0.8; margin-bottom: 16px; }
.under-list {
  display: flex; flex-direction: column; gap: 10px;
  font-size: 11px; color: var(--stone);
  letter-spacing: 0.04em; text-transform: none; font-weight: 400;
  line-height: 1.5;
}
.under-list code { font-size: 10px; color: var(--teal); opacity: 0.85; }
.under-link {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; margin-top: 36px; padding: 13px 18px;
  color: var(--bone); border: 1px solid rgba(29,207,191,0.28);
  background: linear-gradient(135deg, rgba(29,207,191,0.07), rgba(29,207,191,0.015));
  box-shadow: inset 0 1px rgba(255,255,255,0.05);
  transition: transform 0.35s var(--ease), color 0.35s, border-color 0.35s, background 0.35s, box-shadow 0.35s;
}
.under-link span { color: var(--teal); }
.under-link:hover {
  transform: translateY(-2px); color: var(--bone); border-color: var(--teal);
  background: linear-gradient(135deg, rgba(29,207,191,0.14), rgba(29,207,191,0.03));
  box-shadow: 0 14px 34px rgba(0,0,0,0.18), 0 0 24px rgba(29,207,191,0.07);
}
.under-link:active { transform: translateY(0) scale(0.985); }

/* ── SYSTEMS ────────────────────────────────────────────────────────────────── */
.systems {
  background: var(--bg-systems);
  position: relative; overflow: hidden;
  border-top: 1px solid rgba(207,255,54,0.05);
}
/* Violet ambient glow */
.systems::before {
  content: '';
  position: absolute; bottom: -10%; right: -5%;
  width: 55vw; height: 55vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(130,80,220,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.systems-body {
  --systems-stack-gap: clamp(44px, 5vw, 76px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(52px, 6vw, 96px); align-items: stretch; position: relative; z-index: 1;
}
.systems-copy {
  min-width: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: var(--systems-stack-gap);
}
.systems .section-head {
  display: flex; flex-direction: column; gap: 28px;
  margin-bottom: 0;
}
.systems .section-head > p { max-width: 560px; padding-top: 0; }
.systems-screens {
  display: flex; flex-direction: column; justify-content: space-between;
  gap: var(--systems-stack-gap);
  min-width: 0; align-self: stretch;
}
.systems-media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(207,255,54,0.08);
  transition: border-color 0.4s ease;
}
.systems-media:hover { border-color: rgba(207,255,54,0.22); }
.systems-media:focus-visible {
  outline: 2px solid var(--lime); outline-offset: 3px;
  border-color: rgba(207,255,54,0.5);
}
.systems-media img {
  width: 100%; height: auto; display: block;
  aspect-ratio: auto; object-fit: contain;
  filter: brightness(0.9);
  transition: filter 0.5s ease, transform 0.7s var(--ease);
}
.systems-media:hover img {
  filter: brightness(1.0);
  transform: scale(1.02);
}
.systems-media:focus-visible img { filter: brightness(1); transform: scale(1.02); }
.systems-badge {
  position: absolute; bottom: 14px; left: 14px;
  font-size: 10px; letter-spacing: 0.1em;
  color: var(--lime); background: rgba(7,6,18,0.88);
  padding: 5px 10px; border: 1px solid rgba(207,255,54,0.25);
  transition: background 0.3s, border-color 0.3s;
}
.systems-media:hover .systems-badge {
  background: rgba(207,255,54,0.12);
  border-color: rgba(207,255,54,0.5);
}
.systems-media:focus-visible .systems-badge {
  background: rgba(207,255,54,0.12);
  border-color: rgba(207,255,54,0.5);
}
/* Shimmer scan on hover */
.systems-media-shine {
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(207,255,54,0.06) 50%,
    transparent 65%
  );
  transform: translateX(-100%);
  transition: transform 0s;
  pointer-events: none;
}
.systems-media:hover .systems-media-shine {
  transform: translateX(100%);
  transition: transform 0.8s ease;
}

/* VSA preview */
.systems-preview {
  position: relative;
  border: 1px solid rgba(207,255,54,0.06);
  overflow: hidden;
}
.systems-preview img {
  width: 100%; height: auto; display: block;
  aspect-ratio: auto; object-fit: contain;
  filter: brightness(0.9) saturate(0.94);
}
.systems-preview-label {
  position: absolute; bottom: 14px; left: 14px;
  font-size: 10px; letter-spacing: 0.1em;
  color: var(--lime); background: rgba(7,6,18,0.88);
  padding: 5px 10px; border: 1px solid rgba(207,255,54,0.2);
}
/* Subtle vignette over VSA to keep it feeling like a preview */
.systems-preview-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(7,6,18,0.35) 0%, transparent 20%, transparent 80%, rgba(7,6,18,0.5) 100%),
    linear-gradient(to right, rgba(7,6,18,0.2) 0%, transparent 15%, transparent 85%, rgba(7,6,18,0.2) 100%);
  pointer-events: none;
}

.systems-arch {
  display: flex; flex-direction: column; min-width: 280px;
  border: 1px solid rgba(255,255,255,0.06);
}
.arch-row {
  display: grid; grid-template-columns: 76px 1fr 1fr;
  align-items: center; gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s;
}
.arch-row:last-child { border-bottom: none; }
.arch-row:hover { background: rgba(29,207,191,0.03); }
.arch-input { font-size: 10px; color: var(--warm); }
.arch-line {
  height: 1px; background: rgba(29,207,191,0.12); position: relative;
  display: flex; align-items: center; overflow: hidden;
}
.arch-dot {
  width: 5px; height: 5px; border-radius: 50%;
  position: absolute; left: 0;
  background: var(--teal); opacity: 0; flex-shrink: 0;
  animation: dot-travel 3.5s ease-in-out infinite;
}
.arch-row:nth-child(2) .arch-dot { animation-delay: 0.7s; }
.arch-row:nth-child(3) .arch-dot { animation-delay: 1.4s; }
.arch-row:nth-child(4) .arch-dot { animation-delay: 2.1s; }
.arch-row:nth-child(5) .arch-dot { animation-delay: 2.8s; }
@keyframes dot-travel {
  0%   { left: 0; opacity: 0; }
  15%  { opacity: 0.8; }
  85%  { opacity: 0.8; }
  100% { left: calc(100% - 5px); opacity: 0; }
}
.arch-output { font-size: 10px; color: var(--bone); }

/* ── APPROACH ───────────────────────────────────────────────────────────────── */
.approach { background: var(--bg-approach); }
.approach .section-head h2 { font-family: var(--font-display); }
.process-list {
  display: grid; grid-template-columns: 1fr 1fr;
  border-left: 1px solid rgba(255,255,255,0.05);
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 56px;
}
.process-step {
  display: grid; grid-template-columns: 52px 1fr;
  gap: 24px; align-items: start;
  padding: 40px 36px 40px 0;
  border-right: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.25s;
}
.process-step:hover { background: rgba(29,207,191,0.02); }
.step-no { font-size: 10px; color: var(--teal); opacity: 0.7; padding-top: 5px; text-align: right; }
.step-body h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 400; letter-spacing: -0.01em; margin-bottom: 10px;
}
.step-body p { font-size: 14px; color: var(--warm); line-height: 1.7; }
.approach-principle {
  display: grid; grid-template-columns: 160px 1fr; gap: 32px; align-items: baseline;
  margin-top: 52px; padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.approach-principle p { color: var(--teal); }
.approach-principle strong {
  font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 50px);
  font-weight: 400; line-height: 1.12; letter-spacing: -0.02em;
}

/* ── STUDIO ─────────────────────────────────────────────────────────────────── */
.studio { background: var(--bg-studio); }
.studio-inner {
  display: grid; grid-template-columns: 5fr 8fr;
  gap: 88px; align-items: center;
}
.studio-media {
  width: 100%; max-width: 300px; aspect-ratio: 3/4;
  overflow: hidden; border: 1px solid rgba(255,255,255,0.04);
}
.studio-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  transform: none;
  filter: none;
}
.studio-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.5vw, 92px);
  font-weight: 400; line-height: 1.0; letter-spacing: -0.03em;
  margin-bottom: 24px; margin-top: 8px;
}
.studio-copy > p { font-size: 16px; color: var(--warm); line-height: 1.75; margin-bottom: 14px; }
.studio-subline { font-size: 13px; color: rgba(212,208,198,0.68); line-height: 1.7; margin-bottom: 44px; font-style: italic; }
.studio-attrs {
  display: flex; flex-direction: column; gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 36px;
}
.attr { display: flex; align-items: center; gap: 16px; }
.attr-rule { color: var(--teal); font-size: 11px; flex-shrink: 0; }
.attr span.mono { font-size: 11px; letter-spacing: 0.1em; color: var(--stone); }

/* ── ENGAGEMENTS ────────────────────────────────────────────────────────────── */
.engagements { background: var(--bg-engagements); color: var(--night); }
.engagements .section-head h2 { color: var(--night); font-family: var(--font-display); }
.engagements .section-head > p { color: #5a5853; }
.engagements .section-no { color: #8a8780; }
.eng-note { color: #7a7873; margin-top: 12px; font-size: 11px; line-height: 1.7; text-transform: none; letter-spacing: 0.04em; }
.eng-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(0,0,0,0.1);
}
/* All cards: bone start, dark fill on hover */
.engagement {
  position: relative;
  padding: 48px 40px;
  border-right: 1px solid rgba(0,0,0,0.1);
  background: var(--bg-caps);
  color: var(--night);
  overflow: hidden;
  transition: color 0.45s ease;
}
.engagement:last-child { border-right: none; }

/* Dark fill — slides up from bottom on hover */
.engagement::after {
  content: ''; position: absolute; inset: 0;
  background: var(--night);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
  z-index: 0;
}
.engagement:hover::after { transform: translateY(0); }

/* All text content above the fill */
.eng-no, .eng-name, .eng-desc, .eng-list { position: relative; z-index: 1; }

/* Color transitions on hover */
.engagement:hover { color: var(--bone); }
.engagement:hover .eng-no { color: var(--teal); }
.engagement:hover .eng-name { color: var(--bone); }
.engagement:hover .eng-desc { color: var(--stone); }
.engagement:hover .eng-list { color: var(--stone); }
.engagement:hover .eng-list li::before { color: var(--teal); }

/* Signature (center) card — distinguished by bolder name, not permanent dark bg */
.engagement--signature .eng-name { font-size: 34px; }
.engagement--signature .eng-no { color: #6b6860; }

.eng-no { font-size: 10px; color: #9a9890; margin-bottom: 16px; letter-spacing: 0.12em; }
.eng-name {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 400; letter-spacing: -0.01em; margin-bottom: 20px;
}
.eng-desc { font-size: 14px; line-height: 1.65; color: #555; margin-bottom: 32px; }
.eng-list {
  display: flex; flex-direction: column; gap: 10px;
  font-size: 11px; color: #6b6860;
  letter-spacing: 0.04em; text-transform: none; font-weight: 400;
}
.eng-list li { display: flex; align-items: baseline; gap: 10px; }
.eng-list li::before { content: '—'; color: #bbb; flex-shrink: 0; font-size: 10px; }
.engagements-next {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 48px;
  padding: 34px 40px; border: 1px solid rgba(0,0,0,0.1); border-top: 0;
  background: #e9e5dc;
}
.engagements-next p { max-width: 680px; color: #5a5853; font-size: 14px; line-height: 1.7; }
.engagements-next a {
  display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  min-height: 48px; padding: 13px 18px; color: var(--night);
  border: 1px solid rgba(6,8,7,0.18); background: rgba(255,255,255,0.28);
  box-shadow: inset 0 1px rgba(255,255,255,0.65);
  transition: transform 0.35s var(--ease), color 0.35s, border-color 0.35s, background 0.35s, box-shadow 0.35s;
}
.engagements-next a span { color: #258d84; }
.engagements-next a:hover {
  transform: translateY(-2px); color: #124f4b; border-color: #258d84; background: rgba(255,255,255,0.58);
  box-shadow: 0 14px 30px rgba(6,8,7,0.1), inset 0 1px rgba(255,255,255,0.85);
}
.engagements-next a:active { transform: translateY(0) scale(0.985); }

/* ── CLOSE ──────────────────────────────────────────────────────────────────── */
.close-section {
  position: relative; overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.close-video-wrap { position: absolute; inset: 0; }
.close-video {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: brightness(0.28) saturate(0.65);
}
.close-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(6,8,7,0.68), rgba(6,8,7,0.68)),
    radial-gradient(ellipse 70% 60% at 20% 50%, rgba(29,207,191,0.06) 0%, transparent 70%);
}
.close-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, .72fr);
  align-items: center; gap: clamp(60px, 9vw, 150px);
}
.close-headline {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 108px);
  font-weight: 400; line-height: 1.0; letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.close-sub { font-size: 18px; color: var(--warm); line-height: 1.65; margin-bottom: 52px; }
.contact-intro { min-width: 0; }
.contact-direct { display: grid; grid-template-columns: repeat(2, max-content); align-items: start; gap: 12px 32px; margin-bottom: 34px; }
.contact-direct p { grid-column: 1 / -1; width: 100%; color: var(--stone); font-size: 14px; }
.contact-direct .contact-channel,
.contact-guided {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; color: var(--bone); font: 500 14px/1.4 var(--font-sans);
}
.contact-direct .contact-channel { flex-direction: column; align-items: flex-start; gap: 2px; }
.contact-direct .contact-method { color: var(--interaction-gold); font-size: 12px; }
.contact-direct .contact-channel strong { color: var(--bone); font-size: 13px; font-weight: 400; }
.contact-direct .contact-channel a { min-height: 0; color: inherit; }
.contact-direct .contact-channel a:hover { color: var(--teal); }
.contact-guided span { color: var(--interaction-gold); transition: transform .32s var(--ease); }
.contact-guided:hover span { transform: translateX(5px); }
.contact-guided { color: var(--interaction-gold); }
.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px;
  padding: clamp(28px, 4vw, 48px); border: 1px solid rgba(255,255,255,.13);
  background: rgba(6,8,7,.72); box-shadow: 0 28px 80px rgba(0,0,0,.24);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.contact-field { min-width: 0; }
.contact-submit,
.contact-status { grid-column: 1 / -1; }
.contact-field label {
  display: flex; justify-content: space-between; gap: 12px; margin-bottom: 9px;
  color: var(--bone); font: 500 12px/1.4 var(--font-sans);
}
.contact-field label span { color: var(--warm); font: 400 9px/1.5 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.contact-field input,
.contact-field textarea {
  width: 100%; border: 0; border-bottom: 1px solid rgba(255,255,255,.24);
  border-radius: 0; padding: 11px 0 13px; background: transparent; color: var(--bone);
  font: 400 16px/1.5 var(--font-sans); outline: none; resize: vertical;
  transition: border-color .25s ease;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder { color: rgba(185,181,172,.48); }
.contact-field input:focus,
.contact-field textarea:focus { border-color: var(--interaction-gold); }
.contact-submit {
  position: relative; justify-self: start; border: 0; padding: 9px 0 11px;
  background: transparent; color: var(--interaction-gold); cursor: pointer;
  font: 500 16px/1.4 var(--font-sans);
}
.contact-submit::after {
  content: ''; position: absolute; left: 0; bottom: 3px; width: 42px; height: 1px;
  background: currentColor; transition: width .32s var(--ease);
}
.contact-submit:hover::after { width: 100%; }
.contact-submit:disabled { cursor: wait; opacity: .62; }
.contact-status { margin: -8px 0 0; color: var(--warm); font-size: 12px; line-height: 1.6; }
.contact-status.is-success {
  margin-top: 2px;
  padding: 16px 18px;
  border-left: 2px solid #9ad7c5;
  background: rgba(154,215,197,.08);
  color: #c9efe4;
  font-size: 14px;
  font-weight: 500;
}
.contact-status.is-error {
  margin-top: 2px;
  padding: 14px 16px;
  border-left: 2px solid #f1a899;
  background: rgba(241,168,153,.08);
  color: #ffd0c7;
  font-size: 13px;
}
.contact-form.is-submitted .contact-field input { border-color: rgba(154,215,197,.34); }
.contact-form.is-submitted .contact-submit { color: #9ad7c5; cursor: default; opacity: 1; }
.form-honeypot {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}

/* ── FOOTER ─────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--deep);
  border-top: 1px solid rgba(29,207,191,0.05);
  padding: 44px var(--pad-x);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--warm); transition: color 0.2s;
}
.footer-links a:hover { color: var(--teal); }
.footer-links .footer-contact-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
}
.footer-contact-link span { color: var(--dim); font-size: 9px; }
.footer-contact-link strong { color: var(--warm); font-size: 10px; font-weight: 500; letter-spacing: 0.02em; }
.footer-contact-link a { min-height: 0; padding: 0; color: inherit; }
.footer-contact-link a:hover { color: var(--teal); }
.footer-copy { font-size: 10px; letter-spacing: 0.06em; color: var(--warm); opacity: 0.72; }

/* ── REVEALS ────────────────────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: flex; }

  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 56px; }

  .contrast { grid-template-columns: 1fr; }
  .contrast-panel { min-height: 60vw; }
  .contrast-spine {
    flex-direction: row; writing-mode: horizontal-tb;
    padding: 24px var(--pad-x); background: var(--surface);
    border: none;
    border-top: 1px solid rgba(29,207,191,0.06);
    border-bottom: 1px solid rgba(29,207,191,0.06);
  }
  .contrast-spine span, .contrast-spine strong { writing-mode: horizontal-tb; font-size: 11px; }

  .project-grid { grid-template-columns: 1fr; }
  .project { aspect-ratio: 4/3; }
  .project-tfd {
    grid-column: auto;
    aspect-ratio: 4/3;
  }

  .caps-grid { grid-template-columns: 1fr 1fr; }
  .thesis-intro { grid-template-columns: 1fr; gap: 28px; }
  .thesis-intro .section-no { grid-column: auto; }
  .thesis-intro > p:last-child { max-width: 620px; }
  .thesis-split { margin-top: 64px; }
  .thesis-side { min-height: 330px; padding: 36px; }
  .caps-cta { align-items: flex-start; flex-direction: column; }

  .under-inner { grid-template-columns: 1fr; gap: 48px; }
  .under-video { aspect-ratio: 16/9; }

  .systems-body { grid-template-columns: 1fr; gap: 48px; }

  .process-list { grid-template-columns: 1fr; }
  .process-step { padding-right: 0; }
  .engagements-next { grid-template-columns: 1fr; gap: 24px; }

  .studio-inner { grid-template-columns: 1fr; gap: 48px; }
  .studio-media { max-width: 240px; }
  .studio-media img { aspect-ratio: 3/4; }

  .eng-grid { grid-template-columns: 1fr; }
  .engagement { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.1); }
  .engagement--featured { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .engagement:last-child { border-bottom: none; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .close-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-form { width: min(100%, 720px); }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 38px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero-index { display: none; }
  .caps-grid { grid-template-columns: 1fr; }
  .under-split { grid-template-columns: 1fr; gap: 32px; }
  .panel-copy { left: 24px; right: 24px; bottom: 28px; }
  .close-headline { font-size: 40px; }
  .systems-arch { min-width: 0; }
}

/* Refined narrow-layout pass */
@media (max-width: 1120px) {
  :root { --pad-x: clamp(28px, 4vw, 52px); }
  .hero-copy { max-width: 760px; }
  .systems-body { gap: 40px; }
  .systems-arch { min-width: 250px; }
  .studio-inner { gap: 56px; }
}

@media (max-width: 960px) {
  :root { --pad-section: clamp(84px, 12vw, 116px); }
  .section-head > p { max-width: 620px; }
  .hero { padding-bottom: 68px; }
  .hero-copy { max-width: 700px; }
  .hero h1 { font-size: clamp(48px, 8.5vw, 76px); }
  .hero-index { bottom: 24px; }
  .contrast-panel { min-height: clamp(420px, 68vw, 620px); }
  .project-grid { gap: 1px; }
  .project { aspect-ratio: 16/10; }
  .systems-body { gap: 40px; margin-top: 52px; }
  .systems-arch { min-width: 0; }
  .arch-row { grid-template-columns: 92px minmax(70px, 1fr) minmax(120px, 1fr); }
  .studio-media { max-width: 300px; }
}

@media (max-width: 640px) {
  :root { --pad-x: 20px; --pad-section: 76px; }
  body { font-size: 15px; }
  .nav { height: 58px; gap: 12px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 11px; }
  .brand-name small { font-size: 9px; }
  .menu-toggle { margin-right: -8px; }
  .mobile-nav { align-items: flex-start; padding: 96px var(--pad-x) 48px; gap: 0; }
  .mobile-nav a {
    width: 100%; padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-size: 12px;
  }
  .section-head { gap: 16px; margin-bottom: 42px; }
  .section-head h2 { font-size: clamp(34px, 10.5vw, 46px); }
  .section-head > p { font-size: 14px; line-height: 1.65; }
  .section-no { margin-bottom: 12px; }
  .hero {
    min-height: max(680px, 100svh);
    padding: 92px var(--pad-x) 48px;
    justify-content: center;
  }
  .hero-video { object-position: 52% center; }
  .hero-shade { background: linear-gradient(180deg, rgba(6,8,7,0.52) 0%, rgba(6,8,7,0.38) 35%, rgba(6,8,7,0.9) 82%, var(--night) 100%); }
  .hero-teal-wash { background: radial-gradient(ellipse 110% 55% at 10% 42%, rgba(29,207,191,0.1), transparent 72%); }
  .eyebrow { margin-bottom: 20px; font-size: 9px; letter-spacing: 0.12em; }
  .hero h1 { font-size: clamp(43px, 13vw, 58px); line-height: 0.98; margin-bottom: 26px; }
  .hero-sub { font-size: 9px; line-height: 1.8; letter-spacing: 0.12em; margin-bottom: 34px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 20px; }
  .belief-band { padding: 82px var(--pad-x); }
  .belief-band h2 { font-size: clamp(38px, 11.5vw, 50px); margin-bottom: 26px; }
  .belief-band > p { font-size: 15px; }
  .contrast-panel { min-height: 68svh; }
  .contrast-spine { justify-content: flex-start; gap: 6px; padding: 18px var(--pad-x); }
  .contrast-spine span, .contrast-spine strong { font-size: 10px; letter-spacing: 0.09em; }
  .contrast-law { padding: 26px var(--pad-x); font-size: 14px; text-align: left; }
  .project { aspect-ratio: 4/5; min-height: 500px; }
  .project-tfd { aspect-ratio: 4/5; }
  .project-top { top: 18px; left: 20px; right: 20px; }
  .project-info { padding: 24px 20px; }
  .project-info h3 { font-size: clamp(34px, 11vw, 44px); }
  .project-thesis { max-width: 31ch; margin-bottom: 16px; }
  .proof-tags { gap: 4px; }
  .proof-tags b { padding: 5px 7px; font-size: 10px; }
  .cap { padding: 34px 24px; }
  .thesis-intro h2 { font-size: clamp(39px, 11.5vw, 51px); }
  .thesis-intro > p:last-child { font-size: 14px; }
  .thesis-split { grid-template-columns: 1fr; margin-top: 48px; }
  .thesis-side { min-height: 300px; padding: 30px 24px; }
  .thesis-side + .thesis-side { border-left: 0; border-top: 1px solid rgba(255,255,255,0.08); }
  .thesis-close { font-size: 10px; text-align: left; }
  .caps-cta { padding: 28px 24px; gap: 24px; }
  .caps-start { width: 100%; justify-content: space-between; line-height: 1.5; }
  .under-inner { gap: 36px; }
  .under-video { aspect-ratio: 4/3; }
  .under-content h2 { font-size: clamp(37px, 11vw, 48px); }
  .under-intro { font-size: 14px; margin-bottom: 34px; }
  .systems-body { margin-top: 40px; gap: 28px; }
  .systems-screens { gap: 8px; }
  .systems-preview-label, .systems-badge { bottom: 8px; left: 8px; font-size: 10px; padding: 5px 7px; }
  .arch-row { grid-template-columns: 62px minmax(38px, 1fr) minmax(104px, 1.4fr); gap: 10px; padding: 17px 14px; }
  .arch-input, .arch-output { font-size: 10px; letter-spacing: 0.035em; }
  .process-list { margin-top: 36px; }
  .process-step { grid-template-columns: 34px 1fr; gap: 16px; padding: 28px 18px 28px 0; }
  .step-body p { font-size: 13px; }
  .approach-principle { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; padding-top: 28px; }
  .studio-inner { gap: 38px; }
  .studio-media { max-width: none; width: min(72vw, 300px); }
  .studio-copy h2 { font-size: clamp(50px, 16vw, 68px); }
  .studio-copy > p { font-size: 14px; }
  .studio-attrs { padding-top: 28px; }
  .engagement { padding: 36px 24px; }
  .engagement--signature .eng-name { font-size: 31px; }
  .eng-note br { display: none; }
  .engagements-next { padding: 28px 24px; }
  .engagements-next a { align-items: flex-start; justify-content: space-between; line-height: 1.5; }
  .close-headline { font-size: clamp(42px, 13vw, 56px); }
  .close-sub { font-size: 15px; margin-bottom: 36px; }
  .footer { padding: 36px var(--pad-x); }
  .footer-links { gap: 0 18px; }
  .footer-links a { padding: 6px 0; }
}

@media (max-width: 380px) {
  :root { --pad-x: 16px; }
  .hero h1 { font-size: 40px; }
  .project { min-height: 470px; }
  .arch-row { grid-template-columns: 58px minmax(30px, 1fr) minmax(92px, 1.35fr); padding-inline: 11px; }
  .proof-tags b:last-child { display: none; }
}

/* Production mobile and thin-width finish */
@media (max-width: 960px) {
  .nav {
    padding-left: max(var(--pad-x), env(safe-area-inset-left));
    padding-right: max(var(--pad-x), env(safe-area-inset-right));
  }
  .systems-body { margin-top: 0; align-items: start; }
  .systems-copy { display: block; }
  .systems .section-head { margin-bottom: 36px; }
  .systems-screens { order: 2; gap: clamp(20px, 4vw, 32px); }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (max-width: 640px) {
  body { font-weight: 400; }
  .mono { font-size: 10px; letter-spacing: 0.085em; }
  .nav {
    height: calc(58px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    background: linear-gradient(to bottom, rgba(6,8,7,0.72), rgba(6,8,7,0));
  }
  .nav.is-scrolled, .menu-open .nav { background: rgba(6,8,7,0.96); }
  .menu-toggle { margin-right: -6px; }
  .mobile-nav {
    padding: calc(78px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  }
  .mobile-nav a { min-height: 58px; padding-block: 12px; }
  .mobile-nav a:last-child { min-height: 52px; }

  .section-head { margin-bottom: 38px; }
  .section-head h2 { line-height: 1.04; }
  .section-head > p { font-size: 15px; line-height: 1.72; }

  .hero {
    min-height: max(660px, 100svh);
    padding-top: calc(92px + env(safe-area-inset-top));
    padding-bottom: max(44px, env(safe-area-inset-bottom));
    justify-content: flex-end;
  }
  .eyebrow { font-size: 10px; line-height: 1.5; }
  .hero h1 { font-size: clamp(42px, 13vw, 58px); line-height: 0.99; }
  .hero-sub { max-width: 34ch; font-size: 10px; line-height: 1.75; letter-spacing: 0.11em; }
  .hero-actions { width: 100%; gap: 16px; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
  .hero-actions .text-link { min-height: 44px; padding-block: 11px 8px; }
  .hero-index { display: none; }

  .contrast-panel { min-height: clamp(460px, 62svh, 580px); }
  .panel-copy { left: 22px; right: 22px; bottom: 26px; }
  .panel-copy span.mono { opacity: 1; }
  .panel-copy p { font-size: 15px; }
  .contrast-spine { min-height: 52px; align-items: center; }

  .belief-band h2, .belief-band > p, .belief-band .label-dim {
    max-width: 620px; margin-left: 0; margin-right: 0; text-align: left;
  }
  .belief-band > p { line-height: 1.75; color: var(--stone); }

  .project { min-height: clamp(470px, 132vw, 560px); }
  .project-info { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .project-thesis { font-size: 14px; line-height: 1.55; }
  .proof-tags b { min-height: 28px; display: inline-flex; align-items: center; font-size: 10px; line-height: 1.25; }

  .thesis-intro > p:last-child, .thesis-side span { font-size: 15px; line-height: 1.75; }
  .thesis-close { font-size: 10px; line-height: 1.7; }
  .cap-line { font-size: 15px; line-height: 1.65; }
  .cap-list { font-size: 12px; line-height: 1.55; }
  .caps-cta > div > span { font-size: 15px; line-height: 1.6; }

  .under-intro { font-size: 15px; line-height: 1.75; }
  .under-list { font-size: 12px; line-height: 1.6; }
  .under-col-label { font-size: 10px; }
  .under-link { width: 100%; justify-content: space-between; }

  .systems .section-head { gap: 20px; margin-bottom: 30px; }
  .systems .section-head > p { color: var(--stone); }
  .systems-body { gap: 32px; margin-top: 0; }
  .systems-preview-label, .systems-badge { font-size: 10px; line-height: 1.35; padding: 6px 8px; }
  .arch-row { min-height: 58px; }
  .arch-input, .arch-output { font-size: 10px; line-height: 1.4; }

  .step-body h3 { font-size: 25px; }
  .step-body p { font-size: 14px; line-height: 1.75; }
  .approach-principle strong { font-size: clamp(30px, 9vw, 42px); }

  .studio-copy > p { font-size: 15px; line-height: 1.75; }
  .studio-subline { font-size: 14px; color: var(--stone); }
  .attr { align-items: flex-start; }
  .attr span.mono { font-size: 10px; line-height: 1.55; }

  .eng-desc { font-size: 15px; line-height: 1.72; }
  .eng-list { font-size: 12px; line-height: 1.55; }
  .engagements-next p { font-size: 15px; }
  .engagements-next a { width: 100%; min-height: 52px; }

  .close-inner { min-height: 0; display: grid; padding-top: 72px; padding-bottom: 72px; }
  .close-sub { color: var(--stone); line-height: 1.7; }
  .close-inner .btn { width: 100%; justify-content: space-between; }
  .contact-form { grid-template-columns: 1fr; gap: 22px; padding: 24px 20px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .contact-submit,
  .contact-status { grid-column: 1; }
  .contact-direct { grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-bottom: 26px; }
  .contact-submit { min-height: 48px; }

  .footer { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
  .footer-inner { width: 100%; gap: 20px; }
  .footer-links { display: grid; width: 100%; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .footer-links a { min-height: 44px; font-size: 10px; }
  .footer-copy { line-height: 1.6; }
}

@media (max-width: 380px) {
  .brand-name small { display: none; }
  .hero h1 { font-size: clamp(38px, 12.5vw, 44px); }
  .project { min-height: 460px; }
  .proof-tags b:last-child { display: inline-flex; }
  .arch-row { grid-template-columns: 54px minmax(24px, 1fr) minmax(88px, 1.45fr); gap: 8px; }
  .systems-preview-label { max-width: calc(100% - 16px); }
  .engagement, .caps-cta, .engagements-next { padding-inline: 20px; }
}

@media (max-height: 620px) and (orientation: landscape) {
  .hero { min-height: 620px; padding-top: 96px; padding-bottom: 52px; }
  .hero h1 { font-size: clamp(42px, 7.5vw, 64px); }
  .hero-sub { margin-bottom: 24px; }
}

@media (prefers-contrast: more) {
  :root { --warm: #b9b5ac; }
  .project-top, .project-type, .proof-tags b, .footer-copy { opacity: 1; }
  .project-frosted { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
}

@media (forced-colors: active) {
  .grain, .page-curtain, .cursor-glow, .project-frosted, .project-overlay,
  .project-glass, .hero-shade, .hero-teal-wash { display: none; }
  .btn, .nav-cta, .caps-start, .under-link, .engagements-next a { border: 1px solid ButtonText; }
}

/* Touch devices cannot reveal a hover-only second state. Keep the work visible. */
@media (hover: none), (pointer: coarse) {
  .project { transform: none; }
  .project-frosted {
    opacity: 0.5;
    backdrop-filter: blur(4px) saturate(0.94) brightness(0.94);
    -webkit-backdrop-filter: blur(4px) saturate(0.94) brightness(0.94);
  }
  .project-thesis, .project-proof { opacity: 1; transform: none; }
  .project-view { opacity: 1; }
  .project-live-dot { opacity: 0.85; }
  .project-type { color: var(--teal); opacity: 1; }
  .project-glass { opacity: 0.52; transform: none; }
  .engagement::after { display: none; }
}

/* ── CURSOR GLOW ─────────────────────────────────────────────────────────────── */
/* Ambient radial gradient following the cursor — not a cursor replacement */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 600px; height: 600px;
  margin-top: -300px; margin-left: -300px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    circle at center,
    rgba(29,207,191,0.045) 0%,
    rgba(29,207,191,0.015) 35%,
    transparent 70%
  );
  will-change: transform;
  transition: opacity 0.4s ease;
}

@media (max-width: 760px) {
  .contrast-law { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .decision-teaser .section-head { display: grid; grid-template-columns: 1fr; gap: 26px; }
  .decision-teaser .section-head > a { justify-self: start; }
  .decision-grid { grid-template-columns: 1fr; }
  .decision-grid article { min-height: 0; padding: 24px; }
  .decision-grid p { margin-top: 38px; }
  .project-proof { grid-template-columns: 1fr; gap: 8px; }
}

/* ── REDUCED MOTION ─────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .hero-video, .hero-el, .arch-dot, .project-live-dot, .project-pan { animation: none !important; }
  .hero-video { transform: scale(1); }
  .hero-el { opacity: 1; transform: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .project { transform: none; transition: none; }
  .project-frosted { transition: opacity 0.01s; }
  .project-still, .project-glass, .project-thesis, .project-proof,
  .panel-media, .proof-tags b, .systems-media-shine,
  .engagement::after { transition: none; }
  .btn, .nav-cta, .caps-start, .under-link, .engagements-next a, .text-link,
  .btn span, .nav-cta span, .caps-start span, .under-link span,
  .engagements-next a span, .text-link span { transition: none; }
  .btn:hover, .nav-cta:hover, .caps-start:hover, .under-link:hover,
  .engagements-next a:hover { transform: none; }
  .project-thesis, .project-proof { opacity: 1; transform: none; }
  .project-glass { opacity: 0.6; transform: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .page-curtain, .cursor-glow { display: none; }
}

/* ── LOQAL INTERACTION LANGUAGE ───────────────────────────────────────────────
   The world stays cinematic. The interface behaves like quiet physical type. */
:root { --interaction-gold: #D4B576; }

.nav-links a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .015em;
  text-transform: none;
}
.nav-cta,
.btn,
.text-link,
.caps-start,
.under-link,
.engagements-next a {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 9px 0;
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .01em;
  text-transform: none;
  transition: color .32s ease;
}
.nav-cta { color: var(--interaction-gold); font-size: 13px; }
.nav-cta:hover,
.btn:hover,
.text-link:hover,
.caps-start:hover,
.under-link:hover,
.engagements-next a:hover {
  transform: none;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.nav-cta::after,
.btn::after,
.text-link::after,
.caps-start::after,
.under-link::after,
.engagements-next a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: .7;
  transition: width .35s var(--ease), opacity .35s ease;
}
.nav-cta:hover::after,
.btn:hover::after,
.text-link:hover::after,
.caps-start:hover::after,
.under-link:hover::after,
.engagements-next a:hover::after { width: 100%; opacity: 1; }

.hero-actions { gap: clamp(24px, 3vw, 42px); }
.hero-actions .loqal-action-primary {
  color: var(--interaction-gold);
  border-color: transparent;
  text-shadow: 0 0 24px rgba(212,181,118,.08);
}
.hero-actions .loqal-action-secondary {
  color: rgba(242,239,231,.76);
  border-color: transparent;
  text-shadow: none;
}
.caps-start,
.engagements-next a { color: #72531e; }
.caps-start span,
.engagements-next a span { color: currentColor; }
.under-link { margin-top: 36px; color: var(--interaction-gold); }
.under-link span { color: currentColor; }
.close-section .btn { color: var(--interaction-gold); }
.contrast-law a.loqal-action,
.decision-teaser .section-head > a.loqal-action {
  position: relative;
  width: max-content;
  min-height: 46px;
  padding: 9px 0;
  border: 0;
  color: var(--interaction-gold);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .01em;
  text-transform: none;
  white-space: normal;
}
.footer-links a {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .015em;
  text-transform: none;
}
.footer-links .loqal-action { min-height: 44px; padding: 6px 0; color: var(--interaction-gold); }
.loqal-action:focus-visible,
.nav-cta:focus-visible,
.btn:focus-visible,
.text-link:focus-visible,
.caps-start:focus-visible,
.under-link:focus-visible,
.engagements-next a:focus-visible {
  outline: 2px solid var(--interaction-gold);
  outline-offset: 5px;
}

.mobile-nav a {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .015em;
  text-transform: none;
}
.mobile-nav a:last-child {
  position: relative;
  width: max-content;
  min-height: 52px;
  margin-top: 18px;
  padding: 10px 0;
  border: 0;
  color: var(--interaction-gold);
}
.mobile-nav a:last-child::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 32px;
  height: 1px;
  background: currentColor;
  transition: width .35s var(--ease);
}
.mobile-nav a:last-child:hover::after { width: 100%; }

@media (max-width: 640px) {
  .hero-actions { gap: 8px; }
  .hero-actions .btn,
  .hero-actions .text-link { width: max-content; min-height: 45px; padding: 9px 0; font-size: 15px; }
  .hero-contact-direct { max-width: 340px; gap: 7px 18px; margin-top: 10px; }
  .hero-contact-direct p { font-size: 11px; }
  .hero-contact-direct .contact-channel { min-height: 38px; }
  .hero-contact-direct .contact-channel > span { font-size: 9px; }
  .hero-contact-direct .contact-channel > strong { font-size: 10px; }
  .caps-start,
  .under-link,
  .engagements-next a { width: max-content; max-width: 100%; min-height: 48px; padding: 9px 0; }
}

@media (forced-colors: active) {
  .nav-cta,
  .btn,
  .caps-start,
  .under-link,
  .engagements-next a { border: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-cta::after,
  .btn::after,
  .text-link::after,
  .caps-start::after,
  .under-link::after,
  .engagements-next a::after,
  .mobile-nav a:last-child::after { transition: none; }
}

/* Section 07 — keep the portrait in the composition at every narrow width. */
@media (max-width: 960px) {
  .studio-inner {
    grid-template-columns: minmax(180px, .62fr) minmax(0, 1.38fr);
    gap: clamp(28px, 5vw, 52px);
    align-items: start;
  }
  .studio-media {
    width: 100%;
    max-width: none;
    align-self: start;
  }
  .studio-copy { min-width: 0; }
  .studio-copy h2 { font-size: clamp(48px, 8vw, 72px); }
  .studio-attrs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
  }
}

@media (max-width: 640px) {
  .studio {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .studio-inner {
    grid-template-columns: minmax(108px, 34vw) minmax(0, 1fr);
    grid-template-rows: auto auto auto auto auto;
    column-gap: 20px;
    row-gap: 0;
    align-items: start;
  }
  .studio-media {
    grid-column: 1;
    grid-row: 1 / span 3;
    aspect-ratio: 3 / 4;
  }
  .studio-copy { display: contents; }
  .studio-copy .section-no {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 0 0 10px;
  }
  .studio-copy h2 {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin: 0;
    font-size: clamp(36px, 10.5vw, 50px);
    line-height: .96;
  }
  .studio-copy > p:not(.section-no):not(.studio-subline) {
    grid-column: 1 / -1;
    grid-row: 4;
    margin: 28px 0 0;
    font-size: 14px;
    line-height: 1.68;
  }
  .studio-subline {
    grid-column: 1 / -1;
    grid-row: 5;
    margin: 14px 0 0;
    font-size: 13px;
    line-height: 1.6;
  }
  .studio-attrs {
    grid-column: 2;
    grid-row: 3;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
  }
  .studio .attr { gap: 8px; }
  .studio .attr span.mono {
    font-size: 9px;
    line-height: 1.45;
    letter-spacing: .065em;
  }
}

@media (max-width: 380px) {
  .studio-inner {
    grid-template-columns: 96px minmax(0, 1fr);
    column-gap: 16px;
  }
  .studio-copy h2 { font-size: 35px; }
  .studio-copy > p:not(.section-no):not(.studio-subline) { margin-top: 24px; font-size: 13px; }
  .studio-subline { font-size: 12px; }
  .studio-attrs { gap: 7px; margin-top: 14px; padding-top: 13px; }
  .studio .attr-rule { display: none; }
}

/* Compact media rhythm — proof should land quickly without becoming a full-page slide. */
@media (max-width: 960px) {
  .contrast,
  .project-grid {
    width: min(calc(100% - var(--pad-x) - var(--pad-x)), 780px);
    margin-inline: auto;
  }
  .contrast-panel { min-height: clamp(360px, 55vw, 500px); }
  .project-grid { gap: 12px; }
  .project,
  .project-tfd {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 640px) {
  :root { --pad-section: 68px; }
  .contrast,
  .project-grid { width: calc(100% - var(--pad-x) - var(--pad-x)); }
  .contrast-panel { min-height: clamp(330px, 92vw, 420px); }
  .project-grid { gap: 10px; }
  .project,
  .project-tfd {
    min-height: clamp(330px, 92vw, 410px);
    aspect-ratio: 4 / 3;
  }
  .project-info { padding: 22px 18px; }
  .project-info h3 { font-size: clamp(31px, 9.5vw, 40px); }
  .under-video { aspect-ratio: 16 / 10; }
}

@media (max-width: 380px) {
  .project,
  .project-tfd { min-height: 320px; }
}

/* Section 05: systems are supporting proof, not full-viewport showcases. */
@media (max-width: 960px) {
  .systems { padding-top: 76px; padding-bottom: 76px; }
  .systems-body { gap: 34px; }
  .systems-screens {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 760px);
    gap: 12px;
    justify-content: start;
    align-items: start;
  }
  .systems-media,
  .systems-preview { align-self: start; }
  .systems-media img,
  .systems-preview img {
    width: 100%;
    aspect-ratio: 1.5 / 1;
    object-fit: cover;
    object-position: top;
  }
  .systems-badge,
  .systems-preview-label {
    right: 8px;
    max-width: calc(100% - 16px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .systems { padding-top: 64px; padding-bottom: 64px; }
  .systems-body { gap: 28px; }
  .systems .section-head { margin-bottom: 28px; }
  .systems-screens { gap: 8px; }
  .systems-badge,
  .systems-preview-label {
    bottom: 7px;
    left: 7px;
    right: 7px;
    padding: 5px 6px;
    font-size: 8px;
  }
}

/* Section 08: compact engagement summaries for elevator-pitch pacing. */
@media (max-width: 960px) {
  .engagements { padding-top: 76px; padding-bottom: 76px; }
  .eng-grid { gap: 0; }
  .engagement {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(220px, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(26px, 5vw, 52px);
    padding: 28px 30px;
  }
  .eng-no { grid-column: 1; grid-row: 1; margin-bottom: 10px; }
  .eng-name { grid-column: 1; grid-row: 2; margin-bottom: 14px; }
  .eng-desc { grid-column: 1; grid-row: 3; margin-bottom: 0; }
  .eng-list {
    grid-column: 2; grid-row: 1 / -1;
    align-self: center;
    display: grid; grid-template-columns: 1fr; gap: 10px;
  }
  .engagements-next { gap: 20px; padding: 24px 30px; }
}

@media (max-width: 640px) {
  .engagements { padding-top: 64px; padding-bottom: 64px; }
  .engagements .section-head { margin-bottom: 30px; }
  .engagement {
    display: block;
    padding: 22px 20px 24px;
  }
  .eng-no { margin-bottom: 8px; }
  .eng-name,
  .engagement--signature .eng-name { margin-bottom: 10px; font-size: 27px; }
  .eng-desc { margin-bottom: 18px; font-size: 14px; line-height: 1.55; }
  .eng-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    font-size: 10px;
    line-height: 1.45;
  }
  .eng-list li { gap: 7px; }
  .engagements-next {
    gap: 14px;
    padding: 20px;
  }
  .engagements-next p { margin: 0; font-size: 14px; line-height: 1.55; }
  .engagements-next a { min-height: 44px; padding-block: 6px; }
}

@media (max-width: 380px) {
  .eng-list { gap-inline: 12px; }
  .engagement { padding-inline: 18px; }
  .engagements-next { padding-inline: 18px; }
}

/* Final narrow rhythm: the hero may be immersive; every proof section must move. */
@media (max-width: 640px) {
  :root { --pad-section: 58px; }
  .belief-band { padding: 62px var(--pad-x); }
  .belief-band h2 { margin-bottom: 20px; }

  .contrast-panel { min-height: clamp(280px, 76vw, 360px); }
  .contrast-law { padding-block: 20px; }

  .decision-teaser { padding-top: 58px; padding-bottom: 58px; }
  .decision-grid article { padding: 20px; }
  .decision-grid p { margin: 28px 0 8px; }

  .cap { padding: 26px 22px; }
  .thesis-split { margin-top: 38px; }
  .thesis-side { min-height: 0; padding: 24px 22px; gap: 40px; }
  .caps-cta { padding: 22px; }

  .under-inner { gap: 28px; }
  .under-list { gap: 8px; }
  .under-link { margin-top: 26px; }

  .systems-arch .arch-row { min-height: 48px; padding-block: 13px; }

  .process-list { margin-top: 28px; }
  .process-step { padding-block: 20px; }
  .approach-principle { margin-top: 30px; padding-top: 22px; }

  .studio { padding-top: 58px; padding-bottom: 58px; }
  .studio-copy > p:not(.section-no):not(.studio-subline) { margin-top: 22px; }

  .engagements { padding-top: 58px; padding-bottom: 58px; }
  .close-inner { padding-top: 60px; padding-bottom: 60px; }
}

/* Viewport containment: portfolio media stays cinematic without widening phones or tablets. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

main,
section,
.section-pad,
.project-grid,
.project,
.project-media {
  min-width: 0;
  max-width: 100%;
}

.project-grid {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
}

@supports not (overflow: clip) {
  html,
  body { overflow-x: hidden; }
}

@media (max-width: 960px) {
  .project-grid {
    width: min(100%, 780px);
    margin-inline: auto;
  }

  .project {
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 961px) {
  .project-tfd {
    aspect-ratio: 16 / 7;
  }
}

@media (max-width: 640px) {
  .contrast,
  .project-grid {
    max-width: calc(100vw - (2 * var(--pad-x)));
  }

  .project {
    contain: layout paint;
  }
}
