/* Layout: the route drawn as eight bands of step tiles; each step page is a plate of marked words beside its notes.
   Colours are the session decks' own, so the marks read the same here as on the slides. */
:root {
  --paper: #f4efe6;
  --card: #fbf8f2;
  --ink: #2b2b2b;
  --soft: #6b6256;
  --line: #e2d8c8;
  --modal: #3f6488;
  --verb: #b5402f;
  --subject: #3a7d44;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1d1b18; --card: #25221e; --ink: #ece5d8; --soft: #a89e8f; --line: #3a352e;
    --modal: #95b6db; --verb: #e2836e; --subject: #7dbb87; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1d1b18; --card: #25221e; --ink: #ece5d8; --soft: #a89e8f; --line: #3a352e;
  --modal: #95b6db; --verb: #e2836e; --subject: #7dbb87; color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--modal); text-underline-offset: 3px; }
a:focus-visible, .tile:focus-visible { outline: 2px solid var(--modal); outline-offset: 3px; border-radius: 6px; }
em, i { font-family: var(--display); font-style: italic; font-weight: 400; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; text-wrap: balance; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); font-weight: 400; }
.eyebrow a { color: inherit; }
.badge {
  display: inline-block; margin-left: 6px; padding: 1px 9px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); vertical-align: 1px; white-space: nowrap;
}

/* header and footer */
header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-block: 16px; }
.brand { font-family: var(--display); font-size: 1.3rem; font-weight: 500; color: var(--ink); text-decoration: none; line-height: 1.2; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo svg { display: block; margin: -6px 0; }
.brand .name { display: block; }
.brand small { display: block; font-family: var(--body); font-size: 0.7rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
header.site .tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
nav.site { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0.95rem; }
/* bright and night: follows the device until a reader picks one (build_site.py) */
.theme { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; }
.theme[hidden] { display: none; }
.theme button { font: inherit; font-size: 0.8rem; line-height: 1; padding: 6px 12px; border: 0; border-radius: 999px;
  background: transparent; color: var(--soft); cursor: pointer; }
.theme button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.theme button:focus-visible { outline: 2px solid var(--modal); outline-offset: 2px; }
nav.site a { text-decoration: none; font-weight: 400; }
nav.site a:hover { text-decoration: underline; }
footer.site { border-top: 1px solid var(--line); margin-top: 48px; }
footer.site .wrap { padding-block: 22px 32px; color: var(--soft); font-size: 0.85rem; max-width: 1120px; }

/* home */
.hero .wrap { padding-block: 48px 36px; display: grid; gap: 14px; }
.lead { font-size: 1.15rem; max-width: 62ch; }
.route .wrap, .marks .wrap, .about .wrap { padding-block: 28px; display: grid; gap: 10px; }
.sub { color: var(--soft); max-width: 66ch; }
.band { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px 28px; padding-block: 24px; border-top: 1px solid var(--line); }
.band:first-of-type { margin-top: 10px; }
.band-label { display: grid; align-content: start; gap: 4px; }
.band-label p { color: var(--soft); font-size: 0.88rem; }
.band-label .badge { justify-self: start; margin-left: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tile {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 12px; row-gap: 6px;
  padding: 14px 16px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); text-decoration: none; transition: border-color 0.15s ease;
}
.tile:hover { border-color: var(--modal); }
.tile .num { grid-row: 1 / span 2; font-family: var(--display); font-size: 1.7rem; line-height: 1; color: var(--modal); font-variant-numeric: tabular-nums; min-width: 1.4em; }
.tile .t { font-weight: 400; line-height: 1.3; }
.tile .w { font-size: 0.92rem; line-height: 1.5; color: var(--ink); }
.cw { white-space: nowrap; margin-right: 0.45em; letter-spacing: 0.01em; }
.cw .v { color: var(--verb); }
.cw .g { color: var(--subject); }

.key { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 8px; }
.mark { margin: 0; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 8px; align-content: start; }
.mark .mw { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 18px; min-height: 84px; }
.mark .mw svg { height: 84px; width: auto; max-width: 100%; }
.mark figcaption { font-size: 0.9rem; line-height: 1.5; }
.mark figcaption b { display: block; font-weight: 500; font-size: 0.98rem; }
.mark > p { font-size: 0.9rem; line-height: 1.5; }

.about .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 32px; margin-top: 8px; }
.about .cols > div { display: grid; gap: 6px; align-content: start; }
.about h3 { font-size: 1.05rem; }

/* step pages */
.step-head { padding-block: 36px 8px; display: grid; gap: 10px; }
.plate { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; padding-block: 20px; align-items: start; }
.words {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px 30px;
  padding: 26px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; min-width: 0;
}
.group { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 14px; min-width: 0; max-width: 100%; }
.group.pair { padding: 6px 10px 2px; border: 1px dashed var(--line); border-radius: 10px; }
.word { margin: 0; display: grid; justify-items: center; gap: 2px; min-width: 0; max-width: 100%; }
.word svg { display: block; max-width: 100%; height: auto; }
.word figcaption { font-size: 0.78rem; color: var(--soft); text-align: center; }
.word .plain { font-family: "Lexend", var(--body); font-weight: 400; line-height: 1; color: var(--ink); padding-block: 26px 30px; }
.notes { display: grid; gap: 18px; min-width: 0; }
.note { display: grid; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.note:last-child { border-bottom: 0; }
.note h2 { font-family: var(--body); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.note p { font-size: 0.98rem; }
/* under construction: what's still being built, and what comes next (build_site.py's uc) */
.uc { color: var(--soft); font-size: 0.92rem; line-height: 1.55; max-width: 70ch; }
.note .uc { font-size: 0.92rem; }
section.marks > .wrap > .uc, section.about > .wrap > .uc { margin-top: 18px; }
.words > .uc { flex-basis: 100%; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 20px; }
.pn a { display: grid; gap: 2px; text-decoration: none; color: var(--ink); padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.pn a:hover { border-color: var(--modal); }
.pn a span { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--modal); }
.pn .next { text-align: right; }

@media (max-width: 860px) {
  .plate { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .band { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .band-label { grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 10px; }
  .band-label .badge { grid-column: 1 / -1; }
  .words { padding: 18px 14px; gap: 16px 18px; }
}
@media (max-width: 480px) {
  .word svg { height: 105px !important; width: auto !important; }
  .word .plain { font-size: 42px !important; padding-block: 18px 22px; }
  .pn { grid-template-columns: 1fr; }
  .pn .next { text-align: left; }
  body { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } }

/* word lists: the ELP and Dolch charts. Their colours are their own, kept apart from the marks' red, green and blue:
   ochre for the ELP grades and slate for Dolch's levels, each in steps of one hue so the order shows. */
:root {
  --elp-k: #e8d4a0; --elp-1: #d9b866; --elp-2: #c2952f;
  --dl-1: #d3dfed; --dl-2: #b8cbe2; --dl-3: #9cb6d6; --dl-4: #81a1ca; --dl-5: #688dbd;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --elp-k: #3d3424; --elp-1: #5e4c27; --elp-2: #806427;
    --dl-1: #222c37; --dl-2: #29394b; --dl-3: #31475f; --dl-4: #3a5675; --dl-5: #44668b;
  }
}
:root[data-theme="dark"] {
  --elp-k: #3d3424; --elp-1: #5e4c27; --elp-2: #806427;
  --dl-1: #222c37; --dl-2: #29394b; --dl-3: #31475f; --dl-4: #3a5675; --dl-5: #44668b;
}
.wl .flow { display: grid; gap: 14px; margin-top: 10px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; font-size: 0.88rem; color: var(--soft); }
.legend li { display: flex; align-items: center; gap: 7px; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; }
.wl .rows { display: grid; gap: 8px; }
.wl .row { display: grid; grid-template-columns: 12rem minmax(0, 1fr); align-items: center; gap: 12px; }
.wl .rl { font-size: 0.92rem; line-height: 1.25; text-align: right; }
.wl .rl b { margin-left: 8px; font-weight: 400; color: var(--soft); font-variant-numeric: tabular-nums; }
.grade-h { margin: 6px 0 -2px; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
.track { min-width: 0; }
.bar { display: flex; gap: 2px; height: 34px; min-width: 0; }
.seg {
  flex: 1 1 0; min-width: 0; overflow: hidden; padding: 0; border: 0; border-radius: 4px; cursor: pointer;
  font: inherit; font-size: 0.85rem; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums;
}
.seg:hover { filter: brightness(0.95); }
.seg[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 2px; position: relative; z-index: 1; }
.seg:focus-visible { outline: 2px solid var(--modal); outline-offset: 2px; position: relative; z-index: 1; }
.s-K { background: var(--elp-k); } .s-1 { background: var(--elp-1); } .s-2 { background: var(--elp-2); }
.d-pre-primer { background: var(--dl-1); } .d-primer { background: var(--dl-2); } .d-first { background: var(--dl-3); }
.d-second { background: var(--dl-4); } .d-third { background: var(--dl-5); }
.s-none, .d-none { background: transparent; border: 1.5px dashed var(--soft); color: var(--soft); }
.detail { display: grid; gap: 10px; align-content: start; min-height: 6rem; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.detail h3 { font-size: 1.12rem; }
.detail h3 span { margin-left: 8px; font-family: var(--body); font-size: 0.85rem; font-weight: 400; color: var(--soft); }
.detail dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0; }
.detail dt { font-size: 0.88rem; color: var(--soft); padding-top: 2px; }
.detail dd { margin: 0; }
.detail .cw { font-size: 1.05rem; }
.detail .more { font-size: 0.9rem; color: var(--soft); }
.tablewrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
table.wl-table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 0.9rem; line-height: 1.45; }
table.wl-table th, table.wl-table td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.wl-table thead th { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.03em; color: var(--soft); }
table.wl-table tbody th { font-weight: 400; white-space: nowrap; }
table.wl-table tr:last-child th, table.wl-table tr:last-child td { border-bottom: 0; }
table.wl-table tr.off th { font-weight: 500; }
.sources { display: grid; gap: 6px; max-width: 78ch; margin: 0; padding-left: 1.2em; }
@media (max-width: 640px) {
  .wl .row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .wl .rl { text-align: left; }
  .detail dl { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .detail dd { margin-bottom: 8px; }
}

/* presentations */
.decks { display: grid; gap: 44px; }
.deck { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.deck-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.deck-shots img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.deck-shots:hover img { border-color: var(--soft); }
.deck-text h2 { margin: 4px 0 12px; }
.deck-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 18px 0 12px; }
.btn { display: inline-block; padding: 10px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 500; text-decoration: none; }
.btn:hover { opacity: 0.88; }
@media (max-width: 760px) { .deck { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

.hand-h { margin: 0 0 10px; font-size: 1.15rem; }
.handouts { display: grid; gap: 12px; margin: 0 0 10px; padding: 0; list-style: none; }
.handouts li { display: grid; gap: 2px; }
.handouts a { font-weight: 500; }
.handouts .meta { font-size: 0.85rem; color: var(--soft); }
.handouts .what { font-size: 0.95rem; }
.deck { grid-template-areas: "shots text" "hands text"; grid-template-rows: auto 1fr; }
.deck-shots { grid-area: shots; } .deck-text { grid-area: text; } .deck-hands { grid-area: hands; }
@media (max-width: 760px) { .deck { grid-template-areas: "shots" "text" "hands"; grid-template-rows: auto; } }

/* about and credits */
.about-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; }
/* definitions (definitions.py): the coining entry, then lists of terms */
.nw { white-space: nowrap; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 0; }
.entry { display: grid; gap: 10px; margin: 6px 0 22px; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.entry p { margin: 0; }
.entry .hw { font-family: var(--display); font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1.1; }
.pron { color: var(--soft); font-weight: 400; }
.pron .say { margin-left: 8px; }
.pos { font-style: italic; font-weight: 400; color: var(--soft); margin-left: 4px; }
.entry .line .pos { margin-left: 10px; }
.senses { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.eg { display: block; color: var(--soft); font-style: italic; }
.eg i { font-style: normal; }
.entry .ety, .entry .usage, .entry .rel { font-size: 0.95rem; }
.entry .ety { padding-left: 12px; border-left: 3px solid var(--line); }
.defs { display: grid; gap: 18px; margin: 6px 0 0; }
.defs .def { scroll-margin-top: 12px; }
.defs dt { font-weight: 500; font-size: 1.05rem; }
.defs dd { margin: 4px 0 0; }
.defs .src { display: block; margin-top: 6px; font-size: 0.88rem; color: var(--soft); }
.marks-defs .mk dd { display: grid; gap: 4px; justify-items: start; }
.mdraw { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.mdraw svg { height: 80px; width: auto; max-width: 100%; }
.mascot { margin: 12px 0 4px; display: grid; gap: 8px; }
.mascot .pair { display: flex; align-items: center; gap: 12px; }
.mascot .pair svg { width: calc((100% - 44px) / 2); max-width: 230px; height: auto; }
.mascot .to { color: var(--soft); font-size: 1.4rem; }
.mascot figcaption { font-size: 0.9rem; color: var(--soft); }
@media (max-width: 560px) { .marks-defs .mk dd { grid-template-columns: minmax(0, 1fr); } .mdraw { justify-content: flex-start; } }
/* the characters (characters.py): Note, and the Dialogue Team */
svg.lifted { display: block; max-width: 100%; height: auto; }
.mascot-hero { margin: 0; display: grid; justify-items: center; gap: 8px; }
.mascot-hero a { display: block; }
.mascot-hero figcaption { max-width: 15em; font-size: 0.85rem; color: var(--soft); text-align: center; }
.team { margin: 6px 0 18px; display: grid; gap: 6px; }
.team-line { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 10px; font-size: 16px; }
.team .member { margin: 0; padding: 6px 8px; display: grid; justify-items: center; gap: 4px; border: 2px solid transparent; border-radius: 12px; }
.team .member.moving { border-color: var(--ink); }
.team .member figcaption { display: grid; justify-items: center; font-size: 0.85rem; line-height: 1.25; }
.team .member figcaption span { font-size: 0.78rem; color: var(--soft); }
.team .say { margin: 0 0 1.9rem 8px; font-size: 1.15rem; color: var(--soft); white-space: nowrap; }
.team > figcaption { font-size: 0.9rem; color: var(--soft); }
@media (max-width: 640px) {
  .mascot-hero { justify-items: start; }
  .mascot-hero figcaption { text-align: left; }
  .team-line { font-size: 11px; gap: 4px 6px; }
  .team .member { padding: 4px 4px; }
  .team .say { flex-basis: 100%; margin: 0 0 6px 6px; }
}
.wordmark { margin: 10px 0 18px; display: grid; gap: 10px; }
.wordmark svg { display: block; width: min(100%, 460px); height: auto; }
.wordmark figcaption { font-size: 0.9rem; color: var(--soft); }
.prose > :not(.examples) { max-width: 74ch; }
.prose p { margin: 0 0 12px; }
.marks-list, .credits { display: grid; gap: 8px; margin: 4px 0 16px; padding-left: 1.2em; }
.examples { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 28px; margin: 18px 0 20px; max-width: 1000px; }
.ex { margin: 0; display: grid; gap: 6px; align-content: start; }
.ex svg { max-width: 100%; height: auto; }
.ex figcaption { font-size: 0.9rem; color: var(--soft); }
footer.site p + p { margin-top: 6px; }
@media (max-width: 640px) {
  .about-hero { grid-template-columns: minmax(0, 1fr); }
  .examples { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
}

/* landing: legomorphic built up, and note to notation (timing in landing.py) */
.landing .wrap { padding-block: 34px 36px; display: grid; gap: 14px; }
.stage-lego svg { display: block; width: 100%; max-width: 860px; height: auto; overflow: visible; }
.stage .cap { display: grid; margin: 6px 0 0; font-family: var(--display); font-style: italic; font-size: 1.08rem; line-height: 1.45; color: var(--soft); }
.stage .cap > span, .stage-morph .sums > span, .stage-morph .mstack > svg { grid-area: 1 / 1; }
.stage .cap i { font-style: normal; }
.cta { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin: 4px 0 0; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.replay { display: none; background: none; border: 0; padding: 6px 2px; color: var(--soft); font: inherit; font-size: 0.92rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.js .replay { display: inline-block; }
.morph .wrap { padding-block: 6px 34px; display: grid; gap: 10px; }
.morph h2 i { font-style: italic; }
.stage-morph .sums, .stage-morph .mstack { display: grid; }
.stage-morph .sums { margin: 0; font-family: var(--display); font-size: 1.3rem; }
.stage-morph .mstack svg { display: block; width: 100%; max-width: 600px; height: auto; overflow: visible; }
/* the finished state, which is all a reader sees without script or with reduced motion */
.stage .wt { opacity: 0; }
.stage-lego .cap > span:not(:last-child) { opacity: 0; }
.stage-morph .s1, .stage-morph .s2, .stage-morph .c1, .stage-morph .c2, .stage-morph .w1, .stage-morph .w2 { opacity: 0; }
/* with script: hidden until the stage plays */
.js .stage-lego:not(.play) :is(.nz1, .nz2, .nz3, .nz4, .nz5, .nz6, .nz7, .nz8, .nz9), .js .stage-lego:not(.play) .cap > span,
.js .stage-morph:not(.play) :is(.s3, .c3, .w3) { opacity: 0; }
.stage-morph.play .w1 { animation: lm-in .6s ease .3s both, lm-out .8s ease-in-out 4.4s forwards; }
.stage-morph.play :is(.s1, .c1) { animation: lm-in .6s ease .3s both, lm-out .4s ease 3.6s forwards; }
.stage-morph.play .s2 { animation: lm-in .6s ease 4s both, lm-out .4s ease 8s forwards; }
.stage-morph.play .c2 { animation: lm-in .6s ease 4.4s both, lm-out .4s ease 8s forwards; }
.stage-morph.play .w2 { animation: lm-in .8s ease-in-out 4.4s both, lm-out .8s ease-in-out 8.8s forwards; }
.stage-morph.play .s3 { animation: lm-in .6s ease 8.4s both; }
.stage-morph.play .c3 { animation: lm-in .6s ease 8.8s both; }
.stage-morph.play .w3 { animation: lm-in .8s ease-in-out 8.8s both; }
@keyframes lm-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lm-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes lm-draw { 0% { opacity: 0; stroke-dasharray: 1; stroke-dashoffset: 1; } 1% { opacity: 1; } 100% { opacity: 1; stroke-dasharray: 1; stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .stage * { animation: none !important; } }
@media (max-width: 640px) { .stage .cap { font-size: 1rem; } .stage-morph .sums { font-size: 1.12rem; } }
