:root {
  --bg: #FDFCFA; --ink: #141413; --ink-2: #41403E; --grey: #5F5E5E; --grey-2: #8E8D8B;
  --line: #E4E2DE; --card: #F3F2EF; --card-2: #ECEAE6; --orange: #FB730A; --orange-ink: #C85700;
  --orange-soft: #FFE7D3; --nav: 58px;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 12px); -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.55 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { width: min(1360px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--grey); }
.dot { color: var(--orange); }
.label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); }
.label::after { content: ""; display: block; width: 28px; height: 2px; background: var(--ink); margin-top: 10px; }
h1, h2, h3, .h-lg, .h-md, .h-sm { font-family: "Inter Tight", Inter, sans-serif; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.h-lg { font-size: clamp(36px, 6vw, 72px); margin: 18px 0 14px; }
.h-md { font-size: clamp(26px, 3.6vw, 40px); margin: 16px 0 10px; }
.h-sm { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 6px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border: 0; border-radius: 99px; padding: 12px 20px; font-weight: 600; font-size: 15px; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 max(16px, calc((100% - 1360px) / 2)); background: rgba(253,252,250,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: baseline; text-decoration: none; font-family: "Inter Tight"; font-weight: 800; font-size: 21px; letter-spacing: -.03em; white-space: nowrap; }
.brand i { color: var(--orange); font-style: normal; }
.brand em { font: 500 13px Inter; letter-spacing: 0; color: var(--grey); margin-left: 10px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 99px; color: var(--ink-2); white-space: nowrap; }
.tabs a.on { background: var(--ink); color: #fff; }

/* hero */
.hero { padding: 64px 0 40px; position: relative; }
.hero-img { position: absolute; right: 0; top: 30px; width: min(38%, 540px); pointer-events: none; }
.hero > :not(.hero-img) { position: relative; }
.hero h1 { font-size: clamp(52px, 10vw, 132px); margin: 22px 0 22px; }
.lede { font-size: clamp(18px, 2.2vw, 24px); color: var(--grey); max-width: 760px; line-height: 1.4; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 36px 0 28px; max-width: min(880px, 60%); }
.hero-stats div { background: var(--card); border-radius: 18px; padding: 16px 18px; }
.hero-stats b { display: block; font-family: "Inter Tight"; font-weight: 800; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.04em; line-height: 1; }
.hero-stats span { font-size: 13px; color: var(--grey); }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* requirement map */
.reqs { padding: 28px 0 8px; }
.req-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.req { background: var(--card); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.req .k { font: 700 12px Inter; letter-spacing: .1em; color: var(--orange-ink); text-transform: uppercase; }
.req b { font-size: 18px; letter-spacing: -.01em; }
.req p { font-size: 14px; color: var(--grey); line-height: 1.4; flex: 1; }
.req .go { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.sn { display: inline-grid; place-items: center; min-width: 34px; height: 28px; padding: 0 8px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font: 600 13px Inter; text-decoration: none; }
.sn:hover { border-color: var(--ink); }

/* thumbnails */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 18px 0 30px; }
.thumbs a { text-decoration: none; font-size: 12px; color: var(--grey); }
.thumbs img { height: auto; border-radius: 10px; border: 1px solid var(--line); aspect-ratio: 16/9; width: 100%; object-fit: cover; margin-bottom: 6px; background: var(--card); }
.thumbs b { color: var(--ink); font-weight: 600; display: block; line-height: 1.3; }

/* slide sections */
.sl { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.sl-head { display: grid; gap: 12px; margin-bottom: 26px; }
.sl-head h2 { font-size: clamp(32px, 5vw, 64px); }
.sl-purpose { font-size: clamp(16px, 1.8vw, 20px); color: var(--ink-2); max-width: 820px; line-height: 1.45; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 99px; background: var(--card); color: var(--ink-2); }
.pill.req { background: var(--orange-soft); color: var(--orange-ink); }
.pill.pres { background: var(--ink); color: #fff; }

.anno { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.15fr) minmax(0, 1fr); gap: 0 64px; align-items: start; position: relative; }
.col { display: grid; gap: 12px; align-content: start; }
.fig { position: sticky; top: calc(var(--nav) + 16px); z-index: 2; }
.fig-in { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(20,20,19,.08); background: var(--card); }
.fig img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.fig-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12px; color: var(--grey); gap: 8px; }
.fig-bar a { font-weight: 600; color: var(--ink); }
.pin { position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: var(--orange); color: #fff; font: 700 12px/24px Inter; text-align: center; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); padding: 0; transition: transform .15s, background .15s; }
.pin.on { background: var(--ink); transform: scale(1.25); z-index: 3; }
.note { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 15px; position: relative; transition: border-color .15s, box-shadow .15s; scroll-margin-top: 50vh; }
.note.on { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.note h4 { display: flex; gap: 10px; align-items: baseline; font-size: 15.5px; letter-spacing: -.01em; line-height: 1.3; margin-bottom: 4px; }
.note h4 i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); color: #fff; font: 700 11px/22px Inter; text-align: center; font-style: normal; position: relative; top: -1px; }
.note p { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.wires { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; overflow: visible; }
.wires path.halo { stroke: #fff; stroke-width: 4; fill: none; opacity: .7; }
.wires path.w { stroke: var(--orange); stroke-width: 1.3; fill: none; opacity: .6; }
.wires path.w.lit { stroke-width: 2; opacity: 1; }
.wires path.halo.lit { stroke-width: 6; opacity: .9; }
.wires path.w.dim { stroke: #bdb9b3; opacity: .35; }
.wires path.halo.dim { opacity: 0; }
.wires circle { fill: var(--orange); }
.wires circle.dim { fill: #bdb9b3; }

.more { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; margin-top: 34px; }
.panel { background: var(--card); border-radius: 20px; padding: 20px 22px; }
.panel h5 { font: 700 12px Inter; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); margin-bottom: 12px; }
.say { display: grid; gap: 10px; }
.line { display: grid; grid-template-columns: 30px 1fr; gap: 10px; font-size: 15px; line-height: 1.5; }
.who { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 12px Inter; background: var(--ink); color: #fff; }
.who.B { background: var(--orange); }
.cue { display: block; font-size: 12.5px; color: var(--grey); font-style: italic; }
.line.h { color: var(--grey); }
.deep { display: grid; gap: 14px; }
.deep b { display: block; font-size: 15px; margin-bottom: 2px; }
.deep p { font-size: 14px; color: var(--ink-2); }
.src { display: flex; flex-wrap: wrap; gap: 6px; }
.src a { font-size: 13px; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; text-decoration: none; }
.src a:hover { border-color: var(--ink); }
.qlinks { display: grid; gap: 6px; }
.qlinks a { font-size: 14.5px; font-weight: 600; text-decoration: none; display: flex; gap: 8px; }
.qlinks a::before { content: "?"; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-ink); font: 700 12px/20px Inter; text-align: center; margin-top: 1px; }
.qlinks a:hover { color: var(--orange-ink); }
.stack { display: grid; gap: 18px; align-content: start; }

/* Q&A */
.block { padding: 72px 0 24px; border-top: 1px solid var(--line); }
.qa-tools { position: sticky; top: var(--nav); z-index: 5; background: var(--bg); padding: 14px 0 10px; margin-top: 10px; }
input[type=search] { width: 100%; font: inherit; font-size: 16px; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 13px; font-size: 13.5px; font-weight: 600; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.qa-list { display: grid; gap: 10px; margin-top: 8px; }
.qa-cat { font: 700 12px Inter; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); margin: 22px 0 2px; }
details.q { background: #fff; border: 1px solid var(--line); border-radius: 16px; scroll-margin-top: 170px; }
details.q[open] { border-color: var(--ink); }
details.q.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px var(--orange); } 100% { box-shadow: 0 0 0 0 transparent; } }
details.q summary { list-style: none; cursor: pointer; padding: 15px 18px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; font-weight: 600; font-size: 16px; line-height: 1.35; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: "+"; font: 600 22px/1 Inter; color: var(--grey); }
details.q[open] summary::after { content: "–"; }
.qa-body { padding: 0 18px 18px; display: grid; gap: 12px; }
.qa-say { background: var(--orange-soft); border-radius: 12px; padding: 12px 14px; font-size: 15.5px; line-height: 1.5; }
.qa-say b, .qa-push b { display: block; font: 700 11px Inter; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 4px; }
.qa-push { font-size: 14.5px; color: var(--ink-2); padding: 0 2px; }
.qa-push b { color: var(--grey); }
.qa-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--grey); }
.qa-empty { padding: 24px 0; color: var(--grey); }
.weak { margin-top: 56px; }
.weak-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 18px; }
.wk { background: var(--ink); color: #fff; border-radius: 18px; padding: 18px; display: grid; gap: 8px; align-content: start; }
.wk b { font-size: 16px; line-height: 1.3; }
.wk p { font-size: 14px; color: #c9c7c3; }
.wk p.s { color: #fff; }
.wk p.s::before { content: "Say: "; color: var(--orange); font-weight: 700; }

/* numbers */
#numSearch { margin: 16px 0 14px; }
.ntable { display: grid; border-top: 1px solid var(--line); }
.nrow { display: grid; grid-template-columns: 220px 1fr 1.1fr 0.9fr 52px; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); align-items: baseline; font-size: 14px; }
.nrow.hd { font: 700 11px Inter; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); padding: 10px 4px; position: sticky; top: var(--nav); background: var(--bg); z-index: 2; }
.nrow .v { font-family: "Inter Tight"; font-weight: 800; font-size: 20px; letter-spacing: -.03em; line-height: 1.15; }
.nrow .c { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.nrow .s { color: var(--grey); }

/* script */
.script-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 18px 0; }
.seg { display: inline-flex; background: var(--card); border-radius: 99px; padding: 4px; }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 99px; font-size: 14px; font-weight: 600; }
.seg button.on { background: var(--ink); color: #fff; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.split div { background: var(--card); border-radius: 16px; padding: 14px 16px; font-size: 14px; color: var(--ink-2); }
.split b { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.sc { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.sc-side { text-decoration: none; }
.sc-side img { border-radius: 8px; border: 1px solid var(--line); margin-bottom: 8px; }
.sc-side b { display: block; font-size: 14px; }
.sc-side span { font-size: 13px; color: var(--grey); }
.sc .say { gap: 12px; }
.sc .line { font-size: 16.5px; }
body.only-A .line.sB, body.only-B .line.sA { opacity: .28; }

/* files + footer */
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 20px; }
.file { background: var(--card); border-radius: 20px; padding: 22px; text-decoration: none; display: grid; gap: 4px; position: relative; }
.file b { font-size: 19px; }
.file span { font-size: 14px; color: var(--grey); }
.file em { position: absolute; right: 20px; top: 20px; font: 700 13px Inter; font-style: normal; color: var(--orange-ink); }
.file:hover { background: var(--card-2); }
.foot { padding: 48px 0 64px; border-top: 1px solid var(--line); margin-top: 56px; display: grid; gap: 8px; font-size: 14px; }

/* rehearsal */
.rh { position: fixed; inset: 0; z-index: 100; background: #0f0f0e; color: #fff; display: grid; grid-template-rows: auto auto 1fr auto; padding: max(12px, env(safe-area-inset-top)) 16px max(14px, env(safe-area-inset-bottom)); gap: 12px; }
.rh[hidden] { display: none; }
.rh-top { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.rh-n { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rh-t { font: 800 22px "Inter Tight"; font-variant-numeric: tabular-nums; }
.rh-t.over { color: var(--orange); }
.rh-target { color: #a9a7a3; font-size: 13px; }
.rh-x { background: #2a2a28; border: 0; width: 36px; height: 36px; border-radius: 50%; }
.rh-img { width: min(100%, 820px); margin: 0 auto; border-radius: 8px; max-height: 34vh; object-fit: contain; }
.rh-lines { overflow-y: auto; display: grid; gap: 14px; align-content: start; width: min(100%, 820px); margin: 0 auto; font-size: clamp(18px, 2.4vw, 24px); line-height: 1.45; }
.rh-lines .line { grid-template-columns: 34px 1fr; font-size: inherit; }
.rh-lines .cue { color: #a9a7a3; }
.rh .who.A { background: #fff; color: var(--ink); }
.rh-nav { display: grid; grid-template-columns: 64px 1fr 64px; gap: 10px; width: min(100%, 820px); margin: 0 auto; }
.rh-nav button { border: 0; border-radius: 14px; padding: 14px; background: #2a2a28; font-weight: 700; font-size: 17px; }
#rhPlay { background: var(--orange); }

/* ---------- responsive ---------- */
@media (max-width: 1179px) {
  .req-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-img { width: 40%; top: 60px; opacity: .95; }
  .anno { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .fig { grid-column: 1 / -1; grid-row: 1; top: var(--nav); background: var(--bg); padding: 8px 0 10px; margin: 0 -16px; padding-inline: 16px; z-index: 6; box-shadow: 0 8px 12px -10px rgba(20,20,19,.25); }
  .col { display: contents; }
  .note { scroll-margin-top: calc(var(--nav) + 56vw * .5625 + 40px); }
  .more { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav { --nav: 54px; }
  .brand em { display: none; }
  .tabs a { padding: 7px 9px; font-size: 13px; }
  .hero { padding: 40px 0 28px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); max-width: none; }
  .hero-img { position: static; width: 72%; margin: -10px auto -10px; }
  .hero { display: flex; flex-direction: column; }
  .hero-img { order: 3; }
  .req-grid { grid-template-columns: 1fr; }
  .anno { grid-template-columns: minmax(0, 1fr); }
  .fig { top: var(--nav); }
  .note { scroll-margin-top: calc(var(--nav) + (100vw - 32px) * .5625 + 56px); }
  .pin { width: 19px; height: 19px; margin: -9.5px 0 0 -9.5px; font-size: 10px; line-height: 15px; border-width: 2px; }
  .fig-bar { font-size: 11px; }
  .sl { padding: 40px 0 28px; }
  .panel { padding: 16px; border-radius: 16px; }
  .nrow { grid-template-columns: 1fr 40px; gap: 4px 12px; padding: 14px 2px; }
  .nrow.hd { display: none; }
  .nrow .v { grid-column: 1; }
  .nrow .sl-n { grid-column: 2; grid-row: 1; justify-self: end; }
  .nrow .w, .nrow .c, .nrow .s { grid-column: 1 / -1; }
  .nrow .c::before { content: "= "; color: var(--orange-ink); font-weight: 700; }
  .split { grid-template-columns: 1fr; }
  .sc { grid-template-columns: 1fr; gap: 12px; }
  .sc-side { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; }
  .sc-side { text-decoration: none; }
.sc-side img { margin: 0; }
  .sc .line { font-size: 15.5px; }
  details.q summary { font-size: 15.5px; padding: 14px 15px; }
  .qa-body { padding: 0 15px 15px; }
}
@media (max-width: 1179px) and (max-height: 560px) { .fig { position: relative; top: 0; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
@media print { .nav, .wires, .qa-tools, .script-tools, .rh { display: none !important; } details.q { break-inside: avoid; } }
