/* ============================================================
   NEO RETRO CAPITAL — design system
   ============================================================ */

:root {
  --bg-dark: #0A0A0A;
  --bg-dark-2: #111111;
  --bg-light: #F5F2EC;
  --bg-light-2: #EDE9DF;
  --fg-on-dark: #F5F2EC;
  --fg-on-dark-dim: #8A8680;
  --fg-on-dark-dimmer: #3A3936;
  --fg-on-light: #0A0A0A;
  --fg-on-light-dim: #5A574F;
  --fg-on-light-dimmer: #C8C3B6;
  --accent: oklch(0.78 0.17 85);          /* warm amber/gold */
  --accent-dim: oklch(0.78 0.17 85 / 0.15);
  --accent-line: oklch(0.78 0.17 85 / 0.35);
  --rule-dark: rgba(245, 242, 236, 0.08);
  --rule-light: rgba(10, 10, 10, 0.08);

  --font-display: 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 56px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-on-light);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #0A0A0A; }

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

/* ============================================================
   Sections
   ============================================================ */

section {
  position: relative;
  padding: clamp(80px, 12vh, 160px) var(--gutter);
}

.sec-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.sec-dark {
  background: var(--bg-dark);
  color: var(--fg-on-dark);
}
.sec-light {
  background: var(--bg-light);
  color: var(--fg-on-light);
}

/* subtle grain on dark sections */
.sec-dark::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: none;
  mix-blend-mode: screen;
}

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter);
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(245, 242, 236, 0.08);
  color: var(--fg-on-dark);
  transition: background 400ms var(--ease), border-color 400ms var(--ease), color 400ms var(--ease);
}
.nav.on-light {
  background: rgba(245, 242, 236, 0.82);
  border-bottom-color: var(--rule-light);
  color: var(--fg-on-light);
}

.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 14px;
}
.nav-icon {
  height: 38px;
  width: auto;
  display: block;
  image-rendering: pixelated;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}
.nav-wordmark.sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
body.light .nav-icon { mix-blend-mode: multiply; filter: invert(0.05); }
.nav-wordmark {
  display: inline-block;
}
.nav-links {
  display: flex; gap: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.7;
}
.nav-links a { transition: opacity 200ms var(--ease); }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}
.nav-cta:hover {
  background: var(--accent);
  color: #0A0A0A;
  border-color: var(--accent);
}
@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

/* ---- Hero background layers ---- */
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.hero-bg > * { position: absolute; inset: 0; }

/* Pixel grid */
.hero-bg-grid {
  background-image:
    linear-gradient(to right, rgba(245,242,236,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245,242,236,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 40%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, black 0%, transparent 70%);
}

/* Pixelated "stars" / dust */
.hero-bg-stars {
  background-image:
    radial-gradient(1px 1px at 14% 22%, rgba(245,242,236,0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 68%, rgba(245,242,236,0.5) 50%, transparent 51%),
    radial-gradient(2px 2px at 42% 18%, var(--accent) 50%, transparent 51%),
    radial-gradient(1px 1px at 62% 82%, rgba(245,242,236,0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 34%, rgba(245,242,236,0.4) 50%, transparent 51%),
    radial-gradient(2px 2px at 88% 72%, var(--accent) 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 88%, rgba(245,242,236,0.5) 50%, transparent 51%);
  animation: star-drift 18s linear infinite;
}
@keyframes star-drift {
  0% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(-6px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.7; }
}

/* Warm arcade sunset glow — anchored bottom-right */
.hero-bg-sunset {
  background:
    radial-gradient(ellipse 60% 55% at 78% 72%, oklch(0.62 0.2 25 / 0.35), transparent 60%),
    radial-gradient(ellipse 50% 45% at 78% 72%, oklch(0.78 0.17 85 / 0.18), transparent 70%);
  mix-blend-mode: screen;
}

/* CSS pixel skyline silhouette along the bottom */
.hero-bg-skyline {
  top: auto;
  bottom: 0;
  height: 180px;
  background-color: #000;
  -webkit-mask-image: url("assets/skyline.svg");
          mask-image: url("assets/skyline.svg");
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  opacity: 0.75;
}

/* subtle scanlines */
.hero-bg-scan {
  background: repeating-linear-gradient(
    to bottom,
    rgba(245,242,236,0.02) 0 1px,
    transparent 1px 4px
  );
  mix-blend-mode: overlay;
}

/* vignette */
.hero-bg-vignette {
  background: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 0%, rgba(10,10,10,0.65) 100%);
}

body.light .hero-bg { opacity: 0.15; }
body.no-motion .hero-bg-stars { animation: none; }

.hero-left, .hero-right { position: relative; z-index: 2; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; }
}

.hero-left {
  display: flex; flex-direction: column; gap: 24px;
}

.hero-logo {
  width: min(460px, 90%);
  aspect-ratio: 1 / 1;
  position: relative;
}
.hero-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
/* placeholder lockup when no logo */
.hero-logo.placeholder {
  border: 1px dashed rgba(245,242,236,0.2);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-on-dark-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-right {
  display: flex; flex-direction: column; gap: 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 em, .h1 em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}
h1 .accent-word, .h1 .accent-word {
  position: relative;
  white-space: nowrap;
}

h2, .h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h3, .h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.lede {
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.6;
  color: var(--fg-on-dark-dim);
  max-width: 52ch;
}
.sec-light .lede { color: var(--fg-on-light-dim); }

.hero-meta {
  display: flex; gap: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-on-dark-dim);
  border-top: 1px solid var(--rule-dark);
  padding-top: 20px;
}
.hero-meta div span {
  display: block;
  color: var(--fg-on-dark);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: none;
  margin-top: 6px;
}

/* scroll indicator */
.scroll-ind {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-on-dark-dim);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-ind .line {
  width: 1px; height: 32px;
  background: linear-gradient(to bottom, transparent, var(--fg-on-dark-dim));
  animation: scroll-pulse 2.4s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(0.6); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ============================================================
   Section header (eyebrow + title)
   ============================================================ */

.sec-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 64px;
  align-items: start;
}
@media (max-width: 800px) {
  .sec-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
}
.sec-head .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-on-light-dim);
  padding-top: 16px;
}
.sec-dark .sec-head .label { color: var(--fg-on-dark-dim); }
.sec-head .label .num {
  display: block;
  color: var(--accent);
  margin-bottom: 4px;
}

/* ============================================================
   Retro is NOW — body + stat card
   ============================================================ */

.thesis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 900px) { .thesis { grid-template-columns: 1fr; } }

.thesis-copy p + p { margin-top: 18px; }
.thesis-copy p { font-size: 17px; line-height: 1.65; color: var(--fg-on-light-dim); }

.stat-card {
  border-top: 1px solid var(--fg-on-light);
  padding-top: 24px;
  display: flex; flex-direction: column; gap: 20px;
}
.stat-card .stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-on-light-dim);
}
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule-light);
}
.stat-row:last-of-type { border-bottom: none; }
.stat-val {
  font-family: var(--font-mono);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--fg-on-light);
}
.stat-val.accent { color: var(--accent); }
.stat-desc {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-on-light-dim);
  margin-top: 10px;
}
.stat-source {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-on-light-dim);
}
.stat-source a {
  color: var(--fg-on-light);
  border-bottom: 1px solid var(--rule-light);
  padding-bottom: 1px;
}

/* ============================================================
   Model diagram
   ============================================================ */

.model-wrap {
  margin-top: 40px;
  padding: clamp(40px, 6vw, 80px) 0;
  position: relative;
}

.model-grid {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
}

@media (max-width: 800px) {
  .model-grid { aspect-ratio: auto; display: flex; flex-direction: column; gap: 16px; }
}

.node {
  position: absolute;
  border: 1px solid rgba(245,242,236,0.2);
  background: rgba(245, 242, 236, 0.03);
  padding: 16px 18px;
  min-width: 140px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 600ms var(--ease), transform 600ms var(--ease), border-color 300ms var(--ease), background 300ms var(--ease);
  opacity: 0;
  transform: translateY(8px);
}
@media (max-width: 800px) {
  .node { position: relative; width: 100%; left: auto !important; top: auto !important; transform: none; }
}
.model-grid.revealed .node { opacity: 1; transform: translateY(0); }

.node .node-label {
  color: var(--fg-on-dark-dim);
  font-size: 10px;
  margin-bottom: 6px;
}
.node .node-title {
  color: var(--fg-on-dark);
  font-size: 14px;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.node .node-sub {
  color: var(--fg-on-dark-dim);
  font-size: 10px;
  text-transform: none;
  letter-spacing: 0.02em;
  margin-top: 6px;
  line-height: 1.4;
}
.node.highlight {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.node.highlight .node-title { color: var(--accent); }

/* positions */
.node-investors { left: 0; top: 38%; }
.node-nrc      { left: 38%; top: 5%; width: 24%; text-align: center; }
.node-ip       { left: 5%; top: 55%; }
.node-dev      { left: 40%; top: 55%; width: 20%; text-align: center; }
.node-pub      { right: 5%; top: 55%; }
.node-revenue  { right: 0; top: 38%; }
.node-release  { left: 22%; top: 82%; right: 22%; width: auto; text-align: center; }

/* SVG connectors */
.model-grid svg.wires {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
}
@media (max-width: 800px) {
  .model-grid svg.wires { display: none; }
}
.wires path {
  fill: none;
  stroke: rgba(245,242,236,0.25);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 900ms var(--ease), stroke 400ms var(--ease);
}
.model-grid.revealed .wires path {
  stroke-dashoffset: 0;
}
.wires path.revenue-path {
  stroke: var(--accent);
  stroke-dasharray: none;
  opacity: 0;
  transition: opacity 800ms var(--ease) 800ms;
}
.model-grid.revealed .wires path.revenue-path { opacity: 1; }

.wire-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  fill: var(--fg-on-dark-dim);
  opacity: 0;
  transition: opacity 400ms var(--ease);
}
.model-grid.revealed .wire-label { opacity: 1; transition-delay: 700ms; }
.wire-label.accent { fill: var(--accent); }

/* game release sub-list */
.release-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
  text-align: left;
}
.release-cols > div {
  font-size: 9px;
  line-height: 1.4;
}
.release-cols .h {
  color: var(--fg-on-dark);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.release-cols .d {
  color: var(--fg-on-dark-dim);
  text-transform: none;
  letter-spacing: 0.02em;
}

/* staggered reveal timing */
.model-grid.revealed .node-investors { transition-delay: 0ms; }
.model-grid.revealed .node-nrc       { transition-delay: 200ms; }
.model-grid.revealed .node-ip        { transition-delay: 400ms; }
.model-grid.revealed .node-dev       { transition-delay: 500ms; }
.model-grid.revealed .node-pub       { transition-delay: 600ms; }
.model-grid.revealed .node-release   { transition-delay: 800ms; }
.model-grid.revealed .node-revenue   { transition-delay: 1000ms; }

/* ============================================================
   ORCHESTRATION (new model section)
   ============================================================ */

.orchestration .lede em {
  font-style: normal;
  color: var(--fg-on-dark);
}

.orch {
  margin: 80px auto 40px;
  max-width: 820px;
  position: relative;
}

.orch-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.72;
}

/* rings */
.orch-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--rule-dark);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 900ms var(--ease), transform 1200ms var(--ease);
}
.orch-ring.r1 { width: 32%; aspect-ratio: 1; }
.orch-ring.r2 { width: 62%; aspect-ratio: 1; border-style: dashed; border-color: rgba(245,242,236,0.12); }
.orch-ring.r3 { width: 94%; aspect-ratio: 1; border-color: rgba(245,242,236,0.05); }

.orch.revealed .orch-ring { opacity: 1; }
.orch.revealed .orch-ring.r1 { transition-delay: 100ms; animation: orch-pulse 6s ease-in-out infinite 1200ms; }
.orch.revealed .orch-ring.r2 { transition-delay: 300ms; animation: orch-rotate 60s linear infinite; }
.orch.revealed .orch-ring.r3 { transition-delay: 500ms; }

@keyframes orch-rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes orch-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-dim); }
  50% { box-shadow: 0 0 0 16px transparent; }
}

body.no-motion .orch.revealed .orch-ring.r1,
body.no-motion .orch.revealed .orch-ring.r2 { animation: none; }

/* center */
.orch-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 26%;
  min-width: 170px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 1px solid var(--accent);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 20px;
  box-shadow: 0 0 0 6px rgba(10,10,10,1), 0 0 60px var(--accent-dim);
  opacity: 0;
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  z-index: 3;
}
.orch.revealed .orch-center { opacity: 1; transition-delay: 700ms; }

.orch-center-mark {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--accent);
}
.orch-center-label {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--fg-on-dark);
  font-weight: 500;
}
.orch-center-role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-on-dark-dim);
  margin-top: 4px;
}

/* satellites */
.orch-satellite {
  position: absolute;
  width: 200px;
  padding: 18px 20px;
  background: var(--bg-dark-2);
  border: 1px solid var(--rule-dark);
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0;
  transition: opacity 700ms var(--ease), transform 700ms var(--ease), border-color 250ms var(--ease);
  z-index: 2;
}
.orch-satellite:hover {
  border-color: var(--accent-line);
}
.orch.revealed .orch-satellite { opacity: 1; transform: translate(0,0); }

.orch-satellite .sat-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.orch-satellite .sat-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--fg-on-dark);
}
.orch-satellite .sat-desc {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.45;
  color: var(--fg-on-dark-dim);
}

/* positions */
.s-ip  { top: 4%;  left: 0;   transform: translateX(-20px); }
.s-pub { top: 4%;  right: 0;  transform: translateX(20px); }
.s-dev { bottom: 0; left: 50%; transform: translate(-50%, 20px); }

.orch.revealed .s-ip  { transition-delay: 900ms; }
.orch.revealed .s-dev { transition-delay: 1050ms; }
.orch.revealed .s-pub { transition-delay: 1200ms; }

/* wires */
.orch-wires {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
}
.orch-wires .w {
  fill: none;
  stroke: var(--accent-line);
  stroke-width: 0.25;
  stroke-dasharray: 1 1.5;
  stroke-dashoffset: 80;
  transition: stroke-dashoffset 1400ms var(--ease);
}
.orch.revealed .w { stroke-dashoffset: 0; }
.orch.revealed .w1 { transition-delay: 900ms; }
.orch.revealed .w2 { transition-delay: 1050ms; }
.orch.revealed .w3 { transition-delay: 1200ms; }

body.no-motion .orch .orch-ring,
body.no-motion .orch .orch-center,
body.no-motion .orch .orch-satellite { opacity: 1; transform: translate(0,0); transition: none; }
body.no-motion .s-dev { transform: translate(-50%, 20px); }
body.no-motion .orch .w { stroke-dashoffset: 0; }

@media (max-width: 760px) {
  .orch-stage { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 20px 0; }
  .orch-ring, .orch-wires { display: none; }
  .orch-center, .orch-satellite { position: relative; width: 100%; max-width: 340px; inset: auto; transform: none !important; aspect-ratio: auto; border-radius: 12px; }
  .orch-center { padding: 24px; }
}

/* ============================================================
   FLOW (step cards under orchestration)
   ============================================================ */

.flow {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow-divider { display: none; }
}

.flow-item {
  padding: 24px;
  background: var(--bg-dark-2);
  border: 1px solid var(--rule-dark);
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 250ms var(--ease), transform 250ms var(--ease);
}
.flow-item:hover { border-color: var(--rule-dark); transform: translateY(-2px); }
.flow-item.accent {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, var(--bg-dark-2), var(--accent-dim));
}

.flow-step {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-on-dark-dim);
}
.flow-item.accent .flow-step { color: var(--accent); }

.flow-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg-on-dark);
}
.flow-desc {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-on-dark-dim);
}

.flow-divider {
  width: 32px;
  align-self: center;
  height: 1px;
  background: var(--rule-dark);
  position: relative;
}
.flow-divider::after {
  content: '';
  position: absolute;
  right: -1px; top: 50%;
  width: 6px; height: 6px;
  border-top: 1px solid var(--fg-on-dark-dim);
  border-right: 1px solid var(--fg-on-dark-dim);
  transform: translateY(-50%) rotate(45deg);
}
.flow-divider.accent { background: var(--accent-line); }
.flow-divider.accent::after { border-color: var(--accent); }

body.light .sec-dark .orch-center { background: var(--bg-light); box-shadow: 0 0 0 6px var(--bg-light), 0 0 60px var(--accent-dim); }
body.light .sec-dark .orch-satellite,
body.light .sec-dark .flow-item { background: var(--bg-light-2); border-color: var(--rule-light); }
body.light .sec-dark .orch-satellite .sat-desc,
body.light .sec-dark .flow-desc { color: var(--fg-on-light-dim); }
body.light .sec-dark .orch-satellite .sat-title,
body.light .sec-dark .orch-center-label,
body.light .sec-dark .flow-name { color: var(--fg-on-light); }

/* ============================================================
   Image panel (full-bleed photograph between sections)
   ============================================================ */
.image-panel {
  position: relative;
  width: 100%;
  height: clamp(360px, 62vh, 620px);
  overflow: hidden;
  background: #0A0A0A;
}
.image-panel img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.04);
  transition: transform 1200ms var(--ease);
}
.image-panel.revealed img { transform: scale(1); }
.image-panel-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.15) 45%, rgba(10,10,10,0.55) 100%),
    linear-gradient(to bottom, rgba(10,10,10,0.15) 0%, rgba(10,10,10,0.7) 100%);
  pointer-events: none;
}
.image-panel-caption {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(24px, 5vh, 48px);
  right: var(--gutter);
  max-width: 620px;
  display: flex; flex-direction: column; gap: 10px;
  color: var(--fg-on-dark);
  z-index: 2;
}
.image-panel-caption .caption-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.image-panel-caption .caption-text {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 500;
  text-wrap: balance;
}

/* ============================================================
   Section with decorative side image (legacy - unused now)
   ============================================================ */
.has-side-img { position: relative; overflow: hidden; }
.has-side-img .side-img {
  position: absolute;
  right: -120px; top: 50%;
  transform: translateY(-50%);
  width: 620px; height: 620px;
  pointer-events: none;
  opacity: 0.09;
  z-index: 0;
  filter: saturate(0.7);
}
.has-side-img .side-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 72%);
          mask-image: radial-gradient(ellipse at center, black 40%, transparent 72%);
}
.has-side-img .sec-inner { position: relative; z-index: 1; }
@media (max-width: 900px) { .has-side-img .side-img { display: none; } }

.unique-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(40px, 6vw, 96px);
  margin-top: 40px;
}
@media (max-width: 800px) { .unique-grid { grid-template-columns: 1fr; } }

.unique-item {
  padding-top: 28px;
  border-top: 1px solid var(--rule-light);
  display: flex; flex-direction: column; gap: 16px;
}
.sec-dark .unique-item { border-top-color: var(--rule-dark); }
.unique-item .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.unique-item p {
  color: var(--fg-on-light-dim);
  font-size: 16px;
  line-height: 1.6;
}
.sec-dark .unique-item p { color: var(--fg-on-dark-dim); }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule-light);
  border: 1px solid var(--rule-light);
  margin-top: 56px;
}
.sec-dark .pillars { background: var(--rule-dark); border-color: var(--rule-dark); }
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } }

.pillar {
  background: var(--bg-light);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.sec-dark .pillar { background: var(--bg-dark); }
.pillar .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.pillar .v {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.pillar .d {
  font-size: 14px;
  color: var(--fg-on-light-dim);
  line-height: 1.55;
}
.sec-dark .pillar .d { color: var(--fg-on-dark-dim); }

/* ============================================================
   Team
   ============================================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}
@media (max-width: 800px) { .team-grid { grid-template-columns: 1fr; } }

.person {
  display: flex; flex-direction: column; gap: 16px;
}
.avatar {
  width: 100%;
  aspect-ratio: 4 / 5;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(10,10,10,0.04) 0 2px,
      transparent 2px 8px
    ),
    var(--bg-light-2);
  border: 1px solid var(--rule-light);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-on-light-dim);
  position: relative;
}
.sec-dark .avatar {
  background:
    repeating-linear-gradient(135deg, rgba(245,242,236,0.03) 0 2px, transparent 2px 8px),
    var(--bg-dark-2);
  border-color: var(--rule-dark);
  color: var(--fg-on-dark-dim);
}
.avatar::after {
  content: '';
  position: absolute;
  top: 10px; left: 10px;
  width: 6px; height: 6px;
  background: var(--accent);
}
.person .name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.person .role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-on-light-dim);
}
.sec-dark .person .role { color: var(--fg-on-dark-dim); }
.person .bio {
  font-size: 14px;
  color: var(--fg-on-light-dim);
  line-height: 1.55;
}
.sec-dark .person .bio { color: var(--fg-on-dark-dim); }

/* ============================================================
   Contact
   ============================================================ */

.contact {
  padding: clamp(100px, 18vh, 200px) var(--gutter);
  text-align: center;
}
.contact .big {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 140px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.contact .big .accent-word { color: var(--accent); }
.contact .sub {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-on-dark-dim);
}
.contact-link {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 40px;
  padding: 18px 28px;
  border: 1px solid var(--fg-on-dark);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  transition: background 250ms var(--ease), color 250ms var(--ease), border-color 250ms var(--ease);
}
.contact-link:hover {
  background: var(--accent);
  color: #0A0A0A;
  border-color: var(--accent);
}
.contact-link .arrow {
  transition: transform 250ms var(--ease);
}
.contact-link:hover .arrow { transform: translateX(4px); }

/* ============================================================
   Footer
   ============================================================ */

footer {
  padding: 40px var(--gutter);
  background: var(--bg-dark);
  color: var(--fg-on-dark-dim);
  border-top: 1px solid var(--rule-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}

/* ============================================================
   Reveal animations
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
body.no-motion [data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}
body.no-motion .model-grid .node { opacity: 1; transform: none; transition: none; }
body.no-motion .wires path { stroke-dashoffset: 0; }
body.no-motion .wires path.revenue-path { opacity: 1; }
body.no-motion .wire-label { opacity: 1; }
body.no-motion .scroll-ind .line { animation: none; }

/* ============================================================
   Tweaks panel
   ============================================================ */

#tweaks {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 200;
  display: none;
  width: 280px;
  background: #0A0A0A;
  color: #F5F2EC;
  border: 1px solid rgba(245,242,236,0.18);
  border-radius: 12px;
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.5);
}
#tweaks.visible { display: block; }
#tweaks h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  color: #F5F2EC;
}
#tweaks .tw-row { display: flex; align-items: center; justify-content: space-between; margin: 10px 0; }
#tweaks label { letter-spacing: 0.08em; text-transform: uppercase; color: #8A8680; font-size: 10px; }
#tweaks .swatches { display: flex; gap: 6px; }
#tweaks .sw {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid rgba(245,242,236,0.2);
  cursor: pointer;
  transition: transform 160ms var(--ease);
}
#tweaks .sw.active { outline: 2px solid #F5F2EC; outline-offset: 2px; }
#tweaks .sw:hover { transform: scale(1.1); }
#tweaks .toggle {
  width: 36px; height: 20px;
  border-radius: 999px;
  background: #2a2a2a;
  position: relative;
  cursor: pointer;
  transition: background 200ms var(--ease);
}
#tweaks .toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: #F5F2EC;
  border-radius: 50%;
  transition: transform 200ms var(--ease);
}
#tweaks .toggle.on { background: var(--accent); }
#tweaks .toggle.on::after { transform: translateX(16px); }

/* Light mode overrides (applied via body.light) */
body.light .sec-dark { background: var(--bg-light); color: var(--fg-on-light); }
body.light .sec-dark .lede, body.light .sec-dark .hero-meta { color: var(--fg-on-light-dim); }
body.light .sec-dark .hero-meta div span { color: var(--fg-on-light); }
body.light .sec-dark .hero-meta { border-top-color: var(--rule-light); }
body.light .sec-dark .node { border-color: var(--rule-light); background: rgba(10,10,10,0.02); }
body.light .sec-dark .node .node-label, body.light .sec-dark .node .node-sub { color: var(--fg-on-light-dim); }
body.light .sec-dark .node .node-title { color: var(--fg-on-light); }
body.light .sec-dark .wires path { stroke: rgba(10,10,10,0.2); }
body.light .sec-dark .wire-label { fill: var(--fg-on-light-dim); }
body.light .sec-dark .release-cols .h { color: var(--fg-on-light); }
body.light .sec-dark .release-cols .d { color: var(--fg-on-light-dim); }
body.light .sec-dark::after { opacity: 0; }
body.light .nav { background: rgba(245, 242, 236, 0.72); border-bottom-color: var(--rule-light); color: var(--fg-on-light); }
body.light .contact .sub { color: var(--fg-on-light-dim); }
body.light .contact-link { border-color: var(--fg-on-light); }
body.light footer { background: var(--bg-light); color: var(--fg-on-light-dim); border-top-color: var(--rule-light); }
body.light .sec-head .label { color: var(--fg-on-light-dim); }
body.light .hero-logo.placeholder { border-color: var(--rule-light); color: var(--fg-on-light-dim); }

/* ============================================================
   Team (generic, no names)
   ============================================================ */

.team-statement {
  max-width: 68ch;
  margin-top: 24px;
}
.team-statement p {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 400;
  color: var(--fg-on-dark);
  text-wrap: balance;
}
.team-statement p em {
  font-style: normal;
  color: var(--accent);
  font-weight: 500;
}
body.light .team-statement p { color: var(--fg-on-light); }

.team-stats {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule-dark);
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
}
body.light .team-stats { background: var(--rule-light); border-color: var(--rule-light); }
@media (max-width: 720px) {
  .team-stats { grid-template-columns: 1fr; }
}
.ts {
  background: var(--bg-dark);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 12px;
}
body.light .ts { background: var(--bg-light); }
.ts-val {
  font-family: var(--font-mono);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--fg-on-dark);
}
body.light .ts-val { color: var(--fg-on-light); }
.ts-val.accent { color: var(--accent); }
.ts-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-on-dark-dim);
  line-height: 1.5;
}
body.light .ts-label { color: var(--fg-on-light-dim); }

.team-disciplines {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
@media (max-width: 720px) { .team-disciplines { grid-template-columns: 1fr; } }
.td {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--rule-dark);
}
body.light .td { border-top-color: var(--rule-light); }
.td .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.td .v {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--fg-on-dark);
  font-weight: 500;
}
body.light .td .v { color: var(--fg-on-light); }

.team-note {
  margin-top: clamp(48px, 5vw, 64px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg-on-dark-dim);
  padding-top: 20px;
  border-top: 1px solid var(--rule-dark);
}
body.light .team-note { color: var(--fg-on-light-dim); border-top-color: var(--rule-light); }
