/* =========================================================
   HarborSOC — site styles (v2)
   Palette: deep harbor navy, beacon teal, lighthouse amber
   ========================================================= */

:root {
  /* ---- palette: "Ember" (default) ---- */
  --bg-rgb: 10, 10, 11;     --bg2-rgb: 13, 13, 15;
  --s0-rgb: 16, 16, 18;     --s1-rgb: 21, 21, 24;     --s2-rgb: 31, 31, 35;
  --l-rgb: 205, 205, 215;
  --a-rgb: 255, 122, 47;    /* accent */
  --w-rgb: 255, 190, 92;    /* warm / lighthouse */
  --text: #f5f5f4; --text-dim: #a9a9b0; --text-faint: #6f6f78;
  --on-a: #1f0b00; --on-w: #241500; --term: #070708; --foot: #070708;

  --bg: rgb(var(--bg-rgb)); --bg-2: rgb(var(--bg2-rgb));
  --surface: rgb(var(--s1-rgb)); --surface-2: rgb(var(--s2-rgb)); --s2: rgb(var(--s2-rgb));
  --line: rgba(var(--l-rgb), 0.12);
  --line-strong: rgba(var(--l-rgb), 0.22);
  --teal: rgb(var(--a-rgb)); --teal-2: rgba(var(--a-rgb), .8);
  --teal-glow: rgba(var(--a-rgb), 0.18);
  --amber: rgb(var(--w-rgb)); --amber-glow: rgba(var(--w-rgb), 0.16);
  --red: #ff5d6c; --green: #4ade80;

  --radius: 14px; --radius-lg: 22px; --maxw: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);

  /* ---- type: "Geist" (default) ---- */
  --font-display: "Geist", system-ui, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Code", monospace;
  --em-font: inherit; --em-style: normal; --em-weight: inherit; --em-size: 1em;
  --h-weight: 600; --h-track: -0.04em;
}

/* ---------- Palettes ---------- */
[data-palette="abyss"] {
  --bg-rgb: 6, 8, 20; --bg2-rgb: 9, 12, 28; --s0-rgb: 12, 16, 36; --s1-rgb: 16, 21, 46; --s2-rgb: 24, 31, 66;
  --l-rgb: 160, 172, 230; --a-rgb: 106, 150, 255; --w-rgb: 255, 140, 105;
  --text: #eceefb; --text-dim: #a3abcc; --text-faint: #6c7499; --on-a: #050b26; --on-w: #2b0d03; --term: #04061a; --foot: #04050f;
}
[data-palette="phosphor"] {
  --bg-rgb: 5, 11, 9; --bg2-rgb: 7, 15, 12; --s0-rgb: 9, 20, 16; --s1-rgb: 12, 26, 21; --s2-rgb: 18, 38, 31;
  --l-rgb: 150, 210, 180; --a-rgb: 70, 245, 160; --w-rgb: 255, 204, 92;
  --text: #e6f2ec; --text-dim: #9cb8aa; --text-faint: #648074; --on-a: #02210f; --on-w: #2a1c00; --term: #030806; --foot: #030806;
}
[data-palette="harbor"] {
  --bg-rgb: 5, 13, 26;      --bg2-rgb: 7, 17, 31;
  --s0-rgb: 8, 20, 39;      --s1-rgb: 12, 26, 48;     --s2-rgb: 17, 35, 64;
  --l-rgb: 148, 178, 220;
  --a-rgb: 46, 230, 214;    /* accent */
  --w-rgb: 255, 181, 71;    /* warm / lighthouse */
  --text: #e8eef8; --text-dim: #9fb0c8; --text-faint: #6b7d97;
  --on-a: #03201d; --on-w: #2a1600; --term: #030912; --foot: #040a15;
}
[data-palette="aurora"] {
  --bg-rgb: 10, 8, 22; --bg2-rgb: 13, 10, 28; --s0-rgb: 17, 13, 36; --s1-rgb: 22, 17, 46; --s2-rgb: 33, 26, 66;
  --l-rgb: 190, 175, 240; --a-rgb: 160, 140, 255; --w-rgb: 80, 230, 190;
  --text: #efecfb; --text-dim: #aba4cc; --text-faint: #736c99; --on-a: #12063a; --on-w: #00261b; --term: #07051a; --foot: #06040f;
}

/* ---------- Typefaces ---------- */
[data-font="sora"] {
  --font-display: "Sora", system-ui, sans-serif; --font-body: "Inter", system-ui, sans-serif; --font-mono: "JetBrains Mono", monospace;
  --h-weight: 600; --h-track: -0.035em;
}
[data-font="space"] {
  --font-display: "Space Grotesk", system-ui, sans-serif; --font-body: "Inter", system-ui, sans-serif; --font-mono: "JetBrains Mono", monospace;
  --em-font: "Instrument Serif", Georgia, serif; --em-style: italic; --em-weight: 400; --em-size: 1.08em; --h-track: -0.03em;
}
[data-font="bricolage"] {
  --font-display: "Bricolage Grotesque", system-ui, sans-serif; --font-body: "Inter", system-ui, sans-serif; --font-mono: "JetBrains Mono", monospace;
  --h-weight: 700; --h-track: -0.035em;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--teal); color: var(--on-a); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--font-mono); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.08; letter-spacing: var(--h-track); font-weight: var(--h-weight); }
h1 { font-size: clamp(2.8rem, 6.6vw, 5.6rem); line-height: 1; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; }
h1 em, h2 em {
  font-family: var(--em-font); font-style: var(--em-style); font-weight: var(--em-weight); font-size: var(--em-size);
  color: var(--teal); letter-spacing: inherit;
}
p { margin: 0; }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--text-dim); max-width: 56ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }

.section { padding: 128px 0; position: relative; }
.section.soc { background: linear-gradient(180deg, var(--bg), var(--bg-2) 18%, var(--bg-2) 82%, var(--bg)); }
.section-head { max-width: 820px; margin-bottom: 64px; }
.section-head h2 { margin: 16px 0 18px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 22px; height: 1px; background: currentColor; }
.section-head.center .lead { margin: 0 auto; }
.split-head { max-width: none; display: grid; grid-template-columns: 1.35fr .65fr; gap: 56px; align-items: end; }
.split-head h2 { margin-bottom: 0; }

/* ---------- Word-split reveal ---------- */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .12em; margin-bottom: -.12em; }
.split .wi { display: inline-block; }
.js .split .wi { transform: translateY(110%) rotate(4deg); transform-origin: 0 100%; transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
.js .split.in .wi { transform: none; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s !important; } .d2 { transition-delay: .16s !important; } .d3 { transition-delay: .24s !important; }

/* ---------- Scroll progress + cursor ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; background: linear-gradient(90deg, var(--teal), var(--amber)); transform-origin: 0 50%; transform: scaleX(0); }
.cursor-ring, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 150; border-radius: 50%; opacity: 0; transition: opacity .3s; }
.has-cursor .cursor-ring, .has-cursor .cursor-dot { opacity: 1; }
.cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(var(--a-rgb),.55); transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, border-color .3s, opacity .3s; display: grid; place-items: center; }
.cursor-ring span { font-family: var(--font-mono); font-size: 8px; letter-spacing: .14em; color: var(--amber); opacity: 0; transform: translateY(34px); transition: opacity .3s; white-space: nowrap; }
.cursor-dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: var(--teal); }
.cursor-ring.hover { width: 62px; height: 62px; margin: -31px 0 0 -31px; background: rgba(var(--a-rgb),.08); border-color: rgba(var(--a-rgb),.8); }
.cursor-ring.watch { width: 54px; height: 54px; margin: -27px 0 0 -27px; border-style: dashed; border-color: rgba(var(--w-rgb),.8); animation: spin 8s linear infinite; }
.cursor-ring.watch span { opacity: 1; animation: spin 8s linear infinite reverse; }
@keyframes spin { to { rotate: 360deg; } }
@media (pointer: coarse) { .cursor-ring, .cursor-dot { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; transition: transform .35s var(--ease), box-shadow .3s, background .3s, border-color .3s, color .3s;
  white-space: nowrap; overflow: hidden; isolation: isolate;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--teal); color: var(--on-a); box-shadow: 0 10px 30px -10px rgba(var(--a-rgb), .55); }
.btn-primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 0 0 6px var(--teal-glow), 0 14px 34px -10px rgba(var(--a-rgb), .7); }
.btn-ghost { border-color: var(--line-strong); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-alert { background: rgba(255, 93, 108, .12); border-color: rgba(255, 93, 108, .45); color: #ffb3ba; }
.btn-alert:hover { background: rgba(255, 93, 108, .22); color: #fff; }
.btn-amber { background: var(--amber); color: var(--on-w); }
.btn-amber:hover { box-shadow: 0 0 0 6px var(--amber-glow); }
.btn-sm { padding: 9px 16px; font-size: 0.86rem; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* ---------- Top alert bar ---------- */
.topbar { background: linear-gradient(90deg, rgba(255,93,108,.14), rgba(var(--w-rgb),.10)); border-bottom: 1px solid var(--line); font-size: 0.84rem; color: var(--text-dim); position: relative; z-index: 60; }
.topbar .container { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 38px; flex-wrap: wrap; text-align: center; }
.topbar a { color: var(--amber); font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(255,93,108,.7); animation: pulse 1.8s infinite; flex: none; display: inline-block; }
.pulse-dot.green { background: var(--green); animation-name: pulseG; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(255,93,108,0); } 100% { box-shadow: 0 0 0 0 rgba(255,93,108,0); } }
@keyframes pulseG { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.7); } 70% { box-shadow: 0 0 0 9px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 70; transition: background .3s, border-color .3s, transform .45s var(--ease); border-bottom: 1px solid transparent; }
.header.scrolled { background: rgba(var(--bg-rgb), .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.header.hide { transform: translateY(-100%); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; letter-spacing: -0.02em; }
.logo svg { width: 36px; height: 36px; transition: transform .6s var(--ease); }
.logo:hover svg { transform: rotate(-8deg) scale(1.06); }
.logo b { color: var(--teal); font-weight: 700; }
.lg-stroke { stroke: var(--teal); } .lg-fill { fill: var(--teal); } .lg-warm { fill: var(--amber); }
.lg-beam { stroke: var(--amber); animation: beamPulse 2.6s ease-in-out infinite; }
@keyframes beamPulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { position: relative; white-space: nowrap; padding: 8px 12px; font-size: 0.92rem; color: var(--text-dim); transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1px; background: var(--teal); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: transform .25s, background .25s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero (the sea) ---------- */
.hero { position: relative; min-height: calc(100vh - 38px); min-height: calc(100svh - 38px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; isolation: isolate; margin-top: -74px; padding: 140px 0 150px; }
#sea { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(var(--bg-rgb),.94) 0%, rgba(var(--bg-rgb),.7) 34%, rgba(var(--bg-rgb),0) 62%),
    linear-gradient(180deg, rgba(var(--bg-rgb),.7) 0%, transparent 22%, transparent 80%, var(--bg) 100%);
}
.hero-inner { position: relative; pointer-events: none; }
.hero-inner a, .hero-inner button { pointer-events: auto; }
.hero-copy { max-width: 680px; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(var(--s1-rgb), .7); backdrop-filter: blur(8px); font-size: .84rem; color: var(--text-dim); }
.status-pill strong { color: var(--text); font-weight: 600; }
.hero h1 { margin: 26px 0 26px; }
.hero .lead { margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hud { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(var(--bg-rgb),.2), rgba(var(--bg-rgb),.85)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hud-inner { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 48px; align-items: center; min-height: 82px; }
.hud-item small { display: block; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.hud-item b { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
#neutralized { color: var(--amber); font-family: var(--font-mono); font-weight: 500; }
#neutralized.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { color: #fff; text-shadow: 0 0 18px var(--amber); } }
.hud-hint { justify-self: end; display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .76rem; color: var(--text-dim); letter-spacing: .04em; }
.hint-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); animation: beamPulse 1.6s infinite; }

/* ---------- Framework strip ---------- */
.strip { border-bottom: 1px solid var(--line); background: var(--bg); padding: 22px 0; overflow: hidden; }
.marquee { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.strip:hover .marquee { animation-play-state: paused; }
.marquee span { font-family: var(--font-display); font-size: 1.1rem; color: var(--text-faint); font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; padding-right: 48px; transition: color .3s; }
.marquee span:hover { color: var(--text); }
.marquee span::after { content: "✦"; font-size: .7rem; color: var(--teal); opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }


/* ---------- Story (scrollytelling) ---------- */
.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.story-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 30px 0; opacity: .22; transition: opacity .5s var(--ease); }
.story-step:first-child { min-height: 50vh; justify-content: flex-start; }
.story-step:last-child { min-height: 60vh; }
.story-step.active { opacity: 1; }
.story-time { font-size: .76rem; color: var(--amber); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.story-step h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 14px; letter-spacing: -0.03em; }
.story-step p { color: var(--text-dim); font-size: 1.05rem; max-width: 44ch; }
.story-stage { position: sticky; top: 104px; }
.stage-card { border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: linear-gradient(180deg, rgba(var(--s2-rgb),.9), rgba(var(--s0-rgb),.95)); box-shadow: var(--shadow); padding: 22px; transition: border-color .6s, box-shadow .6s; }
.stage-card[data-state="1"], .stage-card[data-state="2"] { border-color: rgba(255,93,108,.35); box-shadow: var(--shadow), 0 0 80px -30px rgba(255,93,108,.5); }
.stage-card[data-state="3"] { border-color: rgba(var(--w-rgb),.45); box-shadow: var(--shadow), 0 0 80px -30px rgba(var(--w-rgb),.5); }
.stage-card[data-state="4"], .stage-card[data-state="5"] { border-color: rgba(var(--a-rgb),.45); box-shadow: var(--shadow), 0 0 80px -30px rgba(var(--a-rgb),.5); }
.stage-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.stage-top small { display: block; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.stage-top b { font-size: .95rem; }
.stage-clock { font-size: 1.6rem; color: var(--text); letter-spacing: .02em; }
.stage-status { font-family: var(--font-mono); font-size: .72rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-dim); transition: all .4s; text-transform: uppercase; letter-spacing: .08em; }
.stage-status.s-red { color: #ffb3ba; border-color: rgba(255,93,108,.5); background: rgba(255,93,108,.12); }
.stage-status.s-amber { color: var(--amber); border-color: rgba(var(--w-rgb),.5); background: rgba(var(--w-rgb),.1); }
.stage-status.s-teal { color: var(--teal); border-color: rgba(var(--a-rgb),.5); background: rgba(var(--a-rgb),.1); }
.stage-status.s-green { color: var(--green); border-color: rgba(74,222,128,.5); background: rgba(74,222,128,.1); }

.graph { width: 100%; height: auto; margin: 14px 0 6px; overflow: visible; }
.graph text { font-family: var(--font-mono); font-size: 11px; fill: var(--text-faint); text-anchor: middle; transition: fill .4s; }
.edge { fill: none; stroke: rgba(var(--l-rgb),.2); stroke-width: 2; transition: stroke .5s; }
.edge.hit { stroke: var(--red); stroke-dasharray: 6 7; animation: flow .7s linear infinite; }
.edge.warn { stroke: var(--amber); stroke-dasharray: 6 7; animation: flow .9s linear infinite; }
.edge.cut { stroke: rgba(var(--a-rgb),.45); stroke-dasharray: 2 8; animation: none; }
@keyframes flow { to { stroke-dashoffset: -26; } }
.node .core { fill: var(--surface); stroke: rgba(var(--l-rgb),.3); stroke-width: 1.5; transition: fill .5s, stroke .5s; }
.node .halo { fill: none; stroke: transparent; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; }
.node .ico { fill: none; stroke: var(--text-dim); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .5s; }
.node .iso { fill: none; stroke: transparent; stroke-width: 1.5; stroke-dasharray: 4 5; transform-box: fill-box; transform-origin: center; }
.node.warn .core { fill: rgba(var(--w-rgb),.12); stroke: var(--amber); }
.node.warn .ico { stroke: var(--amber); }
.node.hit .core { fill: rgba(255,93,108,.16); stroke: var(--red); }
.node.hit .ico { stroke: #ff9aa4; }
.node.hit .halo { stroke: var(--red); animation: halo 1.4s ease-out infinite; }
.node.hit text, .node.warn text { fill: var(--text); }
.node.safe .core { fill: rgba(var(--a-rgb),.1); stroke: var(--teal); }
.node.safe .ico { stroke: var(--teal); }
.node.safe text { fill: var(--teal); }
.node.isolated .core { fill: rgba(255,93,108,.08); stroke: rgba(255,93,108,.5); }
.node.isolated .iso { stroke: var(--teal); animation: spin 6s linear infinite; }
.node.isolated text { fill: var(--teal); }
@keyframes halo { 0% { transform: scale(.75); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.shield-badge { opacity: 0; transform: translate(500px, 130px) scale(.6); transition: opacity .5s, transform .6s var(--ease); }
.shield-badge path:first-child { fill: rgba(var(--a-rgb),.15); stroke: var(--teal); stroke-width: 1.5; }
.shield-badge .tick { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stage-card[data-state="4"] .shield-badge, .stage-card[data-state="5"] .shield-badge { opacity: 1; transform: translate(500px, 120px) scale(1); }

.stage-log { background: var(--term); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: .72rem; line-height: 1.75; min-height: 156px; overflow: hidden; }
.stage-log div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-dim); animation: logIn .45s var(--ease); }
.stage-log .t { color: var(--text-faint); }
.stage-log .r { color: #ff9aa4; } .stage-log .a { color: var(--amber); } .stage-log .g { color: var(--teal); }
@keyframes logIn { from { opacity: 0; transform: translateX(-8px); } }
.stage-foot { display: flex; align-items: center; gap: 16px; margin-top: 16px; font-size: .74rem; color: var(--text-faint); }
.stage-bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; }
.stage-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--amber), var(--teal)); background-size: 300% 100%; transition: width .6s var(--ease); }

/* ---------- Console (Inside SOC) ---------- */
.console { border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: linear-gradient(180deg, rgba(var(--s2-rgb), .92), rgba(var(--s0-rgb), .96)); box-shadow: var(--shadow), 0 0 100px -40px rgba(var(--a-rgb),.35); overflow: hidden; }
.console-top { display: flex; align-items: center; gap: 18px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--s2); }
.dots i:first-child { background: var(--red); } .dots i:nth-child(2) { background: var(--amber); } .dots i:nth-child(3) { background: var(--green); }
.ctabs { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: rgba(var(--bg-rgb),.6); border: 1px solid var(--line); }
.ctab { border: 0; background: none; padding: 7px 14px; border-radius: 8px; font-size: .82rem; color: var(--text-dim); transition: background .25s, color .25s; }
.ctab[aria-selected="true"] { background: var(--surface-2); color: var(--text); }
.console-live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--text-faint); font-size: .74rem; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.kpi { padding: 16px 20px; border-right: 1px solid var(--line); }
.kpi:last-child { border-right: 0; }
.kpi small { display: block; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.kpi b { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; }
.t-teal { color: var(--teal); } .t-amber { color: var(--amber); }
.cview[data-view="queue"] { display: grid; grid-template-columns: .95fr 1.05fr; min-height: 470px; }
.cview[hidden] { display: none !important; }
.queue-wrap { border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.queue { list-style: none; margin: 0; padding: 10px; display: grid; gap: 6px; align-content: start; flex: 1; }
.qitem { width: 100%; display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid transparent; background: transparent; transition: background .25s, border-color .25s, transform .25s var(--ease); }
.qitem:hover { background: rgba(255,255,255,.03); transform: translateX(3px); }
.qitem.active { background: rgba(var(--a-rgb),.07); border-color: rgba(var(--a-rgb),.35); }
.qitem b { display: block; font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qitem small { display: block; font-family: var(--font-mono); font-size: .7rem; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qitem > div { min-width: 0; }
.sev { width: 9px; height: 9px; border-radius: 50%; }
.sev.crit { background: var(--red); box-shadow: 0 0 10px var(--red); }
.sev.high { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.sev.med { background: var(--teal); }
.tag { font-size: .66rem; padding: 3px 9px; border-radius: 999px; font-family: var(--font-mono); letter-spacing: .04em; white-space: nowrap; border: 1px solid; }
.tag.ok { color: var(--green); background: rgba(74,222,128,.1); border-color: rgba(74,222,128,.25); }
.tag.inv { color: var(--amber); background: rgba(var(--w-rgb),.1); border-color: rgba(var(--w-rgb),.25); }
.autoclose { border-top: 1px solid var(--line); padding: 10px 18px; font-size: .7rem; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.autoclose span { color: var(--green); }
.detail { padding: 24px 26px; }
.d-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.sev-badge { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; padding: 4px 10px; border-radius: 6px; text-transform: uppercase; }
.sev-badge.crit { background: rgba(255,93,108,.15); color: #ff9aa4; }
.sev-badge.high { background: rgba(var(--w-rgb),.13); color: var(--amber); }
.sev-badge.med { background: rgba(var(--a-rgb),.1); color: var(--teal); }
.detail h4 { font-size: 1.3rem; margin-bottom: 16px; }
.d-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.d-meta small { display: block; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.d-meta span { font-size: .86rem; }
.d-label { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 8px; }
.d-notes { font-family: var(--font-mono); font-size: .76rem; color: var(--text-dim); line-height: 1.7; min-height: 86px; margin-bottom: 16px; }
.d-notes .caret { display: inline-block; width: 7px; height: 13px; background: var(--teal); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.d-actions { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.d-actions li { display: flex; gap: 10px; align-items: center; font-size: .86rem; opacity: 0; transform: translateX(-8px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.d-actions li.show { opacity: 1; transform: none; }
.d-actions li::before { content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: .7rem; color: var(--teal); background: rgba(var(--a-rgb),.1); border: 1px solid rgba(var(--a-rgb),.3); }

.report { padding: 26px; }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.report-head h4 { font-size: 1.1rem; }
.report-head small { color: var(--text-faint); font-size: .76rem; }
.funnel { display: grid; gap: 12px; }
.funnel-row { display: grid; grid-template-columns: 150px 1fr 80px; gap: 14px; align-items: center; font-size: .86rem; }
.funnel-row span { color: var(--text-dim); }
.funnel-row b { font-family: var(--font-mono); font-weight: 500; text-align: right; }
.track { height: 10px; border-radius: 99px; background: rgba(255,255,255,.05); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal-2), var(--teal)); width: 0; transition: width 1.4s var(--ease); }
.track i.amber { background: linear-gradient(90deg, var(--amber), var(--amber)); }
.track i.red { background: linear-gradient(90deg, #d9404f, var(--red)); }
.report-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.report-kpis div { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: rgba(var(--bg-rgb),.5); }
.report-kpis small { display: block; color: var(--text-faint); font-size: .74rem; }
.report-kpis b { font-family: var(--font-display); font-size: 1.4rem; }
.note { font-size: .74rem; color: var(--text-faint); margin-top: 14px; font-style: italic; }

.soc-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.meta-box { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; background: rgba(var(--s1-rgb),.4); }
.meta-box h3 { font-size: 1rem; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { font-size: .78rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-dim); background: rgba(var(--bg-rgb),.4); transition: border-color .25s, color .25s, transform .25s var(--ease); }
.chip:hover { border-color: var(--teal); color: var(--text); transform: translateY(-2px); }
.tiers { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tiers li { display: flex; gap: 12px; align-items: center; font-size: .88rem; color: var(--text-dim); }
.tiers b { flex: none; width: 36px; text-align: center; font-family: var(--font-mono); font-size: .74rem; color: var(--teal); background: rgba(var(--a-rgb),.08); border: 1px solid rgba(var(--a-rgb),.22); border-radius: 7px; padding: 4px 0; }
.tiers b.amber { color: var(--amber); background: rgba(var(--w-rgb),.08); border-color: rgba(var(--w-rgb),.25); }

/* ---------- Pen testing ---------- */
.pt-wrap { display: grid; grid-template-columns: 290px 1fr; gap: 28px; align-items: start; }
.tabs { display: grid; gap: 8px; }
.tab-btn { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; width: 100%; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--s1-rgb),.4); font-weight: 600; font-size: .95rem; color: var(--text-dim); transition: all .25s var(--ease); overflow: hidden; }
.tab-btn small { font-family: var(--font-mono); font-size: .68rem; color: var(--text-faint); font-weight: 400; }
.tab-btn:hover { color: var(--text); border-color: var(--line-strong); transform: translateX(4px); }
.tab-btn[aria-selected="true"] { color: var(--text); border-color: rgba(var(--a-rgb),.45); background: linear-gradient(90deg, rgba(var(--a-rgb),.14), rgba(var(--s1-rgb),.4)); }
.tab-btn[aria-selected="true"] small { color: var(--teal); }
.tab-btn[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 3px; background: var(--teal); }
.pt-panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(var(--s1-rgb),.45); overflow: hidden; }
.terminal { background: var(--term); border-bottom: 1px solid var(--line); }
.term-top { display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: .74rem; color: var(--text-faint); }
.term-replay { margin-left: auto; border: 1px solid var(--line-strong); background: none; border-radius: 6px; padding: 3px 9px; font-size: .7rem; color: var(--text-dim); }
.term-replay:hover { color: var(--teal); border-color: var(--teal); }
.term-body { padding: 16px 18px; font-size: .8rem; line-height: 1.8; min-height: 236px; }
.term-body div { white-space: pre-wrap; word-break: break-word; }
.term-body .p { color: var(--teal); }
.term-body .dim { color: var(--text-faint); }
.term-body .warn { color: var(--amber); }
.term-body .crit { color: #ff8692; }
.term-body .ok { color: var(--green); }
.term-body .caret { display: inline-block; width: 8px; height: 15px; background: var(--teal); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
.pt-info { padding: 28px 30px 30px; }
.pt-info h3 { font-size: 1.5rem; margin-bottom: 8px; }
.pt-info > p { color: var(--text-dim); max-width: 64ch; }
.pt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 22px; }
.pt-cols h4 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; font-weight: 500; }
.pt-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pt-cols li { font-size: .9rem; color: var(--text-dim); padding-left: 18px; position: relative; animation: logIn .45s var(--ease) both; }
.pt-cols li::before { content: "›"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* ---------- Incident response ---------- */
.ir-section { padding-top: 40px; }
.ir { position: relative; border-radius: 28px; overflow: hidden; padding: 64px;
  background: radial-gradient(700px circle at 100% 0%, rgba(255,93,108,.22), transparent 55%), radial-gradient(600px circle at 0% 100%, rgba(var(--w-rgb),.14), transparent 55%), var(--surface);
  border: 1px solid rgba(255,93,108,.3); display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; isolation: isolate; }
.sonar { position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; z-index: -1; pointer-events: none; }
.sonar i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,93,108,.5); animation: sonar 4.5s ease-out infinite; opacity: 0; }
.sonar i:nth-child(2) { animation-delay: 1.5s; } .sonar i:nth-child(3) { animation-delay: 3s; }
@keyframes sonar { 0% { transform: scale(.15); opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }
.ir h2 { margin: 14px 0 16px; }
.ir h2 em { color: var(--amber); }
.ir .eyebrow { color: #ff9aa4; }
.ir-copy > p { color: var(--text-dim); max-width: 56ch; }
.ir-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.ir-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.ir-steps li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(var(--bg-rgb),.6); border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .3s; }
.ir-steps li:hover { transform: translateX(-6px); border-color: rgba(var(--w-rgb),.4); }
.ir-steps b { font-family: var(--font-mono); font-size: .76rem; color: var(--amber); }
.ir-steps span { font-size: .92rem; }

/* ---------- Harbor Check ---------- */
.check-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.quiz { display: grid; gap: 10px; }
.q { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: rgba(var(--s1-rgb),.35); transition: border-color .3s, background .3s; }
.q.yes { border-color: rgba(var(--a-rgb),.35); background: rgba(var(--a-rgb),.05); }
.q.no { border-color: rgba(255,93,108,.3); background: rgba(255,93,108,.04); }
.q p { font-size: .97rem; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(var(--bg-rgb),.6); }
.seg button { border: 0; background: none; padding: 7px 16px; border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--text-dim); transition: background .25s, color .25s; }
.seg button:hover { color: var(--text); }
.q.yes .seg button[data-v="1"] { background: var(--teal); color: var(--on-a); }
.q.no .seg button[data-v="0"] { background: var(--red); color: #2a0006; }
.gauge-card { position: sticky; top: 110px; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); padding: 30px; background: linear-gradient(180deg, rgba(var(--s2-rgb),.9), rgba(var(--s0-rgb),.95)); box-shadow: var(--shadow); text-align: center; --g: var(--text-faint); transition: border-color .5s; }
.gauge-card[data-level="low"] { --g: var(--red); border-color: rgba(255,93,108,.4); }
.gauge-card[data-level="mid"] { --g: var(--amber); border-color: rgba(var(--w-rgb),.4); }
.gauge-card[data-level="good"] { --g: var(--teal); border-color: rgba(var(--a-rgb),.4); }
.gauge-card[data-level="great"] { --g: var(--green); border-color: rgba(74,222,128,.4); }
.gauge-card > small { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.gauge { position: relative; max-width: 260px; margin: 14px auto 8px; }
.gauge svg { width: 100%; }
.g-track, .g-fill { fill: none; stroke-width: 14; stroke-linecap: round; }
.g-track { stroke: rgba(255,255,255,.06); }
.g-fill { stroke: var(--g); stroke-dasharray: 315; stroke-dashoffset: 315; transition: stroke-dashoffset 1s var(--ease), stroke .5s; filter: drop-shadow(0 0 8px var(--g)); }
.g-num { position: absolute; left: 0; right: 0; bottom: 4px; }
.g-num b { font-family: var(--font-display); font-size: 3.2rem; font-weight: 600; letter-spacing: -0.04em; color: var(--g); transition: color .5s; }
.g-num span { color: var(--text-faint); font-size: .9rem; }
.gauge-card h3 { font-size: 1.35rem; margin: 6px 0 6px; }
.gauge-card > p { color: var(--text-dim); font-size: .92rem; }
.g-fixes { display: grid; gap: 6px; margin: 18px 0 20px; text-align: left; }
.g-fixes div { font-size: .82rem; padding: 8px 12px; border-radius: 9px; border: 1px dashed rgba(255,93,108,.35); color: var(--text-dim); animation: logIn .4s var(--ease); }
.g-fixes div::before { content: "CF"; color: var(--red); font-size: .55rem; margin-right: 8px; vertical-align: 2px; }
.gauge-card .btn { width: 100%; }
.g-progress { display: block; margin-top: 12px; font-size: .72rem; color: var(--text-faint); }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; perspective: 1200px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 34px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: rgba(var(--s1-rgb),.45); transition: transform .3s var(--ease), border-color .3s; transform-style: preserve-3d; }
.plan.popular { border-color: rgba(var(--a-rgb),.5); background: linear-gradient(180deg, rgba(var(--a-rgb),.11), rgba(var(--s1-rgb),.5) 40%); box-shadow: 0 0 70px -24px rgba(var(--a-rgb),.45); }
.plan-flag { position: absolute; top: -12px; left: 34px; background: var(--teal); color: var(--on-a); font-size: .7rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: .06em; text-transform: uppercase; }
.plan h3 { font-size: 1.6rem; }
.plan .for { color: var(--text-faint); font-size: .9rem; margin: 8px 0 22px; min-height: 3em; }
.plan .price { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.02em; }
.plan .price small { display: block; font-size: .84rem; color: var(--text-faint); font-weight: 400; font-family: var(--font-body); letter-spacing: 0; }
.plan .sla { font-size: .78rem; color: var(--teal); margin-bottom: 24px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 11px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: .9rem; color: var(--text-dim); }
.plan li::before { content: "✓"; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 5px; display: grid; place-items: center; font-size: .66rem; font-weight: 700; color: var(--teal); background: rgba(var(--a-rgb),.12); }
.plan li.inherit { color: var(--text); font-weight: 600; }
.plan .btn { width: 100%; }
.addons { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 30px; display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; background: rgba(var(--s1-rgb),.3); }
.addons h3 { font-size: 1.1rem; }
.addons p { color: var(--text-faint); font-size: .86rem; margin-top: 4px; }

/* spotlight border following the pointer */
.spot { --mx: 50%; --my: 50%; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(var(--a-rgb),.9), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--a-rgb),.07), transparent 50%); }
.spot:hover::after, .spot:hover::before { opacity: 1; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why { position: relative; padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: rgba(var(--s1-rgb),.35); transition: transform .4s var(--ease); }
.why:hover { transform: translateY(-4px); }
.why-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(var(--a-rgb),.3); color: var(--teal); font-size: .8rem; margin-bottom: 22px; }
.why h3 { margin-bottom: 8px; font-size: 1.15rem; }
.why p { color: var(--text-dim); font-size: .93rem; }
.industries { margin-top: 56px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); }
.ind-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.ind-row { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.ind-row span { font-family: var(--font-display); font-size: 1.15rem; color: var(--text-dim); transition: color .3s; }
.ind-row span:hover { color: var(--amber); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: rgba(var(--s1-rgb),.35); transition: border-color .3s, background .3s; overflow: hidden; }
.faq details[open] { border-color: rgba(var(--a-rgb),.35); background: rgba(var(--s1-rgb),.6); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: color .25s; }
.faq summary:hover { color: var(--teal); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.3rem; color: var(--teal); transition: transform .35s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { overflow: hidden; }
.faq .ans p { padding: 0 22px 22px; color: var(--text-dim); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.channels { display: grid; gap: 12px; margin-top: 30px; }
.channel { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(var(--s1-rgb),.35); transition: border-color .25s, transform .3s var(--ease); }
.channel:hover { border-color: rgba(var(--a-rgb),.35); transform: translateX(4px); }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(var(--a-rgb),.08); border: 1px solid rgba(var(--a-rgb),.22); color: var(--teal); }
.icon svg { width: 22px; height: 22px; }
.channel small { display: block; color: var(--text-faint); font-size: .74rem; font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.channel b { font-weight: 600; }
.channel.urgent { border-color: rgba(255,93,108,.35); background: rgba(255,93,108,.06); }
.channel.urgent .icon { color: var(--red); background: rgba(255,93,108,.1); border-color: rgba(255,93,108,.3); }
.form { border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 36px; background: linear-gradient(180deg, rgba(var(--s2-rgb),.75), rgba(var(--s1-rgb),.5)); box-shadow: var(--shadow); }
.form h3 { font-size: 1.45rem; margin-bottom: 6px; }
.form-body > p { color: var(--text-dim); font-size: .92rem; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full, .check-row { grid-column: 1 / -1; }
.field label { font-size: .84rem; font-weight: 500; color: var(--text-dim); transition: color .2s; }
.field:focus-within label { color: var(--teal); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(var(--bg-rgb),.7); transition: border-color .2s, box-shadow .2s; outline: none; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%239fb0c8' stroke-width='1.8'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }
.field select option { background: var(--surface); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-glow); }
.field [aria-invalid="true"] { border-color: var(--red); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--text-dim); }
.check-row input { flex: none; width: 16px; height: 16px; margin-top: 3px; accent-color: var(--teal); }
.form .btn { width: 100%; margin-top: 20px; }
.form-error { color: #ff9aa4; font-size: .85rem; margin-top: 10px; min-height: 1.2em; }
.form-success { display: none; text-align: center; padding: 50px 10px; }
.form-success h3 { margin: 20px 0 8px; }
.form-success p { color: var(--text-dim); }
.form.sent .form-body { display: none; }
.form.sent .form-success { display: block; }
.success-mark { width: 76px; height: 76px; margin: 0 auto; }
.success-mark circle { fill: rgba(var(--a-rgb),.08); stroke: var(--teal); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; }
.success-mark path { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; }
.form.sent .success-mark circle { animation: draw .7s var(--ease) forwards; }
.form.sent .success-mark path { animation: draw .5s .55s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Footer ---------- */
.footer { position: relative; isolation: isolate; border-top: 1px solid var(--line); background: var(--foot); padding: 96px 0 0; font-size: .9rem; overflow: hidden; }
.footer-cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-bottom: 72px; border-bottom: 1px solid var(--line); margin-bottom: 56px; }
.footer-cta h2 { max-width: 760px; font-size: clamp(2rem, 4.4vw, 3.6rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; margin-bottom: 48px; }
.footer-grid p { color: var(--text-faint); margin-top: 14px; max-width: 34ch; }
.footer h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); font-weight: 500; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--text-dim); transition: color .2s, padding .3s var(--ease); }
.footer ul a:hover { color: var(--teal); padding-left: 6px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 26px 0; border-top: 1px solid var(--line); color: var(--text-faint); font-size: .82rem; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--text); }
.soc-status { display: inline-flex; align-items: center; gap: 8px; }
.wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 20vw, 19rem); line-height: .78; letter-spacing: -0.06em;
  text-align: center; white-space: nowrap; user-select: none; margin-bottom: -0.1em;
  color: transparent; -webkit-text-stroke: 1px rgba(var(--l-rgb),.16);
  background: linear-gradient(90deg, var(--teal), var(--amber)) no-repeat; background-size: var(--fill, 0%) 100%;
  -webkit-background-clip: text; background-clip: text;
}

.hide-sm { display: inline; }
/* grid children may hold nowrap text — never let them force the page wider */
.split-head > *, .story-grid > *, .check-grid > *, .pt-wrap > *, .contact-wrap > *, .faq-wrap > *, .soc-meta > *, .cview > *, .ir > * { min-width: 0; }


/* =========================================================
   v1.2 additions
   ========================================================= */

/* accent words in headings (non-serif fonts): marker underline that draws in */
html:not([data-font="space"]) h1 em, html:not([data-font="space"]) h2 em {
  background: linear-gradient(90deg, rgba(var(--a-rgb), .32), rgba(var(--w-rgb), .24)) no-repeat 0 94% / 0% .16em;
  transition: background-size 1.2s var(--ease) .5s;
}
html:not([data-font="space"]) .split.in em { background-size: 100% .16em; }

/* ---------- Photo treatment (tinted to match the palette) ---------- */
.photo { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); isolation: isolate; box-shadow: 0 0 0 1px var(--line-strong), var(--shadow); }
.photo img, .ir-photo img, .footer-photo img, .sc-img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.92) contrast(1.04); }
.photo::before { content: none; }
.photo::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 40%, rgba(var(--bg-rgb), .35)); pointer-events: none; }
.photo img { transition: transform 1.2s var(--ease); }
.photo:hover img { transform: scale(1.05); }

/* ---------- Services showcase ---------- */
.showcase { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: stretch; }
.sc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sc-item { position: relative; width: 100%; display: grid; grid-template-columns: 34px 1fr 18px; align-items: center; gap: 10px; text-align: left; padding: 15px 16px; border: 1px solid transparent; border-radius: 14px; background: transparent; color: var(--text-dim); transition: color .3s, background .3s, border-color .3s, padding .4s var(--ease); overflow: hidden; }
.sc-item .sc-n { font-size: .74rem; color: var(--text-faint); transition: color .3s; }
.sc-item .sc-name { font-family: var(--font-display); font-weight: 500; font-size: 1.04rem; letter-spacing: -0.015em; }
.sc-item .sc-arrow { opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .4s var(--ease); color: var(--teal); }
.sc-item:hover { color: var(--text); background: rgba(var(--s1-rgb), .5); }
.sc-item:hover .sc-arrow { opacity: .6; transform: none; }
.sc-item[aria-selected="true"] { color: var(--text); background: linear-gradient(90deg, rgba(var(--a-rgb), .13), rgba(var(--s1-rgb), .4)); border-color: rgba(var(--a-rgb), .3); padding-left: 22px; }
.sc-item[aria-selected="true"] .sc-n { color: var(--teal); }
.sc-item[aria-selected="true"] .sc-arrow { opacity: 1; transform: none; }
.sc-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.sc-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--amber)); }
.sc-item[aria-selected="true"] .sc-bar i { animation: scProgress var(--sc-dur, 7s) linear forwards; }
.showcase.paused .sc-item[aria-selected="true"] .sc-bar i { animation-play-state: paused; }
.showcase.stopped .sc-item[aria-selected="true"] .sc-bar i { animation: none; width: 100%; opacity: .45; }
@keyframes scProgress { to { width: 100%; } }

.sc-stage { border-radius: 26px; border: 1px solid var(--line-strong); background: rgba(var(--s1-rgb), .55); overflow: hidden; display: grid; grid-template-rows: auto 1fr; box-shadow: var(--shadow); }
.sc-media { position: relative; height: 380px; overflow: hidden; isolation: isolate; background: var(--surface); }
.sc-layer { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.sc-layer .sc-img { transform: scale(1.1); }
.sc-layer.live .sc-img { animation: kenburns 10s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1.03); } }
.sc-layer.enter { clip-path: inset(0 100% 0 0); animation: wipe 1s var(--ease) forwards; z-index: 1; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
.sc-sweep { position: absolute; top: -10%; bottom: -10%; width: 160px; z-index: 3; pointer-events: none; left: -180px;
  background: linear-gradient(90deg, transparent, rgba(var(--w-rgb), .5) 46%, rgba(255,255,255,.8) 50%, rgba(var(--w-rgb), .5) 54%, transparent);
  filter: blur(8px); mix-blend-mode: screen; opacity: 0; }
.sc-sweep.go { animation: sweepX 1s var(--ease) forwards; }
@keyframes sweepX { 0% { left: -180px; opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.sc-tint { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--bg-rgb), .05) 0%, rgba(var(--bg-rgb), .25) 45%, rgba(var(--s1-rgb), .97) 100%), linear-gradient(90deg, rgba(var(--bg-rgb), .55), transparent 65%); }
.sc-tint::before { content: none; }
.sc-cap { position: absolute; left: 34px; right: 34px; bottom: 26px; z-index: 4; }
.sc-tag { display: inline-block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); padding: 5px 10px; border-radius: 999px; background: rgba(var(--bg-rgb), .6); border: 1px solid rgba(var(--a-rgb), .3); backdrop-filter: blur(6px); margin-bottom: 14px; }
.sc-title { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.02; margin-bottom: 8px; }
.sc-tagline { font-family: var(--font-display); font-size: 1.15rem; color: var(--amber); }
.sc-count { position: absolute; top: 22px; right: 26px; z-index: 4; font-size: .74rem; color: var(--text-dim); letter-spacing: .1em; padding: 5px 10px; border-radius: 8px; background: rgba(var(--bg-rgb), .55); backdrop-filter: blur(6px); }
.sc-body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px 40px; padding: 28px 34px 32px; align-content: start; }
.sc-desc { color: var(--text-dim); font-size: 1rem; grid-row: span 2; }
.sc-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.sc-points li { display: flex; gap: 12px; font-size: .92rem; }
.sc-points li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .55em; border-radius: 2px; background: var(--teal); box-shadow: 0 0 10px rgba(var(--a-rgb), .7); transform: rotate(45deg); }
.sc-link { align-self: end; font-weight: 600; font-size: .92rem; color: var(--teal); }
.sc-link:hover { text-decoration: underline; }
.sc-anim { animation: scIn .7s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes scIn { from { opacity: 0; transform: translateY(16px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- People ---------- */
.people-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.people-copy h2 { margin: 16px 0 18px; }
.people-stats { display: grid; margin-top: 36px; border-top: 1px solid var(--line); }
.people-stats > div { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.people-stats b { font-family: var(--font-display); font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; color: var(--teal); }
.people-stats span { color: var(--text-dim); font-size: .95rem; }
.collage { position: relative; height: 600px; }
.collage .photo { position: absolute; will-change: transform; }
.ph-a { left: 0; top: 40px; width: 52%; height: 420px; }
.ph-b { right: 0; top: 0; width: 44%; height: 280px; }
.ph-c { right: 4%; bottom: 0; width: 50%; height: 290px; }
.collage-badge { position: absolute; left: 34%; bottom: 60px; z-index: 3; display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 14px; background: rgba(var(--bg-rgb), .85); border: 1px solid rgba(var(--a-rgb), .3); backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.collage-badge b { display: block; font-size: .9rem; }
.collage-badge small { color: var(--text-faint); font-size: .7rem; }

/* ---------- IR photo + footer photo ---------- */
.ir-photo { position: absolute; inset: 0 0 0 40%; z-index: -2; opacity: .5; -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); }
.ir-photo img { filter: brightness(.75) contrast(1.05); }
.footer-photo { position: absolute; inset: 0 0 auto 0; height: 560px; z-index: -1; opacity: .35; -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 95%); mask-image: linear-gradient(180deg, #000 10%, transparent 95%); }
.footer-photo::after { content: none; }
.credits { color: var(--text-faint); font-size: .72rem; padding-bottom: 18px; margin-top: -10px; }

/* ---------- Style switcher ---------- */
.tweak { position: fixed; right: 20px; bottom: 20px; z-index: 160; }
.tweak-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; border: 1px solid rgba(var(--a-rgb), .45); background: rgba(var(--s1-rgb), .92); backdrop-filter: blur(10px); color: var(--text); font-weight: 600; font-size: .86rem; box-shadow: var(--shadow); transition: transform .3s var(--ease), border-color .3s; }
.tweak-btn svg { width: 18px; height: 18px; color: var(--teal); }
.tweak-btn:hover { transform: translateY(-2px); border-color: var(--teal); }
.tweak-panel { position: absolute; right: 0; bottom: 56px; width: 330px; padding: 18px; border-radius: 18px; background: rgba(var(--s0-rgb), .97); border: 1px solid var(--line-strong); box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); backdrop-filter: blur(14px); animation: tweakIn .35s var(--ease); }
.tweak-panel[hidden] { display: none; }
@keyframes tweakIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.tweak-head b { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.tweak-head small { color: var(--text-faint); font-size: .68rem; }
.tweak-label { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); margin: 16px 0 8px; }
.sw-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.sw-row button, .ft-row button { display: grid; justify-items: center; gap: 6px; padding: 8px 4px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text-dim); font-size: .64rem; transition: border-color .25s, background .25s, color .25s; }
.sw-row button:hover, .ft-row button:hover { border-color: var(--line-strong); color: var(--text); }
.sw-row button.on, .ft-row button.on { border-color: var(--teal); background: rgba(var(--a-rgb), .1); color: var(--text); }
.sw-row i { width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(var(--c2) 0 120deg, var(--c3) 120deg 200deg, var(--c1) 200deg 360deg); box-shadow: inset 0 0 0 2px rgba(255,255,255,.1); }
.sw-row span { line-height: 1.15; text-align: center; }
.ft-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ft-row b { font-size: 1.4rem; font-weight: 600; color: var(--text); line-height: 1; }

@media (max-width: 1180px) {
  .showcase { grid-template-columns: 290px 1fr; }
}
@media (max-width: 960px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase > * { min-width: 0; }
  .sc-list { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .sc-list::-webkit-scrollbar { display: none; }
  .sc-list li { flex: none; }
  .sc-item { grid-template-columns: auto auto; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
  .sc-item[aria-selected="true"] { padding-left: 14px; }
  .sc-item .sc-arrow { display: none; }
  .sc-item .sc-name { font-size: .9rem; }
  .sc-media { height: 320px; }
  .sc-body { grid-template-columns: 1fr; }
  .sc-desc { grid-row: auto; }
  .people-grid { grid-template-columns: 1fr; gap: 40px; }
  .people-grid > * { min-width: 0; }
  .collage { height: 520px; }
}
@media (max-width: 640px) {
  .sc-media { height: 280px; }
  .sc-cap { left: 20px; right: 20px; bottom: 18px; }
  .sc-body { padding: 22px 20px 26px; }
  .sc-count { top: 14px; right: 14px; }
  .collage { height: 420px; }
  .ph-a { width: 58%; height: 300px; top: 30px; }
  .ph-b { width: 46%; height: 190px; }
  .ph-c { width: 56%; height: 200px; right: 0; }
  .collage-badge { left: 8px; bottom: 16px; }
  .people-stats > div { grid-template-columns: 80px 1fr; }
  .people-stats b { font-size: 1.5rem; }
  .ir-photo { inset: 0; opacity: .25; -webkit-mask-image: none; mask-image: none; }
  .tweak { right: 12px; bottom: 12px; }
  .tweak-btn span { display: none; }
  .tweak-panel { width: calc(100vw - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal, .js .split .wi { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .menu-open .nav-links { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 74px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 28px 22px; gap: 0; box-shadow: 0 30px 60px -10px rgba(0,0,0,.7); }
  .menu-open .nav-links a { display: block; padding: 15px 4px; font-size: 1.05rem; color: var(--text); border-bottom: 1px solid var(--line); }
  .menu-open .nav-links a::after { display: none; }
  .menu-open .header { background: var(--bg); transform: none; }
}
@media (max-width: 960px) {
  .section { padding: 96px 0; }
  .split-head, .story-grid, .check-grid, .faq-wrap, .contact-wrap, .ir, .pt-wrap { grid-template-columns: 1fr; }
  .split-head { gap: 20px; }
  .hud-inner { grid-template-columns: repeat(3, auto); gap: 28px; }
  .hud-hint { display: none; }
  .story-stage { top: 74px; z-index: 3; order: -1; margin: 0 -28px; padding: 10px 28px; background: linear-gradient(180deg, var(--bg-2) 92%, rgba(var(--bg2-rgb),0)); }
  .story-steps { padding-top: 10px; }
  .stage-card { padding: 14px; }
  .stage-log { display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; height: 72px; font-size: .66rem; line-height: 1.6; padding: 8px 10px; }
  .stage-clock { font-size: 1.2rem; }
  .graph { margin: 6px 0 2px; }
  .story-step, .story-step:first-child, .story-step:last-child { min-height: 58vh; justify-content: center; }
  .cview[data-view="queue"] { grid-template-columns: 1fr; }
  .queue-wrap { border-right: 0; border-bottom: 1px solid var(--line); }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(2) { border-right: 0; }
  .kpi:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .soc-meta, .why-grid, .plans { grid-template-columns: 1fr 1fr; }
  .tabs { grid-template-columns: repeat(3, 1fr); }
  .gauge-card { position: static; }
  .addons { grid-template-columns: 1fr; }
  .footer-cta { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ir { padding: 44px 34px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 76px 0; }
  .hide-sm, .nav-cta .btn-alert { display: none; }
  .nav-cta .btn-primary { padding: 9px 14px; font-size: .84rem; }
  .menu-open .nav-links { padding: 8px 16px 22px; }
  .hero { padding: 130px 0 120px; }
  .hero-shade { background: linear-gradient(180deg, rgba(var(--bg-rgb),.8) 0%, rgba(var(--bg-rgb),.55) 55%, rgba(var(--bg-rgb),.2) 80%, var(--bg) 100%); }
  .hud-inner { gap: 16px; min-height: 70px; justify-content: space-between; }
  .hud-item b { font-size: 1.05rem; }
  .hud-item small { font-size: .56rem; letter-spacing: .1em; }
  .story-stage { margin: 0 -16px; padding: 8px 16px; }
  .stage-top b, .stage-top small { display: none; }
  .stage-log { height: 58px; }
  .story-step h3 { font-size: 1.45rem; }
  .story-step p { font-size: .98rem; }
  .console-top { flex-wrap: wrap; gap: 10px; }
  .console-top .dots { display: none; }
  .console-live { margin-left: auto; }
  .kpi { padding: 12px 14px; } .kpi b { font-size: 1.15rem; }
  .detail { padding: 20px 16px; }
  .d-meta { grid-template-columns: 1fr; }
  .funnel-row { grid-template-columns: 100px 1fr 56px; font-size: .78rem; gap: 10px; }
  .report { padding: 18px; }
  .soc-meta, .why-grid, .plans, .pt-cols, .form-grid { grid-template-columns: 1fr; }
  .tabs { grid-template-columns: 1fr 1fr; }
  .tab-btn { padding: 12px 14px; font-size: .86rem; }
  .tab-btn small { display: none; }
  .term-body { font-size: .7rem; padding: 12px 14px; min-height: 250px; }
  .pt-info { padding: 22px 18px; }
  .q { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .ir { padding: 34px 22px; border-radius: 22px; }
  .form, .plan { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer { padding-top: 72px; }
}
.people-stats b span { font-size: inherit; color: inherit; }

/* ---------- Hero photo backdrop (assets/hero-harbor.jpg) ---------- */
.hero-photo { position: absolute; inset: -14px; z-index: -3; background: no-repeat 75% 50% / cover; opacity: 0; transition: opacity 1.4s var(--ease), transform .8s cubic-bezier(.2,.7,.3,1); transform: translate3d(var(--hx, 0px), var(--hy, 0px), 0); }
.hero.has-photo .hero-photo { opacity: 1; animation: heroBreath 24s ease-in-out infinite alternate; }
@keyframes heroBreath { from { scale: 1; } to { scale: 1.035; } }
.hero.has-photo #sea { transform: translate3d(var(--hx, 0px), var(--hy, 0px), 0); transition: transform .8s cubic-bezier(.2,.7,.3,1); }
.hero.has-photo .hero-shade { background:
    linear-gradient(90deg, rgba(var(--bg-rgb),.88) 0%, rgba(var(--bg-rgb),.55) 34%, rgba(var(--bg-rgb),0) 60%),
    linear-gradient(180deg, rgba(var(--bg-rgb),.55) 0%, transparent 20%, transparent 78%, var(--bg) 100%); }
@media (max-width: 640px) {
  .hero-photo { background-position: 80% 50%; }
  .hero.has-photo .hero-shade { background: linear-gradient(180deg, rgba(var(--bg-rgb),.75) 0%, rgba(var(--bg-rgb),.5) 55%, rgba(var(--bg-rgb),.15) 80%, var(--bg) 100%); }
}
@media (prefers-reduced-motion: reduce) { .hero.has-photo .hero-photo { animation: none; } }

/* ---------- blog strip (latest posts from /blog/latest.json) ---------- */
.blog-strip[hidden] { display: none; }
.blog-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
.blog-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(var(--s1-rgb), .45); transition: border-color .3s, transform .3s var(--ease); }
.blog-card:hover { border-color: rgba(var(--a-rgb), .45); transform: translateY(-3px); }
.blog-card .k { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.blog-card b { font-size: 1.05rem; line-height: 1.3; letter-spacing: -.01em; }
.blog-card p { margin: 0; color: var(--text-dim); font-size: .9rem; }
.blog-card .d { margin-top: auto; font-family: var(--font-mono); font-size: .72rem; color: var(--text-faint); }
@media (max-width: 960px) { .blog-cards { grid-template-columns: 1fr; } }
