/* ====================================================
   THE FUN HOUSE — styles.css
   Lake Diefenbaker · August Long Weekend
   ==================================================== */

/* ── FONT IMPORT ── */
@import url('https://api.fontshare.com/v2/css?f[]=chillax@400,500,600,700&f[]=plus-jakarta-sans@400,500,600,700&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  /* Typography scale */
  --text-xs: clamp(.75rem, .7rem + .25vw, .875rem);
  --text-sm: clamp(.875rem, .8rem + .35vw, 1rem);
  --text-base: clamp(1rem, .95rem + .25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + .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, .5rem + 7vw, 8rem);

  /* Spacing */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* Fonts */
  --font-display: 'Chillax', 'Georgia', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Light mode — darker, moodier palette */
  --bg: #1C1712;
  --surface: #241E16;
  --ink: #F2E8D8;
  --ink-2: #C4AD90;
  --muted: #7A6A52;
  --line: #362E22;
  --accent: #F77A1F;
  --accent-deep: #FF9040;
  --accent-soft: #3D2410;

  /* Nav height reference */
  --nav-h: 64px;
}

/* Dark mode overrides — even deeper */
[data-theme="dark"] {
  --bg: #111009;
  --surface: #191410;
  --ink: #F2E8D8;
  --ink-2: #C4AD90;
  --muted: #6A5A42;
  --line: #2A2318;
  --accent: #F77A1F;
  --accent-deep: #FF9040;
  --accent-soft: #2E1A0A;
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul { list-style: none; }

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-8);
}

@media (max-width: 600px) {
  .container { padding-inline: var(--space-6); }
}

/* ── SECTION SPACING ── */
.section {
  padding-block: var(--space-24);
}

/* ── TYPOGRAPHY UTILITIES ── */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.eyebrow--light {
  color: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--ink);
}

h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-lg); }

p { color: var(--ink-2); }

.section-header {
  margin-bottom: var(--space-12);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-sub {
  font-size: var(--text-base);
  color: var(--muted);
  max-width: 55ch;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: .04em;
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
  min-height: 44px;
  line-height: 1.4;
  white-space: nowrap;
  background-image: none;
}

.btn--accent {
  background-color: var(--accent);
  background-image: none;
  color: #fff;
  border-color: var(--accent);
}

.btn--accent:hover {
  background-color: var(--accent-deep);
  background-image: none;
  border-color: var(--accent-deep);
}

.btn--outline {
  background-color: transparent;
  background-image: none;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--outline:hover {
  background-color: var(--ink);
  background-image: none;
  color: var(--bg);
}

.btn--fire {
  background-color: var(--accent);
  background-image: none;
  color: #fff;
  border-color: var(--accent);
  margin-top: var(--space-8);
  display: inline-block;
}

.btn--fire:hover {
  background-color: var(--accent-deep);
  background-image: none;
  border-color: var(--accent-deep);
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HEADER / NAV
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
  height: var(--nav-h);
}

.nav-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-8);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.nav-logo {
  flex-shrink: 0;
  display: block;
  color: var(--ink);
}

.site-logo {
  height: 44px;
  width: auto;
  display: block;
  color: var(--ink);
}

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

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-2);
  transition: color .2s;
  white-space: nowrap;
}

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

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

.theme-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--ink);
  min-height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, background-color .2s;
}

.theme-toggle:hover {
  border-color: var(--accent);
  background-color: var(--accent-soft);
}

[data-theme="light"] .theme-icon--dark,
[data-theme="dark"] .theme-icon--light {
  display: none;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--nav-h));
  background-color: var(--bg);
  z-index: 99;
  padding: var(--space-8);
  flex-direction: column;
  border-top: 1px solid var(--line);
  overflow-y: auto;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-8);
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  font-size: var(--text-lg);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--line);
  min-height: 52px;
  transition: color .2s;
}

.mobile-nav__link:hover {
  color: var(--accent);
}

.mobile-nav__close {
  align-self: flex-end;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HERO
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  transform: scale(1.04);
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14, 11, 7, 0.52) 0%,
    rgba(14, 11, 7, 0.68) 60%,
    rgba(14, 11, 7, 0.85) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: var(--space-16) var(--space-8);
  max-width: 900px;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background-color: rgba(247, 122, 31, 0.15);
  margin-bottom: var(--space-8);
  gap: 0;
  backdrop-filter: blur(4px);
}

.badge__top {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1;
}

.badge__year {
  font-family: var(--font-display);
  font-size: clamp(.75rem, .6rem + .5vw, .9rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 20px rgba(10,8,4,0.6);
}

.hero__sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.88);
  margin-bottom: var(--space-4);
  line-height: 1.5;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: #FCE0C2;
  margin-bottom: var(--space-8);
  font-weight: 600;
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: var(--text-xl);
  animation: bounce 2s infinite;
  z-index: 2;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   INTRO
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.intro__image {
  position: relative;
}

.intro__img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center 62%;
  border-radius: var(--radius-lg);
  display: block;
}

.intro__img-caption {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--muted);
  font-style: italic;
}

.intro__copy {
  padding-top: var(--space-4);
}

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

.intro__copy p {
  margin-bottom: var(--space-4);
  color: var(--ink-2);
  font-size: var(--text-base);
}

.intro__copy strong {
  color: var(--ink);
  font-weight: 700;
}

.intro__tagline-line {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--accent) !important;
  margin-top: var(--space-6);
  margin-bottom: 0 !important;
}

@media (max-width: 768px) {
  .intro__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .intro__img {
    aspect-ratio: 16/9;
    object-position: center 60%;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ACTIVITIES — WHAT'S ON
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.activities {
  background-color: var(--surface);
}

/* ── Layout wrapper ── */
.whatson__layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* ── Row: two cards side by side ── */
.whatson__row {
  display: grid;
  gap: var(--space-6);
}

.whatson__row--6040 {
  grid-template-columns: 3fr 2fr;
}

.whatson__row--4060 {
  grid-template-columns: 2fr 3fr;
}

/* ── Base card ── */
.whatson-card {
  background-color: var(--bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}

.whatson-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  transform: translateY(-2px);
}

/* ── Hero card: image left, content right (landscape) ── */
.whatson-card--hero {
  flex-direction: row;
  min-height: 340px;
}

.whatson-card--hero .whatson-card__img-wrap {
  flex: 1.4;
  min-height: 280px;
}

.whatson-card--hero .whatson-card__content {
  flex: 1;
  justify-content: center;
}

/* ── Image wrapper ── */
.whatson-card__img-wrap {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  flex-shrink: 0;
}

.whatson-card__img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.whatson-card:hover .whatson-card__img-wrap img {
  transform: scale(1.04);
}

/* ── Content area ── */
.whatson-card__content {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ── Tag ── */
.whatson-card__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  background-color: var(--accent-soft);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  width: fit-content;
}

/* ── Title ── */
.whatson-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.whatson-card--hero .whatson-card__title {
  font-size: var(--text-2xl);
}

/* ── Body text ── */
.whatson-card__body {
  font-size: var(--text-base);
  color: var(--ink-2);
  line-height: 1.65;
}

/* ── Detail line ── */
.whatson-card__detail {
  font-size: var(--text-xs);
  color: var(--muted);
  font-style: italic;
  margin-top: var(--space-2);
}

/* ── Specific card image heights (portrait cards) ── */
.whatson-card--girls .whatson-card__img-wrap,
.whatson-card--kids .whatson-card__img-wrap,
.whatson-card--concert .whatson-card__img-wrap,
.whatson-card--fireworks .whatson-card__img-wrap {
  min-height: 240px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ACTIVITIES RESPONSIVE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 900px) {
  .whatson__row--6040,
  .whatson__row--4060 {
    grid-template-columns: 1fr;
  }

  .whatson-card--hero {
    flex-direction: column;
    min-height: auto;
  }

  .whatson-card--hero .whatson-card__img-wrap {
    flex: none;
    min-height: 260px;
    height: 260px;
    position: relative;
  }

  .whatson-card--hero .whatson-card__content {
    flex: none;
  }
}

@media (max-width: 560px) {
  .whatson-card__content {
    padding: var(--space-6);
  }

  .whatson-card--girls .whatson-card__img-wrap,
  .whatson-card--kids .whatson-card__img-wrap,
  .whatson-card--concert .whatson-card__img-wrap,
  .whatson-card--fireworks .whatson-card__img-wrap {
    min-height: 200px;
    height: 200px;
    position: relative;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   WEEKEND MENU
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.menu-section {
  position: relative;
  padding-block: var(--space-24);
  overflow: hidden;
}

.menu-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.06;
  z-index: 0;
}

.menu-content {
  position: relative;
  z-index: 1;
}

.menu-headline {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.menu-sub {
  margin-bottom: 0;
}

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

.menu-day {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  box-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

/* Layout rhythm for 9 cards in a 3-column grid */
.menu-day:nth-child(7) {
  grid-column: span 2;
}

.menu-day:nth-child(8) {
  grid-column: span 1;
}

.menu-day:nth-child(9) {
  grid-column: span 1;
}

.menu-day__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
}

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

.menu-day__list li {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.menu-item {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink);
}

.menu-note {
  font-size: var(--text-xs);
  color: var(--muted);
  font-style: italic;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .menu-day:nth-child(7),
  .menu-day:nth-child(8),
  .menu-day:nth-child(9) {
    grid-column: span 1;
  }
}

@media (max-width: 560px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }
  .menu-day:nth-child(7),
  .menu-day:nth-child(8),
  .menu-day:nth-child(9) {
    grid-column: span 1;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   GALLERY
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.gallery-section {
  background-color: var(--bg);
}

.gallery-mosaic {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

/* Row: asymmetric wide + portrait */
.gallery-mosaic__row--asymm {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-6);
  align-items: stretch;
}

/* Row: stat / fill photo / stat */
.gallery-mosaic__row--stat {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: var(--space-6);
  align-items: stretch;
}

/* Row: landscape photo + stacked stat tiles */
.gallery-mosaic__row--campfire {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-6);
  align-items: stretch;
}

/* Row: pair of equal halves */
.gallery-mosaic__row--pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: stretch;
}

/* Base figure/item */
.gallery-mosaic__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin: 0;
  background-color: var(--surface);
}

.gallery-mosaic__item img {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.gallery-mosaic__item:hover img {
  transform: scale(1.04);
}

/* Aspect ratios per item type */
.gallery-mosaic__item--wide img {
  aspect-ratio: 16 / 9;
}

.gallery-mosaic__item--portrait img {
  aspect-ratio: 3 / 4;
}

.gallery-mosaic__item--fill img {
  aspect-ratio: 4 / 3;
}

.gallery-mosaic__item--landscape img {
  aspect-ratio: 4 / 3;
}

.gallery-mosaic__item--half img {
  aspect-ratio: 4 / 3;
}

/* Caption overlay */
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4) var(--space-6);
  background: rgba(17, 12, 7, 0.78);
  color: #F2E8D8;
  font-size: var(--text-xs);
  font-style: italic;
  font-family: var(--font-body);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s ease, transform .3s ease;
}

.gallery-mosaic__item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Stat cards */
.gallery-stat-card {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: var(--space-8);
  min-height: 160px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

.gallery-stat-card--accent {
  background-color: var(--accent);
}

.gallery-stat-card--accent .gallery-stat__number,
.gallery-stat-card--accent .gallery-stat__label {
  color: #fff;
}

.gallery-stat-card--dark {
  background-color: #0E0B07;
}

.gallery-stat-card--dark .gallery-stat__number,
.gallery-stat-card--dark .gallery-stat__label {
  color: var(--ink);
}

.gallery-stat__number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.gallery-stat__label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .04em;
  line-height: 1.4;
}

/* Stacked stat tiles (side by side to a landscape photo) */
.gallery-stat-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.gallery-stat-card--tall {
  flex: 1;
  min-height: 0;
}

/* Upload note */
.gallery-upload-note {
  font-size: var(--text-sm);
  color: var(--muted);
  font-style: italic;
  margin-top: var(--space-4);
}

.gallery-upload-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gallery-upload-note a:hover {
  color: var(--accent-deep);
}

/* Gallery responsive */
@media (max-width: 900px) {
  .gallery-mosaic__row--asymm,
  .gallery-mosaic__row--campfire {
    grid-template-columns: 1fr;
  }

  .gallery-mosaic__row--stat {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-mosaic__row--stat .gallery-stat-card:last-child {
    display: none;
  }

  .gallery-stat-stack {
    flex-direction: row;
  }

  .gallery-mosaic__item--portrait img,
  .gallery-mosaic__item--wide img,
  .gallery-mosaic__item--landscape img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 560px) {
  .gallery-mosaic__row--asymm,
  .gallery-mosaic__row--stat,
  .gallery-mosaic__row--campfire,
  .gallery-mosaic__row--pair {
    grid-template-columns: 1fr;
  }

  .gallery-stat-stack {
    flex-direction: row;
  }

  .gallery-mosaic__item--portrait img,
  .gallery-mosaic__item--wide img,
  .gallery-mosaic__item--landscape img,
  .gallery-mosaic__item--fill img,
  .gallery-mosaic__item--half img {
    aspect-ratio: 4 / 3;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FIREWORKS / R&D
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.fireworks-section {
  position: relative;
  padding-block: var(--space-24);
  overflow: hidden;
}

.fireworks-section__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.fireworks-section__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 3, 0.72);
}

.fireworks-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
  align-items: center;
}

.fireworks-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 680px;
}

.fireworks-headline {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #F2E8D8;
  line-height: 1.15;
  margin-bottom: var(--space-6);
}

.fireworks-sub {
  font-size: var(--text-base);
  color: #C8B89A;
  margin-bottom: var(--space-8);
  max-width: 48ch;
}

.fireworks-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  list-style: none;
  padding: 0;
}

.fireworks-list li {
  font-size: var(--text-sm);
  color: #C8B89A;
  padding-left: var(--space-6);
  position: relative;
  line-height: 1.5;
}

.fireworks-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.fireworks-disclaimer {
  font-size: var(--text-sm);
  color: var(--accent);
  font-style: italic;
  font-weight: 600;
  margin-bottom: 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FOOTER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.footer {
  background-color: var(--surface);
  border-top: 1px solid var(--line);
  padding-top: var(--space-24);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-16);
  padding-bottom: var(--space-16);
}

.footer-logo {
  margin-bottom: var(--space-6);
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.footer-nav__title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-6);
}

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

.footer-nav__list a {
  font-size: var(--text-sm);
  color: var(--ink-2);
  transition: color .2s;
}

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

.footer-contact__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-contact__list li {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer-contact__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-contact__value {
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: 1.5;
  transition: color .2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: var(--space-6);
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.5;
}

.site-logo--footer {
  color: var(--ink);
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: span 1;
  }
}

/* === VIBESITE-GUARDRAILS (auto, do not edit) === */
/* 1) No horizontal scroll, ever. A phone should never scroll side-to-side. */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
/* Media and embeds can't exceed their container and force overflow. */
img, video, canvas, svg, iframe, table, pre {
  max-width: 100%;
}
img, video, canvas { height: auto; }
/* Long unbreakable strings (URLs, emails) shouldn't push layout wider. */
body { overflow-wrap: break-word; }

/* 1b) Head-safe photo cropping. When the model uses object-fit: cover to fill a
   fixed-ratio frame (hero, gallery, card, feature), the default center crop
   lops the tops off heads on portrait/group photos. Bias the focal point
   slightly ABOVE center so faces at the top of a shot survive the crop. We only
   set object-position (never object-fit), so we don't change whether an image is
   cropped — just where. Logos, icons, and avatars are excluded because they
   should never be cropped and are usually already centered. */
:where(img:not([class*="logo" i]):not([class*="icon" i]):not([class*="avatar" i]):not([alt*="logo" i])) {
  object-position: 50% 30%;
}

@media (max-width: 640px) {
  /* Belt-and-suspenders: on phones, force the mobile menu to be a real
     full-height overlay panel instead of a cramped scrolling strip.
     Only takes effect once the menu is actually opened (toggle class present),
     so it never interferes with the closed/desktop state. */
  .primary-nav.is-open,
  .primary-nav.open,
  .primary-nav.active,
  .nav-menu.is-open,
  .nav-menu.open,
  .nav-menu.active,
  .mobile-nav.is-open,
  .mobile-nav.open,
  .mobile-nav.active,
  nav.is-open,
  nav.open,
  nav.active,
  [data-nav].is-open,
  [data-nav="open"] {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    /* Anchor just below the header and fill the rest of the screen so the menu
       is a real full-height overlay, never a short clipped strip. */
    top: var(--vs-nav-top, 64px) !important;
    bottom: 0 !important;
    /* Explicit height (not just top+bottom) so a transformed ancestor or an
       inherited fixed height can't collapse the panel into a clipped strip. */
    height: calc(100dvh - var(--vs-nav-top, 64px)) !important;
    min-height: calc(100dvh - var(--vs-nav-top, 64px)) !important;
    max-height: none !important;
    width: 100% !important;
    max-width: 100vw !important;
    /* Fully opaque background so the page content never shows through the open
       menu. Prefer a solid surface/bg token over the (often translucent)
       nav background. */
    background-color: var(--surface, var(--bg, #ffffff)) !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    z-index: 9999 !important;
  }
  /* Force the menu's list to be a full, visible, scrollable column of links —
     defeats any inherited fixed height / clipping on the list itself. */
  .primary-nav.is-open > ul, .primary-nav.is-open > div > ul, .primary-nav.is-open ul,
  .primary-nav.open > ul, .primary-nav.open > div > ul, .primary-nav.open ul,
  .primary-nav.active > ul, .primary-nav.active > div > ul, .primary-nav.active ul,
  .nav-menu.is-open > ul, .nav-menu.is-open > div > ul, .nav-menu.is-open ul,
  .nav-menu.open > ul, .nav-menu.open > div > ul, .nav-menu.open ul,
  .nav-menu.active > ul, .nav-menu.active > div > ul, .nav-menu.active ul,
  .mobile-nav.is-open > ul, .mobile-nav.is-open > div > ul, .mobile-nav.is-open ul,
  .mobile-nav.open > ul, .mobile-nav.open > div > ul, .mobile-nav.open ul,
  .mobile-nav.active > ul, .mobile-nav.active > div > ul, .mobile-nav.active ul,
  nav.is-open > ul, nav.is-open > div > ul, nav.is-open ul,
  nav.open > ul, nav.open > div > ul, nav.open ul,
  nav.active > ul, nav.active > div > ul, nav.active ul,
  [data-nav].is-open > ul, [data-nav].is-open > div > ul, [data-nav].is-open ul,
  [data-nav="open"] > ul, [data-nav="open"] > div > ul, [data-nav="open"] ul {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    width: 100% !important;
  }
  /* Comfortable, tappable rows so the panel reads as a menu, not a squeezed bar. */
  .primary-nav.is-open li, .primary-nav.is-open a,
  .primary-nav.open li, .primary-nav.open a,
  .primary-nav.active li, .primary-nav.active a,
  .nav-menu.is-open li, .nav-menu.is-open a,
  .nav-menu.open li, .nav-menu.open a,
  .nav-menu.active li, .nav-menu.active a,
  .mobile-nav.is-open li, .mobile-nav.is-open a,
  .mobile-nav.open li, .mobile-nav.open a,
  .mobile-nav.active li, .mobile-nav.active a,
  nav.is-open li, nav.is-open a,
  nav.open li, nav.open a,
  nav.active li, nav.active a,
  [data-nav].is-open li, [data-nav].is-open a,
  [data-nav="open"] li, [data-nav="open"] a {
    width: 100% !important;
    display: block !important;
    min-height: 44px !important;
  }
}
/* === END VIBESITE-GUARDRAILS === */
