/* Evidentia Forge — website styles, release 2026-10-18a (accessibility pass; was forge.20261017c)
   Layout concept: a cinematic deep-space hero ("a higher horizon") that hands off to
   calm, left-aligned business sections on dark ink; gold marks action and emphasis,
   ice-blue marks structure. One boxed object per section at most (the demo console). */

:root {
  color-scheme: dark;

  /* Palette (inherited from v0.01, extended for text roles) */
  --ink: #050914;          /* page ground */
  --ink-2: #0a1220;        /* raised band */
  --ink-3: #0f1a2b;        /* panel */
  --line: rgba(179, 209, 232, .16);
  --line-strong: rgba(179, 209, 232, .32);
  --text: #eef2f6;         /* primary text, ~17:1 on ink */
  --text-2: #bccad7;       /* body copy, ~11:1 */
  --text-3: #8fa5b9;       /* labels and captions, ~7:1 */
  --ice: #d8e8f5;
  --blue: #90b8d6;
  --gold: #e6b866;
  --gold-soft: #f1d39b;
  --gold-ink: #1b1305;     /* text on gold */
  --field: #8fd3c1;        /* demo: field-context tag */
  --infer: #c3a8f0;        /* demo: AI-inference tag */

  /* Type: system faces only — no network fonts.
     Display = light, widely tracked caps (the brand voice). Body = the platform UI face.
     Serif italic is reserved for the manifesto. */
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Inter, Arial, sans-serif;
  --font-serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --step--1: .8125rem;   /* 13px labels */
  --step-0: 1.0625rem;   /* 17px body */
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 1.1rem + 1.2vw, 1.85rem);
  --step-3: clamp(2rem, 1.3rem + 3vw, 3.5rem);

  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--gold-soft); }

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

.skip-link {
  position: absolute; left: var(--gutter); top: -60px; z-index: 100;
  background: var(--gold); color: var(--gold-ink); padding: 10px 16px;
  font-weight: 600; text-decoration: none; border-radius: 2px;
}
.skip-link:focus { top: calc(10px + env(safe-area-inset-top, 0px)); }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px;
  font: inherit; font-size: .8125rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border-radius: 2px;
  border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn-primary { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-soft); box-shadow: 0 0 24px rgba(230, 184, 102, .35); }
.btn-ghost { background: rgba(5, 9, 20, .35); color: var(--gold-soft); border-color: rgba(241, 211, 155, .55); }
.btn-ghost:hover { border-color: var(--gold-soft); background: rgba(241, 211, 155, .08); }
.btn-text { background: none; color: var(--text-2); padding-inline: 12px; }
.btn-text:hover { color: var(--gold-soft); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: .75rem; letter-spacing: .18em; }
.btn[disabled] { opacity: .45; cursor: default; box-shadow: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(5, 9, 20, .9);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.header-inner {
  max-width: 1440px; margin: 0 auto;
  min-height: var(--header-h);
  padding-left: max(20px, 3.5vw, env(safe-area-inset-left, 0px));
  padding-right: max(20px, 3.5vw, env(safe-area-inset-right, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { color: inherit; text-decoration: none; display: flex; gap: 14px; align-items: center; min-width: 0; }
.sigil {
  flex: none; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--gold-soft); color: var(--gold); font-size: 22px;
  box-shadow: 0 0 0 6px rgba(230, 184, 102, .04);
}
.brand-text { min-width: 0; }
.brand strong {
  display: block; font-weight: 300; letter-spacing: .25em; line-height: 1.2;
  font-size: clamp(1rem, .8rem + .9vw, 1.5rem);
  background: linear-gradient(90deg, var(--gold-soft), #fff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}
.brand small { display: block; margin-top: 4px; font-size: .625rem; letter-spacing: .36em; color: var(--text-2); white-space: nowrap; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); }
.nav a {
  color: var(--text); text-decoration: none;
  font-size: .75rem; letter-spacing: .26em; text-transform: uppercase;
  padding: 10px 2px; border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--gold-soft); }
.nav a[aria-current="true"] { color: var(--gold-soft); border-bottom-color: rgba(241, 211, 155, .6); }
.nav .nav-cta { border: 1px solid rgba(241, 211, 155, .55); padding: 10px 16px; color: var(--gold-soft); }
.nav .nav-cta:hover { background: rgba(241, 211, 155, .08); }

.menu-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 12px;
  background: none; border: 1px solid var(--line-strong); border-radius: 2px;
  color: var(--text); font: inherit; font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; cursor: pointer;
}
.menu-icon { position: relative; width: 18px; height: 10px; }
.menu-icon i { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .2s, top .2s; }
.menu-icon i:first-child { top: 0; }
.menu-icon i:last-child { top: 9px; }
.menu-toggle[aria-expanded="true"] .menu-icon i:first-child { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon i:last-child { top: 5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  background: #02060d;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 28px) var(--gutter-r) 72px var(--gutter);
}
.space, .space > * { position: absolute; inset: 0; pointer-events: none; }
.space {
  z-index: -5;
  background:
    radial-gradient(circle at 72% 28%, rgba(89, 126, 184, .23), transparent 16%),
    radial-gradient(circle at 72% 30%, rgba(177, 105, 151, .12), transparent 22%),
    linear-gradient(180deg, #02050b 0%, #07101c 55%, #0b1826 100%);
}
.stars { background-repeat: repeat; opacity: .8; }
.stars-a {
  background-image:
    radial-gradient(circle, #fff 0 1px, transparent 1.2px),
    radial-gradient(circle, #7fb7e5 0 1px, transparent 1.2px);
  background-size: 93px 93px, 137px 137px;
  background-position: 10px 15px, 61px 42px;
  animation: drift 55s linear infinite;
}
.stars-b {
  opacity: .35;
  background-image: radial-gradient(circle, #fff 0 1px, transparent 1.1px);
  background-size: 47px 47px; background-position: 12px 28px;
  animation: drift 85s linear infinite reverse;
}
.nebula {
  inset: -15% -10% 10% 48%;
  filter: blur(10px);
  background:
    radial-gradient(ellipse at 45% 35%, rgba(85, 139, 198, .28), transparent 35%),
    radial-gradient(ellipse at 58% 40%, rgba(153, 92, 151, .22), transparent 25%),
    radial-gradient(ellipse at 68% 46%, rgba(232, 173, 109, .14), transparent 20%);
  transform: rotate(-16deg);
  will-change: transform;
}
.planet {
  inset: 23vh -10vw auto auto;
  width: 28vw; height: 28vw; min-width: 280px; min-height: 280px;
  border-radius: 50%;
  box-shadow: -12px 0 24px rgba(169, 209, 241, .5), inset 40px -8px 90px rgba(102, 155, 193, .25);
  background:
    radial-gradient(circle at 22% 48%, rgba(220, 235, 247, .42), transparent 3%),
    radial-gradient(circle at 36% 30%, rgba(75, 108, 136, .42), transparent 13%),
    linear-gradient(100deg, #7691aa 0%, #23384e 24%, #07111d 57%, #000 78%);
  opacity: .88;
}
.horizon-glow {
  top: auto; height: 34%;
  background:
    radial-gradient(ellipse at 78% 0%, rgba(255, 209, 134, .9) 0 1%, rgba(255, 205, 122, .22) 5%, transparent 17%),
    radial-gradient(ellipse at 50% 15%, rgba(127, 197, 242, .22), transparent 32%);
  border-top: 1px solid rgba(153, 211, 246, .55);
  transform: perspective(650px) rotateX(60deg) scaleX(1.25);
  transform-origin: center top;
}
.ice-field {
  top: auto; height: 28%;
  background:
    linear-gradient(160deg, transparent 0 26%, rgba(95, 132, 161, .22) 27% 29%, transparent 30%),
    linear-gradient(20deg, transparent 0 40%, rgba(148, 188, 216, .18) 41% 43%, transparent 44%),
    linear-gradient(180deg, rgba(38, 61, 80, .42), rgba(4, 9, 15, .98));
  clip-path: polygon(0 28%, 10% 18%, 20% 31%, 31% 20%, 44% 30%, 56% 14%, 67% 26%, 77% 17%, 88% 25%, 100% 10%, 100% 100%, 0 100%);
}
/* Commercial-data constellations, drawn by script on a canvas (decorative). */
.data-sky { width: 100%; height: 100%; display: block; }

/* A faint holodeck grid laid over the ice field, receding to the horizon. */
.holo-floor {
  top: auto; height: 30%;
  background:
    repeating-linear-gradient(90deg, rgba(241, 211, 155, .22) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(241, 211, 155, .18) 0 1px, transparent 1px 44px);
  transform: perspective(420px) rotateX(64deg) scale(2.2, 1);
  transform-origin: center top;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 70%, transparent 100%);
  opacity: .5;
}

/* ---------- Holodeck doors intro (created by script; never blocks input) ---------- */
.holo-doors { position: fixed; inset: 0; z-index: 80; overflow: hidden; }
.holo-doors.open { pointer-events: none; }
.door-actions { display: flex; gap: 10px; margin-top: 8px; letter-spacing: normal; }
.door-actions .btn { min-width: 112px; }
.door-hint { color: var(--text-3); font-size: .62rem; letter-spacing: .2em; margin-top: 2px; white-space: normal; max-width: 260px; line-height: 1.6; }
/* Quiet sound control, bottom-right on every page view. */
.sound-toggle {
  position: fixed; z-index: 60;
  right: calc(14px + env(safe-area-inset-right, 0px));
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 34px; padding: 6px 12px;
  background: rgba(5, 9, 20, .72); color: var(--text-2);
  border: 1px solid rgba(179, 209, 232, .18); border-radius: 999px;
  font: inherit; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer; opacity: .9;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity .2s, color .2s, border-color .2s;
}
.sound-toggle:hover, .sound-toggle:focus-visible { opacity: 1; color: var(--gold-soft); border-color: rgba(241, 211, 155, .5); }
.sound-toggle.is-on { color: var(--gold-soft); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.eq i { width: 2px; height: 3px; background: currentColor; opacity: .8; }
.sound-toggle.is-on .eq i { animation: eq .9s ease-in-out infinite; }
.sound-toggle.is-on .eq i:nth-child(2) { animation-delay: .15s; }
.sound-toggle.is-on .eq i:nth-child(3) { animation-delay: .3s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 11px; } }
@media (max-width: 560px) { .sound-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .sound-toggle { padding: 6px 10px; } }
.holo-doors .grid-flash {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(241, 211, 155, .55) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(241, 211, 155, .5) 0 1px, transparent 1px 72px),
    rgba(2, 5, 11, .55);
  opacity: 1; transition: opacity .9s ease;
}
.holo-doors.resolve .grid-flash { opacity: 0; }
.door {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background:
    linear-gradient(180deg, transparent 0 18%, rgba(255, 255, 255, .035) 18% 18.3%, transparent 18.3% 50%, rgba(255, 255, 255, .035) 50% 50.3%, transparent 50.3% 82%, rgba(255, 255, 255, .035) 82% 82.3%, transparent 82.3%),
    linear-gradient(90deg, #0b131f, #141f2e 60%, #0d1622);
  transition: transform 1.25s cubic-bezier(.72, 0, .2, 1);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, .6);
}
.door-l { left: 0; border-right: 1px solid rgba(241, 211, 155, .7); }
.door-r { right: 0; border-left: 1px solid rgba(241, 211, 155, .7);
  background:
    linear-gradient(180deg, transparent 0 18%, rgba(255, 255, 255, .035) 18% 18.3%, transparent 18.3% 50%, rgba(255, 255, 255, .035) 50% 50.3%, transparent 50.3% 82%, rgba(255, 255, 255, .035) 82% 82.3%, transparent 82.3%),
    linear-gradient(270deg, #0b131f, #141f2e 60%, #0d1622);
}
/* Vertical light strips on each door, like running lights. */
.door::after {
  content: ""; position: absolute; top: 12%; bottom: 12%; width: 3px;
  background: linear-gradient(180deg, transparent, var(--gold) 20%, #9fd8ff 60%, transparent);
  box-shadow: 0 0 14px rgba(230, 184, 102, .7);
  opacity: .8;
}
.door-l::after { right: 9%; }
.door-r::after { left: 9%; }
.door-seam {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px;
  background: linear-gradient(180deg, transparent, #fff3d6 30%, #fff3d6 70%, transparent);
  box-shadow: 0 0 24px 6px rgba(241, 211, 155, .55);
  animation: seam .7s ease-in-out both;
  transition: opacity .3s;
}
.door-label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; gap: 10px; justify-items: center; text-align: center;
  color: var(--gold-soft); letter-spacing: .42em; font-size: .72rem; text-transform: uppercase;
  white-space: nowrap; padding: 14px 20px; background: rgba(5, 9, 20, .82); border: 1px solid rgba(241, 211, 155, .45);
  transition: opacity .35s;
}
.door-label strong { font-weight: 300; font-size: 1.05rem; letter-spacing: .3em; color: #fff; }
.holo-doors.open .door-l { transform: translateX(-102%); }
.holo-doors.open .door-r { transform: translateX(102%); }
.holo-doors.open .door-seam, .holo-doors.open .door-label { opacity: 0; animation: none; }
.intro-playing .crawl { animation-play-state: paused; } /* the manifesto rises once the doors part */
@keyframes seam { from { opacity: 0; transform: scaleY(.2); } to { opacity: 1; transform: scaleY(1); } }

.monolith {
  inset: auto auto 18% 7%;
  width: clamp(70px, 8vw, 130px); height: clamp(260px, 44vh, 520px);
  transform: perspective(800px) rotateY(-12deg) rotateZ(-2deg);
  background: linear-gradient(90deg, #03070b 0%, #0a1118 70%, #172534 100%);
  box-shadow: 14px 18px 45px rgba(0, 0, 0, .55);
  clip-path: polygon(10% 0, 88% 8%, 100% 100%, 0 94%);
}
.monolith span {
  position: absolute; right: 12%; top: 6%; width: 3px; height: 86%;
  background: linear-gradient(180deg, transparent, #f4c777 14%, #9fd8ff 55%, transparent);
  box-shadow: 0 0 12px #d6f0ff, 0 0 28px rgba(222, 177, 94, .65);
}

.hero-copy {
  position: relative; z-index: 2;
  width: min(780px, 100%); margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
/* Soft scrim keeps the manifesto readable where it crosses the horizon line. */
.hero-copy::before {
  content: ""; position: absolute; inset: -6% -14% -4%; z-index: -1;
  background: radial-gradient(ellipse at 50% 55%, rgba(2, 6, 13, .62), rgba(2, 6, 13, .3) 45%, transparent 72%);
}
.eyebrow {
  color: var(--ice); text-transform: uppercase;
  letter-spacing: .42em; font-size: .75rem; line-height: 2;
}
.eyebrow span { display: block; }
.hero h1 {
  margin: 18px 0 10px;
  color: var(--gold-soft);
  font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.9rem);
  font-weight: 300; letter-spacing: .22em; line-height: 1.1;
  margin-right: -.22em; /* optically re-center tracked caps */
}
.hero-sub {
  color: #dbe6ef; text-transform: uppercase;
  font-size: clamp(.8rem, .6rem + .8vw, 1.2rem);
  font-weight: 300; line-height: 1.7; letter-spacing: .32em;
  margin-right: -.32em;
}

.crawl-frame { width: min(660px, 100%); margin-top: 22px; perspective: 900px; }
.crawl {
  color: var(--gold);
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.02rem, .9rem + .45vw, 1.3rem);
  line-height: 1.5;
  transform-origin: 50% 100%;
  transform: rotateX(9deg);
  animation: crawlIn 2.2s cubic-bezier(.18, .8, .24, 1) both;
}
.crawl p { margin: 0 0 12px; text-shadow: 0 2px 16px rgba(0, 0, 0, .85); }
.crawl strong { color: var(--gold-soft); }
.manifesto { font-size: 1.06em; margin-bottom: 0 !important; }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }

.rail, .footer-note {
  position: absolute; z-index: 3; display: none;
  color: #a9c0d4; letter-spacing: .3em; font-size: .6875rem; line-height: 2.4;
}
.rail { top: calc(var(--header-h) + 14vh); }
.rail-left, .footer-left { left: 2vw; border-left: 1px solid rgba(215, 229, 239, .7); padding-left: 14px; }
.rail-right, .footer-right { right: 2.2vw; text-align: right; border-right: 1px solid rgba(215, 229, 239, .7); padding-right: 14px; }
.footer-note { bottom: calc(4vh + 40px); }

/* ---------- Bands ---------- */
.band { padding-block: clamp(72px, 9vw, 120px); border-top: 1px solid var(--line); }
.band-mission { background: radial-gradient(circle at 80% 0%, rgba(76, 125, 167, .14), transparent 34%), var(--ink-2); }
.band-capabilities { background: var(--ink); }
.band-forge { background: radial-gradient(circle at 15% 0%, rgba(230, 184, 102, .07), transparent 30%), linear-gradient(#07101b, #040810 60%); }
.band-contact { background: var(--ink-2); }

.section-head { max-width: 760px; display: grid; gap: 18px; }
.kicker {
  color: var(--gold); font-size: var(--step--1); letter-spacing: .32em; text-transform: uppercase;
}
.band h2 { font-size: var(--step-3); font-weight: 300; line-height: 1.08; letter-spacing: -.01em; color: var(--text); }
.lead { color: var(--text-2); font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); line-height: 1.7; max-width: 66ch; }
.lead-quiet { color: var(--gold-soft); font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; }
.label {
  color: var(--blue); font-size: var(--step--1); font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
h4 { font-size: var(--step-1); font-weight: 500; line-height: 1.3; color: var(--text); }

/* Mission */
.serve { margin-top: clamp(48px, 6vw, 72px); display: grid; gap: 28px; }
.serve-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.serve-list li { display: grid; gap: 10px; align-content: start; }
.serve-tag { color: var(--gold-soft); font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; }
.serve-list p { color: var(--text-2); }

.bring { margin-top: clamp(56px, 7vw, 88px); display: grid; gap: 20px; }
.bring > .label { border-bottom: 0; padding-bottom: 0; }
.bring-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(28px, 5vw, 72px); }
.bring-list li { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 1px solid rgba(241, 211, 155, .45); }
.bring-list h4 { font-size: var(--step-2); font-weight: 300; line-height: 1.2; }
.bring-hook { color: var(--gold-soft); font-family: var(--font-serif); font-style: italic; font-size: 1.12rem; line-height: 1.45; }
.bring-list p:last-child { color: var(--text-2); }
@media (max-width: 760px) { .bring-list { grid-template-columns: minmax(0, 1fr); } }

.pull {
  color: var(--gold); font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.08rem, 1rem + .35vw, 1.28rem); line-height: 1.6; max-width: 62ch;
  padding-left: 18px; border-left: 1px solid rgba(241, 211, 155, .5);
}

/* Founder */
.founder { margin-top: clamp(56px, 7vw, 88px); display: grid; gap: 24px; }
.founder-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.founder-id { display: flex; gap: 18px; align-items: center; }
.founder-mark {
  flex: none; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gold-soft); color: var(--gold-soft); font-weight: 300; letter-spacing: .18em; font-size: 1.1rem;
  box-shadow: 0 0 0 7px rgba(230, 184, 102, .05);
}
.founder-name { font-size: var(--step-2); font-weight: 300; color: var(--text); line-height: 1.2; }
.founder-role { color: var(--text-3); font-size: .9rem; margin-top: 4px; }
.founder-link { display: inline-block; margin-top: 4px; padding: 6px 0; color: var(--gold-soft); font-size: .9rem; text-underline-offset: 4px; }
.founder-copy { display: grid; gap: 18px; }
.founder-copy > p { color: var(--text-2); }
.founder-cv { display: grid; border-top: 1px solid var(--line); }
.founder-cv li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.founder-cv span { color: var(--ice); letter-spacing: .08em; }
.founder-bench { color: var(--text-3) !important; font-size: .97rem; }
@media (max-width: 760px) {
  .founder-grid { grid-template-columns: minmax(0, 1fr); }
  .founder-cv li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

.stance {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.stance-copy { display: grid; gap: 20px; }
.stance-copy p { color: var(--text-2); }
.stance-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.stance-list li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.stance-list strong { color: var(--text); font-weight: 600; }

/* Capabilities */
.modes { margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.modes li { display: grid; gap: 12px; align-content: start; padding-top: 22px; border-top: 1px solid var(--gold); }
.modes h3 { font-size: var(--step-2); font-weight: 400; line-height: 1.2; }
.modes p { color: var(--text-2); }
.modes .mode-when { color: var(--text-3); font-size: .95rem; }

.layers, .cce { margin-top: clamp(56px, 7vw, 88px); display: grid; gap: 28px; }
.layer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.layer h4 { color: var(--ice); font-weight: 400; letter-spacing: .14em; text-transform: uppercase; font-size: 1rem; margin-bottom: 12px; }
.layer li { color: var(--text-2); padding: 7px 0 7px 18px; position: relative; border-bottom: 1px dashed rgba(179, 209, 232, .1); }
.layer li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 6px; height: 1px; background: var(--gold); }
.note { color: var(--text-3); font-size: .95rem; max-width: 80ch; }

.cce-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); counter-reset: none; }
.cce-flow li { position: relative; display: grid; gap: 8px; align-content: start; }
.cce-step {
  font-family: var(--font-mono); font-size: .875rem; letter-spacing: .2em;
  color: var(--gold-ink); background: var(--gold-soft); justify-self: start; padding: 4px 10px; border-radius: 2px;
}
.cce-what { color: var(--text); font-size: var(--step-1); }
.cce-flow p:last-child { color: var(--text-2); font-size: .97rem; }
.cce-flow li:not(:last-child)::after {
  content: "→"; position: absolute; top: -2px; right: calc(-1 * clamp(28px, 4vw, 56px) / 2 - .5em);
  color: var(--gold); font-size: 1.2rem;
}

/* Forge / demo */
.demo {
  margin-top: clamp(48px, 6vw, 72px);
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.demo-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px 32px;
  padding: clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--line);
}
.demo-head > div { display: grid; gap: 8px; max-width: 62ch; min-width: 0; }
.demo-kicker { color: var(--blue); font-size: .75rem; letter-spacing: .26em; text-transform: uppercase; }
.demo-head h3 { font-size: var(--step-2); font-weight: 400; }
.demo-desc { color: var(--text-2); font-size: .98rem; }
.sim-badge {
  flex: none; color: var(--gold-soft); font-size: .75rem; letter-spacing: .08em;
  border: 1px dashed rgba(241, 211, 155, .6); padding: 8px 12px; border-radius: 2px; max-width: 100%;
}
.demo-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.signal { padding: clamp(20px, 3vw, 32px); border-right: 1px solid var(--line); display: grid; gap: 18px; align-content: start; }
.signal-head { display: grid; gap: 4px; }
.signal-who { font-size: 1.1rem; color: var(--text); }
.signal-who span { display: block; color: var(--text-3); font-size: .8rem; letter-spacing: .06em; }
.signal-delta { color: var(--text-2); font-size: .95rem; }
.signal-delta b { color: var(--gold-soft); font-family: var(--font-mono); font-weight: 500; font-size: 1.15rem; margin-right: 6px; }
.chart { margin: 0; display: grid; gap: 6px; }
.chart figcaption { color: var(--text-3); font-size: .78rem; letter-spacing: .08em; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-state { color: var(--text-3); font-family: var(--font-mono); font-size: .72rem; }
.chart-denial[data-state="locked"] svg { opacity: .28; filter: grayscale(1); }
.chart-denial[data-state="open"] .chart-state { color: var(--field); }
.chart .grid { stroke: rgba(179, 209, 232, .12); stroke-width: 1; }
.chart .split { stroke: rgba(179, 209, 232, .35); stroke-dasharray: 3 3; }
.chart .tick { fill: var(--text-3); font: 10px var(--font-mono); }
.chart .note-t { fill: var(--text-3); font: 10.5px var(--font-sans); letter-spacing: .04em; }
.chart .note-t.hot { fill: var(--gold-soft); }
.chart .bar { fill: var(--blue); opacity: .75; }
.chart .bar-late { fill: var(--gold); opacity: 1; }
.chart .area { fill: rgba(143, 211, 193, .12); }
.chart .ln { fill: none; stroke: var(--field); stroke-width: 2; stroke-linejoin: round; }
.chart .avg { stroke: var(--gold-soft); stroke-dasharray: 4 3; stroke-width: 1; opacity: .8; }
.chart .end { fill: var(--field); stroke: var(--ink); stroke-width: 1.5; }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.facts div { border-top: 1px solid var(--line); padding-top: 8px; }
.facts dt { color: var(--text-3); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.facts dd { margin: 2px 0 0; color: var(--text); font-family: var(--font-mono); font-size: .9rem; font-variant-numeric: tabular-nums; }

.convo { padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; align-content: start; min-width: 0; }
.log { display: grid; gap: 14px; min-height: 260px; align-content: start; }
.msg { display: grid; gap: 6px; animation: msgIn .35s ease both; }
.msg-who { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.msg-body { color: var(--text); font-size: .98rem; line-height: 1.55; padding: 12px 14px; border-left: 2px solid var(--line-strong); background: rgba(255, 255, 255, .025); }
.msg-user .msg-body { border-left-color: var(--field); background: rgba(143, 211, 193, .06); }
.msg-body ul { margin-top: 8px; display: grid; gap: 4px; }
.msg-body li { color: var(--text-2); padding-left: 14px; position: relative; font-size: .93rem; }
.msg-body li::before { content: "·"; position: absolute; left: 2px; color: var(--gold); }
.msg-body .num { font-family: var(--font-mono); color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.convo-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
#demoNext { text-transform: none; letter-spacing: .02em; font-size: .9rem; text-align: left; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; padding: 2px 8px; border-radius: 2px; border: 1px solid; white-space: nowrap; }
.tag-fact { color: var(--blue); border-color: rgba(144, 184, 214, .55); }
.tag-field { color: var(--field); border-color: rgba(143, 211, 193, .55); }
.tag-ai { color: var(--infer); border-color: rgba(195, 168, 240, .55); }
.demo-foot { padding: 14px clamp(20px, 3vw, 32px); border-top: 1px solid var(--line); color: var(--text-3); font-size: .85rem; }

.roadmap { margin-top: clamp(56px, 7vw, 88px); display: grid; gap: 20px; }
.roadmap-intro { color: var(--text-2); max-width: 70ch; }
.lens-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px clamp(20px, 3vw, 36px); margin-top: 8px; }
.lens-list li { display: grid; gap: 6px; align-content: start; }
.lens-list h4 { font-size: 1.02rem; color: var(--ice); }
.lens-list p { color: var(--text-3); font-size: .93rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-main { display: grid; gap: 18px; }
.email-card {
  margin-top: 12px; display: grid; gap: 14px; padding: 24px;
  border: 1px solid rgba(241, 211, 155, .4); border-radius: 4px; background: rgba(230, 184, 102, .04);
}
.email-label { color: var(--text-3); font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; }
.email-address {
  color: var(--gold-soft); font-size: clamp(1.15rem, 1rem + 1vw, 1.6rem); font-weight: 300;
  text-decoration: none; overflow-wrap: anywhere; user-select: all;
}
.email-address:hover { text-decoration: underline; text-underline-offset: 4px; }
.email-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.copy-status { min-height: 1.4em; color: var(--field); font-size: .9rem; }
.offers { display: grid; gap: 8px; }
.offer-list li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.offer-list h4 { font-size: 1.05rem; }
.offer-list p { color: var(--text-2); font-size: .95rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #03060d; padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 10px 32px; align-items: baseline; justify-content: space-between; }
.footer-brand { color: var(--gold-soft); letter-spacing: .3em; font-size: .8rem; }
.footer-meta, .footer-legal { color: var(--text-3); font-size: .82rem; letter-spacing: .04em; }
.footer-legal { flex-basis: 100%; }

/* ---------- Motion ---------- */
@keyframes crawlIn {
  from { opacity: 0; transform: rotateX(16deg) translateY(60px) scale(.94); }
  to { opacity: 1; transform: rotateX(9deg) translateY(0) scale(1); }
}
@keyframes drift { to { background-position: 300px 140px, -220px 210px; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .crawl { transform: none; }
}

/* ---------- Responsive ---------- */
@media (min-width: 1200px) {
  .rail, .footer-note { display: grid; }
}
@media (max-width: 1080px) {
  .lens-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .js .menu-toggle { display: inline-flex; }
  .js .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(5, 9, 20, .97); border-bottom: 1px solid var(--line);
    padding: 8px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px));
  }
  .js .site-header.is-open .nav { display: flex; }
  .js .nav a { padding: 16px 4px; font-size: .85rem; border-bottom: 1px solid var(--line); }
  .js .nav .nav-cta { margin-top: 14px; text-align: center; border: 1px solid rgba(241, 211, 155, .55); }
  /* No-JS fallback: links stay visible as a row under the brand. */
  html:not(.js) .site-header { position: absolute; background: rgba(5, 9, 20, .9); }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .nav { width: 100%; flex-wrap: wrap; gap: 4px 20px; }
  html:not(.js) .nav .nav-cta { padding: 10px 2px; border: 0; }
  html:not(.js) .hero { padding-top: 168px; }

  .sigil { width: 40px; height: 40px; font-size: 18px; }
  .brand small { font-size: .55rem; letter-spacing: .28em; }
  .hero h1 { letter-spacing: .14em; margin-right: -.14em; }
  .hero-sub { letter-spacing: .2em; margin-right: -.2em; }
  .planet { right: -28vw; opacity: .5; }
  .monolith { left: -3%; opacity: .55; }
  .serve-list, .modes, .layer-grid, .cce-flow { grid-template-columns: minmax(0, 1fr); }
  .cce-flow li:not(:last-child)::after { content: "↓"; right: auto; left: 0; top: auto; bottom: calc(-1 * clamp(28px, 4vw, 56px) / 2 - .8em); }
  .stance, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .demo-body { grid-template-columns: minmax(0, 1fr); }
  .signal { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .brand small { display: none; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .eyebrow { letter-spacing: .3em; font-size: .7rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .lens-list { grid-template-columns: minmax(0, 1fr); }
  .log { min-height: 0; }
}

/* Door hold indicator: a thin gold line that drains over the 15-second hold. */
.door-timer { width: 100%; height: 2px; margin-top: 10px; background: rgba(241, 211, 155, .15); overflow: hidden; }
.door-timer i { display: block; height: 100%; background: var(--gold-soft); transform-origin: left; animation: doorHold 15s linear forwards; }
@keyframes doorHold { from { transform: scaleX(1); } to { transform: scaleX(0); } }
