/* CyberForte security guides. Brand: red #ed1c24, ink #0b0b0c, warm paper. System type (matches cyberforte.co.uk). */
:root {
  --red: #ed1c24;
  --red-ink: #c4141b;
  --red-soft: #fdecec;
  --bg: #fbfaf8;
  --bg-2: #f4f1ec;
  --bg-3: #ebe6df;
  --card: #ffffff;
  --ink: #0b0b0c;
  --text: #2a2a2d;
  --muted: #66646b;
  --line: #e6e1d9;
  --line-2: #d3ccc1;
  --ok: #0f7a43;
  --focus: #ed1c24;
  --shadow-1: 0 1px 2px rgba(20, 16, 10, .05);
  --shadow-2: 0 1px 2px rgba(20, 16, 10, .04), 0 12px 32px -8px rgba(20, 16, 10, .12);
  --shadow-3: 0 2px 6px rgba(20, 16, 10, .06), 0 30px 60px -20px rgba(20, 16, 10, .22);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: 16px;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* group accents, all within the red / ink / warm-paper family */
  --a1: #ed1c24; --a1-soft: #fdebeb;
  --a2: #9c1218; --a2-soft: #f6e4e3;
  --a3: #3a3a41; --a3-soft: #ebeaea;
  --a4: #a8641a; --a4-soft: #f6ecdf;
  --aot: #0b0b0c; --aot-soft: #efece7;
  /* scene */
  --sc-sky1: #f9f5ef; --sc-sky2: #efe7dc; --sc-grid: rgba(11,11,12,.045); --sc-sun: #fbd3cf; --sc-hill: #e7dfd3;
  --sc-ground: #e0d8cb; --sc-road: #cfc6b8; --sc-roadline: #f7f3ee; --sc-wall: #ffffff; --sc-wall2: #f0ebe3; --sc-roof: #2a2a2f;
  --sc-glass: #dde5ea; --sc-dark: #26262b; --sc-door: #cbc2b5; --sc-stroke: #2a2a2f; --sc-label: #8c867c; --sc-steam: #ffffff;
  --sc-belt: #4d4d54; --sc-box: #d9a46b; --sc-skin: #e7b48f; --sc-vest: #f2a516; --sc-screen: #142029; --sc-pulse: #2fbf71; --sc-led: #2fbf71;
  color-scheme: light;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --red-ink: #ff5a60; --red-soft: #2a1314; --bg: #0d0d0f; --bg-2: #151518; --bg-3: #1c1c20; --card: #131316; --ink: #f5f3ef; --text: #dad7d1; --muted: #a29f99;
    --line: #26262b; --line-2: #34343a; --ok: #4ad08a; --focus: #ff5a60;
    --shadow-1: 0 1px 2px rgba(0,0,0,.4); --shadow-2: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -8px rgba(0,0,0,.6); --shadow-3: 0 30px 60px -20px rgba(0,0,0,.8);
    --a1: #ff4d53; --a1-soft: #2a1213; --a2: #ff8c90; --a2-soft: #2a1718; --a3: #d2cdc5; --a3-soft: #222226; --a4: #e8a95e; --a4-soft: #2a1f12; --aot: #f5f3ef; --aot-soft: #1e1e22;
    --sc-sky1: #0e1016; --sc-sky2: #171a22; --sc-grid: rgba(255,255,255,.035); --sc-sun: #ece6da; --sc-hill: #1a1c23; --sc-ground: #1f2027; --sc-road: #292a31; --sc-roadline: #45464e;
    --sc-wall: #2b2c33; --sc-wall2: #24252b; --sc-roof: #08080a; --sc-glass: #ffcf73; --sc-dark: #0c0c0f; --sc-door: #3a3a42; --sc-stroke: #0a0a0c; --sc-label: #7d7a74; --sc-steam: #4a4c55;
    --sc-belt: #3d3d44; --sc-box: #b9864f; --sc-skin: #d9a47f; --sc-vest: #e39a12; --sc-screen: #0d1a22;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --red-ink: #ff5a60; --red-soft: #2a1314; --bg: #0d0d0f; --bg-2: #151518; --bg-3: #1c1c20; --card: #131316; --ink: #f5f3ef; --text: #dad7d1; --muted: #a29f99;
  --line: #26262b; --line-2: #34343a; --ok: #4ad08a; --focus: #ff5a60;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4); --shadow-2: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -8px rgba(0,0,0,.6); --shadow-3: 0 30px 60px -20px rgba(0,0,0,.8);
  --a1: #ff4d53; --a1-soft: #2a1213; --a2: #ff8c90; --a2-soft: #2a1718; --a3: #d2cdc5; --a3-soft: #222226; --a4: #e8a95e; --a4-soft: #2a1f12; --aot: #f5f3ef; --aot-soft: #1e1e22;
  --sc-sky1: #0e1016; --sc-sky2: #171a22; --sc-grid: rgba(255,255,255,.035); --sc-sun: #ece6da; --sc-hill: #1a1c23; --sc-ground: #1f2027; --sc-road: #292a31; --sc-roadline: #45464e;
  --sc-wall: #2b2c33; --sc-wall2: #24252b; --sc-roof: #08080a; --sc-glass: #ffcf73; --sc-dark: #0c0c0f; --sc-door: #3a3a42; --sc-stroke: #0a0a0c; --sc-label: #7d7a74; --sc-steam: #4a4c55;
  --sc-belt: #3d3d44; --sc-box: #b9864f; --sc-skin: #d9a47f; --sc-vest: #e39a12; --sc-screen: #0d1a22;
  color-scheme: dark;
}

.acc-a1 { --acc: var(--a1); --acc-soft: var(--a1-soft); }
.acc-a2 { --acc: var(--a2); --acc-soft: var(--a2-soft); }
.acc-a3 { --acc: var(--a3); --acc-soft: var(--a3-soft); }
.acc-a4 { --acc: var(--a4); --acc-soft: var(--a4-soft); }
.acc-ot { --acc: var(--aot); --acc-soft: var(--aot-soft); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt"; overflow-wrap: break-word; overflow-x: hidden;
}
@media (min-width: 720px) { body { font-size: 18px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-family: var(--display); }
h1 { font-size: clamp(36px, 6vw, 68px); font-weight: 750; letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 720; letter-spacing: -0.025em; }
h3 { font-size: 20px; font-weight: 680; letter-spacing: -0.012em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red-ink); margin: 0 0 10px; display: flex; gap: 10px; align-items: center; }
.note { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.kbd { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 0 6px; color: var(--muted); background: var(--card); }

/* ---------------- Header */
.topbar { height: 3px; background: var(--red); }
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
.site-header .wrap { display: flex; align-items: center; gap: 10px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { height: 20px; width: auto; }
.logo-chip { background: #fff; border-radius: 9px; padding: 7px 9px; display: inline-flex; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 560; padding: 8px 12px; border-radius: 10px; position: relative; }
.nav a:hover { background: var(--bg-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--red); }
.tools { display: flex; align-items: center; gap: 6px; }
.icon-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; min-width: 40px; justify-content: center; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.icon-btn:hover { border-color: var(--line-2); background: var(--bg-2); }
.icon-btn:active { transform: scale(.96); }
.icon-btn svg { width: 18px; height: 18px; }
#theme-btn .i-sun { display: none; }
#theme-btn[aria-pressed="true"] .i-sun { display: block; }
#theme-btn[aria-pressed="true"] .i-moon { display: none; }
.journey-pill { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px 0 6px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.journey-pill:hover { border-color: var(--line-2); }
.journey-pill.bump { animation: bump .6s var(--ease); }
@keyframes bump { 40% { transform: scale(1.12); } }
.menu-btn { display: none; }
@media (max-width: 920px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 16px; margin: 0; box-shadow: var(--shadow-2); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 17px; }
  .nav a[aria-current="page"]::after { left: 12px; right: auto; width: 28px; bottom: 6px; }
  .menu-btn { display: inline-flex; }
  .tools { margin-left: auto; }
  .search-label, .tools .kbd { display: none; }
}
@media (max-width: 400px) { .brand img { height: 16px; } .logo-chip { padding: 6px 7px; } .journey-pill { padding-right: 9px; } .tools { gap: 4px; } .icon-btn { min-width: 38px; height: 38px; padding: 0 8px; } }
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--red), #ff6a4d); }

/* rings */
.ring { transform: rotate(-90deg); flex-shrink: 0; }
.ring circle { fill: none; stroke-width: 4; }
.ring .ring-bg { stroke: var(--bg-3); }
.ring .ring-fg { stroke: var(--red); stroke-linecap: round; transition: stroke-dashoffset .9s var(--ease); }
.ring.sm { width: 28px; height: 28px; }
.ring.md { width: 44px; height: 44px; }
.ring.lg { width: 92px; height: 92px; }
.ring.xl { width: 120px; height: 120px; }
.ring.sm circle { stroke-width: 5; }

/* ---------------- Buttons and chips */
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; font: inherit; font-size: 15.5px; font-weight: 650; cursor: pointer; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); text-decoration: none; transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s; }
.btn:hover { background: var(--bg-2); }
.btn:active { transform: scale(.97); }
.btn .arrow { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--red) 70%, transparent); }
.btn.primary:hover { background: #d4141b; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14.5px; }
#done-btn[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #fff; box-shadow: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; text-decoration: none; color: var(--ink); }
.text-link .arrow { width: 18px; height: 18px; color: var(--red); transition: transform .25s var(--ease); }
.text-link:hover .arrow { transform: translateX(4px); }
.tag { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); line-height: 1.3; }
.tag.red { color: var(--red-ink); border-color: color-mix(in srgb, var(--red) 30%, var(--line)); background: var(--red-soft); }
.tag.acc { color: var(--acc); background: var(--acc-soft); border-color: color-mix(in srgb, var(--acc) 25%, var(--line)); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------- Generic sections */
.hero { padding: 56px 0 28px; }
@media (min-width: 720px) { .hero { padding: 84px 0 40px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); border-radius: 2px; }
.lead { font-size: clamp(18px, 2.1vw, 22px); line-height: 1.55; color: var(--text); max-width: 46ch; }
.byline { font-size: 14px; color: var(--muted); margin-top: 18px; }
.byline strong { color: var(--ink); }
section.block { padding: 40px 0; }
section.block.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
@media (min-width: 720px) { section.block { padding-top: 64px; padding-bottom: 64px; } }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 24px; }
.section-head p { color: var(--muted); margin: 0; max-width: 62ch; }
.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }

/* ---------------- Home hero + scene */
.home-hero { position: relative; padding: 48px 0 24px; overflow: hidden; }
@media (min-width: 720px) { .home-hero { padding: 76px 0 32px; } }
.home-hero::before { content: ""; position: absolute; inset: -20% -10% auto -10%; height: 70%; background: radial-gradient(60% 60% at 70% 20%, color-mix(in srgb, var(--red) 10%, transparent), transparent 70%); pointer-events: none; }
.hh-text { position: relative; max-width: 820px; margin-bottom: 36px; }
.hh-text h1 { max-width: 15ch; }
.hl { background: linear-gradient(transparent 74%, color-mix(in srgb, var(--red) 28%, transparent) 74%, color-mix(in srgb, var(--red) 28%, transparent) 92%, transparent 92%); padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hh-text .lead { margin-bottom: 26px; }

.scene { position: relative; display: grid; gap: 14px; }
.scene-stage { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-3); background: var(--sc-sky1); }
.scene-svg { display: block; width: 100%; height: auto; }
@media (min-width: 860px) {
  .scene-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 20px 24px; }
  .scene-card .sc-body { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: center; }
  .scene-card .sc-body .sc-k, .scene-card .sc-body h3, .scene-card .sc-body .sc-tag { grid-column: 1; }
  .scene-card .sc-body .btn { grid-column: 2; grid-row: 1 / span 3; }
  .scene-card .sc-tag { margin: 0; }
  .sc-nav { border-top: 0; padding-top: 0; margin: 0; border-left: 1px solid var(--line); padding-left: 20px; }
}
.scene-card { background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 14px; box-shadow: var(--shadow-2); }
.scene-card h3 { font-size: 21px; margin: 0 0 6px; }
.sc-k { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red-ink); margin: 0 0 6px; }
.sc-tag { font-size: 15.5px; color: var(--text); margin: 0 0 14px; }
.sc-body { min-height: 150px; }
.sc-body.swap { animation: swap .35s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } }
.sc-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.sc-pos { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.spots { position: absolute; inset: 0; }
.scene-canvas { position: relative; }
.scene-3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s var(--ease); }
.scene.is-3d .scene-3d { opacity: 1; }
.scene.is-3d .scene-svg { opacity: 0; }
.scene.is-3d .scene-stage { background: radial-gradient(120% 90% at 30% 10%, #ffffff 0%, var(--sc-sky1) 45%, var(--sc-sky2) 100%); }
:root[data-theme="dark"] .scene.is-3d .scene-stage { background: radial-gradient(120% 90% at 70% 0%, #26304a 0%, #121621 50%, #0b0d13 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .scene.is-3d .scene-stage { background: radial-gradient(120% 90% at 70% 0%, #26304a 0%, #121621 50%, #0b0d13 100%); } }
.scene.is-3d .spot { transition: transform .25s var(--ease), background .2s; }
.swipe-hint { display: none; }
@media (max-width: 700px) {
  .scene-stage { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .scene-stage::-webkit-scrollbar { display: none; }
  .scene-canvas { width: 640px; }
  .spot { width: 28px; height: 28px; font-size: 12px; }
  .swipe-hint { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 13px; color: var(--muted); margin: -4px 0 0; }
  .swipe-hint::before, .swipe-hint::after { content: ""; width: 18px; height: 1.5px; background: var(--line-2); }
}
.spot { position: absolute; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; background: var(--red); color: #fff; font: 700 13px/1 var(--font); cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(237, 28, 36, .45); transition: transform .25s var(--ease), background .2s; padding: 0; }
.spot::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--red); opacity: 0; }
.spot:hover, .spot.on { transform: translate(-50%, -50%) scale(1.18); background: var(--ink); border-color: var(--red); color: var(--bg); }
.spot.seen:not(.on) { background: color-mix(in srgb, var(--red) 70%, #000); }
.scene-svg .area { transition: opacity .4s var(--ease); }
.scene.has-on .scene-svg .area:not(.on) { opacity: .42; }
.scene-svg .area.on { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--red) 55%, transparent)); }
.scene-svg .area.on rect, .scene-svg .area.on path:not(.sc-pulse) { stroke: var(--red); }
/* scene fills */
.scene-svg .sc-sky1 { stop-color: var(--sc-sky1); } .scene-svg .sc-sky2 { stop-color: var(--sc-sky2); }
.sc-gridline { stroke: var(--sc-grid); stroke-width: 1; }
.sc-sun { fill: var(--sc-sun); }
.sc-hill { fill: var(--sc-hill); }
.sc-ground { fill: var(--sc-ground); }
.sc-road { fill: var(--sc-road); }
.sc-roadline { stroke: var(--sc-roadline); stroke-width: 3; fill: none; }
.scene-svg .sc-wall, .scene-svg .sc-wall2, .scene-svg .sc-roof, .scene-svg .sc-glass, .scene-svg .sc-dark, .scene-svg .sc-door, .scene-svg .sc-van, .scene-svg .sc-box, .scene-svg .sc-vest, .scene-svg .sc-skin, .scene-svg .sc-belt { stroke: var(--sc-stroke); stroke-width: 1.5; stroke-linejoin: round; }
.sc-wall { fill: var(--sc-wall); } .sc-wall2 { fill: var(--sc-wall2); } .sc-roof { fill: var(--sc-roof); } .sc-glass { fill: var(--sc-glass); }
.sc-dark { fill: var(--sc-dark); } .sc-door { fill: var(--sc-door); } .sc-van { fill: var(--sc-wall); } .sc-box { fill: var(--sc-box); }
.sc-vest { fill: var(--sc-vest); } .sc-skin { fill: var(--sc-skin); } .sc-belt { fill: var(--sc-belt); }
.sc-hub { fill: #9a958c; }
.sc-paper { fill: #fffdf6; stroke: var(--sc-stroke); stroke-width: 1; }
.sc-paper-stroke { stroke: #fff; stroke-width: 2; stroke-linecap: round; fill: none; }
.sc-accent { fill: var(--red); stroke: var(--sc-stroke); stroke-width: 1; }
.sc-accent-stroke { stroke: var(--red); fill: none; stroke-linecap: round; }
.sc-gate { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-dasharray: 6 5; }
.sc-brick { stroke: color-mix(in srgb, var(--sc-stroke) 35%, transparent); stroke-width: 1; fill: none; }
.sc-line { stroke: var(--sc-stroke); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sc-arm { stroke: var(--sc-label); stroke-width: 6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sc-rackline { fill: #3a3a41; }
.sc-screen { fill: var(--sc-screen); }
.sc-pulse { stroke: var(--sc-pulse); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sc-led { fill: var(--sc-led); }
.sc-wave { stroke: var(--red); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.sc-steam { fill: var(--sc-steam); opacity: .9; }
.sc-label { fill: var(--sc-label); font: 700 13px var(--font); letter-spacing: .18em; }
.sc-vanlabel { fill: var(--red); font: 800 11px var(--font); letter-spacing: .12em; }
@media (prefers-reduced-motion: no-preference) {
  .steam circle { animation: steam 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .steam circle:nth-child(2) { animation-delay: -2s; } .steam circle:nth-child(3) { animation-delay: -4s; }
  @keyframes steam { 0% { transform: translate(0, 10px) scale(.7); opacity: 0; } 30% { opacity: .9; } 100% { transform: translate(18px, -30px) scale(1.25); opacity: 0; } }
  .belt-boxes { animation: belt 7s linear infinite; }
  @keyframes belt { from { transform: translateX(-56px); } to { transform: translateX(0); } }
  .blink { animation: blink 1.6s steps(2, jump-none) infinite; }
  @keyframes blink { 50% { fill: var(--red); } }
  .sc-wave { animation: wave 2.4s ease-in-out infinite; }
  @keyframes wave { 50% { opacity: .25; } }
  .spot:not(.on)::before { animation: ping 2.6s var(--ease) infinite; }
  .spot:nth-child(2n)::before { animation-delay: -1.3s; }
  @keyframes ping { 0% { transform: scale(.6); opacity: .7; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
}

/* ---------------- Story (sticky scrollytelling) */
.story { padding: 48px 0; }
@media (min-width: 720px) { .story { padding: 80px 0 40px; } }
.story-grid { display: grid; gap: 24px; }
.story-step { padding: 8px 0 32px; }
.story-step h3 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.025em; margin-bottom: 12px; }
.story-step p:not(.kicker) { font-size: 18px; max-width: 46ch; }
.story-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; font-size: 12.5px; letter-spacing: 0; }
.story-inline { margin-bottom: 18px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.story-inline svg, .story-layer svg { display: block; width: 100%; height: auto; }
.story-sticky { display: none; }
@media (min-width: 960px) {
  .story-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; }
  .story-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 0; opacity: .35; transition: opacity .5s var(--ease); }
  .story-step.on { opacity: 1; }
  .story-inline { display: none; }
  .story-sticky { display: block; position: sticky; top: 15vh; height: 70vh; align-self: start; }
  .story-frame { position: relative; height: 100%; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-3); background: var(--bg-2); display: grid; place-items: center; }
  .story-layer { position: absolute; inset: 0; display: grid; place-items: center; padding: 28px; opacity: 0; transform: scale(.97); transition: opacity .6s var(--ease), transform .8s var(--ease); }
  .story-layer.on { opacity: 1; transform: none; }
  .story-layer svg { max-height: 100%; }
  .story-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
  .story-dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--line-2); transition: width .4s var(--ease), background .4s; }
  .story-dots i.on { width: 26px; background: var(--red); }
}
.st-bg { fill: var(--bg-2); }
.st-grid path { stroke: color-mix(in srgb, var(--ink) 7%, transparent); stroke-width: 1; }
.st-dev { fill: var(--card); stroke: var(--ink); stroke-width: 2.5; }
.st-screen { fill: var(--sc-screen); }
.st-knob { fill: var(--red); stroke: var(--ink); stroke-width: 2; }
.st-ink { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; fill: none; opacity: .7; }
.st-boundary { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-dasharray: 8 7; }
.st-flow { stroke: var(--muted); stroke-width: 3; stroke-dasharray: 2 8; stroke-linecap: round; fill: none; }
.st-node { fill: var(--card); stroke: var(--ink); stroke-width: 2.5; }
.st-label { fill: var(--muted); font: 700 12px var(--font); letter-spacing: .2em; }
.st-box { fill: var(--sc-box); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.st-tape { stroke: color-mix(in srgb, #fff 55%, var(--sc-box)); stroke-width: 14; }
.st-lock { fill: var(--red); stroke: var(--ink); stroke-width: 2.5; }
.st-shackle { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
.st-tag { fill: var(--card); stroke: var(--ink); stroke-width: 2; }
.st-mono { font: 600 16px var(--mono); fill: var(--ink); }
.st-strike { stroke: var(--red); stroke-width: 3.5; stroke-linecap: round; }
.st-zone { fill: var(--card); stroke: var(--ink); stroke-width: 2; stroke-dasharray: 3 6; }
.st-fw { fill: var(--red); stroke: var(--ink); stroke-width: 2; }
.st-shield { fill: var(--red); stroke: var(--ink); stroke-width: 2.5; }
.st-tick { stroke: #fff; stroke-width: 3.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .story-layer.on .st-boundary { animation: dash 14s linear infinite; }
  @keyframes dash { to { stroke-dashoffset: -150; } }
  .story-layer.on .st-strike { stroke-dasharray: 110; animation: draw .9s .3s var(--ease) both; }
  .story-layer.on .st-tick { stroke-dasharray: 30; animation: draw .7s .4s var(--ease) both; }
  @keyframes draw { from { stroke-dashoffset: 110; } to { stroke-dashoffset: 0; } }
}

/* ---------------- Cards */
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--text); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.card-title { display: block; font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.25; margin: 4px 0 8px; letter-spacing: -0.012em; }
.card p { font-size: 15.5px; color: var(--muted); margin: 0; line-height: 1.55; }
.card .meta { margin-top: auto; padding-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pcard { padding: 20px 20px 18px; overflow: hidden; }
.pcard::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--acc); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
a.pcard:hover::after { transform: scaleX(1); }
.pcard-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.pcard-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; position: relative; overflow: hidden; transition: transform .4s var(--ease); }
.pcard-ic::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(color-mix(in srgb, var(--acc) 10%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--acc) 10%, transparent) 1px, transparent 1px); background-size: 8px 8px; }
.pcard-ic .ic { width: 30px; height: 30px; position: relative; }
a.pcard:hover .pcard-ic { transform: rotate(-6deg) scale(1.06); }
.pcard-num { font-family: var(--display); font-size: 40px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: color-mix(in srgb, var(--acc) 22%, var(--bg-3)); font-variant-numeric: tabular-nums; transition: color .3s; }
a.pcard:hover .pcard-num { color: var(--acc); }
.done-badge { display: none; font-size: 12.5px; font-weight: 700; color: var(--ok); gap: 4px; align-items: center; margin-left: auto; }
.done-badge .tick { width: 15px; height: 15px; }
.done-badge .tick path { stroke: currentColor; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.is-done .done-badge { display: inline-flex; }
.pcard.is-done { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.pcard.is-done .pcard-ic { background: color-mix(in srgb, var(--ok) 14%, var(--card)); color: var(--ok); }

/* shelves (groups) */
.shelf { margin-top: 32px; }
.shelf[hidden] { display: none; }
.shelf-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.shelf-head h3 { font-size: 24px; margin-bottom: 4px; }
.shelf-head .kicker { color: var(--acc); margin-bottom: 4px; }
.shelf-head .note { margin: 0; max-width: 70ch; }
.shelf-n { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--acc); color: var(--bg); font: 800 20px var(--display); }
.acc-ot .shelf-n { background: var(--ink); }

/* chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); cursor: pointer; transition: background .2s, color .2s, transform .2s var(--ease); }
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--acc); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* playbook map (ENISA groups visualised) */
.map { margin: 8px 0 0; }
.map-cols { display: grid; gap: 16px; }
@media (min-width: 860px) { .map-cols { grid-template-columns: 1fr 1fr; } }
.map-col { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 22px; box-shadow: var(--shadow-1); }
.map-col > h3 { font-size: 24px; margin-bottom: 2px; }
.map-col > p { color: var(--muted); font-size: 15.5px; }
.map-group { border-radius: 16px; background: var(--acc-soft); padding: 14px; margin-top: 12px; }
.map-gh { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.map-gh b { display: block; color: var(--ink); font-size: 16px; }
.map-gh small { color: var(--muted); font-size: 13px; }
.map-count { width: 34px; height: 34px; border-radius: 10px; background: var(--acc); color: var(--bg); display: grid; place-items: center; font-weight: 800; font-size: 15px; flex-shrink: 0; }
.map-dots { display: flex; flex-wrap: wrap; gap: 8px; }
.map-dot { width: 46px; height: 46px; border-radius: 13px; background: var(--card); color: var(--acc); display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--acc) 22%, var(--line)); transition: transform .25s var(--ease), background .2s, color .2s; }
.map-dot .ic { width: 24px; height: 24px; }
.map-dot:hover { transform: translateY(-3px); background: var(--acc); color: var(--bg); }
.map-dot.is-done { background: var(--ok); color: #fff; border-color: var(--ok); }

/* steps */
.steps, .layers { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 14px; }
@media (min-width: 860px) { .steps, .layers { grid-template-columns: repeat(3, 1fr); } }
.steps li { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li b, .layers li b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; font-family: var(--display); letter-spacing: -0.01em; }
.steps li p, .layers li p { margin: 0; font-size: 15.5px; color: var(--muted); }
.step-n, .layer-n { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 800; font-size: 15px; }
.layers li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.layers .layer-n { margin-bottom: 14px; background: var(--ink); color: var(--bg); }

/* hero split + progress card */
.hero-split { display: grid; gap: 28px; align-items: end; }
@media (min-width: 980px) { .hero-split { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; } }
.hero-split h1 { max-width: 14ch; }
.progress-card { display: flex; gap: 18px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: var(--shadow-2); }
.progress-card .note { margin: 2px 0 8px; font-size: 14px; }
.pc-title { font-weight: 700; color: var(--ink); margin: 0; }
.pc-ring { position: relative; flex-shrink: 0; }
.pc-ring > span, .jc-ring > span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.pc-ring b { font: 800 30px var(--display); color: var(--ink); letter-spacing: -0.04em; }
.pc-ring small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }

/* parts cards */
.part-card { padding: 24px; gap: 18px; min-height: 360px; overflow: hidden; }
.mosaic { display: flex; flex-wrap: wrap; gap: 8px; }
.mz { width: 46px; height: 46px; border-radius: 13px; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; transition: transform .45s var(--ease); }
.mz .ic { width: 60%; height: 60%; }
a.part-card:hover .mz { transform: translateY(-3px); }
a.part-card:hover .mz:nth-child(odd) { transform: translateY(3px); }
@media (max-width: 520px) { .mz { width: 38px; height: 38px; border-radius: 11px; } }
.part-meta { display: flex; gap: 16px; align-items: flex-start; }
.part-meta .big { font: 800 64px var(--display); color: var(--red); line-height: .85; letter-spacing: -0.05em; }
.part-card .card-title { font-size: 23px; margin-top: 0; }
.part-card .go { margin-top: auto; font-weight: 650; color: var(--ink); display: inline-flex; gap: 8px; align-items: center; }
.part-card .go .arrow { width: 18px; height: 18px; color: var(--red); transition: transform .25s var(--ease); }
a.part-card:hover .go .arrow { transform: translateX(4px); }

/* journey */
.journey-card { display: grid; gap: 28px; align-items: center; background: var(--ink); color: color-mix(in srgb, var(--bg) 86%, var(--ink)); border-radius: 28px; padding: 32px 24px; position: relative; overflow: hidden; }
.journey-card::before { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--red) 45%, transparent), transparent 70%); }
@media (min-width: 860px) { .journey-card { grid-template-columns: minmax(0, 1fr) auto; padding: 44px; } }
.journey-card h2 { color: var(--bg); font-size: clamp(34px, 5vw, 56px); margin: 0 0 8px; position: relative; }
.journey-card h2 b { color: #ff6a6f; }
.journey-card .note { color: color-mix(in srgb, var(--bg) 70%, var(--ink)); position: relative; max-width: 52ch; }
.journey-card .kicker { color: #ff6a6f; position: relative; }
.jc-bar { height: 10px; border-radius: 99px; background: color-mix(in srgb, var(--bg) 14%, var(--ink)); overflow: hidden; position: relative; max-width: 520px; }
.jc-bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--red), #ff7a5c); transition: width 1s var(--ease); }
.jc-rings { display: flex; gap: 20px; position: relative; flex-wrap: wrap; }
.jc-ring { position: relative; display: grid; justify-items: center; gap: 8px; text-decoration: none; color: inherit; }
.jc-ring > span { bottom: auto; height: 120px; }
.jc-ring b { font: 800 30px var(--display); color: var(--bg); letter-spacing: -0.04em; }
.jc-ring small { font-size: 13px; font-weight: 600; }
.journey-card .ring .ring-bg { stroke: color-mix(in srgb, var(--bg) 14%, var(--ink)); }

/* ---------------- Article */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 24px; margin: 0; }
.crumbs a { color: var(--muted); }
.article-head { display: grid; gap: 24px; align-items: center; padding: 22px 0 36px; }
@media (min-width: 860px) { .article-head { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding: 30px 0 52px; } }
.article-head h1 { font-size: clamp(34px, 5vw, 58px); max-width: 18ch; }
.article-head .tagline { font-size: clamp(19px, 2.2vw, 24px); color: var(--text); max-width: 38ch; line-height: 1.45; }
.art { position: relative; aspect-ratio: 1; max-width: 300px; width: 100%; border-radius: 28px; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; overflow: hidden; border: 1px solid color-mix(in srgb, var(--acc) 18%, var(--line)); }
@media (max-width: 859px) { .art { max-width: 160px; border-radius: 22px; order: -1; } }
.art-grid { position: absolute; inset: 0; background-image: linear-gradient(color-mix(in srgb, var(--acc) 12%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--acc) 12%, transparent) 1px, transparent 1px); background-size: 20px 20px; mask-image: radial-gradient(circle at 50% 50%, #000 35%, transparent 75%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 35%, transparent 75%); }
.art-ic { width: 46%; height: 46%; position: relative; stroke-width: 1.3; }
.art-num { position: absolute; left: 18px; top: 12px; font: 800 44px var(--display); letter-spacing: -0.05em; opacity: .9; }
@media (max-width: 859px) { .art-num { font-size: 26px; left: 12px; top: 8px; } }
.art-orbit { position: absolute; inset: 14%; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--acc) 35%, transparent); }
@media (prefers-reduced-motion: no-preference) { .art-orbit { animation: spin 40s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .art-ic { animation: float 6s ease-in-out infinite; } @keyframes float { 50% { transform: translateY(-6px); } } }

.layout { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); padding-bottom: 40px; }
@media (min-width: 1100px) { .layout { grid-template-columns: 230px minmax(0, 1fr); gap: 64px; } }
.content { max-width: 740px; min-width: 0; }
.rail { display: none; }
@media (min-width: 1100px) {
  .rail { display: block; }
  .rail-inner { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; padding-bottom: 12px; }
  .rail-h { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
  .rail-list { list-style: none; margin: 0 0 20px; padding: 0; border-left: 2px solid var(--line); }
  .rail-list a { display: block; padding: 6px 14px; color: var(--text); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; font-size: 15px; line-height: 1.35; transition: color .2s, border-color .2s; }
  .rail-list .sub a { padding-left: 28px; font-size: 13.5px; color: var(--muted); }
  .rail-list a:hover { color: var(--ink); }
  .rail-list a.active { border-left-color: var(--red); color: var(--ink); font-weight: 600; }
  .rail-prog p { font-size: 13.5px; color: var(--muted); margin: 8px 0 0; }
  .rail-prog b { color: var(--ink); }
}
.mini-bar { height: 6px; border-radius: 99px; background: var(--bg-3); overflow: hidden; }
.mini-bar span { display: block; height: 100%; width: 0; background: var(--red); border-radius: 99px; transition: width .8s var(--ease); }

.panel { border-radius: 22px; padding: 24px; margin: 0 0 28px; }
@media (min-width: 720px) { .panel { padding: 34px 36px; } }
.panel-label { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 14px; color: var(--muted); }
.panel-label .dot { flex-shrink: 0; margin-top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.summary { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-1); position: relative; overflow: hidden; }
.summary::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--acc, var(--red)); }
.acc-ot .summary::before { background: var(--red); }
.summary h2 { font-size: clamp(24px, 3vw, 30px); }
.summary p { font-size: 18px; line-height: 1.7; }
@media (min-width: 720px) { .summary p { font-size: 19px; } }
.summary p.first { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.6; color: var(--ink); }
.summary .pic { background: var(--bg-2); border-radius: 14px; padding: 16px 18px; margin: 22px 0 0; font-size: 16px; line-height: 1.6; }
.summary .pic strong { color: var(--ink); }
.reported { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; background: #fff3d1; color: #7a5200; border: 1px solid #efd38a; margin-right: 8px; vertical-align: 1px; }
:root[data-theme="dark"] .reported { background: #3a2d0c; color: #ffd779; border-color: #5c4712; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .reported { background: #3a2d0c; color: #ffd779; border-color: #5c4712; } }
.example { border: 1px solid var(--line); border-radius: 22px; padding: 24px; margin: 0 0 28px; background: var(--card); }
@media (min-width: 720px) { .example { padding: 30px 36px; } }
.example h3 { font-size: 21px; margin: 10px 0 8px; }
.ex-status { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.example ul { padding-left: 20px; margin: 8px 0 0; font-size: 15px; }
.lists-panel { border: 1px solid var(--line); background: var(--bg-2); }
.lists { display: grid; gap: 24px; }
@media (min-width: 720px) { .lists { grid-template-columns: 1fr 1fr; gap: 32px; } }
.lists h3 { font-size: 20px; margin-bottom: 4px; }
.lists ul { list-style: none; padding: 0; margin: 12px 0 0; }
.lists li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 16.5px; line-height: 1.55; }
.lists li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: var(--red); transform: rotate(45deg) scale(.8); }

/* Checklist */
.checklist { border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-1); transition: border-color .4s, box-shadow .4s; position: relative; overflow: hidden; }
.checklist-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.checklist-head h2 { margin: 0; font-size: clamp(24px, 3vw, 30px); }
.checklist-head .kicker { margin-bottom: 4px; }
.check-meter { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.check-count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.check-list { list-style: none; margin: 16px 0 0; padding: 0; }
.check-list li { border-top: 1px solid var(--line); position: relative; }
.check-list label { display: flex; gap: 16px; align-items: flex-start; padding: 16px 6px; cursor: pointer; border-radius: 12px; transition: background .2s; }
.check-list label:hover { background: var(--bg-2); }
.check-list input { position: absolute; opacity: 0; width: 26px; height: 26px; margin: 16px 0 0 6px; cursor: pointer; }
.check-list .cb { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line-2); background: var(--bg); display: grid; place-items: center; transition: background .25s var(--ease), border-color .25s, transform .3s var(--ease); margin-top: 1px; }
.check-list .tick { width: 18px; height: 18px; }
.check-list .tick path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .35s .05s var(--ease); }
.check-list input:checked + .cb { background: var(--red); border-color: var(--red); }
.check-list input:checked + .cb .tick path { stroke-dashoffset: 0; }
.check-list input:focus-visible + .cb { outline: 3px solid var(--focus); outline-offset: 3px; }
.check-list .ct { font-size: 17px; line-height: 1.55; transition: color .3s; }
.check-list input:checked ~ .ct { color: var(--muted); }
.check-list li.pop .cb { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.28) rotate(-6deg); } }
.check-list li.pop::after { content: ""; position: absolute; left: 19px; top: 29px; width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 -18px 0 var(--red), 16px -10px 0 #ff9a6a, 18px 8px 0 var(--red), 0 18px 0 #ffb04a, -16px 10px 0 var(--red), -16px -10px 0 #ff9a6a; opacity: 0; animation: burst .6s var(--ease); pointer-events: none; }
@keyframes burst { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.4); } }
.check-done { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--ok) 12%, var(--card)); color: var(--text); font-size: 15.5px; }
.check-done b { color: var(--ok); }
.checklist.complete { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 10%, transparent); }
.checklist.complete .check-done { display: block; animation: swap .5s var(--ease); }
.checklist.complete .ring-fg { stroke: var(--ok); }
.checklist .actions { margin-top: 20px; }

/* Original text */
.original { border: 1px solid var(--line); background: var(--bg); padding: 0; overflow: hidden; }
.original-head { background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 22px 24px; font-size: 15px; }
@media (min-width: 720px) { .original-head { padding: 26px 36px; } }
.original-head h2 { font-size: 24px; margin: 0 0 8px; }
.original-head p { margin: 0; color: var(--muted); }
.original-head .panel-label { margin-bottom: 8px; }
.original-body { padding: 8px 24px 28px; }
@media (min-width: 720px) { .original-body { padding: 16px 36px 36px; } }
.prose { font-size: 17px; line-height: 1.72; }
@media (min-width: 720px) { .prose { font-size: 18px; } }
.prose h2 { font-size: 28px; margin-top: 1.2em; letter-spacing: -0.02em; }
.prose h3 { font-size: 21px; margin-top: 1.8em; padding-top: 1em; border-top: 1px solid var(--line); }
.prose h4 { font-size: 18px; margin-top: 1.5em; }
.prose h5 { font-size: 16px; margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--red); }
.prose li > ul, .prose li > ol { margin: .4em 0 0; }
.prose code { font-family: var(--mono); font-size: .86em; background: var(--bg-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-2); }
.prose li.task { list-style: none; position: relative; }
.prose li.task .box { position: absolute; left: -26px; top: .35em; width: 16px; height: 16px; border: 2px solid var(--line-2); border-radius: 5px; }
.prose a { word-break: break-word; }
.about h2 { margin-top: 1.6em; }

.pager { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin: 12px 0 24px; }
@media (min-width: 640px) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); font-weight: 650; background: var(--card); transition: transform .3s var(--ease), box-shadow .3s; line-height: 1.35; }
.pager a:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.pager small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; margin-bottom: 2px; }
.pager .next { justify-content: flex-end; text-align: right; }
.pg-ic { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; }
.pg-ic .ic { width: 24px; height: 24px; }

/* ---------------- Footer */
.credits { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 40px; padding: 40px 0 48px; font-size: 14.5px; color: var(--muted); }
.credits .wrap { display: grid; gap: 28px; }
@media (min-width: 900px) { .credits .wrap { grid-template-columns: 1.3fr 1fr 1fr; } }
.credits h2 { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; font-family: var(--font); }
.credits p { margin: 0 0 .6em; }
.credits a { color: var(--text); }
.foot-lead .logo-chip { margin-bottom: 14px; }
.foot-lead img { height: 20px; width: auto; }
.foot-big { font: 750 22px var(--display); color: var(--ink); letter-spacing: -0.02em; }

/* ---------------- Search */
.search-dialog { border: 0; padding: 0; width: min(680px, calc(100vw - 24px)); max-height: min(80vh, 720px); border-radius: 20px; background: var(--card); color: var(--text); box-shadow: 0 30px 90px rgba(0,0,0,.4); margin-top: 8vh; overflow: hidden; }
.search-dialog[open] { animation: dlg .3s var(--ease); }
@keyframes dlg { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.search-dialog::backdrop { background: rgba(11,11,12,.5); backdrop-filter: blur(3px); }
.search-box { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.search-box > svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 18px; padding: 6px 0; }
.search-results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; max-height: calc(min(80vh, 720px) - 116px); }
.search-results a { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--text); }
.search-results a:hover, .search-results a[aria-selected="true"] { background: var(--bg-2); }
.r-ic { flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px; background: var(--red-soft); color: var(--red-ink); display: grid; place-items: center; }
.r-ic svg { width: 22px; height: 22px; }
.search-results .r-part { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--red-ink); }
.search-results .r-title { display: block; font-weight: 700; color: var(--ink); font-size: 16px; }
.search-results .r-snip { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.search-results mark { background: color-mix(in srgb, var(--red) 22%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.search-empty { padding: 18px; color: var(--muted); font-size: 15px; }
.search-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
@media (max-width: 520px) { .search-foot { display: none; } }

/* ---------------- Toast + celebration */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-size: 15px; font-weight: 600; box-shadow: var(--shadow-3); opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); z-index: 80; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.celebrate { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(11, 11, 12, .55); backdrop-filter: blur(4px); }
.celebrate[hidden] { display: none; }
.celebrate-card { position: relative; width: min(480px, 100%); background: var(--card); border-radius: 26px; padding: 36px 28px 26px; text-align: center; box-shadow: var(--shadow-3); overflow: hidden; animation: dlg .45s var(--ease); }
.celebrate-card h2 { font-size: 32px; position: relative; }
.celebrate-card p { position: relative; color: var(--text); }
.celebrate-card .actions { justify-content: center; position: relative; }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cel-badge { position: relative; width: 84px; height: 84px; border-radius: 26px; margin: 0 auto 16px; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px var(--red); }
.cel-badge .ic { width: 46px; height: 46px; }

/* figure */
figure { margin: 24px 0; }
figure img { border-radius: 16px; border: 1px solid var(--line); background: #fff; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* reveal on scroll (JS adds .in) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .rise { animation: rise .8s var(--ease) both; }
  .rise.d1 { animation-delay: .07s; } .rise.d2 { animation-delay: .14s; } .rise.d3 { animation-delay: .21s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------------- Print */
@media print {
  :root { --bg: #fff; --bg-2: #fff; --card: #fff; --text: #111; --ink: #000; --muted: #444; --line: #bbb; --line-2: #888; }
  body { font-size: 11.5pt; }
  .topbar, .site-header, .rail, .pager, .actions, .skip, .search-dialog, .chips, .crumbs, .toast, .celebrate, .art, .check-meter, .check-done, .credits .foot-lead .logo-chip { display: none !important; }
  .layout { display: block; }
  .panel, .example, .card { break-inside: avoid; box-shadow: none !important; }
  .summary::before { display: none; }
  .check-list .cb { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .check-list li { break-inside: avoid; }
  a { color: #000; text-decoration: underline; }
  .original a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; word-break: break-all; }
  body.print-checklist .original, body.print-checklist .example, body.print-checklist .lists-panel { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
