/* ==========================================================================
   Saizen Acuity — Sudip Roy — "Evidence"
   Lanthra's world, in the dark: deep ink, teal for what is structural,
   clay for what is controllable, amber for what needs a look. Sudip founded
   Lanthra, so the page reads like its engine: expected versus actual. The
   hero is a live benchmark of 317 points around a match line, his portrait
   sits in a Lanthra window, and the close is a Pulse readiness radar.
   Shared systems are adapted from the Wael profile; type is the site's:
   Playfair Display SC, Playfair Display, DM Sans, DM Mono.
   ========================================================================== */

:root {
  /* solder mask */
  --bg:     #0A0E1A;
  --bg-2:   #0D1322;
  --panel:  rgba(13, 20, 32, 0.62);
  --panel-s:#111827;
  /* silkscreen */
  --ink:    #EEF2F7;
  --ink-2:  #A9B4C4;
  --muted:  #7C8798;
  --dim:    #374151;
  --line:   rgba(125, 224, 214, 0.10);
  --line-2: rgba(125, 224, 214, 0.18);
  --line-3: rgba(125, 224, 214, 0.32);
  /* copper + signal */
  --em:     #0D9488;
  --em-2:   #14B8A6;
  --phos:   #5EEAD4;
  --glow:   rgba(94, 234, 212, 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(94, 234, 212, 0.075) 1px, transparent 1.3px) 0 0 / 24px 24px,
    radial-gradient(70% 50% at 100% 0%, rgba(13, 148, 136, 0.10), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(13, 148, 136, 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: #04201D; }
: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(94, 234, 212, 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: 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(13, 20, 32, 0.8), rgba(13, 20, 32, 0.8)); --sheen: rgba(94, 234, 212, 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%, #F0FDFA 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: #99F6E4; --edge-hover: #14B8A6; --fill: linear-gradient(135deg, #7FF0DF, var(--em-2) 48%, var(--em)); --sheen: rgba(255, 255, 255, 0.5); color: #04201D; filter: drop-shadow(0 14px 26px rgba(20, 184, 166, 0.32)); }
.btn--em:hover { filter: drop-shadow(0 18px 34px rgba(94, 234, 212, 0.45)); }
.btn--em .btn__txt::before, .btn--em:hover .btn__txt::before { background: #04201D; 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(3, 24, 22, 0.9); color: var(--phos); }
.btn--line .btn__ico { background: rgba(94, 234, 212, 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: #04201D; }
.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(94, 234, 212, 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(8, 11, 20, 0.7), rgba(8, 11, 20, 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(13, 148, 136, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(10, 14, 26, 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(13, 20, 32, 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(20, 184, 166, 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: #E9FFFB; 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(20, 184, 166, 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(94, 234, 212, 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(17, 26, 40, 0.66), rgba(9, 13, 24, 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: #1F2A3B; }
.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(20, 184, 166, 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); }

/* ── 04 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: #E9FFFB; box-shadow: 0 0 0 4px rgba(94, 234, 212, 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(94, 234, 212, 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); }

/* ── 05 credentials ──────────────────────────────────────────────────────── */
.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(13, 148, 136, 0.22), transparent 70%), linear-gradient(180deg, rgba(17, 26, 40, 0.7), rgba(9, 13, 24, 0.7)); }
.hc::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--x) var(--y), rgba(94, 234, 212, 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(94, 234, 212, 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(20, 184, 166, 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: PULSE ═════════════════════════════════════════════════ */
.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(13, 148, 136, 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); }

/* ── diagrams: small working charts 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(125, 224, 214, 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(94, 234, 212, 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(94, 234, 212, 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(94, 234, 212, 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 ─────────────────────────────────────────── */
.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(9, 13, 24, 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(94, 234, 212, 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(94, 234, 212, 0.14); }
.hud__sw { position: relative; width: 30px; height: 14px; border-radius: 2px; background: rgba(125, 224, 214, 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(94, 234, 212, 0.1), rgba(94, 234, 212, 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(94, 234, 212, 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: #04201D; }

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

/* back button: a solid plate (the backdrop blur never applied, so page text showed through) */
.back { --fill: linear-gradient(rgba(8, 11, 20, 0.95), rgba(8, 11, 20, 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; } }

/* ==========================================================================
   SUDIP — components of his own
   ========================================================================== */
:root { --clay: #D9634A; --clay-2: #E8846B; --amber: #E0A93B; --blue: #1442FF; --r: 12px; }
body::before { background: radial-gradient(rgba(94, 234, 212, 0.05) 1px, transparent 1.3px) 0 0 / 28px 28px, radial-gradient(70% 50% at 100% 0%, rgba(13, 148, 136, 0.12), transparent 70%), radial-gradient(60% 50% at 0% 100%, rgba(217, 99, 74, 0.06), transparent 70%); }

/* Lanthra's UI: soft rectangles, not chamfers */
.btn::before { clip-path: none; border-radius: 12px; }
.btn::after { clip-path: none; border-radius: 11px; }
.btn__ico { clip-path: none; border-radius: 9px; }
.links i { clip-path: none; border-radius: 12px; }
.circuit__hud, .hud__btn { clip-path: none; border-radius: 12px; }
.status { border-radius: 8px; }
.btn--em { color: #04201D; }
.back { --fill: linear-gradient(rgba(10, 14, 26, 0.95), rgba(10, 14, 26, 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; }
.hero__copy { z-index: 3; }
.hero__name { font-size: clamp(56px, 8vw, 136px); }
.hero__l { white-space: nowrap; }
.hero__post { display: inline-block; margin-left: 0.5em; vertical-align: 0.9em; font-size: clamp(11px, 0.9vw, 13px); letter-spacing: 0.2em; color: var(--ink-2); padding: 6px 9px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-2); }
.hero__lead em { color: var(--phos); }
.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; }

/* ── hero: the Lanthra window ───────────────────────────────────────── */
.win { position: relative; margin: 0; justify-self: end; width: min(540px, 100%); perspective: 1400px; z-index: 1; }
.win__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 .win__pkg { opacity: 0; transform: translateY(40px) scale(0.96); }
.is-live .win__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 .win__pkg.is-tilting { transition: transform 0.6s var(--ease-out); }
html.js:not(.boot-pending):not(.is-live) .win__pkg { opacity: 1; transform: none; }
.win__frame {
  position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; border-radius: 16px; overflow: hidden;
  background: radial-gradient(70% 60% at 68% 62%, rgba(13, 148, 136, 0.28), transparent 70%), linear-gradient(160deg, #111A2B, #080B15 62%);
  box-shadow: inset 0 0 0 1px var(--line-3), 0 50px 100px -40px rgba(0, 0, 0, 0.9), 0 0 90px -34px rgba(20, 184, 166, 0.5);
}
.win__bar { display: flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border-bottom: 1px solid var(--line-2); background: rgba(10, 14, 26, 0.75); font-size: 10px; text-transform: none; letter-spacing: 0.04em; color: var(--muted); }
.win__brand { margin-right: 14px; font: 600 15px/1 var(--f-body); letter-spacing: -0.01em; color: var(--ink); }
.win__brand b { color: var(--phos); font-weight: 700; }
.win__tab { padding: 6px 10px; border-radius: 6px; }
.win__tab.is-on { color: var(--phos); background: rgba(94, 234, 212, 0.08); }
.win__body { position: relative; padding: 16px 18px 0; overflow: hidden; }
.win__eyebrow { color: var(--em-2); font-size: 9px; }
.win__h { margin-top: 6px; font: 600 clamp(15px, 1.4vw, 20px)/1.15 var(--f-body); letter-spacing: -0.02em; color: var(--ink); }
.win__h em { color: var(--phos); }
.win__plot { position: absolute; left: 18px; right: 18px; top: 70px; bottom: 0; width: calc(100% - 36px); height: calc(100% - 70px); }
.win__under { fill: rgba(217, 99, 74, 0.06); }
.win__grid { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.win__match { fill: none; stroke: rgba(169, 180, 196, 0.5); stroke-width: 1.2; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; }
.win__scan { position: absolute; top: 0; bottom: 0; left: 0; width: 22%; background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.08) 80%, rgba(94, 234, 212, 0.35) 99%, transparent); transform: translateX(-100%); animation: winScan 6s var(--ease-io) 2s infinite; pointer-events: none; }
@keyframes winScan { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(480%); } }
.win__status { position: relative; z-index: 3; display: flex; gap: 16px; align-items: center; height: 30px; padding: 0 14px; font-size: 9.5px; text-transform: none; letter-spacing: 0.06em; color: var(--ink-2); background: rgba(13, 148, 136, 0.28); border-top: 1px solid var(--line-2); }
.win__ok { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }
.win__ok i { width: 7px; height: 7px; border-radius: 50%; background: var(--phos); }
.win__ok--c i { background: var(--clay); }
.win__fig { position: absolute; left: 0; right: 0; top: 0; bottom: 30px; z-index: 2; clip-path: inset(-30% 0 0 0); pointer-events: none; }
.win__fig img { position: absolute; left: 4%; bottom: 0; width: 112%; max-width: none; height: auto; filter: drop-shadow(0 0 30px rgba(20, 184, 166, 0.2)) contrast(1.03); transform: translateZ(30px); }

/* ── diagrams (teal, clay) ──────────────────────────────────────────── */
.sch.is-on .p.lt { fill: rgba(94, 234, 212, 0.16); stroke: var(--phos); filter: drop-shadow(0 0 6px rgba(94, 234, 212, 0.6)); }
.sch.is-on .p.lt.clay { fill: rgba(217, 99, 74, 0.22); stroke: var(--clay-2); filter: drop-shadow(0 0 6px rgba(217, 99, 74, 0.55)); }
.sch .p.clayp { stroke: var(--clay-2); }
.sch.is-on .w.dev { stroke: var(--clay); stroke-dasharray: 4 5; stroke-dashoffset: 0; }
.sch .tk { font-size: 9.5px; letter-spacing: 0.08em; fill: var(--ink-2); transition: fill 0.5s 1.4s; }
.sch.is-on .tk { fill: var(--ink); }
.sch .t { font-size: 9px; }

/* ── 02 Lanthra ─────────────────────────────────────────────────────── */
.lan__brand { align-self: end; }
.lan__mark { font: 600 clamp(54px, 6vw, 84px)/1 var(--f-body); letter-spacing: -0.04em; color: var(--ink); }
.lan__mark b { color: var(--phos); font-weight: 700; }
.lan__brand .mono { margin-top: 10px; color: var(--muted); font-size: 10px; }

.decomp { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px 48px; padding: clamp(24px, 3vw, 40px); border-radius: 18px; background: linear-gradient(180deg, rgba(17, 26, 40, 0.7), rgba(9, 13, 24, 0.7)); box-shadow: inset 0 0 0 1px var(--line); }
.decomp__head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); }
.decomp__legend { display: flex; gap: 18px; }
.decomp__legend span { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.decomp__legend i { width: 18px; height: 8px; border-radius: 3px; }
.decomp__legend .s { background: var(--em); }
.decomp__legend .c { background: var(--clay); }
.decomp__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.dc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: baseline; }
.dc__name { font-size: 16px; color: var(--ink); }
.dc__val { font-size: 12px; color: var(--ink-2); letter-spacing: 0.06em; }
.dc__val b { color: var(--phos); font-weight: 500; }
.dc__val b.c { color: var(--clay-2); }
.dc__bar { grid-column: 1 / -1; display: flex; gap: 3px; height: 14px; border-radius: 4px; overflow: hidden; background: rgba(255, 255, 255, 0.03); }
.dc__s, .dc__c { display: block; height: 100%; transform: scaleX(0); transition: transform 1.3s var(--ease-out); }
.dc__s { flex: 0 0 calc(var(--s) * 1%); background: linear-gradient(90deg, var(--em), var(--em-2)); transform-origin: left; }
.dc__c { flex: 1; background: linear-gradient(90deg, var(--clay), var(--clay-2)); transform-origin: left; transition-delay: 0.35s; }
.decomp.is-in .dc__s, .decomp.is-in .dc__c { transform: none; }
.decomp.is-in .dc:nth-child(2) i { transition-delay: 0.15s, 0.5s; }
.decomp.is-in .dc:nth-child(2) .dc__c, .decomp.is-in .dc:nth-child(3) .dc__s { transition-delay: 0.5s; }
.decomp.is-in .dc:nth-child(3) .dc__c, .decomp.is-in .dc:nth-child(4) .dc__s { transition-delay: 0.65s; }
.decomp.is-in .dc:nth-child(4) .dc__c { transition-delay: 0.85s; }
.decomp__stats { margin: 0; display: grid; gap: 14px; align-content: center; }
.decomp__stats div { padding: 16px 18px; border-radius: 12px; background: rgba(10, 14, 26, 0.6); box-shadow: inset 0 0 0 1px var(--line); }
.decomp__stats dt { color: var(--muted); font-size: 10px; }
.decomp__stats dd { margin: 6px 0 0; font-family: var(--f-display); font-size: clamp(34px, 3.4vw, 48px); line-height: 1; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.decomp__stats dd small { font-size: 0.45em; color: var(--clay-2); }
.decomp__stats div:last-child dd { color: var(--phos); }

.verdicts { margin-top: 18px; }
.verdicts__h { color: var(--muted); margin: 26px 0 14px; }
.verdicts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.vd { display: grid; gap: 6px; padding: 18px 20px; border-radius: 12px; background: linear-gradient(180deg, rgba(17, 26, 40, 0.7), rgba(9, 13, 24, 0.7)); box-shadow: inset 0 0 0 1px var(--line); border-top: 3px solid var(--dim); }
.vd b { font-family: var(--f-display); font-weight: 400; font-size: 40px; line-height: 1; color: var(--ink); }
.vd__t { font-size: 16px; color: var(--ink); }
.vd__d { font-size: 13.5px; color: var(--muted); }
.vd--lever { border-top-color: var(--phos); }
.vd--lever b { color: var(--phos); }
.vd--trap { border-top-color: var(--clay); }
.vd--trap b { color: var(--clay-2); }

.prods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.prod { position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, rgba(17, 26, 40, 0.8), rgba(9, 13, 24, 0.8)); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.4s, transform 0.6s var(--spring); }
.prod:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-3), 0 30px 60px -30px rgba(20, 184, 166, 0.35); }
.prod--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.prod__shot { position: relative; overflow: hidden; background: #F8FAFC; aspect-ratio: 16 / 10; }
.prod--wide .prod__shot { aspect-ratio: auto; min-height: 340px; }
.prod__shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform 1.4s var(--ease-out); }
.prod__shot::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 60%, rgba(9, 13, 24, 0.55)); }
.prod:hover .prod__shot img { transform: scale(1.03); }
.prod__body { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 2.4vw, 32px); }
.prod__ref { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.prod__ref span:first-child { color: var(--phos); }
.prod h3 { font-family: var(--f-display); font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }
.prod h3 em { color: var(--phos); }
.prod__body > p:not(.prod__ref):not(.prod__quote):not(.prod__facts) { color: var(--ink-2); font-size: 15.5px; }
.prod__quote { font-family: var(--f-display); font-size: 20px; color: var(--clay-2); }
.prod__facts { display: flex; flex-wrap: wrap; gap: 6px; }
.prod__facts span { padding: 7px 11px; border-radius: 999px; font-size: 10px; color: var(--ink-2); background: rgba(94, 234, 212, 0.06); box-shadow: inset 0 0 0 1px var(--line); }
.prod .btn { align-self: flex-start; margin-top: auto; }
.prod--pulse .prod__pulse { display: grid; place-items: center; aspect-ratio: 16 / 10; background: radial-gradient(60% 60% at 50% 50%, rgba(13, 148, 136, 0.22), transparent 70%), #0B1120; }
.pulse-mini { width: 62%; height: auto; overflow: visible; }

.principles { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); }
.principles li { padding: 22px 22px 0 0; }
.principles li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.principles .mono { color: var(--phos); }
.principles h3 { margin: 10px 0 8px; font-family: var(--f-display); font-size: 20px; line-height: 1.2; }
.principles p { color: var(--muted); font-size: 14.5px; }
.lan__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* ── 03 clients ─────────────────────────────────────────────────────── */
.cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cg { display: flex; flex-direction: column; gap: 16px; padding: clamp(22px, 2.4vw, 30px); border-radius: 18px; background: linear-gradient(180deg, rgba(17, 26, 40, 0.7), rgba(9, 13, 24, 0.7)); box-shadow: inset 0 0 0 1px var(--line); }
.cg__ref { display: flex; justify-content: space-between; color: var(--muted); }
.cg__ref span:first-child { color: var(--phos); }
.cg ul { list-style: none; margin: 0; padding: 0; display: grid; }
.cg li { padding: 11px 0; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-size: 21px; color: var(--ink); }
.cg__note { margin-top: auto; color: var(--muted); font-size: 14.5px; }
.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 36s 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; }
.press__track span:hover { color: var(--ink); }
.press__track i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--clay); opacity: 0.7; }
@keyframes belt { to { transform: translateX(-50%); } }

/* ── 05 credentials extras ──────────────────────────────────────────── */
.hc { border-radius: 16px; }
.hc__big small { font-size: 0.38em; vertical-align: 0.9em; color: var(--phos); }
.stack { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 34px; }
.stack > .mono { color: var(--muted); }
.stack ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stack li { padding: 9px 14px; border-radius: 999px; font: 400 11px/1 var(--f-mono); letter-spacing: 0.06em; color: var(--ink); background: rgba(94, 234, 212, 0.05); box-shadow: inset 0 0 0 1px var(--line-2); transition: background 0.3s, color 0.3s; }
.stack li:hover { background: rgba(94, 234, 212, 0.14); color: var(--phos); }

/* ── close: the Pulse radar ─────────────────────────────────────────── */
.close__photo { opacity: 0.4; -webkit-mask-image: linear-gradient(transparent, #000 55%); mask-image: linear-gradient(transparent, #000 55%); }
.radar__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 32px; align-items: center; padding: clamp(18px, 2.4vw, 32px); border-radius: 18px; background: linear-gradient(180deg, rgba(17, 26, 40, 0.75), rgba(9, 13, 24, 0.75)); box-shadow: inset 0 0 0 1px var(--line); }
.radar__svg { width: 100%; height: auto; overflow: visible; }
.radar__svg .ring { fill: none; stroke: var(--line-2); stroke-width: 1; }
.radar__svg .ring--5 { stroke: var(--line-3); }
.radar__svg .spoke { stroke: var(--line); stroke-width: 1; }
.radar__svg .bench { fill: rgba(169, 180, 196, 0.06); stroke: rgba(169, 180, 196, 0.45); stroke-width: 1.2; stroke-dasharray: 5 5; }
.radar__svg .shape { fill: rgba(20, 184, 166, 0.22); stroke: var(--phos); stroke-width: 2; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(94, 234, 212, 0.35)); }
.radar__svg .vtx { fill: var(--bg); stroke: var(--phos); stroke-width: 2; }
.radar__svg .vtx.gap { stroke: var(--clay-2); fill: var(--clay); }
.radar__svg .lbl { fill: var(--ink-2); font: 400 11px var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.radar__svg .lbl.gap { fill: var(--clay-2); }
.radar__k { color: var(--muted); }
.radar__score { margin-top: 10px; font-family: var(--f-display); color: var(--ink); line-height: 1; }
.radar__score b { font-weight: 400; font-size: clamp(64px, 7vw, 104px); letter-spacing: -0.03em; color: var(--phos); font-variant-numeric: tabular-nums; }
.radar__score span { font-size: 26px; color: var(--muted); }
.radar__scale { position: relative; height: 8px; margin-top: 18px; border-radius: 8px; background: linear-gradient(90deg, var(--clay), var(--amber) 45%, var(--em-2)); opacity: 0.35; }
.radar__fill { position: absolute; top: -4px; width: 4px; height: 16px; margin-left: -2px; border-radius: 2px; background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, 0.8); left: calc(var(--sc, 0) * 100%); }
.radar__scale { opacity: 1; background: linear-gradient(90deg, rgba(217, 99, 74, 0.5), rgba(224, 169, 59, 0.5) 45%, rgba(20, 184, 166, 0.6)); }
.radar__ends { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: 9.5px; }
.radar__dims { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; font-size: 10.5px; color: var(--ink-2); }
.radar__dims li { display: flex; justify-content: space-between; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.radar__dims b { color: var(--phos); font-weight: 500; }
.radar__dims li.gap b { color: var(--clay-2); }
.radar__gap { margin-top: 16px; color: var(--muted); }
.radar__gap b { color: var(--clay-2); font-weight: 500; }
.radar.is-running .hud__led { background: var(--amber); box-shadow: 0 0 10px rgba(224, 169, 59, 0.7); animation: blink 0.8s steps(2) infinite; }
.radar.is-live .hud__led { background: var(--phos); box-shadow: 0 0 10px var(--glow); }
.hud__btn--link { margin-left: 0; text-decoration: none; }
.hud__btn[disabled] { opacity: 0.5; cursor: progress; }

/* ── responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .verdicts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 920px) {
  .win { justify-self: center; width: min(420px, 92%); margin-top: 8px; }
  .decomp { grid-template-columns: 1fr; }
  .prods, .prod--wide, .cgrid, .radar__grid { grid-template-columns: 1fr; }
  .prod--wide .prod__shot { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  .hero__name { font-size: clamp(52px, 16vw, 86px); }
  .verdicts ul, .principles { grid-template-columns: 1fr; }
  .principles li, .principles li + li { padding: 18px 0 0; border-left: 0; }
  .win__tab:nth-child(n + 3) { display: none; }
  .win__status span:last-child { display: none; }
  .radar__dims { grid-template-columns: 1fr; }
  .back { padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) { .win__scan { display: none; } .press__track { animation: none; } }
.radar__svg { max-width: 480px; justify-self: center; }
.radar__svg .lbl { font-size: 9.5px; letter-spacing: 0.08em; }
@media (max-width: 640px) { .close__h { font-size: clamp(34px, 11vw, 52px); } }

/* ── images: the boardroom sits under the live benchmark ─────────────── */
.hero:has(.hero__photo) .hero__board { opacity: 0.55; }
.hero__photo { opacity: 0.75; object-position: 72% 40%; }
.close__photo { opacity: 0.55; object-position: 50% 100%; height: clamp(440px, 52vw, 780px); }

/* ── about: the adoption curve ──────────────────────────────────────── */
.sch .p.grid { stroke: var(--line); stroke-dasharray: 3 5; }
.sch.is-on .w.hl { stroke: var(--phos); stroke-width: 2; filter: drop-shadow(0 0 4px rgba(94, 234, 212, 0.5)); }

/* ── about: recent work ─────────────────────────────────────────────── */
.recent { margin-top: 40px; }
.recent__h { color: var(--muted); margin-bottom: 16px; }
.recent__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rw { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; border-radius: 14px; background: linear-gradient(180deg, rgba(17, 26, 40, 0.7), rgba(9, 13, 24, 0.7)); box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.6s var(--spring), box-shadow 0.4s; }
.rw:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-3), 0 24px 50px -30px rgba(20, 184, 166, 0.45); }
.rw__ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: var(--phos); background: rgba(94, 234, 212, 0.08); box-shadow: inset 0 0 0 1px var(--line-2); }
.rw__ico svg { width: 20px; height: 20px; }
.rw h3 { font-family: var(--f-display); font-size: 20px; line-height: 1.2; }
.rw p { color: var(--ink-2); font-size: 14.5px; }

@media (max-width: 1100px) { .recent__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .recent__grid { grid-template-columns: 1fr; } }

/* ── about: sold versus bought, a balance with Sudip as the fulcrum ── */
.sb { --t: 0; --l: .5; --r: .5; --mx: 50%; --my: 40%; position: relative; margin-top: clamp(64px, 8vw, 110px); padding: 0 0 8px; isolation: isolate; }
.sb::before { content: ''; position: absolute; inset: -40px -6% -20px; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(94, 234, 212, calc(var(--l) * .1)), transparent 70%), radial-gradient(420px circle at var(--mx) var(--my), rgba(232, 132, 107, calc(var(--r) * .1)), transparent 70%); }
.sb__beam { display: block; width: min(860px, 100%); height: auto; margin: 0 auto -14px; overflow: visible; }
.sb__floor { stroke: var(--line-2); stroke-width: 1.4; }
.sb__post { fill: rgba(17, 26, 40, .9); stroke: var(--line-3); stroke-width: 1.2; }
.sb__bar { stroke: url(#sbBeam); stroke-width: 3; stroke-linecap: round; }
.sb__flow { stroke: #fff; stroke-width: 1.4; stroke-dasharray: 3 22; opacity: .5; animation: sbFlow 2.6s linear infinite; }
@keyframes sbFlow { to { stroke-dashoffset: -50; } }
.sb__end { fill: var(--bg); stroke: var(--phos); stroke-width: 2; }
.sb__end--c { stroke: var(--clay-2); }
.sb__chain { fill: none; stroke: rgba(169, 180, 196, .35); stroke-width: 1.2; }
.sb__dish { stroke-width: 1.6; transition: fill .3s; }
.sb__pan--l .sb__dish { stroke: var(--phos); fill: rgba(94, 234, 212, calc(.04 + var(--l) * .22)); }
.sb__pan--r .sb__dish { stroke: var(--clay-2); fill: rgba(217, 99, 74, calc(.04 + var(--r) * .24)); }
.sb__pan text { font: 500 11px var(--f-mono); letter-spacing: .24em; text-anchor: middle; }
.sb__pan--l text { fill: var(--phos); opacity: calc(.45 + var(--l) * .55); }
.sb__pan--r text { fill: var(--clay-2); opacity: calc(.45 + var(--r) * .55); }
.sb__pivot { fill: #0D1322; stroke: #fff; stroke-width: 2; filter: drop-shadow(0 0 8px rgba(255, 255, 255, .45)); }
.sb__name { fill: var(--ink); font: 500 11px var(--f-mono); letter-spacing: .3em; text-anchor: middle; }

.sb__cols { display: grid; grid-template-columns: minmax(0, 1fr) 2px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: stretch; }
.sb__axis { position: relative; background: linear-gradient(var(--line-2), var(--line) 40%, transparent); }
.sb__axis i { position: absolute; left: -2px; width: 6px; height: 46px; border-radius: 6px; top: 0; background: linear-gradient(transparent, var(--phos), var(--clay-2), transparent); animation: sbAxis 3.4s var(--ease-io) infinite; }
@keyframes sbAxis { 0% { transform: translateY(-20px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(320px); opacity: 0; } }

.sb__side { --a: var(--l); position: relative; display: flex; flex-direction: column; gap: 14px; padding: 18px 0 10px; min-width: 0; }
.sb__side--bought { --a: var(--r); text-align: right; align-items: flex-end; }
.sb__side > :not(.sb__ghost) { position: relative; opacity: calc(.42 + var(--a) * .58); transition: opacity .25s linear; }
.sb__ghost { position: absolute; top: -10px; width: clamp(200px, 22vw, 290px); height: auto; z-index: -1; overflow: visible; opacity: calc(.04 + var(--a) * .14);
  transform: translateY(calc((1 - var(--a)) * 10px)) scale(calc(.94 + var(--a) * .08)); transition: opacity .25s linear; }
.sb__side--sold .sb__ghost { right: 0; }
.sb__side--bought .sb__ghost { left: 0; }
.sb__ghost path, .sb__ghost circle { fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.sb__side--sold .sb__ghost path, .sb__side--sold .sb__ghost circle { stroke: var(--phos); }
.sb__side--bought .sb__ghost path { stroke: var(--clay-2); }
.sb__ghost .thin { stroke-width: 1; stroke-dasharray: 4 6; }
.sb__ghost .deal { stroke-width: 3.2; }
.sb__ghost .drop { fill: var(--phos); stroke: none; animation: sbDrop 2.1s var(--ease-io) infinite; animation-delay: var(--dd, 0s); }
@keyframes sbDrop { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 70% { opacity: 1; } 100% { transform: translateY(150px) translateX(calc(130px - 100%)); opacity: 0; } }
.sb__ghost .drop { transform-box: fill-box; }

.sb__k { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.sb__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--phos); box-shadow: 0 0 calc(4px + var(--a) * 14px) var(--glow); }
.sb__side--bought .sb__dot { background: var(--clay); box-shadow: 0 0 calc(4px + var(--a) * 14px) rgba(217, 99, 74, .7); }
.sb__side h3 { font-family: var(--f-display); font-size: clamp(28px, 2.8vw, 42px); line-height: 1.08; max-width: 12em; }
.sb__side--sold h3 em { color: var(--phos); }
.sb__side--bought h3 em { color: var(--clay-2); }
.sb__side ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; width: 100%; max-width: 30em; }
.sb__side li { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15.5px; line-height: 1.4;
  transform: translateX(calc((1 - var(--a)) * -10px)); transition: transform .5s var(--ease-out), color .3s; }
.sb__side--bought li { flex-direction: row-reverse; transform: translateX(calc((1 - var(--a)) * 10px)); }
.sb__side li:hover { color: var(--ink); }
.sb__ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .35s, box-shadow .35s, color .35s, transform .5s var(--spring); }
.sb__ico svg { width: 17px; height: 17px; }
.sb__side--sold .sb__ico { color: var(--phos); }
.sb__side--bought .sb__ico { color: var(--clay-2); }
.sb__side--sold li:hover .sb__ico { background: var(--phos); color: #04201D; box-shadow: 0 0 18px -2px var(--glow); transform: rotate(-8deg) scale(1.08); }
.sb__side--bought li:hover .sb__ico { background: var(--clay); color: #fff; box-shadow: 0 0 18px -2px rgba(217, 99, 74, .7); transform: rotate(8deg) scale(1.08); }
.sb__names { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; padding-top: 16px; color: var(--muted); font-size: 10px; }
.sb__side--bought .sb__names { justify-content: flex-end; }
.sb__names span { display: inline-flex; align-items: center; gap: 7px; }
.sb__names span::before { content: ''; width: 5px; height: 5px; transform: rotate(45deg); box-shadow: inset 0 0 0 1px var(--em-2); }
.sb__side--bought .sb__names span::before { box-shadow: inset 0 0 0 1px var(--clay-2); }

@media (max-width: 920px) {
  .sb__cols { grid-template-columns: 1fr; gap: 34px; }
  .sb__axis { display: none; }
  .sb__side--bought { text-align: left; align-items: flex-start; }
  .sb__side--bought li { flex-direction: row; }
  .sb__side--bought .sb__names { justify-content: flex-start; }
  .sb__side > :not(.sb__ghost) { opacity: 1; }
  .sb__side li { transform: none; }
  .sb__side--sold .sb__ghost, .sb__side--bought .sb__ghost { right: 0; left: auto; width: 170px; opacity: .14; }
}
@media (prefers-reduced-motion: reduce) { .sb__flow, .sb__axis i, .sb__ghost .drop { animation: none; } }

/* ── legibility: no grey-on-navy that disappears ─────────────────────── */
:root { --muted: #97A2B4; --ink-2: #BCC6D3; }
.sb__side > :not(.sb__ghost) { opacity: calc(.88 + var(--a) * .12); }
.sb__ghost { opacity: calc(.03 + var(--a) * .07); }
.sb__side li { color: var(--ink-2); }
.sb__side li:hover { color: var(--ink); }
.sb__k, .sb__names { color: var(--ink-2); }
.sb__chain { stroke: rgba(169, 180, 196, .5); }
.sb__side h3 { color: var(--ink); }
.js .bio__quote.is-split .w { color: #3A4659; }
.press__track span { color: #4F5B6E; }
.principles p, .vd__d, .cg__note, .prod__ref, .recent__h, .verdicts__h { color: var(--ink-2); }
.sch .t { fill: var(--ink-2); }

/* ── 02 Lanthra: the league table, re-ranked ─────────────────────────── */
.league { margin-bottom: 56px; padding: clamp(22px, 3vw, 40px); border-radius: 18px; background: linear-gradient(180deg, rgba(17, 26, 40, 0.8), rgba(9, 13, 24, 0.8)); box-shadow: inset 0 0 0 1px var(--line-2); }
.lt__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; }
.lt__k { display: inline-flex; align-items: center; gap: 10px; color: var(--phos); }
.lt__led { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); transition: background 0.3s; }
.league.is-running .lt__led { background: var(--amber); animation: blink 0.8s steps(2) infinite; }
.league.is-modelled:not(.is-running) .lt__led { background: var(--phos); }
.lt__h { margin-top: 12px; font-family: var(--f-display); font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); }
.lt__h em { color: var(--phos); }
.lt__p { margin-top: 12px; max-width: 34em; color: var(--ink-2); font-size: 15.5px; }
.lt__ctl { display: grid; gap: 14px; justify-items: end; }
.lt__chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.lt__chip { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px 0 10px; border: 0; border-radius: 10px; cursor: pointer; background: rgba(94, 234, 212, 0.05); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); font: 500 13.5px/1 var(--f-body); transition: background 0.3s, color 0.3s, box-shadow 0.3s; }
.lt__chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-3); }
.lt__chip[aria-pressed="true"] { background: rgba(94, 234, 212, 0.14); color: var(--ink); box-shadow: inset 0 0 0 1px var(--phos); }
.lt__sw { position: relative; width: 26px; height: 14px; border-radius: 7px; background: rgba(125, 224, 214, 0.12); box-shadow: inset 0 0 0 1px var(--line-2); }
.lt__sw i { position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); transition: transform 0.4s var(--spring), background 0.3s; }
.lt__chip[aria-pressed="true"] .lt__sw i { transform: translateX(12px); background: var(--phos); }
.lt__acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.lt__run, .lt__reset { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 16px; border: 0; border-radius: 10px; cursor: pointer; font: 500 13.5px/1 var(--f-body); transition: background 0.3s, color 0.3s, opacity 0.3s; }
.lt__run { background: var(--em-2); color: #04201D; }
.lt__run:hover { background: var(--phos); }
.lt__run[disabled] { opacity: 0.55; cursor: progress; }
.lt__play { width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.lt__reset { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.lt__reset:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-3); }

.lt__body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.lt__mode { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); }
.lt__modev { color: var(--phos); }
.lt__svg { width: 100%; height: auto; margin-top: 10px; overflow: visible; }
.lt__base { stroke: var(--line-3); stroke-width: 1; }
.lt__grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; }
.lt__gl { fill: var(--muted); font: 400 10px var(--f-mono); letter-spacing: 0.08em; }
rect.lt__fill { fill: rgba(169, 180, 196, 0.32); transition: fill 0.6s; }
.league.is-modelled rect.lt__fill { fill: rgba(20, 184, 166, 0.42); }
.lt__gap { fill: rgba(232, 132, 107, 0.85); }
.lt__gap.is-under { fill: none; stroke: rgba(94, 234, 212, 0.7); stroke-width: 1; stroke-dasharray: 2 2; }
.lt__tick { stroke: #EEF2F7; stroke-width: 1.6; }
.league .lt__bar.is-a rect.lt__fill { fill: rgba(224, 169, 59, 0.6); }
.league .lt__bar.is-b rect.lt__fill { fill: rgba(238, 242, 247, 0.55); }
.lt__tag { font: 500 13px var(--f-mono); letter-spacing: 0.06em; }
.is-a .lt__tag { fill: var(--amber); }
.is-b .lt__tag { fill: var(--ink); }
.league .lt__bar:hover rect.lt__fill { fill: rgba(238, 242, 247, 0.7); }
.lt__leg { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; color: var(--ink-2); font-size: 10px; }
.lt__leg span { display: inline-flex; align-items: center; gap: 8px; }
.lt__leg i { width: 14px; height: 8px; border-radius: 2px; }
.lt__leg .a { background: rgba(20, 184, 166, 0.55); }
.lt__leg .e { height: 2px; background: #EEF2F7; }
.lt__leg .c { background: var(--clay-2); }

.lt__side { display: flex; flex-direction: column; gap: 14px; }
.lt__kpi { padding: 16px 18px; border-radius: 12px; background: rgba(10, 14, 26, 0.6); box-shadow: inset 0 0 0 1px var(--line); }
.lt__kpi .mono { color: var(--ink-2); font-size: 10px; }
.lt__big { margin-top: 8px; font-family: var(--f-display); line-height: 1; color: var(--phos); }
.lt__big b { font-weight: 400; font-size: clamp(52px, 5vw, 72px); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.lt__big span { font-size: 26px; }
.lt__meter { height: 4px; margin-top: 14px; border-radius: 4px; background: rgba(125, 224, 214, 0.12); overflow: hidden; }
.lt__meterf { display: block; height: 100%; background: var(--phos); transform: scaleX(0); transform-origin: left; }
.lt__stats { margin: 0; display: grid; gap: 8px; }
.lt__stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lt__stats dt { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 10px; }
.lt__stats dd { margin: 0; color: var(--ink); font-size: 15px; white-space: nowrap; }
.lt__stats dd b { font-family: var(--f-display); font-weight: 400; font-size: 24px; font-variant-numeric: tabular-nums; }
.lt__stats dd small { color: var(--ink-2); font-size: 12px; }
.lt__stats div:first-child dd b { color: var(--clay-2); }
.lt__who dt i { width: 8px; height: 8px; border-radius: 2px; }
.lt__who--a dt i { background: var(--amber); }
.lt__who--b dt i { background: var(--ink); }
.lt__who--a dd b { color: var(--amber); }
.lt__note { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; min-height: 6.2em; }
.lt__note b { color: var(--ink); font-weight: 600; }
.lt__foot { margin-top: 18px; color: var(--muted); font-size: 13px; }

@media (max-width: 1100px) {
  .lt__top { grid-template-columns: 1fr; }
  .lt__ctl { justify-items: start; }
  .lt__chips, .lt__acts { justify-content: flex-start; }
  .lt__body { grid-template-columns: 1fr; }
  .lt__side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 24px; }
  .lt__note { grid-column: 1 / -1; min-height: 0; }
}
@media (max-width: 640px) {
  .lt__side { grid-template-columns: 1fr; }
  .lt__axis, .lt__gl { display: none; }
  .lt__tag { font-size: 30px; }
  .lt__chip { height: 36px; font-size: 13px; }
}

/* ══ 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 balance and the radar: labels readable at phone width */
  .sb__beam { margin-bottom: 4px; }
  .sb__pan text, .sb__name { font-size: 30px; letter-spacing: 0.12em; }
  .sb__bar { stroke-width: 6; }
  .radar__svg .lbl { font-size: 11px; letter-spacing: 0.02em; }
  .radar__svg { padding: 0 6px; }
}
