/* ==========================================================================
   Forgefront Engineering — site.css
   Design system carried over from the live site (graphite + steel accent,
   Bricolage Grotesque / Archivo / Fragment Mono / Fraunces).
   Drawing convention used throughout:
     solid outline  = exists today
     dashed outline = in development
     dotted outline = platform vision
   ========================================================================== */

:root {
  --bg:        #0B0D10;
  --bg-2:      #0F1216;
  --surface:   #141920;
  --raised:    #1A212A;
  --hover:     #212A35;
  --line:      #222B34;
  --line-2:    #34414D;
  --line-3:    #4C5F6E;
  --ink:       #F2F5F7;
  --ink-2:     #CBD5DD;
  --ink-3:     #8DA0AE;
  --ink-4:     #64778A;
  --accent:    #5FB9CC;
  --accent-2:  #8AD3E2;
  --accent-dim:#164049;
  --accent-wash: rgba(95,185,204,0.07);
  --risk:      #D0705A;
  --risk-dim:  #4A2219;
  --risk-wash: rgba(208,112,90,0.08);
  --on-accent: #071013;
  --header-bg: rgba(11,13,16,0.82);
  --shadow:    none;
  --shadow-hi: none;

  --f-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --f-body:    'Archivo', system-ui, sans-serif;
  --f-mono:    'Fragment Mono', ui-monospace, monospace;
  --f-accent:  'Fraunces', Georgia, serif;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --header-h: 72px;
  --wrap: 1240px;
  --gutter: 40px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

html[data-theme="light"] {
  --bg:        #FBFBFA;
  --bg-2:      #F2F4F5;
  --surface:   #FFFFFF;
  --raised:    #F4F6F7;
  --hover:     #E9EEF0;
  --line:      #E3E8EB;
  --line-2:    #C6D0D6;
  --line-3:    #90A2AD;
  --ink:       #14181C;
  --ink-2:     #1C232A;
  --ink-3:     #52626E;
  --ink-4:     #7D8D99;
  --accent:    #147385;
  --accent-2:  #1E93A8;
  --accent-dim:#CBE8EE;
  --accent-wash: rgba(20,115,133,0.06);
  --risk:      #B0503C;
  --risk-dim:  #F0D6CF;
  --risk-wash: rgba(176,80,60,0.06);
  --on-accent: #FFFFFF;
  --header-bg: rgba(251,251,250,0.86);
  --shadow:    0 1px 2px rgba(20,40,50,0.05), 0 4px 14px rgba(20,40,50,0.05);
  --shadow-hi: 0 8px 26px rgba(20,40,50,0.10);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 2000; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: 112px 0; border-top: 1px solid var(--line); }
.sec:first-child { border-top: none; }
.sec--tight { padding: 80px 0; }
.sec--alt { background: var(--bg-2); }
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; align-items: start; }
.split--wide { grid-template-columns: minmax(0,1.15fr) minmax(0,0.85fr); }
.stack > * + * { margin-top: 18px; }
.mt-s { margin-top: 24px; } .mt-m { margin-top: 48px; } .mt-l { margin-top: 72px; }

/* ---------- Type ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 9px; height: 9px; border: 1.5px solid currentColor; border-radius: 2px; flex-shrink: 0; }
.eyebrow::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.eyebrow--plain::after { display: none; }

.display, .h1, .h2, .h3, .h4 { font-family: var(--f-display); color: var(--ink); font-weight: 650; letter-spacing: -0.024em; }
.display { font-size: clamp(42px, 6vw, 80px); line-height: 1.02; letter-spacing: -0.03em; }
.h1 { font-size: clamp(38px, 5.2vw, 66px); line-height: 1.04; }
.h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.06; }
.h3 { font-size: clamp(21px, 2vw, 26px); line-height: 1.2; letter-spacing: -0.012em; }
.h4 { font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -0.005em; }
.display em, .h1 em, .h2 em, .h3 em, .accent-serif {
  font-family: var(--f-accent); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--accent);
}
.lede { font-size: 18px; line-height: 1.7; color: var(--ink-3); max-width: 640px; }
.lede strong, .body strong { color: var(--ink-2); font-weight: 600; }
.body { font-size: 15px; line-height: 1.75; color: var(--ink-3); }
.small { font-size: 13.5px; line-height: 1.6; color: var(--ink-3); }
.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); }
.sec-head { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; align-items: end; margin-bottom: 56px; }
.sec-head .lede { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body); font-size: 14.5px; font-weight: 600; letter-spacing: 0.01em;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(95,185,204,0.22); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { background: var(--hover); border-color: var(--line-3); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.textlink { font-weight: 600; color: var(--accent); display: inline-flex; gap: 8px; align-items: center; font-size: 14.5px; }
.textlink::after { content: '→'; transition: transform .2s var(--ease); }
.textlink:hover::after { transform: translateX(4px); }

/* ---------- Status badges (drawing convention) ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-3);
  white-space: nowrap;
}
.badge::before { content: ''; width: 14px; height: 0; border-top: 1.5px solid currentColor; }
.badge--today { color: var(--accent); border-color: var(--accent-dim); background: var(--accent-wash); }
.badge--dev { border-style: dashed; color: var(--ink-2); }
.badge--dev::before { border-top-style: dashed; }
.badge--vision { border-style: dotted; color: var(--ink-3); }
.badge--vision::before { border-top-style: dotted; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.06em;
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2);
  color: var(--ink-3); background: var(--bg-2); white-space: nowrap;
}
.tag--accent { color: var(--accent); border-color: var(--accent-dim); background: var(--accent-wash); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 30px; box-shadow: var(--shadow); position: relative;
  transition: transform .22s var(--ease), border-color .22s, background .22s, box-shadow .22s;
}
a.card:hover, .card--hover:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--raised); box-shadow: var(--shadow-hi); }
.card--feature { border-color: var(--accent-dim); background: linear-gradient(160deg, var(--accent-wash), transparent 60%), var(--surface); }
.card--dev { border-style: dashed; border-color: var(--line-3); }
.card--vision { border-style: dotted; border-color: var(--line-3); }
.card__kicker { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.card .h3 + .body, .card .h4 + .body, .card .h3 + .small, .card .h4 + .small { margin-top: 10px; }
.card .tags { margin-top: 20px; }
.card .textlink { margin-top: 22px; }
.card__io { display: grid; grid-template-columns: 70px minmax(0,1fr); gap: 6px 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.card__io dt { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4); padding-top: 3px; }
.card__io dd { font-size: 13.5px; color: var(--ink-3); line-height: 1.55; }

/* list with dash markers */
.dash li { position: relative; padding-left: 20px; font-size: 14px; color: var(--ink-3); line-height: 1.55; }
.dash li + li { margin-top: 8px; }
.dash li::before { content: ''; position: absolute; left: 0; top: 10px; width: 10px; height: 1.5px; background: var(--accent); }
.dash--risk li::before { background: var(--risk); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h);
  background: var(--header-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 18px; max-width: 1440px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin-right: auto; }
.brand img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }
html[data-theme="light"] .brand img { box-shadow: 0 0 0 1px var(--line); }
.brand__name { font-family: var(--f-display); font-weight: 700; font-size: 18px; color: var(--ink); line-height: 1; letter-spacing: 0.005em; }
.brand__sub { display: block; font-family: var(--f-mono); font-size: 8.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-3);
  padding: 10px 12px; border-radius: 8px; position: relative; transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--ink); background: var(--hover); }
.nav__link.is-active { color: var(--accent); }
.nav__link.is-active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent); }
.nav__caret { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; }
.nav__menu {
  position: absolute; top: calc(100% + 6px); left: -8px; min-width: 250px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md);
  padding: 8px; box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu, .nav__item.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 13.5px; color: var(--ink-2); }
.nav__menu a:hover { background: var(--hover); color: var(--ink); }
.nav__menu small { display: block; font-size: 11.5px; color: var(--ink-4); margin-top: 2px; }

.header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.seg button { font-family: var(--f-body); font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; padding: 7px 11px; color: var(--ink-3); }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button:hover { color: var(--ink); background: var(--hover); }
.seg button.is-on { background: var(--accent); color: var(--on-accent); }
.header-cta { padding: 10px 18px; font-size: 13px; }

.burger { display: none; width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; flex-shrink: 0; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform .2s; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mnav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 999; background: var(--bg);
  overflow-y: auto; padding: 16px 20px 40px; display: none; border-top: 1px solid var(--line);
}
.mnav.is-open { display: block; }
.mnav__group { border-bottom: 1px solid var(--line); }
.mnav__top { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 16px 2px; font-size: 16px; font-weight: 500; color: var(--ink); text-align: left; }
.mnav__top .nav__caret { transition: transform .2s; }
.mnav__group.is-open .mnav__top .nav__caret { transform: rotate(-135deg) translateY(-2px); }
.mnav__sub { display: none; padding: 0 0 14px 12px; }
.mnav__group.is-open .mnav__sub { display: block; }
.mnav__sub a { display: block; padding: 9px 0; font-size: 14.5px; color: var(--ink-3); }
.mnav__tools { display: flex; gap: 10px; margin-top: 24px; }
.mnav__tools .seg { flex: 1; }
.mnav__tools .seg button { flex: 1; padding: 11px 8px; font-size: 11px; }
.mnav .btn { width: 100%; justify-content: center; margin-top: 18px; }

/* ---------- Pages ---------- */
main { padding-top: var(--header-h); }
.page { display: none; }
.page.is-active { display: block; animation: pagein .35s var(--ease); }
@keyframes pagein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.page-head { padding: 104px 0 72px; border-bottom: 1px solid var(--line); }
.page-head .lede { margin-top: 26px; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.subnav a { font-size: 13px; font-weight: 500; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-3); transition: all .2s; }
.subnav a:hover { color: var(--ink); border-color: var(--line-3); background: var(--hover); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; 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: 56px 56px; opacity: .35;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,0.95fr); gap: 56px; align-items: center; }
.hero__eyebrow { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); display: flex; gap: 12px; align-items: baseline; margin-bottom: 30px; line-height: 1.7; }
.hero__eyebrow::before { content: ''; width: 22px; height: 1.5px; background: currentColor; flex-shrink: 0; transform: translateY(-3px); }
.hero__lede { font-size: 18.5px; line-height: 1.7; color: var(--ink-3); max-width: 560px; margin-top: 28px; }
.hero__build {
  margin-top: 22px; max-width: 560px; padding: 16px 18px; border: 1px dashed var(--line-3); border-radius: var(--r-sm);
  font-size: 15px; line-height: 1.6; color: var(--ink-2); display: grid; grid-template-columns: auto minmax(0,1fr); gap: 14px; align-items: start;
}
.hero__build .badge { margin-top: 1px; }
.hero .btn-row { margin-top: 34px; }
.hero__proof { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; margin-top: 56px; border-top: 1px solid var(--line); padding-top: 22px; }
.hero__proof > div { padding-right: 16px; }
.hero__proof b { display: block; font-family: var(--f-display); font-weight: 650; font-size: 28px; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; }
.hero__proof span { display: block; font-size: 12.5px; color: var(--ink-4); line-height: 1.45; margin-top: 6px; }
.hero__proof-label { grid-column: 1 / -1; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 14px; }

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .75s var(--ease) both; }
  .rise-2 { animation-delay: .08s; } .rise-3 { animation-delay: .16s; } .rise-4 { animation-delay: .24s; } .rise-5 { animation-delay: .32s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* Hero schematic (SVG) */
.schematic { width: 100%; height: auto; overflow: visible; }
.schematic text { font-family: var(--f-mono); fill: var(--ink-3); font-size: 10px; letter-spacing: 0.1em; }
.schematic .t-strong { fill: var(--ink); font-size: 11px; letter-spacing: 0.14em; }
.schematic .t-accent { fill: var(--accent); }
.schematic .t-risk { fill: var(--risk); }
.schematic .box { fill: var(--surface); stroke: var(--line-3); stroke-width: 1; }
.schematic .box-solid { fill: var(--surface); stroke: var(--ink-3); stroke-width: 1.2; }
.schematic .engine { fill: var(--accent-wash); stroke: var(--accent); stroke-width: 1.3; stroke-dasharray: 6 5; }
.schematic .rowline { stroke: var(--line-2); stroke-width: 1; }
.schematic .chip { fill: var(--bg-2); stroke: var(--line-2); }
.schematic .wire { stroke: var(--line-3); stroke-width: 1.2; fill: none; }
.schematic .wire-solid { stroke: var(--ink-3); stroke-width: 1.2; fill: none; }
.schematic .flow { stroke: var(--accent); stroke-width: 1.3; fill: none; stroke-dasharray: 4 5; }
.schematic .gate { fill: var(--bg); stroke: var(--accent); stroke-width: 1.3; }
.schematic .dot { fill: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .schematic .flow { animation: flow 1.6s linear infinite; }
  @keyframes flow { to { stroke-dashoffset: -18; } }
}

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 15px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee__track span { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-4); padding: 0 26px; white-space: nowrap; display: inline-flex; gap: 26px; }
.marquee__track span::after { content: '//'; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Process chain (signature) ---------- */
.chain { display: flex; align-items: stretch; margin-top: 8px; }
.chain__node {
  flex: 1 1 0; min-width: 0; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 18px 16px; text-align: center; box-shadow: var(--shadow);
}
.chain__node b { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); font-weight: 400; }
.chain__node span { display: block; font-size: 12px; color: var(--ink-4); margin-top: 6px; line-height: 1.4; }
.chain__gap { flex: 0 0 92px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.chain__gap::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px dashed var(--risk); opacity: .7; }
.chain__gap i { position: relative; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--risk); background: var(--bg); color: var(--risk); font-style: normal; font-size: 13px; line-height: 21px; text-align: center; font-family: var(--f-mono); }
.chain__gap em { position: absolute; top: calc(50% + 18px); font-style: normal; font-family: var(--f-mono); font-size: 8.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--risk); white-space: nowrap; }
.sec--alt .chain__gap i { background: var(--bg-2); }
.chain--connected .chain__node { border-color: var(--accent-dim); }
.chain--connected .chain__gap::before { border-top: 2px solid var(--accent); opacity: 1; }
.chain--connected .chain__gap i { border-color: var(--accent); color: var(--accent); transform: rotate(45deg); border-radius: 3px; width: 16px; height: 16px; }
.chain--connected .chain__gap em { color: var(--accent); }
.chain-label { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }

.risk-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 44px; }
.risk-item { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.risk-item::before { content: '✕'; font-family: var(--f-mono); color: var(--risk); font-size: 12px; margin-top: 1px; }

/* Mini inline route (A → B → C) */
.route { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.route span { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-2); }
.route span.on { color: var(--accent); border-color: var(--accent-dim); background: var(--accent-wash); }
.route i { font-style: normal; color: var(--ink-4); font-size: 13px; }
.route--dev span { border-style: dashed; }
.route--vision span { border-style: dotted; }

/* ---------- Definition block ---------- */
.definition { border: 1px solid var(--accent-dim); border-radius: var(--r-lg); padding: 36px 40px; background: var(--accent-wash); position: relative; }
.definition::before { content: ''; position: absolute; left: 0; top: 26px; bottom: 26px; width: 3px; border-radius: 3px; background: var(--accent); }
.definition dt { font-family: var(--f-display); font-size: 22px; font-weight: 650; color: var(--ink); letter-spacing: -0.015em; }
.definition dt small { display: block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 400; margin-bottom: 10px; }
.definition dd { margin-top: 12px; font-size: 16px; line-height: 1.7; color: var(--ink-3); }

/* ---------- Figures ---------- */
.figure { margin: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.figure img { width: 100%; }
.figure figcaption { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); padding: 14px 20px; border-top: 1px solid var(--line); background: var(--bg-2); line-height: 1.6; }
.figure figcaption b { color: var(--accent); font-weight: 400; margin-right: 8px; }
.figure--tall img { max-height: 980px; object-fit: contain; background: var(--bg-2); }

/* ---------- Today → Knowledge → Platform ---------- */
.tkp { display: grid; grid-template-columns: minmax(0,1fr) 56px minmax(0,1fr) 56px minmax(0,1fr); align-items: stretch; }
.tkp__col { border-radius: var(--r-lg); padding: 30px 28px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.tkp__col--today { border-color: var(--accent); }
.tkp__col--know { border-color: var(--line-2); background: var(--bg-2); }
.tkp__col--plat { border: 1.5px dashed var(--line-3); }
.tkp__col header { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.tkp__col header .mono { color: var(--accent); }
.tkp__col ul li { font-size: 14.5px; color: var(--ink-2); padding: 9px 0; border-bottom: 1px dashed var(--line); }
.tkp__col ul li:last-child { border-bottom: none; }
.tkp__arrow { display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 22px; }
.tkp__note { margin-top: 28px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: center; padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }

/* ---------- Roadmap (process chains) ---------- */
.roadmap { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; position: relative; }
.roadmap__stage { border-radius: var(--r-md); padding: 24px 22px; background: var(--surface); border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 14px; }
.roadmap__stage.is-core { border-color: var(--accent); background: linear-gradient(160deg, var(--accent-wash), transparent 70%), var(--surface); }
.roadmap__stage.is-dev { border-style: dashed; border-color: var(--line-3); }
.roadmap__stage.is-vision { border-style: dotted; border-color: var(--line-3); }
.roadmap__stage .route { gap: 5px; flex-wrap: nowrap; }
.roadmap__stage .route span { font-size: 9px; padding: 5px 7px; letter-spacing: 0.04em; }
.roadmap__stage .route i { font-size: 11px; }
.roadmap__stage p { font-size: 13.5px; color: var(--ink-3); line-height: 1.55; }

/* ---------- Pillars ---------- */
.pillar .h3 { margin-top: 2px; }
.pillar .body { margin-top: 12px; }
.pillar--core::after { content: ''; position: absolute; inset: -1px; border-radius: var(--r-md); border: 1.5px solid var(--accent); pointer-events: none; }

/* ---------- Vertical flow (numbered sequence) ---------- */
.vflow { counter-reset: vf; }
.vflow li { counter-increment: vf; display: grid; grid-template-columns: 58px minmax(0,0.9fr) minmax(0,1.1fr); gap: 20px; align-items: start; padding: 22px 0; border-top: 1px solid var(--line); position: relative; }
.vflow li:last-child { border-bottom: 1px solid var(--line); }
.vflow li::before { content: counter(vf, decimal-leading-zero); font-family: var(--f-mono); font-size: 12px; color: var(--accent); width: 38px; height: 38px; border: 1px solid var(--accent-dim); border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent-wash); }
.vflow b { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); font-weight: 400; padding-top: 9px; }
.vflow p { font-size: 14.5px; color: var(--ink-3); line-height: 1.6; padding-top: 6px; }
.vflow p strong { color: var(--ink-2); font-weight: 600; }

/* ---------- Pipeline (horizontal steps with arrows) ---------- */
.pipe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.pipe span { font-size: 12.5px; font-weight: 500; color: var(--ink-2); padding: 8px 13px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-2); }
.pipe span.on { color: var(--accent); border-color: var(--accent-dim); background: var(--accent-wash); }
.pipe i { font-style: normal; color: var(--ink-4); }
.pipe--loop { position: relative; padding-bottom: 30px; }
.pipe--loop::after { content: '↺ iterate until validated'; position: absolute; left: 0; bottom: 0; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }

/* ---------- Capability block (advanced design) ---------- */
.capblock { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 48px; padding: 44px 0; border-top: 1px solid var(--line); }
.capblock:last-of-type { border-bottom: 1px solid var(--line); }
.capblock__label .mono { color: var(--accent); }
.capblock__label .h3 { margin-top: 10px; }
.io { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 24px; }
.io > div { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 18px 20px; background: var(--surface); }
.io .mono { display: block; margin-bottom: 12px; color: var(--ink-3); }
.callout { margin-top: 22px; padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--accent-wash); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-family: var(--f-accent); font-style: italic; font-size: 17px; color: var(--ink-2); line-height: 1.6; }

.cred { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 22px; align-items: center; padding: 24px 28px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); margin-top: 48px; }
.cred__mark { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--accent-dim); background: var(--accent-wash); display: flex; align-items: center; justify-content: center; color: var(--accent); font-family: var(--f-mono); font-size: 12px; }

/* ---------- Comparison table ---------- */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.compare th, .compare td { text-align: left; padding: 16px 20px; font-size: 14px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.55; }
.compare tr:last-child td { border-bottom: none; }
.compare thead th { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 400; color: var(--ink-4); background: var(--bg-2); }
.compare thead th:last-child { color: var(--accent); }
.compare td:first-child { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); width: 22%; }
.compare td:nth-child(2) { color: var(--ink-3); }
.compare td:last-child { color: var(--ink-2); background: var(--accent-wash); }

/* ---------- Architecture diagram ---------- */
.arch { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; background: var(--surface); position: relative; overflow: hidden; }
.arch::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; opacity: .35; pointer-events: none; }
.arch > * { position: relative; }
.arch__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.arch__layer { display: grid; grid-template-columns: 54px 230px minmax(0,1fr); gap: 18px; align-items: center; padding: 18px 20px; border-radius: var(--r-sm); background: var(--bg); border: 1.5px dashed var(--line-3); }
.arch__layer--io { border-style: solid; border-color: var(--line-2); }
.arch__layer--engine { border-color: var(--accent); background: var(--accent-wash); }
.arch__num { font-family: var(--f-mono); font-size: 12px; color: var(--accent); }
.arch__name { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.arch__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.arch__chips span { font-size: 12.5px; color: var(--ink-3); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); }
.arch__conn { height: 26px; margin-left: 46px; border-left: 1.5px dashed var(--accent); position: relative; }
.arch__conn::after { content: ''; position: absolute; left: -5px; bottom: -1px; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; border-top: 6px solid var(--accent); }

/* ---------- Value loop ---------- */
.loop { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.loop li { padding: 26px 20px 24px; border-right: 1px solid var(--line); position: relative; }
.loop li:last-child { border-right: none; background: var(--accent-wash); }
.loop li .mono { color: var(--accent); }
.loop li b { display: block; font-family: var(--f-display); font-size: clamp(17px, 1.5vw, 21px); overflow-wrap: anywhere; hyphens: auto; font-weight: 650; color: var(--ink); margin: 10px 0 8px; letter-spacing: -0.015em; }
.loop li p { font-size: 13.5px; color: var(--ink-3); line-height: 1.55; }
.loop li:not(:last-child)::after { content: '→'; position: absolute; right: -9px; top: 28px; width: 18px; height: 18px; background: var(--surface); color: var(--accent); font-size: 13px; text-align: center; line-height: 18px; z-index: 1; }
.loop-foot { margin-top: 14px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); }

/* ---------- Maturity path ---------- */
.maturity { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.maturity > div { border-radius: var(--r-md); padding: 22px; background: var(--surface); border: 1px solid var(--line-2); }
.maturity > div:first-child { border-color: var(--accent); }
.maturity > .is-dev { border-style: dashed; border-color: var(--line-3); }
.maturity > .is-vision { border-style: dotted; border-color: var(--line-3); }
.maturity .h4 { margin: 14px 0 8px; }

/* ---------- Flywheel ---------- */
.fly { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; position: relative; padding: 0 0 0; }
.fly li { border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 20px; background: var(--surface); position: relative; min-height: 132px; }
.fly li .mono { color: var(--accent); }
.fly li b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 10px; line-height: 1.3; }
.fly li p { font-size: 13px; color: var(--ink-3); margin-top: 6px; line-height: 1.5; }
.fly li.is-soft { border-style: dashed; border-color: var(--line-3); }
.fly-track { display: flex; justify-content: space-between; align-items: center; margin: 12px 0; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.fly-track::before, .fly-track::after { content: ''; flex: 1; height: 1px; background: var(--accent-dim); margin: 0 14px; }
.fly-track span { white-space: nowrap; }
.fly--rev { direction: rtl; }
.fly--rev li { direction: ltr; }

/* ---------- DfHM stages ---------- */
.stages { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.stage { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; position: relative; box-shadow: var(--shadow); }
.stage__num { font-family: var(--f-display); font-size: 44px; font-weight: 700; color: var(--line-3); line-height: 1; letter-spacing: -0.03em; }
.stage__tag { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 14px 0 8px; }
.stage .h4 { font-size: 18px; }
.stage .small { margin-top: 10px; }
.stage .dash { margin-top: 14px; }
.stage .dash li { font-size: 12.5px; font-family: var(--f-mono); letter-spacing: 0.02em; color: var(--ink-4); }
.stage--hub { border-color: var(--accent); background: linear-gradient(160deg, var(--accent-wash), transparent 70%), var(--surface); }
.stage--hub .stage__num { color: var(--accent); }
.stage__flag { position: absolute; top: 18px; right: 18px; }
.loopbar { margin: 14px 0; padding: 14px 22px; border: 1px solid var(--accent-dim); border-radius: var(--r-sm); background: var(--accent-wash); display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.loopbar span:last-child { color: var(--ink-4); }

.quad { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.quad .card { padding: 24px; }
.quad .mono { color: var(--accent); }
.quad .h4 { margin-top: 10px; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.metrics > div { padding: 26px 24px; border-right: 1px solid var(--line); }
.metrics > div:last-child { border-right: none; }
.metrics b { display: block; font-family: var(--f-display); font-size: 34px; font-weight: 650; color: var(--accent); letter-spacing: -0.02em; line-height: 1.1; }
.metrics span { display: block; font-size: 13px; color: var(--ink-3); margin-top: 8px; line-height: 1.45; }
.metrics-note { margin-top: 12px; font-size: 12.5px; color: var(--ink-4); }

/* ---------- Materials carousel ---------- */
.car__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.car__ctrl { display: flex; align-items: center; gap: 8px; }
.car__count { font-family: var(--f-mono); font-size: 11px; color: var(--ink-4); min-width: 64px; text-align: center; }
.car__btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--ink-3); background: var(--surface); }
.car__btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.car__btn:disabled { opacity: .3; cursor: default; }
.car__vp { overflow: hidden; }
.car__track { display: flex; gap: 14px; transition: transform .4s var(--ease); }
.mat { flex: 0 0 calc((100% - 42px) / 4); min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px 24px; box-shadow: var(--shadow); }
.mat b { display: block; font-family: var(--f-display); font-size: 20px; font-weight: 650; color: var(--ink); }
.mat .mono { display: block; color: var(--accent); margin: 6px 0 12px; }
.mat p { font-size: 13px; color: var(--ink-3); line-height: 1.55; }
.mat .tags { margin-top: 16px; }
.car__dots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.car__dots button { width: 22px; height: 3px; border-radius: 3px; background: var(--line-2); padding: 0; }
.car__dots button.is-on { width: 38px; background: var(--accent); }

/* ---------- Industries ---------- */
.ind { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.ind .card { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 18px; }
.ind__mark { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.ind__mark svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ind .card .small + .small { margin-top: 8px; }
.ind .card .small b { color: var(--ink-2); font-weight: 600; }

/* ---------- About ---------- */
.founder { display: grid; grid-template-columns: 380px minmax(0,1fr); gap: 64px; align-items: start; }
.founder__photo { position: sticky; top: calc(var(--header-h) + 24px); }
.founder__photo .figure img { aspect-ratio: 4/5; object-fit: cover; object-position: center top; background: #fff; }
.founder__photo figcaption { text-transform: none; letter-spacing: 0; font-family: var(--f-body); }
.founder__photo figcaption b { display: block; font-family: var(--f-display); font-size: 19px; font-weight: 650; color: var(--ink); margin: 0 0 2px; }
.bio { padding: 26px 0; border-top: 1px solid var(--line); }
.bio:first-child { border-top: none; padding-top: 0; }
.bio .mono { color: var(--accent); }
.bio p { margin-top: 10px; font-size: 16px; line-height: 1.8; color: var(--ink-3); }
.bio p strong { color: var(--ink-2); font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); margin-top: 18px; }
.facts > div { padding: 18px 22px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.facts > div:nth-child(2n) { border-right: none; }
.facts > div:nth-last-child(-n+2) { border-bottom: none; }
.facts .mono { display: block; margin-bottom: 6px; }
.facts p { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }

/* ---------- Geo / CTA band ---------- */
.geo { font-family: var(--f-display); font-weight: 650; font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -0.028em; color: var(--ink); line-height: 1.06; }
.geo__word { font-family: var(--f-accent); font-style: italic; font-weight: 400; color: var(--accent); display: inline-block; transition: opacity .32s, transform .32s; }
.paths { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-top: 48px; }
.paths a { display: flex; flex-direction: column; gap: 10px; }
.paths .mono { color: var(--ink-4); }
.paths .h4 { color: var(--ink); }
.paths .textlink { margin-top: auto; padding-top: 10px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0,0.8fr) minmax(0,1.2fr); gap: 56px; align-items: start; }
.routes .card + .card { margin-top: 12px; }
.routes .card { padding: 22px 24px; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 13px 15px; transition: border-color .2s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-status { display: none; margin-bottom: 14px; padding: 13px 16px; border-radius: var(--r-sm); font-size: 14px; line-height: 1.5; }
.form-status.show { display: block; }
.form-status.ok { color: var(--accent); border: 1px solid var(--accent-dim); background: var(--accent-wash); }
.form-status.err { color: var(--risk); border: 1px solid var(--risk-dim); background: var(--risk-wash); }
.form__foot { margin-top: 16px; font-size: 12.5px; color: var(--ink-4); text-align: center; }
.mail { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 13px; color: var(--accent); margin-top: 22px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 64px 0 40px; }
.foot { display: grid; grid-template-columns: minmax(0,1.4fr) repeat(4, minmax(0,1fr)); gap: 32px; }
.foot__brand p { font-size: 14px; color: var(--ink-3); margin-top: 16px; max-width: 300px; }
.foot h4 { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-4); font-weight: 400; margin-bottom: 14px; }
.foot li + li { margin-top: 9px; }
.foot a { font-size: 14px; color: var(--ink-3); }
.foot a:hover { color: var(--accent); }
.foot__base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1240px) {
  .nav__link { padding: 10px 9px; font-size: 13px; }
  .header-cta { display: none; }
}
@media (max-width: 1080px) {
  .nav, .header-tools { display: none; }
  .burger { display: flex; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__visual { max-width: 620px; }
  .g4, .quad, .paths, .roadmap, .maturity, .fly { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .fly--rev { direction: ltr; }
  .g3, .stages, .risk-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .split, .split--wide, .sec-head, .contact, .founder { grid-template-columns: 1fr; gap: 40px; }
  .founder__photo { position: static; max-width: 420px; }
  .capblock { grid-template-columns: 1fr; gap: 18px; }
  .tkp { grid-template-columns: 1fr; gap: 0; }
  .tkp__arrow { height: 44px; transform: rotate(90deg); }
  .loop { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .loop li:nth-child(3) { border-right: none; }
  .loop li:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .loop li:nth-child(3)::after { display: none; }
  .metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .metrics > div:nth-child(2) { border-right: none; }
  .metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .foot { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .foot__brand { grid-column: 1 / -1; }
  .arch__layer { grid-template-columns: 44px minmax(0,1fr); }
  .arch__chips { grid-column: 1 / -1; }
  .arch__conn { margin-left: 40px; }
  .chain__gap { flex-basis: 40px; }
  .chain__gap em { display: none; }
  .chain__node { padding: 14px 8px; }
  .chain__node b { font-size: 10px; letter-spacing: 0.06em; overflow-wrap: anywhere; }
  .chain__node span { font-size: 11px; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; --header-h: 64px; }
  .sec { padding: 76px 0; }
  .sec--tight { padding: 60px 0; }
  .page-head { padding: 64px 0 48px; }
  .hero { padding: 56px 0 48px; }
  .hero__proof { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 22px; }
  .brand img { width: 36px; height: 36px; }
  .brand__name { font-size: 16px; }
  .g2, .g3, .g4, .quad, .paths, .roadmap, .maturity, .fly, .stages, .risk-grid, .ind, .io, .form__row, .facts { grid-template-columns: 1fr; }
  .facts > div { border-right: none; }
  .facts > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .metrics { grid-template-columns: 1fr 1fr; }
  .loop { grid-template-columns: 1fr; }
  .loop li { border-right: none; border-bottom: 1px solid var(--line); }
  .loop li:last-child { border-bottom: none; }
  .loop li:not(:last-child)::after { content: '↓'; right: auto; left: 20px; top: auto; bottom: -9px; display: block !important; }
  .sec-head { margin-bottom: 36px; }
  .definition { padding: 26px 24px 26px 28px; }
  .arch { padding: 20px; }
  .arch__layer { padding: 14px; gap: 10px 12px; }
  .tkp__note { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .form { padding: 24px; }
  .mat { flex-basis: calc((100% - 14px) / 2); }
  .vflow li { grid-template-columns: 46px minmax(0,1fr); gap: 4px 14px; }
  .vflow li p { grid-column: 2; padding-top: 0; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare td { display: block; width: 100% !important; }
  .compare tr { border-bottom: 1px solid var(--line); }
  .compare td { border-bottom: none; padding: 10px 18px; }
  .compare td:first-child { padding-top: 16px; }
  .compare td:nth-child(2)::before { content: attr(data-l); display: block; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 4px; }
  .compare td:last-child::before { content: attr(data-l); display: block; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
  .foot { grid-template-columns: 1fr 1fr; }

  /* Signature chain becomes a vertical flow on phones */
  .chain { flex-direction: column; }
  .chain__node { text-align: left; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; }
  .chain__node span { margin-top: 0; text-align: right; }
  .chain__gap { flex: 0 0 52px; flex-direction: row; justify-content: flex-start; padding-left: 22px; }
  .chain__gap::before { left: 33px; right: auto; top: 0; bottom: 0; border-top: none; border-left: 1.5px dashed var(--risk); }
  .chain--connected .chain__gap::before { border-left: 2px solid var(--accent); border-top: none; }
  .chain__gap em { position: static; margin-left: 10px; display: inline; }
  .chain__node b { font-size: 11px; letter-spacing: 0.12em; }
}
@media (max-width: 420px) {
  .mat { flex-basis: 100%; }
  .seg button { padding: 7px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .mnav, .marquee, .site-footer { display: none; }
  .page { display: block !important; }
  main { padding-top: 0; }
}

/* Stacked section head (long two-line headlines) */
.sec-head--stack { grid-template-columns: 1fr; gap: 24px; }
.sec-head--stack .lede { max-width: 760px; }
@media (max-width: 760px) {
  .hero__build { grid-template-columns: 1fr; gap: 10px; }
  .hero__build .badge { justify-self: start; }
  .roadmap__stage .route { flex-wrap: wrap; }
}
