/* class-advanced.css — the advanced vibe coding class page (owner, 10 Nov 2026).

   Loaded only by classsite/class_page.html when the class is that one, beside
   pages.css. Ported from the screened mock's own rules
   (design_reference/class-site/design/advanced-vibe-coding/mock.css); the
   tokens, header and class-door idioms it copied are the site's own here
   (tokens/palette.css, app.css). --av-hdr is the sticky header's height, kept
   current by class-advanced.js so the sketch pins just under it. */
:root { --av-hdr: 59px; }
.av-wrap { --gl: max(32px, env(safe-area-inset-left, 0px)); --gr: max(32px, env(safe-area-inset-right, 0px)); max-width: 1180px; margin: 0 auto; padding-left: var(--gl); padding-right: var(--gr); }
.av-eyebrow { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); }
.av-eyebrow.is-dark { color: var(--bronze); }
.av-h2 { margin: 16px 0 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.22; text-wrap: balance; }
.av-lead { max-width: 60ch; margin: 14px 0 0; font-size: 15.5px; line-height: 1.8; color: var(--ink-soft); }
/* The hero's opening: Chinese has no italic, so a slanted fake one reads pale. */
.av-lede .lang-zh { font-style: normal; color: var(--ink-soft); }

/* ══ 1 · Where it starts — the line from the entry class into this one ══ */
.av-line { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1.2fr) max-content minmax(0, 1fr) max-content; align-items: start; }
.av-line > * { position: relative; min-width: 0; }
.av-line-k { display: flex; align-items: flex-end; height: 36px; font-family: var(--font-mono); font-size: 10.5px; line-height: 18px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.av-line-k.is-here { justify-content: center; padding: 0 26px; color: var(--accent); white-space: nowrap; }
.av-line-track { position: relative; height: 30px; margin-top: 6px; }
.av-line-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--line-strong); }
.av-line-seg.is-after .av-line-track::before, .av-line-end .av-line-track::before { border-top: 1px solid var(--ink); transform-origin: left center; }
.av-line-node { text-align: center; }
.av-line-node .av-line-track::before { right: 50%; }
.av-line-node .av-line-track::after { content: ""; position: absolute; left: 50%; right: 0; top: 50%; border-top: 1px solid var(--ink); }
.av-line-dot { position: absolute; left: 50%; top: 50%; width: 13px; height: 13px; margin: -6px 0 0 -6.5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--paper); z-index: 1; }
.av-line-steps { margin-top: 8px; padding-right: 18px; display: flex; flex-wrap: wrap; align-items: center; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.9; letter-spacing: .03em; color: var(--muted); }
.av-line-steps i { font-style: normal; color: var(--line-strong); margin: 0 6px; }
.av-line-steps .lang-zh { font-size: 13px; }
.av-line-what { margin-top: 8px; font-size: 14.5px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.av-line-what small { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .04em; color: var(--muted); }
.av-line-stops { position: absolute; left: 0; right: 0; top: 42px; height: 30px; display: flex; align-items: center; justify-content: space-evenly; }
.av-line-stops a { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--ink); background: var(--paper); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 11px; color: var(--ink); transition: background .16s ease, color .16s ease, border-color .16s ease; }
.av-line-stops a:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.av-line-hint { margin-top: 10px; font-family: var(--font-mono); font-size: 10.5px; line-height: 18px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); text-align: center; }
.av-line-end { padding-left: 0; }
.av-line-end .av-line-track { min-width: 46px; }
.av-line-end .av-line-track::after { content: ""; position: absolute; right: 2px; top: 50%; width: 8px; height: 8px; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); transform: translateY(-50%) rotate(45deg); }
.av-line-end .av-line-what { padding-left: 14px; }
/* Drawn as the reader reaches it — only the rule moves; every word is already there. */
.av-line.is-armed .av-line-seg.is-after .av-line-track::before, .av-line.is-armed .av-line-end .av-line-track::before { transform: scaleX(0); }
.av-line.is-armed.is-in .av-line-seg.is-after .av-line-track::before { transform: scaleX(1); transition: transform .9s ease .15s; }
.av-line.is-armed.is-in .av-line-end .av-line-track::before { transform: scaleX(1); transition: transform .3s ease 1.05s; }


@media (max-width: 860px) {
  .av-line { display: block; margin-top: 30px; }
  .av-line > * { padding: 0 0 22px 30px; text-align: left; }
  .av-line > *::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; border-left: 1px solid var(--ink); }
  .av-line > .av-line-seg.is-before::before { border-left: 1px dashed var(--line-strong); }
  .av-line-track { display: none; }
  .av-line-k { height: auto; display: block; }
  .av-line-k.is-here { white-space: normal; }
  .av-line-steps { margin-top: 4px; padding-right: 0; }
  .av-line-node { padding-top: 2px; background: linear-gradient(var(--ink), var(--ink)) 6px 22px / 1px calc(100% - 22px) no-repeat; }
  .av-line-k.is-here { padding: 0; }
  .av-line-k.is-empty { display: none; }
  .av-line-node::before { border-left-style: dashed !important; border-left-color: var(--line-strong) !important; bottom: auto !important; height: 12px; }
  .av-line-node::after { content: ""; position: absolute; left: 0; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--paper); }
  .av-line-node .av-line-what { margin-top: 2px; }
  .av-line-stops { position: static; height: auto; margin-top: 8px; justify-content: flex-start; gap: 7px; flex-wrap: wrap; }
  .av-line-stops a { width: 30px; height: 30px; font-size: 12px; }
  .av-line-hint { text-align: left; margin-top: 8px; }
  .av-line-end { padding-bottom: 0 !important; }
  .av-line-end::before { bottom: auto !important; height: 8px; }
  .av-line-end::after { content: ""; position: absolute; left: 2px; top: 1px; width: 8px; height: 8px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: rotate(45deg); }
  .av-line-end .av-line-k { display: none; }
  .av-line-end .av-line-what { margin-top: 0; padding-left: 0; padding-top: 2px; }
}

.av-fit { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; max-width: 940px; }
.av-fit-c { padding: 18px 20px 20px; border: 1px solid var(--hairline); background: var(--paper-raised); }
.av-fit-c.is-yes { border-left: 3px solid var(--accent); }
.av-fit-k { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.av-fit-c.is-no .av-fit-k { color: var(--muted); }
.av-fit-c p { margin: 10px 0 0; font-size: 15px; line-height: 1.75; color: var(--ink-soft); }
.av-fit-c a { color: var(--accent); border-bottom: 1px solid transparent; transition: border-color .16s ease; }
.av-fit-c a:hover { border-bottom-color: var(--accent); }
@media (max-width: 860px) { .av-fit { grid-template-columns: minmax(0, 1fr); margin-top: 26px; } }

/* ══ 2 · The seven topics, and the sketch they are read against ══ */
.av-topics { margin-top: 34px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 20px 64px; align-items: start; }
.av-tlist { grid-column: 1; grid-row: 1; margin: 0; padding: 0; list-style: none; }
.av-fig { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--av-hdr) + 32px); margin: 0; padding: 14px 20px 18px; border: 1px solid var(--hairline); background-color: var(--paper-raised); background-image: linear-gradient(rgba(var(--ink-rgb), .032) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--ink-rgb), .032) 1px, transparent 1px); background-size: 22px 22px; }
.av-fig-cap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 24px; margin-bottom: 10px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.av-steps { display: flex; gap: 4px; flex: none; }
.av-steps button { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--paper-raised); font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-soft); cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.av-steps button:hover { border-color: var(--ink); }
.av-steps button.is-on { background: var(--accent); border-color: var(--accent); color: var(--paper); }
html:not(.av-js) .av-steps { display: none; }

.av-t { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 0 16px; padding: 26px 0; border-top: 1px solid var(--line-strong); scroll-margin-top: 110px; }
.av-t:last-child { border-bottom: 1px solid var(--line-strong); }
.av-t-n { width: 28px; height: 28px; margin-top: 3px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; font-family: var(--font-mono); font-size: 12px; color: var(--accent); padding: 0; display: flex; align-items: center; justify-content: center; transition: background .2s ease, color .2s ease, border-color .2s ease; }
html.av-js .av-t-n { cursor: pointer; }
.av-t.is-on .av-t-n { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.av-t-h { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(20px, 2.1vw, 24px); line-height: 1.42; color: var(--ink); text-wrap: pretty; }
.av-t-subs { margin: 12px 0 0; padding: 0; list-style: none; }
.av-sub { display: block; width: 100%; text-align: left; font-family: inherit; font-size: 15px; line-height: 1.7; color: var(--ink-soft); background: transparent; border: 0; border-left: 2px solid var(--line-strong); padding: 6px 0 6px 14px; margin-top: 8px; transition: color .2s ease, border-color .2s ease; }
html.av-js .av-sub { cursor: pointer; }
.av-sub.is-on { border-left-color: var(--accent); color: var(--ink); }

/* The sketch. One viewBox, drawn at phone size so the labels stay legible there. */
.av-sk { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font-mono); }
.av-sk text { font-size: 10px; letter-spacing: .02em; fill: var(--ink-soft); transition: fill .3s ease; }
.av-sk text.lang-zh { font-family: var(--font-zh); font-size: 10.5px; letter-spacing: .05em; }
.av-sk text.sk-k { font-size: 9.5px; letter-spacing: .16em; fill: var(--muted); }
.av-sk text.sk-s { font-size: 9.5px; fill: var(--muted); }
.av-sk text.lang-zh.sk-s { font-size: 9.5px; }
.av-sk .ln { fill: none; stroke: var(--ink-mid); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s ease; }
.av-sk .box { fill: var(--card); stroke: var(--ink-mid); stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke .3s ease, fill .3s ease; }
.av-sk .soft { stroke: var(--line-strong); }
.av-sk .sk-host-n, .av-sk .sk-host-w { fill: var(--paper); }
.av-sk .pt, .av-sk .pt-frame { transition: opacity .35s ease, stroke .3s ease; }
.av-sk .sk-dot { fill: var(--muted); transition: fill .3s ease; }
.av-sk .x { opacity: 0; transition: opacity .35s ease; }
.av-sk .hot { stroke: var(--accent); }
.av-sk .tagbg { fill: var(--card); stroke: var(--accent); stroke-width: 1; vector-effect: non-scaling-stroke; }
.av-sk .tagtx { font-size: 9.5px; font-weight: 500; fill: var(--accent); letter-spacing: 0; }

/* What each topic lights. Garnet = the part this topic is about. */
.av-fig[data-topic="1"] .pt-frame, .av-fig[data-topic="2"] .pt-frame { stroke: var(--accent); }
.av-fig[data-topic="1"] .pt-time .ln { stroke: var(--accent); }
.av-fig[data-topic="1"] .pt-time text { fill: var(--accent); }
.av-fig[data-topic="1"] .x1 { opacity: 1; transition-delay: calc(var(--i) * 150ms); }
.av-fig[data-topic="2"] .x2 { opacity: 1; transition-delay: calc(var(--i) * 120ms); }
.av-fig[data-topic="3"] .pt-host .sk-host-n, .av-fig[data-topic="3"] .pt-db .box, .av-fig[data-topic="3"] .pt-hd .ln { stroke: var(--accent); }
.av-fig[data-topic="3"] .pt-host > text, .av-fig[data-topic="3"] .pt-db text { fill: var(--accent); }
.av-fig[data-topic="3"] .x3 { opacity: 1; }
.av-fig[data-topic="4"] .x4 { opacity: 1; transition-delay: calc(var(--i) * 110ms); }
.av-fig[data-topic="6"] .pt-link .ln, .av-fig[data-topic="6"] .pt-svc .box, .av-fig[data-topic="6"] .pt-prog .box { stroke: var(--accent); }
.av-fig[data-topic="6"] .pt-svc text, .av-fig[data-topic="6"] .pt-prog text { fill: var(--accent); }
.av-fig[data-topic="6"] .pt-link .ln { stroke-dasharray: 3 4; animation: av-flow 1.1s linear infinite; }
.av-fig[data-topic="7"] .pt-users .ln, .av-fig[data-topic="7"] .pt-in .ln { stroke: var(--accent); }
.av-fig[data-topic="7"] .pt-users text { fill: var(--accent); }
.av-fig[data-topic="7"] .pt-in .sk-shaft { stroke-dasharray: 3 4; animation: av-flow 1.1s linear infinite; }
.av-fig[data-topic="7"] .x7 { opacity: 1; }
.av-fig[data-topic="7"] .pt-status .box { fill: var(--accent); stroke: var(--accent); }
.av-fig[data-topic="7"] .pt-status text { fill: var(--paper); }
.av-fig[data-topic="7"] .pt-status .sk-dot { fill: var(--bronze); }
@keyframes av-flow { to { stroke-dashoffset: -14; } }

/* The topic numbers sit on their parts: all of them at rest (and with scripts
   off), then only the one being read, filled garnet. */
.av-sk .sk-num { transition: opacity .3s ease; }
.av-sk .sk-num circle { fill: var(--card); stroke: var(--ink-mid); stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill .3s ease, stroke .3s ease; }
.av-sk .sk-num text { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0; fill: var(--ink); transition: fill .3s ease; }
.av-fig[data-topic] .sk-num { opacity: 0; }
.av-fig[data-topic="1"] .sk-n1, .av-fig[data-topic="2"] .sk-n2, .av-fig[data-topic="3"] .sk-n3, .av-fig[data-topic="4"] .sk-n4,
.av-fig[data-topic="5"] .sk-n5, .av-fig[data-topic="6"] .sk-n6, .av-fig[data-topic="7"] .sk-n7 { opacity: 1; }
.av-fig[data-topic="1"] .sk-n1 circle, .av-fig[data-topic="2"] .sk-n2 circle, .av-fig[data-topic="3"] .sk-n3 circle, .av-fig[data-topic="4"] .sk-n4 circle,
.av-fig[data-topic="5"] .sk-n5 circle, .av-fig[data-topic="6"] .sk-n6 circle, .av-fig[data-topic="7"] .sk-n7 circle { fill: var(--accent); stroke: var(--accent); }
.av-fig[data-topic="1"] .sk-n1 text, .av-fig[data-topic="2"] .sk-n2 text, .av-fig[data-topic="3"] .sk-n3 text, .av-fig[data-topic="4"] .sk-n4 text,
.av-fig[data-topic="5"] .sk-n5 text, .av-fig[data-topic="6"] .sk-n6 text, .av-fig[data-topic="7"] .sk-n7 text { fill: var(--paper); }

/* Topic 5 — its three comparisons play on the sketch itself. */
.av-fig[data-topic="5"][data-sub="a"] .sk-hostlabel, .av-fig[data-topic="5"][data-sub="b"] .sk-hostlabel { opacity: 0; }
.av-sk .sk-hostlabel { transition: opacity .25s ease, fill .3s ease; }
.av-fig[data-topic="5"][data-sub="a"] .x5a, .av-fig[data-topic="5"][data-sub="b"] .x5b, .av-fig[data-topic="5"][data-sub="c"] .x5c { opacity: 1; }
.av-sk .alt1, .av-sk .alt2 { fill: var(--accent); }
.av-sk .vs { fill: var(--faint); }
.av-fig[data-topic="5"][data-sub="a"] .sk-host-n { stroke: var(--accent); animation: av-dash 4.4s ease-in-out infinite; }
.av-fig[data-topic="5"][data-sub="a"] .alt1, .av-fig[data-topic="5"][data-sub="b"] .alt1 { animation: av-alt-a 4.4s ease-in-out infinite; }
.av-fig[data-topic="5"][data-sub="a"] .alt2, .av-fig[data-topic="5"][data-sub="b"] .alt2 { animation: av-alt-b 4.4s ease-in-out infinite; }
.av-fig[data-topic="5"][data-sub="b"] .sk-host-n { stroke: var(--accent); animation: av-on-a 4.4s ease-in-out infinite; }
.av-fig[data-topic="5"][data-sub="b"] .sk-host-w { stroke: var(--accent); animation: av-on-b 4.4s ease-in-out infinite; }
.av-fig[data-topic="5"][data-sub="b"] .pt-db .box { stroke: var(--accent); }
.av-fig[data-topic="5"][data-sub="b"] .pt-db text { fill: var(--accent); }
.av-fig[data-topic="5"][data-sub="c"] .pt-ui { opacity: 0; }
.av-sk .sk-ring { fill: none; stroke: var(--accent); }
.av-fig[data-topic="5"][data-sub="c"] .sk-ring { animation: av-ring 8s ease-in-out infinite; }
@keyframes av-dash { 0%, 44% { stroke-dasharray: 4 3.5; } 50%, 94% { stroke-dasharray: 420 0; } 100% { stroke-dasharray: 4 3.5; } }
@keyframes av-alt-a { 0%, 44% { fill: var(--accent); } 50%, 94% { fill: var(--faint); } 100% { fill: var(--accent); } }
@keyframes av-alt-b { 0%, 44% { fill: var(--faint); } 50%, 94% { fill: var(--accent); } 100% { fill: var(--faint); } }
@keyframes av-on-a { 0%, 44% { opacity: 1; } 50%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes av-on-b { 0%, 44% { opacity: 0; } 50%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes av-ring { 0%, 17% { transform: translateY(0); } 20%, 37% { transform: translateY(21.5px); } 40%, 57% { transform: translateY(43px); } 60%, 77% { transform: translateY(64.5px); } 80%, 97% { transform: translateY(86px); } 100% { transform: translateY(0); } }

/* Everything a topic is NOT about steps back a little. */
.av-fig[data-topic="3"] .pt:not(.pt-host):not(.pt-db):not(.pt-hd):not(.pt-prog),
.av-fig[data-topic="4"] .pt:not(.pt-host):not(.pt-db):not(.pt-svc):not(.pt-prog),
.av-fig[data-topic="5"][data-sub="a"] .pt:not(.pt-host):not(.pt-prog),
.av-fig[data-topic="5"][data-sub="b"] .pt:not(.pt-host):not(.pt-db):not(.pt-hd):not(.pt-prog),
.av-fig[data-topic="5"][data-sub="c"] .pt:not(.pt-users):not(.pt-in):not(.pt-ui):not(.pt-form),
.av-fig[data-topic="6"] .pt:not(.pt-prog):not(.pt-link):not(.pt-svc),
.av-fig[data-topic="7"] .pt:not(.pt-users):not(.pt-in):not(.pt-status) { opacity: .5; }

@media (max-width: 860px) {
  .av-topics { display: block; margin-top: 26px; }
  .av-fig { position: sticky; top: var(--av-hdr); z-index: 5; margin-left: calc(-1 * var(--gl)); margin-right: calc(-1 * var(--gr)); padding: 8px 12px 10px; border-left: 0; border-right: 0; box-shadow: 0 10px 18px -14px rgba(var(--ink-rgb), .35); }
  .av-fig-cap { margin-bottom: 4px; max-width: 420px; margin-left: auto; margin-right: auto; }
  .av-sk { max-width: 420px; margin: 0 auto; }
  .av-tlist { margin-top: 8px; }
  .av-t { padding: 22px 0; gap: 0 12px; }
  .av-t:first-child { border-top: 0; }
}
@media (max-width: 860px) and (max-height: 579px) { .av-fig { position: static; } }
@media (max-width: 400px) { .av-steps button { width: 22px; height: 22px; } }

/* ══ 3 · How the time is used (dark band) ══ */
.av-dark { background: var(--ink); color: var(--on-dark); }
.av-time { margin-top: 28px; }
.av-time-bar { display: flex; height: 56px; border: 1px solid rgba(var(--on-dark-rgb), .32); }
.av-time-seg { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 0 16px; border-right: 1px solid rgba(var(--on-dark-rgb), .32); }
.av-time-seg:last-child { border-right: 0; }
.av-time-seg em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--on-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-time-seg small { font-family: var(--font-mono); font-size: 10.5px; line-height: 1.5; color: rgba(var(--on-dark-rgb), .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-time-seg.is-lab { background-color: rgba(201, 160, 92, .16); }
.av-time-seg.is-lab em { color: var(--bronze); }
.av-time-seg.is-range { padding: 0; background-image: repeating-linear-gradient(135deg, rgba(var(--on-dark-rgb), .3) 0 1px, transparent 1px 6px); }
.av-time-ends { position: relative; height: 18px; margin-top: 9px; font-family: var(--font-mono); font-size: 11px; color: rgba(var(--on-dark-rgb), .55); }
.av-time-ends > span { position: absolute; top: 0; white-space: nowrap; }
.av-own { margin: 26px 0 0; max-width: 34em; font-family: var(--font-display); font-weight: 300; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.6; color: var(--on-dark); text-wrap: pretty; }
.av-dark-p { margin: 14px 0 0; max-width: 62ch; font-size: 15.5px; line-height: 1.8; color: rgba(var(--on-dark-rgb), .78); }
.av-dark-p + .av-dark-p { margin-top: 8px; }
.av-room { margin-top: 56px; padding-top: 48px; border-top: 1px solid rgba(var(--on-dark-rgb), .16); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; align-items: center; }
.av-seats { display: block; width: 100%; max-width: 440px; height: auto; margin-top: 30px; overflow: visible; font-family: var(--font-mono); }
.av-seats .dr { fill: none; stroke: rgba(var(--on-dark-rgb), .6); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.av-seats .dr.is-lead { stroke: var(--bronze); }
.av-seats .dr.is-table { stroke: rgba(var(--on-dark-rgb), .34); }
.av-seats text { font-size: 9.5px; fill: rgba(var(--on-dark-rgb), .6); letter-spacing: .04em; }
.av-seats text.lang-zh { font-family: var(--font-zh); font-size: 10.5px; }
.av-seats text.is-lead { fill: var(--bronze); }
.av-seats.is-armed .dr { stroke-dasharray: var(--len, 120); stroke-dashoffset: var(--len, 120); }
.av-seats.is-armed.is-in .dr { stroke-dashoffset: 0; transition: stroke-dashoffset .7s ease calc(var(--i, 0) * 90ms); }
@media (max-width: 860px) {
  .av-room { grid-template-columns: minmax(0, 1fr); margin-top: 44px; padding-top: 40px; }
  .av-time-seg { padding: 0 10px; }
  .av-time-seg small { display: none; }
}

/* What you leave with (dark band) and Before class (light): numbered lists. */
.av-take { margin-top: 40px; max-width: 780px; }
.av-take-list, .av-before { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.av-take-list li, .av-before li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15.5px; line-height: 1.75; }
.av-take-list li { color: var(--on-dark); }
.av-before li { max-width: 46em; color: var(--ink-soft); }
.av-take-n { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; border: 1px solid currentColor; font-family: var(--font-mono); font-size: 11px; line-height: 1; }
.av-take-list .av-take-n { color: var(--bronze); }
.av-before .av-take-n { color: var(--accent); }

.av-photo { margin: 0; }
.av-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid rgba(var(--on-dark-rgb), .16); }

/* The testimonial: a quote you can see is a quote — a large bronze mark, the
   words set off by a rule, the speaker below. Chinese stays upright. */
.av-quote { position: relative; margin: 0; padding: 6px 0 0 30px; border-left: 2px solid var(--bronze); }
.av-quote-mark { position: absolute; left: 22px; top: -34px; font-family: var(--font-display); font-size: 92px; line-height: 1; color: var(--bronze); opacity: .85; }
.av-quote blockquote { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.6; color: var(--on-dark); }
.av-quote blockquote .lang-zh { font-style: normal; }
.av-quote figcaption { margin-top: 16px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: rgba(var(--on-dark-rgb), .6); }
.av-quote figcaption .lang-zh { font-family: var(--font-zh); letter-spacing: .02em; }

/* ══ 4 · Who teaches + projects ══ */
.av-proj { display: block; border: 1px solid var(--hairline); background: var(--paper-raised); transition: border-color .2s ease; }
.av-proj:hover { border-color: var(--hairline); }
.av-projs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.av-proj-name { font-family: var(--font-mono); font-size: 13px; color: var(--ink); border-bottom: 1px solid transparent; transition: border-color .16s ease, color .16s ease; }
.av-proj-name:hover { color: var(--accent); border-bottom-color: var(--accent); }
.av-proj-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-family: var(--font-mono); font-size: 11.5px; }
.av-proj-links a { color: var(--accent); }
.av-proj-links a:hover { text-decoration: underline; text-underline-offset: 2px; }
.av-proj { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); align-items: center; }
.av-proj-b { min-width: 0; overflow-wrap: anywhere; }
.av-proj-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-right: 1px solid var(--hairline); }
@media (max-width: 520px) { .av-proj-img { border-right: 0; border-bottom: 1px solid var(--hairline); } }
@media (max-width: 520px) {
  .av-proj { grid-template-columns: minmax(0, 1fr); }
}
.av-proj-b { padding: 14px 18px 16px; }

/* ══ Motion off: still water — every state is still reached, nothing moves ══ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .rise-delay, .breath { animation: none !important; }
  .av-sk *, .av-seats * { animation: none !important; transition: none !important; }
  .av-fig[data-topic="5"][data-sub="b"] .sk-host-w { stroke-dasharray: 4 3.5; }
  .av-fig[data-topic="5"][data-sub="c"] .sk-ring { opacity: 0; }
  .av-line-track::before { transition: none !important; transform: none !important; }
}
