/* The deck. Every direct child of main[data-snacks-slides] is one slide.
   Short slides center; tall ones start at the top and scroll inside. */

.mast { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; justify-content: flex-start; gap: 18px; padding: 16px 24px; pointer-events: none; }
.mast > * { pointer-events: auto; }
.mast .ask-trigger { font: 600 13px/1 var(--body); color: var(--fg); background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.mast .ask-trigger:hover { border-color: var(--fg); }
.mast .ask-trigger .dotty { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 0; }

.slide { display: flex; flex-direction: column; justify-content: center; padding: clamp(64px, 10vh, 110px) clamp(20px, 5vw, 72px) clamp(56px, 8vh, 96px); }
.slide.top { justify-content: flex-start; }
.slide-inner { width: 100%; max-width: 1000px; margin: 0 auto; }
.slide-inner.wide { max-width: 1180px; }
.slide .eyebrow { margin-bottom: 18px; }
.slide .eyebrow .num { display: inline-block; min-width: 26px; color: var(--accent-ink); background: var(--accent-deep); border-radius: 0; padding: 3px 7px 2px; margin-right: 10px; font-size: 11px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%); } /* the Snacks chip corner */
h2.big { font-size: clamp(30px, 4.6vw, 58px); line-height: 1.04; margin: 0 0 24px; max-width: 18ch; }
h2.big .hl { background: var(--accent); color: var(--accent-ink); padding: .1em .14em .06em; margin: 0 -.04em; border-radius: .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* the marker wipe: on a [data-reveal] slide the highlight draws itself in when the slide arrives */
[data-reveal] h2.big .hl { background: linear-gradient(var(--accent), var(--accent)) left center / 0% 100% no-repeat; color: inherit; }
[data-reveal].is-on h2.big .hl { background-size: 100% 100%; color: var(--accent-ink); transition: background-size .85s cubic-bezier(.2, .7, .2, 1) .45s, color .25s ease .95s; }
@media (prefers-reduced-motion: reduce) { [data-reveal] h2.big .hl { background-size: 100% 100%; color: var(--accent-ink); transition: none; } }
.slide p.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; max-width: 62ch; margin: 0 0 14px; }
.slide p { font-size: 16px; line-height: 1.55; max-width: 62ch; margin: 0 0 12px; }
.slide p:last-child { margin-bottom: 0; }
.slide ul { padding-left: 20px; margin: 0 0 12px; max-width: 62ch; }
.slide li { margin-bottom: 8px; }

/* title */
.title-slide { align-items: flex-start; }
.title-slide .wordmark.big { display: inline-flex; }
.title-slide .lede { margin-top: 26px; max-width: 26ch; font-family: var(--display); font-weight: 600; font-size: clamp(22px, 3vw, 34px); line-height: 1.18; letter-spacing: -0.02em; text-wrap: balance; }
.title-slide .lede em { font-style: normal; background: var(--accent-deep); color: var(--accent-ink); padding: .1em .14em .06em; margin: 0 -.04em; border-radius: .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.title-slide .sub { margin-top: 18px; color: var(--muted); max-width: 56ch; }
.title-slide .go { margin-top: 28px; font-size: 13px; color: var(--muted); }
.title-slide .go kbd { font: 600 11px/1 var(--body); border: 1px solid var(--rule-strong); border-radius: 4px; padding: 3px 6px; margin: 0 2px; }

.chapters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 10px; }
@media (max-width: 760px) { .chapters { grid-template-columns: repeat(2, 1fr); } }
.chapters > div { border-top: 2px solid var(--rule-strong); padding-top: 10px; font-size: 16px; line-height: 1.4; }
.chapters > div:last-child { border-top-color: var(--accent); }
.chapters .eyebrow { display: block; margin-bottom: 6px; }
.chapters[data-walker] { position: relative; margin-top: 74px; }
.chapters[data-walker] > div { color: var(--muted); border-top-color: var(--rule); transition: color .35s ease, border-top-color .35s ease; }
.chapters[data-walker] > div .eyebrow { color: inherit; }
.chapters[data-walker] > div.is-on { color: var(--fg); border-top-color: var(--accent); }
.walker { position: absolute; left: 0; top: 0; width: 44px; height: 58px; pointer-events: none; transition: transform .6s cubic-bezier(.4, 0, .2, 1); will-change: transform; }

.two { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; margin-top: 10px; }
.head-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: clamp(14px, 2.5vw, 36px); align-items: start; } /* headline gets three quarters; the lockup centers in the last quarter */
.head-row { margin-bottom: 24px; }
.head-row h2.big { max-width: none; margin-bottom: 0; } /* the margin moves to the row so the lockup centers on the headline itself */
.head-row .lockup { justify-self: start; align-self: center; width: clamp(120px, 12vw, 156px); height: auto; margin: 0; }
.head-row .lockup-chip { width: clamp(110px, 11vw, 140px); }
.lockup .lk-chip { fill: var(--red); }
.lockup .lk-chip-text { fill: var(--paper); }
@media (max-width: 760px) { .head-row { grid-template-columns: 1fr; } .head-row .lockup { justify-self: start; width: 110px; margin: 0 0 6px; } }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.stats { display: flex; flex-wrap: wrap; gap: 14px 30px; margin: 24px 0 26px; }
.stats div { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1; }
.stats div small { display: block; font: 500 12px/1.3 var(--body); color: var(--muted); margin-top: 6px; letter-spacing: .02em; }
.beats { list-style: none; padding: 0; margin: 12px 0 0; }
.beats li { padding: 14px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 108px 1fr; gap: 18px; font-size: 14.5px; line-height: 1.5; }
.beats li:last-of-type { border-bottom: 0; }
.beats[data-carry] { position: relative; padding-right: 60px; } /* no clipping here: rows and David come in from the screen edge, and the slide clips at the viewport */
.beats[data-carry] li { will-change: transform; }
.beats[data-carry] li.is-parked { transform: translateX(100vw); }
.beats[data-carry] .walker { transition: none; }
.beats li b { font-family: var(--label); font-weight: 400; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.links a { font-weight: 600; margin-right: 18px; }
.links a::after { content: " \2197"; color: var(--muted); font-weight: 400; }

/* phone frame for the live games */
.phone { width: min(360px, 88vw); aspect-ratio: 9 / 18.5; max-height: calc(100svh - 150px); margin: 0 auto; border-radius: 34px; padding: 10px; background: var(--bezel); box-shadow: 0 30px 60px -20px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06) inset; position: relative; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 86px; height: 22px; border-radius: 12px; background: #000; z-index: 2; }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 26px; background: var(--bezel-2); display: block; }
.phone-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px; }
.phone-stage { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 48px; } /* 48px: the same distance the live sites keep between lockup and frame */
.phone-stage .phone { grid-column: 2; margin: 0; }
.phone-stage .phone-note { grid-column: 3; justify-self: start; text-align: left; max-width: 24ch; margin: 0; font-size: 15px; line-height: 1.45; }
.lockup .lk-snacks { fill: var(--red); }
.lockup .lk-name { fill: var(--fg); }
.lockup .lk-tag { fill: var(--muted); }
@media (max-width: 760px) { .phone-stage { grid-template-columns: 1fr; } .phone-stage .phone, .phone-stage .phone-note { grid-column: 1; justify-self: center; text-align: center; max-width: 40ch; } }

/* mixer */
[data-mixer] { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
.mx-wells { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
@media (max-width: 560px) { .mx-wells { grid-template-columns: repeat(3, 1fr); } }
.mx-well { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); text-align: center; }
.mx-tube { width: 22px; height: 44px; border-radius: 6px 6px 10px 10px; background: var(--pig); box-shadow: inset 0 -8px 0 rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.08); position: relative; }
.mx-tube::before { content: ""; position: absolute; top: -7px; left: 7px; width: 8px; height: 8px; border-radius: 2px; background: #cfc8bb; }
.mx-well input { width: 100%; accent-color: var(--fg); }
.mx-result { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mx-swatch { display: flex; align-items: center; gap: 12px; }
.mx-chip { width: 72px; height: 72px; border-radius: 50%; box-shadow: inset 0 -10px 0 rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.1); transition: background .15s linear; flex: 0 0 auto; }
.mx-label { font-family: var(--display); font-weight: 600; font-size: 14px; line-height: 1.25; }
.mx-label small { font: 400 12px/1.3 var(--body); color: var(--muted); }
.mx-hint { font-size: 13px; }

/* quote in context */
.qi { border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); overflow: hidden; }
.qi-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.qi-chips button { font: 500 12.5px/1.3 var(--body); text-align: left; background: var(--bg); border: 1px solid var(--rule-strong); border-radius: 999px; padding: 6px 11px; cursor: pointer; color: var(--fg); }
.qi-chips button.is-on { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--accent-ink); }
.qi-chips button.is-bad { border-color: var(--red); color: var(--red); }
.qi-chips button::before { content: attr(data-kind); font-family: var(--display); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.qi-chips button.is-on::before { color: var(--accent-ink); opacity: .7; }
.qi-chunk { font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.55; padding: 14px 16px; max-height: 210px; overflow-y: auto; }
.qi-chunk mark { background: var(--accent-deep); color: var(--accent-ink); padding: 1px 2px; border-radius: 2px; }
.qi-status { font-size: 12.5px; color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.cp-flow { margin: 44px 0 0; padding-top: 28px; border-top: 1px solid var(--rule); max-width: none; }
.cp-demo { margin-top: 28px; }
.cp-flow svg { display: block; width: 100%; height: auto; font-family: var(--body); }
.cp-flow .cp-h { font: 400 7px var(--label); fill: var(--fg); letter-spacing: .02em; }
.cp-flow .cp-card rect { fill: var(--surface); stroke: var(--rule-strong); stroke-width: 1; }
.cp-flow .cp-card text { font-size: 7px; font-weight: 600; fill: var(--fg); }
.cp-flow .cp-card text.cp-cite { font: 500 5.5px var(--mono); fill: var(--muted); }
.cp-flow .cp-tag { fill: var(--accent-deep); }
.cp-flow .cp-tagt { font: 400 5.5px var(--label); fill: var(--accent-ink); }
.cp-flow .cp-mono { font: 500 5.5px var(--mono); fill: var(--muted); }
.cp-flow .cp-small { font-size: 6px; fill: var(--fg); }
.cp-flow .cp-cap { font-size: 6px; fill: var(--muted); }
.cp-flow .cp-ln { fill: var(--rule-strong); }
.cp-flow .cp-span { fill: var(--accent); }
.cp-flow .cp-rule { stroke: var(--rule); }
.cp-flow .cp-ok circle { fill: var(--ok); }
.cp-flow .cp-ok path { fill: none; stroke: var(--ok-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cp-flow .cp-edge { fill: none; stroke: var(--fg); stroke-width: 1.5; }
.cp-flow .cp-boundary { stroke: var(--rule-strong); stroke-width: 1.5; stroke-dasharray: 4 4; }
.cp-flow .cp-scrub rect { fill: var(--fg); }
.cp-flow .cp-scrub text { font: 700 6px var(--display); fill: var(--bg); }
.cp-flow .cp-dot { fill: var(--fg); }
.cp-flow .cp-dot-clean { fill: var(--bg); stroke: var(--fg); stroke-width: 1.5; }

/* editor slice */
.ed-frame { border: 1px solid var(--rule-strong); border-radius: 10px; overflow: hidden; background: var(--surface); box-shadow: 0 30px 50px -30px rgba(0,0,0,.35); }
.ed-chrome { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--rule); background: var(--bg); font-size: 12px; color: var(--muted); }
.ed-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rule-strong); }
.ed-url { margin-left: 8px; }
.ed-live { margin-left: auto; font: 600 11px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--rule); color: var(--fg); }
.ed-live.is-live { background: var(--accent-deep); color: var(--accent-ink); }
.ed-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; min-height: 420px; max-height: calc(100svh - 230px); }
@media (max-width: 860px) { .ed-body { grid-template-columns: 1fr; max-height: none; } }
.ed-page { overflow-y: auto; background: #f7f3ec; color: #2a2420; }
.ed-side { border-left: 1px solid var(--rule); padding: 12px; overflow-y: auto; font-size: 13.5px; }
@media (max-width: 860px) { .ed-side { order: -1; border-left: 0; border-bottom: 1px solid var(--rule); max-height: none; overflow: visible; } .ed-page { max-height: 60svh; } } /* stacked: the editor sits on top, right by the hero text it edits */
.ed-tabs { display: flex; gap: 4px; margin-bottom: 10px; }
.ed-tabs button { font: 600 12px/1 var(--body); padding: 7px 10px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; }
.ed-tabs button.is-on { background: var(--fg); color: var(--bg); }
.ed-hint { font-size: 12.5px; color: var(--muted); margin: 0 0 10px; }
.ed-label { display: block; font: 600 12px/1.3 var(--body); margin-bottom: 6px; }
.ed-label small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.ed-input { width: 100%; font: 400 13.5px/1.45 var(--body); padding: 8px 10px; border: 1px solid var(--rule-strong); border-radius: 6px; background: var(--bg); color: var(--fg); resize: vertical; }
.ed-tones { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.ed-pill { font: 500 12px/1 var(--body); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--rule-strong); background: transparent; color: var(--fg); cursor: pointer; }
.ed-pill.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.ed-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ed-btn { font: 600 12.5px/1 var(--body); padding: 9px 12px; border-radius: 6px; border: 1px solid var(--rule-strong); background: var(--surface); color: var(--fg); cursor: pointer; }
.ed-btn.ed-primary { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--accent-ink); }
.ed-btn:disabled { opacity: .6; cursor: default; }
.ed-suggest, .ed-flag, .ed-score { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 6px; background: var(--bg); }
.ed-suggest p, .ed-flag p { margin: 0 0 6px; font-size: 13.5px; }
.ed-warn { color: var(--amber, #b8860b); font-size: 12px; }
.ed-kit { display: grid; grid-template-columns: 70px 1fr; gap: 4px 10px; font-size: 12.5px; margin: 0 0 12px; }
.ed-kit dt { color: var(--muted); } .ed-kit dd { margin: 0; }
.ed-score { display: flex; gap: 12px; align-items: center; }
.ed-score b { font-family: var(--display); font-size: 36px; line-height: 1; }
.ed-score b.good { color: #3e9a4a; } .ed-score b.mid { color: #b8860b; } .ed-score b.bad { color: var(--red); }
.ed-flag.high { border-left: 3px solid var(--red); } .ed-flag.medium { border-left: 3px solid #b8860b; } .ed-flag.low { border-left: 3px solid var(--rule-strong); }
.ed-sev { font: 600 10px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-left: 6px; }
.ed-sugg { font-style: italic; }
.ed-toast { font-size: 13px; padding: 10px 12px; background: var(--wash); color: var(--accent-ink); border-radius: 6px; margin-top: 10px; }

/* the Glenabbey page inside the editor */
.ed-page .slot { cursor: text; border-radius: 3px; outline: 1px dashed transparent; outline-offset: 2px; transition: outline-color .12s; }
.ed-page .slot:hover { outline-color: rgba(51,84,165,.6); }
.ed-page .slot.is-active { outline: 2px solid #3354a5; background: rgba(51,84,165,.06); }
.wk-eyebrow { font: 600 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #8a6d3b; margin: 0 0 12px; }
.wk-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; padding: 32px 28px; align-items: center; background: #1f1a16; color: #f3ebdc; }
.wk-hero .wk-eyebrow { color: #d9b56b; }
.wk-hero h1 { font: 700 clamp(26px, 3vw, 38px)/1.05 Georgia, "Times New Roman", serif; margin: 0 0 12px; color: #fff; letter-spacing: -.01em; }
.wk-sub { font-size: 14px; line-height: 1.55; color: #d9cfbf; margin: 0 0 16px; }
.wk-btn { display: inline-block; font: 600 12px/1 var(--body); padding: 10px 14px; border: 1px solid #d9b56b; color: #f3ebdc; border-radius: 3px; }
.wk-img { border-radius: 6px; min-height: 180px; background: #3a2c22; }
.wk-bottle { background: radial-gradient(ellipse at 50% 30%, #c8873a 0, #6e3f1c 35%, #1f1512 70%); }
.wk-barrels { background: repeating-linear-gradient(90deg, #6b4a2e 0 22px, #4f3421 22px 26px), #5a3d27; min-height: 160px; }
.wk-story { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; padding: 28px; align-items: center; }
.wk-story h2, .wk-range h2 { font: 700 22px/1.15 Georgia, "Times New Roman", serif; margin: 0 0 10px; color: #2a2420; }
.wk-story p { font-size: 13.5px; line-height: 1.55; margin: 0; }
.wk-range { padding: 8px 28px 28px; }
.wk-bottles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.wk-b .wk-img { min-height: 110px; }
.wk-b1 { background: linear-gradient(180deg, #e9c27a, #b8862f); } .wk-b2 { background: linear-gradient(180deg, #d09a4a, #8a5a1e); } .wk-b3 { background: linear-gradient(180deg, #8c4a2a, #3d1e12); }
.wk-b h3 { font: 700 15px/1.2 Georgia, serif; margin: 10px 0 4px; color: #2a2420; }
.wk-b p { font-size: 12.5px; line-height: 1.45; margin: 0; color: #5a4d44; }
@media (max-width: 700px) { .wk-hero, .wk-story { grid-template-columns: 1fr; } .wk-bottles { grid-template-columns: 1fr; } }

/* the office */
[data-title="Meta"] .two { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
[data-office] { position: relative; min-height: 380px; }
.office-slide { position: relative; padding: 0 !important; overflow: hidden; }
.office-slide [data-office] { position: absolute; inset: 0; }
.of-wrap { position: absolute; inset: 0; background: var(--bg); }
.of-canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.of-intro { position: absolute; z-index: 3; left: clamp(20px, 5vw, 72px); top: clamp(64px, 10vh, 110px); width: min(440px, calc(100vw - 2 * clamp(20px, 5vw, 72px))); max-height: calc(100svh - 120px); overflow: auto; padding: 18px 20px 16px; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); } /* solid on purpose: a backdrop blur over the live canvas flickered */
.of-intro h2.big { font-size: clamp(20px, 2vw, 26px); max-width: none; margin-bottom: 10px; }
.of-intro p.lead { font-size: 14px; line-height: 1.45; margin-bottom: 8px; }
.of-intro p { font-size: 13px; margin-bottom: 0; }
.of-hud { position: absolute; z-index: 2; left: clamp(16px, 3vw, 28px); bottom: 42px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 500 12px/1 var(--body); color: var(--fg); }
.of-hint { background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 999px; padding: 8px 12px; }
.of-touch { display: none; }
[data-office]:not(.is-focused) .of-hud { display: none; }
.of-dialog { position: absolute; z-index: 3; left: 50%; bottom: 96px; transform: translateX(-50%); width: min(640px, calc(100vw - 32px)); background: var(--fg); color: var(--bg); border-radius: 12px; padding: 14px 18px 14px; min-height: 76px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.5); }
.of-name { font: 400 11px/1 var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.of-text { font-size: 15px; line-height: 1.4; padding-right: 22px; }
.of-dialog .of-more { position: absolute; right: 14px; bottom: 12px; color: var(--accent); font-size: 12px; animation: of-blink 1s steps(2) infinite; }
@media (pointer: coarse) { .of-mouse { display: none; } .of-touch { display: inline; } }

/* timeline */
.slide ul.tl { list-style: none; padding: 0; margin: 10px 0 0; border-left: 2px solid var(--rule-strong); } /* beats .slide ul, so the bullets sit on the rail */
.tl-more { margin-top: 18px; font-size: 14px; }
.tl li { position: relative; padding: 0 0 16px 22px; font-size: 14.5px; }
.tl li::before { content: ""; position: absolute; box-sizing: border-box; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--fg); } /* border-box: the global reset skips pseudo-elements, and the borders were pushing it off the rail */
.tl li b { display: block; font-family: var(--display); font-weight: 600; font-size: 15px; }
.tl li span { color: var(--muted); font-size: 13px; }
.tl[data-walker] { position: relative; margin-left: 58px; }
.tl[data-walker] li { color: var(--muted); transition: color .35s ease; }
.tl[data-walker] li::before { border-color: currentColor; transition: border-color .35s ease, background-color .35s ease; }
.tl[data-walker] li span { color: inherit; opacity: .78; }
.tl[data-walker] li.is-on { color: var(--fg); }
.tl[data-walker] li.is-on::before { background: var(--accent); border-color: var(--accent); }
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 44px; }
.values[data-carry] { position: relative; }
.values[data-carry] > div { will-change: transform; }
.values[data-carry] > div.is-parked { transform: translateY(120vh); }
.values[data-carry] .walker { transition: none; }
@media (max-width: 760px) { .values { grid-template-columns: repeat(2, 1fr); } }
.values div { border-top: 2px solid var(--rule-strong); padding-top: 8px; font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.25; transition: border-color .25s ease, color .25s ease; }
.values div small { display: block; font: 400 13px/1.4 var(--body); color: var(--muted); margin-top: 4px; }

/* contact */
.contact-big { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3.4vw, 40px); letter-spacing: -.02em; line-height: 1.1; }
.contact-big a { color: var(--fg); border-bottom: 3px solid var(--accent); }
.contact-row { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 18px; font-size: 15px; }
.contact-row a { color: var(--fg); font-weight: 500; }
.contact-row a::after { content: " \2197"; color: var(--muted); }
.ask-big { display: inline-block; margin-top: 22px; font: 700 15px/1 var(--display); padding: 14px 20px; border-radius: 999px; background: var(--fg); color: var(--bg); border: 0; cursor: pointer; }

/* Ask David modal */
html.ask-open, html.ask-open body { overflow: hidden; }
.ask-root { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: clamp(12px, 3vw, 40px); opacity: 0; pointer-events: none; transition: opacity .2s; }
.ask-root.is-open { opacity: 1; pointer-events: auto; }
.ask-backdrop { position: absolute; inset: 0; background: rgba(20,20,22,.6); }
.ask-panel { position: relative; width: min(640px, 100%); background: var(--surface); color: var(--fg); border-radius: 12px; padding: 26px 28px 22px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); }
.ask-close { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--bg); font-size: 22px; line-height: 1; cursor: pointer; color: var(--fg); }
.ask-title { font-size: clamp(22px, 3vw, 30px); margin: 6px 0 6px; }
.ask-sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.ask-stage { min-height: 150px; }
.ask-q { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.25; margin: 0 0 14px; }
.ask-a { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-opt { font: 500 14px/1 var(--body); padding: 11px 14px; border-radius: 999px; border: 1px solid var(--rule-strong); background: transparent; color: var(--fg); cursor: pointer; }
.ask-opt:hover, .ask-opt.is-picked { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ask-form { width: 100%; }
.ask-input { width: 100%; font: 400 15px/1.45 var(--body); padding: 10px 12px; border: 1px solid var(--rule-strong); border-radius: 8px; background: var(--bg); color: var(--fg); }
.ask-row { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.ask-btn { display: inline-block; font: 700 14px/1 var(--display); padding: 12px 18px; border-radius: 999px; border: 0; background: var(--fg); color: var(--bg); cursor: pointer; }
.ask-skip { font: 500 13px/1 var(--body); background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; }
.ask-nums { display: flex; gap: 6px; margin-top: 18px; }
.ask-num { font: 600 11px/1 var(--display); letter-spacing: .06em; width: 34px; height: 26px; border-radius: 999px; border: 1px solid var(--rule); background: transparent; color: var(--muted); cursor: pointer; }
.ask-num.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.ask-num.is-done { border-color: var(--accent); color: var(--fg); }

@media print { .mast, .phone-note, .of-pad, .of-hud { display: none !important; } }
@keyframes of-blink { to { opacity: 0; } }

/* Snacks Slides, live in a browser frame */
.sl-frame { margin-top: 6px; }
.sl-live { display: block; width: 100%; height: min(600px, calc(100svh - 230px)); min-height: 380px; border: 0; background: #ececee; }
.ed-open { margin-left: auto; font-size: 12px; color: var(--fg); text-decoration: none; }
.ed-open:hover { color: var(--link); }
.sl-note { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* the greeter: David standing in the left gutter of a slide, watching the cursor */
.slide[data-greeter] { position: relative; }
.greeter { position: absolute; left: 0; top: 0; width: 44px; height: 58px; pointer-events: none; will-change: transform; }

/* the founders: on [data-founders] Paul and David walk in, high five under the chip, and the chip pops in */
.slide[data-founders] { position: relative; }
.founders { position: absolute; left: 0; top: 0; pointer-events: none; }
[data-founders] .head-row .lockup-chip { align-self: start; margin-top: 10px; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), opacity .2s ease; transform-origin: 50% 100%; }
[data-founders] .head-row .lockup-chip.is-waiting { opacity: 0; transform: translateY(14px) scale(.6); transition: none; }

/* ───────── phones and small tablets ───────── */
.go-touch, .of-intro .of-more { display: none; }
@media (pointer: coarse) { .go-keys, .keys-only { display: none; } .go-touch { display: block; } }
.cp-steps { display: none; }
@media (max-width: 760px) {
  .slide { justify-content: flex-start; padding: 72px 18px 64px; }
  .slide .eyebrow { margin-bottom: 14px; }
  h2.big { font-size: clamp(28px, 8.4vw, 40px); margin-bottom: 18px; }
  .slide p.lead { font-size: 16.5px; }
  .two { gap: 22px; margin-top: 4px; }
  .head-row { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
  .head-row .lockup { width: 84px; margin: 0; align-self: flex-start; } /* the desktop rule centers it in the column; here it hugs the left */
  .head-row .lockup-chip { width: 76px; }
  .stats { gap: 12px 22px; margin: 18px 0 20px; }
  .stats div { font-size: 22px; }
  .beats li { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .beats[data-carry] { padding-right: 0; }
  .beats li b { font-size: 11px; }
  .mast { padding: 12px 14px; gap: 10px; }
  .mast .ask-trigger { padding: 8px 10px; font-size: 12px; }
  .ask-long { display: none; }
  .wordmark { font-size: 19px; }
  /* phone slides: the app is the point, the lockup a badge above it */
  .phone-stage { gap: 14px; }
  .phone { max-height: 80svh; }
  .phone-stage .phone-note { font-size: 13.5px; }
  /* the portal flow reads as a list on phones */
  .cp-flow { display: none; }
  .cp-steps { display: block; list-style: none; counter-reset: cps; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--rule); }
  .cp-steps li { counter-increment: cps; display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 1.45; }
  .cp-steps li::before { content: counter(cps, decimal-leading-zero); font: 400 11px/1.2 var(--label); color: var(--accent-ink); background: var(--accent-deep); padding: 4px 0 3px; text-align: center; height: max-content; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%); }
  .cp-steps li b { display: block; font: 400 11px/1.4 var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--fg); margin-bottom: 2px; }
  .cp-steps li b, .cp-steps li span { grid-column: 2; }
  .cp-steps li span { color: var(--muted); }
  /* the office card collapses to its title; tap More to read */
  .of-intro { left: 12px; right: 12px; top: 64px; width: auto; max-height: none; padding: 40px 14px 12px; }
  .of-intro .of-more { display: inline-block; position: absolute; top: 10px; right: 12px; font: 600 12px/1 var(--body); color: var(--fg); background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 999px; padding: 6px 10px; cursor: pointer; }
  .of-intro.is-collapsed p { display: none; }
  .of-intro h2.big { font-size: 17px; margin-bottom: 6px; }
  .of-intro .eyebrow { font-size: 10px; margin-bottom: 8px; }
  .of-hud { bottom: 14px; left: 12px; }
  .of-dialog { bottom: 64px; width: calc(100vw - 24px); }
  .sl-live { height: min(520px, calc(100svh - 200px)); min-height: 320px; }
  .values { gap: 14px; margin-top: 28px; }
  .chapters[data-walker] { margin-top: 64px; }
  /* no walker on the resume list here: every role reads in full ink */
  .tl[data-walker] { margin-left: 0; }
  .tl[data-walker] li, .tl[data-walker] li span { color: var(--fg); opacity: 1; }
  .tl[data-walker] li span { color: var(--muted); }
  .tl[data-walker] li::before { border-color: var(--fg); }
  .tl[data-walker] .walker { display: none; }
}
@media (max-width: 420px) { .mast .ask-trigger { padding: 7px 9px; } .wordmark { font-size: 17px; } }
