/* BurnerPeople.com — gallery: playa dust palette, Oswald display over Barlow
   text. Same design language as style.css (the teaser); this sheet stands on
   its own so the two pages never load each other's rules. */

/* Self-hosted so the page needs ONE host. Oswald is the variable font: one
   file covers 400-700. latin-ext is lazy via unicode-range. */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/oswald-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/oswald-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/barlow-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/barlow-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── tokens ───────────────────────────────────────────────────────────── */

:root {
  --paper-0: #f1e8d7;
  --paper-1: #eae0c8;
  --paper-2: #e0d2b8;
  --paper-3: #d9c9a9;
  --card: rgba(255,250,238,.78);
  --card-solid: #fffdf6;
  --ink: #3b2d1e;
  --ink-strong: #332618;
  --ink-muted: #5c4a34;
  --ink-faint: #534329;
  --ink-eyebrow: #714e28;
  --rule: #c8b795;
  --rule-soft: rgba(150,120,80,.3);
  --rust: #b4551f;
  --rust-deep: #963f13;
  --rust-link: #7a4a22;
  --rust-hover: #b06a2b;
  --olive: #6d7a3a;
  --olive-line: #8c9450;
  --olive-ink: #4f5626;
  --olive-bg: rgba(246,248,232,.7);
  --error: #a8341c;
  --error-bg: rgba(255,241,232,.8);
  --night: #120e0a;
  --night-2: #1c1610;
  --night-ink: #efe4cf;
  --night-muted: #b8a68c;
  --night-rust: #d9703a;
  --display: Oswald, sans-serif;
  --text: Barlow, system-ui, sans-serif;
  --radius: 2px;
  --gutter: 28px;
  --toolbar-h: 58px;      /* measured live by gallery.js */
  --row: 240px;           /* justified-grid row height (minimum; rows stretch to fill), per breakpoint below */
  --gap: 6px;

  /* Dust textures, declared once and reused by the storm layers and the
     settling veil. Procedural SVG turbulence — no image requests. */
  --dust-grain:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27240%27%20height%3D%27240%27%3E%3Cfilter%20id%3D%27g%27%20x%3D%270%25%27%20y%3D%270%25%27%20width%3D%27100%25%27%20height%3D%27100%25%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%27.8%27%20numOctaves%3D%273%27%20seed%3D%273%27%20stitchTiles%3D%27stitch%27%2F%3E%3CfeColorMatrix%20type%3D%27matrix%27%20values%3D%270%200%200%200%20.706%200%200%200%200%20.592%200%200%200%200%20.404%201%200%200%200%20-.42%27%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%27240%27%20height%3D%27240%27%20filter%3D%27url%28%23g%29%27%2F%3E%3C%2Fsvg%3E");
  --dust-gust:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27700%27%20height%3D%27450%27%3E%3Cfilter%20id%3D%27u%27%20x%3D%270%25%27%20y%3D%270%25%27%20width%3D%27100%25%27%20height%3D%27100%25%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%270.0026%200.013%27%20numOctaves%3D%273%27%20seed%3D%2741%27%20stitchTiles%3D%27stitch%27%2F%3E%3CfeColorMatrix%20type%3D%27matrix%27%20values%3D%270%200%200%200%20.639%200%200%200%200%20.549%200%200%200%200%20.400%201.25%200%200%200%20-.60%27%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%27700%27%20height%3D%27450%27%20filter%3D%27url%28%23u%29%27%2F%3E%3C%2Fsvg%3E");
  --dust-wisp-dark:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27700%27%20height%3D%27450%27%3E%3Cfilter%20id%3D%27w%27%20x%3D%270%25%27%20y%3D%270%25%27%20width%3D%27100%25%27%20height%3D%27100%25%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%270.007%200.15%27%20numOctaves%3D%274%27%20seed%3D%2711%27%20stitchTiles%3D%27stitch%27%2F%3E%3CfeColorMatrix%20type%3D%27matrix%27%20values%3D%270%200%200%200%20.611%200%200%200%200%20.518%200%200%200%200%20.372%201.7%200%200%200%20-.72%27%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%27700%27%20height%3D%27450%27%20filter%3D%27url%28%23w%29%27%2F%3E%3C%2Fsvg%3E");
  --dust-wisp-light:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27700%27%20height%3D%27450%27%3E%3Cfilter%20id%3D%27w%27%20x%3D%270%25%27%20y%3D%270%25%27%20width%3D%27100%25%27%20height%3D%27100%25%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%270.0056%200.11%27%20numOctaves%3D%274%27%20seed%3D%2723%27%20stitchTiles%3D%27stitch%27%2F%3E%3CfeColorMatrix%20type%3D%27matrix%27%20values%3D%270%200%200%200%20.965%200%200%200%200%20.925%200%200%200%200%20.831%201.6%200%200%200%20-.70%27%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%27700%27%20height%3D%27450%27%20filter%3D%27url%28%23w%29%27%2F%3E%3C%2Fsvg%3E");
}

/* ── base ─────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.sheet-open { overflow: hidden; }

body {
  position: relative;         /* containing block for the .dust box */
  background:
    radial-gradient(132% 86% at 76% 5%, rgba(255,250,237,.94) 0%, rgba(249,239,219,.42) 33%, rgba(238,227,205,0) 64%),
    linear-gradient(178deg, var(--paper-0) 0%, var(--paper-1) 34%, var(--paper-2) 70%, var(--paper-3) 100%);
  background-repeat: no-repeat;
  background-color: var(--paper-2);
  /* Set here, not only on .page: the sheets, toasts and selection bar are
     fixed elements outside .page and would otherwise fall back to serif. */
  font-family: var(--text);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

a { color: var(--rust-link); text-decoration: none; }
a:hover { color: var(--rust-hover); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.page {
  min-height: 100vh;
  position: relative;
  z-index: 1;                 /* content rides above the dust layers */
  overflow-x: clip;           /* the hero glow bleeds; clip keeps sticky alive */
  font-family: var(--text);
  color: var(--ink);
  padding: 0 0 64px;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ── masthead ─────────────────────────────────────────────────────────── */

.masthead {
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px var(--gutter) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
}

.masthead-brand {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.wordmark { display: flex; align-items: baseline; gap: 10px; color: inherit; }
.wordmark:hover { color: inherit; }

.wordmark-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
}

.wordmark-tld {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.locale {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.locale-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rust);
}

.nav { display: flex; align-items: center; gap: 4px 26px; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color .18s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: 9px;
  height: 2px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s cubic-bezier(.22,.68,.28,1);
}

.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--ink-strong); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* ── type ─────────────────────────────────────────────────────────────── */

.eyebrow {
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ink-eyebrow);
}

.display {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: -.005em;
  font-size: clamp(46px, 7vw, 90px);
  color: var(--ink-strong);
  text-wrap: balance;
}

.display-2 { font-size: clamp(32px, 4.2vw, 54px); }

.lede {
  margin: 26px 0 0;
  max-width: 46ch;
  font-size: clamp(17px, 1.4vw, 19.6px);
  line-height: 1.55;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.lede p { margin: 0 0 1.05em; }
.lede p:last-child { margin-bottom: 0; }

.link-btn {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  color: var(--rust-link);
  cursor: pointer;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  padding-bottom: 1px;
  transition: color .18s;
}

.link-btn:hover { color: var(--rust-hover); }

/* ── buttons ──────────────────────────────────────────────────────────── */

.btn-primary {
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 34px;
  min-height: 56px;
  border-radius: var(--radius);
  background: var(--rust);
  color: #fff6e6;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 10px 24px -14px rgba(90,40,10,.7);
  transition: background .18s, color .18s, transform .18s, box-shadow .18s;
}

.btn-primary:hover:not(:disabled) { background: var(--rust-deep); color: #fff6e6; transform: translateY(-1px); box-shadow: 0 16px 30px -16px rgba(90,40,10,.85); }
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: .62; cursor: progress; transform: none; }

.btn-ghost {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  min-height: 52px;
  border-radius: var(--radius);
  border: 1px solid var(--rust);
  background: transparent;
  color: #933f13;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-align: center;
  transition: background .18s, color .18s, transform .18s, box-shadow .18s;
}

.btn-ghost:hover:not(:disabled) { background: var(--rust); color: #fff6e6; box-shadow: 0 12px 24px -16px rgba(90,40,10,.7); }
.btn-ghost:disabled { opacity: .55; cursor: default; }

.btn-small { min-height: 40px; padding: 10px 16px; font-size: 11.5px; letter-spacing: .18em; }
.btn-compact { min-height: 48px; padding: 12px 22px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 24px;
}

/* ── hero: story + reveal ─────────────────────────────────────────────── */

.hero {
  padding-top: 44px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  grid-template-rows: 1fr auto auto auto auto auto auto 1fr;
  grid-template-areas:
    ".        portrait"
    "eyebrow  portrait"
    "title    portrait"
    "lede     portrait"
    "hint     portrait"
    "thanks   portrait"
    "actions  portrait"
    ".        portrait";
  column-gap: 56px;
  align-items: start;
}

.hero-eyebrow  { grid-area: eyebrow; }
.hero-title    { grid-area: title; }
.hero-lede     { grid-area: lede; }
.hero-hint     { grid-area: hint; }
.hero .thanks  { grid-area: thanks; }
.hero-actions  { grid-area: actions; }
.hero-portrait { grid-area: portrait; align-self: center; }

.hero-hint {
  margin: 26px 0 0;
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-eyebrow);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-hint::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--rust);
  opacity: .7;
  flex: none;
}

.thanks {
  margin: 34px 0 0;
  max-width: 560px;
  padding: 24px 28px 22px;
  border: 1px dashed #b78e5a;
  background: var(--card);
  border-radius: var(--radius);
}

.thanks-eyebrow {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.thanks-text {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink);
  text-wrap: pretty;
}

.thanks-sign {
  margin: 16px 0 0;
  font-size: 16.5px;
  line-height: 1.4;
  color: var(--ink-muted);
}

.hero-actions { margin-top: 30px; }
.hero-actions .btn-ghost { white-space: nowrap; }

.hero-portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  width: 100%;
}

.hero-frame { position: relative; width: min(520px, 100%); aspect-ratio: 1; }

.hero-glow {
  position: absolute;
  inset: -6% -6% -10%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(180,85,31,.16) 0%, rgba(180,85,31,0) 62%);
}

.reveal-stage {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(circle at 50% 42%, #f5e9d2 0%, #ddc9a3 55%, #bfa47a 100%);
  box-shadow: 0 40px 70px -40px rgba(70,45,20,.65);
  user-select: none;
  -webkit-user-select: none;
}

.reveal-stage picture,
.reveal-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* The imagined portrait sits on top and dissolves into the photograph: she
   was a guess, and then she walked past the lens. The scale is a hair over 1
   so the dissolve reads as her stepping forward rather than a cross-fade of
   two flat pictures. */
.reveal-ai {
  opacity: 1;
  transform: scale(1.012);
  transition: opacity 3.8s cubic-bezier(.4, 0, .25, 1), transform 4.8s cubic-bezier(.32, .06, .28, 1);
}

.reveal.is-revealed .reveal-ai {
  opacity: 0;
  transform: scale(1);
}

/* Rewinding is not part of the story: she is simply back, ready to arrive. */
.reveal.is-instant .reveal-ai { transition: none; }

/* Dust blowing across the moment of the change, so the two faces meet in a
   gust instead of simply fading. Purely decorative. */
.reveal-stage::after {
  content: "";
  position: absolute;
  inset: -12%;
  background-image: var(--dust-grain);
  background-size: 240px 240px;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.reveal.is-fading .reveal-stage::after { animation: revealDust 4.4s ease-out both; }

@keyframes revealDust {
  0%   { opacity: 0;   transform: translate3d(-3%, 0, 0) scale(1.04); }
  35%  { opacity: .55; }
  100% { opacity: 0;   transform: translate3d(3%, 0, 0) scale(1); }
}

/* Replay control, sitting where the drag hint used to be. */
.reveal-replay {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--ink-eyebrow);
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  transition: color .18s;
}

.reveal-replay svg { flex: none; transition: transform .5s cubic-bezier(.22,.68,.28,1); }
.reveal-replay:hover { color: var(--rust); }
.reveal-replay:hover svg { transform: rotate(-180deg); }
.reveal-replay[hidden] { display: none; }

.reveal-label {
  position: absolute;
  z-index: 2;
  padding: 7px 11px;
  border-radius: var(--radius);
  background: rgba(18,14,10,.55);
  color: var(--night-ink);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .32s ease, transform .32s ease;
  pointer-events: none;
}

/* Both captions sit in the same corner, so one hands over to the other. */
.reveal-label { bottom: 16%; right: 13%; }
.reveal:not(.is-revealed) .reveal-label-ai,
.reveal.is-revealed .reveal-label-real { opacity: 1; transform: translateY(0); }

/* The caption should arrive when she does. The dissolve runs 3.8s, so the
   "found" label waits most of it out; leaving the state again it goes at
   once, because this rule stops applying. */
.reveal.is-revealed .reveal-label-real { transition-delay: 2.5s; }

/* ── sticky toolbar ───────────────────────────────────────────────────── */

.toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-top: 56px;
  background: rgba(236,226,207,.82);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--rule-soft);
}

.toolbar-row {
  display: flex;
  align-items: center;
  gap: 12px 20px;
  min-height: 58px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.toolbar-label {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-eyebrow);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.toolbar-dot { opacity: .55; margin: 0 2px; }

.toolbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px 18px;
}

.tool-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--rust);
  border-radius: var(--radius);
  background: transparent;
  color: #933f13;
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s, color .18s;
}

.tool-btn:hover { background: rgba(180,85,31,.1); }
.tool-btn[aria-pressed="true"] { background: var(--rust); color: #fff6e6; }
.tool-btn svg { flex: none; }

/* Back to the top: only once the toolbar has stuck, i.e. down in the photos. */
.tool-top { display: none; width: 40px; padding: 0; justify-content: center; }
html.is-deep .tool-top { display: inline-flex; animation: fadeIn .25s ease-out both; }

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rust-link);
  white-space: nowrap;
}

/* search */

.search {
  position: relative;
  flex: 1 1 260px;
  max-width: 460px;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--ink-faint);
  pointer-events: none;
}

.search input {
  width: 100%;
  min-height: 42px;
  padding: 8px 40px 8px 38px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: rgba(255,252,244,.72);
  font-family: var(--text);
  font-size: 15.5px;
  color: var(--ink);
  transition: border-color .18s, background .18s;
  -webkit-appearance: none;
  appearance: none;
}

.search input::-webkit-search-cancel-button { display: none; }
.search input::placeholder { color: #776952; }
.search input:focus { outline: none; border-color: var(--rust); background: var(--card-solid); box-shadow: 0 6px 18px -14px rgba(90,40,10,.55); }

.search-clear {
  position: absolute;
  right: 2px;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  color: var(--ink-faint);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.search-clear:hover { color: var(--rust); }

/* day chips */

.chips-row { padding-bottom: 8px; }

.chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0 4px;
  margin: 0 calc(-1 * var(--gutter));
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  scroll-padding: 0 var(--gutter);
  -webkit-overflow-scrolling: touch;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
  appearance: none;
  flex: none;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: rgba(255,250,238,.5);
  color: var(--ink-muted);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s;
}

.chip b { font-weight: 700; color: var(--ink-strong); }
.chip small { font-size: 10.5px; letter-spacing: .06em; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--rust); color: var(--ink); }
.chip[aria-current="true"] { background: var(--rust); border-color: var(--rust); color: #fff6e6; }
.chip[aria-current="true"] b, .chip[aria-current="true"] small { color: #fff6e6; }

/* ── sections ─────────────────────────────────────────────────────────── */

.section { padding-top: 48px; scroll-margin-top: calc(var(--toolbar-h) + 8px); }

.section-head { margin-bottom: 28px; }
.section-head .eyebrow { margin-bottom: 16px; }

.section-note {
  margin: 16px 0 0;
  font-size: 16px;
  color: var(--ink-faint);
}

.album-head { padding-top: 44px; }

.load-error {
  margin-top: 24px;
  font-size: 17px;
  color: var(--ink-muted);
}

.route-boot .wrap { padding-top: 44px; }

/* day sections (/all) */

.day { padding-top: 22px; scroll-margin-top: var(--toolbar-h); }

.day-head {
  position: sticky;
  top: var(--toolbar-h);
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  min-height: 48px;
  padding: 10px 0 8px;
  margin: 0 calc(-1 * var(--gutter)) 10px;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  background: linear-gradient(180deg, rgba(232,221,200,.94) 0%, rgba(232,221,200,.86) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.day-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink-strong);
}

.day-title .day-sep { color: var(--rust); font-weight: 400; }

.day-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--olive-line);
  border-radius: var(--radius);
  background: var(--olive-bg);
  color: var(--olive-ink);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  transform: translateY(-2px);
}

.day-count {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.day-select { margin-left: auto; align-self: center; }

/* results / empty */

.results {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 26px 0 -4px;
  font-size: 16px;
  color: var(--ink-muted);
}

.results strong { color: var(--ink-strong); font-weight: 600; }

.empty {
  margin: 44px auto 24px;
  max-width: 560px;
  padding: 28px 30px;
  border: 1px dashed #b78e5a;
  background: var(--card);
  border-radius: var(--radius);
  text-align: center;
}

.empty-text { margin: 0; font-size: 18px; line-height: 1.5; color: var(--ink); }
.empty-sub { margin: 12px 0 0; font-size: 15px; color: var(--ink-muted); }

/* ── justified grid ───────────────────────────────────────────────────── */

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}

/* gallery.js lays a grid out into rows itself and groups the rows into
   blocks, so the browser can skip everything about a block that is off
   screen: style, layout, paint and the lazy-load checks of its images. A row
   is a flex line that never wraps, justified by the same flex values the
   wrapping grid uses, so it looks the same and cannot break differently from
   what the script measured. --block-h is a block's computed height, used
   until it has been rendered once and its real height is remembered. */
.grid.is-blocked { display: block; }

.grid-block {
  content-visibility: auto;
  contain-intrinsic-block-size: auto var(--block-h, 1200px);
}

.grid-row { display: flex; gap: var(--gap); }

.grid-block + .grid-block,
.grid-row + .grid-row { margin-top: var(--gap); }

.tile {
  position: relative;
  flex: calc(var(--ar) * 100) 1 calc(var(--ar) * var(--row));
  aspect-ratio: var(--ar);
  max-width: 100%;
  background: var(--tint, #c9b896);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  cursor: pointer;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: transform .28s cubic-bezier(.22,.68,.28,1), box-shadow .28s;
}

.tile:hover { color: inherit; }
.tile:focus { outline: none; }        /* focused only to hand focus back after the viewer closes */

/* The link fills the tile; the state (selected, checked) lives on the box. */
.tile-link {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
}

.tile-link:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }

/* Select mode gives the tap to selecting, so this opens the photo instead.
   Hidden until then: nothing to explain while a plain tap already views. */
.tile-view {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255,250,238,.5);
  border-radius: 50%;
  background: rgba(18,14,10,.5);
  color: var(--night-ink);
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background .18s, transform .18s, border-color .18s;
}

.is-selecting .tile .tile-view { display: flex; }
.tile-view:hover { background: var(--rust); border-color: var(--rust); transform: scale(1.06); }
.tile-view:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }

.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .35s, transform .5s cubic-bezier(.22,.68,.28,1);
  -webkit-user-drag: none;
  pointer-events: none;
}

.tile img.is-loaded { opacity: 1; }

@media (hover: hover) and (pointer: fine) {
  .tile:hover img { transform: scale(1.025); }
}

.grid-fill { flex: 100000 1 0; height: 0; }

/* Skeleton grid, shown while the manifest is in flight. */
.grid-skeleton .tile {
  background: linear-gradient(90deg, rgba(200,183,149,.35) 0%, rgba(214,199,168,.55) 50%, rgba(200,183,149,.35) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
  cursor: default;
}

@keyframes shimmer {
  from { background-position: 100% 0; }
  to   { background-position: -100% 0; }
}

/* badges */

.tile-badge,
.tile-play {
  position: absolute;
  z-index: 2;
  bottom: 8px;
  padding: 4px 7px;
  border-radius: var(--radius);
  background: rgba(18,14,10,.5);
  color: var(--night-ink);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1;
  pointer-events: none;
}

.tile-badge { left: 8px; font-size: 10px; padding: 4px 6px; }
.tile-play  { right: 8px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }

/* selection */

.tile-check {
  position: absolute;
  z-index: 3;
  top: 8px; left: 8px;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255,250,238,.85);
  background: rgba(18,14,10,.28);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  opacity: 0;
  transform: scale(.8);
  transition: opacity .18s, transform .18s, background .18s;
  pointer-events: none;
}

.tile-check::after {
  content: "";
  position: absolute;
  left: 7px; top: 3px;
  width: 6px; height: 11px;
  border: solid #fff6e6;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity .12s;
}

.is-selecting .tile .tile-check { opacity: 1; transform: scale(1); }
.is-selecting .tile { cursor: cell; }

.tile.is-selected { box-shadow: inset 0 0 0 3px var(--rust); }
.tile.is-selected::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  box-shadow: inset 0 0 0 3px var(--rust);
  background: rgba(180,85,31,.12);
  border-radius: var(--radius);
  pointer-events: none;
}

.tile.is-selected .tile-check { opacity: 1; transform: scale(1); background: var(--rust); border-color: var(--rust); }
.tile.is-selected .tile-check::after { opacity: 1; }
.tile.is-selected img { transform: scale(.985); }

/* interstitial nudge */

.nudge {
  flex: 1 0 100%;
  margin: 18px 0 18px;
  padding: 30px 32px;
  border: 1px dashed #b78e5a;
  background: var(--card);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "eyebrow eyebrow" "text btn";
  gap: 6px 32px;
  align-items: center;
}

.nudge .eyebrow { grid-area: eyebrow; margin-bottom: 8px; }
.nudge-text { grid-area: text; margin: 0; max-width: 60ch; font-size: 17px; line-height: 1.5; color: var(--ink-muted); text-wrap: pretty; }
.nudge .btn-ghost { grid-area: btn; white-space: nowrap; }
.nudge-end { margin: 40px 0 0; }

/* ── selection bar ────────────────────────────────────────────────────── */

.selbar {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 900;
  padding: 0 16px calc(16px + env(safe-area-inset-bottom));
  pointer-events: none;
  display: flex;
  justify-content: center;
}

.selbar-card {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
  width: min(760px, 100%);
  padding: 12px 12px 12px 22px;
  background: var(--card-solid);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: 0 24px 50px -22px rgba(60,35,10,.6), 0 2px 6px rgba(60,35,10,.08);
  animation: selbarUp .34s cubic-bezier(.22,.68,.28,1) both;
}

@keyframes selbarUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.selbar-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 16px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.selbar-text strong { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-strong); }
.selbar-dot { opacity: .6; }
.selbar-cap { flex-basis: 100%; font-size: 13px; color: var(--rust-deep); }

.selbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.selbar-x {
  appearance: none;
  width: 44px; height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--ink-faint);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: color .18s, background .18s;
}

.selbar-x:hover { color: var(--rust); background: rgba(180,85,31,.08); }

/* Room under the last row / footer while the bar is up. */
.has-selbar .page { padding-bottom: 160px; }

/* ── sheets ───────────────────────────────────────────────────────────── */

.sheet-wrap {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(59,45,30,.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .26s ease both;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.sheet {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 34px 36px 32px;
  background: var(--card-solid);
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -30px rgba(40,22,5,.7);
  animation: sheetIn .34s cubic-bezier(.22,.68,.28,1) both;
  overscroll-behavior: contain;
}

@keyframes sheetIn {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.sheet-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 44px; height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--ink-faint);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: color .18s, background .18s;
}

.sheet-close:hover { color: var(--rust); background: rgba(180,85,31,.08); }

.sheet .eyebrow { margin-bottom: 12px; }
.eyebrow-dot { display: flex; align-items: center; gap: 10px; }

.dot-pulse {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rust);
}
.dot-pulse::after { animation-duration: 1.6s; }

.sheet-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 38px);
  line-height: .95;
  letter-spacing: -.005em;
  text-transform: uppercase;
  color: var(--ink-strong);
  overflow-wrap: anywhere;
}

.sheet-sub { margin: 12px 0 0; font-size: 15.5px; color: var(--ink-muted); }
.sheet-rule { height: 1px; margin: 26px 0 22px; background: var(--rule-soft); }

.sheet-h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink-strong);
}

.sheet-text { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: var(--ink-muted); text-wrap: pretty; }
.sheet-hint { margin: 14px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-faint); }
.sheet-done { margin: 0; font-size: 20px; line-height: 1.4; color: var(--ink-strong); }
.sheet .actions { margin-top: 20px; }

/* forms (same look as the teaser) */

.fields { display: grid; gap: 14px; margin-top: 18px; }
.fields-2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 8px; }

.field-label {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color .2s ease;
}

.field-label em { font-style: normal; text-transform: none; letter-spacing: .04em; font-family: var(--text); font-size: 12.5px; color: #776952; margin-left: 4px; }

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: rgba(255,252,244,.72);
  font-family: var(--text);
  font-size: 16.5px;
  color: var(--ink);
  transition: border-color .18s, background .18s;
}

.field textarea { resize: none; min-height: 88px; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: #776952; }

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--rust);
  background: var(--card-solid);
  box-shadow: 0 6px 18px -14px rgba(90,40,10,.55);
}

.field:focus-within .field-label { color: var(--rust); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }

.form-error {
  margin: 16px 0 0;
  padding: 11px 14px;
  border: 1px solid #c0704f;
  border-left: 3px solid var(--error);
  border-radius: var(--radius);
  background: var(--error-bg);
  font-size: 14.5px;
  line-height: 1.45;
  color: #7d3218;
  animation: errorIn .3s ease-out both;
}

@keyframes errorIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* tabs */

.tabs {
  display: flex;
  gap: 4px;
  margin: 4px 48px 4px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.tab {
  appearance: none;
  position: relative;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  background: none;
  color: var(--ink-faint);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .18s;
}

.tab::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: -1px;
  height: 2px;
  background: var(--rust);
  transform: scaleX(0);
  transition: transform .26s cubic-bezier(.22,.68,.28,1);
}

.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink-strong); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab-panel { padding-top: 6px; }

.photo-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--rule);
  background: rgba(255,250,238,.6);
  border-radius: var(--radius);
}

.photo-card img { width: 120px; height: 80px; object-fit: cover; border-radius: var(--radius); background: var(--paper-3); flex: none; }
.photo-card-text { display: grid; gap: 4px; min-width: 0; }
.photo-card-id { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .08em; color: var(--ink-strong); overflow-wrap: anywhere; }
.photo-card-meta { font-size: 14px; color: var(--ink-muted); }

/* ── toasts ───────────────────────────────────────────────────────────── */

.toasts {
  position: fixed;
  left: 0; right: 0;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 2100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  pointer-events: none;
}

.has-selbar .toasts { bottom: calc(112px + env(safe-area-inset-bottom)); }

.toast {
  max-width: min(480px, 100%);
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--night-2);
  color: var(--night-ink);
  font-size: 15px;
  line-height: 1.4;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.6);
  animation: toastIn .3s cubic-bezier(.22,.68,.28,1) both;
}

.toast.is-leaving { animation: toastOut .26s ease-in both; }

@keyframes toastIn  { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(6px); } }

/* ── footer ───────────────────────────────────────────────────────────── */

.footer { padding-top: 72px; }

.footer-rule {
  height: 1px;
  background: linear-gradient(90deg,
    rgba(150,120,80,0) 0%,
    rgba(150,120,80,.45) 20%,
    rgba(150,120,80,.45) 80%,
    rgba(150,120,80,0) 100%);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 13px;
  color: var(--ink-faint);
}

.footer-mark {
  letter-spacing: .14em;
  text-transform: uppercase;
  font-family: var(--display);
  font-size: 11.5px;
}

.footer-small { margin: 14px 0 0; max-width: 72ch; font-size: 12.5px; line-height: 1.5; color: var(--ink-faint); }
.footer-small .link-btn { font-size: inherit; }

.footer-row a {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size .32s cubic-bezier(.22, .68, .28, 1), color .18s;
  padding-bottom: 1px;
}

.footer-row a:hover,
.footer-row a:focus-visible { background-size: 100% 1px; }

/* ── dust storm ───────────────────────────────────────────────────────── */
/* Three layers between the ground colour and the content, each drifting at a
   different speed and direction. Absolute (not fixed) so the storm scrolls
   with the page, clipped by .dust so they never add scrollable area. */

@keyframes dustFar {
  from { transform: translate3d(-2.4%, -1vh, 0) scale(1.05); }
  to   { transform: translate3d( 2.4%,  1vh, 0) scale(1.12); }
}

@keyframes dustNear {
  from { transform: translate3d( 3.2%,  .8vh, 0) scale(1.08); }
  to   { transform: translate3d(-3.2%, -.9vh, 0) scale(1.02); }
}

@keyframes dustGrain {
  from { transform: translate3d( 1.6%, -.5vh, 0); }
  to   { transform: translate3d(-1.6%,  .7vh, 0); }
}

.dust {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.dust::before,
.dust::after,
.dust > i {
  content: "";
  position: absolute;
  inset: -6% -14%;
  display: block;
  will-change: transform;
}

.dust::before {
  background-image:
    var(--dust-wisp-dark),
    var(--dust-gust),
    radial-gradient(78% 15% at 14% 30%, rgba(214,193,152,.46) 0%, rgba(214,193,152,0) 72%),
    radial-gradient(88% 13% at 72% 52%, rgba(196,171,126,.52) 0%, rgba(196,171,126,0) 74%),
    radial-gradient(70% 18% at 34% 74%, rgba(184,157,110,.48) 0%, rgba(184,157,110,0) 70%),
    radial-gradient(96% 16% at 58% 88%, rgba(176,148,101,.50) 0%, rgba(176,148,101,0) 72%),
    radial-gradient(60% 12% at 88% 16%, rgba(232,215,178,.42) 0%, rgba(232,215,178,0) 74%);
  background-size:
    151vw 138vh, 172vw 156vh,
    128vw 128vh, 128vw 128vh, 128vw 128vh, 128vw 128vh, 128vw 128vh;
  background-position: center;
  background-repeat: repeat;
  opacity: .92;
  animation: dustFar 86s ease-in-out infinite alternate;
}

.dust > i {
  background-image:
    var(--dust-wisp-light),
    radial-gradient(54% 9%  at 30% 22%, rgba(250,241,219,.50) 0%, rgba(250,241,219,0) 72%),
    radial-gradient(64% 11% at 66% 44%, rgba(238,223,190,.44) 0%, rgba(238,223,190,0) 74%),
    radial-gradient(72% 12% at 50% 82%, rgba(196,170,124,.40) 0%, rgba(196,170,124,0) 74%);
  background-size: 161vw 143vh, 128vw 128vh, 128vw 128vh, 128vw 128vh;
  background-position: center;
  background-repeat: repeat;
  opacity: .8;
  animation: dustNear 61s ease-in-out infinite alternate;
}

.dust::after {
  background-image: var(--dust-grain);
  background-size: 240px 240px;
  background-repeat: repeat;
  opacity: .5;
  animation: dustGrain 63s ease-in-out infinite alternate;
}

/* Down in the photos the storm holds still where it is, and drifts on again
   once the visitor is back up top. */
html.is-deep .dust::before,
html.is-deep .dust::after,
html.is-deep .dust > i { animation-play-state: paused; }

/* ── settling veil (on "/" only, 6 s) ─────────────────────────────────── */

@keyframes dustSettle {
  0%   { opacity: 1;    transform: translate3d(0, -7%, 0) scale(1.12); }
  18%  { opacity: .97;  transform: translate3d(0, -4%, 0) scale(1.10); }
  45%  { opacity: .55; }
  70%  { opacity: .22; }
  88%  { opacity: .07; }
  100% { opacity: 0;    transform: translate3d(0, 9%, 0)  scale(1);
         visibility: hidden; }
}

@keyframes dustSettleNear {
  0%   { opacity: .95; transform: translate3d(0, -11%, 0) scale(1.16); }
  40%  { opacity: .45; }
  72%  { opacity: .10; }
  100% { opacity: 0;   transform: translate3d(0, 16%, 0) scale(1.02); }
}

.dust-veil {
  position: fixed;
  inset: -18%;
  z-index: 50;
  pointer-events: none;
  background-color: #dccdae;
  background-image: var(--dust-wisp-dark), var(--dust-gust);
  background-size: 128% 118%, 142% 130%;
  background-position: center, center;
  background-repeat: no-repeat;
  will-change: transform, opacity;
  animation: dustSettle 6s cubic-bezier(.32, .04, .26, 1) both;
}

.dust-veil::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--dust-wisp-light), var(--dust-grain);
  background-size: 136% 124%, 240px 240px;
  background-position: center, 0 0;
  background-repeat: no-repeat, repeat;
  animation: dustSettleNear 6s cubic-bezier(.3, .05, .3, 1) both;
}

html[data-veil="off"] .dust-veil { display: none; }

/* ── motion ───────────────────────────────────────────────────────────── */
/* Everything here is decorative; the reduced-motion block flattens it all. */

@keyframes riseIn {
  from { opacity: 0; transform: translateY(13px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heatDrift {
  0%, 100% { transform: translateY(0)    scale(1); }
  50%      { transform: translateY(-9px) scale(1.006); }
}

@keyframes glowBreathe {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.05); }
}

/* The halo round a dot breathes out and back. It is its own layer moving
   by scale and opacity only, which the compositor animates by itself: the
   box-shadow this used to animate repainted the page every frame, forever,
   and on an iPhone those repaints made the sticky bars shiver while
   scrolling. */
.locale-dot::after,
.dot-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(180,85,31,.16);
  animation: dotPulse 3.4s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(1.53); opacity: .25; }
}

.route .rise {
  animation: riseIn .62s cubic-bezier(.22, .68, .28, 1) both;
  animation-delay: calc(.02s + var(--i, 0) * .085s);
}

/* A quiet arrival for something the page reveals mid-visit — the ways into
   /all, once my favs have been looked at. Same cascade as the hero, so
   they read as part of the page rather than as something that popped up. */
.is-arriving {
  animation: riseIn .55s cubic-bezier(.22, .68, .28, 1) both;
  animation-delay: calc(var(--in, 0) * .09s);
}

.hero-portrait { animation: riseIn .9s ease-out both; }
.hero-frame { animation: heatDrift 14s ease-in-out 1.4s infinite; }

.hero-frame::before {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(180,85,31,.14) 0%, rgba(180,85,31,0) 66%);
  opacity: .78;
  animation: glowBreathe 11s ease-in-out infinite;
  pointer-events: none;
}

/* Down among the photos the hero and the masthead are off screen: their
   loops hold still, like the storm, and pick up again on the way back up. */
html.is-deep .hero-frame,
html.is-deep .hero-frame::before,
html.is-deep .locale-dot::after { animation-play-state: paused; }

/* ── responsive ───────────────────────────────────────────────────────── */

/* Row heights are tuned so a 3:2 frame never ends up alone on a row:
   3 per row on the 1184px column, 2 per row from tablets down to phones. */
@media (max-width: 1400px) { :root { --row: 220px; } }

@media (max-width: 1100px) {
  :root { --row: 200px; }
  .hero { column-gap: 40px; grid-template-columns: 1.1fr .9fr; }
}

@media (max-width: 900px) {
  :root { --row: 170px; }

  .hero {
    padding-top: 30px;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-template-areas:
      "portrait"
      "hint"
      "eyebrow"
      "title"
      "lede"
      "thanks"
      "actions";
    row-gap: 0;
  }

  .hero-portrait {
    /* The glow hangs 10% below the frame; add it back so the hint clears it. */
    margin-bottom: calc(min(360px, 78%) * 0.12);
  }
  .hero-frame { width: min(360px, 78%); }
  .hero-hint { display: flex; justify-content: center; text-align: center; margin: 22px 0 34px; }
  .hero-hint::before { display: none; }
  .hero-eyebrow { margin-bottom: 18px; }
  .toolbar { margin-top: 44px; }
  .section { padding-top: 40px; }
  .nudge { grid-template-columns: 1fr; grid-template-areas: "eyebrow" "text" "btn"; gap: 8px; padding: 26px 24px; }
  .nudge .btn-ghost { justify-self: start; margin-top: 10px; }
}

@media (max-width: 760px) {
  .masthead { gap: 14px 24px; }
  .nav { width: 100%; justify-content: flex-start; gap: 4px 22px; }
  .nav-link { font-size: 11.5px; letter-spacing: .2em; min-height: 40px; }
  .nav-link::after { bottom: 7px; }
  .masthead-brand { gap: 16px; width: 100%; justify-content: space-between; }
  .toolbar-row { flex-wrap: wrap; }
  /* On phones the album toolbar is search + Select on one row, chips below;
     the "All photos · 827" label is dropped there (the chips carry the count). */
  .toolbar-all .toolbar-label { display: none; }
  .toolbar-all .search { flex: 1 1 auto; max-width: none; }
  .toolbar-all .toolbar-actions { margin-left: 0; }
  .toolbar-all .toolbar-row { padding-bottom: 6px; }
  .fields-2 { grid-template-columns: 1fr; }
  .day-head { top: var(--toolbar-h); }
  .selbar-card { padding: 12px 8px 12px 16px; gap: 10px 16px; }
  .selbar-actions { width: 100%; }
  .selbar-actions .btn-primary { flex: 1; }
  .selbar-x { margin-left: auto; }
  /* The bar wraps to two rows here, three with the cap line. */
  .has-selbar .toasts { bottom: calc(160px + env(safe-area-inset-bottom)); }
}

@media (max-width: 560px) {
  :root { --row: 110px; --gap: 4px; --gutter: 20px; }
  .masthead { padding-top: 20px; }
  .locale { font-size: 10.5px; letter-spacing: .14em; }
  .hero-actions .btn-primary, .hero-actions .btn-ghost { width: 100%; }
  .hero-actions .btn-ghost { white-space: normal; }
  .thanks { padding: 20px 20px 18px; }
  .thanks-text, .thanks-sign { font-size: 16px; }
  .toolbar-label { font-size: 11px; letter-spacing: .22em; }
  .tool-btn { position: relative; padding: 0 12px; }
  /* Icon only, but the label is the button's name: hide it visually, not
     with display:none, which would drop it from the accessibility tree. */
  .tool-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tool-btn[aria-pressed="true"] span { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .day-head { gap: 6px 10px; padding-top: 8px; padding-bottom: 6px; }
  .day-title { font-size: 20px; }
  .day-tag { padding: 4px 8px; font-size: 9.5px; letter-spacing: .18em; }
  .day-select { flex: 0 0 auto; }
  /* Tracked-out caps wrap into two lines on a phone; ease the tracking and
     keep the hint to one short line under the portrait. */
  .hero-hint { font-size: 10.5px; letter-spacing: .2em; margin: 18px 0 30px; }
  .reveal-label { padding: 5px 8px; font-size: 9px; letter-spacing: .18em; }
  .reveal-label { bottom: 14%; right: 11%; }
  .sheet-wrap { align-items: flex-end; padding: 0; }
  .sheet {
    max-width: none;
    max-height: calc(100dvh - 32px);
    padding: 28px 20px calc(24px + env(safe-area-inset-bottom));
    border-radius: var(--radius) var(--radius) 0 0;
    animation-name: sheetUp;
  }
  @keyframes sheetUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .sheet-title { font-size: 30px; }
  .tabs { margin-right: 40px; }
  .tab { padding: 0 10px; font-size: 11px; letter-spacing: .18em; }
  .tab::after { left: 10px; right: 10px; }
  .footer-row { flex-direction: column; }
  .empty { padding: 24px 20px; }
  .results { font-size: 15px; }
}

@media (max-width: 400px) {
  :root { --gutter: 16px; }
}

/* Touch devices: scrolling is the whole experience, so nothing that makes
   the phone repaint what lies under the finger. The storm stays with the hero
   instead of being page-tall layers dragged through every frame, and the
   bars over the photos are solid rather than blurring what scrolls beneath. */
@media (hover: none), (pointer: coarse) {
  .dust { bottom: auto; height: min(100%, 200lvh); }
  .toolbar,
  .day-head,
  .tile-view,
  .reveal-label { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .toolbar { background: rgba(236,226,207,.97); }
  .day-head { background: rgba(232,221,200,.97); }
  .tile-view { background: rgba(18,14,10,.62); }
}

/* Fingers need 44px; the mouse-sized targets above stay as they are. */
@media (pointer: coarse) {
  .tile-view { width: 44px; height: 44px; top: 5px; right: 5px; }
  .nav-link, .tool-btn, .tool-link, .btn-small, .chip { min-height: 44px; }
  .search-clear { width: 44px; height: 44px; }
  /* Inline text link: taller hit area, same footprint and underline. */
  .link-btn { padding: 12px 0 13px; margin: -12px 0 -13px; background-position: 0 calc(100% - 12px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    will-change: auto !important;
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
}
