/* ─── Font-display: avoid FOUT while fonts download ─────────── */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-display: optional;
}

@font-face {
  font-family: 'Playfair Display';
  font-display: optional;
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-surface);
  color: var(--color-body-text);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ─── Shared button slide-fill ──────────────────────────────── */
/* Applied to all bordered buttons for the hover fill animation */
.event-card__btn,
.about__btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.event-card__btn::before,
.about__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-body-text);
  transform: translateX(-100%);
  transition: transform 250ms ease;
  z-index: -1;
}
.event-card__btn:hover,
.about__btn:hover {
  color: var(--color-surface);
}
.event-card__btn:hover::before,
.about__btn:hover::before {
  transform: translateX(0);
}

.mobile-br { display: none; }
.carousel__track { visibility: hidden; }

/* ─── Reveal on scroll ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  transition: background 300ms ease, padding 300ms ease, box-shadow 300ms ease;
}
.nav.scrolled {
  background: var(--color-surface);
  padding: 18px 48px;
  box-shadow: 0 1px 0 var(--color-rule-light);
}
.nav__logo-link {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-vermillion);
  letter-spacing: -0.01em;
  line-height: 1;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__link {
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-surface);
  position: relative;
  transition: color 200ms ease;
}
.nav.scrolled .nav__link { color: var(--color-body-text); }
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-vermillion);
  transition: width 200ms ease-out;
}
.nav__link:hover::after { width: 100%; }
.nav.scrolled .nav__link:hover { color: var(--color-vermillion); }
.nav__link--active { color: var(--color-vermillion) !important; }
.nav.scrolled .nav__link--active { color: var(--color-vermillion) !important; }
.nav__arrow { display: inline-block; margin-left: 4px; }

.nav__logo-link {
  display: flex;
  align-items: center;
}
.nav__logo-img {
  height: 42px;
  width: auto;
  display: block;
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--color-secondary-dark);
}
.hero__media {
  position: absolute;
  inset: 0;
  will-change: transform;
  /* Entry animation: starts below viewport, slides up */
  transform: translateY(100vh);
  transition: transform 1200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.hero__media.loaded { transform: translateY(0); }

.hero__image {
  width: 100%;
  height: 120%;
  object-fit: cover;
  /* Pin to top of photo so faces stay in the upper portion of the frame */
  object-position: center top;
  /* Ken Burns zooms toward the upper quarter (face area) rather than center */
  transform-origin: center 25%;
  will-change: transform;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.22) 0%,
    rgba(0,0,0,0.18) 40%,
    rgba(0,0,0,0.52) 72%,
    rgba(0,0,0,0.72) 100%
  );
}
.hero__content {
  position: absolute;
  /* Pin to 55% from the top so faces are always above the title.
     Falls back to calc(100% - 350px) on short viewports to keep CTA on-screen. */
  top: min(55%, calc(100% - 350px));
  left: 0;
  right: 0;
  padding: 0 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(70px, 19vw, 260px);
  font-weight: 500;
  color: var(--color-vermillion);
  letter-spacing: -0.02em;
  line-height: 0.85;
  margin: 0;
  opacity: 0;
  transition: opacity 900ms ease-out;
}
.hero__title.visible { opacity: 1; }

.hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--color-surface);
  margin-top: 16px;
  opacity: 0;
  transition: opacity 700ms ease-out;
}
.hero__tagline.visible { opacity: 1; }

.hero__cta {
  margin-top: 28px;
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-surface);
  border: 1px solid var(--color-surface);
  padding: 14px 32px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transition: opacity 600ms ease-out, color 250ms ease;
  z-index: 1;
}
.hero__cta.visible { opacity: 1; }
.hero__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-secondary-dark);
  transform: translateX(-100%);
  transition: transform 250ms ease;
  z-index: -1;
}
.hero__cta:hover::before { transform: translateX(0); }

/* ─── Performances ──────────────────────────────────────────── */
.performances {
  background: var(--color-elevated-surface);
  padding: 100px 0 80px;
}
.performances__header {
  text-align: center;
  padding: 0 48px;
  margin-bottom: 64px;
}
.performances__title {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  font-weight: 400;
  color: var(--color-body-text);
  margin-bottom: 16px;
}
.performances__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-vermillion);
  margin: 16px auto 0;
}
.performances__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-body-s);
  font-weight: 300;
  color: var(--color-muted-text);
  letter-spacing: 0.04em;
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto;
}

/* ─── Carousel ──────────────────────────────────────────────── */
.carousel {
  position: relative;
  padding: 0 48px;
  max-width: 1280px;
  margin: 0 auto;
}
.carousel__filters {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  justify-content: center;
}
.carousel__filter-btn {
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-body-text);
  padding: 10px 24px;
  border: 1px solid var(--color-body-text);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: all 200ms ease;
}
.carousel__filter-btn:hover {
  background: var(--color-body-text);
  color: var(--color-surface);
}
.carousel__filter-btn--active {
  background: var(--color-body-text);
  color: var(--color-surface);
}
/* Outer clip: hides the sliding overflow horizontally only */
.carousel__clip {
  overflow: hidden;
}
/* Inner viewport: gives vertical breathing room for hover lift/shadow */
.carousel__viewport {
  padding: 12px 0 18px;
  margin: -12px 0 -18px;
  cursor: grab;
}
.carousel__viewport:active { cursor: grabbing; }
.carousel__track {
  display: flex;
  gap: 24px;
  will-change: transform;
  transition: transform 300ms cubic-bezier(0.25, 1, 0.5, 1);
}
.carousel__slide {
  /* width set via JS (setSlideWidths) */
  flex-shrink: 0;
  min-width: 0;
}

/* Arrow navigation (mobile only) */
.carousel__arrows { display: none; }

/* Slider (replaces dots) */
.carousel__slider-wrap {
  margin-top: 32px;
  padding: 12px 0;
  cursor: pointer;
  user-select: none;
}
.carousel__slider-track {
  height: 1px;
  background: var(--color-rule-light);
  position: relative;
}
.carousel__slider-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  /* 1/3 of track width — one segment per slide */
  width: calc(100% / 3);
  background: var(--color-muted-text);
  transition: transform 300ms cubic-bezier(0.25, 1, 0.5, 1);
}

/* ─── Event Cards ───────────────────────────────────────────── */
.event-card {
  background: var(--color-surface);
  border-radius: 8px;
  padding: 24px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  /* Transition uses 150ms for snappy hover; reveal animation overrides only during initial scroll-in */
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(20,18,16,0.09);
}
.event-card__date {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}
.event-card__date-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.event-card__day {
  font-family: var(--font-display);
  font-size: clamp(48px, 12vw, 72px);
  font-weight: 700;
  color: var(--color-vermillion);
  line-height: 1;
  transition: color 150ms ease;
}
.event-card:hover .event-card__day { color: var(--color-wine-red); }
.event-card__meta {
  display: flex;
  flex-direction: column;
  padding-top: 10px;
  gap: 4px;
}
.event-card__month,
.event-card__year {
  font-family: var(--font-body);
  font-size: var(--text-caption-l);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-body-text);
  line-height: 1.2;
}
.event-card__time {
  font-family: var(--font-display);
  font-size: clamp(14px, 4vw, 20px);
  font-weight: 400;
  color: var(--color-muted-text);
  line-height: 1;
  white-space: nowrap;
  align-self: flex-start;
}
.event-card__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-body-text);
  margin-bottom: 14px;
  line-height: 1.3;
}
.event-card__desc {
  font-family: var(--font-body);
  font-size: var(--text-caption-l);
  font-weight: 300;
  color: var(--color-secondary-light);
  letter-spacing: 0.03em;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}
.event-card__btn {
  align-self: flex-start;
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-body-text);
  border: 1px solid var(--color-body-text);
  padding: 12px 24px;
  transition: color 250ms ease;
}

.event-card__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.event-card__btn--primary {
  flex: 0 0 auto;
}

.event-card__location {
  font-family: var(--font-body);
  font-size: var(--text-body-s);
  font-weight: 400;
  color: var(--color-muted-text);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 200ms ease;
  text-align: right;
}

.event-card__location:hover {
  color: var(--color-body-text);
}

.event-card__pin-icon {
  width: 11px;
  height: 15px;
  flex-shrink: 0;
}

.event-card__btn--ended {
  background: var(--color-muted-text);
  color: var(--color-elevated-surface);
  border-color: var(--color-muted-text);
  cursor: not-allowed;
  pointer-events: none;
}
.event-card__btn--ended::before { display: none; }

.carousel__empty-state {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  text-align: center;
  padding: 80px 48px;
}

.carousel__empty-state-text {
  font-family: var(--font-body);
  font-size: var(--text-body-s);
  font-weight: 300;
  color: var(--color-secondary-light);
  letter-spacing: 0.03em;
  line-height: 1.65;
}

/* ─── Who We Are ────────────────────────────────────────────── */
.about {
  background: var(--color-surface);
  padding: 120px 48px;
}
.about__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.about__header {
  text-align: center;
  margin-bottom: 72px;
}
.about__title {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  font-weight: 400;
  color: var(--color-body-text);
  margin-bottom: 16px;
}
.about__rule {
  width: 40px;
  height: 2px;
  background: var(--color-vermillion);
  margin: 0 auto;
}
.about__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  /* stretch forces both columns to equal height */
  align-items: stretch;
}
.about__text {
  display: flex;
  flex-direction: column;
}
.about__paragraph {
  font-family: var(--font-body);
  font-size: var(--text-body-s);
  font-weight: 300;
  color: var(--color-body-text);
  letter-spacing: 0.03em;
  line-height: 1.7;
  margin-bottom: 20px;
}
.about__paragraph:last-of-type { margin-bottom: 36px; }
.about__btn {
  align-self: flex-start;
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-body-text);
  border: 1px solid var(--color-body-text);
  padding: 14px 28px;
  transition: color 250ms ease;
}
/* Image column: flex so height: 100% works on the img */
.about__image-wrap {
  overflow: hidden;
  display: flex;
}
.about__image {
  width: 100%;
  height: 100%; /* fills the grid row height = text column height */
  object-fit: cover;
  object-position: center center;
  transition: transform 200ms ease;
  flex: 1;
}
.about__image-wrap:hover .about__image { transform: scale(1.02); }

/* ─── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--color-secondary-dark);
  position: relative;
  overflow: hidden;
  padding: 72px 48px 0;
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 48px;
}
.footer__left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 340px;
}
.footer__text {
  font-family: var(--font-body);
  font-size: var(--text-body-s);
  font-weight: 300;
  color: var(--color-muted-text);
  letter-spacing: 0.03em;
  line-height: 1.6;
}
.footer__instagram {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted-text);
  transition: color 200ms ease;
}
.footer__instagram:hover { color: var(--color-surface); }
.footer__ig-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.footer__right {
  display: flex;
  align-items: center;
  gap: 48px;
}
.footer__nav {
  display: flex;
  gap: 36px;
}
.footer__nav-link {
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted-text);
  position: relative;
  transition: color 200ms ease;
}
.footer__nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-candlelight);
  transition: width 200ms ease-out;
}
.footer__nav-link:hover { color: var(--color-surface); }
.footer__nav-link:hover::after { width: 100%; }

.footer__up-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-secondary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted-text);
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
  flex-shrink: 0;
}
.footer__up-btn svg {
  width: 18px;
  height: 18px;
}
.footer__up-btn:hover {
  background: var(--color-vermillion);
  border-color: var(--color-vermillion);
  color: var(--color-surface);
  transform: rotate(-8deg);
}

.footer__ghost {
  font-family: 'Playfair Display', serif;
  font-size: clamp(120px, 20vw, 300px);
  font-weight: 700;
  letter-spacing: -0.02em;
  /* Solid fill so letterforms match hero ANATOLE exactly (thick/thin Playfair strokes visible) */
  color: var(--color-secondary-light);
  white-space: nowrap;
  line-height: 0.85;
  user-select: none;
  pointer-events: none;
  opacity: 0.45;
  /* Show bottom half of cap height, cut at midpoint between A-crossbar and baseline */
  margin-bottom: -0.22em;
}

/* ─── Mobile nav overlay ────────────────────────────────────── */
.nav__hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--color-surface);
  padding: 4px;
  flex-shrink: 0;
}
.nav.scrolled .nav__hamburger { color: var(--color-body-text); }
.nav__hamburger svg {
  transition: transform 300ms ease;
}
.nav__hamburger.is-open svg {
  transform: rotate(90deg);
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--color-vermillion);
  transform: translateY(-100%);
  padding: 88px 32px 40px;
  pointer-events: none;
  transition: transform 320ms cubic-bezier(0.76, 0, 0.24, 1);
}
.nav-overlay.open {
  transform: translateY(0);
  pointer-events: all;
}
.nav-overlay nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.nav-overlay__link {
  font-family: var(--font-body);
  font-size: var(--text-body-s);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  padding-bottom: 4px;
  transition: color 200ms ease;
}
.nav-overlay__link:hover { color: #fff; }
.nav-overlay__link--active {
  color: #fff;
}
.nav-overlay__link--active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--color-candlelight);
}

/* ─── Disable Ken Burns + parallax on touch devices ────────── */
@media (hover: none) {
  .hero__image {
    animation: none !important;
    transform: none !important;
  }
}

/* ─── Desktop overrides for mobile-first card properties ───── */
@media (min-width: 769px) {
  .event-card { padding: 40px 36px; }
  .event-card__day { font-size: 80px; }
  .event-card__time { font-size: clamp(36px, 4vw, 64px); }
  .event-card__title { font-size: 22px; }
  .event-card__desc { font-size: var(--text-body-s); margin-bottom: 28px; }
}

/* ─── Responsive (768px) ────────────────────────────────────── */
@media (max-width: 768px) {
  /* Nav */
  .nav { padding: 20px 24px; }
  .nav.scrolled { padding: 14px 24px; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__logo-img { height: 36px; }

  /* Hero */
  .hero__content { top: 0; bottom: 0; padding: 0 24px 110px; }
  .hero__title { margin-top: min(52vh, calc(100vh - 280px)); }
  .hero__tagline { font-size: 16px; margin-top: auto; }
  .hero__image { height: 100%; object-position: center center; }
  .hero__cta {
    margin-top: 20px;
    padding: 12px 28px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Performances */
  .performances { padding: 56px 0 40px; }
  .performances__header { padding: 0 24px; margin-bottom: 32px; }
  .performances__title { font-size: 30px; }
  .performances__subtitle { font-size: var(--text-caption-l); }

  /* Carousel */
  .carousel { padding: 0 24px; }
  .carousel__filters { margin-bottom: 24px; }
  .carousel__filter-btn { min-height: 44px; }
  .carousel__track { gap: 16px; }
  .carousel__slider-wrap { display: none; }
  .carousel__arrows {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
    padding: 0 24px;
  }
  .carousel__arrow {
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-rule-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary-light);
    transition: border-color 150ms ease, color 150ms ease;
    flex-shrink: 0;
  }
  .carousel__arrow:active {
    border-color: var(--color-vermillion);
    color: var(--color-vermillion);
  }
  .carousel__arrow[disabled] {
    opacity: 0.25;
    pointer-events: none;
  }

  /* Event cards */
  .event-card { min-height: 320px; }
  .event-card__btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-size: 9px;
  }
  .event-card__location { font-size: var(--text-caption-m); }
  .event-card__actions { gap: 12px; }

  /* Who We Are */
  .about { padding: 56px 24px; }
  .about__header { margin-bottom: 24px; }
  .about__title { font-size: 30px; }
  .about__body { grid-template-columns: 1fr; gap: 32px; }
  .about__image-wrap { order: -1; }
  .about__image { height: 280px; object-position: center center; }
  .about__paragraph {
    font-size: var(--text-caption-l);
    text-align: center;
  }
  .about__btn {
    align-self: center;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .mobile-br { display: inline; }

  /* Footer */
  .footer { padding: 40px 24px 0; }
  .footer__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 28px;
  }
  .footer__left { max-width: 55%; gap: 14px; }
  .footer__text { font-size: var(--text-caption-m); line-height: 1.55; }
  .footer__instagram { font-size: 9px; gap: 7px; }
  .footer__ig-icon { width: 16px; height: 16px; }
  .footer__right {
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    margin-left: auto;
  }
  .footer__nav { flex-direction: column; align-items: flex-end; gap: 14px; }
  .footer__nav-link { font-size: var(--text-eyebrow); letter-spacing: 0.1em; }
  .footer__ghost {
    font-size: clamp(80px, 22vw, 160px);
    width: max-content;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }
  .intro-overlay__inner {
    top: min(52%, calc(100% - 280px));
    padding: 0 24px;
  }
}

@media (max-width: 480px) {
  .nav { padding: 18px 20px; }
  .carousel { padding: 0 16px; }
  .carousel__filters { gap: 8px; }
  .carousel__filter-btn { padding: 8px 14px; font-size: 9px; }
  .event-card { padding: 20px 16px; }
  .event-card__day { font-size: 48px; }
  .about { padding: 48px 20px; }
  .footer { padding: 36px 20px 0; }
}

/* ─── Gallery Hero ──────────────────────────────────────────── */
.gallery-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--color-secondary-dark);
}
.gallery-hero__picture {
  display: block;
  width: 100%;
  height: 100%;
}
.gallery-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.gallery-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.28) 0%,
    rgba(0,0,0,0.18) 40%,
    rgba(0,0,0,0.48) 78%,
    rgba(0,0,0,0.70) 100%
  );
}
.gallery-hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
.gallery-hero__scroll-text {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-surface);
}
.gallery-hero__scroll-arrow {
  font-size: 14px;
  color: var(--color-surface);
  display: block;
  animation: galleryBounce 1.4s ease-in-out infinite;
}
@keyframes galleryBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

/* ─── Gallery Grid ──────────────────────────────────────────── */
.gallery {
  background: var(--color-surface);
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 9vw;
  gap: 0;
}

/*
  Repeating 7-item pattern. Items sharing a visual row get identical grid-row spans
  so their heights always match — no white gaps between photos.
  Row A: [7col × 4rows] | [5col × 4rows]
  Row B: [5col × 4rows] | [7col × 4rows]
  Row C: [4col × 3rows] | [4col × 3rows] | [4col × 3rows]
*/
.gallery__item:nth-child(7n+1) { grid-column: span 7; grid-row: span 4; }
.gallery__item:nth-child(7n+2) { grid-column: span 5; grid-row: span 4; }
.gallery__item:nth-child(7n+3) { grid-column: span 5; grid-row: span 4; }
.gallery__item:nth-child(7n+4) { grid-column: span 7; grid-row: span 4; }
.gallery__item:nth-child(7n+5) { grid-column: span 4; grid-row: span 3; }
.gallery__item:nth-child(7n+6) { grid-column: span 4; grid-row: span 3; }
.gallery__item:nth-child(7n+7) { grid-column: span 4; grid-row: span 3; }

.gallery__item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}
.gallery__item.visible {
  opacity: 1;
  transform: translateY(0);
}
.gallery__item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 200ms ease-out;
  display: block;
}
.gallery__item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 200ms ease-out;
}
.gallery__item:hover .gallery__item-img    { transform: scale(1.03); }
.gallery__item:hover .gallery__item-overlay { background: rgba(0,0,0,0.15); }

@media (max-width: 768px) {
  .gallery-hero__scroll-indicator { bottom: 110px; }
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 40vw;
  }
  /* All items become equal-sized 1×1 cells on mobile */
  .gallery__item:nth-child(7n+1),
  .gallery__item:nth-child(7n+2),
  .gallery__item:nth-child(7n+3),
  .gallery__item:nth-child(7n+4),
  .gallery__item:nth-child(7n+5),
  .gallery__item:nth-child(7n+6),
  .gallery__item:nth-child(7n+7) {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* ─── Gallery photographer credit ───────────────────────────── */
.gallery__credit {
  background: var(--color-surface);
  padding: 22px 48px;
  text-align: center;
}
.gallery__credit-text {
  font-family: var(--font-body);
  font-size: var(--text-caption-l);
  font-weight: 300;
  color: var(--color-muted-text);
  letter-spacing: 0.02em;
}
@media (max-width: 768px) {
  .gallery__credit { padding: 16px 20px; }
  .gallery__credit-text { font-size: 11px; letter-spacing: 0; }
}

/* ─── Intro curtain overlay ─────────────────────────────────── */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
}

html.aq-skip-intro .intro-overlay { display: none; }

.intro-overlay__half {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
  background: var(--color-vermillion);
}
.intro-overlay__half--left  { left: 0; }
.intro-overlay__half--right { left: 50%; }

.intro-overlay__inner {
  position: absolute;
  top: min(55%, calc(100% - 350px));
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 48px;
  pointer-events: none;
}
.intro-overlay__half--left  .intro-overlay__inner { left: 0;     right: -100%; }
.intro-overlay__half--right .intro-overlay__inner { left: -100%; right: 0; }

.intro-overlay__wordmark {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(70px, 19vw, 260px);
  font-weight: 500;
  color: #F8D8CC;
  letter-spacing: -0.02em;
  line-height: 0.85;
  margin: 0;
  padding: 0;
  user-select: none;
  opacity: 0;
  transition: opacity 600ms ease;
}

.intro-overlay__half--left.open {
  animation: introCurtainLeft 320ms cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
.intro-overlay__half--right.open {
  animation: introCurtainRight 320ms cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes introCurtainLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
@keyframes introCurtainRight {
  from { transform: translateX(0); }
  to   { transform: translateX(100%); }
}

/* ─── Page transitions ───────────────────────────────────────── */
@keyframes aqEnterRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes aqEnterLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
html.aq-enter-right,
html.aq-enter-left { overflow-x: clip; }
html.aq-enter-right body { animation: aqEnterRight 360ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
html.aq-enter-left  body { animation: aqEnterLeft  360ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }

