/* Stolo — shared site stylesheet */

:root {
  --bg: #0E1012;
  --bg-2: #17191C;
  --bg-3: #1F2227;
  --bg-4: #262A30;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.16);
  --line-3: rgba(255,255,255,0.28);
  --fg: #EDEEF0;
  --fg-2: #AFB3B9;
  --fg-3: #6C7076;
  --amber: #E89448;
  --amber-2: #B26A28;
  --amber-soft: rgba(232,148,72,0.12);
  --ok: #7AB37A;
  --warn: #E8B648;
  --bad: #C45A3D;
  --page: 1400px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); overflow-x: hidden; }
body {
  font-family: 'Inter Tight', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.page { max-width: var(--page); margin: 0 auto; padding: 0 32px; }
.serif { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 300; letter-spacing: -0.025em; color: var(--amber); }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }

/* ─── Strip ─── */
.strip {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3);
}
.strip .inner { max-width: var(--page); margin: 0 auto; padding: 10px 32px; display: flex; gap: 22px; align-items: center; }
.strip b { color: var(--fg); font-weight: 500; }
.strip .sep { opacity: 0.4; }
.strip .spacer { flex: 1; }
.strip .led { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); display: inline-block; margin-right: 8px; position: relative; top: -1px; animation: pulse 2.2s infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }

/* ─── Nav ─── */
nav.site {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
nav.site .inner { max-width: var(--page); margin: 0 auto; padding: 20px 32px; display: flex; align-items: center; gap: 44px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 22px; letter-spacing: -0.025em; color: var(--fg); }
.brand svg { width: 22px; height: 22px; color: var(--amber); }
nav.site ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
nav.site a.link { color: var(--fg-2); font-size: 14px; font-weight: 450; transition: color 120ms; }
nav.site a.link:hover { color: var(--fg); }
nav.site .actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; font-size: 14px; font-weight: 500; font-family: inherit;
  border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg); background: transparent;
  cursor: pointer;
  transition: background 160ms, border-color 160ms, transform 160ms;
}
.btn:hover { background: rgba(255,255,255,0.05); }
.btn.primary { background: var(--amber); color: #1A1208; border-color: var(--amber); }
.btn.primary:hover { background: #F2A056; border-color: #F2A056; transform: translateY(-1px); }
.btn.lg { padding: 14px 26px; font-size: 15px; }
.btn.ghost { border-color: transparent; }

/* Mobile nav toggle — hidden on desktop */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--fg);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle:hover { background: rgba(255,255,255,0.05); }
.nav-toggle .bars { position: relative; width: 18px; height: 12px; }
.nav-toggle .bars::before,
.nav-toggle .bars::after,
.nav-toggle .bars span {
  content: '';
  position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform 220ms ease, opacity 160ms ease;
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars span { top: 50%; transform: translateY(-50%); display: block; }
.nav-toggle .bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle[aria-expanded="true"] .bars span { opacity: 0; }

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: 72px 0 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(232,148,72,0.18), transparent 60%),
    radial-gradient(ellipse 40% 70% at 0% 85%, rgba(60,80,110,0.22), transparent 60%);
  pointer-events: none;
}
.hero .inner {
  position: relative; max-width: var(--page); margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 64px; align-items: end;
  min-height: 620px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-3);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }

h1.hero-h {
  font-size: 82px; line-height: 0.98; letter-spacing: -0.035em; font-weight: 400;
  margin: 0 0 32px; color: var(--fg); text-wrap: balance;
}
h1.hero-h .serif { font-style: italic; color: var(--amber); font-weight: 300; }
h1.hero-h br + span { display: inline-block; }

.lede { font-size: 19px; line-height: 1.6; color: var(--fg-2); max-width: 560px; margin: 0 0 40px; text-wrap: pretty; }
.lede b { color: var(--fg); font-weight: 500; }

.ctas { display: flex; gap: 12px; padding-bottom: 72px; flex-wrap: wrap; }

/* Scene (topographic map) */
.scene {
  position: relative; aspect-ratio: 4/5;
  min-height: 520px; max-height: 640px;
  background: linear-gradient(to bottom, #1B1E23 0%, #141619 60%, #0E1012 100%);
  border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line);
  align-self: stretch;
}
.scene svg { width: 100%; height: 100%; display: block; }
.scene .label {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.18em; color: var(--fg-3); text-transform: uppercase;
  pointer-events: none;
}
.scene .label.tl { top: 20px; left: 24px; }
.scene .label.tr { top: 20px; right: 24px; color: var(--amber); }
.scene .label.br { bottom: 60px; right: 24px; }
.scene .pill {
  position: absolute; bottom: 20px; left: 24px;
  padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(8px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2);
  display: flex; align-items: center; gap: 10px;
}
.scene .pill .led { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); animation: pulse 2s infinite; }

.ridge { fill: none; stroke: rgba(255,255,255,0.12); stroke-width: 1; }
.ridge.hi { stroke: rgba(255,255,255,0.22); stroke-width: 1.2; }
.node { fill: var(--bg-2); stroke: var(--amber); stroke-width: 2; }
.node-inner { fill: var(--amber); }
.node-coverage { fill: none; stroke: var(--amber); stroke-width: 1; stroke-dasharray: 2 4; opacity: 0.4; }
.mesh-edge { stroke: rgba(255,255,255,0.25); stroke-width: 1; fill: none; }
.mesh-edge.active { stroke: var(--amber); stroke-width: 1.6; filter: drop-shadow(0 0 6px var(--amber)); }
.pkt-anim { fill: var(--amber); filter: drop-shadow(0 0 6px var(--amber)); }

/* ─── Industry chips ─── */
.industries {
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  padding: 32px 0;
}
.industries .inner { max-width: var(--page); margin: 0 auto; padding: 0 32px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.industries .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-3);
  display: inline-flex; align-items: center; gap: 12px;
}
.industries .label::after { content: ''; width: 24px; height: 1px; background: var(--line-2); }
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg-2);
  font-size: 13.5px; font-weight: 450;
  letter-spacing: -0.005em;
  transition: border-color 160ms, background 160ms, color 160ms, transform 160ms;
  cursor: pointer;
}
.chip:hover { border-color: var(--amber); color: var(--fg); background: var(--bg-3); transform: translateY(-1px); }
.chip .ico {
  width: 18px; height: 18px; color: var(--amber);
  display: inline-flex; align-items: center; justify-content: center;
}
.chip .ico svg { width: 100%; height: 100%; stroke-width: 1.6; fill: none; stroke: currentColor; }
.chip .arrow { color: var(--fg-3); font-size: 12px; margin-left: 4px; transition: transform 180ms, color 160ms; }
.chip:hover .arrow { color: var(--amber); transform: translateX(3px); }

/* ─── Section shells ─── */
section.sec {
  padding: 112px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
section.sec.muted { background: var(--bg-2); }

.chap {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-3);
  margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 10px;
}
.chap b { color: var(--amber); font-weight: 700; }

h2 {
  font-size: 60px; line-height: 0.98; letter-spacing: -0.035em; font-weight: 400;
  margin: 0 0 18px; color: var(--fg); text-wrap: balance; max-width: 1000px;
}
h2 .serif { font-style: italic; font-weight: 300; color: var(--amber); }

.intro { font-size: 19px; line-height: 1.6; color: var(--fg-2); max-width: 640px; margin: 0 0 56px; }

.sec-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: end; margin-bottom: 64px; }
.sec-head p { font-size: 17px; color: var(--fg-2); max-width: 440px; margin: 0; line-height: 1.6; }

/* ─── How it works stages ─── */
.stage {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: 64px; align-items: center;
  padding: 44px 0;
  border-top: 1px solid var(--line);
}
.stage:last-of-type { border-bottom: 1px solid var(--line); }
.stage .num { font-family: 'Fraunces', serif; font-size: 72px; line-height: 1; color: var(--amber); font-style: italic; margin: 0 0 20px; font-weight: 300; letter-spacing: -0.03em; }
.stage h3 { font-size: 36px; line-height: 1.05; letter-spacing: -0.025em; font-weight: 400; margin: 0 0 18px; color: var(--fg); }
.stage h3 .serif { color: var(--amber); }
.stage p { color: var(--fg-2); font-size: 16.5px; line-height: 1.65; margin: 0 0 12px; max-width: 460px; }

.stage-viz {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px;
  aspect-ratio: 16/9; max-height: 380px; min-height: 300px;
  position: relative; overflow: hidden;
}
.stage-viz .cap {
  position: absolute; bottom: 18px; left: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--fg-3);
}
.stage-viz .cap b { color: var(--amber); }
.stage-viz svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.viz-discover .n { fill: var(--bg-3); stroke: rgba(255,255,255,0.5); stroke-width: 1.5; }
.viz-discover .n.me { fill: var(--amber); stroke: var(--amber); }
.viz-discover .ring { fill: none; stroke: var(--amber); stroke-width: 1; opacity: 0; animation: ring 3s ease-out infinite; }
.viz-discover .ring.a2 { animation-delay: -1s; }
.viz-discover .ring.a3 { animation-delay: -2s; }
@keyframes ring { 0%{r:4;opacity:0.8} 100%{r:180;opacity:0} }
.viz-discover .lnk { stroke: rgba(255,255,255,0.35); stroke-width: 1; fill: none; stroke-dasharray: 2 3; }
.viz-discover .lnk.live { stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: none; animation: fadel 2.4s ease-in-out infinite; }
@keyframes fadel { 0%,100%{opacity:0.2} 50%{opacity:1} }

.viz-reroute .p { fill: none; stroke-width: 1.8; }
.viz-reroute .p.live { stroke: var(--amber); filter: drop-shadow(0 0 6px var(--amber)); }
.viz-reroute .p.dead { stroke: rgba(255,255,255,0.3); stroke-dasharray: 4 3; }
.viz-reroute .xm { stroke: var(--amber); stroke-width: 2; }
.viz-reroute .n { fill: var(--bg-3); stroke: rgba(255,255,255,0.7); stroke-width: 1.5; }
.viz-reroute .n.end { fill: var(--amber); stroke: var(--amber); }

.viz-queue { display: grid; grid-template-columns: auto 1fr auto; height: 100%; align-items: center; padding: 40px; gap: 24px; }
.viz-queue .box { border: 1px solid var(--line-2); border-radius: 4px; padding: 14px 16px; background: var(--bg-3); min-width: 140px; }
.viz-queue .box .k { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--fg-3); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 10px; }
.viz-queue .env { display: flex; flex-direction: column; gap: 6px; }
.viz-queue .env .it {
  height: 18px; border: 1px solid var(--line-2); background: var(--bg-2);
  display: flex; align-items: center; padding: 0 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.1em; color: var(--fg-3);
  justify-content: space-between;
}
.viz-queue .env .it.ok { border-color: var(--amber); color: var(--amber); background: rgba(232,148,72,0.08); }
.viz-queue .env .it .d { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-3); }
.viz-queue .env .it.ok .d { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.viz-queue .wire {
  height: 2px; background: repeating-linear-gradient(90deg, var(--amber) 0 6px, transparent 6px 12px);
  background-size: 12px 100%; animation: wire 1.2s linear infinite;
}
@keyframes wire { to { background-position: 120px 0; } }

/* ─── Comparison table ─── */
.cmp { width: 100%; border-collapse: collapse; background: rgba(255,255,255,0.02); border: 1px solid var(--line); }
.cmp thead th {
  text-align: left; padding: 20px 22px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg-3); font-weight: 500; white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.cmp thead th.stolo { color: var(--amber); }
.cmp tbody tr { border-bottom: 1px solid var(--line); }
.cmp tbody tr:last-child { border-bottom: 0; }
.cmp td {
  padding: 22px 22px; font-size: 13px; color: var(--fg-2); vertical-align: top;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.02em;
}
.cmp td:first-child {
  font-family: 'Inter Tight', sans-serif; font-size: 15px; font-weight: 500; color: var(--fg); letter-spacing: -0.01em;
  width: 28%;
}
.cmp td:first-child small { display: block; font-size: 12.5px; color: var(--fg-3); font-weight: 400; margin-top: 4px; letter-spacing: 0; }
.cmp td.stolo { color: var(--amber); border-left: 1px solid rgba(232,148,72,0.3); background: rgba(232,148,72,0.05); }
.cmp .pill-ic { display: inline-flex; align-items: center; gap: 8px; }
.sq { width: 9px; height: 9px; display: inline-block; }
.sq.ok { background: var(--ok); }
.sq.warn { background: var(--warn); border-radius: 50%; }
.sq.bad { background: var(--bad); transform: rotate(45deg); }

/* ─── Platform grid ─── */
.field-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  border: 1px solid var(--line); border-radius: 4px;
  padding: 28px 28px 32px; background: var(--bg);
  grid-column: span 2; position: relative; overflow: hidden;
  transition: border-color 160ms, transform 160ms;
}
.tile:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tile.wide { grid-column: span 3; }
.tile.tall { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; min-height: 340px; }
.tile .k { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.18em; color: var(--fg-3); margin-bottom: 20px; display: flex; justify-content: space-between; text-transform: uppercase; }
.tile .k b { color: var(--amber); font-weight: 600; }
.tile h4 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 10px; font-weight: 500; color: var(--fg); }
.tile h4 .serif { font-weight: 300; }
.tile p { font-size: 14.5px; color: var(--fg-2); line-height: 1.6; margin: 0; }
.tile .big {
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 300;
  font-size: 84px; line-height: 0.9; letter-spacing: -0.04em; color: var(--amber);
  margin: 24px 0 14px;
}
.tile .big .unit { font-family: 'Inter Tight', sans-serif; font-style: normal; font-size: 18px; color: var(--fg-3); margin-left: 6px; letter-spacing: 0.02em; }
.tile .big.sm { font-size: 56px; margin: 16px 0 10px; }

/* ─── Hardware ─── */
.hw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hw {
  border: 1px solid var(--line); background: var(--bg); border-radius: 6px;
  padding: 24px 26px 28px; display: flex; flex-direction: column;
  transition: border-color 160ms, transform 160ms;
}
.hw:hover { border-color: var(--line-2); transform: translateY(-2px); }
.hw .art { aspect-ratio: 4/3; background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%); border: 1px solid var(--line); margin-bottom: 22px; display: flex; align-items: center; justify-content: center; border-radius: 3px; }
.hw .art svg { width: 72%; height: 72%; }
.hw .k { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.18em; color: var(--fg-3); text-transform: uppercase; margin-bottom: 8px; }
.hw h4 { font-size: 22px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; margin: 0 0 6px; color: var(--fg); }
.hw p { font-size: 14.5px; line-height: 1.55; color: var(--fg-2); margin: 0 0 18px; flex: 1; }
.hw .specs { border-top: 1px solid var(--line); padding-top: 14px; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; }
.hw .specs .r { display: flex; justify-content: space-between; padding: 6px 0; color: var(--fg-3); letter-spacing: 0.04em; text-transform: uppercase; }
.hw .specs .r b { color: var(--fg); font-weight: 500; }
.hw .price { font-family: 'Fraunces', serif; font-style: italic; font-weight: 300; font-size: 28px; color: var(--amber); letter-spacing: -0.02em; margin-top: 14px; }
.hw .price small { font-family: 'Inter Tight', sans-serif; font-style: normal; font-size: 11px; color: var(--fg-3); letter-spacing: 0.1em; margin-left: 4px; text-transform: uppercase; }

/* ─── FAQ ─── */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; cursor: pointer; }
.faq-item h4 {
  font-size: 20px; letter-spacing: -0.015em; font-weight: 500; margin: 0; color: var(--fg);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  transition: color 160ms;
}
.faq-item:hover h4 { color: var(--amber); }
.faq-item h4 .plus { font-family: 'JetBrains Mono', monospace; font-size: 18px; color: var(--amber); font-weight: 400; transition: transform 240ms; }
.faq-item.open h4 .plus { transform: rotate(45deg); }
.faq-item .body { max-height: 0; overflow: hidden; transition: max-height 320ms ease, margin-top 320ms ease; color: var(--fg-2); font-size: 15.5px; line-height: 1.6; }
.faq-item.open .body { max-height: 320px; margin-top: 12px; }

/* ─── CTA ─── */
.cta {
  padding: 130px 0 120px;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(232,148,72,0.16), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--line);
}
.cta .chap { justify-content: center; display: flex; margin: 0 auto 16px; }
.cta h2 { margin: 0 auto 22px; }
.cta p { font-size: 18px; color: var(--fg-2); max-width: 560px; margin: 0 auto 36px; line-height: 1.6; }
.cta .ctas { justify-content: center; padding: 0; }

/* ─── Footer ─── */
footer.site {
  background: var(--bg); color: var(--fg-2);
  padding: 72px 0 32px;
  border-top: 1px solid var(--line);
}
footer.site .wrap { max-width: var(--page); margin: 0 auto; padding: 0 32px; }
footer.site .grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 64px;
  padding-bottom: 56px; border-bottom: 1px solid var(--line);
}
footer.site .brand { margin-bottom: 20px; font-size: 26px; }
footer.site p.blurb { font-size: 14.5px; line-height: 1.6; color: var(--fg-3); max-width: 340px; margin: 0; }
footer.site h5 { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3); font-weight: 500; margin: 0 0 16px; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
footer.site ul a { font-size: 14px; color: var(--fg-2); transition: color 120ms; }
footer.site ul a:hover { color: var(--fg); }
footer.site .bottom {
  display: flex; justify-content: space-between; align-items: center; padding-top: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3);
}

/* ─── Adaptive Path Selection (compact routing section, unused by default) ─── */
section.sec.routing { padding: 72px 0 80px; }
.chap-row {
  display: flex; align-items: flex-start; gap: 40px;
  padding-bottom: 28px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.chap-row .chap { margin: 0; flex: 0 0 auto; }
.chap-row .chap-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-3);
  padding-top: 1px;
}

.routing-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: start; }

.eyebrow-orange {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}
.eyebrow-orange .rule { width: 28px; height: 1.5px; background: var(--amber); }

.routing-h {
  font-size: 56px; line-height: 1; letter-spacing: -0.035em; font-weight: 400;
  margin: 0 0 26px; color: var(--fg); max-width: 560px;
}
.routing-h .serif { color: var(--amber); font-style: italic; font-weight: 300; }

.routing-p {
  font-size: 17px; line-height: 1.6; color: var(--fg-2);
  margin: 0 0 18px; max-width: 520px;
}
.routing-p b { color: var(--fg); font-weight: 500; }
.inline-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--amber);
  letter-spacing: 0.02em;
  padding: 2px 4px;
}

.routing-rule {
  width: 60px; height: 2px; background: var(--amber);
  margin: 28px 0 20px;
}

.routing-quote {
  font-size: 20px; line-height: 1.45; color: var(--fg);
  margin: 0; max-width: 560px;
  font-weight: 400;
}
.routing-quote .serif {
  color: var(--fg); font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 300;
  letter-spacing: -0.01em;
}

.routing-viz {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  aspect-ratio: 11/8;
  display: flex; align-items: center; justify-content: center;
  position: sticky; top: 92px;
}
.routing-viz svg { width: 100%; height: 100%; display: block; }

/* Reveals */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .hero .inner, .stage, .sec-head, .faq { grid-template-columns: 1fr; gap: 32px; }
  .field-grid { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.wide, .tile.tall { grid-column: span 2; grid-row: auto; min-height: auto; }
  .hw-grid { grid-template-columns: 1fr; }
  footer.site .grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  h1.hero-h { font-size: 56px; }
  h2 { font-size: 40px; }

  .routing-grid { grid-template-columns: 1fr; gap: 32px; }
  .routing-h { font-size: 40px; }
  .chap-row { flex-direction: column; gap: 8px; }
  .routing-viz { position: static; }

  /* Mobile nav */
  nav.site .inner { gap: 16px; padding: 16px 20px; }
  .nav-toggle { display: inline-flex; }
  nav.site ul,
  nav.site .actions {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    padding: 16px 20px;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }
  nav.site ul {
    flex-direction: column;
    gap: 4px;
  }
  nav.site ul li a.link {
    display: block;
    padding: 10px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  nav.site .actions {
    top: auto;
    margin-top: 0;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
    transform: translateY(-4px);
  }
  body.nav-open nav.site ul,
  body.nav-open nav.site .actions {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  body.nav-open nav.site .actions {
    /* Stack below the ul drawer */
    top: calc(100% + 260px);
  }
  body.nav-open { overflow: hidden; }

  /* Strip: trim content on small screens */
  .strip .inner { gap: 12px; flex-wrap: wrap; padding: 8px 20px; }
  .strip .spacer { display: none; }

  .page, .industries .inner, .hero .inner, footer.site .wrap, nav.site .inner, .strip .inner {
    padding-left: 20px; padding-right: 20px;
  }
}

@media (max-width: 640px) {
  .hero { padding-top: 40px; }
  h1.hero-h { font-size: 44px; }
  h2 { font-size: 34px; }
  section.sec { padding: 72px 0; }
  .scene { min-height: 420px; }
  .stage .num { font-size: 56px; }
  .stage h3 { font-size: 28px; }
  .field-grid { grid-template-columns: 1fr; }
  .tile, .tile.wide, .tile.tall { grid-column: span 1; }
  footer.site .grid { grid-template-columns: 1fr; gap: 32px; }
  footer.site .bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .cmp td { padding: 14px 12px; }
  .cmp td:first-child { width: auto; }
}

/* ═══════════════════════════════════════════════════════════════════
   § 02 — ADAPTIVE PATH SELECTION
   Append to site.css. All new classes — nothing here overrides existing rules.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Legs list (left column) ─── */
.legs {
  display: flex;
  flex-direction: column;
}

.leg {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.leg:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

.leg-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #AFB3B9;
  display: flex;
  align-items: center;
  gap: 10px;
}
.leg-num .mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.leg-body h4 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #E8E9ED;
  margin: 0 0 4px 0;
  letter-spacing: -0.01em;
}
.leg-body p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #8B8D97;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

.leg-medium {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #AFB3B9;
}

/* Per-medium colour tokens (used by both the legs list and the SVG) */
.leg.lora .leg-num        { color: #E89448; }
.leg.lora .leg-num .mark  { background: #E89448; box-shadow: 0 0 8px rgba(232, 148, 72, 0.50); }
.leg.lora .leg-medium     { color: #E89448; }

.leg.wifi .leg-num        { color: #7AB37A; }
.leg.wifi .leg-num .mark  { background: #7AB37A; box-shadow: 0 0 6px rgba(122, 179, 122, 0.45); }
.leg.wifi .leg-medium     { color: #7AB37A; }

.leg.cell .leg-num        { color: #AFB3B9; }
.leg.cell .leg-num .mark  { background: #AFB3B9; box-shadow: 0 0 6px rgba(175, 179, 185, 0.40); }
.leg.cell .leg-medium     { color: #AFB3B9; }

/* ─── Diagram (right column) — all selectors scoped to .viz-adaptive ─── */

.viz-adaptive .cov-ring {
  fill: none;
  stroke-width: 1;
  stroke-dasharray: 2 3;
  opacity: 0.28;
}
.viz-adaptive .cov-ring.lora { stroke: #E89448; }
.viz-adaptive .cov-ring.wifi { stroke: #7AB37A; }
.viz-adaptive .cov-ring.cell { stroke: #AFB3B9; }

/* Three sequential segments */
.viz-adaptive .seg-adapt {
  fill: none;
  stroke-width: 2;
}
.viz-adaptive .seg-adapt.lora {
  stroke: #E89448;
  filter: drop-shadow(0 0 5px rgba(232, 148, 72, 0.50));
}
.viz-adaptive .seg-adapt.wifi {
  stroke: #7AB37A;
  filter: drop-shadow(0 0 4px rgba(122, 179, 122, 0.45));
}
.viz-adaptive .seg-adapt.cell {
  stroke: #AFB3B9;
  stroke-dasharray: 7 3;
  opacity: 0.85;
}

/* Segment labels above/below the arcs */
.viz-adaptive .seg-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
}
.viz-adaptive .seg-label.lora { fill: #E89448; }
.viz-adaptive .seg-label.wifi { fill: #7AB37A; }
.viz-adaptive .seg-label.cell { fill: #AFB3B9; }

/* Node labels (FIELD DEVICE / RELAY ALPHA / etc.) */
.viz-adaptive .seg-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  fill: #8B8D97;
}

/* Node shapes */
.viz-adaptive .n-end {
  fill: #0E1012;
  stroke-width: 1.5;
}
.viz-adaptive .n-bridge {
  fill: #0E1012;
  stroke-width: 1.5;
}

/* Stroke / fill helpers per medium */
.viz-adaptive .lora-stroke { stroke: #E89448; }
.viz-adaptive .wifi-stroke { stroke: #7AB37A; }
.viz-adaptive .cell-stroke { stroke: #AFB3B9; }
.viz-adaptive .lora-fill   { fill:   #E89448; }
.viz-adaptive .wifi-fill   { fill:   #7AB37A; }
.viz-adaptive .cell-fill   { fill:   #AFB3B9; }

/* Animated packets — each segment gets its own colour, with glow */
.viz-adaptive .pkt-adapt.lora-pkt {
  fill: #E89448;
  filter: drop-shadow(0 0 6px rgba(232, 148, 72, 0.70));
}
.viz-adaptive .pkt-adapt.wifi-pkt {
  fill: #7AB37A;
  filter: drop-shadow(0 0 6px rgba(122, 179, 122, 0.65));
}
.viz-adaptive .pkt-adapt.cell-pkt {
  fill: #AFB3B9;
  filter: drop-shadow(0 0 6px rgba(175, 179, 185, 0.55));
}

/* ─── Small-screen tuning ─── */
@media (max-width: 900px) {
  .leg {
    grid-template-columns: 44px 1fr auto;
    gap: 12px;
    padding: 14px 0;
  }
  .leg-body h4   { font-size: 14px; }
  .leg-medium    { font-size: 10px; letter-spacing: 0.14em; }
  .leg-body p    { font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .viz-adaptive .pkt-adapt { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   VIEWPORT-FIT SECTIONS
   Each main section fills one browser viewport on standard desktops,
   with content vertically centred. Falls back gracefully on short
   viewports and mobile so nothing gets cropped.
   ═══════════════════════════════════════════════════════════════════ */

section.sec,
section.hero,
section.cta {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* The .page / .inner wrapper already caps width — make it fill the
   available vertical space so flex-centring has room to work. */
section.sec > .page,
section.hero > .inner,
section.cta > .page {
  width: 100%;
}

/* Industries strip stays compact — it's a scanner row, not a standalone section */
section.industries {
  min-height: auto;
}

/* Short viewports (sub-740px height, e.g. 13" laptops, zoomed browsers)
   revert to content-sized sections with breathing room. */
@media (max-height: 740px) {
  section.sec,
  section.hero,
  section.cta {
    min-height: auto;
    padding-top: 96px;
    padding-bottom: 96px;
  }
}

/* Mobile — no forced 100vh. Content-sized sections with compact padding. */
@media (max-width: 900px) {
  section.sec,
  section.hero,
  section.cta {
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 72px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   § 03 — GETTING STARTED
   Three cards, sequential left-to-right. Fits one viewport.
   ═══════════════════════════════════════════════════════════════════ */

.start-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
  align-items: stretch;
}

.start-step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 30px 30px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 6px;
}

/* Big serif-italic step number */
.start-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 54px;
  line-height: 1;
  color: var(--amber);
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

/* Chevron connector between cards 1→2 and 2→3, aligned to the big number */
.start-line {
  position: absolute;
  top: 48px;
  right: -22px;
  width: 18px;
  height: 1px;
  background: var(--amber);
  pointer-events: none;
  z-index: 2;
}
.start-line::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid var(--amber);
  border-right: 1.5px solid var(--amber);
  transform: rotate(45deg);
}

/* Inset art panel */
.start-art {
  height: 170px;
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.start-art svg {
  width: 82%;
  height: 82%;
  max-height: 140px;
}

.start-step h3 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--fg);
}

.start-step > p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

/* Bullets with amber "+" prefix, monospace */
.start-bullets {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--fg);
}
.start-bullets li {
  position: relative;
  padding: 5px 0 5px 22px;
  border: none;
}
.start-bullets li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 5px;
  color: var(--amber);
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
}

/* Footer strip: big serif-italic amber numbers, inline small-caps label */
.start-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
  padding: 22px 30px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 6px;
}
.start-footer > div {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 14px;
}
.start-footer b {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 38px;
  line-height: 1;
  color: var(--amber);
  letter-spacing: -0.02em;
}
.start-footer span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* Tighten intro spacing so the section fits one viewport */
#how .intro { margin-bottom: 4px; }

/* Mobile: stack the three cards; drop the right-pointing connector */
@media (max-width: 900px) {
  .start-flow { grid-template-columns: 1fr; gap: 18px; }
  .start-line { display: none; }
  .start-footer {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px 22px;
  }
  .start-art { height: 130px; }
  .start-art svg { max-height: 110px; }
  .start-num { font-size: 44px; }
}

/* ═══════════════════════════════════════════════════════════════════
   § 04 — COMPARE · satellite-win cell styling
   Used when a non-Stolo column legitimately wins a row — green treatment
   mirrors the Stolo-win orange visual weight.
   ═══════════════════════════════════════════════════════════════════ */

table.cmp td.satwin {
  color: #7AB37A;
  font-weight: 500;
}

.pill-ic .sq.win {
  background: #7AB37A;
  border-radius: 50%;
}

/* ═══════════════════════════════════════════════════════════════════
   § 04 — COMPARE · terminal theme
   Terminal-style frame + CLI prompt header. Colored squares become
   amber/green/red text prefixes (+ / ~ / -). Stolo column reads as
   orange, other columns as neutral mono — matches the CLI aesthetic.
   ═══════════════════════════════════════════════════════════════════ */

.cmp-frame {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 32px;
}

.cmp-prompt {
  padding: 22px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #E8E9ED;
  background: rgba(0, 0, 0, 0.25);
}
.cmp-prompt b {
  color: #E89448;
  font-weight: 500;
}

/* Reset inherited margins on the table inside the frame */
.cmp-frame table.cmp {
  margin: 0;
  width: 100%;
  border-collapse: collapse;
}

/* Headers */
.cmp-frame table.cmp thead th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8B8D97;
  padding: 22px 28px;
  border-top: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  background: #0B0D10;
}
.cmp-frame table.cmp thead th.stolo {
  color: #E89448;
  font-weight: 600;
  background: rgba(232, 148, 72, 0.06);
  border-left: none;
}

/* Value cells */
.cmp-frame table.cmp td {
  padding: 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: none;
  border-left: none;
  vertical-align: top;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  color: #E8E9ED;
  background: transparent;
}

/* Capability column — bold sans-serif name, mono italic // sub-caption,
   green + prefix in the gutter */
.cmp-frame table.cmp td:first-child {
  font-family: 'Inter Tight', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #E8E9ED;
  position: relative;
  padding-left: 52px;
  width: 28%;
}
.cmp-frame table.cmp td:first-child::before {
  content: "+";
  position: absolute;
  left: 26px;
  top: 26px;
  color: #7AB37A;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
}
.cmp-frame table.cmp td:first-child small {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-style: italic;
  font-weight: 400;
  font-size: 13.5px;
  color: #6C7076;
  margin-top: 6px;
  letter-spacing: 0;
}
.cmp-frame table.cmp td:first-child small::before {
  content: "// ";
}

/* Stolo column values: orange text on a subtle orange-tinted column */
.cmp-frame table.cmp td.stolo {
  background: rgba(232, 148, 72, 0.06);
  border-left: none;
  color: #E89448;
  font-weight: 500;
}

/* Satellite-win cell keeps its green treatment */
.cmp-frame table.cmp td.satwin {
  color: #7AB37A;
  font-weight: 500;
}

/* Turn colored squares into text prefixes: + / ~ / - */
.cmp-frame .pill-ic {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.cmp-frame .pill-ic .sq {
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  display: inline-block;
  min-width: 10px;
  text-align: center;
  box-shadow: none;
}
.cmp-frame .pill-ic .sq.ok::before   { content: "+"; color: #7AB37A; }
.cmp-frame .pill-ic .sq.warn::before { content: "~"; color: #E5B045; }
.cmp-frame .pill-ic .sq.bad::before  { content: "-"; color: #C85A46; }
.cmp-frame .pill-ic .sq.win::before  { content: "+"; color: #7AB37A; }

/* Mobile tuning */
@media (max-width: 900px) {
  .cmp-prompt { padding: 14px 18px; font-size: 12px; }
  .cmp-frame table.cmp thead th { padding: 14px 18px; }
  .cmp-frame table.cmp td { padding: 16px 18px; font-size: 12.5px; }
  .cmp-frame table.cmp td:first-child { padding-left: 36px; font-size: 13.5px; }
  .cmp-frame table.cmp td:first-child::before { left: 18px; top: 18px; }
}

/* ═══════════════════════════════════════════════════════════════════
   § 05 — PLATFORM · transport sublist under Tile 01 big-number
   Small monospace list of interface types that sits directly
   under the "Any medium" big number, giving credibility to the claim.
   ═══════════════════════════════════════════════════════════════════ */

.tile-sublist {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: #8B8D97;
  margin-top: 12px;
  max-width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════
   Contact modal
   ═══════════════════════════════════════════════════════════════════ */

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.contact-modal[aria-hidden="false"] { display: flex; }

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: contact-fade 180ms ease-out;
}

.contact-modal-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #17191C;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 36px 36px 32px;
  animation: contact-rise 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes contact-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes contact-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.contact-modal-x {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  color: #8B8D97;
  font-size: 20px; line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.contact-modal-x:hover {
  background: rgba(232,148,72,0.08);
  border-color: rgba(232,148,72,0.35);
  color: #E89448;
}

.contact-modal-head {
  margin-bottom: 24px;
}
.contact-modal-head .chap-sm {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8B8D97;
  margin-bottom: 14px;
}
.contact-modal-head .chap-sm b {
  color: #E89448;
  font-weight: 600;
  margin-right: 8px;
}
.contact-modal-head h3 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #E8E9ED;
  margin-bottom: 12px;
}
.contact-modal-head h3 .serif {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  color: #E89448;
}
.contact-modal-head p {
  font-size: 14px;
  line-height: 1.55;
  color: #8B8D97;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 540px) {
  .contact-row { grid-template-columns: 1fr; }
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form label > span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8B8D97;
  font-weight: 500;
}
.contact-form label > span em {
  color: #5A5C66;
  font-style: normal;
  font-weight: 400;
  margin-left: 4px;
  text-transform: none;
  letter-spacing: 0.04em;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  background: #0E1012;
  color: #E8E9ED;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 12px 14px;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(232,148,72,0.55);
  background: #111317;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #5A5C66;
}
.contact-form textarea {
  resize: vertical;
  min-height: 96px;
  font-family: inherit;
  line-height: 1.5;
}
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%238B8D97' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Honeypot — invisible to humans, detectable to bots */
.contact-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  tab-index: -1;
}

.contact-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.contact-foot .btn {
  position: relative;
  min-width: 160px;
}
.contact-legal {
  font-size: 11.5px;
  color: #5A5C66;
  line-height: 1.4;
  flex: 1;
  min-width: 200px;
}

/* Submit button spinner */
.contact-submit-spin {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(14, 16, 18, 0.3);
  border-top-color: #0E1012;
  border-radius: 50%;
  animation: contact-spin 0.7s linear infinite;
  margin-left: 10px;
  vertical-align: -2px;
}
#contact-submit.is-loading .contact-submit-label { opacity: 0.6; }
#contact-submit.is-loading .contact-submit-spin  { display: inline-block; }
#contact-submit[disabled] { cursor: not-allowed; opacity: 0.75; }

@keyframes contact-spin {
  to { transform: rotate(360deg); }
}

/* Result states */
.contact-result {
  display: none;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 4px;
}
.contact-result.is-success {
  display: block;
  background: rgba(122, 179, 122, 0.08);
  border: 1px solid rgba(122, 179, 122, 0.35);
  color: #9ECC9E;
}
.contact-result.is-error {
  display: block;
  background: rgba(200, 90, 70, 0.08);
  border: 1px solid rgba(200, 90, 70, 0.35);
  color: #D8806E;
}

/* Prevent body scroll while modal is open */
body.contact-modal-open {
  overflow: hidden;
}
