/* ==========================================================================
   Saizen Acuity · Seán Livingstone · "The Technical Win"
   White, in Apex Edge Sales Engineering's colours: cobalt for evidence,
   orange for the next move, navy slate for the ink. One block changes
   world: Spectra Logic, in deep indigo with lavender and amber and the
   spectrum's six bands. Crisp by design: hairlines, 2-4px corners, no
   glows or glass. Type is the site's: Playfair Display SC headlines,
   Playfair Display, DM Sans and DM Mono.
   ========================================================================== */

:root {
  --paper: #FFFFFF;
  --mist: #F5F9FF;
  --mist-2: #EAF1FA;
  --ink: #1A2433;
  --ink-2: #3A4A5E;
  --mut: #5A6878;
  --ln: rgba(36, 50, 68, 0.1);
  --ln-2: rgba(36, 50, 68, 0.2);
  --blue: #0047AB;
  --blue-d: #00357F;
  --blue-t: #E7EFFA;
  --blue-l: #8FB0E0;
  --orange: #FE5A1D;
  --orange-d: #D9450F;
  --orange-t: #FFEEE6;
  --gold: #E2AE36;

  --sp-ink: #0A0D31;
  --sp-panel: #12164A;
  --sp-navy: #0E2B5C;
  --sp-violet: #7A68AE;
  --sp-violet-l: #B9ADE3;
  --sp-amber: #E58E1A;
  --sp-ln: rgba(185, 173, 227, 0.18);
  --sp-ln-2: rgba(185, 173, 227, 0.34);

  --f-sc: 'Playfair Display SC', 'Playfair Display', Georgia, serif;
  --f-display: 'Playfair Display', Georgia, serif;
  --f-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --f-mono: 'DM Mono', ui-monospace, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(96px, 12vw, 160px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
em, i { font-style: normal; }
.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.4; }
.wm { font-family: var(--f-sc); font-weight: 400; letter-spacing: 0.01em; }
.wm b { font-weight: 700; color: var(--gold); }
.led { display: inline-block; width: 8px; height: 8px; background: var(--orange); flex: none; animation: led 1.6s steps(2) infinite; }
@keyframes led { 50% { opacity: 0.35; } }

/* ── buttons ────────────────────────────────────────────────────────── */
.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 6px 0 22px; border-radius: 3px; font: 600 15px/1 var(--f-body); white-space: nowrap; transition: background 0.25s, color 0.25s, box-shadow 0.25s; }
.btn__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 2px; transition: transform 0.3s var(--ease-out), background 0.25s, color 0.25s; }
.btn__ico svg { width: 15px; height: 15px; }
.btn:hover .btn__ico { transform: translate(2px, -2px); }
.btn--em { color: #fff; background: var(--orange); }
.btn--em:hover { background: var(--orange-d); }
.btn--em .btn__ico { background: rgba(255, 255, 255, 0.18); }
.btn--line { color: var(--blue); background: #fff; box-shadow: inset 0 0 0 1px var(--ln-2); }
.btn--line .btn__ico { background: var(--blue-t); }
.btn--line:hover { box-shadow: inset 0 0 0 1px var(--blue); }

/* ── boot: four gates open in turn ──────────────────────────────────── */
.boot { display: none; }
.js .boot { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--paper); clip-path: inset(0 0 0 0); transition: clip-path 0.8s var(--ease-io); animation: bootFailsafe 0.01s 4.5s forwards; }
.boot.is-done { clip-path: inset(0 0 100% 0); }
.boot.is-gone { display: none; }
.boot.is-exit { clip-path: inset(0 0 0 0); animation: none; }
.boot.is-enter { clip-path: inset(100% 0 0 0); animation: none; transition: none; }
@keyframes bootFailsafe { to { visibility: hidden; } }
.boot__in { width: min(340px, 78vw); display: grid; gap: 14px; justify-items: center; text-align: center; }
.boot__gates { display: flex; gap: 6px; }
.boot__gates i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 2px; font: 500 12px/1 var(--f-mono); color: var(--mut); box-shadow: inset 0 0 0 1px var(--ln-2); animation: gate 1.2s steps(1) infinite; }
.boot__gates i:nth-child(2) { animation-delay: 0.3s; } .boot__gates i:nth-child(3) { animation-delay: 0.6s; } .boot__gates i:nth-child(4) { animation-delay: 0.9s; }
@keyframes gate { 0%, 40% { color: #fff; background: var(--blue); box-shadow: none; } 41%, 100% { color: var(--mut); background: transparent; } }
.boot__line { font: 400 22px var(--f-display); color: var(--ink); }
.boot__bar { width: 100%; height: 2px; background: var(--ln); overflow: hidden; }
.boot__bar i { display: block; height: 100%; background: var(--orange); transform: scaleX(var(--p, 0)); transform-origin: left; }
.boot__meta { display: flex; justify-content: space-between; width: 100%; color: var(--mut); text-transform: none; letter-spacing: 0.04em; }

/* ── back ───────────────────────────────────────────────────────────── */
.back { position: fixed; z-index: 60; top: clamp(14px, 2.4vw, 26px); left: var(--gutter); height: 46px; padding: 0 18px 0 4px; gap: 10px; font: 500 14px/1 var(--f-body); color: var(--ink-2); background: #fff; box-shadow: inset 0 0 0 1px var(--ln-2); }
.back .btn__ico { width: 38px; height: 38px; background: var(--mist-2); color: var(--ink); }
.back:hover .btn__ico { transform: translateX(-3px); background: var(--blue); color: #fff; }
.back .wm { color: var(--ink); font-size: 15px; }
.js .back { opacity: 0; transform: translateY(-12px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.is-live .back, html:not(.boot-pending) .back { opacity: 1; transform: none; }

/* ── rail ───────────────────────────────────────────────────────────── */
.bus { position: fixed; z-index: 40; right: clamp(16px, 2vw, 30px); top: 50%; transform: translateY(-50%); display: none; flex-direction: column; align-items: center; gap: 16px; pointer-events: none; }
@media (min-width: 1180px) { .bus { display: flex; } }
.bus__track { position: relative; width: 2px; height: 26vh; background: var(--ln); overflow: hidden; }
.bus__fill { position: absolute; inset: 0; background: var(--blue); transform: scaleY(var(--p, 0)); transform-origin: top; }
.bus__label { writing-mode: vertical-rl; display: flex; gap: 10px; color: var(--mut); font-size: 10px; }
.bus__ref { color: var(--orange); font-weight: 500; }
.on-dark .bus__track { background: var(--sp-ln); }
.on-dark .bus__fill { background: var(--sp-violet-l); }
.on-dark .bus__label { color: rgba(255, 255, 255, 0.55); }

/* ══ HERO ═══════════════════════════════════════════════════════════════ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; isolation: isolate; padding: clamp(100px, 13vh, 150px) 0 clamp(36px, 5vh, 56px); background: var(--paper); }
.hero__media { position: absolute; inset: 0; z-index: -3; }
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero__video { opacity: 0; transition: opacity 1.2s; }
.hero.has-video .hero__video { opacity: 1; }
.hero__board { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero__veil { position: absolute; inset: 0; z-index: -2; pointer-events: none; background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.95) 36%, rgba(255, 255, 255, 0.6) 60%, rgba(255, 255, 255, 0.25)), linear-gradient(180deg, transparent 72%, #fff); }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(32px, 5vw, 76px); align-items: center; }
.hero__copy { position: relative; z-index: 3; }
.status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 3px; background: #fff; box-shadow: inset 0 0 0 1px var(--ln-2); font-size: 14px; color: var(--mut); }
.status b { color: var(--ink); font-weight: 500; }
.hero__name { margin: clamp(20px, 3vh, 28px) 0 clamp(14px, 2vh, 20px); font-family: var(--f-sc); font-weight: 400; font-size: clamp(52px, 6.3vw, 112px); line-height: 0.92; letter-spacing: -0.02em; color: var(--ink); }
.hero__l { display: block; white-space: nowrap; overflow: hidden; padding-bottom: 0.04em; }
.hero__w { display: inline-block; }
.hero__w--em { color: var(--blue); }
.hero__w .ch { display: inline-block; }
.js .hero__w .ch { transform: translateY(105%); }
.is-live .hero__w .ch { animation: chOn 0.9s var(--ease-out) forwards; animation-delay: calc(var(--i) * 45ms + var(--w, 0ms)); }
@keyframes chOn { to { transform: none; } }
.hero__claim { font: italic 400 clamp(22px, 2.1vw, 32px)/1.25 var(--f-display); color: var(--ink-2); }
.hero__claim em { font-style: normal; color: var(--ink); box-shadow: inset 0 -0.1em 0 var(--orange); }
.hero__lead { margin-top: 18px; max-width: 34em; color: var(--ink-2); font-size: clamp(16.5px, 1.25vw, 18.5px); line-height: 1.65; }
.hero__lead b { color: var(--ink); font-weight: 600; }
.hero__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.js [data-boot] { opacity: 0; transform: translateY(14px); }
.is-live [data-boot] { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
html.js:not(.boot-pending):not(.is-live) [data-boot], html.js:not(.boot-pending):not(.is-live) .hero__w .ch, html.js:not(.boot-pending):not(.is-live) .rec__pkg { opacity: 1; transform: none; }

/* the deal record */
.rec { position: relative; margin: 0; justify-self: center; width: min(420px, 100%); z-index: 1; }
.rec__pkg { position: relative; background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.js .rec__pkg { opacity: 0; transform: translateY(20px); }
.is-live .rec__pkg { opacity: 1; transform: none; transition: opacity 1s var(--ease-out) 0.3s, transform 1.1s var(--ease-out) 0.3s; }
.rec__h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; color: var(--mut); font-size: 9.5px; box-shadow: inset 0 -1px 0 var(--ink); }
.rec__st { padding: 3px 8px; border-radius: 2px; color: #fff; background: var(--blue); font-weight: 500; }
.rec__frame { position: relative; aspect-ratio: 1 / 0.98; overflow: hidden; background: var(--mist); }
.rec__grid { position: absolute; inset: 0; background: linear-gradient(var(--ln) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, var(--ln) 1px, transparent 1px) 0 0 / 28px 28px; }
.rec__fig { position: absolute; inset: 0; }
.rec__fig img { position: absolute; left: 50%; bottom: 0; width: 102%; height: auto; max-width: none; transform: translateX(-50%); }
.rec__stamp { position: absolute; right: 14px; top: 16px; padding: 7px 9px; border-radius: 2px; color: var(--orange); font-size: 10px; line-height: 1.25; font-weight: 500; text-align: center; box-shadow: inset 0 0 0 1.5px var(--orange); background: rgba(255, 255, 255, 0.86); transform: rotate(6deg); }
.js .rec__stamp { opacity: 0; transform: rotate(6deg) scale(1.6); }
.is-live .rec__stamp { opacity: 1; transform: rotate(6deg) scale(1); transition: opacity 0.3s 1.9s, transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) 1.9s; }
.rec__score { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 12px; box-shadow: inset 0 1px 0 var(--ink); }
.rec__bars { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.rec__bars li { position: relative; height: 34px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 3px; font: 500 9.5px/1 var(--f-mono); color: #fff; background: var(--blue-t); overflow: hidden; z-index: 0; }
.rec__bars li::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--blue); transform: scaleY(0); transform-origin: bottom; }
.is-live .rec__bars li::before { transform: none; transition: transform 0.7s var(--ease-out); transition-delay: calc(1.1s + var(--i, 0) * 70ms); }
.rec__tot { display: flex; align-items: baseline; gap: 2px; }
.rec__tot b { font: 400 40px/1 var(--f-display); color: var(--blue); }
.rec__tot span { font: 400 16px var(--f-display); color: var(--mut); }
.rec__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; box-shadow: inset 0 1px 0 var(--ink); }
.rec__meta > div { padding: 8px 12px; }
.rec__meta > div + div { box-shadow: inset 1px 0 0 var(--ink); }
.rec__meta dt { font-size: 8.5px; color: var(--mut); }
.rec__meta dd { margin: 2px 0 0; font: 400 15px/1.2 var(--f-display); }
.rec__meta > div:last-child dd { color: var(--orange-d); }

.readouts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: clamp(36px, 5vh, 64px); background: #fff; box-shadow: inset 0 0 0 1px var(--ln-2); }
.ro { position: relative; padding: 16px 18px 18px; }
.ro + .ro { box-shadow: inset 1px 0 0 var(--ln); }
.ro::before { content: ''; position: absolute; left: 18px; top: 0; width: 24px; height: 2px; background: var(--orange); }
.ro dt { font-size: 13px; color: var(--mut); line-height: 1.35; min-height: 2.7em; }
.ro dd { margin: 8px 0 0; font: 400 clamp(34px, 3.4vw, 52px)/1 var(--f-display); color: var(--ink); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.ro dd small { font-size: 0.5em; color: var(--blue); margin: 0 0.04em; }

/* ══ SECTIONS ═══════════════════════════════════════════════════════════ */
.sec { position: relative; padding: var(--section) 0; overflow-x: clip; isolation: isolate; background: var(--paper); }
.tint { background: var(--mist); }
.sh { margin-bottom: clamp(36px, 5vw, 60px); }
.sh__ref { display: flex; align-items: center; gap: 12px; color: var(--mut); margin-bottom: 18px; }
.sh__ref b { display: inline-grid; place-items: center; min-width: 36px; height: 24px; padding: 0 8px; border-radius: 2px; color: #fff; font-weight: 500; background: var(--blue); }
.sh__ref i { flex: 1; max-width: 200px; height: 1px; background: var(--ink); transform-origin: left; }
.js .sh__ref i { transform: scaleX(0); transition: transform 1s var(--ease-out) 0.2s; }
.js .is-in .sh__ref i, .js .sh__ref.is-in i { transform: none; }
.sh__h { font: 400 clamp(40px, 5vw, 78px)/1 var(--f-sc); letter-spacing: -0.015em; max-width: 15em; }
.sh__h em { color: var(--blue); }
.sh__sub { margin-top: 18px; max-width: 42em; color: var(--ink-2); font-size: 18px; }
.sh__sub b { color: var(--ink); font-weight: 600; }
.js .rv { opacity: 0; transform: translateY(22px); }
.js .rv.is-in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }

/* ── 01 about ───────────────────────────────────────────────────────── */
.bio__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr); gap: clamp(36px, 5vw, 88px); align-items: start; }
.bio__quote { margin: 0; font: 400 clamp(24px, 2.3vw, 34px)/1.38 var(--f-display); color: var(--ink); }
.bio__quote b { font-weight: 400; font-style: italic; color: var(--blue); }
.bio__quote .w { transition: color 0.4s; }
.js .bio__quote.is-split .w { color: #CBD3DE; }
.js .bio__quote.is-split .w.on { color: var(--ink); }
.js .bio__quote.is-split b .w.on { color: var(--blue); }
.bio__tw { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; list-style: none; background: var(--ln-2); box-shadow: inset 0 0 0 1px var(--ln-2); }
.bio__tw li { display: grid; gap: 8px; align-content: start; padding: 16px 16px 18px; background: #fff; }
.bio__tw b { font: 500 11px var(--f-mono); color: var(--orange); letter-spacing: 0.1em; }
.bio__tw span { font: 400 18px/1.35 var(--f-display); }
.bio__tw-k { margin-top: 10px; color: var(--mut); font-size: 10px; }

.rev { position: sticky; top: 100px; background: #fff; box-shadow: inset 0 0 0 1px var(--ln-2); }
.rev__seg { display: grid; grid-template-columns: 1fr 1fr; box-shadow: inset 0 -1px 0 var(--ln-2); }
.rev__seg button { height: 46px; border: 0; cursor: pointer; background: transparent; font: 500 14px var(--f-body); color: var(--mut); transition: color 0.25s, background 0.25s, box-shadow 0.25s; }
.rev__seg button + button { box-shadow: inset 1px 0 0 var(--ln-2); }
.rev__seg button.is-on { color: var(--ink); background: var(--mist); box-shadow: inset 0 -2px 0 var(--orange); }
.rev__seg button + button.is-on { box-shadow: inset 1px 0 0 var(--ln-2), inset 0 -2px 0 var(--blue); }
.rev__h { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 6px; }
.rev__h .mono { color: var(--mut); font-size: 10px; }
.rev__st { padding: 2px 8px; border-radius: 2px; color: var(--mut); box-shadow: inset 0 0 0 1px var(--ln-2); }
.rev__rows { margin: 0; padding: 0 18px; list-style: none; }
.rev__rows li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ln); }
.rev__rows .mono { font-size: 9.5px; color: var(--mut); padding-top: 4px; }
.rev__rows p { font-size: 15px; line-height: 1.45; color: var(--ink-2); transition: opacity 0.25s; }
.rev.is-op .rev__rows p { font-style: italic; color: var(--mut); }
.rev.is-ev .rev__rows p { color: var(--ink); }
.rev.is-ev .rev__rows li { box-shadow: inset 2px 0 0 var(--blue); padding-left: 10px; margin-left: -10px; }
.rev__rows p.is-swap { opacity: 0; }
.rev__v { display: flex; align-items: center; gap: 12px; padding: 14px 18px 16px; }
.rev__vk { color: var(--mut); font-size: 9.5px; }
.rev__vt { font: 400 19px/1.25 var(--f-display); }
.rev.is-op .rev__vt { color: var(--orange-d); }
.rev.is-ev .rev__vt { color: var(--blue); }

/* ── 02 experience ──────────────────────────────────────────────────── */
.ldg { background: #fff; box-shadow: inset 0 0 0 1px var(--ln-2); padding: clamp(18px, 2.4vw, 28px); }
.ldg__time { position: relative; margin-left: var(--lab); }
.ldg { --lab: clamp(150px, 22vw, 280px); }
.ldg__ticks { position: relative; height: 24px; color: var(--mut); font-size: 9.5px; border-bottom: 1px solid var(--ink); }
.ldg__ticks span { position: absolute; top: 0; transform: translateX(-50%); }
.ldg__ticks span:first-child { transform: none; } .ldg__ticks span:last-child { transform: translateX(-100%); }
.ldg__rows { display: grid; }
.ldg__row { position: relative; display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); align-items: center; min-height: 40px; border-bottom: 1px solid var(--ln); cursor: default; }
.ldg__row[data-to] { cursor: pointer; }
.ldg__row:hover { background: var(--mist); }
.ldg__lab { display: grid; padding: 6px 12px 6px 0; line-height: 1.2; }
.ldg__lab b { font: 600 13.5px var(--f-body); color: var(--ink); }
.ldg__lab span { font-size: 12.5px; color: var(--mut); }
.ldg__lane { position: relative; height: 40px; }
.ldg__bar { position: absolute; top: 12px; height: 16px; border-radius: 2px; background: var(--ink-2); transform-origin: left; transform: scaleX(0); transition: transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
.ldg.is-on .ldg__bar { transform: none; }
.ldg__bar--lead { background: var(--blue); }
.ldg__bar--now { background: var(--orange); }
.ldg__bar--sp { background: var(--sp-violet); }
.ldg__val { position: absolute; top: 50%; transform: translateY(-50%); padding-left: 10px; font: 400 18px/1 var(--f-display); color: var(--blue); white-space: nowrap; opacity: 0; transition: opacity 0.4s; transition-delay: calc(var(--d, 0s) + 0.6s); }
.ldg.is-on .ldg__val { opacity: 1; }
.ldg__val--l { padding: 0 10px 0 0; transform: translate(-100%, -50%); }
.ldg__foot { margin-top: 12px; font-size: 13px; color: var(--mut); }

.xps { display: grid; gap: 14px; margin-top: 20px; }
.xp { display: grid; grid-template-columns: minmax(0, 0.36fr) minmax(0, 1fr); gap: clamp(18px, 2.6vw, 40px); padding: clamp(22px, 2.6vw, 32px); background: #fff; box-shadow: inset 0 0 0 1px var(--ln-2); scroll-margin-top: 90px; transition: box-shadow 0.4s; }
.xp--now { box-shadow: inset 0 0 0 1px var(--ln-2), inset 0 2px 0 var(--orange); }
.xp.is-flash { box-shadow: inset 0 0 0 2px var(--blue); }
.xp__meta { display: flex; flex-direction: column; gap: 7px; }
.xp__when { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--mut); }
.xp__when b { color: var(--ink); font-weight: 500; }
.xp__org { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font: 600 14.5px var(--f-body); color: var(--blue); }
.xp__live { display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px; border-radius: 2px; font-size: 11.5px; color: #fff; background: var(--ink); }
.xp__live i { width: 6px; height: 6px; background: var(--orange); animation: led 1.6s steps(2) infinite; }
.xp__role { font: 400 clamp(21px, 2vw, 27px)/1.2 var(--f-display); }
.xp__big { margin-top: auto; padding-top: 16px; display: grid; gap: 4px; border-top: 1px solid var(--ln); }
.xp__big b { font: 400 clamp(34px, 3.4vw, 50px)/1 var(--f-display); color: var(--blue); }
.xp__big span { font-size: 14px; color: var(--mut); }
.star { margin: 0; display: grid; }
.star__row { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; align-items: start; padding: 11px 0; border-bottom: 1px solid var(--ln); }
.star__row:first-child { padding-top: 0; }
.star__row:last-child { border-bottom: 0; }
.star dt { display: flex; align-items: center; gap: 10px; font: 500 10.5px var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mut); padding-top: 1px; }
.star dt i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 2px; font: 500 11px/1 var(--f-mono); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.star dd { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.star dd b { color: var(--ink); font-weight: 600; }
.star .star--r { margin-top: 4px; padding: 12px 14px; background: var(--blue-t); border-bottom: 0; box-shadow: inset 2px 0 0 var(--blue); }
.star--r dt { color: var(--blue-d); }
.star--r dt i { color: #fff; background: var(--blue); box-shadow: none; }
.star--r dd { color: var(--ink); }

.roots { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--ink); }
.roots__h { color: var(--mut); margin-bottom: 14px; }
.roots ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.roots li { display: grid; gap: 4px; align-content: start; padding: 14px 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--ln); }
.roots b { font: 500 11px var(--f-mono); color: var(--blue); letter-spacing: 0.06em; }
.roots span { font: 400 20px/1.2 var(--f-display); }
.roots small { font-size: 13.5px; color: var(--mut); }

/* ══ 03 SPECTRA LOGIC: its own world ═════════════════════════════════════ */
.spx { background: var(--sp-ink); color: #fff; overflow: hidden; }
.spx__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0.16; }
.spx::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--sp-ink) 0%, rgba(10, 13, 49, 0.72) 30%, rgba(10, 13, 49, 0.9) 100%); }
.spx__arc { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: clamp(120px, 16vw, 230px); z-index: -1; pointer-events: none; }
.spx__arc path { fill: none; stroke-width: 2.6; stroke-dasharray: 1; stroke-dashoffset: 1; }
.spx.is-arc .spx__arc path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ease-out); }
.spx.is-arc .spx__arc path:nth-child(2) { transition-delay: 0.08s; } .spx.is-arc .spx__arc path:nth-child(3) { transition-delay: 0.16s; }
.spx.is-arc .spx__arc path:nth-child(4) { transition-delay: 0.24s; } .spx.is-arc .spx__arc path:nth-child(5) { transition-delay: 0.32s; } .spx.is-arc .spx__arc path:nth-child(6) { transition-delay: 0.4s; }
.spx .sh { padding-top: clamp(40px, 6vw, 80px); }
.spx .sh__ref { color: rgba(255, 255, 255, 0.6); }
.spx .sh__ref b { background: var(--sp-violet); }
.spx .sh__ref i { background: var(--sp-violet-l); }
.spx .sh__h { color: #fff; }
.spx .sh__h em { color: var(--sp-amber); }
.spx .sh__sub { color: rgba(255, 255, 255, 0.78); }
.spx .sh__sub b { color: #fff; }
.spx__grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.spx__sect { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.spx__sect li { padding: 6px 12px; border-radius: 2px; font-size: 13.5px; box-shadow: inset 0 0 0 1px var(--sp-ln-2); }
.spx__sect li:nth-child(1) { box-shadow: inset 0 0 0 1px var(--sp-ln-2), inset 0 -2px 0 #7A68AE; }
.spx__sect li:nth-child(2) { box-shadow: inset 0 0 0 1px var(--sp-ln-2), inset 0 -2px 0 #3E7BC4; }
.spx__sect li:nth-child(3) { box-shadow: inset 0 0 0 1px var(--sp-ln-2), inset 0 -2px 0 #5FA35A; }
.spx__sect li:nth-child(4) { box-shadow: inset 0 0 0 1px var(--sp-ln-2), inset 0 -2px 0 #E8C547; }
.spx__sect li:nth-child(5) { box-shadow: inset 0 0 0 1px var(--sp-ln-2), inset 0 -2px 0 #E58E1A; }
.spx__sect b { font-weight: 500; }
.spx__drive { margin: 0; display: grid; background: var(--sp-panel); box-shadow: inset 0 0 0 1px var(--sp-ln); }
.spx__drive > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--sp-ln); }
.spx__drive > div:last-child { border-bottom: 0; }
.spx__drive dt { color: var(--sp-amber); font-size: 10px; padding-top: 3px; }
.spx__drive dd { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, 0.86); }
.spx__stack { margin-top: 18px; }
.spx__stack .mono { color: rgba(255, 255, 255, 0.55); font-size: 10px; margin-bottom: 10px; }
.spx__stack ul { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--sp-ln); box-shadow: inset 0 0 0 1px var(--sp-ln); }
.spx__stack li { display: grid; gap: 2px; padding: 12px 14px; background: var(--sp-ink); }
.spx__stack li b { font: 400 19px/1.2 var(--f-display); color: #fff; }
.spx__stack li span { font-size: 12.5px; color: rgba(255, 255, 255, 0.62); line-height: 1.4; }
.spx__note { margin-top: 18px; font-size: 13px; color: rgba(255, 255, 255, 0.5); }

/* ransomware day */
.rw { background: var(--sp-panel); box-shadow: inset 0 0 0 1px var(--sp-ln-2); }
.rw__top { padding: 16px 18px 12px; border-bottom: 1px solid var(--sp-ln); }
.rw__k { color: var(--sp-violet-l); font-size: 10px; margin-bottom: 12px; }
.rw__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.rw__opts button { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 0; border-radius: 2px; cursor: pointer; background: transparent; color: rgba(255, 255, 255, 0.72); font: 500 13px var(--f-body); box-shadow: inset 0 0 0 1px var(--sp-ln-2); transition: color 0.2s, background 0.2s, box-shadow 0.2s; }
.rw__opts button i { width: 12px; height: 12px; border-radius: 2px; box-shadow: inset 0 0 0 1.5px currentColor; transition: background 0.2s; }
.rw__opts button.is-on { color: #fff; background: rgba(122, 104, 174, 0.28); box-shadow: inset 0 0 0 1px var(--sp-violet-l); }
.rw__opts button.is-on i { background: var(--sp-amber); box-shadow: none; }
.rw__opts button:disabled { opacity: 0.4; cursor: not-allowed; }
.rw__stage { padding: 6px 10px 0; }
.rw__svg { width: 100%; height: auto; overflow: visible; }
.rw__svg .box { fill: rgba(10, 13, 49, 0.6); stroke: var(--sp-ln-2); stroke-width: 1; }
.rw__svg .box.is-off { stroke-dasharray: 3 4; opacity: 0.35; }
.rw__svg .bt { fill: rgba(255, 255, 255, 0.62); font: 500 9.5px var(--f-mono); letter-spacing: 0.12em; }
.rw__svg .bs { fill: rgba(255, 255, 255, 0.4); font: 400 9px var(--f-mono); letter-spacing: 0.06em; }
.rw__svg .blk { fill: var(--sp-violet); transition: fill 0.25s; }
.rw__svg .blk.is-enc { fill: var(--sp-amber); }
.rw__svg .blk.is-dead { fill: #3A2A2A; }
.rw__svg .blk.is-rest { fill: #8FD18B; }
.rw__svg .lnk { fill: none; stroke: var(--sp-ln-2); stroke-width: 1.2; }
.rw__svg .lnk.is-off { opacity: 0.25; }
.rw__svg .atk { fill: none; stroke: var(--sp-amber); stroke-width: 1.6; stroke-dasharray: 5 4; opacity: 0; }
.rw__svg .atk.is-on { opacity: 1; animation: march 0.6s linear infinite; }
.rw__svg .atk.is-blocked { stroke: rgba(255, 255, 255, 0.35); animation: none; }
@keyframes march { to { stroke-dashoffset: -18; } }
.rw__svg .gap { stroke: var(--sp-amber); stroke-width: 1.4; }
.rw__svg .gapt { fill: var(--sp-amber); font: 500 9px var(--f-mono); letter-spacing: 0.14em; text-anchor: middle; }
.rw__svg .hk { fill: var(--sp-ink); stroke: var(--sp-amber); stroke-width: 1.4; }
.rw__svg .hkt { fill: var(--sp-amber); font: 500 9.5px var(--f-mono); letter-spacing: 0.14em; text-anchor: middle; }
.rw__svg .lock { fill: none; stroke: #fff; stroke-width: 1.4; opacity: 0; transition: opacity 0.3s; }
.rw__svg .lock.is-on { opacity: 1; }
.rw__svg .slot { fill: rgba(255, 255, 255, 0.06); stroke: var(--sp-ln); }
.rw__svg .robot { fill: var(--sp-amber); }
.rw__svg .rail { stroke: var(--sp-ln-2); }
.rw__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--sp-ln); }
.rw__rule { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rw__rule li { display: flex; align-items: baseline; gap: 6px; padding: 6px 10px; border-radius: 2px; color: rgba(255, 255, 255, 0.45); box-shadow: inset 0 0 0 1px var(--sp-ln); transition: color 0.25s, box-shadow 0.25s, background 0.25s; }
.rw__rule li b { font: 400 22px/1 var(--f-display); }
.rw__rule li span { font-size: 12px; }
.rw__rule li.is-met { color: #fff; background: rgba(122, 104, 174, 0.26); box-shadow: inset 0 0 0 1px var(--sp-violet-l); }
.rw__rule li.is-met b { color: var(--sp-amber); }
.rw__go { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 3px; cursor: pointer; font: 600 14px var(--f-body); color: var(--sp-ink); background: var(--sp-amber); }
.rw__go:hover { background: #F2A23E; }
.rw__go:disabled { opacity: 0.5; cursor: wait; }
.rw__go svg { width: 14px; height: 14px; }
.rw__out { min-height: 46px; padding: 14px 18px; border-top: 1px solid var(--sp-ln); color: rgba(255, 255, 255, 0.72); text-transform: none; letter-spacing: 0.02em; font-size: 12.5px; line-height: 1.5; }
.rw__out.is-good { color: #A9E3A5; }
.rw__out.is-bad { color: #F4B66A; }

/* ══ 04 APEX EDGE ════════════════════════════════════════════════════════ */
.apx { background: #fff; }
.apx::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--ln) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, var(--ln) 1px, transparent 1px) 0 0 / 40px 40px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 40%); mask-image: linear-gradient(180deg, #000, transparent 40%); opacity: 0.6; }
.apx__sh { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(24px, 4vw, 60px); align-items: center; }
.apx .sh__h em { color: var(--orange); }
.apx__fig { position: relative; margin: 0; aspect-ratio: 1 / 1.05; overflow: hidden; box-shadow: inset 0 0 0 1px var(--ln-2); }
.apx__fig img { width: 100%; height: 100%; object-fit: cover; }
.apx__fig::after { content: ''; position: absolute; left: 0; bottom: 0; width: 38%; height: 4px; background: var(--orange); }

.qvwt { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 clamp(28px, 4vw, 44px); padding: 0; list-style: none; }
.qvwt::before { content: ''; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: var(--ln-2); }
.qvwt::after { content: ''; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: var(--blue); transform: scaleX(var(--q, 0)); transform-origin: left; transition: transform 1.6s var(--ease-io); }
.qvwt li { position: relative; display: grid; gap: 6px; padding-right: 18px; }
.qvwt b { position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font: 600 17px var(--f-body); color: var(--blue); background: #fff; box-shadow: inset 0 0 0 2px var(--ln-2); transition: color 0.3s, background 0.3s, box-shadow 0.3s; transition-delay: var(--d, 0s); }
.qvwt li.is-on b { color: #fff; background: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.qvwt h3 { margin-top: 8px; font: 400 24px/1.1 var(--f-display); }
.qvwt p { font-size: 15px; color: var(--ink-2); max-width: 18em; }

.ws { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); background: #fff; border: 1px solid var(--ink); }
.ws__l { padding: clamp(16px, 2vw, 24px); }
.ws__hd { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.ws__k { color: var(--blue); font-size: 10px; }
.ws__pre { display: flex; flex-wrap: wrap; gap: 4px; }
.ws__pre button { height: 30px; padding: 0 10px; border: 0; border-radius: 2px; cursor: pointer; background: var(--mist); color: var(--ink-2); font: 500 12.5px var(--f-body); box-shadow: inset 0 0 0 1px var(--ln); }
.ws__pre button:hover, .ws__pre button.is-on { color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: #fff; }
.ws__dims { display: grid; }
.wd { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--ln); }
.wd__l { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 2px; font: 600 15px var(--f-body); color: var(--blue); background: var(--blue-t); transition: color 0.25s, background 0.25s; }
.wd[data-s="2"] .wd__l { color: #fff; background: var(--blue); }
.wd[data-s="0"] .wd__l { color: var(--orange-d); background: var(--orange-t); }
.wd__n { display: grid; line-height: 1.25; }
.wd__n b { font-size: 15px; font-weight: 600; }
.wd__n span { font-size: 13px; color: var(--mut); }
.wd__seg { display: inline-grid; grid-template-columns: repeat(3, 34px); box-shadow: inset 0 0 0 1px var(--ln-2); border-radius: 2px; }
.wd__seg button { height: 32px; border: 0; cursor: pointer; background: transparent; font: 500 13px var(--f-mono); color: var(--mut); transition: color 0.2s, background 0.2s; }
.wd__seg button + button { box-shadow: inset 1px 0 0 var(--ln-2); }
.wd__seg button.is-on[data-v="0"] { color: #fff; background: var(--orange); }
.wd__seg button.is-on[data-v="1"] { color: var(--blue-d); background: var(--blue-t); }
.wd__seg button.is-on[data-v="2"] { color: #fff; background: var(--blue); }
.ws__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; color: var(--mut); font-size: 9.5px; }
.ws__legend i { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 6px; border-radius: 2px; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ln-2); }
.ws__r { display: flex; flex-direction: column; background: var(--mist); box-shadow: inset 1px 0 0 var(--ink); }
.ws__dial { position: relative; padding: 22px 22px 16px; text-align: center; border-bottom: 1px solid var(--ln-2); }
.ws__dial svg { width: 100%; max-width: 240px; margin: 0 auto; overflow: visible; }
.ws__bg, .ws__fg { fill: none; stroke-width: 14; }
.ws__bg { stroke: var(--ln-2); }
.ws__fg { stroke: var(--blue); stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.7s var(--ease-out), stroke 0.3s; }
.ws__fg.is-weak { stroke: var(--orange); }
.ws__num { margin-top: -54px; display: flex; justify-content: center; align-items: baseline; gap: 2px; }
.ws__tot { font: 400 54px/1 var(--f-display); color: var(--ink); }
.ws__num span { font: 400 20px var(--f-display); color: var(--mut); }
.ws__pct { margin-top: 8px; color: var(--mut); font-size: 10px; }
.ws__pct b { color: var(--ink); font-weight: 500; }
.ws__risks { padding: 16px 18px 18px; }
.ws__risks > .mono { color: var(--mut); font-size: 9.5px; margin-bottom: 10px; }
.ws__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: r; }
.ws__list li { position: relative; padding: 12px 12px 12px 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--ln-2), inset 3px 0 0 var(--orange); animation: riskIn 0.45s var(--ease-out) both; }
.ws__list li.is-clear { box-shadow: inset 0 0 0 1px var(--ln-2), inset 3px 0 0 var(--blue); }
@keyframes riskIn { from { opacity: 0; transform: translateY(6px); } }
.ws__list .rk { display: flex; justify-content: space-between; gap: 8px; font: 500 10px var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-d); }
.ws__list li.is-clear .rk { color: var(--blue); }
.ws__list .rk em { color: var(--mut); }
.ws__list h4 { margin: 4px 0 4px; font: 400 18px/1.2 var(--f-display); }
.ws__list p { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.ws__note { margin-top: 14px; max-width: 64em; font-size: 13.5px; color: var(--mut); }
.ws__note a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.mods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(32px, 4vw, 52px); }
.mod { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--ln-2); transition: box-shadow 0.25s, transform 0.35s var(--ease-out); }
.mod:hover { box-shadow: inset 0 0 0 1px var(--blue); transform: translateY(-3px); }
.mod .mono { color: var(--mut); font-size: 9.5px; }
.mod h3 { font: 400 22px/1.15 var(--f-display); color: var(--blue); }
.mod p { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.mod--cmd { background: var(--blue); box-shadow: none; }
.mod--cmd .mono { color: rgba(255, 255, 255, 0.7); }
.mod--cmd h3 { color: #fff; }
.mod--cmd p { color: rgba(255, 255, 255, 0.86); }
.mod--cmd a { margin-top: auto; align-self: flex-start; padding: 8px 12px; border-radius: 2px; font: 600 13.5px var(--f-body); color: #fff; background: var(--orange); }
.mod--cmd a:hover { background: var(--orange-d); }
.mod--cmd:hover { box-shadow: none; }

.leaks { margin-top: clamp(32px, 4vw, 52px); padding-top: 22px; border-top: 1px solid var(--ink); }
.leaks__h { color: var(--mut); margin-bottom: 14px; }
.leaks ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
.leaks li { display: grid; gap: 6px; align-content: start; padding: 4px 18px 4px 0; }
.leaks li + li { padding-left: 18px; box-shadow: inset 1px 0 0 var(--ln-2); }
.leaks b { font: 500 11px var(--f-mono); color: var(--orange); letter-spacing: 0.1em; }
.leaks h3 { font: 400 21px/1.2 var(--f-display); }
.leaks p { font-size: 14.5px; color: var(--ink-2); }

/* ── 05 books ───────────────────────────────────────────────────────── */
.shelf { display: grid; gap: clamp(28px, 4vw, 48px); }
.shelf__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 4vw, 64px); align-items: end; padding: 24px clamp(0px, 4vw, 60px) 0; perspective: 2000px; }
.b3 { position: relative; display: grid; justify-items: center; padding: 20px 0 34px; border: 0; background: none; cursor: pointer; }
.b3__obj { --t: clamp(16px, 2.2vw, 30px); position: relative; display: block; width: min(100%, 290px); aspect-ratio: 700 / 996; transform-style: preserve-3d; transform: translateY(var(--ly, 0px)) rotateY(var(--by, -24deg)) rotateX(var(--bx, 4deg)); transition: transform 0.8s var(--ease-out); }
.b3.is-on .b3__obj { --ly: -18px; --by: -10deg; }
.b3__front, .b3__back, .b3__spine, .b3__pages { position: absolute; display: block; }
.b3__front { inset: 0; transform: translateZ(calc(var(--t) / 2)); border-radius: 1px 3px 3px 1px; overflow: hidden; background: #0549A8; }
.b3__front img { width: 100%; height: 100%; object-fit: cover; transition: filter 0.4s; }
.b3__front::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255, 255, 255, 0.22) calc(var(--sx, 30%) - 18%), transparent var(--sx, 30%)), linear-gradient(90deg, rgba(0, 0, 0, 0.32), transparent 5%); mix-blend-mode: soft-light; pointer-events: none; }
.b3__back { inset: 0; transform: translateZ(calc(var(--t) / -2)) rotateY(180deg); background: #033A86; border-radius: 3px 1px 1px 3px; }
.b3__spine { top: 0; bottom: 0; left: 0; width: var(--t); transform: translateX(calc(var(--t) / -2)) rotateY(-90deg); background: linear-gradient(90deg, #032F6E, #0549A8 50%, #032F6E); display: grid; place-items: center; overflow: hidden; }
.b3__spine span { writing-mode: vertical-rl; font: 600 clamp(7px, 0.7vw, 9.5px) var(--f-body); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.9); white-space: nowrap; }
.b3__pages { top: 3px; bottom: 3px; right: 0; width: var(--t); transform: translateX(calc(var(--t) / 2 - 2px)) rotateY(90deg); background: repeating-linear-gradient(90deg, #F4F3EE 0 1px, #D9D6CC 1px 2px); }
.b3__floor { position: absolute; left: 12%; right: 6%; bottom: 18px; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(26, 36, 51, 0.3), transparent); transition: opacity 0.6s, transform 0.8s var(--ease-out); }
.b3.is-on .b3__floor { opacity: 0.6; transform: scaleX(0.86); }
.b3::after { content: ''; position: absolute; left: 30%; right: 30%; bottom: 0; height: 3px; background: var(--orange); transform: scaleX(0); transition: transform 0.5s var(--ease-out); }
.b3.is-on::after { transform: none; }
.b3:not(.is-on) .b3__front img { filter: saturate(0.85) brightness(0.95); }
.b3:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.shelf__read { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding-top: clamp(22px, 3vw, 32px); border-top: 2px solid var(--ink); }
.shelf__k { color: var(--orange-d); }
.shelf__t { margin-top: 10px; font: 400 clamp(30px, 3vw, 44px)/1.08 var(--f-display); }
.shelf__s { margin-top: 12px; font: italic 400 20px/1.4 var(--f-display); color: var(--ink-2); }
.shelf__isbn { margin-top: 14px; color: var(--mut); font-size: 10px; }
.shelf__buy { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.shelf__buy a { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 3px; font: 600 14px var(--f-body); color: var(--blue); background: #fff; box-shadow: inset 0 0 0 1px var(--ln-2); transition: box-shadow 0.25s, color 0.25s, background 0.25s; }
.shelf__buy a:first-child { color: #fff; background: var(--orange); box-shadow: none; }
.shelf__buy a:first-child:hover { background: var(--orange-d); }
.shelf__buy a:not(:first-child):hover { box-shadow: inset 0 0 0 1px var(--blue); }
.shelf__chain { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; align-content: start; }
.shelf__chain li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ln); animation: riskIn 0.45s var(--ease-out) both; animation-delay: calc(var(--i) * 90ms); }
.shelf__chain li b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 500 11px var(--f-mono); color: #fff; background: var(--blue); }
.shelf__chain li:last-child b { background: var(--orange); }
.shelf__chain li span { font-size: 16px; }
.shelf__read.is-swap > * { opacity: 0; }
.shelf__read > * { transition: opacity 0.25s; }

/* ── 06 recognition ─────────────────────────────────────────────────── */
.aw { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.aw__c { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--ln-2); overflow: hidden; }
.aw__c::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
.aw__c.is-in::before { transform: none; }
.aw__big { font: 400 clamp(56px, 6vw, 88px)/0.9 var(--f-display); color: var(--blue); }
.aw__big sup { font-size: 0.36em; vertical-align: 1.4em; margin-left: 2px; }
.aw__big--o { color: var(--orange); }
.aw__c h3 { font: 400 20px/1.25 var(--f-display); }
.aw__c .mono { margin-top: auto; color: var(--mut); font-size: 9.5px; }
.aw__c--x2 { background: var(--blue); box-shadow: none; color: #fff; }
.aw__c--x2::before { background: var(--orange); }
.aw__c--x2 .aw__big { color: #fff; }
.aw__c--x2 .mono { color: rgba(255, 255, 255, 0.7); }
.aw__c--soft { background: var(--mist); }
.aw__dl { margin: 0; display: grid; }
.aw__dl > div { display: grid; gap: 2px; padding: 9px 0; border-bottom: 1px solid var(--ln); }
.aw__dl > div:first-child { padding-top: 0; }
.aw__dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.aw__dl dt { color: var(--orange-d); font-size: 9.5px; }
.aw__dl dd { margin: 0; font-size: 14.5px; line-height: 1.4; }

/* ══ CLOSE ═════════════════════════════════════════════════════════════ */
.close { position: relative; padding: var(--section) 0 36px; overflow: hidden; isolation: isolate; background: #fff; }
.close__photo { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; width: 100%; height: clamp(420px, 52vw, 760px); object-fit: cover; object-position: 50% 70%; opacity: 0.5;
  -webkit-mask-image: linear-gradient(transparent, #000 55%); mask-image: linear-gradient(transparent, #000 55%); }
.close__h { font: 400 clamp(52px, 7.6vw, 126px)/0.96 var(--f-sc); letter-spacing: -0.015em; max-width: 11em; }
.close__h em { color: var(--orange); }
.close__sub { margin-top: 20px; max-width: 36em; color: var(--ink-2); font-size: 18px; }
.links { display: grid; margin-top: clamp(40px, 6vw, 70px); border-top: 1px solid var(--ink); }
.links a { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: clamp(18px, 2.2vw, 26px) 4px; border-bottom: 1px solid var(--ln-2); background: rgba(255, 255, 255, 0.86); }
.links span { color: var(--mut); }
.links b { font: 400 clamp(22px, 3vw, 42px)/1.1 var(--f-display); overflow-wrap: anywhere; transition: transform 0.4s var(--ease-out), color 0.25s; }
.links i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 3px; color: #fff; background: var(--blue); font-size: 17px; transition: transform 0.3s var(--ease-out), background 0.25s; }
.links a:hover b { transform: translateX(8px); color: var(--blue); }
.links a:hover i { transform: translate(2px, -2px); background: var(--orange); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 32px; margin-top: clamp(56px, 8vw, 100px); color: var(--mut); }
.foot__brand { display: inline-flex; align-items: center; gap: 12px; }
.foot__brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: contain; background: #fff; box-shadow: 0 0 0 1px rgba(23, 19, 14, 0.18); }
.foot__brand .wm { font-size: 22px; color: var(--ink); }
.foot .mono { font-size: 10px; }

/* ══ EXPERIENCE: the current roles as full blocks ════════════════════════ */
.xhd { display: flex; align-items: center; gap: 12px; margin-top: clamp(48px, 6vw, 80px); color: var(--mut); }
.xhd b { display: inline-grid; place-items: center; height: 26px; padding: 0 10px; border-radius: 2px; color: #fff; background: var(--ink); font-weight: 500; }
.xhd i { flex: 1; height: 1px; background: var(--ink); }
.xrest .xhd { margin-bottom: 20px; }
.exp > .wrap:first-child { padding-bottom: clamp(28px, 4vw, 44px); }
.xb { margin: 0; padding: clamp(64px, 8vw, 110px) 0; }
.spx.xb { padding-top: clamp(130px, 16vw, 220px); }
.spx .sh { padding-top: 0; }
.xrest { padding-top: clamp(40px, 5vw, 64px); }
.xrest .xps:first-child { margin-top: 0; }

.xrole { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(16px, 3vw, 40px); margin-bottom: clamp(32px, 4vw, 52px); padding: 18px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ln-2); }
.xrole__k { display: grid; gap: 6px; color: var(--mut); font-size: 10px; }
.xrole__k b { justify-self: start; padding: 4px 9px; border-radius: 2px; color: #fff; background: var(--orange); font-weight: 500; }
.xrole__co { font: 400 clamp(28px, 3.2vw, 46px)/1.05 var(--f-sc); letter-spacing: -0.01em; color: var(--blue); }
.xrole__role { margin-top: 4px; font: 500 16px/1.3 var(--f-body); color: var(--ink-2); }
.xrole__when { display: grid; gap: 4px; justify-items: end; text-align: right; color: var(--mut); }
.xrole__when b { color: var(--ink); font-weight: 500; }
.spx .xrole { border-top-color: var(--sp-violet-l); border-bottom-color: var(--sp-ln-2); }
.spx .xrole__k { color: rgba(255, 255, 255, 0.55); }
.spx .xrole__k b { color: var(--sp-ink); background: var(--sp-amber); }
.spx .xrole__co { color: #fff; }
.spx .xrole__role { color: rgba(255, 255, 255, 0.8); }
.spx .xrole__when { color: rgba(255, 255, 255, 0.55); }
.spx .xrole__when b { color: #fff; }
.spx .sh__h, .apx .sh__h { font-size: clamp(36px, 4.4vw, 68px); }
.xp__tag { align-self: flex-start; padding: 2px 8px; border-radius: 2px; color: var(--orange-d); font-size: 9.5px; box-shadow: inset 0 0 0 1px var(--orange); }

/* ══ RESPONSIVE ═════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .readouts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ro:nth-child(4) { box-shadow: inset 0 1px 0 var(--ln); }
  .ro:nth-child(5) { box-shadow: inset 1px 0 0 var(--ln), inset 0 1px 0 var(--ln); }
  .xp { grid-template-columns: 1fr; }
  .xp__big { margin-top: 4px; }
  .spx__grid, .ws { grid-template-columns: 1fr; }
  .ws__r { box-shadow: inset 0 1px 0 var(--ink); }
  .mods, .aw { grid-template-columns: 1fr 1fr; }
  .leaks ol { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .leaks li:nth-child(3) { padding-left: 0; box-shadow: none; }
}
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .rec { width: min(380px, 92%); margin-top: 8px; }
  .hero__veil { background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82) 60%, #fff); }
  .bio__grid, .apx__sh { grid-template-columns: 1fr; }
  .rev { position: relative; top: 0; }
  .apx__fig { aspect-ratio: 16 / 9; }
  .qvwt { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .qvwt::before, .qvwt::after { display: none; }
}
@media (max-width: 640px) {
  .shelf__row { gap: 10px; padding: 8px 4px 0; }
  .b3 { padding: 14px 0 26px; }
  .b3.is-on .b3__obj { --ly: -10px; }
  .shelf__read { grid-template-columns: 1fr; }
  .xrole { grid-template-columns: 1fr; gap: 10px; }
  .xrole__when { justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; gap: 12px; }
  .hero__name { font-size: clamp(52px, 15vw, 84px); }
  .readouts { grid-template-columns: 1fr 1fr; }
  .ro, .ro + .ro { box-shadow: inset 0 1px 0 var(--ln); }
  .ro:nth-child(1), .ro:nth-child(2) { box-shadow: none; }
  .ro:nth-child(even) { box-shadow: inset 1px 0 0 var(--ln), inset 0 1px 0 var(--ln); }
  .ro:nth-child(2) { box-shadow: inset 1px 0 0 var(--ln); }
  .ro:last-child { grid-column: 1 / -1; }
  .bio__tw { grid-template-columns: 1fr; }
  .star__row { grid-template-columns: 1fr; gap: 6px; }
  .ldg { --lab: 118px; }
  .ldg__lab b { font-size: 12px; } .ldg__lab span { font-size: 11px; }
  .ldg__val { font-size: 14px; }
  .roots ol, .spx__stack ul, .mods, .aw, .leaks ol { grid-template-columns: 1fr; }
  .leaks li, .leaks li + li { padding: 0 0 14px; box-shadow: inset 0 -1px 0 var(--ln); }
  .rw__rule { flex-wrap: wrap; }
  .wd { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; }
  .wd__l { width: 30px; height: 30px; }
  .wd__seg { grid-template-columns: repeat(3, 28px); }
  .wd__n span { font-size: 12px; }
  .ldg__ticks span:nth-child(2), .ldg__ticks span:nth-child(4), .ldg__ticks span:nth-child(6) { display: none; }
  .rw__stage { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .rw__svg { width: 560px; max-width: none; }
  .back { height: 42px; font-size: 13px; padding-right: 14px; }
  .back .btn__ico { width: 34px; height: 34px; }
  .links a { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; }
  .links span, .links b { grid-column: 1; }
  .links i { grid-column: 2; grid-row: 1 / span 2; width: 42px; height: 42px; }
  .close__h { font-size: clamp(44px, 13vw, 68px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; transition-delay: 0s !important; }
}

/* ══ MOBILE (≤640px only; desktop untouched) ═════════════════════════════ */
@media (max-width: 640px) {
  /* back: a compact icon button, so it never sits over headings */
  .back { height: 44px; padding: 0 3px; gap: 0; }
  .back .btn__ico { width: 38px; height: 38px; }
  .back__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* Spectra: the column was growing to the wide ransomware diagram and clipping the block; keep it to the screen */
  .spx__grid { grid-template-columns: minmax(0, 1fr); }
  .spx__grid > * { min-width: 0; }
  .rw__stage { scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); }
  .rw__stage::-webkit-scrollbar { display: none; }
  .spx__drive > div { grid-template-columns: 1fr; gap: 4px; }
  .links b { font-size: clamp(15px, 4.2vw, 20px); overflow-wrap: normal; }
  /* close: the mountains sit under the footer, not behind the wordmark */
  .close { padding-bottom: 200px; }
  .close__photo { height: 240px; -webkit-mask-image: linear-gradient(transparent, #000 40%); mask-image: linear-gradient(transparent, #000 40%); }
}

/* the name never outgrows its column on large screens: "Livingstone" is about 6.18em wide, so cap it at 15.3% of the copy column */
@media (min-width: 1200px) {
  .hero__copy { container-type: inline-size; }
  .hero__name { font-size: min(clamp(52px, 6.3vw, 112px), 15.3cqi); }
}
