/* ============================================================
   Sarah Hirsch — Choreographer & Dancer
   Design System & Stylesheet
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

/* --- Fontshare Switzer --- */
@import url('https://api.fontshare.com/v2/css?f[]=switzer@300,400,500,600&display=swap');

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  /* Colors */
  --color-bg: #F5F0E8;
  --color-bg-alt: #EDE8DD;
  --color-text: #2C2623;
  --color-text-muted: #6B6B6B;
  --color-accent: #b08968;
  --color-accent-light: #c9a882;
  --color-border: rgba(44, 38, 35, 0.1);
  --color-overlay: rgba(44, 38, 35, 0.85);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Switzer', 'Helvetica Neue', Arial, sans-serif;

  /* Type Scale (fluid) */
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);
  --text-lg: clamp(1.1rem, 1rem + 0.4vw, 1.25rem);
  --text-xl: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  --text-2xl: clamp(1.8rem, 1.5rem + 1.2vw, 2.5rem);
  --text-3xl: clamp(2.4rem, 1.8rem + 2vw, 3.5rem);
  --text-hero: clamp(3rem, 2rem + 4vw, 5.5rem);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Layout */
  --max-width: 1280px;
  --max-width-narrow: 900px;
  --max-width-wide: 1400px;
  --header-height: 72px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 200ms;
  --duration-base: 350ms;
  --duration-slow: 600ms;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(44, 38, 35, 0.06);
  --shadow-md: 0 4px 12px rgba(44, 38, 35, 0.08);
  --shadow-lg: 0 12px 32px rgba(44, 38, 35, 0.12);
}

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

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

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

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

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

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

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

::selection {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); font-weight: 400; }

p {
  margin-bottom: 1em;
  max-width: 65ch;
}

p:last-child {
  margin-bottom: 0;
}

/* Eyebrow / Section Label */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background-color: var(--color-accent);
  flex-shrink: 0;
}

/* ============================================================
   Layout Utilities
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

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

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

.section {
  padding: clamp(var(--space-16), 8vw, var(--space-32)) 0;
}

.section--sm {
  padding: clamp(var(--space-10), 4vw, var(--space-16)) 0;
}

/* ============================================================
   Header / Navigation
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  height: var(--header-height);
  transition: box-shadow var(--duration-base) var(--ease-out);
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}

.header__logo svg {
  width: 36px;
  height: 36px;
}

.header__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  letter-spacing: 0.02em;
}

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

.header__nav a {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  padding: var(--space-1) 0;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--duration-base) var(--ease-out);
}

.header__nav a:hover::after,
.header__nav a.active::after {
  width: 100%;
}

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  transition: all var(--duration-base) var(--ease-out);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--color-bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-out);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

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

@media (max-width: 768px) {
  .header__nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

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

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to right,
    rgba(245, 240, 232, 0.88) 0%,
    rgba(245, 240, 232, 0.6) 30%,
    rgba(245, 240, 232, 0.15) 55%,
    transparent 75%
  );
}

.hero__overlay--bottom {
  background: linear-gradient(
    to top,
    rgba(245, 240, 232, 0.9) 0%,
    rgba(245, 240, 232, 0.4) 35%,
    transparent 65%
  );
}

.hero__content {
  position: relative;
  z-index: 3;
  padding: var(--space-16) var(--space-6) var(--space-12);
  max-width: var(--max-width-wide);
  margin: 0 auto;
  width: 100%;
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: 300;
  margin-bottom: var(--space-4);
  line-height: 1.05;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.hero__statement {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 300;
  font-style: italic;
  max-width: 42ch;
  color: var(--color-text);
  line-height: 1.5;
}

/* Page hero (interior pages) */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero .hero__content {
  padding: var(--space-12) var(--space-6) var(--space-10);
}

.page-hero__title {
  font-size: var(--text-3xl);
  font-weight: 300;
  margin-bottom: var(--space-3);
}

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

/* No-image page hero */
.page-hero--text {
  min-height: auto;
  padding: clamp(var(--space-16), 10vw, var(--space-24)) 0 var(--space-12);
}

.page-hero--text .hero__content {
  padding: 0 var(--space-6);
}

/* ============================================================
   Work Preview Cards (Homepage)
   ============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-10);
}

.work-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.work-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.work-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.work-card:hover .work-card__image img {
  transform: scale(1.04);
}

.work-card__info {
  padding: var(--space-5) 0 var(--space-2);
}

.work-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
}

.work-card__meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: var(--space-1);
}

@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

/* ============================================================
   Masonry Gallery
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-10);
}

.gallery__item {
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out),
              filter var(--duration-slow) var(--ease-out);
}

.gallery__item:hover img {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
}

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

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(44, 38, 35, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-out);
  cursor: pointer;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: var(--shadow-lg);
}

.lightbox__close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg);
  font-size: 1.5rem;
  cursor: pointer;
  transition: opacity var(--duration-fast);
}

.lightbox__close:hover {
  opacity: 0.7;
}

/* ============================================================
   Credentials Bar
   ============================================================ */
.credentials {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.credentials__list {
  font-family: var(--font-body);
  font-size: clamp(0.6rem, 0.5rem + 0.4vw, 0.75rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  line-height: 2;
  max-width: none;
}

/* ============================================================
   CTA Section
   ============================================================ */
.cta-section {
  text-align: center;
  padding: clamp(var(--space-16), 8vw, var(--space-24)) var(--space-6);
}

.cta-section h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-8);
}

/* Pill button */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: var(--space-4) var(--space-8);
  border-radius: 50px;
  background: var(--color-text);
  color: var(--color-bg);
  text-decoration: none;
  transition: all var(--duration-base) var(--ease-out);
  border: 1.5px solid var(--color-text);
}

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

.btn--outline {
  background: transparent;
  color: var(--color-text);
}

.btn--outline:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

/* ============================================================
   Choreography / Work Entries
   ============================================================ */
.work-entry {
  padding: clamp(var(--space-12), 6vw, var(--space-20)) 0;
  border-bottom: 1px solid var(--color-border);
}

.work-entry:last-child {
  border-bottom: none;
}

.work-entry__header {
  margin-bottom: var(--space-8);
}

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

.work-entry__year {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.work-entry__video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: var(--space-8);
  background: var(--color-text);
}

.work-entry__video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.work-entry__details {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-3) var(--space-6);
  margin-top: var(--space-6);
  align-items: baseline;
}

.work-entry__label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.work-entry__value {
  font-size: var(--text-base);
  color: var(--color-text);
}

@media (max-width: 600px) {
  .work-entry__details {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }

  .work-entry__label {
    margin-top: var(--space-4);
  }
}

/* ============================================================
   Performance Credits
   ============================================================ */
.credits-section {
  margin-bottom: var(--space-12);
}

.credits-section__title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.credits-section__title::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background-color: var(--color-accent);
}

.credits-table {
  width: 100%;
  border-collapse: collapse;
}

.credits-table th {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: left;
  padding: var(--space-3) var(--space-4) var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}

.credits-table td {
  padding: var(--space-4) var(--space-4) var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-base);
  vertical-align: top;
}

.credits-table a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-accent);
  transition: border-color var(--duration-fast);
}

.credits-table a:hover {
  border-bottom-color: var(--color-text);
}

@media (max-width: 600px) {
  .credits-table {
    font-size: var(--text-sm);
  }

  .credits-table th:nth-child(3),
  .credits-table td:nth-child(3) {
    display: none;
  }
}

.credits-list {
  margin-top: var(--space-4);
}

.credits-list li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-base);
}

.credits-list li:last-child {
  border-bottom: none;
}

/* ============================================================
   About Page
   ============================================================ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(var(--space-10), 5vw, var(--space-16));
  align-items: start;
}

.about-layout__image {
  position: sticky;
  top: calc(var(--header-height) + var(--space-6));
}

.about-layout__image img {
  width: 100%;
  border-radius: 3px;
}

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

.about-layout__content h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-8);
}

.about-layout__content p {
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: var(--space-5);
}

.about-secondary {
  margin-top: clamp(var(--space-12), 6vw, var(--space-20));
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(var(--space-10), 5vw, var(--space-16));
  align-items: center;
}

.about-secondary img {
  width: 100%;
  border-radius: 3px;
}

@media (max-width: 768px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-layout__image {
    position: relative;
    top: auto;
    max-width: 400px;
  }

  .about-secondary {
    grid-template-columns: 1fr;
  }

  .about-secondary img {
    max-width: 400px;
  }
}

/* ============================================================
   Contact Page
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(var(--space-10), 5vw, var(--space-16));
  align-items: start;
}

.contact-form {
  margin-top: var(--space-8);
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-group label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border);
  border-bottom: 1.5px solid rgba(44, 38, 35, 0.25);
  border-radius: 3px;
  transition: border-color var(--duration-fast);
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B6B6B' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.contact-info {
  margin-top: var(--space-10);
}

.contact-info__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
}

.contact-info__item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-accent);
}

.contact-image {
  border-radius: 3px;
  overflow: hidden;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 500px;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-image {
    display: none;
  }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-12) var(--space-6) var(--space-8);
}

.footer__inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 300;
}

.footer__brand span {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

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

.footer__nav a {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

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

.footer__social a {
  color: var(--color-text-muted);
  transition: color var(--duration-fast);
}

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

.footer__social svg {
  width: 20px;
  height: 20px;
}

.footer__copy {
  width: 100%;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ============================================================
   Scroll Animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

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

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger.visible > *:nth-child(2) { transition-delay: 80ms; }
.stagger.visible > *:nth-child(3) { transition-delay: 160ms; }
.stagger.visible > *:nth-child(4) { transition-delay: 240ms; }
.stagger.visible > *:nth-child(5) { transition-delay: 320ms; }
.stagger.visible > *:nth-child(6) { transition-delay: 400ms; }
.stagger.visible > *:nth-child(7) { transition-delay: 480ms; }
.stagger.visible > *:nth-child(8) { transition-delay: 560ms; }

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal, .stagger > * {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Utility
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
