/* ==========================================================================
   Saizen Acuity — Cian Wallnutt — "Signal"
   Matte black and red. Cian is an engineer and scientist in data, from RTOS
   kernels on industrial robots to enterprise AI, so the page reads like an
   analysis: the hero is a field of live signal ridgelines, his portrait is
   plotted on a chart, the stack is climbed by a signal, and the close is a
   Six Sigma control chart the visitor can bring under control.
   Shared systems (boot, back, bus, reveals, trace, spotlight cards,
   schematics, readout) are adapted from the Wael profile; type is the
   site's: Playfair Display SC headlines, Playfair Display, DM Sans, DM Mono.
   ========================================================================== */

:root {
  /* solder mask */
  --bg:     #FBFBFC;
  --bg-2:   #F1F3F6;
  --panel:  rgba(255, 255, 255, 0.8);
  --panel-s:#FFFFFF;
  /* silkscreen */
  --ink:    #1D1D20;
  --ink-2:  #4A4D55;
  --muted:  #85888F;
  --dim:    #D3D6DB;
  --line:   rgba(29, 29, 32, 0.08);
  --line-2: rgba(29, 29, 32, 0.13);
  --line-3: rgba(29, 29, 32, 0.24);
  /* copper + signal */
  --em:     #B5121E;
  --em-2:   #E61D2B;
  --phos:   #E61D2B;
  --glow:   rgba(230, 29, 43, 0.16);
  /* brand gold, only for "Acuity" */
  --gold:   #E2AE36;
  --gold-d: #B8892B;

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

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

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(96px, 13vw, 184px);
  --r: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); color-scheme: dark; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* the board itself: a faint solder-mask grid under everything */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(rgba(230, 29, 43, 0.034) 1px, transparent 1.3px) 0 0 / 24px 24px,
    radial-gradient(70% 50% at 100% 0%, rgba(179, 18, 27, 0.10), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(179, 18, 27, 0.07), transparent 70%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, rgba(0, 0, 0, 0.35));
  mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, rgba(0, 0, 0, 0.35));
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--em); color: #1A0607; }
:focus-visible { outline: 2px solid var(--phos); outline-offset: 3px; border-radius: 6px; }

.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; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.4; }

/* the wordmark: "Saizen" in ink, "Acuity" bold gold */
.wm { font-family: var(--f-sc); font-weight: 400; letter-spacing: 0.01em; }
.wm b { font-weight: 700; color: var(--gold); }

/* LEDs */
.led { position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); flex: none; transition: background 0.4s, box-shadow 0.4s; }
.led--live, .is-hot .led, .mod:hover .led { background: var(--phos); box-shadow: 0 0 0 3px rgba(230, 29, 43, 0.098), 0 0 12px var(--glow); }
.led--live::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--phos); opacity: 0; animation: ledPing 2.4s var(--ease-out) infinite; }
@keyframes ledPing { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(2.2); opacity: 0; } }

/* ── buttons: chamfered pads; a signal runs the edge on hover ──────── */
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.btn {
  --c: 11px; --edge: var(--line-3); --edge-hover: var(--line-2);
  --fill: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)); --sheen: rgba(230, 29, 43, 0.112);
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 18px; height: 54px; padding: 0 7px 0 20px;
  font: 500 14.5px/1 var(--f-body); letter-spacing: 0.01em; white-space: nowrap; color: var(--ink);
  transition: transform 0.5s var(--spring), color 0.3s, filter 0.4s;
}
/* edge layer, then fill layer 1px inside it — both cut on opposite corners */
.btn::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--edge); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.btn::after {
  content: ''; position: absolute; inset: 1px; z-index: -1;
  clip-path: polygon(calc(var(--c) - 0.6px) 0, 100% 0, 100% calc(100% - var(--c) + 0.6px), calc(100% - var(--c) + 0.6px) 100%, 0 100%, 0 calc(var(--c) - 0.6px));
  background: linear-gradient(105deg, transparent 42%, var(--sheen) 50%, transparent 58%) 150% 0 / 250% 100% no-repeat, var(--fill);
  transition: background-position 0.9s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::before { background: conic-gradient(from var(--spin), var(--edge-hover) 0 58%, var(--phos) 76%, #FFF3F1 81%, var(--phos) 86%, var(--edge-hover) 100%); animation: edgeRun 1.6s linear infinite; }
.btn:hover::after { background-position: -50% 0, 0 0; }
.btn:active { transform: translateY(0) scale(0.97); }
@keyframes edgeRun { to { --spin: 360deg; } }

/* a status LED before the label */
.btn__txt { display: inline-flex; align-items: center; gap: 11px; }
.btn__txt::before { content: ''; width: 5px; height: 5px; flex: none; background: currentColor; opacity: 0.3; transition: opacity 0.3s, background 0.3s, box-shadow 0.3s; }
.btn:hover .btn__txt::before { opacity: 1; background: var(--phos); box-shadow: 0 0 8px var(--phos); }

/* the icon block is cut on the other diagonal */
.btn__ico { --ci: 8px; display: grid; place-items: center; width: 40px; height: 40px; clip-path: polygon(0 0, calc(100% - var(--ci)) 0, 100% var(--ci), 100% 100%, var(--ci) 100%, 0 calc(100% - var(--ci))); transition: background 0.3s, color 0.3s; }
.btn__ico svg { width: 15px; height: 15px; transition: transform 0.5s var(--spring); }
.btn:hover .btn__ico svg { transform: translate(2px, -2px); }

.btn--em { --edge: #FF9A92; --edge-hover: #E3242B; --fill: linear-gradient(135deg, #FF6A5E, var(--em-2) 48%, var(--em)); --sheen: rgba(255, 255, 255, 0.5); color: #1A0607; filter: drop-shadow(0 14px 26px rgba(227, 36, 43, 0.32)); }
.btn--em:hover { filter: drop-shadow(0 18px 34px rgba(230, 29, 43, 0.245)); }
.btn--em .btn__txt::before, .btn--em:hover .btn__txt::before { background: #1A0607; box-shadow: none; opacity: 0.6; }
.btn--em:hover .btn__txt::before { animation: blink 0.8s steps(2) infinite; }
.btn--em .btn__ico { background: rgba(255, 255, 255, 0.9); color: var(--phos); }
.btn--line .btn__ico { background: rgba(230, 29, 43, 0.036); color: var(--phos); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--line .btn__ico svg[fill="currentColor"] { width: 14px; height: 14px; }
.btn--line:hover .btn__ico { background: var(--phos); color: #1A0607; }
.btn--line { backdrop-filter: none; }

/* ══ POWER-ON ═══════════════════════════════════════════════════════════ */
.boot { display: none; }
.js .boot {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #FFF9F6;
  clip-path: inset(0 0 0 0); transition: clip-path 0.9s var(--ease-io);
  animation: bootFailsafe 0.01s 4.5s forwards; /* never strand the page behind it */
}
.js .boot::before { content: ''; position: absolute; inset: 0; background: radial-gradient(rgba(230, 29, 43, 0.027) 1px, transparent 1.3px) 0 0 / 24px 24px; }
.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 { position: relative; width: min(380px, 78vw); display: grid; gap: 14px; }
.boot__line { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.boot__led { width: 7px; height: 7px; border-radius: 50%; background: var(--phos); box-shadow: 0 0 12px var(--glow); animation: blink 0.9s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.boot__bar { height: 1px; background: var(--line-2); overflow: hidden; }
.boot__bar i { display: block; height: 100%; width: 100%; background: var(--phos); box-shadow: 0 0 10px var(--phos); transform: scaleX(var(--p, 0)); transform-origin: left; }
.boot__meta { display: flex; justify-content: space-between; color: var(--muted); }
.boot__pct { color: var(--phos); }

/* ══ BACK — the only chrome (a chamfered .btn) ═════════════════════════ */
.back { position: fixed; z-index: 60; top: clamp(14px, 2.4vw, 26px); left: var(--gutter); --c: 10px; height: 48px; padding: 0 18px 0 5px; gap: 12px; font-size: 14px; color: var(--ink-2);
  --fill: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)); }
.back::after { backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.back .btn__ico { width: 38px; height: 38px; }
.back:hover .btn__ico svg { transform: translateX(-3px); }
.back .wm { color: var(--ink); font-size: 15px; margin-left: 2px; }
.back:hover { color: var(--ink); }
.js .back { opacity: 0; transform: translateY(-12px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), color 0.3s; }
.is-live .back, html:not(.boot-pending) .back { opacity: 1; transform: none; }

/* ══ SCROLL BUS (decorative progress) ═══════════════════════════════════ */
.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: 18px; pointer-events: none; }
@media (min-width: 1180px) { .bus { display: flex; } }
.bus__track { position: relative; width: 1px; height: 30vh; background: var(--line-2); }
.bus__track::before, .bus__track::after { content: ''; position: absolute; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; border: 1px solid var(--line-3); background: var(--bg); }
.bus__track::before { top: -8px; } .bus__track::after { bottom: -8px; }
.bus__fill { position: absolute; inset: 0; background: linear-gradient(var(--em), var(--phos)); box-shadow: 0 0 10px var(--glow); transform: scaleY(var(--p, 0)); transform-origin: top; }
.bus__label { writing-mode: vertical-rl; display: flex; gap: 10px; color: var(--muted); font-size: 10px; }
.bus__ref { color: var(--phos); font-weight: 500; }

/* ══ HERO ═══════════════════════════════════════════════════════════════ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; isolation: isolate; padding: clamp(96px, 12vh, 140px) 0 clamp(28px, 4vh, 48px); }
video.hero__photo { display: block; pointer-events: none; }
.hero__photo { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: 0.62; filter: saturate(0.95);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.40) 34%, #000 66%), linear-gradient(#000 60%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.40) 34%, #000 66%), linear-gradient(#000 60%, transparent); mask-composite: intersect; }
.hero:has(.hero__photo) .hero__board { opacity: 0.7; }
.hero__board { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.55) 38%, #000 62%), linear-gradient(#000 70%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.55) 38%, #000 62%), linear-gradient(#000 70%, transparent); mask-composite: intersect; }
.hero__veil { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 60% at 76% 46%, rgba(179, 18, 27, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent 22%, transparent 70%, var(--bg)); }

.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__copy { position: relative; z-index: 2; }

.status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 9px 16px 9px 14px; border-radius: 3px; background: rgba(255, 255, 255, 0.6); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); font-size: 10.5px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.status b { color: var(--ink); font-weight: 500; }
.status__sep { color: var(--dim); }

.hero__name { margin: clamp(22px, 3vh, 34px) 0 clamp(18px, 2.4vh, 26px); font-family: var(--f-sc); font-weight: 400; font-size: clamp(64px, 10.4vw, 168px); line-height: 0.86; letter-spacing: -0.025em; }
.hero__l { display: block; padding-bottom: 0.05em; }
.hero__w { display: inline-block; color: var(--ink); --final: var(--ink); }
.hero__w--em { color: var(--em-2); --final: var(--em-2); text-shadow: 0 0 40px rgba(227, 36, 43, 0.28); }
.hero__w .ch { display: inline-block; }
.js .hero__w .ch { opacity: 0; transform: translateY(42%); }
.is-live .hero__w .ch { animation: chOn 1.25s var(--ease-out) forwards; animation-delay: calc(var(--i) * 55ms + var(--w, 0ms)); }
@keyframes chOn {
  0%   { opacity: 0; transform: translateY(42%); color: var(--phos); text-shadow: 0 0 0 transparent; }
  35%  { opacity: 1; color: #FFF0EE; text-shadow: 0 0 28px var(--phos), 0 0 4px #fff; }
  100% { opacity: 1; transform: none; color: var(--final); text-shadow: 0 0 40px rgba(227, 36, 43, var(--glow-a, 0)); }
}
.hero__w--em .ch { --glow-a: 0.28; }

.hero__roles { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; color: var(--ink-2); font-size: 11.5px; }
.hero__roles i { width: 5px; height: 5px; border: 1px solid var(--em-2); transform: rotate(45deg); }
.hero__lead { margin-top: 22px; max-width: 34em; color: var(--ink-2); font-size: clamp(16.5px, 1.25vw, 19px); line-height: 1.62; }
.hero__lead em { color: var(--em-2); }
.hero__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.js [data-boot] { opacity: 0; transform: translateY(18px); }
.is-live [data-boot] { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1.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) .chip__pkg { opacity: 1; transform: none; } /* failsafe */

/* ── readouts ────────────────────────────────────────────────────────── */
.readouts { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: clamp(40px, 6vh, 72px); }
.readouts::before { content: ''; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: linear-gradient(90deg, var(--line-3), var(--line) 70%, transparent); }
.ro { position: relative; padding: 22px 18px 0 0; }
.ro::before { content: ''; position: absolute; left: -3px; top: -3px; width: 5px; height: 5px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px var(--em-2); }
.ro:first-child::before { left: 0; }
.ro + .ro { padding-left: 18px; }
.ro + .ro::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--line-2), transparent); }
.ro dt { font: 400 10px/1.4 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.ro dd { margin: 8px 0 0; font-family: var(--f-display); font-size: clamp(34px, 3.8vw, 56px); line-height: 1; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.ro dd small { font-size: 0.55em; color: var(--em-2); margin: 0 0.04em; }


/* ══ SECTIONS ═══════════════════════════════════════════════════════════ */
.sec { position: relative; padding: var(--section) 0 0; overflow-x: clip; }
.sh { margin-bottom: clamp(40px, 5vw, 72px); }
.sh__ref { display: flex; align-items: center; gap: 14px; color: var(--muted); margin-bottom: 22px; }
.sh__ref b { display: inline-grid; place-items: center; min-width: 38px; height: 24px; padding: 0 8px; border-radius: 6px; color: var(--phos); font-weight: 500; box-shadow: inset 0 0 0 1px var(--line-3); background: rgba(230, 29, 43, 0.023); }
.sh__ref i { flex: 1; max-width: 220px; height: 1px; background: linear-gradient(90deg, var(--line-3), transparent); transform-origin: left; }
.js .sh__ref i { transform: scaleX(0); transition: transform 1.4s var(--ease-out) 0.2s; }
.js .is-in .sh__ref i, .js .sh__ref.is-in i { transform: none; }
.sh__h { font-family: var(--f-sc); font-weight: 400; font-size: clamp(40px, 5.4vw, 84px); line-height: 1; letter-spacing: -0.02em; max-width: 14em; }
.sh__h em { color: var(--em-2); }
.sh__sub { margin-top: 22px; max-width: 36em; color: var(--ink-2); font-size: 17.5px; }

/* reveal */
.js .rv { opacity: 0; transform: translateY(30px); }
.js .rv.is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }

/* panels share one surface */
.panel, .sheet, .mod, .role__card, .hc, .ic {
  position: relative; border-radius: var(--r); background: linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.66));
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgba(20, 24, 32, 0.270);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* ── σ1 about ────────────────────────────────────────────────────── */
.bio__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.bio__quote { margin: 0; font-family: var(--f-display); font-size: clamp(24px, 2.55vw, 38px); line-height: 1.36; letter-spacing: -0.01em; color: var(--ink); }
.bio__quote b { font-weight: 500; color: var(--em-2); }
.bio__quote .w { transition: color 0.5s, text-shadow 0.6s; }
.js .bio__quote.is-split .w { color: #E8DAD6; }
.js .bio__quote.is-split .w.on { color: var(--ink); }
.js .bio__quote.is-split b .w.on { color: var(--em-2); text-shadow: 0 0 22px rgba(227, 36, 43, 0.35); }
.js .bio__quote.is-split .w.tip { color: var(--phos); text-shadow: 0 0 18px var(--glow); }

.sheet { padding: 8px 0 6px; position: sticky; top: 110px; }
.sheet__h { display: flex; justify-content: space-between; padding: 16px 22px 14px; color: var(--muted); border-bottom: 1px dashed var(--line-2); }
.sheet__h span:first-child { color: var(--phos); }
.sheet table { width: 100%; border-collapse: collapse; }
.sheet tr { position: relative; }
.sheet th, .sheet td { text-align: left; vertical-align: top; padding: 13px 22px; border-bottom: 1px dashed var(--line); }
.sheet tr:last-child th, .sheet tr:last-child td { border-bottom: 0; }
.sheet th { width: 34%; padding-right: 8px; font: 400 10px/1.7 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.sheet td { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); transition: color 0.3s; }
.sheet td i { color: var(--em-2); }
.sheet tr:hover td { color: var(--ink); }
.sheet tr:hover th { color: var(--phos); }

/* ── σ4 career trace ─────────────────────────────────────────────────── */
.trace { position: relative; --when: clamp(150px, 16vw, 220px); --gap: 56px; }
.trace__rail { position: absolute; top: 6px; bottom: 0; left: calc(var(--when) + var(--gap) / 2); width: 2px; margin-left: -1px; background: var(--line); border-radius: 2px; }
.trace__fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(var(--em), var(--phos)); box-shadow: 0 0 12px var(--glow); transform: scaleY(var(--p, 0)); transform-origin: top; }
.trace__spark { position: absolute; left: 50%; top: calc(var(--p, 0) * 100%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #FFF0EE; box-shadow: 0 0 0 4px rgba(230, 29, 43, 0.140), 0 0 24px 6px var(--phos); opacity: var(--spark, 0); transition: opacity 0.3s; }
.trace__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.role { position: relative; display: grid; grid-template-columns: var(--when) var(--gap) minmax(0, 1fr); align-items: start; }
.role__when { grid-column: 1; grid-row: 1; text-align: right; padding-top: 26px; display: grid; gap: 6px; color: var(--muted); font-size: 10.5px; }
.role__when b { color: var(--ink); font-weight: 500; font-size: 12px; transition: color 0.4s; }
.role__node { grid-column: 2; grid-row: 1; justify-self: center; margin-top: 26px; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--dim); position: relative; z-index: 1; transition: box-shadow 0.5s, background 0.5s; }
.role__node::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--dim); transition: background 0.4s; }
.role.is-on .role__node { box-shadow: inset 0 0 0 2px var(--phos), 0 0 18px var(--glow); }
.role.is-on .role__node::after { background: var(--phos); }
.role.is-on .role__when b { color: var(--phos); }
.role__card { grid-column: 3; grid-row: 1; padding: clamp(22px, 2.4vw, 32px); transition: box-shadow 0.5s; }
.role__card::before { content: ''; position: absolute; top: 33px; left: calc(var(--gap) / -2 + 8px); width: calc(var(--gap) / 2 - 8px); height: 1px; background: var(--line-2); transition: background 0.5s, box-shadow 0.5s; }
.role.is-on .role__card::before { background: var(--phos); box-shadow: 0 0 8px var(--phos); }
.role.is-on .role__card { box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -40px rgba(20, 24, 32, 0.16); }
.role__card:hover { box-shadow: inset 0 0 0 1px var(--line-3), 0 0 50px -24px rgba(230, 29, 43, 0.245); }
.role__org { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; color: var(--em-2); font-size: 10.5px; }
.role__live { display: inline-flex; align-items: center; gap: 8px; color: var(--phos); }
.role h3 { margin: 10px 0 14px; font-family: var(--f-display); font-size: clamp(23px, 2.2vw, 32px); line-height: 1.12; letter-spacing: -0.01em; }
.role ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.role li li, .role ul li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.role ul li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 9px; height: 1px; background: var(--em-2); }
.role ul li::after { content: ''; position: absolute; left: 10px; top: calc(0.62em - 2px); width: 5px; height: 5px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--em-2); }

/* ── σ3 honours ──────────────────────────────────────────────────────── */
.hgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hc { padding: clamp(22px, 2.2vw, 30px); display: flex; flex-direction: column; gap: 10px; overflow: hidden; --x: 50%; --y: 50%; transition: transform 0.6s var(--spring); }
.hc--wide { grid-row: span 2; justify-content: flex-end; background: radial-gradient(90% 70% at 30% 0%, rgba(179, 18, 27, 0.22), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)); }
.hc::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--x) var(--y), rgba(230, 29, 43, 0.036), transparent 45%); opacity: 0; transition: opacity 0.4s; }
.hc::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--x) var(--y), rgba(230, 29, 43, 0.245), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity 0.4s; }
.hgrid:hover .hc::before, .hgrid:hover .hc::after { opacity: 1; }
.hc:hover { transform: translateY(-3px); }
.hc__top { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: auto; padding-bottom: 18px; }
.hc__top span:first-child { color: var(--em-2); }
.hc__big { font-family: var(--f-display); font-size: clamp(96px, 11vw, 168px); line-height: 1; letter-spacing: -0.04em; color: var(--em-2); text-shadow: 0 0 60px rgba(227, 36, 43, 0.35); margin-bottom: 4px; }
.hc__big small { font-size: 0.38em; letter-spacing: 0; margin-left: 0.06em; vertical-align: 0.9em; color: var(--phos); }
.hc h3 { font-family: var(--f-display); font-size: clamp(21px, 1.8vw, 26px); line-height: 1.15; }
.hc--wide h3 { font-size: clamp(28px, 2.6vw, 38px); }
.hc h3 i { color: var(--em-2); }
.hc__src { color: var(--em-2); font-size: 10px; }
.hc p:last-child { color: var(--ink-2); font-size: 15px; }

/* ── σ5 education ────────────────────────────────────────────────────── */
.edu { margin-top: var(--section); }
.sh--row .sh__h { font-size: clamp(34px, 4.2vw, 64px); }
.edu__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 18px; }

/* ══ CLOSE: IN CONTROL ═════════════════════════════════════════════════ */
.close { position: relative; margin-top: clamp(64px, 8vw, 120px); padding: var(--section) 0 36px; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.close__photo { position: absolute; left: 0; right: 0; bottom: 0; z-index: -3; width: 100%; height: clamp(420px, 50vw, 760px); object-fit: cover; object-position: 60% 100%; opacity: 0.75;
  -webkit-mask-image: linear-gradient(transparent, #000 45%); mask-image: linear-gradient(transparent, #000 45%); }
.close:has(.close__photo) .close__board { opacity: 0.28; }
.close__board { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: 0.6; -webkit-mask-image: radial-gradient(70% 80% at 50% 100%, #000, transparent 85%); mask-image: radial-gradient(70% 80% at 50% 100%, #000, transparent 85%); }
.close::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 60% at 50% 110%, rgba(179, 18, 27, 0.2), transparent 70%), linear-gradient(var(--bg), transparent 30%); pointer-events: none; }
.close__h { font-family: var(--f-sc); font-weight: 400; font-size: clamp(52px, 8.6vw, 140px); line-height: 0.92; letter-spacing: -0.025em; max-width: 9em; }
.close__h em { color: var(--em-2); }

/* ── schematics: small working diagrams placed through the page ──── */
.sh--deco { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); column-gap: clamp(32px, 5vw, 80px); align-items: end; }
.sh--deco > :not(.sh__deco) { grid-column: 1; }
.sh__deco { grid-column: 2; grid-row: 1 / span 3; align-self: end; padding-bottom: 4px; }
.sch--pot { margin-top: 30px; max-width: 360px; }
.sch--iot { margin-top: 48px; max-width: 340px; }

.sch { display: block; width: 100%; height: auto; overflow: visible; }
.sch .w { fill: none; stroke: rgba(29, 29, 32, 0.336); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.5s var(--ease-io), stroke 0.4s, filter 0.4s; }
.sch .p { fill: none; stroke: var(--ink-2); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity 0.7s 0.55s, stroke 0.5s, fill 0.5s, filter 0.5s; }
.sch .pf { fill: var(--ink-2); opacity: 0; transition: opacity 0.7s 0.55s, fill 0.5s; }
.sch .j { fill: var(--ink-2); opacity: 0; transition: opacity 0.5s 0.9s; }
.sch .t { fill: var(--muted); font: 400 9.5px var(--f-mono); letter-spacing: 0.1em; text-anchor: middle; opacity: 0; transition: opacity 0.6s 0.9s, fill 0.3s; }
.sch.is-in .w { stroke-dashoffset: 0; }
.sch.is-in .p, .sch.is-in .pf, .sch.is-in .j, .sch.is-in .t { opacity: 1; }

/* powered: current in the wires, signals, glowing parts */
.sch .f { fill: none; stroke: var(--phos); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 2 10; opacity: 0; transition: opacity 0.6s; animation: wire 0.9s linear infinite; filter: drop-shadow(0 0 3px var(--phos)); }
.sch.is-on .f { opacity: 0.85; }
@keyframes wire { to { stroke-dashoffset: -12; } }
.sch .p.lt { opacity: 1; fill: transparent; stroke: transparent; transition: fill 0.5s, stroke 0.5s, filter 0.5s; transition-delay: var(--dl, 0.9s); }
.sch.is-on .p.lt { fill: var(--phos); stroke: var(--phos); filter: drop-shadow(0 0 7px var(--phos)) drop-shadow(0 0 18px rgba(230, 29, 43, 0.245)); }
.sch .halo { fill: url(#glowG); opacity: 0; transition: opacity 0.8s; transition-delay: var(--dl, 0.9s); }
.sch.is-on .halo { opacity: 1; }
.sch.is-in .p.ray, .sch.is-in .pf.ray { opacity: 0; transition-delay: var(--dl, 1s); }
.sch.is-on .p.ray { opacity: 1; stroke: var(--phos); }
.sch.is-on .pf.ray { opacity: 1; fill: var(--phos); }
.sch .sig { fill: none; stroke: rgba(230, 29, 43, 0.210); stroke-width: 1.4; stroke-linejoin: round; opacity: 0; transition: opacity 0.6s 1s; }
.sch .sig-run { fill: none; stroke: var(--phos); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 26 260; opacity: 0; filter: drop-shadow(0 0 4px var(--phos)); animation: sigRun 2.2s linear infinite; transition: opacity 0.6s 1.1s; }
.sch.is-on .sig, .sch.is-on .sig-run { opacity: 1; }
@keyframes sigRun { from { stroke-dashoffset: 286; } to { stroke-dashoffset: 0; } }
.sch .bar { fill: var(--phos); transform: scaleY(0); transform-box: fill-box; transform-origin: 50% 100%; transition: transform 1.6s var(--ease-out); transition-delay: var(--dl, 0.5s); filter: drop-shadow(0 0 4px var(--phos)); }
.sch.is-on .bar { transform: scaleY(1); }
.sch.is-on .xtal { animation: xtal 0.5s steps(2) infinite; }
@keyframes xtal { 50% { fill: var(--phos); stroke: var(--phos); } }
.sch.is-in .p.wave { opacity: 0; }
.sch.is-on .p.wave { stroke: var(--phos); animation: waveP 1.8s var(--ease-out) infinite; animation-delay: var(--dl, 0s); }
@keyframes waveP { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
.sch.is-on .wiper { animation: wiper 3.4s var(--ease-io) infinite alternate; }
@keyframes wiper { to { transform: translateX(96px); } }
.sch .needle { fill: none; stroke: var(--phos); stroke-width: 1.8; stroke-linecap: round; transform-origin: 250px 84px; transform: rotate(-58deg); opacity: 0; transition: opacity 0.6s 1s; filter: drop-shadow(0 0 3px var(--phos)); }
.sch.is-on .needle { opacity: 1; animation: needle 3.4s var(--ease-io) infinite alternate; }
@keyframes needle { to { transform: rotate(58deg); } }

/* logic: the LED follows Q, wires carrying a 1 light up */
.sch--logic { --dl: 0s; }
.sch--logic .lg.hi { stroke: var(--phos); filter: drop-shadow(0 0 3px var(--phos)); }
.sch--logic .bit.hi { fill: var(--phos); }
.sch--logic.is-on .p.lt { fill: transparent; stroke: transparent; filter: none; }
.sch--logic.is-on.q-on .p.lt { fill: var(--phos); stroke: var(--phos); filter: drop-shadow(0 0 7px var(--phos)) drop-shadow(0 0 18px rgba(230, 29, 43, 0.245)); }
.sch--logic.is-on .halo, .sch--logic.is-on .p.ray { opacity: 0; }
.sch--logic.is-on.q-on .halo, .sch--logic.is-on.q-on .p.ray { opacity: 1; }

/* ── the closing readout (shared with the control chart) ──────────── */
.circuit { margin: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); }
.circuit__scroll { overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.circuit__scroll::-webkit-scrollbar { display: none; }
.circuit__svg { min-width: 760px; }
.circuit__svg .t { font-size: 11px; }
.circuit__lever { transform-origin: 162px 60px; transform: rotate(-28deg); transition: transform 0.6s var(--spring), stroke 0.4s; }
.sch.is-on .circuit__lever { transform: none; stroke: var(--phos); }
.circuit__hit { fill: transparent; cursor: pointer; pointer-events: all; }
.circuit__svg .core-l, .circuit__svg .ldr, .circuit__svg .q1 { transition: stroke 0.5s, filter 0.5s; }
.sch.is-on .core-l { stroke: var(--em-2); filter: drop-shadow(0 0 4px var(--phos)); transition-delay: 0.7s; }
.sch.is-on .ldr { stroke: var(--phos); filter: drop-shadow(0 0 4px var(--phos)); transition-delay: 0.9s; }
.sch.is-on .q1 { stroke: var(--phos); filter: drop-shadow(0 0 6px var(--phos)); transition-delay: 1.1s; }

.circuit__hud {
  --c: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: 18px; padding: 12px 12px 12px 18px;
  color: var(--muted); font-size: 10.5px; background: rgba(255, 255, 255, 0.72); box-shadow: inset 0 0 0 1px var(--line-2);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.hud__led { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); transition: background 0.4s, box-shadow 0.4s; }
.circuit.is-live .hud__led { background: var(--phos); box-shadow: 0 0 10px var(--glow); }
.hud__state { color: var(--ink); min-width: 10ch; }
.hud__cell b { color: var(--phos); font-weight: 500; font-variant-numeric: tabular-nums; }
.hud__btn {
  --c: 7px; margin-left: auto; display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px 0 9px; border: 0; cursor: pointer;
  background: rgba(230, 29, 43, 0.032); color: var(--ink); font: inherit; letter-spacing: inherit; text-transform: inherit;
  box-shadow: inset 0 0 0 1px var(--line-3); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); transition: background 0.3s;
}
.hud__btn:hover { background: rgba(230, 29, 43, 0.098); }
.hud__sw { position: relative; width: 30px; height: 14px; border-radius: 2px; background: rgba(29, 29, 32, 0.096); box-shadow: inset 0 0 0 1px var(--line-2); }
.hud__sw i { position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 1px; background: var(--muted); transition: transform 0.45s var(--spring), background 0.3s, box-shadow 0.3s; }
.hud__btn[aria-pressed="true"] .hud__sw i { transform: translateX(16px); background: var(--phos); box-shadow: 0 0 8px var(--phos); }


.links { display: grid; border-top: 1px solid var(--line-2); }
.links a { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: clamp(20px, 2.4vw, 30px) 4px; border-bottom: 1px solid var(--line-2); overflow: hidden; isolation: isolate; }
.links a::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(230, 29, 43, 0.045), rgba(230, 29, 43, 0.009) 60%, transparent); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease-out); }
.links a::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--phos); box-shadow: 0 0 10px var(--phos); transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease-out); }
.links a:hover::before, .links a:hover::after { transform: none; }
.links span { color: var(--muted); }
.links b { font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 3vw, 42px); letter-spacing: -0.015em; line-height: 1.1; overflow-wrap: anywhere; transition: transform 0.6s var(--ease-out), color 0.3s; }
.links i { --ci: 10px; display: grid; place-items: center; width: 48px; height: 48px; color: var(--phos); background: rgba(230, 29, 43, 0.027); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 18px; clip-path: polygon(0 0, calc(100% - var(--ci)) 0, 100% var(--ci), 100% 100%, var(--ci) 100%, 0 calc(100% - var(--ci))); transition: transform 0.6s var(--spring), background 0.3s, color 0.3s; }
.links a:hover b { transform: translateX(10px); color: var(--phos); }
.links a:hover i { transform: translate(3px, -3px); background: var(--phos); color: #1A0607; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 32px; margin-top: clamp(56px, 8vw, 110px); color: var(--muted); }
.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; }

/* ══ RESPONSIVE ═════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .board { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "core core" "m0 m2" "m1 m3"; gap: 20px; }
  .core { padding: 30px 0 40px; }
  .core__pkg { width: min(260px, 70vw); }
  .board__traces { display: none; }
  .edu__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .sh--deco { grid-template-columns: 1fr; }
  .sh__deco { grid-column: 1; grid-row: auto; max-width: 320px; margin-top: 30px; }
  .pub__photo { width: 140%; left: -20%; top: 40px; }
  .hero__grid { grid-template-columns: 1fr; }
  .chip { justify-self: center; width: min(400px, 86%); margin-top: 8px; }
  .readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .ro, .ro + .ro { padding: 18px 12px 0 0; }
  .ro + .ro::after, .ro::before { display: none; }
  .ro { border-top: 1px solid var(--line-2); }
  .ro:last-child { grid-column: 1 / -1; }
  .readouts::before { display: none; }
  .bio__grid, .lab__grid, .pub__grid { grid-template-columns: 1fr; }
  .sheet { position: relative; top: 0; }
  .hgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hc--wide { grid-column: 1 / -1; grid-row: auto; }
  .trace { --when: 0px; --gap: 34px; }
  .role { grid-template-columns: var(--gap) minmax(0, 1fr); }
  .role__when { grid-column: 2; grid-row: 1; text-align: left; padding: 0 0 12px; display: flex; gap: 14px; flex-wrap: wrap; align-items: baseline; }
  .role__node { grid-column: 1; grid-row: 1; margin: 1px 0 0 -6.5px; justify-self: start; }
  .role__card { grid-column: 2; grid-row: 2; }
  .trace__rail { left: 0; margin-left: 0; }
  .role__card::before { display: none; }
  .book { order: 1; }
  .pub__copy { order: 2; }
}
@media (max-width: 640px) {
  :root { --r: 16px; }
  .board { grid-template-columns: 1fr; grid-template-areas: "core" "m0" "m1" "m2" "m3"; }
  .hgrid, .edu__grid { grid-template-columns: 1fr; }
  .hero__name { font-size: clamp(56px, 17vw, 96px); }
  .status { font-size: 9.5px; letter-spacing: 0.12em; }
  .status__sep { display: none; }
  .btn { height: 50px; font-size: 14.5px; }
  .back { height: 44px; font-size: 13px; padding-right: 15px; }
  .back .btn__ico { width: 34px; height: 34px; }
  .back .wm { font-size: 14px; }
  .circuit__hud { gap: 8px 16px; }
  .hud__btn { margin-left: 0; }
  .hero__photo { opacity: 0.38; object-position: 78% 50%; -webkit-mask-image: linear-gradient(rgba(0, 0, 0, 0.35), #000 55%, transparent); mask-image: linear-gradient(rgba(0, 0, 0, 0.35), #000 55%, transparent); }
  .close { padding-bottom: 120px; }
  .close__photo { height: 360px; opacity: 0.6; }
  .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; align-self: center; width: 40px; height: 40px; }
  .chip__part { display: none; }
  .sheet th, .sheet td { padding: 12px 16px; }
}

@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; }
  .chip__scan, .chip__pins::after { display: none; }
  .press__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .press__track [aria-hidden="true"], .press__track [aria-hidden="true"] + i { display: none; }
}

/* ==========================================================================
   CIAN — components of his own
   ========================================================================== */

/* matte: a fine grain over the black */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body::before { background: radial-gradient(rgba(230, 29, 43, 0.023) 1px, transparent 1.3px) 0 0 / 24px 24px, radial-gradient(70% 50% at 100% 0%, rgba(179, 18, 27, 0.12), transparent 70%), radial-gradient(60% 50% at 0% 100%, rgba(179, 18, 27, 0.07), transparent 70%); }
::selection { background: var(--em-2); color: #fff; }

/* red buttons carry white type */
.btn--em { color: #FFF6F5; }
.btn--em .btn__ico { background: rgba(255, 255, 255, 0.82); color: #FF8A82; }
.btn--em .btn__txt::before, .btn--em:hover .btn__txt::before { background: #FFF6F5; }
.btn--line:hover .btn__ico { color: #fff; }
.links a:hover i { color: #fff; }

.hero__name { font-size: clamp(56px, 8.6vw, 148px); }
.hero__l { white-space: nowrap; }
.edu--top { margin-top: 0; }
.chip__cap { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 22px; color: var(--muted); font-size: 10.5px; }
.chip__cap i { width: 18px; height: 1px; background: var(--line-3); }

/* ── hero: the portrait, plotted ────────────────────────────────────── */
.plot { position: relative; margin: 0; justify-self: end; width: min(540px, 100%); perspective: 1400px; z-index: 1; }
.plot__pkg { position: relative; aspect-ratio: 1; margin-top: 12%; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.6s var(--ease-out); }
.js .plot__pkg { opacity: 0; transform: translateY(40px) scale(0.96); }
.is-live .plot__pkg { opacity: 1; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: opacity 1.2s var(--ease-out) 0.25s, transform 1.4s var(--ease-out) 0.25s; }
.is-live .plot__pkg.is-tilting { transition: transform 0.6s var(--ease-out); }
html.js:not(.boot-pending):not(.is-live) .plot__pkg { opacity: 1; transform: none; }
.plot__frame {
  position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; border-radius: 4px; overflow: hidden;
  background: radial-gradient(70% 60% at 68% 60%, rgba(179, 18, 27, 0.32), transparent 70%), linear-gradient(160deg, #FFFFFF, #FFF9F6 62%);
  box-shadow: inset 0 0 0 1px var(--line-3), 0 50px 100px -40px rgba(20, 24, 32, 0.270), 0 0 90px -34px rgba(227, 36, 43, 0.55);
}
.plot__bar { display: flex; justify-content: space-between; align-items: center; height: 34px; padding: 0 16px; border-bottom: 1px solid var(--line-2); color: var(--muted); font-size: 9.5px; text-transform: none; letter-spacing: 0.08em; }
.plot__legend { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.plot__legend i { width: 16px; height: 2px; background: var(--phos); box-shadow: 0 0 6px var(--phos); }
.plot__area { position: relative; margin: 14px 14px 0 46px; }
.plot__y { position: absolute; left: -40px; top: 0; bottom: 0; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; justify-content: space-between; font-size: 9px; color: var(--dim); letter-spacing: 0.04em; transform: translateY(-0.5em); }
.plot__y li:nth-child(4) { color: var(--em-2); }
.plot__grid { position: absolute; inset: 0; background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% calc(100% / 5), linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 20% 100%; box-shadow: inset 1px 0 0 var(--line-3), inset 0 -1px 0 var(--line-3); }
.plot__trend { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plot__band { fill: rgba(227, 36, 43, 0.1); }
.plot__line { fill: none; stroke: var(--phos); stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 5px var(--phos)); stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-live .plot__line { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s var(--ease-io) 0.8s; }
html:not(.js) .plot__line { stroke-dashoffset: 0; }
.plot__dot { fill: #fff; stroke: var(--phos); stroke-width: 3; opacity: 0; }
.is-live .plot__dot { opacity: 1; transition: opacity 0.4s 2.9s; }
.plot__scan { position: absolute; top: 0; bottom: 0; left: 0; width: 22%; background: linear-gradient(90deg, transparent, rgba(230, 29, 43, 0.045) 80%, rgba(230, 29, 43, 0.245) 99%, transparent); transform: translateX(-100%); animation: plotScan 6s var(--ease-io) 2s infinite; mix-blend-mode: screen; pointer-events: none; }
@keyframes plotScan { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(480%); } }
.plot__x { display: flex; justify-content: space-between; margin: 0; padding: 8px 14px 9px 46px; list-style: none; font-size: 9px; color: var(--muted); letter-spacing: 0.08em; }
.plot__x li:last-child { color: var(--phos); }
.plot__fig { position: absolute; left: 0; right: 0; top: 0; bottom: 30px; z-index: 2; clip-path: inset(-30% 0 0 0); pointer-events: none; }
.plot__fig img { position: absolute; left: 10%; bottom: 0; width: 108%; max-width: none; height: auto; filter: drop-shadow(0 0 30px rgba(227, 36, 43, 0.2)) contrast(1.03); transform: translateZ(30px); }

/* ── σ2 the stack: a signal climbs six layers ───────────────────────── */
.layers { position: relative; }
.layers__rail { position: absolute; left: 18px; top: 24px; bottom: 24px; width: 2px; margin-left: -1px; background: var(--line); border-radius: 2px; }
.layers__fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(0deg, var(--em), var(--phos)); box-shadow: 0 0 12px var(--glow); transform: scaleY(var(--p, 0)); transform-origin: bottom; }
.layers__spark { position: absolute; left: 50%; top: calc((1 - var(--p, 0)) * 100%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #FFF0EE; box-shadow: 0 0 0 4px rgba(230, 29, 43, 0.140), 0 0 24px 6px var(--phos); opacity: var(--spark, 0); transition: opacity 0.3s; }
.layers__list { list-style: none; margin: 0; padding: 0 0 0 56px; display: grid; gap: 12px; }
.layer {
  position: relative; display: grid; grid-template-columns: 54px minmax(0, 1.25fr) minmax(0, 1fr); gap: 26px; align-items: center; padding: 24px 28px;
  border-radius: var(--r); background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.5s, background 0.5s;
}
.layer::before { content: ''; position: absolute; top: 50%; left: -38px; width: 38px; height: 1px; background: var(--line-2); transition: background 0.5s, box-shadow 0.5s; }
.layer__node { position: absolute; left: -45.5px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--dim); z-index: 1; transition: box-shadow 0.5s; }
.layer__node::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--dim); transition: background 0.4s; }
.layer__no { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 4px; font-size: 15px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); transition: color 0.4s, box-shadow 0.4s, background 0.4s; }
.layer h3 { font-family: var(--f-display); font-size: clamp(21px, 2vw, 27px); line-height: 1.15; }
.layer__main p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.layer__tools { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.layer__tools li { padding: 7px 11px; font-size: 10px; color: var(--ink-2); background: rgba(230, 29, 43, 0.023); box-shadow: inset 0 0 0 1px var(--line); transition: color 0.4s, box-shadow 0.4s; }
.layer.is-on { box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -40px rgba(20, 24, 32, 0.16); }
.layer.is-on::before { background: var(--phos); box-shadow: 0 0 8px var(--phos); }
.layer.is-on .layer__node { box-shadow: inset 0 0 0 2px var(--phos), 0 0 18px var(--glow); }
.layer.is-on .layer__node::after { background: var(--phos); }
.layer.is-on .layer__no { color: #fff; background: linear-gradient(135deg, var(--em-2), var(--em)); box-shadow: 0 0 24px -6px var(--glow); }
.layer.is-on .layer__tools li { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.layer:hover { box-shadow: inset 0 0 0 1px var(--line-3), 0 0 50px -24px rgba(230, 29, 43, 0.245); }

/* ── schematics tuning (red) ────────────────────────────────────────── */
.sch.is-on .p.lt { fill: rgba(230, 29, 43, 0.126); stroke: var(--phos); filter: drop-shadow(0 0 6px rgba(230, 29, 43, 0.245)) drop-shadow(0 0 16px rgba(230, 29, 43, 0.245)); }
.sch .tk { font-size: 9px; letter-spacing: 0.08em; fill: var(--ink-2); transition: fill 0.5s 1.4s; }
.sch.is-on .tk { fill: var(--ink); }

/* ── close: the control chart ───────────────────────────────────────── */
.dmaic { display: flex; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; counter-reset: ph; }
.dmaic li { position: relative; flex: 1; padding: 12px 14px 12px 40px; font-size: 10.5px; color: var(--muted); background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 1px var(--line); counter-increment: ph; transition: color 0.4s, box-shadow 0.4s, background 0.4s; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%); }
.dmaic li:first-child { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); }
.dmaic li::before { content: counter(ph, decimal-leading-zero); position: absolute; left: 16px; color: var(--dim); }
.dmaic li.is-done { color: var(--ink-2); background: rgba(179, 18, 27, 0.18); }
.dmaic li.is-done::before { color: var(--em-2); }
.dmaic li.is-on { color: #fff; background: linear-gradient(135deg, var(--em-2), var(--em)); box-shadow: 0 0 30px -8px var(--glow); }
.dmaic li.is-on::before { color: #fff; }
.spc__svg { min-width: 720px; }
.spc__svg .band { fill: rgba(230, 29, 43, 0.018); }
.spc__svg .lim { fill: none; stroke: rgba(29, 29, 32, 0.320); stroke-width: 1.2; stroke-dasharray: 6 6; }
.spc__svg .mu { fill: none; stroke: rgba(29, 29, 32, 0.440); stroke-width: 1.2; }
.spc__svg .trace { fill: none; stroke: var(--ink-2); stroke-width: 1.4; stroke-linejoin: round; opacity: 0; transition: opacity 0.6s 0.5s, stroke 0.6s; }
.spc__svg.is-in .trace { opacity: 0.7; }
.spc__svg .pt { fill: var(--bg); stroke: var(--ink-2); stroke-width: 1.4; opacity: 0; transition: opacity 0.4s, fill 0.4s, stroke 0.4s; transition-delay: calc(var(--i) * 18ms + 0.6s); }
.spc__svg.is-in .pt { opacity: 1; }
.spc__svg .pt.out { fill: var(--phos); stroke: #FFE1DE; filter: drop-shadow(0 0 6px var(--phos)); }
.spc__svg .ring { fill: none; stroke: var(--phos); stroke-width: 1.4; opacity: 0; transform-box: fill-box; transform-origin: center; }
.spc__svg .ring.on { animation: ring 1.6s var(--ease-out) infinite; }
@keyframes ring { 0% { opacity: 0.9; transform: scale(0.6); } 100% { opacity: 0; transform: scale(2.4); } }
.spc.is-live .spc__svg .trace { stroke: var(--phos); opacity: 0.9; filter: drop-shadow(0 0 4px rgba(230, 29, 43, 0.245)); }
.spc.is-live .spc__svg .pt { stroke: var(--phos); }
.spc.is-live .spc__svg .lim { stroke: var(--phos); }
.spc__svg .lbl { fill: var(--muted); font: 400 10.5px var(--f-mono); letter-spacing: 0.12em; }
.spc__svg .lbl--mu { fill: var(--em-2); }
.spc.is-running .hud__led { background: #F2B84B; box-shadow: 0 0 10px rgba(242, 184, 75, 0.7); animation: blink 0.8s steps(2) infinite; }

/* ── responsive ─────────────────────────────────────────────────────── */
@media (max-width: 920px) {
  .plot { justify-self: center; width: min(420px, 92%); margin-top: 8px; }
  .layer { grid-template-columns: 54px minmax(0, 1fr); }
  .layer__tools { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 640px) {
  .hero__name { font-size: clamp(48px, 15vw, 80px); }
  .layers__list { padding-left: 34px; }
  .layers__rail { left: 9px; }
  .layer { padding: 18px; gap: 14px 16px; grid-template-columns: 44px minmax(0, 1fr); }
  .layer::before { left: -24px; width: 24px; }
  .layer__node { left: -32.5px; }
  .layer__no { width: 44px; height: 44px; font-size: 13px; }
  .dmaic li { padding: 10px 6px 10px 14px; font-size: 9px; letter-spacing: 0.06em; }
  .dmaic li::before { display: none; }
  .plot__x li:nth-child(even) { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) { .plot__scan { display: none; } }

/* Greek letters keep their case: uppercase would turn σ into Σ and μ into M */
.sh__ref b, .bus__ref, .plot__y, .nt { text-transform: none; }


/* ==========================================================================
   COCA-COLA RED · less circuitry, more brand and data
   ========================================================================== */
:root { --coke: #E3101B; --coke-d: #A1070F; }
body::before { background: radial-gradient(60% 50% at 100% 0%, rgba(179, 18, 27, 0.1), transparent 70%), radial-gradient(50% 40% at 0% 100%, rgba(179, 18, 27, 0.06), transparent 70%); }

/* soft pills, not chamfered pads */
.btn::before { clip-path: none; border-radius: 999px; }
.btn::after { clip-path: none; border-radius: 999px; inset: 1.5px; }
.btn { padding: 0 7px 0 24px; }
.btn__ico { clip-path: none; border-radius: 50%; }
.links i { clip-path: none; border-radius: 50%; }
.circuit__hud { clip-path: none; border-radius: 18px; }
.hud__btn { clip-path: none; border-radius: 999px; }
.status { border-radius: 999px; }

/* ── hero: matte black and red signal, with a light Coca-Cola touch ── */
.hero__fizz { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero__ribbon { position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; width: 100%; height: clamp(60px, 7vw, 100px); overflow: visible; pointer-events: none; }
.hero__ribbon path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.hero__ribbon .r1 { stroke: var(--coke); stroke-width: 3; filter: drop-shadow(0 0 10px rgba(230, 29, 43, 0.245)); }
.hero__ribbon .r2 { stroke: #2A1717; stroke-width: 1.2; opacity: 0.55; }
.js .hero__ribbon { clip-path: inset(0 100% 0 0); }
.is-live .hero__ribbon { clip-path: inset(0 0 0 0); transition: clip-path 1.8s var(--ease-io) 0.8s; }
html.js:not(.boot-pending):not(.is-live) .hero__ribbon { clip-path: none; }
.hero { padding-bottom: clamp(70px, 9vw, 120px); }
/* the name must never run under the portrait */
.hero__copy { z-index: 3; }
.hero__name { font-size: clamp(52px, 7.6vw, 128px); }
.btn--em { --fill: linear-gradient(135deg, #FF3B3F, var(--coke) 50%, #A1070F); }

/* ── rails become glass tubes filling with fizzing red ──────────────── */
.layers__rail, .trace__rail { width: 10px; margin-left: -5px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line-2); }
.layers__fill, .trace__fill { border-radius: 10px; overflow: hidden; box-shadow: 0 0 18px rgba(230, 29, 43, 0.245); }
.layers__fill { background: linear-gradient(0deg, #7E050B, var(--coke) 70%, #FF4A4F); }
.trace__fill { background: linear-gradient(180deg, #FF4A4F, var(--coke) 30%, #7E050B); }
.layers__fill::after, .trace__fill::after { content: ''; position: absolute; inset: 0; border-radius: inherit; opacity: 0.75;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 1.1px, transparent 1.7px) 2px 0 / 10px 22px, radial-gradient(circle, rgba(255, 255, 255, 0.45) 0.8px, transparent 1.3px) 6px 11px / 10px 17px;
  animation: tubeFizz 2.2s linear infinite; }
@keyframes tubeFizz { to { background-position: 2px -22px, 6px -6px; } }
.layers__spark, .trace__spark { width: 16px; height: 8px; margin: -4px 0 0 -8px; border-radius: 8px; background: #FFF4F2; box-shadow: 0 0 14px rgba(255, 255, 255, 0.55); }
.layer__no { border-radius: 50%; }
.layer.is-on .layer__no { background: radial-gradient(circle at 35% 30%, #FF3B3F, var(--coke) 55%, #9E0710); }
.layer::before { height: 2px; margin-top: -1px; }
.role__card::before { height: 2px; }
.layer.is-on::before, .role.is-on .role__card::before { background: var(--coke); box-shadow: none; }
.layer.is-on .layer__node, .role.is-on .role__node { box-shadow: inset 0 0 0 2px #fff, 0 0 0 4px rgba(230, 29, 43, 0.245); background: var(--coke); }
.layer.is-on .layer__node::after, .role.is-on .role__node::after { background: #fff; inset: 5px; }

/* ── data charts instead of circuits ────────────────────────────────── */
.sch .p.grid { stroke: var(--line); stroke-dasharray: 3 5; }
.sch .bar { fill: var(--coke); filter: none; }
.sch .bar:nth-of-type(n + 7) { fill: #FF4A4F; }
.sch.is-on .w.hl { stroke: #fff; stroke-width: 2; }
.donut__track { fill: none; stroke: rgba(255, 255, 255, 0.06); stroke-width: 16; }
.donut__seg { fill: none; stroke-width: 16; stroke-dasharray: 0 100; transform: rotate(-90deg); transform-origin: 80px 70px; transition: stroke-dasharray 1.4s var(--ease-out); }
.donut__seg--a { stroke: var(--coke); }
.donut__seg--b { stroke: #2A1717; stroke-dashoffset: -75; transition-delay: 0.9s; }
.sch.is-on .donut__seg--a { stroke-dasharray: 74 26; }
.sch.is-on .donut__seg--b { stroke-dasharray: 24 76; }
.donut__n { fill: var(--ink); font: 400 30px var(--f-sc); text-anchor: middle; opacity: 0; transition: opacity 0.6s 1s; }
.sch.is-in .donut__n { opacity: 1; }
.sch .dleg { text-anchor: start; font-size: 10px; }

/* ── education: bottle caps ─────────────────────────────────────────── */
.capc { position: relative; padding: 30px 26px 28px; border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; gap: 8px;
  background: radial-gradient(90% 60% at 50% 0%, rgba(230, 29, 43, 0.098), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8));
  box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.6s var(--spring), box-shadow 0.4s; }
.capc::after { content: ''; position: absolute; left: -20%; right: -20%; bottom: -60px; height: 120px; border-radius: 50%; border-top: 2px solid rgba(255, 255, 255, 0.07); pointer-events: none; }
.capc:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-3), 0 30px 60px -30px rgba(230, 29, 43, 0.245); }
.cap { position: relative; display: grid; place-items: center; width: 104px; height: 104px; margin: 0 0 18px; transition: transform 0.9s var(--spring); }
.cap svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 14px 18px rgba(20, 24, 32, 0.165)); }
.cap__edge { fill: #C80A14; }
.cap__face { fill: url(#capFace); }
.cap__ring { fill: none; stroke: rgba(255, 255, 255, 0.28); stroke-width: 1.2; }
.cap b { position: relative; font-family: var(--f-sc); font-weight: 400; font-size: 25px; color: #fff; letter-spacing: 0.02em; text-shadow: 0 2px 6px rgba(80, 0, 4, 0.5); }
.capc:hover .cap { transform: rotate(-28deg) translateY(-3px); }
.capc h3 { font-family: var(--f-display); font-size: 21px; line-height: 1.2; }
.capc__deg { color: #FF6B66; font-size: 10px; }
.capc p:last-child { color: var(--muted); font-size: 14.5px; }
.edu__grid { gap: 18px; }

@media (max-width: 640px) {
  .layers__rail { left: 9px; }
}
.layer__tools li, .role__tags span { border-radius: 999px; padding-inline: 13px; }
.sch .dleg { font-size: 11px; }

/* back button: a solid plate (the backdrop blur never applied, so page text showed through) */
.back { --fill: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)); padding: 0 20px 0 5px; filter: drop-shadow(0 10px 22px rgba(20, 24, 32, 0.165)); }
.back::after { backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (max-width: 640px) { .back { padding-right: 16px; } }

/* close backdrop: atmosphere, not foreground; the links must stay clean */
.close__photo { opacity: 0.4; height: clamp(460px, 56vw, 820px); -webkit-mask-image: linear-gradient(transparent, rgba(0, 0, 0, 0.50) 45%, #000 85%); mask-image: linear-gradient(transparent, rgba(0, 0, 0, 0.50) 45%, #000 85%); }
.links span { color: var(--ink-2); }

/* hero backdrop: the red light sits behind the portrait, the left stays dark for the name */
.hero__photo { opacity: 0.85; object-position: 70% 40%; }


/* ==========================================================================
   LIGHT · Coca-Cola red on warm white (less heavy than matte black)
   ========================================================================== */
body::before { background: radial-gradient(60% 45% at 100% 0%, rgba(230, 29, 43, 0.036), transparent 70%), radial-gradient(50% 40% at 0% 100%, rgba(230, 29, 43, 0.023), transparent 70%); -webkit-mask-image: none; mask-image: none; }
body::after { opacity: 0.035; mix-blend-mode: multiply; }
::selection { background: var(--em-2); color: #fff; }
.back { --fill: linear-gradient(rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.96)); color: var(--ink-2); filter: drop-shadow(0 10px 22px rgba(20, 24, 32, 0.12)); }
.back .wm { color: var(--ink); }
.btn--line { --fill: linear-gradient(#fff, #fff); color: var(--ink); }
.btn--line .btn__ico { background: rgba(230, 29, 43, 0.036); color: var(--em-2); }
.btn--line:hover .btn__ico { background: var(--em-2); color: #fff; }
.btn--em { color: #fff; filter: drop-shadow(0 14px 24px rgba(230, 29, 43, 0.210)); }
.status { background: #fff; box-shadow: inset 0 0 0 1px var(--line-2), 0 8px 20px -12px rgba(20, 24, 32, 0.2); }
.hero__veil { background: radial-gradient(42% 60% at 76% 46%, rgba(230, 29, 43, 0.036), transparent 70%), linear-gradient(180deg, rgba(251, 251, 252, 0.4), transparent 22%, transparent 70%, var(--bg)); }
.hero__w--em { text-shadow: none; }
.hero__lead em { color: var(--em-2); font-weight: 600; }
.hero__roles { color: var(--ink-2); }

/* the plot: a clean white chart card */
.plot__frame { background: radial-gradient(70% 60% at 68% 62%, rgba(230, 29, 43, 0.045), transparent 70%), #fff;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -36px rgba(20, 24, 32, 0.35); }
.plot__bar { border-bottom-color: var(--line); }
.plot__band { fill: rgba(230, 29, 43, 0.032); }
.plot__fig img { filter: drop-shadow(0 20px 30px rgba(20, 24, 32, 0.2)); }
.plot__scan { background: linear-gradient(90deg, transparent, rgba(230, 29, 43, 0.027) 80%, rgba(230, 29, 43, 0.154) 99%, transparent); mix-blend-mode: multiply; }

/* panels read as white cards */
.sheet, .role__card, .hc, .layer, .capc, .stay__grid, .circuit__hud, .dmaic li { box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -26px rgba(20, 24, 32, 0.22); }
.hc--wide { background: radial-gradient(90% 70% at 30% 0%, rgba(230, 29, 43, 0.045), transparent 70%), #fff; }
.hc__big { text-shadow: none; }
.js .bio__quote.is-split .w { color: #D5D8DD; }
.js .bio__quote.is-split b .w.on { text-shadow: none; }
.js .bio__quote.is-split .w.tip { text-shadow: none; }
.layer.is-on .layer__no { color: #fff; }
.layers__rail, .trace__rail { background: #E9ECF0; box-shadow: inset 0 0 0 1px var(--line); }
.layers__spark, .trace__spark { background: #fff; box-shadow: 0 0 0 3px var(--em-2), 0 6px 14px rgba(230, 29, 43, 0.245); }
.layer.is-on .layer__node, .role.is-on .role__node { box-shadow: inset 0 0 0 2px #fff, 0 0 0 4px rgba(230, 29, 43, 0.210); }
.capc { background: radial-gradient(90% 60% at 50% 0%, rgba(230, 29, 43, 0.036), transparent 70%), #fff; }
.capc::after { border-top-color: rgba(230, 29, 43, 0.036); }
.cap svg { filter: drop-shadow(0 12px 16px rgba(120, 10, 15, 0.28)); }
.dmaic li { background: #fff; }
.dmaic li.is-done { background: #FFF0F0; }
.spc__svg .band { fill: rgba(230, 29, 43, 0.018); }
.spc__svg .pt { fill: #fff; }
.spc__svg .trace { stroke: var(--ink-2); }
.spc__svg .pt.out { stroke: #fff; }
.sch .pp, .sch .w { stroke: rgba(29, 29, 32, 0.245); }
.sch.is-on .w.hl { stroke: var(--em-2); }
.sch .p { stroke: var(--ink-2); }
.donut__track { stroke: #E9ECF0; }
.donut__seg--b { stroke: #2A1717; }
.close__photo { opacity: 0.35; }
.links a::after { box-shadow: none; }
.hud__btn { background: #fff; }
.tg, .hud__sw { background: #E9ECF0; }


/* ==========================================================================
   CHILLED · Coca-Cola red on ice white, with the dynamic ribbon
   The red is the brand's: crisp, used for the signal, the ribbon and the
   caps, never as a wash. Everything else is ice white, silver and charcoal,
   like a cold bottle with condensation on it.
   ========================================================================== */
html { color-scheme: light; }
body::before { background: radial-gradient(60% 45% at 100% 0%, rgba(214, 222, 232, 0.55), transparent 70%), radial-gradient(50% 40% at 0% 100%, rgba(230, 29, 43, 0.03), transparent 70%); }
.btn--em { filter: none; box-shadow: none; }
.btn--em:hover { filter: drop-shadow(0 10px 18px rgba(230, 29, 43, 0.22)); }
.hero__photo { filter: none; opacity: 0.8; object-position: 72% 50%; }
.close__photo { filter: none; opacity: 0.75; }
.hero__veil { background: linear-gradient(180deg, rgba(251, 251, 252, 0.35), transparent 22%, transparent 70%, var(--bg)); }
.plot__frame { background: linear-gradient(180deg, #FFFFFF, #F6F8FA); }
.hc--wide, .capc { background: linear-gradient(180deg, #FFFFFF, #F7F8FA); }
.status { box-shadow: inset 0 0 0 1px var(--line-2), 0 8px 20px -14px rgba(20, 24, 32, 0.25); }

/* the dynamic ribbon: a red wave with a white line riding it */
.ribbon { display: block; width: 100%; height: auto; overflow: visible; pointer-events: none; }
.ribbon .rb { fill: var(--em-2); }
.ribbon .rw { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; }
.hero__l--rib { position: relative; width: max-content; padding-bottom: 0.18em; }
.hero__rib { position: absolute; left: -0.02em; right: -0.04em; bottom: -0.1em; width: calc(100% + 0.06em); max-width: none; height: 0.34em; }
.hero__rib .rb { transform-origin: left; transform: scaleX(0); }
.hero__rib .rw { stroke-dasharray: 900; stroke-dashoffset: 900; }
.is-live .hero__rib .rb { animation: ribIn 1.2s var(--ease-out) 1s forwards; }
.is-live .hero__rib .rw { animation: ribLine 1.6s var(--ease-out) 1.5s forwards; }
@keyframes ribIn { to { transform: none; } }
@keyframes ribLine { to { stroke-dashoffset: 0; } }
html.js:not(.boot-pending):not(.is-live) .hero__rib .rb { transform: none; }
.hero__name .hero__w--em, .hero__name .hero__w--em .ch { color: var(--ink); -webkit-text-fill-color: var(--ink); background: none; text-shadow: none; }
.rib-band { position: relative; height: clamp(90px, 10vw, 150px); margin: clamp(40px, 6vw, 80px) 0 calc(-1 * clamp(20px, 3vw, 40px)); overflow: hidden; }
.rib-band svg { position: absolute; left: -2%; width: 104%; max-width: none; height: 100%; }
.rib-band .rb { fill: var(--em-2); }
.rib-band .rw { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; }
.rib-band .rs { fill: none; stroke: rgba(230, 29, 43, 0.25); stroke-width: 1.5; }
.rib-band .rw { stroke-dasharray: 2600; stroke-dashoffset: 2600; transition: stroke-dashoffset 2.2s var(--ease-out); }
.rib-band.is-in .rw { stroke-dashoffset: 0; }
.rib-band .bub { fill: none; stroke: rgba(255, 255, 255, 0.85); stroke-width: 1.4; animation: rise 5s linear infinite; }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(-60px); opacity: 0; } }


/* ==========================================================================
   SIGNATURE MOMENTS · the stack exploded, a Galton board, the career
   plotted against the stack, and caps that pop. Same ice white, silver and
   Coca-Cola red as the rest of the page; red only where the signal is.
   ========================================================================== */

/* ── σ3 · the climb: the stack, exploded ───────────────────────────────────────── */
.iso { position: relative; margin: 0; display: flex; flex-direction: column; }
.iso__scene { position: relative; flex: 1; perspective: 1500px; perspective-origin: 50% 15%; }
.iso__floor { position: absolute; left: 50%; top: 78%; width: 78%; height: 22%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(20, 24, 32, 0.16), transparent); filter: blur(8px); }
.iso__stack {
  --p: 0; --k: 0; --gap: clamp(30px, 5.2vh, 54px); --spread: calc(0.28 + var(--p) * 0.72);
  position: absolute; left: 50%; top: 72%; width: min(340px, 80%); aspect-ratio: 1;
  transform: translate(-50%, -50%) rotateX(60deg) rotateZ(-42deg); transform-style: preserve-3d;
}
.iso__plate {
  position: absolute; inset: 0; border-radius: 14px; transform-style: preserve-3d;
  transform: translateZ(calc(var(--i) * var(--gap) * var(--spread) + var(--lift, 0px)));
  background:
    repeating-linear-gradient(0deg, transparent 0 29px, rgba(29, 29, 32, 0.05) 29px 30px),
    repeating-linear-gradient(90deg, transparent 0 29px, rgba(29, 29, 32, 0.05) 29px 30px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(234, 238, 243, 0.9));
  box-shadow: inset 0 0 0 1px rgba(29, 29, 32, 0.16), 0 16px 24px -16px rgba(20, 24, 32, 0.32);
  transition: transform 0.9s var(--ease-out), box-shadow 0.5s, opacity 0.5s;
}
.iso__plate::after { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--dim); transition: background 0.4s, box-shadow 0.4s; }
.iso__plate.is-past::after { background: var(--coke); box-shadow: inset 0 0 0 3px #fff, 0 0 0 1.5px var(--coke); }
.iso__plate.is-cur { --lift: 30px; box-shadow: inset 0 0 0 1.5px var(--em-2), 0 34px 40px -24px rgba(230, 29, 43, 0.42); }
/* layers not reached yet are ghosts: a dashed outline floating above, no label */
.iso__plate.is-ahead { --lift: 56px; background: rgba(255, 255, 255, 0.18); box-shadow: none; outline: 1px dashed rgba(29, 29, 32, 0.22); outline-offset: -1px; }
.iso__plate.is-ahead .iso__lbl, .iso__plate.is-ahead .iso__name, .iso__plate.is-ahead::after { opacity: 0; }
.iso__lbl, .iso__name, .iso__plate::after { transition: color 0.4s, opacity 0.4s, background 0.4s, box-shadow 0.4s; }
.iso__lbl { position: absolute; left: 16px; top: 14px; font: 500 22px/1 var(--f-mono); letter-spacing: 0.04em; color: var(--muted); transition: color 0.4s; }
.iso__name { position: absolute; right: 16px; bottom: 14px; font: 400 16px/1 var(--f-display); color: var(--ink-2); transition: color 0.4s; }
.iso__plate.is-cur .iso__lbl { color: var(--em-2); }
.iso__plate.is-cur .iso__name { color: var(--ink); }
.iso__sig { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--k) * var(--gap) * var(--spread) + 46px)); transition: transform 0.9s var(--ease-out); }
.iso__sig i { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FF7A7D, var(--coke) 55%, #9E0710); box-shadow: 0 0 0 5px rgba(230, 29, 43, 0.14), 0 0 26px rgba(230, 29, 43, 0.45); transform: rotateZ(42deg) rotateX(-60deg); }
.iso__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.iso__cap b { font-weight: 500; color: var(--em-2); text-align: right; }

/* ── σ5 · a Galton board ─────────────────────────────────────────────── */
.galton { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(24px, 3.4vw, 56px); align-items: center; margin-bottom: 16px; padding: clamp(18px, 2.4vw, 32px); border-radius: var(--r); background: linear-gradient(180deg, #FFFFFF, #F7F8FA); box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -26px rgba(20, 24, 32, 0.22); }
.galton__stage { position: relative; min-width: 0; }
.galton__cv { display: block; width: 100%; height: clamp(320px, 34vw, 460px); }
.galton__k { color: var(--em-2); font-size: 10px; }
.galton__h { margin-top: 14px; font-family: var(--f-sc); font-size: clamp(28px, 2.8vw, 44px); line-height: 1.04; letter-spacing: -0.01em; }
.galton__h em { color: var(--em-2); }
.galton__p { margin-top: 16px; max-width: 34em; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.galton__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0; border-top: 1px solid var(--line-2); }
.galton__stats div { padding: 14px 12px 0 0; }
.galton__stats div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.galton__stats dt { color: var(--muted); font-size: 9.5px; }
.galton__stats dd { margin: 8px 0 0; font: 400 clamp(26px, 2.4vw, 36px)/1 var(--f-display); font-variant-numeric: tabular-nums; color: var(--ink); }
.galton__stats div:nth-child(2) dd, .galton__stats div:nth-child(3) dd { color: var(--em-2); }

/* ── σ3 · the climb: the career, plotted against the stack ─────────────────────── */
.cplot { margin: 0; }
.cplot__in { padding: 18px 18px 14px; border-radius: var(--r); background: linear-gradient(180deg, #FFFFFF, #F6F8FA); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -36px rgba(20, 24, 32, 0.3); }
.cplot__bar { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.cplot__bar .nt { color: var(--em-2); }
.cplot__svg { display: block; width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.cplot__svg .g { stroke: var(--line); stroke-width: 1; }
.cplot__svg .ax { stroke: var(--line-3); stroke-width: 1; }
.cplot__svg .lab { font: 400 10px var(--f-mono); letter-spacing: 0.08em; fill: var(--muted); }
.cplot__svg .lab--y { text-anchor: end; }
.cplot__svg .lab--x { text-anchor: middle; }
.cplot__svg .lab.is-on { fill: var(--ink); }
.cplot__svg .rng { stroke: var(--dim); stroke-width: 6; stroke-linecap: round; transition: stroke 0.5s; }
.cplot__svg .pt .core { fill: #fff; stroke: var(--dim); stroke-width: 2; transition: fill 0.5s, stroke 0.5s; }
.cplot__svg .pt .ring { fill: none; stroke: var(--em-2); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.cplot__svg .pt .tag { font: 500 10px var(--f-mono); letter-spacing: 0.06em; fill: var(--ink-2); opacity: 0; transition: opacity 0.5s; }
.cplot__svg .pt.is-on .core { fill: var(--coke); stroke: #fff; }
.cplot__svg .pt.is-on .tag { opacity: 1; }
.cplot__svg .pt.is-on .rng { stroke: rgba(230, 29, 43, 0.35); }
.cplot__svg .pt.is-cur .ring { opacity: 1; animation: cpPing 1.8s var(--ease-out) infinite; }
@keyframes cpPing { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(2.4); opacity: 0; } }
.cplot__svg .fit { stroke: var(--coke); stroke-width: 2.4; stroke-linecap: round; fill: none; transition: opacity 0.5s; }
.cplot__svg .fitband { fill: rgba(230, 29, 43, 0.05); transition: opacity 0.5s; }
.cplot__now { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 10.5px; }
.cplot__now b { font-weight: 500; color: var(--ink); }

/* ── σ6 · the caps pop, with a little fizz ──────────────────────────── */
.cap__fizz { position: absolute; left: 26px; top: 30px; width: 104px; height: 104px; pointer-events: none; }
.cap__fizz i { position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 1.2px rgba(230, 29, 43, 0.55); opacity: 0; }
.capc.is-pop .cap__fizz i { animation: capFizz 1.5s var(--ease-out) var(--d) forwards; }
@keyframes capFizz { 0% { opacity: 0; transform: translate(0, 0) scale(0.3); } 18% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1); } }
.js .capc:not(.is-pop) .cap { opacity: 0; }
.capc.is-pop .cap { animation: capPop 1.4s var(--spring) var(--pd, 0s) backwards; }
@keyframes capPop {
  0% { transform: perspective(520px) translateY(26px) rotateY(-540deg) scale(0.55); opacity: 0; }
  55% { transform: perspective(520px) translateY(-16px) rotateY(24deg) scale(1.06); opacity: 1; }
  100% { transform: perspective(520px) translateY(0) rotateY(0) scale(1); opacity: 1; }
}

@media (max-width: 960px) {
  .galton { grid-template-columns: 1fr; }
}

/* ── σ3 · the climb: both figures, side by side, in one held frame ──── */
.duo { padding-top: clamp(40px, 6vw, 90px); height: 320vh; }
.duo__pin { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 560px; }
.duo__in { height: 100%; display: flex; flex-direction: column; padding-top: clamp(72px, 10vh, 104px); padding-bottom: clamp(16px, 3vh, 30px); }
.duo__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 12px 40px; align-items: end; margin-bottom: clamp(14px, 2.6vh, 28px); }
.duo__head .sh__ref { grid-column: 1 / -1; margin-bottom: 4px; }
.duo__titles { display: contents; }
.duo__head .sh__h { font-size: clamp(32px, min(3.8vw, 7vh), 62px); }
.duo__head .sh__sub { margin-top: 0; justify-self: end; max-width: 34em; font-size: 15.5px; }
.duo__grid { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.duo__card { position: relative; min-height: 0; display: flex; overflow: hidden; padding: clamp(14px, 1.6vw, 22px); border-radius: var(--r); background: linear-gradient(180deg, #FFFFFF, #F6F8FA); box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -26px rgba(20, 24, 32, 0.22); }
.duo .iso { flex: 1; min-height: 0; }
.duo .iso__stack { width: min(290px, 60%); top: 70%; --gap: clamp(20px, 4vh, 42px); }
.duo .cplot { flex: 1; min-width: 0; display: flex; }
.duo .cplot__in { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0; background: none; box-shadow: none; }
.duo .cplot__svg { flex: 1; min-height: 0; width: 100%; height: 100%; }
.duo__steps { list-style: none; display: flex; gap: 8px; margin: 14px 0 0; padding: 0; }
.duo__steps li { position: relative; flex: 1; padding-top: 12px; text-align: center; font-size: 9.5px; color: var(--muted); transition: color 0.4s; }
.duo__steps li::before, .duo__steps li::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px; background: #E9ECF0; }
.duo__steps li::after { background: var(--coke); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease-out); }
.duo__steps li.is-on { color: var(--ink); }
.duo__steps li.is-on::after { transform: scaleX(1); }
.duo__steps li.is-cur { color: var(--em-2); }
@media (max-width: 960px) {
  .duo { height: auto; padding-top: var(--section); }
  .duo__pin { position: relative; height: auto; min-height: 0; }
  .duo__in { padding-top: 0; padding-bottom: 0; }
  .duo__head { grid-template-columns: 1fr; }
  .duo__head .sh__sub { justify-self: start; }
  .duo__grid { grid-template-columns: 1fr; }
  .duo__card--stack { height: 440px; }
  .duo__steps { display: none; }
}

/* ══ 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; }
  /* close: the ribbon sits under the footer, not behind its text */
  .close { padding-bottom: 190px; }
  .close__photo { height: 230px; -webkit-mask-image: linear-gradient(transparent, #000 40%); mask-image: linear-gradient(transparent, #000 40%); }
}

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