/* =============================================================================
   The Cyber Governance Group — v2 "Keystone" design system
   Concept: governance as architecture. Dark-first, editorial serif display,
   blueprint line work, brass as the single accent.
   ========================================================================== */

:root {
  --bg: #07130e;            /* near-black green */
  --bg-2: #0b1c15;
  --panel: #0f251c;
  --panel-2: #133024;
  --green: #1d5440;
  --emerald: #3d8f6c;
  --line: rgba(233, 228, 216, .11);
  --line-strong: rgba(233, 228, 216, .22);
  --text: #e9e4d8;
  --muted: #98aaa1;
  --brass: #c9a463;
  --brass-2: #e3c891;
  --brass-dim: rgba(201, 164, 99, .16);
  --cream: #f1ebdf;
  --cream-2: #e7dfcf;
  --ink: #0d1a14;
  --ink-muted: #4f5f57;

  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --max: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --r: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.45, .55, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--brass); color: var(--bg); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; color: inherit; }

h1, h2, h3 { margin: 0 0 .45em; font-weight: 400; line-height: 1.02; letter-spacing: -.015em; }
h1, h2 { font-family: var(--f-display); }
h1 { font-size: clamp(3.1rem, 8.6vw, 7.6rem); }
h2 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
h3 { font-family: var(--f-sans); font-weight: 600; font-size: 1.18rem; line-height: 1.3; letter-spacing: -.01em; }
em, .serif-i { font-family: var(--f-display); font-style: italic; font-weight: 400; }
h1 em, h2 em { color: var(--brass); }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 10px; z-index: 200; background: var(--brass); color: var(--bg); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 10px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.sec--tight { padding: clamp(56px, 7vw, 90px) 0; }
.light { background: var(--cream); color: var(--ink); }
.light h2, .light h3 { color: var(--ink); }
.light h2 em { color: #9a7432; }
.panel-bg { background: var(--bg-2); }

/* Mono technical label: [ 01 — LABEL ] */
.label {
  font: 500 .74rem/1.2 var(--f-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
}
.label::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.light .label { color: #8a6a2f; }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.28rem); color: var(--muted); max-width: 40em; line-height: 1.6; }
.light .lede { color: var(--ink-muted); }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(44px, 6vw, 72px); }
.head h2 { margin: 0; }
.head .lede { margin: 0; }
@media (max-width: 880px) { .head { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--brass);
  display: inline-flex; align-items: center; gap: 12px;
  height: 54px; padding: 0 26px;
  border-radius: 999px;
  font: 600 .98rem/1 var(--f-sans);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s, transform .35s var(--ease), box-shadow .35s;
}
.btn .arr { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; transition: transform .45s var(--spring), background .35s; }
.btn .arr svg { width: 13px; height: 13px; }
.btn:hover .arr { transform: translateX(4px) rotate(-45deg); }
.btn:active { transform: scale(.97); }
.btn--brass { background: var(--brass); color: var(--bg); }
.btn--brass .arr { background: var(--bg); color: var(--brass); }
.btn--brass::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brass-2);
  transform: translateY(101%); transition: transform .45s var(--ease-out); border-radius: inherit;
}
.btn--brass:hover::before { transform: none; }
.btn--brass:hover { box-shadow: 0 14px 40px -14px rgba(201, 164, 99, .8); }
.btn--line { border-color: var(--line-strong); color: var(--text); }
.btn--line .arr { background: rgba(233, 228, 216, .08); }
.btn--line:hover { border-color: var(--brass); color: var(--brass-2); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink .arr { background: var(--brass); color: var(--ink); }
.btn--ink:hover { box-shadow: 0 14px 34px -14px rgba(13, 26, 20, .7); }
.btn--sm { height: 44px; padding: 0 18px; font-size: .9rem; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background .4s var(--ease), border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.hdr.is-scrolled { background: rgba(7, 19, 14, .78); backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.hdr .wrap { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: height .4s var(--ease); }
.hdr.is-scrolled .wrap { height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-mark { width: 38px; height: 38px; flex: none; transition: transform .6s var(--spring); }
.brand:hover .brand-mark { transform: translateY(-2px); }
.brand b { font: 600 1rem/1.1 var(--f-sans); letter-spacing: -.01em; }
.brand small { display: block; font: 500 .62rem/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  position: relative; text-decoration: none; font-size: .94rem; font-weight: 500; color: var(--muted);
  padding: 8px 14px; transition: color .25s;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav a:not(.btn):hover, .nav a:not(.btn)[aria-current="page"] { color: var(--text); }
.nav a:not(.btn):hover::after, .nav a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { margin-left: 12px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease), opacity .25s; }
.burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 940px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px;
    padding: 100px var(--gutter) 40px;
    background: var(--bg);
    clip-path: circle(0 at calc(100% - 46px) 42px);
    transition: clip-path .7s var(--ease-out);
  }
  .nav.is-open { clip-path: circle(150% at calc(100% - 46px) 42px); }
  .nav a:not(.btn) { font: 400 clamp(2.4rem, 10vw, 3.4rem)/1.15 var(--f-display); color: var(--text); padding: 6px 0; }
  .nav a:not(.btn)::after { display: none; }
  .nav a:not(.btn)[aria-current="page"] { color: var(--brass); }
  .nav .btn { margin: 28px 0 0; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 460px) { .brand small { display: none; } }

/* ---------- Blueprint grid background ---------- */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%);
  opacity: .55;
}
.spot {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 30%), rgba(201, 164, 99, .10), transparent 60%);
  transition: background .2s;
}

/* ---------- Hero ---------- */
/* Split hero: copy left, arch right, both centred on the same axis */
.hero { position: relative; min-height: min(100svh, 940px); display: flex; align-items: center; padding: 128px 0 72px; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(3rem, 6.3vw, 6.4rem); margin-bottom: 26px; }
.hero-facts { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); animation: fade-up 1s var(--ease-out) both .8s; }
.hero-facts li { font-size: .93rem; line-height: 1.45; color: var(--text); padding: 16px 18px 0 0; }
.hero-facts li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.hero-facts span { display: block; font: 500 .64rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: 6px; }
@media (max-width: 560px) { .hero-facts { grid-template-columns: 1fr; } .hero-facts li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-bottom: 14px; } }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .ln > span { display: inline-block; }
.hero .lede { margin-bottom: 36px; }






/* Blueprint arch figure */
.blueprint { width: 100%; max-width: 580px; justify-self: end; opacity: .95; pointer-events: none; }
.blueprint .draw { fill: none; stroke: var(--brass); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 0; }
.blueprint .faint { stroke: rgba(233, 228, 216, .28); }
.blueprint .dim { stroke: rgba(201, 164, 99, .55); stroke-width: .8; }
.blueprint .ks { stroke: var(--brass-2); stroke-width: 1.6; }  /* gradient fill set inline */
.blueprint .fill { fill: rgba(233, 228, 216, .06); }
.blueprint .plinth { stroke-width: 4; stroke-linecap: round; }
.blueprint text { font: 500 9.5px var(--f-mono); letter-spacing: 1.4px; fill: var(--muted); }
.blueprint text.b { fill: var(--brass); }
@media (max-width: 980px) {
  .hero { min-height: 0; padding-top: 112px; }
  .hero-inner { grid-template-columns: 1fr; }
  .blueprint { order: -1; justify-self: start; max-width: 230px; margin: 0 0 -18px -12px; }
}

/* ---------- Marquee ---------- */
.marquee { position: relative; z-index: 2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: rgba(7, 19, 14, .6); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { display: flex; align-items: center; gap: 28px; padding: 22px 28px 22px 0; font: 400 1.5rem/1 var(--f-display); white-space: nowrap; color: var(--text); }
.marquee li::after { content: ""; width: 8px; height: 8px; background: var(--brass); transform: rotate(45deg); flex: none; }
.marquee li span { font: 500 .68rem var(--f-mono); letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Statement (light) ---------- */
.statement { font: 400 clamp(2rem, 4.3vw, 3.7rem)/1.12 var(--f-display); letter-spacing: -.015em; max-width: 21em; margin: 0 0 clamp(48px, 7vw, 80px); color: var(--ink); }
.statement .hl { background: linear-gradient(transparent 62%, rgba(201, 164, 99, .45) 62%); background-size: 0 100%; background-repeat: no-repeat; transition: background-size 1.2s var(--ease-out) .5s; }
.statement.is-in .hl { background-size: 100% 100%; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(13, 26, 20, .14); }
.cols3 > div { padding: 30px 30px 0 0; }
.cols3 > div + div { padding-left: 30px; border-left: 1px solid rgba(13, 26, 20, .14); }
.cols3 .num { font: 500 .72rem var(--f-mono); letter-spacing: .12em; color: #8a6a2f; display: block; margin-bottom: 14px; }
.cols3 p { color: var(--ink-muted); margin: 0; }
@media (max-width: 820px) { .cols3 { grid-template-columns: 1fr; } .cols3 > div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgba(13, 26, 20, .14); } .cols3 > div { padding-bottom: 24px; } }

/* ---------- Numbers ---------- */
.nums { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.nums > div { padding: 36px 28px 8px 0; border-right: 1px solid var(--line); }
.nums > div + div { padding-left: 28px; }
.nums > div:last-child { border-right: 0; }
.nums .n { font: 400 clamp(3.4rem, 6.5vw, 5.6rem)/1 var(--f-display); color: var(--text); display: flex; align-items: baseline; gap: 10px; }
.nums .n small { font: 500 .78rem var(--f-mono); letter-spacing: .1em; color: var(--brass); text-transform: uppercase; }
.nums p { color: var(--muted); font-size: .95rem; margin: 16px 0 0; max-width: 18em; }
.nums cite { display: block; font: 400 .7rem var(--f-mono); letter-spacing: .06em; color: rgba(152, 170, 161, .7); font-style: normal; margin-top: 12px; }
@media (max-width: 900px) { .nums { grid-template-columns: 1fr 1fr; } .nums > div:nth-child(2) { border-right: 0; } .nums > div:nth-child(3) { padding-left: 0; } .nums > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .nums { grid-template-columns: 1fr; } .nums > div { border-right: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); } }

/* ---------- Bento (sectors) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(250px, auto); gap: 16px; }
.tile {
  position: relative; overflow: hidden;
  grid-column: span 2;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  padding: 30px; display: flex; flex-direction: column; text-decoration: none; color: var(--text);
  transition: border-color .4s, transform .5s var(--ease-out);
}
.tile--wide { grid-column: span 3; }
.tile--feature { grid-column: span 4; grid-row: span 2; background: linear-gradient(160deg, var(--green), var(--bg-2) 70%); }
.tile::after {  /* cursor glow */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(380px circle at var(--tx, 50%) var(--ty, 50%), rgba(201, 164, 99, .14), transparent 60%);
}
.tile:hover { border-color: rgba(201, 164, 99, .45); transform: translateY(-4px); }
.tile:hover::after { opacity: 1; }
.tile .idx { font: 500 .72rem var(--f-mono); letter-spacing: .12em; color: var(--brass); }
.tile h3 { font: 400 clamp(1.9rem, 2.8vw, 2.5rem)/1.05 var(--f-display); margin: auto 0 12px; padding-top: 40px; }
.tile--feature h3 { font-size: clamp(2.6rem, 4.6vw, 4rem); }
.tile p { color: var(--muted); font-size: .95rem; margin: 0 0 18px; max-width: 34em; }
.tile .go { position: absolute; top: 26px; right: 26px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background .4s, border-color .4s, transform .5s var(--spring); }
.tile .go svg { width: 15px; height: 15px; transition: transform .5s var(--spring); }
.tile:hover .go { background: var(--brass); border-color: var(--brass); color: var(--bg); }
.tile:hover .go svg { transform: rotate(-45deg); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.chips li { font: 500 .68rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); }
.light .chips li { border-color: rgba(13, 26, 20, .2); color: var(--ink); }
.tile-art { position: absolute; right: 70px; top: 40px; width: 230px; opacity: .45; pointer-events: none; transition: transform 1.2s var(--ease-out); }
.tile:hover .tile-art { transform: rotate(45deg); }
@media (max-width: 620px) { .tile-art { display: none; } }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile, .tile--wide { grid-column: span 1; } .tile--feature { grid-column: span 2; grid-row: span 1; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .tile, .tile--wide, .tile--feature { grid-column: span 1; } }

/* ---------- Crosswalk (interactive) ---------- */
.xw { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 920px) { .xw { grid-template-columns: 1fr; } }
.xw-controls { display: grid; gap: 10px; }
.xw-btn {
  text-align: left; cursor: pointer;
  border: 1px solid rgba(13, 26, 20, .16); border-radius: var(--r); background: rgba(255, 255, 255, .45);
  padding: 18px 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
  transition: background .35s, border-color .35s, color .35s, transform .35s var(--ease);
  color: var(--ink);
}
.xw-btn .k { font: 500 .7rem var(--f-mono); letter-spacing: .1em; color: #8a6a2f; }
.xw-btn b { font-weight: 600; font-size: 1.02rem; }
.xw-btn small { display: block; color: var(--ink-muted); font-size: .86rem; font-weight: 400; margin-top: 2px; }
.xw-btn .bar { width: 36px; height: 3px; border-radius: 3px; background: rgba(13, 26, 20, .12); overflow: hidden; }
.xw-btn .bar::before { content: ""; display: block; height: 100%; width: 0; background: var(--brass); }
.xw-btn:hover { transform: translateX(4px); border-color: rgba(13, 26, 20, .35); }
.xw-btn[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.xw-btn[aria-pressed="true"] small { color: #a9b8b0; }
.xw-btn[aria-pressed="true"] .k { color: var(--brass); }
.xw-btn[aria-pressed="true"] .bar { background: rgba(233, 228, 216, .18); }
.xw.is-cycling .xw-btn[aria-pressed="true"] .bar::before { animation: xwbar var(--cycle, 4.5s) linear forwards; }
@keyframes xwbar { to { width: 100%; } }
.xw-board { background: var(--ink); color: var(--cream); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); position: relative; overflow: hidden; }
.xw-board .grid-bg { opacity: .35; mask-image: none; -webkit-mask-image: none; background-size: 36px 36px; }
.xw-hub { position: relative; text-align: center; padding: 18px; border: 1px solid rgba(201, 164, 99, .5); border-radius: 12px; background: rgba(201, 164, 99, .08); }
.xw-hub .k { font: 500 .68rem var(--f-mono); letter-spacing: .14em; color: var(--brass); text-transform: uppercase; }
.xw-hub div { font: 400 1.7rem/1.15 var(--f-display); margin-top: 4px; transition: opacity .3s; }
.xw-wires { position: relative; height: 46px; }
.xw-wires svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.xw-wires path { fill: none; stroke: var(--brass); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.xw-board.is-drawn .xw-wires path { stroke-dashoffset: 0; transition: stroke-dashoffset .7s var(--ease-out); }
.xw-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.xw-cell { border: 1px solid rgba(233, 228, 216, .14); border-radius: 10px; padding: 14px; min-height: 92px; transition: border-color .4s, background .4s; }
.xw-cell .fw { font: 600 .82rem var(--f-sans); display: flex; justify-content: space-between; align-items: center; }
.xw-cell .fw i { width: 7px; height: 7px; border-radius: 50%; background: rgba(233, 228, 216, .2); transition: background .4s, box-shadow .4s; }
.xw-cell .ref { font: 500 .78rem/1.35 var(--f-mono); color: var(--brass-2); margin-top: 10px; min-height: 2.7em; transition: opacity .3s, transform .4s var(--ease-out); }
.xw-cell.is-on { border-color: rgba(201, 164, 99, .55); background: rgba(201, 164, 99, .07); }
.xw-cell.is-on .fw i { background: var(--brass); box-shadow: 0 0 0 4px rgba(201, 164, 99, .2); }
.xw-cell.is-off .ref { color: rgba(233, 228, 216, .35); }
.xw-board.is-swapping .ref, .xw-board.is-swapping .xw-hub div { opacity: 0; transform: translateY(6px); }
.xw-out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; position: relative; }
.xw-out div { border-radius: 10px; padding: 12px 14px; background: rgba(233, 228, 216, .05); font-size: .84rem; color: #b9c6bf; }
.xw-out b { display: block; font: 500 .68rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brass); margin-bottom: 4px; }
.xw-note { font: 400 .72rem var(--f-mono); color: var(--ink-muted); margin-top: 14px; letter-spacing: .03em; }
@media (max-width: 520px) { .xw-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Self vs validated ---------- */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
@media (max-width: 880px) { .versus { grid-template-columns: 1fr; } }
.vs-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); background: var(--panel); }
.vs-row { margin-bottom: 26px; }
.vs-row:last-of-type { margin-bottom: 18px; }
.vs-row header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.vs-row header > span { font: 500 .72rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.vs-row header b { font: 400 2.6rem/1 var(--f-display); }
.vs-track { height: 12px; border-radius: 12px; background: rgba(233, 228, 216, .07); overflow: hidden; }
.vs-fill { height: 100%; width: 0; border-radius: inherit; transition: width 1.6s var(--ease-out); }
.vs-fill--self { background: linear-gradient(90deg, #6f8a7d, #a9bdb2); }
.vs-fill--val { background: linear-gradient(90deg, var(--brass), var(--brass-2)); transition-delay: .35s; }
.vs-card.is-in .vs-fill { width: var(--w); }
.vs-gap { display: flex; gap: 14px; align-items: center; padding-top: 18px; border-top: 1px dashed var(--line-strong); color: var(--muted); font-size: .92rem; }
.vs-gap b { font: 400 2rem/1 var(--f-display); color: var(--brass); }
.vs-foot { font: 400 .7rem var(--f-mono); color: rgba(152, 170, 161, .7); margin-top: 14px; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--muted); }
.ticks li::before { content: ""; width: 9px; height: 9px; margin: .55em 0 0 4px; background: var(--brass); transform: rotate(45deg); }
.ticks b { color: var(--text); font-weight: 600; }
.light .ticks li { color: var(--ink-muted); }
.light .ticks b { color: var(--ink); }

/* ---------- Quick check ---------- */
.qc { display: grid; grid-template-columns: 1.2fr .8fr; gap: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(13, 26, 20, .14); background: #fbf8f2; }
@media (max-width: 900px) { .qc { grid-template-columns: 1fr; } }
.qc-qs { padding: clamp(22px, 3.4vw, 40px); }
.qc-q { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(13, 26, 20, .1); }
.qc-q:last-child { border-bottom: 0; }
.qc-q p { margin: 0; color: var(--ink); font-weight: 500; }
.qc-q small { display: block; color: var(--ink-muted); font-weight: 400; font-size: .85rem; margin-top: 2px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--cream-2); position: relative; }
.seg button { position: relative; z-index: 1; border: 0; background: none; cursor: pointer; padding: 8px 14px; border-radius: 999px; font: 600 .82rem var(--f-sans); color: var(--ink-muted); transition: color .3s; }
.seg button[aria-pressed="true"] { color: var(--cream); }
.seg .pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: 0; border-radius: 999px; background: var(--ink); transition: transform .45s var(--spring), width .45s var(--spring), opacity .3s; opacity: 0; }
.qc-out { background: var(--ink); color: var(--cream); padding: clamp(26px, 3.4vw, 40px); display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; gap: 6px; position: relative; overflow: hidden; }
.dial { width: 210px; height: 210px; position: relative; margin-bottom: 10px; }
.dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial circle { fill: none; stroke-width: 10; }
.dial .t { stroke: rgba(233, 228, 216, .1); }
.dial .v { stroke: var(--brass); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease-out), stroke .5s; }
.dial .val { position: absolute; inset: 0; display: grid; place-content: center; }
.dial .val b { font: 400 4rem/1 var(--f-display); }
.dial .val span { font: 500 .66rem var(--f-mono); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; margin-top: 4px; }
.qc-verdict { font: 400 1.6rem/1.2 var(--f-display); min-height: 1.2em; }
.qc-detail { color: #b9c6bf; font-size: .92rem; max-width: 22em; min-height: 3em; }
.qc-out .btn { margin-top: 14px; }
.qc-foot { font: 400 .7rem var(--f-mono); color: var(--ink-muted); margin-top: 14px; }

/* ---------- Path (engagement tiers) ---------- */
.path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; }
.path::before { content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 1px; background: var(--line-strong); }
.path::after { content: ""; position: absolute; left: 0; top: 34px; height: 1px; width: 100%; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease-out) .3s; }
.path.is-in::after { transform: scaleX(1); }
.stop { position: relative; padding-top: 70px; }
.stop .dot { position: absolute; top: 26px; left: 0; width: 17px; height: 17px; border-radius: 50%; background: var(--bg); border: 1px solid var(--brass); display: grid; place-items: center; z-index: 1; }
.stop .dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); transform: scale(0); transition: transform .5s var(--spring); }
.path.is-in .stop:nth-child(1) .dot::before { transform: scale(1); transition-delay: .4s; }
.path.is-in .stop:nth-child(2) .dot::before { transform: scale(1); transition-delay: 1.1s; }
.path.is-in .stop:nth-child(3) .dot::before { transform: scale(1); transition-delay: 1.8s; }
.stop-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; background: var(--panel); height: 100%; display: flex; flex-direction: column; transition: border-color .4s, transform .5s var(--ease-out); }
.stop-card:hover { border-color: rgba(201, 164, 99, .45); transform: translateY(-4px); }
.stop--key .stop-card { background: linear-gradient(170deg, var(--green), var(--panel) 65%); border-color: rgba(201, 164, 99, .4); }
.stop .k { font: 500 .7rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.stop h3 { font: 400 2rem/1.05 var(--f-display); margin: 12px 0 18px; }
.price { font: 400 2.5rem/1 var(--f-display); }
.price small { display: block; font: 500 .68rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.stop ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 10px; font-size: .94rem; color: var(--muted); }
.stop ul li { padding-left: 20px; position: relative; }
.stop ul li::before { content: "—"; position: absolute; left: 0; color: var(--brass); }
.stop .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .path { grid-template-columns: 1fr; } .path::before, .path::after { display: none; } .stop { padding-top: 0; } .stop .dot { display: none; } }

/* ---------- Editorial pull (PA insight) ---------- */
.pull { display: grid; grid-template-columns: 200px 1fr; gap: clamp(24px, 5vw, 72px); border-top: 1px solid rgba(13, 26, 20, .15); padding-top: 40px; }
.pull .mark { font: 400 7rem/0.8 var(--f-display); color: #9a7432; }
.pull blockquote { margin: 0; font: 400 clamp(1.6rem, 2.8vw, 2.4rem)/1.2 var(--f-display); color: var(--ink); }
.pull p { color: var(--ink-muted); margin-top: 24px; max-width: 46em; }
.pull small { font: 400 .72rem var(--f-mono); color: var(--ink-muted); letter-spacing: .03em; }
@media (max-width: 760px) { .pull { grid-template-columns: 1fr; } .pull .mark { font-size: 4.5rem; } }

/* ---------- "More" link + teaser band ---------- */
.more {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  font: 500 .74rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--brass); text-decoration: none;
}
.more::after { content: "→"; font-family: var(--f-sans); transition: transform .4s var(--spring); }
.more:hover::after { transform: translateX(6px); }
.light .more { color: #8a6a2f; }

.band {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 4vw, 48px); align-items: center;
  padding: clamp(26px, 4vw, 48px); border-radius: var(--r-lg);
  background: #fbf8f2; border: 1px solid rgba(13, 26, 20, .14);
  color: var(--ink); text-decoration: none;
  transition: border-color .4s, transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.band:hover { border-color: rgba(154, 116, 50, .5); transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(13, 26, 20, .35); }
.band .label { margin-bottom: 12px; }
.band h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0 0 8px; }
.band p { margin: 0; color: var(--ink-muted); }
.band-dial { width: 110px; height: 110px; transition: transform 1s var(--ease-out); }
.band-dial text { font: 400 40px var(--f-display); fill: var(--ink); }
.band:hover .band-dial { transform: rotate(-20deg); }
.band:hover .btn .arr { transform: translateX(4px) rotate(-45deg); }
@media (max-width: 820px) { .band { grid-template-columns: 1fr; } .band-dial { width: 80px; height: 80px; } }

/* ---------- Pillars (home: Assess · Document · Lead) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 30px 28px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  transition: border-color .4s, transform .5s var(--ease-out);
}
.pillar:hover { border-color: rgba(201, 164, 99, .45); transform: translateY(-4px); }
.pillar--key { background: linear-gradient(170deg, var(--green), var(--panel) 70%); border-color: rgba(201, 164, 99, .35); }
.pillar .k { font: 500 .7rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.pillar h3 { font: 400 clamp(2.2rem, 3.4vw, 2.9rem)/1 var(--f-display); margin: 26px 0 14px; }
.pillar p { color: var(--muted); margin: 0 0 22px; }
.pillar .more { margin-top: auto; }

/* ---------- Document library (toolkit page) ---------- */
.lib { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 900px) { .lib { grid-template-columns: 1fr; } }
.lib-group { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 28px 10px; background: linear-gradient(180deg, var(--panel), var(--bg-2)); }
.lib-group > header { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.lib-group h3 { font: 400 1.9rem/1.1 var(--f-display); margin: 0; }
.lib-group > header span { font: 500 .68rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brass); white-space: nowrap; }
.doc { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.doc:last-child { border-bottom: 0; }
.doc b { font-weight: 600; }
.doc p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .92rem; }
.doc .for { font: 500 .66rem/1.6 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: right; }
.lib > * { min-width: 0; }
.lib-group > header { flex-wrap: wrap; }
@media (max-width: 560px) {
  .lib-group { padding: 22px 20px 6px; }
  .lib-group > header span { white-space: normal; }
  .doc { grid-template-columns: 1fr; }
  .doc .for { text-align: left; order: 3; }
}

.pains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; border-top: 1px solid rgba(13, 26, 20, .15); }
@media (max-width: 820px) { .pains { grid-template-columns: 1fr; } }
.pains li { list-style: none; padding: 22px 0; border-bottom: 1px solid rgba(13, 26, 20, .15); display: grid; grid-template-columns: 34px 1fr; gap: 12px; color: var(--ink-muted); }
.pains li b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.pains li::before { content: "?"; font: 400 1.9rem/1 var(--f-display); color: #9a7432; }
.pains { padding: 0; margin: 0; }

/* ---------- Framework cards (frameworks page) ---------- */
.fw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1000px) { .fw-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .fw-grid { grid-template-columns: 1fr; } }
.fw-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; background: linear-gradient(180deg, var(--panel), var(--bg-2)); display: flex; flex-direction: column; scroll-margin-top: 100px; transition: border-color .4s, transform .5s var(--ease-out); }
.fw-card:hover { border-color: rgba(201, 164, 99, .45); transform: translateY(-4px); }
.fw-card .idx { font: 500 .7rem var(--f-mono); letter-spacing: .12em; color: var(--brass); text-transform: uppercase; }
.fw-card h3 { font: 400 2.1rem/1.05 var(--f-display); margin: 18px 0 6px; }
.fw-card .full { font: 500 .78rem var(--f-mono); color: var(--muted); letter-spacing: .02em; margin-bottom: 18px; }
.fw-card p { color: var(--muted); font-size: .95rem; }
.fw-card dl { margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: .9rem; }
.fw-card dt { font: 500 .66rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
.fw-card dd { margin: 2px 0 0; color: var(--text); }
.fw-card--core { background: linear-gradient(170deg, var(--green), var(--panel) 70%); border-color: rgba(201, 164, 99, .35); }

/* ---------- Standards strip (under the hero) ---------- */
.standards { position: relative; z-index: 2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(7, 19, 14, .6); }
.standards .wrap { display: flex; align-items: center; gap: 18px 36px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.standards .k { font: 500 .66rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.standards ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.standards li { display: flex; align-items: center; gap: 26px; font: 400 1.22rem/1.2 var(--f-display); color: var(--text); white-space: nowrap; }
.standards li + li::before { content: ""; width: 5px; height: 5px; background: var(--brass); transform: rotate(45deg); margin-left: -16px; margin-right: -10px; }

/* ---------- Capabilities (home + services overview) ---------- */
.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .caps { grid-template-columns: 1fr; } }
.cap {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 28px 24px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  transition: border-color .4s, transform .5s var(--ease-out);
}
.cap:hover { border-color: rgba(201, 164, 99, .45); transform: translateY(-4px); }
.cap .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.cap .k { font: 500 .68rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.cap .ico { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(201, 164, 99, .35); display: grid; place-items: center; color: var(--brass-2); }
.cap .ico svg { width: 20px; height: 20px; }
.cap h3 { font: 400 clamp(1.7rem, 2.2vw, 2rem)/1.08 var(--f-display); margin: 0 0 12px; }
.cap p { color: var(--muted); font-size: .95rem; margin: 0 0 18px; }
.cap ul { list-style: none; padding: 14px 0 0; margin: auto 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: .86rem; color: var(--text); }
.cap ul li { padding-left: 16px; position: relative; }
.cap ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; background: var(--brass); transform: rotate(45deg); }

/* ---------- Sector tiles (home): chips sit under the copy ---------- */
.tile .chips { margin-top: auto; }
.tile p { margin-bottom: 20px; }

/* ---------- Engagement models ---------- */
.models { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .models { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .models { grid-template-columns: 1fr; } }
.model { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px 26px; background: var(--panel); transition: border-color .4s, transform .5s var(--ease-out); }
.model:hover { border-color: rgba(201, 164, 99, .45); transform: translateY(-4px); }
.model--key { background: linear-gradient(170deg, var(--green), var(--panel) 65%); border-color: rgba(201, 164, 99, .4); }
.model .k { font: 500 .68rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.model h3 { font: 400 1.85rem/1.08 var(--f-display); margin: 14px 0 12px; }
.model > p { color: var(--muted); font-size: .94rem; margin: 0 0 18px; }
.model .meta { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 500 .66rem/1.5 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.model .meta b { color: var(--text); font-weight: 500; text-align: right; }
.model ul { list-style: none; padding: 0; margin: 16px 0 24px; display: grid; gap: 8px; font-size: .9rem; color: var(--text); }
.model ul li { padding-left: 18px; position: relative; }
.model ul li::before { content: "—"; position: absolute; left: 0; color: var(--brass); }
.model .btn { margin-top: auto; align-self: flex-start; }
.light .model { background: #fbf8f2; border-color: rgba(13, 26, 20, .14); }
.light .model--key { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.light .model > p, .light .model .meta { color: var(--ink-muted); }
.light .model .meta { border-color: rgba(13, 26, 20, .14); }
.light .model .meta b, .light .model ul { color: var(--ink); }
.light .model .k { color: #8a6a2f; }
.light .model--key > p, .light .model--key .meta { color: #a9b8b0; border-color: rgba(233, 228, 216, .16); }
.light .model--key .meta b, .light .model--key ul, .light .model--key h3 { color: var(--cream); }
.light .model--key .k { color: var(--brass); }

/* ---------- Compact readiness band on dark ---------- */
.band--dark { background: linear-gradient(120deg, var(--panel), var(--bg-2)); border-color: rgba(201, 164, 99, .3); color: var(--text); }
.band--dark p { color: var(--muted); }
.band--dark .band-dial text { fill: var(--text); }
.band--dark:hover { border-color: rgba(201, 164, 99, .6); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.band--dark .label { color: var(--brass); }

/* ---------- Principles on light backgrounds ---------- */
.light .principles { border-color: rgba(13, 26, 20, .15); }
.light .principles > div + div { border-color: rgba(13, 26, 20, .15); }
.light .principles .k { color: #8a6a2f; }
.light .principles p { color: var(--ink-muted); }

/* ---------- Scope grid (approach: what we assess) ---------- */
.scope { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 1000px) { .scope { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .scope { grid-template-columns: 1fr; } }
.scope > div { background: var(--bg); padding: 24px 24px 22px; }
.scope .k { font: 500 .66rem var(--f-mono); letter-spacing: .12em; color: var(--brass); }
.scope h3 { font: 400 1.5rem/1.15 var(--f-display); margin: 10px 0 8px; }
.scope p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Platform page ---------- */
.plat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.plat--flip > :first-child { order: 2; }
@media (max-width: 920px) { .plat { grid-template-columns: 1fr; } .plat--flip > :first-child { order: 0; } }
.plat .status { display: inline-block; font: 500 .64rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(201, 164, 99, .45); color: var(--brass-2); margin-bottom: 18px; }
.light .plat .status { color: #8a6a2f; border-color: rgba(138, 106, 47, .45); }
.screen { border-radius: var(--r-lg); border: 1px solid var(--line-strong); background: var(--bg); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.screen .bar { display: flex; gap: 6px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.screen .bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(233, 228, 216, .16); }
.screen .bar span { margin-left: 10px; font: 500 .64rem var(--f-mono); letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.screen svg { width: 100%; height: auto; }
.light .screen { border-color: rgba(13, 26, 20, .2); box-shadow: 0 40px 80px -40px rgba(13, 26, 20, .45); }
.screen .isl { animation: fade 1s var(--ease) both; }
.screen .pk { offset-rotate: 0deg; animation: travel 3.6s var(--ease) infinite; }
@keyframes travel { 0% { offset-distance: 0%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.screen .spin { transform-origin: 300px 200px; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: flow; }
@media (max-width: 1000px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }
.flow > div { border-top: 1px solid var(--brass); padding-top: 18px; }
.flow .k { font: 500 .66rem var(--f-mono); letter-spacing: .14em; color: var(--brass); text-transform: uppercase; }
.flow h3 { font: 400 1.6rem/1.1 var(--f-display); margin: 10px 0 8px; }
.flow p { color: var(--muted); font-size: .93rem; margin: 0; }
.light .flow > div { border-color: #9a7432; }
.light .flow .k { color: #8a6a2f; }
.light .flow p { color: var(--ink-muted); }

/* ---------- Big CTA ---------- */
.cta { text-align: center; position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(3rem, 9vw, 8.4rem); margin: 0 auto 32px; max-width: 11em; }
.cta .lede { margin: 0 auto 40px; }
.cta .btns { justify-content: center; }

/* ---------- Footer ---------- */
.ftr { border-top: 1px solid var(--line); padding: 72px 0 28px; position: relative; overflow: hidden; }
.ftr-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; position: relative; z-index: 1; }
@media (max-width: 900px) { .ftr-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ftr-grid { grid-template-columns: 1fr; } }
.ftr h2 { font: 500 .7rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin: 0 0 16px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ftr a { color: var(--muted); text-decoration: none; transition: color .25s; }
.ftr a:hover { color: var(--text); }
.ftr p { color: var(--muted); font-size: .94rem; max-width: 26em; margin-top: 18px; }
.wordmark {
  font: 400 clamp(6rem, 25vw, 22rem)/.8 var(--f-display); letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1px rgba(201, 164, 99, .35);
  margin: 56px 0 0; user-select: none; white-space: nowrap; text-align: center;
  transform: translateY(var(--wy, 0));
}
.ftr-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); font: 400 .74rem var(--f-mono); color: var(--muted); letter-spacing: .03em; }

/* ---------- Inner pages ---------- */
.phero { position: relative; padding: 180px 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.phero h1 { font-size: clamp(2.8rem, 7vw, 6.2rem); max-width: 13em; }
.phero .lede { margin-top: 10px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.jump a { font: 500 .74rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 14px; transition: color .3s, border-color .3s, background .3s; }
.jump a:hover { color: var(--bg); background: var(--brass); border-color: var(--brass); }

.rows { border-top: 1px solid rgba(13, 26, 20, .15); }
.row { display: grid; grid-template-columns: 110px 1fr 1.25fr; gap: clamp(20px, 4vw, 56px); padding: clamp(36px, 5vw, 60px) 0; border-bottom: 1px solid rgba(13, 26, 20, .15); scroll-margin-top: 90px; }
.row .no { font: 400 3.4rem/1 var(--f-display); color: #9a7432; }
.row h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 18px; }
.row .price { font-size: 2rem; margin-top: 18px; color: var(--ink); }
.row .price small { color: var(--ink-muted); }
.row .body > p:first-child { font-size: 1.12rem; color: var(--ink); }
.row .body p { color: var(--ink-muted); }
.row .body h3.sub { font: 500 .7rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #8a6a2f; margin: 26px 0 12px; }
.row .btn { margin-top: 22px; }
.dark .row, .dark .rows { border-color: var(--line); }
@media (max-width: 900px) { .row { grid-template-columns: 1fr; gap: 14px; } .row .no { font-size: 2.4rem; } }

.principles { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.principles > div { padding: 32px 28px 0 0; }
.principles > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.principles .k { font: 500 .7rem var(--f-mono); color: var(--brass); letter-spacing: .12em; }
.principles h3 { font: 400 1.9rem/1.1 var(--f-display); margin: 14px 0 12px; }
.principles p { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr 1fr; } .principles > div:nth-child(3) { padding-left: 0; border-left: 0; } .principles > div { padding-bottom: 24px; } }
@media (max-width: 540px) { .principles { grid-template-columns: 1fr; } .principles > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

.founder { display: grid; grid-template-columns: 380px 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
@media (max-width: 900px) { .founder { grid-template-columns: 1fr; } }
.portrait { aspect-ratio: 4/5; border-radius: var(--r-lg); position: relative; overflow: hidden; background: linear-gradient(160deg, var(--green), var(--bg)); display: grid; place-items: center; border: 1px solid var(--line); }
.portrait .grid-bg { mask-image: none; -webkit-mask-image: none; opacity: .4; background-size: 40px 40px; }
.portrait b { font: 400 6rem/1 var(--f-display); color: var(--brass); position: relative; }
.portrait span { position: absolute; bottom: 16px; left: 18px; font: 500 .66rem var(--f-mono); letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.creds { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--line); }
.creds li { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.creds li span { font: 500 .7rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brass); padding-top: 4px; }
@media (max-width: 520px) { .creds li { grid-template-columns: 1fr; gap: 4px; } }

.contact { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.form { display: grid; gap: 22px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 600px) { .form .two { grid-template-columns: 1fr; } }
.fld { position: relative; }
.fld label { display: block; font: 500 .7rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #6b5427; margin-bottom: 8px; }
.fld input, .fld select, .fld textarea {
  width: 100%; font: 400 1.05rem var(--f-sans); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid rgba(13, 26, 20, .25);
  padding: 10px 0 12px; border-radius: 0; transition: border-color .3s;
}
.fld textarea { min-height: 130px; resize: vertical; }
.fld select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230d1a14' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 4px center; }
.fld::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.fld:focus-within::after { transform: scaleX(1); }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; }
.form-note { font: 400 .74rem var(--f-mono); color: var(--ink-muted); letter-spacing: .02em; }
.side-card { background: var(--ink); color: var(--cream); border-radius: var(--r-lg); padding: 34px; position: sticky; top: 100px; }
.side-card h2, .light .side-card h2 { font: 400 2rem/1.1 var(--f-display); margin-bottom: 24px; color: var(--cream); }
.side-card h2 em { color: var(--brass); }
.side-card dl { margin: 0; display: grid; gap: 20px; }
.side-card dt { font: 500 .68rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.side-card dd { margin: 4px 0 0; color: #cfd8d3; }
.side-card a { color: var(--brass-2); }

/* =============================================================================
   Motion
   ========================================================================== */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .4s; }

@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ks-set { 0% { opacity: 0; transform: translateY(-46px); } 70% { opacity: 1; transform: translateY(3px); } 100% { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: .25; } 50% { opacity: .7; } }

/* Hero choreography */
.hero h1 .ln > span { animation: rise 1.1s var(--ease-out) both; }
.hero h1 .ln:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .ln:nth-child(3) > span { animation-delay: .24s; }
.hero .label, .hero .lede, .hero .btns { animation: fade-up 1s var(--ease-out) both; }
.hero .label { animation-delay: .05s; } .hero .lede { animation-delay: .45s; } .hero .btns { animation-delay: .6s; }
.blueprint .draw { animation: draw 2.4s var(--ease-out) both; }
.blueprint .d2 { animation-delay: .4s; } .blueprint .d3 { animation-delay: .8s; } .blueprint .d4 { animation-delay: 1.2s; }
.blueprint text { animation: fade 1s var(--ease) both 1.8s; }
.blueprint .fill { animation: fade 1.2s var(--ease) both 1.3s; }
.blueprint .ks { transform-box: fill-box; animation: ks-set 1.1s var(--ease-out) both 1.5s; }
.blueprint .glow { animation: pulse 4s ease-in-out infinite 3s; }
.marquee { animation: fade 1s var(--ease) both .9s; }
.phero h1, .phero .label, .phero .lede, .phero .jump { animation: fade-up 1s var(--ease-out) both; }
.phero .lede { animation-delay: .15s; } .phero .jump { animation-delay: .3s; }

/* Scroll reveal (only when JS runs) */
.js .rv { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .tile.rv.is-in, .js .stop-card.rv.is-in { transition: opacity 1s var(--ease-out) var(--d, 0s), transform .5s var(--ease-out), border-color .4s; }
.js .rv-line { clip-path: inset(0 100% 0 0); transition: clip-path 1.3s var(--ease-out) var(--d, 0s); }
.js .rv-line.is-in { clip-path: inset(0 0 0 0); }

/* Reduced motion: fades only, no movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1 .ln > span { animation-name: fade; }
  .hero .label, .hero .lede, .hero .btns, .hero-facts, .phero h1, .phero .label, .phero .lede, .phero .jump, .blueprint .ks { animation-name: fade; }
  .blueprint .draw { animation: none; }
  .blueprint .glow, .marquee-track { animation: none; }
  .js .rv { transform: none; }
  .js .rv-line { clip-path: none; opacity: 0; transition: opacity 1s; }
  .js .rv-line.is-in { opacity: 1; }
  .tile:hover, .stop-card:hover, .btn:active, .xw-btn:hover { transform: none; }
  .wordmark { transform: none !important; }
}
.flow--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .flow--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .flow--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .flow--5 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .screen .pk, .screen .spin { animation: none; } .cap:hover, .model:hover { transform: none; } }

/* ---------- Ask TCGG (AI assistant widget; shown only when configured) ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ask { position: fixed; right: 20px; bottom: 20px; z-index: 150; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.ask-btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(201, 164, 99, .5); background: var(--panel); color: var(--text); font: 600 .9rem var(--f-sans); cursor: pointer; box-shadow: 0 14px 40px -14px rgba(0, 0, 0, .7); transition: border-color .3s, transform .3s var(--ease); }
.ask-btn:hover { border-color: var(--brass); transform: translateY(-2px); }
.ask-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 4px rgba(201, 164, 99, .2); }
.ask-panel { order: -1; width: min(380px, calc(100vw - 40px)); max-height: min(560px, calc(100svh - 120px)); display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); }
.ask-panel[hidden] { display: none; }
.ask-panel header { display: grid; grid-template-columns: 1fr auto; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
.ask-panel header b { font: 400 1.35rem/1.1 var(--f-display); }
.ask-panel header span { grid-column: 1; font: 500 .62rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brass); }
.ask-x { grid-row: 1 / 3; grid-column: 2; align-self: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; cursor: pointer; font-size: 1.1rem; line-height: 1; }
.ask-log { flex: 1; overflow-y: auto; padding: 14px 16px; display: grid; gap: 10px; align-content: start; font-size: .92rem; line-height: 1.5; }
.ask-m { max-width: 88%; padding: 9px 12px; border-radius: 12px; }
.ask-m.a { background: var(--panel); color: var(--text); border: 1px solid var(--line); justify-self: start; }
.ask-m.u { background: var(--brass); color: var(--bg); justify-self: end; }
.ask-m a { color: var(--brass-2); }
.ask-wait { color: var(--muted); }
.ask-form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.ask-form input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 14px; color: var(--text); font: 400 .92rem var(--f-sans); }
.ask-form button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--brass); color: var(--bg); cursor: pointer; font-size: 1.1rem; }
.ask-note { margin: 0; padding: 0 16px 12px; font: 400 .66rem var(--f-mono); color: var(--muted); }

/* ---------- Why (home) ---------- */
.why .statement { margin-bottom: 28px; max-width: 24em; }
.why-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 56px; border-top: 1px solid rgba(13, 26, 20, .14); padding-top: 28px; }
.why-body p { color: var(--ink-muted); margin: 0; font-size: 1.05rem; }
.why-body .more { grid-column: 1 / -1; margin-top: 6px; }
@media (max-width: 820px) { .why-body { grid-template-columns: 1fr; } }
