/* 36Stories website: the dark film-lab look (John's design, 2026-10-28:
   assets/design/36stories-app-design/website/index.html and DESIGN-HANDOFF.md). One sheet for every page.
   A near-black ground, warm off-white ink, one film-box amber accent. Heavy condensed uppercase display
   (Archivo at 72% width), IBM Plex Mono labels, dot-matrix numbers (Doto), sprocket holes, hidden frames.
   Fonts are self-hosted woff2 (OFL texts beside them). Motion only with prefers-reduced-motion: no-preference. */

@font-face { font-family: "Archivo"; src: url("fonts/Archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Doto"; src: url("fonts/Doto.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #111111;
  --surface: #1A1714;
  --strip: #221D18;
  --viewfinder: #2A2420;
  --line: #2E2823;
  --line-2: #3A342E;
  --line-3: #4A433C;
  --divider: #2A2622;
  --ink: #F1ECE2;
  --ink-2: #C9C1B4;
  --muted: #A39B8F;
  --faint: #8C847A;
  --accent: #E8A83A;
  --on-accent: #1E1405;
  --accent-ink: #4A2E08;
  --frame-hidden: #4A2412;
  --frame-hidden-ink: #E8A57E;
  --frame-empty: #2E2823;
  --paper: #F3EFE6;
  --display: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --dots: "Doto", "IBM Plex Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --section-gap: clamp(88px, 12vw, 160px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--display); font-size: 17px; line-height: 1.45;
  overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
/* No one-word last lines in body copy; headings that wrap keep even lines. */
p, li { text-wrap: pretty; }
h2, h3 { text-wrap: balance; }
ul, ol { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

.visually-hidden, .sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 50; padding: 12px 20px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 16px; color: var(--on-accent); }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section-gap); }
.narrow { max-width: 760px; }

/* ---------- Type ---------- */
.eyebrow { margin: 0 0 20px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.eyebrow.accent, .accent-text { color: var(--accent); }
.display {
  font-family: var(--display); font-stretch: 72%; font-weight: 850; text-transform: uppercase;
  line-height: 0.92; letter-spacing: -0.015em; overflow-wrap: break-word;
}
.display span { display: block; }
.display-xl { font-size: clamp(56px, 12vw, 168px); line-height: 0.9; letter-spacing: -0.025em; }
.display-l { font-size: clamp(44px, 7vw, 96px); letter-spacing: -0.02em; }
.display-m { font-size: clamp(36px, 5.4vw, 72px); }
.display-s { font-size: clamp(28px, 3.4vw, 40px); }
.mono { font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.dots { font-family: var(--dots); font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.lines { list-style: none; display: grid; gap: 6px; font-size: clamp(18px, 2vw, 22px); line-height: 1.35; color: var(--ink-2); }
.lines li { max-width: 52ch; }
.lines--muted { color: var(--muted); font-size: 17px; }
.small { font-size: 15px; color: var(--muted); }
/* Small print in sentence case, for anything longer than a label (a full sentence in tracked capitals is hard to read). */
.fine { margin-top: 20px; max-width: 62ch; font-size: 15px; line-height: 1.55; color: var(--muted); }
.fine .link { white-space: nowrap; }
.hosting__more { margin-top: 20px; font-size: 17px; }
.note { margin-top: 20px; font-family: var(--mono); font-size: 12px; line-height: 1.7; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); max-width: 70ch; }
.lead { margin-top: 28px; }

/* ---------- Buttons and chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 1px solid transparent; font-family: var(--display); font-weight: 700; font-size: 17px;
  line-height: 1.1; text-align: center; text-decoration: none; cursor: pointer; background: transparent; color: var(--ink);
}
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { color: var(--on-accent); background: #F0B651; }
.btn-ghost { border-color: var(--line-3); color: var(--ink); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-light { background: var(--ink); color: #111111; }
.btn-light:hover { color: #111111; background: #FFFFFF; }
.btn-dark { background: #111111; color: var(--ink); }
.btn-dark:hover { color: #FFFFFF; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-soon { border-color: var(--line-2); color: var(--muted); cursor: default; }
.btn-soon:hover { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.actions--tight { gap: 12px; }
.link { font-size: 17px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--ink);
}
.chip em { font-style: normal; color: var(--faint); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand__logo { width: auto; height: 36px; }
.brand__slogan { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav__list { list-style: none; display: flex; align-items: center; gap: 22px; }
.site-nav__list a { font-size: 15px; text-decoration: none; color: var(--muted); }
.site-nav__list a:hover, .site-nav__list a[aria-current="page"] { color: var(--ink); }
.site-nav__list a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); }
.site-header__end { display: flex; align-items: center; gap: 12px; }

.menu-btn {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer;
}
.menu-btn svg { width: 18px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-btn__close, .menu-btn[aria-expanded="true"] .menu-btn__bars { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__close { display: block; }

.menu-panel { border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); background: var(--bg); }
.menu-panel[hidden] { display: none; }
.menu-panel__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px 40px; padding-top: 28px; padding-bottom: 32px; }
.menu-panel__title { margin-bottom: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.menu-panel ul { list-style: none; display: grid; gap: 4px; }
.menu-panel a { display: inline-flex; align-items: center; min-height: 40px; font-size: 18px; font-weight: 700; text-decoration: none; }
.menu-panel a[aria-current="page"] { color: var(--accent); }

@media (max-width: 899px) {
  .js .site-nav__list { display: none; }
  .js .menu-btn { display: inline-flex; }
  .brand__slogan { display: none; }
}
/* Without JavaScript the menu button can't open the panel, so the links stay in the bar and wrap. */
.no-js .menu-btn { display: none; }
@media (max-width: 899px) {
  .no-js .site-header__in { flex-wrap: wrap; }
  .no-js .site-nav { flex-wrap: wrap; gap: 12px 20px; }
  .no-js .site-nav__list { flex-wrap: wrap; gap: 8px 18px; }
}
@media (max-width: 380px) { .site-header .btn-sm { padding: 0 16px; } .brand__logo { height: 30px; } }

/* ---------- Film strip (sprocket holes, frames) ---------- */
.sprockets {
  height: 14px; background-image: repeating-linear-gradient(90deg, var(--bg) 0 12px, transparent 12px 28px);
  background-size: 28px 8px; background-repeat: repeat-x; background-position: 6px center;
}
.strip-band { background: var(--strip); padding: 10px 0; overflow: hidden; }
.track { display: flex; padding: 10px 0; width: max-content; }
.frame {
  position: relative; flex: none; width: 230px; height: 154px; margin-right: 10px; border-radius: 3px;
  background: var(--frame-empty); display: flex; align-items: flex-end; padding: 10px 12px;
}
.frame span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.frame.shot { background: var(--frame-hidden); }
.frame.shot span { color: var(--frame-hidden-ink); }
.strip-caption { margin-top: 16px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--muted); }
/* The roll's pause (WCAG 2.2.2): a visually hidden checkbox and its pill label; checked, the roll and its flashes stop.
   Under reduced motion nothing moves, so the control steps aside. */
.strip__foot { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.strip__foot .strip-caption { margin-top: 0; flex: 1 1 320px; }
.strip__pause-input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.strip__pause {
  position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2);
  border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2); cursor: pointer; user-select: none;
}
.strip__pause:hover { border-color: var(--line-3); color: var(--ink); }
.strip:has(.strip__pause-input:focus-visible) .strip__pause { outline: 2px solid var(--accent); outline-offset: 3px; }
.strip__pause-icon { width: 10px; height: 11px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.strip:has(.strip__pause-input:checked) .strip__pause-icon {
  width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid currentColor; border-right: 0;
}
@media (prefers-reduced-motion: reduce) { .strip__pause { display: none; } }

/* A section bar in the strip band: a mono label on the left, an amber note on the right. */
.stripbar { background: var(--strip); border-radius: 3px; }
.stripbar__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 6px 16px; }
.stripbar__label { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.stripbar__value { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.stripbar .sprockets { background-image: repeating-linear-gradient(90deg, var(--bg) 0 10px, transparent 10px 22px); background-size: 22px 6px; height: 12px; }

/* Hidden frames: what any roll looks like before it develops. Counts only, never pixels. */
.hidden-grid { list-style: none; display: grid; grid-template-columns: repeat(22, minmax(0, 1fr)); gap: 3px; }
.hidden-grid li { aspect-ratio: 3 / 2; border-radius: 1px; background: var(--frame-hidden); }
.hidden-grid li.empty { background: var(--frame-empty); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: clamp(22px, 3vw, 28px); }
.card-label { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.card-body { font-size: 18px; line-height: 1.4; color: var(--ink-2); }
.card--accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.card--accent .card-label { color: var(--accent-ink); }
.card--accent .card-body { color: var(--on-accent); font-weight: 600; }
.card--accent a { color: var(--on-accent); }

/* ---------- Home: hero ---------- */
.hero { padding-top: clamp(40px, 9vw, 120px); }
.hero-sub { margin-top: 28px; max-width: 600px; font-size: clamp(18px, 2vw, 22px); line-height: 1.4; color: var(--ink-2); }
.hero .actions { margin-top: 36px; }
.strip { margin-top: clamp(56px, 8vw, 96px); }

/* ---------- Home: how it works ---------- */
.how__title { max-width: 900px; }
.big-num { font-stretch: 72%; font-weight: 850; font-size: 104px; line-height: 0.9; font-variant-numeric: tabular-nums; }
.num-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.num-unit { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.count::after { content: "132"; }

/* ---------- Home: the film (stock canisters) ---------- */
.stocks { list-style: none; margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stock { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 20px; }
.stock__name { font-weight: 800; font-size: 19px; line-height: 1.15; }
.stock__name .mono { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.stock__line { margin-top: 6px; font-size: 15px; line-height: 1.35; color: var(--muted); }
.canister {
  flex: none; width: 56px; height: 112px; padding: 4px; border-radius: 999px; background: #0C0B0A;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.85), 0 1px 0 rgba(255, 255, 255, 0.05);
}
.canister__ring {
  display: block; width: 100%; height: 100%; padding: 2px; border-radius: 999px;
  background: linear-gradient(90deg, #34312F 0%, #A29D97 16%, #3A3735 40%, #24221F 62%, #7C7772 84%, #2C2A28 100%);
}
.canister__label {
  position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; border-radius: 999px; overflow: hidden;
  background: var(--label, #24915F);
}
.canister__label::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, 0.1) 72%, rgba(255, 255, 255, 0) 86%);
}
.canister__top { flex: 1; display: flex; flex-direction: column; align-items: center; padding-top: 8px; overflow: hidden; }
.canister__mm { font-family: var(--mono); font-size: 5px; letter-spacing: 0.14em; color: rgba(255, 248, 238, 0.85); }
.canister__rule { width: 22px; height: 1px; margin: 3px 0 4px; background: rgba(255, 248, 238, 0.6); }
.canister__stock {
  writing-mode: vertical-rl; transform: rotate(180deg); font-stretch: 72%; font-weight: 900; font-style: italic;
  font-size: 13px; line-height: 1; color: #FFF8EE; white-space: nowrap; text-transform: uppercase;
}
.canister__band { flex: none; height: 32px; background: var(--band, #17623F); display: flex; flex-direction: column; align-items: center; padding-top: 4px; color: #FFF8EE; }
.canister__iso { font-weight: 900; font-size: 13px; line-height: 1; letter-spacing: -0.02em; }
.canister__exp { margin-top: 2px; font-family: var(--mono); font-size: 5px; letter-spacing: 0.18em; }
.canister--true  { --label: #3E6F9E; --band: #284A6B; }
.canister--classic { --label: #24915F; --band: #17623F; }
.canister--mono  { --label: #6B6660; --band: #2B2826; }
.canister--faded { --label: #B9707A; --band: #87474F; }
.canister--golden { --label: #E08A2E; --band: #A85E16; }

/* ---------- Home: occasions ---------- */
.tiles { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { position: relative; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--viewfinder); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 17, 17, 0.55) 0%, rgba(17, 17, 17, 0) 34%, rgba(17, 17, 17, 0) 50%, rgba(17, 17, 17, 0.85) 100%); }
.tile__in { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; }
.tile__note { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #E5DDD0; }
.tile__title { font-stretch: 72%; font-weight: 850; font-size: clamp(24px, 3.4vw, 44px); overflow-wrap: anywhere; line-height: 1; text-transform: uppercase; color: var(--ink); }
.tile__title a { text-decoration: none; }
.tile__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.tile__title a:focus-visible { outline: none; }
.tile:has(a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.tile__more { display: block; margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--accent); }

/* ---------- Home: hosting tiers ---------- */
.tiers { list-style: none; margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 12px; align-items: stretch; }
.tier { display: flex; flex-direction: column; gap: 14px; }
.tier__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.tier__name { font-stretch: 72%; font-weight: 850; font-size: clamp(28px, 3vw, 34px); line-height: 1; text-transform: uppercase; }
.tier__price { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.tier__facts { list-style: none; display: grid; gap: 6px; font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--muted); }
.tier__facts li::before { content: "\2014\00a0"; color: var(--faint); }
.tier__foot { margin-top: auto; padding-top: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--accent); }
.tier.card--accent .tier__price, .tier.card--accent .tier__facts { color: var(--accent-ink); }
.tier.card--accent .tier__facts li::before { color: var(--accent-ink); }
.tier.card--accent .tier__foot { color: var(--on-accent); }

/* ---------- Home: promises ---------- */
.promises { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px 40px; }
.promise-title { font-weight: 800; font-size: 28px; line-height: 1.15; }
.promise-sub { margin-top: 6px; font-size: 18px; color: var(--muted); }

/* ---------- Join with a code ---------- */
.join-box { border: 1px solid var(--line-2); border-radius: 12px; padding: clamp(24px, 4vw, 40px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.join-copy { flex: 1 1 280px; }
.join-copy h2 { font-weight: 800; font-size: 28px; line-height: 1.15; }
.join-copy p { margin-top: 6px; font-size: 17px; color: var(--muted); }
.join-form { flex: 1 1 340px; display: flex; gap: 10px; flex-wrap: wrap; }
.join-form input {
  flex: 1 1 200px; min-width: 0; min-height: 52px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-3);
  background: var(--surface); color: var(--ink); font-family: var(--mono); font-size: 18px; letter-spacing: 0.12em; text-transform: uppercase;
}
.join-form input::placeholder { color: var(--faint); }
.join-form input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.join-form input[aria-invalid="true"] { border-color: var(--frame-hidden-ink); }
.join-error { flex-basis: 100%; font-size: 15px; color: var(--frame-hidden-ink); }

/* ---------- FAQ ---------- */
.faq__list { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 48px; }
.faq__item { padding: 24px 0; border-top: 1px solid var(--line); }
.faq__q { font-weight: 800; font-size: 20px; line-height: 1.25; }
.faq__a { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--muted); max-width: 60ch; }

/* ---------- Last call ---------- */
.final { padding-bottom: var(--section-gap); }
.final p.final__line { margin-top: 24px; font-size: 18px; color: var(--muted); }
.final .actions { margin-top: 28px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.stores .btn { font-size: 16px; padding: 0 24px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--divider); }
.site-footer__in { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px 32px; font-size: 14px; color: var(--muted); }
.site-footer__name { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.site-footer__soon { margin-top: 6px; font-size: 14px; color: var(--muted); }
.site-footer .stores { margin-top: 12px; }
.site-footer .stores .btn { min-height: 44px; font-size: 14px; padding: 0 18px; }
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); }
.site-footer__base { flex-basis: 100%; padding-top: 12px; border-top: 1px solid var(--divider); font-size: 13px; color: var(--faint); }

/* ---------- Inner pages (weddings, planners) ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current="page"] { color: var(--accent); }

.page-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px clamp(32px, 5vw, 72px); align-items: end; padding-top: clamp(40px, 7vw, 96px); }
.page-hero .lines { margin-top: 28px; }
.page-hero .actions { margin-top: 32px; }
.page-hero__title { font-size: clamp(48px, 7.4vw, 112px); }
@media (max-width: 860px) { .page-hero { grid-template-columns: minmax(0, 1fr); } }
/* /events/: its photo sits level with the headline, not at the foot of a tall column. */
.sub--events .page-hero { align-items: center; }

/* A photo printed on the strip: a frame in the strip band with sprocket holes above and below. */
.print { background: var(--strip); padding: 0 0 2px; border-radius: 3px; overflow: hidden; }
.print__img { margin: 8px 10px; border-radius: 2px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--viewfinder); }
.print__img img { width: 100%; height: 100%; object-fit: cover; }
.print__cap { display: flex; justify-content: space-between; gap: 12px; padding: 4px 12px 2px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.print__cap .dots { color: var(--accent); font-size: 14px; }

/* The order of the day as numbered frames. */
.programme { list-style: none; margin-top: 48px; display: grid; gap: 12px; }
.programme__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 6px 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.programme__item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 3vw, 28px); align-items: start; }
.programme__n { font-family: var(--dots); font-weight: 900; font-size: 44px; line-height: 0.9; color: var(--accent); }
.programme__item h3 { font-weight: 800; font-size: 20px; line-height: 1.25; }
.programme__item p { margin-top: 6px; color: var(--muted); max-width: 60ch; }
.programme__item--hot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.programme__item--hot .programme__n { color: var(--on-accent); }
.programme__item--hot p { color: var(--accent-ink); }

/* Prints on the wall: four photos, one still hidden (it hasn't developed). */
.prints { list-style: none; margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.prints__item { display: flex; flex-direction: column; gap: 16px; padding: 0 0 22px; overflow: hidden; }
.prints__item > :not(.prints__photo) { padding: 0 22px; }
.prints__photo { position: relative; aspect-ratio: 4 / 3; background: var(--viewfinder); }
.prints__photo img { width: 100%; height: 100%; object-fit: cover; }
.prints__item h3 { font-weight: 800; font-size: 20px; line-height: 1.25; }
.prints__item p { color: var(--muted); font-size: 16px; }
.prints__item--hidden .prints__photo { background: var(--frame-hidden); display: flex; align-items: flex-end; padding: 14px; }
.prints__stamp { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--frame-hidden-ink); }

/* Feature lists (Event Kit, the planner's tools). */
.feats { list-style: none; margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.feats--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.feats li { display: flex; flex-direction: column; gap: 10px; }
.feats__icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--line-2); color: var(--accent); }
.feats__icon .i { width: 22px; height: 22px; }
.feats h3 { margin-top: 6px; font-weight: 800; font-size: 20px; line-height: 1.25; }
.feats p { color: var(--muted); font-size: 16px; }

/* Guest caps: dot-matrix numbers on film boxes. */
.caps { list-style: none; margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.cap { display: flex; flex-direction: column; gap: 10px; }
.cap__n { font-family: var(--dots); font-weight: 900; font-size: clamp(64px, 8vw, 96px); line-height: 0.9; color: var(--accent); }
.cap__name { font-stretch: 72%; font-weight: 850; font-size: 26px; text-transform: uppercase; line-height: 1; }
.cap__unit { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.cap.card--accent .cap__n { color: var(--on-accent); }
.cap.card--accent .cap__unit { color: var(--accent-ink); }

/* Planner plans, from the database. */
.plans { list-style: none; margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.plan { display: flex; flex-direction: column; gap: 14px; }
.plan__name { font-stretch: 72%; font-weight: 850; font-size: clamp(30px, 3.4vw, 40px); line-height: 1; text-transform: uppercase; }
.plan__facts { list-style: none; display: grid; gap: 6px; font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--muted); }
.plan__facts li::before { content: "\2014\00a0"; color: var(--faint); }
.plan__kit { font-size: 15px; color: var(--ink-2); }
.plan__price { margin-top: auto; font-family: var(--mono); font-size: 14px; color: var(--ink); }
.plan.card--accent .plan__facts, .plan.card--accent .plan__facts li::before { color: var(--accent-ink); }
.plan.card--accent .plan__kit, .plan.card--accent .plan__price { color: var(--on-accent); }
.plans-actions { margin-top: 28px; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

/* A drawn table card (decorative). */
.day-card { margin-top: 48px; display: flex; justify-content: center; }
@media (min-width: 861px) { .day-card { position: sticky; top: 32px; } }
.tablecard { max-width: 300px; padding: 22px; border-radius: 6px; background: var(--paper); color: #111111; text-align: center; }
.tablecard__kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #5E5A55; }
.tablecard__title { margin: 6px 0 14px; font-stretch: 72%; font-weight: 850; font-size: 34px; line-height: 1; text-transform: uppercase; }
.tablecard .qr { width: 150px; height: 150px; margin: 0 auto; display: block; }
.tablecard__code { margin-top: 12px; font-family: var(--mono); font-weight: 500; font-size: 18px; letter-spacing: 0.14em; }
.tablecard__foot { margin-top: 6px; font-size: 13px; color: #5E5A55; }
/* The printable table card (events/card.html): the same card, full size, inside the reading column. */
.tablecard--print { max-width: 440px; margin: 0 auto; padding: 36px 28px; }
.prose .tablecard--print h1.tablecard__title { margin: 8px 0 20px; font-size: clamp(36px, 8vw, 52px); color: #111111; }
.prose .tablecard--print p { margin-top: 8px; }
.prose .tablecard--print .tablecard__foot { font-size: 15px; color: #5E5A55; overflow-wrap: anywhere; }
.prose .tablecard--print strong { color: #111111; }
.tablecard__qr { width: 240px; margin: 0 auto; image-rendering: pixelated; }
strong.tablecard__code { display: inline; font-size: 17px; }

/* ---------- Join page (/j/<code>) ---------- */
.join-page { padding-top: clamp(24px, 6vw, 72px); padding-bottom: var(--section-gap); }
.join-page__top { font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.join-page .strip-band { margin: 28px 0 0; }
.join-page__caption { margin-top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.join-page__title { margin-top: 40px; font-size: clamp(52px, 10vw, 128px); }
.join-page__date { margin-top: 18px; font-family: var(--dots); font-weight: 900; font-size: 32px; color: var(--accent); }
.rules { list-style: none; margin-top: 32px; max-width: 560px; border-top: 1px solid var(--line); }
.rules li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rules__k { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.rules__v { font-weight: 800; font-size: 20px; }
.rules__v.dots { font-size: 26px; color: var(--accent); }
.join-page .lines { margin-top: 28px; }
.join-page .actions { margin-top: 32px; }
.join-page .stores { margin-top: 16px; }
.join-page .soon { margin-top: 16px; }

.code { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.code .c {
  display: inline-flex; width: 44px; height: 56px; align-items: center; justify-content: center; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--line-3); font-family: var(--mono); font-weight: 500; font-size: 26px; color: var(--ink);
}
.code .gap { width: 10px; }
@media (max-width: 420px) { .code .c { width: 34px; height: 46px; font-size: 21px; } .code { gap: 4px; } .code .gap { width: 6px; } }

/* ---------- Reading pages (legal, account, sign-in, the planner console) ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--gutter) var(--section-gap); color: var(--ink-2); font-size: 17px; line-height: 1.65; }
.prose__over { margin-bottom: 20px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.prose h1 { font-stretch: 72%; font-weight: 850; font-size: clamp(48px, 8vw, 88px); line-height: 0.92; letter-spacing: -0.02em; text-transform: uppercase; color: var(--ink); }
.prose h2 { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--line); font-stretch: 72%; font-weight: 850; font-size: clamp(28px, 4vw, 38px); line-height: 1; text-transform: uppercase; color: var(--ink); }
.prose h3 { margin-top: 32px; font-weight: 800; font-size: 19px; line-height: 1.3; color: var(--ink); }
.prose p, .prose ul, .prose ol, .prose table, .prose form { margin-top: 16px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); text-decoration-color: var(--accent); }
.prose a:hover { color: var(--accent); }
.prose a.btn { text-decoration: none; }
.prose a.btn-accent, .prose a.btn-accent:hover { color: var(--on-accent); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.prose__date { margin-top: 20px !important; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.prose__lang { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; }
.prose__note { padding: 14px 18px; border-left: 2px solid var(--accent); background: var(--surface); border-radius: 0 6px 6px 0; font-size: 15px; }
.prose hr { margin: 40px 0; border: 0; border-top: 1px solid var(--line); }

/* Guides (marketing plan 2026-11-01): long titles read smaller than a legal page's; a wide table scrolls in its own box. */
.guide h1 { font-size: clamp(34px, 6vw, 60px); line-height: 0.98; }
.prose .crumbs ol { margin-top: 0; padding-left: 0; }
.prose .crumbs li + li { margin-top: 0; }
.prose .crumbs a { color: var(--muted); text-decoration: none; }
.prose .crumbs a:hover { color: var(--ink); }
.guide ol li::marker { font-family: var(--mono); }
.prose .table-scroll { margin-top: 16px; overflow-x: auto; }
.prose .table-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.prose .table-scroll table { min-width: 620px; margin-top: 0; }
.prose td, .prose tbody th { color: var(--ink-2); }
.prose tbody th { font-family: inherit; font-size: 15px; font-weight: 800; letter-spacing: 0; text-transform: none; color: var(--ink); }
.guide-list { list-style: none; display: grid; gap: 16px; padding: 0; }
.guide-list__item { padding: 24px; }
.guide-list__date { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.guide-list__title { margin-top: 10px; font-weight: 800; font-size: clamp(22px, 3vw, 28px); line-height: 1.2; }
.guide-list__link { color: var(--ink); text-decoration: none; }
.guide-list__link:hover, .guide-list__link:focus-visible { color: var(--accent); text-decoration: underline; }
.guide-list__text { margin-top: 8px; max-width: 62ch; color: var(--muted); line-height: 1.5; }

/* Forms on reading pages (account deletion, allauth's sign-in pages, the planner console). */
.prose label { display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.prose input[type="text"], .prose input[type="email"], .prose input[type="password"], .prose input[type="tel"], .prose input[type="number"], .prose input:not([type]), .prose select, .prose textarea {
  display: block; width: 100%; min-height: 52px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line-3);
  background: var(--surface); color: var(--ink); font-size: 17px;
}
.prose textarea { border-radius: 12px; }
.prose input[type="checkbox"], .prose input[type="radio"] { width: 20px; height: 20px; accent-color: var(--accent); vertical-align: middle; }
.prose input:focus, .prose select:focus, .prose textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.prose button, .prose input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px;
  border: 0; background: var(--accent); color: var(--on-accent); font-family: var(--display); font-weight: 700; font-size: 17px; cursor: pointer;
}
.prose button:hover, .prose input[type="submit"]:hover { background: #F0B651; }
.prose button.btn-ghost { background: transparent; border: 1px solid var(--line-3); color: var(--ink); }
.prose .errorlist { list-style: none; padding: 0; color: var(--frame-hidden-ink); font-size: 15px; }
.prose .helptext { display: block; margin-top: 6px; font-size: 14px; color: var(--faint); }

.org-list { list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.org-list li + li { margin-top: 0; }
.org { display: flex; flex-direction: column; gap: 6px; }
.org__name { font-weight: 800; font-size: 20px; color: var(--ink); }
.org__meta { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; color: var(--muted); }

.messages { padding-top: 12px; }
.banner { max-width: 760px; margin: 0 auto; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--accent); color: var(--ink); background: var(--surface); }

.soon { font-size: 15px; color: var(--muted); }

/* ---------- Motion (only when it's wanted) ---------- */
/* The counter that counts the roll up to 132 animates a registered integer (top level: @property can't nest). */
@property --n { syntax: "<integer>"; initial-value: 0; inherits: false; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
  .rise { animation: rise 0.9s var(--ease) both; }
  .d0 { animation-delay: 0.05s; } .d1 { animation-delay: 0.15s; } .d2 { animation-delay: 0.32s; } .d3 { animation-delay: 0.5s; } .d4 { animation-delay: 0.62s; }

  @keyframes drift { to { transform: translateX(-50%); } }
  .track { animation: drift 70s linear infinite; }

  @keyframes flash { 0%, 90%, 100% { opacity: 0; } 92% { opacity: 0.9; } }
  .frame.shot::after {
    content: ""; position: absolute; inset: 0; border-radius: 3px; background: #FFF6E8; opacity: 0; pointer-events: none;
    animation: flash 7s ease-out infinite; animation-delay: var(--flash-delay, 0s);
  }

  @keyframes inview { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
  .reveal { animation: inview 0.9s var(--ease) both; }

  @keyframes chip-in { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
  .chips--pop .chip { animation: chip-in 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) both; animation-delay: calc(0.6s + var(--i, 0) * 0.08s); }

  @keyframes count { from { --n: 0; } to { --n: 132; } }
  .count { animation: count 2.2s var(--ease) both; counter-reset: n var(--n); }
  .count::after { content: counter(n); }

  @keyframes develop { from { filter: brightness(0.18) sepia(1) saturate(0.6); } to { filter: none; } }
  .develop { animation: develop 1.6s ease-out both; }

  @keyframes land { from { background: var(--ink); } to { background: var(--frame-hidden); } }
  .hidden-grid--land li:not(.empty) { animation: land 0.8s var(--ease) both; animation-delay: calc(var(--k, 0) * 12ms); }

  .btn, .menu-panel a, .site-nav__list a, .site-footer nav a { transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }

  /* Scroll-driven where the browser can (Chrome, Edge); elsewhere they play once on load. */
  @supports (animation-timeline: view()) {
    .reveal, .chips--pop .chip, .count, .develop, .hidden-grid--land li:not(.empty) { animation-timeline: view(); animation-duration: auto; animation-delay: 0s; }
    .reveal { animation-range: entry 0% entry 80%; }
    .chips--pop .chip { animation-range: entry calc(5% + var(--i, 0) * 5%) cover calc(25% + var(--i, 0) * 4%); }
    .count { animation-range: entry 20% cover 50%; }
    .develop { animation-range: entry 30% cover 55%; }
    .hidden-grid--land li:not(.empty) { animation-range: entry 10% cover 45%; }
  }
}

/* ---------- Print (the table card and the legal pages) ---------- */
@media print {
  :root { --bg: #FFFFFF; --surface: #FFFFFF; --ink: #111111; --ink-2: #222222; --muted: #444444; --faint: #555555; --line: #CCCCCC; color-scheme: light; }
  body { background: #FFFFFF; color: #111111; }
  .site-header, .site-footer, .menu-panel, .skip { display: none !important; }
  .prose { padding-top: 0; }
  /* Chapters print as they read, whether or not they were scrolled into view; on-screen controls stay off paper. */
  .reveal, .chapter *, .tile img, .canister, .promises li { opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; }
  .frame-counter, .strip__pause { display: none !important; }
}

/* ---------- /events/ (2026-10-30): the link to it under the home page's How it works ---------- */
.how__more { margin-top: 28px; }
#occasions .prints__item { scroll-margin-top: 24px; }
.occasions__more { margin-top: 24px; }

/* ---------- Home: full-screen chapters (2026-10-30, John: "section by section full screen") ----------
   Each chapter fills the screen with its content centred; the hero chapter shares the first screen with
   the header bar. Taller chapters (FAQ, the tiers on a phone) simply grow. No snapping: it made the scroll jerk at
   each chapter (John, 2026-10-30). The frame counter names the chapter
   in view; it needs site.js (html.io) and stays out of the way on phones. */
.home .chapter { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.home .chapter.section { padding-top: clamp(72px, 11vh, 128px); padding-bottom: clamp(72px, 11vh, 128px); }
.home .chapter.final { padding-bottom: clamp(72px, 11vh, 128px); }
.home .chapter--hero { min-height: calc(100svh - 92px); }
.home .chapter--hero .hero { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: clamp(24px, 5vh, 64px); padding-bottom: clamp(32px, 6vh, 72px); }
.home .chapter--hero .strip { margin-top: 0; padding-bottom: clamp(16px, 3vh, 32px); }
/* The opening screen holds the header, the three-line headline and the film strip: the headline also scales with the screen's height. */
.home .chapter--hero .display-xl { font-size: clamp(56px, min(12vw, 13.5vh), 168px); }
.home .chapter--hero .hero-sub { margin-top: clamp(16px, 2.6vh, 28px); }
.home .chapter--hero .hero .actions { margin-top: clamp(20px, 3.4vh, 36px); }
.home .chapter--pair { gap: clamp(56px, 9vh, 104px); padding-top: clamp(72px, 11vh, 128px); padding-bottom: clamp(72px, 11vh, 128px); }
.home .chapter--pair > .section { padding-top: 0; }
/* Centred chapters are flex columns: a .wrap inside one must still take the full row, not shrink to its content. */
.home .chapter > .wrap { width: 100%; }
/* Occasions fits one screen on desktop: the tiles take the photos' own 4:3 shape there. */
@media (min-width: 900px) { .home #occasions .tile { aspect-ratio: 4 / 3; } }
.home .chapter--pair .promise-title { font-stretch: 72%; font-weight: 850; font-size: clamp(34px, 4.4vw, 56px); line-height: 0.98; letter-spacing: -0.01em; text-transform: uppercase; }
.home .chapter--pair .promise-sub { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }

.frame-counter { display: none; }
.io .home .frame-counter {
  position: fixed; right: var(--gutter); bottom: 20px; z-index: 30; display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(241, 236, 226, 0.12);
  background: rgba(17, 17, 17, 0.62); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
  pointer-events: none;
}
.frame-counter__n { color: var(--accent); font-variant-numeric: tabular-nums; }
.io .home .frame-counter[data-chapter="1"] { visibility: hidden; }
@media (max-width: 599px) { .io .home .frame-counter { display: none; } }
@media (prefers-reduced-transparency: reduce) { .io .home .frame-counter { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* Chapter motion: each chapter plays once as it arrives (site.js adds .is-in; --r staggers its .reveal items).
   Critically damped: one smooth settle, no overshoot, transform and opacity only (filter on the photos). */
@media (prefers-reduced-motion: no-preference) {
  :root { --settle: cubic-bezier(0.22, 1, 0.36, 1); }
  .io .home .chapter .reveal {
    animation: none; opacity: 0; transform: translateY(24px);
    transition: opacity 0.55s ease-out, transform 0.7s var(--settle);
    transition-delay: calc(var(--r, 0) * 60ms);
  }
  .io .home .chapter.is-in .reveal { opacity: 1; transform: none; }

  /* The hero recedes as the next chapter comes up (scroll-linked where the browser can). */
  @supports (animation-timeline: view()) {
    @keyframes recede { to { opacity: 0.2; transform: scale(0.94) translateY(-3%); } }
    .home .chapter--hero .hero { animation: recede linear both; animation-timeline: view(); animation-range: exit 10% exit 90%; transform-origin: 50% 0; }
  }

  /* The film: each canister rolls into its card. */
  .io .home #film .canister { transform: translateX(-28px) rotate(-150deg); transition: transform 1.1s var(--settle); transition-delay: calc(0.15s + var(--r, 0) * 90ms); }
  .io .home #film.is-in .canister { transform: none; }

  /* Occasions: every photo develops, from dark sepia to colour, one after another. */
  .io .home #occasions .tile img { filter: brightness(0.18) sepia(1) saturate(0.6); transition: filter 1.6s ease-out; transition-delay: calc(0.3s + var(--r, 0) * 140ms); }
  .io .home #occasions.is-in .tile img { filter: none; }

  /* Promises: each line is wiped in, one at a time. */
  .io .home .chapter--pair .promises li { clip-path: inset(0 0 100% 0); transform: translateY(18px); transition: clip-path 0.8s var(--settle), transform 0.8s var(--settle); }
  .io .home .chapter--pair .promises li:nth-child(2) { transition-delay: 0.12s; }
  .io .home .chapter--pair .promises li:nth-child(3) { transition-delay: 0.24s; }
  .io .home .chapter--pair .promises li:nth-child(4) { transition-delay: 0.36s; }
  .io .home .chapter--pair.is-in .promises li { clip-path: inset(0 0 0 0); transform: none; }

  /* The last call: its two halves rise one after the other. */
  .io .home #get #get-title > span { display: inline-block; opacity: 0; transform: translateY(0.4em); transition: opacity 0.6s ease-out, transform 0.9s var(--settle); }
  .io .home #get #get-title > span + span { transition-delay: 0.18s; }
  .io .home #get.is-in #get-title > span { opacity: 1; transform: none; }

  .frame-counter__label, .frame-counter__n { transition: opacity 0.25s ease-out; }
  .frame-counter.is-changing .frame-counter__label, .frame-counter.is-changing .frame-counter__n { opacity: 0; }
}

/* The roll stops when its pause is ticked, and while it's off screen (site.js adds .is-offscreen). */
@media (prefers-reduced-motion: no-preference) {
  .strip:has(.strip__pause-input:checked) .track, .strip:has(.strip__pause-input:checked) .frame.shot::after,
  .strip.is-offscreen .track, .strip.is-offscreen .frame.shot::after { animation-play-state: paused; }
}

/* ---------- Home: the group pool (How it works, John 2026-10-30) ----------
   One diagram read left to right: friends shoot -> one sealed envelope (hidden frames only) -> everyone gets every photo.
   Desktop: five columns on two subgrid rows (captions, then the visuals), so the connector lines span the visuals
   exactly and meet each phone at 10/30/50/70/90 % of their height. Phones: one column, the lines turn downward. */
.how__lead { margin-top: 20px; max-width: 46ch; font-size: clamp(18px, 2vw, 21px); line-height: 1.45; color: var(--ink-2); }
.pool {
  list-style: none; margin-top: clamp(32px, 5vh, 56px); display: grid; row-gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(40px, 0.42fr) minmax(0, 1.2fr) minmax(40px, 0.42fr) minmax(0, 1fr);
}
.pool__stage { grid-row: 1 / span 2; display: grid; grid-template-rows: subgrid; }
.pool__stage--shoot { grid-column: 1; }
.pool__stage--roll { grid-column: 3; }
.pool__stage--share { grid-column: 5; }
.pool__link { grid-row: 2; }
.pool__link--in { grid-column: 2; }
.pool__link--out { grid-column: 4; }
.pool__cap { padding-right: 12px; }
.pool__step { display: flex; align-items: baseline; gap: 10px; font-weight: 800; font-size: 20px; line-height: 1.2; }
.pool__n { font-family: var(--dots); font-weight: 900; font-size: 26px; line-height: 1; color: var(--accent); }
.pool__line { margin-top: 6px; max-width: 30ch; font-size: 15px; line-height: 1.4; color: var(--muted); }
.pool__vis { display: flex; flex-direction: column; justify-content: center; min-height: 300px; }
.pool__phones { list-style: none; flex: 1; display: grid; grid-template-rows: repeat(5, minmax(0, 1fr)); }
.pool__phone {
  align-self: center; display: flex; align-items: center; gap: 12px; min-height: 48px; margin: 4px 0; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface);
}
.pool__name { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--ink-2); }
.pool__count { margin-left: auto; font-family: var(--dots); font-weight: 900; font-size: 22px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.pool__phone--full { border-color: rgba(232, 168, 58, 0.45); }
.pool__thumbs { display: flex; gap: 4px; margin-left: auto; }
.pool__thumbs + .pool__count { margin-left: 0; }
/* After the reveal a friend's phone holds photos: three small prints in film-look colours stand for them. */
.pool__thumbs span { width: 16px; height: 12px; border-radius: 2px; background: #C98A4B; }
.pool__thumbs span:nth-child(2) { background: #6B8F9C; }
.pool__thumbs span:nth-child(3) { background: #B5654F; }
.pool__roll { border-radius: 6px; background: var(--strip); outline: 1px solid transparent; outline-offset: 3px; }
.pool__roll .sprockets { height: 12px; background-size: 22px 6px; background-image: repeating-linear-gradient(90deg, var(--bg) 0 10px, transparent 10px 22px); }
.pool__frames { list-style: none; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; padding: 10px 14px 4px; }
.pool__frames li { aspect-ratio: 3 / 2; border-radius: 2px; background: var(--frame-hidden); }
.pool__tally { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 4px 14px 10px; }
.pool__tally .big-num { font-size: clamp(56px, 6vw, 80px); }
.pool__unit { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pool__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pool__svg--v { display: none; }
.pool__track path { fill: none; stroke: var(--line-3); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.pool__flow path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 0.01 12.5; vector-effect: non-scaling-stroke; }
@media (max-width: 759px) {
  .pool { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .pool__stage, .pool__link { grid-column: 1 !important; grid-row: auto; }
  .pool__stage { display: block; }
  .pool__link { height: 56px; margin: 10px 0; }
  .pool__svg--h { display: none; }
  .pool__svg--v { display: block; }
  .pool__vis { min-height: 0; margin-top: 14px; }
  .pool__phones { grid-template-rows: none; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .pool__phone { flex-direction: column; justify-content: center; gap: 6px; min-height: 68px; margin: 0; padding: 8px 2px; }
  .pool__name { font-size: 10px; letter-spacing: 0.06em; }
  .pool__count, .pool__thumbs + .pool__count { margin-left: 0; font-size: 18px; }
  .pool__thumbs { margin-left: 0; gap: 3px; }
  .pool__thumbs span { width: 9px; height: 7px; }
}

/* The pool plays once as the chapter arrives (under 5 s, so it needs no pause): the friends come in, photo-dots flow
   into the roll, its frames land one by one as it counts to 132, the roll is ready, then the dots flow out and every
   phone fills. Without JavaScript or with reduced motion, the finished diagram shows. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes pool-flow { from { stroke-dashoffset: 12.5; } to { stroke-dashoffset: 0; } }
  @keyframes pool-show { from { opacity: 0; } to { opacity: 1; } }
  @keyframes pool-land { from { background: var(--frame-empty); } 45% { background: var(--accent); } to { background: var(--frame-hidden); } }
  @keyframes pool-ready { 50% { outline-color: var(--accent); } }
  .io .pool .pool__phones:not(.pool__phones--full) .pool__phone {
    opacity: 0; transform: translateX(-14px);
    transition: opacity 0.45s ease-out, transform 0.6s var(--settle); transition-delay: calc(0.2s + var(--k, 0) * 70ms);
  }
  .io .pool.is-in .pool__phones:not(.pool__phones--full) .pool__phone { opacity: 1; transform: none; }
  .io .pool .pool__flow { opacity: 0; }
  .io .pool .pool__frames li { background: var(--frame-empty); }
  .io .pool .count { animation: none; }
  .io .pool .pool__phone--full { opacity: 0.3; transition: opacity 0.4s ease-out; transition-delay: calc(3.1s + var(--k, 0) * 110ms); }
  .io .pool .pool__thumbs span { transform: scale(0); transition: transform 0.45s var(--settle); transition-delay: calc(3.2s + var(--k, 0) * 110ms); }
  .io .pool.is-in .pool__link--in .pool__flow { animation: pool-show 0.3s ease-out 0.6s both; }
  .io .pool.is-in .pool__link--in .pool__flow path { animation: pool-flow 0.7s linear 0.6s 3 both; }
  .io .pool.is-in .pool__frames li { animation: pool-land 0.5s var(--settle) both; animation-delay: calc(0.8s + var(--k, 0) * 70ms); }
  .io .pool.is-in .count { animation: count 2s var(--settle) 0.8s both; }
  .io .pool.is-in .pool__roll { animation: pool-ready 0.6s ease-out 2.7s both; }
  .io .pool.is-in .pool__link--out .pool__flow { animation: pool-show 0.3s ease-out 2.9s both; }
  .io .pool.is-in .pool__link--out .pool__flow path { animation: pool-flow 0.6s linear 2.9s 3 both; }
  .io .pool.is-in .pool__phone--full { opacity: 1; }
  .io .pool.is-in .pool__thumbs span { transform: none; }
}
