/* ============ TOKENS ============ */
:root {
  --font-display: 'Cabinet Grotesk', 'Satoshi', system-ui, sans-serif;
  --font-body: 'Satoshi', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --text-xs: clamp(0.72rem, 0.71rem + 0.05vw, 0.76rem);
  --text-sm: clamp(0.84rem, 0.82rem + 0.08vw, 0.9rem);
  --text-base: clamp(1rem, 0.97rem + 0.12vw, 1.075rem);
  --text-lg: clamp(1.15rem, 1.09rem + 0.28vw, 1.35rem);
  --text-xl: clamp(1.5rem, 1.32rem + 0.85vw, 2.1rem);
  --text-2xl: clamp(2rem, 1.6rem + 1.9vw, 3.1rem);
  --text-hero: clamp(2.55rem, 1.5rem + 4.6vw, 5.4rem);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px;
  --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px; --s20: 80px; --s24: 96px; --s32: 128px;

  --wrap: 1240px;
  --gut: clamp(20px, 5vw, 72px);
  --sec: clamp(64px, 8vw, 128px);

  --r-sm: 2px; --r-md: 4px; --r-lg: 6px;

  /* light — warm paper + graphite */
  --color-bg: #F4F3EF;
  --color-surface: #FBFAF7;
  --color-surface-2: #EDEBE5;
  --color-text: #17201D;
  --color-text-muted: #5F6A65;
  --color-text-faint: #98A19C;
  --color-border: rgba(23,32,29,.13);
  --color-border-strong: rgba(23,32,29,.28);
  --color-primary: #1B5E4F;
  --color-primary-hover: #124337;
  --color-primary-soft: #E1EBE7;
  --color-amber: #8A5A12;
  --color-amber-soft: #F5EDDF;
  --color-ink: #101715;
  --color-on-ink: #E7E5DF;
  --color-on-ink-muted: #9AA6A1;
  --color-on-ink-accent: #6FBFA6;
  --color-ink-border: rgba(231,229,223,.16);
  --shadow-sm: 0 1px 2px rgba(23,32,29,.06);
  --shadow-md: 0 6px 24px rgba(23,32,29,.08);

  /* holographic accent — reserved for the forward-looking layer only:
     hero deployment rig, Solutions Map, Perimeter Labs. Evidence sections
     (Proof/Engagements/Compare) never touch this color. */
  --color-holo: #1E7F93;
  --color-holo-soft: #E4F0F2;
  --color-holo-line: rgba(30,127,147,.35);
}

[data-theme='dark'] {
  --color-bg: #101614;
  --color-surface: #161D1B;
  --color-surface-2: #1C2422;
  --color-text: #DDDCD7;
  --color-text-muted: #8C9793;
  --color-text-faint: #5C6764;
  --color-border: rgba(221,220,215,.14);
  --color-border-strong: rgba(221,220,215,.3);
  --color-primary: #6FBFA6;
  --color-primary-hover: #8FD3BD;
  --color-primary-soft: #1A2A26;
  --color-amber: #D3A05A;
  --color-amber-soft: #241F16;
  --color-ink: #080C0B;
  --color-on-ink: #DDDCD7;
  --color-on-ink-muted: #8C9793;
  --color-on-ink-accent: #6FBFA6;
  --color-ink-border: rgba(221,220,215,.14);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 6px 24px rgba(0,0,0,.5);

  --color-holo: #5FD3E8;
  --color-holo-soft: #132A2E;
  --color-holo-line: rgba(95,211,232,.4);
}

/* ============ PRIMITIVES ============ */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 860px; }

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
}

.lede { font-size: var(--text-lg); line-height: 1.55; color: var(--color-text-muted); max-width: 60ch; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.02em; }
h1 { font-size: var(--text-hero); font-weight: 500; line-height: 1.02; }
h2 { font-size: var(--text-2xl); font-weight: 500; }
h3 { font-size: var(--text-xl); font-weight: 500; letter-spacing: -.015em; }
h4 { font-family: var(--font-body); font-size: var(--text-lg); font-weight: 700; letter-spacing: -.01em; }

.skip {
  position: absolute; left: var(--s4); top: -60px; z-index: 200;
  background: var(--color-primary); color: #fff; padding: var(--s3) var(--s5); border-radius: var(--r-md);
  font-size: var(--text-sm);
}
.skip:focus { top: var(--s4); }

.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: var(--s3);
  font-size: var(--text-sm); font-weight: 500; text-decoration: none;
  padding: 14px 22px; border-radius: var(--r-md); min-height: 46px;
  border: 1px solid transparent;
}
.btn--pri { background: var(--color-primary); color: #FBFAF7; }
[data-theme='dark'] .btn--pri { color: #0B1210; }
.btn--pri:hover { background: var(--color-primary-hover); }
.btn--ghost { border-color: var(--color-border-strong); color: var(--color-text); }
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn--onink { border-color: var(--color-ink-border); color: var(--color-on-ink); }
.btn--onink:hover { border-color: var(--color-on-ink-accent); color: var(--color-on-ink-accent); }
.btn .arw { transition: transform .2s cubic-bezier(.16,1,.3,1); }
.btn:hover .arw { transform: translateX(3px); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============ HEADER ============ */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.hdr.stuck { border-bottom-color: var(--color-border); }
.hdr__in { display: flex; align-items: center; gap: var(--s8); height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--color-text); flex: 0 0 auto; }
.brand svg { width: 26px; height: 26px; color: var(--color-primary); }
.brand__nm { font-family: var(--font-display); font-size: 1.16rem; font-weight: 600; letter-spacing: .015em; }
.brand__sub { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-text-faint); display: block; margin-top: -2px; }
.nav { display: flex; gap: var(--s6); margin-left: auto; }
.nav a { font-size: var(--text-sm); color: var(--color-text-muted); text-decoration: none; }
.nav a:hover { color: var(--color-primary); }
.hdr__act { display: flex; align-items: center; gap: var(--s3); flex: 0 0 auto; }
.tgl {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--color-border); border-radius: var(--r-md); color: var(--color-text-muted);
}
.tgl:hover { color: var(--color-primary); border-color: var(--color-primary); }
.tgl svg { width: 17px; height: 17px; }
[data-theme='dark'] .tgl .i-sun { display: block; }
[data-theme='dark'] .tgl .i-moon { display: none; }
.tgl .i-sun { display: none; }
.hdr .btn { padding: 10px 16px; min-height: 40px; }
.burger { display: none; }
.menu { border-top: 1px solid var(--color-border); background: var(--color-bg); }
.menu .wrap { display: grid; gap: 2px; padding-block: var(--s4) var(--s6); }
.menu a { font-size: var(--text-lg); color: var(--color-text); text-decoration: none; padding-block: 11px; border-bottom: 1px solid var(--color-border); }
.menu a:last-child { border-bottom: none; }
.menu .btn--pri { margin-top: var(--s5); justify-content: center; font-size: var(--text-sm); color: #FBFAF7; }
[data-theme='dark'] .menu .btn--pri { color: #0B1210; }
@media (max-width: 960px) { .nav { display: none; } .burger { display: grid; } .hdr__cta { display: none; } }
@media (min-width: 961px) { .menu { display: none !important; } }

/* ============ HERO ============ */
.hero { padding-block: clamp(64px, 9vw, 132px) clamp(48px, 6vw, 84px); position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (max-width: 1020px) { .hero__grid { grid-template-columns: 1fr; } }
.hero .mono { color: var(--color-primary); display: flex; align-items: center; gap: 10px; }
.hero .mono::before { content: ''; width: 26px; height: 1px; background: var(--color-primary); }
.hero h1 { margin-top: var(--s5); }
.hero h1 .dim { color: var(--color-text-faint); }
.hero__lede { margin-top: var(--s6); font-size: var(--text-lg); line-height: 1.55; color: var(--color-text-muted); max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s8); }
.hero__trust { margin-top: var(--s4); font-size: var(--text-xs); color: var(--color-text-muted); font-family: var(--font-mono); letter-spacing: .04em; }
.hero__note { margin-top: var(--s2); font-size: var(--text-xs); color: var(--color-text-faint); font-family: var(--font-mono); letter-spacing: .06em; }

.diag { width: 100%; height: auto; }

.marq { border-block: 1px solid var(--color-border); padding-block: var(--s5); margin-top: clamp(40px,5vw,72px); }
.marq__lbl { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .13em; text-transform: uppercase; color: var(--color-text-faint); margin-bottom: var(--s4); }
.marq__row { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s8); }
.marq__row span { font-size: var(--text-sm); font-weight: 500; color: var(--color-text-muted); }

/* ============ INK SECTION ============ */
.ink { background: var(--color-ink); color: var(--color-on-ink); padding-block: var(--sec); }
.ink h2 { color: var(--color-on-ink); }
.ink .mono { color: var(--color-on-ink-accent); }
.ink p { color: var(--color-on-ink-muted); }

.sechd { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.82fr); gap: clamp(24px,4vw,64px); align-items: end; margin-bottom: clamp(36px,4.5vw,64px); }
@media (max-width: 880px) { .sechd { grid-template-columns: 1fr; align-items: start; } }
.sechd .mono { margin-bottom: var(--s4); }
.sechd p { font-size: var(--text-base); line-height: 1.65; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--color-ink-border); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }
.stat { padding: var(--s8) var(--s6) var(--s6) 0; border-right: 1px solid var(--color-ink-border); }
.stat:last-child { border-right: none; }
@media (max-width: 900px) { .stat:nth-child(2) { border-right: none; } }
@media (max-width: 480px) { .stat { border-right: none; border-bottom: 1px solid var(--color-ink-border); } }
.stat p.stat__v { font-family: var(--font-display); font-size: clamp(2.4rem,4.4vw,3.4rem); font-weight: 500; line-height: 1; color: var(--color-on-ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat p.stat__v sup { font-size: .42em; vertical-align: super; margin-left: 2px; color: var(--color-on-ink-accent); }
.stat > p:not(.stat__v) { margin-top: var(--s4); font-size: var(--text-sm); line-height: 1.55; max-width: 30ch; }
.stat cite { display: block; margin-top: var(--s3); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-style: normal; }
.stat cite a { color: var(--color-text-faint); text-decoration: none; border-bottom: 1px solid rgba(154,166,161,.3); }
.stat cite a:hover { color: var(--color-on-ink-accent); border-color: var(--color-on-ink-accent); }

.turn { margin-top: clamp(48px,6vw,80px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,64px); align-items: start; }
@media (max-width: 880px) { .turn { grid-template-columns: 1fr; } }
.turn h3 { color: var(--color-on-ink); font-size: var(--text-xl); }
.turn h3 + p { margin-top: var(--s4); }
.turn p + p { margin-top: var(--s4); }
.turn strong { color: var(--color-on-ink); font-weight: 500; }

/* ============ CAPABILITIES ============ */
.caps { padding-block: var(--sec); }
.cap {
  display: grid; grid-template-columns: 250px minmax(0,1fr) minmax(0,1fr);
  gap: clamp(20px,3vw,48px);
  padding-block: clamp(32px,4vw,52px);
  border-top: 1px solid var(--color-border);
}
.cap:last-of-type { border-bottom: 1px solid var(--color-border); }
@media (max-width: 1000px) { .cap { grid-template-columns: 1fr; gap: var(--s5); } }
.cap__id .mono { color: var(--color-text-faint); }
.cap__nm { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 500; margin-top: var(--s2); letter-spacing: -.015em; }
.cap__tag { font-size: var(--text-sm); color: var(--color-primary); margin-top: var(--s2); font-weight: 500; }
.cap__body p { font-size: var(--text-base); line-height: 1.65; color: var(--color-text-muted); }
.cap__body p + p { margin-top: var(--s4); }
.cap ul { list-style: none; }
.cap li {
  font-size: var(--text-sm); line-height: 1.5; color: var(--color-text-muted);
  padding-block: 9px; border-bottom: 1px solid var(--color-border);
  display: flex; gap: var(--s3);
}
.cap li:last-child { border-bottom: none; }
.cap li::before { content: '—'; color: var(--color-primary); flex: 0 0 auto; }

/* ============ CASE FILES ============ */
.cases { padding-block: var(--sec); background: var(--color-surface-2); }
.case__list { display: grid; gap: var(--s4); }
.case {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r-lg);
  padding: clamp(24px,3vw,40px);
  display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: clamp(24px,3.5vw,56px);
}
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } }
.case__hd { display: flex; align-items: baseline; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s4); }
.case__hd h3 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 700; letter-spacing: -.01em; }
.case__sector { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--color-primary); background: var(--color-primary-soft); padding: 4px 9px; border-radius: var(--r-sm); }
.case__body p { font-size: var(--text-sm); line-height: 1.65; color: var(--color-text-muted); }
.case__body p + p { margin-top: var(--s3); }
.case blockquote { margin-top: var(--s5); padding-left: var(--s5); border-left: 1px solid var(--color-border-strong); }
.case blockquote p { font-size: var(--text-sm); line-height: 1.6; color: var(--color-text); font-style: italic; }
.case blockquote footer { margin-top: var(--s3); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-faint); font-style: normal; }
.case__nums { display: grid; gap: var(--s4); align-content: start; }
.case__num { border-top: 1px solid var(--color-border); padding-top: var(--s3); }
.case__num b { display: block; font-family: var(--font-display); font-size: clamp(1.7rem,2.6vw,2.15rem); font-weight: 500; letter-spacing: -.03em; line-height: 1; color: var(--color-primary); font-variant-numeric: tabular-nums; }
.case__num span { display: block; margin-top: var(--s2); font-size: var(--text-xs); line-height: 1.5; color: var(--color-text-muted); }

/* ============ ENGAGEMENTS ============ */
.eng { padding-block: var(--sec); }
.eng__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--s4); }
@media (max-width: 1060px) { .eng__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .eng__grid { grid-template-columns: 1fr; } }
.pkg {
  border: 1px solid var(--color-border); border-radius: var(--r-lg); padding: var(--s6);
  display: flex; flex-direction: column; background: var(--color-surface);
}
.pkg--lead { border-color: var(--color-primary); background: var(--color-primary-soft); }
.pkg .mono { color: var(--color-text-faint); }
.pkg--lead .mono { color: var(--color-primary); }
.pkg h4 { margin-top: var(--s3); min-height: 2.6em; }
.pkg__price { font-family: var(--font-display); font-size: clamp(1.65rem,2.5vw,2.05rem); font-weight: 500; letter-spacing: -.03em; margin-top: var(--s4); line-height: 1.05; font-variant-numeric: tabular-nums; }
.pkg__price .pfx { font-family: var(--font-body); font-size: .44em; font-weight: 500; letter-spacing: .01em; color: var(--color-text-muted); margin-right: .4em; }
.pkg__price small { font-family: var(--font-body); font-size: .5em; font-weight: 400; color: var(--color-text-muted); letter-spacing: 0; }
.pkg__dur { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-faint); margin-top: var(--s2); }
.pkg ul { list-style: none; margin-top: var(--s5); }
.pkg li { font-size: var(--text-sm); line-height: 1.5; color: var(--color-text-muted); padding-left: 15px; position: relative; margin-bottom: var(--s3); }
.pkg li::before { content: ''; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--color-primary); }
.pkg__ft { margin-top: auto; padding-top: var(--s5); font-size: var(--text-xs); line-height: 1.55; color: var(--color-text-faint); }

.honest {
  margin-top: var(--s8); border: 1px dashed var(--color-border-strong); border-radius: var(--r-lg);
  padding: clamp(20px,2.5vw,32px);
  display: grid; grid-template-columns: 210px minmax(0,1fr); gap: clamp(16px,3vw,40px);
}
@media (max-width: 780px) { .honest { grid-template-columns: 1fr; } }
.honest .mono { color: var(--color-amber); }
.honest p { font-size: var(--text-sm); line-height: 1.65; color: var(--color-text-muted); }
.honest p + p { margin-top: var(--s3); }

/* ============ SECTORS ============ */
.sect { padding-block: var(--sec); background: var(--color-surface-2); }
.sect__grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--color-border); border: 1px solid var(--color-border); border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 780px) { .sect__grid { grid-template-columns: 1fr; } }
.sx { background: var(--color-bg); padding: clamp(24px,3vw,40px); }
.sx h4 { display: flex; align-items: center; gap: var(--s3); }
.sx h4 .mono { color: var(--color-text-faint); font-size: 10.5px; }
.sx p { font-size: var(--text-sm); line-height: 1.65; color: var(--color-text-muted); margin-top: var(--s3); }
.sx__tags { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.sx__tags span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); border: 1px solid var(--color-border); padding: 4px 8px; border-radius: var(--r-sm); }

/* ============ LABS ============ */
.labs { padding-block: var(--sec); background: var(--color-ink); color: var(--color-on-ink); }
.labs h2, .labs h3, .labs h4 { color: var(--color-on-ink); }
.labs .mono { color: var(--color-amber); }
[data-theme='dark'] .labs .mono { color: var(--color-amber); }
.labs > .wrap > .sechd p { color: var(--color-on-ink-muted); }
.lab__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--s4); }
@media (max-width: 1180px) { .lab__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .lab__grid { grid-template-columns: 1fr; } }
.lab { border: 1px solid var(--color-ink-border); border-radius: var(--r-lg); padding: clamp(22px,2.6vw,32px); }
.lab__st { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--color-amber); border: 1px solid color-mix(in oklab, var(--color-amber) 45%, transparent); padding: 4px 8px; border-radius: var(--r-sm); display: inline-block; }
.lab h4 { margin-top: var(--s4); font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; }
.lab p { font-size: var(--text-sm); line-height: 1.65; color: var(--color-on-ink-muted); margin-top: var(--s3); }

/* ============ CONTACT ============ */
.ct { padding-block: var(--sec); }
.ct__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.85fr); gap: clamp(32px,5vw,88px); }
@media (max-width: 900px) { .ct__grid { grid-template-columns: 1fr; } }
.ct h2 { max-width: 22ch; }
.ct__lede { margin-top: var(--s5); font-size: var(--text-base); line-height: 1.65; color: var(--color-text-muted); }
.ct__det { margin-top: var(--s8); display: grid; gap: var(--s5); }
.ct__det div .mono { color: var(--color-text-faint); }
.ct__det div p { margin-top: var(--s2); font-size: var(--text-sm); line-height: 1.6; }
.ct__det a { color: var(--color-primary); text-decoration: none; }
.ct__det a:hover { text-decoration: underline; }

form { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r-lg); padding: clamp(24px,3vw,36px); }
.fld { margin-bottom: var(--s5); }
.fld label { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: var(--s2); }
.fld input, .fld textarea {
  width: 100%; background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--r-md); padding: 12px 14px; font-size: var(--text-sm); color: var(--color-text);
  min-height: 46px;
}
.fld textarea { min-height: 108px; resize: vertical; }
.fld input:focus, .fld textarea:focus { border-color: var(--color-primary); outline: none; box-shadow: 0 0 0 3px var(--color-primary-soft); }
form .btn--pri { width: 100%; justify-content: center; }
.fmsg { margin-top: var(--s4); font-size: var(--text-sm); color: var(--color-primary); display: none; }
.fmsg.on { display: block; }
.ferr { margin-top: var(--s4); font-size: var(--text-sm); color: var(--color-amber); display: none; }
.ferr.on { display: block; }
form > p.fine { margin-top: var(--s4); font-size: var(--text-xs); color: var(--color-text-faint); line-height: 1.55; }

/* Honeypot — off-screen, not display:none (some bots skip hidden inputs
   entirely; this stays in the accessibility tree's layout flow but is
   never visible or reachable by a real visitor). */
.fld--hp {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px;
  overflow: hidden; margin: 0;
}

/* ============ FOOTER ============ */
.ft { background: var(--color-ink); color: var(--color-on-ink-muted); padding-block: var(--s16) var(--s10); }
.ft__top { display: grid; grid-template-columns: minmax(0,1.4fr) repeat(3, minmax(0,1fr)); gap: clamp(24px,4vw,56px); padding-bottom: var(--s12); border-bottom: 1px solid var(--color-ink-border); }
@media (max-width: 900px) { .ft__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ft__top { grid-template-columns: 1fr; } }
.ft .brand { color: var(--color-on-ink); }
.ft .brand svg { color: var(--color-on-ink-accent); }
.ft__blurb { margin-top: var(--s5); font-size: var(--text-sm); line-height: 1.65; max-width: 40ch; }
.ft__col .mono { color: var(--color-text-faint); margin-bottom: var(--s4); display: block; }
.ft__col ul { list-style: none; display: grid; gap: 10px; }
.ft__col li { font-size: var(--text-sm); }
.ft__col a { color: var(--color-on-ink-muted); text-decoration: none; }
.ft__col a:hover { color: var(--color-on-ink-accent); }
.ft__bot { padding-top: var(--s6); display: flex; flex-wrap: wrap; gap: var(--s4) var(--s8); align-items: baseline; }
.ft__bot p { font-size: var(--text-xs); color: var(--color-text-faint); line-height: 1.6; }
.ft__bot p:last-child { margin-left: auto; }

/* ============ ARCHITECTURE DIAGRAM ============ */
.diag { overflow: visible; }
.diag .d-bound { fill: none; stroke: var(--color-primary); stroke-width: 1.25; stroke-dasharray: 7 5; }
.diag .d-corner { fill: none; stroke: var(--color-primary); stroke-width: 2; }
.diag .d-box { fill: var(--color-surface); stroke: var(--color-border-strong); stroke-width: 1; }
.diag .d-link { stroke: var(--color-border-strong); stroke-width: 1; }
.diag .d-egress { stroke: var(--color-text-faint); stroke-width: 1; stroke-dasharray: 3 4; }
.diag .d-x { stroke: var(--color-amber); stroke-width: 1.6; }
.diag .d-out { fill: none; stroke: var(--color-border); stroke-width: 1; }
.diag .d-lbl { fill: var(--color-primary); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 1.1px; text-transform: uppercase; }
.diag .d-t { fill: var(--color-text); font-family: var(--font-body); font-size: 12.5px; font-weight: 700; }
.diag .d-s { fill: var(--color-text-muted); font-family: var(--font-mono); font-size: 9px; letter-spacing: .5px; }
.diag .d-n { fill: var(--color-text-faint); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 1.1px; }
.diag .d-warn { fill: var(--color-amber); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 1.1px; }
.diag .d-idx { fill: var(--color-text-faint); font-family: var(--font-mono); font-size: 9px; letter-spacing: .8px; }

/* ============ MOTION SYSTEM ============ */
:root {
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-in: cubic-bezier(.4,0,1,1);
  --ease-io: cubic-bezier(.4,0,.2,1);
  --ti: 180ms cubic-bezier(.16,1,.3,1);
}

/* Reveals — opacity/clip only, never translate (no layout shift) */
.reveal { opacity: 0; transition: opacity .65s var(--ease-out); }
.reveal.in { opacity: 1; }
.reveal-clip { clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-out), opacity .5s var(--ease-out); opacity: 0; }
.reveal-clip.in { clip-path: inset(0 0 0 0); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-clip { opacity: 1 !important; clip-path: none !important; }
}

/* Interactive feedback */
.btn { transition: background var(--ti), color var(--ti), border-color var(--ti), box-shadow var(--ti), transform var(--ti); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
@media (hover: none) { .btn:hover { transform: none; box-shadow: none; } }

.nav a { position: relative; padding-block: 4px; }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--color-primary); transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease-out);
}
.nav a:hover::after, .nav a.is-cur::after { transform: scaleX(1); }
.nav a.is-cur { color: var(--color-text); }

.tgl { transition: color var(--ti), border-color var(--ti), background var(--ti); }
.tgl:active { transform: scale(.94); }

/* Scroll progress hairline */
.prog { position: absolute; left: 0; bottom: -1px; height: 1.5px; background: var(--color-primary); width: 0; transition: width .1s linear; }

/* Case + package cards: subtle lift only where meaningful */
.case, .pkg, .lab, .sx { transition: border-color var(--ti), box-shadow var(--ti); }
.case:hover, .pkg:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow-md); }
.pkg--lead:hover { border-color: var(--color-primary); }
.lab:hover { border-color: color-mix(in oklab, var(--color-amber) 40%, transparent); }

/* Capability rows: active-line marker driven by scroll */
.cap { position: relative; transition: opacity .5s var(--ease-out); }
.cap::before {
  content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 0;
  background: var(--color-primary); transition: width .9s var(--ease-out);
}
.cap.is-act::before { width: 100%; }
.cap__nm { transition: color var(--ti); }

/* Counting numbers */
.stat p.stat__v { font-variant-numeric: tabular-nums lining-nums; }

/* Mobile menu entrance */
.menu { transition: opacity .25s var(--ease-out); }
@starting-style { .menu:not([hidden]) { opacity: 0; } }

/* Blueprint hairlines on ink sections */
.ink, .labs { position: relative; isolation: isolate; }
.ink::before, .labs::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(231,229,223,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(231,229,223,.045) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 20%, transparent 78%);
}

/* ============ DEPLOYMENT MODULE ============ */
.dep { border: 1px solid var(--color-border); border-radius: var(--r-lg); background: var(--color-surface); overflow: hidden; }
.dep__hd { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; padding: var(--s4) var(--s5); border-bottom: 1px solid var(--color-border); }
.dep__lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--color-text-faint); }
.dep__tabs { position: relative; display: flex; gap: 2px; background: var(--color-surface-2); border-radius: var(--r-md); padding: 3px; }
.dep__tab {
  position: relative; z-index: 1; font-size: 12.5px; font-weight: 500; letter-spacing: -.005em;
  color: var(--color-text-muted); padding: 0 14px; min-height: 44px; display: inline-flex; align-items: center;
  border-radius: 3px; white-space: nowrap;
  transition: color var(--ti);
}
.dep__tab:hover { color: var(--color-text); }
.dep__tab.is-on { color: var(--color-primary); }
.dep__ind {
  position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: 0;
  background: var(--color-bg); border-radius: 3px; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-io), width .4s var(--ease-io);
}
.dep__fig { padding: var(--s5) var(--s5) var(--s3); }
.dep__cap { font-size: 15px; min-height: 5.4em; line-height: 1.6; color: var(--color-text-muted); padding: 0 var(--s5) var(--s5); max-width: none; transition: opacity .25s var(--ease-out); }
.dep__cap.fade { opacity: 0; }

/* diagram state transitions */
.diag text, .diag rect, .diag path { transition: opacity .35s var(--ease-out), stroke .35s var(--ease-out), fill .35s var(--ease-out); }
.d-flash { fill: none; stroke: var(--color-amber); stroke-width: 2; opacity: 0; }
.d-flash.hit { animation: bflash 900ms var(--ease-out); }
@keyframes bflash { 0% { opacity: 0 } 18% { opacity: .85 } 100% { opacity: 0 } }

.d-pk rect { fill: var(--color-primary); opacity: .85; }
.d-pk .p1 { animation: pk1 2.6s linear infinite; }
.d-pk .p2 { animation: pk2 3.1s linear infinite .5s; }
.d-pk .p3 { animation: pk3 2.9s linear infinite .9s; }
.d-pk .p4 { animation: pk4 3.4s linear infinite .2s; }
@keyframes pk1 { 0%,12% { transform: translate(267px,116px); opacity:0 } 20% { opacity:.85 } 46%,100% { transform: translate(297px,116px); opacity:0 } }
@keyframes pk2 { 0%,10% { transform: translate(297px,238px); opacity:0 } 18% { opacity:.85 } 44%,100% { transform: translate(267px,238px); opacity:0 } }
@keyframes pk3 { 0%,14% { transform: translate(152.5px,164px); opacity:0 } 22% { opacity:.85 } 48%,100% { transform: translate(152.5px,190px); opacity:0 } }
@keyframes pk4 { 0%,8% { transform: translate(411.5px,190px); opacity:0 } 16% { opacity:.85 } 42%,100% { transform: translate(411.5px,164px); opacity:0 } }

.d-esc { fill: var(--color-amber); opacity: 0; }
.d-esc.go { animation: esc 2.4s var(--ease-io); }
@keyframes esc {
  0% { transform: translate(0,-36px); opacity: 0 }
  14% { transform: translate(0,-18px); opacity: .9 }
  34% { transform: translate(0,0); opacity: 1 }
  44% { transform: translate(0,-4px); opacity: 1 }
  70% { transform: translate(0,-40px); opacity: .5 }
  100% { transform: translate(0,-52px); opacity: 0 }
}
@media (prefers-reduced-motion: reduce) {
  .d-pk rect, .d-esc, .d-flash { animation: none !important; opacity: 0 !important; }
}

/* mode: private VPC — controlled metadata channel instead of hard block */
.dep__fig[data-mode='vpc'] .d-x { opacity: 0; }
.dep__fig[data-mode='vpc'] .d-egress { stroke: var(--color-primary); stroke-dasharray: 2 3; }
.dep__fig[data-mode='vpc'] .d-warn { fill: var(--color-primary); }
.dep__fig[data-mode='vpc'] .d-bound { stroke-dasharray: 14 4; }
/* mode: air-gapped — no route drawn at all */
.dep__fig[data-mode='air'] .d-egress { opacity: .25; }
.dep__fig[data-mode='air'] .d-bound { stroke-dasharray: none; stroke-width: 1.75; }
.dep__fig[data-mode='air'] .d-out { stroke-dasharray: 4 4; opacity: .5; }
.dep__fig[data-mode='air'] .d-n { opacity: .5; }
/* mode: on-premise */
.dep__fig[data-mode='prem'] .d-bound { stroke-dasharray: 7 5; }

@media (max-width: 560px) {
  .dep__hd { flex-direction: column; align-items: flex-start; }
  .dep__tab { font-size: 11.5px; padding: 0 10px; min-height: 44px; }
}

/* ============ COMPARISON ============ */
.cmp { padding-block: clamp(24px,3vw,48px) var(--sec); }
.cmp__wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--r-lg); background: var(--color-surface); }
.cmp table { min-width: 760px; }
.cmp th, .cmp td { text-align: left; padding: var(--s4) var(--s5); border-bottom: 1px solid var(--color-border); vertical-align: top; font-size: var(--text-sm); line-height: 1.55; }
.cmp tr:last-child td { border-bottom: none; }
.cmp thead th { border-bottom: 1px solid var(--color-border-strong); }
.cmp thead th:first-child { width: 210px; }
.cmp .col-lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-faint); display: block; margin-bottom: 5px; }
.cmp thead th h4 { font-size: var(--text-base); }
.cmp .own { background: var(--color-primary-soft); }
.cmp .own h4, .cmp .own .col-lbl { color: var(--color-primary); }
.cmp tbody th { font-weight: 500; color: var(--color-text); font-size: var(--text-sm); }
.cmp td { color: var(--color-text-muted); }
.cmp .own td, .cmp td.own { color: var(--color-text); }
.cmp__note { margin-top: var(--s5); font-size: var(--text-xs); color: var(--color-text-faint); line-height: 1.6; }
.cmp__note a { color: var(--color-text-muted); }

.dep__fig[data-mode='vpc'] .d-out { stroke: var(--color-border-strong); opacity: 1; }
.dep__fig[data-mode='vpc'] .d-n { fill: var(--color-text-muted); opacity: 1; }
@media (max-width: 700px) { .dep__cap { min-height: 0; } }

@media (max-width: 560px) {
  .dep__fig { padding: var(--s3) var(--s3) var(--s2); }
  .dep__hd { padding: var(--s3) var(--s4); }
  .dep__cap { padding: 0 var(--s4) var(--s4); font-size: 14.5px; }
}

/* ============ HOLOGRAPHIC LAYER ============
   Scoped to three places on purpose: the hero deployment rig,
   the Solutions Map, and Perimeter Labs. Proof / Engagements /
   Compare stay in the plain evidence system above. */

.hero__holo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: .55;
  pointer-events: none;
}
[data-theme='dark'] .hero__holo { opacity: .8; }
.hero .wrap { position: relative; z-index: 1; }

.hero__grid { perspective: 1400px; }
.holo3d .dep__fig, .holo3d .dep__hd { transform-style: preserve-3d; }
.dep {
  position: relative;
  transition: transform .12s ease, border-color .3s;
  will-change: transform;
}
.dep__scan {
  position: absolute; left: 0; right: 0; top: 0; height: 46%;
  background: linear-gradient(to bottom, transparent, var(--color-holo-line) 48%, transparent);
  opacity: 0; pointer-events: none; z-index: 3;
  animation: scanSweep 5.5s ease-in-out infinite;
}
@keyframes scanSweep {
  0%   { transform: translateY(-10%); opacity: 0; }
  8%   { opacity: .55; }
  46%  { opacity: .28; }
  58%  { transform: translateY(230%); opacity: 0; }
  100% { transform: translateY(230%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .dep__scan { display: none; } }

/* ============ SOLUTIONS MAP ============ */
.map { padding-block: var(--sec); background: var(--color-surface-2); }

.mapflow { width: 100%; height: 44px; margin-bottom: var(--s4); overflow: visible; }
.mf-rail { stroke: var(--color-border); stroke-width: 1; }
.mf-pk circle { fill: var(--color-holo); }
.mf-pk .q1 { animation: mf1 4.2s linear infinite; }
.mf-pk .q2 { animation: mf1 4.2s linear infinite 1.4s; }
.mf-pk .q3 { animation: mf1 4.2s linear infinite 2.8s; }
@keyframes mf1 {
  0%   { transform: translate(0px, 32px); opacity: 0; }
  6%   { opacity: .9; }
  92%  { opacity: .9; }
  100% { transform: translate(1160px, 32px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .mapflow { display: none; } }

.prob__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); perspective: 1200px; }
@media (max-width: 980px) { .prob__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .prob__grid { grid-template-columns: 1fr; } }

.prob {
  position: relative;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r-lg);
  padding: var(--s5); display: flex; flex-direction: column; gap: var(--s4);
  transform-style: preserve-3d; will-change: transform;
  transition: transform .15s ease, border-color .25s;
}
.prob:focus-visible { outline: 2px solid var(--color-holo); outline-offset: 3px; }
.prob__q { font-size: var(--text-sm); line-height: 1.6; font-style: italic; color: var(--color-text); transform: translateZ(18px); }
.prob__a { display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; transform: translateZ(12px); }
.prob__a p { font-size: 13px; line-height: 1.55; color: var(--color-text-muted); margin: 0; }
.prob__tag {
  flex: 0 0 auto; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 9px; border-radius: var(--r-sm); font-weight: 500;
}
.prob__tag--enclave { color: var(--color-primary); background: var(--color-primary-soft); }
.prob__tag--signal { color: var(--color-amber); background: var(--color-amber-soft); }
.prob__tag--agency { color: var(--color-holo); background: var(--color-holo-soft); }
.prob__go {
  margin: auto -6px -12px -6px; align-self: flex-start;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--color-text-faint); display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 6px; min-height: 44px; box-sizing: border-box; transform: translateZ(8px);
}
.prob__go:hover { color: var(--color-holo); }
.prob__go .arw { transition: transform .2s var(--ease-out); }
.prob__go:hover .arw { transform: translateX(3px); }

.glintc {
  position: absolute; inset: 0; border-radius: inherit; z-index: 0;
  background: radial-gradient(220px circle at var(--mx,50%) var(--my,0%), var(--color-holo-line), transparent 62%);
  opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.tiltc:hover .glintc, .tiltc:focus-visible .glintc { opacity: 1; }
.tiltc:hover, .tiltc:focus-visible { border-color: var(--color-holo-line); }
.tiltc.pulse { animation: probPulse 900ms var(--ease-out); }
@keyframes probPulse { 0% { box-shadow: 0 0 0 0 var(--color-holo-line); } 100% { box-shadow: 0 0 0 14px transparent; } }
@media (prefers-reduced-motion: reduce) { .tiltc.pulse { animation: none; } }

.cap.flag { animation: capFlag 1100ms var(--ease-out); }
@keyframes capFlag { 0%,100% { background: transparent; } 22% { background: var(--color-holo-soft); } }
@media (prefers-reduced-motion: reduce) { .cap.flag { animation: none; } }

/* ============ HOLOGRAM STAGE (Labs / Lectern) ============ */
.holoStage {
  position: relative;
  height: clamp(220px, 30vw, 300px);
  margin-bottom: clamp(32px, 4vw, 56px);
  border: 1px solid var(--color-ink-border); border-radius: var(--r-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 38%, color-mix(in oklab, var(--color-holo) 14%, transparent), transparent 72%);
}
.holoStage__floor {
  position: absolute; left: 8%; right: 8%; bottom: 18%; height: 40%;
  background-image:
    linear-gradient(var(--color-holo-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-holo-line) 1px, transparent 1px);
  background-size: 28px 14px;
  transform: perspective(360px) rotateX(62deg);
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 50% 40%, #000 45%, transparent 85%);
  mask-image: radial-gradient(ellipse 60% 90% at 50% 40%, #000 45%, transparent 85%);
  opacity: .55;
  animation: floorDrift 6s linear infinite;
}
@keyframes floorDrift { 0% { background-position: 0 0, 0 0; } 100% { background-position: 0 14px, 28px 0; } }

.holoStage__core { position: relative; width: 148px; height: 148px; }
.holoStage__core .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--color-holo-line);
}
.holoStage__core .r1 { animation: ringspin 7s linear infinite; transform: rotateX(72deg) rotateZ(0deg); border-top-color: var(--color-holo); border-bottom-color: var(--color-holo); }
.holoStage__core .r2 { inset: 18px; animation: ringspin 5.2s linear infinite reverse; transform: rotateX(58deg) rotateZ(0deg); border-left-color: var(--color-holo); }
.holoStage__core .r3 { inset: 36px; animation: ringspin 9s linear infinite; transform: rotateX(80deg) rotateZ(0deg); border-right-color: var(--color-holo); }
@keyframes ringspin {
  0%   { transform: rotateX(var(--rx,70deg)) rotateZ(0deg); }
  100% { transform: rotateX(var(--rx,70deg)) rotateZ(360deg); }
}
.holoStage__core .hs-core {
  position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--color-holo);
  box-shadow: 0 0 22px 6px var(--color-holo-line), 0 0 4px 1px var(--color-holo);
  animation: corePulse 2.4s ease-in-out infinite;
}
@keyframes corePulse { 0%,100% { opacity: .75; transform: translate(-50%,-50%) scale(1); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.18); } }
.holoStage__core .hs-tick { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--color-holo); opacity: .8; }
.holoStage__core .t1 { top: -3px; left: 50%; margin-left: -2.5px; }
.holoStage__core .t2 { bottom: -3px; left: 50%; margin-left: -2.5px; }
.holoStage__core .t3 { left: -3px; top: 50%; margin-top: -2.5px; }
.holoStage__core .t4 { right: -3px; top: 50%; margin-top: -2.5px; }
.holoStage__lbl { position: absolute; bottom: 14px; color: var(--color-holo); opacity: .8; font-size: 10px; }
@media (prefers-reduced-motion: reduce) {
  .holoStage__core .ring, .holoStage__core .hs-core, .holoStage__floor { animation: none; }
}

.holoStage--video {
  height: auto; justify-content: flex-start; align-items: stretch;
  padding: clamp(14px, 1.8vw, 20px); gap: var(--s3);
  background: var(--color-surface, #0c1210);
}
.holoStage--video .holoStage__lbl {
  position: static; text-align: left; opacity: .85;
}
.holoStage--video .holoStage__vid {
  display: block; width: 100%; aspect-ratio: 1216 / 736;
  border-radius: 3px; background: #000;
}

/* Magnetic primary CTAs */
.btn--pri { will-change: transform; }

/* Perimeter-seal: a boundary that traces itself shut around the button,
   echoing the site's core metaphor (a perimeter closing around something
   worth protecting). Self-reversing on hover via a background transition;
   triggered on tap via .sealed (see app.js) for touch devices. */
.btn--pri::before {
  content: '';
  position: absolute; inset: -4px; border-radius: calc(var(--r-md) + 3px);
  padding: 1.5px;
  background: conic-gradient(from -90deg, var(--color-holo) 0deg, var(--color-holo) 0deg, transparent 0deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .25s var(--ease-out), background .65s var(--ease-out);
  pointer-events: none;
}
.btn--pri:hover::before,
.btn--pri:focus-visible::before,
.btn--pri.sealed::before {
  opacity: 1;
  background: conic-gradient(from -90deg, var(--color-holo) 0deg, var(--color-holo) 360deg, transparent 360deg, transparent 360deg);
}

/* .ink / .labs are permanently dark surfaces regardless of site theme —
   pin the holo accent to its dark-appropriate value in both themes. */
.ink, .labs { --color-holo: #5FD3E8; --color-holo-soft: #132A2E; --color-holo-line: rgba(95,211,232,.4); }

/* ============ EXPERT ON DEMAND ============ */
.xod { padding-block: var(--sec); }

.xod__feat {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px;
  background: var(--color-border); border: 1px solid var(--color-border); border-radius: var(--r-lg);
  overflow: hidden; margin-top: clamp(28px, 3.5vw, 44px);
}
.xod__f { background: var(--color-surface); padding: clamp(20px, 2.4vw, 28px); }
.xod__fn { color: var(--color-text-faint); margin-bottom: var(--s3); }
.xod__f h4 { font-size: var(--text-base); font-weight: 700; margin-bottom: var(--s2); letter-spacing: -.01em; }
.xod__f p { font-size: 13px; line-height: 1.6; color: var(--color-text-muted); }

.xod__pipe { margin-top: clamp(48px, 6vw, 76px); }
.xod__lbl { margin-bottom: var(--s5); }

.rd__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s3); position: relative; }
.rd__grid::before {
  content: ''; position: absolute; top: 19px; left: 4%; right: 4%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--color-holo) 0 10px, transparent 10px 22px);
  background-size: 200% 100%; opacity: .55;
  animation: rdflow 3.2s linear infinite; z-index: 0;
}
@keyframes rdflow { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .rd__grid::before { animation: none; } }
@media (max-width: 900px) { .rd__grid { grid-template-columns: repeat(2, 1fr); } .rd__grid::before { display: none; } }
@media (max-width: 480px) { .rd__grid { grid-template-columns: 1fr; } }

.rd__s {
  position: relative; z-index: 1; background: var(--color-surface); border: 1px solid var(--color-border-strong);
  border-radius: var(--r-md); padding: var(--s4) var(--s3) var(--s4);
}
.rd__n {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--color-bg); border: 1px solid var(--color-border-strong);
  font-family: var(--font-mono); font-size: 10.5px; color: var(--color-text-faint); margin-bottom: var(--s3);
}
.rd__n--ic { color: var(--color-holo); border-color: color-mix(in oklab, var(--color-holo) 45%, transparent); }
.rd__n--ic svg { width: 15px; height: 15px; }
.rd__s h4 { font-size: 13.5px; font-weight: 700; margin-bottom: 4px; letter-spacing: -.005em; }
.rd__s p { font-size: 12px; line-height: 1.5; color: var(--color-text-muted); }

.xod__modes { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s6); }
.xod__modes span {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--color-text-muted); border: 1px solid var(--color-border); padding: 5px 11px; border-radius: 100px;
}

.xod__flow { margin-top: clamp(48px, 6vw, 76px); }
.wf { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s4); position: relative; }
.wf::before { content: ''; position: absolute; top: 13px; left: 6%; right: 6%; height: 1px; background: var(--color-border-strong); z-index: 0; }
@media (max-width: 900px) { .wf { grid-template-columns: repeat(2, 1fr); } .wf::before { display: none; } }
@media (max-width: 480px) { .wf { grid-template-columns: 1fr; } }
.wf__s { position: relative; z-index: 1; }
.wf__n {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--color-bg); border: 1px solid var(--color-border-strong);
  font-family: var(--font-mono); font-size: 11px; color: var(--color-text); margin-bottom: var(--s3);
}
.wf__s h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.wf__s p { font-size: 12.5px; line-height: 1.5; color: var(--color-text-muted); }

.modeled { margin-top: clamp(48px, 6vw, 76px); }
.modeled__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--color-border); margin-top: var(--s3); }
@media (max-width: 780px) { .modeled__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .modeled__grid { grid-template-columns: 1fr; } }
.mstat { padding: var(--s6) var(--s5) var(--s4) 0; border-right: 1px solid var(--color-border); }
.mstat:last-child { border-right: none; }
@media (max-width: 780px) { .mstat:nth-child(2) { border-right: none; } }
.mstat__v { font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 500; letter-spacing: -.03em; line-height: 1; color: var(--color-holo); font-variant-numeric: tabular-nums; }
.mstat__v sup { font-size: .42em; margin-left: 2px; vertical-align: super; color: var(--color-text-faint); }
.mstat > p:not(.mstat__v) { margin-top: var(--s3); font-size: 13px; line-height: 1.5; color: var(--color-text-muted); max-width: 22ch; }
.modeled__note {
  margin-top: var(--s5); font-size: var(--text-xs); line-height: 1.6; color: var(--color-text-faint);
  border: 1px dashed var(--color-border-strong); border-radius: var(--r-lg); padding: var(--s4) var(--s5); max-width: none;
}
.modeled__note a { color: var(--color-text-muted); }
.modeled__note a:hover { color: var(--color-primary); }

.xod__cta { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: clamp(40px, 5vw, 56px); }

/* ============ VOICEKEY WAVEFORM ============ */
.lab--voice { position: relative; }
.wave { display: flex; align-items: flex-end; gap: 3px; height: 26px; margin-bottom: var(--s4); }
.wave span { width: 3px; background: var(--color-holo); border-radius: 2px; opacity: .85; transform-origin: bottom; animation: wavebar 1.6s ease-in-out infinite; }
.wave span:nth-child(1) { height: 40%; animation-delay: 0s; }
.wave span:nth-child(2) { height: 70%; animation-delay: .08s; }
.wave span:nth-child(3) { height: 100%; animation-delay: .16s; }
.wave span:nth-child(4) { height: 55%; animation-delay: .24s; }
.wave span:nth-child(5) { height: 85%; animation-delay: .32s; }
.wave span:nth-child(6) { height: 35%; animation-delay: .4s; }
.wave span:nth-child(7) { height: 65%; animation-delay: .48s; }
.wave span:nth-child(8) { height: 45%; animation-delay: .56s; }
@keyframes wavebar { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .wave span { animation: none; transform: scaleY(.7); } }

/* ============ FAQ ============ */
.faq { padding-block: var(--sec); }
.faq__list { border-top: 1px solid var(--color-border); }
.faq__item { border-bottom: 1px solid var(--color-border); padding-inline: 0; }
.faq__item summary {
  cursor: pointer; list-style: none; font-family: var(--font-body); font-weight: 700;
  font-size: var(--text-base); color: var(--color-text); padding: var(--s5) 40px var(--s5) 0;
  min-height: 44px; box-sizing: border-box; display: flex; align-items: center; position: relative;
}
.faq__item p { padding-bottom: var(--s5); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 400; color: var(--color-text-faint);
  transform: translateY(-50%) rotate(0deg); transition: transform .25s var(--ease-out), color .2s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--color-primary); }
.faq__item summary:hover { color: var(--color-primary); }
.faq__item p { margin-top: var(--s4); font-size: var(--text-sm); line-height: 1.65; color: var(--color-text-muted); max-width: 68ch; }
.faq__item p a { color: var(--color-primary); text-decoration: none; border-bottom: 1px solid var(--color-border-strong); }
.faq__item p a:hover { border-color: var(--color-primary); }
@media (prefers-reduced-motion: reduce) { .faq__item summary::after { transition: none; } }

/* ============ STICKY MOBILE CTA ============ */
.stickyCta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: color-mix(in oklab, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-top: 1px solid var(--color-border);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform .35s var(--ease-out);
  pointer-events: none;
}
.stickyCta.show { transform: translateY(0); pointer-events: auto; }
.stickyCta__in { display: flex; align-items: center; gap: var(--s4); }
.stickyCta__txt { display: none; font-size: 12px; line-height: 1.35; color: var(--color-text-faint); font-family: var(--font-mono); letter-spacing: .02em; }
.stickyCta__btn { flex: 1; justify-content: center; min-height: 46px; }
@media (max-width: 780px) { .stickyCta { display: block; } }
@media (min-width: 480px) and (max-width: 780px) {
  .stickyCta__txt { display: block; flex: 1; }
  .stickyCta__btn { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .stickyCta { transition: none; } }
