/* ─────────────────────────────
   CORE TOKENS
   ───────────────────────────── */
:root {
  --black:        #04060d;
  --deep:         #070914;
  --surface:      #0d1322;
  --surface-2:    #121a2e;
  --border:       rgba(255,255,255,0.06);
  --border-light: rgba(255,255,255,0.12);
  --border-gold:  rgba(61,216,200,0.30);

  /* Names kept for code stability; values shifted from gold → teal/cyan cyber palette */
  --gold:         #3dd8c8;
  --gold-hi:      #7df0ff;
  --gold-dim:     #187f74;
  --gold-glow:    rgba(61,216,200,0.22);

  /* New tokens */
  --teal:         #3dd8c8;
  --cyan:         #7df0ff;
  --blue:         #4f9bff;
  --blue-deep:    #1a4a8e;

  --white:        #f0ede8;
  --soft:         rgba(240,237,232,0.78);
  --muted:        rgba(240,237,232,0.50);
  --quiet:        rgba(240,237,232,0.30);

  --serif: 'Spectral', 'Iowan Old Style', Georgia, serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  --pad-x: clamp(28px, 5vw, 80px);
  --section-y: clamp(96px, 14vh, 180px);
}

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

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--serif);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--gold); color: var(--black); }

/* Custom cursor (desktop only) */
@media (hover: hover) and (pointer: fine) {
  /* System pointer stays visible (hiding it was disorienting); the
     ship glyph is retired and the soft ring trails as an accent. */
  .cursor { display: none; }
  .cursor {
    position: fixed; top:0; left:0;
    width: 22px; height: 22px;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease;
    will-change: transform;
    filter: drop-shadow(0 0 5px rgba(125,240,255,0.55));
  }
  .cursor svg { display: block; width: 100%; height: 100%; }
  .cursor .ship-thrust { opacity: 0; transition: opacity 0.18s ease; }
  .cursor.is-moving .ship-thrust { opacity: 1; }
  .cursor-ring {
    position: fixed; top:0; left:0;
    width: 36px; height: 36px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.25s ease, height 0.25s ease, opacity 0.25s, border-color 0.25s;
    opacity: 0.55;
  }
  .cursor.is-hover  { opacity: 0.55; }
  .cursor-ring.is-hover {
    width: 56px; height: 56px;
    opacity: 0.9;
    border-color: var(--gold-hi);
  }
}
@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-ring { display: none; }
}

/* Subtle film noise */
body::before {
  content:'';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.45;
  mix-blend-mode: overlay;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top:0; left:0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-hi) 60%, var(--gold) 80%, transparent);
  z-index: 600;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(61,216,200,0.45);
  transition: width 0.08s linear;
}

/* ─────────────────────────────
   NAV
   ───────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 26px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: padding .35s ease, background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
nav.scrolled {
  background: rgba(6,7,10,0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--border);
  padding: 16px var(--pad-x);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--white);
  text-decoration: none;
  line-height: 1;
}
.logo-icon {
  height: 1.4em;
  width: auto;
  transform: translateY(-1px);
  filter: drop-shadow(0 0 12px rgba(61,216,200,0.25));
  transition: filter .4s ease, transform .4s ease;
}
.logo:hover .logo-icon { filter: drop-shadow(0 0 18px rgba(125,240,255,0.45)); transform: translateY(-1px) rotate(-2deg); }
.logo-word { color: var(--white); }
.logo-accent { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 44px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  position: relative;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
  padding: 4px 0;
}
.nav-links a::after {
  content:'';
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--gold);
  transition: right 0.4s cubic-bezier(.6,.05,.2,1);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { right: 0; }

.nav-cta {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid var(--border-gold);
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.nav-cta::before {
  content:'';
  position: absolute; inset: 0;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform .35s cubic-bezier(.6,.05,.2,1);
  z-index: -1;
}
.nav-cta:hover { color: var(--black); border-color: var(--gold); }
.nav-cta:hover::before { transform: translateY(0); }


/* ─────────────────────────────
   MENU (button + full-screen overlay) — all screen sizes
   ───────────────────────────── */
.nav-right { display: flex; align-items: center; gap: 18px; }
.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--soft);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .3s, border-color .3s;
}
.menu-toggle:hover,
.menu-toggle:focus-visible { color: var(--white); border-color: var(--border-gold); }
.menu-icon { position: relative; width: 18px; height: 10px; display: inline-block; }
.menu-icon span {
  position: absolute; left: 0; right: 0; height: 1px;
  background: currentColor;
  transition: transform .35s cubic-bezier(.6,.05,.2,1), top .35s cubic-bezier(.6,.05,.2,1);
}
.menu-icon span:first-child { top: 0; }
.menu-icon span:last-child  { top: 9px; }
.menu-open .menu-icon span:first-child { top: 4.5px; transform: rotate(45deg); }
.menu-open .menu-icon span:last-child  { top: 4.5px; transform: rotate(-45deg); }
.menu-open .menu-toggle { color: var(--gold); border-color: var(--border-gold); }

.site-menu {
  position: fixed;
  inset: 0;
  z-index: 490;                      /* under the nav bar so the toggle stays on top */
  display: flex;
  align-items: center;
  padding: 110px var(--pad-x) 48px;
  background:
    radial-gradient(80% 60% at 80% 10%, rgba(14,28,56,0.55), transparent 70%),
    rgba(4,6,13,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
  overflow-y: auto;
}
.site-menu[hidden] { display: flex; }   /* keep layout; visibility drives show/hide */
.menu-open .site-menu { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.site-menu-inner { width: 100%; max-width: 1100px; margin: 0 auto; }
.site-menu-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.site-menu-links li { border-bottom: 1px solid var(--border); }
.site-menu-links a {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: clamp(12px, 2vh, 20px) 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  line-height: 1.1;
  color: var(--white);
  text-decoration: none;
  transform: translateY(12px);
  opacity: 0;
  transition: color .3s, padding-left .35s cubic-bezier(.6,.05,.2,1), transform .5s cubic-bezier(.2,.7,.2,1), opacity .5s ease;
}
.menu-open .site-menu-links a { transform: none; opacity: 1; }
.menu-open .site-menu-links li:nth-child(2) a { transition-delay: .04s; }
.menu-open .site-menu-links li:nth-child(3) a { transition-delay: .08s; }
.menu-open .site-menu-links li:nth-child(4) a { transition-delay: .12s; }
.menu-open .site-menu-links li:nth-child(5) a { transition-delay: .16s; }
.menu-open .site-menu-links li:nth-child(6) a { transition-delay: .20s; }
.site-menu-links a:hover,
.site-menu-links a:focus-visible { color: var(--gold); padding-left: 12px; }
.sm-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  min-width: 2.2em;
}
.site-menu-foot {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
}
.site-menu .site-menu-cta { display: inline-flex; }   /* .nav-cta is hidden on phones; not here */
.site-menu-mail {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-decoration: none;
}
.site-menu-mail:hover { color: var(--white); }
body.menu-lock { overflow: hidden; }
/* Below desktop width the inline links don't fit beside the CTA + menu
   button; the menu carries the navigation instead. */
@media (max-width: 1100px) {
  .nav-links { display: none; }
}
@media (max-width: 768px) {
  .nav-right { gap: 10px; }
  .menu-toggle { padding: 0 11px; height: 38px; }
  .menu-toggle-label { display: none; }   /* icon-only on phones */
}
@media (max-width: 480px) {
  .nav-mobile-cta { display: none !important; }  /* Submit lives in the menu on phones */
  .site-menu { align-items: flex-start; padding-top: 96px; }
}

/* ─────────────────────────────
   HERO
   ───────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad-x) clamp(120px, 18vh, 220px);
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  animation: videoFadeIn 1.6s ease forwards 0.4s;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translateZ(0) scale(1.06);
  filter: brightness(0.74) contrast(1.14) saturate(1.05);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform, opacity;
}
.hero-stars,
.video-break-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 30%, #0a1530 0%, #060a1a 45%, #03050d 100%);
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 80% 12%, rgba(125,240,255,0.10) 0%, transparent 60%),
    linear-gradient(to bottom, rgba(6,7,10,0.55) 0%, rgba(6,7,10,0.30) 35%, rgba(6,7,10,0.78) 75%, rgba(6,7,10,0.98) 100%),
    linear-gradient(to right, rgba(6,7,10,0.55) 0%, transparent 55%);
  z-index: 2;
}
@keyframes videoFadeIn { to { opacity: 1; } }

/* Sun streaks animation */
.hero-streak {
  position: absolute; inset: -10%;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  opacity: 0;
  will-change: transform, opacity;
}
.hero-streak.s1 {
  background: linear-gradient(112deg,
    rgba(125,240,255,0) 0%, rgba(125,240,255,0) 38%,
    rgba(125,240,255,0.05) 44%, rgba(125,240,255,0.20) 49%,
    rgba(125,240,255,0.06) 53%, rgba(125,240,255,0) 60%, rgba(125,240,255,0) 100%);
  transform: translateX(-130%) skewX(-10deg);
  animation: streakSweep 3.2s ease-out 0.4s 1 forwards;
}
.hero-streak.s2 {
  background: linear-gradient(116deg,
    rgba(125,240,255,0) 0%, rgba(125,240,255,0) 52%,
    rgba(125,240,255,0.04) 60%, rgba(125,240,255,0.14) 64%,
    rgba(125,240,255,0.05) 68%, rgba(125,240,255,0) 76%, rgba(125,240,255,0) 100%);
  transform: translateX(-145%) skewX(-8deg);
  animation: streakSweep 3.6s ease-out 0.9s 1 forwards;
}
@keyframes streakSweep {
  0%   { opacity: 0; transform: translateX(-130%) skewX(-10deg); }
  20%  { opacity: 0.45; }
  50%  { opacity: 0.20; }
  100% { opacity: 0; transform: translateX(125%) skewX(-10deg); }
}

/* Vault corner brackets — premium framing */
.vault-frame {
  position: absolute;
  inset: clamp(80px, 12vh, 130px) var(--pad-x) clamp(80px, 10vh, 110px);
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 1.4s ease forwards 1.4s;
}
.vault-frame::before, .vault-frame::after,
.vault-frame > span::before, .vault-frame > span::after {
  content:'';
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid var(--gold);
  opacity: 0.55;
}
.vault-frame::before  { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.vault-frame::after   { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.vault-frame > span::before { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.vault-frame > span::after  { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* Hero copy */
.hero-eyebrow {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.6s;
}
.hero-eyebrow::before {
  content:'';
  width: 36px; height: 1px;
  background: var(--gold);
}
.hero-eyebrow .pulse {
  width: 6px; height: 6px;
  background: var(--gold-hi);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold-hi);
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  position: relative;
  z-index: 4;
  font-size: clamp(2.6rem, 6.8vw, 7.1rem);
  font-weight: 300;
  line-height: 0.94;
  letter-spacing: -0.025em;
  max-width: 13ch;
}
.hero h1 .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.hero h1 .word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: wordRise 1s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero h1 .word:nth-child(1) > span { animation-delay: 0.7s; }
.hero h1 .word:nth-child(2) > span { animation-delay: 0.78s; }
.hero h1 .word:nth-child(3) > span { animation-delay: 0.86s; }
.hero h1 .word:nth-child(4) > span { animation-delay: 0.96s; }
.hero h1 .word:nth-child(5) > span { animation-delay: 1.04s; }
.hero h1 em {
  font-style: italic;
  color: var(--gold);
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes wordRise { to { transform: translateY(0); } }

.hero-sub {
  position: relative;
  z-index: 4;
  margin-top: 40px;
  max-width: 480px;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--soft);
  opacity: 0;
  animation: fadeUp 1s ease forwards 1.3s;
}

.hero-actions {
  position: relative;
  z-index: 4;
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  opacity: 0;
  animation: fadeUp 1s ease forwards 1.55s;
}

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  border: none;
  padding: 16px 32px;
  text-decoration: none;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), background .3s;
  overflow: hidden;
}
.btn-primary::before {
  content:'';
  position: absolute; inset: 0;
  background: var(--gold-hi);
  transform: translateX(-101%);
  transition: transform .45s cubic-bezier(.6,.05,.2,1);
  z-index: 0;
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary .arrow { transition: transform .3s; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
  text-decoration: none;
  padding: 14px 0;
  transition: color 0.3s;
}
.btn-secondary::before {
  content:'';
  width: 32px;
  height: 1px;
  background: currentColor;
  transition: width 0.35s ease, background 0.35s;
}
.btn-secondary:hover { color: var(--gold); }
.btn-secondary:hover::before { width: 56px; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  right: var(--pad-x);
  bottom: 60px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.9s;
}
.scroll-indicator span {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  writing-mode: vertical-rl;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--gold) 35%, var(--gold-hi) 65%, transparent);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content:'';
  position: absolute;
  left: 0; top: -40%;
  width: 100%;
  height: 40%;
  background: var(--gold-hi);
  box-shadow: 0 0 8px var(--gold-hi);
  animation: scrollDot 2.4s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { top: -40%; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ─────────────────────────────
   SECTION FOUNDATIONS
   ───────────────────────────── */
section { position: relative; }

.section-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::before {
  content:'';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

/* Decorative interlock divider — the puzzle/lock motif */
.interlock {
  display: flex;
  justify-content: center;
  padding: 0 var(--pad-x) 0;
  opacity: 0.85;
}
.interlock svg {
  width: 280px;
  max-width: 60vw;
  height: auto;
  overflow: visible;
}
.interlock .lock-piece { stroke: var(--gold); stroke-width: 1; fill: none; opacity: 0.55; }
.interlock .lock-piece.f { fill: rgba(61,216,200,0.05); }

/* Subtle dotted backdrop for sections that need it */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 80%);
}

/* ─────────────────────────────
   STATS
   ───────────────────────────── */
.stats {
  padding: 0 var(--pad-x) clamp(80px, 12vh, 140px);
  margin-top: -60px;
  position: relative;
  z-index: 5;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  background-color: rgba(11,12,16,0.65);
}
.stat-block {
  background: rgba(11,12,16,0.65);
  padding: 56px 44px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease;
}
.stat-block::before {
  content:'';
  position: absolute;
  top: 0; left: 0;
  width: 30%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s cubic-bezier(.6,.05,.2,1);
}
.stat-block:hover { background: var(--surface); }
.stat-block:hover::before { transform: scaleX(1); }

.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.35rem, 4.2vw, 4.2rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-unit { font-size: 0.6em; color: var(--gold); }
.stat-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 14px;
}
.stat-detail {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--quiet);
  margin-top: 6px;
}

/* ─────────────────────────────
   THESIS
   ───────────────────────────── */
.thesis {
  scroll-margin-top: 100px;
  padding: var(--section-y) var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(60px, 8vw, 120px);
  align-items: start;
  border-top: 1px solid var(--border);
}

.thesis-left h2 {
  font-size: clamp(2.05rem, 3.7vw, 3.85rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.thesis-left h2 em {
  font-style: italic;
  color: var(--gold);
}
.thesis-left p {
  margin-top: 32px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--soft);
  max-width: 38ch;
}

.thesis-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.thesis-pillar {
  border-left: 1px solid var(--border-light);
  padding: 24px 0 24px 32px;
  position: relative;
  transition: border-color .3s, padding-left .35s ease;
}
.thesis-pillar::before {
  content:'';
  position: absolute;
  left: -1px; top: 0;
  width: 1px; height: 0;
  background: var(--gold);
  transition: height .5s cubic-bezier(.6,.05,.2,1);
}
.thesis-pillar:hover { padding-left: 36px; }
.thesis-pillar:hover::before { height: 100%; }

.pillar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.pillar-num {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--gold-dim);
  letter-spacing: 0.16em;
  transition: color .3s;
}
.thesis-pillar:hover .pillar-num { color: var(--gold-hi); }
.pillar-line {
  flex: 1;
  height: 1px;
  background: var(--border-light);
  transition: background .3s;
}
.thesis-pillar:hover .pillar-line { background: var(--border-gold); }

.thesis-pillar h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.thesis-pillar p {
  font-size: 0.96rem;
  line-height: 1.78;
  color: var(--soft);
}

/* ─────────────────────────────
   APPROACH (NEW SECTION) — puzzle/lock pieces fitting together
   ───────────────────────────── */
.approach {
  position: relative;
  padding: var(--section-y) var(--pad-x);
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.approach-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(60px, 8vh, 100px);
}
.approach-head .section-label {
  justify-content: center;
}
.approach-head .section-label::before {
  background: linear-gradient(to right, transparent, var(--gold));
}
.approach-head .section-label::after {
  content:'';
  display: block;
  width: 28px;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
}
.approach-head h2 {
  font-size: clamp(2.05rem, 3.7vw, 3.7rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.approach-head h2 em { font-style: italic; color: var(--gold); }

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  position: relative;
}
.approach-card {
  background: var(--deep);
  padding: 56px 44px 48px;
  position: relative;
  overflow: hidden;
  transition: background .4s ease;
}
.approach-card:hover { background: var(--surface-2); }
.approach-card::after {
  content:'';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 220px at 50% 100%, var(--gold-glow), transparent 70%);
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.approach-card:hover::after { opacity: 1; }

.approach-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-gold);
  color: var(--gold);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), border-color .4s, color .4s;
  position: relative;
  z-index: 1;
}
.approach-card:hover .approach-icon {
  transform: rotate(-6deg) scale(1.06);
  border-color: var(--gold-hi);
  color: var(--gold-hi);
}
.approach-icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.4; }

.approach-card h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}
.approach-card p {
  font-size: 0.98rem;
  line-height: 1.78;
  color: var(--soft);
  position: relative;
  z-index: 1;
}
.approach-tag {
  position: absolute;
  top: 24px; right: 24px;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  color: var(--quiet);
  text-transform: uppercase;
  z-index: 1;
}

/* ─────────────────────────────
   PORTFOLIO
   ───────────────────────────── */
.portfolio {
  scroll-margin-top: 100px;
  padding: var(--section-y) var(--pad-x);
  border-top: 1px solid var(--border);
}
.portfolio-header {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: end;
  margin-bottom: clamp(60px, 8vh, 100px);
}
.portfolio-header h2 {
  font-size: clamp(2.05rem, 3.55vw, 3.7rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.portfolio-header h2 em { font-style: italic; color: var(--gold); }
.portfolio-intro {
  justify-self: end;              /* mirror the headline on the right edge */
  font-family: var(--serif);
  font-weight: 400;               /* Spectral 300 is too spindly at this size */
  font-size: clamp(1.15rem, 1.35vw, 1.38rem);
  line-height: 1.6;
  color: rgba(240,237,232,0.86);
  max-width: 44ch;
  padding-left: 24px;
  border-left: 1px solid var(--border-gold);
  text-wrap: pretty;
}

/* Starfield band behind the portfolio header + logo banner (same field
   as the philosophy section, calmer). Bleeds to the section edges. */
.portfolio-band {
  position: relative;
  margin: calc(-1 * var(--section-y)) calc(-1 * var(--pad-x)) 0;
  padding: var(--section-y) var(--pad-x) 1px;
  overflow: hidden;
  isolation: isolate;
}
.portfolio-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;                  /* ambient texture, not a feature */
  background: radial-gradient(90% 70% at 70% 10%, rgba(14,28,56,0.55) 0%, rgba(6,10,26,0.3) 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 62%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 62%, transparent 100%);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.portfolio-card {
  background: var(--deep);
  padding: 50px 44px 44px;
  position: relative;
  overflow: hidden;
  transition: background .4s ease;
  cursor: default;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}
.portfolio-card::before {
  content:'';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--gold-hi), var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s cubic-bezier(.6,.05,.2,1);
}
.portfolio-card::after {
  content:'';
  position: absolute;
  bottom: 0; right: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-hi));
  transition: width .55s cubic-bezier(.6,.05,.2,1) .1s;
}
.portfolio-card:hover { background: var(--surface); }
.portfolio-card:hover::before { transform: scaleX(1); }
.portfolio-card:hover::after { width: 60%; }

/* Card bracket corners — vault aesthetic */
.portfolio-card .bracket {
  position: absolute;
  width: 10px; height: 10px;
  border: 1px solid var(--gold-dim);
  opacity: 0;
  transition: opacity .4s ease, width .4s ease, height .4s ease;
}
.portfolio-card:hover .bracket { opacity: 0.38; }
.portfolio-card .bracket.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.portfolio-card .bracket.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.portfolio-card .bracket.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.portfolio-card .bracket.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

.card-status {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: pulse 2.4s ease-in-out infinite;
}
.status-dot.exited {
  background: #888;
  box-shadow: none;
  animation: none;
}
.card-status.active { color: var(--gold); }
.card-status.exited-label { color: var(--muted); }

/* Logos: one treatment everywhere — rendered white, sized per mark via --h
   so wordmarks of different proportions read at the same optical weight. */
.card-logo {
  height: 36px;
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
}
.card-logo img,
.logo-marquee img {
  height: var(--h, 24px);
  width: auto;
  max-width: 180px;
  object-fit: contain;
  opacity: 0.72;
  transition: opacity .35s;
}
/* Banner: uniform white. Cards: brand colour (dark-background variants,
   black wordmark text recoloured white so it reads on the dark theme). */
.logo-marquee img { filter: brightness(0) invert(1); }
.card-logo img { opacity: 0.92; }
.portfolio-card:hover .card-logo img,
.card-logo:focus-visible img { opacity: 1; }
.card-logo.exited-logo img { opacity: 0.45; }
.portfolio-card:hover .card-logo.exited-logo img { opacity: 0.8; }

/* Scrolling logo bar — loops seamlessly (two identical sets, track moves
   -50%), pauses on hover/focus, fades at the edges. */
.logo-marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 34px 0;
  margin-bottom: clamp(48px, 6vh, 72px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.logo-track {
  display: flex;
  width: max-content;
  animation: logoScroll 48s linear infinite;
}
.logo-marquee:hover .logo-track,
.logo-marquee:focus-within .logo-track { animation-play-state: paused; }
.logo-set {
  display: flex;
  align-items: center;
  gap: clamp(56px, 6vw, 96px);
  padding-right: clamp(56px, 6vw, 96px);
  list-style: none;
  margin: 0;
}
.logo-set a {
  display: flex;
  align-items: center;
  height: 40px;
  text-decoration: none;
}
.logo-marquee a:hover img,
.logo-marquee a:focus-visible img { opacity: 1; }
/* --loop is one set's width (set by JS, which also adds enough copies to
   cover any screen width); falls back to half the two-set track. */
@keyframes logoScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(var(--loop, 50%) * -1)); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; width: auto; justify-content: center; }
  .logo-set { flex-wrap: wrap; justify-content: center; row-gap: 28px; padding: 0 24px; }
  .logo-set[aria-hidden="true"] { display: none; }
}

.card-name {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.2vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.012em;
  margin-bottom: 16px;
  line-height: 1.05;
}
.card-name a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(to right, var(--gold), var(--gold));
  background-size: 0% 1px;
  background-position: left bottom;
  background-repeat: no-repeat;
  transition: background-size .45s cubic-bezier(.6,.05,.2,1), color .3s;
}
.card-name a:hover {
  color: var(--gold);
  background-size: 100% 1px;
}

.card-desc {
  font-size: 0.96rem;
  line-height: 1.72;
  color: var(--soft);
  margin-bottom: 28px;
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 26px;
}
.tag {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border-light);
  padding: 5px 12px;
  transition: all .3s;
}
.portfolio-card:hover .tag {
  border-color: var(--border-gold);
  color: var(--gold);
}

.card-exit {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-exit::before {
  content:'';
  width: 18px; height: 1px;
  background: var(--gold-dim);
}
.card-exit strong { color: var(--gold); font-weight: 500; }

/* Notable exit — full-width row under the 3×3 grid, centred */
.portfolio-card.is-exit {
  grid-column: 1 / -1;
  align-items: center;
  text-align: center;
  min-height: 0;
}
.is-exit .exit-head,
.is-exit .exit-body { display: flex; flex-direction: column; align-items: center; }
.is-exit .card-status { justify-content: center; }
.is-exit .card-logo { align-self: center; }
.is-exit .card-exit { margin: 4px 0 22px; border-top: 0; padding-top: 0; }
.is-exit .card-desc { flex: 0 0 auto; max-width: 62ch; }
.is-exit .card-tags { justify-content: center; }

/* ─────────────────────────────
   VIDEO BREAK / QUOTE
   ───────────────────────────── */
.video-break {
  scroll-margin-top: 70px;
  position: relative;
  height: 80vh;
  min-height: 540px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.video-break-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.video-break-wrap.visible { opacity: 1; }
.video-break-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translateZ(0) scale(1.04);
  filter: brightness(0.66) contrast(1.1) saturate(1.05);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform, opacity;
}
.video-break-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 50%, transparent 0%, rgba(6,7,10,0.35) 60%, rgba(6,7,10,0.85) 100%),
    linear-gradient(to bottom, rgba(6,7,10,0.85) 0%, rgba(6,7,10,0.40) 35%, rgba(6,7,10,0.40) 65%, rgba(6,7,10,0.92) 100%);
  z-index: 1;
}
.video-break-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--pad-x);
  max-width: 1000px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
}
.video-break.in-view .video-break-content {
  opacity: 1;
  transform: translateY(0);
}
.video-break-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.video-break-label::before,
.video-break-label::after {
  content:'';
  width: 56px; height: 1px;
  background: var(--gold);
  opacity: 0.6;
}
.video-break-quote {
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3vw, 3rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.95);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0 auto 28px;
}
.video-break-quote em { color: var(--gold); font-style: italic; }
.video-break-attr {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─────────────────────────────
   CONTACT
   ───────────────────────────── */
.contact {
  scroll-margin-top: 100px;
  padding: var(--section-y) var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(60px, 8vw, 120px);
  align-items: start;
  border-top: 1px solid var(--border);
}
.contact-left h2 {
  font-size: clamp(2.05rem, 3.7vw, 4rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
}
.contact-left h2 em { font-style: italic; color: var(--gold); }
.contact-left p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--soft);
  max-width: 44ch;
}
.contact-meta {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
}
.contact-meta-item .label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.contact-meta-item .value {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--white);
}
.contact-meta-item .value a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--border-gold);
  padding-bottom: 1px;
  transition: color .3s, border-color .3s;
}
.contact-meta-item .value a:hover { color: var(--gold); border-color: var(--gold); }

.contact-form {
  background: rgba(11,12,16,0.55);
  border: 1px solid var(--border);
  padding: 44px 36px;
  position: relative;
}
.contact-form::before {
  content:'';
  position: absolute;
  top: -1px; left: 0;
  width: 80px; height: 1px;
  background: var(--gold);
}
.contact-form-grid {
  display: grid;
  gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 14px 16px;
  color: var(--white);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 300;
  outline: none;
  transition: border-color .3s, background .3s;
  appearance: none;
  width: 100%;
}
.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover { border-color: var(--border-light); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.02);
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%23c9a96e'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  cursor: pointer;
  padding-right: 44px;
}
.form-group select option { background: var(--deep); color: var(--white); }
.form-group textarea { resize: vertical; min-height: 130px; line-height: 1.6; }

.form-submit {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  border: none;
  padding: 16px 32px;
  cursor: pointer;
  transition: background .3s, transform .3s;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
}
.form-submit:hover { background: var(--gold-hi); transform: translateY(-2px); }
.form-submit .arrow { transition: transform .3s; }
.form-submit:hover .arrow { transform: translateX(4px); }
.form-actions { margin-top: 8px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.form-direct {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color .3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.form-direct:hover { color: var(--gold); }

/* ─────────────────────────────
   FOOTER
   ───────────────────────────── */
footer {
  padding: 56px var(--pad-x) 40px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  color: var(--soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-logo img { height: 1.2em; opacity: 0.85; }
.footer-logo span { color: var(--gold); }
.footer-copy {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--quiet);
  text-align: center;
}
.footer-links {
  display: flex;
  gap: 28px;
  justify-content: flex-end;
}
.footer-links a {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color .3s;
}
.footer-links a:hover { color: var(--gold); }

/* ─────────────────────────────
   UTILITIES & ANIMATIONS
   ───────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ─────────────────────────────
   RESPONSIVE
   ───────────────────────────── */
@media (max-width: 1100px) and (min-width: 769px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid > .portfolio-card:nth-child(9) { grid-column: 1 / -1; }
  .approach-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .stats-row { grid-template-columns: 1fr; }
  .stat-block { padding: 40px 32px; }
}
@media (max-width: 768px) {
  :root { --pad-x: 24px; --section-y: 80px; }
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-cta { display: inline-flex; }
  nav { padding: 18px var(--pad-x); }
  nav.scrolled { padding: 14px var(--pad-x); }
  .logo { font-size: 1.05rem; letter-spacing: 0.1em; gap: 8px; }
  .logo-icon { height: 1.3em; }

  .hero { padding-bottom: 90px; }
  .vault-frame { display: none; }
  .hero-eyebrow { font-size: 0.62rem; letter-spacing: 0.19em; gap: 10px; margin-bottom: 22px; }
  .hero-eyebrow::before { width: 24px; }
  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 9.4vw, 3.4rem);
    letter-spacing: -0.018em;
    line-height: 1.0;
    hyphens: auto;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .hero h1 .word { padding-bottom: 4px; }
  .hero-sub { margin-top: 28px; font-size: 1rem; }
  .hero-actions { margin-top: 36px; gap: 14px 22px; }
  .btn-primary { padding: 14px 26px; font-size: 0.66rem; letter-spacing: 0.2em; }
  .btn-secondary { font-size: 0.66rem; letter-spacing: 0.2em; }

  .stats { margin-top: -30px; }
  .stat-block { padding: 36px 28px; }
  .stat-num { font-size: clamp(2.4rem, 12vw, 3.4rem); }

  .thesis,
  .contact {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .thesis-pillar { padding: 18px 0 18px 22px; }
  .thesis-pillar:hover { padding-left: 24px; }
  .thesis-pillar h3 { font-size: 1.3rem; }

  .approach-card { padding: 40px 28px 36px; }
  .approach-tag { top: 18px; right: 18px; font-size: 0.52rem; }

  .portfolio-header { grid-template-columns: 1fr; gap: 22px; margin-bottom: 56px; }
  .portfolio-intro { justify-self: start; }
  .portfolio-grid,
  .approach-grid { grid-template-columns: 1fr; }
  .portfolio-card { padding: 38px 28px 36px; min-height: 0; }
  .portfolio-card .bracket { display: none; }
  .logo-marquee { padding: 24px 0; }
  .card-name { font-size: clamp(1.5rem, 6vw, 1.9rem); }
  .card-desc { font-size: 0.92rem; }

  .form-row { grid-template-columns: 1fr; gap: 18px; }
  .contact-meta { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .contact-form { padding: 32px 24px; }
  .contact-meta-item .value { font-size: 1rem; }
  .form-actions { gap: 14px; }
  .form-submit { width: 100%; justify-content: center; }

  .video-break { min-height: 460px; height: 70vh; }
  .video-break-label { font-size: 0.65rem; letter-spacing: 0.19em; gap: 12px; }
  .video-break-label::before, .video-break-label::after { width: 32px; }
  .video-break-quote { font-size: clamp(1.5rem, 6.5vw, 2.2rem); line-height: 1.25; }

  footer {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 14px;
    padding: 36px 24px;
  }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 18px; }

  .scroll-indicator { display: none; }
  .scroll-progress { height: 2px; }
}

/* Very small screens — extra tightening */
@media (max-width: 380px) {
  .logo .logo-word + .logo-word { display: none; } /* show only "KAYAMORA" */
  .hero h1 { font-size: clamp(1.95rem, 10.4vw, 2.6rem); }
  .stat-num { font-size: clamp(2rem, 13vw, 2.8rem); }
  .form-row { gap: 14px; }
}

@media (min-width: 769px) { .nav-mobile-cta { display: none; } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero h1 .word > span { transform: none; }
}

/* Hold-to-boost on touch screens: no long-press callout / text selection in the hero */
@media (hover: none) {
  .hero { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
}
