/* ==========================================================================
   RIT. Paper, ink and varsity red. Hard offset shadows echo the logo.
   ========================================================================== */
:root {
  --paper: #F1F1EF;
  --ink: #000;
  --red: #ED1915;
  --red-deep: #B50F0C;
  --amber: #F2A900;
  --f-display: 'Graduate', 'Impact', 'Arial Narrow', sans-serif;
  --f-text: 'Chakra Petch', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1320px;
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-text); font-size: 17px; line-height: 1.55;
  color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.band--ink :focus-visible { outline-color: #fff; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: calc(var(--nav-h) - 1px); }

.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: #000; color: #fff; padding: 10px 16px; transition: top .2s; }
.skip:focus { top: 12px; }

.ico { width: 1.15em; height: 1.15em; flex: none; }
.ico--xl { width: 56px; height: 56px; }

/* ---------- bands ---------- */
.band { position: relative; padding: clamp(72px, 9vw, 136px) 0; background: var(--bg); color: var(--fg); }
.band--paper {
  --bg: var(--paper); --fg: #000; --dim: #55555a; --line: rgba(0, 0, 0, .16); --line-strong: #000;
  --surface: #fff; --surface-2: #E6E6E2; --btn-line: #000;
}
.band--ink {
  --bg: #000; --fg: var(--paper); --dim: #a2a2a8; --line: rgba(241, 241, 239, .2); --line-strong: var(--paper);
  --surface: #0f0f10; --surface-2: #1b1b1d; --btn-line: var(--paper);
}
.band--red {
  --bg: var(--red); --fg: #000; --dim: #1b0605; --line: rgba(0, 0, 0, .3); --line-strong: #000;
  --surface: #fff; --surface-2: #fff; --btn-line: #000;
}
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

/* ---------- type ---------- */
.h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 5vw, 74px); line-height: 1.02; max-width: 17ch; text-wrap: balance; margin-bottom: .32em; }
.h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; }
.h4 { font-weight: 700; font-size: 17px; line-height: 1.3; margin-bottom: 14px; }
.lede { max-width: 58ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--dim); }
.tag { display: inline-block; border: 1.5px solid currentColor; padding: 0 9px; font-size: 14px; font-weight: 600; line-height: 1.6; vertical-align: .08em; margin-left: 6px; color: var(--fg); }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 26px; border: 2px solid var(--btn-line, #000); border-radius: 2px;
  font-weight: 700; font-size: 16px; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: transform .14s var(--ease), box-shadow .14s var(--ease), background .2s, color .2s;
}
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn--lg { min-height: 60px; padding: 0 34px; font-size: 18px; }
.btn--primary { background: var(--red); color: #000; border-color: #000; box-shadow: 4px 4px 0 #000; }
.band--ink .btn--primary { border-color: var(--paper); box-shadow: 4px 4px 0 var(--paper); }
.btn--primary:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }
.btn--primary:active { transform: translate(4px, 4px); box-shadow: 0 0 0 #000; }
.btn--ghost { background: transparent; color: var(--fg, #000); }
.btn--ghost:hover { background: #000; color: var(--paper); }
.btn--ghost .ico { transition: transform .2s var(--ease); }
.btn--ghost:hover .ico { transform: translateX(4px); }
.btn--paper { background: var(--paper); color: #000; border-color: var(--paper); box-shadow: 4px 4px 0 var(--red); }
.btn--paper:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--red); }
.btn--paper:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--red); }
.btn--ghost-dark { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn--ghost-dark:hover:not(:disabled) { background: var(--paper); color: #000; }
.btn:disabled { opacity: .38; cursor: not-allowed; transform: none; }
.btn--ink { background: #000; color: var(--paper); border-color: #000; box-shadow: 5px 5px 0 var(--paper); }
.btn--ink:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--paper); }
.btn--ink:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--paper); }

/* ---------- segmented control ---------- */
.seg { --n: 2; --i: 0; position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 2px solid var(--ink); background: #fff; border-radius: 2px; padding: 3px; isolation: isolate; }
.seg button { position: relative; z-index: 1; padding: 9px 18px; font-weight: 600; font-size: 14px; white-space: nowrap; transition: color .22s; }
.seg button[aria-pressed="true"] { color: var(--paper); }
.seg__thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n)); background: #000; transform: translateX(calc(var(--i) * 100%)); transition: transform .3s cubic-bezier(.3, .9, .3, 1); }
.seg--dark { border-color: var(--paper); background: transparent; }
.seg--dark .seg__thumb { background: var(--paper); }
.seg--dark button[aria-pressed="true"] { color: #000; }
.seg--wide { display: grid; width: 100%; }
.seg--sm button { padding: 6px 12px; font-size: 13px; }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 100; inset: 0 0 auto 0; height: var(--nav-h); display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter); background: var(--paper); border-bottom: 2px solid #000; }
.nav__brand { display: block; width: 70px; flex: none; }
.nav__brand img { width: 100%; height: auto; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { position: relative; text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__toggle { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 2.5px; background: #000; transition: transform .25s var(--ease), top .25s var(--ease); }
.nav__toggle span:nth-child(1) { top: 16px; } .nav__toggle span:nth-child(2) { top: 26px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.menu { position: fixed; z-index: 90; inset: var(--nav-h) 0 0 0; background: var(--paper); display: flex; flex-direction: column; gap: 4px; padding: 24px var(--gutter) 40px; overflow: auto; }
.menu a:not(.btn) { font-family: var(--f-display); font-size: 34px; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line, rgba(0,0,0,.16)); }
.menu .btn { margin-top: 24px; align-self: flex-start; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; padding-top: var(--nav-h); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--paper); overflow: hidden; }
.hero__copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 30px; padding: clamp(36px, 6vh, 80px) 24px clamp(48px, 8vh, 96px) max(var(--gutter), calc((100vw - var(--maxw)) / 2)); }
.hero__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(46px, 6vw, 96px); line-height: .98; letter-spacing: -.005em; text-shadow: .045em .045em 0 var(--red); }
.hero__title .ln { display: block; overflow: hidden; padding: 0 .08em .1em 0; margin-bottom: -.06em; }
.hero__title .ln > span { display: block; transform: translateY(110%); animation: rise 1s var(--ease) forwards; }
.hero__title .ln:nth-child(2) > span { animation-delay: .09s; }
.hero__title .ln:nth-child(3) > span { animation-delay: .18s; }
.hero__title .ln:nth-child(4) > span { animation-delay: .27s; }
@keyframes rise { to { transform: none; } }
.hero__lede { max-width: 44ch; font-size: clamp(17px, 1.45vw, 20px); opacity: 0; animation: fade .8s .55s var(--ease) forwards; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; opacity: 0; animation: fade .8s .7s var(--ease) forwards; }
.hero__note { max-width: 46ch; font-size: 14px; color: #55555a; opacity: 0; animation: fade .8s .85s var(--ease) forwards; }
@keyframes fade { to { opacity: 1; } }

.hero__stage { position: relative; min-height: 640px; opacity: 0; animation: stage-in 1.1s .15s var(--ease) forwards; }
@keyframes stage-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
#heroCanvas, #labCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
#heroCanvas.is-dragging, #labCanvas.is-dragging { cursor: grabbing; }
.ruler { position: absolute; right: var(--gutter); top: 40px; bottom: 96px; width: 22px; pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(0,0,0,.6) 0 1.5px, transparent 1.5px 72px) right / 22px 100% no-repeat,
    repeating-linear-gradient(to bottom, rgba(0,0,0,.28) 0 1px, transparent 1px 12px) right / 10px 100% no-repeat; }
.leader { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.leader path { fill: none; stroke: #000; stroke-width: 1.5; }
.leader circle { fill: var(--red); stroke: #000; stroke-width: 1.5; }
.leader__label { position: absolute; left: 0; top: 0; z-index: 3; max-width: 230px; padding: 10px 14px 11px; background: #fff; border: 2px solid #000; box-shadow: 4px 4px 0 #000; pointer-events: none; transition: opacity .3s; }
.leader__label strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 22px; line-height: 1.1; }
.leader__label span { display: block; font-style: italic; font-size: 14px; color: #55555a; }
.leader__label em { display: block; margin-top: 6px; font-style: normal; font-size: 14px; font-weight: 600; }
.stage__tools { position: absolute; z-index: 3; left: 0; bottom: 32px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.stage__hint { font-size: 14px; color: #55555a; }

/* ---------- index ---------- */
.index__list { list-style: none; margin-top: 56px; border-top: 2px solid #000; }
.index__list a { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) 40px; align-items: center; gap: 24px; padding: 24px 8px; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .28s var(--ease), background .28s; }
.index__list a::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--red); transition: width .28s var(--ease); }
.index__list a:hover, .index__list a:focus-visible { padding-left: 30px; background: #fff; }
.index__list a:hover::before, .index__list a:focus-visible::before { width: 8px; }
.ix__t { font-family: var(--f-display); font-size: clamp(22px, 2.5vw, 34px); line-height: 1.1; }
.ix__d { color: var(--dim); }
.index__list .ico { justify-self: end; width: 26px; height: 26px; transition: transform .28s var(--ease); }
.index__list a:hover .ico { transform: translateX(6px); }

/* ---------- anatomy lab ---------- */
.lab__head { max-width: 760px; }
.lab__grid { display: grid; grid-template-columns: 250px minmax(0, 1fr) 340px; gap: 20px; margin-top: 48px; align-items: stretch; }
.lab__moves { display: flex; flex-direction: column; gap: 18px; }
.moves { list-style: none; border-top: 1px solid var(--line); }
.mv { position: relative; display: grid; grid-template-columns: 1fr 10px; gap: 1px 10px; align-items: center; width: 100%; text-align: left; padding: 14px 14px 14px 16px; border-bottom: 1px solid var(--line); border-left: 4px solid transparent; transition: background .2s, border-color .2s; }
.mv:hover { background: var(--surface); }
.mv[aria-selected="true"] { background: var(--surface-2); border-left-color: var(--red); }
.mv b { font-weight: 600; font-size: 17px; }
.mv small { grid-column: 1; font-size: 13px; color: var(--dim); }
.mv i { grid-row: 1 / span 2; grid-column: 2; width: 9px; height: 9px; border-radius: 50%; background: var(--red); transform: scale(0); transition: transform .25s var(--ease); }
.mv.is-hit i { transform: scale(1); }
.moves__hint { font-size: 14px; color: var(--dim); }

.lab__stage { position: relative; min-height: 700px; border: 2px solid var(--line-strong); background: #000; overflow: hidden; }
.hud { position: absolute; z-index: 3; }
.hud--tl { left: 20px; top: 18px; pointer-events: none; }
.hud__name { font-family: var(--f-display); font-size: clamp(20px, 2vw, 26px); line-height: 1.1; }
.hud__rep { color: var(--dim); font-size: 15px; margin-top: 2px; }
.hud__rep b { display: inline-block; min-width: 1.6em; color: var(--paper); font-variant-numeric: tabular-nums; }
.hud__rep b.tick { animation: tick .45s var(--ease); }
@keyframes tick { 0% { transform: translateY(40%); opacity: 0; color: var(--red); } 100% { transform: none; opacity: 1; } }
.hud--tr { right: 16px; top: 16px; display: flex; gap: 6px; }
.views button, .speed button { padding: 6px 11px; border: 1.5px solid var(--line); font-size: 13px; font-weight: 600; color: var(--paper); transition: background .2s, color .2s, border-color .2s; }
.views button:hover, .speed button:hover { border-color: var(--paper); }
.views button.is-on, .speed button.is-on { background: var(--paper); color: #000; border-color: var(--paper); }
.focus { position: absolute; z-index: 3; left: 20px; bottom: 84px; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; background: var(--red); color: #000; font-weight: 700; font-size: 14px; box-shadow: 3px 3px 0 var(--paper); animation: pop .3s var(--ease); }
.focus button { width: 26px; height: 26px; display: grid; place-items: center; background: #000; color: #fff; }
.focus .ico { width: 14px; height: 14px; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.transport { position: absolute; z-index: 3; left: 18px; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 14px; }
.play { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 2px solid var(--paper); transition: background .2s, color .2s, transform .12s; }
.play:hover { background: var(--paper); color: #000; }
.play:active { transform: scale(.94); }
.speed { display: flex; gap: 4px; }
.scrub { flex: 1; min-width: 60px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; background: rgba(241, 241, 239, .3); }
input[type="range"]::-moz-range-track { height: 3px; background: rgba(241, 241, 239, .3); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6.5px; background: var(--red); border: 2px solid var(--paper); border-radius: 0; transition: transform .15s; }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; background: var(--red); border: 2px solid var(--paper); border-radius: 0; }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.25); }

.callouts { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.co { --x: 0; --y: 0; position: absolute; left: 0; top: 0; display: flex; align-items: center; opacity: 0; transition: opacity .35s; will-change: transform;
  transform: translate(calc(var(--x) * 1px - 5px), calc(var(--y) * 1px - 50%)); }
.co.is-on { opacity: 1; }
.co--l { flex-direction: row-reverse; transform: translate(calc(var(--x) * 1px + 5px - 100%), calc(var(--y) * 1px - 50%)); }
.co__dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 3px rgba(241, 241, 239, .25); }
.co--bad .co__dot { background: var(--amber); box-shadow: 0 0 0 3px rgba(242, 169, 0, .3); animation: ring 1.4s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(242, 169, 0, .6); } 100% { box-shadow: 0 0 0 12px rgba(242, 169, 0, 0); } }
.co__line { width: 34px; height: 1.5px; background: var(--paper); flex: none; }
.co--bad .co__line { background: var(--amber); }
.co__t { display: flex; align-items: center; gap: 7px; padding: 6px 11px; background: #000; border: 1.5px solid var(--paper); color: var(--paper); font-size: 14px; font-weight: 600; white-space: nowrap; }
.co__t .ico { width: 14px; height: 14px; }
.co--bad .co__t { background: var(--amber); border-color: var(--amber); color: #000; }

.lab__panel { border: 1px solid var(--line); background: var(--surface); padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.panel__effect { color: var(--dim); font-size: 16px; }
.cues { list-style: none; display: grid; gap: 12px; }
.cues li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 16px; line-height: 1.4; animation: cue .4s var(--ease) backwards; }
@keyframes cue { from { opacity: 0; transform: translateX(8px); } }
.cues .ci { width: 22px; height: 22px; display: grid; place-items: center; margin-top: 1px; background: var(--paper); color: #000; }
.cues .ci .ico { width: 13px; height: 13px; }
.cues .bad .ci { background: var(--amber); }
.cues li strong { display: block; font-weight: 700; }
.cues li span { display: block; color: var(--dim); font-size: 15px; }
.works { list-style: none; display: grid; gap: 4px; }
.works button { display: grid; grid-template-columns: 96px 1fr 38px; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 6px 0; font-size: 15px; }
.works .bar { height: 8px; background: rgba(241, 241, 239, .14); position: relative; overflow: hidden; }
.works .bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: #8c8c92; transition: width .7s var(--ease); }
.works .is-p .bar i { background: var(--red); }
.works button:hover .bar { background: rgba(241, 241, 239, .26); }
.works b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--dim); }

.studio { margin-top: 20px; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; padding: 28px; border: 2px solid var(--line-strong); }
.studio__head p { color: var(--dim); margin-top: 8px; font-size: 16px; max-width: 34ch; }
.studio__body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; }
.studio__sliders { display: grid; gap: 2px; }
.sl { display: grid; grid-template-columns: 112px 1fr 34px; gap: 12px; align-items: center; font-size: 15px; font-weight: 500; }
.sl output { text-align: right; color: var(--dim); font-variant-numeric: tabular-nums; }
.frames { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; min-height: 40px; }
.frames li { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border: 1.5px solid var(--paper); font-weight: 600; font-size: 14px; animation: pop .3s var(--ease); }
.frames li.is-now { background: var(--paper); color: #000; }
.frames button { width: 24px; height: 24px; display: grid; place-items: center; }
.frames button:hover { background: var(--red); color: #000; }
.frames .ico { width: 12px; height: 12px; }
.frames__empty { color: var(--dim); font-size: 15px; margin-bottom: 14px; }
.studio__btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- library ---------- */
.lib__tools { display: grid; gap: 16px; margin: 48px 0 28px; }
.search { position: relative; display: block; max-width: 420px; }
.search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; pointer-events: none; }
.search input { width: 100%; height: 50px; padding: 0 16px 0 46px; border: 2px solid #000; border-radius: 2px; background: #fff; }
.search input:focus-visible { outline-offset: 0; }
.lib__filter { display: flex; align-items: baseline; gap: 16px; }
.lib__flabel { flex: none; width: 66px; font-weight: 700; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 0; padding: 7px 14px; border: 2px solid #000; border-radius: 2px; font-weight: 600; font-size: 14px; background: transparent; transition: background .2s, color .2s, gap .2s var(--ease); }
.chip .ico { width: 0; height: 14px; transition: width .2s var(--ease); }
.chip:hover { background: #fff; }
.chip[aria-pressed="true"] { background: #000; color: var(--paper); gap: 7px; }
.chip[aria-pressed="true"] .ico { width: 14px; }

.table { border-top: 2px solid #000; }
.table__head, .row { display: grid; grid-template-columns: minmax(200px, 2fr) minmax(180px, 2fr) minmax(150px, 1.6fr) 86px; gap: 20px; align-items: center; }
.table__head { padding: 12px 12px; font-weight: 700; font-size: 14px; border-bottom: 1px solid #000; }
.row { position: relative; padding: 16px 12px; border-bottom: 1px solid var(--line); transition: background .2s, padding .25s var(--ease); animation: rowin .35s var(--ease) backwards; }
@keyframes rowin { from { opacity: 0; transform: translateY(6px); } }
.row::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--red); transition: width .22s var(--ease); }
.row:hover { background: #fff; padding-left: 22px; }
.row:hover::before { width: 6px; }
.row__open { font-weight: 700; font-size: 18px; text-align: left; display: inline-flex; align-items: center; gap: 12px; }
.row__open::after { content: ''; position: absolute; inset: 0; }
.row__open:focus-visible { outline-offset: -3px; }
.t3d { border: 1.5px solid var(--red-deep); color: var(--red-deep); font-size: 12px; font-weight: 700; padding: 0 6px; line-height: 1.5; }
.row__works b { font-weight: 600; }
.row__works span, .row__eq { color: var(--dim); font-size: 15px; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #000; }
.dots i.f { background: #000; }
.table__empty { padding: 36px 12px; color: var(--dim); }
.lib__count { margin-top: 14px; font-size: 14px; color: var(--dim); }

/* drawer */
.drawer-scrim { position: fixed; inset: 0; z-index: 140; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .3s; }
.drawer-scrim.is-on { opacity: 1; }
.drawer { position: fixed; z-index: 150; top: 0; right: 0; bottom: 0; width: min(540px, 100vw); overflow-y: auto; background: var(--paper); border-left: 2px solid #000; padding: 32px clamp(22px, 4vw, 40px) 48px; transform: translateX(102%); transition: transform .38s var(--ease); --dim: #55555a; --line: rgba(0, 0, 0, .16); }
.drawer.is-on { transform: none; }
.dr__close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid #000; transition: background .2s, color .2s; }
.dr__close:hover { background: #000; color: var(--paper); }
.dr__title { font-family: var(--f-display); font-size: clamp(30px, 4vw, 42px); line-height: 1.05; padding-right: 54px; margin-bottom: 14px; }
.dr__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; font-weight: 600; margin-bottom: 14px; align-items: center; }
.dr__meta span { color: var(--dim); font-weight: 500; }
.dr__sec { margin-top: 26px; }
.dr__sec ol, .dr__sec ul { list-style: none; display: grid; gap: 10px; counter-reset: s; }
.dr__sec ol li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; }
.dr__sec ol li::before { content: counter(s); font-family: var(--f-display); font-size: 20px; }
.dr__sec ul li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; }
.dr__sec ul .ico { width: 18px; height: 18px; margin-top: 3px; }
.dr__sec .no .ico { color: var(--red-deep); }
.swaps { display: grid; gap: 8px; }
.swap { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 12px 14px; border: 2px solid #000; text-align: left; background: #fff; transition: transform .14s var(--ease), box-shadow .14s var(--ease); }
.swap:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 #000; }
.swap b { font-weight: 700; }
.swap small { grid-column: 1; color: var(--dim); font-size: 14px; }
.swap .ico { grid-row: 1 / span 2; grid-column: 2; }
.dr__act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.tray { position: fixed; z-index: 80; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; background: #000; color: var(--paper); font-weight: 700; border: 2px solid var(--paper); box-shadow: 4px 4px 0 var(--red); animation: pop .3s var(--ease); }
.tray b { display: grid; place-items: center; min-width: 26px; height: 26px; background: var(--red); color: #000; font-variant-numeric: tabular-nums; }
.tray b.bump { animation: bump .35s var(--ease); }
@keyframes bump { 50% { transform: scale(1.4); } }
.tray__pop { position: fixed; z-index: 81; left: 20px; bottom: 84px; width: min(340px, calc(100vw - 40px)); max-height: 60vh; overflow: auto; background: var(--paper); border: 2px solid #000; box-shadow: 5px 5px 0 #000; padding: 16px; animation: pop .25s var(--ease); }
.tray__pop h4 { font-weight: 700; margin-bottom: 10px; }
.tray__pop ul { list-style: none; display: grid; gap: 6px; margin-bottom: 14px; }
.tray__pop li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,.14); font-weight: 500; }
.tray__pop li button { width: 28px; height: 28px; display: grid; place-items: center; }
.tray__pop li button:hover { background: var(--red); }
.tray__pop .ico { width: 14px; height: 14px; }

/* ---------- workouts + phone ---------- */
.wk { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: clamp(32px, 6vw, 96px); margin-top: 52px; align-items: start; }
.wlist { list-style: none; border-top: 1px solid var(--line); }
.wi { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 20px; width: 100%; text-align: left; padding: 18px 16px 18px 20px; border-bottom: 1px solid var(--line); border-left: 4px solid transparent; transition: background .2s, border-color .2s; }
.wi:hover { background: var(--surface); }
.wi[aria-selected="true"] { background: var(--surface-2); border-left-color: var(--red); }
.wi b { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; }
.wi span { font-weight: 600; color: var(--paper); }
.wi small { grid-column: 1 / -1; color: var(--dim); font-size: 15px; }
.wk__detail { margin-top: 28px; }
.wd { list-style: none; display: grid; }
.wd li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.wd li span { color: var(--dim); font-variant-numeric: tabular-nums; }
.wd li b { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 4.4em; text-align: right; }
.wd__act { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--dim); font-size: 15px; }

.phone { justify-self: center; width: 100%; max-width: 372px; }
.phone__frame { position: relative; padding: 11px; background: #1a1a1c; border: 2px solid #3a3a3d; border-radius: 52px; box-shadow: 12px 12px 0 var(--red); }
.phone__notch { position: absolute; z-index: 5; top: 20px; left: 50%; width: 96px; height: 24px; transform: translateX(-50%); background: #1a1a1c; border-radius: 14px; }
.phone__screen { position: relative; display: flex; flex-direction: column; height: 700px; padding: 54px 18px 0; background: var(--paper); color: #000; border-radius: 42px; overflow: hidden; --dim: #55555a; }
.ph__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ph__title { font-family: var(--f-display); font-size: 26px; line-height: 1.05; }
.ph__go { min-width: 78px; height: 38px; padding: 0 14px; background: #000; color: var(--paper); font-weight: 700; font-size: 14px; transition: background .2s, color .2s, transform .12s; }
.ph__go:active { transform: scale(.95); }
.ph__go.is-run { background: var(--red); color: #000; }
.ph__meta { display: flex; align-items: baseline; justify-content: space-between; margin-top: 14px; }
.ph__clock { font-size: 44px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ph__vol { font-size: 14px; color: var(--dim); }
.ph__vol b { color: #000; font-variant-numeric: tabular-nums; }
.ph__bar { height: 6px; background: #d6d6d2; margin: 14px 0 6px; overflow: hidden; }
.ph__bar span { display: block; height: 100%; width: 0; background: var(--red); transition: width .5s var(--ease); }
.ph__scroll { flex: 1; overflow-y: auto; margin: 0 -18px; padding: 8px 18px 120px; scrollbar-width: thin; }
.ex { padding: 12px 0 10px; border-bottom: 1px solid rgba(0, 0, 0, .14); }
.ex h4 { font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.ex h4 small { font-weight: 500; font-size: 13px; color: var(--dim); }
.set { display: grid; grid-template-columns: 30px 1fr auto auto; gap: 10px; align-items: center; width: 100%; padding: 7px 0; text-align: left; font-size: 15px; font-variant-numeric: tabular-nums; transition: opacity .25s; }
.set .cb { width: 26px; height: 26px; display: grid; place-items: center; border: 2px solid #000; background: #fff; transition: background .2s, transform .15s var(--ease); }
.set:hover .cb { transform: scale(1.08); }
.set .cb svg { width: 15px; height: 15px; color: var(--paper); }
.set .cb path { stroke-dasharray: 26; stroke-dashoffset: 26; transition: stroke-dashoffset .3s .05s var(--ease); }
.set.is-done { opacity: .5; }
.set.is-done .cb { background: #000; }
.set.is-done .cb path { stroke-dashoffset: 0; }
.set span { color: var(--dim); }
.ph__rest { position: absolute; z-index: 4; left: 12px; right: 12px; bottom: 14px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #000; color: var(--paper); border-radius: 22px; transform: translateY(150%); transition: transform .4s var(--ease); }
.ph__rest.is-on { transform: none; }
.ph__ring { width: 48px; height: 48px; flex: none; transform: rotate(-90deg); }
.ph__ring circle { fill: none; stroke-width: 4; }
.ph__ring-bg { stroke: rgba(241, 241, 239, .22); }
.ph__ring-fg { stroke: var(--red); stroke-dasharray: 119.4; stroke-dashoffset: 0; stroke-linecap: butt; transition: stroke-dashoffset .25s linear; }
.ph__rest-t { flex: 1; display: grid; line-height: 1.1; }
.ph__rest-t span { font-size: 13px; color: #a2a2a8; }
.ph__rest-t b { font-size: 24px; font-variant-numeric: tabular-nums; }
.ph__rest button { height: 36px; padding: 0 12px; border: 1.5px solid var(--paper); border-radius: 18px; font-weight: 600; font-size: 14px; transition: background .2s, color .2s; }
.ph__rest button:hover { background: var(--paper); color: #000; }
.ph__done { position: absolute; z-index: 6; inset: 0; background: #000; color: var(--paper); display: grid; place-items: center; text-align: center; animation: fade .4s forwards; }
.ph__done canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ph__done-in { position: relative; display: grid; gap: 14px; justify-items: center; padding: 24px; }
.ph__done h3 { font-family: var(--f-display); font-weight: 400; font-size: 38px; line-height: 1; }
.ph__done .ico--xl { color: var(--red); }
.ph__done dl { display: flex; gap: 32px; margin: 6px 0 10px; }
.ph__done dt { font-size: 13px; color: #a2a2a8; }
.ph__done dd { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.phone__cap { text-align: center; margin-top: 26px; font-size: 14px; color: var(--dim); }

/* ---------- programs ---------- */
.ptabs { display: flex; gap: 6px; margin-top: 48px; overflow-x: auto; scrollbar-width: none; padding-top: 4px; }
.ptabs::-webkit-scrollbar { display: none; }
.ptab { flex: none; padding: 14px 22px; border: 2px solid #000; border-bottom: 0; font-weight: 700; font-size: 16px; background: transparent; transition: background .2s, color .2s, transform .2s var(--ease); }
.ptab:hover { background: #fff; transform: translateY(-3px); }
.ptab[aria-selected="true"] { background: #000; color: var(--paper); transform: none; }
.pp { border: 2px solid #000; background: #fff; padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); animation: fade .4s; }
.pp > div { min-width: 0; }
.pp__name { font-family: var(--f-display); font-size: clamp(30px, 3.4vw, 48px); line-height: 1.04; }
.pp__blurb { color: #55555a; margin: 12px 0 22px; max-width: 40ch; }
.pp__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin-bottom: 26px; }
.pp__facts dt { font-size: 14px; color: #55555a; }
.pp__facts dd { font-weight: 700; font-size: 18px; }
.pp h4 { margin-bottom: 10px; }
.phases { display: flex; gap: 4px; }
.phase { min-width: 0; padding: 10px 12px 12px; background: #000; color: var(--paper); text-align: left; transition: background .2s, color .2s, transform .2s var(--ease); }
.phase:hover, .phase:focus-visible, .phase.is-on { background: var(--red); color: #000; transform: translateY(-3px); }
.phase b { display: block; font-weight: 700; font-size: 15px; line-height: 1.2; }
.phase small { font-size: 13px; opacity: .8; }
.sched { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.sched__d { font-weight: 700; font-size: 14px; padding-bottom: 2px; }
.cell { min-height: 92px; padding: 10px; text-align: left; font-weight: 700; font-size: 15px; line-height: 1.2; background: #000; color: var(--paper); transition: background .2s, color .2s, transform .2s var(--ease); }
.cell:hover, .cell:focus-visible { background: var(--red); color: #000; transform: translateY(-3px); }
.cell.rest { background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(0, 0, 0, .1) 7px 8px); color: #55555a; font-weight: 500; cursor: default; border: 1px solid rgba(0, 0, 0, .16); }
.cell.rest:hover { background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(0, 0, 0, .1) 7px 8px); color: #55555a; transform: none; }
.pp__focus { margin-top: 14px; min-height: 28px; font-weight: 600; }

/* ---------- progress ---------- */
.pr__head { max-width: 820px; }
.pr__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-top: 52px; }
.stats { grid-column: span 4; list-style: none; border-top: 2px solid var(--paper); }
.stats li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.stats b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(40px, 4.4vw, 62px); line-height: 1; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 6px; font-weight: 600; }
.stats small { color: var(--dim); font-size: 14px; }
.chart { grid-column: span 8; border: 1px solid var(--line); background: var(--surface); padding: 22px; }
.chart__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.chart__top .h4 { margin: 0; }
.chart__ctl { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.legend { display: flex; gap: 6px; }
.lg { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border: 1.5px solid var(--line); font-weight: 600; font-size: 13px; transition: border-color .2s, opacity .2s; }
.lg i { width: 10px; height: 10px; background: var(--c); }
.lg:hover { border-color: var(--paper); }
.lg[aria-pressed="false"] { opacity: .4; }
.chart__plot { position: relative; }
#chartSvg { width: 100%; height: auto; display: block; overflow: visible; touch-action: pan-y; }
#chartSvg text { fill: var(--dim); font-family: var(--f-text); font-size: 12px; }
#chartSvg .gl { stroke: rgba(241, 241, 239, .12); }
#chartSvg .ln { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
#chartSvg .cross { stroke: var(--paper); stroke-width: 1; stroke-dasharray: 3 3; }
#chartSvg .pt { stroke: #000; stroke-width: 2; }
.chart__tip { position: absolute; z-index: 2; pointer-events: none; min-width: 130px; padding: 10px 12px; background: var(--paper); color: #000; font-size: 14px; box-shadow: 4px 4px 0 var(--red); transform: translate(-50%, -110%); }
.chart__tip b { display: block; font-weight: 700; margin-bottom: 2px; }
.chart__tip div { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
.cal { grid-column: span 6; border: 1px solid var(--line); background: var(--surface); padding: 22px; }
.cal__grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 5px; margin-bottom: 14px; }
.cal__grid i { aspect-ratio: 1; min-width: 0; background: rgba(241, 241, 239, .09); transition: transform .15s var(--ease); }
.cal__grid i:hover { transform: scale(1.3); position: relative; z-index: 1; outline: 1.5px solid var(--paper); }
.cal__grid i.l1 { background: #6b1412; } .cal__grid i.l2 { background: #b8130f; } .cal__grid i.l3 { background: var(--red); } .cal__grid i.fut { background: transparent; border: 1px dashed rgba(241,241,239,.16); }
.cal__sum { color: var(--dim); font-size: 15px; }
.bal { grid-column: span 6; border: 1px solid var(--line); background: var(--surface); padding: 22px; }
.bal__list { list-style: none; display: grid; gap: 7px; }
.bal__list li { display: grid; grid-template-columns: 88px 1fr 30px; gap: 12px; align-items: center; font-size: 14px; font-weight: 500; }
.bal__list .bar { position: relative; height: 10px; background: rgba(241, 241, 239, .1); }
.bal__list .bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--red); transition: width 1s var(--ease); }
.bal__list li.low .bar i { background: var(--amber); }
.bal__list .bar::after { content: ''; position: absolute; top: -3px; bottom: -3px; left: 50%; width: 2px; background: var(--paper); opacity: .7; }
.bal__list b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--dim); }
.bal__note { margin-top: 14px; color: var(--dim); font-size: 15px; }
.bal__note b { color: var(--amber); font-weight: 700; }

/* ---------- community ---------- */
.chat { display: grid; grid-template-columns: 290px minmax(0, 1fr); height: 580px; margin-top: 48px; border: 2px solid #000; background: #fff; }
.rooms { list-style: none; border-right: 2px solid #000; overflow-y: auto; }
.room { display: block; width: 100%; text-align: left; padding: 16px 18px; border-bottom: 1px solid rgba(0, 0, 0, .14); transition: background .2s, color .2s; }
.room b { display: block; font-weight: 700; font-size: 17px; }
.room small { display: block; color: #55555a; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room:hover { background: var(--paper); }
.room[aria-current="true"] { background: #000; color: var(--paper); }
.room[aria-current="true"] small { color: #b7b7bc; }
.chat__main { display: flex; flex-direction: column; min-width: 0; }
.chat__bar { padding: 14px 20px; border-bottom: 2px solid #000; }
.chat__bar h3 { font-family: var(--f-display); font-weight: 400; font-size: 24px; line-height: 1.1; }
.chat__bar p { color: #55555a; font-size: 14px; }
.chat__log { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; background: var(--paper); scroll-behavior: smooth; }
.msg { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; max-width: 640px; animation: msg .35s var(--ease); }
@keyframes msg { from { opacity: 0; transform: translateY(10px); } }
.msg__av { width: 38px; height: 38px; display: grid; place-items: center; background: #000; color: var(--paper); font-weight: 700; font-size: 14px; }
.msg__b b { font-weight: 700; font-size: 15px; }
.msg__b p { font-size: 16px; line-height: 1.45; }
.msg--me { margin-left: auto; grid-template-columns: minmax(0, 1fr); justify-items: end; }
.msg--me .msg__av { display: none; }
.msg--me .msg__b { text-align: right; }
.msg--me .msg__b p { display: inline-block; background: var(--red); padding: 8px 14px; text-align: left; }
.typing { display: inline-flex; gap: 4px; padding: 10px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #000; animation: dots 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 60%, 100% { transform: none; opacity: .35; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat__form { display: flex; gap: 10px; padding: 12px; border-top: 2px solid #000; background: #fff; }
.chat__form input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 2px solid #000; border-radius: 2px; }
.tag--paper { color: #000; }

/* ---------- roadmap ---------- */
.road { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 52px; counter-reset: ph; }
.road li { counter-increment: ph; position: relative; padding-top: 22px; border-top: 4px solid rgba(0, 0, 0, .2); }
.road li.is-now { border-top-color: var(--red); }
.road li::before { content: 'Phase ' counter(ph); display: block; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.road__s { display: inline-block; margin-bottom: 10px; padding: 0 9px; font-size: 13px; font-weight: 700; border: 1.5px solid currentColor; color: #55555a; }
.road .is-now .road__s { background: var(--red); border-color: #000; color: #000; }
.road h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; margin-bottom: 8px; }
.road p { color: #55555a; font-size: 16px; }

/* ---------- waitlist ---------- */
.waitlist { padding-block: clamp(80px, 10vw, 150px); }
.wl { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.wl .h2 { max-width: 12ch; }
.wl .lede { color: #1b0605; }
.wl__form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 16px; padding: 0; }
.field input[type="text"], .field input[type="email"] { height: 56px; padding: 0 16px; border: 2px solid #000; border-radius: 2px; background: #fff; font-size: 17px; }
.field input:focus-visible { outline: 3px solid #000; outline-offset: 2px; }
.field input[aria-invalid="true"] { border-width: 4px; }
.field__err { font-weight: 700; font-size: 15px; background: #000; color: #fff; padding: 6px 10px; display: inline-block; justify-self: start; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-block; padding: 10px 16px; border: 2px solid #000; border-radius: 2px; font-weight: 600; font-size: 15px; background: transparent; transition: background .2s, color .2s, transform .12s; }
.pills label:hover span { background: rgba(255, 255, 255, .5); }
.pills input:checked + span { background: #000; color: #fff; }
.pills input:focus-visible + span { outline: 3px solid #000; outline-offset: 3px; }
.pills label:active span { transform: scale(.96); }
.wl__form .btn { justify-self: start; margin-top: 6px; min-width: 260px; }
.btn__spin { position: absolute; width: 22px; height: 22px; border: 3px solid rgba(241, 241, 239, .35); border-top-color: var(--paper); border-radius: 50%; opacity: 0; animation: spin .7s linear infinite; }
.btn.is-loading .btn__t { opacity: 0; }
.btn.is-loading .btn__spin { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.wl__ok { padding: clamp(24px, 4vw, 44px); background: #000; color: var(--paper); box-shadow: 8px 8px 0 var(--paper); outline: none; display: grid; gap: 12px; justify-items: start; }
.wl__ok h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; }
.wl__ok p { color: #c9c9cd; max-width: 40ch; }
.wl__check { width: 72px; height: 72px; }
.wl__check circle { fill: none; stroke: var(--red); stroke-width: 4; stroke-dasharray: 190; stroke-dashoffset: 190; animation: draw .7s var(--ease) forwards; }
.wl__check path { fill: none; stroke: var(--paper); stroke-width: 5; stroke-linecap: square; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .5s .5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- footer ---------- */
.foot { background: #000; color: var(--paper); padding: clamp(56px, 7vw, 96px) 0 36px; }
.foot__in { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 40px 64px; align-items: end; }
.foot__logo { width: 100%; max-width: 340px; height: auto; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: flex-end; }
.foot__nav a { text-decoration: none; font-weight: 600; padding: 4px 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.foot__nav a:hover { border-color: var(--red); }
.foot__fine { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid rgba(241, 241, 239, .2); font-size: 14px; color: #a2a2a8; max-width: 80ch; }

/* ---------- tooltip + toasts ---------- */
.tip { position: fixed; z-index: 160; left: 0; top: 0; pointer-events: none; padding: 7px 11px 8px; background: #000; color: var(--paper); border: 1.5px solid var(--paper); font-weight: 700; font-size: 14px; line-height: 1.25; white-space: nowrap; transform: translate(14px, 14px); }
.tip small { display: block; font-weight: 400; font-style: italic; color: #bdbdc2; font-size: 13px; }
.toasts { position: fixed; z-index: 170; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { padding: 12px 18px 12px 16px; background: #000; color: var(--paper); border-left: 6px solid var(--red); font-weight: 600; box-shadow: 4px 4px 0 var(--paper); animation: toast-in .35s var(--ease), toast-out .3s 2.6s forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .lab__grid { grid-template-columns: minmax(0, 1fr); }
  .lab__moves { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .moves { display: flex; flex-wrap: wrap; gap: 8px; border: 0; flex: 1 1 100%; order: 3; }
  .mv { width: auto; padding: 9px 14px; border: 2px solid var(--line); grid-template-columns: auto; }
  .mv small, .mv i, .moves__hint { display: none; }
  .mv[aria-selected="true"] { border-color: var(--paper); border-left-color: var(--paper); }
  .lab__stage { min-height: 620px; }
  .studio { grid-template-columns: minmax(0, 1fr); }
  .wk { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-column: span 12; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; border-top: 0; }
  .stats li { border-top: 2px solid var(--paper); border-bottom: 0; }
  .chart { grid-column: span 12; }
  .cal, .bal { grid-column: span 12; }
}
@media (max-width: 1020px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__copy { padding: 44px var(--gutter) 8px; }
  .hero__title { font-size: clamp(52px, 12.5vw, 104px); }
  .hero__stage { min-height: 600px; }
  .stage__tools { left: var(--gutter); }
  .ruler { display: none; }
  .pp { grid-template-columns: minmax(0, 1fr); }
  .road { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wl { grid-template-columns: minmax(0, 1fr); }
  .studio__body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .index__list a { grid-template-columns: minmax(0, 1fr) 32px; gap: 6px 16px; }
  .ix__d { grid-column: 1; grid-row: 2; }
  .index__list .ico { grid-row: 1 / span 2; grid-column: 2; }
  .lab__stage { min-height: 560px; }
  .hud--tl { left: 16px; top: 14px; right: 16px; }
  .hud--tr { left: 16px; right: 16px; top: 62px; bottom: auto; flex-wrap: wrap; }
  .focus { bottom: 132px; left: 16px; }
  .transport { left: 14px; right: 14px; bottom: 14px; }
  .transport { flex-wrap: wrap; gap: 10px; }
  .scrub { flex: 1 1 100%; order: 3; }
  .table__head { display: none; }
  .row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .row__works { grid-column: 1; grid-row: 2; }
  .row__eq { grid-column: 1; grid-row: 3; }
  .row > :last-child { grid-column: 2; grid-row: 1; }
  .lib__filter { flex-direction: column; gap: 8px; }
  .chat { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: 640px; }
  .rooms { display: flex; overflow-x: auto; border-right: 0; border-bottom: 2px solid #000; }
  .room { width: auto; flex: none; border-bottom: 0; border-right: 1px solid rgba(0,0,0,.14); }
  .room small { display: none; }
  .sched { grid-template-columns: repeat(7, minmax(78px, 1fr)); overflow-x: auto; padding-bottom: 6px; }
  .sched__wrap { overflow-x: auto; margin-inline: -6px; padding-inline: 6px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .road { grid-template-columns: minmax(0, 1fr); }
  .foot__in { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .foot__nav { justify-content: flex-start; }
  .sl { grid-template-columns: 96px 1fr 30px; }
  .co__t { font-size: 12.5px; line-height: 1.2; padding: 5px 8px; white-space: normal; max-width: 116px; }
  .co__line { width: 14px; }
  .leader__label { max-width: 190px; }
  .phone__screen { height: 660px; }
}
@media (hover: none) { .tip { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero__title .ln > span { transform: none; }
  .hero__lede, .hero__cta, .hero__note, .hero__stage { opacity: 1; }
}
