:root {
  --paper:#f3ead8; --paper-deep:#e7d9bf; --ink:#2a2118; --ink-soft:#5a4c3d;
  --muted:#7a6d5c; --rule:#cbbba0; --wash:#c9d7c4; --moss:#4d6244;
  --moss-deep:#3a4a33; --shadow:rgba(42,33,24,.12); --card:#fffaf1;
  --display:"Fraunces", Georgia, serif; --body:"Source Serif 4", Georgia, serif;
}
* { box-sizing:border-box; }
body {
  margin:0; color:var(--ink); background:var(--paper); font:400 16px/1.45 var(--body);
  background-image:radial-gradient(ellipse at 12% -10%,rgba(201,215,196,.45),transparent 50%),
    radial-gradient(ellipse at 110% 0%,rgba(197,212,222,.32),transparent 46%),
    radial-gradient(ellipse at 80% 110%,rgba(214,196,168,.35),transparent 50%);
}
h1,h2,h3,p,figure { margin:0; }
h1,h2,h3,.wordmark { font:500 1em/1.1 var(--display); letter-spacing:-.04em; }
img,svg { display:block; }
a { color:var(--moss-deep); }
button {
  appearance:none; margin:0; padding:0; border:0; background:transparent;
  color:inherit; font:inherit; cursor:pointer; -webkit-tap-highlight-color:transparent;
}
:focus-visible { outline:2px solid var(--moss); outline-offset:3px; }
.screen :focus-visible,.screen:focus-visible { outline-offset:-3px; }
[hidden] { display:none !important; }
.sprite,.sr-only { position:absolute; width:0; height:0; overflow:hidden; }
.sr-only { width:1px; height:1px; clip-path:inset(50%); white-space:nowrap; }
.glyph { width:100%; height:100%; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }

.page { width:calc(100% - clamp(32px,6vw,96px)); max-width:1740px; margin:auto; padding:clamp(28px,4vw,64px) 0 64px; }
.masthead { display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; gap:20px; padding-bottom:32px; }
.wordmark { color:var(--moss-deep); font-size:19px; }
h1 { margin:12px 0; font-size:clamp(46px,5.3vw,80px); line-height:.98; letter-spacing:-.055em; }
.masthead p { max-width:65ch; color:var(--ink-soft); text-wrap:pretty; }
nav { display:flex; gap:4px; padding:4px; border:1px solid var(--rule); border-radius:99px; }
nav a { padding:5px 13px; border-radius:99px; text-decoration:none; font:500 16px/1.4 var(--display); }
nav a:hover,nav a:focus-visible { background:var(--wash); }
.study { padding:clamp(28px,3vw,48px) 0; border-top:1px solid var(--rule); scroll-margin-top:12px; }
.section-head { display:flex; align-items:center; gap:16px; margin-bottom:24px; }
.folio {
  display:grid; place-items:center; flex:none; width:44px; aspect-ratio:1;
  border:1px solid var(--rule); border-radius:50%; color:var(--moss); font:500 23px/1 var(--display);
}
h2 { font-size:clamp(27px,2.5vw,40px); }
.section-head p,.option header p { margin-top:5px; color:var(--ink-soft); text-wrap:pretty; }
.variants { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px clamp(16px,1.55vw,28px); }
#f .variants { grid-template-columns:repeat(6,minmax(0,1fr)); }
#f .option { grid-column:span 2; }
#f .option:has(.desktop) { grid-column:span 3; }
.option { min-width:0; display:grid; grid-row:span 2; grid-template-rows:subgrid; align-content:start; scroll-margin-top:18px; }
.meta { display:flex; align-items:center; gap:8px; }
.badge { padding:4px 9px; background:var(--wash); color:var(--moss-deep); border-radius:7px; text-decoration:none; font:500 16px/1.2 var(--display); }
.tag { padding:2px 8px; border:1px solid var(--rule); border-radius:99px; color:var(--ink-soft); font-size:12px; line-height:1.2; }
h3 { margin-top:11px; font-size:clamp(21px,1.6vw,27px); }
.option header p { font-size:15px; line-height:1.35; }
.hint { margin-top:9px; font-size:13px; color:var(--ink-soft); }

/* One measuring space per device: all of its chrome scales with its own width. */
.screen {
  --dock-bottom:16.7cqw; --dock-height:17cqw;
  --picker-bottom:calc(var(--dock-bottom) + var(--dock-height) + 3.6cqw);
  position:relative; isolation:isolate; container-type:inline-size; overflow:hidden;
  width:100%; aspect-ratio:826 / 1462; border:1px solid var(--rule); border-radius:26px;
  background:var(--paper); box-shadow:0 6px 18px -6px var(--shadow),0 1px 3px var(--shadow);
}
.fade { opacity:1; visibility:visible; transition:opacity .18s ease,visibility 0s; }
.fade.veiled { visibility:hidden; opacity:0; pointer-events:none; transition-delay:0s,.18s; }
.gear,.mic,.history,.send { display:grid; place-items:center; }
.gear {
  position:absolute; top:3.7cqw; right:3.7cqw; width:10.4cqw; aspect-ratio:1;
  border-radius:3cqw; border:1px solid var(--rule); background:var(--card); color:var(--ink-soft);
}
.gear .glyph { width:54%; height:54%; }
.hero { position:absolute; inset:13% 0 auto; display:grid; justify-items:center; gap:2cqw; }
.nudi { width:62cqw; height:39cqw; object-fit:contain; }
.prompt { font:500 7.6cqw/1.06 var(--display); letter-spacing:-.045em; text-align:center; }
.dock {
  position:absolute; inset:auto 7cqw var(--dock-bottom); height:var(--dock-height);
  display:flex; align-items:center; justify-content:space-between; padding:0 4.1cqw;
  background:var(--card); border:1px solid var(--rule); border-radius:99px; box-shadow:0 2px 5px var(--shadow);
}
.preview,.sample,.spot-sample {
  display:grid; place-items:center; overflow:hidden; aspect-ratio:1;
  border:1px solid var(--rule); border-radius:2.7cqw; background:var(--paper);
}
.preview { width:11.7cqw; border-radius:3cqw; }
.photo { width:100%; height:100%; object-fit:cover; }
.mic,.history { aspect-ratio:1; border-radius:50%; border:1px solid var(--rule); }
.mic { width:13.4cqw; background:#efe7d7; color:var(--moss); }
.history { width:11.7cqw; background:var(--card); }
.mic .glyph { width:47%; height:47%; }
.history .glyph,.send .glyph { width:54%; height:54%; }
.type-bar { position:absolute; inset:auto 3.7cqw 3.4cqw; height:10.6cqw; display:flex; gap:1.8cqw; }
.type-field { display:flex; flex:1; align-items:center; padding:0 4cqw; border-radius:99px; background:var(--card); border:1px solid var(--rule); color:var(--muted); font-size:4.2cqw; }
.send { aspect-ratio:1; border-radius:50%; background:var(--moss); color:var(--card); }
.picker,.peek { user-select:none; -webkit-user-select:none; }
.choice { position:relative; display:flex; flex:none; flex-direction:column; align-items:center; min-width:0; border-radius:2.7cqw; }
.sample { width:100%; }
.choice[aria-pressed="true"] .sample,.peek-front {
  border-color:var(--moss-deep); box-shadow:0 0 0 1px var(--moss);
}
.choice:focus-visible .sample,.preview:focus-visible {
  outline:2px solid var(--moss-deep); outline-offset:-4px;
}
.name,.selection-name { color:var(--ink-soft); font:500 4.1cqw/1.1 var(--display); text-align:center; }
.choice[aria-pressed="true"] .name,.selection-name { color:var(--moss-deep); }

/* Carousel: only the button changes size; the photographs have no transitions. */
.carousel {
  --small:14cqw; --large:20.4cqw; --gap:2.4cqw;
  position:absolute; inset:auto 3.4cqw var(--picker-bottom);
}
.belt {
  display:flex; align-items:center; gap:var(--gap); height:calc(var(--large) + 11cqw); padding:1.4cqw 0 9.6cqw;
  overflow:auto hidden; overscroll-behavior-x:contain; scrollbar-width:none; overflow-anchor:none;
  scroll-snap-type:x mandatory; mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
}
.belt::-webkit-scrollbar { display:none; }
.belt::before,.belt::after { content:""; flex:0 0 calc(50% - var(--small) / 2 - var(--gap)); }
.belt .choice { width:var(--small); height:var(--small); scroll-snap-align:center; }
.belt .choice[aria-pressed="true"] { width:var(--large); height:var(--large); }
.belt .name { display:none; position:absolute; top:calc(100% + 1.6cqw); white-space:nowrap; }
.belt .choice[aria-pressed="true"] .name { display:block; }
.belt.dragging { scroll-snap-type:none; }
.belt.dragging,.belt.dragging button { cursor:grabbing; }
.c2 .carousel { --large:17.8cqw; --gap:1.7cqw; background:var(--card); border:1px solid var(--rule); border-radius:5cqw; }
.c2 .belt { height:calc(var(--large) + 14cqw); padding:2.3cqw 0 11.7cqw; }
.c2 .sample { border-radius:4.5cqw; }
.c2 .name { border-radius:99px; background:var(--paper); padding:.6cqw 2.8cqw 1cqw; }
.selection-name { position:absolute; inset:auto 1cqw calc(var(--picker-bottom) + 18cqw); pointer-events:none; }
.c3 .dock { gap:3.3cqw; padding-left:3cqw; }
.c3 .carousel { --small:8.9cqw; --large:12.2cqw; --gap:1.9cqw; position:static; flex:1; min-width:0; }
.c3 .belt { height:15cqw; padding:1cqw 0 1cqw 1cqw; scroll-padding-left:1cqw; mask-image:linear-gradient(90deg,#000 76%,transparent); }
.c3 .belt::before { display:none; }
.c3 .belt::after { flex-basis:calc(100% - var(--small) - var(--gap)); }
.c3 .choice { scroll-snap-align:start; }
.c3 .selection-name { bottom:calc(var(--dock-bottom) + var(--dock-height) + 1.8cqw); }
.c4 .carousel { --small:12cqw; --large:14.4cqw; }
.c4 .belt { height:17cqw; padding:1cqw 0; }
.c4 :is(.sample,.choice) { border-radius:50%; }
.c4 .selection-name { opacity:0; transition:opacity .14s; }
.c4 .selection-name.visible { opacity:1; }

/* A local dialog, not a page overlay. */
.sheet-layer,.scrim { position:absolute; inset:0; }
.sheet-layer { z-index:3; display:grid; align-items:end; }
.scrim { width:100%; height:100%; background:rgba(42,33,24,.10); }
.sheet {
  position:relative; max-height:100%; overflow:auto; overscroll-behavior:contain;
  padding:0 4cqw 3.6cqw; border-top:1px solid var(--rule); border-radius:6cqw 6cqw 0 0;
  background:var(--card); box-shadow:0 -3px 12px -6px var(--shadow);
}
.handle { display:grid; place-items:center; width:36cqw; height:7.5cqw; margin:auto; border-radius:99px; }
.handle::before { content:""; width:10cqw; height:1.4cqw; background:var(--muted); border-radius:99px; }
.sheet-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:2.4cqw 1.5cqw; }
.sheet-grid .choice { gap:1.1cqw; }
.sheet-grid .sample { width:20.5cqw; }
.sheet-grid .name { max-width:100%; text-wrap:balance; }
:is(.f1,.f2,.f3) .hero { top:10%; }
:is(.f1,.f2,.f3) .nudi { height:35cqw; }
.f2 .sheet { padding-bottom:2.5cqw; }
.f2 .handle { height:6cqw; }
.f2 .sheet-grid { row-gap:1.3cqw; }
.f2 .sample { width:15.2cqw; }
.f2 .choice { gap:.8cqw; }
.f3 .sheet { touch-action:pan-x pinch-zoom; }

.desktop { --dock-bottom:6.5cqw; --dock-height:7.4cqw; aspect-ratio:16/10; border-radius:16px; }
.desktop .gear { width:5.4cqw; top:2.3cqw; right:2.3cqw; border-radius:1.6cqw; }
.desktop .hero { top:8%; gap:.6cqw; }
.desktop .nudi { width:34cqw; height:23cqw; }
.desktop .prompt { font-size:4.8cqw; }
.desktop .dock { inset-inline:30%; padding-inline:2.2cqw; }
.desktop .preview,.desktop .history { width:5.1cqw; }
.desktop .preview { border-radius:1.3cqw; }
.desktop .mic { width:6.1cqw; }
.desktop .type-bar { inset:auto 23% 1.3cqw; height:4.3cqw; gap:.9cqw; }
.desktop .type-field { padding:0 2cqw; font-size:2.5cqw; }
.desktop .sheet-layer { place-items:center; }
.desktop .sheet {
  width:min(78%, 92cqw); max-height:78%; padding:1cqw 2cqw 1.5cqw; border:1px solid var(--rule);
  border-radius:3.4cqw; box-shadow:0 3px 12px var(--shadow);
  align-self:end; margin-bottom:12cqw;
}
.modal-head { display:flex; align-items:center; justify-content:flex-end; margin-bottom:.6cqw; }
.close { display:grid; place-items:center; width:5.7cqw; height:5.7cqw; border-radius:50%; background:var(--paper); font:400 5.2cqw/1 var(--body); }
.desktop .sheet-grid { gap:.7cqw .8cqw; }
.desktop .sheet-grid .choice { gap:.35cqw; }
.desktop .sheet-grid .sample { width:8cqw; border-radius:1.6cqw; }
.desktop .sheet-grid .name { font-size:2.7cqw; line-height:1.05; }
.f5 .sheet { width:min(88%, 94cqw); }
.with-preview { display:grid; grid-template-columns:22% 1fr; align-items:center; gap:2cqw; }
.spotlight { min-width:0; text-align:center; }
.spotlight .name { display:block; margin-top:1.6cqw; color:var(--moss-deep); }
.f5 .sheet-grid .sample { width:7cqw; }

/* The long rails reserve their own gutter. The shorter rail folds into two files. */
.rail {
  position:absolute; inset:17cqw auto var(--picker-bottom) 2.8cqw;
  display:flex; flex-direction:column; align-items:center; justify-content:space-between;
}
.rail .choice { width:9.6cqw; }
.rail :is(.choice,.sample),.peek .sample { border-radius:50%; }
.h2 .rail { left:auto; right:2.8cqw; }
.h3 .hero { inset-inline:38cqw 2cqw; }
.h3 .nudi { width:54cqw; }
.h3 .prompt { font-size:6.1cqw; }
.h3 .name {
  position:absolute; top:50%; left:calc(100% + 1.4cqw); transform:translateY(-50%);
  opacity:0; pointer-events:none; transition:opacity .16s; white-space:nowrap;
  font-size:3.5cqw; color:var(--moss-deep);
}
.h3 .choice:is([aria-pressed="true"],:focus-visible) .name { opacity:1; }
@media (hover:hover) {
  .h3 .rail:has(.choice:hover) .choice:not(:hover) .name { opacity:0; }
  .h3 .choice:hover .name { opacity:1; }
}
.peek {
  position:absolute; left:2.8cqw; top:38%; width:11.2cqw; height:30cqw; border-radius:99px;
}
.peek .sample { position:absolute; left:.5cqw; width:10.2cqw; }
.peek .sample:nth-child(1) { top:0; }
.peek .sample:nth-child(2) { top:8.4cqw; }
.peek .sample:last-child { top:16.8cqw; }
.h5 .hero { top:10%; }
.h5 .nudi { height:34cqw; }
.h5 .rail {
  inset:auto auto calc(var(--dock-bottom) + var(--dock-height) + 3.6cqw) 11.4cqw;
  display:grid; grid-template-columns:repeat(2,11.3cqw); gap:1.6cqw;
}
.h5 .rail .choice { width:11.3cqw; }
.h5 .rail .choice:nth-child(even) { top:4cqw; }
.h5 .preview { border-color:var(--moss); box-shadow:0 0 0 1px var(--moss); }

/* Each mark uses the same circular aperture, from proof size down to rail size. */
.mark {
  display:grid; place-items:center; width:100%; aspect-ratio:1; overflow:hidden;
  border-radius:50%; color:var(--moss); background:radial-gradient(ellipse at 35% 30%,var(--card),#eee5d1);
}
.mark svg { width:100%; height:100%; fill:currentColor; }
.mark-mosaic { grid-template:repeat(2,minmax(0,1fr)) / repeat(2,minmax(0,1fr)); gap:1px; background:var(--paper); }
.mark-wheel svg { animation:wheel-turn 16s linear infinite; }
.mark-breath .companion { animation:breathe 3.8s ease-in-out infinite alternate; }
.orb-stop { animation:orb-wash 22s ease-in-out infinite; }
.orb-stop.middle { animation-delay:-8s; }
.orb-stop.last { animation-delay:-15s; }
@keyframes wheel-turn { to { transform:rotate(1turn); } }
@keyframes breathe { from { opacity:.28; } to { opacity:1; } }
@keyframes orb-wash {
  0%,100% { stop-color:#87967b; } 20% { stop-color:var(--wash); }
  40% { stop-color:var(--paper-deep); } 60% { stop-color:#cca49c; } 80% { stop-color:#a4b8c5; }
}
.auto-lab { display:grid; grid-template-columns:minmax(0,1fr) minmax(210px,254px); align-items:start; gap:clamp(24px,3vw,48px); }
.marks { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr)); gap:10px; }
.mark-button {
  display:flex; align-items:center; gap:13px; min-width:0; padding:12px; text-align:left;
  border:1px solid var(--rule); border-radius:16px; background:rgba(255,250,241,.48);
}
.mark-button[aria-pressed="true"] { background:var(--card); border-color:var(--moss); box-shadow:inset 0 0 0 1px var(--moss); }
.mark-button > .mark { flex:none; width:clamp(72px,5vw,86px); border:1px solid var(--rule); }
.mark-copy { display:grid; gap:3px; color:var(--ink-soft); }
.mark-copy small { font:400 12px/1.2 var(--body); }
.mark-copy strong,.proof-name { font:500 17px/1.12 var(--display); }
.proof figcaption { display:flex; align-items:center; gap:10px; margin-bottom:12px; color:var(--moss-deep); }
.proof-chip { display:block; width:32px; border:1px solid var(--rule); border-radius:50%; }

@media (max-width:1339px) {
  .page { max-width:1080px; }
  .variants,#f .variants { grid-template-columns:repeat(3,minmax(0,1fr)); }
  #f .option,#f .option:has(.desktop) { grid-column:span 1; }
  .option figure { margin-bottom:14px; }
}
@media (max-width:839px) {
  .page { max-width:740px; }
  .variants,#f .variants { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .auto-lab { grid-template-columns:minmax(0,1fr) minmax(185px,31%); }
}
@media (max-width:559px) {
  .page { max-width:390px; }
  .masthead { display:grid; }
  nav { justify-self:start; }
  .variants,.auto-lab { grid-template-columns:minmax(0,1fr); }
  .marks { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .mark-button { flex-wrap:wrap; padding:10px; gap:8px; }
  .proof { width:min(100%,260px); justify-self:center; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}
