/* ScreenGeni.us — shared stylesheet */
:root {
  --ground: #08090C;
  --ground-raised: #0E1015;
  --ground-line: #1A1D24;
  --ink: #F2F3F5;
  --ink-muted: #9BA1AC;
  --ink-faint: #5C626D;
  --unresolved: #22C7C7;
  --resolved: #FF3D8F;
  --resolved-deep: #E0187A; /* raw magenta from the mark. Graphics and fills only */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Geist', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur-base: 400ms;
  --dur-slow: 900ms;
  --space-section: clamp(6rem, 12vh, 10rem);
  --gutter: 24px;
  --max-w: 1440px;
  --pad-x: clamp(20px, 4vw, 48px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
html.reduced { scroll-behavior: auto; }
body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--resolved); color: var(--ground); }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--resolved); }
:focus-visible { outline: 2px solid var(--resolved); outline-offset: 3px; }
h1, h2, h3 { font-weight: 400; }

/* type utilities */
.serif { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.02; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-muted); font-weight: 500;
}
.mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; }
.muted { color: var(--ink-muted); }

/* layout */
.container { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--pad-x); }
.grid12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.section { padding-block: var(--space-section); position: relative; }
.hairline-top { border-top: 1px solid var(--ground-line); }
.wash { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.wash-unresolved { background: radial-gradient(60% 50% at 0% 20%, rgba(34,199,199,0.07), transparent 70%); }
.wash-resolved { background: radial-gradient(55% 45% at 100% 80%, rgba(255,61,143,0.06), transparent 70%); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px 24px; cursor: pointer; border: 0; transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.btn-primary { background: var(--resolved-deep); color: #FFFFFF; }
.btn-primary:hover { background: var(--resolved); color: var(--ground); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ground-line); }
.btn-ghost:hover { border-color: var(--resolved); color: var(--resolved); }

/* ============ NAV ============ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--pad-x);
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled { background: rgba(8,9,12,0.85); backdrop-filter: blur(12px); border-bottom-color: var(--ground-line); }
.nav-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 21px; letter-spacing: -0.01em; color: var(--ink); }
.nav-brand img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 32px); }
.nav-links a {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-muted);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--resolved); }
.nav-cta { padding: 10px 16px; white-space: nowrap; }
.nav-cta .cta-short { display: none; }
.nav-toggle { display: none; }

@media (max-width: 640px) {
  .site-nav { gap: 10px; padding: 10px var(--pad-x); }
  .nav-brand { gap: 9px; font-size: 18px; }
  .nav-brand img { height: 32px; }
  .nav-cta { margin-left: auto; padding: 10px 13px; font-size: 11px; letter-spacing: 0.08em; }
  .nav-cta .cta-full { display: none; }
  .nav-cta .cta-short { display: inline; }

  .nav-toggle {
    display: grid; align-content: center; gap: 5px;
    width: 44px; height: 40px; padding: 0 10px;
    background: none; border: 1px solid var(--ground-line); cursor: pointer;
  }
  .nav-toggle span { display: block; height: 1.5px; background: var(--ink); transition: transform 0.22s var(--ease-out), opacity 0.18s linear; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(8,9,12,0.96); backdrop-filter: blur(14px);
    border-block: 1px solid var(--ground-line);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height 0.3s var(--ease-out), visibility 0s linear 0.3s;
  }
  .site-nav[data-menu="open"] .nav-links {
    max-height: 60svh; visibility: visible; transition-delay: 0s;
  }
  .nav-links a {
    padding: 17px var(--pad-x); font-size: 13px; color: var(--ink);
    border-top: 1px solid var(--ground-line);
  }
  .nav-links a:first-child { border-top: 0; }
}

/* ============ HERO SEQUENCE ============ */
.hero { position: relative; background: var(--ground); }
.hero-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; will-change: transform; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-copy {
  position: absolute; left: var(--pad-x); top: 26vh; z-index: 2;
  width: min(880px, 86vw); display: grid;
}
.js:not(.reduced) .hero-copy > .hero-h { grid-area: 1 / 1; }
.hero-h {
  font-family: var(--font-display); letter-spacing: -0.02em; line-height: 0.98;
  font-size: clamp(3.5rem, 8vw, 8rem); text-wrap: balance;
}
.hero-h .grad {
  font-style: italic;
  background: linear-gradient(100deg, var(--ink) 10%, var(--resolved) 55%, var(--resolved-deep) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-caption {
  position: absolute; left: var(--pad-x); bottom: 22vh; z-index: 2; margin: 0;
  font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.08em; color: var(--ink-muted);
}
.no-js .hero-caption, .reduced .hero-caption { position: static; margin-top: 2.2rem; }
.hero-baseline {
  position: absolute; left: var(--pad-x); right: var(--pad-x); bottom: 10vh; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
}
.hero-baseline svg { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); width: 100%; height: 2px; overflow: visible; }
.hero-baseline .bl-label {
  position: relative; background: var(--ground); padding-inline: 12px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--ink-faint);
  transition: color var(--dur-base) var(--ease-out);
}
.hero-baseline .bl-label:first-child { padding-left: 0; }
.hero-baseline .bl-label:last-child { padding-right: 0; }
.hero-scrollhint {
  position: absolute; right: var(--pad-x); top: 50%; z-index: 2; transform: rotate(90deg) translateX(-50%); transform-origin: right center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--ink-faint);
}
/* no-JS + reduced motion: static editorial stack */
.no-js .hero-pin, .reduced .hero-pin { height: auto; min-height: 60vh; padding: 26vh var(--pad-x) 12vh; }
.no-js .hero-copy, .reduced .hero-copy { position: static; width: min(980px, 90vw); }
.no-js .hero-h + .hero-h, .reduced .hero-h + .hero-h { margin-top: 2rem; }
.no-js .hero-baseline, .reduced .hero-baseline { position: static; margin-top: 4rem; }
.no-js .hero-scrollhint, .reduced .hero-scrollhint { display: none; }
.no-js #heroCanvas { display: none; }
.reduced .bl-label { color: var(--ink-muted); }
@media (max-width: 700px) {
  .hero-baseline .bl-label { font-size: 10px; padding-inline: 6px; }
  .hero-copy { top: 20vh; }
  .hero-h { font-size: clamp(2.6rem, 11vw, 4rem); }
  .hero-caption { bottom: 24vh; font-size: 12.5px; }
  .hero-scrollhint { display: none; }
}
/* phones: the chain turns vertical so the order Foundation AI -> ScreenGeni.us -> MediaTech -> Audience still reads */
@media (max-width: 620px) {
  .hero-baseline {
    flex-direction: column; align-items: flex-start; gap: 0.55rem;
    right: auto; bottom: 8vh; padding-left: 15px;
  }
  .hero-baseline svg {
    left: 3px; right: auto; top: 0.5em; bottom: 0.5em; height: auto; width: 1px;
    transform: none; background: var(--ground-line);
  }
  .hero-baseline svg line { display: none; }
  .hero-baseline .bl-label {
    padding-inline: 0 !important; font-size: 10.5px; background: none;
  }
  .hero-baseline .bl-label::before {
    content: ""; position: absolute; left: -15px; top: 50%; transform: translateY(-50%);
    width: 7px; height: 7px; border-radius: 50%; background: var(--ground-line);
  }
  .strip-count { bottom: 5vh; }
}

/* ============ THESIS ============ */
.thesis .grid12 { align-items: start; }
.thesis-label {
  grid-column: 1 / 2; position: sticky; top: 120px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--ink-muted);
  white-space: nowrap;
}
.thesis-body { grid-column: 2 / 9; display: grid; gap: clamp(2.5rem, 5vh, 4rem); }
.thesis-body p {
  font-family: var(--font-display); letter-spacing: -0.015em; line-height: 1.18;
  font-size: clamp(1.75rem, 3.1vw, 2.9rem); color: var(--ink); text-wrap: pretty;
}
.thesis-body p strong { font-weight: 400; color: var(--resolved); }
@media (max-width: 900px) {
  .thesis-label { grid-column: 1 / 13; position: static; margin-bottom: 1.5rem; }
  .thesis-body { grid-column: 1 / 13; }
}

/* ============ NOT A WRAPPER ============ */
.wrapper-section .grid12 { align-items: start; }
.wrapper-left { grid-column: 1 / 6; position: sticky; top: 110px; }
.wrapper-left h2 {
  font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.0;
  font-size: clamp(2.75rem, 4.6vw, 4.6rem); text-wrap: balance;
}
.wrapper-left p { margin-top: 1.6rem; color: var(--ink-muted); max-width: 42ch; }
.wrapper-right { grid-column: 7 / 13; }
.wrapper-item { border-top: 1px solid var(--ground-line); padding: clamp(2.2rem, 4vh, 3.4rem) 0; }
.wrapper-item:last-child { border-bottom: 1px solid var(--ground-line); }
.wrapper-item .idx { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--resolved); }
.wrapper-item h3 { font-size: 1.25rem; font-weight: 600; margin: 0.9rem 0 0.7rem; letter-spacing: -0.01em; }
.wrapper-item p { color: var(--ink-muted); font-size: 15.5px; max-width: 56ch; text-wrap: pretty; }
@media (max-width: 900px) {
  .wrapper-left { grid-column: 1 / 13; position: static; margin-bottom: 3rem; }
  .wrapper-right { grid-column: 1 / 13; }
}

/* ============ ENGINE BAND ============ */
.engine { background: var(--ground-raised); border-block: 1px solid var(--ground-line); }
.engine-head { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(3rem, 6vh, 5rem); }
.engine-head h2 { font-family: var(--font-display); font-size: clamp(2.2rem, 3.6vw, 3.4rem); letter-spacing: -0.02em; }
.engine-panels { display: grid; grid-template-columns: repeat(3, 1fr); }
.engine-panel { padding: clamp(1.5rem, 3vw, 3rem); border-left: 1px solid var(--ground-line); display: flex; flex-direction: column; }
.engine-panel:first-child { border-left: 0; padding-left: 0; }
.engine-panel svg { width: 100%; height: auto; margin-bottom: 2rem; }
.engine-panel h3 { font-family: var(--font-display); font-size: 1.7rem; letter-spacing: -0.015em; margin-bottom: 0.8rem; }
.engine-panel p { color: var(--ink-muted); font-size: 15px; max-width: 40ch; }
.engine-shared {
  margin-top: clamp(3rem, 6vh, 5rem); padding-top: 1.6rem; border-top: 1px solid var(--ground-line);
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em; color: var(--ink-muted); line-height: 2;
}
.engine-shared b { color: var(--ink); font-weight: 500; letter-spacing: 0.12em; }
@media (max-width: 900px) {
  .engine-panels { grid-template-columns: 1fr; }
  .engine-panel { border-left: 0; border-top: 1px solid var(--ground-line); padding-inline: 0; }
  .engine-panel:first-child { border-top: 0; }
}
/* diagram animation primitives */
.diagram .draw { stroke-dasharray: var(--len, 160); stroke-dashoffset: var(--len, 160); }
.diagram.play .draw { animation: dgDraw 0.9s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
@keyframes dgDraw { to { stroke-dashoffset: 0; } }
.diagram .warms { transition: fill 0.6s var(--ease-out) 0.55s, stroke 0.6s var(--ease-out) 0.55s, r 0.6s var(--ease-out) 0.55s; }
.diagram .fades { opacity: 0; transition: opacity 0.6s var(--ease-out) 0.7s; }
.diagram.play .warms.to-fill { fill: var(--resolved); }
.diagram.play .warms.to-stroke { stroke: var(--resolved); }
.diagram.play .fades { opacity: 1; }
.diagram .row { transition: transform 0.8s var(--ease-in-out) 0.3s; }
.diagram.play .row-up { transform: translateY(-88px); }
.diagram.play .row-dn1 { transform: translateY(44px); }
.diagram .fades-late { transition-delay: 1.05s; } /* lands after the re-rank settles */
.engine-panel .diagram { cursor: pointer; }
.diagram-replay {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  margin-top: auto; padding-top: 1.4rem; min-height: 44px;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-muted);
  transition: color var(--dur-fast) var(--ease-out);
}
.diagram-replay::before { content: "\21BB"; font-size: 13px; }
.diagram-replay:hover { color: var(--resolved); }
.diagram-replay:focus-visible { outline: 2px solid var(--resolved); outline-offset: 4px; }
.reduced .engine-panel .diagram { cursor: default; }
.reduced .diagram-replay { display: none; }
.reduced .diagram .draw { stroke-dashoffset: 0; }
.reduced .diagram .fades { opacity: 1; }

/* ---- No-GSAP path: sticky pins + a swipeable strip, so the site still moves ---- */
.nogsap .hero { height: 240vh; }
.nogsap .hero-pin { position: sticky; top: 0; }
.nogsap .hero-h-2 { opacity: 0; }
.nogsap .strip-pin { height: auto; padding-block: clamp(4rem, 10vh, 7rem); overflow: visible; }
.nogsap .strip-progress { display: none; }
.nogsap .strip-track {
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: var(--pad-x); scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.nogsap .strip-track::-webkit-scrollbar { display: none; }
.nogsap .strip-panel { scroll-snap-align: start; }
.nogsap .strip-count { position: static; display: block; margin: 1.5rem var(--pad-x) 0; text-align: right; }
@media (max-width: 768px) { .nogsap .hero { height: 200vh; } }

/* ============ PROOF ============ */
.proof { overflow: clip; }
.proof-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: start; }
.proof-eyebrow { grid-column: 1 / 4; grid-row: 1; }
.proof-fact-a { grid-column: 1 / 4; grid-row: 2; margin-top: 4rem; }
.proof-num-wrap { grid-column: 3 / 13; grid-row: 1 / 4; text-align: right; }
.proof-num {
  font-family: var(--font-display); letter-spacing: -0.03em; line-height: 0.9;
  font-size: clamp(5rem, 13vw, 11rem); white-space: nowrap; color: var(--ink);
  display: block;
}
.proof-num-cap { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--resolved); margin-top: 1.4rem; }
.proof-facts { display: grid; gap: 0.5rem; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.05em; color: var(--ink-muted); }
.proof-facts span { color: inherit; font-weight: 500; }
.proof-line { grid-column: 5 / 13; grid-row: 4; margin-top: 4rem; text-align: right; }
.proof-line p { color: var(--ink-muted); font-size: 15px; }
.proof-line p b { color: var(--ink); font-weight: 500; }
.proof-pipeline { grid-column: 1 / 5; grid-row: 4; margin-top: 4rem; }
@media (max-width: 900px) {
  .proof-num-wrap { grid-column: 1 / 13; grid-row: 2; text-align: left; margin-top: 2rem; }
  .proof-fact-a { grid-column: 1 / 13; grid-row: 3; margin-top: 3rem; }
  .proof-pipeline { grid-column: 1 / 13; grid-row: 4; margin-top: 2.5rem; }
  .proof-line { grid-column: 1 / 13; grid-row: 5; text-align: left; margin-top: 2.5rem; }
}

/* ============ STRIP (BEACHHEAD) ============ */
.strip { position: relative; background: var(--ground); }
.strip-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; will-change: transform; }
.strip-progress { position: absolute; top: 0; left: 0; height: 2px; width: 100%; background: var(--resolved); transform: scaleX(0); transform-origin: left; }
.strip-track { display: flex; will-change: transform; }
.strip-panel {
  flex: 0 0 auto; width: min(720px, 86vw); padding: 0 clamp(2rem, 5vw, 5rem);
  border-left: 1px solid var(--ground-line);
}
.strip-panel:first-child { margin-left: var(--pad-x); }
.strip-panel:last-child { margin-right: 20vw; }
.strip-panel .eyebrow { color: var(--resolved); }
.strip-panel h3 { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.6rem); letter-spacing: -0.02em; line-height: 1.02; margin: 1.4rem 0 1.6rem; text-wrap: balance; }
.strip-panel p { color: var(--ink-muted); max-width: 52ch; font-size: 15.5px; text-wrap: pretty; }
.strip-count { position: absolute; bottom: 8vh; right: var(--pad-x); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--ink-faint); }
.no-js .strip-pin, .reduced .strip-pin { height: auto; padding-block: var(--space-section); overflow: visible; }
.no-js .strip-track, .reduced .strip-track { flex-direction: column; gap: 4rem; }
.no-js .strip-panel, .reduced .strip-panel {
  width: auto; max-width: 880px; border-left: 0;
  margin-left: var(--pad-x) !important; margin-right: var(--pad-x) !important;
}
.no-js .strip-count, .reduced .strip-count, .no-js .strip-progress, .reduced .strip-progress { display: none; }

/* ============ CLOSE ============ */
.close-section { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; position: relative; }
.close-section .wash { background: radial-gradient(50% 40% at 50% 60%, rgba(255,61,143,0.09), transparent 70%); }
.close-inner { position: relative; z-index: 1; padding-inline: var(--pad-x); }
.close-inner h2 {
  font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.05;
  font-size: clamp(2.8rem, 5.6vw, 5.4rem); max-width: 20ch; margin-inline: auto; text-wrap: balance;
}
.close-inner .btn { margin-top: 3.2rem; }

/* ============ CONTACT / CTA ============ */
.cta-section { border-top: 1px solid var(--ground-line); }
.cta-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: start; }
.cta-left { grid-column: 1 / 7; }
.cta-left h2 { font-family: var(--font-display); font-size: clamp(2.2rem, 3.8vw, 3.6rem); letter-spacing: -0.02em; line-height: 1.05; }
.cta-left p { color: var(--ink-muted); margin-top: 1.4rem; max-width: 46ch; }
.cta-left .btn { margin-top: 2.4rem; }
.cta-form { grid-column: 8 / 13; }
@media (max-width: 900px) { .cta-left, .cta-form { grid-column: 1 / 13; } .cta-form { margin-top: 3rem; } }
.tally-placeholder {
  border: 1px dashed var(--ground-line); background: var(--ground-raised);
  min-height: 320px; display: grid; place-items: center; text-align: center; padding: 2rem;
}
.tally-placeholder .mono { color: var(--ink-muted); line-height: 2; }

/* modal */
.contact-modal[hidden] { display: none; }
.contact-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.contact-modal .modal-backdrop { position: absolute; inset: 0; background: rgba(8,9,12,0.8); backdrop-filter: blur(6px); }
.contact-modal .modal-card {
  position: relative; background: var(--ground-raised); border: 1px solid var(--ground-line);
  width: min(560px, 100%); max-height: 86vh; max-height: 86svh; overflow: auto;
  padding: clamp(1.6rem, 3vw, 2.6rem); padding-top: max(clamp(1.6rem, 3vw, 2.6rem), 68px);
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.contact-modal h2 { font-family: var(--font-display); font-size: 2rem; letter-spacing: -0.02em; margin-bottom: 0.6rem; }
.contact-modal .modal-sub { color: var(--ink-muted); font-size: 15px; margin-bottom: 1.8rem; }
.modal-close {
  position: absolute; top: 14px; right: 14px; background: none; border: 1px solid var(--ground-line);
  color: var(--ink-muted); width: 44px; height: 44px; cursor: pointer; font-size: 16px; line-height: 1;
}
.modal-close:hover { color: var(--resolved); border-color: var(--resolved); }

/* ============ FOOTER ============ */
.site-footer { border-top: 1px solid var(--ground-line); padding: 3.5rem var(--pad-x) 3rem; }
.footer-grid { max-width: var(--max-w); margin-inline: auto; display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--font-display); font-size: 18px; color: var(--ink); }
.footer-brand img { height: 30px; width: auto; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.footer-meta { max-width: var(--max-w); margin: 2.5rem auto 0; padding-top: 1.6rem; border-top: 1px solid var(--ground-line); display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.05em; color: var(--ink-muted); }

/* ============ PAGE HEADERS (interior pages) ============ */
.page-head { padding-top: calc(var(--space-section) + 60px); }
.page-head h1 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.0; font-size: clamp(3rem, 6.5vw, 6rem); max-width: 16ch; text-wrap: balance; }
.page-head .eyebrow { display: block; margin-bottom: 1.6rem; }
.page-head .lede { color: var(--ink-muted); max-width: 56ch; margin-top: 1.8rem; font-size: 17px; }

/* ============ DEMOS BENTO ============ */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); grid-auto-rows: minmax(150px, auto); }
.demo-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--ground-raised); border: 1px solid var(--ground-line);
  padding: clamp(1.4rem, 2.5vw, 2.4rem); transform-style: preserve-3d; will-change: transform;
  transition: border-color var(--dur-base) var(--ease-out);
}
.demo-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--resolved); transform: scaleX(0); transform-origin: left;
  transition: transform 0.7s var(--ease-out);
}
.demo-card:hover::after { transform: scaleX(1); }
.demo-card:hover { color: var(--ink); }
.demo-card .card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.demo-card h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 2vw, 2rem); letter-spacing: -0.015em; line-height: 1.08; margin-top: auto; padding-top: 2.5rem; }
.demo-card .card-desc { color: var(--ink-muted); font-size: 15px; margin-top: 0.7rem; max-width: 48ch; }
.demo-hero-card h3 { font-size: clamp(2.2rem, 3.4vw, 3.4rem); }
.demo-hero-card .card-desc { font-size: 16px; }
.card-status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); white-space: nowrap; }
.demo-card[data-state="live"] .card-status { color: var(--ink-muted); }
.demo-card[data-state="live"] .card-status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--resolved);
  animation: pulse 3s var(--ease-in-out) infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.demo-card[data-state="live"] .card-status::after { content: "live demo"; }
.demo-card[data-state="walkthrough"] { pointer-events: none; opacity: 0.62; }
.demo-card[data-state="walkthrough"] .card-status::after { content: "walkthrough"; }
.demo-metrics { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--ground-line); font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.05em; color: var(--ink-muted); }
.bento-hero { grid-column: 1 / 8; grid-row: span 3; min-height: 540px; }
.bento-b { grid-column: 8 / 13; grid-row: span 2; }
.bento-c { grid-column: 8 / 13; grid-row: span 1; min-height: 220px; }
.bento-tier-label { grid-column: 1 / 13; margin-top: 3rem; display: flex; align-items: baseline; gap: 1.5rem; }
.bento-tier-label::after { content: ""; flex: 1; height: 1px; background: var(--ground-line); align-self: center; }
.bento-s1 { grid-column: 1 / 5; min-height: 260px; }
.bento-s2 { grid-column: 5 / 9; min-height: 260px; }
.bento-s3 { grid-column: 9 / 13; min-height: 260px; }
@media (max-width: 900px) {
  .bento-hero, .bento-b, .bento-c, .bento-s1, .bento-s2, .bento-s3 { grid-column: 1 / 13; grid-row: auto; min-height: 0; }
  .bento-hero { min-height: 420px; }
}

/* ============ PLATFORM ============ */
.platform-layout { display: grid; grid-template-columns: 200px 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.pf-nav { position: sticky; top: 110px; display: grid; gap: 2px; }
.pf-nav a {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-muted); padding: 9px 0 9px 16px; border-left: 1px solid var(--ground-line);
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.pf-nav a:hover { color: var(--ink); }
.pf-nav a.active { color: var(--resolved); border-left-color: var(--resolved); }
.platform-layout > * { min-width: 0; } /* stop a wide table forcing the column past the container padding */
@media (max-width: 900px) { .platform-layout { grid-template-columns: 1fr; } .pf-nav { display: none; } }
.pf-section { padding-block: clamp(3.5rem, 8vh, 6rem); border-top: 1px solid var(--ground-line); }
.pf-section:first-child { border-top: 0; padding-top: 0; }
.pf-section h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.8rem); letter-spacing: -0.02em; margin: 1.2rem 0 1rem; }
.pf-section > p.pf-lede { color: var(--ink-muted); max-width: 58ch; margin-bottom: 2.5rem; }
/* how it works */
.hiw { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.hiw-steps { display: grid; }
.hiw-step { padding: clamp(2.4rem, 6vh, 4rem) 0; border-top: 1px solid var(--ground-line); opacity: 0.45; transition: opacity 0.5s var(--ease-out); }
.hiw-step.active, .no-js .hiw-step, .reduced .hiw-step { opacity: 1; }
.hiw-step:first-child { border-top: 0; padding-top: 0; }
.hiw-step h3 { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: -0.015em; margin: 0.7rem 0 0.7rem; }
.hiw-step p { color: var(--ink-muted); font-size: 15px; max-width: 44ch; }
.hiw-figure { position: sticky; top: 130px; }
.hiw-figure svg { width: 100%; height: auto; border: 1px solid var(--ground-line); background: var(--ground-raised); }
@media (max-width: 900px) { .hiw { grid-template-columns: 1fr; } .hiw-figure { position: static; order: -1; } }
/* tables */
.tech-table { width: 100%; border-collapse: collapse; }
/* phones: the 3-column tech table stacks into labelled blocks rather than scrolling sideways */
@media (max-width: 700px) {
  .tech-table, .tech-table tbody, .tech-table tr, .tech-table td { display: block; width: auto; }
  .tech-table thead { display: none; }
  .tech-table tr { border-top: 1px solid var(--ground-line); padding-block: 1.5rem; }
  .tech-table td { border: 0; padding: 0; }
  .tech-table td + td { margin-top: 0.9rem; }
  .tech-table td:first-child {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--resolved); margin-bottom: 1rem;
  }
  .tech-table td:nth-child(2)::before { content: "What it is"; }
  .tech-table td:nth-child(3)::before { content: "Why it matters"; }
  .tech-table td:nth-child(2)::before, .tech-table td:nth-child(3)::before {
    display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--ink-muted); margin-bottom: 0.4rem;
  }
}
.tech-table th {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-muted); text-align: left; font-weight: 500; padding: 0 1.2rem 0.9rem 0; border-bottom: 1px solid var(--ground-line);
}
.tech-table td { padding: 1.1rem 1.2rem 1.1rem 0; border-bottom: 1px solid var(--ground-line); font-size: 15px; color: var(--ink-muted); vertical-align: top; }
.tech-table td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }
.tech-table td.mono-cell { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); white-space: nowrap; }
/* ledger */
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.ledger-col { border: 1px solid var(--ground-line); padding: clamp(1.4rem, 2.5vw, 2.2rem); }
.ledger-col h3 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; padding-bottom: 1.2rem; border-bottom: 1px solid var(--ground-line); margin-bottom: 0.4rem; }
.ledger-col.live h3 { color: var(--resolved); }
.ledger-col.build h3 { color: var(--ink-muted); }
.ledger-col ul { list-style: none; }
.ledger-col li { padding: 0.9rem 0; border-bottom: 1px solid var(--ground-line); font-size: 15px; color: var(--ink-muted); }
.ledger-col li:last-child { border-bottom: 0; }
.ledger-col li b { color: var(--ink); font-weight: 500; }
.ledger-gate { grid-column: 1 / -1; padding: 1.4rem 0 0; font-family: var(--font-mono); font-size: 13.5px; letter-spacing: 0.04em; color: var(--ink-muted); }
.ledger-gate b { color: var(--resolved); font-weight: 500; }
@media (max-width: 800px) { .ledger { grid-template-columns: 1fr; } }
/* integration paths */
.paths { display: grid; }
.path-item { display: grid; grid-template-columns: 56px 220px 1fr; gap: 1.5rem; padding: 1.6rem 0; border-top: 1px solid var(--ground-line); align-items: baseline; }
.path-item:last-child { border-bottom: 1px solid var(--ground-line); }
.path-item .idx { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.path-item h3 { font-size: 15.5px; font-weight: 600; }
.path-item p { color: var(--ink-muted); font-size: 15px; }
@media (max-width: 800px) { .path-item { grid-template-columns: 40px 1fr; } .path-item p { grid-column: 2; } }

/* ============ ABOUT ============ */
.about-thesis p { font-family: var(--font-display); letter-spacing: -0.015em; line-height: 1.2; font-size: clamp(1.55rem, 2.6vw, 2.4rem); max-width: 34ch; text-wrap: pretty; }
.about-thesis p + p { margin-top: 2.2rem; }
.founders { display: grid; grid-template-columns: repeat(3, 1fr); }
.founder { padding: clamp(1.6rem, 3vw, 2.8rem); border-left: 1px solid var(--ground-line); }
.founder:first-child { border-left: 0; padding-left: 0; }
.founder h3 { font-family: var(--font-display); font-size: clamp(1.7rem, 2.4vw, 2.2rem); letter-spacing: -0.015em; line-height: 1.05; }
.founder .title { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--resolved); margin: 1rem 0 1.2rem; }
.founder p { color: var(--ink-muted); font-size: 15px; max-width: 34ch; }
@media (max-width: 800px) {
  .founders { grid-template-columns: 1fr; }
  .founder { border-left: 0; border-top: 1px solid var(--ground-line); padding-inline: 0; }
  .founder:first-child { border-top: 0; }
}
.about-why { max-width: 62ch; color: var(--ink-muted); font-size: 16.5px; }

/* skip link */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--resolved); color: var(--ground); padding: 12px 20px; font-family: var(--font-mono); font-size: 12px; }
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
