@font-face {
    font-family: 'JetBrains Mono';
    src: url('jbm.woff2') format('woff2');
    font-weight: 100 800;
    font-display: swap;
}
@font-face {
    font-family: 'Unageo';
    src: url('unageo.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

/* Catppuccin Mocha */
:root {
    --base: #1e1e2e;
    --mantle: #181825;
    --crust: #11111b;
    --text: #cdd6f4;
    --subtext1: #bac2de;
    --subtext0: #a6adc8;
    --overlay2: #9399b2;
    --overlay1: #7f849c;
    --overlay0: #6c7086;
    --surface2: #585b70;
    --surface1: #45475a;
    --surface0: #313244;
    --blue: #89b4fa;
    --lavender: #b4befe;
    --sapphire: #74c7ec;
    --sky: #89dceb;
    --teal: #94e2d5;
    --green: #a6e3a1;
    --yellow: #f9e2af;
    --peach: #fab387;
    --maroon: #eba0ac;
    --red: #f38ba8;
    --mauve: #cba6f7;
    --pink: #f5c2e7;
    --accent: var(--mauve);
    --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
    --display: 'Unageo', 'JetBrains Mono', sans-serif;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    font-family: var(--mono);
    background: var(--crust);
    background-image:
        radial-gradient(ellipse 60% 45% at 88% -8%, color-mix(in srgb, var(--mauve) 10%, transparent), transparent 70%),
        radial-gradient(ellipse 50% 40% at -5% 10%, color-mix(in srgb, var(--sky) 6%, transparent), transparent 70%);
    background-repeat: no-repeat;
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.slash { color: var(--accent); }
.dim { color: var(--overlay0); }
kbd {
    font-family: var(--mono); font-size: 11px; line-height: 1;
    padding: 3px 5px; border-radius: 5px;
    border: 1px solid var(--surface1); border-bottom-width: 2px;
    color: var(--subtext0); background: var(--mantle);
}
.wordmark { font-family: var(--display); font-weight: 700; letter-spacing: 0.01em; color: var(--accent); }

/* ribbon */
.ribbon {
    position: fixed; right: 12px; bottom: 12px; z-index: 60;
    font-size: 11px; letter-spacing: 0.04em;
    color: var(--subtext0);
    background: color-mix(in srgb, var(--mantle) 92%, transparent);
    border: 1px solid var(--surface0); border-radius: 999px;
    padding: 5px 11px; text-decoration: none;
}
.ribbon:hover { color: var(--text); border-color: var(--surface1); }

/* top bar */
.top {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px max(24px, calc((100vw - 1320px) / 2));
    background: color-mix(in srgb, var(--crust) 82%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid color-mix(in srgb, var(--surface0) 60%, transparent);
}
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand .wordmark { font-size: 21px; }
.crumb { font-size: 13px; color: var(--subtext0); }
.nav { display: flex; gap: 4px; }
.nav a {
    font-size: 13px; color: var(--subtext0); text-decoration: none;
    padding: 6px 11px; border-radius: 8px;
}
.nav a:hover { color: var(--text); background: var(--base); }

main { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* hero */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
    gap: 48px;
    align-items: start;
    padding: 34px 0 56px;
}
.eyebrow { font-size: 13px; letter-spacing: 0.08em; color: var(--accent); font-weight: 700; margin-bottom: 14px; }
h1 {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(34px, 3.6vw, 52px);
    line-height: 1.04;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 18px;
}
.lead { color: var(--subtext1); font-size: 15px; line-height: 1.7; max-width: 52ch; margin-bottom: 22px; }

.prep {
    display: grid; gap: 0;
    border: 1px solid var(--surface0); border-radius: 14px;
    background: color-mix(in srgb, var(--base) 55%, transparent);
    margin-bottom: 18px;
}
.prep div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 8px 14px; font-size: 13px; }
.prep div + div { border-top: 1px dashed var(--surface0); }
.prep dt { color: var(--overlay1); }
.prep dd { color: var(--text); }

.format {
    display: inline-flex; padding: 3px; gap: 2px;
    border: 1px solid var(--surface0); border-radius: 11px; background: var(--mantle);
    margin-bottom: 20px;
}
.format button {
    border: 0; background: transparent; cursor: pointer;
    font-size: 13px; color: var(--subtext0);
    padding: 7px 14px; border-radius: 8px;
}
.format button[aria-checked="true"] { background: var(--surface0); color: var(--text); box-shadow: inset 0 0 0 1px var(--surface1); }
.format button:hover { color: var(--text); }

.mods-mini { list-style: none; display: grid; gap: 6px; }
.mods-mini li {
    display: flex; align-items: center; gap: 12px;
    font-size: 13px; color: var(--subtext1);
}
.mods-mini li span {
    font-size: 11px; font-weight: 700; color: var(--crust);
    background: var(--c); border-radius: 5px; padding: 1px 6px;
}

/* viewer */
.viewer {
    position: relative;
    border: 1px solid var(--surface0);
    border-radius: 18px;
    background: var(--mantle);
    padding: 12px 12px 10px;
    box-shadow: 0 30px 80px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.2);
    outline: none;
}
.viewer:focus-visible { box-shadow: 0 0 0 2px var(--accent), 0 30px 80px -40px rgba(0,0,0,.8); }
.vhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 4px 10px; font-size: 12px; color: var(--overlay1); }
.file { display: inline-flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file svg { width: 14px; height: 14px; flex: none; }
.vtitle { color: var(--subtext0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.stage {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: var(--base);
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    container-type: inline-size;
}

.vbar { display: flex; align-items: center; gap: 10px; padding: 10px 2px 0; }
.vbtn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 34px; min-width: 34px; padding: 0 8px;
    border: 1px solid var(--surface0); border-radius: 9px;
    background: var(--base); color: var(--subtext1); cursor: pointer;
    font-size: 12px;
}
.vbtn svg { width: 18px; height: 18px; }
.vbtn:hover { color: var(--text); border-color: var(--surface1); }
.vbtn:disabled { opacity: .4; cursor: default; }
.notes-btn[aria-pressed="true"] { color: var(--crust); background: var(--accent); border-color: var(--accent); }
.notes-btn[aria-pressed="true"] kbd { background: transparent; color: var(--crust); border-color: color-mix(in srgb, var(--crust) 40%, transparent); }
.prog { flex: 1; display: flex; gap: 4px; align-items: center; min-width: 0; }
.prog button {
    flex: 1; height: 18px; border: 0; background: transparent; cursor: pointer; padding: 0;
    position: relative;
}
.prog button::before {
    content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 3px;
    background: var(--surface0); transition: background .25s;
}
.prog button.done::before { background: color-mix(in srgb, var(--c, var(--accent)) 55%, var(--surface0)); }
.prog button.cur::before { background: var(--c, var(--accent)); }
.prog button:hover::before { background: var(--surface2); }
.prog button.cur:hover::before { background: var(--c, var(--accent)); }
.count { font-size: 12px; color: var(--subtext0); min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; }

.notes {
    margin-top: 10px; padding: 12px 14px;
    border-radius: 10px; background: var(--base);
    border-left: 3px solid var(--accent);
}
.nlabel { display: block; font-size: 11px; letter-spacing: .08em; color: var(--accent); margin-bottom: 4px; }
.notes { min-height: 92px; }
.notes p { font-size: 13px; line-height: 1.65; color: var(--subtext1); }
.vhint { margin-top: 8px; font-size: 11px; color: var(--overlay0); display: flex; align-items: center; gap: 5px; justify-content: flex-end; }

/* slides: everything in cqw so the slide scales with the stage */
.slide {
    position: absolute; inset: 0;
    padding: 4.6cqw 5.4cqw 6cqw;
    display: flex; flex-direction: column;
    background:
        radial-gradient(ellipse 60% 70% at 100% 0%, color-mix(in srgb, var(--c) 9%, transparent), transparent 70%),
        linear-gradient(var(--base), var(--base));
    font-size: 1.75cqw;
    line-height: 1.45;
    opacity: 0; visibility: hidden;
    transform: translateX(2.5cqw);
    transition: opacity .38s ease, transform .38s cubic-bezier(.2,.7,.2,1), visibility 0s linear .38s;
}
.slide.prev-side { transform: translateX(-2.5cqw); }
.slide.on { opacity: 1; visibility: visible; transform: none; transition: opacity .38s ease, transform .38s cubic-bezier(.2,.7,.2,1), visibility 0s; }
@media (prefers-reduced-motion: reduce) { .slide, .slide.on { transition: none; transform: none; } }
.slide::after {
    content: attr(data-title) '   ·   interpt workshop';
    white-space: pre;
    position: absolute; left: 5.4cqw; bottom: 2.4cqw;
    font-size: 1.15cqw; color: var(--overlay0); letter-spacing: .03em;
}
.slide::before {
    content: attr(data-n);
    position: absolute; right: 5.4cqw; bottom: 2.4cqw;
    font-size: 1.15cqw; color: var(--overlay0); font-variant-numeric: tabular-nums;
}
.sn { display: none; }
.slide .k { font-size: 1.35cqw; letter-spacing: .1em; color: var(--c); font-weight: 700; margin-bottom: .9cqw; }
.slide h3 {
    font-family: var(--display); font-weight: 700;
    font-size: 4.1cqw; line-height: 1.05; letter-spacing: -0.01em;
    color: var(--text); margin-bottom: 2.8cqw;
}
.slide h3 + * { margin-top: auto; margin-bottom: auto; }
.slide h3 + .lights, .slide h3 + .matrix { margin-top: 0; margin-bottom: 0; }
.foot-note { margin-top: auto; font-size: 1.45cqw; color: var(--subtext0); }

/* title slide */
.s-title { justify-content: space-between; }
.s-brand { display: flex; align-items: baseline; gap: 1.2cqw; font-size: 1.4cqw; color: var(--overlay1); }
.s-brand .wordmark { font-size: 2.4cqw; }
.s-title-main .k { font-size: 1.55cqw; }
.huge {
    font-family: var(--display); font-weight: 700;
    font-size: 11cqw; line-height: .92; letter-spacing: -0.02em;
    color: var(--text); margin: .6cqw 0 1.8cqw; text-transform: none; letter-spacing: -0.02em;
}
.s-title .sub { font-size: 2.1cqw; color: var(--subtext1); max-width: 40ch; }
.s-title-meta { display: flex; gap: 2.6cqw; font-size: 1.5cqw; color: var(--subtext0); margin-bottom: 2.6cqw; }
.s-title-meta span::before { content: '/'; color: var(--c); margin-right: .7cqw; }
.bands { position: absolute; right: 5.4cqw; top: 4.6cqw; display: flex; gap: .8cqw; align-items: flex-end; height: 14cqw; }
.bands i { width: 2.2cqw; background: var(--c); border-radius: .5cqw; opacity: .9; }
.bands i:nth-child(1) { height: 40%; } .bands i:nth-child(2) { height: 62%; } .bands i:nth-child(3) { height: 100%; } .bands i:nth-child(4) { height: 52%; } .bands i:nth-child(5) { height: 76%; }

/* plan */
.plan { list-style: none; display: grid; gap: .8cqw; }
.plan li {
    display: grid; grid-template-columns: 4.6cqw 1fr auto; grid-template-rows: auto auto;
    column-gap: 1.8cqw; align-items: baseline;
    padding: .8cqw 1.6cqw; border-radius: 1.1cqw;
    background: color-mix(in srgb, var(--surface0) 45%, transparent);
    border-left: .45cqw solid var(--c);
}
.plan b { grid-row: span 2; font-size: 2.3cqw; color: var(--c); align-self: center; }
.plan .pt { font-size: 2.05cqw; font-weight: 700; color: var(--text); }
.plan .po { grid-column: 2; font-size: 1.45cqw; color: var(--subtext0); }
.plan time { grid-row: 1 / span 2; grid-column: 3; align-self: center; font-size: 1.5cqw; color: var(--subtext1); font-variant-numeric: tabular-nums; }

/* svg flows */
.flow { width: 100%; height: auto; display: block; overflow: visible; }
.flow .box { fill: color-mix(in srgb, var(--surface0) 70%, var(--base)); stroke: var(--surface1); stroke-width: 1.5; }
.flow .box.warn { stroke: var(--peach); fill: color-mix(in srgb, var(--peach) 10%, var(--base)); }
.flow .box.ok { stroke: var(--green); fill: color-mix(in srgb, var(--green) 10%, var(--base)); }
.flow .box.hl { stroke: var(--c, var(--accent)); fill: color-mix(in srgb, var(--c, var(--accent)) 12%, var(--base)); }
.flow .ln { fill: none; stroke: var(--overlay1); stroke-width: 2; }
.flow text { font-family: var(--mono); }
.flow .t1 { font-size: 22px; font-weight: 700; fill: var(--text); }
.flow .t2 { font-size: 15px; fill: var(--subtext0); }
.flow .t3 { font-size: 18px; fill: var(--subtext1); }
.flow .warn-t { fill: var(--peach); }
.flow .ok-t { fill: var(--green); }

/* lights */
.lights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6cqw; flex: 1; min-height: 0; }
.light {
    border-radius: 1.4cqw; padding: 1.8cqw 1.9cqw;
    background: color-mix(in srgb, var(--l) 7%, var(--base));
    border: .15cqw solid color-mix(in srgb, var(--l) 45%, transparent);
}
.lamp { display: block; width: 2.3cqw; height: 2.3cqw; border-radius: 50%; background: var(--l); box-shadow: 0 0 2.4cqw color-mix(in srgb, var(--l) 60%, transparent); margin-bottom: 1.2cqw; }
.light b { display: block; font-size: 1.85cqw; color: var(--l); margin-bottom: 1cqw; }
.light ul { list-style: none; display: grid; gap: .6cqw; font-size: 1.6cqw; color: var(--subtext1); }
.light li::before { content: '· '; color: var(--l); }

/* checks + callout */
.two { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3cqw; align-items: start; }
.checks { list-style: none; display: grid; gap: 1.3cqw; }
.checks li { display: flex; gap: 1.3cqw; align-items: center; font-size: 2cqw; color: var(--text); }
.checks li::before {
    content: ''; flex: none; width: 2.4cqw; height: 2.4cqw; border-radius: .6cqw;
    background: color-mix(in srgb, var(--c) 18%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23a6e3a1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
    border: .12cqw solid var(--c);
}
.callout { border-radius: 1.3cqw; padding: 2cqw; background: var(--mantle); border: .12cqw solid var(--surface0); }
.callout .tag { display: inline-block; font-size: 1.2cqw; padding: .3cqw .8cqw; border-radius: .5cqw; background: var(--surface0); color: var(--c); margin-bottom: 1.1cqw; }
.callout p { font-size: 1.6cqw; color: var(--subtext1); line-height: 1.55; }

/* prompt anatomy */
.p-ctx { --pc: var(--lavender); }
.p-task { --pc: var(--sky); }
.p-in { --pc: var(--overlay2); }
.p-rule { --pc: var(--peach); }
.p-fmt { --pc: var(--green); }
mark { background: color-mix(in srgb, var(--pc) 16%, transparent); color: inherit; border-bottom: 2px solid var(--pc); padding: 0 .15em; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.anat { display: grid; grid-template-columns: 1fr 19cqw; gap: 2.6cqw; align-items: start; }
.pcard { border-radius: 1.3cqw; padding: 2cqw 2.2cqw; background: var(--mantle); border: .12cqw solid var(--surface0); font-size: 1.62cqw; line-height: 1.75; color: var(--text); display: grid; gap: .9cqw; }
.legend { list-style: none; display: grid; gap: 1cqw; }
.legend li { font-size: 1.8cqw; font-weight: 700; color: var(--pc); border-left: .45cqw solid var(--pc); padding-left: 1.2cqw; line-height: 1.25; }
.legend small { display: block; font-weight: 400; font-size: 1.3cqw; color: var(--subtext0); }

/* vs */
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2.4cqw; align-items: stretch; }
.vs-col { border-radius: 1.4cqw; padding: 2.2cqw; border: .15cqw solid; display: grid; gap: 1.8cqw; align-content: start; }
.vs-col.bad { border-color: color-mix(in srgb, var(--red) 50%, transparent); background: color-mix(in srgb, var(--red) 6%, var(--base)); }
.vs-col.good { border-color: color-mix(in srgb, var(--green) 50%, transparent); background: color-mix(in srgb, var(--green) 6%, var(--base)); }
.vs code { font-family: var(--mono); font-size: 1.7cqw; padding: 1.2cqw 1.4cqw; border-radius: .9cqw; background: var(--crust); color: var(--text); }
.vs ul { list-style: none; display: grid; gap: .8cqw; font-size: 1.85cqw; }
.vs .bad li::before { content: '× '; color: var(--red); font-weight: 700; }
.vs .good li::before { content: '✓ '; color: var(--green); font-weight: 700; }
.vs-arrow { align-self: center; font-size: 3.4cqw; color: var(--c); }

/* matrix */
.matrix {
    position: relative; flex: 1; min-height: 0;
    display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: .5cqw;
    margin: 0 0 1.6cqw 3.2cqw;
}
.q { border-radius: 1cqw; background: color-mix(in srgb, var(--surface0) 40%, transparent); padding: 1cqw 1.3cqw; }
.q em { font-style: normal; font-size: 1.3cqw; color: var(--overlay1); letter-spacing: .05em; }
.q4 { background: color-mix(in srgb, var(--c) 14%, transparent); }
.q4 em { color: var(--c); font-weight: 700; }
.q1, .q2 { display: flex; align-items: flex-start; }
.q3, .q4 { display: flex; align-items: flex-end; }
.q2, .q4 { justify-content: flex-end; }
.ax { position: absolute; font-size: 1.2cqw; color: var(--overlay1); white-space: nowrap; }
.ax-y { left: -2.4cqw; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); }
.ax-x { left: 50%; bottom: -1.9cqw; transform: translateX(-50%); }
.dot {
    position: absolute; transform: translate(-50%, -50%);
    font-size: 1.4cqw; color: var(--text); white-space: nowrap;
    padding: .35cqw 1cqw .35cqw 2.3cqw; border-radius: 999px;
    background: var(--mantle); border: .12cqw solid var(--surface1);
}
.dot::before { content: ''; position: absolute; left: .8cqw; top: 50%; width: 1cqw; height: 1cqw; margin-top: -.5cqw; border-radius: 50%; background: var(--overlay1); }
.dot.star { border-color: var(--c); color: var(--c); font-weight: 700; box-shadow: 0 0 2cqw color-mix(in srgb, var(--c) 30%, transparent); }
.dot.star::before { background: var(--c); }

/* tool table */
.tt { width: 100%; border-collapse: collapse; font-size: 1.5cqw; }
.tt th { text-align: left; font-weight: 400; color: var(--overlay1); font-size: 1.25cqw; letter-spacing: .06em; padding: 0 1.2cqw 1cqw 0; border-bottom: .12cqw solid var(--surface1); }
.tt td { padding: 1.25cqw 1.2cqw 1.25cqw 0; border-bottom: .12cqw solid var(--surface0); color: var(--subtext1); vertical-align: top; }
.tt td:first-child { color: var(--c); font-weight: 700; white-space: nowrap; }
.tt td:last-child { color: var(--text); }

/* questions */
.qs { list-style: none; counter-reset: q; display: grid; gap: 1.25cqw; }
.qs li { counter-increment: q; display: flex; align-items: baseline; gap: 1.8cqw; font-size: 2.35cqw; color: var(--text); }
.qs li::before { content: counter(q, decimal-leading-zero); font-size: 1.6cqw; color: var(--c); font-weight: 700; }

/* mini paper */
.paper.mini {
    background: #eff1f5; color: #4c4f69; border-radius: .8cqw; padding: 2cqw 2.2cqw;
    display: grid; gap: .8cqw; font-size: 1.45cqw;
    box-shadow: 0 1.5cqw 3cqw -1.5cqw rgba(0,0,0,.6);
    transform: rotate(-1.2deg);
}
.paper.mini b { font-family: var(--display); font-size: 2.2cqw; color: #1e1e2e; margin-bottom: .6cqw; }
.paper.mini span { border-bottom: .12cqw dashed #bcc0cc; padding-bottom: .6cqw; }
.plain { list-style: none; display: grid; gap: 1.2cqw; font-size: 1.9cqw; color: var(--text); padding-top: 1cqw; }
.plain li::before { content: '→ '; color: var(--c); }

/* monday */
.monday { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6cqw; }
.monday div { border-radius: 1.3cqw; padding: 2cqw; background: color-mix(in srgb, var(--c) 8%, var(--base)); border-top: .5cqw solid var(--c); }
.monday b { display: block; font-size: 1.7cqw; color: var(--c); margin-bottom: .9cqw; }
.monday p { font-size: 1.75cqw; color: var(--text); line-height: 1.5; }

/* sections */
.sec { padding: 56px 0; border-top: 1px solid color-mix(in srgb, var(--surface0) 70%, transparent); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; align-items: baseline; margin-bottom: 28px; }
h2 { font-size: 15px; font-weight: 700; letter-spacing: .08em; color: var(--accent); text-transform: lowercase; }
h2 .slash { text-shadow: 0 0 8px color-mix(in srgb, var(--accent) 40%, transparent); }
.sec-lead { color: var(--subtext1); font-size: 14px; line-height: 1.7; max-width: 64ch; }

/* agenda */
.agenda { display: grid; gap: 28px; }
.day-label { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; font-size: 13px; color: var(--subtext0); }
.day-label b { color: var(--text); font-size: 14px; }
.tl { list-style: none; position: relative; display: grid; gap: 8px; }
.tl > li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: stretch; }
.tl time { font-size: 13px; color: var(--subtext0); padding-top: 14px; font-variant-numeric: tabular-nums; text-align: right; }
.tl .pause { font-size: 12px; color: var(--overlay0); padding: 6px 18px; border-left: 2px dotted var(--surface1); margin-left: 9px; }
.tl .pause + time, .tl li.p time { padding-top: 6px; }
.mod {
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px;
    padding: 16px 20px; border-radius: 14px;
    background: color-mix(in srgb, var(--base) 75%, transparent);
    border: 1px solid var(--surface0);
    border-left: 3px solid var(--c);
}
.mod-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.mod-n { font-size: 12px; font-weight: 700; color: var(--crust); background: var(--c); border-radius: 5px; padding: 1px 7px; }
.mod h3 { font-size: 16px; color: var(--text); }
.mod .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.mod .tags span { font-size: 11px; color: var(--subtext0); border: 1px solid var(--surface1); border-radius: 999px; padding: 0 8px; }
.mod ul { list-style: none; display: grid; gap: 3px; font-size: 13px; color: var(--subtext1); }
.mod ul li::before { content: '- '; color: var(--c); }
.mod .out { border-left: 1px dashed var(--surface1); padding-left: 18px; font-size: 13px; color: var(--subtext1); align-self: center; }
.mod .out b { display: block; font-size: 11px; letter-spacing: .08em; color: var(--c); margin-bottom: 4px; font-weight: 700; }

/* exercise */
.excard { border: 1px solid var(--surface0); border-radius: 18px; background: var(--mantle); overflow: hidden; }
.ex-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--surface0); background: color-mix(in srgb, var(--sky) 5%, var(--mantle)); flex-wrap: wrap; }
.ex-id { font-size: 12px; letter-spacing: .08em; color: var(--sky); font-weight: 700; }
.ex-top h3 { font-family: var(--display); font-size: 26px; line-height: 1.1; color: var(--text); margin-top: 4px; }
.ex-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.ex-meta span { font-size: 12px; color: var(--subtext1); background: var(--base); border: 1px solid var(--surface0); border-radius: 999px; padding: 3px 10px; }
.ex-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); }
.ex-situ { padding: 22px 24px; border-right: 1px solid var(--surface0); display: grid; gap: 12px; align-content: start; }
.lbl { font-size: 11px; letter-spacing: .1em; color: var(--overlay1); text-transform: lowercase; }
.mail { background: #eff1f5; color: #4c4f69; border-radius: 12px; padding: 14px 16px; font-size: 13px; line-height: 1.6; display: grid; gap: 8px; }
.mail-h { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; }
.mail-h b { color: #1e1e2e; }
.mail-h span { color: #8c8fa1; }
.mail-s { font-weight: 700; color: #1e1e2e; }
.facts { list-style: none; display: grid; gap: 6px; font-size: 13px; color: var(--subtext1); }
.facts li { padding: 6px 10px; border-radius: 8px; background: var(--base); border-left: 2px solid var(--peach); }
.ex-run { padding: 22px 24px; display: grid; gap: 14px; align-content: start; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--surface0); border-radius: 10px; background: var(--crust); justify-self: start; }
.seg button { border: 0; background: transparent; cursor: pointer; padding: 6px 18px; border-radius: 7px; font-size: 13px; color: var(--subtext0); }
.seg button[aria-selected="true"] { background: var(--surface0); color: var(--text); }
#tab-before[aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--red); }
#tab-after[aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--green); }
.pane { display: grid; gap: 14px; }
.chat { display: grid; gap: 10px; }
.msg { border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.65; }
.msg .who { display: block; font-size: 11px; letter-spacing: .08em; color: var(--overlay1); margin-bottom: 4px; }
.msg.me { background: var(--base); border: 1px solid var(--surface0); }
.msg.ai { background: color-mix(in srgb, var(--surface0) 55%, var(--mantle)); min-height: 120px; }
.out { white-space: pre-line; color: var(--text); }
.out.typing::after { content: ''; display: inline-block; width: 7px; height: 14px; margin-left: 2px; vertical-align: -2px; background: var(--accent); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.flags { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.flags li { padding: 4px 10px; border-radius: 999px; }
.flags.bad li { color: var(--red); background: color-mix(in srgb, var(--red) 10%, transparent); }
.flags.bad li::before { content: '× '; }
.flags.good li { color: var(--green); background: color-mix(in srgb, var(--green) 10%, transparent); }
.flags.good li::before { content: '✓ '; }

.ex-build { border-top: 1px solid var(--surface0); padding: 22px 24px; background: color-mix(in srgb, var(--base) 40%, var(--mantle)); }
.eb-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.eb-head p { font-size: 13px; color: var(--subtext1); }
.eb-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.eb-fields { display: grid; gap: 8px; }
.eb-fields label { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; gap: 10px; }
.eb-fields label span { font-size: 12px; font-weight: 700; color: var(--pc); }
.eb-fields input { width: 100%; background: var(--crust); border: 1px solid var(--surface0); border-left: 2px solid var(--pc); border-radius: 8px; padding: 7px 10px; font-size: 13px; }
.eb-fields input:focus { outline: none; border-color: var(--pc); }
.eb-out { display: grid; gap: 10px; align-content: start; }
.eb-prev { background: var(--crust); border: 1px solid var(--surface0); border-radius: 12px; padding: 14px 16px; font-size: 13px; line-height: 1.75; min-height: 150px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; cursor: pointer; border-radius: 10px;
    background: var(--accent); color: var(--crust); font-weight: 700; font-size: 14px;
    padding: 11px 20px;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { filter: brightness(1.08); }
.btn.small { font-size: 12.5px; padding: 7px 13px; justify-self: start; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--surface1); font-weight: 400; }
.btn.ghost:hover { border-color: var(--overlay0); }

/* take-home */
.th { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.5fr); gap: 24px; align-items: start; }
.th-list { display: grid; gap: 10px; position: sticky; top: 84px; }
.th-item {
    display: flex; gap: 14px; align-items: center; text-align: left;
    width: 100%; padding: 14px 16px; cursor: pointer;
    border-radius: 14px; border: 1px solid var(--surface0); background: color-mix(in srgb, var(--base) 60%, transparent);
    transition: border-color .2s, background .2s;
}
.th-item:hover { border-color: var(--surface1); }
.th-item[aria-selected="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 7%, var(--base)); }
.tick { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--surface2); position: relative; transition: background .2s, border-color .2s; }
.th-item.seen .tick { background: var(--c); border-color: var(--c); }
.th-item.seen .tick::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--crust); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.th-txt b { display: block; font-size: 14px; color: var(--text); }
.th-txt small { font-size: 12px; color: var(--subtext0); }
.th-progress { font-size: 12px; color: var(--overlay1); padding: 4px 4px 0; }

.paper {
    background: #eff1f5; color: #4c4f69; border-radius: 6px;
    padding: 36px 44px 30px; max-width: 720px;
    box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
    font-size: 13px; line-height: 1.7;
}
.paper-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 14px; border-bottom: 2px solid #1e1e2e; margin-bottom: 18px; }
.paper-h b { display: block; font-family: var(--display); font-size: 24px; color: #1e1e2e; line-height: 1.15; }
.paper-h span { font-size: 11.5px; color: #8c8fa1; }
.stamp { font-size: 11px !important; letter-spacing: .12em; color: #8839ef !important; border: 1.5px solid #8839ef; border-radius: 4px; padding: 2px 8px; transform: rotate(4deg); flex: none; }
.pol { padding-left: 20px; display: grid; gap: 12px; }
.pol li::marker { color: #8839ef; font-weight: 700; }
.pol b { color: #1e1e2e; }
.sign { display: flex; align-items: baseline; gap: 14px; justify-content: flex-end; margin-top: 22px; font-size: 11px; color: #8c8fa1; }
.sign i { font-family: var(--display); font-size: 20px; color: #1e66f5; font-style: normal; border-bottom: 1px solid #bcc0cc; padding: 0 10px 2px; }

.lib-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.lib-filter { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.lib-filter button { border: 1px solid var(--surface0); background: var(--base); border-radius: 999px; padding: 4px 12px; font-size: 12px; color: var(--subtext0); cursor: pointer; }
.lib-filter button[aria-pressed="true"] { background: var(--sky); border-color: var(--sky); color: var(--crust); font-weight: 700; }
.lib-count { font-size: 12px; color: var(--overlay1); }
.lib { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pc { border: 1px solid var(--surface0); border-radius: 14px; background: var(--base); padding: 14px 16px; display: grid; gap: 8px; align-content: start; }
.pc-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pc-h b { font-size: 13.5px; color: var(--text); }
.pc-h span { font-size: 11px; color: var(--sky); white-space: nowrap; }
.pc pre::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 36px; background: linear-gradient(transparent, var(--crust)); }
.pc pre { white-space: pre-wrap; font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--subtext1); background: var(--crust); border-radius: 8px; padding: 10px 12px; max-height: 132px; overflow: hidden; position: relative; }
.pc-f { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pc-f small { font-size: 11px; color: var(--overlay1); }

.wf { border: 1px solid var(--surface0); border-radius: 16px; background: var(--base); padding: 18px 20px; display: grid; gap: 16px; --c: var(--peach); }
.wf-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wf-head b { font-size: 15px; color: var(--text); }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--green); border: 1px solid color-mix(in srgb, var(--green) 40%, transparent); border-radius: 999px; padding: 3px 11px; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 20%, transparent); }
.wf-svg .t1 { font-size: 17px; } .wf-svg .t2 { font-size: 13.5px; }
.runs-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 11px; letter-spacing: .1em; color: var(--overlay1); }
.rt { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.rt th { text-align: left; font-weight: 400; color: var(--overlay1); font-size: 11px; padding: 6px 8px; border-bottom: 1px solid var(--surface1); }
.rt td { padding: 8px; border-bottom: 1px solid var(--surface0); color: var(--subtext1); font-variant-numeric: tabular-nums; }
.rt td:nth-child(2) { color: var(--text); }
.st { font-size: 11.5px; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.st.ok { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }
.st.chk { color: var(--yellow); background: color-mix(in srgb, var(--yellow) 12%, transparent); }
.st.run { color: var(--sky); background: color-mix(in srgb, var(--sky) 12%, transparent); }
.rt tr.new td { animation: rowin .8s ease; }
@keyframes rowin { from { background: color-mix(in srgb, var(--peach) 18%, transparent); } }
.confirm { border: 1px solid var(--surface1); background: transparent; color: var(--text); border-radius: 6px; font-size: 11.5px; padding: 1px 8px; cursor: pointer; margin-left: 6px; }
.confirm:hover { border-color: var(--green); color: var(--green); }

/* feedback */
.fbwrap { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 1fr); gap: 24px; align-items: start; }
.fb-next { border: 1px dashed var(--surface1); border-radius: 18px; padding: 24px; display: grid; gap: 10px; }
.fb-next h3 { font-family: var(--display); font-size: 22px; color: var(--text); }
.fb-next > p { font-size: 13px; color: var(--subtext1); }
.fb-next ol { list-style: none; counter-reset: c; display: grid; gap: 12px; margin-top: 6px; }
.fb-next li { counter-increment: c; display: grid; grid-template-columns: 26px 1fr; font-size: 13px; color: var(--subtext1); line-height: 1.6; }
.fb-next li::before { content: counter(c, decimal-leading-zero); color: var(--accent); font-weight: 700; font-size: 12px; padding-top: 1px; }
.fb-next b { color: var(--text); }
.fb, .fb-done { border: 1px solid var(--surface0); border-radius: 18px; background: var(--mantle); padding: 24px; display: grid; gap: 20px; }
.fb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld { display: grid; gap: 6px; }
.fld > span, legend { font-size: 13px; color: var(--subtext1); }
.fld small { color: var(--overlay0); }
.fld input, .fld select, .fld textarea {
    width: 100%; background: var(--crust); border: 1px solid var(--surface0); border-radius: 10px;
    padding: 10px 12px; font-size: 14px; resize: vertical;
}
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--accent); }
fieldset { border: 0; }
legend { margin-bottom: 10px; }
.rate { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--surface0); }
.rate:last-child { border-bottom: 0; }
.rate-l { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text); }
.rate-l i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--crust); background: var(--c); border-radius: 5px; padding: 0 6px; }
.scale { display: flex; gap: 4px; }
.scale button {
    width: 34px; height: 32px; border-radius: 8px; cursor: pointer;
    border: 1px solid var(--surface0); background: var(--base); color: var(--subtext0); font-size: 13px;
}
.scale button:hover { border-color: var(--c); color: var(--text); }
.scale button.on { background: color-mix(in srgb, var(--c) 30%, var(--base)); border-color: var(--c); color: var(--text); }
.scale button[aria-pressed="true"] { background: var(--c); color: var(--crust); font-weight: 700; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--surface1); font-size: 13px; color: var(--subtext1); }
.chips input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--crust); font-weight: 700; }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.fb-err { font-size: 13px; color: var(--red); }
.fb .btn { justify-self: start; }
.fb-done { justify-items: start; }
.fb-done svg { width: 44px; height: 44px; }
.fb-done h3 { font-family: var(--display); font-size: 26px; color: var(--text); }
.fb-done > p { font-size: 13px; color: var(--subtext1); }
.fb-sum { display: grid; gap: 6px; width: 100%; font-size: 13px; }
.fb-sum div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--surface0); }
.fb-sum dt { color: var(--overlay1); }
.fb-sum dd { color: var(--text); }

.foot { display: flex; gap: 24px; align-items: baseline; padding: 32px 0 64px; border-top: 1px solid var(--surface0); }
.foot .wordmark { font-size: 20px; }
.foot p { font-size: 12.5px; color: var(--overlay1); max-width: 70ch; }

/* responsive */
@media (max-width: 1100px) {
    .hero { grid-template-columns: 1fr; gap: 32px; }
    .hero-copy { max-width: 720px; }
    .sec-head { grid-template-columns: 1fr; gap: 10px; }
    .th { grid-template-columns: 1fr; }
    .fbwrap { grid-template-columns: 1fr; }
    .th-list { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .th-progress { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    body { font-size: 14px; }
    main { padding: 0 16px; }
    .top { padding: 12px 16px; }
    .nav { display: none; }
    .mods-mini { display: none; }
    .format { margin-bottom: 0; }
    .hero { padding: 22px 0 40px; }
    h1 { font-size: 34px; }
    .prep div { grid-template-columns: 92px 1fr; padding: 8px 12px; }
    .viewer { margin: 0 -6px; padding: 8px 8px 8px; border-radius: 14px; }
    .vhead .vtitle { display: none; }
    .vbar { gap: 6px; }
    .notes-btn span, .notes-btn kbd { display: none; }
    .count { min-width: 42px; font-size: 11px; }
    .vhint { display: none; }
    .light { padding: 1.4cqw 1.5cqw; } .lamp { margin-bottom: .7cqw; }
    /* small screen: keep slide text legible */
    .slide { font-size: 2.3cqw; padding: 4.4cqw 4.6cqw 6.4cqw; }
    .slide::after { display: none; }
    .slide::before { font-size: 2cqw; right: 4.6cqw; }
    .slide .k { font-size: 2.1cqw; margin-bottom: .6cqw; }
    .slide h3 { font-size: 5.2cqw; margin-bottom: 2cqw; }
    .plan { gap: .9cqw; }
    .plan li { padding: .8cqw 1.6cqw; }
    .plan .pt { font-size: 2.6cqw; }
    .plan .po { display: none; }
    .plan b, .plan time { grid-row: auto; font-size: 2.4cqw; }
    .light b { font-size: 2.3cqw; } .light ul { font-size: 2.15cqw; } .light li:nth-child(n+4) { display: none; }
    .checks li { font-size: 2.6cqw; } .callout p { font-size: 2.2cqw; } .callout .tag { font-size: 1.9cqw; }
    .pcard { font-size: 2.05cqw; line-height: 1.55; padding: 1.6cqw; gap: .6cqw; } .legend li { font-size: 2.3cqw; } .legend small { display: none; }
    .anat { grid-template-columns: 1fr 15cqw; gap: 2cqw; }
    .vs code { font-size: 2.2cqw; } .vs ul { font-size: 2.4cqw; }
    .dot { font-size: 2cqw; } .q em { font-size: 1.9cqw; } .ax { font-size: 1.8cqw; }
    .tt { font-size: 2cqw; } .tt th { font-size: 1.8cqw; } .tt th:nth-child(3), .tt td:nth-child(3) { display: none; }
    .qs li { font-size: 2.9cqw; } .qs { gap: 1.1cqw; }
    .paper.mini { font-size: 2cqw; } .plain { font-size: 2.4cqw; }
    .monday p { font-size: 2.3cqw; } .monday b { font-size: 2.2cqw; }
    .foot-note { font-size: 2.1cqw; }
    .s-title .sub { font-size: 2.6cqw; } .s-title-meta { font-size: 2.2cqw; } .s-brand { font-size: 2cqw; }

    .sec { padding: 40px 0; }
    .tl > li { grid-template-columns: 1fr; gap: 4px; }
    .tl time { text-align: left; padding-top: 0; }
    .tl li.p time { display: none; }
    .tl .pause { margin-left: 0; }
    .mod { grid-template-columns: 1fr; gap: 12px; padding: 14px 16px; }
    .mod .out { border-left: 0; border-top: 1px dashed var(--surface1); padding: 10px 0 0; }
    .ex-top { padding: 16px; }
    .ex-top h3 { font-size: 22px; }
    .ex-grid { grid-template-columns: 1fr; }
    .ex-situ { border-right: 0; border-bottom: 1px solid var(--surface0); padding: 16px; }
    .ex-run, .ex-build { padding: 16px; }
    .eb-grid { grid-template-columns: 1fr; }
    .eb-fields label { grid-template-columns: 1fr; gap: 4px; }
    .th-list { grid-template-columns: 1fr; }
    .paper { padding: 22px 18px; }
    .paper-h b { font-size: 20px; }
    .lib { grid-template-columns: 1fr; }
    .wf { padding: 14px; }
    .rt th:nth-child(3), .rt td:nth-child(3) { display: none; }
    .fb, .fb-done { padding: 18px 16px; }
    .fb-row { grid-template-columns: 1fr; }
    .rate { grid-template-columns: 1fr; gap: 6px; }
    .scale button { width: auto; flex: 1; }
    .fb-sum div { grid-template-columns: 1fr; gap: 0; }
    .foot { flex-direction: column; gap: 8px; }
}
