/* ==========================================================
   YA FOUNDATION  |  design tokens + layout
   Concept: a live "defence grid". Deep navy void, brand blue as
   the protective light, brand crimson reserved for threats and
   the human figure in the mark.
   ========================================================== */
/* ----- tokens: LIGHT is the default. Dark = html[data-mode="dark"] (toggle in nav). ----- */
:root {
  --void: #f3f7ff;
  --navy: #e6efff;
  --panel: rgba(255, 255, 255, .82);
  --panel-solid: #ffffff;
  --blue: #0560d6;          /* logo blue */
  --blue-hot: #1a74f0;
  --blue-soft: #0560d6;
  --red: #b00a0e;           /* logo crimson */
  --red-hot: #c4121a;
  --ice: #0a1633;           /* primary text */
  --mist: #4a5f86;          /* secondary text */
  --line: rgb(var(--acc) / .16);
  --line-strong: rgb(var(--acc) / .34);
  --ok: #0f9d63;
  --acc: 5 96 214;          /* accent as r g b for alpha use */
  --hot: 176 10 14;         /* threat colour */
  --surface: 255 255 255;
  --fog: 10 22 51;
  --ok-rgb: 15 157 99;
  --t-bad: #9b0b10; --t-good: #0b6b43; --t-warn: #8a4b00; --t-err: #b00a0e;
  --hero-bg: radial-gradient(60% 60% at 74% 42%, rgb(var(--acc) / .16), transparent 70%), radial-gradient(40% 40% at 92% 92%, rgb(var(--hot) / .10), transparent 70%), radial-gradient(40% 50% at 6% 10%, rgb(var(--acc) / .08), transparent 70%), linear-gradient(180deg, #eaf2ff, #f6f9ff);
  --safety-bg: linear-gradient(180deg, var(--void), #e7f0ff 30%, #e7f0ff 70%, var(--void));
  --foot-bg: radial-gradient(60% 100% at 50% 0%, rgb(var(--acc) / .10), transparent), #eaf1ff;
  --mark-glow: drop-shadow(0 24px 40px rgb(var(--acc) / .30));
  --brand-glow: none;
  --h1-shadow: none;
  --shadow-lg: 0 30px 60px -30px rgba(10, 22, 51, .35);
  --nav-glass: rgba(255, 255, 255, .82);
  --f-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --f-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --f-brand: "Tinos", "Times New Roman", Times, serif;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --nav-h: 72px;
  color-scheme: light;
}
/* dark palette, also used inside always-dark components (terminal, boot, lightbox) */
html[data-mode="dark"], .term, .boot, .lb {
  --void: #040813;
  --navy: #07112b;
  --panel: rgba(10, 22, 52, .62);
  --panel-solid: #0a1633;
  --blue-hot: #2f8bff;
  --blue-soft: #8fc0ff;
  --red-hot: #ff3b44;
  --ice: #e9f1ff;
  --mist: #93a6cb;
  --line: rgba(120, 165, 255, .16);
  --line-strong: rgba(120, 165, 255, .34);
  --ok: #3ddc97;
  --acc: 47 139 255;
  --hot: 255 59 68;
  --surface: 4 9 24;
  --fog: 255 255 255;
  --ok-rgb: 61 220 151;
  --t-bad: #ffb3b7; --t-good: #b6f5d8; --t-warn: #ffe2b0; --t-err: #ff9aa0;
  --hero-bg: radial-gradient(60% 60% at 74% 42%, rgb(var(--acc) / .34), transparent 70%), radial-gradient(40% 40% at 90% 90%, rgb(var(--hot) / .22), transparent 70%), linear-gradient(180deg, #050b1e, #040813);
  --safety-bg: linear-gradient(180deg, var(--void), #050c20 30%, #050c20 70%, var(--void));
  --foot-bg: radial-gradient(60% 100% at 50% 0%, rgb(var(--acc) / .14), transparent), #040813;
  --mark-glow: drop-shadow(0 0 30px rgb(var(--acc) / .75)) drop-shadow(0 0 80px rgb(var(--acc) / .45));
  --brand-glow: drop-shadow(0 0 10px rgb(var(--acc) / .7));
  --h1-shadow: 0 0 40px rgb(var(--acc) / .35);
  --shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, .8);
  --nav-glass: rgb(var(--surface) / .78);
  color-scheme: dark;
}
html.alert { --blue: #b00a0e; --blue-hot: #d4151c; --blue-soft: #b00a0e; --acc: 176 10 14; --line: rgb(var(--hot) / .2); --line-strong: rgb(var(--hot) / .4); }
html[data-mode="dark"].alert { --blue: #b00a0e; --blue-hot: #ff3b44; --blue-soft: #ff9aa0; --acc: 255 59 68; --line: rgba(255,110,120,.18); --line-strong: rgba(255,110,120,.38); --navy: #1a050a; --void: #0b0306; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--ice);
  font: 400 16px/1.65 var(--f-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--blue-hot); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 3px; border-radius: 4px; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--blue), var(--red)); border-radius: 8px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ambient film grain + scanlines */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(0deg, rgb(255 255 255 / .018) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
html:not([data-mode="dark"]) body::before { display: none; }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 120; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--blue-hot), var(--red-hot)); box-shadow: 0 0 14px var(--blue-hot); }

/* cursor ring */
.cursor { position: fixed; z-index: 130; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1.5px solid var(--blue-soft); border-radius: 50%; pointer-events: none; opacity: 0; transition: width .2s, height .2s, margin .2s, background .2s, opacity .3s; }
html[data-mode="dark"] .cursor { mix-blend-mode: screen; }
.cursor.on { opacity: .9; }
.cursor.hot { width: 62px; height: 62px; margin: -31px 0 0 -31px; background: rgb(var(--acc) / .14); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--mist); max-width: 60ch; }
.mono { font-family: var(--f-mono); }
.tag { font-family: var(--f-mono); font-size: .78rem; color: var(--blue-soft); display: inline-flex; align-items: center; gap: .6em; letter-spacing: .02em; }
.tag::before { content: "//"; color: var(--red-hot); }

/* ---------- buttons ---------- */
.btn { --b: var(--blue-hot); position: relative; display: inline-flex; align-items: center; gap: .6em; padding: .95em 1.5em; border-radius: 999px; font: 600 .95rem/1 var(--f-body); text-decoration: none; cursor: pointer; border: 1px solid var(--b); color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-hot)); box-shadow: 0 0 0 0 rgb(var(--acc) / .5), 0 10px 30px -10px var(--blue); transition: box-shadow .3s, transform .2s, background .3s; will-change: transform; overflow: hidden; }
.btn:hover { box-shadow: 0 0 0 6px rgb(var(--acc) / .16), 0 14px 40px -8px var(--blue-hot); }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s; }
.btn:hover::after { transform: translateX(120%); }
.btn-ghost { background: rgb(var(--fog) / .03); border-color: var(--line-strong); box-shadow: none; color: var(--ice); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--blue-hot); background: rgb(var(--acc) / .1); box-shadow: 0 0 0 6px rgb(var(--acc) / .08); }
.btn-red { background: linear-gradient(135deg, var(--red), var(--red-hot)); border-color: var(--red-hot); box-shadow: 0 10px 30px -10px var(--red); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 100; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: var(--nav-h); display: flex; align-items: center; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.stuck { background: var(--nav-glass); backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 36px; width: auto; filter: var(--brand-glow); transition: filter .3s; }
.brand:hover img { animation: glitch .5s steps(2) 1; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font: 700 1.15rem/1 var(--f-brand); letter-spacing: .04em; color: var(--ice); }
.brand-text small { font: 400 .58rem/1.3 var(--f-mono); color: var(--mist); margin-top: 4px; letter-spacing: .02em; }
.menu { display: flex; align-items: center; gap: clamp(8px, 1.05vw, 18px); min-width: 0; }
.brand { flex-shrink: 0; }
.menu a { position: relative; white-space: nowrap; font-size: .86rem; font-weight: 600; text-decoration: none; color: var(--mist); padding: 6px 2px; transition: color .2s; }
.menu a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--blue-hot), var(--red-hot)); transition: right .3s; }
.menu a:hover, .menu a.active, .menu a[aria-current="page"] { color: var(--ice); }
.menu a:hover::after, .menu a.active::after, .menu a[aria-current="page"]::after { right: 0; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgb(var(--fog) / .04); color: var(--ice); cursor: pointer; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .3s, background .3s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- boot screen ---------- */
.boot { position: fixed; inset: 0; z-index: 200; background: var(--void); color: var(--ice); display: grid; place-items: center; padding: 24px; animation: bootout .5s ease 2.6s forwards; }
.boot.gone { display: none; }
.boot pre { margin: 0; font: 500 clamp(.72rem, 1.7vw, .9rem)/1.8 var(--f-mono); color: var(--blue-soft); width: min(560px, 100%); white-space: pre-wrap; }
.boot pre i { font-style: normal; color: var(--ok); }
.boot pre em { font-style: normal; color: var(--red-hot); }
.boot .bar { margin-top: 18px; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; width: min(560px, 100%); }
.boot .bar::after { content: ""; display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--blue-hot), var(--red-hot)); animation: load 1.9s cubic-bezier(.6,.1,.2,1) .3s forwards; }
@keyframes load { to { transform: scaleX(1); } }
@keyframes bootout { to { opacity: 0; visibility: hidden; } }

/* ---------- hero ---------- */
section { position: relative; }
.hero { min-height: min(920px, 100svh); padding-top: calc(var(--nav-h) + 40px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; isolation: isolate; }
.hero canvas#net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -3; background: var(--hero-bg); }
.floor { position: absolute; left: -20%; right: -20%; bottom: -2px; height: 44%; z-index: -1; perspective: 380px; overflow: hidden; mask-image: linear-gradient(to top, #000 20%, transparent); -webkit-mask-image: linear-gradient(to top, #000 20%, transparent); }
.floor::before { content: ""; position: absolute; inset: -100% -20% 0; transform: rotateX(62deg); transform-origin: 50% 100%; background-image: linear-gradient(var(--line-strong) 1px, transparent 1px), linear-gradient(90deg, var(--line-strong) 1px, transparent 1px); background-size: 64px 64px; animation: floor 5s linear infinite; }
@keyframes floor { to { background-position: 0 64px; } }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: 24px 56px; }
.status { display: inline-flex; align-items: center; gap: 10px; font: 500 .8rem/1 var(--f-mono); color: var(--mist); padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgb(var(--surface) / .6); backdrop-filter: blur(6px); }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgb(var(--ok-rgb) / .6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgb(var(--ok-rgb) / 0); } 100% { box-shadow: 0 0 0 0 rgb(var(--ok-rgb) / 0); } }
.hero h1 { margin-top: 22px; font-size: clamp(2.4rem, 5.2vw, 4.7rem); font-weight: 800; letter-spacing: -.035em; line-height: .98; }
.hero h1 .l1 { display: block; color: var(--ice); text-shadow: var(--h1-shadow); }
.hero h1 .l2 { display: block; margin-top: .22em; padding-bottom: .1em; font-family: "Sora", "Manrope", system-ui, sans-serif; font-size: .5em; font-weight: 600; letter-spacing: -.015em; line-height: 1.15; color: transparent; background: linear-gradient(90deg, var(--blue-hot), var(--red-hot)); -webkit-background-clip: text; background-clip: text; }
.hero .lead { margin-top: 26px; }
.cta-row { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

.mark-stage { position: relative; aspect-ratio: 1; width: min(100%, 520px); justify-self: center; display: grid; place-items: center; }
.mark-stage img.mark { position: relative; z-index: 2; width: 66%; height: auto; filter: var(--mark-glow); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.ring { position: absolute; border-radius: 50%; border: 1px dashed var(--line-strong); inset: 0; animation: spin 40s linear infinite; }
.ring.r2 { inset: 9%; border-style: solid; border-color: var(--line); animation-duration: 26s; animation-direction: reverse; }
.ring.r3 { inset: 20%; border: 1px solid rgb(var(--acc) / .5); box-shadow: 0 0 50px rgb(var(--acc) / .2) inset, 0 0 40px rgb(var(--acc) / .18); animation: none; }
.ring::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--red-hot); box-shadow: 0 0 16px var(--red-hot); }
.ring.r2::before { background: var(--blue-hot); box-shadow: 0 0 16px var(--blue-hot); }
.ring.r3::before { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.threat-log { position: absolute; z-index: 3; left: 0; right: 0; bottom: -6px; margin-inline: auto; width: min(100%, 360px); padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgb(var(--surface) / .8); backdrop-filter: blur(8px); font: 500 .72rem/1.7 var(--f-mono); color: var(--mist); height: 98px; overflow: hidden; }
.threat-log p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: in .4s ease; }
.threat-log b { color: var(--red-hot); font-weight: 600; } .threat-log i { font-style: normal; color: var(--ok); }
@keyframes in { from { opacity: 0; transform: translateY(6px); } }

.next-strip { margin-top: auto; border-top: 1px solid var(--line); background: rgb(var(--surface) / .72); backdrop-filter: blur(10px); }
.next-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 36px; padding-block: 16px; }
.next-strip .what { flex: 1 1 280px; min-width: 0; }
.next-strip .what small { display: block; font: 500 .74rem/1.4 var(--f-mono); color: var(--blue-soft); }
.next-strip .what strong { font: 600 1.02rem/1.35 var(--f-display); letter-spacing: -.01em; }
.count { display: flex; gap: 10px; font-variant-numeric: tabular-nums; }
.count div { min-width: 58px; text-align: center; padding: 8px 6px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgb(var(--acc) / .07); }
.count b { display: block; font: 700 1.35rem/1.1 var(--f-mono); color: var(--ice); }
.count span { font: 500 .62rem/1 var(--f-mono); color: var(--mist); }

/* ---------- marquee ---------- */
.ticker { border-block: 1px solid var(--line); background: linear-gradient(90deg, rgb(var(--acc) / .12), rgb(var(--hot) / .12)); overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { padding: 16px 28px; font: 600 clamp(.95rem, 1.6vw, 1.2rem)/1 var(--f-display); letter-spacing: -.01em; white-space: nowrap; color: var(--blue-soft); }
.ticker span:nth-child(even) { color: var(--red-hot); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 10vw, 140px); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .lead { max-width: 64ch; }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.about-copy { display: grid; gap: 20px; color: var(--mist); }
.about-copy strong { color: var(--ice); }
.decode { margin-top: 10px; display: grid; gap: 6px; padding: 22px 24px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--panel); }
.decode .mono { font-size: .8rem; color: var(--mist); }
.decode .big { font: 800 clamp(1.4rem, 3.2vw, 2.3rem)/1.15 var(--f-display); letter-spacing: -.02em; color: var(--ice); word-break: break-word; }
.decode .big span { color: var(--blue-hot); }
.founder { margin-top: 0; padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(160deg, rgb(var(--acc) / .16), rgb(var(--acc) / .02)); display: grid; gap: 8px; }
.founder h3 { font-size: 1.3rem; }
.founder .role { font: 500 .8rem/1.5 var(--f-mono); color: var(--blue-soft); }
.cdn-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: center; padding: 22px; border-radius: 20px; border: 1px solid var(--line-strong); background: var(--panel); }
.cdn-card img { width: 96px; height: 96px; border-radius: 18px; object-fit: cover; box-shadow: 0 0 40px -6px var(--blue); }
.cdn-card p { color: var(--mist); font-size: .94rem; margin-top: 6px; }
.about-side { display: grid; gap: 22px; }
.pillars { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.pillars div { padding: 20px 24px; background: rgb(var(--surface) / .5); display: grid; gap: 4px; }
.pillars div + div { border-top: 1px solid var(--line); }
.pillars b { font: 700 1.5rem/1.1 var(--f-display); letter-spacing: -.02em; }
.pillars div:nth-child(1) b { color: var(--blue-hot); } .pillars div:nth-child(2) b { color: var(--red-hot); } .pillars div:nth-child(3) b { color: var(--ice); }
.pillars span { color: var(--mist); font-size: .92rem; }

/* cards w/ cursor spotlight */
.card { position: relative; border-radius: 22px; padding: 28px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; isolation: isolate; transition: border-color .3s, transform .3s; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgb(var(--acc) / .22), transparent 60%); opacity: 0; transition: opacity .3s; }
.card:hover { border-color: var(--line-strong); }
.card:hover::before { opacity: 1; }
.ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgb(var(--acc) / .12); border: 1px solid var(--line-strong); color: var(--blue-soft); margin-bottom: 20px; }
.ico svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* focus */
.focus-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.focus-main { grid-column: span 6; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); padding: clamp(24px, 4vw, 44px); background: linear-gradient(135deg, rgb(var(--acc) / .28), rgb(var(--surface) / .7) 55%), var(--panel); border-color: var(--line-strong); }
.focus-main h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.focus-main p { color: var(--mist); margin-top: 14px; }
.badge-main { display: inline-block; margin-bottom: 18px; font: 600 .74rem/1 var(--f-mono); padding: 7px 11px; border-radius: 999px; background: rgb(var(--hot) / .14); color: var(--t-bad); border: 1px solid rgb(var(--hot) / .4); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; }
.checks li { position: relative; padding-left: 32px; color: var(--ice); }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 6px; background: rgb(var(--acc) / .16); border: 1px solid var(--blue-hot); }
.checks li::after { content: ""; position: absolute; left: 6px; top: calc(.35em + 4px); width: 6px; height: 9px; border: solid var(--blue-soft); border-width: 0 2px 2px 0; transform: rotate(40deg) translate(-1px, -2px); }
.chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { font: 500 .78rem/1 var(--f-mono); padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line-strong); color: var(--blue-soft); background: rgb(var(--surface) / .5); transition: background .2s, color .2s, border-color .2s; cursor: default; }
.chip:hover { background: var(--blue-hot); color: #fff; border-color: var(--blue-hot); }
.focus-sub { grid-column: span 2; }
.focus-sub p { color: var(--mist); margin-top: 10px; font-size: .96rem; }

/* programmes */
.next-event { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(18px, 3vw, 36px); border-radius: 28px; border: 1px solid var(--line-strong); background: linear-gradient(135deg, rgb(var(--acc) / .2), rgb(var(--hot) / .12)); position: relative; overflow: hidden; }
.next-event::after { content: ""; position: absolute; inset: auto -10% -40% auto; width: 60%; aspect-ratio: 1; background: radial-gradient(closest-side, rgb(var(--acc) / .28), transparent); z-index: 0; pointer-events: none; }
.next-event > * { position: relative; z-index: 1; }
.flyer { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--navy); cursor: zoom-in; padding: 0; width: 100%; transform-style: preserve-3d; transition: transform .15s ease-out, box-shadow .3s; box-shadow: var(--shadow-lg); position: relative; }
.flyer img { width: 100%; height: auto; }
.flyer::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgb(255 255 255 / .22), transparent 55%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.flyer:hover::after { opacity: 1; }
.event-info { display: grid; gap: 18px; }
.event-info .free-pill { justify-self: start; }
.event-info h3 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
.event-meta { display: grid; gap: 10px; font: 500 .9rem/1.5 var(--f-mono); color: var(--mist); }
.event-meta b { color: var(--ice); font-weight: 600; }
.free-pill { display: inline-block; padding: 6px 10px; border-radius: 8px; background: rgb(var(--ok-rgb) / .14); color: var(--ok); border: 1px solid rgb(var(--ok-rgb) / .4); font: 600 .78rem/1 var(--f-mono); }

.sub-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin: clamp(64px, 8vw, 110px) 0 28px; }
.sub-head h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.sub-head p { color: var(--mist); max-width: 52ch; font-size: .95rem; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 18px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--blue-hot), var(--red-hot)); opacity: .6; }
.timeline li { position: relative; padding-left: 40px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 24px; width: 16px; height: 16px; border-radius: 50%; background: var(--void); border: 2px solid var(--blue-hot); box-shadow: 0 0 14px var(--blue-hot); z-index: 1; }
.tl { display: grid; grid-template-columns: 130px minmax(0, 1fr) 96px; gap: 18px; align-items: center; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); transition: border-color .3s, transform .3s; }
.tl:hover { border-color: var(--line-strong); transform: translateX(4px); }
.tl time { font: 600 .82rem/1.4 var(--f-mono); color: var(--blue-soft); }
.tl h4 { margin: 0; font: 600 1.02rem/1.35 var(--f-display); letter-spacing: -.01em; }
.tl p { color: var(--mist); font-size: .9rem; margin-top: 4px; }
.tl .thumb { width: 96px; height: 70px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--navy); cursor: zoom-in; padding: 0; }
.tl .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; }
.tl .thumb:hover img { transform: scale(1.08); }

.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.shot { margin: 0; position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--navy); cursor: zoom-in; padding: 0; aspect-ratio: 4/3; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s; filter: saturate(.9) contrast(1.05); }
.shot:hover img { transform: scale(1.06); filter: saturate(1.1); }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(2,6,16,.82)); pointer-events: none; }
.shot:nth-child(1) { grid-column: span 7; aspect-ratio: 16/10; }
.shot:nth-child(2) { grid-column: span 5; }
.shot:nth-child(3) { grid-column: span 5; }
.shot:nth-child(4) { grid-column: span 7; aspect-ratio: 16/10; }
.shot figcaption { position: absolute; z-index: 2; left: 16px; bottom: 14px; font: 500 .76rem/1.3 var(--f-mono); color: #fff; }

.prey { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.prey .flyer { border-radius: 14px; aspect-ratio: 1100 / 1235; }
.prey .flyer img { width: 100%; height: 100%; object-fit: cover; }
.prey .flyer:nth-child(even) { margin-top: 28px; }

/* cyber safety */
.safety { background: var(--safety-bg); overflow: hidden; isolation: isolate; }
.safety canvas#rain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .5; mask-image: linear-gradient(90deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); }
.breach { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 18px; }
.panel { border-radius: 24px; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line-strong); background: rgb(var(--surface) / .82); backdrop-filter: blur(10px); display: grid; gap: 16px; align-content: start; }
.panel h3 { font-size: 1.4rem; }
.panel .sub { color: var(--mist); font-size: .95rem; }
.field { display: grid; gap: 8px; }
.field label { font: 600 .84rem/1 var(--f-body); color: var(--ice); }
.input-row { position: relative; display: flex; gap: 10px; }
input[type="text"], input[type="email"], input[type="password"], textarea, input.cmd {
  width: 100%; min-width: 0; background: rgb(var(--surface) / .8); color: var(--ice); border: 1px solid var(--line-strong); border-radius: 14px; padding: 14px 16px; font: 500 1rem/1.4 var(--f-mono); transition: border-color .2s, box-shadow .2s;
}
textarea { font-family: var(--f-body); resize: vertical; min-height: 140px; }
input:focus, textarea:focus { outline: none; border-color: var(--blue-hot); box-shadow: 0 0 0 4px rgb(var(--acc) / .18); }
.eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--mist); cursor: pointer; font: 600 .78rem var(--f-mono); padding: 8px 10px; border-radius: 8px; }
.eye:hover { color: var(--ice); background: rgb(var(--fog) / .06); }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.meter i { height: 5px; border-radius: 4px; background: var(--line); transition: background .3s; }
.meter[data-s="1"] i:nth-child(-n+1) { background: var(--red-hot); }
.meter[data-s="2"] i:nth-child(-n+2) { background: #ff9a3d; }
.meter[data-s="3"] i:nth-child(-n+3) { background: #e8d34a; }
.meter[data-s="4"] i { background: var(--ok); }
.hashbox { font: 500 .8rem/1.6 var(--f-mono); padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--line-strong); color: var(--mist); word-break: break-all; min-height: 74px; }
.hashbox .sent { color: var(--red-hot); font-weight: 700; } .hashbox .kept { color: var(--blue-soft); }
.result { display: none; padding: 14px 16px; border-radius: 12px; font-size: .95rem; border: 1px solid; }
.result.show { display: block; animation: in .4s ease; }
.result.bad { color: var(--t-bad); background: rgb(var(--hot) / .1); border-color: rgb(var(--hot) / .5); }
.result.good { color: var(--t-good); background: rgb(var(--ok-rgb) / .1); border-color: rgb(var(--ok-rgb) / .5); }
.result.warn { color: var(--t-warn); background: rgba(255,154,61,.1); border-color: rgba(255,154,61,.5); }
.tiny { font-size: .82rem; color: var(--mist); }
.tiny a { color: var(--blue-soft); }
.free-ribbon { position: absolute; right: 22px; top: 22px; }
.panel { position: relative; }

.habits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.habits .card { padding: 22px; }
.habits h3 { font-size: 1rem; margin-bottom: 8px; }
.habits p { color: var(--mist); font-size: .92rem; }
.note { margin-top: 20px; padding: 16px 20px; border-left: 3px solid var(--red-hot); background: rgb(var(--hot) / .1); border-radius: 0 12px 12px 0; color: var(--ice); font-size: .95rem; }
.links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.links a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; background: var(--panel); transition: border-color .25s, transform .25s, background .25s; }
.links a:hover { border-color: var(--blue-hot); transform: translateY(-3px); background: rgb(var(--acc) / .1); }
.links b { font: 600 1rem/1.3 var(--f-display); letter-spacing: -.01em; }
.links small { grid-column: 1; color: var(--mist); font-size: .85rem; }
.links span { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--blue-soft); font: 500 .75rem var(--f-mono); }

/* terminal */
.term-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.term { color: var(--ice); border-radius: 18px; border: 1px solid var(--line-strong); background: #030612; box-shadow: 0 40px 80px -40px rgb(var(--acc) / .7), 0 0 0 1px rgba(255,255,255,.02) inset; overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgb(var(--fog) / .03); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 10px; font: 500 .74rem var(--f-mono); color: var(--mist); }
.term-out { padding: 18px; height: 340px; overflow-y: auto; font: 500 .84rem/1.7 var(--f-mono); color: #cfe0ff; scroll-behavior: smooth; }
.term-out p { white-space: pre-wrap; word-break: break-word; }
.term-out .p { color: var(--ok); } .term-out .r { color: var(--red-hot); } .term-out .b { color: var(--blue-soft); }
.term-out a { color: var(--blue-soft); }
.term-in { display: flex; align-items: center; gap: 10px; padding: 0 18px 16px; font: 500 .84rem var(--f-mono); color: var(--ok); }
input.cmd { background: transparent; border: 0; border-radius: 0; padding: 6px 0; font-size: .86rem; color: #fff; box-shadow: none !important; caret-color: var(--blue-hot); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 18px; }
.quick button { font: 500 .74rem var(--f-mono); color: var(--blue-soft); background: rgb(var(--acc) / .08); border: 1px solid var(--line-strong); border-radius: 8px; padding: 7px 10px; cursor: pointer; transition: background .2s, color .2s; }
.quick button:hover { background: var(--blue-hot); color: #fff; }

/* involved */
.involve { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.involve .card { display: grid; gap: 10px; align-content: start; padding: 32px 28px; }
.involve .card p { color: var(--mist); }
.cta-band { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(24px, 4vw, 44px); border-radius: 26px; border: 1px solid var(--line-strong); background: linear-gradient(110deg, rgb(var(--acc) / .35), rgb(var(--hot) / .28)); }
.cta-band h3 { font-size: clamp(1.3rem, 2.6vw, 2rem); max-width: 22ch; }
.cta-band p { color: var(--ice); opacity: .8; margin-top: 8px; max-width: 54ch; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); }
.contact-info { display: grid; gap: 14px; align-content: start; }
.contact-info .row { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); display: grid; gap: 4px; }
.contact-info .row small { font: 500 .74rem var(--f-mono); color: var(--blue-soft); }
.contact-info .row span, .contact-info .row a { font-weight: 600; word-break: break-word; }
.copy { justify-self: start; margin-top: 6px; background: rgb(var(--acc) / .1); color: var(--blue-soft); border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 10px; font: 500 .74rem var(--f-mono); cursor: pointer; }
.copy:hover { background: var(--blue-hot); color: #fff; }
form.panel { gap: 18px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; }
.form-msg { min-height: 1.4em; font-size: .92rem; }
.form-msg.ok { color: var(--ok); } .form-msg.err { color: var(--t-err); }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 64px 32px; background: var(--foot-bg); }
.foot { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 36px; }
.foot .brand img { height: 52px; }
.foot p { color: var(--mist); max-width: 46ch; margin-top: 16px; font-size: .95rem; }
.foot nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; align-content: start; }
.foot nav a { text-decoration: none; color: var(--mist); font-weight: 600; font-size: .92rem; padding: 4px 0; transition: color .2s, transform .2s; }
.foot nav a:hover { color: var(--ice); transform: translateX(4px); }
.legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--mist); font: 500 .78rem var(--f-mono); }

/* lightbox */
.lb { color: var(--ice); position: fixed; inset: 0; z-index: 300; display: none; place-items: center; background: rgba(2, 5, 14, .92); backdrop-filter: blur(10px); padding: 24px; }
.lb.open { display: grid; animation: in .25s ease; }
.lb img { max-height: 88svh; max-width: min(92vw, 1100px); width: auto; border-radius: 14px; box-shadow: 0 40px 100px rgba(0,0,0,.8); }
.lb button { position: absolute; top: max(16px, env(safe-area-inset-top, 0px)); right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgb(var(--fog) / .06); color: #fff; font-size: 1.3rem; cursor: pointer; }
.lb p { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font: 500 .8rem var(--f-mono); color: var(--mist); padding-inline: 16px; }

/* glitch */
@keyframes glitch { 0% { transform: translate(0); filter: drop-shadow(2px 0 var(--red-hot)) drop-shadow(-2px 0 var(--blue-hot)); } 25% { transform: translate(-2px, 1px); } 50% { transform: translate(2px, -1px); filter: drop-shadow(-3px 0 var(--red-hot)) drop-shadow(3px 0 var(--blue-hot)); } 100% { transform: translate(0); } }
.glitch { animation: glitch .45s steps(3) 1; }

/* ---------- responsive ---------- */
@media (max-width: 1500px) {
  .brand-text small { display: none; }
}
.brand-text b { white-space: nowrap; }
@media (max-width: 1080px) {
  .prey { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prey .flyer:nth-child(even) { margin-top: 0; }
}
@media (max-width: 960px) {
  .burger { display: inline-flex; }
  .menu { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px max(var(--gutter), env(safe-area-inset-left, 0px)) 22px; background: rgb(var(--surface) / .96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .3s; max-height: calc(100svh - var(--nav-h)); overflow-y: auto; }
  .menu.open { transform: none; opacity: 1; visibility: visible; }
  .menu a, .menu a.opt { display: block; padding: 16px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-cta { display: none; }
  .hero-inner, .about-grid, .focus-main, .next-event, .breach, .term-wrap, .contact, .foot { grid-template-columns: minmax(0, 1fr); }
  .mark-stage { width: min(78%, 360px); order: -1; margin-top: 8px; }
  .cdn-card { position: static; }
  .focus-sub { grid-column: span 6; }
  .habits, .involve { grid-template-columns: minmax(0, 1fr); }
  .tl { grid-template-columns: minmax(0, 1fr) 84px; }
  .tl time { grid-column: 1 / -1; }
  .tl .thumb { width: 84px; height: 62px; grid-row: 2; grid-column: 2; }
  .tl > div { grid-row: 2; grid-column: 1; }
}
@media (max-width: 640px) {
  .brand-text small { display: none; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot:nth-child(n) { grid-column: span 2; aspect-ratio: 16/10; }
  .prey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .links, .two { grid-template-columns: minmax(0, 1fr); }
  .count div { min-width: 0; flex: 1; }
  .count { width: 100%; }
  .cdn-card { grid-template-columns: 72px minmax(0, 1fr); }
  .cdn-card img { width: 72px; height: 72px; }
  .hero h1 { font-size: clamp(2.1rem, 10.5vw, 3rem); }
  .foot nav { grid-template-columns: minmax(0, 1fr); }
  .term-out { height: 300px; }
  .threat-log { position: relative; margin-top: 12px; bottom: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .boot { display: none; }
  .ticker-track { animation: none; }
}

/* ---------- theme toggle ---------- */
.theme-toggle { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgb(var(--fog) / .04); color: var(--ice); cursor: pointer; display: inline-grid; place-items: center; transition: background .2s, border-color .2s, transform .3s; }
.theme-toggle:hover { border-color: var(--blue-hot); background: rgb(var(--acc) / .12); transform: rotate(18deg); }
.theme-toggle svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun { display: none; }
html[data-mode="dark"] .theme-toggle .sun { display: block; }
html[data-mode="dark"] .theme-toggle .moon { display: none; }
.theme-flash { position: fixed; inset: 0; z-index: 250; pointer-events: none; background: radial-gradient(circle at var(--tx, 90%) var(--ty, 5%), rgb(var(--acc) / .35), transparent 60%); opacity: 0; animation: tflash .7s ease-out; }
@keyframes tflash { 0% { opacity: .9; } 100% { opacity: 0; } }

/* ---------- inner page hero ---------- */
.hero.phero { min-height: 0; display: block; padding-top: calc(var(--nav-h) + 64px); padding-bottom: 76px; }
.phero .floor { height: 60%; }
.phero .wrap { position: relative; display: grid; gap: 20px; max-width: var(--maxw); }
.phero h1 { font-size: clamp(2.2rem, 5.4vw, 4.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; color: var(--ice); text-shadow: var(--h1-shadow); max-width: 18ch; }
.phero .lead { max-width: 62ch; }
.crumbs { font: 500 .8rem/1 var(--f-mono); color: var(--mist); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs a { color: var(--blue-soft); text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.crumbs i { font-style: normal; color: var(--red-hot); }

/* ---------- topics grid (focus page) ---------- */
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.topics .card { padding: 24px; }
.topics h3 { font-size: 1rem; margin-bottom: 8px; }
.topics p { color: var(--mist); font-size: .93rem; }
.topics .code { font: 600 .74rem/1 var(--f-mono); color: var(--blue-soft); display: block; margin-bottom: 14px; }

/* how we work (about page) */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps .card { padding: 26px 24px; }
.steps .card::after { counter-increment: s; content: "0" counter(s); position: absolute; right: 18px; bottom: 12px; font: 700 2.4rem/1 var(--f-display); color: rgb(var(--acc) / .14); }
.steps h3 { margin-bottom: 8px; font-size: 1.05rem; }
.steps p { color: var(--mist); font-size: .93rem; }

/* home teasers */
.more { display: inline-flex; align-items: center; gap: .5em; margin-top: 18px; font-weight: 700; color: var(--blue-soft); text-decoration: none; }
.more::after { content: "→"; transition: transform .25s; }
.more:hover::after { transform: translateX(5px); }
.focus-sub .more { margin-top: 14px; }
.section.tight { padding-block: clamp(48px, 7vw, 96px); }

/* light-mode polish */
html:not([data-mode="dark"]) .card { box-shadow: 0 1px 0 rgb(255 255 255 / .8) inset, 0 12px 30px -22px rgba(10, 22, 51, .35); }
html:not([data-mode="dark"]) .panel { box-shadow: 0 24px 60px -36px rgba(10, 22, 51, .4); }
html:not([data-mode="dark"]) .btn-ghost { background: rgb(255 255 255 / .6); }
html:not([data-mode="dark"]) .status { box-shadow: 0 6px 20px -12px rgba(10,22,51,.3); }
html:not([data-mode="dark"]) .chip { background: #fff; }
html:not([data-mode="dark"]) .ticker { background: linear-gradient(90deg, rgb(var(--acc) / .08), rgb(var(--hot) / .08)); }
html:not([data-mode="dark"]) .tl, html:not([data-mode="dark"]) .links a { box-shadow: 0 10px 26px -22px rgba(10,22,51,.4); }
html:not([data-mode="dark"]) .pillars div { background: rgb(255 255 255 / .7); }
html:not([data-mode="dark"]) .cta-band h3 { color: var(--ice); }
html:not([data-mode="dark"]) .cta-band p { opacity: .85; }

@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } .hero.phero { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 56px; } }

.phero + .section { padding-top: clamp(48px, 6vw, 84px); }

.phero h1, .phero .lead { margin-top: 0; }

/* logo: original colours on light, off-white version on dark */
.logo-on-dark { display: none; }
html[data-mode="dark"] .logo-on-light { display: none; }
html[data-mode="dark"] .logo-on-dark { display: block; }

/* mission */
.mission { position: relative; padding: clamp(28px, 5vw, 64px) clamp(24px, 5vw, 72px); border-radius: 28px; border: 1px solid var(--line-strong); background: linear-gradient(135deg, rgb(var(--acc) / .14), rgb(var(--hot) / .07)), var(--panel); overflow: hidden; }
.mission::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(var(--blue-hot), var(--red-hot)); }
.mission .label { font: 600 .82rem/1 var(--f-mono); color: var(--blue-soft); }
.mission .label::before { content: "// "; color: var(--red-hot); }
.mission .stmt { margin-top: 20px; font: 600 clamp(1.25rem, 2.5vw, 2.05rem)/1.32 var(--f-display); letter-spacing: -.02em; color: var(--ice); max-width: 48ch; text-wrap: pretty; }

/* contact details */
.contact-info .row a { text-decoration: none; color: var(--ice); }
.contact-info .row a:hover { color: var(--blue-soft); text-decoration: underline; }
.contact-info .map-link { font-size: .88rem; font-weight: 600; color: var(--blue-soft) !important; }
.foot-contact { margin-top: 18px; font-style: normal; display: grid; gap: 4px; color: var(--mist); font-size: .92rem; max-width: 40ch; }
.foot-contact a { color: var(--ice); font-weight: 700; text-decoration: none; }
.foot-contact a:hover { color: var(--blue-soft); }

/* global community */
.global { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.global-copy { display: grid; gap: 22px; align-content: start; }
.global .stmt { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--ice); max-width: 52ch; line-height: 1.6; }
.countries { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.countries li { font: 600 .84rem/1 var(--f-body); padding: 11px 15px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--ice); transition: background .25s, color .25s, border-color .25s, transform .25s; }
.countries li:hover { background: var(--blue-hot); color: #fff; border-color: var(--blue-hot); transform: translateY(-2px); }
.countries .more-c { border-style: dashed; color: var(--mist); }
.globe-wrap { position: relative; width: min(100%, 420px); justify-self: center; aspect-ratio: 1; }
.globe { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 20px 40px rgb(var(--acc) / .25)); }
.globe .mer { transform-box: fill-box; transform-origin: center; animation: spinx 9s ease-in-out infinite; }
.globe .m2 { animation-delay: -3s; } .globe .m3 { animation-delay: -6s; }
@keyframes spinx { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.12); } }
.globe .arcs path { stroke-dasharray: 4 6; animation: dash 3s linear infinite; opacity: .7; }
@keyframes dash { to { stroke-dashoffset: -50; } }
.globe .nodes circle { fill: var(--red-hot); transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-in-out infinite; }
.globe .nodes circle:nth-child(2n) { fill: var(--blue-hot); animation-delay: -.8s; } .globe .nodes circle:nth-child(3n) { animation-delay: -1.5s; }
@keyframes pulse { 50% { transform: scale(1.7); opacity: .6; } }
.globe-stat { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); display: flex; align-items: baseline; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--nav-glass); backdrop-filter: blur(10px); box-shadow: var(--shadow-lg); }
.globe-stat b { font: 800 1.8rem/1 var(--f-display); color: var(--ice); letter-spacing: -.03em; }
.globe-stat span { font: 500 .8rem var(--f-mono); color: var(--mist); }
@media (max-width: 960px) { .global { grid-template-columns: minmax(0, 1fr); } .globe-wrap { width: min(86%, 340px); margin-bottom: 24px; } }
