/* ============================================================
   Island Aquariums LLC — style.css
   "The descent"
   Scrolling the page reads as sinking from a sunlit surface
   (hero) to the pond bed (footer). Three systems carry it:
   1. .depth-veil — fixed layer that darkens with scroll (--depth)
   2. .hero-rays — drifting light shafts over the hero photo
   3. .depth-rail — right-edge depth gauge / scroll progress
   Organization: Props → Reset → Typography → Motion primitives
   → Layout → Header → Hero → Marquee → Services → Feature
   → Gallery → Reviews → About → Contact → Footer → Responsive
   ============================================================ */

/* 1. Custom Properties
   ============================================================ */
:root {
  /* Brand colors — slightly deeper than production for the
     descent effect to have room to darken further */
  --color-bg:           #081210;
  --color-abyss:        #030a0c;      /* what the veil fades toward */
  --color-surface:      rgba(16, 26, 21, 0.82);
  --color-surface-2:    #141f18;
  --color-accent-green: #2e8b57;
  --color-green-deep:   #256e46;
  --color-accent-blue:  #56b8e0;
  --color-glow:         #9fd8ef;      /* pale light-through-water cyan */
  --color-text:         #eaf2ed;
  --color-text-muted:   #93a89b;
  --color-border:       rgba(94, 128, 106, 0.28);

  /* Typography */
  --font-display: 'Cinzel', 'Times New Roman', serif;
  --font-quote:   'Cormorant Garamond', Georgia, serif;
  --font-base:    'Inter', system-ui, -apple-system, sans-serif;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: clamp(4rem, 9vw, 7rem);

  /* Radii — kept subtle per brand conventions */
  --radius-sm: 4px;
  --radius-md: 8px;

  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.4);
  --header-h: 4.5rem;

  /* Scroll depth: 0 at top of page, 1 at bottom. JS updates it;
     the veil, rail, and readout all derive from this one number. */
  --depth: 0;

  /* Motion timing shared by reveals so everything moves as one system */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-duration: 0.9s;
}

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

html { font-size: clamp(15px, 0.42vw + 10px, 22px); scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
}

img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--color-accent-blue);
  outline-offset: 2px;
}

/* The descent veil: a fixed sheet behind all content whose
   opacity tracks scroll depth, sinking the page into darkness. */
.depth-veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--color-abyss), #020608);
  opacity: calc(var(--depth) * 0.85);
}

/* 3. Typography
   ============================================================ */
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 7vw, 5rem); letter-spacing: 0.01em; font-weight: 400; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.8rem); letter-spacing: 0.02em; }
h3 { font-size: 1.15rem; letter-spacing: 0.04em; }
p  { max-width: 65ch; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-accent-blue);
  margin-bottom: var(--space-2);
}
.eyebrow::before,
.eyebrow--center::after {
  content: "";
  height: 1px;
  width: 2rem;
  background: var(--color-accent-blue);
  opacity: 0.55;
  flex: none;
}
.eyebrow--center { justify-content: center; }

.section-intro { margin-bottom: var(--space-5); }
.section-intro--center { text-align: center; }
.section-intro--center p { margin-inline: auto; }
.section-intro p { margin-top: var(--space-2); color: var(--color-text-muted); }

/* 4. Motion primitives
   ============================================================
   Two reveal systems, both gated behind html.js so content is
   never hidden when JavaScript is unavailable:

   .reveal-line — load-time text mask. Outer span clips; inner
   span starts translated below the clip window and slides up
   when body.is-loaded lands. Staggered via --line-index.

   [data-reveal] — scroll-time reveal. Starts faded + lowered;
   IntersectionObserver adds .is-visible when it enters view. */

.js .reveal-line { display: block; overflow: hidden; }
.js .reveal-line > span {
  display: block;
  transform: translateY(115%);
  transition: transform var(--reveal-duration) var(--ease-out);
  transition-delay: calc(var(--line-index, 0) * 110ms + 150ms);
}
.js body.is-loaded .reveal-line > span { transform: translateY(0); }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity var(--reveal-duration) var(--ease-out),
    transform var(--reveal-duration) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* 5. Layout Utilities
   ============================================================ */
.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 5rem);
}

.section { padding-block: var(--space-6); }
/* "Deep" sections get a translucent surface so the veil beneath
   still reads through — flat opaque bands would break the descent */
.section--deep { background: var(--color-surface); }

section[id] { scroll-margin-top: var(--header-h); }

/* 6. Depth rail (desktop-only, see Responsive)
   ============================================================ */
.depth-rail {
  display: none;
  position: fixed;
  right: 1.75rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
}
.depth-rail-line {
  position: relative;
  display: block;
  width: 1px;
  height: 38vh;
  background: var(--color-border);
}
.depth-rail-marker {
  position: absolute;
  left: 50%;
  top: calc(var(--depth) * 100%);
  transform: translate(-50%, -50%);
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-accent-blue);
  box-shadow: 0 0 12px rgba(86, 184, 224, 0.7);
}
.depth-rail-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* 7. Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
/* Gains its glass once the visitor leaves the hero */
.site-header.is-scrolled {
  background: rgba(8, 18, 16, 0.88);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.site-logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-icon { height: 2.75rem; width: auto; }
.wordmark { display: flex; flex-direction: column; line-height: 1.25; }
.wordmark-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--color-text);
}
.wordmark-sub {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: var(--color-accent-blue);
}

.site-nav { display: none; }
.header-phone { display: none; }

/* Icon-only call button: the mobile header's always-visible CTA,
   replaced by the full .header-phone text link at wider widths. */
.header-call {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  transition: border-color 0.2s, background-color 0.3s, color 0.3s;
}
.header-call svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.header-call:hover { border-color: var(--color-accent-blue); }

/* Same treatment as the desktop .header-phone: once the hero's own
   call button scrolls out of view, this becomes the visible CTA. */
.site-header.is-past-hero .header-call {
  background: var(--color-accent-green);
  border-color: transparent;
  color: #fff;
}
.site-header.is-past-hero .header-call:hover {
  background: var(--color-green-deep);
}

/* Underline-on-hover nav links: a 1px line grows from the left */
.site-nav a {
  position: relative;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color 0.25s;
  padding-block: 0.25rem;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--color-accent-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.site-nav a:hover { color: var(--color-text); }
.site-nav a:hover::after { transform: scaleX(1); }

.mobile-nav-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  font-size: 1.5rem;
  line-height: 1;
}
.mobile-nav { display: none; }
.mobile-nav.is-open {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-height: 100vh;
  overflow-y: auto;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  padding: calc(var(--header-h) + var(--space-2)) var(--space-4) var(--space-5);
  z-index: 200;
  font-size: var(--text-lg);
}
.mobile-nav .mobile-nav-close {
  position: absolute;
  top: 1.25rem;
  right: clamp(1.25rem, 5vw, 4rem);
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.75rem;
  cursor: pointer;
}

/* 8. Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.8rem var(--space-3);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-accent-green);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-green-deep);
  box-shadow: 0 6px 20px rgba(46, 139, 87, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-outline:hover { border-color: var(--color-accent-blue); }

/* 9. Hero — the surface
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: calc(var(--header-h) + var(--space-4)) var(--space-6);
  /* Pull the hero up behind the transparent sticky header */
  margin-top: calc(var(--header-h) * -1);
}

.hero > * { position: relative; z-index: 1; }

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  /* Slow Ken Burns: barely perceptible, keeps the surface alive */
  animation: hero-drift 26s var(--ease-out) both;
}
@keyframes hero-drift {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}

/* Light shafts: two layered repeating gradients, skewed like sun
   rays refracting through water, drifting horizontally on loop.
   mix-blend-mode: screen lets them brighten the photo beneath. */
.hero-rays {
  position: absolute;
  inset: -20% -10%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.5;
  background:
    repeating-linear-gradient(112deg,
      transparent 0 6rem,
      rgba(159, 216, 239, 0.10) 7rem 9rem,
      transparent 10rem 18rem),
    repeating-linear-gradient(108deg,
      transparent 0 11rem,
      rgba(86, 184, 224, 0.07) 12rem 14rem,
      transparent 15rem 26rem);
  animation: rays-drift 18s ease-in-out infinite alternate;
}
@keyframes rays-drift {
  from { transform: translateX(-3%); opacity: 0.35; }
  to   { transform: translateX(3%);  opacity: 0.6; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--color-bg), transparent 30%),
    linear-gradient(100deg, rgba(8, 18, 16, 0.94) 25%, rgba(8, 18, 16, 0.55) 60%, rgba(30, 111, 168, 0.18) 100%);
}

.hero-content h1 { max-width: 12em; }
.hero-sub {
  margin-top: var(--space-3);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 46ch;
}
/* Extra .js-scoped selector outranks the .js .reveal-line > span
   display:block rule, so the buttons keep their flex gap */
.hero-actions span,
.js .hero-actions.reveal-line > span {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

/* Scroll cue: label + a line whose inner "drip" travels downward */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: 2;
}
.scroll-cue-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.scroll-cue-line {
  position: relative;
  width: 1px;
  height: 3.5rem;
  background: var(--color-border);
  overflow: hidden;
}
.scroll-cue-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: var(--color-glow);
  animation: cue-drip 2.2s var(--ease-out) infinite;
}
@keyframes cue-drip {
  to { top: 110%; }
}

/* Phones: the landscape photo is side-cropped by object-fit:
   cover, so the axolotl's face is pinned to mid-screen — right
   behind the centered headline. Fix: anchor the text to the
   bottom, then give the image vertical slack (130% tall box,
   bottom-pinned) so the face rides up into the cleared top half.
   Vertical object-position alone can't do this — with a
   landscape image in a portrait frame, cover leaves no vertical
   slack to reposition within. Desktop framing is untouched. */
@media (max-width: 767px) {
  .hero {
    align-items: flex-end;
    padding-bottom: 7.5rem; /* clear the scroll cue */
  }
  .hero-bg {
    inset: auto 0 0 0;
    height: 130%;
    object-position: 50% center; /* desktop's 70% clips the head */
  }
  .hero-overlay {
    background:
      linear-gradient(to bottom, rgba(3, 10, 12, 0.5), transparent 16%),
      linear-gradient(to top,
        var(--color-bg) 4%,
        rgba(8, 18, 16, 0.88) 30%,
        rgba(8, 18, 16, 0.35) 56%,
        rgba(8, 18, 16, 0.08) 100%);
  }
}

/* 10. Marquee
   ============================================================
   Track holds the phrase list twice; sliding exactly -50% then
   looping is what makes it seamless. */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--color-border);
  padding-block: var(--space-2);
  background: rgba(8, 18, 16, 0.5);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: max-content;
  animation: marquee-slide 46s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
  flex: none;
}
.marquee-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--color-accent-blue);
  opacity: 0.6;
}
@keyframes marquee-slide {
  to { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* 11. Services — hover-reveal list
   ============================================================ */
.services-split { display: grid; gap: var(--space-4); }

.service-row {
  display: grid;
  gap: var(--space-2);
  padding-block: var(--space-3);
  border-top: 1px solid var(--color-border);
  transition: background-color 0.3s, padding-left 0.35s var(--ease-out);
}
.services-list .service-row:last-child { border-bottom: 1px solid var(--color-border); }

.service-row h3 {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 500;
  transition: color 0.3s;
}
.service-row p { color: var(--color-text-muted); font-size: var(--text-sm); }
.card-meta {
  margin-top: var(--space-1);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-blue);
}

.service-thumb {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}
.service-thumb-stack {
  position: relative;
  overflow: hidden;
  padding: 0;
}
.service-thumb-stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s var(--ease-out);
}
.service-thumb-stack img.is-active { opacity: 1; }

.service-row-arrow {
  display: none;
  font-size: 1.5rem;
  color: var(--color-accent-blue);
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}

/* Desktop preview pane (activated in the media query) */
.services-preview { display: none; }

/* 12. Feature bleed — full-width parallax image
   ============================================================ */
.feature-bleed {
  position: relative;
  overflow: hidden;
}
.feature-bleed-media {
  position: relative;
  height: min(70vh, 34rem);
  overflow: hidden;
}
/* Legibility scrim: pinned to the image frame itself (not the
   caption) so it always reaches the exact edges of the photo */
.feature-bleed-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(3, 10, 12, 0.88) 0%,
    rgba(3, 10, 12, 0.4) 32%,
    transparent 60%);
  pointer-events: none;
}
/* Image is taller than its window; JS slides it via --parallax-y
   so it drifts slower than the page — classic depth cue. */
.feature-bleed-media img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  transform: translateY(var(--parallax-y, 0));
  will-change: transform;
}
.feature-bleed-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--space-4);
}
.feature-bleed-line {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  line-height: 1.4;
  max-width: 26em;
}

/* 13. Gallery — horizontal strip
   ============================================================ */
/* Default mode (no JS / reduced motion): manual horizontal scroll */
.gallery-strip {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-2);
  /* Thin styled scrollbar reads as a design element, not chrome */
  scrollbar-width: thin;
  scrollbar-color: rgba(94, 128, 106, 0.45) transparent;
}
.gallery-track {
  display: flex;
  gap: var(--space-3);
  padding-inline: clamp(1.25rem, 4vw, 5rem);
  width: max-content;
}

/* Marquee mode (added by JS after cloning the figures): js/script.js
   drives the drift via rAF + inline transform (not a CSS animation)
   so a press-and-hold can smoothly fast-forward the reel. The track
   travels until the cloned set lines up with the original, then
   wraps — the loop restart is pixel-identical and invisible. */
.gallery-strip.is-marquee {
  overflow: hidden;
  scroll-snap-type: none;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.gallery-strip.is-marquee.is-dragging { cursor: grabbing; }
.is-marquee .gallery-track {
  padding-inline: 0;
}

.strip-item {
  flex: 0 0 auto;
  width: min(78vw, 24rem);
  scroll-snap-align: center;
}
.strip-item img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: transform 0.5s var(--ease-out);
}
.strip-item:hover img { transform: scale(1.03); }
.strip-item figcaption {
  padding-top: 0.6rem;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.gallery-note {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* 14. Reviews — one voice at a time
   ============================================================ */
.review-stage {
  position: relative;
  min-height: 16rem;
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.review-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  pointer-events: none;
}
.review-slide.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }

.review-slide blockquote {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.45;
  color: var(--color-text);
}
.review-stars { display: flex; gap: 3px; justify-content: center; color: var(--color-accent-blue); }
.review-stars svg { width: 0.9rem; height: 0.9rem; fill: currentColor; }
.review-attribution { font-size: var(--text-sm); color: var(--color-text-muted); }
.review-attribution strong { color: var(--color-text); display: block; font-size: var(--text-base); }

.review-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: var(--space-3);
}
.review-dots button {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 1px solid var(--color-accent-blue);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s;
}
.review-dots button.is-active { background: var(--color-accent-blue); }

.reviews-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.reviews-note { font-size: var(--text-sm); color: var(--color-text-muted); font-style: italic; }

/* 15. About
   ============================================================ */
.about-grid {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}
.about-copy { max-width: 44rem; }
.about-copy p { color: var(--color-text-muted); margin-top: var(--space-2); font-size: var(--text-lg); }
.trust-list { margin-top: var(--space-3); display: grid; gap: 0.75rem; }
.trust-list li { display: flex; gap: 0.75rem; align-items: baseline; font-size: var(--text-lg); }
.trust-list li::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-accent-green);
  transform: translateY(-1px);
}

/* 16. Contact — editorial underline fields
   ============================================================ */
.contact-grid {
  display: grid;
  gap: var(--space-5);
  align-items: start;
}

.contact-form { display: grid; gap: var(--space-3); }
.form-row { display: grid; gap: var(--space-3); }
.form-field { display: grid; gap: 0.375rem; min-width: 0; }
.form-field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
/* Underline-only inputs: quieter, more editorial than boxes */
.form-field input,
.form-field select,
.form-field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  padding: 0.6rem 0.1rem;
  font-size: var(--text-base);
  transition: border-color 0.3s;
}
.form-field select { width: 100%; }
.form-field select option { background: var(--color-surface-2); color: var(--color-text); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--color-accent-blue);
}
.form-field textarea { resize: vertical; min-height: 7rem; }
.form-status { font-size: var(--text-sm); color: var(--color-accent-blue); min-height: 1.5em; }
.form-status.is-error { color: #e08a8a; }

.contact-aside { display: grid; gap: var(--space-4); }
.aside-block { border-left: 1px solid var(--color-border); padding-left: var(--space-3); }
.aside-block h3 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.aside-block p { color: var(--color-text-muted); font-size: var(--text-sm); }
.aside-block a { font-weight: 600; color: var(--color-text); }
.aside-block a:hover { color: var(--color-accent-blue); }

/* 17. Footer — the bed
   ============================================================ */
.site-footer {
  position: relative;
  background: var(--color-abyss);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-4) var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  overflow: hidden;
}

/* Giant outlined wordmark: stroke-only Cinzel spanning the width.
   -webkit-text-stroke has near-universal support; the low-opacity
   color is the fallback if it's ever unsupported. */
.footer-giant {
  font-family: var(--font-display);
  /* 7.3vw: sized so the 16-character wordmark spans the viewport
     without clipping (Cinzel caps average ~0.78em per character) */
  font-size: clamp(2.2rem, 7.3vw, 8.5rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  line-height: 1.1;
  color: rgba(234, 242, 237, 0.06);
  -webkit-text-stroke: 1px rgba(234, 242, 237, 0.22);
  user-select: none;
  margin-bottom: var(--space-4);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
}
.footer-badge { height: 5.5rem; width: auto; }
.footer-nav { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; }
.footer-nav a:hover { color: var(--color-text); }
.footer-contact { text-align: center; }
.footer-contact a:hover { color: var(--color-text); }

/* 18. Responsive — desktop enhancements
   ============================================================ */
@media (min-width: 768px) {
  .site-nav { display: flex; gap: var(--space-4); align-items: center; }
  .header-call { display: none; }
  .header-phone {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, background-color 0.3s, color 0.3s;
  }
  .header-phone:hover { border-color: var(--color-accent-blue); }

  /* Once the hero's own call button scrolls out of view, the header
     phone link takes over as the visible call-to-action. */
  .site-header.is-past-hero .header-phone {
    background: var(--color-accent-green);
    border-color: transparent;
    color: #fff;
  }
  .site-header.is-past-hero .header-phone:hover {
    background: var(--color-green-deep);
  }
  .mobile-nav-toggle { display: none; }

  .form-row { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .footer-contact { text-align: right; }
  .strip-item img { height: 20rem; }
  .strip-item--tall img { height: 24rem; }
  .strip-item { width: min(44vw, 26rem); }
  .contact-grid { grid-template-columns: 7fr 5fr; }
}

@media (min-width: 1024px) {
  .depth-rail { display: flex; }

  /* Services become the hover-reveal split: rows left, sticky
     crossfading preview right. Row thumbnails hide — the pane
     takes over their job. */
  .services-split { grid-template-columns: 7fr 5fr; gap: var(--space-5); }
  .service-thumb { display: none; }
  .service-row {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding-block: var(--space-4);
  }
  .service-row-arrow { display: block; opacity: 0; transform: translateX(-0.75rem); }
  .service-row:hover,
  .service-row.is-active { padding-left: var(--space-2); }
  .service-row:hover h3,
  .service-row.is-active h3 { color: var(--color-glow); }
  .service-row:hover .service-row-arrow,
  .service-row.is-active .service-row-arrow { opacity: 1; transform: translateX(0); }

  .services-preview {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + var(--space-3));
    height: 30rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
  }
  .preview-stack {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s var(--ease-out);
  }
  .preview-stack.is-active { opacity: 1; }
  .services-preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.8s var(--ease-out), transform 2.1s var(--ease-out);
  }
  .services-preview img.is-active { opacity: 1; transform: scale(1); }
}

/* 19. Reduced motion — the page must fully work without movement
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal-line > span { transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero-rays { display: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .feature-bleed-media img { transform: none; height: 100%; }
  .strip-item:hover img { transform: none; }
  /* Belt and suspenders: JS skips marquee mode under reduced
     motion, but if the preference changes mid-visit, restore
     manual scrolling */
  .gallery-strip.is-marquee { overflow-x: auto; touch-action: auto; }
}
