/* ==========================================================================
   Afterlife Carbon — styles
   Mobile-first: base = 390px, then 768px, then 1440px.
   ========================================================================== */

/* ---------- Font fallback ----------
   Metric-adjusted local fallback so the hero h1 paints immediately in a wide, bold
   system face while Archivo (display=swap) loads. */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("Helvetica-Bold");
  font-weight: 600 700;
  size-adjust: 112%;
  ascent-override: 92%;
  descent-override: 22%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  font-synthesis: none;
  --gutter: 20px;
  --nav-h: 60px;

  --black: #000;
  --white: #fff;
  --body-on-white: rgba(63, 66, 77, .8);
  --body-on-black: #fff;
  --idle-on-white: rgba(0, 0, 0, .2);
  --idle-on-black: rgba(255, 255, 255, .2);
  --rule-on-white: rgba(0, 0, 0, .15);
  --rule-on-black: rgba(255, 255, 255, .15);

  --font-display: "Archivo", "Archivo Fallback", "Archivo Expanded", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --fs-eyebrow: 13px;
  --fs-body: 15px;
  --fs-hero: 26px;
  --fs-statement: 26px;
  --fs-h2: 32px;
  --fs-h3: 24px;
  --fs-xl: 30px;
  --lh-xl: 48px;
  --fs-marquee: 40px;
  --fs-quote: 22px;
  --fs-tab: 30px;
  --fs-input: 24px;
  --fs-menu: 34px;

  --section-pad: 72px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --wipe: .65s var(--ease-out);
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --fs-hero: 30px;
    --fs-statement: 32px;
    --fs-h2: 40px;
    --fs-h3: 28px;
    --fs-xl: 40px;
    --lh-xl: 64px;
    --fs-marquee: 64px;
    --fs-quote: 26px;
    --fs-tab: 40px;
    --fs-input: 28px;
    --fs-menu: 44px;
    --section-pad: 112px;
  }
}

@media (min-width: 1200px) {
  :root {
    --gutter: 40px;
    --fs-hero: 32px;
    --fs-statement: 36px;
    --fs-h2: 48px;
    --fs-h3: 32px;
    --fs-xl: 48px;
    --lh-xl: 72px;
    --fs-marquee: 88px;
    --fs-quote: 32px;
    --fs-tab: 48px;
    --fs-input: 32px;
    --fs-menu: 48px;
    --section-pad: 160px;
  }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: rgba(0, 0, 0, .35) transparent;
}
html.is-locked, html.is-locked body { overflow: hidden; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 22px;
  font-weight: 400;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
figure { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, address { margin: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--black); color: var(--white); }
[data-theme="dark"] ::selection, .menu ::selection { background: var(--white); color: var(--black); }

:focus { outline: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

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

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 1000;
  padding: 10px 16px; background: var(--black); color: var(--white);
  font-family: var(--font-display); font-size: 13px; font-stretch: 125%; font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- Type ---------- */
.display, .hero-title, .statement, .h2, .h3, .eyebrow, .xl, .marquee-line,
.quote, .lin-tab, .lin-desc, .sub-input, .sub-submit, .btn, .prov-caption-line, .prov-glyph {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 700;
  letter-spacing: -1px;
}

.eyebrow {
  font-size: var(--fs-eyebrow);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.statement { font-size: var(--fs-statement); line-height: 1.2; text-wrap: pretty; }
.h2 { font-size: var(--fs-h2); line-height: 1.1; text-wrap: balance; }
.h3 { font-size: var(--fs-h3); line-height: 1.15; }

.body { color: var(--body-on-white); font-family: var(--font-body); max-width: 62ch; }
[data-theme="dark"] .body { color: var(--body-on-black); }

/* ---------- Layout helpers ---------- */
.section {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px;
  padding: 14px 24px;
  font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: -.2px;
  border: 1px solid currentColor;
  color: var(--black);
  background: transparent;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.btn:hover { background: var(--black); color: var(--white); }
.btn--solid { background: var(--black); color: var(--white); border-color: var(--black); }
.btn--solid:hover { background: #2a2a2a; border-color: #2a2a2a; }
.btn--light { color: var(--white); border-color: rgba(255, 255, 255, .5); }
.btn--light:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-icon { flex: 0 0 auto; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  color: var(--black);
  pointer-events: none;
  transition: color .35s var(--ease-out);
}
.nav > * { pointer-events: auto; }
.nav--light { color: var(--white); }

.nav-logo {
  display: block;
  width: 150px; aspect-ratio: 1917 / 358;
  background: currentColor;
  -webkit-mask: url("../img/logo-white.svg") left center / contain no-repeat;
          mask: url("../img/logo-white.svg") left center / contain no-repeat;
  transition: opacity .35s var(--ease-out);
}
.nav--home .nav-logo { opacity: 0; pointer-events: none; }
.nav--menu .nav-logo { opacity: 1; pointer-events: auto; }

.nav-burger {
  width: 48px; height: 48px; margin-right: -4px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 8px;
}
.nav-burger-line {
  display: block; width: 40px; height: 1.5px; background: currentColor;
  transition: transform .4s var(--ease-out);
}
.nav-burger[aria-expanded="true"] .nav-burger-line:nth-child(1) { transform: translateY(4.75px) rotate(45deg); }
.nav-burger[aria-expanded="true"] .nav-burger-line:nth-child(2) { transform: translateY(-4.75px) rotate(-45deg); }

@media (min-width: 768px) { .nav-logo { width: 215px; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  background: var(--black);
  color: var(--white);
  overflow: clip;
  display: flex; flex-direction: column;
  isolation: isolate;
  /* Wordmark geometry at rest, used by the portrait-slide block below: --hero-mark-h is the rendered
     height of #hero-mark (width 100vw minus two gutters, SVG ratio 358/1917 = .18675) and
     --hero-mark-pad is .hero-bar's bottom padding (keep in sync with .hero-bar). */
  --hero-mark-h: calc(.18675 * (100vw - 2 * var(--gutter)));
  --hero-mark-pad: 28px;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }
/* Per-slide horizontal crop for narrow frames: a phone shows ~31% of each 3:2 slide's
   width, so x picks the strip with the lenses. No effect once the frame is wider than 3:2.
   `picture { display: contents }` keeps each <picture> a direct child of .hero-slides. */
.hero-slides picture:nth-child(1) .hero-slide,
.hero-slides picture:nth-child(2) .hero-slide { object-position: 66% 50%; }
.hero-slides picture:nth-child(3) .hero-slide { object-position: 50% 50%; }
.hero-slides picture:nth-child(4) .hero-slide { object-position: 35% 50%; }
.hero-slides picture:nth-child(5) .hero-slide { object-position: 22% 50%; } /* folded pair side-on: lens front at ~20-28% of the width, logo at ~35%; a phone's strip (~22% of the width once enlarged below) must start left of the lens */
/* --fb = bottom of the sunglasses frame as a fraction of the image height (measured per image);
   used by both the desktop and the portrait blocks below. */
.hero-slides picture:nth-child(1) .hero-slide { --fb: .745; }
.hero-slides picture:nth-child(2) .hero-slide { --fb: .696; }
.hero-slides picture:nth-child(5) .hero-slide { --fb: .64; }
@media (min-width: 1024px) and (min-aspect-ratio: 3/2) {
  /* Bottom-anchored (y=100%), the frame bottom sits (1-fb)*100vw/1.5 above the hero's bottom edge;
     the wordmark top sits .18675*(100vw-80px)+40px above it. Shift by the difference minus a 6px rest.
     Slide 3 (macro) and slide 4 are deliberately untouched.
     Two cases for the shift:
     - Slides 1 and 2 (fb >= ~.70): the shift is negative (upward), applied as a transform on the
       <img>. The band it exposes at the bottom of the hero sits under the solid part of
       .hero-gradient, so it is never visible.
     - Slide 5 (fb .64, frame low in the image): the shift is positive (downward). A transform would
       drag the <img> box down and expose the hero's black background at the TOP of a white-background
       photo, so instead the image is moved inside its box via object-position: with object-fit: cover
       the image is 100vw/1.5 tall and the box is 100vh, so `100% + Xpx` slides the picture down by X
       within the vertical slack 100vw/1.5 - 100vh. The shift is clamped to that slack (0 at an exact
       3:2 viewport such as 1536x1024), where the frame then rests higher above the wordmark than the
       6px target, which beats a black strip across the top of the hero. */
  .hero-slides picture:nth-child(1) .hero-slide { object-position: 66% 100%; }
  .hero-slides picture:nth-child(2) .hero-slide { object-position: 66% 100%; }
  .hero-slides picture:nth-child(1) .hero-slide,
  .hero-slides picture:nth-child(2) .hero-slide {
    transform: translateY(calc(((1 - var(--fb)) / 1.5 - .18675) * 100vw - 31px));
  }
  .hero-slides picture:nth-child(5) .hero-slide {
    object-position: 30% calc(100% + min(((1 - var(--fb)) / 1.5 - .18675) * 100vw - 31px, 100vw / 1.5 - 100vh));
  }
}
/* Frames between 5:4 and 3:2 (landscape tablets, 1024x768 laptops): the 3:2 photo is height-limited,
   so at height: 100% the frame bottom sits at fb x hero height, far above the wordmark.
   Give slides 1, 2 and 5 a taller, top-anchored box so that fb x box height lands 6px above the
   wordmark's resting top edge (hero bottom - --hero-mark-h - --hero-mark-pad). object-fit: cover scales
   the photo up to fill the taller box; .hero's overflow: clip crops the excess, which lies under
   .hero-gradient and the wordmark. Slides 3 and 4 keep height: 100%. Sits between the desktop block
   above (min-aspect-ratio 3/2) and the shrunk-hero block below (max-aspect-ratio 5/4):
   12501/10000 = just above 5/4, 14999/10000 = just below 3/2. */
@media (min-aspect-ratio: 12501/10000) and (max-aspect-ratio: 14999/10000) {
  .hero-slides picture:nth-child(1) .hero-slide,
  .hero-slides picture:nth-child(2) .hero-slide,
  .hero-slides picture:nth-child(5) .hero-slide {
    bottom: auto;
    height: calc((100% - var(--hero-mark-h) - var(--hero-mark-pad) - 6px) / var(--fb));
  }
}
.hero-gradient {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, #000 0%, #000 10%, rgba(0, 0, 0, .96) 14%, rgba(0, 0, 0, .55) 32%, rgba(0, 0, 0, 0) 48%);
}
.hero-dim { position: absolute; inset: 0; z-index: 2; background: #000; opacity: 0; pointer-events: none; }

.hero-content {
  position: relative; z-index: 3;
  padding: clamp(120px, 24vh, 220px) var(--gutter) 0;
}
.hero-title {
  font-size: var(--fs-hero); line-height: 1.12; max-width: 12em;
  text-shadow: 0 1px 24px rgba(0, 0, 0, .25);
}
.hero-indicators { display: flex; gap: 8px; margin-top: 18px; margin-left: -2px; }
.hero-ind { width: 52px; height: 28px; display: flex; align-items: center; padding: 0 2px; }
.hero-ind span {
  display: block; width: 100%; height: 1.5px; background: rgba(255, 255, 255, .3);
  position: relative; overflow: hidden;
}
.hero-ind span::after {
  content: ""; position: absolute; inset: 0; background: #fff;
  transform: scaleX(0); transform-origin: left;
}
.hero-ind.is-active span::after { transform: scaleX(1); transition: transform 5s linear; }
.hero-ind.is-done span { background: rgba(255, 255, 255, .55); }

.hero-bar {
  position: sticky; bottom: 0;
  margin-top: auto;
  z-index: 3;
  padding: 0 var(--gutter) 28px;
}
.hero-mark { width: 100%; will-change: transform; transform-origin: 0% 100%; }
.hero-mark img { width: 100%; height: auto; }

@media (min-width: 768px) {
  .hero-bar { padding-bottom: 40px; }
  .hero { --hero-mark-pad: 40px; }
  .hero-title { max-width: 14em; }
  .hero-indicators { gap: 12px; margin-top: 22px; }
}

/* Frames at or below 5:4 (phones, portrait tablets): the hero shrinks to the photo instead of filling
   the viewport. The photo is a plain 3:2 box at full width (--hero-photo-h = 100vw / 1.5, no crop),
   bottom-anchored so that the frame bottom (--fb x box height) sits 6px above the wordmark's resting
   top edge: the box bottom is --hero-rest (= --hero-mark-h + --hero-mark-pad + 6px) minus the part of
   the photo below the frame, (1 - --fb) x box height, above the hero's bottom edge. The headline and
   indicators sit above the photo on black (.hero-content's bottom padding reserves the photo's height
   above the slide-1 frame, --hero-fb-ref, minus a small --hero-gap overlap into the fade), so the hero
   is content-sized (height: auto) and the next section starts right under the wordmark. The top of the
   photo is masked with a fade into the black so the box has no hard top edge; slide 4 (dark frame on
   dark, frame low in the image) gets --fb .86 and a shorter fade. .hero-gradient is re-expressed
   relative to the wordmark (solid under the bar, clear 1.5 x the bar height up) since the hero's
   height is no longer a fixed fraction of the photo. Below 5:4 the desktop and 5:4-to-3:2 blocks above
   do not apply, so the per-slide object-position and transform rules there are irrelevant here. */
@media (max-aspect-ratio: 5/4) {
  .hero {
    height: auto;
    min-height: 0;
    --hero-photo-h: calc(100vw / 1.5);
    --hero-rest: calc(var(--hero-mark-h) + var(--hero-mark-pad) + 6px);
    --hero-fb-ref: .745;
    --hero-gap: -20px;
  }
  @media (min-width: 768px) { .hero { --hero-gap: -48px; } }
  .hero .hero-slides picture .hero-slide {
    top: auto;
    bottom: calc(var(--hero-rest) - (1 - var(--fb, .745)) * var(--hero-photo-h));
    height: var(--hero-photo-h);
    transform: none;
    object-fit: cover; object-position: 50% 50%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.06) 10%, rgba(0,0,0,.22) 18%, rgba(0,0,0,.52) 25%, rgba(0,0,0,.85) 30%, #000 36%);
            mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.06) 10%, rgba(0,0,0,.22) 18%, rgba(0,0,0,.52) 25%, rgba(0,0,0,.85) 30%, #000 36%);
  }
  .hero .hero-slides picture:nth-child(4) .hero-slide {
    --fb: .86;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%);
            mask-image: linear-gradient(to bottom, transparent, #000 10%);
  }
  .hero-content {
    padding-top: calc(var(--nav-h) + 28px);
    padding-bottom: calc(var(--hero-gap) + var(--hero-fb-ref) * var(--hero-photo-h) + 6px);
  }
  .hero-gradient {
    background: linear-gradient(to top,
      #000 0, #000 var(--hero-mark-pad),
      rgba(0, 0, 0, .96) calc(var(--hero-mark-pad) + .15 * var(--hero-mark-h)),
      rgba(0, 0, 0, .55) calc(var(--hero-mark-pad) + var(--hero-mark-h)),
      rgba(0, 0, 0, 0) calc(1.5 * (var(--hero-mark-pad) + var(--hero-mark-h))));
  }
}

/* ==========================================================================
   Intro
   ========================================================================== */
.intro { display: grid; gap: 28px; }
@media (min-width: 768px) {
  .intro { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 40px; align-items: start; }
  .intro .eyebrow { padding-top: .45em; }
}

/* ==========================================================================
   Story (staggered grid)
   ========================================================================== */
.story { display: grid; gap: 40px; padding-top: 0; }
.story-tall { aspect-ratio: 1 / 1; overflow: hidden; }
.story-tall img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.story-small { aspect-ratio: 3 / 2; overflow: hidden; }
.story-small img { width: 100%; height: 100%; object-fit: cover; }
.story-side { display: grid; gap: 24px; align-content: start; }
.story-side .h2 { margin-top: 8px; }
.story-side .btn { justify-self: start; margin-top: 8px; }

@media (min-width: 768px) {
  .story-tall { aspect-ratio: 5 / 4; }
}
@media (min-width: 1024px) {
  /* Left image stretches to the right column's height (grid default align-items: stretch);
     the right column is a 4-row grid (image, heading, body, button) whose body row absorbs the
     slack so the button sits flush with the bottom of the left image. */
  .story {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
    column-gap: 80px;
  }
  .story-tall { aspect-ratio: auto; }
  .story-side { gap: 28px; grid-template-rows: auto auto 1fr auto; }
  .story-side .h2 { margin-top: 24px; }
}

/* ==========================================================================
   Marquee
   Content-height section (the whitespace around it comes from the neighbours'
   --section-pad); both lines are moved horizontally by a scrubbed ScrollTrigger
   in main.js. Travel is symmetric and progress 0.5 puts the section centre at the
   viewport centre for any height, so each line is centred exactly then.
   ========================================================================== */
.marquee {
  min-height: 0;
  padding: 0;
  overflow-x: clip;
  display: grid; align-content: center; justify-items: center; row-gap: .35em;
}
.marquee-line {
  font-size: min(var(--fs-marquee), 7.4vw); /* cap so the longer line is ~92vw or less on small screens; no effect from ~865px up */
  line-height: 1.05; white-space: nowrap; letter-spacing: -.03em;
  will-change: transform;
}

/* ==========================================================================
   Cards (three lineages)
   ========================================================================== */
.cards-row {
  display: flex; gap: 12px;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.cards-row::-webkit-scrollbar { display: none; }
.cards { padding-bottom: 0; } /* whitespace below comes from .explore's own --section-pad */
.card { flex: 0 0 78vw; scroll-snap-align: start; }
.card-img { aspect-ratio: 1.15 / 1; overflow: hidden; } /* landscape: a 3:2 source covers at 1.3x, showing 77% of its width */
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.card-img img[src*="lineage-rowing"] { object-position: 49% 50%; } /* subject fills 74% of the source and the frame shows 77%: centre it exactly so both temple tips stay inside */
.card .h3 { margin-top: 22px; }
.card .body { margin-top: 14px; }

@media (min-width: 768px) {
  .cards-row { gap: 18px; }
  .card { flex-basis: 44vw; }
  .card .h3 { margin-top: 28px; }
}
@media (min-width: 1024px) {
  .cards-row {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
    margin: 0; padding: 0; overflow: visible; scroll-snap-type: none;
  }
  .card { flex: none; }
}

/* ==========================================================================
   Explore + menu links (shared)
   ========================================================================== */
.explore .eyebrow { margin-bottom: 28px; }
.xl-list li { border-bottom: 1px solid var(--rule-on-white); }
.xl-list li:first-child { border-top: 1px solid transparent; }

.xl {
  display: block;
  padding: 10px 0;
  min-height: 48px;
  font-size: var(--fs-xl); line-height: var(--lh-xl);
  color: var(--idle-on-white);
  -webkit-tap-highlight-color: transparent;
}
.underline-w { position: relative; display: inline-block; }
.xl-idle { display: block; }
.xl-fill {
  position: absolute; inset: 0; display: block;
  color: var(--black);
  clip-path: inset(0 100% 0 0);
  transition: clip-path var(--wipe);
}
.underline-fill {
  position: absolute; left: 0; bottom: .06em; height: 2px; width: 100%;
  background: var(--black);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--wipe);
}
.xl:hover .xl-fill, .xl:focus-visible .xl-fill, .xl:active .xl-fill,
.xl.is-wiped .xl-fill { clip-path: inset(0 0 0 0); }
.xl:hover .underline-fill, .xl:focus-visible .underline-fill, .xl:active .underline-fill,
.xl.is-wiped .underline-fill { transform: scaleX(1); }
.xl:focus-visible { outline-offset: -2px; }

/* light variant on black (menu overlay) */
.xl--light { color: var(--idle-on-black); }
.xl--light .xl-fill { color: var(--white); }
.xl--light .underline-fill { background: var(--white); }

@media (min-width: 768px) {
  .explore .eyebrow { margin-bottom: 36px; }
  .xl { padding: 12px 0; }
}

/* ==========================================================================
   Full-bleed band
   ========================================================================== */
.band { width: 100%; height: 60vh; height: 60svh; overflow: hidden; background: var(--black); }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
@media (min-width: 768px) { .band { height: 90vh; height: 90svh; } }

/* ==========================================================================
   Provenance / testimonial (black)
   ========================================================================== */
.prov { background: var(--black); color: var(--white); }
.prov .eyebrow {
  padding-top: 20px; border-top: 1px solid var(--rule-on-black);
}
.prov-grid { display: grid; gap: 16px; margin-top: 48px; }
.prov-glyph {
  font-size: 96px; line-height: .6; color: rgba(255, 255, 255, .28);
  letter-spacing: -.04em; user-select: none; height: .38em;
}
@media (max-width: 430px) {
  .prov .eyebrow { font-size: 12px; letter-spacing: 0; }
}
.quote { margin: 0; }
.quote p { font-size: var(--fs-quote); line-height: 1.28; text-wrap: pretty; max-width: 30ch; }
.quote-attr { margin-top: 28px; font-family: var(--font-body); font-size: var(--fs-body); line-height: 22px; color: var(--white); }

.prov-caption { display: flex; align-items: center; gap: 24px; margin-top: 64px; }
.prov-caption-img { width: 130px; aspect-ratio: 3 / 2; object-fit: cover; flex: 0 0 auto; }
.prov-caption-line { font-size: 15px; line-height: 22px; letter-spacing: -.2px; }
.prov-caption-sub { font-family: var(--font-body); font-size: 13px; line-height: 20px; margin-top: 6px; color: rgba(255, 255, 255, .8); }

.prov-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.prov-thumbs img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

@media (min-width: 768px) {
  .prov-grid {
    grid-template-columns: 90px minmax(0, 1fr) 156px;
    column-gap: clamp(24px, 6vw, 96px);
    align-items: start;
    margin-top: 96px;
  }
  .prov-glyph { font-size: 160px; height: auto; }
  .quote p { max-width: 34ch; }
  .prov-thumbs { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 0; }
  .prov-caption { margin-top: 96px; }
  .prov-caption-img { width: 162px; }
}

/* ==========================================================================
   Lineage tabs
   ========================================================================== */
.lineages { display: grid; gap: 40px; }
.lin-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #f2f2f2; }
.lin-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 45%;
  opacity: 0; transition: opacity .6s var(--ease-out);
}
.lin-img.is-active { opacity: 1; }
.lin-img[src*="lineage-sailing"] { object-position: 40% 45%; } /* folded pair sits left of centre; keeps the temple tip inside the 4/5 crop */

.lin-side { display: grid; align-content: start; }
.lin-side .eyebrow { margin-bottom: 20px; }
.lin-tabs { display: grid; }
.lin-tab {
  position: relative;
  display: block; width: 100%; text-align: left;
  padding: 10px 0; min-height: 56px;
  font-size: var(--fs-tab); line-height: 1.2;
  color: var(--idle-on-white);
  border-bottom: 1px solid var(--rule-on-white);
  transition: color .35s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.lin-tab:hover, .lin-tab:focus-visible { color: rgba(0, 0, 0, .55); }
.lin-tab.is-active { color: var(--black); }
.lin-tab::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 24px;
  background: var(--black); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.lin-tab.is-active::after { transform: scaleX(1); }
.lin-tab:focus-visible { outline-offset: -2px; }

.lin-panels { margin-top: 24px; min-height: 1.4em; }
.lin-desc { font-size: 15px; line-height: 22px; letter-spacing: -.2px; }
.lin-body { margin-top: 20px; }
.lin-side .btn { margin-top: 32px; width: 100%; justify-content: center; }

@media (min-width: 1024px) {
  .lineages {
    grid-template-columns: minmax(0, .88fr) minmax(0, 1fr);
    column-gap: clamp(32px, 16vw, 235px);
    align-items: start;
  }
  .lin-side .eyebrow { margin-bottom: 32px; }
  .lin-tab { padding: 12px 0; }
  .lin-panels { margin-top: 32px; }
  .lin-side .btn { width: auto; justify-self: start; margin-top: 40px; }
}

/* ==========================================================================
   Footer: subscribe + columns + wordmark
   ========================================================================== */
.footer {
  background: var(--black); color: var(--white);
  padding: var(--section-pad) var(--gutter) calc(var(--gutter) + env(safe-area-inset-bottom, 0px));
  overflow: clip;
}
.subscribe .eyebrow { margin-bottom: 40px; }

.sub-form { display: grid; gap: 28px; }
.sub-row { display: grid; gap: 20px; }
.sub-field { border-bottom: 1px solid rgba(255, 255, 255, .5); }
.sub-field--email { display: grid; }
.sub-input {
  width: 100%; min-height: 56px; padding: 6px 0 14px;
  font-size: var(--fs-input); line-height: 1.1;
  color: var(--white); background: transparent; border: 0; border-radius: 0;
  caret-color: var(--white);
  appearance: none;
}
.sub-input::placeholder { color: rgba(255, 255, 255, .55); opacity: 1; }
.sub-input:focus-visible { outline: none; }
.sub-field:focus-within { border-bottom-color: var(--white); }
.sub-submit {
  font-size: var(--fs-input); line-height: 1.1; min-height: 56px;
  padding: 6px 0 14px; text-align: left;
  color: var(--white);
  transition: opacity .3s var(--ease-out), background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.sub-submit:hover { opacity: .7; }
.sub-submit:focus-visible { outline-offset: 2px; }
@media (max-width: 767px) {
  /* stacked: the button becomes a full-width solid row, as the reference does on mobile */
  .sub-field--email { border-bottom: 0; }
  .sub-field--email .sub-input { border-bottom: 1px solid rgba(255, 255, 255, .5); }
  .sub-field--email:focus-within .sub-input { border-bottom-color: var(--white); }
  .sub-submit {
    margin-top: 28px; padding: 14px 20px; text-align: center;
    background: var(--white); color: var(--black);
  }
  .sub-submit:hover { opacity: 1; background: #e6e6e6; }
}

.sub-consent { display: flex; gap: 14px; align-items: flex-start; font-size: 13px; line-height: 20px; color: rgba(255, 255, 255, .8); }
.sub-consent a { text-decoration: underline; text-underline-offset: 3px; }
.sub-consent a:hover { color: var(--white); }
.sub-check {
  appearance: none; flex: 0 0 auto; width: 16px; height: 16px; margin: 2px 0 0;
  border: 1px solid rgba(255, 255, 255, .8); background: transparent; cursor: pointer;
  display: grid; place-content: center;
}
.sub-check::before {
  content: ""; width: 8px; height: 5px; border-left: 1.5px solid var(--white); border-bottom: 1.5px solid var(--white);
  transform: rotate(-45deg) scale(0); transition: transform .2s var(--ease-out);
}
.sub-check:checked::before { transform: rotate(-45deg) scale(1); }
.sub-check:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.sub-note { font-size: 13px; line-height: 20px; color: var(--white); min-height: 0; }
.sub-note:empty { display: none; }
.sub-note::before { content: "— "; }

.foot-grid { display: grid; gap: 40px 24px; margin-top: 80px; }
.foot-col--brand { display: grid; gap: 28px; align-content: start; }
.foot-copy { color: rgba(255, 255, 255, .8); max-width: 34ch; }
.foot-label { color: rgba(255, 255, 255, .55); }
.foot-links, .foot-address { margin-top: 12px; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-col .foot-label + .foot-links + .foot-label { margin-top: 36px; }
.foot-btn { justify-self: start; white-space: nowrap; width: auto; }

/* Giant wordmark, shown in full: the wrapper is the logo's natural height
   (1917 x 358 → height = 18.675% of width). */
.foot-mark { position: relative; margin-top: 72px; height: 0; padding-bottom: 18.675%; }
.foot-mark img { position: absolute; top: 0; left: 0; width: 100%; height: auto; }

@media (min-width: 768px) {
  .sub-form { gap: 24px; }
  .sub-row { grid-template-columns: minmax(200px, 20%) minmax(0, 1fr); gap: 36px; }
  .sub-field--email { grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: end; }
  /* pin input and button to one row so nothing auto-placed (e.g. a password-manager icon injected by an extension) can push Subscribe onto a second line */
  .sub-field--email .sub-input { grid-column: 1; grid-row: 1; }
  .sub-field--email .sub-submit { grid-column: 2; grid-row: 1; }
  .sub-field--email > :not(.sub-input):not(.sub-submit):not(.sr-only) { grid-column: 1; grid-row: 1; justify-self: end; align-self: center; }
  .sub-submit { text-align: right; }
  .sub-consent { font-size: 15px; line-height: 22px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; margin-top: 120px; }
  .foot-mark { margin-top: 120px; }
}
@media (min-width: 1024px) {
  .foot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
}
@media (max-width: 767px) {
  /* copyright, then two column pairs (Follow/Contact | Address/Legal), then the button */
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .foot-col--brand { display: contents; }
  .foot-copy { grid-column: 1 / -1; grid-row: 1; }
  .foot-col:nth-child(2) { grid-column: 1; grid-row: 2 / span 2; }
  .foot-col:nth-child(3) { grid-column: 2; grid-row: 2; }
  .foot-col:nth-child(4) { grid-column: 2; grid-row: 3; }
  .foot-btn { grid-column: 1 / -1; grid-row: 4; width: 100%; justify-content: center; }
}

/* ==========================================================================
   Menu overlay
   ========================================================================== */
.menu {
  position: fixed; inset: 0; z-index: 800;
  background: var(--black); color: var(--white);
  transform: translateY(-100%);
  transition: transform .6s var(--ease-out), visibility 0s linear .6s;
  visibility: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu[hidden] { display: block; }
.menu.is-open { transform: none; visibility: visible; transition: transform .6s var(--ease-out); }
.menu-inner {
  min-height: 100%;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  gap: 40px;
}
.menu-list li { border-bottom: 1px solid var(--rule-on-black); }
.menu .xl { font-size: var(--fs-menu); line-height: 1.2; padding: 12px 0; }
.menu-secondary { display: grid; gap: 12px; }
.menu-small { display: grid; gap: 10px; }
.menu-small a { display: inline-block; padding: 4px 0; color: rgba(255, 255, 255, .8); line-height: 22px; }
.menu-small a:hover, .menu-small a:focus-visible { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 768px) {
  .menu-inner { padding-bottom: 40px; }
  .menu .xl { font-size: var(--fs-xl); line-height: var(--lh-xl); padding: 12px 0; }
  .menu-secondary { grid-template-columns: auto auto; justify-content: end; align-items: start; align-content: start; gap: 64px; }
  .menu-small { align-content: start; }
}

/* ==========================================================================
   Motion
   ========================================================================== */
[data-reveal-img] { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .hero-ind.is-active span::after { transition: none; }
}
