/* ==========================================================================
   SAM FITNESS — CORE STYLESHEET
   Mobile-first. Base styles are authored at 375px; every media query is
   min-width and adds upward. There are no max-width queries in this file.
   --------------------------------------------------------------------------
   1.  Tokens
   2.  Reset & base
   3.  Typography
   4.  Layout primitives
   5.  Buttons & links
   6.  Header / navigation
   7.  Mobile overlay menu
   8.  Sticky mobile action bar
   9.  Footer
   10. Custom cursor
   11. Page transition
   12. Motion primitives (reveal states)
   13. Utilities
   14. Reduced motion
   ========================================================================== */

/* ------------------------------------------------------------- 1. TOKENS */
:root {
  /* Colour — sampled from the logo, extended dark-first */
  --red:       #E5352B;
  --red-hot:   #FF4438;
  --red-deep:  #B32018;
  --black:     #0A0A0A;
  --ink:       #111214;
  --char:      #1A1B1E;
  --smoke:     #2A2C31;
  --gray:      #8A8F98;
  --bone:      #F4F4F2;
  --white:     #FFFFFF;

  /* Semantic */
  --bg:        var(--black);
  --surface:   var(--ink);
  --surface-2: var(--char);
  --hairline:  var(--smoke);
  --text:      var(--bone);
  --text-mute: var(--gray);
  --accent:    var(--red);

  /* Type families */
  --font-display: 'Bebas Neue', 'Arial Narrow', Impact, sans-serif;
  --font-body:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Fluid type scale */
  --fs-hero:  clamp(3.25rem, 13vw, 11rem);
  --fs-h1:    clamp(2.5rem, 7vw, 5.5rem);
  --fs-h2:    clamp(1.9rem, 4.5vw, 3.5rem);
  --fs-h3:    clamp(1.3rem, 2.5vw, 2rem);
  --fs-body:  clamp(1rem, 1.1vw, 1.125rem);
  --fs-sm:    0.9375rem;
  --fs-kick:  0.6875rem;

  /* Spacing — 8px base */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 24px;  --s-6: 32px;  --s-7: 48px;  --s-8: 64px;
  --s-9: 96px;  --s-10: 128px; --s-11: 160px;

  /* Section rhythm */
  --section-y: clamp(48px, 8vw, 120px);
  --gutter:    clamp(16px, 3vw, 32px);
  --container: min(92vw, 1440px);

  /* Radius */
  --r-xs: 2px;
  --r-md: 14px;
  --r-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io:  cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-micro: 160ms;
  --t-std:   420ms;
  --t-hero:  900ms;

  /* Press feedback. Small controls need a bigger delta to read as "given
     under the finger" — the same 0.97 on a 48px icon is nearly invisible. */
  --press:    0.97;
  --press-sm: 0.93;

  /* Chrome */
  --header-h: 68px;
  --z-header: 100;
  --z-menu:   200;
  --z-bar:    150;
  --z-cursor: 900;
  --z-trans:  1000;
}

@media (min-width: 1024px) {
  :root { --header-h: 84px; }
}

/* -------------------------------------------------------- 2. RESET & BASE */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* NO native scroll-behavior:smooth here — it fights Lenis frame-by-frame
     and anchors stop moving entirely. Lenis supplies the smoothness; anchor
     clicks are routed through it in motion.js. */
  scroll-behavior: auto;
}
html.lenis, html.lenis body { height: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
iframe { border: 0; }

::selection { background: var(--red); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--red-hot);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* Skip link — first tab stop on every page */
.skip-link {
  position: absolute;
  top: -100px; left: var(--s-4);
  z-index: 1100;
  padding: var(--s-3) var(--s-5);
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--r-xs);
  transition: top var(--t-micro) var(--ease-out);
}
.skip-link:focus { top: var(--s-4); }

/* --------------------------------------------------------- 3. TYPOGRAPHY */
.display,
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.92;
  color: var(--text);
}

.t-hero { font-size: var(--fs-hero); line-height: 0.86; }
.t-h1   { font-size: var(--fs-h1); }
.t-h2   { font-size: var(--fs-h2); }
.t-h3   { font-size: var(--fs-h3); }

.kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-kick);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}
.kicker::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--red);
  flex: none;
}
.kicker--mute { color: var(--text-mute); }
.kicker--mute::before { background: var(--text-mute); }

.lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.375rem);
  line-height: 1.55;
  color: var(--text-mute);
  max-width: 60ch;
}

.prose { max-width: 68ch; color: var(--text-mute); }
.prose p + p { margin-top: var(--s-4); }
.prose strong { color: var(--text); font-weight: 600; }

.t-red { color: var(--red); }

/* -------------------------------------------------- 4. LAYOUT PRIMITIVES */
.container {
  width: var(--container);
  margin-inline: auto;
}
.container--narrow { width: min(92vw, 960px); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }
.section--ink { background: var(--ink); }
.section--flush-top { padding-top: 0; }

.section-head { margin-bottom: clamp(24px, 4vw, 48px); }
.section-head .t-h2 { margin-bottom: var(--s-3); }

.grid { display: grid; gap: var(--gutter); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.hairline { height: 1px; background: var(--hairline); border: 0; margin: 0; }

/* The recurring 45° shear motif, echoing the logo's S/F cut */
.shear-tl { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 48px); }
@supports (clip-path: polygon(0 0)) {
  .shear-tl { clip-path: polygon(48px 0, 100% 0, 100% 100%, 0 100%, 0 48px); }
}

/* ------------------------------------------------------ 5. BUTTONS & LINKS */
a { color: inherit; text-decoration: none; }

.btn {
  --btn-bg: var(--red);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  min-height: 52px;
  padding: var(--s-3) var(--s-6);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  border-radius: var(--r-pill);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t-micro) var(--ease-out),
              background-color var(--t-micro) var(--ease-out),
              color var(--t-micro) var(--ease-out);
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red-hot);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-std) var(--ease-out);
  z-index: -1;
}
.btn:hover::after { transform: scaleX(1); }
.btn:active { transform: scale(var(--press)); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.btn--ghost::after { background: var(--bone); }
.btn--ghost:hover { --btn-fg: var(--black); }

.btn--light {
  --btn-bg: var(--bone);
  --btn-fg: var(--black);
}
.btn--light::after { background: var(--white); }

.btn--wa { --btn-bg: #25D366; --btn-fg: #06301A; }
.btn--wa::after { background: #2FE875; }

.btn--lg { min-height: 60px; padding-inline: var(--s-7); font-size: 1rem; }
.btn--block { width: 100%; }

.btn svg { width: 18px; height: 18px; flex: none; }

/* Text link with a red rule that wipes in */
.link-rule {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
  color: var(--text);
  padding-bottom: 2px;
  background-image: linear-gradient(var(--red), var(--red));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--t-std) var(--ease-out);
}
.link-rule:hover { background-size: 100% 2px; }
.link-rule svg { width: 16px; height: 16px; transition: transform var(--t-std) var(--ease-out); }
.link-rule:hover svg { transform: translateX(4px); }

/* ---------------------------------------------------- 6. HEADER / NAV */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  /* No transform here: the header is pinned at every scroll position, so only
     its background and border ever animate. */
  transition: background-color var(--t-std) var(--ease-out),
              border-color var(--t-std) var(--ease-out);
}
.header.is-stuck {
  background: rgba(17, 18, 20, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}

.header__inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-size: 1.375rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
}
.brand__mark {
  width: auto;
  height: 34px;
  max-width: 170px;
  flex: none;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  transition: transform var(--t-micro) var(--ease-out);
}
.brand:hover .brand__mark {
  transform: scale(1.04);
}
.brand__text {
  display: none;
}
.brand__text small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  margin-top: 3px;
}
@media (min-width: 640px) {
  .brand__text {
    display: inline-block;
  }
}
@media (min-width: 1024px) {
  .brand { font-size: 1.5rem; }
  .brand__mark { height: 40px; max-width: 210px; }
}

.nav { display: none; }
@media (min-width: 1024px) {
  .nav { display: flex; align-items: center; gap: var(--s-6); }
  .nav__link {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-mute);
    position: relative;
    padding-block: var(--s-2);
    transition: color var(--t-micro) var(--ease-out);
  }
  .nav__link::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--t-std) var(--ease-out);
  }
  .nav__link:hover { color: var(--text); }
  .nav__link:hover::after,
  .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
  .nav__link[aria-current="page"] { color: var(--text); }
}

.header__cta { display: none; }
@media (min-width: 1024px) { .header__cta { display: inline-flex; } }

/* Burger */
.burger {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  margin-right: -12px;
}
@media (min-width: 1024px) { .burger { display: none; } }
.burger__box { width: 24px; height: 14px; position: relative; }
.burger__bar {
  position: absolute;
  left: 0;
  width: 100%; height: 2px;
  background: var(--text);
  transition: transform var(--t-std) var(--ease-out),
              opacity var(--t-micro) var(--ease-out);
}
.burger__bar:nth-child(1) { top: 0; }
.burger__bar:nth-child(2) { top: 6px; }
.burger__bar:nth-child(3) { top: 12px; }
.burger[aria-expanded="true"] .burger__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------ 7. MOBILE OVERLAY MENU */
.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--black);
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + var(--s-6)) var(--gutter) var(--s-7);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform var(--t-hero) var(--ease-out), visibility 0s linear var(--t-hero);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu.is-open {
  transform: translateY(0);
  visibility: visible;
  transition: transform var(--t-hero) var(--ease-out), visibility 0s;
}
@media (min-width: 1024px) { .menu { display: none; } }

/* Origin-aware open: the panel grows out of the burger that opened it rather
   than sliding in from off-screen. JS writes --menu-ox/--menu-oy/--menu-r from
   the burger's live position; the fallbacks put the origin where the burger
   sits if JS hasn't measured yet. The translateY above stays as the fallback
   for engines without clip-path circles. */
@supports (clip-path: circle(10px at 10px 10px)) {
  @media (prefers-reduced-motion: no-preference) {
    .menu {
      transform: none;
      clip-path: circle(0px at var(--menu-ox, 88%) var(--menu-oy, 34px));
      transition: clip-path var(--t-hero) var(--ease-out),
                  visibility 0s linear var(--t-hero);
    }
    .menu.is-open {
      transform: none;
      clip-path: circle(var(--menu-r, 150vmax) at var(--menu-ox, 88%) var(--menu-oy, 34px));
      transition: clip-path var(--t-hero) var(--ease-out), visibility 0s;
    }
  }
}

.menu__nav { display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.menu__link {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 12vw, 3.5rem);
  text-transform: uppercase;
  line-height: 1;
  color: var(--text);
  padding-block: var(--s-3);
  display: flex;
  align-items: baseline;
  gap: var(--s-4);
  opacity: 0;
  transform: translateY(28px);
}
.menu.is-open .menu__link {
  opacity: 1;
  transform: translateY(0);
  /* Spring on the travel only — the links pop into place with a little
     overshoot, while the fade stays on a plain ease-out so the text does not
     appear to flicker back and forth. */
  transition: opacity var(--t-std) var(--ease-out),
              transform var(--t-std) var(--ease-spring);
}
.menu.is-open .menu__link:nth-child(1) { transition-delay: 140ms; }
.menu.is-open .menu__link:nth-child(2) { transition-delay: 200ms; }
.menu.is-open .menu__link:nth-child(3) { transition-delay: 260ms; }
.menu.is-open .menu__link:nth-child(4) { transition-delay: 320ms; }
.menu.is-open .menu__link:nth-child(5) { transition-delay: 380ms; }
.menu__link span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--red);
  letter-spacing: 0.15em;
}
.menu__link[aria-current="page"] { color: var(--red); }

/* Captain America Shield icon styling */
.icon-shield {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(229, 53, 43, 0.3);
  transition: transform var(--t-micro) var(--ease-out);
}
.icon-shield:hover {
  transform: scale(1.15) rotate(15deg);
}

.menu__foot {
  border-top: 1px solid var(--hairline);
  padding-top: var(--s-5);
  margin-top: var(--s-6);
  display: grid;
  gap: var(--s-4);
}
.menu__foot address {
  font-style: normal;
  color: var(--text-mute);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

/* --------------------------------------------- 8. STICKY MOBILE ACTION BAR */
.actionbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: var(--z-bar);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(17, 18, 20, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--hairline);
  padding-bottom: env(safe-area-inset-bottom, 0);
  transform: translateY(110%);
  transition: transform var(--t-std) var(--ease-out);
}
.actionbar.is-visible { transform: translateY(0); }
@media (min-width: 768px) { .actionbar { display: none; } }

.actionbar__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 60px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  position: relative;
}
.actionbar__btn + .actionbar__btn::before {
  content: '';
  position: absolute;
  left: 0; top: 18%;
  width: 1px; height: 64%;
  background: var(--hairline);
}
.actionbar__btn svg { width: 20px; height: 20px; }
.actionbar__btn--wa { color: #25D366; }
.actionbar__btn--call { color: var(--red); }

/* Give the page room so the bar never covers the footer's last row */
@media (max-width: 767px) {
  body.has-actionbar { padding-bottom: 60px; }
}

/* ------------------------------------------------------------- 9. FOOTER */
.footer {
  background: var(--black);
  border-top: 1px solid var(--hairline);
  padding-top: var(--section-y);
  overflow: hidden;
}
.footer__grid {
  display: grid;
  gap: var(--s-7);
  grid-template-columns: 1fr;
  padding-bottom: var(--s-8);
}
@media (min-width: 768px)  { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.footer__col h3 {
  font-family: var(--font-mono);
  font-size: var(--fs-kick);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.footer__col ul { display: grid; gap: var(--s-3); }
.footer__col a { color: var(--text-mute); transition: color var(--t-micro) var(--ease-out); }
.footer__col a:hover { color: var(--red); }
.footer__col address { font-style: normal; color: var(--text-mute); line-height: 1.6; }

.footer__hours { display: grid; gap: var(--s-2); font-size: var(--fs-sm); }
.footer__hours li { display: flex; justify-content: space-between; gap: var(--s-4); color: var(--text-mute); }
.footer__hours li.is-today { color: var(--red); font-weight: 600; }

.footer__social { display: flex; gap: var(--s-3); margin-top: var(--s-5); }
.footer__social a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  transition: border-color var(--t-micro) var(--ease-out),
              background-color var(--t-micro) var(--ease-out);
}
.footer__social a:hover { border-color: var(--red); background: var(--red); color: var(--white); }
.footer__social svg { width: 18px; height: 18px; }

/* Oversized wordmark bleeding off the bottom edge */
.footer__wordmark {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(4rem, 19vw, 17rem);
  line-height: 0.78;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px var(--smoke);
  text-align: center;
  white-space: nowrap;
  margin-bottom: -0.16em;
  user-select: none;
  pointer-events: none;
}

.footer__base {
  border-top: 1px solid var(--hairline);
  padding-block: var(--s-5);
  display: grid;
  gap: var(--s-3);
  font-size: 0.8125rem;
  color: var(--text-mute);
}
@media (min-width: 768px) {
  .footer__base { grid-template-columns: 1fr auto; align-items: center; }
}

/* ------------------------------------------------------ 10. CUSTOM CURSOR */
.cursor, .cursor-ring { display: none; }

@media (hover: hover) and (pointer: fine) {
  .cursor, .cursor-ring {
    display: block;
    position: fixed;
    top: 0; left: 0;
    z-index: var(--z-cursor);
    pointer-events: none;
    border-radius: 50%;
    will-change: transform;
  }
  .cursor {
    width: 8px; height: 8px;
    background: var(--bone);
    margin: -4px 0 0 -4px;
  }
  .cursor-ring {
    width: 40px; height: 40px;
    margin: -20px 0 0 -20px;
    border: 1px solid rgba(244, 244, 242, 0.35);
    transition: width var(--t-std) var(--ease-out),
                height var(--t-std) var(--ease-out),
                margin var(--t-std) var(--ease-out),
                border-color var(--t-std) var(--ease-out),
                background-color var(--t-std) var(--ease-out);
  }
  .cursor-ring.is-active {
    width: 64px; height: 64px;
    margin: -32px 0 0 -32px;
    border-color: var(--red);
    background: rgba(229, 53, 43, 0.12);
  }
  body.has-cursor,
  body.has-cursor a,
  body.has-cursor button { cursor: none; }
}

/* -------------------------------------------------- 11. PAGE TRANSITION */
.transition {
  position: fixed;
  inset: 0;
  z-index: var(--z-trans);
  background: var(--red);
  transform: translateY(100%);
  pointer-events: none;
  display: grid;
  place-items: center;
}
.transition__mark { width: 84px; opacity: 0; }

/* -------------------------------------------- 12. MOTION PRIMITIVES */
/* JS adds .is-in when the element enters. CSS handles the rest so that a
   JS failure never leaves content invisible — see the .no-js fallback. */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-hero) var(--ease-out),
              transform var(--t-hero) var(--ease-out);
}
[data-reveal].is-in { opacity: 1; transform: none; }

[data-reveal-mask] {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1s var(--ease-out);
}
[data-reveal-mask].is-in { clip-path: inset(0 0 0 0); }

[data-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-hero) var(--ease-out),
              transform var(--t-hero) var(--ease-out);
}
[data-stagger].is-in > * { opacity: 1; transform: none; }
[data-stagger].is-in > *:nth-child(1) { transition-delay: 0ms; }
[data-stagger].is-in > *:nth-child(2) { transition-delay: 70ms; }
[data-stagger].is-in > *:nth-child(3) { transition-delay: 140ms; }
[data-stagger].is-in > *:nth-child(4) { transition-delay: 210ms; }
[data-stagger].is-in > *:nth-child(5) { transition-delay: 280ms; }
[data-stagger].is-in > *:nth-child(6) { transition-delay: 350ms; }

/* Image frame: the crop moves, the box does not */
.imgframe {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}
.imgframe img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transition: transform 1.2s var(--ease-out);
}
.imgframe.is-in img { transform: scale(1); }

/* Skeleton shimmer: a sheen crosses the frame until the image decodes, so an
   unfilled box reads as "loading" rather than "broken". JS adds .is-loaded.
   Both hosts already carry position:relative and overflow:hidden; .shot keeps
   ::after for its hover scrim and its caption sits at z-index 2, so this
   layer slots between them without disturbing either. */
.imgframe::before,
.shot::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.07) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: shimmer 1.5s var(--ease-io) infinite;
}
.imgframe.is-loaded::before,
.shot.is-loaded::before {
  animation: none;
  opacity: 0;
  transition: opacity var(--t-std) var(--ease-out);
}
@keyframes shimmer {
  to { transform: translateX(100%); }
}

/* Press feedback — a control should give under the finger. .btn carries its
   own rule above; these are the controls that had none. */
.filter,
.burger,
.shot,
.tile,
.menu__link,
.link-rule,
[data-press] {
  transition: transform var(--t-micro) var(--ease-out);
}
.filter:active,
.burger:active,
.shot:active,
.tile:active,
.menu__link:active,
.link-rule:active,
[data-press]:active {
  transform: scale(var(--press));
}
/* Icon buttons are small enough to need the larger delta */
.lightbox__close:active,
.lightbox__nav:active,
[data-press="sm"]:active {
  transform: scale(var(--press-sm));
}

/* Tabular numbers: fixed-width digits so counters, prices and the lightbox
   index stop reflowing as their values change. */
[data-count],
.stat__num,
.drive__num,
.disc-card__num,
.plan__price,
.lightbox__count {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* If JS never runs, show everything rather than an empty page */
.no-js [data-reveal],
.no-js [data-reveal-mask],
.no-js [data-stagger] > * {
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
}
/* Nothing would ever clear the shimmer without JS, so never start it */
.no-js .imgframe::before,
.no-js .shot::before { display: none; }

/* ---------------------------------------------------------- 13. UTILITIES */
.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;
}
.u-center { text-align: center; }
.u-mt-4 { margin-top: var(--s-4); }
.u-mt-5 { margin-top: var(--s-5); }
.u-mt-6 { margin-top: var(--s-6); }
.u-mt-7 { margin-top: var(--s-7); }
.u-mb-5 { margin-bottom: var(--s-5); }
.u-mb-6 { margin-bottom: var(--s-6); }
.u-flow > * + * { margin-top: var(--s-4); }
.u-btnrow { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.u-deferred { content-visibility: auto; contain-intrinsic-size: auto 800px; }

/* ---------------------------------------------------- 14. REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal],
  [data-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
  }
  [data-reveal-mask] { clip-path: none !important; }
  .imgframe img { transform: none !important; }
  .cursor, .cursor-ring { display: none !important; }
  .transition { display: none !important; }
  .menu__link { opacity: 1; transform: none; }

  /* An infinite sheen is exactly the kind of ambient loop this setting is for */
  .imgframe::before,
  .shot::before { display: none !important; }

  /* Snapping between two scales with no transition reads worse than not
     moving at all, so drop press feedback entirely rather than shorten it */
  .btn:active,
  .filter:active,
  .burger:active,
  .shot:active,
  .tile:active,
  .menu__link:active,
  .link-rule:active,
  .lightbox__close:active,
  .lightbox__nav:active,
  [data-press]:active { transform: none !important; }
}

/* ------------------------------------------------------------- 15. FLOATING BUTTON */
.fab-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 1rem;
}

.fab-main {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 12px rgba(229, 53, 43, 0.4);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.3s ease;
}

.fab-main svg { width: 28px; height: 28px; }
.fab-main:hover { transform: scale(1.05); }

.fab-container.is-open .fab-main {
  transform: rotate(45deg);
}

.fab-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fab-container.is-open .fab-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fab-item {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid var(--hairline);
}
.fab-item svg { width: 22px; height: 22px; }
.fab-item:hover {
  background: var(--red);
  color: var(--white);
  transform: scale(1.1);
}
