/* Dock and Bento sketches, round 5 (comp-4/5 since Raymond approved comp-6/7 on 2026-10-04; built as comp-6/7). Forked from sketch.css; comp-4/5 and sketch.css/js are
   untouched. Desktop (>900px, motion allowed): the document itself scrolls sideways, driven by Lenis, like
   outpacestudios.com. Measured reference: _research/outpace-motion.md
   Round 5 fixed the critique's five findings: the flat ending, the mark motion, work tiles opening a project
   view, discoverability, and technical debt (tokens, transform-only dock indicator, lazy images, loading/fail
   states). Round 5b applies prototypes/_sketches/dock-bento/round5/POLISH-PLAN.md's clarify/distill/polish
   items (comp-4/5's dead-eyebrow, dead-CSS, CTA-order, states, browser-surface and focus findings), scoped to
   this file only, plus Raymond's four answers on it. */
@import url('../../_shared/brand/tokens.css');
@import url('../../_shared/brand/fonts.css');

*, *::before, *::after { box-sizing: border-box; }
html { overscroll-behavior-x: none; scroll-padding-bottom: 88px; } /* polish P12: the fixed dock's own clearance, so a focused element below 901px never lands under it */
html:has(dialog[open]) { overflow: hidden; }
/* round 5b, found during review: the UA's own `[hidden]{display:none}` loses to this file's own `.scroll-cue`/
   `.brief-fields`/`.brief-done`/`.pill` rules at equal specificity (author beats user-agent), so setting the
   `hidden` property alone never actually hid them. This is the one rule every `hidden` toggle in sketch-v2.js
   depends on; it must outrank every component rule below it, so it stays !important rather than relying on
   source order across the whole file. */
[hidden] { display: none !important; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 17px/1.45 var(--font-brand); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
/* polish P5: 2px per brand/README.md (was 3px); navy surfaces get a navy-safe ring (cyan reads ~2.7:1 on navy,
   under the 3:1 non-text floor; --cyan already resolves correctly on paper) */
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.on-navy, .brief, .why-pin { --focus-ring: var(--cyan); }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
/* polish P2: text selection and scrollbars, themed instead of left at the browser default; a navy group keeps
   contrast on dark surfaces (dialog.project stays on the default pair, it's a light surface) */
::selection { background: var(--accent); color: var(--on-accent); }
.on-navy ::selection, .brief ::selection, .why-pin ::selection, dialog.book ::selection { background: var(--cyan); color: var(--navy); }
* { scrollbar-color: var(--line-strong) transparent; }
.on-navy, .brief, .why-pin, dialog.book { scrollbar-color: var(--navy-400) transparent; }

.skip { position: fixed; z-index: 60; left: 16px; top: 12px; padding: 10px 16px; border-radius: var(--radius-full); background: var(--cta-fill); color: var(--cta-ink); transform: translateY(-200%); }
.skip:focus { transform: none; }
main:focus { outline: none; }

/* Header: logo + name. It sits in the document, so it slides away with the hero. */
.top { position: absolute; z-index: 5; top: 24px; left: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 500; font-size: 24px; letter-spacing: -.03em; } /* Raymond #4: display weight 600 (brand spec); see the file-level note on the 600 face */

/* Shared atoms */
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: var(--radius-full); border: 1.5px solid var(--cta-fill); background: var(--cta-fill); color: var(--cta-ink); font-weight: 500; font-size: 18px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.pill.line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.on-navy .pill { background: #fff; color: var(--navy); border-color: #fff; }
.on-navy .pill.line { background: transparent; color: #fff; border-color: rgb(255 255 255 / .55); }
/* polish P1: hover, active and distinct states on every pill (grep of the pre-round-5b file found zero
   :hover/:active rules anywhere; this is the base case every other :hover/:active rule in this file builds on) */
.pill:hover { background: var(--cta-fill-hover); border-color: var(--cta-fill-hover); }
.pill.line:hover { background: var(--surface-sunken); }
.on-navy .pill:hover { background: var(--navy-100); border-color: var(--navy-100); }
.on-navy .pill.line:hover { background: rgb(255 255 255 / .12); }
.pill:active { transform: scale(.97); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* D1/D2, Raymond #3: the eyebrow treatment is gone from this file (why.heading is a real heading below,
   services.addons_heading is an h3); once both land nothing calls .eyebrow/.on-navy .eyebrow here, so both
   are removed rather than left dead. */
h1 { font-weight: 500; font-size: clamp(46px, 13vw, 64px); line-height: .94; letter-spacing: -.035em; } /* polish P6: craft-floor's -.04em floor and brand's -.015 to -.035em range (was -.045em); Raymond #4: weight 600 */
.ghost { color: var(--navy-500); }
.on-navy .ghost { color: var(--navy-300); }
h2 { font-weight: 500; font-size: clamp(36px, 10vw, 48px); line-height: 1; letter-spacing: -.035em; } /* Raymond 2026-10-04: Medium 500 (Neue Haas has no 600; 600 rendered as Bold) */
h3 { font-size: 22px; letter-spacing: -.02em; }
.lead { font-size: 19px; line-height: 1.35; color: var(--ink-muted); max-width: 38ch; }
.on-navy { background: var(--navy); color: #fff; }
.on-navy .lead, .on-navy p { color: var(--navy-200); }
.muted { color: var(--ink-muted); }
.glyph { display: flex; width: 24px; height: 24px; color: var(--ink); }
.glyph svg { width: 100%; height: 100%; }

.tile { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--surface-sunken); }
.tile .tag { position: absolute; left: 16px; bottom: 14px; padding: 4px 12px; border-radius: var(--radius-full); background: var(--surface-raised); font-size: 13px; font-weight: 500; }
.tile.stage { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 44px 40px; }
.tile.stage img { max-height: 100%; min-width: 0; object-fit: contain; border-radius: var(--radius-m); box-shadow: 0 10px 30px color-mix(in srgb, var(--navy) 12%, transparent); }
.tile.stage img.ph { height: 100%; width: auto; box-shadow: none; }
/* finding 3: work tiles are real controls (a <button>, not a <figure>); reset the button chrome, keep the stage look */
.tile.proj { border: 0; margin: 0; -webkit-appearance: none; appearance: none; background: var(--surface-sunken); font: inherit; color: inherit; text-align: inherit; cursor: pointer; transition: box-shadow .2s, transform .2s; }
.tile.proj:hover, .tile.proj:focus-visible { box-shadow: 0 0 0 2px color-mix(in srgb, var(--navy) 18%, transparent) inset; }
.tile.proj:active { transform: scale(.98); }
/* finding 5: a loading and failure state for the work panels, so a slow or failed projects.json never leaves a blank tile */
.wk-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--ink-muted); }
.wk-status.fail { color: var(--ink); }
.tile.skeleton { background: linear-gradient(100deg, var(--surface-sunken) 30%, var(--surface-raised) 50%, var(--surface-sunken) 70%); background-size: 200% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .tile.skeleton { animation: shimmer 1.6s linear infinite; }
  @keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
}

/* distill D1 (Raymond's answer): "See the work" is a quiet text link, not a pill, kept beside the two hero
   pills rather than folded into the fill/order swap orderCTAs() runs on [data-book]/[data-wa] pairs */
.see-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 15px; font-weight: 500; color: var(--ink-muted); text-decoration: underline; text-underline-offset: 6px; }
.see-more:hover { color: var(--ink); opacity: .72; }
.see-more:active { opacity: .6; }
.mail { font-size: 18px; text-underline-offset: 6px; } /* polish P4: brand's "6px below the baseline" (was unthemed/auto) */
.mail:hover { opacity: .72; }
.mail:active { opacity: .6; }

/* ---------- Vertical page (phones, tablets, reduced motion) ---------- */
.track { display: flex; flex-direction: column; gap: 72px; padding: 104px 16px 140px; }
.hero { display: flex; flex-direction: column; gap: 28px; }
.hero-copy { display: grid; gap: 18px; }
.wk { display: grid; gap: 24px; }
.wk-text { display: grid; gap: 14px; align-content: end; }
.wk-list { display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.wk-list b { display: block; font-size: 20px; letter-spacing: -.02em; }
.plat { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-muted); }
.bento4 { display: grid; gap: 12px; }
.bento4 .tile { aspect-ratio: 1.2; }
.cols { display: grid; gap: 28px; }
.cols article { display: grid; gap: 10px; align-content: start; }
.cols p { color: var(--ink-muted); }
.services, .how { display: grid; gap: 32px; align-content: start; }
/* distill D2: "And after launch" is now an h3 (reuses the h3 rule above), not a demoted eyebrow label; it
   needs its own gap now that it's not relying on the inline margin-top the eyebrow version used */
.services .addons { display: grid; gap: 14px; }
.why { border-radius: var(--radius-2xl); overflow: hidden; --p: 1; --q: 1; }
.why-pin { position: relative; display: grid; gap: 28px; padding: 40px 24px; background: var(--navy-900); color: color-mix(in srgb, #fff calc(var(--p) * 100%), var(--navy-500)); }
.why-pin::before { content: ""; position: absolute; inset: 0; opacity: var(--p); background: radial-gradient(120% 90% at 85% 110%, var(--navy-300) 0%, var(--navy-600) 28%, var(--navy) 58%, var(--navy-950) 100%); }
.why-pin > * { position: relative; }
/* distill D1, Raymond #3: "Why RYD" is the section's real visible heading now (no eyebrow treatment), sized
   down from the global h2 so it doesn't compete with .why-lines; the vh cap matches .why-lines' own pattern
   below so the heading never crowds the pin on a short viewport */
.why-pin h2 { line-height: 1.05; }
.why-lines { display: grid; gap: 28px; font-size: clamp(28px, 7vw, 40px); font-weight: 500; line-height: 1.08; letter-spacing: -.03em; max-width: 21ch; } /* Raymond 2026-10-04: Medium 500 (Neue Haas has no 600; 600 rendered as Bold) */
.why-lines span { display: block; }
.why-lines .was { opacity: .5; }
/* distill D6: transform stays the one thing the base rule animates; opacity and filter now live only in the
   desktop-and-motion query below, so no two rules set opacity for .why .actions (the base's old opacity/filter
   were already inert off the pinned stretch, since --q only exists there; this just stops saying so twice) */
.why .actions { transform: translateY(calc((1 - var(--q)) * 20px)); }
.faq { display: grid; gap: 28px; }
.faq-list { display: grid; gap: 8px; }
details { border-radius: var(--radius-l); background: var(--surface-raised); border: 1px solid var(--line); padding: 16px 20px; }
/* polish P8: the native disclosure triangle can't be styled consistently; an authored chevron (ICON.chevron)
   replaces it, rotating open, same stroke system as the rest of the page's icons */
summary { cursor: pointer; font-weight: 500; font-size: 18px; list-style: none; display: flex; align-items: center; gap: 10px; }
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--ink); }
summary:active { transform: scale(.98); }
.chev { display: flex; flex: none; width: 18px; height: 18px; transition: transform .2s; }
details[open] summary .chev { transform: rotate(180deg); }
details p { margin-top: 10px; color: var(--ink-muted); }
.close-panel { display: grid; gap: 32px; }
.close-panel h2 { font-size: clamp(42px, 11vw, 64px); }
.brief { display: grid; gap: 12px; padding: 28px; border-radius: var(--radius-2xl); background: var(--navy); color: #fff; position: relative; }
.brief h3 { font-size: 28px; }
.brief label { display: grid; gap: 6px; font-size: 14px; color: var(--navy-200); }
.brief input, .brief textarea { padding: 12px 14px; border-radius: var(--radius-m); border: 1px solid var(--navy-500); background: var(--navy-900); color: #fff; caret-color: var(--cyan); } /* polish P3: an intentional caret colour, matches .brief output's existing cyan */
.brief input[aria-invalid="true"], .brief textarea[aria-invalid="true"] { border-color: #FF8A7A; }
.brief textarea { min-height: 84px; resize: vertical; }
.brief small { font-size: 13px; color: var(--navy-300); } /* clarify C7: form.need_hint, muted a step further than the navy-200 label */
.brief .pill { background: #fff; color: var(--navy); border-color: #fff; }
.brief .pill:hover { background: var(--navy-100); border-color: var(--navy-100); }
.brief output { color: var(--cyan); font-weight: 500; }
/* finding 1: authored error copy from voice.md's form table, tied to the field with aria-describedby (not the browser's bubbles) */
.field-err { display: block; min-height: 1em; margin-top: 2px; font-size: 13px; color: #FF8A7A; }
/* finding 1: form -> confirmation, one short authored transition (~350ms, transform + opacity, natural deceleration) */
.brief-fields { display: grid; gap: 12px; transition: opacity .35s cubic-bezier(.16,1,.3,1), transform .35s cubic-bezier(.16,1,.3,1); }
.brief.done .brief-fields { opacity: 0; transform: translateY(-10px); }
.brief-done { display: grid; gap: 10px; opacity: 0; transform: translateY(10px); transition: opacity .35s cubic-bezier(.16,1,.3,1) .05s, transform .35s cubic-bezier(.16,1,.3,1) .05s; }
.brief.done-in .brief-done { opacity: 1; transform: none; }
.brief-done .done-lead { color: #fff; font-weight: 500; font-size: 20px; }
.brief-done .done-echo, .brief-done .done-to, .brief-done .done-next { color: var(--navy-200); }
@media (prefers-reduced-motion: reduce) {
  .brief-fields, .brief-done { transition: opacity .15s linear; transform: none !important; }
}

/* Dock (Outpace: fixed pill 24px from the bottom, an indicator that steps per section) */
.dock { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: 16px; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: var(--radius-full); background: var(--surface-raised); box-shadow: var(--shadow-raise); white-space: nowrap; overflow: hidden; } /* distill D8: shadow only, the 1px border under it was the ghost-card pattern */
.dock-logo { display: none; }
.dock-logo img { width: 46px; height: 30px; object-fit: contain; }
.dock-logo:hover { opacity: .8; }
.dock-logo:active { opacity: .6; }
.dock-links { position: relative; display: flex; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
/* finding 4: an edge fade below 901px, so links scrolled out of the strip still read as reachable */
@media (max-width: 900px) {
  .dock-links { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%); }
}
.dock-links a { position: relative; z-index: 1; display: inline-flex; align-items: center; padding: 10px 14px 10px 26px; border-radius: var(--radius-full); text-decoration: none; color: var(--ink-muted); font-weight: 500; transition: color .3s; }
.dock-links a[aria-current="true"] { color: var(--ink); }
.dock-links a:hover { color: var(--ink); }
.dock-links a:active { transform: scale(.97); }
/* finding 5: the indicator now moves and resizes with transform only (translateX + scaleX FLIP), no width transition */
.dock-ind { position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: var(--radius-full); background: var(--surface-sunken); box-shadow: 0 2px 4px color-mix(in srgb, var(--navy) 6%, transparent); transform-origin: left center; transform: scale(0); transition: transform .3s cubic-bezier(.215,.61,.355,1); }
.dock-ind::before { content: ""; position: absolute; left: 11px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--navy); } /* 2026-10-03, Raymond: the indicator uses the primary navy, not cyan */
.dock-lang { display: flex; align-items: center; padding: 0 6px; border-left: 1px solid var(--line); }
.dock-lang button { border: 0; background: none; padding: 10px 7px; cursor: pointer; color: var(--ink-muted); font-weight: 500; border-radius: var(--radius-full); }
.dock-lang button[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.dock-lang button:hover { color: var(--ink); background: var(--surface-sunken); }
.dock-lang button:active { transform: scale(.97); }
/* finding 5: 44px touch target on touch devices (was 30-37px wide) */
@media (pointer: coarse) { .dock-lang button { min-width: 44px; min-height: 44px; } }
.dock-book { min-height: 44px; padding: 0 20px; font-size: 16px; }

.theme { position: absolute; z-index: 31; right: 16px; top: 16px; display: flex; gap: 2px; padding: 3px; border-radius: var(--radius-full); background: var(--surface-raised); border: 1px solid var(--line); }
.theme.hide { opacity: 0; pointer-events: none; }
.theme button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; cursor: pointer; font-weight: 700; color: var(--ink); }
.theme button[aria-pressed="true"] { background: var(--cta-fill); color: var(--cta-ink); }
.theme button:hover { color: var(--ink); background: var(--surface-sunken); }
.theme button:active { transform: scale(.9); }

/* Booking panel: grows out of the dock (Outpace: bottom 88px, 480 wide, radius 32, 0.35s back.out(0.5)) */
dialog.book { position: fixed; inset: auto 0 88px; margin: 0 auto; width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 108px); padding: 0; border: 0; border-radius: var(--radius-2xl); overflow: auto; box-shadow: 0 30px 80px color-mix(in srgb, var(--navy-950) 40%, transparent); transform-origin: 50% 100%; }
dialog.book::backdrop { background: rgb(244 241 236 / .2); backdrop-filter: blur(4px); }
/* finding 1: an exit that mirrors the entrance (same transform + radius), ~180ms, faster than the 350ms entrance */
@media (prefers-reduced-motion: no-preference) {
  dialog.book[open] { animation: grow .35s cubic-bezier(.34,1.3,.64,1); }
  dialog.project[open] { animation: grow .3s cubic-bezier(.34,1.2,.64,1); }
  @keyframes grow { from { transform: scale(0); border-radius: 0; } }
}
dialog.book.closing, dialog.project.closing { animation: shrink .18s cubic-bezier(.4,0,1,1) forwards; }
@keyframes shrink { to { transform: scale(0); border-radius: 0; } }
.book-in { position: relative; display: grid; gap: 14px; padding: 32px 28px 24px; }
.book-in h2 { font-size: 36px; padding-right: 48px; }
.book-in > p { color: var(--navy-200); font-size: 17px; line-height: 1.3; } /* polish P7: body text, not the accent (cyan has one job: the primary action / a live signal) */
.x { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px solid currentColor; background: none; color: inherit; cursor: pointer; }
.book-in .x:hover { background: rgb(255 255 255 / .12); }
.pv-in .x:hover { background: var(--surface-sunken); }
.x:active { transform: scale(.93); }
.cal { padding: 20px; border-radius: var(--radius-xl); background: var(--navy-700); display: grid; gap: 10px; }
.cal-head { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.cal-head span { flex: 1; }
.cal-head button { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--navy-400); background: none; color: #fff; cursor: pointer; }
.cal-head button:disabled { opacity: .35; cursor: default; }
.cal-head button:hover:not(:disabled) { background: var(--navy-600); }
.cal-head button:active:not(:disabled) { transform: scale(.93); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid span { font-size: 13px; color: var(--navy-300); padding: 2px 0; }
.cal-grid button { height: 34px; border: 0; border-radius: var(--radius-m); background: none; color: #fff; cursor: pointer; font-size: 16px; font-variant-numeric: tabular-nums; } /* polish P10: a numeric grid, not running text */
.cal-grid button:disabled { color: var(--navy-500); cursor: default; }
.cal-grid button:hover:not(:disabled) { background: var(--navy-600); }
.cal-grid button:active:not(:disabled) { transform: scale(.9); }
.cal-grid button[aria-pressed="true"] { background: var(--warm-paper); color: var(--navy); font-weight: 700; }
.cal-picked { font-size: 14px; color: var(--navy-200); min-height: 1.2em; margin: 0; } /* clarify C8: visible confirmation of the picked day, not just the hidden WhatsApp href */
.book-in .actions .pill { flex: 1; }
.book-in .mail { justify-self: center; color: var(--navy-200); }
@media (max-height: 760px) { .book-in { gap: 10px; padding-top: 24px; } .cal { gap: 6px; } .cal-grid button { height: 30px; } }

/* finding 3: the project view. A centred panel, not anchored to the dock, so it reads apart from the booking panel. */
dialog.project { position: fixed; inset: 0; margin: auto; width: min(1040px, 94vw); max-height: min(88vh, 920px); padding: 0; border: 0; border-radius: var(--radius-2xl); overflow: auto; background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-raise); transform-origin: 50% 50%; }
dialog.project::backdrop { background: color-mix(in srgb, var(--navy) 35%, transparent); backdrop-filter: blur(4px); }
.pv-in { position: relative; padding: 76px 28px 32px; } /* round 5b: extra top clearance so .x never sits over the clicked screen's corner */
.pv-body { display: grid; gap: 24px; }
.pv-x-img, .pv-rest-item img { width: 100%; max-height: 60vh; object-fit: contain; border-radius: var(--radius-l); background: var(--surface-sunken); }
.pv-x { display: grid; gap: 10px; }
.pv-x-label, .pv-rest-item figcaption { font-size: 14px; color: var(--ink-muted); }
.pv-details { display: grid; gap: 10px; align-content: start; }
.pv-sector { font-size: 14px; color: var(--ink-muted); }
.pv-details h3 { font-size: 28px; }
.pv-summary { color: var(--ink-muted); max-width: 48ch; }
.pv-details h4 { font-size: 15px; font-weight: 500; margin-top: 8px; }
.pv-platforms, .pv-features { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--ink-muted); }
.pv-rest { display: grid; gap: 20px; }
/* rule 3 (prototypes/_shared/tools/ROUND4.md): from 900px, two columns; details stays in view, the clicked screen then the rest beside it */
@media (min-width: 900px) {
  .pv-body { grid-template-columns: 300px 1fr; align-items: start; gap: 36px; }
  .pv-details { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 0; }
  .pv-x { grid-column: 2; grid-row: 1; }
  .pv-rest { grid-column: 2; grid-row: 2; grid-template-columns: repeat(2, 1fr); }
}

/* finding 4: a small cue that the page moves sideways, horizontal mode only; fades after the first scroll and stays gone */
.scroll-cue { position: fixed; z-index: 25; left: 50%; bottom: 100px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius-full); background: var(--surface-raised); box-shadow: var(--shadow-raise); font-size: 14px; font-weight: 500; color: var(--ink-muted); pointer-events: none; transition: opacity .5s ease; } /* distill D8: shadow only, same ghost-card fix as the dock */
.scroll-cue.hide { opacity: 0; }
.scroll-cue svg { flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue svg { animation: cue-nudge 1.6s ease-in-out infinite; }
  @keyframes cue-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
}

/* ---------- Desktop: one horizontal document. Same query string as sketch-v2.js ---------- */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  html { overflow-y: hidden; scrollbar-width: none; }
  .top { top: 28px; left: 40px; }
  .brand { font-size: 28px; }
  .brand img { width: 72px; height: 46px; }
  .track { flex-direction: row; width: max-content; height: 100vh; gap: 160px; padding: 0; touch-action: pan-x pinch-zoom; } /* finding 5: an explicit touch-action hint on the horizontal track */
  .track > section { flex: none; height: 100vh; padding: 40px 40px 128px; }
  .page { width: 100vw; min-width: 1304px; }
  .hero { width: calc(100vw + 240px); overflow: clip; gap: 24px; }
  h1 { font-size: clamp(64px, 6.2vw, 92px); }
  .hero-copy { padding-top: 64px; gap: 16px; }
  .hero-copy .lead { max-width: 52ch; font-size: clamp(18px, 1.5vw, 22px); }
  /* Work pages: Outpace's work page, a 2x2 bento of ~1.21:1 tiles on the right, the heading bottom-left */
  .wk, .services, .faq, .close-panel { grid-template-rows: minmax(0, 1fr); }
  .wk { grid-template-columns: 1fr auto; gap: 40px; }
  .wk-text { max-width: 440px; }
  .wk h2 { font-size: 48px; }
  .bento4 { height: 100%; grid-template: 1fr 1fr / 1fr 1fr; gap: 16px; width: calc((100vh - 184px) * 1.212 + 16px); }
  .bento4 .tile { aspect-ratio: auto; min-height: 0; }
  .services { width: 1520px; grid-template-columns: 384px 1fr; column-gap: 80px; align-content: stretch; }
  .services .cols { grid-template-columns: repeat(4, 184px); column-gap: 64px; align-self: center; margin-top: 120px; }
  .how { width: 1456px; grid-template-rows: auto minmax(0, 1fr); }
  .how .cols { grid-template-columns: repeat(3, 384px); column-gap: 112px; align-self: center; }
  .cols h3 { font-size: 22px; }
  /* Breather: 4000px wide, a sticky 100vw panel pins for 4000 - vw of travel */
  .track > .why { width: 4000px; padding: 0; border-radius: 0; overflow: visible; background: var(--surface); }
  .why-pin { position: sticky; left: 0; top: 0; width: 100vw; height: 100vh; padding: min(40px, 4vh) 40px 96px; align-content: start; gap: min(32px, 3vh); }
  .why-pin h2 { font-size: min(28px, 2.6vh); margin-bottom: -6px; } /* round 5b: a real heading, capped by viewport height like .why-lines; measured at 1440x720 ID (the longest copy, near full pin): this size keeps .why .actions clear of the dock instead of the ~36px first pass, which left a sub-1px gap */
  .why-lines { font-size: min(44px, 4.4vh); gap: min(30px, 2.6vh); }
  .faq { width: 1272px; grid-template-columns: 1fr 672px; align-content: center; gap: 64px; }
  .faq-list { align-content: center; }
  .close-panel { grid-template-columns: 1fr 480px; align-items: center; gap: 72px; }
  .close-panel .brief { min-height: min(560px, 100%); align-content: center; }
  @media (max-height: 640px) {
    .brief { padding: 20px 24px; gap: 8px; } .brief textarea { min-height: 52px; }
    .faq-list { gap: 6px; } details { padding: 8px 16px; } summary, details p { font-size: 15px; } details p { margin-top: 6px; } }
  .dock { bottom: 24px; }
  .theme { position: fixed; top: auto; bottom: 34px; }
}
@media (min-width: 901px) { /* the dock centres on the full width; left:50% capped its shrink-to-fit at 50vw and crushed the logo */
  .bento4 { grid-template-columns: 1fr 1fr; }
  .dock { left: 0; right: 0; width: fit-content; max-width: calc(100% - 24px); margin-inline: auto; padding-left: 14px; }
  .dock-logo { display: block; flex: none; } .dock-links { flex: none; overflow: visible; } }
@media (max-width: 420px) { .dock-lang button { padding-inline: 5px; } .dock-book { padding: 0 14px; } }

/* ---------- Comps 6-7: Outpace's first panel. Copy left, the RYD mark big on the right, no product screens ---------- */
.mark { position: relative; overflow: hidden; width: min(100%, 440px); aspect-ratio: 970 / 618; flex: none;
  -webkit-mask: url(../../_shared/brand/ryd-mark-navy-tight.png) center / 100% 100% no-repeat;
  mask: url(../../_shared/brand/ryd-mark-navy-tight.png) center / 100% 100% no-repeat; }
.mark i { position: absolute; }
/* finding 2: will-change only while the motion is actually running (IntersectionObserver + visibilitychange
   drive .offscreen / body.tab-hidden from sketch-v2.js). The pause rule itself lives at the end of this file:
   every `.mark-sweep.sweep-play`/`.hero-mark .mark-liquid`/etc rule below sets the `animation` shorthand, which
   resets animation-play-state to running, so the pause rule must win the equal-specificity tie by source order. */
.mark:not(.offscreen) i { will-change: transform; }
/* comp 4 (built as comp 6): flat navy, softly lit. The sweep is now a one-shot event (sketch-v2.js), not an infinite loop. */
.mark-sweep { background: radial-gradient(80% 110% at 12% 0%, var(--navy-700), var(--navy) 65%); }
.mark-sweep i { inset: 0 -80%; transform: translateX(-28%);
  background: linear-gradient(112deg, transparent 43%,
    color-mix(in srgb, var(--navy-300) 14%, transparent) 47%,
    color-mix(in srgb, var(--navy-300) 45%, transparent) 50%,
    color-mix(in srgb, var(--navy-300) 14%, transparent) 53%,
    transparent 57%); }
@media (prefers-reduced-motion: no-preference) {
  .mark-sweep.sweep-play i { animation: sweep-once 1.1s cubic-bezier(.45, 0, .2, 1) forwards; }
  @keyframes sweep-once { from { transform: translateX(-28%); } to { transform: translateX(28%); } }
}
/* comp 5 (built as comp 7): liquid navy field, two layers of pale navy light pools drifting at different speeds (the "Why RYD" pin keeps this slower pace; comp-7's hero gets its own faster, bigger, brighter pass below) */
.mark-liquid { background: linear-gradient(28deg, var(--navy-950) 0%, var(--navy) 45%, var(--navy-600) 100%); }
.mark-liquid i { background: radial-gradient(20% 28% at 34% 44%, color-mix(in srgb, var(--navy-300) 70%, transparent), transparent 70%), radial-gradient(24% 32% at 70% 60%, color-mix(in srgb, var(--navy-400) 70%, transparent), transparent 70%); }
.mark-liquid i + i { background: radial-gradient(28% 24% at 52% 30%, color-mix(in srgb, var(--navy-500) 70%, transparent), transparent 70%), radial-gradient(18% 24% at 24% 74%, color-mix(in srgb, var(--navy-300) 55%, transparent), transparent 70%); }
@media (prefers-reduced-motion: no-preference) {
  .mark-liquid i { animation: drift 17s ease-in-out infinite alternate; }
  .mark-liquid i + i { animation-duration: 23s; animation-direction: alternate-reverse; }
  @keyframes drift { from { transform: translate(-6%, 4%) rotate(-8deg); } to { transform: translate(7%, -5%) rotate(10deg) scale(1.12); } }
  /* finding 2: comp-7's hero liquid reads within 2-3s: a shorter cycle, bigger and brighter pools (still navy-300/400,
     D1's cap), and the biggest move front-loaded at the 35% mark instead of spread evenly across the cycle */
  .hero-mark .mark-liquid i {
    background: radial-gradient(38% 46% at 34% 44%, color-mix(in srgb, var(--navy-300) 92%, transparent), transparent 72%),
                radial-gradient(42% 50% at 70% 60%, color-mix(in srgb, var(--navy-300) 85%, transparent), transparent 72%);
    animation: drift-fast 6s cubic-bezier(.16, 1, .3, 1) infinite alternate; }
  .hero-mark .mark-liquid i + i {
    background: radial-gradient(44% 40% at 52% 30%, color-mix(in srgb, var(--navy-400) 88%, transparent), transparent 72%),
                radial-gradient(32% 38% at 24% 74%, color-mix(in srgb, var(--navy-300) 80%, transparent), transparent 72%);
    animation: drift-fast 7s cubic-bezier(.16, 1, .3, 1) infinite alternate-reverse; }
  @keyframes drift-fast { 0% { transform: translate(-9%, 5%) rotate(-9deg) scale(.94); } 35% { transform: translate(8%, -6%) rotate(8deg) scale(1.14); } 100% { transform: translate(9%, -7%) rotate(9deg) scale(1.16); } }
}
@media (min-width: 901px) {
  .hero-mark { display: grid; grid-template-columns: minmax(0, 620px) 1fr; column-gap: 40px; align-content: center; }
  .hero-mark .hero-copy { align-self: center; gap: 24px; }
  .hero-mark h1 { font-size: clamp(54px, 4.7vw, 76px); }
  .hero-mark .mark { align-self: center; justify-self: center;
    width: min(calc((100vw - 740px) * .758), calc((100vh - 230px) * 1.047)); }
}
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .hero-mark { width: 100vw; }
}

/* Breather: the RYD mark lit on the trailing half of the pin, so the panel never slides out as an empty dark slab.
   Comp-6 only: a one-shot sheen plays on the "sheen" layer when the pin reaches full light (sketch-v2.js), since
   the hero's own sweep is offscreen by then; the liquid blobs keep drifting underneath either way. */
.why-pin > .mark { display: none; }
.why-pin > .mark .sheen { position: absolute; inset: 0 -80%; pointer-events: none;
  background: linear-gradient(112deg, transparent 43%, color-mix(in srgb, var(--navy-300) 50%, transparent) 50%, transparent 57%);
  transform: translateX(-28%); }
@media (prefers-reduced-motion: no-preference) {
  .why-pin > .mark.sheen-play .sheen { animation: sweep-once 1.1s cubic-bezier(.45, 0, .2, 1) forwards; }
}
@media (min-width: 901px) {
  .why-pin { grid-template: auto 1fr auto / auto 1fr; column-gap: 40px; }
  .why-pin > :not(.mark) { grid-column: 1; }
  .why-lines { align-content: space-between; gap: min(30px, 2vh); }
  .why-pin > .mark { display: block; grid-area: 1 / 2 / -1 / 3; justify-self: end; align-self: center;
    margin: 0 0 calc(min(40px, 4vh) - 14px) 0; width: min(100%, (100vh - 160px) * 1.57);
    background: linear-gradient(28deg, var(--navy-200), var(--navy-50) 70%); /* navy-200 to navy-50 on the navy pin, whole mark inside it (D1) */
    opacity: calc(.55 + .45 * var(--p, 1)); }
}
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .why .actions { opacity: calc(.4 + .6 * var(--q)); filter: blur(calc((1 - var(--q)) * 4px)); }
}

/* finding 2, continued: this must be the last rule touching `.mark i`. Every running animation above (sweep,
   both liquids, the sheen) is declared with the `animation` shorthand, which resets animation-play-state to
   running; at equal specificity the later rule wins the tie, so the pause has to come after all of them. */
.mark.offscreen i, body.tab-hidden .mark i { animation-play-state: paused !important; }

/* round 5b note: h1/h2/.why-lines/.brand are set to font-weight 600 per Raymond #4 and brand/README.md's
   display spec, but prototypes/_shared/brand/fonts.css only ships 300/400/500/700/900 for Neue Haas Grotesk
   Display. CSS font matching resolves an unavailable 600 to the nearest heavier face (700), so this is the
   semantically-correct value with no visible change until a 600 file exists; see STATUS.md. */
