/* ==========================================================================
   MakeYourStory — a small independent film studio for your memories.
   Plain CSS, no build step. Self-hosted fonts, dark ink, warm cream, amber.
   ========================================================================== */

/* --- Fonts (SIL Open Font License 1.1, see /fonts/OFL-*.txt) -------------- */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  font-optical-sizing: auto;
}

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
  font-optical-sizing: auto;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Caveat";
  src: url("/fonts/caveat.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens --------------------------------------------------------------- */
:root {
  --ink: #100d0b;
  --ink-deep: #0b0908;
  --ink-raised: #191410;
  --cream: #f3ead8;
  --cream-soft: #d8cbb4;
  --muted: #9d917c;
  --accent: #e0783f;
  --accent-2: #f2b06a;
  --line: rgba(243, 234, 216, 0.16);
  --line-soft: rgba(243, 234, 216, 0.08);
  --warn: #e8a08a;
  --radius: 2px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Caveat", "Bradley Hand", cursive;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

/* --- Reset & base --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

[id],
.stepper,
.step-panel,
.player {
  scroll-margin-top: 5.5rem;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background:
    radial-gradient(70rem 40rem at 88% -12%, rgba(224, 120, 63, 0.1), transparent 65%),
    radial-gradient(50rem 36rem at -5% 34%, rgba(120, 82, 52, 0.13), transparent 65%),
    var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

/* Film grain: one fixed layer of SVG turbulence over the whole page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

main {
  flex: 1;
}

img,
video {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--accent);
  color: var(--ink-deep);
}

a {
  color: var(--cream);
  text-decoration-color: rgba(224, 120, 63, 0.6);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-2);
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 350;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 em,
h2 em,
h3 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent-2);
}

p {
  margin: 0 0 1rem;
}

/* --- Layout helpers ------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
}

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

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 10000;
  padding: 0.7rem 1.1rem;
  background: var(--accent);
  color: var(--ink-deep);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0.75rem;
  color: var(--ink-deep);
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.6rem;
  height: 1px;
  margin-right: 0.7rem;
  vertical-align: middle;
  background: var(--accent);
}

.dot {
  color: var(--accent);
}

.optional {
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.hint {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
  margin: 0.45rem 0 0;
}

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(16, 13, 11, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark:hover {
  color: var(--cream);
}

.wordmark-dot {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.7rem);
}

.site-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-soft);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent-2);
}

.site-nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.15rem;
}

.site-nav .btn {
  color: var(--ink-deep);
  letter-spacing: 0.02em;
  text-transform: none;
}

.site-nav .btn:hover {
  color: var(--ink-deep);
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, filter 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: var(--ink-deep);
  box-shadow: 0 10px 30px rgba(224, 120, 63, 0.18);
}

.btn-primary:hover {
  color: var(--ink-deep);
  filter: brightness(1.07);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--cream);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

.btn-small {
  padding: 0.58rem 1.05rem;
  font-size: 0.78rem;
}

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

/* --- Staggered reveal ----------------------------------------------------- */
/* Hidden only when landing.js has confirmed IntersectionObserver support, so
   the page stays readable if scripts fail to load. */
html.js-reveal .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

html.js-reveal .reveal.is-in {
  opacity: 1;
  transform: none;
}

html.js-reveal .d1 { transition-delay: 0.1s; }
html.js-reveal .d2 { transition-delay: 0.2s; }
html.js-reveal .d3 { transition-delay: 0.3s; }
html.js-reveal .d4 { transition-delay: 0.4s; }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4.5rem);
}

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.9rem, 7.4vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  font-weight: 350;
}

.hero-lede {
  max-width: 33rem;
  color: var(--cream-soft);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 1.9rem 0 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Hero filmstrip: a tilted reel of abstract memories. */
.hero-visual {
  position: relative;
  padding: 1rem 0 0;
}

.strip-glow {
  position: absolute;
  top: 10%;
  left: 5%;
  width: 95%;
  height: 80%;
  background: radial-gradient(ellipse at 55% 50%, rgba(224, 120, 63, 0.3), transparent 65%);
  filter: blur(42px);
  pointer-events: none;
}

.filmstrip-tilt {
  position: relative;
  width: 100%;
  transform: rotate(-5deg);
  animation: strip-float 14s ease-in-out infinite alternate;
}

.filmstrip {
  position: relative;
  padding: 1.15rem 0;
  background: linear-gradient(180deg, #221a13, #17110d);
  border-radius: 3px;
  box-shadow: var(--shadow);
}

.filmstrip::before,
.filmstrip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background-color: rgba(243, 234, 216, 0.55);
  background-image: radial-gradient(circle at 5px 50%, var(--ink) 0 2.6px, transparent 3.1px);
  background-size: 14px 10px;
}

.filmstrip::before { top: 0; }
.filmstrip::after { bottom: 0; }

.film-frames {
  display: flex;
  gap: 0.4rem;
  padding: 0 0.55rem;
}

.film-frame {
  position: relative;
  flex: 1;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink-deep);
  border: 1px solid rgba(243, 234, 216, 0.08);
}

.film-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(5, 4, 3, 0.45));
  pointer-events: none;
}

.film-art {
  position: absolute;
  inset: 0;
  animation: art-drift 22s ease-in-out infinite alternate;
}

.film-frame:nth-child(2) .film-art { animation-delay: -7s; }
.film-frame:nth-child(3) .film-art { animation-delay: -13s; }
.film-frame:nth-child(4) .film-art { animation-delay: -18s; }

.art-1 {
  background:
    radial-gradient(ellipse 60% 45% at 70% 28%, rgba(247, 203, 140, 0.85), rgba(180, 110, 60, 0.25) 45%, transparent 70%),
    radial-gradient(ellipse 70% 50% at 25% 85%, rgba(120, 70, 45, 0.7), transparent 70%),
    linear-gradient(170deg, #33241a, #120d09 70%);
}

.art-2 {
  background:
    radial-gradient(circle at 50% 36%, rgba(240, 205, 160, 0.9) 0 13%, transparent 14%),
    radial-gradient(ellipse 42% 30% at 50% 78%, rgba(160, 110, 75, 0.8) 0 45%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 30% 20%, rgba(200, 140, 90, 0.35), transparent 65%),
    linear-gradient(160deg, #2a2018, #100b08);
}

.art-3 {
  background:
    linear-gradient(112deg, transparent 38%, rgba(244, 190, 110, 0.55) 39% 47%, transparent 48%),
    radial-gradient(ellipse at 75% 70%, rgba(210, 140, 70, 0.4), transparent 60%),
    linear-gradient(150deg, #2b1d13, #0f0a08);
}

.art-4 {
  background:
    radial-gradient(circle at 30% 30%, rgba(120, 150, 100, 0.5), transparent 45%),
    radial-gradient(circle at 70% 65%, rgba(220, 150, 90, 0.55), transparent 55%),
    radial-gradient(circle at 50% 80%, rgba(80, 60, 50, 0.7), transparent 60%),
    linear-gradient(160deg, #241d16, #100c09);
}

.film-no {
  position: absolute;
  left: 0.4rem;
  bottom: 0.35rem;
  z-index: 2;
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  color: rgba(243, 234, 216, 0.75);
}

.strip-caption {
  margin: 0.85rem 0 0 1.2rem;
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--cream-soft);
  transform: rotate(1deg);
}

.strip-counter {
  position: absolute;
  top: -0.9rem;
  right: 0.5rem;
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--muted);
}

@keyframes strip-float {
  from { transform: rotate(-5deg) translateY(0); }
  to { transform: rotate(-4.2deg) translateY(-10px); }
}

@keyframes art-drift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.09) translate3d(2%, -2%, 0); }
}

/* --- Sprocket divider ----------------------------------------------------- */
.film-divider {
  height: 18px;
  background-color: rgba(243, 234, 216, 0.14);
  background-image: radial-gradient(circle at 7px 50%, var(--ink) 0 3px, transparent 3.5px);
  background-size: 18px 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* --- Sections ------------------------------------------------------------- */
.how,
.moods,
.occasions,
.receive,
.faq,
.closing {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.02;
}

.section-lede {
  color: var(--muted);
  font-size: 1rem;
  max-width: 36rem;
  margin: 0;
}

/* --- How it works --------------------------------------------------------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.step-card {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: linear-gradient(180deg, rgba(25, 20, 16, 0.85), rgba(16, 13, 11, 0.55));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-num {
  display: block;
  margin-bottom: 1.1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--accent-2);
  opacity: 0.85;
}

.step-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* --- Moods ---------------------------------------------------------------- */
.mood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.mood-card {
  margin: 0;
}

.mood-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-deep);
}

.mood-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--g-overlay);
  pointer-events: none;
}

.mood-art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 64% 28%, rgba(250, 214, 168, 0.85) 0 9%, transparent 10%),
    radial-gradient(ellipse 58% 40% at 66% 68%, rgba(160, 105, 66, 0.75), transparent 70%),
    radial-gradient(ellipse 90% 70% at 25% 20%, rgba(210, 150, 100, 0.35), transparent 65%),
    linear-gradient(165deg, #33251b, #120d09 75%);
  filter: var(--g-filter);
}

.mood-card figcaption {
  padding: 0.85rem 0 0;
}

.mood-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.mood-desc {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* --- Colour grades (shared by showcase, picker and preview) --------------- */
.grade--nostalgic {
  --g-filter: sepia(0.45) saturate(0.82) contrast(0.94) brightness(1.03);
  --g-overlay:
    radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(38, 20, 8, 0.55) 100%),
    linear-gradient(180deg, rgba(196, 120, 54, 0.16), transparent 60%);
}

.grade--cinematic {
  --g-filter: contrast(1.16) saturate(0.88) brightness(0.98);
  --g-overlay:
    linear-gradient(180deg, rgba(6, 5, 4, 0.95) 0%, rgba(6, 5, 4, 0.95) 11%, transparent 11%, transparent 89%, rgba(6, 5, 4, 0.95) 89%, rgba(6, 5, 4, 0.95) 100%),
    linear-gradient(115deg, rgba(18, 86, 92, 0.34), transparent 45%, rgba(226, 120, 42, 0.3));
}

.grade--dreamy {
  --g-filter: brightness(1.12) saturate(0.85) contrast(0.92) blur(0.5px);
  --g-overlay:
    radial-gradient(circle at 50% 38%, rgba(255, 232, 206, 0.42), transparent 62%),
    linear-gradient(180deg, rgba(236, 190, 160, 0.12), rgba(70, 60, 90, 0.14));
}

.grade--joyful {
  --g-filter: saturate(1.45) brightness(1.07) contrast(1.04);
  --g-overlay:
    linear-gradient(160deg, rgba(255, 190, 90, 0.2), transparent 55%, rgba(255, 120, 80, 0.12));
}

.grade--documentary {
  --g-filter: grayscale(1) contrast(1.28) brightness(1.02);
  --g-overlay: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
}

/* --- Occasions ------------------------------------------------------------ */
.occasion-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.occasion-card {
  padding: 1.5rem 0 0.25rem;
  border-top: 1px solid var(--line);
}

.occasion-index {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--accent-2);
  margin-bottom: 0.8rem;
}

.occasion-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.occasion-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- What you receive ----------------------------------------------------- */
.receive-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.receive-copy h2 {
  margin: 0 0 2rem;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.02;
}

.receive-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.receive-list li {
  display: grid;
  grid-template-columns: 5.6rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.receive-no {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--accent-2);
  padding-top: 0.3rem;
}

.receive-list h3 {
  margin: 0 0 0.3rem;
  font-size: 1.25rem;
}

.receive-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.receive-visual {
  position: relative;
}

.deliverable-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-deep);
  box-shadow: var(--shadow);
}

.deliverable-art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 68% 32%, rgba(248, 208, 158, 0.9) 0 10%, transparent 11%),
    radial-gradient(ellipse 60% 45% at 60% 72%, rgba(150, 98, 62, 0.75), transparent 70%),
    linear-gradient(115deg, rgba(18, 86, 92, 0.28), transparent 50%, rgba(226, 120, 42, 0.26)),
    linear-gradient(160deg, #2e2118, #0e0a08 75%);
  filter: contrast(1.12) saturate(0.9);
}

.deliverable-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 5, 4, 0.92) 0 10%, transparent 10% 90%, rgba(6, 5, 4, 0.92) 90% 100%),
    radial-gradient(ellipse at 45% 55%, transparent 40%, rgba(4, 3, 2, 0.45));
  pointer-events: none;
}

.deliverable-title {
  position: absolute;
  left: 1.25rem;
  bottom: 1.1rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.deliverable-kicker {
  font-size: 0.55rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.deliverable-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  color: var(--cream);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}

.deliverable-no {
  position: absolute;
  top: 0.8rem;
  left: 1.25rem;
  z-index: 2;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: rgba(243, 234, 216, 0.7);
}

.deliverable-note {
  margin: 0.85rem 0 0;
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: var(--muted);
  text-align: right;
}

/* --- FAQ ------------------------------------------------------------------ */
.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 1.3rem 2.5rem 1.3rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--cream);
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::marker {
  content: "";
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--accent-2);
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  margin: 0 0 1.4rem;
  max-width: 46rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* --- Closing -------------------------------------------------------------- */
.closing-inner {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto;
}

.closing-inner h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  line-height: 1;
}

.closing-lede {
  color: var(--muted);
  margin-bottom: 2rem;
}

.trust-note {
  max-width: 42rem;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.7;
}

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(2rem, 4vw, 3rem) 0 1.5rem;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand .wordmark {
  font-size: 1.2rem;
}

.footer-tag {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.15rem;
  color: var(--cream-soft);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent-2);
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-legal {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
}

.footer-legal p {
  margin: 0;
  max-width: 58rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.65;
}

/* ==========================================================================
   Create page
   ========================================================================== */
.create-main {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.create-wrap {
  max-width: 66rem;
}

.create-head {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 2.5rem;
}

.create-head h1 {
  margin: 0.4rem 0 1rem;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 0.98;
}

.create-lede {
  max-width: 38rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Progress indicator */
.stepper {
  margin-bottom: 2.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.stepper ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
}

.step-item {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
}

.step-dot {
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
}

.step-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.step-item.is-current {
  color: var(--cream);
}

.step-item.is-current .step-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink-deep);
  font-weight: 700;
}

.step-item.is-done .step-dot {
  border-color: var(--accent);
  color: var(--accent-2);
}

.step-item .step-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0.2rem 0;
  margin: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.step-item .step-btn:disabled {
  cursor: default;
}

.step-item .step-btn:not(:disabled):hover {
  color: var(--cream);
}

.step-item .step-btn:not(:disabled):hover .step-dot {
  border-color: var(--accent-2);
}

/* Step panels */
.step-panel {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  background: linear-gradient(180deg, rgba(25, 20, 16, 0.78), rgba(16, 13, 11, 0.45));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-panel h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.05;
}

.step-panel h2:focus {
  outline: none;
}

.step-hint {
  max-width: 44rem;
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Fields */
.field {
  margin-bottom: 1.5rem;
  border: 0;
  padding: 0;
  min-width: 0;
}

.field > label,
.field legend,
.field-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-soft);
}

input[type="text"],
input[type="email"],
input[type="url"],
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--ink-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
  color: rgba(157, 145, 124, 0.55);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 1px var(--accent-2);
  outline: none;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--warn);
}

textarea {
  resize: vertical;
  min-height: 9rem;
}

.field-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 0.45rem;
}

.field-foot .hint {
  margin: 0;
}

.counter {
  flex: none;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.counter.is-over {
  color: var(--warn);
}

.field-error {
  margin: 0.45rem 0 0;
  color: var(--warn);
  font-size: 0.8rem;
  line-height: 1.5;
}

.field-error:empty {
  display: none;
}

/* Drop zone */
.dropzone {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.4rem) 1.25rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(243, 234, 216, 0.02);
  text-align: center;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.dropzone.is-dragover {
  border-color: var(--accent);
  background: rgba(224, 120, 63, 0.07);
}

.dropzone:focus-within {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.dropzone-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.dropzone-icon {
  width: 2.9rem;
  height: 2.9rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-2);
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
}

.dropzone-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.dropzone-title u {
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.dropzone-note {
  color: var(--muted);
  font-size: 0.76rem;
}

.photo-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Photo thumbnails */
.thumb-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
}

.thumb-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.thumb-card.is-dragging {
  opacity: 0.4;
}

.thumb-card.is-drag-over {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.thumb-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink-deep);
}

.thumb-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-no {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  padding: 0.18rem 0.4rem;
  background: rgba(16, 13, 11, 0.82);
  color: var(--cream);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
}

.thumb-caption {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: var(--ink-deep);
  color: var(--cream);
  font-family: var(--font-hand);
  font-size: 1rem;
}

.thumb-caption:focus {
  outline: 1px solid var(--accent);
  outline-offset: 0;
  box-shadow: none;
}

.thumb-actions {
  display: flex;
  gap: 0.25rem;
  padding: 0.35rem;
  border-top: 1px solid var(--line-soft);
}

.icon-btn {
  flex: 1;
  padding: 0.38rem 0.2rem;
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  color: var(--cream-soft);
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
}

.icon-btn:hover {
  border-color: var(--accent);
  color: var(--cream);
}

.icon-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Step navigation */
.step-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}

/* Mood picker */
.mood-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.mood-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.45rem;
  background: var(--ink-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.mood-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.mood-option .mood-frame {
  aspect-ratio: 16 / 10;
}

.mood-option-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  padding: 0 0.2rem;
}

.mood-option-desc {
  padding: 0 0.2rem 0.2rem;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

.mood-option:has(input:checked) {
  border-color: var(--accent);
  background: rgba(224, 120, 63, 0.07);
}

.mood-option input:checked ~ .mood-option-name {
  color: var(--accent-2);
}

.mood-option:focus-within {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

/* Length picker */
.length-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 34rem;
  margin-top: 0.35rem;
}

.length-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  background: var(--ink-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.length-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.length-num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.1;
}

.length-num small {
  margin-left: 0.15rem;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.length-desc {
  color: var(--muted);
  font-size: 0.7rem;
}

.length-option:has(input:checked) {
  border-color: var(--accent);
  background: rgba(224, 120, 63, 0.07);
}

.length-option:has(input:checked) .length-num,
.length-option input:checked ~ .length-num {
  color: var(--accent-2);
}

.length-option:focus-within {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

/* Consent */
.consent-field {
  margin: 1.5rem 0;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--cream-soft);
  font-size: 0.85rem;
  line-height: 1.55;
  cursor: pointer;
}

.checkbox input {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

/* Upload progress */
.upload-status {
  margin: 1.5rem 0 0;
}

.upload-status p {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: var(--cream-soft);
}

.progress {
  height: 6px;
  overflow: hidden;
  background: rgba(243, 234, 216, 0.12);
  border-radius: 999px;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.25s linear;
}

.form-error {
  margin: 1rem 0 0;
  color: var(--warn);
  font-size: 0.85rem;
}

.form-error:empty {
  display: none;
}

/* Success */
.success {
  padding: clamp(1.5rem, 4vw, 3rem);
  margin-top: 1rem;
  border: 1px solid var(--accent);
  background: linear-gradient(180deg, rgba(224, 120, 63, 0.08), rgba(16, 13, 11, 0.5));
  border-radius: var(--radius);
}

.success h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.02;
}

.success h2:focus {
  outline: none;
}

.success > p {
  max-width: 42rem;
  color: var(--cream-soft);
  font-size: 0.95rem;
}

.success-link {
  margin-top: 2rem;
}

.success-link label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-soft);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.link-row input {
  flex: 1 1 18rem;
  min-width: 0;
  font-size: 0.85rem;
}

.success-warning {
  margin: 0.75rem 0 0;
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 500;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ==========================================================================
   Storyboard preview
   ========================================================================== */
.preview-layout {
  display: grid;
  gap: 2rem;
}

.player {
  border: 1px solid var(--line);
  background: #070605;
  border-radius: var(--radius);
  overflow: hidden;
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050403;
}

.player-frames {
  position: absolute;
  inset: 0;
}

.player-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  will-change: opacity;
}

.player-frame.is-active {
  opacity: 1;
}

.player.cuts .player-frame {
  transition: none;
}

.player-title-card,
.player-closing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 8%;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(224, 120, 63, 0.14), transparent 65%),
    var(--ink-deep);
}

.player-title-card .p-kicker,
.player-closing-card .p-sign {
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.player-title-card .p-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4.2vw, 3rem);
  line-height: 1.02;
  color: var(--cream);
  text-wrap: balance;
}

.player-title-card .p-rule {
  width: 3rem;
  height: 1px;
  background: var(--accent);
}

.player-closing-card .p-dedication {
  max-width: 82%;
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 2.8vw, 1.7rem);
  line-height: 1.3;
  color: var(--cream-soft);
}

.player-closing-card .p-title-small {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.6vw, 1.5rem);
  color: var(--cream);
}

/* The opening and closing cards borrow the chosen mood's typography. */
.player-title-card.mood-type--nostalgic .p-title {
  font-style: italic;
}

.player-title-card.mood-type--nostalgic {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(196, 120, 54, 0.2), transparent 65%),
    var(--ink-deep);
}

.player-title-card.mood-type--cinematic .p-title {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.2rem, 3.6vw, 2.5rem);
}

.player-title-card.mood-type--cinematic {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(18, 86, 92, 0.28), transparent 65%),
    radial-gradient(ellipse at 72% 82%, rgba(226, 120, 42, 0.18), transparent 60%),
    var(--ink-deep);
}

.player-title-card.mood-type--dreamy .p-title {
  font-style: italic;
  font-weight: 300;
}

.player-title-card.mood-type--dreamy {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(236, 190, 160, 0.2), transparent 65%),
    radial-gradient(ellipse at 50% 85%, rgba(90, 80, 120, 0.2), transparent 60%),
    var(--ink-deep);
}

.player-title-card.mood-type--joyful .p-title {
  font-weight: 500;
}

.player-title-card.mood-type--joyful {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 170, 80, 0.22), transparent 65%),
    var(--ink-deep);
}

.player-title-card.mood-type--documentary .p-title {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.player-title-card.mood-type--documentary {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(200, 200, 200, 0.12), transparent 65%),
    var(--ink-deep);
}

.player-closing-card.mood-type--nostalgic .p-dedication,
.player-closing-card.mood-type--dreamy .p-dedication {
  font-style: italic;
}

.player-photo .player-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.player-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--g-filter);
  transform-origin: center;
}

.player-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--g-overlay);
  pointer-events: none;
}

.player-photo .player-subtitle {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 7%;
  z-index: 3;
  margin: 0;
  font-family: var(--font-hand);
  font-size: clamp(1rem, 3vw, 1.7rem);
  line-height: 1.25;
  color: #fff8ec;
  text-align: center;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.85), 0 0 2px rgba(0, 0, 0, 0.9);
}

.player-hud {
  position: absolute;
  top: 0.7rem;
  left: 0.85rem;
  right: 0.85rem;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(243, 234, 216, 0.75);
  pointer-events: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.player-hud .hud-mood {
  color: var(--accent-2);
}

.player-bar {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  background: var(--ink-deep);
  border-top: 1px solid var(--line);
}

.player-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.progress-wrap .progress {
  flex: 1;
}

.progress#player-progress {
  cursor: pointer;
}

.player-time {
  flex: none;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

.preview-note {
  margin: 0;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.74rem;
  font-style: italic;
}

/* Ken Burns, only while a photo frame is active and playing. */
.player-frame.is-active .kb-a {
  animation: kb-a var(--frame-dur, 4s) linear both;
}

.player-frame.is-active .kb-b {
  animation: kb-b var(--frame-dur, 4s) linear both;
}

.player.is-paused .player-frame.is-active img {
  animation-play-state: paused;
}

@keyframes kb-a {
  from { transform: scale(1.02) translate3d(-1.2%, 0, 0); }
  to { transform: scale(1.12) translate3d(1.2%, -1.5%, 0); }
}

@keyframes kb-b {
  from { transform: scale(1.12) translate3d(1.2%, -1%, 0); }
  to { transform: scale(1.02) translate3d(-1.2%, 0, 0); }
}

.player:fullscreen {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  background: #050403;
}

.player:fullscreen .player-stage {
  flex: 1;
  aspect-ratio: auto;
  height: auto;
}

.player:fullscreen .player-bar {
  flex: none;
}

/* Storyboard strip */
.storyboard-wrap {
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(25, 20, 16, 0.5);
  border-radius: var(--radius);
}

.storyboard-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.storyboard {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 0.6rem;
  max-height: 30rem;
  overflow-y: auto;
}

.storyboard li {
  background: var(--ink-deep);
  border: 1px solid var(--line-soft);
}

.storyboard li[role="button"] {
  cursor: pointer;
}

.storyboard li[role="button"]:hover {
  border-color: var(--line);
  background: rgba(25, 20, 16, 0.9);
}

.storyboard img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.sb-meta {
  padding: 0.4rem 0.45rem 0.5rem;
}

.sb-no {
  display: block;
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  color: var(--accent-2);
}

.sb-caption {
  display: -webkit-box;
  margin-top: 0.15rem;
  overflow: hidden;
  font-family: var(--font-hand);
  font-size: 0.85rem;
  line-height: 1.25;
  color: var(--cream-soft);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ==========================================================================
   Order page
   ========================================================================== */
.order-main {
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
}

.order-wrap {
  max-width: 64rem;
}

.order-state {
  padding: 2.5rem 0;
}

.order-state h1 {
  margin: 0.4rem 0 1rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.02;
}

.order-state p {
  color: var(--muted);
  max-width: 40rem;
}

.order-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.order-head h1 {
  margin: 0.4rem 0 1rem;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  line-height: 1;
}

.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.order-chip {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  color: var(--cream-soft);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.order-chip.is-mood {
  border-color: rgba(224, 120, 63, 0.5);
  color: var(--accent-2);
}

.status-panel {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: clamp(2rem, 4vw, 2.5rem);
  background: rgba(25, 20, 16, 0.5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.status-panel h2,
.film-section h2,
.photos-section h2,
.story-section h2,
.dedication-section h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.timeline {
  list-style: none;
  display: flex;
  margin: 0 0 1rem;
  padding: 0;
}

.timeline li {
  position: relative;
  flex: 1;
  padding-top: 2.1rem;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.timeline li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0.85rem;
  height: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--ink);
}

.timeline li.is-done {
  color: var(--cream-soft);
}

.timeline li.is-done::after {
  background: var(--accent);
  border-color: var(--accent);
}

.timeline li.is-done::before {
  background: var(--accent);
}

.timeline li.is-current {
  color: var(--cream);
}

.timeline li.is-current::after {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(224, 120, 63, 0.2);
}

.status-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.status-panel.is-cancelled {
  border-color: #b5543f;
}

.status-panel.is-cancelled .timeline {
  opacity: 0.4;
}

.status-panel.is-cancelled .status-note {
  color: var(--warn);
}

.film-section {
  margin-bottom: clamp(2rem, 4vw, 2.5rem);
}

.film-player {
  border: 1px solid var(--line);
  background: #050403;
}

.film-player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.film-section .btn {
  margin-top: 1rem;
}

.film-pending {
  padding: 1.5rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.photos-section {
  margin-bottom: clamp(2rem, 4vw, 2.5rem);
}

.photo-strip {
  list-style: none;
  display: flex;
  gap: 0.75rem;
  margin: 0;
  padding: 0 0 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.story-section {
  margin-bottom: clamp(2rem, 4vw, 2.5rem);
}

.order-story {
  max-width: 44rem;
  color: var(--cream-soft);
  font-size: 0.98rem;
  line-height: 1.75;
}

.order-story p {
  margin: 0 0 1rem;
  white-space: pre-line;
}

.order-story p:last-child {
  margin-bottom: 0;
}

.photo-strip .strip-caption {
  display: block;
  margin: 0;
  padding: 0.55rem 0.65rem;
  font-family: var(--font-hand, "Caveat", cursive);
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--cream-soft);
  border-top: 1px solid var(--line-soft);
}

.strip-frame {
  position: relative;
  flex: 0 0 auto;
  width: clamp(160px, 28vw, 240px);
  scroll-snap-align: start;
  background: var(--ink-deep);
  border: 1px solid var(--line);
}

.strip-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.strip-no {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  padding: 0.15rem 0.35rem;
  background: rgba(16, 13, 11, 0.78);
  color: var(--cream);
  font-size: 0.52rem;
  letter-spacing: 0.16em;
}

.strip-frame.is-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  color: var(--muted);
  font-size: 0.68rem;
}

.strip-frame.is-missing img {
  display: none;
}

.strip-frame.is-missing::after {
  content: "Frame unavailable";
}

.dedication-section blockquote {
  margin: 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  line-height: 1.4;
  color: var(--cream-soft);
}

.saved-orders {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.saved-order {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
}

.saved-order a {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.saved-order a:hover {
  color: var(--accent-2);
}

.saved-meta {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.order-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ==========================================================================
   Legal & 404 pages
   ========================================================================== */
.legal-main,
.not-found-main {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem);
}

.legal-wrap {
  max-width: 48rem;
}

.not-found-wrap {
  max-width: 42rem;
}

.legal-wrap h1,
.not-found-wrap h1 {
  margin: 0.4rem 0 1.5rem;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.02;
}

.not-found-wrap p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.75rem;
}

.legal-prose {
  color: var(--cream-soft);
  font-size: 0.95rem;
  line-height: 1.75;
}

.legal-prose h2 {
  margin: 2.25rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--cream);
}

.legal-prose p,
.legal-prose ul {
  margin: 0 0 1rem;
  color: var(--muted);
}

.legal-prose li {
  margin-bottom: 0.4rem;
}

.legal-prose a {
  color: var(--accent-2);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .occasion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }

  .filmstrip-tilt {
    width: 122%;
    margin-left: -10%;
  }

  .receive-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: start;
    gap: 2.5rem;
  }

  .preview-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .occasion-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 719px) {
  .site-nav a:not(.btn):not(.nav-films) {
    display: none;
  }

  .hero-visual {
    margin-top: 0.5rem;
  }

  .filmstrip-tilt {
    transform: rotate(-3deg);
    animation: none;
  }

  .strip-counter {
    right: 0.2rem;
  }

  .step-label {
    display: none;
  }

  .step-item {
    justify-content: center;
    flex: 1;
  }

  .step-btn {
    justify-content: center;
  }

  .stepper ol {
    gap: 0.3rem;
  }

  .thumb-grid {
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  }

  .length-option {
    padding: 0.75rem 0.6rem;
  }

  .length-num {
    font-size: 1.5rem;
  }

  .receive-list li {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .receive-no {
    padding-top: 0;
  }
}

@media (max-width: 520px) {
  .hero-actions .btn,
  .success-actions .btn,
  .order-empty-actions .btn {
    width: 100%;
  }

  .step-nav .btn {
    flex: 1 1 auto;
  }

  .mood-picker {
    grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  }

  .player-controls .btn {
    flex: 1 1 auto;
  }

  .field-foot {
    flex-direction: column;
    gap: 0.25rem;
  }

  .timeline li {
    font-size: 0.58rem;
    letter-spacing: 0.03em;
  }
}

/* --- Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal,
  html.js-reveal .reveal {
    opacity: 1;
    transform: none;
  }

  .film-art,
  .filmstrip-tilt {
    animation: none;
  }

  .player-frame.is-active img {
    animation: none !important;
  }

  .player .player-frame {
    transition: none;
  }
}
