/* ═══════════════════════════════════════════════════
   MPA VIEW TRANSITIONS — Chrome 126+
   JS overlay fallback handled in main.js
═══════════════════════════════════════════════════ */
@view-transition { navigation: auto; }

@keyframes vt-out {
  to { opacity: 0; transform: translateX(-40px); }
}
@keyframes vt-in {
  from { opacity: 0; transform: translateX(40px); }
}

::view-transition-old(root) {
  animation: vt-out 400ms cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
::view-transition-new(root) {
  animation: vt-in 400ms cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

/* ═══════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════ */
:root {
  /* Colors */
  --color-bg:         #0D0D0D;
  --color-surface:    #1a1a1a;
  --color-gold:       #FFB612;
  --color-gold-dark:  #d49700;
  --color-red:        #C8102E;
  --color-white:      #F5F5F5;
  --color-muted:      rgba(245, 245, 245, 0.5);
  --color-border:     rgba(255, 182, 18, 0.15);

  /* Typography */
  --font-display:  'Boogaloo', sans-serif;
  --font-label:    'Oswald', sans-serif;
  --font-quote:    'Lora', serif;

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   2rem;
  --space-lg:   4rem;
  --space-xl:   8rem;

  /* Timing */
  --ease-expo:  cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 250ms;
  --duration-base: 400ms;
  --duration-slow: 700ms;
}

/* Portugal palette — scoped to [data-theme="portugal"] on <body>
   Same stylesheet, completely different world. No !important needed. */
[data-theme="portugal"] {
  --color-bg:       #FAF0DC;
  --color-surface:  #F0E4C8;
  --color-primary:  #C1622F;
  --color-secondary:#2E6B9E;
  --color-white:    #1E1428;
  --color-muted:    rgba(30, 20, 40, 0.55);
  --color-border:   rgba(193, 98, 47, 0.2);
  --color-olive:    #7A8C5E;
  --color-gold:     #C1622F;
}

/* ═══════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-label);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color var(--duration-base) var(--ease-out);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

a { color: inherit; text-decoration: none; }

/* ═══════════════════════════════════════════════════
   PAGE TRANSITION OVERLAY (JS fallback for older browsers)
═══════════════════════════════════════════════════ */
.page-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-expo);
}

.page-overlay.is-active {
  opacity: 1;
  pointer-events: all;
}

/* ═══════════════════════════════════════════════════
   INTERSECTION OBSERVER REVEALS
   Single shared observer in JS reads data-delay and
   applies it as a CSS custom property --delay.
═══════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity  var(--duration-slow) var(--ease-out) var(--delay, 0ms),
    transform var(--duration-slow) var(--ease-out) var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════
   HERO — PAGE 1
═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Scroll-driven animation: bg number fades + scales as you scroll */
.hero-bg-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(160px, 38vw, 480px);
  line-height: 1;
  color: var(--color-gold);
  opacity: 0.1;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  letter-spacing: -0.04em;
  animation: goldGlow 3s ease-in-out infinite;
}

@supports (animation-timeline: scroll()) {
  .hero-bg-number {
    animation: heroBgFade linear both, goldGlow 3s ease-in-out infinite;
    animation-timeline: scroll(), auto;
    animation-range: 0% 35%, auto;
  }

  @keyframes heroBgFade {
    from { opacity: 0.1; transform: translate(-50%, -50%) scale(1); }
    to   { opacity: 0;   transform: translate(-50%, -50%) scale(1.25); }
  }
}

@keyframes goldGlow {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(255,182,18,0.2)); }
  50%       { filter: drop-shadow(0 0 60px rgba(255,182,18,0.5)) drop-shadow(0 0 100px rgba(255,182,18,0.2)); }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(80px, 20vw, 220px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.hero-sub {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

.hero-tagline {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--color-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════
   MARQUEE STRIP
   Pure CSS infinite loop. Duplicated spans so
   translateX(-50%) = exactly one copy width.
   Hover reverses direction.
═══════════════════════════════════════════════════ */
.marquee-strip {
  overflow: hidden;
  background: var(--color-gold);
  color: var(--color-bg);
  padding: 0.75rem 0;
  cursor: default;
}

.marquee-inner {
  display: inline-flex;
  white-space: nowrap;
  animation: marqueeScroll 40s linear infinite;
}

.marquee-strip:hover .marquee-inner {
  animation-direction: reverse;
}

.marquee-inner span {
  display: inline-block;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-right: 3rem;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════
   PHOTO GRID — asymmetric scrapbook layout
═══════════════════════════════════════════════════ */
.photo-section {
  padding: var(--space-lg) var(--space-md);
  max-width: 1100px;
  margin: 0 auto;
}

.photo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr auto;
  gap: 10px;
}

.photo-slot {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  overflow: hidden;
  position: relative;
}

/* Placeholder state — replaced when images are added */
.photo-slot::after {
  content: attr(data-label);
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-label);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,182,18,0.3);
  white-space: nowrap;
  pointer-events: none;
}

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: inherit;
}

.photo-hero {
  grid-row: 1 / 3;
  aspect-ratio: 3/4;
  border-radius: 4px 4px 120px 4px;
}

.photo-sm-1 {
  aspect-ratio: 4/3;
  border-radius: 4px;
}

.photo-sm-2 {
  aspect-ratio: 4/3;
  border-radius: 4px;
}

.photo-wide {
  grid-column: 1 / -1;
  aspect-ratio: 16/6;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════
   COPY BLOCK
═══════════════════════════════════════════════════ */
.copy-block {
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.copy-block .line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.copy-block .line-gold { color: var(--color-gold); }
.copy-block .line-muted { color: var(--color-muted); }

/* ═══════════════════════════════════════════════════
   STATS STRIP
═══════════════════════════════════════════════════ */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stat {
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  border-right: 1px solid var(--color-border);
}

.stat:last-child { border-right: none; }

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  color: var(--color-gold);
  margin-bottom: 0.4rem;
}

.stat-label {
  font-family: var(--font-label);
  font-weight: 400;
  font-size: clamp(0.65rem, 1.5vw, 0.78rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ═══════════════════════════════════════════════════
   CTA BUTTON
═══════════════════════════════════════════════════ */
.cta-section {
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 2.5rem;
  background: var(--color-gold);
  color: var(--color-bg);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: clamp(0.75rem, 1.5vw, 0.85rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 2px solid transparent;
  transition:
    background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.cta-btn:hover {
  background: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
  transform: translateY(-2px);
}

.cta-btn .arrow {
  transition: transform var(--duration-fast) var(--ease-out);
}

.cta-btn:hover .arrow { transform: translateX(5px); }

/* ═══════════════════════════════════════════════════
   BACK NAV
═══════════════════════════════════════════════════ */
.page-nav {
  padding: var(--space-md) var(--space-md) 0;
}

.back-link {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  opacity: 0.6;
  transition: opacity var(--duration-fast);
}

.back-link:hover { opacity: 1; }

/* ═══════════════════════════════════════════════════
   FAMILY PAGE — PAGE 2
═══════════════════════════════════════════════════ */
.family-header {
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  text-align: center;
}

.family-header h1 {
  font-family: var(--font-display);
  font-size: clamp(80px, 22vw, 200px);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--color-gold);
}

.family-header .subtitle {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--color-muted);
  margin-top: var(--space-sm);
  max-width: 520px;
  margin-inline: auto;
}

/* Gift cards */
.gifts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-md) var(--space-xl);
}

.gift-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}

.gift-card-photo {
  width: 100%;
  aspect-ratio: 4/3;
  background-color: #222;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.gift-card-photo span {
  font-family: var(--font-label);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,182,18,0.3);
}

.gift-card-body {
  padding: 1.75rem 1.75rem 2rem;
}

.gift-from {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.gift-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  color: var(--color-white);
}

.gift-divider {
  width: 32px;
  height: 2px;
  background: var(--color-gold);
  margin-bottom: 1.25rem;
  opacity: 0.5;
}

.gift-message {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-muted);
  background: rgba(255,182,18,0.04);
  border-left: 2px solid var(--color-gold);
  padding: 1rem 1rem 1rem 1.25rem;
  border-radius: 0 2px 2px 0;
  /* paper depth */
  box-shadow:
    0 1px 3px rgba(0,0,0,0.2),
    0 4px 12px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.03);
}

/* Teaser banner */
.teaser-banner {
  background: #111;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.teaser-label {
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-sm);
}

.teaser-text {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

.teaser-arrow {
  display: inline-block;
  font-size: 2rem;
  color: var(--color-gold);
  animation: pulseArrow 1.4s ease-in-out infinite;
}

@keyframes pulseArrow {
  0%, 100% { transform: translateX(0); opacity: 0.7; }
  50%       { transform: translateX(10px); opacity: 1; }
}

/* ═══════════════════════════════════════════════════
   PORTUGAL PAGE — PAGE 3
═══════════════════════════════════════════════════ */

/* Clip-path reveal — triggered by .is-revealed class added on load */
.clip-reveal {
  clip-path: inset(0 100% 0 0);
}

.clip-reveal.is-revealed {
  animation: clipWipe 800ms cubic-bezier(0.76, 0, 0.24, 1) 200ms forwards;
}

@keyframes clipWipe {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}

.pt-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}

.pt-hero-title {
  font-family: var(--font-display);
  font-size: clamp(80px, 20vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.pt-hero-sub {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: clamp(0.7rem, 2vw, 0.9rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-md);
}

.pt-hero-intro {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--color-muted);
  max-width: 560px;
  line-height: 1.65;
}

/* Chapter layout — travel magazine style */
.chapter {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.chapter:last-of-type { border-bottom: none; }

.chapter-header {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.chapter-num {
  font-family: var(--font-display);
  font-size: clamp(60px, 12vw, 110px);
  line-height: 1;
  color: var(--color-border);
  flex-shrink: 0;
}

.chapter-meta {}

.chapter-eyebrow {
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.chapter-city {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

.chapter-desc {
  font-family: var(--font-quote);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-muted);
  max-width: 640px;
  margin-bottom: var(--space-lg);
}

/* Sub-sections within chapters */
.sub-section { margin-bottom: var(--space-lg); }

.sub-title {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-primary);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-md);
}

/* Recommendation cards */
.rec-list { display: flex; flex-direction: column; gap: 12px; }

.rec-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1.25rem 1.5rem 1.4rem;
}

.rec-name {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  letter-spacing: -0.01em;
  color: var(--color-white);
  margin-bottom: 0.3rem;
}

.rec-tag {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}

.tag-star     { background: rgba(255,182,18,0.12); color: var(--color-gold); }
.tag-pick     { background: rgba(193,98,47,0.12);  color: var(--color-primary); }
.tag-local    { background: rgba(46,107,158,0.12); color: var(--color-secondary, #2E6B9E); }
.tag-iconic   { background: rgba(255,182,18,0.08); color: var(--color-gold-dark, #d49700); }

.rec-body {
  font-family: var(--font-quote);
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--color-muted);
}

/* Experiences list */
.exp-list { display: flex; flex-direction: column; gap: var(--space-md); }

.exp-item {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1rem;
  align-items: start;
}

.exp-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-gold);
  opacity: 0.35;
  line-height: 1;
  padding-top: 0.15rem;
}

.exp-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  letter-spacing: -0.01em;
  color: var(--color-white);
  margin-bottom: 0.3rem;
}

.exp-body {
  font-family: var(--font-quote);
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--color-muted);
}

/* Food grid */
.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.food-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1.25rem 1.4rem;
}

.food-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.food-desc {
  font-family: var(--font-quote);
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--color-muted);
}

/* Itinerary */
.itinerary { display: flex; flex-direction: column; }

.itin-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.itin-row:last-child { border-bottom: none; }

.itin-day {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  padding-top: 0.2rem;
}

.itin-content {}

.itin-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--color-white);
  margin-bottom: 0.25rem;
}

.itin-body {
  font-family: var(--font-quote);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--color-muted);
}

/* Family closing message */
.closing-card {
  max-width: 900px;
  margin: var(--space-xl) auto;
  padding: var(--space-lg) var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  text-align: center;
  position: relative;
}

.closing-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  pointer-events: none;
  opacity: 0.5;
}

.closing-quote {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  line-height: 1.8;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.closing-sig {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --space-lg: 2.5rem;
    --space-xl: 4rem;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .photo-hero { grid-row: auto; aspect-ratio: 4/3; border-radius: 4px; }
  .photo-wide { grid-column: auto; aspect-ratio: 4/3; }

  .stats-strip {
    grid-template-columns: 1fr;
  }

  .stat { border-right: none; border-bottom: 1px solid var(--color-border); }
  .stat:last-child { border-bottom: none; }

  .gifts-grid { grid-template-columns: 1fr; }

  .chapter-header { flex-direction: column; gap: 0.25rem; }
  .chapter-num { font-size: 48px; }

  .food-grid { grid-template-columns: 1fr 1fr; }

  .itin-row { grid-template-columns: 1fr; gap: 0.25rem; }

  .closing-card { padding: var(--space-lg) var(--space-md); }
}

@media (max-width: 480px) {
  .food-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   SCRAPBOOK — Zone A (Polaroid Wall), Zone B (Filmstrip),
   Zone C (Scatter Board)
═══════════════════════════════════════════════════ */

.scrapbook {
  padding: var(--space-xl) var(--space-md);
  background: var(--color-bg);
  overflow: hidden;
}

.scrapbook-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.scrapbook-eyebrow {
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.scrapbook-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: var(--color-white);
  margin: 0;
  line-height: 1;
}

/* ── ZONE A · POLAROID WALL ── */

.polaroid-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 1.5rem;
  padding: var(--space-md) var(--space-md) var(--space-lg);
  max-width: 1100px;
  margin: 0 auto;
}

.polaroid {
  background: #fefefe;
  padding: 0.75rem 0.75rem 2.5rem;
  box-shadow:
    0 4px 12px rgba(0,0,0,0.45),
    0 1px 3px rgba(0,0,0,0.3);
  position: relative;
  width: 180px;
  transition: transform 350ms var(--ease-out), box-shadow 350ms var(--ease-out);
  cursor: default;
}

.polaroid:hover {
  transform: scale(1.06) rotate(0deg) !important;
  box-shadow:
    0 16px 40px rgba(0,0,0,0.6),
    0 4px 12px rgba(0,0,0,0.4);
  z-index: 10;
}

.polaroid .photo-slot {
  width: 100%;
  overflow: hidden;
  background: #111;
}

.polaroid .photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.polaroid-caption {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 0.8rem;
  color: #333;
  text-align: center;
  margin: 0.5rem 0 0;
  line-height: 1.2;
}

/* Tape decoration */
.tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 20px;
  background: rgba(255, 182, 18, 0.45);
  border-radius: 2px;
  z-index: 2;
}

.tape.tape-angled {
  transform: translateX(-50%) rotate(8deg);
}

/* Rotation classes */
.rotate-left  { transform: rotate(-3.5deg); }
.rotate-right { transform: rotate(2.5deg); }
.rotate-left2 { transform: rotate(-6deg); }
.rotate-right2{ transform: rotate(4deg); }
.rotate-left3 { transform: rotate(-1.5deg); }

/* ── ZONE B · FILMSTRIP ── */

.filmstrip-wrap {
  margin: var(--space-lg) 0;
  position: relative;
}

.filmstrip-label {
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-align: center;
  margin-bottom: 0.75rem;
}

.filmstrip-track {
  position: relative;
  background: #1a1a1a;
  padding: 28px 0;
  overflow: hidden;
}

/* Sprocket holes top */
.filmstrip-track::before,
.filmstrip-track::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 22px;
  background: repeating-linear-gradient(
    to right,
    transparent 0px,
    transparent 18px,
    #0D0D0D 18px,
    #0D0D0D 30px,
    transparent 30px,
    transparent 48px
  );
  z-index: 2;
  pointer-events: none;
}

.filmstrip-track::before { top: 3px; }
.filmstrip-track::after  { bottom: 3px; }

.film-frames {
  display: flex;
  gap: 6px;
  padding: 0 var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.film-frames::-webkit-scrollbar { display: none; }

.film-frame {
  flex: 0 0 260px;
  scroll-snap-align: start;
  border: 3px solid #333;
  overflow: hidden;
  background: #111;
  position: relative;
}

.film-frame .photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms var(--ease-out);
}

.film-frame:hover .photo-slot img {
  transform: scale(1.05);
}

/* ── ZONE C · SCATTER BOARD ── */

.scatter-board {
  column-count: 4;
  column-gap: 1.25rem;
  padding: var(--space-md) 0;
  max-width: 1100px;
  margin: 0 auto;
}

.scatter-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  position: relative;
  transition: transform 350ms var(--ease-out);
}

.scatter-item:hover {
  transform: scale(1.03);
  z-index: 5;
  position: relative;
}

/* Nth-child micro-rotations for organic feel */
.scatter-item:nth-child(3n+1) { transform: rotate(-1.2deg); }
.scatter-item:nth-child(3n+2) { transform: rotate(0.8deg); }
.scatter-item:nth-child(3n+3) { transform: rotate(-2deg); }

.scatter-item:nth-child(3n+1):hover,
.scatter-item:nth-child(3n+2):hover,
.scatter-item:nth-child(3n+3):hover { transform: scale(1.04) rotate(0deg); }

/* Polaroid-style scatter items */
.scatter-item.is-polaroid {
  background: #fefefe;
  padding: 0.6rem 0.6rem 2.2rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}

.scatter-item.is-polaroid .polaroid-caption {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 0.75rem;
  color: #333;
  text-align: center;
  margin: 0.4rem 0 0;
}

/* Plain scatter items */
.scatter-item:not(.is-polaroid) .photo-slot {
  overflow: hidden;
}

.scatter-item:not(.is-polaroid) .photo-slot img {
  transition: transform 400ms var(--ease-out);
}

.scatter-item:not(.is-polaroid):hover .photo-slot img {
  transform: scale(1.06);
}

/* Shared photo slot */
.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Photo slot placeholder (no image yet) */
.photo-slot:not(:has(img[src$=".jpg"])):not(:has(img[src$=".png"])):not(:has(img[src$=".webp"])) {
  background: #1e1e1e;
  min-height: 120px;
}

/* Responsive */
@media (max-width: 900px) {
  .scatter-board { column-count: 3; }
  .polaroid-wall  { gap: 1.5rem 1rem; }
  .polaroid       { width: 155px; }
}

@media (max-width: 640px) {
  .scatter-board { column-count: 2; }
  .polaroid-wall  { gap: 1.2rem 0.75rem; }
  .polaroid       { width: 140px; }
  .film-frame     { flex: 0 0 200px; }
}

@media (max-width: 400px) {
  .scatter-board { column-count: 1; }
  .polaroid       { width: 100%; max-width: 220px; }
}

/* ═══════════════════════════════════════════════════
   PREFERS-REDUCED-MOTION
   Disable all non-essential animation and transition.
═══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }

  .marquee-inner {
    animation-play-state: paused;
  }

  .clip-reveal.is-revealed {
    animation: none;
    clip-path: inset(0 0% 0 0);
  }
}
