/* Gridstory — one stylesheet, no build step. */

:root {
  --bg: #fbf8f3;
  --bg-alt: #f3eee5;
  --surface: #ffffff;
  --text: #1d1b18;
  --muted: #5a554d;
  --line: #e4ddd1;
  --accent: #7a4f00;        /* golden, darkened for contrast on light bg */
  --accent-strong: #5c3b00;
  --focus: #2457c5;

  --golden: #e0ad4c;
  --green: #7fa36b;
  --blue: #5b88b5;
  --pink: #e3a6b4;
  --light: #efe6d6;
  --dark: #3a3631;

  --radius: 18px;
  --max: 1100px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system-headline, ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141311;
    --bg-alt: #1c1a17;
    --surface: #23211d;
    --text: #f3efe8;
    --muted: #b9b2a6;
    --line: #36322c;
    --accent: #f0c46c;
    --accent-strong: #ffd98f;
    --focus: #8fb3ff;
    --light: #d9cfbd;
    --dark: #4a453e;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-strong); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--surface); color: var(--text);
  padding: 10px 14px; border-radius: 10px; z-index: 10;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.site-nav ul { display: flex; gap: clamp(12px, 2.4vw, 26px); list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 560px) {
  .site-nav .nav-optional { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
  border: 1px solid var(--line); color: var(--text); background: var(--surface);
}
.btn:hover { color: var(--text); border-color: var(--muted); }
.appstore-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; text-decoration: none;
  border-radius: 12px; padding: 9px 18px 9px 14px;
  border: 1px solid #000; line-height: 1.1;
}
.appstore-badge:hover { color: #fff; background: #222; }
@media (prefers-color-scheme: dark) { .appstore-badge { border-color: #6b665e; } }
.appstore-badge svg { width: 24px; height: 28px; fill: currentColor; }
.appstore-badge small { display: block; font-size: 0.7rem; font-weight: 500; }
.appstore-badge strong { display: block; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }

/* Hero */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(40px, 7vw, 80px); }
.hero .wrap { display: grid; gap: clamp(32px, 6vw, 72px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 820px) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; } }
.eyebrow { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; margin-bottom: 12px; }
.lede { font-size: clamp(1.15rem, 2.2vw, 1.35rem); color: var(--muted); max-width: 40ch; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.fineprint { color: var(--muted); font-size: 0.9rem; margin-top: 14px; }

/* The colour grid illustration (3 columns, 3:4 tiles like Instagram's profile grid). */
.phone {
  justify-self: center;
  width: min(100%, 340px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 18px 12px 22px;
  box-shadow: 0 30px 60px -30px rgba(40, 30, 10, 0.35);
}
.phone-head { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; font-size: 0.85rem; color: var(--muted); }
.phone-head .avatar { width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(var(--golden), var(--green), var(--blue), var(--pink), var(--golden)); flex: none; }
.phone-head strong { color: var(--text); display: block; font-size: 0.95rem; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: 10px; overflow: hidden; }
.tile { aspect-ratio: 3 / 4; position: relative; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,0.22), rgba(0,0,0,0.12)); }
.t-golden { background: var(--golden); }
.t-green  { background: var(--green); }
.t-blue   { background: var(--blue); }
.t-pink   { background: var(--pink); }
.t-light  { background: var(--light); }
.t-dark   { background: var(--dark); }
.tile.new { background: transparent; outline: 2px dashed var(--line); outline-offset: -6px; }
.tile.new::after { display: none; }
.tile span {
  position: absolute; left: 6px; bottom: 6px; z-index: 1;
  font-size: 0.68rem; font-weight: 600; color: #1d1b18;
  background: rgba(255,255,255,0.78); border-radius: 999px; padding: 1px 7px;
}

/* Sections */
section { padding: clamp(48px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--golden); color: #1d1b18; font-weight: 700; margin-bottom: 14px;
}
.steps li:nth-child(2)::before { background: var(--green); }
.steps li:nth-child(3)::before { background: var(--blue); color: #1d1b18; }
.steps li:nth-child(4)::before { background: var(--pink); }
.steps p { color: var(--muted); margin: 0; }

.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); margin: 0; }
.card .swatch { display: flex; gap: 4px; margin-bottom: 16px; }
.card .swatch i { width: 18px; height: 24px; border-radius: 4px; display: block; }

.styles-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 24px 0 0; }
.styles-list li { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-size: 0.95rem; }

.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0 0 1.5em; }
.ticks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.45em; width: 12px; height: 7px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }

.filters-art { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; max-width: 420px; justify-self: center; width: 100%; }
.filters-art i { aspect-ratio: 1; border-radius: 10px; display: block; }

.platforms { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); list-style: none; padding: 0; margin: 0; }
.platforms li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.platforms svg { width: 40px; height: 40px; margin-bottom: 12px; stroke: var(--text); fill: none; stroke-width: 1.6; }
.platforms p { color: var(--muted); margin: 0; font-size: 0.97rem; }

.privacy-box { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(24px, 4vw, 44px); }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.5rem; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: 0 0 16px; }

/* Prose pages */
.page { padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 8vw, 96px); }
.prose { max-width: 720px; }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); }
.prose h2 { font-size: 1.45rem; margin-top: 2em; }
.prose h3 { margin-top: 1.5em; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: 0.4em; }
.prose .meta { color: var(--muted); }
.prose code { background: var(--bg-alt); padding: 1px 6px; border-radius: 6px; font-size: 0.92em; word-break: break-word; }
.facts { width: 100%; border-collapse: collapse; margin: 1em 0 2em; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.facts th { width: 38%; color: var(--muted); font-weight: 600; }
@media (max-width: 480px) { .facts th, .facts td { display: block; width: auto; padding: 6px 0; } .facts th { border-bottom: 0; padding-top: 12px; } }
.callout { background: var(--bg-alt); border-left: 4px solid var(--golden); padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 1.5em 0; }
.assets { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 1em 0 2em; }
.asset { border: 1px dashed var(--line); border-radius: 14px; padding: 16px; text-align: center; background: var(--surface); }
.asset img { margin: 0 auto 10px; border-radius: 10px; }
.asset p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 0.95rem; color: var(--muted); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.site-footer h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.legal { margin-top: 32px; font-size: 0.85rem; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .tiles { width: 180px; margin: 0 auto 28px; }

/* iPhone Duo and other wide-but-short or folding screens: avoid content in a centre hinge
   by keeping a gutter between the two columns of split layouts. */
@media (horizontal-viewport-segments: 2) {
  .hero .wrap, .split { grid-template-columns: 1fr 1fr; column-gap: calc(env(viewport-segment-left 1 0, 50vw) - env(viewport-segment-right 0 0, 50vw) + 48px); }
}
.callout p:last-child { margin: 0; }

/* ------------------------------------------------------------------
   Real feed: photos from @bysgumz, planned in Gridstory.
   Base styles are the finished state. Motion is added only under
   prefers-reduced-motion: no-preference, so reduced motion (and no JS)
   simply shows the planned grid.
   ------------------------------------------------------------------ */

/* Spot colours from feed.json (the colour each spot asks for). */
.c-feed-01 { --c: #4f76a9; }
.c-feed-02 { --c: #466b91; }
.c-feed-03 { --c: #658293; }
.c-feed-04 { --c: #446d98; }
.c-feed-05 { --c: #636870; }
.c-feed-06 { --c: #497981; }
.c-feed-07 { --c: #9f9f7a; }
.c-feed-08 { --c: #536d65; }
.c-feed-09 { --c: #7a8259; }
.c-feed-10 { --c: #a1a07a; }
.c-feed-11 { --c: #608540; }
.c-feed-12 { --c: #8da3b4; }
.c-feed-13 { --c: #857561; }
.c-feed-14 { --c: #7f6a66; }
.c-feed-15 { --c: #634944; }
.c-feed-16 { --c: #8b6029; }
.c-feed-17 { --c: #947154; }
.c-feed-18 { --c: #9d8072; }
.c-hero-1 { --c: #805b3f; }
.c-hero-2 { --c: #816955; }
.c-hero-3 { --c: #87541a; }
.c-dog-1 { --c: #3c413f; }
.ch-blue-hour .band { background: linear-gradient(180deg, #4f76a9, #4f76a9); }
.ch-deep-blue .band { background: linear-gradient(180deg, #466b91, #658293); }
.ch-lagoon .band { background: linear-gradient(180deg, #446d98, #636870, #497981); }
.ch-moss .band { background: linear-gradient(180deg, #9f9f7a, #9f9f7a); }
.ch-first-green .band { background: linear-gradient(180deg, #536d65, #7a8259, #a1a07a, #608540); }
.ch-pastel .band { background: linear-gradient(180deg, #8da3b4, #8da3b4); }
.ch-amber .band { background: linear-gradient(180deg, #857561, #857561); }
.ch-golden .band { background: linear-gradient(180deg, #7f6a66, #634944, #8b6029, #947154, #9d8072); }

/* Shared 3-column profile grid with Instagram's 3:4 tiles; the 4:5 photos are cropped by object-fit. */
.feed-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.feed-grid .spot { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--c, var(--line)); border: 1.5px solid var(--surface); }
.feed-grid picture, .ho-tile picture, .avatar-photo picture, .ig-avatar picture { position: absolute; inset: 0; }
.feed-grid img, .ho-tile img, .avatar-photo img, .ig-avatar img, .chapter-thumbs img, .ho-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.spot-label {
  position: absolute; left: 6px; bottom: 6px;
  font-size: 0.66rem; font-weight: 600; color: #1d1b18;
  background: rgba(255, 255, 255, 0.82); border-radius: 999px; padding: 1px 7px;
}

/* Hero phone */
.hero-phone { margin: 0; }
.phone-head .avatar-photo { position: relative; overflow: hidden; background: var(--bg-alt); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--golden); }
.feed-clip { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 10px; background: var(--bg-alt); }
.hero-grid { position: absolute; top: 0; left: 0; right: 0; }
.hero-grid .spot { border-color: var(--surface); }
.pull-hint {
  position: absolute; z-index: 2; top: 10px; left: 50%; margin: 0;
  transform: translate(-50%, 0); opacity: 0;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 0.72rem; font-weight: 600; color: #1d1b18;
  background: rgba(255, 255, 255, 0.9); border-radius: 999px; padding: 4px 10px 4px 8px;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.4);
}
.pull-arrow { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.phone-cap { margin: 14px 4px 0; font-size: 0.85rem; color: var(--muted); text-align: center; line-height: 1.45; }
.replay {
  font: inherit; font-weight: 600; font-size: 0.8rem; color: var(--text);
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 12px; margin-top: 8px; cursor: pointer;
}
.replay:hover { border-color: var(--muted); }

/* The real case: an open iPhone Duo with the profile on one side and the colour story on the other. */
.duo { margin: 0; }
.duo-device { display: grid; gap: 24px; justify-items: center; }
.duo-pane { width: 100%; }
.duo-profile {
  max-width: 360px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 34px;
  padding: 18px 10px 14px;
  box-shadow: 0 30px 60px -30px rgba(40, 30, 10, 0.35);
}
.duo-plan { max-width: 520px; }
.ig-head { display: flex; align-items: center; gap: 18px; padding: 0 8px; }
.ig-avatar { position: relative; flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--c, var(--bg-alt)); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--golden); }
.ig-stats { flex: 1; display: flex; justify-content: space-around; list-style: none; margin: 0; padding: 0; font-size: 0.8rem; color: var(--muted); text-align: center; line-height: 1.25; }
.ig-stats strong { display: block; font-size: 1.05rem; color: var(--text); }
.ig-name { margin: 12px 8px 10px; font-size: 0.85rem; line-height: 1.4; color: var(--muted); }
.ig-name strong { display: block; color: var(--text); }
.ig-tabs { display: flex; margin: 0; border-top: 1px solid var(--line); font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.ig-tabs span { flex: 1; text-align: center; padding: 8px 0; }
.ig-tabs .on { color: var(--text); box-shadow: inset 0 1.5px 0 var(--text); }
.profile-grid { border-radius: 0 0 22px 22px; overflow: hidden; }

.plan-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 16px; font-size: 0.9rem; color: var(--muted); }
.plan-bar strong { font-size: 1.15rem; color: var(--text); }
.story-strip { list-style: none; margin: 0; padding: 0; }
.chapter { display: grid; grid-template-columns: 10px 1fr; column-gap: 14px; }
.chapter .band { grid-column: 1; grid-row: 1 / span 2; }
.chapter:first-child .band { border-radius: 6px 6px 0 0; }
.chapter:last-child .band { border-radius: 0 0 6px 6px; }
.chapter-name { grid-column: 2; margin: 0 0 6px; font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.chapter-name span { font-weight: 400; color: var(--muted); font-size: 0.85rem; margin-left: 4px; }
.chapter-thumbs { grid-column: 2; display: flex; flex-wrap: wrap; gap: 5px; list-style: none; margin: 0; padding: 0 0 16px; }
.chapter-thumbs li { width: 46px; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--c); }
.chapter:last-child .chapter-thumbs { padding-bottom: 4px; }
.duo-cap { margin: 18px auto 0; max-width: 60ch; text-align: center; font-size: 0.9rem; color: var(--muted); }

@media (min-width: 860px) {
  .duo-device {
    position: relative; max-width: 940px; margin: 0 auto;
    grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; justify-items: stretch;
    background: var(--surface); border: 11px solid #1c1b19; border-radius: 40px;
    padding: 26px 28px 30px;
    box-shadow: 0 40px 80px -40px rgba(40, 30, 10, 0.45);
  }
  /* The fold: a soft crease down the middle; nothing sits on it. */
  .duo-device::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 22px; transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.06) 45%, rgba(255, 255, 255, 0.05) 55%, transparent);
    pointer-events: none;
  }
  .duo-profile { max-width: none; background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
  .duo-plan { max-width: none; }
  .profile-grid { border-radius: 8px; }
  .chapter-thumbs li { width: 54px; }
}

/* Filters hand-off: a spot asks for golden, Filters sends a photo back. */
.handoff { display: grid; grid-template-columns: 1fr 1.15fr; gap: 14px; align-items: center; max-width: 440px; width: 100%; justify-self: center; }
.ho-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.ho-app { margin: 0 0 10px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; }
.ho-app span { font-weight: 500; color: var(--muted); margin-left: 4px; }
.ho-tile { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--c); }
.ho-need {
  position: absolute; inset: 8px; z-index: 1; display: grid; place-items: center; text-align: center;
  border: 2px dashed rgba(255, 255, 255, 0.75); border-radius: 8px;
  font-size: 0.78rem; font-weight: 700; color: #fff; opacity: 0;
}
.ho-status { position: relative; margin: 10px 0 0; font-size: 0.78rem; color: var(--muted); min-height: 1.4em; }
.ho-status span { position: absolute; left: 0; top: 0; white-space: nowrap; }
.ho-s1 { opacity: 0; }
.ho-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; list-style: none; margin: 0; padding: 0; }
.ho-thumbs li { position: relative; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: var(--c); }
.ho-thumbs .picked::after {
  content: ""; position: absolute; inset: 0; border-radius: 8px;
  box-shadow: inset 0 0 0 3px var(--golden);
}
.ho-thumbs .picked::before {
  content: "\2713"; position: absolute; z-index: 1; right: 6px; top: 6px;
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--golden); color: #1d1b18; font-size: 0.72rem; font-weight: 800;
}
.ho-send { margin: 10px 0 0; text-align: center; font-size: 0.78rem; font-weight: 700; color: #1d1b18; background: var(--golden); border-radius: 999px; padding: 5px 8px; }

/* ---------------- Motion (only when the visitor has not asked for less) ---------------- */
@media (prefers-reduced-motion: no-preference) {

  /* Scroll reveal: only once site.js has run (it adds .js to <html>). */
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal.stagger { opacity: 1; transform: none; }
  .js .stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .js .stagger.in > * { opacity: 1; transform: none; }
  .js .stagger > :nth-child(2) { transition-delay: 0.08s; }
  .js .stagger > :nth-child(3) { transition-delay: 0.16s; }
  .js .stagger > :nth-child(4) { transition-delay: 0.24s; }
  .js .stagger > :nth-child(5) { transition-delay: 0.32s; }
  .js .stagger > :nth-child(6) { transition-delay: 0.4s; }

  /* Hero: spots fill one by one (oldest first, bottom right), then a pull brings the next row in on top. */
  .js .hero-phone .hero-grid { animation: gs-pull 0.9s cubic-bezier(0.25, 1.15, 0.35, 1) 2.75s both; }
  .js .hero-phone .spot picture { animation: gs-fill 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .js .hero-phone .pull-hint { animation: gs-hint 1.7s ease 2.35s both; }
  .js .hero-phone .spot:nth-child(12) picture { animation-delay: 0.45s; }
  .js .hero-phone .spot:nth-child(11) picture { animation-delay: 0.62s; }
  .js .hero-phone .spot:nth-child(10) picture { animation-delay: 0.79s; }
  .js .hero-phone .spot:nth-child(9) picture  { animation-delay: 0.96s; }
  .js .hero-phone .spot:nth-child(8) picture  { animation-delay: 1.13s; }
  .js .hero-phone .spot:nth-child(7) picture  { animation-delay: 1.3s; }
  .js .hero-phone .spot:nth-child(6) picture  { animation-delay: 1.47s; }
  .js .hero-phone .spot:nth-child(5) picture  { animation-delay: 1.64s; }
  .js .hero-phone .spot:nth-child(4) picture  { animation-delay: 1.81s; }
  .js .hero-phone .spot:nth-child(3) picture  { animation-delay: 3.7s; }
  .js .hero-phone .spot:nth-child(2) picture  { animation-delay: 3.92s; }
  .js .hero-phone .spot:nth-child(1) picture  { animation-delay: 4.14s; }
  /* Held at the first frame until the photos are ready (site.js adds .play). */
  .js .hero-phone:not(.play) :is(.hero-grid, picture, .pull-hint) { animation-play-state: paused; }
  .js .hero-phone.replaying :is(.hero-grid, picture, .pull-hint) { animation: none; }

  /* Colour story: the spine draws downwards and the photos settle in, chapter by chapter. */
  .js .duo-plan .band { transform: scaleY(0); transform-origin: top; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
  .js .duo-plan .chapter-thumbs li { opacity: 0; transform: translateY(8px) scale(0.92); transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .js .duo-plan.in .band, .js .duo-plan.in .chapter-thumbs li { transform: none; opacity: 1; }
  .js .duo-plan .chapter:nth-child(1) { --d: 0.2s; }
  .js .duo-plan .chapter:nth-child(2) { --d: 0.4s; }
  .js .duo-plan .chapter:nth-child(3) { --d: 0.6s; }
  .js .duo-plan .chapter:nth-child(4) { --d: 0.8s; }
  .js .duo-plan .chapter:nth-child(5) { --d: 1s; }
  .js .duo-plan .chapter:nth-child(6) { --d: 1.2s; }
  .js .duo-plan .chapter:nth-child(7) { --d: 1.4s; }
  .js .duo-plan .chapter:nth-child(8) { --d: 1.6s; }
  .js .duo-plan .band { transition-delay: var(--d); }
  .js .duo-plan .chapter-thumbs li { transition-delay: calc(var(--d) + 0.1s); }
  .js .duo-plan .chapter-thumbs li:nth-child(2) { transition-delay: calc(var(--d) + 0.16s); }
  .js .duo-plan .chapter-thumbs li:nth-child(3) { transition-delay: calc(var(--d) + 0.22s); }
  .js .duo-plan .chapter-thumbs li:nth-child(4) { transition-delay: calc(var(--d) + 0.28s); }
  .js .duo-plan .chapter-thumbs li:nth-child(5) { transition-delay: calc(var(--d) + 0.34s); }

  /* Filters hand-off, played once when it scrolls into view. */
  .js .handoff .ho-thumbs li { animation: gs-pop 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .js .handoff .ho-thumbs li:nth-child(1) { animation-delay: 0.5s; }
  .js .handoff .ho-thumbs li:nth-child(2) { animation-delay: 0.6s; }
  .js .handoff .ho-thumbs li:nth-child(3) { animation-delay: 0.7s; }
  .js .handoff .ho-thumbs li:nth-child(4) { animation-delay: 0.8s; }
  .js .handoff .picked::after, .js .handoff .picked::before { animation: gs-pick 0.35s cubic-bezier(0.3, 1.4, 0.5, 1) 1.5s both; }
  .js .handoff .ho-send { animation: gs-press 0.5s ease 1.95s both; }
  .js .handoff .ho-tile picture { animation: gs-arrive 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) 2.2s both; }
  .js .handoff .ho-need, .js .handoff .ho-s1 { animation: gs-out 0.3s ease 2.2s both; }
  .js .handoff .ho-s2 { animation: gs-in 0.4s ease 2.5s both; }
  .js .handoff:not(.in) :is(li, .ho-send, picture, .ho-need, .ho-s1, .ho-s2) { animation-play-state: paused; }
  .js .handoff:not(.in) .picked::after, .js .handoff:not(.in) .picked::before { animation-play-state: paused; }
}

@keyframes gs-pull  { from { transform: translateY(-25%); } to { transform: none; } }
@keyframes gs-fill  { from { opacity: 0; transform: scale(1.18); } to { opacity: 1; transform: none; } }
@keyframes gs-hint  { 0% { opacity: 0; transform: translate(-50%, -10px); } 18%, 72% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); } }
@keyframes gs-pop   { from { opacity: 0; transform: translateY(8px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes gs-pick  { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes gs-press { 0%, 100% { transform: none; } 50% { transform: scale(0.94); } }
@keyframes gs-arrive { from { opacity: 0; transform: translate(70%, -10%) scale(0.45); } to { opacity: 1; transform: none; } }
@keyframes gs-out   { from { opacity: 1; } to { opacity: 0; } }
@keyframes gs-in    { from { opacity: 0; } to { opacity: 1; } }
.plan-next { display: flex; align-items: center; gap: 12px; margin: 22px 0 0; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 0.88rem; color: var(--muted); line-height: 1.4; }
.plan-ghosts { display: flex; gap: 4px; flex: none; }
.plan-ghosts i { width: 22px; aspect-ratio: 3 / 4; border-radius: 4px; border: 1.5px dashed var(--c); }
.asset-photo { border-style: solid; padding: 10px 10px 14px; }
.asset-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--c); }
.asset-photo span { display: block; color: var(--muted); font-size: 0.85rem; }
