/* ==========================================================================
   Our Turn: art direction (read before changing anything visual)

   Concept. A late-night poster series for two. Every week is a new issue
   ("No. 06"), set in a high-contrast serif on ink. Neon-pink wireframe objects
   (torus, globe, wave rings, grid floor) are the machinery of chance: one live
   canvas behind every screen, gliding between poses like one camera, and
   answering the wheel. Touch is physical: the wheel has mass, cards have springs.

   Grid. 6 columns on phones, 12 from 64rem. Margin --m, gutter --g. Layouts are
   editorial: hairline-ruled index rows, not cards. Big type overlaps photos.

   Type. Cormorant Garamond 300 for the voice (mega / xl / l / m), italic in blush
   for emphasis, uppercase at poster sizes. A tracked 600 sans for labels.

   Colour roles. ink = ground. blush = display + emphasis. rose = the "baton"
   knockout block (ink type on rose) and primary actions. hot = linework only.
   sky = the anaglyph ghost behind linework, focus rings, Isaac's mark. No
   decorative gradients, no glass. Texture = grain + halftone on photos.

   Motif. Wireframes + the line-art icon family (art.js), drawn on with
   pathLength=1. The rose block is the one bold device; it means "chosen".

   Motion. One hero motion per screen; everything else subordinate. Ease
   cubic-bezier(.2,.7,.1,1) or a damped spring (overshoot under 4%). Transform,
   opacity, clip-path only. Under reduced motion everything is in its final state.
   ========================================================================== */

@font-face { font-family: 'Cormorant Garamond'; src: url(fonts/cormorant-garamond-v21-latin-300.ttf); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url(fonts/cormorant-garamond-v21-latin-300italic.ttf); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url(fonts/cormorant-garamond-v21-latin-500.ttf); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url(fonts/cormorant-garamond-v21-latin-italic.ttf); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ink: #0b0a0b;
  --plum: #19111a;
  --plum-2: #22151f;
  --blush: #f3d6dc;
  --rose: #e0607e;
  --hot: #f2709c;
  --sky: #9db4ff;
  --paper: #f4ece6;
  --muted: #a99ea2;
  --line: rgba(243, 214, 220, 0.16);
  --line-2: rgba(243, 214, 220, 0.5);   /* control borders: >= 3:1 on ink */
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: ui-sans-serif, -apple-system, 'SF Pro Text', 'Inter', system-ui, sans-serif;
  --m: clamp(1.25rem, 5.4vw, 4.5rem);
  --g: clamp(0.75rem, 1.6vw, 1.5rem);
  --fs-mega: clamp(3.6rem, 22.5vw, 11.5rem);
  --fs-xl: clamp(3rem, 13.5vw, 7rem);
  --fs-l: clamp(2rem, 7.4vw, 3.4rem);
  --fs-m: clamp(1.45rem, 4.6vw, 1.9rem);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-in: cubic-bezier(0.6, 0, 0.8, 0.3);
  --spring: cubic-bezier(0.3, 1.3, 0.5, 1);
  --spring: linear(0, 0.09, 0.262, 0.452, 0.625, 0.766, 0.871, 0.942, 0.987, 1.012, 1.023, 1.026, 1.023, 1.019, 1.014, 1.01, 1.006, 1.003, 1);
  --sa-b: env(safe-area-inset-bottom, 0px);
  --sa-t: env(safe-area-inset-top, 0px);
  --top: 3.75rem;
  --tabh: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; scroll-padding-top: calc(var(--top) + var(--sa-t) + 1rem); scroll-padding-bottom: calc(var(--tabh) + var(--sa-b) + 1rem); }
html, body { overflow-x: clip; }
body { margin: 0; min-height: 100dvh; background: var(--ink); color: var(--paper); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--rose); color: var(--ink); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: italic; }
[hidden] { display: none !important; }
.defs { position: absolute; width: 0; height: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--paper); color: var(--ink); padding: 0.6rem 1rem; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 1.5px solid var(--sky); outline-offset: 3px; }

/* ---------- Layers ---------- */
.scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; view-transition-name: scene; }
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.055; view-transition-name: grain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#app { position: relative; z-index: 1; outline: none; }
.burst { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 75; pointer-events: none; }

/* ---------- Type ---------- */
.label { font: 600 0.6875rem/1.45 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.kicker { display: flex; align-items: center; gap: 0.75rem; font: 600 0.6875rem/1.45 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.kicker::before { content: ''; width: 1.75rem; height: 1px; background: var(--hot); flex: none; }
.mega, .xl, .l, .m { font-family: var(--serif); font-weight: 300; text-wrap: balance; }
.mega { font-size: var(--fs-mega); line-height: 0.84; letter-spacing: -0.035em; }
.xl { font-size: var(--fs-xl); line-height: 0.88; letter-spacing: -0.03em; }
.l { font-size: var(--fs-l); line-height: 0.98; letter-spacing: -0.02em; }
.m { font-size: var(--fs-m); line-height: 1.08; letter-spacing: -0.01em; }
.mega em, .xl em, .l em, .m em { color: var(--blush); }
.lede { font: 300 1.3rem/1.35 var(--serif); color: var(--paper); text-wrap: pretty; max-width: 30ch; }
.note { font-size: 0.8rem; color: var(--muted); line-height: 1.55; max-width: 46ch; }
.hl { background: var(--rose); color: var(--ink); padding: 0 0.28em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.04em 0.12em; margin: 0 -0.04em -0.12em; }
.ch { display: inline-block; }

/* ---------- Icons ---------- */
.ico { width: 1.5rem; height: 1.5rem; flex: none; stroke-width: 1.4; }
.ico [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes drawon { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------- Chrome: header + tabs ---------- */
.masthead {
  position: absolute; z-index: 20; inset: 0 0 auto; height: calc(var(--top) + var(--sa-t)); padding: var(--sa-t) var(--m) 0;
  display: flex; align-items: center; gap: 1rem; view-transition-name: top;
}
.wordmark { font: 300 1.6rem/1 var(--serif); letter-spacing: -0.02em; }
.wordmark em { color: var(--hot); }
.issue { margin-left: auto; font-variant-numeric: tabular-nums; }
.gear { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-right: -0.6rem; color: var(--blush); transition: rotate 0.9s var(--ease); }
.gear:hover { rotate: 60deg; }
.gear .ico { width: 1.4rem; height: 1.4rem; }

.tabs {
  position: fixed; z-index: 30; inset: auto 0 0; height: calc(var(--tabh) + var(--sa-b)); padding-bottom: var(--sa-b);
  display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(11, 10, 11, 0.94); border-top: 1px solid var(--line);
  view-transition-name: tabs; transition: translate 0.9s var(--ease);
}
.tabs a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; color: var(--muted); min-height: 44px; transition: color 0.4s; }
.tabs a .ico { width: 1.45rem; height: 1.45rem; transition: transform 0.5s var(--spring); }
.tabs a:active .ico { transform: scale(0.86); }
.tabs a[aria-current] { color: var(--blush); }
.tabs a[aria-current] .ico { color: var(--hot); }
.tab-n { display: none; }
.tab-l { font: 600 0.6875rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.tab-mark { position: absolute; top: -1px; left: 0; width: 20%; height: 2px; background: var(--hot); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform 0.6s var(--spring); }
.tab-mark::after { content: ''; position: absolute; left: 50%; top: 0; width: 5px; height: 5px; background: var(--hot); translate: -50% -1.5px; rotate: 45deg; }

/* ---------- Page ---------- */
.page { position: relative; padding: calc(var(--top) + var(--sa-t) + 0.75rem) var(--m) calc(var(--tabh) + var(--sa-b) + 3rem); max-width: 90rem; margin: 0 auto; }
.page.narrow { max-width: 46rem; }
.rule { height: 1px; background: var(--line); border: 0; margin: 2.5rem 0; }
section + section { margin-top: 3.5rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.back { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; color: var(--muted); font: 600 0.6875rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; transition: color 0.4s; }
.back .ico { width: 1.2rem; height: 1.2rem; transition: transform 0.5s var(--spring); }
.back:hover { color: var(--blush); }
.back:hover .ico { transform: translateX(-4px); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3rem; padding: 0 1.35rem;
  border: 1px solid var(--line-2); color: var(--paper); font: 600 0.6875rem/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
  overflow: hidden; isolation: isolate; transition: color 0.45s var(--ease), border-color 0.45s, transform 0.5s var(--spring);
}
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--blush); transform: scaleY(0); transform-origin: bottom; transition: transform 0.55s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn:hover, .btn:focus-visible { color: var(--ink); border-color: var(--blush); }
.btn:active { transform: scale(0.96); }
.btn .ico { width: 1.1rem; height: 1.1rem; }
.btn.primary { background: var(--rose); border-color: var(--rose); color: var(--ink); }
.btn.primary::before { background: var(--blush); }
.btn.ghost { border-color: transparent; color: var(--muted); }
.btn.ghost::before { background: var(--plum-2); }
.btn.ghost:hover { color: var(--blush); border-color: transparent; }
.btn.small { min-height: 2.75rem; padding: 0 1rem; font-size: 0.6875rem; }
.btn.danger { border-color: rgba(224, 96, 126, 0.5); color: var(--rose); }
.btn[disabled] { opacity: 0.6; pointer-events: none; }
.icon-btn { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border: 1px solid var(--line-2); border-radius: 50%; color: var(--blush); transition: transform 0.5s var(--spring), background 0.4s, color 0.4s, border-color 0.4s; }
.icon-btn:hover { border-color: var(--blush); }
.icon-btn:active { transform: scale(0.9); }
.icon-btn.keep { width: 4.25rem; height: 4.25rem; background: var(--rose); border-color: var(--rose); color: var(--ink); }
.icon-btn.big { width: 4.25rem; height: 4.25rem; }
.icon-btn .ico { width: 1.4rem; height: 1.4rem; }
.linklike { text-decoration: underline; text-underline-offset: 3px; color: var(--blush); }

/* Index rows: the editorial menu. A rose block wipes in behind the row on press/hover. */
.idx { border-bottom: 1px solid var(--line); }
.idx li { border-top: 1px solid var(--line); }
.idx a, .idx button {
  position: relative; display: grid; grid-template-columns: 2.4rem 1fr auto; align-items: center; gap: 0.5rem; width: 100%; min-height: 3.6rem; padding: 0.55rem 0.4rem 0.55rem 0;
  font: 300 clamp(1.5rem, 5.6vw, 2.1rem)/1.05 var(--serif); letter-spacing: -0.01em; text-align: left; isolation: isolate; transition: color 0.45s var(--ease), padding 0.6s var(--ease);
}
.idx a::before, .idx button::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--rose); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.idx a:hover, .idx button:hover, .idx a:focus-visible, .idx button:focus-visible { color: var(--ink); padding-left: 0.7rem; }
.idx a:hover::before, .idx button:hover::before, .idx a:focus-visible::before, .idx button:focus-visible::before, .idx a:active::before, .idx button:active::before { transform: scaleX(1); }
.idx .n { font: 600 0.6875rem/1 var(--sans); letter-spacing: 0.18em; color: var(--hot); transition: color 0.45s; }
.idx a:hover .n, .idx button:hover .n, .idx a:focus-visible .n { color: var(--ink); }
.idx .ico { width: 1.4rem; height: 1.4rem; transition: transform 0.6s var(--ease); }
.idx a:hover .ico, .idx button:hover .ico { transform: translateX(-4px) rotate(0.001deg); }
.idx em { color: var(--blush); transition: color 0.45s; }
.idx a:hover em, .idx button:hover em { color: var(--ink); }
.idx.primary-first li:first-child a { color: var(--blush); }

/* ---------- Fields, chips, folds ---------- */
.field { width: 100%; min-height: 3rem; padding: 0.5rem 0; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; font: 300 1.3rem/1.3 var(--serif); color: var(--paper); transition: border-color 0.4s; }
.field::placeholder { color: var(--muted); opacity: 1; }
.field:focus { outline: none; border-bottom-color: var(--hot); }
.field:focus-visible { outline: none; box-shadow: 0 2px 0 var(--sky); }
select.field { appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f2709c' stroke-width='1.2'/%3E%3C/svg%3E") right 0.2rem center/0.75rem no-repeat; padding-right: 1.5rem; }
select.field option { background: var(--ink); }
textarea.field { resize: vertical; min-height: 6rem; }
input[type='date'].field { color-scheme: dark; }
.form { display: grid; gap: 1.6rem; margin-top: 2rem; }
.fld { display: grid; gap: 0.35rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.fld legend { margin-bottom: 0.5rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.check { display: inline-flex; align-items: center; gap: 0.7rem; min-height: 44px; margin-right: 1.4rem; cursor: pointer; font: 300 1.2rem/1 var(--serif); }
.check input { appearance: none; width: 1.15rem; height: 1.15rem; margin: 0; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background 0.3s, border-color 0.3s; }
.check input[type='radio'] { border-radius: 50%; }
.check input:checked { background: var(--rose); border-color: var(--rose); }
.check input:checked::after { content: ''; width: 0.35rem; height: 0.35rem; background: var(--ink); border-radius: 50%; animation: pop 0.5s var(--spring); }
.check input:focus-visible { outline: 1.5px solid var(--sky); outline-offset: 3px; }
@keyframes pop { from { transform: scale(0); } }
.sect { display: flex; gap: 0.9rem; align-items: baseline; margin-top: 2.5rem; padding-top: 1.1rem; border-top: 1px solid var(--line); color: var(--blush); }
.sect b { color: var(--hot); font-weight: 600; }

.chips, .seg { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.5rem; padding: 0 0.9rem; border: 1px solid var(--line); color: var(--paper);
  font: 600 0.6875rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.5s var(--spring);
}
.chip:hover { border-color: var(--line-2); }
.chip:active { transform: scale(0.94); }
.chip[aria-pressed='true'] { background: var(--rose); color: var(--ink); border-color: var(--rose); }
.fold { border-block: 1px solid var(--line); }
.fold summary { display: flex; align-items: center; gap: 0.8rem; min-height: 3.25rem; cursor: pointer; list-style: none; font: 600 0.6875rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--blush); }
.fold summary::-webkit-details-marker { display: none; }
.fold summary .count { color: var(--muted); }
.fold summary .ico { margin-left: auto; width: 1.1rem; height: 1.1rem; color: var(--hot); transition: transform 0.6s var(--spring); }
.fold[open] summary .ico { transform: rotate(135deg); }
.filters { display: grid; gap: 1rem; padding: 0.4rem 0 1.4rem; }
.frow { display: grid; gap: 0.5rem; }
.frow .selects { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ---------- Photos ---------- */
.frame { position: relative; overflow: hidden; background: var(--plum); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.arch { border-radius: 999px 999px 0 0; }
/* Halftone: a crisp dot screen over the duotone hides the 768px softness on big screens. */
.ht::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, rgba(11, 10, 11, 0.5) 0 0.9px, transparent 1.25px) 0 0 / 4px 4px; mix-blend-mode: multiply; }
.frame-line { position: absolute; inset: -0.6rem; border: 1px solid var(--hot); border-radius: inherit; pointer-events: none; opacity: 0.55; }
.polaroid { position: relative; background: var(--paper); padding: 4% 4% 0; color: var(--ink); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 40px 60px -30px rgba(0, 0, 0, 0.9); transition: transform 1.1s var(--ease); }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: contrast(1.05) saturate(0.88) brightness(1.03) sepia(0.06); }
.polaroid figcaption { font: italic 400 1.05rem/1 var(--serif); color: #7a3a4b; padding: 0.7rem 0 0.85rem; text-align: center; }
.plate { position: relative; margin: 0; background: var(--plum-2); border: 1px solid var(--line-2); padding: 0.5rem 0.5rem 0; box-shadow: 0 40px 60px -30px rgba(0, 0, 0, 0.9); }
.plate .cover { position: static; display: block; width: 100%; aspect-ratio: 3 / 4; height: auto; background: var(--ink); }
.plate figcaption { padding: 0.65rem 0 0.7rem; text-align: center; color: var(--blush); }
.fan { position: relative; display: flex; justify-content: center; padding: 1rem 0 0.5rem; min-height: 4rem; }
.fan > * { width: min(44%, 13rem); flex: none; }
.fan > * + * { margin-left: -12%; }
.fan > :nth-child(1) { transform: rotate(-5deg) translateY(6px); }
.fan > :nth-child(2) { transform: rotate(3deg); z-index: 2; }
.fan > :nth-child(3) { transform: rotate(-1.5deg) translateY(12px); z-index: 1; }
.fan > :nth-child(n + 4) { display: none; }
.fan:hover > :nth-child(1) { transform: rotate(-8deg) translate(-12%, -2%); }
.fan:hover > :nth-child(3) { transform: rotate(4deg) translate(12%, 0); }
.thumb { padding: 4% 4% 14%; background: var(--paper); box-shadow: 0 30px 40px -24px rgba(0, 0, 0, 0.9); }
.thumb img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.thumb .x { position: absolute; top: 0.3rem; right: 0.3rem; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; background: var(--ink); color: var(--blush); }
.thumb .x .ico { width: 0.9rem; height: 0.9rem; }

/* ---------- Bits ---------- */
.stars { display: inline-flex; gap: 0.15rem; vertical-align: -0.15em; color: var(--hot); }
.stars .ico { width: 0.95rem; height: 0.95rem; }
.stars .on .ico path { fill: currentColor; }
.stars .off { opacity: 0.35; }
.price { display: inline-flex; gap: 3px; vertical-align: middle; }
.price i { width: 6px; height: 6px; border: 1px solid var(--hot); rotate: 45deg; }
.price i.on { background: var(--hot); }
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; }
.tags span { font: italic 300 1.05rem/1.3 var(--serif); color: var(--blush); }
.tags span::before { content: '/ '; color: var(--hot); font-style: normal; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.facts div { padding: 0.8rem 0; border-bottom: 1px solid var(--line); display: grid; gap: 0.2rem; }
.facts div:nth-child(odd) { padding-right: 1rem; }
.facts dd { font: 300 1.25rem/1.15 var(--serif); text-transform: capitalize; }
.odo { display: inline-block; height: 1.3em; overflow: hidden; vertical-align: -0.2em; line-height: 1.3; font-variant-numeric: lining-nums; }
.odo-strip { display: block; white-space: pre; line-height: 1.3; }
[data-roll] { display: inline-flex; font-variant-numeric: lining-nums tabular-nums; line-height: 1; }
.empty { padding: 2rem 0; font: italic 300 1.35rem/1.3 var(--serif); color: var(--muted); }
.pill { display: inline-flex; gap: 0.6rem; align-items: center; padding: 0.5rem 0.9rem; border: 1px solid var(--line-2); font-size: 0.8rem; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabh) + var(--sa-b) + 1rem); z-index: 70; translate: -50% 0; padding: 0.85rem 1.2rem; background: var(--ink); border: 1px solid var(--line-2); font-size: 0.85rem; max-width: calc(100vw - 2rem); }
.feed-note { margin-top: 1.25rem; }

/* ======================================================= INTRO (title card) */
.intro { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: var(--m); cursor: pointer; }
html.intro-on .masthead, html.intro-on #app, html.intro-on .tabs { opacity: 0; }
.intro-title { display: grid; justify-items: center; font: 300 clamp(5.2rem, 30vw, 17rem)/0.8 var(--serif); letter-spacing: -0.04em; text-transform: uppercase; color: var(--paper); }
.intro-word { display: block; overflow: hidden; padding: 0.04em 0.06em 0.08em; }
.intro-word > * { display: block; }
.intro-word em { color: var(--hot); padding-right: 0.06em; }
.intro-line { display: block; width: min(86vw, 46rem); height: 1px; background: var(--blush); margin: 0.04em 0; transform-origin: center; }
.intro-issue { position: absolute; top: calc(var(--sa-t) + 1.5rem); left: var(--m); right: var(--m); display: flex; justify-content: space-between; }
.intro-foot { position: absolute; bottom: calc(var(--sa-b) + 1.5rem); left: var(--m); right: var(--m); display: flex; justify-content: space-between; gap: 1rem; }

/* ======================================================= GATE */
.gate { position: fixed; inset: 0; z-index: 70; display: grid; place-content: center; justify-items: center; gap: 1.2rem; padding: var(--m); background: rgba(11, 10, 11, 0.7); text-align: center; }
.gate-title { font: 300 var(--fs-xl)/0.9 var(--serif); letter-spacing: -0.03em; }
.gate-title em { color: var(--blush); }
.pin { position: relative; display: block; margin-top: 1rem; }
.pin-in { position: absolute; inset: 0; width: 100%; opacity: 0; font-size: 16px; caret-color: transparent; }
.pin-dots { display: flex; gap: 0.8rem; pointer-events: none; }
.pin-dots i { width: 2.6rem; height: 3.4rem; border-bottom: 1px solid var(--line-2); display: grid; place-items: center; transition: border-color 0.3s; }
.pin-dots i::after { content: ''; width: 0.7rem; height: 0.7rem; background: var(--hot); rotate: 45deg; transform: scale(0); transition: transform 0.45s var(--spring); }
.pin-dots i.on::after { transform: scale(1); }
.pin:focus-within .pin-dots i.next { border-bottom-color: var(--sky); }
.pin.wrong .pin-dots i { border-bottom-color: var(--rose); }
.gate-msg { min-height: 1.5em; }

/* ======================================================= HOME */
.home .hero { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--g); }
.home .hero > .kicker { grid-column: 1 / -1; margin-bottom: 1rem; }
.hero-photo { grid-column: 3 / -1; grid-row: 2; aspect-ratio: 3 / 4; margin-right: calc(var(--m) * -0.4); }
.hero-photo img { object-position: 50% 32%; }
.hero-photo .cap { position: absolute; left: 0; right: 0; bottom: 0.7rem; text-align: center; font: italic 300 0.95rem/1 var(--serif); color: var(--blush); }
.names { grid-column: 1 / -1; grid-row: 3; position: relative; z-index: 2; margin-top: calc(var(--fs-mega) * -1.25); justify-self: start; cursor: pointer; }
.nm { position: relative; display: block; width: max-content; font: 300 var(--fs-mega)/0.86 var(--serif); letter-spacing: -0.04em; padding: 0.02em 0.1em 0.1em; }
.nm-o { display: block; color: rgba(11, 10, 11, 0.62); -webkit-text-stroke: 1.5px var(--blush); }   /* dark fill keeps the outline legible where it crosses the photo */
.nm-f { position: absolute; inset: 0; padding: inherit; color: var(--ink); clip-path: inset(0 100% 0 0); transition: clip-path 0.9s var(--ease); }
.nm.on .nm-f { clip-path: inset(0); }
.nm.on .nm-o { -webkit-text-stroke-color: transparent; color: transparent; }
.baton { position: absolute; left: 0; top: 0; width: 1px; height: 1px; background: var(--rose); transform-origin: 0 0; }
.turn-line { grid-column: 1 / -1; margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 1rem; }
.turn-line .m em { color: var(--blush); }
.turn-line .label b { color: var(--blush); font-weight: 600; }
.turn-next { grid-column: 1 / -1; margin-top: 0.3rem; font: italic 300 1.1rem/1.3 var(--serif); color: var(--muted); }
.home .hero > .idx { grid-column: 1 / -1; margin-top: 1.75rem; }
.plan { position: relative; display: grid; grid-template-columns: auto 1fr; border: 1px solid var(--line-2); }
.plan-stub { display: grid; place-items: center; padding: 1rem; border-right: 1px dashed var(--line-2); color: var(--hot); }
.plan-stub .ico { width: 2.6rem; height: 2.6rem; stroke-width: 1.1; }
.plan-main { padding: 1.1rem 1.1rem 1.2rem; display: grid; gap: 0.5rem; }
.plan-name { font: 300 var(--fs-l)/0.98 var(--serif); letter-spacing: -0.02em; }
.plan .meta { color: var(--muted); font-size: 0.9rem; }
.recap { display: grid; gap: 1.1rem; }
.recap .fan { margin: 0.5rem 0 1rem; }
.recap-notes { font: italic 300 1.35rem/1.35 var(--serif); color: var(--blush); max-width: 34ch; }
.recap-empty { display: grid; grid-template-columns: 9rem 1fr; gap: 1.4rem; align-items: center; }
.recap-empty .plate { transform: rotate(-4deg); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.stats div { padding: 1.1rem 0 1.2rem; border-bottom: 1px solid var(--line); display: grid; gap: 0.5rem; }
.stats div:nth-child(odd) { border-right: 1px solid var(--line); }
.stats div:nth-child(even) { padding-left: 1.1rem; }
.stats b { font: 300 clamp(3rem, 12vw, 5rem)/0.9 var(--serif); font-weight: 300; letter-spacing: -0.03em; color: var(--blush); }

/* ======================================================= SPIN */
.spin-page { display: grid; grid-template-columns: minmax(0, 1fr); }
.spin-head { display: grid; gap: 0.75rem; }
.spin-head .xl { font-size: clamp(2.6rem, 12vw, 6rem); }
.wheel-stage { position: relative; display: grid; place-items: center; margin: 1.6rem auto 0.5rem; width: min(100%, 34rem); }
.wheel { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.wheel:active { cursor: grabbing; }
.wheel:focus-visible { outline-offset: 6px; border-radius: 50%; }
.wheel-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.w-disc { position: absolute; inset: 0; border-radius: 50%; }
.w-disc.spinning { will-change: transform; }
.w-slice path { stroke: rgba(242, 112, 156, 0.55); stroke-width: 0.35; transition: fill 0.5s var(--ease); }
.w-slice text { font-family: var(--serif); font-weight: 300; fill: var(--paper); letter-spacing: 0.01em; transition: fill 0.5s; }
.w-slice .w-num { font-style: italic; fill: var(--hot); }
.w-slice { transition: opacity 0.6s var(--ease), transform 0.8s var(--spring); transform-origin: 0 0; }
.wheel.won .w-slice:not(.win) { opacity: 0.32; }
.w-slice.win path { fill: var(--rose); }
.w-slice.win text { fill: var(--ink); }
.w-slice.win .w-num { fill: var(--ink); }
.w-rim { fill: none; stroke: var(--blush); stroke-width: 0.6; }
.w-rim.thin { stroke-width: 0.3; stroke: var(--line-2); }
.w-rim.hot { stroke: var(--hot); stroke-width: 0.35; }
.w-ticks line { stroke: var(--blush); stroke-width: 0.3; opacity: 0.55; }
.w-ticks line.major { stroke: var(--hot); stroke-width: 0.6; opacity: 1; }
.w-hub { fill: var(--ink); stroke: var(--hot); stroke-width: 0.5; }
.w-go { font: 600 4.6px var(--sans); letter-spacing: 0.24em; fill: var(--blush); transition: opacity 0.3s; }
.wheel.busy .w-go { opacity: 0.25; }
.w-pointer { position: absolute; left: 50%; top: -3.2%; width: 7.5%; translate: -50% 0; transform-origin: 50% 22%; overflow: visible; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.6)); }
.w-pointer path { fill: var(--blush); }
.w-pointer circle { fill: var(--ink); stroke: var(--hot); stroke-width: 1; }
.spin-hint { text-align: center; margin-top: 0.4rem; }
.spin-ctl { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin: 1.2rem 0 1.75rem; }
.spin-ctl .btn.primary { min-width: 9rem; }
.slices { display: none; }
.slices li { display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.5rem; align-items: baseline; padding: 0.45rem 0; border-top: 1px solid var(--line); font: 300 1.15rem/1.2 var(--serif); color: var(--muted); transition: color 0.2s, background 0.2s; }
.slices li .n { font: italic 300 1rem/1 var(--serif); color: var(--hot); }
.slices li.cur { color: var(--paper); }
.slices li.win { color: var(--ink); background: var(--rose); }
.slices li.win .n { color: var(--ink); }

/* Result reveal: full-screen cinematic overlay */
.reveal { position: fixed; inset: 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain; background: rgba(11, 10, 11, 0.86); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); padding: calc(var(--sa-t) + 1rem) var(--m) calc(var(--sa-b) + 2rem); }
.reveal-x { position: fixed; top: calc(var(--sa-t) + 0.6rem); right: calc(var(--m) - 0.6rem); z-index: 2; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; color: var(--blush); transition: transform 0.5s var(--spring); }
.reveal-x:active { transform: scale(0.88); }
.reveal-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--g); max-width: 80rem; margin: 0 auto; padding-top: 2.5rem; }
.reveal-photo { grid-column: 2 / -1; grid-row: 1; aspect-ratio: 4 / 5; max-height: 42vh; justify-self: end; width: 100%; }
.reveal-photo .cover { display: block; width: 100%; height: 100%; }
.reveal-copy { grid-column: 1 / -1; grid-row: 2; position: relative; z-index: 2; margin-top: -3.2rem; display: grid; gap: 1rem; }
.reveal-kicker { font: italic 300 clamp(1.5rem, 5.5vw, 2.4rem)/1 var(--serif); color: var(--blush); justify-self: start; background: var(--ink); padding: 0 0.45em 0.12em 0; }
.reveal-kicker .hl { font-style: normal; }
.reveal-name { font: 300 clamp(3.1rem, 15vw, 8.5rem)/0.86 var(--serif); letter-spacing: -0.035em; text-wrap: balance; }
.reveal-name.long { font-size: clamp(2.5rem, 11vw, 5.5rem); }
.reveal-meta { display: flex; align-items: center; gap: 0.75rem; color: var(--muted); font-size: 0.9rem; }
.reveal-meta .ico { color: var(--hot); width: 2rem; height: 2rem; stroke-width: 1.1; }
.reveal .lede { max-width: 36ch; }
.reveal .row { margin-top: 0.5rem; }
.slot { display: block; overflow: hidden; }

/* ======================================================= DECK */
.deck-page { display: grid; justify-items: center; }
.deck-head { justify-self: stretch; display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 1rem; }
.deck-head > div { display: contents; }
.deck-head .kicker { grid-column: 1 / -1; }
.deck-head .xl { font-size: clamp(2.8rem, 13vw, 6rem); }
.deck-head .label { text-align: right; padding-bottom: 0.4rem; white-space: nowrap; }
.deck { position: relative; width: min(100%, 22.5rem); height: clamp(25rem, 58vh, 34rem); margin: 1.4rem auto 0; perspective: 1100px; outline: none; touch-action: pan-y; }
.deck:focus-visible { outline: 1.5px solid var(--sky); outline-offset: 8px; }
.vcard {
  position: absolute; inset: 0; display: grid; grid-template-rows: 47% 1fr; background: var(--plum); border: 1px solid var(--line-2); overflow: hidden;
  user-select: none; -webkit-user-select: none; touch-action: none; cursor: grab;
  --k: max(0, var(--d, 0) - var(--p, 0));   /* depth minus drag progress: the stack steps forward as you drag */
  transform: translate3d(0, calc(var(--k) * 16px), 0) scale(calc(1 - var(--k) * 0.055));
  transition: transform 0.7s var(--spring), opacity 0.5s var(--ease);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.95);
}
.vcard.drag { cursor: grabbing; }
.vcard.live, .dragging .vcard { transition: none; }
.w-slice.win { transform: translate(var(--mx), var(--my)); }
.vcard-art { position: relative; background: var(--ink); border-bottom: 1px solid var(--line); overflow: hidden; }
.cover { position: absolute; inset: 0; width: 100%; height: 100%; }
.vcard-no { position: absolute; left: 0.6rem; top: 0.6rem; padding: 0.2rem 0.35rem; background: var(--ink); font: italic 300 1.05rem/1 var(--serif); color: var(--blush); }
.vcard-ico { position: absolute; right: 0.8rem; bottom: 0.8rem; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--ink); border: 1px solid var(--line-2); color: var(--hot); }
.vcard-ico .ico { width: 1.9rem; height: 1.9rem; stroke-width: 1.15; }
.vcard-body { display: grid; align-content: start; gap: 0.55rem; padding: 1rem 1.1rem 1.1rem; min-height: 0; }
.vcard-name { font: 300 clamp(1.9rem, 8vw, 2.5rem)/0.95 var(--serif); letter-spacing: -0.02em; text-wrap: balance; }
.vcard-desc { font-size: 0.875rem; line-height: 1.5; color: rgba(244, 236, 230, 0.8); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vcard-foot { display: flex; gap: 0.9rem; align-items: center; margin-top: auto; padding-top: 0.6rem; border-top: 1px solid var(--line); font: 600 0.6875rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.stamp { position: absolute; top: 1.1rem; padding: 0.25rem 0.6rem 0.35rem; font: 300 2.4rem/1 var(--serif); letter-spacing: -0.01em; opacity: 0; pointer-events: none; }
.stamp.keep { left: 1rem; background: var(--rose); color: var(--ink); rotate: -8deg; }
.stamp.pass { right: 1rem; border: 1px solid var(--sky); color: var(--sky); rotate: 8deg; background: var(--ink); }
.deck-actions { display: flex; align-items: center; justify-content: center; gap: 1.1rem; margin: 1.6rem 0 0.6rem; }
.deck-page .fold { justify-self: stretch; margin-top: 1.4rem; }
.deck-end { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 1rem; text-align: center; }
.deck-end .plate { width: 9.5rem; transform: rotate(3deg); }
.kept { display: grid; gap: 0.2rem; font: 300 1.2rem/1.3 var(--serif); }
.kept a { border-bottom: 1px solid var(--line-2); }

/* ======================================================= DETAIL */
.detail-hero { display: grid; gap: 0.9rem; margin-top: 0.4rem; }
.detail-art { position: relative; aspect-ratio: 16 / 10; max-height: 46vh; width: 100%; background: var(--ink); border: 1px solid var(--line-2); overflow: hidden; }
.detail-art .vcard-ico { width: 4rem; height: 4rem; }
.detail-art .vcard-ico .ico { width: 2.4rem; height: 2.4rem; }
.detail-name { margin-top: 0.3rem; }
.detail-body { display: grid; gap: 1.6rem; margin-top: 1.6rem; }
.review { border-left: 1px solid var(--hot); padding-left: 1rem; font: italic 300 1.2rem/1.4 var(--serif); color: var(--blush); }
.visits { display: grid; gap: 0.4rem; font: 300 1.15rem/1.3 var(--serif); }

/* ======================================================= PLACES */
.places-head { display: grid; gap: 0.75rem; }
.search-row { display: flex; gap: 0.75rem; align-items: end; margin-top: 1.5rem; }
.search { flex: 1; display: flex; align-items: center; gap: 0.6rem; border-bottom: 1px solid var(--line-2); transition: border-color 0.4s; }
.search:focus-within { border-bottom-color: var(--hot); }
.search .ico { color: var(--hot); width: 1.2rem; height: 1.2rem; }
.search .field { border: 0; }
.search .field:focus-visible { box-shadow: none; }
.cats { display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; margin: 1.2rem calc(var(--m) * -1) 0; padding: 0.2rem var(--m) 0.6rem; scroll-snap-type: x proximity; }
.cats::-webkit-scrollbar { display: none; }
.cat-chip { flex: none; display: grid; justify-items: center; gap: 0.4rem; min-width: 4.6rem; padding: 0.7rem 0.6rem 0.6rem; border: 1px solid var(--line-2); scroll-snap-align: start; color: var(--paper); transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.5s var(--spring); }
.cat-chip .ico { width: 1.8rem; height: 1.8rem; color: var(--hot); stroke-width: 1.2; transition: color 0.35s; }
.cat-chip span { font: 600 0.6875rem/1.2 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; text-align: center; }
.cat-chip:hover .ico [pathLength] { animation: drawon 0.9s var(--ease); }
.cat-chip:active { transform: scale(0.94); }
.cat-chip[aria-pressed='true'] { background: var(--rose); border-color: var(--rose); color: var(--ink); }
.cat-chip[aria-pressed='true'] .ico { color: var(--ink); }
.places .fold { margin-top: 0.6rem; }
.vlist { margin-top: 0.5rem; }
.vrow { position: relative; display: grid; grid-template-columns: 3rem 1fr auto; gap: 0.9rem; align-items: center; min-height: 4.5rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); isolation: isolate; transition: padding 0.6s var(--ease); }
.vrow::before { content: ''; position: absolute; inset: 0 calc(var(--m) * -0.4); z-index: -1; background: var(--plum-2); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.vrow:hover::before, .vrow:focus-visible::before { transform: scaleX(1); }
.vrow-ico { display: grid; place-items: center; width: 3rem; height: 3rem; border: 1px solid var(--line-2); border-radius: 50%; color: var(--hot); background: var(--ink); }
.vrow-ico .ico { width: 1.65rem; height: 1.65rem; stroke-width: 1.2; }
.vrow:hover .vrow-ico .ico [pathLength] { animation: drawon 0.9s var(--ease); }
.vrow-main { display: grid; gap: 0.15rem; min-width: 0; }
.vrow-main b { font: 300 1.4rem/1.1 var(--serif); letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vrow-main small { font-size: 0.78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vrow-side { display: grid; justify-items: end; gap: 0.4rem; }
.been { display: inline-flex; align-items: center; gap: 0.3rem; font: 600 0.6875rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--sky); }
.been .ico { width: 0.9rem; height: 0.9rem; }
.new-tag { font: 600 0.6875rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); background: var(--blush); padding: 0.2rem 0.35rem; }

/* ======================================================= MEMORIES */
.mem-head { display: grid; gap: 0.75rem; }
.mem-head .row { margin-top: 0.75rem; }
.timeline { position: relative; margin-top: 2.5rem; }
.timeline::before { content: ''; position: absolute; left: 3.4rem; top: 0; bottom: 0; width: 1px; background: var(--line); }
.tl { position: relative; display: grid; grid-template-columns: 3.4rem 1fr; column-gap: 1.25rem; padding-bottom: 3.5rem; }
.tl-date { display: grid; justify-items: end; align-content: start; gap: 0.3rem; padding-right: 0.9rem; text-align: right; }
.tl-d { font: 300 2.6rem/0.85 var(--serif); color: var(--blush); letter-spacing: -0.03em; }
.tl-date .label { font-size: 0.6875rem; letter-spacing: 0.1em; }
.tl::after { content: ''; position: absolute; left: calc(3.4rem - 4px); top: 0.6rem; width: 7px; height: 7px; background: var(--hot); rotate: 45deg; }
.tl-main { display: grid; gap: 0.6rem; min-width: 0; }
.tl-notes { font: italic 300 1.25rem/1.4 var(--serif); color: var(--blush); max-width: 34ch; }
.tl .fan { justify-content: flex-start; padding-left: 0.5rem; }
.tl .fan > * { width: min(46%, 12rem); }
.prologue .tl-d { font-style: italic; color: var(--hot); font-size: 1.6rem; }
.prologue .fan > * { width: min(42%, 12.5rem); }

/* ======================================================= SHEETS */
.sheet-back { position: fixed; inset: 0; z-index: 55; background: rgba(11, 10, 11, 0.72); display: flex; align-items: flex-end; justify-content: center; }
.sheet { position: relative; width: 100%; max-width: 42rem; max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--ink); border-top: 1px solid var(--line-2); padding: 1.6rem var(--m) calc(var(--sa-b) + 1.8rem); outline: none; }
.sheet::before { content: ''; position: absolute; top: -1px; left: 0; width: 4rem; height: 2px; background: var(--hot); }
.sheet-x { position: absolute; top: 0.6rem; right: 0.6rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; color: var(--blush); }
.sheet-body { display: grid; gap: 1rem; }
.picks li { border-top: 1px solid var(--line); }
.pick { display: grid; grid-template-columns: 3rem 1fr; gap: 0.6rem; padding: 1rem 0; }
.pick-n { font: italic 300 2.4rem/0.9 var(--serif); color: var(--hot); }
.pick b { display: block; font: 300 1.6rem/1.05 var(--serif); }
.pick small { display: block; margin-top: 0.25rem; color: var(--muted); font-size: 0.78rem; }
.pick .why { display: block; margin-top: 0.4rem; font: italic 300 1.1rem/1.35 var(--serif); color: var(--blush); }
.pick:hover b { color: var(--blush); }
.thinking { display: flex; align-items: center; gap: 0.8rem; font: italic 300 1.2rem/1.3 var(--serif); color: var(--muted); }
.thinking i { width: 7px; height: 7px; background: var(--hot); rotate: 45deg; animation: think 1.2s var(--ease) infinite; }
.thinking i:nth-child(2) { animation-delay: 0.15s; }
.thinking i:nth-child(3) { animation-delay: 0.3s; }
@keyframes think { 50% { transform: scale(0.3); opacity: 0.3; } }
.lightbox { max-height: 76dvh; margin: 0 auto; }

/* Forms: rating + photo picker */
.rate { display: flex; gap: 0.3rem; }
.rate label { cursor: pointer; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; color: var(--hot); }
.rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate .ico { width: 1.7rem; height: 1.7rem; transition: transform 0.5s var(--spring); }
.rate label.on .ico path { fill: currentColor; }
.rate label:active .ico { transform: scale(0.85); }
.rate input:focus-visible + .ico { outline: 1.5px solid var(--sky); outline-offset: 4px; }
.picker { display: flex; align-items: center; gap: 1rem; min-height: 5rem; padding: 1rem; border: 1px dashed var(--line-2); cursor: pointer; transition: border-color 0.4s; }
.picker:hover, .picker:focus-within { border-color: var(--hot); }
.picker .ico { color: var(--hot); width: 2rem; height: 2rem; }
.picker span { font: italic 300 1.2rem/1.3 var(--serif); }
.photo-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: 0.9rem; }
.photo-strip:empty { display: none; }
.photo-strip .thumb { position: relative; }
.photo-strip .thumb:nth-child(odd) { rotate: -2deg; }
.photo-strip .thumb:nth-child(even) { rotate: 2deg; }

/* ======================================================= VIEW TRANSITIONS */
::view-transition-old(root) { animation: 0.3s var(--ease-in) both vt-out; }
::view-transition-new(root) { animation: 0.8s var(--ease) both vt-in; }
html[data-dir='fwd']::view-transition-new(root) { animation-name: vt-in-fwd; }
html[data-dir='back']::view-transition-new(root) { animation-name: vt-in-back; }
html[data-dir='fwd']::view-transition-old(root) { animation-name: vt-out-fwd; }
html[data-dir='back']::view-transition-old(root) { animation-name: vt-out-back; }
::view-transition-old(scene), ::view-transition-old(tabs), ::view-transition-old(top), ::view-transition-old(grain) { display: none; }
::view-transition-new(scene), ::view-transition-new(tabs), ::view-transition-new(top), ::view-transition-new(grain) { animation: none; }
::view-transition-group(hero), ::view-transition-group(title) { animation-duration: 0.85s; animation-timing-function: var(--ease); }
::view-transition-old(hero), ::view-transition-new(hero), ::view-transition-old(title), ::view-transition-new(title) { animation-duration: 0.5s; height: 100%; object-fit: cover; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-out-fwd { to { opacity: 0; transform: translateX(-28px); } }
@keyframes vt-out-back { to { opacity: 0; transform: translateX(28px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(26px); } }
@keyframes vt-in-fwd { from { opacity: 0; transform: translateX(44px); } }
@keyframes vt-in-back { from { opacity: 0; transform: translateX(-44px); } }

/* ======================================================= WIDE (12 columns) */
@media (min-width: 40rem) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats div { border-right: 1px solid var(--line); padding-left: 1.1rem; }
  .stats div:first-child { padding-left: 0; }
  .stats div:last-child { border-right: 0; }
  .sheet-back { align-items: center; }
  .sheet { border: 1px solid var(--line-2); max-height: 84dvh; }
}
@media (min-width: 64rem) {
  :root { --top: 4.75rem; }
  .masthead { position: fixed; background: rgba(11, 10, 11, 0.92); border-bottom: 1px solid var(--line); }
  .issue { margin-left: 0; order: 3; }
  .gear { order: 4; margin-left: 1rem; }
  .tabs { inset: 0 auto auto 50%; translate: -50% 0; height: calc(var(--top) + var(--sa-t)); padding: var(--sa-t) 0 0; display: flex; gap: 0.25rem; background: none; border: 0; }
  .tabs a { flex-direction: row; gap: 0.5rem; padding: 0 0.9rem; }
  .tabs a .ico { display: none; }
  .tab-n { display: inline; font: italic 300 0.95rem/1 var(--serif); color: var(--hot); }
  .tab-l { font-size: 0.6875rem; }
  .tab-mark { top: auto; bottom: -1px; width: 1px; transform: translateX(var(--x, 0)) scaleX(var(--w, 0)); transform-origin: 0 0; }
  .tab-mark::after { display: none; }
  .page { padding-top: calc(var(--top) + var(--sa-t) + 2.5rem); padding-bottom: 6rem; }

  .home .hero { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto auto auto 1fr; }
  .home .hero > .kicker { grid-column: 1 / 8; }
  .hero-photo { grid-column: 8 / 13; grid-row: 1 / 6; margin: 0; aspect-ratio: auto; height: min(74vh, 44rem); align-self: start; }
  .names { grid-column: 1 / 12; grid-row: 2; margin-top: 1.5rem; }
  .turn-line, .turn-next { grid-column: 1 / 8; }
  .home .hero > .idx { grid-column: 1 / 7; margin-top: 2.5rem; }
  .home-cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); margin-top: 6rem; }
  .home-cols > * { margin: 0; }
  .home-cols .plan { grid-column: 1 / 6; align-self: start; }
  .home-cols .recap { grid-column: 7 / 13; }
  .home-cols .plan:not(:first-child) { grid-row: 1; }
  .home-cols .recap:only-child { grid-column: 4 / 12; }
  .recap-empty { grid-template-columns: 13rem 1fr; gap: 2.5rem; }

  .spin-page { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: start; }
  .spin-head { grid-column: 8 / 13; grid-row: 1; padding-top: 1rem; }
  .wheel-stage { grid-column: 1 / 8; grid-row: 1 / 6; width: min(100%, calc(100vh - 13rem), 40rem); margin: 0 auto; }
  .spin-hint { grid-column: 1 / 8; grid-row: 6; }
  .spin-ctl { grid-column: 8 / 13; grid-row: 2; justify-content: flex-start; margin: 1.6rem 0 1.2rem; }
  .spin-page .fold { grid-column: 8 / 13; grid-row: 3; }
  .spin-page .pill { grid-column: 8 / 13; grid-row: 4; justify-self: start; margin-top: 1rem; }
  .slices { display: block; grid-column: 8 / 13; grid-row: 5; margin-top: 1.4rem; }

  .reveal-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; min-height: calc(100dvh - 4rem); padding-top: 0; }
  .reveal-photo { grid-column: 1 / 6; grid-row: 1; max-height: 78vh; aspect-ratio: 3 / 4; justify-self: stretch; }
  .reveal-copy { grid-column: 6 / 13; grid-row: 1; margin-top: 0; padding-left: 1.5rem; }

  .deck-page { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: start; }
  .deck-head { grid-column: 1 / 5; grid-row: 1; display: grid; grid-template-columns: 1fr; justify-items: start; padding-top: 2rem; }
  .deck-head .label { text-align: left; grid-column: 1; }
  .deck { grid-column: 5 / 9; grid-row: 1 / 4; width: 100%; max-width: 24rem; height: min(66vh, 36rem); margin-top: 0; }
  .deck-actions { grid-column: 5 / 9; grid-row: 4; }
  .deck-page .fold { grid-column: 1 / 5; grid-row: 2; margin-top: 2rem; }

  .detail { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
  .detail .back { grid-column: 1 / -1; justify-self: start; }
  .detail-hero { grid-column: 1 / 8; }
  .detail-body { grid-column: 8 / 13; margin-top: 0.4rem; }
  .detail-art { max-height: 60vh; }

  .places .vlist { display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(var(--g) * 3); }
  .places-head { grid-template-columns: 1fr auto; align-items: end; }
  .cats { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; }

  .memories .timeline { max-width: 62rem; }
  .timeline::before { left: 7rem; }
  .tl { grid-template-columns: 7rem 1fr; column-gap: 2.5rem; }
  .tl::after { left: calc(7rem - 4px); }
  .tl-d { font-size: 4rem; }
  .tl-main { grid-template-columns: 1fr 1fr; column-gap: 2rem; align-items: start; }
  .tl-main > * { grid-column: 1; }
  .tl-main > .fan { grid-column: 2; grid-row: 1 / span 6; }
  .tl-main > .fan:empty { display: none; }
}

/* ======================================================= REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
