/* =========================================================
   AURÉLIE ALLIBERT PHOTOGRAPHY — Main Stylesheet
   Design direction: Editorial Athletics
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Color palette */
  --bg: #1c1a18;
  --bg-elevated: #252220;
  --bg-card: #282421;
  --text: #f0ece4;
  --text-muted: #8a847e;
  --text-dim: #5a554f;
  --accent: #7fa68b;
  --accent-dim: #5a8a72;
  --border: #2d2926;
  --border-soft: #252220;

  /* Background texture — subtle dot grid + top vignette (warm-toned port of pi.dev) */
  --page-grid-minor: rgba(240, 236, 228, 0.012);
  --page-grid-major: rgba(240, 236, 228, 0.032);
  --page-grid-cross: rgba(240, 236, 228, 0.085);
  --page-vignette-overlay: rgba(0, 0, 0, 0.22);

  /* Type families */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 160px;

  /* Layout */
  --max-width: 1320px;
  --content-width: 1080px;
  --gutter: 32px;
  --gutter-mobile: 20px;

  /* Effects */
  --transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-fast: 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  isolation: isolate;
  /* Containing block for body::before/after — without this, absolutely-positioned
     pseudos use the initial containing block (viewport) and extend beyond it,
     breaking horizontal centering. */
  position: relative;
}

/* ---------- Background texture (warm dot grid + top vignette) ---------- */
/* position: absolute so the grid scrolls with content (anchored to body, not viewport).
   inset: -8rem extends slightly beyond body so the grid bleeds off-screen at edges. */
body::before,
body::after {
  content: "";
  position: absolute;
  inset: -8rem;
  z-index: -1;
  pointer-events: none;
}

body::before {
  --grid-gap: 4px;
  --paper-bg: var(--bg);
  background-image:
    linear-gradient(var(--page-grid-minor) 0 1px, transparent 1px var(--grid-gap)),
    linear-gradient(to right, var(--page-grid-minor) 0 1px, transparent 1px var(--grid-gap)),
    linear-gradient(var(--page-grid-major) 0 1px, transparent 1px calc(var(--grid-gap) * 5)),
    linear-gradient(to right, var(--page-grid-major) 0 1px, transparent 1px calc(var(--grid-gap) * 5)),
    radial-gradient(
      circle at center,
      transparent calc(var(--grid-gap) / 2),
      var(--paper-bg) calc(var(--grid-gap) / 2) 100%
    ),
    linear-gradient(var(--page-grid-cross) 0 1px, transparent 1px calc(var(--grid-gap) * 5)),
    linear-gradient(to right, var(--page-grid-cross) 0 1px, transparent 1px calc(var(--grid-gap) * 5));
  background-size:
    var(--grid-gap) var(--grid-gap),
    var(--grid-gap) var(--grid-gap),
    calc(var(--grid-gap) * 5) calc(var(--grid-gap) * 5),
    calc(var(--grid-gap) * 5) calc(var(--grid-gap) * 5),
    calc(var(--grid-gap) * 5) calc(var(--grid-gap) * 5),
    calc(var(--grid-gap) * 5) calc(var(--grid-gap) * 5),
    calc(var(--grid-gap) * 5) calc(var(--grid-gap) * 5);
  background-position:
    0 0,
    0 0,
    0 0,
    0 0,
    calc(var(--grid-gap) * -2.5) calc(var(--grid-gap) * -2.5),
    0 0,
    0 0;
}

body::after {
  background: linear-gradient(
    to bottom,
    var(--page-vignette-overlay),
    var(--bg) 90%
  );
}

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

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

button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

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

/* ---------- Type styles ---------- */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(56px, 11vw, 156px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 96;
}

.display-sm {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 48;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow-muted {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.body-lg {
  font-size: 19px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text);
}

.body-md {
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--text);
}

.body-sm {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

@media (max-width: 768px) {
  .container, .container-narrow {
    padding: 0 var(--gutter-mobile);
  }
  .section {
    padding: 48px 0;
  }
  .section-sm {
    padding: 32px 0;
  }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px var(--gutter);
  background: linear-gradient(to bottom, rgba(28,26,24,0.85) 0%, rgba(28,26,24,0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--transition);
}

.nav.scrolled {
  background: rgba(28,26,24,0.95);
  border-bottom: 1px solid var(--border);
  padding: 16px var(--gutter);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
  font-variation-settings: "opsz" 48;
  line-height: 1;
}

.nav-brand .accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
}

/* ---------- Nav submenu (dropdown desktop, inline mobile) ---------- */
.nav-has-submenu {
  position: relative;
}

.nav-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  margin-top: 10px;
  padding: 8px 0;
  list-style: none;
  background: rgba(28, 26, 24, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 180px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 101;
}

/* Invisible bridge so hover doesn't drop off between trigger and dropdown */
.nav-submenu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-has-submenu:hover .nav-submenu,
.nav-has-submenu:focus-within .nav-submenu {
  display: block;
}

.nav-sublink {
  display: block;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-sublink:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-sublink.active {
  color: var(--accent);
  background: rgba(127, 166, 139, 0.06);
}

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--bg);
  background: var(--accent);
  padding: 10px 18px;
  border-radius: 999px;
  transition: background var(--transition-fast);
}

.nav-cta:hover {
  background: var(--text);
}

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle span:nth-child(1) { top: 11px; }
.nav-toggle span:nth-child(2) { top: 19px; }

.nav-toggle.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 80px 24px 40px;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
    overflow-y: auto;
  }
  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link {
    font-size: 22px;
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.01em;
  }
  .nav-toggle {
    display: block;
    z-index: 102;
  }
  .nav-cta {
    display: block;
    background: transparent;
    color: var(--text);
    padding: 0;
    border-radius: 0;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.01em;
  }
  .nav-cta:hover {
    background: transparent;
  }

  /* Submenu inline on mobile — all sport sub-links visible under Work */
  .nav-has-submenu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .nav-submenu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    position: static;
    transform: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
    min-width: 0;
  }
  .nav-submenu::before {
    display: none;
  }
  .nav-sublink {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
    padding: 4px 0;
    text-align: center;
    letter-spacing: -0.005em;
    text-transform: none;
  }
  .nav-sublink:hover,
  .nav-sublink.active {
    background: transparent;
    color: var(--accent);
  }
}

/* ---------- Hero — Home ---------- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: var(--space-2xl);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Bottom edge fades to transparent so the page grid texture
     dissolves into view as the hero image ends. */
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 55%,
    rgba(0, 0, 0, 0.75) 78%,
    rgba(0, 0, 0, 0.25) 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 55%,
    rgba(0, 0, 0, 0.75) 78%,
    rgba(0, 0, 0, 0.25) 92%,
    transparent 100%
  );
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-bg-slide.active {
  opacity: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(28,26,24,0.5) 0%, rgba(28,26,24,0.3) 40%, rgba(28,26,24,0.9) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

.hero-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-meta-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-title {
  margin-bottom: 24px;
  max-width: 1100px;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}

.hero-tagline {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.5;
}

.hero-cta-row {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-primary:hover {
  background: var(--text);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--text);
}

.btn-text {
  background: transparent;
  padding: 0;
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  border-radius: 0;
}

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

.btn-arrow::after {
  content: '→';
  font-size: 16px;
  transition: transform var(--transition-fast);
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* ---------- Section Headers ---------- */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-2xl);
  gap: 32px;
  flex-wrap: wrap;
}

.section-header-left {
  max-width: 600px;
}

.section-header-left .eyebrow {
  margin-bottom: 16px;
  display: block;
}

.section-header-left h2 {
  margin-bottom: 16px;
}

.section-header-right {
  text-align: right;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-header-right {
    text-align: left;
  }
}

/* ---------- Featured Work Strip (Home) ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 60px;
  gap: 16px;
  margin-top: var(--space-xl);
}

.featured-item {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
  border-radius: 2px;
}

.featured-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.featured-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,26,24,0.9), transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}

.featured-item:hover .featured-item-overlay {
  opacity: 1;
}

.featured-item-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.featured-item-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  font-variation-settings: "opsz" 48;
}

/* Featured layout — explicit slot placement so portrait images land in portrait cells.
   Current 6-item assignment expects:
     1: landscape  2: portrait  3: landscape  4: landscape  5: landscape  6: portrait */
.featured-item:nth-child(1) { grid-column: 1 / 7;   grid-row: 1 / 8;  } /* big landscape — 6 cols × 7 rows */
.featured-item:nth-child(2) { grid-column: 7 / 10;  grid-row: 1 / 8;  } /* portrait      — 3 cols × 7 rows */
.featured-item:nth-child(6) { grid-column: 10 / 13; grid-row: 1 / 8;  } /* portrait      — 3 cols × 7 rows */
.featured-item:nth-child(3) { grid-column: 1 / 5;   grid-row: 8 / 12; } /* landscape     — 4 cols × 4 rows */
.featured-item:nth-child(4) { grid-column: 5 / 9;   grid-row: 8 / 12; } /* landscape     — 4 cols × 4 rows */
.featured-item:nth-child(5) { grid-column: 9 / 13;  grid-row: 8 / 12; } /* landscape     — 4 cols × 4 rows */

@media (max-width: 768px) {
  .featured-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .featured-item {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 3 / 2;
    width: 100%;
  }
  .featured-item:nth-child(2),
  .featured-item:nth-child(6) {
    aspect-ratio: 2 / 3;
  }
}

/* ---------- Approach / Differentiator strip ---------- */
.approach {
  position: relative;
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 64px;
}

.approach-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.approach-item-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
  font-variation-settings: "opsz" 144;
}

.approach-item-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 4px;
  font-variation-settings: "opsz" 48;
}

.approach-item-body {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 880px) {
  .approach-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Gallery (masonry columns, Pixieset-style) ----------
   Three equal-width columns; every image renders at its natural aspect
   ratio and stacks top to bottom. Markup keeps an L-P-P repeating order
   so each column receives a mix of orientations. */
.gallery {
  column-count: 3;
  column-gap: 8px;
}

.gallery-item {
  flex-shrink: 0;
  flex-grow: 0;
  scroll-snap-align: start;
  /* Height inherited from .gallery-item, aspect-ratio from .gallery-item-l */
  width: auto;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
  border-radius: 2px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

/* .gallery-item-l / .gallery-item-p are layout no-ops in masonry — every
   image renders at its own natural aspect. Classes stay in markup for
   future layout flexibility. */

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease, filter 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

@media (max-width: 880px) {
  .gallery { column-count: 2; }
}

@media (max-width: 480px) {
  .gallery { column-count: 1; }
}

.gallery-item-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(28,26,24,0.7);
  backdrop-filter: blur(6px);
  padding: 5px 10px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-item-tag {
  opacity: 1;
}

/* ---------- Sport tile sections (work page — sports gateway) ---------- */
.sport-tile-section {
  margin-bottom: 80px;
}

.sport-tile-section:last-of-type {
  margin-bottom: 0;
}

.sport-tile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.sport-tile-meta {
  max-width: 640px;
}

.sport-tile-meta .eyebrow {
  display: block;
  margin-bottom: 12px;
}

.sport-tile-meta h2 {
  margin-bottom: 12px;
}

.sport-tile-blurb {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Same justified-rows pattern as .gallery — fixed tile height, widths flex by aspect. */
.sport-tile-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}


.sport-tile {
  position: relative;
  height: 600px;
  flex-grow: 1;
  overflow: hidden;
  background: var(--bg-card);
  border-radius: 2px;
}

.sport-tile-l { aspect-ratio: 3 / 2; }
.sport-tile-p { aspect-ratio: 2 / 3; }

.sport-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}

.sport-tile-cluster:hover .sport-tile img {
  transform: scale(1.03);
}

@media (max-width: 1100px) {
  .sport-tile { height: 480px; }
}

@media (max-width: 768px) {
  .sport-tile-header {
    align-items: flex-start;
    gap: 20px;
  }
  .sport-tile { height: 360px; }
  .sport-tile-section {
    margin-bottom: 48px;
  }
}

@media (max-width: 480px) {
  .sport-tile-cluster {
    flex-direction: column;
  }
  .sport-tile {
    height: auto;
    width: 100%;
    aspect-ratio: auto;
  }
  .sport-tile img {
    height: auto;
  }
}

/* ---------- Services Page ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.service-card {
  background: var(--bg);
  padding: 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 48px;
  align-items: start;
  transition: background var(--transition-fast);
}

.service-card:hover {
  background: var(--bg-elevated);
}

.service-num {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 300;
  color: var(--accent);
  font-variation-settings: "opsz" 144;
  line-height: 1;
  min-width: 80px;
}

.service-body {
  max-width: 600px;
}

.service-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
  font-variation-settings: "opsz" 96;
}

.service-audience {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.service-desc {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-includes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-includes li {
  font-size: 14px;
  color: var(--text);
  padding-left: 24px;
  position: relative;
}

.service-includes li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.service-meta {
  text-align: right;
  min-width: 180px;
}

.service-meta .mono {
  display: block;
  margin-bottom: 8px;
}

.service-price {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
  font-variation-settings: "opsz" 48;
}

@media (max-width: 880px) {
  .service-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 24px;
  }
  .service-meta {
    text-align: left;
  }
}

/* ---------- About Page ---------- */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-portrait {
  aspect-ratio: 4 / 5;
  background: var(--bg-card);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

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

.about-portrait-note {
  position: absolute;
  bottom: 16px;
  left: 16px;
  padding: 6px 10px;
  background: rgba(127, 166, 139, 0.92);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
}

.about-text h1 {
  margin-bottom: 32px;
}

.about-bio {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.about-bio strong {
  color: var(--text);
  font-weight: 500;
}

.about-facts {
  padding-top: 32px;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.about-fact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.about-fact-value {
  font-size: 15px;
  color: var(--text);
}

@media (max-width: 880px) {
  .about-hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ---------- Credentials strip ---------- */
.credentials {
  padding: 24px 0;
  position: relative;
}

.credentials-label {
  margin-bottom: 32px;
}

.credentials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
}

.credentials-item {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  font-variation-settings: "opsz" 48;
}

.credentials-item.muted {
  color: var(--text-dim);
}

/* ---------- Process Page ---------- */
.process-steps {
  display: flex;
  flex-direction: column;
}

.process-step {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 64px;
  padding: 28px 0;
  align-items: start;
}

.process-step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding-top: 14px;
}

.process-step-content h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 18px;
  font-variation-settings: "opsz" 96;
}

.process-step-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 580px;
}

.process-step-content p + p {
  margin-top: 16px;
}

@media (max-width: 768px) {
  .process-step {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 40px 0;
  }
}

/* ---------- Contact Page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input, .form-select, .form-textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 0;
  outline: none;
  transition: border-color var(--transition-fast);
  width: 100%;
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23888' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 12px;
  cursor: pointer;
}

.form-select option {
  background: var(--bg-elevated);
  color: var(--text);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: var(--font-body);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-submit {
  margin-top: 16px;
  align-self: flex-start;
}

/* Honeypot field — moved off-screen, invisible to humans, still in the DOM for bots */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--accent);
}

.form-status-error {
  color: #d98a6a;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-info-block {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.contact-info-block:first-child {
  border-top: none;
  padding-top: 0;
}

.contact-info-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.contact-info-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 48;
}

.contact-info-value a:hover {
  color: var(--accent);
}

@media (max-width: 880px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Page header (for non-home pages) ---------- */
.page-header {
  padding: 180px 0 40px;
}

.page-header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.page-header-meta-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.page-header h1 {
  margin-bottom: 24px;
}

.page-header-lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 640px;
}

@media (max-width: 768px) {
  .page-header {
    padding: 120px 0 56px;
  }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
  margin-top: var(--space-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  font-variation-settings: "opsz" 96;
}

.footer-brand .accent { color: var(--accent); }

.footer-tagline {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 880px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

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

/* ---------- Lightbox (full-bleed filmstrip viewer) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(14,13,12,0.985);
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  overflow: hidden;
}

.lightbox.active {
  display: block;
  opacity: 1;
}

/* Filmstrip — three image slots, current centered, prev/next peek from the edges */
.lightbox-strip {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.lightbox-img {
  display: block;
  object-fit: contain;
  transition: opacity 0.3s ease, filter 0.3s ease;
  pointer-events: auto;
}

.lightbox-img-current {
  max-width: 92vw;
  max-height: 96vh;
  width: auto;
  height: auto;
  opacity: 1;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  z-index: 2;
}

.lightbox-img-current.swapping {
  opacity: 0;
}

/* Prev/next peeks — partially off-screen slivers giving filmstrip context */
.lightbox-img-prev, .lightbox-img-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 70vh;
  max-height: 720px;
  width: auto;
  max-width: 14vw;
  opacity: 0.28;
  filter: saturate(0.7);
  cursor: pointer;
  z-index: 1;
}

.lightbox-img-prev {
  left: 0;
  transform: translate(-30%, -50%);
}

.lightbox-img-next {
  right: 0;
  transform: translate(30%, -50%);
}

.lightbox-img-prev:hover, .lightbox-img-next:hover {
  opacity: 0.55;
  filter: saturate(0.9);
}

.lightbox-img-prev[src=""], .lightbox-img-next[src=""] {
  display: none;
}

/* Counter — top-left */
.lightbox-counter {
  position: absolute;
  top: 28px;
  left: 32px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  z-index: 3;
}

.lightbox-counter-current {
  color: var(--text);
}

.lightbox-counter-sep {
  margin: 0 6px;
  color: var(--text-dim);
}

/* Close — top-right */
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  z-index: 3;
}

.lightbox-close:hover {
  color: var(--text);
  border-color: var(--border);
}

/* Prev/next buttons sit on top of the peek slivers as the explicit affordance */
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(14,13,12,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  z-index: 3;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(28,26,24,0.85);
  border-color: rgba(255,255,255,0.18);
}

/* Caption — bottom-right overlay */
.lightbox-caption {
  position: absolute;
  bottom: 28px;
  right: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
  max-width: 50vw;
  z-index: 3;
  pointer-events: none;
}

.lightbox-caption-tag {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.lightbox-caption-tag:empty {
  display: none;
}

.lightbox-caption-text {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 20px);
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  font-variation-settings: "opsz" 48;
  line-height: 1.2;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}

.lightbox-caption-text:empty {
  display: none;
}

@media (max-width: 768px) {
  .lightbox-img-prev, .lightbox-img-next {
    display: none;
  }
  .lightbox-img-current {
    max-width: 96vw;
    max-height: 84vh;
  }
  .lightbox-prev, .lightbox-next {
    width: 44px;
    height: 44px;
  }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
  .lightbox-counter {
    top: 18px;
    left: 18px;
  }
  .lightbox-close {
    top: 14px;
    right: 14px;
  }
  .lightbox-caption {
    bottom: 18px;
    right: 18px;
    left: 18px;
    align-items: flex-end;
    max-width: none;
  }
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.3s; }
.fade-up-3 { animation-delay: 0.5s; }
.fade-up-4 { animation-delay: 0.7s; }
