/* ==========================================================================
   Saizen Acuity — Aamar Hussain — "Agentic"
   Light and Google-born: white surfaces, Google's four colours (blue, red,
   yellow, green), soft Material elevation and generous rounding. Aamar builds
   agents, so the page runs on them: a live mesh of agents passing messages in
   the hero, his portrait in an agent workspace with a prompt that keeps
   asking, a multi-agent orchestrator you can run, and a token-economics
   model to close. Type is the site's: Playfair Display SC headlines,
   Playfair Display, DM Sans and DM Mono. Emphasis is upright colour.
   ========================================================================== */

:root {
  --bg: #FFFFFF;
  --bg-2: #F8F9FA;
  --bg-3: #F1F3F4;
  --ink: #202124;
  --ink-2: #3C4043;
  --muted: #5F6368;
  --line: #E8EAED;
  --line-2: #DADCE0;

  --blue: #4285F4;
  --blue-d: #1A73E8;
  --red: #EA4335;
  --yellow: #FBBC04;
  --yellow-d: #E37400;
  --green: #34A853;
  --green-d: #188038;
  --gold: #E2AE36;
  --grad: linear-gradient(110deg, #4285F4, #9B72CB 40%, #D96570 70%, #F9AB00);

  --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.5, 0.64, 1);

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(96px, 12vw, 168px);
  --e1: 0 1px 2px rgba(60, 64, 67, 0.12), 0 1px 3px 1px rgba(60, 64, 67, 0.08);
  --e2: 0 1px 2px rgba(60, 64, 67, 0.1), 0 4px 10px 2px rgba(60, 64, 67, 0.08);
  --e3: 0 2px 6px rgba(60, 64, 67, 0.08), 0 18px 40px -10px rgba(60, 64, 67, 0.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
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; text-rendering: optimizeLegibility; overflow-x: clip; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(36% 30% at 96% 4%, rgba(66, 133, 244, 0.08), transparent 70%), radial-gradient(30% 28% at 2% 46%, rgba(251, 188, 4, 0.07), transparent 70%), radial-gradient(34% 30% at 80% 98%, rgba(52, 168, 83, 0.06), transparent 70%); }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(66, 133, 244, 0.25); }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
em, i { font-style: normal; }
.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.4; }
.defs { position: absolute; }
.wm { font-family: var(--f-sc); font-weight: 400; letter-spacing: 0.01em; }
.wm b { font-weight: 700; color: var(--gold); }
.led { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.led::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--green); animation: ping 2.2s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── buttons: Material pills ────────────────────────────────────────── */
.btn { position: relative; display: inline-flex; align-items: center; gap: 14px; height: 54px; padding: 0 7px 0 24px; border-radius: 999px; font: 500 15px/1 var(--f-body); white-space: nowrap; transition: transform 0.5s var(--spring), box-shadow 0.3s, background 0.3s, color 0.3s; }
.btn__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; transition: transform 0.5s var(--spring), background 0.3s, color 0.3s; }
.btn__ico svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-2px); }
.btn:hover .btn__ico { transform: rotate(45deg); }
.btn:active { transform: scale(0.97); }
.btn--em { color: #fff; background: var(--blue-d); box-shadow: 0 1px 2px rgba(26, 115, 232, 0.3), 0 8px 20px -6px rgba(26, 115, 232, 0.55); }
.btn--em:hover { background: #1765CC; box-shadow: 0 2px 4px rgba(26, 115, 232, 0.3), 0 14px 28px -8px rgba(26, 115, 232, 0.6); }
.btn--em .btn__ico { background: #fff; color: var(--blue-d); }
.btn--line { color: var(--blue-d); background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--line:hover { background: #F6F9FE; }
.btn--line .btn__ico { background: #E8F0FE; color: var(--blue-d); }
.btn--line:hover .btn__ico { background: var(--blue-d); color: #fff; }

/* ── boot ───────────────────────────────────────────────────────────── */
.boot { display: none; }
.js .boot { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #fff; clip-path: inset(0 0 0 0); transition: clip-path 0.9s var(--ease-io); animation: bootFailsafe 0.01s 4.5s forwards; }
.boot.is-done { clip-path: inset(0 0 100% 0); }
.boot.is-gone { display: none; }
.boot.is-exit { clip-path: inset(0 0 0 0); animation: none; }
.boot.is-enter { clip-path: inset(100% 0 0 0); animation: none; transition: none; }
@keyframes bootFailsafe { to { visibility: hidden; } }
.boot__in { width: min(360px, 78vw); display: grid; gap: 14px; justify-items: center; text-align: center; }
.boot__spark { width: 46px; height: 46px; animation: spin 2.4s var(--ease-io) infinite; }
.boot__line { font: 500 18px var(--f-body); color: var(--ink); }
.boot__bar { width: 100%; height: 4px; border-radius: 4px; background: var(--bg-3); overflow: hidden; }
.boot__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue) 0 25%, var(--red) 25% 50%, var(--yellow) 50% 75%, var(--green) 75%); transform: scaleX(var(--p, 0)); transform-origin: left; }
.boot__meta { display: flex; justify-content: space-between; width: 100%; color: var(--muted); text-transform: none; letter-spacing: 0.04em; }

/* ── back ───────────────────────────────────────────────────────────── */
.back { position: fixed; z-index: 60; top: clamp(14px, 2.4vw, 26px); left: var(--gutter); height: 48px; padding: 0 20px 0 5px; gap: 12px; font: 500 14px/1 var(--f-body); color: var(--ink-2); background: rgba(255, 255, 255, 0.94); box-shadow: var(--e2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.back .btn__ico { width: 38px; height: 38px; background: var(--bg-3); color: var(--ink); }
.back:hover .btn__ico { transform: translateX(-3px); background: var(--blue-d); color: #fff; }
.back .wm { color: var(--ink); font-size: 15px; }
.js .back { opacity: 0; transform: translateY(-12px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), box-shadow 0.3s; }
.is-live .back, html:not(.boot-pending) .back { opacity: 1; transform: none; }

/* ── rail ───────────────────────────────────────────────────────────── */
.bus { position: fixed; z-index: 40; right: clamp(16px, 2vw, 30px); top: 50%; transform: translateY(-50%); display: none; flex-direction: column; align-items: center; gap: 16px; pointer-events: none; }
@media (min-width: 1180px) { .bus { display: flex; } }
.bus__track { position: relative; width: 4px; height: 28vh; border-radius: 4px; background: var(--line); overflow: hidden; }
.bus__fill { position: absolute; inset: 0; background: linear-gradient(var(--blue) 0 25%, var(--red) 25% 50%, var(--yellow) 50% 75%, var(--green) 75%); 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(--blue-d); 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(100px, 13vh, 150px) 0 clamp(36px, 5vh, 56px); }
.hero__photo { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; opacity: 0.62;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 62%); mask-image: linear-gradient(90deg, transparent 30%, #000 62%); }
.hero__board { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero__veil { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, 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: 3; }
.status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 9px 18px 9px 14px; border-radius: 999px; background: #fff; box-shadow: var(--e1); font-size: 14px; color: var(--muted); }
.status b { color: var(--ink); font-weight: 500; }
.status__sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }
.hero__name { margin: clamp(22px, 3vh, 32px) 0 clamp(18px, 2.4vh, 26px); font-family: var(--f-sc); font-weight: 400; font-size: clamp(58px, 8vw, 138px); line-height: 0.9; letter-spacing: -0.02em; }
.hero__l { display: block; white-space: nowrap; padding-bottom: 0.04em; }
.hero__w { display: inline-block; color: var(--ink); --final: var(--ink); }
.hero__w .ch { display: inline-block; }
.hero__w--g .ch:nth-child(7n+1) { --final: var(--blue); }
.hero__w--g .ch:nth-child(7n+2) { --final: var(--red); }
.hero__w--g .ch:nth-child(7n+3) { --final: var(--yellow); }
.hero__w--g .ch:nth-child(7n+4) { --final: var(--blue); }
.hero__w--g .ch:nth-child(7n+5) { --final: var(--green); }
.hero__w--g .ch:nth-child(7n+6) { --final: var(--red); }
.hero__w--g .ch:nth-child(7n+7) { --final: var(--blue); }
.hero__w .ch { color: var(--final); }
.js .hero__w .ch { opacity: 0; transform: translateY(45%) scale(0.9); }
.is-live .hero__w .ch { animation: chOn 0.9s var(--spring) forwards; animation-delay: calc(var(--i) * 60ms + var(--w, 0ms)); }
@keyframes chOn { to { opacity: 1; transform: none; } }
.hero__roles { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 8px; font: 500 14px/1 var(--f-body); color: var(--ink-2); background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.chip--b { --c: var(--blue); } .chip--r { --c: var(--red); } .chip--y { --c: var(--yellow); } .chip--g { --c: var(--green); }
.hero__lead { margin-top: 24px; max-width: 34em; color: var(--ink-2); font-size: clamp(17px, 1.3vw, 19px); line-height: 1.62; }
.hero__lead em { color: var(--ink); font-weight: 600; background: linear-gradient(transparent 64%, rgba(251, 188, 4, 0.45) 64%); }
.hero__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.js [data-boot] { opacity: 0; transform: translateY(18px); }
.is-live [data-boot] { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out), transform 1s var(--spring); 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) .ask__pkg { opacity: 1; transform: none; }

/* the agent workspace card */
.ask { position: relative; margin: 0; justify-self: center; width: min(500px, 100%); perspective: 1400px; z-index: 1; }
.ask__pkg { position: relative; aspect-ratio: 0.94; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.6s var(--ease-out); }
.js .ask__pkg { opacity: 0; transform: translateY(30px) scale(0.95); }
.is-live .ask__pkg { opacity: 1; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: opacity 1s var(--ease-out) 0.25s, transform 1.2s var(--spring) 0.25s; }
.is-live .ask__pkg.is-tilting { transition: transform 0.6s var(--ease-out); }
.ask__card { position: absolute; inset: 9% 0 0; border-radius: 32px; overflow: hidden; background: linear-gradient(180deg, #F6F9FE, #fff 70%); box-shadow: var(--e3); }
.ask__card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: conic-gradient(from var(--a, 0deg), var(--blue), var(--red), var(--yellow), var(--green), var(--blue));
  -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); animation: ring 8s linear infinite; }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes ring { to { --a: 360deg; } }
.ask__glow { position: absolute; left: 50%; bottom: -10%; width: 110%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(66, 133, 244, 0.22), rgba(155, 114, 203, 0.14) 45%, rgba(251, 188, 4, 0.08) 70%, transparent); animation: breathe 6s var(--ease-io) infinite alternate; }
@keyframes breathe { to { transform: translateX(-50%) scale(1.1); } }
.ask__top { position: relative; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 18px 20px; font: 500 14px var(--f-body); color: var(--ink-2); }
.ask__spark { width: 22px; height: 22px; animation: spin 10s linear infinite; }
.ask__dots { margin-left: auto; display: flex; gap: 5px; }
.ask__dots i { width: 8px; height: 8px; border-radius: 50%; }
.ask__dots i:nth-child(1) { background: var(--red); } .ask__dots i:nth-child(2) { background: var(--yellow); } .ask__dots i:nth-child(3) { background: var(--green); }
.ask__fig { position: absolute; inset: 0 0 64px; z-index: 2; pointer-events: none; clip-path: inset(-30% 0 0 0 round 0 0 0 0); }
.ask__fig img { position: absolute; left: 6%; bottom: 0; width: 92%; height: auto; filter: drop-shadow(0 18px 30px rgba(60, 64, 67, 0.22)); transform: translateZ(30px); }
.ask__bar { position: absolute; z-index: 4; left: 16px; right: 16px; bottom: 16px; height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 8px 0 18px; border-radius: 999px; background: #fff; box-shadow: var(--e2); font: 400 15px var(--f-body); color: var(--ink-2); }
.ask__barspark { width: 20px; height: 20px; flex: none; }
.ask__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask__caret { width: 2px; height: 20px; background: var(--blue-d); animation: blink 1s steps(2) infinite; flex: none; }
@keyframes blink { 50% { opacity: 0; } }
.ask__send { margin-left: auto; display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; color: #fff; background: var(--blue-d); }
.ask__send svg { width: 18px; height: 18px; }
.agentchip { position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; font: 500 13.5px/1 var(--f-body); color: var(--ink); background: #fff; box-shadow: var(--e2); animation: bob 4.6s var(--ease-io) infinite alternate; }
.agentchip i { width: 10px; height: 10px; border-radius: 3px; }
.agentchip .b { background: var(--blue); } .agentchip .g { background: var(--green); } .agentchip .y { background: var(--yellow); } .agentchip .r { background: var(--red); }
.agentchip.is-busy { box-shadow: var(--e3), 0 0 0 2px var(--c, var(--blue)); }
.agentchip--a { left: -8%; top: 22%; --c: var(--blue); }
.agentchip--b { right: -7%; top: 34%; animation-delay: -1.2s; --c: var(--green); }
.agentchip--c { left: -5%; top: 58%; animation-delay: -2.4s; --c: var(--yellow); }
.agentchip--d { right: -5%; top: 66%; animation-delay: -3.6s; --c: var(--red); }
@keyframes bob { to { transform: translateY(-10px); } }
.cap { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 20px; color: var(--muted); font-size: 10.5px; }
.cap i { width: 18px; height: 1px; background: var(--line-2); }

.readouts { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: clamp(40px, 6vh, 70px); }
.ro { position: relative; padding: 18px 18px 20px; border-radius: 20px; background: #fff; box-shadow: var(--e1); overflow: hidden; }
.ro::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--c); }
.ro--b { --c: var(--blue); } .ro--r { --c: var(--red); } .ro--y { --c: var(--yellow); } .ro--g { --c: var(--green); }
.ro dt { font-size: 13px; color: var(--muted); }
.ro dd { margin: 8px 0 0; font-family: var(--f-display); font-size: clamp(32px, 3.2vw, 48px); line-height: 1; color: var(--ink); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.ro dd small { font-family: var(--f-body); font-size: 0.4em; font-weight: 600; color: var(--c); margin: 0 0.1em; }

/* ══ SECTIONS ═══════════════════════════════════════════════════════════ */
.sec { position: relative; padding: var(--section) 0 0; overflow-x: clip; }
.sh { margin-bottom: clamp(40px, 5vw, 64px); }
.sh__ref { display: flex; align-items: center; gap: 12px; color: var(--muted); margin-bottom: 20px; }
.sh__ref b { display: inline-grid; place-items: center; min-width: 40px; height: 28px; padding: 0 10px; border-radius: 8px; color: #fff; font-weight: 500; background: var(--blue-d); }
.sh__ref i { flex: 1; max-width: 200px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--blue) 0 25%, var(--red) 25% 50%, var(--yellow) 50% 75%, var(--green) 75%); transform-origin: left; }
.js .sh__ref i { transform: scaleX(0); transition: transform 1.2s 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-size: clamp(40px, 5vw, 80px); line-height: 1; letter-spacing: -0.02em; max-width: 14em; }
.sh__h em { color: var(--blue-d); }
.sh__sub { margin-top: 20px; max-width: 36em; color: var(--ink-2); font-size: 18px; }
.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; }
.js .rv { opacity: 0; transform: translateY(30px); }
.js .rv.is-in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out), transform 1.1s var(--spring); transition-delay: var(--d, 0s); }

/* small illustrations */
.sch { display: block; width: 100%; height: auto; overflow: visible; }
.sch .t { fill: var(--muted); font: 500 11px var(--f-body); text-anchor: middle; }
.sch .w { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease-io); }
.sch.is-in .w { stroke-dashoffset: 0; }
.sch--spark .orbit { fill: none; stroke: var(--line-2); stroke-width: 1.2; stroke-dasharray: 3 5; }
.sch--spark .spk { transform-origin: 150px 70px; transform: scale(0) rotate(-90deg); transition: transform 1.1s var(--spring); }
.sch--spark.is-in .spk { transform: none; }
.sch--spark.is-on .spk { animation: spkTurn 9s linear infinite; }
@keyframes spkTurn { to { transform: rotate(360deg); } }
.sch--spark .spk__b { fill: url(#gGrad); }
.sch--spark .sat { transform-origin: 150px 70px; opacity: 0; transition: opacity 0.5s 0.6s; }
.sch--spark.is-in .sat { opacity: 1; }
.sch--spark.is-on .sat--1 { animation: spin 7s linear infinite; } .sch--spark.is-on .sat--2 { animation: spin 7s linear infinite; }
.sch--spark.is-on .sat--3 { animation: spin 5s linear infinite reverse; } .sch--spark.is-on .sat--4 { animation: spin 5s linear infinite reverse; }
.dot--b { fill: var(--blue); } .dot--r { fill: var(--red); } .dot--y { fill: var(--yellow); } .dot--g { fill: var(--green); }
.sch--rag .doc { fill: #fff; stroke: var(--line-2); stroke-width: 1.5; }
.sch--rag .docl { stroke: var(--muted); stroke-width: 2; stroke-linecap: round; opacity: 0.5; }
.sch--rag .chk, .sch--rag .vec, .sch--rag .ansb, .sch--rag .ansl { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0.4); transition: opacity 0.4s, transform 0.6s var(--spring); }
.sch--rag.is-in .chk { opacity: 1; transform: none; }
.sch--rag .chk--r { transition-delay: 0.1s; } .sch--rag .chk--y { transition-delay: 0.2s; }
.sch--rag.is-on .vec { opacity: 1; transform: none; }
.sch--rag .vec:nth-of-type(2) { transition-delay: 0.08s; } .sch--rag .vec:nth-of-type(3) { transition-delay: 0.16s; }
.sch--rag.is-on .ansb, .sch--rag.is-on .ansl { opacity: 1; transform: none; transition-delay: 0.5s; }
.sch--rag .chk--b, .sch--rag .vec--b { fill: var(--blue); } .sch--rag .chk--r, .sch--rag .vec--r { fill: var(--red); } .sch--rag .chk--y, .sch--rag .vec--y { fill: var(--yellow); } .sch--rag .vec--g { fill: var(--green); }
.sch--rag .ansb { fill: #E6F4EA; stroke: var(--green); stroke-width: 1.5; }
.sch--rag .ansl { stroke: var(--green-d); stroke-width: 2.4; stroke-linecap: round; }

/* ── 01 about ───────────────────────────────────────────────────────── */
.bio__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.72fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.bio__quote { margin: 0; font-family: var(--f-display); font-size: clamp(26px, 2.5vw, 38px); line-height: 1.34; color: var(--ink); }
.bio__quote b { font-weight: 500; color: var(--blue-d); }
.bio__quote .w { transition: color 0.4s; }
.js .bio__quote.is-split .w { color: #DADCE0; }
.js .bio__quote.is-split .w.on { color: var(--ink); }
.js .bio__quote.is-split b .w.on { color: var(--blue-d); }
.js .bio__quote.is-split .w.tip { color: var(--red); }
.sheet { position: sticky; top: 100px; padding: 6px 0; border-radius: 24px; background: #fff; box-shadow: var(--e2); }
.sheet__h { display: flex; align-items: center; gap: 12px; padding: 18px 22px 16px; font: 500 17px var(--f-body); border-bottom: 1px solid var(--line); }
.sheet__h svg { width: 24px; height: 24px; }
.sheet table { width: 100%; border-collapse: collapse; }
.sheet th, .sheet td { text-align: left; vertical-align: top; padding: 12px 22px; border-bottom: 1px solid var(--line); }
.sheet tr:last-child th, .sheet tr:last-child td { border-bottom: 0; }
.sheet th { width: 32%; padding-right: 8px; font: 500 12.5px/1.6 var(--f-body); color: var(--muted); }
.sheet td { font-size: 15px; color: var(--ink); }

/* ── 02 the orchestrator ────────────────────────────────────────────── */
.orch { padding: clamp(16px, 2.4vw, 28px); border-radius: 32px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.orch__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.ot { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; cursor: pointer; font: 500 14.5px var(--f-body); color: var(--ink-2); background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); transition: background 0.3s, color 0.3s, box-shadow 0.3s; }
.ot svg { width: 18px; height: 18px; }
.ot.is-on { color: var(--blue-d); background: #E8F0FE; box-shadow: inset 0 0 0 1px #AECBFA; }
.orch__stage { position: relative; height: 430px; margin-top: 16px; border-radius: 24px; background: #fff; box-shadow: var(--e1); overflow: hidden;
  background-image: radial-gradient(var(--line) 1px, transparent 1.2px); background-size: 22px 22px; }
.orch__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orch__wires .wr { fill: none; stroke: var(--line-2); stroke-width: 2; }
.orch__wires .wr.is-hot { stroke: var(--c, var(--blue)); stroke-width: 2.5; }
.orch__wires .pk { r: 6; filter: drop-shadow(0 2px 4px rgba(60, 64, 67, 0.3)); }
.node { position: absolute; z-index: 2; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; padding: 12px 16px 12px 12px; border-radius: 16px; background: #fff; box-shadow: var(--e1), inset 0 0 0 1px var(--line); transform: translate(-50%, -50%); transition: box-shadow 0.35s, transform 0.5s var(--spring); }
.node__ico { grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; background: var(--c, var(--ink-2)); }
.node__ico svg { width: 20px; height: 20px; }
.node b { font: 600 14.5px/1.2 var(--f-body); }
.node small { font-size: 12px; color: var(--muted); }
.node.is-hot { box-shadow: var(--e3), 0 0 0 2.5px var(--c, var(--blue)); transform: translate(-50%, -50%) scale(1.04); }
.node.is-done .node__ico::after { content: ''; position: absolute; }
.node--user { left: 14%; top: 50%; width: 220px; --c: var(--ink-2); }
.node--plan { left: 37%; top: 50%; --c: var(--blue-d); }
.node--plan .node__ico { background: var(--grad); }
.node--a { left: 62%; }
.node--b { --c: var(--blue); top: 15%; } .node--g { --c: var(--green); top: 38%; } .node--y { --c: var(--yellow-d); top: 62%; } .node--r { --c: var(--red); top: 85%; }
.node--ans { left: 87%; top: 50%; width: 230px; --c: var(--green-d); }
.node__txt { grid-column: 1 / -1; margin-top: 10px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); min-height: 3.6em; }
.node--ans .node__txt { color: var(--ink); }
.node__src { grid-column: 1 / -1; margin-top: 8px; color: var(--green-d); font-size: 10px; min-height: 1.4em; }
.node.is-off { opacity: 0.45; }
.orch__foot { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.orch__log { list-style: none; margin: 0; padding: 16px 18px; height: 168px; overflow: hidden; border-radius: 20px; background: #202124; color: #BDC1C6; font-size: 11.5px; letter-spacing: 0.02em; text-transform: none; line-height: 1.75; }
.orch__log li { display: flex; gap: 10px; animation: logIn 0.4s var(--ease-out) both; }
.orch__log li b { font-weight: 500; color: var(--c, #8AB4F8); flex: none; }
@keyframes logIn { from { opacity: 0; transform: translateY(6px); } }
.orch__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-content: start; }
.orch__stats > div { padding: 14px; border-radius: 18px; background: #fff; box-shadow: var(--e1); }
.orch__stats span { display: block; color: var(--muted); font-size: 10px; }
.orch__stats b { display: block; margin-top: 6px; font: 400 34px/1 var(--f-display); color: var(--ink); }
.orch__grounded { color: var(--green-d) !important; }
.orch__run { grid-column: 1 / -1; display: inline-flex; justify-content: center; align-items: center; gap: 8px; height: 48px; border: 0; border-radius: 999px; cursor: pointer; font: 500 15px var(--f-body); color: var(--blue-d); background: #E8F0FE; transition: background 0.3s; }
.orch__run:hover { background: #D2E3FC; }
.orch__run svg { width: 18px; height: 18px; }
.orch__run[disabled] { opacity: 0.5; cursor: progress; }

.kit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 30px; }
.kit > .mono { color: var(--muted); }
.kit ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kit li { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 8px; font: 500 13.5px var(--f-body); color: var(--ink-2); background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); transition: transform 0.4s var(--spring), box-shadow 0.3s; }
.kit li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.kit li.b { --c: var(--blue); } .kit li.r { --c: var(--red); } .kit li.y { --c: var(--yellow); } .kit li.g { --c: var(--green); }
.kit li:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--c), var(--e1); }

/* ── 03 advisory ────────────────────────────────────────────────────── */
.advg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.av { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 24px; background: #fff; box-shadow: var(--e1); overflow: hidden; transition: transform 0.6s var(--spring), box-shadow 0.4s; }
.av::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease-out); }
.av:hover { transform: translateY(-5px); box-shadow: var(--e3); }
.av:hover::before { transform: none; }
.av--b { --c: var(--blue); --cb: #E8F0FE; } .av--r { --c: var(--red); --cb: #FCE8E6; } .av--y { --c: var(--yellow-d); --cb: #FEF7E0; } .av--g { --c: var(--green); --cb: #E6F4EA; }
.av__n { position: absolute; top: 26px; right: 26px; color: var(--muted); }
.av__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: var(--c); background: var(--cb); transition: transform 0.6s var(--spring); }
.av:hover .av__ico { transform: rotate(-8deg) scale(1.08); }
.av__ico svg { width: 26px; height: 26px; }
.av h3 { margin-top: 8px; font-family: var(--f-display); font-size: 23px; line-height: 1.15; }
.av p { color: var(--ink-2); font-size: 15px; }

/* ── 04 ventures ────────────────────────────────────────────────────── */
.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 16px; }
.vc { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 24px; background: #fff; box-shadow: var(--e1); overflow: hidden; transition: transform 0.6s var(--spring), box-shadow 0.4s; }
.vc:hover { transform: translateY(-4px); box-shadow: var(--e3); }
.vc--hero { grid-row: span 2; padding: 32px; background: linear-gradient(160deg, #F6F9FE, #fff 60%); }
.vc__ref { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); }
.vc__ref span:first-child { color: var(--blue-d); }
.vc h3 { margin-top: 6px; font-family: var(--f-display); font-size: 25px; line-height: 1.15; }
.vc--hero h3 { font-size: clamp(30px, 3vw, 42px); }
.vc p { color: var(--ink-2); font-size: 15.5px; }
.vc__link { margin-top: auto; padding-top: 10px; font: 500 15px var(--f-body); color: var(--blue-d); }
.vc__link:hover { text-decoration: underline; }
.vc__orbs { position: absolute; right: -40px; bottom: -40px; width: 220px; height: 220px; pointer-events: none; animation: spin 24s linear infinite; }
.vc__orbs i { position: absolute; width: 90px; height: 90px; border-radius: 50%; opacity: 0.16; }
.vc__orbs .b { left: 0; top: 0; background: var(--blue); } .vc__orbs .r { right: 0; top: 0; background: var(--red); } .vc__orbs .y { left: 0; bottom: 0; background: var(--yellow); } .vc__orbs .g { right: 0; bottom: 0; background: var(--green); }
.vc__stream { margin-top: auto; width: 100%; height: 50px; }
.vc__stream path { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 8 10; animation: stream 2.4s linear infinite; }
.vc__stream .s1 { stroke: var(--blue); } .vc__stream .s2 { stroke: var(--green); animation-duration: 3.2s; }
@keyframes stream { to { stroke-dashoffset: -36; } }
.partners { margin-top: 48px; }
.partners__h { color: var(--muted); margin-bottom: 14px; }
.belt { overflow: hidden; padding: 20px 0; border-block: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.belt__track { display: flex; align-items: center; gap: clamp(28px, 4vw, 56px); width: max-content; animation: belt 30s linear infinite; }
.belt:hover .belt__track { animation-play-state: paused; }
.belt__track span { font: 500 clamp(26px, 3vw, 40px) var(--f-body); letter-spacing: -0.02em; color: #9AA0A6; white-space: nowrap; transition: color 0.3s; }
.belt__track span:hover { color: var(--ink); }
.belt__track i { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.belt__track i.b { background: var(--blue); } .belt__track i.r { background: var(--red); } .belt__track i.y { background: var(--yellow); } .belt__track i.g { background: var(--green); }
@keyframes belt { to { transform: translateX(-50%); } }

/* ── 05 career ──────────────────────────────────────────────────────── */
.trace { position: relative; --when: clamp(140px, 15vw, 200px); --gap: 56px; }
.trace__rail { position: absolute; top: 6px; bottom: 0; left: calc(var(--when) + var(--gap) / 2); width: 4px; margin-left: -2px; border-radius: 4px; background: var(--bg-3); }
.trace__fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(var(--blue) 0 25%, var(--red) 25% 50%, var(--yellow) 50% 75%, var(--green) 75%); transform: scaleY(var(--p, 0)); transform-origin: top; }
.trace__spark { position: absolute; left: 50%; top: calc(var(--p, 0) * 100%); width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px var(--blue), var(--e2); opacity: var(--spark, 0); transition: opacity 0.3s; }
.trace__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.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: 5px; color: var(--muted); font-size: 10.5px; }
.role__when b { color: var(--ink); font-weight: 500; font-size: 12px; }
.role__node { grid-column: 2; grid-row: 1; justify-self: center; margin-top: 24px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--line-2); position: relative; z-index: 1; transition: box-shadow 0.5s, transform 0.6s var(--spring); }
.role.is-on .role__node { box-shadow: 0 0 0 4px var(--blue); transform: scale(1.15); }
.role.is-on .role__when b { color: var(--blue-d); }
.role__card { grid-column: 3; grid-row: 1; padding: clamp(22px, 2.4vw, 30px); border-radius: 24px; background: #fff; box-shadow: var(--e1); transition: box-shadow 0.4s, transform 0.6s var(--spring); }
.role__card:hover { transform: translateY(-3px); box-shadow: var(--e3); }
.role__org { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font: 600 14px var(--f-body); }
.org { color: var(--muted); }
.org--g { background: linear-gradient(90deg, var(--blue), var(--red), var(--yellow), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.org--m { color: #737373; }
.role__live { display: inline-flex; align-items: center; gap: 8px; color: var(--green-d); }
.role h3 { margin: 8px 0 14px; font-family: var(--f-display); font-size: clamp(22px, 2.1vw, 30px); line-height: 1.15; }
.role ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.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.55em; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }
.role ul li:nth-child(2)::before { background: var(--red); } .role ul li:nth-child(3)::before { background: var(--green); }

/* ── 06 credentials ─────────────────────────────────────────────────── */
.cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cc { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 24px; background: #fff; box-shadow: var(--e1); transition: transform 0.6s var(--spring), box-shadow 0.4s; }
.cc:hover { transform: translateY(-4px); box-shadow: var(--e3); }
.cc--b { --c: var(--blue); --cb: #E8F0FE; } .cc--r { --c: var(--red); --cb: #FCE8E6; } .cc--y { --c: var(--yellow-d); --cb: #FEF7E0; } .cc--g { --c: var(--green); --cb: #E6F4EA; }
.cc--wide { grid-row: span 2; background: linear-gradient(170deg, var(--cb), #fff 60%); }
.cc__top { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); margin-bottom: 8px; }
.cc__top span:first-child { color: var(--c); }
.cc .cc__big { font: 400 clamp(110px, 11vw, 170px)/0.9 var(--f-display); color: var(--c); margin-top: auto; }
.cc h3 { font-family: var(--f-display); font-size: 22px; line-height: 1.2; }
.cc--wide h3 { font-size: clamp(28px, 2.6vw, 36px); }
.cc p { color: var(--ink-2); font-size: 15px; }
.cc ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.cc ul li { display: flex; align-items: center; gap: 10px; font-size: 15.5px; color: var(--ink); }
.cc ul li::before { content: ''; width: 22px; height: 22px; border-radius: 50%; background: var(--c) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* ══ CLOSE ═════════════════════════════════════════════════════════════ */
.close { position: relative; margin-top: var(--section); padding: var(--section) 0 36px; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #fff, var(--bg-2)); }
.close__photo { position: absolute; left: 0; right: 0; bottom: 0; z-index: -2; width: 100%; height: clamp(420px, 52vw, 780px); object-fit: cover; object-position: 50% 60%; opacity: 0.4;
  -webkit-mask-image: linear-gradient(transparent, #000 60%); mask-image: linear-gradient(transparent, #000 60%); }
.close__h { font-family: var(--f-sc); font-size: clamp(50px, 7.6vw, 126px); line-height: 0.92; letter-spacing: -0.02em; max-width: 9em; }
.close__h em { color: var(--blue-d); }
.tco { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(16px, 2.4vw, 28px); margin: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); padding: clamp(16px, 2.2vw, 26px); border-radius: 32px; background: #fff; box-shadow: var(--e2); }
.tco__ctl { display: grid; gap: 10px; align-content: start; }
.tco__k { color: var(--muted); margin-bottom: 4px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--bg-3); }
.seg__b { height: 42px; border: 0; border-radius: 999px; cursor: pointer; font: 500 14px var(--f-body); color: var(--ink-2); background: none; transition: background 0.3s, color 0.3s, box-shadow 0.3s; }
.seg__b.is-on { color: var(--blue-d); background: #fff; box-shadow: var(--e1); }
.rng { display: grid; gap: 8px; padding: 14px 16px; border-radius: 18px; background: var(--bg-2); font-size: 14.5px; color: var(--ink-2); }
.rng b { color: var(--ink); font-weight: 600; }
.rng input { width: 100%; accent-color: var(--blue-d); }
.tg { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-radius: 16px; cursor: pointer; text-align: left; font: 500 14.5px/1.3 var(--f-body); color: var(--ink-2); background: var(--bg-2); transition: background 0.3s, color 0.3s; }
.tg__sw { position: relative; flex: none; width: 38px; height: 22px; border-radius: 999px; background: #BDC1C6; transition: background 0.3s; }
.tg__sw i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3); transition: transform 0.45s var(--spring); }
.tg[aria-pressed="true"] { color: var(--ink); background: #E8F0FE; }
.tg[aria-pressed="true"] .tg__sw { background: var(--blue-d); }
.tg[aria-pressed="true"] .tg__sw i { transform: translateX(16px); }
.tco__out { display: flex; flex-direction: column; padding: 16px; border-radius: 22px; background: var(--bg-2); }
.tco__nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tco__nums > div { padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: var(--e1); }
.tco__nums span { display: block; color: var(--muted); font-size: 10px; }
.tco__nums b { display: inline-block; margin-top: 6px; font: 400 44px/1 var(--f-display); color: var(--red); font-variant-numeric: tabular-nums; }
.tco__nums div:last-child b { color: var(--green-d); }
.tco__nums small { margin-left: 6px; font-size: 13px; color: var(--muted); }
.tco__chart { width: 100%; height: auto; margin-top: 12px; overflow: visible; }
.tco__chart .gl { stroke: var(--line); stroke-width: 1; }
.tco__chart .ax { fill: var(--muted); font: 500 11px var(--f-body); }
.tco__chart .cost { fill: none; stroke: var(--red); stroke-width: 3; stroke-linejoin: round; transition: d 0.6s var(--ease-out); }
.tco__chart .val { fill: none; stroke: var(--green); stroke-width: 3; stroke-linejoin: round; }
.tco__chart .area { fill: rgba(52, 168, 83, 0.1); transition: d 0.6s var(--ease-out); }
.tco__chart .be { fill: #fff; stroke: var(--blue-d); stroke-width: 3; transition: cx 0.6s var(--ease-out), cy 0.6s var(--ease-out); }
.tco__chart .bel { fill: var(--blue-d); font: 600 12px var(--f-body); text-anchor: middle; transition: x 0.6s var(--ease-out), y 0.6s var(--ease-out); }
.tco__chart .lg { font: 500 12px var(--f-body); }
.tco__note { margin-top: 8px; color: var(--muted); font-size: 13px; }

.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(18px, 2.2vw, 28px) 4px; border-bottom: 1px solid var(--line-2); }
.links span { color: var(--muted); }
.links b { font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 3vw, 42px); line-height: 1.1; overflow-wrap: anywhere; transition: transform 0.6s var(--spring), color 0.3s; }
.links i { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; color: var(--blue-d); background: #fff; box-shadow: var(--e1); font-size: 18px; transition: transform 0.5s var(--spring), background 0.3s, color 0.3s; }
.links a:hover b { transform: translateX(10px); color: var(--blue-d); }
.links a:hover i { transform: rotate(45deg); background: var(--blue-d); color: #fff; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 32px; margin-top: clamp(56px, 8vw, 100px); 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) {
  .readouts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .advg, .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vc--hero { grid-row: auto; grid-column: 1 / -1; }
  .orch__foot { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .ask { width: min(420px, 92%); margin-top: 10px; }
  .hero__board { opacity: 0.4; }
  .bio__grid, .tco { grid-template-columns: 1fr; }
  .sheet { position: relative; top: 0; }
  .sh--deco { grid-template-columns: 1fr; }
  .sh__deco { grid-column: 1; grid-row: auto; max-width: 300px; margin-top: 28px; }
  .orch__stage { height: auto; min-height: 0; padding: 16px; display: grid; gap: 12px; }
  .orch__wires { display: none; }
  .node { position: relative; left: auto !important; top: auto !important; width: auto !important; transform: none; }
  .node.is-hot { transform: scale(1.01); }
  .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: 0 0 0 -9px; justify-self: start; }
  .role__card { grid-column: 2; grid-row: 2; }
  .trace__rail { left: 0; margin-left: -2px; }
}
@media (max-width: 640px) {
  .hero__name { font-size: clamp(52px, 15vw, 84px); }
  .readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .readouts .ro:last-child { grid-column: 1 / -1; }
  .advg, .cgrid, .vgrid { grid-template-columns: 1fr; }
  .orch__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .agentchip { font-size: 12px; padding: 7px 10px; }
  .agentchip--a, .agentchip--c { left: -2%; } .agentchip--b, .agentchip--d { right: -2%; }
  .ask__bar { font-size: 13px; }
  .back { height: 44px; font-size: 13px; padding-right: 16px; }
  .back .btn__ico { width: 34px; height: 34px; }
  .links a { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; }
  .links span, .links b { grid-column: 1; }
  .links i { grid-column: 2; grid-row: 1 / span 2; width: 42px; height: 42px; }
  .close__h { font-size: clamp(40px, 12vw, 62px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; transition-delay: 0s !important; }
}

/* ══ MOBILE (≤640px only; desktop untouched) ═════════════════════════════ */
@media (max-width: 640px) {
  /* back: a compact icon button, so it never sits over headings */
  .back { height: 44px; padding: 0 3px; gap: 0; }
  .back .btn__ico { width: 38px; height: 38px; }
  .back__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* payback chart: axis and legend readable at phone width */
  .tco__chart .ax { font-size: 16px; }
  .tco__chart .lg { font-size: 15px; }
  .tco__chart .bel { font-size: 17px; }
}
