/* Lana guides v3 — editorial fashion-tech. Ivory paper, espresso ink, burgundy voice, plum night, champagne detail. */
@import url("../fonts/fonts.css");

:root {
  --paper: #f3e9de; --paper-2: #ebdccb; --paper-3: #e0ccb6; --card: #fbf6ef;
  --ink: #241b1c; --ink-2: #57474a; --ink-3: #76656a;
  --wine: #7c293d; --wine-2: #63202f; --on-wine: #ffffff;
  --plum: #2a1622; --night-ink: #f6ece2; --night-ink-2: #d9c6c0;
  --gold: #c4a36a; --gold-2: #e0c48c;
  --line: rgba(36, 27, 28, 0.13); --line-strong: rgba(36, 27, 28, 0.26);
  --shadow-s: 0 1px 2px rgba(42, 22, 34, 0.08), 0 8px 22px -12px rgba(42, 22, 34, 0.3);
  --shadow-l: 0 2px 6px rgba(42, 22, 34, 0.08), 0 44px 80px -36px rgba(42, 22, 34, 0.6);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Bricolage Grotesque", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4.5vw, 56px); --max: 1280px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17100f; --paper-2: #221819; --paper-3: #2e2223; --card: #1f1617;
    --ink: #f4ebe2; --ink-2: #d3c3bc; --ink-3: #a8958f;
    --wine: #ea9fb0; --wine-2: #f4bccb; --on-wine: #1a1012;
    --plum: #24121c;
    --line: rgba(244, 235, 226, 0.12); --line-strong: rgba(244, 235, 226, 0.26);
    --shadow-s: 0 8px 22px -12px rgba(0, 0, 0, 0.8); --shadow-l: 0 44px 80px -36px rgba(0, 0, 0, 0.9);
    color-scheme: dark;
  }
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.5s; animation-timing-function: var(--ease); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 300; opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { body::before { mix-blend-mode: screen; opacity: 0.035; } }
::selection { background: var(--wine); color: var(--on-wine); }
/* height:auto keeps every image at its own proportions even though width/height attributes are set */
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; border-radius: 8px; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 400; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ——— header ——— */
.top { position: sticky; top: 0; z-index: 80; border-bottom: 1px solid transparent; transition: background 0.35s, border-color 0.35s; }
.top.scrolled { background: color-mix(in oklab, var(--paper) 80%, transparent); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 8px; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.mark img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--gold); }
.mark span { font: 400 1.65rem/1 var(--serif); letter-spacing: -0.01em; white-space: nowrap; }
.mark i { color: var(--wine); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 0 14px; border-radius: 999px; transition: background 0.25s; min-height: 44px; }
.nav a:hover { background: var(--paper-2); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.saved-pill b { font: 700 0.72rem/1 var(--sans); min-width: 20px; height: 20px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--wine); color: var(--on-wine); padding: 0 6px; }
.saved-pill[data-count="0"] b { display: none; }
@media (max-width: 560px) { .nav .hide-s { display: none; } .nav a { padding: 0 11px; } .mark span { font-size: 1.45rem; } }

/* ——— device frames (image proportions come in as --ar, so nothing is ever stretched) ——— */
.laptop { position: relative; width: 100%; perspective: 1600px; }
.laptop .lid { position: relative; background: #100b0c; border-radius: 16px 16px 4px 4px; padding: 2.4% 2.4% 2.8%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.09), var(--shadow-l); transform-origin: 50% 100%; }
.laptop .lid::before { content: ""; position: absolute; top: 0.9%; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: #2f282b; transform: translate(-50%, 2px); }
.laptop .screen { position: relative; overflow: hidden; border-radius: 3px; background: #000; aspect-ratio: var(--ar, 16 / 10); }
.laptop .screen > img, .laptop .screen > video { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.laptop .screen.scroll > img { position: absolute; top: 0; left: 0; width: 100%; height: auto; object-fit: fill; will-change: transform; }
.laptop .base { position: relative; height: 0; padding-bottom: 3%; margin: 0 -6%; background: linear-gradient(#e6dfd9, #bdb4ae 55%, #90877f); border-radius: 2px 2px 50% 50% / 2px 2px 100% 100%; box-shadow: 0 22px 30px -20px rgba(0,0,0,.6); }
.laptop .base::before { content: ""; position: absolute; top: 0; left: 50%; width: 14%; height: 40%; transform: translateX(-50%); background: rgba(0,0,0,.16); border-radius: 0 0 8px 8px; }
@media (prefers-color-scheme: dark) { .laptop .base { background: linear-gradient(#6a625f, #3d3735 55%, #2a2524); } }

.phone { --pr: 40px; --pp: 8px; position: relative; width: 100%; background: #0d0a0b; border-radius: var(--pr); padding: var(--pp); box-shadow: inset 0 0 0 1.5px #3d3538, inset 0 0 0 3px #0d0a0b, var(--shadow-l); }
.phone::before { content: ""; position: absolute; right: -2px; top: 24%; width: 3px; height: 11%; background: #2b2427; border-radius: 0 3px 3px 0; }
.phone::after { content: ""; position: absolute; top: calc(var(--pp) + 7px); left: 50%; width: 29%; aspect-ratio: 3.4 / 1; transform: translateX(-50%); border-radius: 999px; background: #000; z-index: 3; }
.phone .screen { position: relative; overflow: hidden; border-radius: calc(var(--pr) - var(--pp)); background: #000; aspect-ratio: var(--ar, 9 / 16); }
.phone .screen > img, .phone .screen > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.laptop .screen > video { position: absolute; inset: 0; }
.phone .screen > video, .laptop .screen > video { opacity: 0; transition: opacity 0.5s; }
.screen > video.on, .screen > video[controls] { opacity: 1; }
.phone.small { --pr: 28px; --pp: 6px; }
.phone.small::after { top: calc(var(--pp) + 5px); }

.print { background: #fffdf8; padding: clamp(10px, 3%, 22px); box-shadow: var(--shadow-l); border-radius: 3px; transform: rotate(-0.8deg); }
.print img { width: 100%; }
@media (prefers-color-scheme: dark) { .print { background: #f1e8dc; } }

figure.dev { margin: 28px 0 0; }
figure.dev figcaption { font-size: 0.86rem; color: var(--ink-3); margin-top: 18px; text-align: center; text-wrap: balance; }
figure.dev-phone { max-width: 250px; margin-inline: auto; }
figure.dev-laptop { max-width: 680px; margin-inline: auto; padding-inline: 5%; }
figure.dev-print { max-width: 640px; margin-inline: auto; }
.zoomable { display: block; cursor: zoom-in; text-decoration: none; border-radius: 16px; }
.zoomable:hover .lid, .zoomable:hover.phone, .zoomable:hover .print { transition: transform 0.6s var(--ease); }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(14, 8, 11, 0.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
dialog.lightbox img { max-height: 84vh; max-width: 94vw; width: auto; height: auto; margin: auto; border-radius: 10px; }
dialog.lightbox p { color: #f6ece2; text-align: center; margin: 14px auto 0; font-size: 0.92rem; max-width: 60ch; }
dialog.lightbox .close { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #f6ece2; color: #1a1012; cursor: pointer; display: grid; place-items: center; }

/* ——— buttons ——— */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 999px; font: 600 1rem/1 var(--sans); background: var(--ink); color: var(--paper); text-decoration: none; border: 0; cursor: pointer; transition: transform 0.35s var(--ease), background 0.25s; }
.btn:hover { transform: translateY(-2px); }
.btn.wine { background: var(--wine); color: var(--on-wine); }
.btn.light { background: var(--night-ink); color: #1a1012; }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.btn .icon { transition: transform 0.35s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.save { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); font-weight: 600; transition: box-shadow 0.25s, color 0.25s; }
.save[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--wine); color: var(--wine); }
.save[aria-pressed="true"] .icon, .heart[aria-pressed="true"] .icon { fill: currentColor; }
.kwtag { display: inline-flex; align-items: center; font: 700 0.74rem/1 var(--sans); letter-spacing: 0.14em; color: var(--wine); box-shadow: inset 0 0 0 1px currentColor; border-radius: 999px; padding: 8px 12px; }

/* ——— hero ——— */
.hero { position: relative; padding: clamp(16px, 3vw, 32px) 0 clamp(28px, 4vw, 48px); overflow: clip; }
.hero-grid { display: grid; gap: clamp(28px, 4vw, 48px); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); min-height: min(calc(100svh - 140px), 860px); } }
.idrow { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font-size: 0.92rem; color: var(--ink-2); line-height: 1.35; }
.idrow img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--gold); }
.idrow b { color: var(--ink); }
.hero h1 { font: 400 clamp(3rem, 12vw, 6.2rem)/0.9 var(--serif); letter-spacing: -0.035em; margin: 0 0 20px; text-wrap: balance; }
.hero h1 em { color: var(--wine); }
.hero .lede { font-size: clamp(1.05rem, 2.4vw, 1.22rem); color: var(--ink-2); max-width: 38ch; margin: 0 0 26px; text-wrap: pretty; }

.console { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 10px; box-shadow: var(--shadow-l); max-width: 560px; }
.console label { display: block; font-size: 0.84rem; font-weight: 600; color: var(--ink-2); padding: 8px 12px 6px; }
.console .field { display: flex; align-items: center; gap: 10px; background: var(--paper); border-radius: 20px; padding: 0 8px 0 18px; border: 1px solid var(--line); transition: border-color 0.25s, box-shadow 0.25s; }
.console .field:focus-within { border-color: var(--wine); box-shadow: 0 0 0 5px color-mix(in oklab, var(--wine) 16%, transparent); }
.console input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 700 clamp(1.45rem, 6vw, 2rem)/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; padding: 18px 0; caret-color: var(--wine); }
.console input::placeholder { color: var(--ink-3); opacity: 0.5; }
.console input::-webkit-search-cancel-button { display: none; }
.console .go { border: 0; border-radius: 16px; min-width: 54px; height: 54px; display: grid; place-items: center; background: var(--wine); color: var(--on-wine); cursor: pointer; transition: transform 0.3s var(--ease), background 0.25s; }
.console .go:hover { transform: translateX(3px); background: var(--wine-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 6px 6px; }
.chip { font: 700 0.78rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); border-radius: 999px; padding: 0 14px; min-height: 42px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.3s var(--ease); }
.chip:hover { transform: translateY(-1px); border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.match { margin-top: 10px; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; transition: border-color 0.25s, transform 0.4s var(--ease); min-height: 124px; }
.match:hover { border-color: var(--wine); transform: translateY(-1px); }
.match .mthumb { width: 58px; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: var(--paper-3); }
.match .mthumb img { width: 100%; height: 100%; object-fit: cover; }
.match strong { display: block; font: 400 1.3rem/1.1 var(--serif); }
.match small { display: block; margin-top: 4px; font-size: 0.86rem; color: var(--ink-2); }
.match .arrow { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); }
.match.empty { grid-template-columns: minmax(0, 1fr); }

/* hero stage: Lana's portrait with three Reels fanned in front */
.stage { position: relative; height: clamp(540px, 52vw, 720px); }
.stage .portrait { position: absolute; left: 0; top: 4%; width: 44%; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-l); transform: rotate(-4deg); }
.stage .portrait img { width: 100%; height: 100%; object-fit: cover; }
.stage .note { position: absolute; left: 2%; top: 62%; width: 40%; max-width: 250px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow-l); transform: rotate(-2deg); z-index: 6; }
.stage .note p { margin: 0; font: italic 400 1.3rem/1.15 var(--serif); }
.stage .note small { display: block; margin-top: 6px; font-size: 0.78rem; color: var(--ink-3); }
.stage .ph { position: absolute; width: 31%; text-decoration: none; display: block; transition: transform 0.7s var(--ease); }
.stage .ph:nth-of-type(1) { left: 33%; top: 15%; transform: rotate(-7deg); z-index: 2; }
.stage .ph:nth-of-type(2) { left: 51%; top: 3%; transform: rotate(1deg); z-index: 3; }
.stage .ph:nth-of-type(3) { left: 69%; top: 17%; transform: rotate(7deg); z-index: 4; }
.stage .ph:hover, .stage .ph:focus-visible { transform: translateY(-14px) rotate(0) scale(1.04); z-index: 7; }
.tag { position: absolute; left: 50%; bottom: -15px; transform: translateX(-50%); background: var(--ink); color: var(--paper); font: 700 0.72rem/1 var(--sans); letter-spacing: 0.14em; padding: 9px 13px; border-radius: 999px; white-space: nowrap; box-shadow: var(--shadow-s); z-index: 5; }
@media (max-width: 999px) {
  .stage { height: auto; display: grid; grid-auto-flow: column; grid-auto-columns: min(56%, 240px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 36px; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: none; }
  .stage::-webkit-scrollbar { display: none; }
  .stage .portrait, .stage .note { display: none; }
  .stage .ph { position: relative; inset: auto; width: auto; transform: none !important; scroll-snap-align: center; }
}

/* keyword marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; white-space: nowrap; padding: 18px 0; }
.marquee .track { display: inline-flex; animation: marquee 40s linear infinite; }
.marquee .set { display: inline-flex; }
.marquee a { font: 400 clamp(1.7rem, 4vw, 2.6rem)/1 var(--serif); text-decoration: none; color: var(--ink-2); display: inline-flex; align-items: center; gap: 36px; padding-right: 36px; transition: color 0.25s; }
.marquee a::after { content: "✦"; font-size: 0.55em; color: var(--gold); }
.marquee a:hover { color: var(--wine); }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ——— section heads ——— */
.sec-h { font: 400 clamp(2.4rem, 7vw, 4.6rem)/0.95 var(--serif); letter-spacing: -0.03em; margin: 0 0 14px; text-wrap: balance; }
.sec-h em { color: var(--wine); }
.sec-sub { color: var(--ink-2); max-width: 52ch; margin: 0 0 clamp(28px, 4vw, 52px); font-size: 1.08rem; }

/* ——— scroll story: Reel → keyword → guide ——— */
.story { position: relative; background: var(--plum); color: var(--night-ink); overflow: clip; }
.story .pin { min-height: 100svh; display: flex; align-items: center; padding: clamp(56px, 8vw, 96px) 0; }
.story-grid { display: grid; gap: clamp(28px, 4vw, 64px); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .story-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.story .sec-h em { color: var(--gold-2); }
.story ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.story li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px; border-radius: 18px; border: 1px solid rgba(246, 236, 226, 0.12); transition: background 0.4s, border-color 0.4s, opacity 0.4s; }
.js .story li { opacity: 0.5; }
.js .story li.on { opacity: 1; background: rgba(246, 236, 226, 0.07); border-color: rgba(224, 196, 140, 0.55); }
.story li b { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(246,236,226,.1); font: 400 1.4rem/1 var(--serif); transition: background 0.4s, color 0.4s; }
.story li.on b { background: var(--gold-2); color: #1a1012; }
.story li strong { display: block; font-size: 1.08rem; }
.story li span { color: var(--night-ink-2); font-size: 0.95rem; }
.scene { position: relative; aspect-ratio: 1 / 0.82; }
.scene .phone { position: absolute; left: 0; top: 0; width: 33%; z-index: 3; }
.scene .laptop { position: absolute; right: 0; bottom: 6%; width: 80%; }
.kwfly { position: absolute; left: 4%; top: 72%; z-index: 6; background: var(--gold-2); color: #1a1012; font: 700 0.95rem/1 var(--sans); letter-spacing: 0.16em; padding: 13px 18px; border-radius: 999px; box-shadow: var(--shadow-l); display: inline-flex; gap: 8px; align-items: center; }
@media (max-width: 899px) { .scene { aspect-ratio: 1 / 0.95; } .scene .phone { width: 38%; } .scene .laptop { width: 88%; } .kwfly { top: 64%; } }

/* ——— featured builds ——— */
.builds { padding: clamp(64px, 9vw, 130px) 0 clamp(40px, 6vw, 80px); }
.build { display: grid; gap: 24px clamp(18px, 3vw, 48px); align-items: center; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); grid-template-areas: "copy copy" "ph dev"; padding: clamp(32px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .build { grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.42fr) minmax(0, 1fr); grid-template-areas: "copy ph dev"; } .build:nth-child(even) { grid-template-areas: "dev ph copy"; grid-template-columns: minmax(0, 1fr) minmax(0, 0.42fr) minmax(0, 0.9fr); } }
.build .bcopy { grid-area: copy; } .build .ph-col { grid-area: ph; } .build .dev-col { grid-area: dev; }
.build .ph-col .phone { max-width: 250px; margin-inline: auto; }
.build .dev-col .laptop { padding-inline: 4%; }
.build .bcopy h3 { font: 400 clamp(2rem, 4.6vw, 3rem)/0.98 var(--serif); letter-spacing: -0.02em; margin: 14px 0 12px; text-wrap: balance; }
.build .bcopy h3 em { color: var(--wine); }
.build .bcopy p { color: var(--ink-2); margin: 0 0 16px; max-width: 46ch; }
.metaline { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.88rem; color: var(--ink-3); margin-bottom: 20px; }
.metaline span { display: inline-flex; align-items: center; gap: 6px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ——— proof ledger ——— */
.proof { padding: clamp(56px, 8vw, 110px) 0; background: var(--paper-2); }
.proof-grid { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .proof-grid { grid-template-columns: 1fr 1fr; align-items: end; } }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.ledger li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ledger b { font: 400 1.55rem/1.1 var(--serif); }
.ledger span { color: var(--ink-2); font-size: 0.95rem; text-align: right; }

/* ——— saved row (return visits) ——— */
.saved-row { padding: clamp(28px, 4vw, 44px) 0 0; }
.saved-row[hidden] { display: none; }
.saved-row h2 { font: 400 1.9rem/1 var(--serif); margin: 0 0 14px; }
.saved-row .list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.saved-row .list a { flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-weight: 600; transition: border-color 0.25s; }
.saved-row .list a:hover { border-color: var(--wine); }
.saved-row .list img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

/* ——— library ——— */
.lib { padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 9vw, 130px); }
.lib-page .lib { padding-top: clamp(20px, 4vw, 48px); }
.lib-bar { position: sticky; top: 68px; z-index: 20; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 0; margin-bottom: 18px; background: color-mix(in oklab, var(--paper) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding: 2px; }
.filters::-webkit-scrollbar { display: none; }
.filters .chip { flex: none; }
.search-inline { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 0 16px; min-height: 48px; background: var(--card); width: min(100%, 320px); }
.search-inline:focus-within { border-color: var(--wine); }
.search-inline input { border: 0; outline: 0; background: transparent; font: 500 1rem var(--sans); color: var(--ink); width: 100%; padding: 12px 0; }
.grid { display: grid; gap: clamp(16px, 2.2vw, 26px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; border-radius: 24px; background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: box-shadow 0.5s var(--ease), border-color 0.3s; transform-style: preserve-3d; }
.card:hover { box-shadow: var(--shadow-l); border-color: transparent; }
.card-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; border-radius: 24px; }
.card .thumb { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-3); }
.card .thumb img, .card .thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 0.9s var(--ease), opacity 0.35s; }
.card .thumb video { opacity: 0; }
.card.previewing .thumb video { opacity: 1; }
.card:hover .thumb img { transform: scale(1.05); }
.card .ph-tile { position: absolute; inset: 0; display: grid; place-items: center; background: var(--wine); color: var(--on-wine); font: 400 2.6rem/1 var(--serif); }
.card .kwt { position: absolute; left: 14px; top: 14px; z-index: 2; background: rgba(20, 12, 16, 0.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font: 700 0.72rem/1 var(--sans); letter-spacing: 0.14em; padding: 9px 12px; border-radius: 999px; }
.card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font: 400 1.6rem/1.04 var(--serif); margin: 0; text-wrap: balance; }
.card p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.card .meta { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.82rem; color: var(--ink-3); }
.card .meta span { display: inline-flex; align-items: center; gap: 6px; }
.heart { position: absolute; right: 12px; top: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(251, 246, 239, 0.92); color: #241b1c; cursor: pointer; transition: transform 0.35s var(--ease), color 0.25s; }
.heart:hover { transform: scale(1.1); }
.heart[aria-pressed="true"] { color: #7c293d; }
.card[hidden] { display: none; }
.empty-state { display: none; text-align: center; padding: 56px 16px; border: 1px dashed var(--line-strong); border-radius: 24px; }
.empty-state.show { display: block; }
.empty-state p { font: italic 400 2rem/1.1 var(--serif); margin: 0 0 8px; }

/* ——— CTA band + footer ——— */
.cta-band { background: var(--plum); color: var(--night-ink); padding: clamp(64px, 9vw, 130px) 0; text-align: center; overflow: clip; }
.cta-band h2 { font: 400 clamp(2.6rem, 9vw, 6rem)/0.9 var(--serif); letter-spacing: -0.035em; margin: 0 auto 22px; max-width: 13ch; text-wrap: balance; }
.cta-band h2 em { color: var(--gold-2); }
.cta-band p { color: var(--night-ink-2); margin: 0 auto 30px; max-width: 46ch; }
.cta-band .row { justify-content: center; }
.foot { padding: 28px 0 44px; color: var(--ink-2); font-size: 0.92rem; border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.foot p { margin: 0; max-width: 62ch; }

/* ——— guide page ——— */
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--wine); z-index: 90; }
.g-hero { padding: clamp(12px, 2vw, 28px) 0 clamp(40px, 6vw, 80px); }
.crumb { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 0.92rem; color: var(--ink-2); min-height: 44px; }
.g-grid { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 1000px) { .g-grid { grid-template-columns: minmax(0, 1fr) 340px; } }
.keyline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.kwbig { font: 700 0.8rem/1 var(--sans); letter-spacing: 0.14em; background: var(--wine); color: var(--on-wine); border-radius: 999px; padding: 10px 14px; }
.verified { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--ink-2); }
.verified .dot { width: 8px; height: 8px; border-radius: 50%; background: #3f8a5c; box-shadow: 0 0 0 4px rgba(63, 138, 92, 0.18); }
.g-hero h1 { font: 400 clamp(2.7rem, 8.5vw, 5.6rem)/0.92 var(--serif); letter-spacing: -0.035em; margin: 18px 0 18px; text-wrap: balance; }
.g-hero h1 em { color: var(--wine); }
.g-hero .lede { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--ink-2); max-width: 46ch; margin: 0 0 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.player { justify-self: center; width: min(320px, 74vw); margin: 0; }
.player .tap { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; border: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.45)); cursor: pointer; border-radius: inherit; }
.player .tap span { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: rgba(251, 246, 239, 0.94); color: #241b1c; box-shadow: var(--shadow-l); transition: transform 0.35s var(--ease); }
.player .tap span .icon { width: 28px; height: 28px; margin-left: 4px; }
.player .tap:hover span { transform: scale(1.08); }
.player.playing .tap { display: none; }
.player figcaption { text-align: center; font-size: 0.85rem; color: var(--ink-3); margin-top: 16px; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.facts dt { display: flex; align-items: center; gap: 8px; font: 600 0.74rem/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.facts dd { margin: 0; font-size: 0.95rem; line-height: 1.45; }
@media (max-width: 560px) {
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 4px 16px; }
  .facts div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; align-items: baseline; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 0; }
  .facts div:last-child { border-bottom: 0; } .facts dt { margin: 0; }
}

.showcase { background: var(--plum); color: var(--night-ink); padding: clamp(56px, 8vw, 110px) 0; overflow: clip; }
.showcase .sec-h em { color: var(--gold-2); }
.showcase .sec-sub { color: var(--night-ink-2); }
.showcase figure { margin: 0 auto; }
.showcase figcaption { color: var(--night-ink-2); text-align: center; font-size: 0.9rem; margin-top: 22px; }
.showcase .dev-laptop { max-width: 980px; padding-inline: 5%; }
.showcase .dev-phone { max-width: 300px; }
.compare .after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .after img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: var(--gold-2); transform: translateX(-1px); pointer-events: none; z-index: 3; }
.compare .handle::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: var(--gold-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1012' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6 3 12l6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat; box-shadow: var(--shadow-l); }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 4; }
.compare input[type=range]:focus-visible + .handle::after { outline: 3px solid #fff; outline-offset: 3px; }
.compare .lbl { position: absolute; top: 12px; z-index: 2; background: rgba(20, 12, 16, 0.7); color: #fff; font: 700 0.7rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 10px; border-radius: 999px; pointer-events: none; }
.compare .lbl.l { left: 12px; } .compare .lbl.r { right: 12px; }

.g-body { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: minmax(0, 1fr); padding: clamp(48px, 7vw, 100px) 0 clamp(56px, 8vw, 110px); }
@media (min-width: 1100px) { .g-body { grid-template-columns: 200px minmax(0, 1fr); } }
.toc { position: sticky; top: 100px; align-self: start; display: none; }
@media (min-width: 1100px) { .toc { display: block; } }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-strong); }
.toc a { display: block; padding: 8px 0 8px 16px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink-3); font-size: 0.92rem; transition: color 0.2s, border-color 0.2s; }
.toc a.active, .toc a:hover { color: var(--ink); border-left-color: var(--wine); }
.prose { max-width: 760px; min-width: 0; }
.prose > h2 { font: 400 clamp(2.1rem, 5.2vw, 3.2rem)/1 var(--serif); letter-spacing: -0.025em; margin: clamp(56px, 7vw, 92px) 0 18px; text-wrap: balance; }
.prose > h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.1em; }
.prose code { font: 500 0.88em var(--mono); background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.1em 0.35em; color: var(--ink); overflow-wrap: anywhere; }
.need { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
@media (min-width: 720px) { .need { grid-template-columns: 1.15fr 1fr; } }
.need > div { border-radius: 22px; padding: clamp(20px, 3vw, 28px); }
.need .req { background: var(--card); border: 1px solid var(--line); }
.need .cost { background: var(--wine); color: var(--on-wine); }
.need h3 { margin: 0 0 10px; font: 400 1.6rem/1.1 var(--serif); }
.need .cost p { color: inherit; opacity: 0.92; margin: 0; }
.need .cost code { background: rgba(255,255,255,.14); color: inherit; border-color: transparent; }
.need ul { margin: 0; padding-left: 1.1em; }

.steps { list-style: none; margin: 0; padding: 0; position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 30px; width: 2px; background: var(--line); }
.steps::after { content: "";  position: absolute; left: 21px; top: 8px; bottom: 30px; width: 2px; background: var(--wine); transform-origin: top; transform: scaleY(var(--fill, 0)); }
.step { position: relative; padding: 0 0 48px 66px; counter-increment: s; }
.step::before { content: counter(s); position: absolute; left: 0; top: 0; z-index: 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 400 1.45rem/1 var(--serif); background: var(--paper); border: 1px solid var(--line-strong); color: var(--ink); transition: background 0.4s, color 0.4s, border-color 0.4s, transform 0.5s var(--ease); }
.step.done::before, .step.current::before { background: var(--wine); color: var(--on-wine); border-color: var(--wine); }
.step.current::before { transform: scale(1.12); }
.step h3 { font: 600 1.22rem/1.3 var(--sans); margin: 9px 0 8px; color: var(--ink); }
.step p { margin: 0 0 14px; }
@media (max-width: 480px) { .step { padding-left: 56px; } figure.dev-laptop { padding-inline: 4%; } }

.code { position: relative; margin: 14px 0; border-radius: 18px; background: #1b1217; color: #f3e9de; border: 1px solid rgba(255,255,255,.06); }
.code pre { margin: 0; padding: 18px; padding-right: 112px; overflow-x: auto; font: 500 0.88rem/1.65 var(--mono); white-space: pre-wrap; word-break: break-word; }
.code .label { display: block; padding: 16px 18px 0; padding-right: 112px; font: 600 0.74rem/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-2); }
.copy { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #f3e9de; font: 600 0.84rem/1 var(--sans); cursor: pointer; transition: background 0.25s, color 0.25s, transform 0.35s var(--ease); }
.copy:hover { background: rgba(255,255,255,.14); }
.copy.ok { background: var(--gold-2); color: #1b1217; border-color: var(--gold-2); transform: scale(1.05); }
.copy .i-check { display: none; } .copy.ok .i-copy { display: none; } .copy.ok .i-check { display: block; }
details.trouble { border-top: 1px solid var(--line-strong); }
details.trouble:last-of-type { border-bottom: 1px solid var(--line-strong); }
details.trouble summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; font-weight: 600; color: var(--ink); min-height: 52px; }
details.trouble summary::-webkit-details-marker { display: none; }
details.trouble summary .icon { transition: transform 0.4s var(--ease); }
details.trouble[open] summary .icon { transform: rotate(45deg); }
details.trouble .ans { padding: 0 0 18px; color: var(--ink-2); }
.two { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .two { grid-template-columns: 1fr 1fr; } }
.two > div { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.two h3 { margin: 0 0 8px; font: 400 1.5rem/1.1 var(--serif); }
.two ul { margin: 0; padding-left: 1.1em; }
.sources a { word-break: break-word; }
.next { display: grid; gap: 24px; align-items: center; grid-template-columns: minmax(0, 1fr); padding: clamp(24px, 4vw, 44px); border-radius: 30px; background: var(--wine); color: var(--on-wine); margin-top: 64px; text-decoration: none; transition: transform 0.5s var(--ease); overflow: hidden; }
@media (min-width: 640px) { .next { grid-template-columns: minmax(0, 1fr) 150px; } }
.next:hover { transform: translateY(-4px); }
.next small { font: 700 0.76rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.next h2 { margin: 10px 0 10px; font: 400 clamp(2rem, 5vw, 3rem)/1 var(--serif); color: inherit; text-wrap: balance; }
.next p { margin: 0 0 18px; opacity: 0.9; }
.next .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.next .phone { max-width: 150px; justify-self: center; transform: rotate(6deg); }
@media (max-width: 639px) { .next .phone { display: none; } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 160%); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px; font-weight: 600; z-index: 200; transition: transform 0.5s var(--ease), visibility 0.5s; box-shadow: var(--shadow-l); visibility: hidden; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .marquee .track { animation: none; }
  .marquee { overflow-x: auto; }
}

/* ——— fixes from the visual pass ——— */
.code pre code { background: none; border: 0; padding: 0; color: inherit; font: inherit; }
.next p { color: inherit; }
.compare .legend { display: none; justify-content: space-between; gap: 12px; margin-top: 14px; font: 700 0.72rem/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--night-ink-2); }
.compare .legend span:last-child { text-align: right; color: var(--gold-2); }
@media (max-width: 700px) { .compare .lbl { display: none; } .compare .legend { display: flex; } }
@media (max-width: 719px) { .lib-bar { position: static; backdrop-filter: none; -webkit-backdrop-filter: none; background: none; } }

/* ——— review round 1 ——— */
body { position: relative; }
body::before { position: absolute; }
.console input::placeholder { color: var(--ink-3); opacity: 1; }
.js .story li { opacity: 0.72; }
.marquee a::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }

/* console ↔ stage: the matched Reel steps forward */
.stage .ph { transition: transform 0.7s var(--ease), opacity 0.5s; }
.stage .ph.lit .phone { outline: 3px solid var(--gold-2); outline-offset: 3px; }
@media (min-width: 1000px) {
  .stage.has-lit .ph:not(.lit) .phone { filter: saturate(0.35) brightness(0.8); }
  .stage .ph.lit { transform: translateY(-16px) rotate(0) scale(1.05); z-index: 7; }
}
/* mobile hero: Lana stays, as the first card in the Reel rail */
@media (max-width: 999px) {
  .stage { grid-auto-columns: min(48%, 220px); }
  .stage .portrait { display: block; position: relative; inset: auto; width: auto; aspect-ratio: auto; transform: none; border-radius: 32px; scroll-snap-align: center; }
  .hero .lede { margin-bottom: 20px; }
}

/* return visits */
.card .new { position: absolute; left: 14px; bottom: 14px; z-index: 2; background: var(--gold-2); color: #1a1012; font: 700 0.7rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; padding: 8px 10px; border-radius: 999px; }
.saved-row .list a small { font-weight: 500; color: var(--ink-3); }
.prose .hint { font-size: 0.92rem; color: var(--ink-3); margin: -6px 0 26px; }
.step::before { display: none; }
.step .tick { position: absolute; left: 0; top: 0; z-index: 2; width: 44px; height: 44px; padding: 0; border-radius: 50%; display: grid; place-items: center; font: 400 1.45rem/1 var(--serif); background: var(--paper); border: 1px solid var(--line-strong); color: var(--ink); cursor: pointer; transition: background 0.4s, color 0.4s, border-color 0.4s, transform 0.5s var(--ease); }
.step .tick:hover { border-color: var(--wine); }
.step.done .tick, .step.current .tick { background: var(--wine); color: var(--on-wine); border-color: var(--wine); }
.step.current .tick { transform: scale(1.12); }
.step .tick[aria-pressed="true"] { font-size: 0; color: transparent; border-color: var(--gold-2); background: var(--gold-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1012' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 20px no-repeat; }

/* commands never break mid-word; on phones the copy button gets its own row */
.code.cmd pre { white-space: pre; word-break: normal; }
@media (max-width: 600px) {
  .code { display: flex; flex-direction: column; }
  .code .label { order: -2; padding-right: 18px; }
  .code .copy { position: static; order: -1; align-self: flex-end; margin: 8px 8px 0; }
  .code pre { padding: 10px 18px 18px; }
}

/* ——— review round 2 ——— */
.stage .phone { transition: filter 0.5s; }
@media (prefers-color-scheme: dark) and (min-width: 1000px) { .stage.has-lit .ph:not(.lit) .phone { filter: saturate(0.35) brightness(0.6); } }
.step.done .tick { background: var(--paper); color: var(--ink); border-color: var(--wine); }
.scene .phone { width: 27%; top: auto; bottom: 0; }
.scene .laptop { width: 76%; bottom: auto; top: 0; }
.kwfly { top: 52%; left: 2%; }
.code.cmd.scrolls pre { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
@media (max-width: 999px) {
  .stage .portrait { scroll-snap-align: start; }
  .hero h1 { margin-bottom: 14px; }
  .console .match { min-height: 0; }
}
@media (max-width: 899px) { .scene .phone { width: 34%; } .scene .laptop { width: 88%; } }

/* ——— review round 3 ——— */
.proof-grid { align-items: start !important; }
.card.still .kwt { top: auto; bottom: 14px; }
.ask-tile { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 240px; padding: 24px; border-radius: 24px; background: var(--plum); color: var(--night-ink); text-decoration: none; transition: transform 0.5s var(--ease); }
.ask-tile:hover { transform: translateY(-4px); }
.ask-tile span { color: var(--night-ink-2); font-size: 0.95rem; }
.ask-tile strong { font: 400 2rem/1 var(--serif); }
.ask-tile .icon { width: 28px; height: 28px; color: var(--gold-2); order: -1; margin-bottom: auto; }
.grid:has(.card:not([hidden])) .ask-tile { display: flex; }
.grid:not(:has(.card:not([hidden]))) .ask-tile { display: none; }
@media (max-width: 999px) {
  .hero h1 { font-size: clamp(2.6rem, 10.5vw, 4rem); }
  .js .console:not(.typed) .match { display: none; }
  .stage { scroll-padding-inline: var(--gutter); }
  .stage .portrait { scroll-snap-align: start; }
}

/* ——— prompt builder (/make/) ——— */
.pb-live { display: none; } .js .pb-live { display: block; }
.pb { padding-bottom: clamp(40px, 6vw, 80px); }
.pb fieldset { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.pb legend { font: 600 0.8rem/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; padding: 0; }
.pb-tasks { display: flex; flex-wrap: wrap; gap: 8px; }
.pb-pill { position: relative; }
.pb-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pb-pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); font: 600 0.95rem/1.2 var(--sans); transition: background 0.2s, color 0.2s; }
.pb-pill input:checked + span { background: var(--wine); color: var(--on-wine); box-shadow: none; }
.pb-pill input:focus-visible + span, .pb-choice input:focus-visible + span { outline: 3px solid var(--wine); outline-offset: 2px; }
.pb-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.pb-grid { display: grid; gap: clamp(20px, 4vw, 48px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .pb-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } .pb-out { position: sticky; top: 90px; align-self: start; } }
.pb-field { display: block; margin-bottom: 12px; }
.pb-field span { display: block; font: 600 0.9rem/1.3 var(--sans); color: var(--ink-2); margin-bottom: 6px; }
.pb-field input, .pb-field textarea { width: 100%; box-sizing: border-box; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font: 500 1rem/1.4 var(--sans); }
.pb-field input:focus, .pb-field textarea:focus { outline: 3px solid var(--wine); outline-offset: 1px; border-color: transparent; }
.pb-field input::placeholder, .pb-field textarea::placeholder { color: var(--ink-3); }
.pb-choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 8px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.pb-choice input { margin-top: 4px; accent-color: var(--wine); }
.pb-choice span { font: 400 1.05rem/1.4 var(--serif); }
.pb-status { font-weight: 600; color: var(--ink-2); }
.pb-fine { font-size: 0.9rem; color: var(--ink-3); }
.pb-del { background: none; border: 0; padding: 8px 0; min-height: 44px; color: var(--ink-3); font: 600 0.9rem var(--sans); text-decoration: underline; cursor: pointer; }
.pb-saved { list-style: none; padding: 0; }
.pb-tpl { border-top: 1px solid var(--line); padding: 6px 0; }
.pb-tpl summary { cursor: pointer; padding: 12px 0; font: 600 1.05rem/1.3 var(--sans); min-height: 24px; }
