/* =========================================================================
   Premiere Glass Coatings — Theme
   Design tokens + base + reusable components. Portable, framework-agnostic.
   Visual language: clear glass — deep marine ink, aqua light, translucent
   panels, generous whitespace. No image dependencies; all decoration is CSS.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=Michroma&display=swap');

/* =========================================================================
   1. TOKENS
   ========================================================================= */
:root {
  /* Marine ink — the dark end of the palette */
  --color-ink:        #0A151F;
  --color-ink-deep:   #06101A;
  --color-ink-800:    #11202D;
  --color-ink-700:    #1B2E3D;

  /* Aqua — the accent, reads as light through glass */
  --color-aqua:        #23A9D8;
  --color-aqua-bright: #5FD3F2;
  --color-aqua-deep:   #10789F;

  /* Mist — the light end */
  --color-mist:    #F1F6F9;
  --color-mist-2:  #E3EDF3;
  --color-white:   #FFFFFF;

  /* Type colors */
  --color-heading:     #0C1922;
  --color-body:        #4D5C68;
  --color-muted:       #7C8994;
  --color-on-dark:     #FFFFFF;
  --color-on-dark-mut: #A9BCCA;

  --line-on-light: rgba(10, 21, 31, .12);
  --line-on-dark:  rgba(255, 255, 255, .14);

  --font-display: 'Sora', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  /* Hero wordmark only. Michroma is the closest free stand-in for the wide,
     squared Eurostile-style lettering in the original baked-in artwork. */
  --font-mark:    'Michroma', 'Eurostile', 'Bank Gothic', var(--font-display);

  --fs-display: clamp(2.75rem, 1.6rem + 4.6vw, 4.75rem);
  --fs-h1:      clamp(2.35rem, 1.6rem + 3.1vw, 3.6rem);
  --fs-h2:      clamp(1.95rem, 1.4rem + 2.3vw, 2.9rem);
  --fs-h3:      clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem);
  --fs-lead:    clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  --fs-body:    1rem;
  --fs-small:   0.875rem;
  --fs-eyebrow: 0.75rem;

  --lh-tight:   1.06;
  --lh-heading: 1.18;
  --lh-body:    1.7;

  --tracking-eyebrow: 0.2em;
  --tracking-btn:     0.03em;

  --space-1: 0.25rem;  --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.5rem;  --space-6: 2rem;
  --space-7: 3rem;     --space-8: 4rem;    --space-9: 6rem;
  --section-y: clamp(3.5rem, 2rem + 5vw, 6.5rem);

  --header-h: 4.5rem;

  --container:        1180px;
  --container-wide:   1340px;
  --container-narrow: 780px;
  --gutter: clamp(1.25rem, 4vw, 5rem);

  --radius-sm: 6px;  --radius-md: 12px;  --radius-lg: 20px;  --radius-pill: 999px;

  --shadow-card:  0 18px 44px -26px rgba(10, 21, 31, .40);
  --shadow-lift:  0 26px 60px -30px rgba(10, 21, 31, .50);
  --shadow-glass: 0 20px 50px -30px rgba(35, 169, 216, .55);

  --ease: cubic-bezier(.2, .6, .2, 1);
  --dur: 0.25s;
}

/* =========================================================================
   2. BASE
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchor targets clear the sticky header */
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-body);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-heading);
  font-weight: 600;
  line-height: var(--lh-heading);
  margin: 0 0 var(--space-4);
  letter-spacing: -0.02em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--color-aqua); }

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

ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--color-aqua); color: #fff; }

:focus-visible {
  outline: 2px solid var(--color-aqua);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Dark sections invert heading + link colors */
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4 { color: var(--color-on-dark); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    /* Zeroing the delay matters as much as the duration: without it the
       staggered entrances (hero copy, wordmark letters) still trickle in over
       half a second — motion, just slower. */
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* =========================================================================
   3. LAYOUT HELPERS
   ========================================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide   { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2rem, 1rem + 3vw, 3rem); }

.bg-mist { background: var(--color-mist); }
.bg-ink {
  background:
    radial-gradient(120% 130% at 78% 8%, var(--color-ink-800) 0%, var(--color-ink-deep) 58%);
  color: var(--color-on-dark-mut);
}

/* <picture> wrapper that leaves layout untouched, so the existing rules on the
   inner <img> keep applying exactly as before. */
.pic { display: contents; }

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link:focus {
  position: fixed;
  top: var(--space-3); left: var(--space-3);
  z-index: 200;
  background: var(--color-ink);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* =========================================================================
   4. TYPOGRAPHY BITS
   ========================================================================= */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-aqua-deep);
  margin: 0 0 var(--space-4);
}
.eyebrow--on-dark { color: var(--color-aqua-bright); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--color-body);
  max-width: 62ch;
}
.lead--on-dark { color: var(--color-on-dark-mut); }

.section-head { margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 3.75rem); }
.section-head--center {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}
.section-head--center .lead { margin-inline: auto; }
/* For headings that need a line to themselves. The lead keeps its own measure,
   so widening the heading doesn't drag the paragraph out with it. */
.section-head--wide { max-width: 64rem; }
.section-head--wide .lead { max-width: 46rem; }
.section-head h2 { margin-bottom: var(--space-4); }

/* =========================================================================
   5. BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: var(--tracking-btn);
  line-height: 1;
  padding: 1rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-align: center;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--accent {
  background: linear-gradient(135deg, var(--color-aqua-bright), var(--color-aqua));
  color: var(--color-ink-deep);
  box-shadow: var(--shadow-glass);
}
.btn--accent:hover {
  color: var(--color-ink-deep);
  box-shadow: 0 24px 55px -28px rgba(35, 169, 216, .8);
}

.btn--ghost {
  background: transparent;
  color: var(--color-on-dark);
  border-color: var(--line-on-dark);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  color: var(--color-on-dark);
  border-color: rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .06);
}

.btn--sm { padding: .7rem 1.25rem; font-size: .875rem; }
.btn--block { width: 100%; }
.btn svg { flex: none; }

/* =========================================================================
   6. HEADER + NAV
   ========================================================================= */
/* Transparent over the hero photo; the dark bar only appears once scrolled.
   Both states share the same height so nothing shifts on the transition. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
/* .is-open matters on mobile: with the menu down, a transparent bar would leave
   the logo floating over the photo above a solid dropdown. */
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(6, 16, 26, .82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-on-dark);
}
.site-header.is-open { background: var(--color-ink-deep); }

/* Full-bleed: the logo sits in the corner rather than on the content gutter,
   so this overrides the container padding it inherits from the markup. */
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: var(--header-h);
  max-width: none;
  padding-inline: clamp(1rem, 1.6vw, 2rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-on-dark);
  flex: none;
}
.brand:hover { color: var(--color-on-dark); }

/* Transparent PNG built for dark backgrounds (white wordmark, red 3M), so it
   needs no plate — it sits straight on the navy.
   The logo is intentionally taller than the 4.5rem header bar. The negative
   bottom margin keeps it from stretching the bar: the header keeps its height
   while the artwork bleeds past the bottom edge onto the hero below. */
.brand__logo {
  height: 7rem;
  width: auto;
  flex: none;
  /* Top margin sets the gap above the artwork; the bottom one absorbs the rest
     of the height so the bar doesn't grow. The pair sums to -2.8rem — keep that
     sum constant to nudge the logo up or down without resizing the header. */
  margin-block: 0.5rem -3.3rem;
  position: relative;
  z-index: 2;
  transition: height var(--dur) var(--ease), margin var(--dur) var(--ease);
}

/* Once the page scrolls, the logo tucks fully inside the 4.5rem bar. */
.site-header.is-scrolled .brand__logo {
  height: 3.25rem;
  margin-block: 0;
}

/* Footer sits on the same dark ground — large, but no overflow needed. */
.brand__logo--footer {
  height: 5.5rem;
  margin-block: 0;
}

/* Step the overflow down as the bar tightens, so the logo never collides with
   the nav toggle or outruns the viewport (aspect is ~3:1, so height drives width). */
@media (max-width: 960px) {
  .brand__logo { height: 5rem; margin-block: 0.4rem -2.2rem; }
}
@media (max-width: 560px) {
  .brand__logo { height: 3.6rem; margin-block: 0.3rem -1.2rem; }
  .brand__logo--footer { height: 4.25rem; }
  /* Already near bar height here, so the shrink is subtler. */
  .site-header.is-scrolled .brand__logo { height: 2.9rem; }
}
@media (max-width: 400px) {
  .brand__logo { height: 3rem; margin-block: 0; }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.8vw, 1.9rem);
}
.main-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-on-dark-mut);
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--color-on-dark); }
.main-nav__phone {
  font-weight: 600 !important;
  color: var(--color-on-dark) !important;
}
.main-nav .btn { color: var(--color-ink-deep); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  /* 44px minimum touch target */
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-sm);
  color: var(--color-on-dark);
  padding: .5rem;
  cursor: pointer;
}

/* Seven links plus the phone number and button need ~1,280px, so the menu
   collapses well before the logo steps down at 960. */
@media (max-width: 1279px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-3) var(--gutter) var(--space-5);
    background: var(--color-ink-deep);
    border-bottom: 1px solid var(--line-on-dark);
    display: none;
    /* Must outrank the overflowing logo (z-index 2) or the open menu's first
       item renders underneath it. */
    z-index: 3;
  }
  .site-header.is-open .main-nav { display: flex; }
  .main-nav a {
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--line-on-dark);
    font-size: 1rem;
  }
  .main-nav .btn {
    margin-top: var(--space-4);
    border-bottom: 0;
    padding: 1rem 1.75rem;
  }
}

/* =========================================================================
   7. HERO
   ========================================================================= */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(34rem, 82vh, 50rem);
  background: var(--color-ink-deep);
  color: var(--color-on-dark-mut);
  /* Pulled up under the transparent header so the photo runs edge to edge
     behind it; the extra top padding keeps the copy clear of the nav. */
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(3.5rem, 2rem + 6vw, 7rem));
  padding-bottom: clamp(3.5rem, 2rem + 6vw, 7rem);
}

/* svh is the viewport with the mobile browser chrome showing; plain vh is the
   *large* viewport, so on a phone the hero ran taller than the screen and the
   proof row started life below the fold. Kept as a separate @supports block —
   nesting this inside .hero would rely on CSS nesting, and browsers without it
   would drop the whole declaration. */
@supports (height: 1svh) {
  .hero { min-height: clamp(34rem, 82svh, 50rem); }
}

/* Full-bleed background photos. <img> rather than CSS backgrounds so the first
   one can carry fetchpriority and srcset and be found by the preload scanner —
   it's the LCP element. Each <picture> is positioned rather than
   display:contents so the layout box is explicit. */
.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;   /* clips the zoom rather than leaning on .hero to do it */
}

/* Slides stack; only the active one is opaque. Crossfade is a touch longer than
   it looks like it needs to be — a quick swap on a photo this large reads as a
   glitch, a slow one reads as intentional. */
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s linear;
}
.hero__slide.is-active { opacity: 1; }

.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Baseline sits slightly past 1:1 so the zoom has somewhere to start and the
     edges never expose a sliver of background mid-transform. */
  transform: scale(1.02);
}

/* The slow push in. 8.4s = the 7s an image holds plus the 1.4s it spends fading
   out, so it's still moving right up to the moment it's gone — a zoom that
   parks before the cut is what makes the effect look mechanical. Runs on the
   active slide only, so re-adding the class restarts it. */
.hero__slide.is-active .hero__bg {
  animation: hero-zoom 8.4s linear both;
}

@keyframes hero-zoom {
  from { transform: scale(1.02); }
  to   { transform: scale(1.09); }
}

@media (prefers-reduced-motion: reduce) {
  /* The global reset only shortens animations, which would snap this to its
     fully zoomed end state. Drop it outright — JS also skips autoplay, so
     reduced-motion visitors get a still frame they advance themselves. */
  .hero__slide.is-active .hero__bg {
    animation: none !important;
    transform: scale(1.02);
  }
}

/* --- Slideshow controls ---------------------------------------------------
   Above the copy (z-index 3) so the buttons stay clickable, and centred rather
   than tucked into a corner: the copy sits right and the watermarks sit left,
   so the bottom centre is the only strip that's free at every width. */
.hero__controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(1.25rem, 3vh, 2.25rem);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
/* [hidden] sets display:none in the UA sheet, which the rule above would
   otherwise beat — the controls would show before their images had loaded. */
.hero__controls[hidden] { display: none; }

.hero__ctrl {
  width: 2.875rem;    /* 46px — clears the 44px touch-target minimum */
  height: 2.875rem;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(6, 16, 26, .4);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  backdrop-filter: blur(10px) saturate(1.3);
  color: var(--color-on-dark);
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.hero__ctrl svg { width: 1.15rem; height: 1.15rem; }
.hero__ctrl:hover {
  background: rgba(35, 169, 216, .5);
  border-color: rgba(255, 255, 255, .55);
  box-shadow: 0 0 0 6px rgba(35, 169, 216, .14);
  transform: scale(1.06);
}
.hero__ctrl:active { transform: scale(.95); }

.hero__ticks {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* The button is a full-height 44px target; the visible bar is the ::before, and
   ::after wipes across it as the hold elapses, so the dashes double as a
   countdown to the next slide. */
.hero__tick {
  position: relative;
  display: block;
  width: 1.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: width var(--dur) var(--ease);
}
.hero__tick::before,
.hero__tick::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: calc(50% - 1.5px);
  height: 3px;
  border-radius: 99px;
}
.hero__tick::before { background: rgba(255, 255, 255, .32); }
.hero__tick::after {
  background: var(--color-aqua-bright);
  transform: scaleX(0);
  transform-origin: left center;
}
.hero__tick.is-active { width: 3.25rem; }
.hero__tick.is-active::after { animation: tick-fill 7s linear both; }

/* Once the visitor takes over — or if they've asked for reduced motion —
   autoplay stops, so the countdown would be lying. Show it filled instead. */
.hero__controls.is-paused .hero__tick.is-active::after {
  animation: none;
  transform: scaleX(1);
}

@keyframes tick-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Legibility scrim, weighted to the right where the copy now sits. The supplied
   image is already darkened, so this stays light to avoid crushing it to mud. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to left,
    rgba(6, 16, 26, .82) 0%,
    rgba(6, 16, 26, .62) 42%,
    rgba(6, 16, 26, .28) 100%
  );
  pointer-events: none;
}

/* Aqua light bloom, like light refracting through an edge */
.hero__glow {
  position: absolute;
  top: -30%; right: -10%;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  z-index: 1;
  background: radial-gradient(circle, rgba(35, 169, 216, .22) 0%, rgba(35, 169, 216, 0) 62%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: end;
}
/* Block sits right; the text inside is left-aligned. Right-ragged paragraphs
   force the eye to hunt for each line start — the reference site positions
   right but aligns left for exactly this reason. */
.hero__copy {
  max-width: 40rem;
  text-align: left;
}

/* --- Watermark brand marks ------------------------------------------------
   Background decor, not foreground badges: a layer above the photo and scrim
   but below the copy, in low-opacity white. Sizes mirror the proportions of
   the original baked-in artwork (wordmark ~84% of width across the top, 3M
   ~37% of width on the left).
   Both animations drive only transform/opacity, so they run on the compositor
   and cost no layout or paint. Each mark gets an entrance, then settles into a
   float; the loops use different durations so the two never bob in lockstep,
   which is what makes a float read as cheap. */
.hero__marks {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero__wordmark {
  position: absolute;
  top: 7%;
  left: 11%;          /* clears the corner logo, as in the reference */
  font-family: var(--font-mark);
  font-size: clamp(2.75rem, 10vw, 15rem);
  line-height: 1;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .17);
  white-space: nowrap;
  /* The letters carry the entrance now (see .hero__wordmark-l); the parent only
     floats, and waits until the last letter has landed (~1.14s) to start. */
  animation: mark-float-a 9.5s ease-in-out 1.35s infinite;
}

/* Each letter falls in on its own delay. inline-block so transforms apply;
   offsets are in em so they scale with the clamped font-size instead of
   needing a separate mobile value. */
.hero__wordmark-l {
  display: inline-block;
  animation: letter-drop .72s cubic-bezier(.45, .05, .25, 1) both;
  animation-delay: calc(var(--i) * 70ms);
}

.hero__3m {
  position: absolute;
  /* Sits well clear of the wordmark above it — at 10vw the wordmark's line box
     runs to roughly 31% of hero height, so this starts below that with air. */
  top: 40%;
  left: 9%;
  width: 42%;         /* reference measures ~42% of hero width */
  max-width: 52rem;
  height: auto;
  /* Supplied asset is already the finished watermark: white at 37% alpha baked
     in, antialiased. No recolour filter needed — and note the opacity below
     MULTIPLIES that 37%, so .55 here lands at roughly 20% on screen.
     Target opacity lives in a custom property because the entrance keyframe
     animates opacity — a static `opacity` here would be overridden and the
     mark would land at full strength. The keyframe reads this instead. */
  --mark-opacity: .55;
  opacity: var(--mark-opacity);
  animation:
    mark-enter-3m 1.1s var(--ease) .2s both,
    mark-float-b 12s ease-in-out 1.3s infinite;
}

/* Staggered hero entrance. Scoped to .js (set by an inline head script) so the
   copy is never left invisible if the script doesn't run. fill-mode `both`
   holds opacity:0 through the delay, then the end state — which also means
   reduced-motion users land on the visible state instantly. */
/* Scoped to :first-child so it only ever runs on the slide that's showing at
   page load. Applying it to .is-active instead would replay the whole stagger
   on every slide change, fighting the crossfade that's already handling it.
   Delays are unchanged from when these five were siblings. */
.js .hero__text:first-child > * { animation: hero-in .85s var(--ease) both; }
.js .hero__text:first-child > :nth-child(1) { animation-delay: .10s; }
.js .hero__text:first-child > :nth-child(2) { animation-delay: .22s; }
.js .hero__text:first-child > :nth-child(3) { animation-delay: .34s; }
.js .hero__copy > .hero__actions { animation: hero-in .85s var(--ease) .46s both; }
.js .hero__copy > .hero__proof   { animation: hero-in .85s var(--ease) .58s both; }

@keyframes hero-in {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Falls from above, overshoots a hair past the baseline, settles. The tiny
   overshoot is what sells it as a drop rather than a fade. */
@keyframes letter-drop {
  0%   { opacity: 0; transform: translate3d(0, -.65em, 0); }
  55%  { opacity: 1; transform: translate3d(0, .07em, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes mark-enter-3m {
  from { opacity: 0; transform: translate3d(0, 30px, 0); }
  to   { opacity: var(--mark-opacity); transform: translate3d(0, 0, 0); }
}
/* A touch more travel, plus a small opposing sideways drift on each so the two
   never look like they're on the same rail. */
@keyframes mark-float-a {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(7px, -21px, 0); }
}
@keyframes mark-float-b {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(-9px, -32px, 0); }
}

@media (max-width: 700px) {
  /* Narrow screens: pull the marks back so they stay texture, not clutter. */
  /* 13vw at left:11% ran ~60px past the viewport on every phone size — the
     nowrap wordmark was being clipped mid-word. 10vw/5% clears 320px up. */
  .hero__wordmark { font-size: 10vw; left: 5%; color: rgba(255, 255, 255, .13); }
  /* At .42 the mark landed square behind the lead paragraph — on a phone the
     copy is full width, so there's nowhere for it to sit that isn't behind
     text. Pulled back to texture. */
  .hero__3m { width: 52%; top: 32%; left: 5%; --mark-opacity: .28; }
}
/* Copy blocks, one per slide, stacked in a single grid cell so the container
   takes the height of the tallest and nothing below it shifts as they change.
   visibility (not just opacity) keeps the inactive two out of the accessibility
   tree and the tab order — otherwise a screen reader would read all three
   headlines back to back. */
.hero__texts { display: grid; }
.hero__text {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s var(--ease), visibility .7s var(--ease);
}
.hero__text.is-active {
  opacity: 1;
  visibility: visible;
}

.hero__title {
  /* Two of the three are <p>, so the shared heading rule doesn't reach them —
     these four have to be restated here or the copy changes typeface mid-slide. */
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  color: var(--color-on-dark);
  margin: 0 0 var(--space-5);
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--color-aqua-bright), var(--color-aqua));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: var(--fs-lead);
  line-height: 1.68;
  color: var(--color-on-dark-mut);
  max-width: 54ch;
  margin-right: auto;  /* caps the measure without pushing the block around */
  margin-bottom: var(--space-6);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  font-size: var(--fs-small);
  color: var(--color-on-dark-mut);
}
.hero__proof li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.hero__proof svg {
  width: 1.05rem; height: 1.05rem;
  flex: none;
  color: var(--color-aqua-bright);
}

@media (max-width: 700px) {
  /* Narrow screens crop the photo to a centre strip, so ease the scrim back
     to a flat wash rather than a left-to-right ramp. */
  .hero__scrim {
    background: linear-gradient(
      to bottom,
      rgba(6, 16, 26, .58) 0%,
      rgba(6, 16, 26, .78) 100%
    );
  }

  /* The controls are absolutely positioned, so the hero has to reserve the
     room itself — at the desktop padding they landed on top of the proof row. */
  .hero { padding-bottom: 8rem; }

  /* Full-width buttons stacked, rather than two half-width ones that wrap into
     an awkward ragged pair on a 360px screen. */
  .hero__actions { gap: var(--space-3); }
  .hero__actions .btn { flex: 1 1 100%; }

  /* One proof point per line — as a wrapping row these broke mid-item, leaving
     an orphaned tick sitting on its own line. */
  .hero__proof {
    flex-direction: column;
    gap: var(--space-2);
  }
}

/* =========================================================================
   7d. SERVICES CHECKERBOARD
   ========================================================================= */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(.7rem, 1.2vw, 1.15rem);
  /* Rows are sized to land the cells near the reference's 5:4, and minmax rather
     than a fixed height so a card whose description runs long pushes its row
     taller instead of spilling out of it.
     The rem cap isn't arbitrary: --container-wide tops out at 1340px, so cell
     width plateaus around 397px past ~1440 viewport and a vw-only value would
     just keep growing the rows past that point. */
  grid-auto-rows: minmax(clamp(12rem, 22vw, 20rem), auto);
  margin-top: clamp(2rem, 3vw, 3.25rem);
}

/* --- text cards --- */
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-5) clamp(1rem, 2vw, 2rem) var(--space-7);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .014);
  color: var(--color-on-dark);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.svc-card:hover,
.svc-card:focus-visible {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .3);
  color: var(--color-on-dark);   /* the global a:hover would tint this aqua */
}

.svc-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.02rem, .82rem + .5vw, 1.32rem);
  line-height: 1.25;
  color: var(--color-on-dark);
  margin: 0;
}
.svc-card__desc {
  font-size: var(--fs-small);
  line-height: 1.62;
  color: var(--color-on-dark-mut);
  margin: 0;
  max-width: 30ch;
}

/* Pinned bottom-right, out of the flow so it can't shift the centred text. */
.svc-card__arrow {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  color: var(--color-on-dark-mut);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}
.svc-card__arrow svg { width: 100%; height: 100%; }
.svc-card:hover .svc-card__arrow,
.svc-card:focus-visible .svc-card__arrow {
  transform: translateX(3px);
  color: var(--color-aqua-bright);
}

/* --- photo cells --- */
/* Every cell carries a real photo now; the empty-state dressing (dashed border,
   hatch fill, label) and its .svc-photo--filled override are gone. The markup
   still writes both classes, which is harmless. */
.svc-photo {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--color-ink);
}
.svc-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- 3M mark in the centre cell: no border, part of the board --- */
.svc-mark {
  display: grid;
  place-items: center;
  padding: var(--space-4);
}
.svc-mark img {
  width: min(78%, 15rem);
  height: auto;
  /* The asset is white at 37% alpha; on this background that reads as the flat
     grey the reference uses, so it needs no recolouring. */
  opacity: .6;
}

@media (max-width: 900px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  /* The 3M mark only means anything as the centre of a 3-wide board. */
  .svc-mark { display: none; }
}

@media (max-width: 640px) {
  /* One column: twelve stacked cells is a long scroll, and the photos carry no
     copy, so the cards go through on their own and the tiles drop out. */
  .svc-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .svc-photo { display: none; }
  .svc-card { padding-bottom: var(--space-6); }
}

/* =========================================================================
   7c. CATEGORY PANELS (full-bleed trio with an accordion hover)
   ========================================================================= */
.panels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  /* Animating the track sizes rather than the panels themselves is what gives
     the accordion its direction for free: widening one column pushes the others
     aside, so the end panels open toward the middle and the centre one opens
     both ways. No per-panel transform maths, and no gaps opening up mid-move. */
  transition: grid-template-columns .55s var(--ease);
  background: var(--color-ink-deep);
}

/* :has() lets the parent respond to which child is hovered. Where it isn't
   supported the columns simply stay equal and only the zoom below runs — the
   section still works, it just doesn't open. */
.panels:has(.panel:nth-child(1):hover) { grid-template-columns: 1.46fr .77fr .77fr; }
.panels:has(.panel:nth-child(2):hover) { grid-template-columns: .77fr 1.46fr .77fr; }
.panels:has(.panel:nth-child(3):hover) { grid-template-columns: .77fr .77fr 1.46fr; }

/* Keyboard parity — tabbing through the panels opens them the same way. */
.panels:has(.panel:nth-child(1):focus-visible) { grid-template-columns: 1.46fr .77fr .77fr; }
.panels:has(.panel:nth-child(2):focus-visible) { grid-template-columns: .77fr 1.46fr .77fr; }
.panels:has(.panel:nth-child(3):focus-visible) { grid-template-columns: .77fr .77fr 1.46fr; }

.panel {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: clamp(22rem, 30vw, 32rem);
  color: var(--color-on-dark);
}
/* The global a:hover turns links aqua, which here recoloured the whole title.
   The accent belongs on the rule under the sub-label, not the heading. */
.panel:hover,
.panel:focus-visible { color: var(--color-on-dark); }
.panel__img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  transition: transform .55s var(--ease);
}
/* The panel gets wider on hover, which reveals more of the photo on its own;
   the zoom is deliberately small on top of that so the two read as one move. */
.panel:hover .panel__img,
.panel:focus-visible .panel__img { transform: scale(1.08); }

.panel__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6, 16, 26, .5) 0%,
    rgba(6, 16, 26, .34) 45%,
    rgba(6, 16, 26, .62) 100%
  );
  transition: background var(--dur) var(--ease);
}
.panel:hover .panel__scrim,
.panel:focus-visible .panel__scrim {
  background: linear-gradient(
    to bottom,
    rgba(6, 16, 26, .34) 0%,
    rgba(6, 16, 26, .18) 45%,
    rgba(6, 16, 26, .5) 100%
  );
}

/* Hairlines between panels, drawn inside the panel so the animating columns
   never leave a seam. The first one is suppressed. */
.panel + .panel::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 1px;
  z-index: 2;
  background: rgba(255, 255, 255, .16);
}

.panel__label {
  position: absolute;
  z-index: 2;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-4);
  text-align: center;
  transition: transform .55s var(--ease);
}
.panel:hover .panel__label,
.panel:focus-visible .panel__label { transform: translateY(calc(-50% - .5rem)); }

.panel__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 1rem + 1.6vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 24px rgba(6, 16, 26, .5);
}
.panel__sub {
  font-size: var(--fs-small);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .82);
  text-shadow: 0 1px 16px rgba(6, 16, 26, .6);
  /* Sits under a rule that draws itself in as the panel opens. */
  padding-bottom: var(--space-3);
  background-image: linear-gradient(var(--color-aqua-bright), var(--color-aqua-bright));
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 0 2px;
  transition: background-size .55s var(--ease);
}
.panel:hover .panel__sub,
.panel:focus-visible .panel__sub { background-size: 2.5rem 2px; }

@media (max-width: 760px) {
  /* Three columns on a phone gives ~120px each — unreadable, and there's no
     hover to open them anyway. Stack, and let each panel size to its content. */
  .panels {
    grid-template-columns: 1fr;
    transition: none;
  }
  .panel { min-height: 15rem; }
  .panel + .panel::before {
    top: 0; left: 0; right: 0;
    bottom: auto;
    width: auto;
    height: 1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Keep the reveal, drop the travel: the columns and zoom stop moving, but the
     scrim and rule still respond so hover feedback isn't lost entirely. */
  .panels { transition: none; }
  .panels:has(.panel:hover),
  .panels:has(.panel:focus-visible) { grid-template-columns: 1fr 1fr 1fr; }
  .panel__img { transition: none; }
  .panel:hover .panel__img,
  .panel:focus-visible .panel__img { transform: scale(1.01); }
}

/* =========================================================================
   7b. ABOUT (tabs + staggered photo pair)
   ========================================================================= */
.about {
  position: relative;
  overflow: hidden;
  background: var(--color-white);
  padding-block: clamp(3.5rem, 2rem + 5vw, 7rem);
}
/* Faint blueprint texture. The asset already fades out to the right, so it is
   anchored left and left at full strength rather than dimmed with opacity. */
.about__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* The box is given the asset's own 16:9 ratio instead of being stretched to
     inset:0. Filling the section meant `cover` had to scale up to reach the
     bottom and crop the sides — 373px off the right at 1425px wide, and 2773px
     off at 390px, where it landed at 165% and showed only the leftmost eighth.
     Matching the ratio means the drawing is always shown whole, at its own
     proportions, including the fade to white on its right that the crop was
     removing. */
  aspect-ratio: 1920 / 1080;
  background-position: left top;
  background-size: cover;
  background-repeat: no-repeat;
  /* Half strength: the previous asset was faint enough to sit under body copy
     undimmed, this one isn't. */
  opacity: .5;
  /* The drawing runs to its own bottom edge, so ending the box would leave a
     hard horizontal line across the section. Fading it out is relative to this
     box, not the section, so it lands in the same place at every width. */
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
  /* First declaration is the fallback for browsers without image-set; those
     that support it take the WebP (84KB -> 27KB on this texture). */
  background-image: url('/media/background-1920.jpg');
  background-image: image-set(
    url('/media/background-1920.webp') type('image/webp'),
    url('/media/background-1920.jpg') type('image/jpeg')
  );
  pointer-events: none;
}
.about__inner {
  position: relative;
  display: grid;
  /* Gallery takes the larger share so the photos can scale up without simply
     overlapping each other more. */
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}

.about__title {
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  font-size: clamp(1.75rem, 1rem + 2.4vw, 3.1rem);
  max-width: 18ch;
  margin-bottom: var(--space-6);
}

/* --- tabs --- */
.tabs__list {
  display: flex;
  gap: var(--space-6);
  border-bottom: 1px solid var(--line-on-light);
  margin-bottom: var(--space-5);
}
.tabs__tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0 0 var(--space-3);
  font-family: var(--font-sans);
  font-size: .98rem;
  font-weight: 500;
  color: var(--color-muted);
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tabs__tab:hover { color: var(--color-heading); }
.tabs__tab[aria-selected="true"] {
  color: var(--color-heading);
  border-bottom-color: var(--color-aqua);
}
.tabs__panel { max-width: 60ch; }
.tabs__panel[hidden] { display: none; }
.tabs__panel p { font-size: .98rem; }

/* --- staggered photo pair --- */
.about__gallery {
  position: relative;
  /* Bleeds into the right gutter for extra width. Safe because .about clips. */
  margin-right: calc(-1 * var(--gutter));
  /* Images are 528x774 (0.682). A shot at 63% width is 0.924 of the gallery
     width tall; add the front shot's 13% offset and the block is ~1.06 wide. */
  aspect-ratio: 100 / 106;
}
.about__shot {
  position: absolute;
  margin: 0;
  width: 63%;          /* 63 + 63 > 100, so the pair overlaps by ~26% */
}
.about__shot img { width: 100%; height: auto; }

.about__shot--back {
  top: 0;
  right: 0;
  z-index: 1;
}
.about__shot--front {
  top: 13%;
  left: 0;
  z-index: 2;
  /* White ring reads as a gap only where it crosses the shot behind it. */
  box-shadow: 0 0 0 14px var(--color-white),
              0 40px 70px -36px rgba(10, 21, 31, .45);
}

/* --- entrance reveal ------------------------------------------------------
   Hidden state is scoped to .js so the photos stay visible if the script never
   runs. Back slides in from the right, front rises after it. */
.js .about__shot {
  opacity: 0;
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
.js .about__shot--back  { transform: translate3d(38px, 26px, 0); }
.js .about__shot--front { transform: translate3d(-30px, 34px, 0); transition-delay: .18s; }
.js .about__gallery.is-inview .about__shot {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 900px) {
  .about__inner { grid-template-columns: 1fr; }
  .about__title { max-width: none; }
  .about__gallery { order: -1; }
}
@media (max-width: 520px) {
  /* Too tight to overlap — stack them plainly. */
  .about__gallery {
    aspect-ratio: auto;
    display: grid;
    gap: var(--space-4);
    margin-right: 0;
  }
  .about__shot { position: static; width: 100%; }
  .about__shot--front { box-shadow: var(--shadow-card); }
  .js .about__shot--back,
  .js .about__shot--front { transform: translate3d(0, 28px, 0); }
}

/* =========================================================================
   8. STATS
   ========================================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  text-align: center;
}
.stats__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-inline: var(--space-3);
  border-left: 1px solid var(--line-on-light);
}
.stats__item:first-child { border-left: 0; }
.stats__num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-heading);
  line-height: 1.1;
}
.stats__label {
  font-size: var(--fs-small);
  color: var(--color-muted);
}
@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--space-6) var(--space-4); }
  .stats__item:nth-child(odd) { border-left: 0; }
}

/* --- Dealer logos under the stats --- */
.dealers {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line-on-light);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4) var(--space-7);
}
.dealers__label {
  margin: 0;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.dealers__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4) var(--space-7);
}
.dealers__item img {
  display: block;
  width: auto;
  opacity: .72;
}
.dealers__item--3m img    { height: 36px; }
.dealers__item--solyx img { height: 42px; }
.dealers__item--llumar img { height: 30px; }
@media (max-width: 640px) {
  .dealers { flex-direction: column; gap: var(--space-4); }
  .dealers__list { gap: var(--space-4) var(--space-6); }
  .dealers__item--3m img    { height: 30px; }
  .dealers__item--solyx img { height: 34px; }
  .dealers__item--llumar img { height: 24px; }
}

/* =========================================================================
   9. GRID + CARDS
   ========================================================================= */
.grid { display: grid; gap: var(--space-5); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid--3 { grid-template-columns: 1fr; } }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px)  { .grid--2 { grid-template-columns: 1fr; } }

.card {
  padding: var(--space-6);
  border-radius: var(--radius-md);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.card h3 { margin-bottom: var(--space-3); }
.card p { font-size: .96rem; }

.card__icon {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, rgba(95, 211, 242, .22), rgba(35, 169, 216, .12));
  color: var(--color-aqua-deep);
}
.card__icon svg { width: 1.5rem; height: 1.5rem; }

.card--plain {
  background: var(--color-mist);
  border: 1px solid transparent;
}
.card--plain:hover {
  border-color: rgba(35, 169, 216, .3);
  transform: translateY(-3px);
}

/* A whole card that links somewhere, with a "more" line pinned to the bottom */
.card--link { display: flex; flex-direction: column; gap: var(--space-3); color: inherit; }
.card--link h3, .card--link p { margin: 0; }
.card__more {
  margin-top: auto;
  padding-top: var(--space-3);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-aqua-deep, #1582AB);
}
.card--link:hover .card__more { text-decoration: underline; text-underline-offset: 3px; }

/* Translucent "pane" cards for the dark services band */
.card--glass {
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line-on-dark);
  backdrop-filter: blur(8px);
  color: var(--color-on-dark-mut);
  display: flex;
  flex-direction: column;
}
.card--glass:hover {
  transform: translateY(-4px);
  border-color: rgba(95, 211, 242, .45);
  box-shadow: var(--shadow-glass);
}
.card--glass .card__icon {
  background: linear-gradient(140deg, rgba(95, 211, 242, .26), rgba(35, 169, 216, .10));
  color: var(--color-aqua-bright);
}
.card__meta {
  margin-top: auto;
  padding-top: var(--space-4);
  font-size: var(--fs-small);
  color: var(--color-aqua-bright);
  font-weight: 500;
}

.card--review {
  background: var(--color-white);
  border: 1px solid var(--line-on-light);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.card--review p { margin: 0; }
.stars { color: var(--color-aqua); letter-spacing: .12em; font-size: 1rem; }
.card__by {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line-on-light);
  font-size: var(--fs-small);
  display: flex;
  flex-direction: column;
}
.card__by strong { color: var(--color-heading); font-weight: 600; }
.card__by span { color: var(--color-muted); }

/* --- Project cards: a named job and a photo of it, in place of testimonials --- */
.card--project {
  padding: 0;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--line-on-light);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.card--project:hover {
  transform: translateY(-3px);
  border-color: rgba(35, 169, 216, .3);
}
.card__shot {
  margin: 0;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--color-mist);
}
.card__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow, .5s) var(--ease);
}
.card--project:hover .card__shot img { transform: scale(1.03); }
.card__body {
  flex: 1;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.card--project h3 { margin-bottom: 0; font-size: 1.06rem; }
.card--project p { margin: 0; }
.card--project .card__by { flex-direction: row; justify-content: space-between; gap: var(--space-3); }

@media (prefers-reduced-motion: reduce) {
  .card--project:hover .card__shot img { transform: none; }
}

/* --- Before/after pair under the project cards --- */
.before-after {
  margin-top: var(--space-8);
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
.before-after__copy h3 { font-size: 1.4rem; margin-bottom: var(--space-3); }
.before-after__copy p { margin: 0 0 var(--space-4); }
.before-after__meta {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line-on-light);
  font-size: var(--fs-small);
}
.before-after__meta strong { color: var(--color-heading); font-weight: 600; }
.before-after__meta span { color: var(--color-muted); }
.before-after__shot {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-on-light);
  box-shadow: var(--shadow-card);
  background: var(--color-mist);
}
.before-after__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.before-after__tag {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: rgba(10, 21, 31, .78);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.before-after__tag--after { background: var(--color-aqua); color: var(--color-ink); }
/* Same pair without the copy column: the section head carries the words. */
.before-after--wide {
  margin-top: 0;
  grid-template-columns: 1fr 1fr;
  max-width: 54rem;
  margin-inline: auto;
}
@media (max-width: 900px) {
  .before-after { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
  .before-after__copy { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .before-after__tag { top: var(--space-3); left: var(--space-3); padding: 2px var(--space-2); font-size: .65rem; }
}

/* =========================================================================
   10. STEPS
   ========================================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  counter-reset: step;
}
.steps__item {
  position: relative;
  padding-top: var(--space-6);
  border-top: 2px solid var(--line-on-light);
}
/* Aqua tick marking the start of each step on the rule */
.steps__item::before {
  content: "";
  position: absolute;
  top: -2px; left: 0;
  width: 2.5rem; height: 2px;
  background: var(--color-aqua);
}
.steps__num {
  display: block;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--color-aqua-deep);
  margin-bottom: var(--space-3);
}
.steps__body h3 { margin-bottom: var(--space-3); }
.steps__body p { font-size: .96rem; }

@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* =========================================================================
   11. SPLIT (why us) + CHECKLIST + QUOTE CARD
   ========================================================================= */
.split {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2.5rem, 4vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Heading on a left rail, content on the right — for sections whose content
   needs a narrow measure (prose, accordions) but which would otherwise sit in
   a 780px column with a third of the page empty either side. */
.split--rail {
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(2.5rem, 5vw, 5.5rem);
}
.split--rail .section-head { margin-bottom: 0; }
@media (min-width: 901px) {
  .split--rail__head { position: sticky; top: 6.5rem; }
}
@media (max-width: 900px) {
  .split--rail { grid-template-columns: 1fr; gap: var(--space-6); }
}

.checklist {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-6) 0 var(--space-7);
}
/* In a heading rail the list is its own column, so it shouldn't carry the
   top/bottom margin it needs when it sits under a heading. */
.checklist--flush { margin: 0; }
.checklist li {
  position: relative;
  padding-left: 2.15rem;
  font-size: .96rem;
}
/* Checkmark drawn with CSS so there's no icon markup to repeat */
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .5rem;
  width: 1.4rem; height: 1.4rem;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--color-aqua-bright), var(--color-aqua));
}
.checklist li::after {
  content: "";
  position: absolute;
  left: .48rem; top: .78rem;
  width: .42rem; height: .72rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checklist strong {
  display: block;
  color: var(--color-heading);
  font-weight: 600;
}

.quote-card {
  position: relative;
  padding: var(--space-7) var(--space-6) var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--line-on-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.quote-card__mark {
  width: 2.5rem; height: 2.5rem;
  color: var(--color-aqua);
  opacity: .35;
  margin-bottom: var(--space-4);
}
.quote-card blockquote { margin: 0; }
.quote-card blockquote p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-heading);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.quote-card__by {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-on-light);
  display: flex;
  flex-direction: column;
  font-size: var(--fs-small);
}
.quote-card__by strong { color: var(--color-heading); }
.quote-card__by span { color: var(--color-muted); }

/* =========================================================================
   11b. INNER-PAGE HERO
   Service pages need a top that reads like the homepage without competing
   with it — one photo, one heading, no slideshow.
   ========================================================================= */
.page-hero {
  position: relative;
  isolation: isolate;
  background: var(--color-ink);
  overflow: hidden;
  /* Same trick as .hero: the header is transparent until you scroll, so it
     needs a dark surface beneath it. Without this the bar shows the white page
     behind it and the white logo disappears at the top of every service page.
     The extra top padding keeps the copy clear of the nav. */
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(3rem, 1.75rem + 5vw, 6rem));
  padding-bottom: clamp(3rem, 1.75rem + 5vw, 6rem);
}
.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .30;
}
/* Keeps the copy legible whatever lands in the photo behind it. */
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    rgba(10, 21, 31, .93) 0%,
    rgba(10, 21, 31, .82) 38%,
    rgba(10, 21, 31, .34) 100%
  );
}
.page-hero__inner { max-width: none; }
/* Text-only hero for legal pages: no photo, and much less height. */
.page-hero--plain {
  padding-top: calc(var(--header-h) + clamp(3.5rem, 2.5rem + 3vw, 5rem));
  padding-bottom: clamp(2rem, 1.25rem + 3vw, 3.5rem);
}
.page-hero--plain::after { display: none; }
.page-hero--plain .page-hero__title { margin-bottom: 0; }
.page-hero__title {
  color: var(--color-on-dark);
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.2rem + 3.6vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-5);
  max-width: 20ch;   /* wraps on its own terms rather than at a hard <br> */
}
.page-hero__title em {
  font-style: normal;
  color: var(--color-aqua-bright);
}
.page-hero__lead {
  color: var(--color-on-dark-mut);
  font-size: clamp(1rem, .95rem + .3vw, 1.12rem);
  line-height: 1.65;
  margin: 0 0 var(--space-6);
  max-width: 44rem;
}
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

/* --- Breadcrumbs --- */
.crumbs { margin-bottom: var(--space-5); }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .8rem;
  color: var(--color-on-dark-mut);
}
.crumbs li + li::before {
  content: "/";
  margin-right: var(--space-2);
  opacity: .45;
}
.crumbs a { color: var(--color-on-dark-mut); }
.crumbs a:hover { color: var(--color-aqua-bright); }
.crumbs [aria-current="page"] { color: var(--color-on-dark); }

/* --- Captioned photo, for a project shot beside body copy --- */
.figure-card {
  margin: 0;
  background: var(--color-white);
  border: 1px solid var(--line-on-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.figure-card img { display: block; width: 100%; height: auto; }
.figure-card figcaption {
  padding: var(--space-4) var(--space-5);
  font-size: var(--fs-small);
  color: var(--color-muted);
  border-top: 1px solid var(--line-on-light);
}

/* Pill list on a light background — .area-list itself is styled for the dark
   band and is defined further down this file, so the plain `.area-list--light li`
   would lose on source order at equal specificity. Doubling the class wins
   regardless of where either block ends up. */
.area-list.area-list--light li {
  border-color: var(--line-on-light);
  background: var(--color-white);
  color: var(--color-body);
}
.area-list.area-list--light li:hover {
  border-color: rgba(35, 169, 216, .5);
  color: var(--color-heading);
}

/* Cards in a grid need room to breathe when they carry no photo. */
.grid--gap { gap: var(--space-5); }

/* =========================================================================
   12. SERVICE AREA
   ========================================================================= */
.area-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}
.area-list li {
  padding: .6rem 1.15rem;
  font-size: .9rem;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .04);
  color: var(--color-on-dark-mut);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.area-list li:hover {
  border-color: rgba(95, 211, 242, .5);
  color: var(--color-on-dark);
}

/* =========================================================================
   13. FAQ
   ========================================================================= */
.faq {
  border-top: 1px solid var(--line-on-light);
}
.faq__item { border-bottom: 1px solid var(--line-on-light); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-heading);
  cursor: pointer;
  list-style: none;
  letter-spacing: -0.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
/* Plus sign that rotates into a minus when open */
.faq__item summary::after {
  content: "";
  flex: none;
  width: 1.5rem; height: 1.5rem;
  background:
    linear-gradient(var(--color-aqua-deep), var(--color-aqua-deep)) center/100% 2px no-repeat,
    linear-gradient(var(--color-aqua-deep), var(--color-aqua-deep)) center/2px 100% no-repeat;
  transition: transform var(--dur) var(--ease);
}
.faq__item[open] summary::after { transform: rotate(135deg); }
.faq__item summary:hover { color: var(--color-aqua-deep); }
.faq__answer {
  padding-bottom: var(--space-5);
  max-width: 68ch;
}
.faq__answer p { font-size: .97rem; }

/* =========================================================================
   14. CTA BAND + QUOTE FORM
   ========================================================================= */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(110% 130% at 20% 10%, var(--color-ink-800) 0%, var(--color-ink-deep) 62%);
  color: var(--color-on-dark-mut);
}
.cta-band__glow {
  position: absolute;
  bottom: -40%; left: -10%;
  width: 60vw; height: 60vw;
  max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(35, 169, 216, .26) 0%, rgba(35, 169, 216, 0) 62%);
  pointer-events: none;
}
.cta-band h2 { color: var(--color-on-dark); }
.cta-band__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: clamp(2.5rem, 4vw, 4.5rem);
  align-items: start;
}
@media (max-width: 900px) { .cta-band__inner { grid-template-columns: 1fr; } }

.cta-band__contact {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
  font-size: .96rem;
}
.cta-band__contact li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.cta-band__contact svg {
  width: 1.25rem; height: 1.25rem;
  flex: none;
  color: var(--color-aqua-bright);
}
.cta-band__contact a { color: var(--color-on-dark); font-weight: 500; }
.cta-band__contact a:hover { color: var(--color-aqua-bright); }

.quote-form {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  display: grid;
  gap: var(--space-4);
}
.quote-form__title {
  color: var(--color-on-dark);
  font-size: 1.25rem;
  margin: 0 0 var(--space-1);
}
.quote-form__fine {
  font-size: .8rem;
  color: var(--color-on-dark-mut);
  text-align: center;
  margin: 0;
}

/* Honeypot. Moved off-screen rather than display:none — some bots skip fields
   that are hidden outright, and the point is that they fill this one in. */
.quote-form__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.quote-form__status {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm, .5rem);
  font-size: .88rem;
  line-height: 1.5;
  border: 1px solid transparent;
}
.quote-form__status.is-ok {
  color: #d4f5e4;
  background: rgba(52, 199, 123, .13);
  border-color: rgba(52, 199, 123, .38);
}
.quote-form__status.is-error {
  color: #ffd9d4;
  background: rgba(255, 107, 92, .13);
  border-color: rgba(255, 107, 92, .40);
}

.field { display: grid; gap: var(--space-2); }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

.field label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--color-on-dark);
}
.field__opt { font-weight: 400; color: var(--color-on-dark-mut); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: .95rem;
  color: var(--color-on-dark);
  background: rgba(6, 16, 26, .5);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-sm);
  padding: .8rem .95rem;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.field textarea { resize: vertical; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(169, 188, 202, .65); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-aqua);
  background: rgba(6, 16, 26, .75);
}
/* Native select arrow is invisible on the dark fill — draw our own */
.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-aqua-bright) 50%),
    linear-gradient(135deg, var(--color-aqua-bright) 50%, transparent 50%);
  background-position: right 1.15rem center, right .85rem center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.field select option { background: var(--color-ink-deep); color: var(--color-on-dark); }

/* =========================================================================
   15. FOOTER
   ========================================================================= */
.site-footer {
  background: var(--color-ink-deep);
  color: var(--color-on-dark-mut);
  padding-block: var(--space-8) var(--space-5);
  font-size: .92rem;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 3vw, 3.5rem);
  padding-bottom: var(--space-7);
}
@media (max-width: 900px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__top { grid-template-columns: 1fr; } }

.brand--footer { margin-bottom: var(--space-4); }
.site-footer__blurb {
  max-width: 42ch;
  font-size: .9rem;
  line-height: 1.7;
}
.site-footer__social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.site-footer__social a {
  display: grid;
  place-items: center;
  width: 2.35rem; height: 2.35rem;
  border: 1px solid var(--line-on-dark);
  border-radius: 50%;
  color: var(--color-on-dark-mut);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.site-footer__social a:hover {
  color: var(--color-aqua-bright);
  border-color: rgba(95, 211, 242, .5);
}

.site-footer__heading {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-on-dark);
  margin: 0 0 var(--space-4);
}
.site-footer__heading--spaced { margin-top: var(--space-6); }

.site-footer__list { display: grid; gap: var(--space-3); }
.site-footer__list a:hover { color: var(--color-aqua-bright); }
.site-footer__list address { font-style: normal; line-height: 1.6; }
.site-footer__list--plain li { color: var(--color-on-dark-mut); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-on-dark);
  font-size: .82rem;
  color: var(--color-muted);
}
.site-footer__bottom p { margin: 0; }
.site-footer__legal { display: flex; gap: var(--space-3); align-items: center; }
.site-footer__legal a:hover { color: var(--color-aqua-bright); }

/* =========================================================================
   16. MOBILE REFINEMENTS
   ========================================================================= */
@media (max-width: 700px) {
  /* iOS zooms the whole page when a focused input is under 16px. Bumping the
     form controls to 16px is the only reliable way to stop that. */
  .field input,
  .field select,
  .field textarea { font-size: 16px; }

  /* 44px touch targets */
  .tabs__tab { padding: var(--space-3) 0; min-height: 44px; }
  .site-footer__social a { width: 44px; height: 44px; }
  .faq__item summary { padding-block: var(--space-4); }

  /* Long, unbreakable strings (emails) must not force a horizontal scrollbar */
  .site-footer__list a,
  .cta-band__contact a { overflow-wrap: anywhere; }
}

/* =========================================================================
   LEGAL / LONG-FORM PROSE (privacy policy, terms)
   ========================================================================= */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.35rem; margin: var(--space-7) 0 var(--space-3); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin: 0 0 var(--space-4); }
.prose ul { padding-left: 1.25rem; list-style: disc; }
.prose li { margin-bottom: var(--space-2); }
.prose a { color: var(--color-aqua-deep, #1582AB); text-decoration: underline; text-underline-offset: 3px; }
.prose__updated { font-size: var(--fs-small); color: var(--color-muted); }

/* =========================================================================
   CITY PAGES
   ========================================================================= */
/* A quiet row of text links under a section's cards. */
.section-foot {
  margin: var(--space-7) 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-4);
  font-size: var(--fs-small);
  font-weight: 600;
}
.section-foot a { text-decoration: underline; text-underline-offset: 3px; }
.section-foot--on-dark { color: var(--color-on-dark-mut); }
.section-foot--on-dark a { color: var(--color-aqua-bright); }

.nearby {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3) var(--space-6);
}
.nearby__label {
  margin: 0;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.nearby__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-3);
}
.nearby__list a {
  display: inline-block;
  padding: .45rem 1rem;
  border: 1px solid var(--line-on-light);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  font-size: var(--fs-small);
  color: var(--color-heading);
}
.nearby__list a:hover { border-color: var(--color-aqua); color: var(--color-aqua-deep); }

/* Service-area pills that link to a city page. */
.area-list a { color: inherit; text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.area-list a:hover { color: var(--color-aqua-bright); }
.area-list.area-list--light a:hover { color: var(--color-aqua-deep); }

/* --- Four-up photo gallery with captions (decorative page) --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
.gallery__item { margin: 0; }
.gallery__item .pic {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-on-light);
  box-shadow: var(--shadow-card);
  background: var(--color-mist);
}
.gallery__item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery__item figcaption {
  margin-top: var(--space-3);
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--color-muted);
}
/* Three landscape cells instead of four portrait ones. */
.gallery--wide { grid-template-columns: repeat(3, 1fr); margin-top: var(--space-7); }
.gallery--wide .pic { aspect-ratio: 5 / 4; }
@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .gallery { grid-template-columns: 1fr; gap: var(--space-6); } }

/* =========================================================================
   ARTICLES
   ========================================================================= */
.post__title { max-width: 24ch; }
.post__meta {
  margin: var(--space-4) 0 0;
  font-size: var(--fs-small);
  color: var(--color-on-dark-mut);
}
.post-card__title { font-size: 1.12rem; margin: 0; }

/* Long-form body copy: the .prose block is shared with the legal pages, so
   only the article-specific pieces live here. */
.prose h3 { font-size: 1.08rem; margin: var(--space-6) 0 var(--space-2); }
.prose strong { color: var(--color-heading); }
.prose blockquote {
  margin: var(--space-6) 0;
  padding-left: var(--space-5);
  border-left: 3px solid var(--color-aqua);
  color: var(--color-heading);
}
.prose__rule {
  margin: var(--space-7) 0 var(--space-5);
  border: 0;
  border-top: 1px solid var(--line-on-light);
}
.prose__byline { font-size: var(--fs-small); color: var(--color-muted); }
