/* ========================================
   300 km pour la vie — Calendriers de l'avent
   Design: Warm, elegant, festive but restrained
   Palette: Deep burgundy, warm ivory, gold accent
   ======================================== */

/* --- Design Tokens --- */
:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 7.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'General Sans', 'Helvetica Neue', sans-serif;

  /* Color — Custom palette derived from subject (festive, warm, charitable) */
  --color-bg: #FBF8F3;
  --color-surface: #F5F0E8;
  --color-surface-2: #EFE9DF;
  --color-surface-offset: #E8E0D2;
  --color-divider: #D9D0C2;
  --color-border: #C9BFAF;

  --color-text: #2A1F1A;
  --color-text-muted: #6B5D50;
  --color-text-faint: #A89B8A;
  --color-text-inverse: #FBF8F3;

  /* Primary — deep burgundy (festive, serious, warm) */
  --color-primary: #8B1A1A;
  --color-primary-hover: #6E1414;
  --color-primary-active: #530F0F;
  --color-primary-highlight: #F0DADA;

  /* Gold accent — festive elegance */
  --color-gold: #C9A227;
  --color-gold-hover: #B08D1F;
  --color-gold-highlight: #F5EAC8;

  /* Forest green — subtle festive secondary */
  --color-green: #2D4A2D;
  --color-green-highlight: #DDE8DD;

  /* Blue (for calendar variants) */
  --color-blue: #1B3A5B;
  --color-blue-highlight: #D8E2ED;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(42, 31, 26, 0.08);
  --shadow-md: 0 4px 16px rgba(42, 31, 26, 0.1);
  --shadow-lg: 0 16px 48px rgba(42, 31, 26, 0.15);

  /* Content widths */
  --content-narrow: 680px;
  --content-default: 1080px;
  --content-wide: 1280px;
}

/* Dark mode */
[data-theme='dark'] {
  --color-bg: #16110E;
  --color-surface: #1E1813;
  --color-surface-2: #251E18;
  --color-surface-offset: #2B231C;
  --color-divider: #332A22;
  --color-border: #3D3328;

  --color-text: #E8DFD5;
  --color-text-muted: #A89B8A;
  --color-text-faint: #6B5D50;
  --color-text-inverse: #16110E;

  --color-primary: #C75555;
  --color-primary-hover: #D67070;
  --color-primary-active: #E08A8A;
  --color-primary-highlight: #3A2222;

  --color-gold: #E0BE4A;
  --color-gold-hover: #ECD080;
  --color-gold-highlight: #3D3520;

  --color-green: #6A9A6A;
  --color-green-highlight: #2A3A2A;

  --color-blue: #6A9AC8;
  --color-blue-highlight: #1E2A35;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
}

/* System dark mode fallback */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #16110E;
    --color-surface: #1E1813;
    --color-surface-2: #251E18;
    --color-surface-offset: #2B231C;
    --color-divider: #332A22;
    --color-border: #3D3328;
    --color-text: #E8DFD5;
    --color-text-muted: #A89B8A;
    --color-text-faint: #6B5D50;
    --color-text-inverse: #16110E;
    --color-primary: #C75555;
    --color-primary-hover: #D67070;
    --color-primary-active: #E08A8A;
    --color-primary-highlight: #3A2222;
    --color-gold: #E0BE4A;
    --color-gold-hover: #ECD080;
    --color-gold-highlight: #3D3520;
    --color-green: #6A9A6A;
    --color-green-highlight: #2A3A2A;
    --color-blue: #6A9AC8;
    --color-blue-highlight: #1E2A35;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  }
}

/* --- Base Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  hanging-punctuation: first last;
  scroll-padding-top: 80px;
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: clip;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul[role='list'], ol[role='list'] {
  list-style: none;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  line-height: 1.15;
  font-family: var(--font-display);
  font-weight: 500;
}

p, li, figcaption {
  text-wrap: pretty;
  max-width: 72ch;
}

::selection {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-interactive);
}

/* --- Layout --- */
.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--content-narrow);
}

.section {
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
}

.section--cause {
  background: var(--color-surface);
}

.section--story {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
}

.section--team {
  background: var(--color-bg);
}

.section--order {
  background: var(--color-surface);
}

.section--delivery {
  background: var(--color-bg);
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}

.section__head {
  margin-bottom: var(--space-12);
  max-width: 60ch;
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.section__title {
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}

.section__lead {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  transition: all var(--transition-interactive);
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
}

.btn--secondary {
  background: var(--color-gold);
  color: #1a1208;
}

.btn--secondary:hover {
  background: var(--color-gold-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-inverse);
  border: 1.5px solid rgba(251, 248, 243, 0.4);
}

.btn--ghost:hover {
  background: rgba(251, 248, 243, 0.1);
  border-color: rgba(251, 248, 243, 0.7);
}

.btn--small {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn--small:hover {
  background: var(--color-primary-hover);
}

.btn--full {
  width: 100%;
}

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--color-bg) 85%, transparent);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.nav--scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.nav__logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  object-fit: cover;
}

.nav__brand-text {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav__brand-text em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-text-muted);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}

.nav__links a:hover {
  color: var(--color-text);
}

.nav__cta {
  background: var(--color-primary);
  color: var(--color-text-inverse) !important;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-weight: 600;
}

.nav__cta:hover {
  background: var(--color-primary-hover);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-interactive);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition-slow), opacity var(--transition-slow), visibility var(--transition-slow);
}

.mobile-menu--open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mobile-menu a {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  padding: var(--space-2) 0;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: var(--space-20) var(--space-6);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2D4A2D 0%, #1a3a1a 30%, #5C1A1A 70%, #8B1A1A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__placeholder span {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.7) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #FBF8F3;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-gold);
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  font-weight: 400;
  color: rgba(251, 248, 243, 0.9);
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.hero__desc {
  font-size: var(--text-base);
  color: rgba(251, 248, 243, 0.75);
  max-width: 42ch;
  line-height: 1.7;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.hero__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-4);
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}

.hero__scroll-hint span {
  display: block;
  width: 2px;
  height: 32px;
  background: rgba(251, 248, 243, 0.4);
  border-radius: 2px;
  animation: scrollHint 2s ease-in-out infinite;
}

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

@keyframes scrollHint {
  0%, 100% { transform: scaleY(0.5); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 0.7; }
}

/* --- Calendars --- */
.calendars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

@media (min-width: 900px) {
  .calendars {
    grid-template-columns: repeat(4, 1fr);
  }
}

.calendar {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
  border: 1px solid var(--color-divider);
  display: flex;
  flex-direction: column;
}

.calendar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.calendar__image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.calendar__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
}

/* Color-coded placeholders */
.calendar--red .calendar__placeholder {
  background: linear-gradient(135deg, #C0392B 0%, #8B1A1A 100%);
}
.calendar--blue .calendar__placeholder {
  background: linear-gradient(135deg, #2E5C8A 0%, #1B3A5B 100%);
}
.calendar--white .calendar__placeholder {
  background: linear-gradient(135deg, #F5F0E8 0%, #E0D5C0 100%);
  color: rgba(42, 31, 26, 0.4);
}
.calendar--dark .calendar__placeholder {
  background: linear-gradient(135deg, #1B2A4A 0%, #0D1525 100%);
}

.calendar__tag {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.calendar__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex-grow: 1;
}

.calendar__name {
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.25;
}

.calendar__flavors {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

.calendar__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-divider);
}

.calendar__price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-primary);
}

.calendars__note {
  text-align: center;
  margin-top: var(--space-8);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* --- Cause Section --- */
.cause__hero-photo {
  margin: 0 auto var(--space-8);
  max-width: var(--content-narrow);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cause__hero-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.cause__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text);
  max-width: 68ch;
  margin-inline: auto;
}

.cause__text p {
  font-size: var(--text-base);
}

.cause__quote {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-style: italic;
  font-weight: 400;
  text-align: center;
  color: var(--color-primary);
  margin-block: var(--space-12);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.cause__quote--story {
  margin-block: var(--space-4) var(--space-10);
  text-align: left;
}

.cause__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.gallery__item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-surface-offset), var(--color-surface-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* --- Timeline --- */
.story__intro {
  max-width: 68ch;
  margin-bottom: var(--space-16);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text-muted);
}

.timeline {
  position: relative;
  padding-left: 0;
}

.timeline__line {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-divider) 0%, var(--color-primary) 50%, var(--color-gold) 100%);
  opacity: 0.3;
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 48px 200px 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-10);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline__item--hidden {
  opacity: 0;
  transform: translateY(30px);
}

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

.timeline__marker {
  position: absolute;
  left: 12px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 3px solid var(--color-primary);
  z-index: 1;
}

.timeline__marker--featured {
  background: var(--color-gold);
  border-color: var(--color-gold);
  width: 20px;
  height: 20px;
  left: 10px;
  box-shadow: 0 0 0 4px var(--color-gold-highlight);
}

.timeline__photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.timeline__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-surface-offset), var(--color-surface-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.timeline__content {
  padding-top: 0;
}

.timeline__year {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-2);
}

.timeline__content p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.timeline__highlight {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text) !important;
  font-size: var(--text-base) !important;
}

.timeline__collecte {
  font-size: var(--text-sm) !important;
  color: var(--color-gold-hover) !important;
  font-weight: 500;
}

.timeline__item--featured .timeline__content {
  background: var(--color-gold-highlight);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--color-gold);
}

/* --- Team --- */
.team {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.team__member--lead {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-8);
  align-items: start;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--color-divider);
}

.team__member--lead .team__photo {
  aspect-ratio: 1;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

.team__member {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-divider);
  display: flex;
  flex-direction: column;
}

.team__photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.team__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-surface-offset), var(--color-surface-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.team__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex-grow: 1;
}

.team__name {
  font-size: var(--text-lg);
  font-weight: 600;
}

.team__role {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.team__bio {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.team__bio p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.team__member--lead .team__bio p {
  font-size: var(--text-base);
}

/* --- Order Section --- */
.order__paths {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  max-width: 700px;
  margin-inline: auto;
}

.order__path {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  border: 1px solid var(--color-divider);
}

.order__path--interac {
  border-color: var(--color-gold);
  background: linear-gradient(180deg, var(--color-gold-highlight) 0%, var(--color-bg) 100%);
}

.order__icon {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.order__path--interac .order__icon {
  color: var(--color-gold-hover);
}

.order__icon svg {
  width: 100%;
  height: 100%;
}

.order__path-title {
  font-size: var(--text-lg);
  font-weight: 600;
}

.order__path-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 36ch;
}

.order__interac-info {
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  text-align: center;
  width: 100%;
}

.order__interac-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.order__interac-value {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-gold-hover);
  font-style: italic;
}

/* --- Interac Form --- */
.interac-form {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.interac-form--open {
  max-height: 2000px;
}

.interac-form__inner {
  margin-top: var(--space-8);
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--color-divider);
  max-width: 640px;
  margin-inline: auto;
}

.interac-form__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.interac-form__note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form__field label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.form__field legend {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.form__field .required {
  color: var(--color-primary);
}

.form__field .optional {
  color: var(--color-text-faint);
  font-weight: 400;
}

.form__field input,
.form__field textarea {
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}

.form__field input[type="number"] {
  max-width: 80px;
}

.form__field--quantities {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-2) 0;
}

.qty-row label {
  font-size: var(--text-sm);
  font-weight: 400;
}

.form__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
}

.form__total strong {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
}

.form__disclaimer {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
  text-align: center;
}

/* --- Delivery --- */
.delivery {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.delivery__icon {
  width: 56px;
  height: 56px;
  color: var(--color-primary);
  opacity: 0.6;
}

.delivery__icon svg {
  width: 100%;
  height: 100%;
}

.delivery__title {
  font-size: var(--text-xl);
}

.delivery__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 56ch;
  line-height: 1.7;
}

/* --- Footer --- */
.footer {
  background: var(--color-text);
  color: rgba(251, 248, 243, 0.8);
  padding-block: var(--space-16) var(--space-8);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-8);
  align-items: start;
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(251, 248, 243, 0.1);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer__logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  object-fit: cover;
}

.footer__name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: #FBF8F3;
}

.footer__tagline {
  font-size: var(--text-xs);
  color: rgba(251, 248, 243, 0.5);
}

.footer__links {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  font-size: var(--text-sm);
  color: rgba(251, 248, 243, 0.7);
}

.footer__links a:hover {
  color: #FBF8F3;
}

.footer__cause {
  font-size: var(--text-xs);
  color: rgba(251, 248, 243, 0.4);
  text-align: right;
}

.footer__copy {
  text-align: center;
  font-size: var(--text-xs);
  color: rgba(251, 248, 243, 0.3);
  margin-top: var(--space-6);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__brand-text {
    font-size: var(--text-sm);
  }

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

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

  .timeline__item {
    grid-template-columns: 40px 1fr;
    gap: var(--space-4);
  }

  .timeline__photo {
    display: none;
  }

  .timeline__line {
    left: 16px;
  }

  .timeline__marker {
    left: 8px;
  }

  .timeline__marker--featured {
    left: 6px;
  }

  .team__member--lead {
    grid-template-columns: 1fr;
    padding: var(--space-5);
  }

  .team__member--lead .team__photo {
    max-width: 200px;
    aspect-ratio: 1;
    margin-inline: auto;
  }

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

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

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

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand {
    justify-content: center;
  }

  .footer__cause {
    text-align: center;
  }

  .hero__title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .calendar__footer {
    flex-direction: column;
    gap: var(--space-3);
    align-items: stretch;
  }

  .calendar__price {
    text-align: center;
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .timeline__item {
    opacity: 1 !important;
    transform: none !important;
  }
  
  .timeline__item--hidden {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ========================================
   NEW TIMELINE — Vertical + Horizontal
   ======================================== */

/* --- Toggle --- */
.tl-toggle {
  display: flex;
  gap: var(--space-2);
  margin: var(--space-8) auto var(--space-12);
  justify-content: center;
  background: var(--color-surface);
  padding: var(--space-1);
  border-radius: var(--radius-full);
  width: fit-content;
}

.tl-toggle__btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all var(--transition-interactive);
  cursor: pointer;
}

.tl-toggle__btn[aria-selected="true"] {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.tl-toggle__btn svg {
  flex-shrink: 0;
}

.tl {
  position: relative;
}

.tl[hidden] {
  display: none;
}

/* --- Shared card elements --- */
.tl-v__collecte, .tl-h__collecte {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-gold);
}

.tl-v__collecte-method, .tl-h__collecte-method {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
}

.tl-v__collecte-label, .tl-h__collecte-label {
  display: block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.tl-v__collecte-amount, .tl-h__collecte-amount {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-gold);
  white-space: nowrap;
}

.tl-v__collecte-amount--goal, .tl-h__collecte-amount--goal {
  color: #fff;
}

.tl-v__collecte-photo, .tl-h__collecte-photo {
  margin-top: var(--space-3);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.tl-v__collecte-photo img, .tl-h__collecte-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tl-v__amount-flag, .tl-h__amount-flag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gold);
  background: rgba(201, 162, 39, 0.15);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-2);
}

.tl-v__amount-flag--goal, .tl-h__amount-flag--goal {
  color: #fff;
  background: var(--color-primary);
}

.tl-v__text-row, .tl-h__text-row {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.tl-v__isaac-chip, .tl-h__isaac-chip {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.tl-v__isaac-chip img, .tl-h__isaac-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tl-v__text-row p, .tl-h__text-row p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  flex: 1;
}

/* --- VERTICAL TIMELINE --- */
.tl--vertical {
  position: relative;
  padding-left: 0;
}

.tl-v__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-divider) 0%, var(--color-primary) 30%, var(--color-gold) 100%);
  opacity: 0.3;
  transform: translateX(-50%);
}

.tl-v__item {
  position: relative;
  width: 50%;
  padding: var(--space-4) var(--space-8);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.tl-v__item--visible {
  opacity: 1;
  transform: translateY(0);
}

.tl-v__item--left {
  left: 0;
  text-align: right;
}

.tl-v__item--right {
  left: 50%;
  text-align: left;
}

.tl-v__item--left .tl-v__text-row {
  flex-direction: row-reverse;
}

.tl-v__item--left .tl-v__collecte {
  flex-direction: row-reverse;
}

.tl-v__item--left .tl-v__collecte-method {
  text-align: right;
}

.tl-v__marker {
  position: absolute;
  top: var(--space-8);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 3px solid var(--color-primary);
  z-index: 2;
}

.tl-v__item--left .tl-v__marker {
  right: -8px;
}

.tl-v__item--right .tl-v__marker {
  left: -8px;
}

.tl-v__marker--featured {
  background: var(--color-gold);
  border-color: var(--color-gold);
  width: 20px;
  height: 20px;
  box-shadow: 0 0 0 4px var(--color-gold-highlight);
}

.tl-v__card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-text);
}

.tl-v__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.tl-v__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.75) 100%);
  z-index: 1;
}

.tl-v__body {
  position: relative;
  z-index: 2;
  padding: var(--space-6);
}

.tl-v__year {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: #fff;
  display: block;
  margin-bottom: var(--space-2);
  line-height: 1;
}

.tl-v__card--highlight {
  border: 2px solid var(--color-gold);
}

.tl-v__card--featured {
  border: 2px solid var(--color-gold);
  box-shadow: 0 0 0 4px var(--color-gold-highlight), var(--shadow-lg);
}

/* --- HORIZONTAL TIMELINE --- */
.tl-h__nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.tl-h__nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: all var(--transition-interactive);
  cursor: pointer;
}

.tl-h__nav-btn:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

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

.tl-h__nav-btn:disabled:hover {
  background: var(--color-surface);
  color: var(--color-text-muted);
  border-color: var(--color-border);
}

.tl-h__progress {
  flex: 1;
  height: 4px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.tl-h__progress-bar {
  height: 100%;
  width: 11%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
  border-radius: var(--radius-full);
  transition: width 0.1s linear;
}

.tl-h__track {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: var(--space-4) var(--space-2);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.tl-h__track::-webkit-scrollbar {
  display: none;
}

.tl-h__card {
  flex: 0 0 min(78vw, 900px);
  scroll-snap-align: center;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-text);
  min-height: 420px;
  display: flex;
  align-items: flex-end;
}

.tl-h__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.tl-h__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 0.85) 100%);
  z-index: 1;
}

.tl-h__body {
  position: relative;
  z-index: 2;
  padding: var(--space-8);
  width: 100%;
}

.tl-h__year {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: #fff;
  display: block;
  margin-bottom: var(--space-3);
  line-height: 1;
}

.tl-h__card--highlight {
  border: 2px solid var(--color-gold);
}

.tl-h__card--featured {
  border: 2px solid var(--color-gold);
  box-shadow: 0 0 0 4px var(--color-gold-highlight), var(--shadow-lg);
}

/* --- Responsive: Mobile --- */
@media (max-width: 768px) {
  /* Vertical: single column, left spine */
  .tl-v__line {
    left: 20px;
    transform: none;
  }

  .tl-v__item {
    width: 100%;
    padding: var(--space-4) 0 var(--space-4) var(--space-12);
    text-align: left !important;
  }

  .tl-v__item--left,
  .tl-v__item--right {
    left: 0;
  }

  .tl-v__item--left .tl-v__text-row,
  .tl-v__item--left .tl-v__collecte {
    flex-direction: row;
  }

  .tl-v__item--left .tl-v__collecte-method {
    text-align: left;
  }

  .tl-v__item--left .tl-v__marker,
  .tl-v__item--right .tl-v__marker {
    left: 12px;
    right: auto;
  }

  .tl-v__marker--featured {
    left: 10px;
  }

  /* Horizontal: narrower cards */
  .tl-h__card {
    flex: 0 0 86vw;
    min-height: 380px;
  }

  .tl-h__body {
    padding: var(--space-6);
  }

  .tl-h__year {
    font-size: var(--text-2xl);
  }

  .tl-v__isaac-chip, .tl-h__isaac-chip {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .tl-v__body {
    padding: var(--space-4);
  }

  .tl-v__text-row {
    flex-direction: column;
    gap: var(--space-2);
  }

  .tl-v__item--left .tl-v__text-row {
    flex-direction: column;
  }

  .tl-v__isaac-chip {
    width: 40px;
    height: 40px;
  }

  .tl-h__card {
    flex: 0 0 90vw;
    min-height: 340px;
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .tl-v__item {
    opacity: 1 !important;
    transform: none !important;
  }

  .tl-h__track {
    scroll-behavior: auto;
  }
}

/* ========================================
   IMMERSIVE TIMELINE — Full-viewport sticky background
   ======================================== */

.immersive {
  position: relative;
  /* No overflow constraints — sticky needs clean ancestors */
}

.immersive__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  z-index: 0;
}

.immersive__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 800ms ease, transform 1200ms ease;
}

.immersive__bg.is-active {
  opacity: 1;
  transform: scale(1);
}

.immersive__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.65) 100%);
}

.immersive__year-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 16rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
  pointer-events: none;
  z-index: 1;
  white-space: nowrap;
}

.immersive__steps {
  position: relative;
  z-index: 2;
  margin-top: calc(-100svh);
}

.immersive__step {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4rem, 8vw, 8rem) var(--space-6);
}

.immersive__card {
  width: min(960px, 100%);
  color: #fff;
  background: rgba(22, 17, 14, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.immersive__card--highlight {
  border-color: rgba(201, 162, 39, 0.4);
}

.immersive__card--featured {
  border: 2px solid var(--color-gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.15), 0 24px 80px rgba(0, 0, 0, 0.4);
}

.immersive__year {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 600;
  line-height: 0.9;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

.immersive__amount {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--space-5);
  line-height: 1.2;
}

.immersive__amount--goal {
  color: var(--color-gold);
}

.immersive__main {
  display: grid;
  grid-template-columns: minmax(200px, 0.45fr) 1fr;
  gap: var(--space-6);
  align-items: start;
}

.immersive__isaac {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.immersive__isaac img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.immersive__copy p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-3);
}

.immersive__copy h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  color: #fff;
}

.immersive__collecte {
  font-size: var(--text-sm);
  color: var(--color-gold);
  background: rgba(201, 162, 39, 0.1);
  border-left: 3px solid var(--color-gold);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  margin-top: var(--space-3);
}

.immersive__collecte strong {
  color: var(--color-gold);
}

.immersive__collecte-photo {
  margin-top: var(--space-5);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.immersive__collecte-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Horizontal timeline amount styling */
.tl-h__amount {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}

.tl-h__amount--goal {
  color: #fff;
  background: var(--color-primary);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  display: inline-block;
}

.tl-h__collecte {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
  background: rgba(201, 162, 39, 0.1);
  border-left: 3px solid var(--color-gold);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  margin-top: var(--space-3);
}

.tl-h__collecte strong {
  color: var(--color-gold);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .immersive__step {
    min-height: auto;
    padding-block: var(--space-20);
  }

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

  .immersive__isaac {
    width: min(65vw, 260px);
    aspect-ratio: 4 / 5;
    margin-inline: auto;
  }

  .immersive__card {
    padding: var(--space-5);
  }

  .immersive__year {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .immersive__year-display {
    font-size: clamp(6rem, 30vw, 10rem);
  }
}

@media (max-width: 480px) {
  .immersive__isaac {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .immersive__collecte-photo {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .immersive__bg {
    transition: none;
    transform: none;
  }
}

/* Fix section overflow for sticky */
.section--story {
  overflow: visible;
}

.section--story .container {
  overflow: visible;
}

/* ========================================
   IMMERSIVE TIMELINE — Updated card structure
   ======================================== */

.immersive__subtitle {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-4);
  font-style: italic;
}

.immersive__card .immersive__isaac {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-5);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.immersive__card .immersive__isaac img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.immersive__card .immersive__copy {
  margin-bottom: var(--space-4);
}

.immersive__card .immersive__copy p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-3);
}

.immersive__card .immersive__collecte-photo {
  margin-top: 0;
  margin-bottom: var(--space-4);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.immersive__card .immersive__collecte-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.immersive__card .immersive__collecte {
  font-size: var(--text-sm);
  color: var(--color-gold);
  background: rgba(201, 162, 39, 0.1);
  border-left: 3px solid var(--color-gold);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
}

.immersive__card .immersive__collecte strong {
  color: var(--color-gold);
}

/* Mobile: keep isaac photo full width but not too tall */
@media (max-width: 768px) {
  .immersive__card .immersive__isaac {
    aspect-ratio: 16 / 9;
  }
}

/* ========================================
   IMMERSIVE — Final card structure overrides
   ======================================== */

.immersive__card .immersive__isaac {
  width: min(45%, 360px);
  aspect-ratio: 4 / 5;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.immersive__card .immersive__isaac img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.immersive__subtitle {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  font-style: normal;
  margin-bottom: var(--space-4);
}

.immersive__collecte-photo--2025 img {
  object-position: center top;
}

@media (max-width: 768px) {
  .immersive__card .immersive__isaac {
    width: min(70vw, 280px);
    aspect-ratio: 4 / 5;
    margin-inline: auto;
  }
}

/* Subtitle tweak: smaller, no gap before description */
.immersive__subtitle {
  font-size: var(--text-lg);
  margin-bottom: 0;
}
.immersive__subtitle + .immersive__copy p:first-child { margin-top: 0; }

/* Subtitle size: midway between text-lg and text-xl */
.immersive__subtitle {
  font-size: calc((var(--text-lg) + var(--text-xl)) / 2);
}

/* Hero test layout: preorder → calendars → team photo → edition → title */
.hero__content > .hero__subtitle { margin-top: calc(-1 * var(--space-3)); }
.hero__team {
  width: min(260px, 60vw);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(201, 162, 39, 0.5);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}
.hero__team img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__eyebrow--edition { margin-bottom: calc(-1 * var(--space-2)); }

/* Remove gaps: preorder→calendars, edition→title */
.hero__content > .hero__subtitle { margin-top: calc(-1 * var(--space-4)); line-height: 1.2; }
.hero__eyebrow--edition { margin-bottom: calc(-1 * var(--space-4)); }

/* Condense hero vertically */
.hero__content { gap: var(--space-3); }
.hero__content > .hero__subtitle { margin-top: calc(-1 * var(--space-3)); }
.hero__eyebrow--edition { margin-bottom: calc(-1 * var(--space-3)); }
.hero__team { width: min(210px, 52vw); margin-block: var(--space-1); }
.hero__actions { margin-top: var(--space-2); }
@media (min-width: 769px) { .hero__title { font-size: clamp(2.75rem, 1rem + 6vw, 5.5rem); } }

.cause__gallery--two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) { .cause__gallery--two { grid-template-columns: 1fr; } }
/* Equal heights, no cropping: columns proportional to each photo's ratio */
.cause__gallery--two { grid-template-columns: 1.89fr 1.333fr; }
.cause__gallery--two .gallery__item { aspect-ratio: auto; }
.cause__gallery--two .gallery__img { width: 100%; height: auto; display: block; }
@media (max-width: 768px) { .cause__gallery--two { grid-template-columns: 1fr; } }

/* 4 team cards: 2×2 on desktop */
@media (min-width: 769px) { .team__grid { grid-template-columns: repeat(2, 1fr); } }
.team__bio a { color: var(--color-primary, #8B1A1A); text-decoration: underline; text-underline-offset: 2px; }

/* Order: Interac left (with savings title above), Square right — side by side on all sizes */
.order__paths,
.order__paths { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; column-gap: var(--space-6); row-gap: var(--space-3); max-width: 760px; }
.order__savings { grid-column: 1; grid-row: 1; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); color: var(--color-gold-hover, #A8861C); line-height: 1.25; align-self: end; }
.order__path--interac { grid-column: 1; grid-row: 2; }
.order__paths > .order__path:not(.order__path--interac) { grid-column: 2; grid-row: 2; }
@media (max-width: 768px) {
  .order__paths { grid-template-columns: 1fr 1fr; column-gap: var(--space-3); }
  .order__path { padding: var(--space-5) var(--space-3); gap: var(--space-3); }
  .order__path-title { font-size: var(--text-base); }
  .order__path-desc { font-size: var(--text-xs); }
  .order__icon { width: 36px; height: 36px; }
  .order__savings { font-size: var(--text-base); }
  .order__path .btn { padding-inline: var(--space-2); font-size: var(--text-xs); white-space: normal; }
}
.order__path > .btn { margin-top: auto; }

/* ===== Calendars: 2×2 grid on all sizes ===== */
.calendars { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin-inline: auto; }
@media (min-width: 900px) { .calendars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .calendars { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .calendar__body { padding: var(--space-3); gap: var(--space-2); }
  .calendar__name { font-size: var(--text-sm); }
  .calendar__flavors { font-size: var(--text-xs); line-height: 1.5; }
  .calendar__tag { top: var(--space-2); right: var(--space-2); font-size: 0.65rem; padding: 2px var(--space-2); }
  .calendar__footer { gap: var(--space-2); }
  .calendar__price { font-size: var(--text-lg); }
  .calendar__footer .btn { padding-inline: var(--space-2); font-size: var(--text-xs); }
}

/* ===== Discreet carousel ===== */
.carousel__track {
  display: flex; height: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,0.82); color: #2A1F1A; font-size: 20px; line-height: 1;
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; transition: opacity .25s ease; backdrop-filter: blur(6px);
}
.carousel__btn--prev { left: 8px; } .carousel__btn--next { right: 8px; }
.carousel:hover .carousel__btn, .carousel__btn:focus-visible { opacity: 1; }
@media (hover: none) { .carousel__btn { display: none; } }
.carousel__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.carousel__dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5); box-shadow: 0 0 2px rgba(0,0,0,.3); transition: background .25s, transform .25s; }
.carousel__dot.is-active { background: #fff; transform: scale(1.25); }
.carousel--single .carousel__btn, .carousel--single .carousel__dots { display: none; }

/* ===== Form rows linked to calendars ===== */
.qty-row { align-items: center; padding: var(--space-3) 0; border-bottom: 1px solid var(--color-divider); }
.qty-row:last-of-type { border-bottom: 0; }
.qty-row__thumb { flex: 0 0 56px; width: 56px; height: 70px; border-radius: var(--radius-sm); overflow: hidden; }
.qty-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.qty-row__thumb--red { background: linear-gradient(135deg, #C0392B 0%, #8B1A1A 100%); }
.qty-row__thumb--blue { background: linear-gradient(135deg, #2E5C8A 0%, #1B3A5B 100%); }
.qty-row__thumb--white { background: linear-gradient(135deg, #F5F0E8 0%, #E0D5C0 100%); border: 1px solid var(--color-divider); }
.qty-row__thumb--dark { background: linear-gradient(135deg, #1B2A4A 0%, #0D1525 100%); }
.qty-row__info { flex: 1; min-width: 0; }
.qty-row__info label { font-weight: 600 !important; display: block; }
.qty-row__details { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.5; margin-top: 2px; }
.qty-row__details strong { font-weight: 600; color: var(--color-text); }
.qty-row input { flex: 0 0 64px; width: 64px; }
.calendars { max-width: 720px; }
.calendar__placeholder { text-align: center; padding: var(--space-3); }
@media (max-width: 768px) {
  .interac-form__inner { padding-inline: var(--space-4) !important; }
  .form__fieldset, fieldset { padding-inline: var(--space-3) !important; min-width: 0; }
  .qty-row { gap: var(--space-3); }
  .qty-row__thumb { flex-basis: 44px; width: 44px; height: 56px; align-self: flex-start; }
  .qty-row__info label { font-size: var(--text-sm); line-height: 1.3; }
  .qty-row input { flex-basis: 52px; width: 52px; padding-inline: var(--space-2); }
}

/* 2022: two portrait photos side by side, shown in full (equal heights) */
.immersive__card .immersive__collecte-photo--duo,
.immersive__collecte-photo--duo {
  aspect-ratio: auto !important;
  display: grid; grid-template-columns: 0.9fr 0.75fr; gap: 4px;
  background: rgba(0,0,0,0.25);
}
.immersive__collecte-photo--duo img { width: 100%; height: auto !important; object-fit: contain; display: block; }

/* Brand: two lines, same height as the logo */
.nav__brand-stack { display: flex; flex-direction: column; justify-content: center; height: 40px; gap: 1px; }
.nav__brand-kicker { font-family: var(--font-body); font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); line-height: 1.1; white-space: nowrap; }
.nav__brand-stack .nav__brand-text { font-size: 19px; line-height: 1.1; white-space: nowrap; }
@media (max-width: 768px) {
  .nav__brand-kicker { font-size: 10px; }
  .nav__brand-stack .nav__brand-text { font-size: 17px; }
}
