/* ==========================================================================
   Saizen Acuity — Paul Dragoonis — "Pipeline"
   ByteHire's world: near-black ink, royal blue signal, sharp notched edges.
   Paul is a Principal Engineer and open source leader, so the page runs like
   a pipeline: the hero is a live DAG of jobs, his portrait sits in an editor,
   ByteHire's validation layer filters a live candidate stream, and the close
   is a CI run the visitor can re-run.
   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:     #04060C;
  --bg-2:   #070B14;
  --panel:  rgba(10, 16, 29, 0.62);
  --panel-s:#0A101D;
  /* silkscreen */
  --ink:    #EEF2FB;
  --ink-2:  #AAB4C9;
  --muted:  #7480A0;
  --dim:    #33405A;
  --line:   rgba(120, 205, 255, 0.10);
  --line-2: rgba(120, 205, 255, 0.18);
  --line-3: rgba(120, 205, 255, 0.32);
  /* copper + signal */
  --em:     #0088D1;
  --em-2:   #00A9F4;
  --phos:   #38C3FF;
  --glow:   rgba(56, 195, 255, 0.55);
  /* 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(56, 195, 255, 0.075) 1px, transparent 1.3px) 0 0 / 24px 24px,
    radial-gradient(70% 50% at 100% 0%, rgba(0, 120, 210, 0.10), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(0, 120, 210, 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: #021422; }
: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(56, 195, 255, 0.14), 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(10, 16, 29, 0.8), rgba(10, 16, 29, 0.8)); --sheen: rgba(56, 195, 255, 0.16);
  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%, #EFF9FF 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: #9ADFFF; --edge-hover: #00A9F4; --fill: linear-gradient(135deg, #6FD3FF, var(--em-2) 48%, var(--em)); --sheen: rgba(255, 255, 255, 0.5); color: #021422; filter: drop-shadow(0 14px 26px rgba(0, 169, 244, 0.32)); }
.btn--em:hover { filter: drop-shadow(0 18px 34px rgba(56, 195, 255, 0.45)); }
.btn--em .btn__txt::before, .btn--em:hover .btn__txt::before { background: #021422; 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(2, 14, 26, 0.9); color: var(--phos); }
.btn--line .btn__ico { background: rgba(56, 195, 255, 0.08); 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: #021422; }
.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: #020403;
  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(56, 195, 255, 0.06) 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(4, 6, 12, 0.7), rgba(4, 6, 12, 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); }
.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.4) 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.4) 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(0, 120, 210, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(4, 6, 12, 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(10, 16, 29, 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(0, 169, 244, 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: #E6F7FF; 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(0, 169, 244, 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(56, 195, 255, 0.05); }
.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(14, 22, 38, 0.66), rgba(7, 11, 20, 0.66));
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* ── 01 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: #1C2638; }
.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(0, 169, 244, 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); }

/* ── 05 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: #E6F7FF; box-shadow: 0 0 0 4px rgba(56, 195, 255, 0.2), 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 #000; }
.role__card:hover { box-shadow: inset 0 0 0 1px var(--line-3), 0 0 50px -24px rgba(56, 195, 255, 0.45); }
.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); }

/* ── 03 open source cards ──────────────────────────────────────────────────────── */
.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(0, 120, 210, 0.22), transparent 70%), linear-gradient(180deg, rgba(14, 22, 38, 0.7), rgba(7, 11, 20, 0.7)); }
.hc::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--x) var(--y), rgba(56, 195, 255, 0.08), 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(56, 195, 255, 0.7), 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(0, 169, 244, 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; }

/* ══ CLOSE: SHIP IT ═════════════════════════════════════════════════ */
.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(0, 120, 210, 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(120, 205, 255, 0.42); 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(56, 195, 255, 0.6)); }
.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(56, 195, 255, 0.3); 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(56, 195, 255, 0.6)); }
.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 pipeline) ─────────────── */
.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(7, 11, 20, 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(56, 195, 255, 0.07); 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(56, 195, 255, 0.14); }
.hud__sw { position: relative; width: 30px; height: 14px; border-radius: 2px; background: rgba(120, 205, 255, 0.12); 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(56, 195, 255, 0.1), rgba(56, 195, 255, 0.02) 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(56, 195, 255, 0.06); 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: #021422; }

.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; }
}

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

/* ByteHire edges: sharp, with the notched top-right corner */
:root { --r: 2px; --notch: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); --amber: #F2B84B; }
.sheet, .role__card, .hc, .bst, .org, .bh__roles, .bh__quote, .shell { clip-path: var(--notch); }
.sch .tk { font-size: 8.5px; fill: var(--ink-2); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── hero: the portrait in an editor window ─────────────────────────── */
.term { position: relative; margin: 0; justify-self: end; width: min(540px, 100%); perspective: 1400px; z-index: 1; }
.term__pkg { position: relative; aspect-ratio: 1; margin-top: 14%; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.6s var(--ease-out); }
.js .term__pkg { opacity: 0; transform: translateY(40px) scale(0.96); }
.is-live .term__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 .term__pkg.is-tilting { transition: transform 0.6s var(--ease-out); }
html.js:not(.boot-pending):not(.is-live) .term__pkg { opacity: 1; transform: none; }

.term__win {
  position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background: radial-gradient(70% 60% at 70% 60%, rgba(0, 169, 244, 0.22), transparent 70%), linear-gradient(160deg, #0B1424, #05080F 62%);
  box-shadow: inset 0 0 0 1px var(--line-3), 0 0 90px -30px rgba(0, 169, 244, 0.55);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}
.term__bar { display: flex; align-items: stretch; height: 34px; border-bottom: 1px solid var(--line-2); background: rgba(4, 6, 12, 0.7); font-size: 10px; color: var(--muted); text-transform: none; letter-spacing: 0.06em; }
.term__tab { display: flex; align-items: center; padding: 0 14px; border-right: 1px solid var(--line); }
.term__tab.is-on { color: var(--ink); background: rgba(56, 195, 255, 0.07); box-shadow: inset 0 2px 0 var(--em-2); }
.term__branch { margin-left: auto; display: flex; align-items: center; gap: 6px; padding: 0 34px 0 12px; color: var(--em-2); }
.term__branch svg { width: 13px; height: 13px; }
.term__body { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); overflow: hidden; }
.term__gutter, .term__code { font: 400 clamp(9px, 0.78vw, 11px)/1.7 var(--f-mono); }
.term__gutter { list-style: none; margin: 0; padding: 14px 10px 0 0; text-align: right; color: var(--dim); border-right: 1px solid var(--line); }
.term__code { margin: 0; padding: 14px 16px 0; color: var(--ink-2); white-space: pre; overflow: hidden; opacity: 0.85; }
.term__code .k { color: var(--em-2); }
.term__code .c { color: #8EDCFF; }
.term__code .f { color: var(--ink); }
.term__code .s, .term__code .n { color: var(--amber); }
.term__code .m { color: var(--muted); }
.term__scan { position: absolute; left: 0; right: 0; top: 0; height: 30%; background: linear-gradient(transparent, rgba(56, 195, 255, 0.1) 80%, rgba(56, 195, 255, 0.45) 99%, transparent); transform: translateY(-100%); animation: scan 5.5s var(--ease-io) 1.4s infinite; mix-blend-mode: screen; pointer-events: none; }
@keyframes scan { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(340%); } }
.term__status { display: flex; align-items: center; gap: 16px; height: 28px; padding: 0 14px; font-size: 9.5px; color: var(--ink-2); background: rgba(0, 120, 210, 0.35); border-top: 1px solid var(--line-2); text-transform: none; letter-spacing: 0.06em; position: relative; z-index: 3; }
.term__ok { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }
.term__ok i { width: 6px; height: 6px; border-radius: 50%; background: var(--phos); box-shadow: 0 0 8px var(--phos); }
/* the figure rises out of the top of the window, cut by its sides and status bar */
.term__fig { position: absolute; left: 0; right: 0; top: 0; bottom: 28px; z-index: 2; clip-path: inset(-30% 0 0 0); pointer-events: none; }
.term__fig img { position: absolute; left: 4%; bottom: 0; width: 118%; max-width: none; height: auto; filter: drop-shadow(0 0 30px rgba(0, 169, 244, 0.22)) contrast(1.03); transform: translateZ(30px); }
.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); }
.ro dd { white-space: nowrap; }

/* ── 02 ByteHire ────────────────────────────────────────────────────── */
.bh { isolation: isolate; }
.bh__video { position: absolute; z-index: -1; top: 0; left: 0; width: 100%; height: min(980px, 100vh); object-fit: cover; opacity: 0.34; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 25%, transparent), linear-gradient(90deg, rgba(0, 0, 0, 0.25), #000 55%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(#000 25%, transparent), linear-gradient(90deg, rgba(0, 0, 0, 0.25), #000 55%); mask-composite: intersect; }
.bh__brand { align-self: end; }
.bh__brand img { width: 100%; max-width: 270px; height: auto; }
.bh__brand p { margin-top: 14px; color: var(--muted); font-size: 10px; max-width: 26em; }

.funnel { position: relative; height: clamp(360px, 36vw, 460px); border-block: 1px solid var(--line-2); background: linear-gradient(90deg, transparent, rgba(7, 11, 20, 0.6) 50%, transparent); overflow: hidden; touch-action: pan-y; }
.funnel canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.funnel__gate { position: absolute; top: 0; bottom: 0; left: 50%; width: 150px; margin-left: -75px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 169, 244, 0.1) 35%, rgba(56, 195, 255, 0.2) 50%, rgba(0, 169, 244, 0.1) 65%, transparent); }
.funnel__gate span { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: linear-gradient(transparent, var(--phos) 20%, var(--phos) 80%, transparent); box-shadow: 0 0 16px var(--phos); }
.funnel__gate::after { content: ''; position: absolute; left: 30%; right: 30%; height: 70px; top: 0; background: linear-gradient(transparent, rgba(56, 195, 255, 0.35), transparent); animation: gateScan 3.2s var(--ease-io) infinite alternate; }
@keyframes gateScan { to { transform: translateY(calc(clamp(360px, 36vw, 460px) - 70px)); } }
.funnel__labels { position: absolute; left: 0; right: 0; top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 0 20px; pointer-events: none; }
.funnel__labels > div:nth-child(2) { text-align: center; }
.funnel__labels > div:nth-child(3) { text-align: right; }
.funnel__labels .mono { color: var(--ink); font-size: 10.5px; }
.funnel__labels b { color: var(--phos); font-weight: 500; margin-right: 6px; }
.funnel__labels p:not(.mono) { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.funnel__mid p:not(.mono) { max-width: 20em; margin-inline: auto; }
.funnel__labels > div:nth-child(3) p:not(.mono) { margin-left: auto; }
.funnel__in, .funnel__out, .funnel__hint { position: absolute; bottom: 16px; font-size: 10px; pointer-events: none; }
.funnel__in { left: 20px; color: var(--muted); }
.funnel__out { right: 20px; color: var(--phos); }
.funnel__hint { left: 50%; transform: translateX(-50%); color: var(--dim); font-size: 9.5px; white-space: nowrap; }

.bh__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 40px 0 0; }
.bst { position: relative; padding: 26px 26px 24px; background: linear-gradient(180deg, rgba(14, 22, 38, 0.7), rgba(7, 11, 20, 0.7)); box-shadow: inset 0 0 0 1px var(--line); }
.bst dt { color: var(--muted); font-size: 10px; }
.bst dd { margin: 16px 0 12px; font-family: var(--f-display); font-size: clamp(56px, 6vw, 96px); line-height: 0.9; letter-spacing: -0.035em; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.bst dd small { font-size: 0.42em; letter-spacing: 0; color: var(--em-2); margin-left: 0.04em; }
.bst p { color: var(--ink-2); font-size: 15px; }

.steps { position: relative; margin-top: 64px; }
.steps__h { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 22px; }
.steps__n b { color: var(--phos); font-weight: 500; }
.steps__rail { position: relative; height: 2px; margin-bottom: 30px; background: var(--line); }
.steps__rail i { position: absolute; left: 0; top: 0; height: 100%; width: var(--spx, 0px); max-width: 100%; background: linear-gradient(90deg, var(--em), var(--phos)); box-shadow: 0 0 12px var(--glow); transition: width 0.9s var(--ease-out); }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.step { position: relative; padding: 20px 18px 22px; border-radius: 2px; background: linear-gradient(180deg, rgba(14, 22, 38, 0.66), rgba(7, 11, 20, 0.66)); box-shadow: inset 0 0 0 1px var(--line); opacity: 0.5; cursor: pointer; transition: opacity 0.5s, box-shadow 0.5s, transform 0.6s var(--spring); }
.step::before { content: ''; position: absolute; top: -37px; left: 18px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--dim); transition: background 0.4s, box-shadow 0.4s; }
.step.is-done { opacity: 0.82; }
.step.is-done::before { box-shadow: inset 0 0 0 2px var(--em-2); }
.step.is-on { opacity: 1; transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-3), 0 0 44px -16px rgba(56, 195, 255, 0.55); }
.step.is-on::before { top: -33px; background: var(--phos); box-shadow: 0 0 0 4px rgba(56, 195, 255, 0.18), 0 0 14px var(--phos); }
.step__no { color: var(--em-2); font-size: 10px; }
.step h3 { margin: 10px 0 8px; font-family: var(--f-display); font-size: 19px; line-height: 1.15; }
.step p { color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }

.bh__foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 56px; align-items: stretch; }
.bh__roles, .bh__quote { padding: clamp(24px, 2.6vw, 34px); background: linear-gradient(180deg, rgba(14, 22, 38, 0.7), rgba(7, 11, 20, 0.7)); box-shadow: inset 0 0 0 1px var(--line); }
.bh__roles > .mono { color: var(--muted); margin-bottom: 18px; }
.bh__roles ul, .topics ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bh__roles li, .topics li {
  padding: 9px 13px; font: 400 11px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
  background: rgba(56, 195, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-2);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%); transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.bh__roles li:hover, .topics li:hover { background: rgba(56, 195, 255, 0.14); color: var(--phos); box-shadow: inset 0 0 0 1px var(--line-3); }
.bh__note { margin-top: 20px; color: var(--muted); font-size: 15.5px; }
.bh__quote { margin: 0; display: flex; flex-direction: column; gap: 18px; background: radial-gradient(80% 90% at 100% 0%, rgba(0, 169, 244, 0.18), transparent 70%), linear-gradient(180deg, rgba(14, 22, 38, 0.7), rgba(7, 11, 20, 0.7)); }
.bh__quote blockquote { margin: 0; font-family: var(--f-display); font-size: clamp(21px, 2vw, 28px); line-height: 1.32; }
.bh__quote figcaption { display: flex; gap: 14px; color: var(--muted); }
.bh__quote figcaption b { color: var(--ink); font-weight: 500; }
.bh__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }

/* ── 04 on stage ────────────────────────────────────────────────────── */
.stage__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 16px; }
.shot { position: relative; margin: 0; overflow: hidden; background: var(--panel-s); clip-path: var(--notch); }
.shot--main { grid-row: 1 / span 2; min-height: 520px; }
.shot:not(.shot--main) { aspect-ratio: 16 / 10; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8) contrast(1.05); transition: transform 1.4s var(--ease-out), filter 0.6s; }
.shot--main img { object-position: 70% 30%; }
.shot::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 45%, rgba(4, 6, 12, 0.94)), linear-gradient(135deg, rgba(0, 169, 244, 0.2), transparent 55%); }
.shot:hover img { transform: scale(1.04); filter: saturate(1) contrast(1.05); }
.shot figcaption { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 20px; display: grid; gap: 7px; font-size: 10px; color: var(--ink-2); text-transform: none; letter-spacing: 0.06em; }
.shot figcaption b { color: var(--phos); font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; }
.orgs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.org { position: relative; padding: 22px 22px 24px; background: linear-gradient(180deg, rgba(14, 22, 38, 0.7), rgba(7, 11, 20, 0.7)); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.4s; }
.org:hover { box-shadow: inset 0 0 0 1px var(--line-3), 0 0 40px -18px rgba(56, 195, 255, 0.5); }
.org__ref { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.org__live { display: inline-flex; align-items: center; gap: 8px; color: var(--phos); }
.org h3 { margin: 16px 0 6px; font-family: var(--f-display); font-size: clamp(22px, 2vw, 29px); line-height: 1.1; }
.org > p.mono:last-child { color: var(--em-2); font-size: 10px; }
.topics { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; }
.topics > .mono { color: var(--muted); }

.press { margin-top: clamp(64px, 8vw, 110px); }
.press__belt { overflow: hidden; border-block: 1px solid var(--line); padding: 24px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.press__track { display: flex; align-items: center; gap: clamp(28px, 4vw, 56px); width: max-content; animation: belt 34s linear infinite; }
.press__belt:hover .press__track { animation-play-state: paused; }
.press__track span { font-family: var(--f-sc); font-size: clamp(28px, 3.2vw, 46px); color: var(--dim); white-space: nowrap; transition: color 0.3s, text-shadow 0.3s; }
.press__track span:hover { color: var(--ink); text-shadow: 0 0 30px rgba(56, 195, 255, 0.4); }
.press__track i { flex: none; width: 7px; height: 7px; transform: rotate(45deg); box-shadow: inset 0 0 0 1px var(--em-2); }
.press--sectors .press__track { animation-duration: 46s; animation-direction: reverse; }
.press--sectors .press__track span { font-size: clamp(22px, 2.3vw, 32px); }
@keyframes belt { to { transform: translateX(-50%); } }

/* ── 05 career extras ───────────────────────────────────────────────── */
.role__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.role__tags span { padding: 6px 10px; font-size: 10px; color: var(--ink-2); background: rgba(56, 195, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line); }

/* ── 06 toolchain: roles and terminal side by side, equal height ──── */
.tool__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.roles { position: relative; display: flex; flex-direction: column; background: #05080F; box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -40px #000; clip-path: var(--notch); }
.hats { flex: 1; list-style: none; margin: 0; padding: 6px 0; display: grid; grid-auto-rows: 1fr; }
.hats li { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--line); font-size: 16.5px; color: var(--ink); transition: background 0.3s; }
.hats li:last-child { border-bottom: 0; }
.hats li:hover { background: rgba(56, 195, 255, 0.05); }
.hats li b { margin-left: auto; color: var(--dim); font-size: 10px; font-weight: 400; }
.shell { position: relative; background: #05080F; box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -40px #000; }
.shell::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 60% at 100% 0%, rgba(0, 169, 244, 0.14), transparent 70%); }
.shell__bar { display: flex; justify-content: space-between; padding: 13px 34px 13px 18px; font-size: 10px; color: var(--muted); border-bottom: 1px solid var(--line); text-transform: none; letter-spacing: 0.06em; }
.shell__body { position: relative; padding: 22px 22px 26px; font-size: 13px; line-height: 1.75; letter-spacing: 0.02em; text-transform: none; color: var(--ink-2); }
.shell__body [data-cmd] { color: var(--ink); min-height: 1.75em; }
.shell__body [data-cmd]::before, .shell__ps { content: '$ '; color: var(--em-2); }
.shell__body [data-cmd].is-typing::after { content: ''; display: inline-block; width: 8px; height: 15px; margin-left: 2px; vertical-align: -2px; background: var(--phos); }
.shell__out { margin: 6px 0 18px; }
.js .shell [data-out] { opacity: 0; transform: translateY(4px); transition: opacity 0.35s, transform 0.35s; }
.js .shell [data-out].is-shown { opacity: 1; transform: none; }
.shell__out p { margin: 0; }
.shell__out i { margin-right: 10px; color: var(--em-2); font-style: normal; }
.shell__langs { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.shell__langs span { padding: 3px 9px; color: var(--phos); background: rgba(56, 195, 255, 0.08); box-shadow: inset 0 0 0 1px var(--line-2); }
.shell__motto { color: var(--ink); font-family: var(--f-display); font-size: 22px; letter-spacing: 0; }
.js .shell__prompt { opacity: 0; }
.shell__prompt.is-shown { opacity: 1; }
.shell__cur { display: inline-block; width: 8px; height: 15px; margin-left: 4px; vertical-align: -2px; background: var(--phos); animation: blink 1s steps(2) infinite; }

/* ── close: the pipeline ────────────────────────────────────────────── */
.close__video { position: absolute; left: 0; right: 0; bottom: 0; z-index: -3; width: 100%; height: clamp(440px, 55vw, 860px); object-fit: cover; opacity: 0.42; pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 50%); mask-image: linear-gradient(transparent, #000 50%); }
.pipe__svg { min-width: 760px; }
.pipe__svg .w { stroke: rgba(120, 205, 255, 0.3); }
.pipe__svg .w.is-done { stroke: var(--em-2); }
.pipe__svg .f { opacity: 0; transition: opacity 0.4s; }
.pipe__svg .f.is-hot { opacity: 0.9; }
.pnode { opacity: 0; transition: opacity 0.6s 0.5s; }
.sch.is-in .pnode { opacity: 1; }
.pnode .box { fill: rgba(7, 11, 20, 0.92); stroke: var(--line-3); stroke-width: 1.4; transition: stroke 0.4s, fill 0.4s, filter 0.4s; }
.pnode .lbl { fill: var(--ink-2); font: 500 11px var(--f-mono); letter-spacing: 0.12em; transition: fill 0.4s; }
.pnode .dur { fill: var(--muted); font: 400 10px var(--f-mono); letter-spacing: 0.1em; opacity: 0; transition: opacity 0.4s; }
.pnode .st-pend { fill: none; stroke: var(--dim); stroke-width: 1.4; transition: opacity 0.3s; }
.pnode .st-run { fill: none; stroke: var(--phos); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 14 40; opacity: 0; transform-box: fill-box; transform-origin: center; animation: spin 0.9s linear infinite; }
.pnode .st-ok { opacity: 0; transition: opacity 0.3s; }
.pnode .st-ok circle { fill: var(--em-2); }
.pnode .st-ok path { fill: none; stroke: #021422; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pnode[data-state="running"] .box { stroke: var(--phos); filter: drop-shadow(0 0 8px rgba(56, 195, 255, 0.65)); }
.pnode[data-state="running"] .st-run { opacity: 1; }
.pnode[data-state="running"] .st-pend, .pnode[data-state="passed"] .st-pend { opacity: 0; }
.pnode[data-state="passed"] .box { stroke: var(--em-2); fill: rgba(0, 120, 210, 0.16); }
.pnode[data-state="passed"] .lbl { fill: var(--ink); }
.pnode[data-state="passed"] .st-ok, .pnode[data-state="passed"] .dur { opacity: 1; }
.pnode--live[data-state="passed"] .box { fill: rgba(56, 195, 255, 0.24); stroke: var(--phos); filter: drop-shadow(0 0 12px rgba(56, 195, 255, 0.7)); }
.pipe.is-live .hud__led { background: var(--phos); box-shadow: 0 0 10px var(--glow); }
.pipe.is-running .hud__led { background: var(--amber); box-shadow: 0 0 10px rgba(242, 184, 75, 0.7); animation: blink 0.8s steps(2) infinite; }
.pipe .hud__btn[disabled] { opacity: 0.5; cursor: progress; }
.pipe .hud__sw i { transform: translateX(16px); background: var(--phos); box-shadow: 0 0 8px var(--phos); }
.pipe.is-running .hud__sw i { transform: none; background: var(--amber); box-shadow: none; }

/* ── responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps__rail, .step::before { display: none; }
  .bh__foot { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .term { justify-self: center; width: min(420px, 92%); margin-top: 8px; }
  .stage__grid { grid-template-columns: 1fr; }
  .shot--main { grid-row: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .tool__grid { grid-template-columns: 1fr; }
  .bh__stats { grid-template-columns: 1fr; }
  .funnel__mid p:not(.mono), .funnel__hint { display: none; }
  .bh__brand img { max-width: 220px; }
}
@media (max-width: 640px) {
  .steps__list { grid-template-columns: 1fr; }
  .orgs { grid-template-columns: 1fr; }
  .term__tab:nth-child(2) { display: none; }
  .term__status span:nth-child(n + 3) { display: none; }
  .funnel__labels { gap: 8px; padding: 0 14px; }
  .funnel__labels p:not(.mono) { display: none; }
  .funnel__labels .mono { font-size: 9px; letter-spacing: 0.1em; }
  .shell__body { min-height: 0; font-size: 12px; }
  .bst dd { font-size: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .term__scan, .funnel__gate::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; }
}

/* ── tuning ─────────────────────────────────────────────────────────── */
.hero__name { font-size: clamp(54px, 6.9vw, 116px); }
.hero__l { white-space: nowrap; }
.hc__big { font-size: clamp(72px, 7vw, 116px); }
.bh__video { -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 40%, transparent), linear-gradient(90deg, rgba(0, 0, 0, 0.25), #000 55%); mask-image: linear-gradient(transparent, #000 18%, #000 40%, transparent), linear-gradient(90deg, rgba(0, 0, 0, 0.25), #000 55%); }
.funnel__mid { position: relative; justify-self: center; padding: 10px 16px 12px; background: rgba(4, 6, 12, 0.88); box-shadow: inset 0 0 0 1px var(--line-2); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
.close__video { opacity: 0.3; filter: saturate(0.85); }
@media (max-width: 640px) { .hero__name { font-size: clamp(44px, 13.4vw, 76px); } .funnel__mid { padding: 6px 8px; } .links b { font-size: clamp(18px, 5.2vw, 24px); overflow-wrap: normal; word-break: normal; } }

/* lit boxes glow from the edge so their labels stay readable */
.sch.is-on .p.lt { fill: rgba(56, 195, 255, 0.16); stroke: var(--phos); filter: drop-shadow(0 0 6px rgba(56, 195, 255, 0.8)) drop-shadow(0 0 16px rgba(56, 195, 255, 0.35)); }
.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); }
.sch .p.ok { stroke: var(--phos); opacity: 0; transition: opacity 0.5s 1.7s; }
.sch.is-in .p.ok { opacity: 0; }
.sch.is-on .p.ok { opacity: 1; }
.pnode .lbl { font-size: 10.5px; letter-spacing: 0.06em; }

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

/* ══ 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; }
  /* the closing pipeline: drawn wider so its labels stay legible; it scrolls and follows the running stage */
  .pipe__svg { min-width: 1080px; }
  .pipe .circuit__scroll { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
}
