/* =========================================================================
   Future Masters · Class 01 · slide engine
   Brand: Edition 07. Stage 1920×1080, scaled to fit, letterboxed on Ink.
   ========================================================================= */

@font-face { font-family: "FM Sans"; src: url("fonts/FMSans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: "FM Sans"; src: url("fonts/FMSans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: block; }
@font-face { font-family: "FM Sans"; src: url("fonts/FMSans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: block; }
@font-face { font-family: "FM Sans"; src: url("fonts/FMSans-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: block; }
@font-face { font-family: "FM Mono"; src: url("fonts/FMMono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: block; }

:root {
  /* brand */
  --ink: #121417;
  --paper: #F4F1EA;
  --ascent: #0E7C6B;
  --sky: #8EC9FF;
  --coral: #FF6A4D;
  --spark: #FFC21A;
  --stone: #E2DFD9;      /* Paper + 8% Ink */
  --graphite: #515252;   /* Ink + 28% Paper */

  /* tints (mixes of the brand colours only) */
  --ink-62: #686867;  --ink-42: #959491;  --ink-22: #C2C0BC;  --ink-16: #D0CEC8;  --ink-10: #DDDBD5;
  --paper-66: #A7A6A2; --paper-46: #7A7A78; --paper-16: #363739; --paper-12: #2D2E30; --paper-6: #202124;
  --ascent-paper-72: #B4D0C6; --ascent-paper-30: #539F91; --ascent-paper-24: #45988A;
  --ascent-8: #E2E8E0; --ascent-45: #8CBCB1; --ascent-ink-12: #112121;
  --coral-ink-14: #33201F; --coral-ink-60: #A04837; --coral-paper-12: #F5E1D7; --coral-paper-55: #FAA794;
  --stone-hair: #C1BFBA;

  --sans: "FM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "FM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 260ms;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; background: var(--ink); }
body {
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}
img, svg { display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; }
.app { min-height: 100%; }
.mono { font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .12em; }

.fatal {
  position: fixed; inset: 0; display: grid; place-items: center; padding: 40px; text-align: center;
  background: var(--ink); color: var(--paper);
}
.fatal .box { max-width: 640px; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.fatal img { height: 40px; width: auto; margin-bottom: 10px; }
.fatal h1 { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.fatal p { color: var(--paper-66); font-size: 17px; line-height: 1.5; }
.fatal code { font-family: var(--mono); font-size: 15px; color: var(--spark); }

/* ---------- stage & frames ---------- */
.stage { position: fixed; inset: 0; background: var(--ink); overflow: hidden; --s: 1; user-select: none; }
.frame { width: 1920px; height: 1080px; transform-origin: 0 0; }
.stage > .frame {
  position: absolute; left: 50%; top: 50%;
  transform: scale(var(--s)) translate(-50%, -50%);
}
.fit { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; --s: .1; background: var(--ink); }
.fit > .frame { position: absolute; left: 0; top: 0; transform: scale(var(--s)); }
.fit.end { display: grid; place-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-46); border: 1px solid var(--paper-16); border-radius: 8px; }

/* ---------- motion ---------- */
@keyframes slideIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes slideOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .62; transform: scale(.985); } }
.slide.enter { animation: slideIn var(--dur) var(--ease) both; }
.frame.leave { pointer-events: none; }
.frame.leave .slide { animation: slideOut 220ms var(--ease) both; }
.slide.is-live .stagger > * { animation: rise 460ms var(--ease) both; animation-delay: calc(160ms + var(--i, 0) * 70ms); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- slide ---------- */
.slide {
  position: relative; width: 1920px; height: 1080px; overflow: hidden;
  background: var(--bg); color: var(--fg);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; row-gap: 40px;
  padding: 72px 120px 64px;
  font-family: var(--sans); font-weight: 400; line-height: 1.3;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.tone-light  { --bg: var(--paper); --fg: var(--ink);   --fg-2: var(--ink-62);   --fg-3: var(--ink-42);   --hair: var(--ink-16);    --rule: var(--ink-22);   --card: var(--paper); --card-2: var(--stone);     --tick: var(--ascent); --accent-tint: var(--ascent-8);        --accent-hair: var(--ascent-45); --sym: "ink"; }
.tone-stone  { --bg: var(--stone); --fg: var(--ink);   --fg-2: var(--ink-62);   --fg-3: var(--ink-42);   --hair: var(--stone-hair); --rule: var(--ink-22);   --card: var(--paper); --card-2: var(--ink-10);    --tick: var(--ascent); --accent-tint: var(--ascent-8);        --accent-hair: var(--ascent-45); }
.tone-dark   { --bg: var(--ink);   --fg: var(--paper); --fg-2: var(--paper-66); --fg-3: var(--paper-46); --hair: var(--paper-16);  --rule: var(--paper-46); --card: var(--paper-12); --card-2: var(--paper-16); --tick: var(--ascent); --accent-tint: var(--ascent-ink-12);   --accent-hair: var(--ascent); }
.tone-ascent { --bg: var(--ascent); --fg: var(--paper); --fg-2: var(--ascent-paper-72); --fg-3: var(--ascent-paper-72); --hair: var(--ascent-paper-24); --rule: var(--ascent-paper-72); --card: var(--ascent); --card-2: var(--ascent-paper-24); --tick: var(--paper); --accent-tint: var(--ascent-paper-24); --accent-hair: var(--paper); }

/* chrome */
.chrome-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 36px; }
.kicker {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--mono); font-weight: 500; font-size: 20px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg-2); white-space: nowrap;
}
.kicker::before { content: ""; flex: none; width: 4px; height: 22px; border-radius: 2px; background: var(--tick); }
.tags { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.tag {
  font-family: var(--mono); font-weight: 500; font-size: 18px; letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 14px; border: 1px solid var(--hair); border-radius: 8px; color: var(--fg-2); white-space: nowrap;
}
.tag.track-b { color: var(--coral); border-color: var(--coral); }
.timer-pill {
  display: inline-flex; align-items: center; gap: 12px; cursor: pointer;
  font-family: var(--mono); font-weight: 500; font-size: 20px; letter-spacing: .08em; font-variant-numeric: tabular-nums;
  padding: 7px 18px 7px 14px; border: 1px solid var(--hair); border-radius: 999px; color: var(--fg);
}
.timer-pill::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--ascent); }
.timer-pill.running::before { background: var(--coral); animation: blink 1.1s ease-in-out infinite; }
.timer-pill.done { color: var(--coral); border-color: var(--coral); }
.timer-pill.done::before { background: var(--coral); }
.chrome-bottom {
  display: flex; align-items: center; justify-content: space-between; min-height: 28px;
  font-family: var(--mono); font-weight: 500; font-size: 18px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2);
}
.meta-left, .meta-right { display: flex; align-items: center; gap: 18px; }
.meta-left img { height: 26px; width: auto; }
.meta-right .sep { width: 1px; height: 16px; background: var(--rule); opacity: .7; }

/* content & type */
.content { position: relative; min-height: 0; display: flex; flex-direction: column; gap: 40px; overflow: hidden; }
.title {
  font-weight: 600; font-size: 72px; letter-spacing: -.025em; line-height: 1.04;
  text-wrap: balance; overflow-wrap: break-word; max-width: 1500px;
}
.marker {
  background: none; color: inherit; border-radius: 0;
  padding: .02em .14em; margin: 0 -.04em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.body { min-height: 0; }
.item { display: flex; align-items: flex-start; gap: .6em; padding: .42em 0; border-top: 1px solid var(--hair); line-height: 1.25; }
.item:first-child { border-top: 0; padding-top: 0; }
.item::before { content: ""; flex: none; width: .3em; height: .3em; border-radius: .08em; background: var(--tick); margin-top: .48em; }

/* ---------- cover ---------- */
.l-cover { display: block; padding: 0; }
.cover-lockup { position: absolute; left: 120px; top: 96px; height: 72px; width: auto; }
.cover-glow {
  position: absolute; right: -180px; top: 50%; width: 1500px; height: 1500px; transform: translateY(-50%);
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(14, 124, 107, .42), rgba(14, 124, 107, 0) 72%);
}
.cover-sym { position: absolute; right: 120px; top: 50%; transform: translateY(-50%); height: 700px; width: auto; max-width: 700px; object-fit: contain; }
.cover-text {
  position: absolute; left: 120px; bottom: 200px; width: 980px; max-height: 640px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 40px;
}
.cover-kicker { color: var(--paper-66); }
.cover-title { font-size: 160px; line-height: .98; letter-spacing: -.035em; color: var(--paper); max-width: none; }
.cover-sub { font-size: 44px; line-height: 1.3; color: var(--paper-66); max-width: 900px; }
.cover-foot {
  position: absolute; left: 120px; bottom: 88px;
  font-family: var(--mono); font-weight: 500; font-size: 20px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-46);
}

/* ---------- section ---------- */
.l-section .content { justify-content: flex-end; gap: 36px; overflow: visible; }
.l-section .big-num {
  position: absolute; left: -10px; top: -16px; pointer-events: none;
  font-family: var(--mono); font-weight: 500; font-size: 460px; line-height: .86; letter-spacing: -.06em;
  color: var(--ascent-paper-30);
}
.l-section.tone-dark .big-num { color: var(--paper-16); }
.l-section.tone-light .big-num, .l-section.tone-stone .big-num { color: var(--ink-16); }
.l-section .title { position: relative; font-size: 120px; line-height: 1; letter-spacing: -.03em; max-width: 1500px; }
.l-section .body { position: relative; font-size: 40px; color: var(--fg-2); max-width: 1200px; }

/* ---------- statement ---------- */
.l-statement .content { justify-content: center; gap: 48px; }
.l-statement .title { font-size: 140px; line-height: 1.02; letter-spacing: -.03em; max-width: 1660px; }
.l-statement .body { font-size: 40px; line-height: 1.3; color: var(--fg-2); max-width: 1300px; display: flex; flex-direction: column; gap: .3em; }

/* ---------- bullets ---------- */
.l-bullets .title, .l-checklist .title { font-size: 80px; max-width: 1540px; }
.list { display: flex; flex-direction: column; }
.l-bullets .list { font-size: 48px; max-width: 1600px; }

/* ---------- two-col ---------- */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; font-size: 40px; line-height: 1.3; align-items: stretch; }
.card { background: var(--card); border: 1px solid var(--hair); border-radius: 14px; padding: 1.1em 1.2em 1.2em; min-width: 0; }
.card-head {
  font-family: var(--mono); font-weight: 500; font-size: .55em; letter-spacing: .12em; text-transform: uppercase; color: var(--ascent);
  padding-bottom: 1em; margin-bottom: .8em; border-bottom: 1px solid var(--hair);
}
.tone-dark .card-head, .tone-ascent .card-head { color: var(--fg-2); }
.card .item { padding: .36em 0; }
.card .item:first-child { padding-top: 0; }

/* ---------- compare ---------- */
.compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; font-size: 40px; line-height: 1.3; }
.cell { min-width: 0; padding: .62em .9em; background: var(--card); border-left: 1px solid var(--hair); border-right: 1px solid var(--hair); border-top: 1px solid var(--hair); overflow-wrap: break-word; }
.cell.head { font-weight: 600; font-size: 1.1em; letter-spacing: -.02em; padding: .7em .82em; background: var(--card-2); border-color: var(--card-2); border-radius: 14px 14px 0 0; }
.cell.last { border-bottom: 1px solid var(--hair); border-radius: 0 0 14px 14px; }
.cell.r { background: var(--accent-tint); border-color: var(--accent-hair); }
.cell.r.head { background: var(--ascent); color: var(--paper); border-color: var(--ascent); }
.tone-ascent .cell.r.head { background: var(--paper); color: var(--ascent); border-color: var(--paper); }

/* ---------- steps ---------- */
.steps-h { position: relative; font-size: 40px; color: var(--fg); }
.steps-h svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.steps-h svg polyline { stroke: var(--tick); fill: none; stroke-width: 2; }
.steps-row { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 40px; align-items: start; }
.step { display: flex; flex-direction: column; gap: .45em; min-width: 0; }
.step .node { width: 16px; height: 16px; border-radius: 4px; background: var(--tick); }
.step .num { font-family: var(--mono); font-weight: 500; font-size: 2.6em; line-height: 1; letter-spacing: -.05em; margin-top: .2em; }
.step .step-text { font-weight: 500; line-height: 1.22; letter-spacing: -.01em; overflow-wrap: break-word; }
.steps-v { display: flex; flex-direction: column; font-size: 44px; }
.vstep { display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 40px; align-items: baseline; padding: .46em 0; border-top: 1px solid var(--hair); }
.vstep:first-child { border-top: 0; padding-top: 0; }
.vstep .num { font-family: var(--mono); font-weight: 500; font-size: 1.5em; letter-spacing: -.04em; color: var(--tick); line-height: 1; }
.vstep .step-text { font-weight: 500; line-height: 1.25; }

/* ---------- prompt ---------- */
.composer {
  font-size: 34px; color: var(--paper);
  background: var(--paper-12); border: 1px solid var(--paper-16); border-radius: 14px;
  padding: 1.05em 1.4em .95em; display: flex; flex-direction: column; gap: .7em;
}
.composer-label {
  display: flex; align-items: center; gap: .55em;
  font-family: var(--mono); font-weight: 500; font-size: .82em; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-66);
}
.composer-label::before { content: ""; width: .42em; height: .42em; border-radius: 50%; background: var(--ascent); }
.composer-lines { font-size: 1em; line-height: 1.42; font-weight: 400; white-space: pre-wrap; overflow-wrap: anywhere; }
.composer-line { min-height: 1.42em; }
.blank {
  background: none; color: var(--paper); font-weight: 500; border-radius: 0; border-bottom: 3px dashed var(--paper-66);
  padding: .04em .28em; margin: 0 .04em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.blank .br { opacity: .45; }
.caret { display: inline-block; width: 3px; height: 1.05em; background: var(--paper); vertical-align: -.16em; margin-left: 3px; animation: blink 1.1s steps(1) infinite; }
.composer-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--paper-16); padding-top: .7em; }
.composer-hint { font-family: var(--mono); font-weight: 500; font-size: .82em; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-46); }
.send { position: relative; flex: none; width: 2.1em; height: 2.1em; border-radius: 50%; background: var(--ascent); color: var(--paper); }
.send::before { content: ""; position: absolute; left: 50%; top: 50%; width: .5em; height: .5em; border-left: 4px solid currentColor; border-top: 4px solid currentColor; transform: translate(-50%, -30%) rotate(45deg); }
.send::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: .86em; background: currentColor; transform: translate(-50%, -44%); }

/* ---------- worksheet ---------- */
.sheet {
  font-size: 36px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--ink-16); border-radius: 10px;
  padding: 1.1em 1.8em 1.6em; display: flex; flex-direction: column; gap: .5em; flex: 1; min-height: 0;
}
.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-weight: 500; font-size: .56em; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-62);
  padding-bottom: .9em; border-bottom: 1px solid var(--ink-16);
}
.sheet-head img { height: 1.2em; width: auto; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 3em; line-height: 1.3; }
.fields.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.field { display: flex; flex-direction: column; gap: .3em; padding-top: .6em; min-width: 0; }
.field-label { font-family: var(--mono); font-weight: 500; font-size: .56em; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-62); }
.field-line { border-bottom: 2px solid var(--ink-22); min-height: 1.85em; display: flex; align-items: flex-end; padding-bottom: .22em; color: var(--ink-42); font-weight: 400; }

/* ---------- timer ---------- */
.timer-main { font-size: 40px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 96px; align-items: center; flex: 1; min-height: 0; }
.timer-main.solo { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.timer-block { display: flex; flex-direction: column; gap: .7em; }
.timer-main.solo .timer-block { align-items: center; }
.timer-digits {
  font-family: var(--mono); font-weight: 500; font-size: 7.5em; line-height: .9; letter-spacing: -.05em;
  font-variant-numeric: tabular-nums; cursor: pointer; color: var(--fg); transform-origin: left center; transition: color 200ms;
}
.timer-main.solo .timer-digits { transform-origin: center; }
.timer-digits.done { color: var(--coral); animation: pulse 1.6s ease-in-out infinite; }
.timer-status {
  display: flex; align-items: center; gap: .6em;
  font-family: var(--mono); font-weight: 500; font-size: .55em; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3);
}
.timer-status::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: var(--ascent); }
.timer-status.running::before { background: var(--coral); animation: blink 1.1s ease-in-out infinite; }
.timer-status.done { color: var(--coral); }
.timer-status.done::before { background: var(--coral); }
.timer-side { display: flex; flex-direction: column; line-height: 1.3; }
.timer-side .item { padding: .42em 0; }

/* ---------- checklist ---------- */
.l-checklist .list { font-size: 48px; max-width: 1600px; }
.check { display: flex; align-items: center; gap: .72em; padding: .44em 0; border-top: 1px solid var(--hair); cursor: pointer; line-height: 1.25; }
.check:first-child { border-top: 0; padding-top: .1em; }
.check .box { flex: none; position: relative; width: 1.12em; height: 1.12em; border: 2px solid var(--fg); border-radius: 8px; transition: background 160ms, border-color 160ms; }
.check.on .box { background: var(--ascent); border-color: var(--ascent); }
.check.on .box::after {
  content: ""; position: absolute; left: .36em; top: .14em; width: .28em; height: .56em;
  border-right: 4px solid var(--paper); border-bottom: 4px solid var(--paper); transform: rotate(45deg);
}
.check.on .check-text { color: var(--fg-2); }

/* ---------- portal ---------- */
.portal {
  font-size: 20px; color: var(--paper);
  background: var(--paper-6); border: 1px solid var(--paper-16); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; min-height: 0;
}
.portal-bar {
  display: flex; align-items: center; justify-content: space-between; padding: 1em 1.6em; border-bottom: 1px solid var(--paper-16);
  font-family: var(--mono); font-weight: 500; font-size: 1em; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-66);
}
.portal-bar .left, .portal-bar .right { display: flex; align-items: center; gap: 1.2em; }
.live { display: inline-flex; align-items: center; gap: .55em; color: var(--coral); white-space: nowrap; }
.live::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--coral); animation: blink 1.4s ease-in-out infinite; }
.portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2em; padding: 1.4em 1.6em 1.6em; }
.portal-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; min-height: 0; }
.portal-steps { font-size: 34px; }
.site { background: var(--paper); color: var(--ink); border-radius: 10px; overflow: hidden; border: 1px solid var(--paper-16); display: flex; flex-direction: column; min-width: 0; }
.site-bar { height: 2em; background: var(--stone); display: flex; align-items: center; gap: .4em; padding: 0 .8em; }
.site-bar i { width: .5em; height: .5em; border-radius: 50%; background: var(--ink-22); }
.site-bar .url { margin-left: .5em; flex: 1; height: 1.1em; border-radius: .4em; background: var(--paper); }
.site-body { height: 7.4em; padding: .7em; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); gap: .4em; background: var(--paper); }
.blk { border-radius: 4px; }
.blk.bar { background: var(--stone); }
.blk.ca { background: var(--ca); }
.blk.cb { background: var(--cb); }
.blk.cc { background: var(--cc); }
.site-label {
  display: flex; align-items: center; justify-content: space-between; gap: .5em; padding: .6em .8em .7em; min-width: 0;
  font-family: var(--mono); font-weight: 500; font-size: 1em; letter-spacing: .06em; border-top: 1px solid var(--ink-16);
}
.site-label .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-label .live { font-size: .8em; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- quote ---------- */
.l-quote .content { justify-content: center; }
.quote-wrap { position: relative; display: flex; flex-direction: column; gap: 44px; padding-left: 150px; }
.qmark { position: absolute; left: -14px; top: -.22em; font-size: 280px; line-height: 1; font-weight: 600; color: var(--ascent); letter-spacing: -.05em; }
.tone-ascent .qmark { color: var(--paper); }
.l-quote .title { font-size: 88px; line-height: 1.12; letter-spacing: -.025em; max-width: 1420px; }
.attrib {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--mono); font-weight: 500; font-size: 24px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2);
}
.attrib::before { content: ""; width: 28px; height: 2px; background: var(--tick); }
.l-quote .body { font-size: 36px; color: var(--fg-2); max-width: 1200px; display: flex; flex-direction: column; gap: .3em; }

/* ---------- close ---------- */
.l-close .content { align-items: center; justify-content: center; text-align: center; gap: 56px; }
.l-close .tagline { height: 132px; width: auto; max-width: 1000px; object-fit: contain; }
.l-close .title { font-size: 72px; max-width: 1300px; }
.l-close .mono-line { font-family: var(--mono); font-weight: 500; font-size: 24px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }
.l-close .body { font-size: 36px; color: var(--fg-2); max-width: 1100px; }

/* ---------- HUD (present) ---------- */
.progress { position: fixed; left: 0; bottom: 0; height: 2px; width: 0; background: var(--ascent); z-index: 30; transition: width var(--dur) var(--ease); }
.hud { position: fixed; z-index: 40; pointer-events: none; font-family: var(--mono); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--paper); }
.hud-jump { right: 24px; bottom: 22px; font-size: 14px; padding: 10px 14px; border: 1px solid var(--paper-16); border-radius: 8px; background: var(--ink); display: none; }
.hud-jump.show { display: block; }
.hud-help { left: 24px; bottom: 22px; font-size: 12px; color: var(--paper-46); opacity: 0; transition: opacity 400ms; }
.hud-help.show { opacity: 1; }
.hud-toast { left: 50%; top: 24px; transform: translateX(-50%); font-size: 13px; padding: 10px 16px; border: 1px solid var(--paper-16); border-radius: 8px; background: var(--ink); opacity: 0; transition: opacity 200ms; white-space: nowrap; }
.hud-toast.show { opacity: 1; }
.hud-timer { top: 20px; right: 24px; font-size: 13px; padding: 8px 14px; border: 1px solid var(--coral); color: var(--coral); border-radius: 999px; background: var(--ink); display: none; font-variant-numeric: tabular-nums; }
.hud-timer.show { display: block; }

/* ---------- grid ---------- */
html[data-mode="grid"], html[data-mode="grid"] body { overflow: auto; height: auto; }
.grid-view { min-height: 100vh; background: var(--ink); color: var(--paper); padding: 28px 40px 72px; }
.grid-overlay { position: fixed; inset: 0; z-index: 60; overflow: auto; background: var(--ink); }
.grid-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--paper-16); }
.grid-head img { height: 26px; width: auto; }
.grid-head .ttl { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-top: 12px; }
.grid-head .sub { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-46); text-align: right; line-height: 1.8; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px 22px; }
.g-item { display: flex; flex-direction: column; gap: 10px; cursor: pointer; min-width: 0; }
.g-item .fit { border-radius: 8px; border: 1px solid var(--paper-16); outline: 2px solid transparent; outline-offset: 3px; transition: outline-color 160ms, border-color 160ms; }
.g-item:hover .fit { border-color: var(--paper-46); }
.g-item.current .fit { outline-color: var(--ascent); }
.g-cap { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-66); }
.g-cap .n { color: var(--paper); }
.g-cap .r { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-title { font-size: 14px; color: var(--paper-66); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -4px; }

/* ---------- presenter ---------- */
html[data-mode="presenter"] body { overflow: hidden; }
.presenter { height: 100vh; display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--ink); color: var(--paper); }
.p-head {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 12px 22px;
  border-bottom: 1px solid var(--paper-16);
  font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-66);
}
.p-head .brand { display: flex; align-items: center; gap: 14px; }
.p-head .brand img { height: 22px; width: auto; }
.p-clock { display: flex; align-items: baseline; gap: 18px; justify-content: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.p-clock .big { font-size: 22px; color: var(--paper); letter-spacing: .04em; }
.p-clock .delta.ahead { color: var(--ascent); }
.p-clock .delta.behind { color: var(--coral); }
.p-clock .delta.idle { color: var(--paper-46); }
.p-head .right { display: flex; justify-content: flex-end; gap: 22px; font-variant-numeric: tabular-nums; }
.p-head .right .n { color: var(--paper); }
.p-main { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 22px; padding: 18px 22px 18px; min-height: 0; }
.p-left { display: flex; flex-direction: column; gap: 14px; min-height: 0; min-width: 0; }
.p-current { border: 1px solid var(--paper-16); border-radius: 10px; flex: none; align-self: flex-start; width: 100%; }
.p-status { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: end; padding-top: 4px; }
.p-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.p-info .label { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-46); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-info .label .b { color: var(--coral); }
.p-info .ttl { font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-timer { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.p-timer .digits { font-family: var(--mono); font-weight: 500; font-size: 56px; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--paper); cursor: pointer; }
.p-timer .digits.done { color: var(--coral); animation: pulse 1.6s ease-in-out infinite; }
.p-timer .digits.off { color: var(--paper-46); cursor: default; }
.p-timer .cap { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-46); white-space: nowrap; }
.p-timer .cap.running { color: var(--coral); }
.p-keys { margin-top: auto; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-46); line-height: 1.8; }
.p-right { display: flex; flex-direction: column; gap: 16px; min-height: 0; min-width: 0; }
.p-next { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: center; }
.p-next .fit { border: 1px solid var(--paper-16); border-radius: 8px; }
.p-next .label { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-46); margin-bottom: 6px; }
.p-next .ttl { font-size: 18px; font-weight: 500; color: var(--paper-66); line-height: 1.3; }
.p-notes-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--paper-16); padding-top: 14px; }
.p-notes-wrap .label { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-46); }
.p-notes { flex: 1; min-height: 0; overflow: auto; font-size: 28px; line-height: 1.42; white-space: pre-wrap; color: var(--paper); padding-right: 8px; scrollbar-width: thin; }
.p-notes.empty { color: var(--paper-46); font-size: 20px; }
.itgw { background: var(--coral-ink-14); border: 1px solid var(--coral-ink-60); border-radius: 10px; padding: 14px 18px 16px; font-size: 22px; line-height: 1.4; white-space: pre-wrap; flex: none; max-height: 40%; overflow: auto; }
.itgw .label { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); margin-bottom: 8px; }

/* ---------- print (slides PDF) ---------- */
html[data-mode="print"], html[data-mode="print"] body { overflow: visible; height: auto; background: var(--ink); }
.print-page { width: 1920px; height: 1080px; overflow: hidden; position: relative; break-after: page; page-break-after: always; break-inside: avoid; page-break-inside: avoid; }
.print-page:last-child { break-after: auto; page-break-after: auto; }

/* ---------- notes (speaker notes PDF) ---------- */
html[data-mode="notes"], html[data-mode="notes"] body { overflow: auto; height: auto; background: var(--graphite); }
.notes-doc { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px 0; }
.notes-page {
  width: 210mm; height: 297mm; overflow: hidden; background: var(--paper); color: var(--ink);
  padding: 12mm 14mm 10mm; display: grid; grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr); row-gap: 5mm;
  break-after: page; page-break-after: always; break-inside: avoid; page-break-inside: avoid;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.notes-page:last-child { break-after: auto; page-break-after: auto; }
.notes-head {
  display: flex; align-items: center; justify-content: space-between; gap: 6mm; padding-bottom: 3mm; border-bottom: 1px solid var(--ink-16);
  font-family: var(--mono); font-weight: 500; font-size: 8.5pt; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-62);
}
.notes-head .l { display: flex; align-items: center; gap: 4mm; }
.notes-head img { height: 7mm; width: auto; }
.notes-head .t { color: var(--ink); }
.note { display: grid; grid-template-rows: auto minmax(0, 1fr); row-gap: 3.5mm; min-height: 0; padding-top: 4mm; border-top: 1px solid var(--ink-16); }
.note.first { border-top: 0; padding-top: 0; }
.note-top { display: grid; grid-template-columns: 74mm minmax(0, 1fr); gap: 6mm; align-items: start; }
.note-thumb { border: 1px solid var(--ink-16); border-radius: 2mm; }
.note-meta { display: flex; flex-direction: column; gap: 2.2mm; min-width: 0; }
.note-meta .mono { font-size: 8pt; color: var(--ink-62); line-height: 1.6; }
.note-meta .mono .b { color: var(--coral); }
.note-meta h2 { font-size: 15pt; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.note-meta .lay { font-family: var(--mono); font-weight: 500; font-size: 7.5pt; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-42); }
.note-body { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 3mm; }
.note-text { font-size: 11pt; line-height: 1.45; white-space: pre-wrap; color: var(--ink); }
.note-text.empty { color: var(--ink-42); }
.note-itgw { background: var(--coral-paper-12); border: 1px solid var(--coral-paper-55); border-radius: 2mm; padding: 3mm 4mm; }
.note-itgw .label { font-family: var(--mono); font-weight: 500; font-size: 7.5pt; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); margin-bottom: 1.5mm; }
.note-itgw p { font-size: 9.5pt; line-height: 1.4; white-space: pre-wrap; }

@media print {
  html, body { background: transparent !important; }
  .hud, .progress { display: none !important; }
  .notes-doc { display: block; padding: 0; }
  .notes-page { margin: 0; }
}
