/* Bekito — how we keep services safe (/security/).
 * One page, two languages: every text node is paired lang="ja" / lang="en"
 * and the inactive one is hidden from <html lang>. Scenes are inline SVG
 * driven by js/security.js; with reduced motion they show their final state. */

:root {
  --ink: #1E2A37;
  --ink-2: rgba(30,42,55,.78);
  --ink-3: rgba(30,42,55,.6);
  --line: rgba(30,42,55,.14);
  --cream: #FAF6F0;
  --paper: #F3ECE1;
  --ak: #B45F2F;
  --green: #2F7D4F;
  --red: #C8443A;
  --night: #0C1B2E;
  --night-2: #12263D;
  --n-fg: #E8EEF5;
  --n-fg-2: rgba(232,238,245,.7);
  --n-fg-3: rgba(232,238,245,.45);
  --n-line: rgba(169,204,255,.16);
  --ok: #6FE3A1;
  --bad: #FF7A6B;
  --info: #9EC5F5;
  --warm: #F0A868;
  --f-sans: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  --f-latin: Inter, 'Zen Kaku Gothic New', sans-serif;
  /* no ui-monospace: on iOS it shows boxes for Japanese before later families are tried */
  --f-mono: 'IBM Plex Mono', Menlo, Consolas, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Zen Kaku Gothic New', 'Noto Sans JP', monospace;
  --gutter: clamp(16px, 5vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html[lang="ja"] body [lang="en"],
html[lang="en"] body [lang="ja"] { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-width: 320px; background: var(--cream); color: var(--ink);
  font-family: var(--f-sans); font-size: 17px; line-height: 1.9;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html[lang="en"] body { font-family: var(--f-latin); line-height: 1.7; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) .pull { word-break: auto-phrase; }
a { color: inherit; }
::selection { background: var(--ak); color: #fff; }
.mono { font-family: var(--f-mono); letter-spacing: .04em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top bar ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 60px;
  display: flex; align-items: center; gap: 16px; padding: 0 var(--gutter);
  color: var(--n-fg); transition: background .3s, color .3s, box-shadow .3s;
}
.top.is-solid { background: rgba(250,246,240,.92); color: var(--ink); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.top-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.top-logo svg { height: 22px; width: auto; display: block; }
.top-logo .logo-dot { fill: var(--warm); }
.top.is-solid .top-logo .logo-dot { fill: var(--ak); }
.top-tag { font-size: 12px; opacity: .7; padding-left: 10px; border-left: 1px solid currentColor; line-height: 1.2; }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang { display: flex; align-items: center; gap: 4px; font-size: 12px; font-family: var(--f-mono); }
.lang button { appearance: none; border: 0; background: none; color: inherit; font: inherit; padding: 6px 4px; cursor: pointer; opacity: .55; }
.lang button[aria-pressed="true"] { opacity: 1; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.top-cta { font-size: 13px; text-decoration: none; padding: 7px 14px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.top-cta:hover { background: var(--ak); border-color: var(--ak); color: #fff; }
@media (max-width: 560px) { .top-tag, .top-cta { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; color: var(--n-fg);
  background:
    radial-gradient(ellipse 60% 55% at 72% 50%, rgba(200,68,58,.16), transparent 70%),
    linear-gradient(rgba(169,204,255,.06) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(169,204,255,.06) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(#0A1626, #0C1B2E);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center;
  padding: 90px var(--gutter) 60px; gap: 24px; overflow: hidden;
}
.hero-copy { position: relative; z-index: 2; max-width: 620px; }
.crumbs { font-size: 11.5px; color: var(--n-fg-3); display: flex; gap: 8px; margin-bottom: 26px; }
.crumbs a { color: var(--n-fg-2); text-decoration: none; }
.crumbs a:hover { color: var(--n-fg); }
.hero h1 { margin: 0; font-weight: 400; }
.kicker { font-size: 12.5px; font-weight: 500; color: var(--warm); letter-spacing: .08em; line-height: 1.6; margin-bottom: 20px; display: flex; gap: 10px; align-items: center; }
.kicker::before { content: ''; flex: none; width: 26px; height: 1px; background: currentColor; }
.h1-main { display: block; font-family: var(--f-sans); font-size: clamp(38px, 6.2vw, 84px); line-height: 1.12; font-weight: 900; letter-spacing: -.01em; }
html[lang="en"] .h1-main { font-family: var(--f-latin); font-weight: 800; letter-spacing: -.025em; line-height: 1.04; }
.h1-main em { font-style: normal; color: var(--warm); }
.hero-lead { margin-top: 26px; font-size: clamp(15px, 1.5vw, 18px); color: var(--n-fg-2); max-width: 34em; }
.hero-meta time { color: inherit; }
.hero-meta { margin-top: 30px; font-size: 12px; color: var(--n-fg-3); display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { position: relative; height: min(70vh, 620px); min-height: 320px; }
.hero-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 120px; height: 120px; display: grid; place-items: center; }
.hero-core svg { width: 100%; height: 100%; }
.hero-legend { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 18px; font-size: 11.5px; color: var(--n-fg-3); }
.hero-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.hero-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 1px; height: 38px; background: rgba(232,238,245,.25); overflow: hidden; }
.hero-cue::after { content: ''; position: absolute; inset: 0; background: var(--warm); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 96px; align-content: start; }
  .hero-art { height: 340px; min-height: 0; margin-top: 8px; }
  .hero-core { width: 92px; height: 92px; }
  .hero-cue { display: none; }
}

/* ---------- article ---------- */
.wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.wide { max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: clamp(64px, 10vw, 120px) 0 0; }
.sec:last-of-type { padding-bottom: clamp(64px, 10vw, 120px); }
.sec-no { font-family: var(--f-mono); font-size: 12px; color: var(--ak); letter-spacing: .12em; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sec-no::after { content: ''; height: 1px; width: 40px; background: currentColor; opacity: .5; }
.sec h2 { font-size: clamp(27px, 3.6vw, 42px); line-height: 1.3; font-weight: 900; letter-spacing: -.005em; }
html[lang="en"] .sec h2 { font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.sec h2 small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-3); margin-top: 10px; font-family: var(--f-mono); letter-spacing: .04em; }
.sec p { margin-top: 1.1em; color: var(--ink-2); }
.sec p strong { color: var(--ink); font-weight: 700; background: linear-gradient(transparent 62%, rgba(180,95,47,.18) 62%); }
.pull { margin-top: 28px; padding: 18px 22px; border-left: 3px solid var(--ak); background: var(--paper); border-radius: 0 10px 10px 0; font-weight: 700; font-size: 17.5px; line-height: 1.7; }
.pull b { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--ak); letter-spacing: .14em; font-weight: 500; margin-bottom: 4px; }

/* summary + contents */
.sec-first { padding-top: clamp(48px, 7vw, 80px); }
.tldr { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px 20px; box-shadow: 0 18px 40px -30px rgba(12,27,46,.35); }
.sec .tldr-h { font-size: 15px; font-weight: 700; color: var(--ak); letter-spacing: .04em; margin-bottom: 10px; }
.tldr ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tldr li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.75; color: var(--ink-2); }
.tldr li::before { content: ''; position: absolute; left: 4px; top: .78em; width: 7px; height: 7px; border-radius: 2px; background: var(--ak); transform: rotate(45deg); }
.tldr b { color: var(--ink); }
.toc { margin-top: 26px; }
.sec .toc-h { font-size: 12px; font-weight: 500; color: var(--ink-3); letter-spacing: .12em; margin-bottom: 8px; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 22px; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); text-decoration: none; font-size: 14.5px; color: var(--ink-2); }
.toc a::before { content: counter(toc, decimal-leading-zero); font: 500 12px/1.9 var(--f-mono); color: var(--ak); }
.toc a:hover { color: var(--ak); }
@media (max-width: 640px) { .toc ol { grid-template-columns: 1fr; } }

/* news: stats + timeline */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 30px; }
.stat { background: var(--night); color: var(--n-fg); border-radius: 14px; padding: 18px 18px 16px; position: relative; overflow: hidden; }
.stat::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--bad); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease); }
.stat.in::after, html:not(.js) .stat::after { transform: scaleX(1); }
.stat b { font: 800 clamp(30px, 3.4vw, 42px)/1.1 var(--f-latin); color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat b span[lang] { font-size: .5em; font-weight: 700; margin-right: 2px; }
.stat .u { font-size: 14px; font-weight: 700; color: var(--warm); margin-left: 4px; }
.stat p { margin: 8px 0 0 !important; font-size: 13px !important; line-height: 1.6; color: var(--n-fg-2) !important; }
.stats-src { margin-top: 10px !important; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } }
.news { list-style: none; margin: 34px 0 0; padding: 0; position: relative; }
.news::before { content: ''; position: absolute; left: 76px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--line), rgba(200,68,58,.45)); }
.news-item { display: grid; grid-template-columns: 64px 1fr; gap: 0 34px; padding: 0 0 26px; position: relative; }
.news-item::before { content: ''; position: absolute; left: 71px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--cream); border: 2px solid var(--ink-3); }
.news-item.is-new::before { border-color: var(--red); background: var(--red); box-shadow: 0 0 0 0 rgba(200,68,58,.5); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(200,68,58,.45); } 100% { box-shadow: 0 0 0 12px rgba(200,68,58,0); } }
.news-item time { font: 600 13px/1.9 var(--f-mono); color: var(--ink-3); text-align: right; }
.news-item.is-new time { color: var(--red); }
.news-item h3 { font-size: 17px; line-height: 1.5; }
.news-item p { margin: 6px 0 0; font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.news-link { font-size: 12.5px !important; color: var(--ink-3) !important; }
.news-link a { display: inline-block; font: 600 11.5px var(--f-mono); color: var(--ak); text-decoration: none; border: 1px solid rgba(180,95,47,.35); border-radius: 6px; padding: 1px 7px; margin-left: 2px; }
.news-link a:hover { background: var(--ak); color: #fff; }
@media (max-width: 640px) {
  .news::before { left: 6px; }
  .news-item { grid-template-columns: 1fr; padding-left: 30px; }
  .news-item::before { left: 1px; }
  .news-item time { text-align: left; }
}

/* three causes */
.causes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.cause { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 18px 18px; position: relative; overflow: hidden; }
.cause .n { font-family: var(--f-mono); font-size: 12px; color: var(--red); }
.cause h3 { font-size: 18px; margin: 6px 0 8px; line-height: 1.4; }
.cause p { margin: 0; font-size: 14.5px; line-height: 1.75; }
.cause .fix { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13.5px; font-weight: 700; color: var(--green); display: flex; gap: 8px; align-items: baseline; }
.cause .fix::before { content: '→'; font-family: var(--f-mono); }
.cause svg { width: 44px; height: 44px; position: absolute; right: 14px; top: 14px; color: rgba(200,68,58,.55); }
@media (max-width: 760px) { .causes { grid-template-columns: 1fr; } }
.src { font-size: 12.5px !important; color: var(--ink-3) !important; }

/* ---------- scene (animated explainer) ---------- */
.scene {
  margin: 34px auto 0; width: min(980px, calc(100% - 2 * var(--gutter))); background: var(--night); color: var(--n-fg);
  border-radius: 18px; overflow: hidden; position: relative;
  box-shadow: 0 30px 60px -30px rgba(12,27,46,.55);
}
.scene::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(var(--n-line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--n-line) 1px, transparent 1px) 0 0 / 28px 28px;
  opacity: .35;
}
.scene-head { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--n-line); font-size: 12px; color: var(--n-fg-2); }
.scene-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(111,227,161,.6); animation: live 1.8s infinite; }
.scene.is-paused .scene-head .dot { animation: none; background: var(--n-fg-3); }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(111,227,161,.55); } 100% { box-shadow: 0 0 0 9px rgba(111,227,161,0); } }
.scene-ctl { margin-left: auto; display: flex; gap: 6px; }
.scene-ctl button, .seg button, .scn button {
  appearance: none; border: 1px solid var(--n-line); background: rgba(255,255,255,.04); color: var(--n-fg);
  font: 500 12px var(--f-mono); padding: 6px 10px; border-radius: 8px; cursor: pointer; min-height: 32px;
}
.scene-ctl button:hover, .seg button:hover, .scn button:hover { border-color: rgba(232,238,245,.4); }
.scene-ctl button:focus-visible, .seg button:focus-visible, .scn button:focus-visible, .steps li:focus-visible { outline: 2px solid var(--warm); outline-offset: 2px; }
.scene-body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.scene-art { position: relative; padding: 18px 10px 10px; min-width: 0; }
.scene-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.steps { list-style: none; padding: 18px 18px 18px 0; display: flex; flex-direction: column; gap: 6px; counter-reset: st; }
.steps li {
  counter-increment: st; position: relative; padding: 10px 12px 10px 40px; border-radius: 10px;
  font-size: 14px; line-height: 1.6; color: var(--n-fg-3); cursor: pointer; transition: color .3s, background .3s;
}
.steps li::before {
  content: counter(st); position: absolute; left: 10px; top: 10px; width: 21px; height: 21px; border-radius: 50%;
  border: 1px solid currentColor; font: 600 11px/19px var(--f-mono); text-align: center;
}
.steps li::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--warm); transform-origin: left; transform: scaleX(0); opacity: 0; }
.steps li.on { color: var(--n-fg); background: rgba(255,255,255,.06); }
.steps li.on::before { background: var(--warm); border-color: var(--warm); color: var(--night); }
.steps li.on::after { opacity: .7; animation: stepbar var(--dur, 3s) linear forwards; }
.scene.is-paused .steps li.on::after, .scene.is-still .steps li.on::after { animation: none; opacity: 0; }
.steps li.done { color: var(--n-fg-2); }
@keyframes stepbar { to { transform: scaleX(1); } }
.scene.is-still .steps li { color: var(--n-fg-2); }
.scene-foot { position: relative; padding: 12px 18px 16px; border-top: 1px solid var(--n-line); font-size: 13px; color: var(--n-fg-2); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.scene-foot b { color: var(--n-fg); font-family: var(--f-mono); }
@media (max-width: 820px) {
  .scene { border-radius: 14px; width: calc(100% - 16px); }
  .scene-body { grid-template-columns: 1fr; }
  .steps { padding: 0 12px 14px; }
  .steps li { font-size: 13.5px; padding: 8px 10px 8px 38px; }
  .steps li::before { top: 8px; }
}

/* SVG vocabulary */
.ic { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; color: var(--n-fg-2); transition: color .35s; }
.lbl { fill: var(--n-fg-2); font: 500 15px var(--f-sans); text-anchor: middle; }
html[lang="en"] .lbl { font-family: var(--f-latin); font-size: 14px; }
.lbl.sm { font-size: 12.5px; fill: var(--n-fg-3); }
.lbl.mono { font-family: var(--f-mono); font-size: 12.5px; }
.lbl.l { text-anchor: start; }
.lbl.big { font-size: 17px; font-weight: 700; fill: var(--n-fg); }
.lbl.ok { fill: var(--ok); } .lbl.bad { fill: var(--bad); } .lbl.warm { fill: var(--warm); }
.fade { opacity: 0; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.box { fill: rgba(255,255,255,.04); stroke: var(--n-line); stroke-width: 1.5; transition: fill .35s, stroke .35s; }
.box.hot-ok { fill: rgba(111,227,161,.12); stroke: var(--ok); }
.box.hot-bad { fill: rgba(255,122,107,.12); stroke: var(--bad); }
.ic.ok { color: var(--ok); } .ic.bad { color: var(--bad); } .ic.warm { color: var(--warm); } .ic.info { color: var(--info); }
.route { fill: none; stroke: rgba(232,238,245,.22); stroke-width: 2; stroke-dasharray: 3 6; }
.pkt circle { stroke: none; }
.pkt.ok circle { fill: var(--ok); filter: drop-shadow(0 0 6px rgba(111,227,161,.9)); }
.pkt.bad circle { fill: var(--bad); filter: drop-shadow(0 0 6px rgba(255,122,107,.9)); }
.pkt.info circle { fill: var(--info); filter: drop-shadow(0 0 6px rgba(158,197,245,.9)); }
.pop { fill: none; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pop .6s var(--ease) forwards; }
.pop.bad { stroke: var(--bad); } .pop.ok { stroke: var(--ok); } .pop.info { stroke: var(--info); }
@keyframes pop { from { transform: scale(.2); opacity: 1; } to { transform: scale(1); opacity: 0; } }
.xmark { stroke: var(--bad); stroke-width: 3; stroke-linecap: round; animation: xin .9s var(--ease) forwards; }
@keyframes xin { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; transform: scale(1.15); } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
.xmark, .ring { transform-box: fill-box; transform-origin: center; }

/* scene: doors */
.seg { display: inline-flex; gap: 4px; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.05); }
.seg button { border-color: transparent; background: none; color: var(--n-fg-2); font-family: var(--f-sans); white-space: nowrap; }
html[lang="en"] .seg button { font-family: var(--f-latin); }
.seg button[aria-pressed="true"] { background: var(--n-fg); color: var(--night); }
.d-wall { fill: #1A3150; stroke: rgba(169,204,255,.35); stroke-width: 2; }
.d-door { fill: #050D18; stroke: rgba(255,122,107,.0); stroke-width: 2; transition: opacity .6s var(--ease), fill .2s, stroke .2s; }
.d-door.hit { fill: rgba(255,122,107,.55); stroke: var(--bad); }
.d-port { fill: var(--n-fg-2); font: 600 12px var(--f-mono); transition: opacity .6s; }
[data-mode="closed"] .d-door, [data-mode="closed"] .d-port { opacity: 0; }
.d-tunnel { opacity: 0; transition: opacity .6s; }
[data-mode="closed"] .d-tunnel { opacity: 1; }
.d-tunnel path { stroke: var(--warm); stroke-width: 2.5; fill: none; stroke-dasharray: 6 7; animation: flow 1s linear infinite reverse; }
@keyframes flow { to { stroke-dashoffset: -13; } }
.d-count { font: 800 44px var(--f-latin); fill: var(--bad); text-anchor: middle; transition: fill .4s; }
[data-mode="closed"] .d-count { fill: var(--ok); }

/* scene: tunnel */
.t-pipe { fill: none; stroke: rgba(240,168,104,.14); stroke-width: 26; stroke-linecap: round; }
.t-pipe-line { fill: none; stroke: var(--warm); stroke-width: 2; stroke-dasharray: 6 8; stroke-linecap: round; }
.t-dig { fill: none; stroke: var(--warm); stroke-width: 26; stroke-linecap: round; opacity: .14; }
.t-glow { fill: rgba(240,168,104,.0); transition: fill .4s; }
[data-step="2"] .t-glow { fill: rgba(240,168,104,.12); }

/* scene: tailscale */
.n-net { fill: rgba(111,227,161,.04); stroke: rgba(111,227,161,.5); stroke-width: 1.6; stroke-dasharray: 8 6; }
.n-link { fill: none; stroke: var(--ok); stroke-width: 2.5; stroke-dasharray: 7 7; opacity: 0; transition: opacity .5s; }
.n-link.on { opacity: 1; animation: flow 1s linear infinite; }
.badge rect { fill: rgba(111,227,161,.14); stroke: var(--ok); stroke-width: 1.2; }
.badge text { fill: var(--ok); font: 600 12px var(--f-sans); }
html[lang="en"] .badge text { font-family: var(--f-latin); }

/* scene: admin gate */
.vault { stroke-dasharray: 0; }

/* scene: phishing */
.ph-url { fill: var(--bad); font: 500 11.5px var(--f-mono); }
.ph-bar { fill: rgba(255,255,255,.07); }
.chip rect { fill: var(--bad); }
.chip text { fill: #fff; font: 700 12px var(--f-mono); text-anchor: middle; }
.row-tag { font: 700 13px var(--f-sans); fill: var(--warm); letter-spacing: .06em; }
html[lang="en"] .row-tag { font-family: var(--f-latin); }

/* ---------- AI watcher demo ---------- */
.soc-servers { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px 18px 0; }
.srv { border: 1px solid var(--n-line); border-radius: 10px; padding: 9px 10px; font-size: 12.5px; color: var(--n-fg-2); display: flex; align-items: center; gap: 8px; transition: border-color .3s, background .3s, color .3s; min-width: 0; }
.srv span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv i { flex: none; width: 20px; height: 20px; border-radius: 6px; background: rgba(111,227,161,.14); color: var(--ok); font: 700 9px/20px var(--f-mono); text-align: center; font-style: normal; position: relative; }
.srv i::after { content: ''; position: absolute; right: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: blink 2.4s infinite; }
.srv:nth-child(2) i::after { animation-delay: .6s; } .srv:nth-child(3) i::after { animation-delay: 1.2s; } .srv:nth-child(4) i::after { animation-delay: 1.8s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.srv.on { border-color: var(--warm); color: var(--n-fg); background: rgba(240,168,104,.08); }
.srv.alert { border-color: var(--bad); background: rgba(255,122,107,.1); }
.srv.alert i { background: rgba(255,122,107,.2); color: var(--bad); }
.srv.alert i::after { background: var(--bad); animation-duration: .5s; }
.soc-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; padding: 12px 18px 16px; }
.term { background: #050C16; border: 1px solid var(--n-line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; min-height: 330px; }
.term-bar { padding: 8px 12px; font: 500 11.5px var(--f-mono); color: var(--n-fg-3); border-bottom: 1px solid var(--n-line); display: flex; gap: 8px; }
.term-bar b { color: var(--n-fg-2); font-weight: 500; }
.term-body { flex: none; padding: 8px 10px; font: 11.5px/1.75 var(--f-mono); color: rgba(232,238,245,.62); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; height: 300px; -webkit-mask-image: linear-gradient(transparent, #000 36px); mask-image: linear-gradient(transparent, #000 36px); }
.ln { flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: lnin .25s var(--ease); border-radius: 4px; padding: 1px 6px; margin-top: 2px; }
.ln .t { color: var(--n-fg-3); } .ln .ip { color: var(--info); } .ln .c2 { color: var(--ok); } .ln .c4 { color: var(--warm); }
.ln.sus { background: rgba(255,122,107,.0); transition: background .4s; }
.ln.flag { background: rgba(255,122,107,.16); color: #FFD3CC; }
.ln.flag .ip { color: var(--bad); }
.ln.blocked { color: var(--bad); }
.ln.decoy { color: #D9C3FF; }
@keyframes lnin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.agent { border: 1px solid var(--n-line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: rgba(255,255,255,.03); min-width: 0; }
.agent-head { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.agent-head svg { width: 30px; height: 30px; color: var(--ok); transition: color .3s; }
.agent-state { margin-left: auto; font: 600 11px var(--f-mono); padding: 4px 9px; border-radius: 999px; background: rgba(111,227,161,.14); color: var(--ok); transition: background .3s, color .3s; white-space: nowrap; }
.agent[data-level="warn"] .agent-state { background: rgba(240,168,104,.16); color: var(--warm); }
.agent[data-level="warn"] .agent-head svg { color: var(--warm); }
.agent[data-level="bad"] .agent-state { background: rgba(255,122,107,.18); color: var(--bad); }
.agent[data-level="bad"] .agent-head svg { color: var(--bad); }
.agent-steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.agent-steps li { border-radius: 9px; padding: 8px 10px; background: rgba(255,255,255,.03); border: 1px solid transparent; transition: background .3s, border-color .3s, opacity .3s; opacity: .45; }
.agent-steps li b { display: block; font: 600 11px var(--f-mono); letter-spacing: .1em; color: var(--n-fg-3); }
.agent-steps li p { margin: 2px 0 0; font-size: 13px; line-height: 1.55; color: var(--n-fg); min-height: 1.55em; }
.agent-steps li.on { opacity: 1; border-color: rgba(240,168,104,.5); background: rgba(240,168,104,.07); }
.agent-steps li.done { opacity: 1; }
.act-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font: 700 12px var(--f-mono); padding: 4px 10px; border-radius: 7px; letter-spacing: .06em; }
.act-chip.ban { background: var(--bad); color: #1A0B08; }
.act-chip.shadow { background: #B79CFF; color: #150C2B; }
.toast { position: absolute; right: 18px; bottom: 18px; background: var(--n-fg); color: var(--night); border-radius: 12px; padding: 10px 14px; font-size: 13px; display: flex; gap: 10px; align-items: center; box-shadow: 0 14px 30px -10px rgba(0,0,0,.5); opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s var(--ease); pointer-events: none; max-width: min(340px, calc(100% - 36px)); }
.toast.on { opacity: 1; transform: none; }
.toast svg { width: 22px; height: 22px; flex: none; color: var(--ak); }
.scn { display: flex; gap: 6px; flex-wrap: wrap; }
.scn button { font-family: var(--f-sans); }
html[lang="en"] .scn button { font-family: var(--f-latin); }
.scn button[aria-pressed="true"] { background: var(--warm); color: var(--night); border-color: var(--warm); }
.demo-note { font-size: 11.5px; color: var(--n-fg-3); }
@media (max-width: 820px) {
  .soc-servers { grid-template-columns: repeat(2, 1fr); padding: 12px 12px 0; }
  .soc-grid { grid-template-columns: 1fr; padding: 10px 12px 14px; }
  .term { min-height: 0; }
  .term-body { height: 210px; font-size: 10.5px; }
  .toast { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* ban vs shadowban cards */
.acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.act { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.act .tag { display: inline-block; font: 700 11.5px var(--f-mono); padding: 3px 9px; border-radius: 6px; letter-spacing: .06em; }
.act .tag.ban { background: var(--red); color: #fff; }
.act .tag.shadow { background: #6E54C9; color: #fff; }
.act .tag.tell { background: var(--ink); color: #fff; }
.act h3 { font-size: 17px; margin: 10px 0 6px; line-height: 1.45; }
.act p { margin: 0; font-size: 14.5px; line-height: 1.75; }
@media (max-width: 760px) { .acts { grid-template-columns: 1fr; } }

.guard { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.guard div { border-radius: 14px; padding: 18px; font-size: 14.5px; line-height: 1.75; }
.guard .yes { background: rgba(47,125,79,.08); border: 1px solid rgba(47,125,79,.25); }
.guard .no { background: rgba(200,68,58,.06); border: 1px solid rgba(200,68,58,.2); }
.guard b { display: block; font-size: 13px; margin-bottom: 6px; }
.guard .yes b { color: var(--green); } .guard .no b { color: var(--red); }
.guard ul { margin: 0; padding-left: 1.2em; color: var(--ink-2); }
@media (max-width: 640px) { .guard { grid-template-columns: 1fr; } }

/* ---------- layers ---------- */
.layers { margin-top: 34px; position: relative; display: grid; grid-template-columns: 1fr 120px; gap: 0 18px; }
.layer { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px; margin-bottom: 8px; background: #fff; border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; grid-column: 1; }
.layer .lv { font: 700 12px var(--f-mono); color: var(--ak); width: 26px; flex: none; }
.layer h3 { font-size: 15.5px; line-height: 1.45; }
.layer p { margin: 2px 0 0 !important; font-size: 13px !important; line-height: 1.55; color: var(--ink-3) !important; }
.layer .cnt { margin-left: auto; font: 700 13px var(--f-mono); color: var(--green); white-space: nowrap; opacity: 0; transition: opacity .3s; }
.layer .cnt.on { opacity: 1; }
.layer.hit { border-color: var(--red); box-shadow: 0 0 0 4px rgba(200,68,58,.12); }
.layer-lane { grid-column: 2; grid-row: 1 / span 5; position: relative; border-radius: 12px; background: repeating-linear-gradient(180deg, var(--paper) 0 6px, transparent 6px 12px); margin-bottom: 8px; overflow: hidden; }
.layer-lane .drop { position: absolute; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px rgba(200,68,58,.7); top: -20px; }
.layer-lane .lane-lbl { position: absolute; top: 8px; left: 0; right: 0; text-align: center; font: 500 10.5px var(--f-mono); color: var(--ink-3); }
@media (max-width: 640px) {
  .layers { grid-template-columns: 1fr 46px; gap: 0 8px; }
  .layer { padding: 12px 12px; gap: 10px; }
  .layer .cnt { display: none; }
  .layer-lane .lane-lbl { display: none; }
}

/* ---------- honesty + checklist ---------- */
.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 26px; }
.four div { background: var(--paper); border-radius: 12px; padding: 14px; font-size: 14px; line-height: 1.55; font-weight: 700; }
.four i { display: block; font: 600 11px var(--f-mono); font-style: normal; color: var(--ak); margin-bottom: 4px; }
@media (max-width: 760px) { .four { grid-template-columns: 1fr 1fr; } }
.check { list-style: none; padding: 0; margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.check li { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.check label { display: flex; gap: 14px; padding: 16px 18px; cursor: pointer; align-items: flex-start; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid rgba(30,42,55,.3); margin: 2px 0 0; display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.check input::after { content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); opacity: 0; }
.check input:checked { background: var(--green); border-color: var(--green); }
.check input:checked::after { opacity: 1; }
.check input:focus-visible { outline: 2px solid var(--ak); outline-offset: 2px; }
.check b { display: block; font-size: 16px; line-height: 1.5; }
.check span span { display: block; font-size: 14px; color: var(--ink-3); line-height: 1.65; margin-top: 2px; }
.check-score { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.check-score b { color: var(--green); font-family: var(--f-mono); }

/* FAQ, glossary, sources */
.faq { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; font-size: 16px; line-height: 1.55; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 13px; font: 400 22px var(--f-latin); color: var(--ak); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 !important; padding: 0 18px 16px; font-size: 15px; }
.faq summary:focus-visible { outline: 2px solid var(--ak); outline-offset: 2px; border-radius: 12px; }
.gloss { margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gloss > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.gloss dt { font-weight: 700; font-size: 15.5px; }
.gloss dfn { font-style: normal; }
.gloss dd { margin: 4px 0 0; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
@media (max-width: 640px) { .gloss { grid-template-columns: 1fr; } }
.sec .src-h { font-size: 18px; }
.sources { margin: 14px 0 0; padding-left: 1.4em; font-size: 13.5px; line-height: 1.8; color: var(--ink-3); }
.sources a { color: var(--ink-2); }
.sec-last { padding-bottom: clamp(64px, 10vw, 120px); }

.cta { margin-top: 44px; background: var(--night); color: var(--n-fg); border-radius: 18px; padding: clamp(24px, 4vw, 40px); display: flex; gap: 22px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta h3 { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.45; }
.cta p { margin: 8px 0 0 !important; color: var(--n-fg-2) !important; font-size: 14.5px; }
.cta a { flex: none; background: var(--warm); color: var(--night); text-decoration: none; font-weight: 700; padding: 13px 22px; border-radius: 999px; font-size: 15px; }
.cta a:hover { background: #fff; }

.foot { background: #0A1626; color: rgba(232,238,245,.55); padding: 30px var(--gutter); font-size: 12.5px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: space-between; }
.foot a { color: inherit; }

/* reveal (only when JS runs, so the article is readable without it) */
html.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .rv { opacity: 1; transform: none; transition: none; }
  .hero-cue::after, .scene-head .dot, .d-tunnel path, .n-link.on, .srv i::after { animation: none; }
}

/* phone: SVG text is in viewBox units, so scale labels up to stay readable */
@media (max-width: 560px) {
  .lbl { font-size: 19px; } html[lang="en"] .lbl { font-size: 18px; }
  .lbl.sm, html[lang="en"] .lbl.sm { font-size: 16px; }
  .lbl.big, html[lang="en"] .lbl.big { font-size: 20px; }
  .badge text { font-size: 15px; }
  .row-tag { font-size: 17px; }
  .ph-url { font-size: 14px; }
  .d-port { font-size: 16px; }
}

/* link to the live dashboard (news section) */
.dash-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 22px; padding: 16px 18px; border-radius: 14px; background: var(--night); color: var(--n-fg); text-decoration: none; box-shadow: 0 18px 40px -30px rgba(12,27,46,.6); }
.dash-link .dl-k { font-size: 11px; font-weight: 600; color: var(--ok); border: 1px solid rgba(111,227,161,.4); border-radius: 999px; padding: 3px 9px; letter-spacing: .1em; }
.dash-link b { display: block; font-size: 16px; }
.dash-link span span { display: block; font-size: 13px; color: var(--n-fg-2); line-height: 1.6; margin-top: 2px; }
.dash-link .dl-a { font-size: 20px; color: var(--warm); transition: transform .2s; }
.dash-link:hover .dl-a { transform: translateX(4px); }
.tldr li a { color: var(--ak); }
.top-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; text-decoration: none; color: inherit; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.top-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(111,227,161,.2); }
.top.is-solid .top-live i { background: var(--green); }
.top-live:hover { background: rgba(127,127,127,.12); }
.top-live + .top-end { margin-left: 8px; }
@media (max-width: 420px) { .top-live span { font-size: 12px; } }
