/* Concept A, "The studio". claude, 2026-11-13.
   Large working windows over the approved scene, a slim caption beside them, one warm accent,
   hairlines and solid surfaces on a strict grid. Nothing here touches .assembly or .pill. */

:root {
  --as-paper: #f6f3ec;
  --as-paper-2: #ece7dc;
  --as-paper-3: #e2dccf;
  --as-ink: #141c18;
  --as-ink-2: #46514b;
  --as-ink-3: #5f6a64;
  --as-line: rgba(20, 28, 24, .13);
  --as-line-2: rgba(20, 28, 24, .26);
  --as-night: #0f1613;
  --as-night-2: #172019;
  --as-cream: #f3eee3;
  --as-cream-2: #bcc3bb;
  --as-nline: rgba(243, 238, 227, .13);
  --as-nline-2: rgba(243, 238, 227, .26);
  --as-accent: #d24a22;
  --as-accent-ink: #b33d19;
  --as-blue: #1d2f5a;
  --as-text: 'Geist', system-ui, sans-serif;
  --as-display: 'Outfit', 'Geist', system-ui, sans-serif;
  --as-mono: 'Geist Mono', ui-monospace, monospace;
  --as-serif: 'Newsreader', Georgia, serif;
  --as-colgap: clamp(16px, 1.7vw, 28px);
}

/* ------------------------------------------------------------ frame -- */
.as-scr { position: relative; font-family: var(--as-text); color: var(--as-cream); }
.as-pin { position: sticky; top: 0; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--pill-clear) + 6px) 0 clamp(24px, 4svh, 44px); }
.as-hold { height: calc((var(--hold, 200) - 100) * 1svh); }
.as-grid { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--as-colgap); }

.as-scr :focus-visible, .as-valve:focus-visible { outline: 2px solid var(--as-accent); outline-offset: 3px; border-radius: 3px; }
.as-scr ::selection { background: var(--as-accent); color: #fff; }

/* Ink that follows the scene behind it. */
.as-scr [data-fall-ink] { color: var(--as-cream); --as-soft: #c9cfc7; transition: color .4s ease; }
/* fall.js gives the tone of the scene; a-studio.js refines it into data-ink, the ink with the
   higher contrast against the scene's real colour behind the caption. */
.as-scr [data-fall-ink][data-tone="mid"] { color: #fff; --as-soft: #eef2f4; text-shadow: 0 1px 2px rgba(6, 24, 44, .45); }
.as-scr [data-fall-ink][data-tone="light"] { color: var(--as-ink); --as-soft: var(--as-ink-2); text-shadow: none; }
.as-scr [data-fall-ink][data-ink="light"] { color: var(--as-cream); --as-soft: #e4e8e2; text-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 0 16px rgba(0, 12, 6, .3); }
.as-scr [data-fall-ink][data-ink="dark"] { color: var(--as-ink); --as-soft: var(--as-ink-2); text-shadow: none; }
html.rm .as-scr [data-fall-ink] { transition: none; }
html.rm .as-scr *, html.rm .as-scr *::before, html.rm .as-scr *::after { transition: none !important; animation: none !important; }

/* ------------------------------------------------------------ type -- */
.as-kicker { margin: 0 0 14px; font: 500 12px/1.3 var(--as-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--as-soft, var(--as-ink-3)); }
.as-kicker--ink { color: var(--as-ink-3); }
.as-h2 { margin: 0; font: 500 clamp(34px, 3.5vw, 54px)/1.02 var(--as-display); letter-spacing: -.035em; text-wrap: balance; }
.as-sub { margin: 18px 0 0; font: 400 17px/1.45 var(--as-text); color: var(--as-soft); max-width: 22rem; }
.as-head { grid-column: 1 / -1; margin-bottom: clamp(20px, 3.4svh, 34px); }
.as-cap { grid-column: 1 / span 3; align-self: center; padding-right: 8px; }
.as-side > .as-win { grid-column: 4 / -1; }
.as-sample { display: inline-block; margin-right: 10px; padding: 3px 6px 2px; border: 1px solid var(--as-line-2); border-radius: 2px; font: 500 10px/1.2 var(--as-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--as-ink-3); vertical-align: 2px; font-style: normal; }
.as-sample--dark { border-color: var(--as-nline-2); color: var(--as-cream-2); margin: 0; }

/* windows: solid surfaces with a hairline */
.as-win { position: relative; overflow: hidden; border-radius: 4px; }
.as-win--paper { background: var(--as-paper); color: var(--as-ink); box-shadow: 0 0 0 1px rgba(20, 28, 24, .2), 0 30px 60px -40px rgba(0, 0, 0, .55); }
.as-win--night { background: var(--as-night); color: var(--as-cream); box-shadow: 0 0 0 1px rgba(0, 0, 0, .45), 0 30px 60px -40px rgba(0, 0, 0, .6); }
.as-win--sim { background: #050b14; color: var(--as-cream); box-shadow: 0 0 0 1px rgba(243, 238, 227, .18), 0 30px 60px -40px rgba(0, 0, 0, .7); }

/* buttons */
.as-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border: 1px solid transparent; border-radius: 3px; font: 500 15px/1 var(--as-text); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.as-btn--ink { background: var(--as-ink); color: var(--as-paper); }
.as-btn--ink:hover { background: #2a3731; }
.as-btn--placeholder { min-height: 54px; padding: 0 28px; background: transparent; color: inherit; border: 1.5px dashed currentColor; font-size: 16px; cursor: not-allowed; }

/* handwriting on lined paper, shared by two screens */
.as-hand { list-style: none; margin: 0; padding: 4px 0 0; }
.as-hand li { display: flex; align-items: center; gap: 10px; min-height: 40px; border-bottom: 1px solid rgba(60, 100, 160, .2); }
.as-hand__t { font: italic 400 22px/1.2 var(--as-serif); color: var(--as-blue); letter-spacing: .005em; white-space: nowrap; }
.as-hand__t i { font-style: italic; }

/* ------------------------------------------------- 1. three things -- */
.as-tri { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); }
.as-tri__col { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 18px 20px 22px; border-left: 1px solid var(--as-line); }
.as-tri__col--in { border-left: 0; background: var(--as-paper-2); }
.as-tri__label { display: flex; align-items: center; min-height: 112px; margin: 0; padding-bottom: 14px; font: 500 15px/1.3 var(--as-text); color: var(--as-ink-2); }
.as-tri__card { position: relative; flex: 1; padding: 14px 16px 12px; background: #fffdf8; border: 1px solid var(--as-line); border-radius: 2px; }
.as-tri__q { margin: 0 0 6px; font-size: 14.5px; line-height: 1.4; color: var(--as-ink-2); }
.as-tri__stamp { position: absolute; right: 12px; bottom: 10px; width: 54px; height: 54px; fill: none; stroke: var(--as-accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: rotate(-8deg) scale(.86); transition: opacity .3s, transform .3s; }
#tri[data-step="2"] .as-tri__stamp { opacity: .9; transform: rotate(-8deg); }
/* what each part did to the answer */
.as-hand li .as-hand__t { position: relative; }
#tri .as-hand li[data-l="1"] .as-hand__t, #tri .as-hand__u { background-image: linear-gradient(transparent 62%, rgba(210, 74, 34, .22) 62%); background-size: 0 100%; background-repeat: no-repeat; transition: background-size .35s ease; }
#tri:not([data-step="-1"]) .as-hand li[data-l="1"] .as-hand__t, #tri:not([data-step="-1"]) .as-hand__u { background-size: 100% 100%; }
#tri .as-hand__n { padding: 0 3px; margin: 0 -3px; border-radius: 2px; box-shadow: inset 0 0 0 0 var(--as-ink); transition: box-shadow .3s; }
#tri[data-step="1"] .as-hand__n, #tri[data-step="2"] .as-hand__n { box-shadow: inset 0 0 0 1.5px var(--as-ink); }

.as-part { display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-content: start; min-height: 98px; margin: 0 0 14px; padding: 12px 12px 12px 10px; background: none; border: 1px solid var(--as-line-2); border-radius: 3px; text-align: left; color: var(--as-ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.as-part:hover { background: rgba(20, 28, 24, .045); border-color: var(--as-ink); }
.as-part[aria-pressed="true"] { background: var(--as-ink); color: var(--as-paper); border-color: var(--as-ink); }
.as-part__ico { grid-row: 1 / span 2; width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.as-part__ico .hl { stroke: var(--as-accent); stroke-width: 2.2; opacity: .9; }
.as-part__k { font: 500 22px/1.1 var(--as-display); letter-spacing: -.02em; }
.as-part__t { font: 400 15px/1.3 var(--as-text); opacity: .86; }

.as-out { position: relative; flex: 1; padding: 14px 16px; border-radius: 3px; background: var(--as-paper-2); border: 1px solid transparent; transition: background .25s, border-color .25s; }
.as-out > * { transition: opacity .3s; }
.as-tri__col.is-off .as-out { background: transparent no-repeat center / 18px 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M9 15V3M4 8l5-5 5 5' fill='none' stroke='%23141c18' stroke-opacity='.3' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); border: 1px dashed var(--as-line-2); }
.as-tri__col.is-off .as-out > * { opacity: 0; }
/* the thread that carries the answer from part to part */
.as-tri__col[data-k] .as-out::before { content: ''; position: absolute; top: 50%; left: -22px; width: 21px; height: 2px; margin-top: -1px; background: var(--as-accent); transform-origin: left; transition: transform .3s ease; }
.as-tri__col[data-k] .as-out::after { content: ''; position: absolute; top: 50%; left: -5px; width: 7px; height: 7px; margin-top: -4px; border-top: 2px solid var(--as-accent); border-right: 2px solid var(--as-accent); transform: rotate(45deg); transition: opacity .3s; }
.as-tri__col.is-off .as-out::before { transform: scaleX(0); }
.as-tri__col.is-off .as-out::after { opacity: 0; }
.as-out__label { margin: 0 0 10px; font: 500 10.5px/1.3 var(--as-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--as-ink-3); }
.as-out__list { list-style: none; margin: 0; padding: 0; }
.as-out__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; border-top: 1px solid var(--as-line); font-size: 15px; line-height: 1.3; }
.as-out__list li::before { content: ''; flex: none; width: 9px; height: 5px; margin-right: -2px; border-left: 2px solid var(--as-accent); border-bottom: 2px solid var(--as-accent); transform: rotate(-45deg) translateY(-3px); }
.as-out__list span { flex: 1; }
.as-out__list b { font: 500 11.5px/1 var(--as-mono); color: var(--as-ink-3); white-space: nowrap; }
.as-out__calc { margin: 0 0 8px; font: 400 15px/1.35 var(--as-mono); font-variant-numeric: tabular-nums; }
.as-out__calc b { font-weight: 600; }
.as-out__calc--sum { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--as-line); }
.as-out__mark { margin: 0; font: 500 52px/1 var(--as-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.as-out__mark small { font-size: 22px; margin-left: 6px; color: var(--as-ink-3); letter-spacing: -.01em; }
.as-out__ok { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font: 500 15px/1 var(--as-text); color: var(--as-accent-ink); }
.as-out__ok svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------- 2. simulations -- */
.as-win--sim { justify-self: end; width: min(100%, calc((100svh - var(--pill-clear) - 120px) * 1.7778)); }
.as-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 50px; padding: 0 16px 0 6px; border-bottom: 1px solid var(--as-nline); }
.as-tabs { display: flex; gap: 2px; align-self: stretch; }
.as-tabs button { position: relative; display: inline-flex; align-items: center; min-height: 50px; padding: 0 14px; background: none; border: 0; color: var(--as-cream-2); font: 500 15px/1 var(--as-text); cursor: pointer; }
.as-tabs button:hover, .as-tabs button[aria-selected="true"] { color: var(--as-cream); }
.as-tabs button[aria-selected="true"]::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--as-accent); }
.as-bar__link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--as-cream); font-size: 14px; text-decoration: none; white-space: nowrap; }
.as-bar__link:hover { text-decoration: underline; text-underline-offset: .25em; }
.as-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #020713; }
.as-stage__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.as-stage__box { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; }
.as-stage__box iframe { width: 100%; height: 100%; border: 0; display: block; background: #020713; }
.as-stage__cover { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(2, 7, 19, .34); }
.as-stage__load { position: absolute; inset: 0; display: grid; place-items: center; font: 500 12px/1 var(--as-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--as-cream-2); pointer-events: none; }
.as-play { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 26px 0 22px; background: var(--as-paper); color: var(--as-ink); border: 0; border-radius: 999px; font: 500 16px/1 var(--as-text); cursor: pointer; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); transition: transform .15s, background .15s; }
.as-play:hover { background: #fff; transform: scale(1.03); }
.as-play svg { width: 16px; height: 16px; fill: var(--as-accent); }

/* ------------------------------------------------- 3. before / after -- */
.as-ba { height: clamp(420px, calc(100svh - var(--pill-clear) - 64px), 560px); background: var(--as-night); box-shadow: 0 0 0 1px rgba(20, 28, 24, .25), 0 30px 60px -40px rgba(0, 0, 0, .6); user-select: none; -webkit-user-select: none; }
.as-ba__after, .as-ba__before { position: absolute; inset: 0; }
.as-ba__before { clip-path: inset(0 calc(100% - var(--x)) 0 0); background: #fcfbf7; color: #222; }
.as-ba__handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 44px; margin-left: -22px; cursor: ew-resize; touch-action: none; z-index: 4; }
.as-ba__handle::before { content: ''; position: absolute; left: 21px; top: 0; bottom: 0; width: 2px; background: var(--as-accent); }
.as-ba__grip { position: absolute; left: 2px; top: 50%; width: 40px; height: 40px; margin-top: -20px; display: grid; place-items: center; border-radius: 50%; background: var(--as-accent); color: #fff; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .55); transition: transform .15s; }
.as-ba__grip svg { width: 18px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.as-ba__handle:hover .as-ba__grip, .as-ba.is-drag .as-ba__grip { transform: scale(1.08); }
.as-ba:has(.as-ba__range:focus-visible) .as-ba__grip { outline: 2px solid #fff; outline-offset: 3px; }
.as-ba__range { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; opacity: 0; margin: 0; pointer-events: none; }
.as-ba__lab { position: absolute; top: 14px; z-index: 3; padding: 5px 9px 4px; border-radius: 2px; font: 500 10.5px/1 var(--as-mono); letter-spacing: .1em; text-transform: uppercase; pointer-events: none; }
.as-ba__lab--b { left: 14px; background: var(--as-ink); color: var(--as-paper); }
.as-ba__lab--a { right: 14px; background: var(--as-accent); color: #fff; }

/* the plain notes */
.as-notes { position: absolute; inset: 0; padding: 50px 56px 24px 92px; background-image: linear-gradient(90deg, transparent 70px, rgba(200, 60, 50, .35) 70px, rgba(200, 60, 50, .35) 71.5px, transparent 71.5px), repeating-linear-gradient(180deg, transparent 0 37px, rgba(60, 100, 160, .18) 37px 38px); background-position: 0 0, 0 92px; }
.as-notes__head { margin: 0 0 14px; font: 600 14px/1.4 var(--as-text); color: #333; }
.as-notes__head span:not(.as-sample) { margin-left: 8px; font-weight: 400; color: #666; }
.as-notes__head .as-sample { margin-left: 12px; }
.as-notes__lines { list-style: none; margin: 0; padding: 0; font: 400 17px/38px 'Times New Roman', Times, serif; color: #222; max-width: 46rem; }
.as-notes__lines li { white-space: nowrap; }

/* the lesson */
.as-les { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr); grid-template-areas: "video top" "video side" "video audio" "video quiz"; gap: 12px 14px; padding: 18px; color: var(--as-cream); }
.as-les__top { grid-area: top; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 24px 0 2px; }
.as-les__sim { aspect-ratio: 16 / 9; }
.as-les__title { margin: 0; font: 500 28px/1 var(--as-display); letter-spacing: -.03em; }
.as-les__video { grid-area: video; position: relative; min-height: 0; border-radius: 3px; overflow: hidden; background: #020713; }
/* the clip and poster carry dark bands top and bottom: crop them away */
.as-les__video video { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; }
.as-les__tag { position: absolute; left: 10px; top: 10px; margin: 0; padding: 4px 7px 3px; border-radius: 2px; background: rgba(5, 11, 20, .72); font: 500 10px/1 var(--as-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--as-cream); }
.as-les__sim { grid-area: side; position: relative; display: block; min-height: 0; border-radius: 3px; overflow: hidden; color: var(--as-cream); text-decoration: none; background: #020713; }
.as-les__sim img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transform: scale(1.17); transition: opacity .2s, transform .4s; }
.as-les__sim:hover img { opacity: 1; transform: scale(1.21); }
.as-les__go { position: absolute; right: 10px; bottom: 10px; padding: 8px 12px; border-radius: 999px; background: var(--as-paper); color: var(--as-ink); font: 500 13px/1 var(--as-text); }
.as-les__audio { grid-area: audio; display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px 12px; border-radius: 3px; background: var(--as-night-2); border: 1px solid var(--as-nline); }
.as-les__pbtn { grid-row: 1 / span 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px dashed var(--as-nline-2); }
.as-les__pbtn svg { width: 13px; height: 13px; fill: var(--as-cream-2); }
.as-les__wave { width: 100%; height: 22px; }
.as-les__wave rect { fill: rgba(243, 238, 227, .32); }
.as-les__note { font: 500 10.5px/1.3 var(--as-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--as-cream-2); }
.as-les__quiz { grid-area: quiz; align-self: stretch; padding: 12px 12px 12px 14px; border-radius: 3px; background: var(--as-night-2); border: 1px solid var(--as-nline); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; align-items: center; column-gap: 12px; row-gap: 10px; }
.as-les__q { margin: 0; font: 500 15px/1.3 var(--as-text); grid-column: 1 / -1; }
.as-les__opts { display: flex; gap: 6px; flex-wrap: wrap; }
.as-les__opts button { min-height: 40px; padding: 0 12px; background: none; border: 1px solid var(--as-nline-2); border-radius: 3px; color: var(--as-cream); font: 500 13.5px/1 var(--as-text); cursor: pointer; transition: background .15s, border-color .15s; }
.as-les__opts button:hover { border-color: var(--as-cream); }
.as-les__opts button.is-right { background: var(--as-cream); color: var(--as-ink); border-color: var(--as-cream); }
.as-les__opts button.is-wrong { border-color: var(--as-accent); color: #ffc7b2; text-decoration: line-through; }
.as-les__fb { margin: 0; font: 400 13px/1.3 var(--as-mono); color: var(--as-cream-2); white-space: nowrap; }

/* ------------------------------------------------- 4. marking -- */
.as-mk { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.as-mk__paper { display: flex; flex-direction: column; justify-content: center; padding: 22px 26px 26px; background: #fffdf8; border-right: 1px solid var(--as-line); }
.as-mk__q { margin: 0 0 16px; font-size: 15.5px; line-height: 1.5; color: var(--as-ink-2); }
.as-hand--mk li { min-height: 52px; gap: 12px; }
.as-hand--mk .as-hand__t { font-size: 25px; }
.as-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 12px; background: var(--as-ink); color: var(--as-paper); font: 600 12px/1 var(--as-mono); white-space: nowrap; transition: opacity .25s, transform .25s; }
.as-chip--neg { background: var(--as-accent); color: #fff; }
.as-chip.is-off { opacity: 0; transform: translateX(-6px); }
.as-mk__side { display: flex; flex-direction: column; padding: 22px 24px 22px; }
.as-mk__label { margin: 0 0 8px; font: 500 11px/1.3 var(--as-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--as-ink-3); }
.as-mk__rules { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--as-line); }
.as-mk__rules li { border-bottom: 1px solid var(--as-line); }
.as-sw { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 8px 4px; background: none; border: 0; text-align: left; color: var(--as-ink); cursor: pointer; }
.as-sw:hover .as-sw__track { box-shadow: inset 0 0 0 1px var(--as-ink); }
.as-sw__track { position: relative; width: 52px; height: 30px; border-radius: 15px; background: var(--as-paper-3); box-shadow: inset 0 0 0 1px var(--as-line-2); transition: background .2s; }
.as-sw__track span { position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.as-sw[aria-checked="true"] .as-sw__track { background: var(--as-ink); }
.as-sw[aria-checked="true"] .as-sw__track span { transform: translateX(22px); }
.as-sw__t { font: 400 16.5px/1.3 var(--as-text); }
.as-sw__m { font: 600 14px/1 var(--as-mono); color: var(--as-ink-3); }
.as-sw[aria-checked="false"] .as-sw__t, .as-sw[aria-checked="false"] .as-sw__m { color: var(--as-ink-3); text-decoration: line-through; text-decoration-color: rgba(20, 28, 24, .35); }
.as-sw[data-rule="unit"][aria-checked="true"] .as-sw__m { color: var(--as-accent-ink); }
.as-mk__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 22px; }
.as-mk__mark { margin: 0; display: flex; align-items: baseline; gap: 8px; font: 500 64px/1 var(--as-display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.as-mk__mark span { font-size: 28px; letter-spacing: -.01em; color: var(--as-ink-3); }
.as-mk__mark output { display: inline-block; }
.as-mk__mark output.is-bump { animation: as-bump .35s ease; }
@keyframes as-bump { 0% { transform: translateY(-6px); opacity: .3; } 100% { transform: none; opacity: 1; } }
html.rm .as-mk__mark output.is-bump { animation: none; }
#mk-approve { min-width: 168px; }
#mk-approve.is-done { background: transparent; color: var(--as-accent-ink); border-color: var(--as-accent-ink); cursor: default; }
#mk-approve svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------- 5. builds -- */
.as-tiles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.as-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 0; padding: 26px 24px 22px; background: none; border: 0; border-left: 1px solid var(--as-line); text-align: left; color: var(--as-ink); cursor: pointer; transition: background .25s; }
.as-tile:first-child { border-left: 0; }
.as-tile:hover, .as-tile[aria-pressed="true"] { background: #fbf9f4; }
.as-tile__name { font: 500 19px/1.2 var(--as-display); letter-spacing: -.015em; }
.as-art { width: 100%; height: auto; overflow: visible; }
.as-art .ln, .as-art .frame { fill: none; stroke: var(--as-ink); stroke-width: 1; opacity: .55; }
.as-art .frame { opacity: .8; fill: #fff; }
/* pitch */
.as-art--pitch .post { fill: none; stroke: var(--as-ink); stroke-width: 1.6; stroke-linecap: round; }
.as-art--pitch .us circle { fill: var(--as-accent); transition: transform .6s ease; }
.as-art--pitch .them circle { fill: #fff; stroke: var(--as-ink); stroke-width: 1.3; transition: transform .6s ease; }
.as-art--pitch .pass { fill: none; stroke: var(--as-accent); stroke-width: 1.6; stroke-dasharray: 130; stroke-dashoffset: 130; stroke-linecap: round; stroke-linejoin: round; transition: stroke-dashoffset .9s ease; }
.as-tile:hover .as-art--pitch .pass, .as-tile[aria-pressed="true"] .as-art--pitch .pass { stroke-dashoffset: 0; }
.as-tile:hover .as-art--pitch .them circle, .as-tile[aria-pressed="true"] .as-art--pitch .them circle { transform: translate(-6px, 3px); }
/* keypad */
.as-art--deck .say { font: italic 400 15px var(--as-serif); fill: var(--as-blue); }
.as-art--deck .arrow { fill: none; stroke: var(--as-ink-3); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.as-art--deck .body { fill: #24292a; }
.as-art--deck .keys rect { fill: #0b0d0c; stroke: rgba(255, 255, 255, .08); transition: fill .3s; }
.as-art--deck .mic { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; opacity: 0; transition: opacity .3s .15s; }
.as-art--deck .mic rect { fill: none; }
.as-tile:hover .as-art--deck .keys .new, .as-tile[aria-pressed="true"] .as-art--deck .keys .new { fill: var(--as-accent); }
.as-tile:hover .as-art--deck .mic, .as-tile[aria-pressed="true"] .as-art--deck .mic { opacity: 1; }
/* website */
.as-art--web .dot { fill: var(--as-ink); opacity: .35; }
.as-art--web .page { transition: transform 1.4s cubic-bezier(.6, 0, .3, 1); }
.as-tile:hover .as-art--web .page, .as-tile[aria-pressed="true"] .as-art--web .page { transform: translateY(-120px); }
/* DJ */
.as-art--dj .plat { fill: #1b1f1e; }
.as-art--dj .groove { fill: none; stroke: rgba(255, 255, 255, .12); }
.as-art--dj .lab { fill: var(--as-accent); }
.as-art--dj .mark { stroke: #fff; stroke-width: 1.4; stroke-linecap: round; }
.as-art--dj .spin { fill: #fff; }
.as-art--dj .deck { transform-origin: 62px 58px; transform-box: view-box; }
.as-tile:hover .as-art--dj .deck, .as-tile[aria-pressed="true"] .as-art--dj .deck { animation: as-spin 1.8s linear infinite; }
@keyframes as-spin { to { transform: rotate(360deg); } }
.as-art--dj .arm { fill: none; stroke: var(--as-ink-2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.as-art--dj .pivot { fill: var(--as-paper-3); stroke: var(--as-ink-2); stroke-width: 1.4; }
.as-art--dj .wave rect { fill: var(--as-ink); opacity: .55; }
.as-art--dj .wave rect.past { fill: var(--as-accent); opacity: .9; }
.as-art--dj .head { stroke: var(--as-accent); stroke-width: 1.6; transition: transform 2.4s linear; }
.as-tile:hover .as-art--dj .head, .as-tile[aria-pressed="true"] .as-art--dj .head { transform: translateX(28px); }
html.rm .as-art * { transition: none !important; animation: none !important; }

/* ------------------------------------------------- 6. for your job -- */
.as-fit { grid-column: 1 / -1; border-top-left-radius: 0; }
/* over the busiest part of the forest the caption gets its own solid tab on the window */
.as-yr .as-head { justify-self: start; margin-bottom: 0; padding: 18px 26px 18px; background: var(--as-night); border-radius: 4px 4px 0 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, .3); }
.as-yr .as-head[data-fall-ink] { color: var(--as-cream); --as-soft: var(--as-cream-2); text-shadow: none; }
.as-fit__jobs { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 22px; border-bottom: 1px solid var(--as-line); background: var(--as-paper-2); }
.as-fit__jobs button { min-height: 42px; padding: 0 16px; background: var(--as-paper); border: 1px solid var(--as-line-2); border-radius: 999px; font: 500 15px/1 var(--as-text); color: var(--as-ink-2); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.as-fit__jobs button:hover { color: var(--as-ink); border-color: var(--as-ink); }
.as-fit__jobs button[aria-checked="true"] { background: var(--as-ink); color: var(--as-paper); border-color: var(--as-ink); }
.as-fit__row { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr) 56px minmax(0, 1fr); align-items: start; padding: clamp(26px, 5svh, 48px) 30px clamp(30px, 5.4svh, 52px); }
.as-fit__part .as-part__ico { width: 40px; height: 40px; margin-bottom: 18px; color: var(--as-ink); }
.as-fit__k { margin: 0 0 8px; font: 500 11px/1.3 var(--as-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--as-ink-3); }
.as-fit__t { margin: 0; min-height: 2.2em; font: 500 clamp(22px, 2vw, 30px)/1.12 var(--as-display); letter-spacing: -.025em; text-wrap: balance; transition: opacity .2s; }
.as-fit__t.is-swap { opacity: 0; }
html.rm .as-fit__t { transition: none; }
.as-fit__part--you .as-fit__t { color: var(--as-accent-ink); }
.as-fit__arrow { position: relative; height: 40px; }
.as-fit__arrow::before { content: ''; position: absolute; left: 8px; right: 10px; top: 19px; height: 2px; background: var(--as-accent); }
.as-fit__arrow::after { content: ''; position: absolute; right: 10px; top: 15px; width: 8px; height: 8px; border-top: 2px solid var(--as-accent); border-right: 2px solid var(--as-accent); transform: rotate(45deg); }

/* ------------------------------------------------- 7. about -- */
.as-ab { align-items: stretch; }
.as-ab__me { grid-column: 1 / span 6; padding: 30px 34px 30px; }
.as-ab__name { margin: 0 0 10px; font: 500 clamp(38px, 3.6vw, 56px)/1 var(--as-display); letter-spacing: -.04em; }
.as-ab__lede { margin: 0 0 22px; font-size: 18px; line-height: 1.45; color: var(--as-ink-2); }
.as-ab__facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--as-line-2); }
.as-ab__facts li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--as-line); font-size: 16.5px; line-height: 1.4; }
.as-ab__facts svg { width: 26px; height: 26px; fill: none; stroke: var(--as-ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.as-ab__cta { grid-column: 7 / -1; padding: 30px 34px; display: flex; flex-direction: column; justify-content: center; --as-soft: var(--as-cream-2); }
.as-ab__h { margin: 0 0 30px; font: 500 clamp(48px, 5.4vw, 86px)/.95 var(--as-display); letter-spacing: -.05em; text-wrap: balance; }
.as-ab__contact { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.as-ab__note { margin: 0; font: 400 12.5px/1.4 var(--as-mono); color: var(--as-cream-2); }
.as-foot { width: calc(min(1360px, 100%) - 2 * var(--gutter)); margin: clamp(22px, 4svh, 48px) auto 0; padding: 14px 20px; background: var(--as-night); color: var(--as-cream); border-radius: 4px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; }
.as-foot p { margin: 0; }
.as-foot b { font-weight: 600; margin-right: 10px; }
.as-foot a { color: inherit; }
#about .as-pin { justify-content: flex-end; }

/* ------------------------------------------------- the tube -- */
.as-tube { position: fixed; z-index: 55; right: 12px; top: 22px; bottom: 22px; width: 30px; display: flex; flex-direction: column; align-items: center; pointer-events: none; opacity: .92; transition: opacity .3s; }
.as-tube__cap { flex: none; width: 30px; height: 10px; border-radius: 2px; background: linear-gradient(180deg, #d9dcdc, #8e9696 55%, #6a7272); box-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.as-tube__glass { position: relative; flex: 1; width: 26px; margin: -1px 0; pointer-events: auto; cursor: grab; border-radius: 1px;
  border-left: 1px solid rgba(255, 255, 255, .5); border-right: 1px solid rgba(255, 255, 255, .35);
  background: linear-gradient(90deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .04) 35%, rgba(255, 255, 255, .02) 65%, rgba(255, 255, 255, .14)); }
.as-tube__glass::before { content: ''; position: absolute; left: 4px; top: 4px; bottom: 4px; width: 1.5px; border-radius: 1px; background: rgba(255, 255, 255, .5); }
.as-tube__glass:active { cursor: grabbing; }
.as-tube[data-tone="light"] .as-tube__glass { border-left-color: rgba(20, 28, 24, .42); border-right-color: rgba(20, 28, 24, .3); background: linear-gradient(90deg, rgba(20, 28, 24, .09), rgba(255, 255, 255, .25) 35%, rgba(255, 255, 255, .15) 65%, rgba(20, 28, 24, .07)); }
.as-tube[data-tone="light"] .as-tube__glass::before { background: rgba(255, 255, 255, .9); }
.as-tube__ball, .as-tube__feather { position: absolute; top: 0; will-change: transform; pointer-events: none; }
.as-tube__ball { left: 2px; width: 13px; height: 13px; }
.as-tube__feather { right: 1px; width: 9px; height: 22px; }
.as-tube__ball svg, .as-tube__feather svg { width: 100%; height: 100%; overflow: visible; }
.as-tube__feather svg { filter: drop-shadow(0 0 .7px rgba(40, 30, 18, .85)); }
.as-valve { position: fixed; z-index: 56; right: 39px; top: 14px; width: 26px; height: 26px; padding: 0; background: none; border: 0; cursor: pointer; }
.as-valve span { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f0f2f2, #8d9595 70%); box-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.as-valve span::after { content: ''; position: absolute; left: -2px; right: -2px; top: 5px; height: 2px; border-radius: 1px; background: #2a3130; transition: transform .25s; }
.as-valve[aria-pressed="true"] span::after { transform: rotate(90deg); background: var(--as-accent); }
.as-valve::after { content: ''; position: absolute; right: -3px; top: 12px; width: 6px; height: 2px; background: #8e9696; }
html.rm .as-valve { display: none; }

/* -------------------------------------------------- short windows -- */
@media (max-height: 780px) and (min-width: 761px) {
  .as-h2 { font-size: clamp(30px, 3vw, 44px); }
  .as-head { margin-bottom: 16px; }
  .as-kicker { margin-bottom: 10px; }
  .as-tri__label { min-height: 94px; padding-bottom: 12px; }
  .as-part { min-height: 82px; margin-bottom: 12px; padding: 10px 10px 10px 8px; }
  .as-tri__col { padding: 14px 16px 16px; }
  .as-hand li { min-height: 36px; }
  .as-out__mark { font-size: 44px; }
  .as-mk__paper { padding: 18px 22px 20px; }
  .as-hand--mk li { min-height: 46px; }
  .as-sw { min-height: 52px; }
  .as-mk__mark { font-size: 54px; }
  .as-tile { padding: 20px 20px 18px; }
  .as-ab__me, .as-ab__cta { padding: 24px 28px; }
  .as-ab__facts li { padding: 11px 0; }
}

/* -------------------------------------------------- mid widths -- */
@media (max-width: 1100px) and (min-width: 761px) {
  .as-cap { grid-column: 1 / -1; margin-bottom: 18px; }
  .as-sub { max-width: none; margin-top: 10px; }
  .as-side > .as-win { grid-column: 1 / -1; }
  .as-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .as-tile:nth-child(3) { border-left: 0; }
  .as-tile:nth-child(n+3) { border-top: 1px solid var(--as-line); }
}

/* -------------------------------------------------- phone -- */
@media (max-width: 760px) {
  .as-pin { position: relative; top: auto !important; min-height: 0; padding: calc(var(--pill-clear) + 10px) 0 28px; }
  .as-hold { display: none; }
  .as-grid { display: block; padding: 0 var(--gutter); }
  .as-h2 { font-size: 33px; }
  .as-head, .as-cap { margin-bottom: 18px; }
  .as-sub { font-size: 16px; margin-top: 10px; }
  .as-tri { display: block; }
  .as-tri__col { padding: 14px; border-left: 0; border-top: 1px solid var(--as-line); }
  .as-tri__label { min-height: 0; padding-bottom: 10px; }
  .as-part { min-height: 0; width: 100%; }
  .as-out { min-height: 0; }
  .as-tri__col[data-k] .as-out::before, .as-tri__col[data-k] .as-out::after { display: none; }
  .as-tri__col.is-off .as-out { display: none; }
  .as-tri__col.is-off .as-part { margin-bottom: 0; }
  .as-hand__t { font-size: 20px; }
  .as-bar { padding: 0 10px 0 0; flex-wrap: wrap; }
  .as-tabs button { padding: 0 10px; font-size: 14px; min-height: 46px; }
  .as-tabs button[aria-selected="true"]::after { left: 10px; right: 10px; }
  .as-bar__link { padding: 0 10px; }
  .as-play { min-height: 46px; padding: 0 18px 0 16px; font-size: 14.5px; }
  .as-ba { height: 600px; }
  .as-notes { padding: 48px 16px 16px 40px; background-image: linear-gradient(90deg, transparent 28px, rgba(200, 60, 50, .35) 28px, rgba(200, 60, 50, .35) 29.5px, transparent 29.5px), repeating-linear-gradient(180deg, transparent 0 33px, rgba(60, 100, 160, .18) 33px 34px); background-position: 0 0, 0 82px; }
  .as-notes__lines { font-size: 15.5px; line-height: 34px; }
  .as-notes__lines li { white-space: normal; }
  .as-les { grid-template-columns: 1fr 1fr; grid-template-rows: auto minmax(0, 1fr) auto auto; grid-template-areas: "top top" "video video" "side audio" "quiz quiz"; gap: 10px; padding: 44px 10px 10px; }
  .as-les__title { font-size: 22px; }
  .as-les__audio { grid-template-columns: 1fr; padding: 8px; row-gap: 6px; }
  .as-les__pbtn { grid-row: auto; width: 34px; height: 34px; }
  .as-les__wave { display: none; }
  .as-les__quiz { grid-template-columns: 1fr; }
  .as-les__opts button { flex: 1; padding: 0 6px; font-size: 13px; }
  .as-mk { display: block; }
  .as-mk__paper { padding: 16px 14px; border-right: 0; border-bottom: 1px solid var(--as-line); }
  .as-hand--mk .as-hand__t { font-size: 20px; }
  .as-hand--mk li { flex-wrap: wrap; row-gap: 4px; padding: 6px 0; }
  .as-mk__side { padding: 14px; }
  .as-sw { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; }
  .as-sw__t { font-size: 15.5px; }
  .as-mk__mark { font-size: 52px; }
  .as-tiles { grid-template-columns: 1fr 1fr; }
  .as-tile { padding: 16px 12px 14px; gap: 10px; }
  .as-tile:nth-child(3) { border-left: 0; }
  .as-tile:nth-child(n+3) { border-top: 1px solid var(--as-line); }
  .as-tile__name { font-size: 15.5px; }
  .as-yr .as-head { margin-bottom: 0; width: fit-content; max-width: 100%; padding: 14px 16px; }
  .as-yr .as-h2 { font-size: 28px; }
  .as-fit__jobs { padding: 12px; gap: 6px; }
  .as-fit__jobs button { min-height: 40px; padding: 0 12px; font-size: 14px; }
  .as-fit__row { grid-template-columns: 1fr; padding: 18px 16px 20px; row-gap: 0; }
  .as-fit__part { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; align-items: center; }
  .as-fit__part .as-part__ico { grid-row: 1 / span 2; width: 32px; height: 32px; margin: 0; }
  .as-fit__k { margin: 0 0 4px; }
  .as-fit__t { min-height: 0; font-size: 21px; }
  .as-fit__arrow { height: 34px; margin-left: 16px; }
  .as-fit__arrow::before { left: 0; right: auto; top: 6px; bottom: 8px; width: 2px; height: auto; }
  .as-fit__arrow::after { left: -3px; right: auto; top: auto; bottom: 7px; transform: rotate(135deg); }
  .as-ab__me, .as-ab__cta { padding: 22px 18px; }
  .as-ab__cta { margin-top: 16px; }
  .as-ab__h { font-size: 46px; margin-bottom: 22px; }
  .as-ab__facts li { font-size: 15.5px; }
  .as-foot { flex-direction: column; gap: 8px; margin-bottom: 24px; }
  .as-tube, .as-valve { display: none; }
}
