/* teja.trivoailabs.com — palette from the master résumé PDF (Modern Professional), plus one complementary amber. */

:root {
  --navy: #16325c;         /* résumé header band, headings, rail */
  --navy-2: #1b3a7a;       /* résumé link colour */
  --sky: #b9cbe8;          /* résumé subtitle blue */
  --ink: #1f2937;
  --muted: #5f6b7a;
  --soft: #f1f5fb;         /* résumé side panels */
  --line: #c9d6ea;         /* résumé chip border */
  --bg: #ffffff;
  --card: #ffffff;
  --head: #16325c;
  --amber: #e3a23b;        /* complement of navy (hue ~37°): markers, fills, CTA backgrounds */
  --amber-ink: #8f5c0e;    /* amber as text on light backgrounds (AA) */
  --on-amber: #16325c;
  --band-bg: #16325c;
  --band-ink: #ffffff;
  --band-sub: #b9cbe8;
  --glass: rgba(255, 255, 255, .86);
  --shadow: 0 1px 2px rgba(22, 50, 92, .06), 0 8px 24px rgba(22, 50, 92, .08);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --rail-w: 128px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --top-h: 60px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --navy: #c7d4ee;
  --navy-2: #c7d4ee;
  --sky: #7f9cc9;
  --ink: #e6edf8;
  --muted: #9aa8bf;
  --soft: #132642;
  --line: #2a4170;
  --bg: #0c1a30;
  --card: #10223d;
  --head: #eef3fb;
  --amber: #f0b85a;
  --amber-ink: #f0b85a;
  --on-amber: #0c1a30;
  --band-bg: #081325;
  --band-ink: #eef3fb;
  --band-sub: #b9cbe8;
  --glass: rgba(12, 26, 48, .86);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
/* no CSS smooth scrolling: it breaks ScrollTrigger's measurements; app.js smooth-scrolls in-page links instead */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 18px/1.6 var(--sans); overflow-x: hidden;
  transition: background-color .3s, color .3s;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy-2); text-underline-offset: 3px; }
a:hover { color: var(--amber-ink); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: var(--on-amber); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.i { width: 1.15em; height: 1.15em; flex: none; stroke-width: 1.8; }
.muted { color: var(--muted); }

/* ---------- top bar ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--top-h);
  display: flex; align-items: center; gap: 12px; padding: 0 var(--gutter);
  background: transparent; color: var(--band-ink); transition: background .3s, color .3s, box-shadow .3s;
}
.top.solid { background: var(--glass); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; }
.mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--amber); color: #16325c; font: 700 14px var(--serif); letter-spacing: .5px; }
.brand-name { font-family: var(--serif); font-size: 17px; }
.aud-badge {
  display: flex; align-items: center; gap: 8px; margin-left: 6px; padding: 6px 12px; border-radius: 99px;
  border: 1px solid currentColor; background: transparent; cursor: pointer; font-size: 14px; opacity: .92;
}
.aud-badge[hidden] { display: none; }
.aud-badge .i { width: 15px; height: 15px; }
.aud-badge-icon .i { color: var(--amber); }
.top-actions { margin-left: auto; display: flex; gap: 6px; }
.tbtn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px;
  border: 1px solid transparent; background: transparent; cursor: pointer; font-size: 15px; font-weight: 600;
}
.tbtn:hover { border-color: currentColor; }
.tbtn.icon-only { width: 38px; padding: 0; justify-content: center; }
.theme-btn .i-sun, :root[data-theme="dark"] .theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }

/* ---------- hero band ---------- */
.band {
  position: relative; overflow: hidden; min-height: 100svh; display: grid; align-content: center;
  padding: calc(var(--top-h) + 40px) var(--gutter) 120px; background: var(--band-bg); color: var(--band-ink);
}
.band-inner { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.photo {
  width: clamp(120px, 18vw, 200px); aspect-ratio: 1; height: auto; object-fit: cover; border-radius: 18%;
  border: 3px solid #c7d4ee; box-shadow: 0 6px 30px rgba(0, 0, 0, .35);
}
.name { margin: 0; font: 700 clamp(40px, 7vw, 84px)/1.02 var(--serif); letter-spacing: -.5px; }
.headline { margin: 10px 0 0; color: var(--band-sub); font-size: clamp(16px, 2vw, 21px); }
.lede { margin: 22px 0 0; max-width: 34ch; font: 600 clamp(22px, 3vw, 32px)/1.3 var(--serif); min-height: 2.6em; }
.lede .caret { display: inline-block; width: .08em; height: 1em; margin-left: 2px; background: var(--amber); vertical-align: -.12em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.band-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 22px 0 0; color: var(--band-sub); font-size: 16px; }
.band-meta a { color: var(--band-ink); }
.band-meta .i { color: var(--amber); }
.cue {
  position: absolute; z-index: 1; left: 50%; bottom: 28px; transform: translateX(-50%); width: min(92%, 560px);
  display: flex; align-items: center; gap: 12px; color: var(--band-sub); text-decoration: none; font-size: 15px;
}
.cue .i { width: 34px; height: 34px; padding: 7px; border-radius: 50%; border: 1px solid var(--band-sub); color: var(--amber); animation: bob 2.2s ease-in-out infinite; }
html.calm .cue .i { animation: none; }
@keyframes bob { 50% { transform: translateY(5px); } }
.band-orbit { position: absolute; inset: auto 0 0; width: 100%; height: 300px; }
.band-orbit path { fill: none; stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 2 8; opacity: .6; vector-effect: non-scaling-stroke; }

/* ---------- sections ---------- */
main > section { padding: clamp(64px, 10vw, 120px) var(--gutter); scroll-margin-top: calc(var(--top-h) - 1px); }
#brief { scroll-margin-top: calc(var(--top-h) + 24px); }
main > section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-h { margin-top: 0; margin-bottom: 10px; font: 700 clamp(30px, 4.4vw, 48px)/1.12 var(--serif); color: var(--head); letter-spacing: -.3px; }
.section-sub { margin-top: 0; color: var(--muted); font-size: 19px; }
.kicker { margin: 0 0 8px; font: 600 13px var(--mono); letter-spacing: 1.6px; text-transform: uppercase; color: var(--amber-ink); }
.linkish { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 6px 0; color: var(--navy-2); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.linkish:hover { color: var(--amber-ink); }

/* ---------- who's visiting ---------- */
#visit { text-align: center; }
#visit .section-sub { margin-bottom: 36px; }
.aud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; text-align: left; }
.aud-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 20px 20px; cursor: pointer; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.aud-card:hover { transform: translateY(-4px); border-color: var(--amber); }
.aud-card[aria-pressed="true"] { border-color: var(--amber); box-shadow: 0 0 0 2px var(--amber), var(--shadow); }
.aud-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--soft); color: var(--navy); margin-bottom: 8px; }
.aud-icon .i { width: 26px; height: 26px; }
.aud-card:hover .aud-icon, .aud-card[aria-pressed="true"] .aud-icon { background: var(--amber); color: #16325c; }
.aud-card b { font: 700 22px var(--serif); color: var(--head); }
.aud-sub { color: var(--muted); font-size: 15px; }
.aud-prev { margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 15px; line-height: 1.45; }

/* ---------- briefs ---------- */
#brief { padding-top: 0; }
#brief:not(:has(.brief.on)) { display: none; }
.brief { display: none; padding: clamp(24px, 4vw, 44px); border-radius: 20px; background: var(--soft); border: 1px solid var(--line); }
.brief.on { display: block; }
html:not(.js) .brief { display: none; }
.brief-points { margin: 18px 0 26px; padding: 0; list-style: none; display: grid; gap: 12px; }
.brief-points li { position: relative; padding-left: 26px; font-size: 19px; }
.brief-points li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }

/* ---------- numbers ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.numbers.big { grid-template-columns: repeat(5, 1fr); }
.num { display: flex; flex-direction: column; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.num-v { font: 700 clamp(36px, 5vw, 56px)/1 var(--serif); color: var(--head); font-variant-numeric: tabular-nums; }
.num-l { margin-top: 8px; font-weight: 600; line-height: 1.3; }
.num-c { margin-top: 4px; font: 12px var(--mono); color: var(--muted); }
.numbers.big .num { border-top: 4px solid var(--amber); }

/* ---------- journey ---------- */
#journey { position: relative; padding-top: 40px; }
#journey > .chapter { max-width: calc(var(--max) + var(--rail-w)); }
.rail { position: absolute; top: 0; bottom: 0; left: max(var(--gutter), calc(50% - (var(--max) + var(--rail-w)) / 2)); width: var(--rail-w); pointer-events: none; }
.rail-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rail-base { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 3 7; }
.rail-draw { fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; }
.rail-sat { position: absolute; left: 0; top: 0; width: 46px; height: 28px; margin: -14px 0 0 -23px; will-change: transform; z-index: 2; }
.rail-sat svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 6px rgba(22, 50, 92, .25)); }
html:not(.js) .rail, html.calm .rail-sat { display: none; }

.chapter { position: relative; display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); padding: 48px 0 72px; scroll-margin-top: var(--top-h); }
.ch-marker { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 6px; }
.ch-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 3px solid var(--navy); transition: background .3s, transform .3s, border-color .3s; z-index: 1; }
.chapter.active .ch-dot { background: var(--amber); border-color: var(--amber); transform: scale(1.25); box-shadow: 0 0 0 6px color-mix(in srgb, var(--amber) 25%, transparent); }
.ch-years { font: 600 12px var(--mono); color: var(--muted); text-align: center; background: var(--bg); padding: 2px 4px; border-radius: 4px; z-index: 1; }
.ch-body { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.ch-n { color: var(--muted); margin-right: 6px; }
.ch-title { margin: 0 0 14px; font: 700 clamp(30px, 4vw, 46px)/1.1 var(--serif); color: var(--head); letter-spacing: -.3px; }
.hook { font-size: 20px; line-height: 1.6; margin: 0 0 18px; }
.for { display: none; align-items: flex-start; gap: 10px; margin: 0 0 22px; padding: 12px 16px; border-left: 4px solid var(--amber); border-radius: 0 12px 12px 0; background: color-mix(in srgb, var(--amber) 12%, var(--bg)); font-weight: 600; }
.for .i { margin-top: 4px; color: var(--amber-ink); }
body[data-aud="recruiter"] .for[data-aud="recruiter"], body[data-aud="investor"] .for[data-aud="investor"],
body[data-aud="educator"] .for[data-aud="educator"], body[data-aud="engineer"] .for[data-aud="engineer"] { display: flex; }

.role { margin: 0 0 16px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.role-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: baseline; }
.role h3 { margin: 0; font-size: 19px; color: var(--head); }
.dates { font: 13px var(--mono); color: var(--muted); white-space: nowrap; }
.role-sub { margin: 2px 0 8px; font-size: 16px; color: var(--navy-2); }
.role-sub i { color: var(--muted); }
.role ul, .details ul { margin: 0; padding-left: 20px; }
.role li, .details li { margin: 4px 0; font-size: 17px; }
.role li::marker, .details li::marker { color: var(--amber); }
.role.edu { background: var(--soft); }
.details { margin: 0 0 16px; padding: 16px 20px; border: 1px dashed var(--sky); border-radius: 14px; }
.details-h, .aside-h { margin: 0 0 6px; font: 600 12px var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--amber-ink); }
.aside { display: flex; gap: 16px; align-items: center; margin: 0 0 16px; padding: 16px 20px; background: var(--soft); border-radius: 14px; }
.aside p { margin: 0; font-size: 17px; }
.aside .aside-h { margin-bottom: 4px; }
.aside-people { border-left: 4px solid var(--amber); }
.gears { width: 120px; flex: none; }
.gear path { fill: var(--card); stroke: var(--navy); stroke-width: 1.6; stroke-linejoin: round; }
.gear circle { fill: var(--amber); }
.g2 path { fill: color-mix(in srgb, var(--amber) 30%, var(--card)); }
.ch-foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }
.chip-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px; background: var(--navy); color: var(--bg); font-weight: 600; font-size: 15px; text-decoration: none; }
:root[data-theme="dark"] .chip-link { color: #0c1a30; }
.chip-link:hover { background: var(--amber); color: #16325c; }
.unlock { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.unlock-h { display: inline-flex; align-items: center; gap: 4px; margin-right: 4px; font: 600 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.unlock-h .i { color: var(--amber); }
.chip { display: inline-block; padding: 3px 11px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 14px; line-height: 1.5; }

/* scenes */
.scene { position: sticky; top: calc(var(--top-h) + 28px); margin: 0; padding: 18px; border-radius: 20px; background: var(--soft); border: 1px solid var(--line); }
.scene figcaption { margin-top: 10px; font: 12px var(--mono); color: var(--muted); }
.scene-svg { width: 100%; height: auto; overflow: visible; }
.s-line { fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.thin { stroke-width: 1; }
.s-faint { fill: none; stroke: var(--line); stroke-width: 1.2; }
.s-orbit { fill: none; stroke: var(--sky); stroke-width: 1.4; stroke-dasharray: 4 6; }
.s-stars circle { fill: var(--sky); }
.s-signal { stroke: var(--amber); stroke-width: 1.6; stroke-dasharray: 3 5; }
.s-panel { fill: var(--sky); stroke: var(--navy); stroke-width: 1.3; }
.s-body { fill: var(--card); stroke: var(--navy); stroke-width: 1.6; }
.s-accent { fill: var(--amber); }
.s-label { font: 600 11px var(--mono); fill: var(--muted); }
.s-label.center { text-anchor: middle; }
.s-garment { fill: var(--amber); fill-opacity: .9; stroke: var(--navy); stroke-width: 1.3; stroke-linejoin: round; }
.s-scan path { fill: none; stroke: var(--amber-ink); stroke-width: 2; stroke-linecap: round; }
.s-tile { fill: var(--card); stroke: var(--line); }
.k-circle circle { fill: var(--navy); }
.k-square rect + rect, .k-square rect:last-child { fill: var(--sky); stroke: var(--navy); stroke-width: 1.2; }
.k-tri path { fill: var(--amber); }
.k-dia path { fill: none; stroke: var(--navy); stroke-width: 1.8; }
.s-soft-fill { fill: var(--card); }
.s-tomato { fill: var(--amber); }
.s-det rect { fill: none; stroke: var(--amber-ink); stroke-width: 1.5; stroke-dasharray: 4 3; }
.s-det text { font: 600 10px var(--mono); fill: var(--amber-ink); }
.s-track { fill: var(--card); stroke: var(--line); }
.s-fill { fill: var(--navy); }
.s-delta { fill: var(--amber-ink); font-size: 13px; }
.s-box rect { fill: var(--card); stroke: var(--navy); stroke-width: 1.5; }
.s-box text { text-anchor: middle; font: 600 13px var(--sans); fill: var(--ink); }
.s-flow { fill: none; stroke: var(--navy); stroke-width: 1.5; }
.s-arrowhead { fill: var(--navy); }
.s-mile circle { fill: var(--card); stroke: var(--navy); stroke-width: 2; }
.s-mile.done circle { fill: var(--amber); stroke: var(--amber); }
.s-mile text { text-anchor: middle; font: 600 10.5px var(--mono); fill: var(--muted); }
.s-dot { fill: var(--line); transition: fill .4s; }
.s-dot.on { fill: var(--amber); }
.s-sun { fill: var(--amber); }
.s-hill { fill: var(--card); }
.s-hill.back { fill: var(--soft); }
.s-ridge { fill: none; stroke: var(--navy); stroke-width: 1.4; }
.s-ridge.back { stroke: var(--sky); }
.s-crown { fill: var(--sky); stroke: var(--navy); stroke-width: 1.3; }
.s-bird { fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; }
.s-bird-path { fill: none; stroke: var(--line); stroke-dasharray: 2 6; }

.term { margin: 12px 0 0; padding: 12px 14px; min-height: 104px; border-radius: 12px; background: #0b1730; color: #b9cbe8; font: 12.5px/1.6 var(--mono); white-space: pre-wrap; }
.term b { color: #e3a23b; font-weight: 600; }

.lang-scene { display: grid; gap: 14px; }
.words { display: flex; flex-wrap: wrap; gap: 6px; min-height: 92px; align-content: flex-start; }
.w { display: inline-block; padding: 3px 9px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); font: 13px var(--mono); }
.bins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bin { min-height: 120px; padding: 8px; border-radius: 10px; border: 1.5px dashed var(--sky); background: var(--card); }
.bin b { display: block; margin-bottom: 6px; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: 1px; color: var(--navy); }
.bin-in { display: flex; flex-wrap: wrap; gap: 4px; }
.bin .w { font-size: 11.5px; padding: 1px 6px; }
.stamp { justify-self: start; padding: 4px 12px; border: 2px solid var(--amber-ink); border-radius: 8px; color: var(--amber-ink); font: 700 13px var(--mono); transform: rotate(-3deg); }
.meter { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font: 600 12px var(--mono); color: var(--muted); }
.meter-track { height: 10px; border-radius: 5px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.meter-fill { display: block; height: 100%; width: 100%; background: var(--navy); transform-origin: left; }
.meter-val { color: var(--amber-ink); font-size: 14px; }

.now-scene { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; }
.phone { position: relative; padding: 30px 12px 16px; border-radius: 26px; border: 2px solid var(--navy); background: var(--card); min-height: 250px; display: flex; flex-direction: column; gap: 10px; }
.phone-bar { position: absolute; top: 10px; left: 50%; width: 46px; height: 6px; margin-left: -23px; border-radius: 3px; background: var(--line); }
.bubble { max-width: 92%; padding: 8px 11px; border-radius: 14px; font-size: 14px; line-height: 1.4; }
.bubble.me { align-self: flex-end; background: var(--soft); border-bottom-right-radius: 4px; }
.bubble.tutor { align-self: flex-start; background: var(--navy); color: var(--bg); border-bottom-left-radius: 4px; min-height: 3.2em; }
:root[data-theme="dark"] .bubble.tutor { color: #0c1a30; }
.scripts { margin-top: auto; display: flex; flex-wrap: wrap; gap: 4px; }
.scripts span { padding: 1px 7px; border-radius: 99px; border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.scripts span.on { background: var(--amber); border-color: var(--amber); color: #16325c; }
.assess { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.assess li { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.assess .i { color: var(--amber-ink); }

/* ---------- toolbox ---------- */
.tb-strip { display: flex; justify-content: space-between; gap: 6px; margin: 30px auto 28px; padding: 0 4px; position: relative; }
.tb-strip::before { content: ""; position: absolute; left: 14px; right: 14px; top: 9px; border-top: 2px dashed var(--line); }
.tb-stop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; font: 11px var(--mono); color: var(--muted); text-align: center; flex: 1; }
.tb-stop i { width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 3px solid var(--line); transition: all .25s; }
.tb-stop b { font: 600 12px var(--sans); color: var(--ink); }
.tb-stop.hit i { border-color: var(--amber); background: var(--amber); transform: scale(1.2); }
.tb-stop.hit b { color: var(--amber-ink); }
.tb-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tb-group { padding: 18px; background: var(--soft); border: 1px solid var(--line); border-radius: 16px; }
.tb-group h3 { margin: 0 0 10px; font: 700 18px var(--serif); color: var(--head); }
.tb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tb-chip { cursor: default; transition: background .2s, border-color .2s; }
.tb-chip:hover, .tb-chip:focus-visible { background: var(--amber); border-color: var(--amber); color: #16325c; }
.tb-chip.got { border-color: var(--navy); }

/* ---------- beyond ---------- */
#beyond { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; max-width: none; }
#beyond > * { margin: 0; }
#beyond .scene { position: static; justify-self: end; width: 100%; max-width: 560px; }
#beyond .beyond-text { max-width: 520px; font-size: 20px; }

/* ---------- contact ---------- */
#contact { background: var(--soft); border-top: 1px solid var(--line); }
.cta { display: none; }
.cta.on, html:not(.js) .cta[data-aud="all"] { display: block; }
.cta p { font-size: 20px; max-width: 46ch; }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.cbtn { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .2s, border-color .2s; }
.cbtn:hover { transform: translateY(-2px); border-color: var(--amber); color: var(--ink); }
.cbtn .i { width: 26px; height: 26px; color: var(--navy); }
.cbtn span { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); line-height: 1.35; min-width: 0; overflow-wrap: anywhere; }
.cbtn b { color: var(--ink); font-size: 16px; }
.cbtn.primary { background: var(--amber); border-color: var(--amber); }
.cbtn.primary .i, .cbtn.primary b, .cbtn.primary span { color: #16325c; }

.foot { padding: 28px var(--gutter) 90px; text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- HUD + tray ---------- */
.hud {
  position: fixed; z-index: 41; top: 0; left: 50%; height: var(--top-h); display: flex; align-items: center; gap: 10px;
  transform: translate(-50%, -8px); font: 600 11px/1.4 var(--mono); letter-spacing: .6px; text-transform: uppercase; color: var(--ink);
  opacity: 0; transition: opacity .35s, transform .35s; pointer-events: none;
}
.hud.on { opacity: 1; transform: translate(-50%, 0); }
.loc { width: 46px; height: 43px; }
.loc-path { fill: none; stroke: var(--line); stroke-width: 1.4; stroke-dasharray: 2 3; }
.loc-dot { fill: var(--card); stroke: var(--navy); stroke-width: 1.4; transition: fill .3s, r .3s; }
.loc-dot.on { fill: var(--amber); stroke: var(--amber); r: 4.6; }
.hud-text { display: grid; grid-template-columns: auto auto; gap: 0 10px; }
.hud-role { grid-column: 1 / -1; }
.hud-year { color: var(--amber-ink); font-size: 14px; }
.hud-role { color: var(--muted); max-width: 34ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray {
  position: fixed; z-index: 30; right: 16px; bottom: 16px; display: flex; align-items: baseline; gap: 6px; padding: 10px 16px;
  border-radius: 99px; border: 1px solid var(--line); background: var(--glass); box-shadow: var(--shadow); cursor: pointer;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .35s; pointer-events: none;
}
.tray.on { opacity: 1; transform: none; pointer-events: auto; }
.tray-count { font: 700 20px var(--serif); color: var(--amber-ink); font-variant-numeric: tabular-nums; }
.tray-of { font: 600 12px var(--mono); color: var(--muted); }
.tray.bump { animation: bump .45s; }
@keyframes bump { 40% { transform: scale(1.12); } }
.fly { position: fixed; z-index: 60; pointer-events: none; margin: 0; }

/* ---------- dialogs ---------- */
dialog { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(8, 19, 37, .62); backdrop-filter: blur(3px); }
#onepager { width: min(960px, 100% - 24px); max-height: calc(100% - 24px); overflow: auto; border-radius: 16px; background: #fff; color: #1f2937; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.op-tools { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; gap: 6px; padding: 8px; background: #16325c; color: #fff; }
.op { font: 13.5px/1.42 var(--sans); }
.op-band { display: flex; gap: 18px; align-items: center; padding: 6px 28px 22px; background: #16325c; color: #fff; }
.op-band img { width: 86px; height: 86px; border-radius: 18%; object-fit: cover; border: 2px solid #c7d4ee; }
.op-band h2 { margin: 0; font: 700 30px var(--serif); }
.op-band p { margin: 2px 0 0; color: #b9cbe8; }
.op-band .op-contact { color: #fff; opacity: .9; font-size: 12.5px; margin-top: 6px; }
.op-cols { display: grid; grid-template-columns: 1fr 250px; gap: 24px; padding: 20px 28px 28px; }
.op h3 { margin: 14px 0 6px; padding-bottom: 2px; border-bottom: 1.5px solid #16325c; color: #16325c; font: 700 13px var(--serif); letter-spacing: 1.3px; text-transform: uppercase; }
.op h3:first-child { margin-top: 0; }
.op p { margin: 0 0 6px; }
.op-role { margin-bottom: 8px; }
.op-rh { display: flex; justify-content: space-between; gap: 8px; }
.op-rh span { color: #6b7280; white-space: nowrap; }
.op-org { color: #1b3a7a; font-weight: 600; margin: 0 !important; }
.op-org i { color: #6b7280; font-weight: 400; }
.op ul { margin: 2px 0 0; padding-left: 18px; }
.op-side > p, .op-side .op-n { background: #f1f5fb; padding: 6px 8px; border-radius: 4px; }
.op-n b { color: #16325c; font-size: 16px; margin-right: 4px; }
.op-sg b { display: block; color: #16325c; }

#term { width: min(680px, 100% - 24px); }
.term-win { border-radius: 14px; overflow: hidden; background: #0b1730; color: #d7e2f4; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); font: 14px/1.6 var(--mono); }
.term-head { display: flex; align-items: center; gap: 7px; padding: 10px 12px; background: #16325c; }
.term-head > span { width: 11px; height: 11px; border-radius: 50%; background: #b9cbe8; opacity: .5; }
.term-head > span:first-child { background: #e3a23b; opacity: 1; }
.term-head b { margin-left: 8px; font-weight: 600; color: #b9cbe8; }
.term-x { margin-left: auto; border: 0; background: none; color: #b9cbe8; cursor: pointer; display: grid; place-items: center; }
.term-out { height: min(360px, 55vh); overflow-y: auto; padding: 14px 16px 4px; white-space: pre-wrap; }
.term-out .c { color: #e3a23b; }
.term-out a { color: #b9cbe8; }
.term-form label { display: flex; gap: 10px; padding: 8px 16px 16px; }
.prompt { color: #e3a23b; }
.term-form input { flex: 1; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; }

/* ---------- reveal states (only when JS runs and motion is allowed) ---------- */
html.js:not(.calm) .reveal { opacity: 0; transform: translateY(24px); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hud { top: var(--top-h); left: 0; right: 0; height: 40px; justify-content: center; transform: translateY(-8px); background: var(--glass); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .hud.on { transform: none; }
  .hud-text { grid-template-columns: auto auto auto; }
  .hud-role { grid-column: auto; }
  .aud-grid, .tb-groups, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .numbers.big { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  :root { --rail-w: 44px; }
  .ch-body { display: flex; flex-direction: column; gap: 0; }
  .ch-text { display: contents; }
  .ch-text > * { order: 3; }
  .ch-text > .kicker, .ch-text > .ch-title, .ch-text > .hook { order: 0; }
  .ch-text > .for { order: 1; }
  .scene { order: 2; position: static; margin: 0 0 20px; padding: 12px; }
  .ch-years { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; padding: 6px 1px; }
  .chapter { padding: 32px 0 44px; }
  #beyond { grid-template-columns: 1fr; }
  #beyond .scene { justify-self: stretch; }
  .tb-stop b { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  :root { --top-h: 56px; }
  .brand-name, .tbtn span:not(.sr) { display: none; }
  .tbtn { width: 38px; padding: 0; justify-content: center; }
  .aud-badge { font-size: 13px; padding: 5px 10px; }
  .aud-badge-text { white-space: nowrap; }
  .band-inner { grid-template-columns: 1fr; }
  .photo { width: 112px; }
  .aud-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .aud-card { padding: 16px 14px; }
  .aud-card b { font-size: 19px; }
  .aud-prev { display: none; }
  .numbers, .numbers.big { grid-template-columns: 1fr 1fr; }
  .num { padding: 14px; }
  .tb-groups, .contact-grid { grid-template-columns: 1fr; }
  .hook { font-size: 18px; }
  .now-scene { grid-template-columns: 1fr; }
  .now-scene .dots { max-width: 220px; margin: 0 auto; }
  .aside { flex-direction: column; align-items: flex-start; }
  .loc { width: 30px; height: 28px; }
  .hud-role { display: none; }
  .tray { bottom: 10px; right: 10px; padding: 8px 12px; }
  .op-cols { grid-template-columns: 1fr; }
  .op-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 440px) {
  .top { gap: 8px; }
  .aud-badge { margin-left: 0; }
  .aud-badge .va, .aud-badge > .i-pencil, .term-btn { display: none; }
}

/* ---------- print: the 60-second one-pager prints as a résumé ---------- */
@media print {
  @page { size: A4; margin: 0; }
  html.print-op body > *:not(#onepager) { display: none !important; }
  html.print-op #onepager { position: static; display: block; width: auto; max-height: none; overflow: visible; box-shadow: none; border-radius: 0; }
  html.print-op .op-tools { display: none; }
  html.print-op .op { font-size: 9pt; }
  html.print-op .op-band, html.print-op .op-side p { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .hud, .tray, .top, .rail { display: none !important; }
}
