/* ═══════════════════════════════════════════════════
   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;
  cursor: pointer;
  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;
  cursor: pointer;
  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: 3/4;
  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; }
}

/* ═══════════════════════════════════════════════════
   PORTUGAL PAGE · PHOTO ELEMENTS
═══════════════════════════════════════════════════ */

/* Full-width cinematic band — between hero and chapters */
.chapter-band {
  width: 100%;
  height: clamp(220px, 35vw, 420px);
  overflow: hidden;
  display: block;
}

.chapter-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

/* Rec-card photo header */
.rec-img {
  width: 100%;
  height: 190px;
  overflow: hidden;
  margin-bottom: var(--space-sm);
  border-radius: 6px 6px 0 0;
}

.rec-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms var(--ease-out);
}

.rec-card:hover .rec-img img {
  transform: scale(1.06);
}

/* Experience item photo strip */
.exp-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin: 0.6rem 0 0.75rem;
  border-radius: 6px;
}

.exp-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms var(--ease-out);
}

.exp-item:hover .exp-img img {
  transform: scale(1.04);
}

/* Food card photo */
.food-img {
  width: 100%;
  height: 150px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  border-radius: 6px;
}

.food-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms var(--ease-out);
}

.food-card:hover .food-img img {
  transform: scale(1.06);
}

/* ═══════════════════════════════════════════════════
   BIRTHDAY CELEBRATION ELEMENTS
═══════════════════════════════════════════════════ */

/* Hero badge pill */
.hero-bday-badge {
  display: inline-block;
  background: var(--color-gold);
  color: #0D0D0D;
  font-family: var(--font-label);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 1.4rem;
  border-radius: 100px;
  margin-top: 1.25rem;
  animation: badgePulse 2.4s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,182,18,0.5); }
  50%       { box-shadow: 0 0 0 14px rgba(255,182,18,0); }
}

/* Confetti streamers in hero */
.hero-streamers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.streamer {
  position: absolute;
  top: -80px;
  width: 4px;
  height: 70px;
  border-radius: 2px;
  opacity: 0;
  animation: streamerFall linear infinite;
}

.streamer.s1 { left:  8%; background: var(--color-gold);  animation-duration: 4.2s; animation-delay: 0.3s;  width: 3px; height: 55px; }
.streamer.s2 { left: 17%; background: var(--color-red);   animation-duration: 5.1s; animation-delay: 1.1s;  width: 5px; height: 80px; }
.streamer.s3 { left: 32%; background: var(--color-gold);  animation-duration: 3.8s; animation-delay: 0.7s;  width: 3px; height: 60px; }
.streamer.s4 { left: 48%; background: #fff;               animation-duration: 4.6s; animation-delay: 0.0s;  width: 4px; height: 45px; opacity: 0.3; }
.streamer.s5 { left: 58%; background: var(--color-gold);  animation-duration: 5.3s; animation-delay: 1.8s;  width: 6px; height: 90px; }
.streamer.s6 { left: 71%; background: var(--color-red);   animation-duration: 4.0s; animation-delay: 0.5s;  width: 3px; height: 65px; }
.streamer.s7 { left: 83%; background: var(--color-gold);  animation-duration: 3.5s; animation-delay: 2.2s;  width: 5px; height: 50px; }
.streamer.s8 { left: 93%; background: #fff;               animation-duration: 4.9s; animation-delay: 0.9s;  width: 4px; height: 75px; opacity: 0.3; }

@keyframes streamerFall {
  0%   { transform: translateY(0)    rotate(0deg);   opacity: 0; }
  8%   { opacity: 0.9; }
  90%  { opacity: 0.9; }
  100% { transform: translateY(105vh) rotate(520deg); opacity: 0; }
}

/* Full-width birthday banner */
.bday-banner {
  background: var(--color-gold);
  color: #0D0D0D;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 0.9rem 2rem;
  overflow: hidden;
}

.bday-text {
  font-family: var(--font-label);
  font-size: clamp(0.8rem, 2.5vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bday-num-big {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  line-height: 1;
  color: var(--color-bg);
}

.bday-confetti {
  font-size: 1.4rem;
  line-height: 1;
  animation: confettiBounce 1.6s ease-in-out infinite;
}

.bday-confetti:last-child {
  animation-delay: 0.8s;
}

@keyframes confettiBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  40%       { transform: translateY(-6px) rotate(-12deg); }
  70%       { transform: translateY(-3px) rotate(8deg); }
}

/* Birthday first line in copy block */
.line-bday {
  color: var(--color-gold) !important;
  font-size: clamp(1.8rem, 6vw, 4rem) !important;
  animation: goldGlow 3s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════
   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 240px;
  scroll-snap-align: start;
  background: #fefefe;
  padding: 7px 7px 34px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.3);
  position: relative;
  overflow: visible;
}

.film-frame .photo-slot {
  overflow: hidden;
}

.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);
}

.film-frame .polaroid-caption {
  position: absolute;
  bottom: 7px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 0.75rem;
  color: #333;
  margin: 0;
}

/* ── 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; }
}

/* ═══════════════════════════════════════════════════
   PORTUGAL THEME — WARM TRAVEL JOURNAL REDESIGN
   Scoped to [data-theme="portugal"] so dark pages
   are completely unaffected.
═══════════════════════════════════════════════════ */

/* Expanded palette */
[data-theme="portugal"] {
  --color-bg:       #F9F1E2;
  --color-surface:  #EFE0C4;
  --color-gold:     #D4831C;
  --color-gold-dark:#A85E0A;
  --color-red:      #9B2335;
  --color-white:    #1A1A1A;   /* text colour on light bg */
  --color-muted:    rgba(26,26,26,0.55);
  --color-border:   rgba(193,98,47,0.22);
  --pt-orange:      #C1622F;
  --pt-blue:        #1E4D96;
  --pt-blue-lt:     #2B6CB0;
  --pt-green:       #2D5016;
  --pt-cream:       #F9F1E2;
  --pt-gold:        #D4831C;
}

/* Body */
[data-theme="portugal"] body {
  background: var(--pt-cream);
  color: #1A1A1A;
}

/* Back link */
[data-theme="portugal"] .back-link { color: var(--pt-orange); }
[data-theme="portugal"] .back-link:hover { color: var(--pt-blue); }

/* ── Hero ── */
[data-theme="portugal"] .pt-hero {
  background:
    linear-gradient(155deg, rgba(193,98,47,0.72) 0%, rgba(212,131,28,0.45) 45%, rgba(0,0,0,0.15) 100%),
    url('https://images.unsplash.com/photo-1628413283166-a7666966d26b?auto=format&fit=crop&w=1600&q=80') center / cover no-repeat;
  min-height: 92svh;
  position: relative;
  overflow: hidden;
}

[data-theme="portugal"] .pt-hero::before {
  display: none;
}

/* sardine row at foot of hero */
[data-theme="portugal"] .pt-hero::after {
  content: '🐟 · 🐟 · 🐟 · 🐟 · 🐟 · 🐟 · 🐟 · 🐟 · 🐟';
  position: absolute;
  bottom: 0.6rem;
  left: 0; right: 0;
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0.6rem;
  opacity: 0.22;
  pointer-events: none;
}

[data-theme="portugal"] .pt-hero-title {
  font-family: var(--font-display);
  font-size: clamp(80px, 20vw, 200px);
  font-style: normal;
  font-weight: 400;
  color: var(--pt-cream);
  text-shadow: 2px 4px 20px rgba(0,0,0,0.3);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

[data-theme="portugal"] .pt-hero-sub {
  font-family: var(--font-label);
  letter-spacing: 0.25em;
  color: rgba(249,241,226,0.8);
  font-size: clamp(0.65rem, 1.8vw, 0.85rem);
}

[data-theme="portugal"] .pt-hero-intro {
  font-family: var(--font-quote);
  font-style: italic;
  color: var(--pt-cream);
  opacity: 0.88;
}

/* ── Chapter band label ── */
.chapter-band { position: relative; }

.chapter-band-label {
  position: absolute;
  bottom: 1.5rem;
  left: 2rem;
  background: var(--pt-orange);
  color: #fff;
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 2px;
  z-index: 2;
}

/* ── Sardine divider between chapters ── */
.sardine-divider {
  background: var(--pt-blue);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 0.8rem 2rem;
  font-size: 1.2rem;
  letter-spacing: 1.2rem;
  overflow: hidden;
  white-space: nowrap;
}

/* ── Chapters ── */
[data-theme="portugal"] .chapter {
  background: var(--pt-cream);
  max-width: 100%;
  padding: var(--space-xl) clamp(1.5rem, 6vw, 5rem);
  border-bottom: none;
}

[data-theme="portugal"] .chapter:nth-of-type(even) {
  background: var(--pt-cream);
}

/* Azulejo tile band at top of each chapter */
[data-theme="portugal"] .chapter::before {
  content: '';
  display: block;
  height: 6px;
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--pt-orange)  0px, var(--pt-orange)  20px,
    var(--pt-blue)    20px, var(--pt-blue)    40px,
    var(--pt-gold)    40px, var(--pt-gold)    60px,
    var(--pt-green)   60px, var(--pt-green)   80px
  );
  margin-bottom: var(--space-lg);
  opacity: 0.7;
}

/* ── Chapter headers — editorial postcard ── */
[data-theme="portugal"] .chapter-header {
  background: var(--pt-orange);
  color: var(--pt-cream);
  padding: 1.75rem 2.5rem;
  border-radius: 4px;
  border-bottom: none;
  gap: 1.5rem;
  margin-bottom: var(--space-lg);
}

[data-theme="portugal"] .chapter-num {
  font-family: var(--font-display);
  font-size: clamp(48px, 10vw, 90px);
  color: rgba(249,241,226,0.25);
  line-height: 1;
}

[data-theme="portugal"] .chapter-eyebrow {
  color: rgba(249,241,226,0.7);
  letter-spacing: 0.18em;
}

[data-theme="portugal"] .chapter-city {
  color: var(--pt-cream);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  line-height: 0.9;
}

[data-theme="portugal"] .chapter-desc {
  color: #444;
  font-family: var(--font-quote);
  font-style: italic;
  border-left: 3px solid var(--pt-orange);
  padding-left: 1.25rem;
  margin-bottom: var(--space-lg);
}

/* ── Sub-section titles ── */
[data-theme="portugal"] .sub-title {
  font-family: var(--font-label);
  color: var(--pt-orange);
  border-bottom-color: var(--pt-orange);
  letter-spacing: 0.2em;
}

/* ── Rec cards — white postcard ── */
[data-theme="portugal"] .rec-card {
  background: #fff;
  border: none;
  border-radius: 4px;
  box-shadow:
    2px 3px 0 var(--pt-orange),
    4px 6px 20px rgba(0,0,0,0.08);
  padding: 0 0 1.4rem;
  overflow: hidden;
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}

[data-theme="portugal"] .rec-card:hover {
  transform: translateY(-4px) rotate(-0.3deg);
  box-shadow:
    2px 3px 0 var(--pt-orange),
    6px 12px 28px rgba(0,0,0,0.13);
}

[data-theme="portugal"] .rec-card .rec-name,
[data-theme="portugal"] .rec-card .rec-tag,
[data-theme="portugal"] .rec-card .rec-body {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

[data-theme="portugal"] .rec-name {
  font-family: var(--font-label);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--pt-orange);
  margin-bottom: 0.3rem;
  padding-top: 1.1rem;
}

[data-theme="portugal"] .rec-body {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 0.88rem;
  color: #555;
  line-height: 1.75;
}

/* Tags */
[data-theme="portugal"] .rec-tag {
  border-radius: 2px;
  font-size: 0.56rem;
  margin-bottom: 0.6rem;
}

[data-theme="portugal"] .tag-star   { background: var(--pt-blue);   color: #fff; }
[data-theme="portugal"] .tag-pick   { background: var(--pt-orange);  color: #fff; }
[data-theme="portugal"] .tag-local  { background: #7A4522;           color: #fff; }
[data-theme="portugal"] .tag-iconic { background: var(--pt-green);   color: #fff; }

/* Rec card image — stamp-style frame */
[data-theme="portugal"] .rec-img {
  border-radius: 0;
  margin-bottom: 0;
  border-bottom: 6px solid var(--pt-cream);
  height: 200px;
}

/* ── Experiences — journal entry style ── */
[data-theme="portugal"] .exp-item {
  background: #fff;
  border: none;
  border-left: 5px solid var(--pt-orange);
  padding: 1.25rem 1.5rem;
  border-radius: 0 4px 4px 0;
  box-shadow: 2px 3px 12px rgba(0,0,0,0.07);
}

[data-theme="portugal"] .exp-num {
  color: var(--pt-orange);
  font-family: var(--font-display);
  font-size: 1.6rem;
  opacity: 1;
  line-height: 1;
}

[data-theme="portugal"] .exp-title {
  font-family: var(--font-label);
  color: var(--pt-blue);
  letter-spacing: 0.05em;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

[data-theme="portugal"] .exp-body {
  font-family: var(--font-quote);
  font-style: italic;
  color: #555;
}

[data-theme="portugal"] .exp-img {
  border-radius: 3px;
  border: 5px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin: 0.6rem -0.25rem 0.75rem;
  height: 220px;
}

/* ── Food grid — sardine tin cards ── */
[data-theme="portugal"] .food-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

[data-theme="portugal"] .food-card {
  background: var(--pt-blue);
  border: 2px solid var(--pt-gold);
  border-radius: 5px;
  overflow: hidden;
  padding: 0 0 1rem;
  position: relative;
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}

/* Sardine tin key tab */
[data-theme="portugal"] .food-card::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
}

[data-theme="portugal"] .food-card:hover {
  transform: translateY(-3px) rotate(0.4deg);
  box-shadow: 0 8px 24px rgba(30,77,150,0.35);
}

[data-theme="portugal"] .food-img {
  border-radius: 0;
  margin-bottom: 0;
  height: 140px;
  border-bottom: 3px solid var(--pt-gold);
}

[data-theme="portugal"] .food-name {
  font-family: var(--font-display);
  color: #FFD166;
  font-size: 1rem;
  letter-spacing: 0.06em;
  padding: 0.7rem 0.9rem 0.2rem;
  margin: 0;
}

[data-theme="portugal"] .food-desc {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
  padding: 0 0.9rem;
}

/* ── Itinerary — diary with day stamps ── */
[data-theme="portugal"] .itin-row {
  border-bottom-color: rgba(193,98,47,0.18);
  padding: 1.5rem 0;
}

[data-theme="portugal"] .itin-day {
  font-family: var(--font-label);
  color: var(--pt-cream);
  background: var(--pt-orange);
  padding: 0.35rem 0.5rem;
  border-radius: 3px;
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-align: center;
  align-self: start;
  margin-top: 0.1rem;
  line-height: 1.4;
}

[data-theme="portugal"] .itin-title {
  font-family: var(--font-label);
  color: var(--pt-blue);
  letter-spacing: 0.04em;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

[data-theme="portugal"] .itin-body {
  font-family: var(--font-quote);
  font-style: italic;
  color: #555;
  font-size: 0.88rem;
}

/* ── Closing card — warm orange ── */
[data-theme="portugal"] .closing-card {
  background: var(--pt-orange);
  border: none;
  border-radius: 6px;
  box-shadow: 6px 8px 0 rgba(193,98,47,0.25), 0 16px 40px rgba(0,0,0,0.12);
}

[data-theme="portugal"] .closing-card::before {
  border-color: rgba(249,241,226,0.3);
}

[data-theme="portugal"] .closing-quote {
  color: var(--pt-cream);
  font-family: var(--font-quote);
  font-style: italic;
}

[data-theme="portugal"] .closing-sig {
  color: rgba(249,241,226,0.7);
  letter-spacing: 0.2em;
}

/* ── Page nav ── */
[data-theme="portugal"] .page-nav {
  background: transparent;
}

/* ═══════════════════════════════════════════════════
   ATHLETIC REDESIGN
   Steelers · CrossFit · Baseball
   Bebas Neue display · black/gold · industrial · game-day
═══════════════════════════════════════════════════ */

/* Switch display font to Bebas Neue — jersey/stadium condensed */
:root {
  --font-display: 'Bebas Neue', 'Oswald', sans-serif;
  --color-bg:     #080808;
}

/* ── HERO ── */

/* Grain texture — physical, worn quality */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
}

/* Heavier diagonal stripes — stadium seating pattern */
.hero {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent           0px,
    transparent          14px,
    rgba(255,182,18,0.055) 14px,
    rgba(255,182,18,0.055) 28px
  );
}

/* NICK — massive jersey number with gold offset */
.hero-name {
  font-size: clamp(110px, 28vw, 340px);
  letter-spacing: 0.05em;
  text-shadow:
    5px 5px 0   rgba(255,182,18,0.35),
    0   0   80px rgba(255,182,18,0.18),
    0   4px 0   #000;
}

/* Sub — rectangular gold badge, no radius */
.hero-sub {
  display: inline-block;
  background: var(--color-gold);
  color: #080808;
  padding: 0.25rem 1.4rem;
  border-radius: 0;
  letter-spacing: 0.3em;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

/* Tagline — tough uppercase condensed instead of soft italic */
.hero-tagline {
  font-family: var(--font-label);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: clamp(0.8rem, 2vw, 1rem);
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
}

/* Bg 50 — slightly more visible with Bebas */
.hero-bg-number {
  opacity: 0.12;
  letter-spacing: 0.04em;
}

/* Birthday badge — blocky, Steelers red */
.hero-bday-badge {
  border-radius: 0;
  background: var(--color-red);
  color: #fff;
  letter-spacing: 0.22em;
}

/* ── BIRTHDAY BANNER — jumbotron black/gold ── */
.bday-banner {
  background: #000;
  color: var(--color-gold);
  border-top:    3px solid var(--color-gold);
  border-bottom: 3px solid var(--color-gold);
  gap: 2rem;
}

.bday-banner::before {
  background: repeating-linear-gradient(
    90deg,
    rgba(255,182,18,0.07) 0px, rgba(255,182,18,0.07) 1px,
    transparent           1px, transparent           28px
  );
}

.bday-text    { color: var(--color-gold); letter-spacing: 0.22em; font-weight: 700; }
.bday-num-big { color: var(--color-gold); font-size: clamp(2rem, 6vw, 3.5rem); }

/* ── MARQUEE — stadium ticker ── */
.marquee-strip {
  background: var(--color-gold);
  border-top:    4px solid #000;
  border-bottom: 4px solid #000;
  padding: 1rem 0;
}

.marquee-inner span { font-weight: 700; letter-spacing: 0.24em; }

/* ── SCRAPBOOK HEADER ── */
.scrapbook .scrapbook-title {
  font-size: clamp(3.5rem, 10vw, 8rem);
  letter-spacing: 0.04em;
}

/* ── COPY BLOCK — Steelers image background + text highlights ── */
.copy-block {
  position: relative;
  z-index: 0;
  max-width: none;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.copy-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(8,8,8,0.62), rgba(8,8,8,0.62)),
    url('/images/s.jpg') center / cover no-repeat;
  z-index: -1;
  pointer-events: none;
}

.copy-block .line {
  display: inline;
  letter-spacing: 0.04em;
  line-height: 1.3;
  background: rgba(8,8,8,0.68);
  padding: 0.06em 0.3em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  text-shadow: 0 0 30px rgba(255,182,18,0.5), 0 2px 8px rgba(0,0,0,0.9);
}

/* ── STATS STRIP — scoreboard ── */
.stats-strip {
  background: #080808;
  border-top:    4px solid var(--color-gold);
  border-bottom: 4px solid var(--color-gold);
}

.stat-number {
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  letter-spacing: 0.02em;
  text-shadow: 0 0 40px rgba(255,182,18,0.35);
}

.stat-label {
  font-weight: 600;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.4);
}

/* ── CTA BUTTON — blocky, no radius ── */
.cta-btn {
  border-radius: 0;
  padding: 1.3rem 3.5rem;
  letter-spacing: 0.28em;
  font-weight: 700;
  font-size: 0.78rem;
  border-width: 3px;
}

/* ── PRESERVE Boogaloo on Portugal page ── */
[data-theme="portugal"] .pt-hero-title,
[data-theme="portugal"] .chapter-city,
[data-theme="portugal"] .chapter-num {
  font-family: 'Boogaloo', sans-serif;
}

/* ═══════════════════════════════════════════════════
   MOODBOARD REFRESH — APRIL 2026
   ① Hero      → Steelers steel-city energy
   ② Scrapbook → vintage baseball / Americana parchment
   ③ Portugal  → richer azulejo tiles & market warmth
═══════════════════════════════════════════════════ */

/* ─── ① HERO · Steelers ─── */

/* Ghost diagonal gold stripes on the black hero — like stadium seat patterns */
.hero {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent           0px,
    transparent          18px,
    rgba(255,182,18,0.04) 18px,
    rgba(255,182,18,0.04) 36px
  );
}

/* Heavyweight sticker-style drop shadow on NICK */
.hero-name {
  text-shadow:
    0  2px  0    #000,
    0  8px 30px  rgba(0,0,0,0.85),
    0  0   80px  rgba(255,182,18,0.12);
}

/* Stadium scoreboard border on marquee */
.marquee-strip {
  border-top:    3px solid #000;
  border-bottom: 3px solid #000;
  padding: 0.95rem 0;
}

/* Bday banner: vertical pin-stripe over gold */
.bday-banner {
  position: relative;
}

.bday-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(0,0,0,0.06) 0px, rgba(0,0,0,0.06) 1px,
    transparent      1px, transparent      28px
  );
  pointer-events: none;
}

/* ─── ② SCRAPBOOK · Vintage Baseball Americana ─── */

/* CrossFit image via ::before so z-index is reliable */
.scrapbook {
  position: relative;
  z-index: 0;           /* creates stacking context */
  background: #080808;
}

.scrapbook::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/cr.png') center / cover no-repeat;
  opacity: 0.22;
  z-index: -1;          /* below all child content, above .scrapbook bg-color */
  pointer-events: none;
}

/* Text colours back to light */
.scrapbook .scrapbook-title {
  color: var(--color-white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

.scrapbook .scrapbook-eyebrow { color: var(--color-gold); }
.scrapbook .filmstrip-label   { color: var(--color-muted); }

/* Gold rule under header */
.scrapbook-header {
  border-bottom: 2px solid rgba(255,182,18,0.25);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-lg);
}

/* Warmer amber tape — like old masking tape */
.tape { background: rgba(205, 150, 50, 0.58); }

/* ─── ③ PORTUGAL · Richer tiles & market warmth ─── */

/* Push the hero overlay harder — more terracotta + cobalt kiss on far edge */
[data-theme="portugal"] .pt-hero {
  background:
    linear-gradient(155deg,
      rgba(193,98,47,0.84)  0%,
      rgba(212,131,28,0.55) 48%,
      rgba(30,77,150,0.30)  100%),
    url('https://images.unsplash.com/photo-1628413283166-a7666966d26b?auto=format&fit=crop&w=1600&q=80') center / cover no-repeat;
}

/* Taller, fully-saturated azulejo tile stripe with white grout lines */
[data-theme="portugal"] .chapter::before {
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    #1E4D96 0px,  #1E4D96 18px,
    #fff    18px, #fff    21px,
    #C1622F 21px, #C1622F 39px,
    #fff    39px, #fff    42px,
    #D4831C 42px, #D4831C 60px,
    #fff    60px, #fff    63px,
    #2D5016 63px, #2D5016 81px,
    #fff    81px, #fff    84px
  );
  opacity: 1;
}

/* Sardine divider — deep cobalt with gold sardines and spiced borders */
.sardine-divider {
  background: linear-gradient(135deg, #1A3D8A 0%, #112F6E 100%);
  color: rgba(255,210,80,0.9);
  border-top:    3px solid #D4831C;
  border-bottom: 3px solid #D4831C;
  font-size: 1.35rem;
  letter-spacing: 0.9rem;
  padding: 1rem 2rem;
}

/* Postage-stamp inset frame on chapter headers */
[data-theme="portugal"] .chapter-header {
  outline: 3px solid rgba(249,241,226,0.35);
  outline-offset: -10px;
}

/* Thicker left-rule on chapter descriptions */
[data-theme="portugal"] .chapter-desc {
  border-left-width: 4px;
}

/* ═══════════════════════════════════════════════════
   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);
  }
}
