/* ───────── Tokens ───────── */
:root {
  --cream: #f3eee6;
  --paper: #faf7f2;
  --ink: #1d1a17;
  --muted: #6b6258;      /* 5.2:1 on cream (WCAG AA needs 4.5) */
  --line: rgba(29, 26, 23, .14);
  --dark: #13110f;
  --dark-2: #1d1a17;
  --on-dark: #efe9df;
  --on-dark-muted: rgba(239, 233, 223, .55);
  --line-dark: rgba(239, 233, 223, .14);
  --gutter: clamp(16px, 4vw, 64px);
  --nav-fs: clamp(11.5px, calc(1.003vw - .85px), 19.5px); /* top-menu size; reused for small headers on the payments page */

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* hero porthole geometry: measured from porthole.webp (1415×1450) */
  --ring-h: min(84svh, 96vw);
  --ring-w: calc(var(--ring-h) * .9759);
  --glass: calc(var(--ring-h) * .3);      /* drum radius, sits just inside the ring */
  --hole: calc(var(--ring-h) * .4);       /* panel cut-out radius, hidden under the ring */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
main { overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 15px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; padding: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: 999px;
  font-size: 13px; font-weight: 600;
  translate: 0 -200%; transition: translate .2s;
}
.skip:focus { translate: 0 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }

.display, h1, h2, .story__word, .local__big, .band__quote {
  font-family: var(--display);
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .92;
}
.label {
  display: block;
  font: 500 10.5px/1.3 var(--body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ───────── Loader ───────── */
.loader { display: none; }
.js .loader {
  display: flex;
  position: fixed; inset: 0; z-index: 100;
  background: var(--cream);
  align-items: center; justify-content: center;
}
.loader__logo { width: min(86vw, 600px); height: auto; opacity: .06; } /* JS fades it up with the % */
.loader__count {
  position: absolute; right: var(--gutter); bottom: var(--gutter);
  font: 300 clamp(48px, 9vw, 140px)/.8 var(--display);
  font-variation-settings: "wdth" 125;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}

/* ───────── Nav ───────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--gutter);
  font-size: var(--nav-fs); font-weight: 500; /* 15% under the earlier "2x" size; scales with the screen */
  color: var(--ink);
  transition: color .4s;
}
.nav--light { color: var(--on-dark); }
.nav__links, .nav__contact { display: flex; gap: .9em; white-space: nowrap; }
.nav__contact { justify-content: flex-end; }
.nav__contact a { display: inline-block; padding-block: 5px; margin-block: -5px; } /* 24px+ tap target, same visual spacing */
.nav a { opacity: .85; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
/* English / Español switch: small outlined pill before the phone number */
.nav__contact .nav__lang { display: inline-flex; align-items: center; align-self: center; padding: calc(4px + .06em) .8em calc(4px - .06em); margin-block: -5px; border: 1px solid currentColor; border-radius: 999px; line-height: 1.15; }
.nav__contact .nav__lang:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
/* Browsers place this font's letters differently inside the line (iPhone Safari sits them high).
   Where supported, trim the line to the letters' cap height and baseline, then pad evenly:
   the word is centred the same everywhere, and the button keeps its size. */
@supports (text-box: trim-both cap alphabetic) {
  .nav__contact .nav__lang { display: inline-block; text-box: trim-both cap alphabetic; padding-block: calc(.21em + 4px); }
}
.nav__logo { display: grid; justify-self: center; opacity: 1 !important; }
.nav__logo-img { grid-area: 1 / 1; height: clamp(76px, 6.8vw, 104px); width: auto; max-width: none; margin: -10px 0 -14px; transition: opacity .4s; }
.nav__logo-img--dark, .nav--light .nav__logo-img { opacity: 0; }
.nav--light .nav__logo-img--dark { opacity: 1; }

/* ───────── Sticky CTA ───────── */
.cta {
  position: fixed; left: 50%; bottom: 18px; z-index: 60;
  translate: -50% 0;
  display: flex; align-items: center; gap: 6px;
  transition: opacity .4s, translate .4s;
}
.cta--hide { opacity: 0; translate: -50% 140%; pointer-events: none; }
.cta__label, .cta__icon {
  background: #fff; color: var(--ink);
  box-shadow: 0 6px 24px rgba(29, 26, 23, .14);
  border-radius: 999px;
}
.cta { font-size: max(12.5px, var(--nav-fs)); } /* matches the top menu; padding and arrow scale with it */
.cta__label { padding: .96em 1.6em; font-size: 1em; font-weight: 600; }
.cta__icon { width: 3.2em; height: 3.2em; display: grid; place-items: center; transition: transform .3s; }
.cta__icon svg { width: 1.28em; height: 1.28em; }
.cta:hover .cta__icon { transform: rotate(-45deg); }

/* ───────── 1–2. Hero ───────── */
.hero { position: relative; height: 100svh; }
.hero__stage { position: relative; height: 100%; overflow: hidden; background: var(--paper); }

.hero__foam, .hero__mist, .hero__door, .bubbles { position: absolute; inset: 0; }
.hero__foam img { width: 100%; height: 100%; object-fit: cover; }
.hero__mist { background: var(--cream); opacity: 0; pointer-events: none; }

.hero__door { will-change: transform; }
.hero__panel {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 42%, #fbf8f3 0%, #ece5da 58%, #d6ccbd 100%);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent calc(var(--hole) - 1px), #000 var(--hole));
          mask: radial-gradient(circle at 50% 50%, transparent calc(var(--hole) - 1px), #000 var(--hole));
}
.hero__drum {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--glass) * 2); aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%; overflow: hidden;
  background: #cfc8bd;
}
.hero__drum img { width: 100%; height: 100%; object-fit: cover; }
.hero__drum::after { /* glass reflection */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255,255,255,.55), rgba(255,255,255,0) 34%),
    radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 60%, rgba(30,25,20,.35) 100%);
}
.hero__ring {
  position: absolute; left: 50%; top: 50%;
  height: var(--ring-h); width: var(--ring-w); max-width: none;
  translate: -49.89% -49.24%;   /* puts the ring's glass centre on the viewport centre */
  filter: drop-shadow(0 30px 50px rgba(60, 45, 30, .25));
}

.hero__title { position: absolute; inset: 0; pointer-events: none; font-size: clamp(44px, 7.4vw, 136px); }
.hero__line { position: absolute; display: block; white-space: nowrap; }
.hero__line em { font-style: normal; }
.hero__line--a { left: var(--gutter); top: 15svh; }
.hero__line--b { right: var(--gutter); bottom: 17svh; }

.hero__lede {
  position: absolute; left: var(--gutter); bottom: 9svh;
  width: min(325px, 38vw);
  display: grid; gap: 14px;
  font-size: 15px; line-height: 1.5; color: var(--muted);
}
/* Alameda Owned seal, centred in the white space left of the porthole */
.hero__seal {
  position: absolute; z-index: 3; top: 50%; left: var(--gutter);
  width: clamp(120px, 12vw, 190px); height: auto; translate: 0 -50%;
}
.hero__lede strong {
  font: 400 clamp(23.4px, 2.21vw, 31.2px)/1.05 var(--display);
  font-variation-settings: "wdth" 110;
  color: var(--ink);
  letter-spacing: -.02em;
}
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 9svh;
  width: min(380px, 40vw);
  display: flex; align-items: center; gap: 8px;
  padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.hero__scroll-r { margin-left: auto; }
.hero__scroll .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.hero.is-live .dot { animation: pulse 2s 2; } /* 4s total: auto-motion stops within 5s (WCAG 2.2.2) */
@keyframes pulse { 50% { opacity: .2; } }

.hero__whisper {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font: 400 clamp(30px, 5vw, 84px)/1 var(--display);
  font-variation-settings: "wdth" 120;
  letter-spacing: -.035em;
  text-align: center;
  pointer-events: none;
}
.js .hero__whisper span { opacity: 0; }

.bubbles { pointer-events: none; }
.bubble {
  position: absolute; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,.95) 0 6%, rgba(255,255,255,0) 18%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0) 58%, rgba(214,226,238,.35) 78%, rgba(255,255,255,.85) 100%);
  box-shadow: inset -6px -8px 18px rgba(190, 205, 225, .25), 0 6px 20px rgba(120, 110, 100, .08);
}

/* ───────── 3–4. Story ───────── */
.story { position: relative; }
.story__stage { position: relative; height: 100svh; overflow: hidden; background: var(--cream); }

.hero__line > div, .band__split > div { padding-bottom: .2em; margin-bottom: -.2em; } /* room for y/g tails inside the masks */
.story__words { position: absolute; inset: 0; opacity: 0; } /* final state = hidden; JS animates from visible */
.story__word { position: absolute; top: 44%; font-size: clamp(56px, 9.6vw, 184px); translate: 0 -50%; }
.story__so {
  position: absolute; left: 50%; bottom: 100%; translate: -50% 12%;
  font-size: .42em; line-height: 1;
}
.story__word--l { left: var(--gutter); }
.story__word--r { right: var(--gutter); }
/* "Fast": the logo's own device, an open gradient ring, sweeps around the word */
.fast { position: relative; display: inline-block; margin: 0 .3em 0 .35em; vertical-align: -.12em; }
.fast__word {
  position: relative; display: inline-block;
  font: 600 1.9em/1 var(--display); font-variation-settings: "wdth" 125; letter-spacing: -.035em;
  background: linear-gradient(100deg, #0C1460 42%, #4EB7F0 50%, #0C1460 58%) 100% 0 / 320% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; color: #0C1460; -webkit-text-fill-color: transparent;
}
.fast__ring { position: absolute; left: -8%; top: -24%; width: 132%; height: 150%; overflow: visible; transform: scaleX(-1); }
.fast__ring ellipse {
  fill: none; stroke: url(#fastGrad); stroke-width: 2.6; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 86 100; stroke-dashoffset: 0; /* gap like the logo ring */
  transform-origin: 50% 50%; transform: rotate(-150deg);
}
.story__sub {
  position: absolute; left: var(--gutter); top: calc(44% + clamp(40px, 6vw, 110px));
  font: 400 clamp(15px, 1.4vw, 21px)/1.1 var(--display);
  font-variation-settings: "wdth" 110;
  letter-spacing: -.02em;
}

/* the family of washers; the spotlight moves 8 -> 6 -> 4 -> 3 -> 2 -> all.
   Photos are on white, multiplied onto the cream so the white disappears. */
.story__washer.lineup {
  position: absolute; left: 50%; top: 69%; z-index: 1;
  width: min(86vw, 1220px); height: auto; aspect-ratio: 3140 / 1040;
  display: flex; align-items: flex-end; justify-content: center; gap: 2.6%;
  transform: translate(-50%, -50%);
  mix-blend-mode: multiply; will-change: transform;
}
.lu { position: relative; height: calc(var(--h) * 100%); display: flex; align-items: flex-end; transition: opacity .45s, filter .45s, scale .5s cubic-bezier(.2, .8, .2, 1); transform-origin: 50% 100%; }
.lu img { position: relative; height: 100%; width: auto; max-width: none; }
.lu:not(.is-lit) { opacity: .26; filter: grayscale(.7) blur(.4px); }
.lu.is-lit { scale: 1.04; }

.story__stack {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  height: 92svh; width: auto; max-width: none;
  transform: translate(-50%, -50%) scale(.56);
  filter: drop-shadow(0 40px 50px rgba(60, 45, 30, .18));
  will-change: transform;
  visibility: hidden; /* static / reduced-motion state shows the washer; JS reveals the stack */
}

.spec { position: absolute; inset: 0; pointer-events: none; }
.spec > * { pointer-events: auto; }
.spec__title {
  position: absolute; left: 0; right: 0; top: 12svh; text-align: center; white-space: nowrap;
  font-size: clamp(40px, 5vw, 96px);
}
.sizes { position: absolute; left: 50%; top: 23svh; translate: -50% 0; width: min(760px, 80vw); text-align: center; display: grid; gap: 10px; justify-items: center; }
.sizes__count { display: flex; align-items: center; justify-content: center; gap: 14px; }
.sizes__count b { font: 400 clamp(56px, 5vw, 92px)/.9 var(--display); font-variation-settings: "wdth" 125; letter-spacing: -.04em; }
.sizes__all { font-size: clamp(34px, 3vw, 54px) !important; letter-spacing: -.03em !important; }
.sizes__unit { font: 600 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
/* load "pips": one little porthole per load */
.pips { display: flex; gap: 6px; }
.pips i {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid #0C1460;
  background: radial-gradient(circle at 50% 56%, #4EB7F0 0 38%, transparent 41%);
  scale: 0; transition: scale .35s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--i) * 45ms);
}
.sizes__item.is-on .pips i, .sizes:not(.sizes--stepper) .pips i { scale: 1; }
.sizes__item p { font-size: clamp(16px, 1.3vw, 20px); line-height: 1.45; color: var(--ink); max-width: 46ch; margin: 8px auto 0; }

.sizes__list { list-style: none; display: grid; gap: 14px; }
.sizes__item { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline; }
.sizes__item b {
  font: 400 clamp(40px, 4vw, 64px)/.9 var(--display); font-variation-settings: "wdth" 125; letter-spacing: -.04em;
}
.sizes__item span { font-size: 13px; color: var(--muted); }
.sizes__unit { font-size: 10.5px !important; letter-spacing: .12em; text-transform: uppercase; }
/* desktop stepper: one size at a time, big */
.sizes--stepper .sizes__list { position: relative; width: 100%; height: clamp(150px, 13vw, 200px); }
.sizes--stepper .sizes__item {
  position: absolute; inset: 0; display: grid; grid-template-columns: 1fr; gap: 6px; align-content: start; justify-items: center;
  opacity: 0; translate: 0 14px; transition: opacity .35s, translate .35s;
}
.sizes--stepper .sizes__item.is-on { opacity: 1; translate: 0 0; }

.sizes--stepper .sizes__item--all b { font-size: clamp(40px, 3.6vw, 64px); }

/* ───────── Linen band ───────── */
/* ───────── Pay (tap to pay): card | copy | app, logos below ───────── */
.pay { position: relative; background: #0C1460; color: var(--on-dark); overflow: hidden; }
.pay::before {
  content: ""; position: absolute; inset: auto -20% -40% -20%; height: 80%;
  background: radial-gradient(closest-side, rgba(117, 111, 232, .35), transparent 70%); pointer-events: none;
}
.pay__stage {
  position: relative; min-height: 100svh; padding: 16svh var(--gutter) 15svh;
  display: grid; grid-template-columns: 1.15fr minmax(0, 1.4fr) 1.15fr; column-gap: clamp(20px, 3vw, 56px); row-gap: 7svh;
  align-items: center;
}
.pay .label { color: rgba(239, 233, 223, .7); font-size: var(--nav-fs); }
.pay__ways > .label { font-size: calc(var(--nav-fs) * 2); letter-spacing: .12em; } /* "Every way to pay": 2x */
.pay__copy { text-align: center; }
.pay__copy h2 { font-size: clamp(44px, 5.4vw, 104px); line-height: .92; }
.pay__tag { margin: 22px 0 22px; white-space: nowrap; font: 600 clamp(56px, 7.4vw, 116px)/1.06 var(--display); font-variation-settings: "wdth" 85; letter-spacing: -.025em; }
.pay__tag > span { display: block; }
.tap-x { display: inline-block; width: .62em; height: .62em; margin: 0 .16em; vertical-align: .02em; overflow: visible; }
.pay__tag em { display: inline-block; background-size: 200% 100% !important; }
.pay__tag em.is-live { animation: paidFlash 2.2s cubic-bezier(.2, .8, .2, 1) 1; } /* one flash; JS sequences it before the clips */
@keyframes paidFlash {
  0%   { scale: 1; filter: drop-shadow(0 0 0 rgba(39, 255, 249, 0)); background-position: 100% 0; }
  30%  { scale: 1.14; filter: drop-shadow(0 0 22px rgba(39, 255, 249, .9)) brightness(1.5); }
  100% { scale: 1; filter: drop-shadow(0 0 0 rgba(39, 255, 249, 0)); background-position: 0 0; }
}
.pay__tag em {
  font-style: normal;
  background: linear-gradient(90deg, #756FE8, #27FFF9, #fff, #27FFF9, #756FE8); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pay__copy p:last-child { max-width: 34ch; margin: 0 auto; font-size: max(15px, var(--nav-fs)); color: rgba(239, 233, 223, .78); }
.pay__clip { margin: 0; }
.pay__screen {
  position: relative; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .08);
}
.pay__screen video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; } /* the reader sits mid-frame */
.pay__clip figcaption { margin-top: 18px; font-size: max(14px, var(--nav-fs)); color: rgba(239, 233, 223, .85); text-align: center; display: grid; justify-items: center; gap: 12px; }
.pay__mark--card { width: min(66%, 220px); height: auto; border-radius: 4.5% / 6.9%; box-shadow: 0 0 0 1px rgba(239, 233, 223, .35), 0 0 24px rgba(39, 201, 240, .25), 0 14px 28px rgba(0, 0, 0, .45); }
.pay__mark--app { display: grid; place-items: center; width: min(66%, 220px); aspect-ratio: 1.535; padding: 10px 14px; border-radius: 14px; background: #fff; box-shadow: 0 12px 24px rgba(0, 0, 0, .3); }
.pay__mark--app img { width: 100%; height: auto; }
.pay__clip figcaption b { font-weight: 600; color: #27FFF9; margin-right: 8px; }
.pay__paid {
  position: absolute; left: 50%; bottom: 10%; translate: -50% 0;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 22px 12px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .95); color: #0C1460;
  font: 600 clamp(17px, 1.5vw, 24px)/1 var(--display); font-variation-settings: "wdth" 110;
  box-shadow: 0 16px 40px rgba(12, 20, 96, .35);
  opacity: 0; scale: .6; pointer-events: none;
}
.pay__paid svg { width: 1.6em; height: 1.6em; padding: .25em; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #756FE8, #27C9F0); }
.pay__ring { position: absolute; left: 14px; top: 50%; width: 2.2em; aspect-ratio: 1; translate: 0 -50%; border-radius: 50%; border: 2px solid #27FFF9; opacity: 0; }
.pay__ways { grid-column: 1 / -1; display: grid; gap: 18px; justify-items: center; }
.pay__logos { list-style: none; width: 100%; display: grid; grid-template-columns: repeat(9, 1fr); gap: 12px; }
.pay__logos li {
  display: grid; justify-items: center; align-content: center; gap: 8px;
  padding: 14px 8px 10px; border-radius: 12px; background: #fff; color: #0C1460;
}
.pay__logos img { height: 30px; width: auto; max-width: 90%; object-fit: contain; }
.pay__logos li span { font-size: var(--nav-fs); font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
/* Cash tile: always lifted with a green ring (cash is welcome, even preferred); when the tiles
   come into view it pops, shakes and gets one shimmer (about 2.4s, once: WCAG 2.2.2 friendly) */
.pay__logos li.pay__cash { position: relative; z-index: 1; overflow: hidden; scale: 1.06; box-shadow: 0 0 0 3px #2BB673, 0 8px 22px rgba(43, 182, 115, .45); }
.pay__logos li.pay__cash::after {
  content: ""; position: absolute; inset: -20% -60%; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(43, 182, 115, .28) 46%, rgba(255, 255, 255, .95) 50%, rgba(39, 255, 249, .3) 54%, transparent 62%);
  translate: -100% 0;
}
.pay__logos li.pay__cash.is-live { animation: cashPop 1.6s cubic-bezier(.3, .7, .3, 1) 1; }
.pay__logos li.pay__cash.is-live::after { animation: cashShine 1.1s ease-in-out .9s 1; }
@keyframes cashPop {
  0%   { scale: 1.06; rotate: 0deg; }
  18%  { scale: 1.22; rotate: 0deg; }
  28%  { rotate: -5deg; }
  38%  { rotate: 4.5deg; }
  48%  { rotate: -3deg; }
  58%  { rotate: 2deg; scale: 1.18; }
  70%  { rotate: 0deg; }
  100% { scale: 1.06; rotate: 0deg; }
}
@keyframes cashShine { from { translate: -100% 0; } to { translate: 100% 0; } }

.band { position: relative; height: 120svh; display: grid; place-items: center; overflow: hidden; }
.band__img { position: absolute; inset: 0; overflow: hidden; }
.band__img img { width: 100%; height: 124%; object-fit: cover; translate: 0 -10%; }
.band__quote {
  position: relative; text-align: center;
  font-size: clamp(48px, 9vw, 170px);
  color: var(--ink);
  padding: 0 var(--gutter);
}
.band__quote em { font-style: normal; color: #8a7a64; }

/* ───────── 5. Why ───────── */
.why { position: relative; height: 340svh; background: var(--paper); } /* 3 items */
.why__sticky {
  position: sticky; top: 0; height: 100svh;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 96px);
  align-items: center;
  padding: 80px var(--gutter) 90px;
}
.why__left .label { margin-bottom: 26px; font-size: 21px; } /* 2x */
.why__list { list-style: none; border-bottom: 1px solid var(--line); }
.why__item { border-top: 1px solid var(--line); }
.why__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 16px 0;
  text-align: left;
  font: 400 clamp(28.6px, 2.93vw, 54.6px)/1 var(--display); /* +30% for contrast with the description */
  font-variation-settings: "wdth" 115; letter-spacing: -.03em;
  color: var(--muted);
  transition: color .4s;
}
.why__item.is-active .why__q { color: var(--ink); }
.why__q i { position: relative; flex: none; width: 14px; height: 14px; }
.why__q i::before, .why__q i::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; background: currentColor;
  transition: transform .4s;
}
.why__q i::after { transform: rotate(90deg); }
.why__item.is-active .why__q i::after { transform: rotate(0deg); }
.why__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s cubic-bezier(.6,0,.2,1); }
.why__a > p { overflow: hidden; max-width: 34ch; color: var(--muted); font-size: clamp(18px, 1.95vw, 28px); line-height: 1.4; } /* 2x (28px on desktop) */
.why__item.is-active .why__a { grid-template-rows: 1fr; }
.why__item.is-active .why__a > p { padding-bottom: 20px; }

.why__media { position: relative; height: min(76svh, 760px); border-radius: 6px; overflow: hidden; background: var(--cream); }
.why__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(100% 0 0 0);
  scale: 1.12;
  transition: clip-path 1s cubic-bezier(.7,0,.2,1), scale 1.4s cubic-bezier(.2,.6,.2,1);
}
.why__media img.is-active { clip-path: inset(0 0 0 0); scale: 1; z-index: 1; }
.why__media img.was-active { clip-path: inset(0 0 0 0); scale: 1; }
/* tall photos: keep each one's focal point in the crop */
.why__img--capacity, .why__img--quality { object-position: 50% 30%; }
.why__img--parking { object-position: 50% 6%; }
.why__inline { display: none; } /* phones only: each photo under its own description */

/* ───────── 6–7. Local (dark) ───────── */
.local {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 80% 50% at 50% 30%, var(--dark-2), var(--dark) 70%);
  color: var(--on-dark);
  padding: 22svh var(--gutter) 28px;
}
.local .label { color: var(--on-dark-muted); }

.local__serving {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: 22px;
  font: 400 clamp(16px, 1.6vw, 22px)/1 var(--display);
  font-variation-settings: "wdth" 115; letter-spacing: -.02em;
}
.local__serving { flex-direction: column; gap: 14px; text-align: center; }
.local__place {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .1em .45em;
  font: 400 clamp(26px, 3vw, 44px)/1.1 var(--display); font-variation-settings: "wdth" 115; letter-spacing: -.02em;
}
.local__x { width: .8em; height: .8em; flex: none; }
.local__addr {
  font-family: var(--body); font-size: clamp(20px, 2vw, 34px); font-weight: 700; letter-spacing: .07em; line-height: 1.25;
  background: linear-gradient(100deg, #756FE8 0%, #4EB7F0 30%, #27FFF9 42%, #ffffff 50%, #27FFF9 58%, #4EB7F0 70%, #756FE8 100%) 100% 0 / 260% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; color: #4EB7F0; -webkit-text-fill-color: transparent;
}
/* "bling": a white shine sweeps across twice when the section comes up, then holds still (4.8s, under the 5s auto-motion limit) */
.local__addr.is-live { animation: addrBling 2.4s ease-in-out 2; }
@keyframes addrBling {
  0%   { background-position: 100% 0; filter: drop-shadow(0 0 0 rgba(39, 255, 249, 0)); }
  45%  { filter: drop-shadow(0 0 14px rgba(39, 255, 249, .55)); }
  70%  { background-position: 0% 0; filter: drop-shadow(0 0 4px rgba(117, 111, 232, .35)); }
  100% { background-position: 0% 0; filter: drop-shadow(0 0 0 rgba(39, 255, 249, 0)); }
}
.local__btn {
  margin-top: 8px; display: inline-flex; gap: 10px; align-items: center;
  padding: 10px 18px 10px 20px; border-radius: 999px; background: #fff; color: #3c4043;
  font: 500 14px/1 var(--body); letter-spacing: 0; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .3s;
}
.local__btn:hover { transform: translateY(-2px); }
.local__btn img { height: 24px; width: auto; }

.local__big {
  position: relative; z-index: 1;
  margin-top: 8svh;
  text-align: center;
  font-size: 31vw; line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(239, 233, 223, .2);
  white-space: nowrap;
  user-select: none;
}
.local__map {
  position: relative; z-index: 2;
  width: min(62vmin, 640px); aspect-ratio: 1;
  margin: -22vw auto 0;
}
.local__map-disc {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-dark), 0 40px 120px rgba(0,0,0,.6);
  -webkit-mask: radial-gradient(circle, #000 62%, transparent 72%);
          mask: radial-gradient(circle, #000 62%, transparent 72%);
}
.map-zoom { position: absolute; inset: 0; }
.map-zoom img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-detail { scale: var(--d); opacity: 0; } /* same geography as the overview, just sharper */
/* "rainbow road" routes in to the store: Webster from the north, Central from the east */
.map-routes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.route-dot { fill: #fff; opacity: 0; }
.route-halo { fill: #27FFF9; opacity: 0; }
/* storefront opens downward from the pin once the map has landed */
.local__store {
  position: absolute; z-index: 5; left: 50%; top: 50%; translate: -50% 0; margin: 18px 0 0;
  width: min(480px, 86vw);
}
/* only the photo is masked as it opens, so the buttons beside it are not clipped */
.local__store > img { clip-path: inset(0 50% 100% 50% round 14px); }
/* room under the map for the storefront that hangs from the pin */
.local__map { margin-bottom: max(0px, calc(min(480px, 86vw) * .75 + 90px - min(31vmin, 320px))); }
.local__store > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.local__store figcaption { margin-top: 14px; text-align: center; font: 400 clamp(17px, 1.4vw, 21px)/1.3 var(--display); font-variation-settings: "wdth" 110; color: var(--on-dark); }
/* second Google Maps button, centred beside the storefront (the one under the heading has scrolled away by now).
   No CSS translate here: GSAP animates x and would drop it. */
.local__maps2 {
  position: absolute; left: calc(100% + 36px); top: calc(min(480px, 86vw) * .375 - 87px); width: 220px;
  display: grid; justify-items: center; gap: 10px; padding: 18px 18px 16px; border-radius: 16px;
  background: #fff; color: #3c4043; font: 600 15px/1 var(--body);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45); transition: transform .3s;
}
.local__maps2:hover { transform: translateY(-3px); }
.local__maps2 img { width: 100%; height: auto; }
.local__credit { position: relative; z-index: 3; margin-top: 10px; text-align: center; font-size: 12.5px; color: rgba(239, 233, 223, .82); } /* OSM license credit: readable at 4.5:1+ */
.local__credit a { text-decoration: underline; }
.pin, .ping { position: absolute; left: 50%; top: 50%; border-radius: 50%; translate: -50% -50%; }
.pin {
  width: 132px; padding: 8px 12px; border-radius: 14px;
  translate: none; margin: -18px 0 0 -18px; /* GSAP sets xPercent/yPercent -100: bubble up-left of the corner, clear of the storefront */
  background: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); display: grid; place-items: center;
}
.pin::after { content: ""; position: absolute; right: -18px; bottom: -18px; width: 30px; height: 30px; background: #fff; clip-path: polygon(0 40%, 100% 100%, 40% 0); } /* tail tip lands on the corner */
.pin { z-index: 6; }
.pin img { width: 100%; height: auto; }
.ping { width: 70%; aspect-ratio: 1; border: 1px solid rgba(239, 233, 223, .35); opacity: 0; }
/* one ripple each when the map scrolls in; done in 4.8s (WCAG 2.2.2) */
.local__map.is-live .ping { animation: ping 3.2s cubic-bezier(.2,.6,.3,1) 1 both; }
.local__map.is-live .ping--2 { animation-delay: 1.6s; }
@keyframes ping { from { scale: .1; opacity: 1; } to { scale: 1; opacity: 0; } }


.contact {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1.1fr 1.3fr .8fr; gap: clamp(24px, 4vw, 64px);
  align-items: start;
  margin-top: 18svh; padding-top: 40px;
  border-top: 1px solid var(--line-dark);
}
.contact__title { font-size: clamp(32px, 3.6vw, 60px); }

/* FAQ: native <details> accordion, no script needed */
.faq {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1.1fr 2.1fr; gap: clamp(24px, 4vw, 64px); align-items: start;
  margin-top: 18svh; padding-top: 40px; border-top: 1px solid var(--line-dark);
}
.faq__title { font-size: clamp(32px, 3.6vw, 60px); }
.faq__item { border-bottom: 1px solid var(--line-dark); }
.faq__item:first-child { border-top: 1px solid var(--line-dark); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 18px 0;
  font: 400 clamp(18px, 1.6vw, 26px)/1.2 var(--display); font-variation-settings: "wdth" 110; letter-spacing: -.01em;
  color: var(--on-dark);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font: 300 1.3em/1 var(--body); transition: rotate .3s; }
.faq__item[open] summary::after { rotate: 45deg; }
.faq__item p { max-width: 60ch; padding: 0 0 20px; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.55; color: rgba(239, 233, 223, .8); }
.contact__info { display: grid; gap: 26px; font-size: 16.1px; } /* contact block: +15% */
.contact .label { font-size: 12.1px; }
.contact__info p { margin-top: 6px; }
.contact__info a { border-bottom: 1px solid var(--line-dark); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form > .label, .form__wide, .form .btn { grid-column: 1 / -1; }
.form label span { display: block; font-size: 12.1px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 0;
  resize: vertical;
  background: transparent; color: var(--on-dark);
  border: 0; border-bottom: 1px solid rgba(239, 233, 223, .5); /* field lines at 3:1+ against the dark panel */
  font: inherit; font-size: 17.25px;
  border-radius: 0; outline: none;
  transition: border-color .3s;
}
.form select option { color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--on-dark); }
/* keyboard focus: a clear ring around the active field */
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 2px solid #27FFF9; outline-offset: 4px; border-radius: 2px; }
.btn {
  justify-self: start; margin-top: 8px;
  padding: 14px 26px; border-radius: 999px;
  background: var(--on-dark); color: var(--ink);
  font-size: 15px; font-weight: 600;
  transition: transform .3s;
}
.btn:hover { transform: translateY(-2px); }
.hp { position: absolute; left: -9999px; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.form__status { grid-column: 1 / -1; min-height: 1.4em; font-size: 16px; color: var(--on-dark); }
.form__status.is-error { color: #ffb4a8; }
.contact__a11y p { color: var(--on-dark-muted); font-size: 15px; max-width: 36ch; }
.foot__links { display: flex; gap: 24px; }

.foot {
  position: relative; z-index: 3;
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 16svh; padding-top: 18px; padding-bottom: 70px;
  border-top: 1px solid var(--line-dark);
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted);
}

/* small laptops / tablets landscape: the logo already goes home, so drop Home to keep the menu clear of it */
@media (min-width: 821px) and (max-width: 1150px) { .nav__links a[href="#top"] { display: none; } }
@media (min-width: 900px) and (max-width: 1000px) { .nav { font-size: 11px; } .nav__links { gap: .6em; } }
/* 821-899px: too narrow for the menu row beside the logo; use the phone-style top bar (logo centred, phone right) */
@media (min-width: 821px) and (max-width: 899px) { .nav__links, .nav__contact a:last-child { display: none; } .nav__logo { grid-column: 2; } .nav__contact { grid-column: 3; } }

/* ───────── Mobile ───────── */
@media (max-width: 820px) {
  .nav { grid-template-columns: 1fr auto; gap: 12px; padding-top: 14px; font-size: 12px; }
  .nav__links, .nav__contact a:last-child { display: none; }
  .nav { grid-template-columns: 1fr auto 1fr; }
  .nav__logo { grid-column: 2; }
  .nav__contact { grid-column: 3; }
  .nav__logo-img { height: 52px; margin: -5px 0 -7px; }
  .nav__contact a { white-space: nowrap; }
  /* email stacked above the phone number */
  .nav__contact { flex-direction: column; align-items: flex-end; gap: 3px; }
  .nav__contact a:last-child { display: inline-block; order: -1; font-size: 10px; letter-spacing: -.02em; }
  /* language button: in the empty left corner, so the bar keeps its height */
  .nav__contact .nav__lang { position: absolute; left: var(--gutter); top: 50%; translate: 0 -50%; margin: 0; padding: calc(5px + .03em) 11px calc(5px - .03em); font-size: 11px; }
  @supports (text-box: trim-both cap alphabetic) { .nav__contact .nav__lang { padding-block: calc(.21em + 5px); } }
  /* soft backdrop so the bar stays readable over photos */
  .nav { background: rgba(243, 238, 230, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding-bottom: 10px; transition: color .4s, background-color .4s; }
  .nav--light { background: rgba(14, 12, 10, .55); }

  .hero__line--a { top: 13svh; }
  /* "Made Easy" sits on the drum's metal rim, below the glass (but never on top of the tagline) */
  .hero__line--b { bottom: auto; top: min(calc(50% + var(--ring-h) * .354 + 22px), calc(89svh - 126px)); }
  .hero__lede { bottom: 11svh; width: 60vw; }
  .hero__lede span { display: none; }
  .hero__scroll { display: none; }

  /* story becomes a normal-flow section on phones */
  .story__stage { height: auto; overflow: visible; padding: 16svh var(--gutter) 10svh; display: grid; gap: 10px; }
  /* "So Fresh" and "So Clean" side by side, the tagline centred under both */
  .story__words { position: relative; opacity: 1; display: grid; grid-template-columns: auto auto; justify-content: space-between; align-items: end; row-gap: 14px; }
  .story__word, .story__sub { position: static; translate: none; }
  .story__word { display: grid; justify-items: center; font-size: min(48px, 12.6vw); }
  .story__word--l { justify-self: start; }
  .story__word--r { justify-self: end; }
  .story__so { position: static; translate: none; }
  .story__sub { grid-column: 1 / -1; justify-self: center; text-align: center; margin-top: 4px; }
  .story__stack { visibility: visible; position: relative; left: auto; top: auto; transform: none; height: auto; width: 76vw; margin: 0 auto; }
  /* the machines stay pinned under the top bar while the size descriptions scroll past */
  .story__washer.lineup {
    position: sticky; top: 62px; z-index: 4; /* tucks just under the 64px top bar */ left: auto; transform: none;
    width: calc(100vw - 2 * var(--gutter)); margin: 8vw auto 0;
    padding: 10px 0 12px; background: var(--cream); box-sizing: content-box;
    mix-blend-mode: normal;                                    /* blend each photo instead, so the strip's background stays page-coloured */
    box-shadow: 0 0 0 100vmax var(--cream); clip-path: inset(0 -100vmax); /* strip runs edge to edge */
  }
  .story__washer.lineup .lu img { mix-blend-mode: multiply; }
  .spec__title { position: static; white-space: normal; font-size: 40px; }
  .sizes { position: static; translate: none; width: auto; justify-items: stretch; text-align: left; }
  .sizes__list { display: grid; gap: 30px; }
  /* description under its "8 LOAD" row, full width */
  .sizes__item { grid-template-columns: 1fr; gap: 6px; }
  .sizes__count { justify-content: flex-start; }
  .sizes__item p { max-width: none; margin: 0; text-align: left; }
  .pips i { width: 12px; height: 12px; }
  /* Alameda seal: bottom-right corner, beside the tagline */
  .hero__seal { top: auto; bottom: 11svh; left: auto; right: var(--gutter); translate: 0 0; width: 70px; }
  .sizes__item--all { display: none; }
  .pay__stage { grid-template-columns: 1fr 1fr; padding: 14svh var(--gutter) 10svh; row-gap: 32px; column-gap: 12px; }
  .pay__copy { grid-column: 1 / -1; grid-row: 1; }
  .pay__screen { border-radius: 14px; }
  .pay__paid { padding: 8px 14px 8px 10px; font-size: 15px; gap: 8px; }
  .pay__logos { grid-template-columns: repeat(3, 1fr); }
  .pay .label { font-size: 10.5px; }
  .pay__ways > .label { font-size: 21px; }
  .pay__logos li span { font-size: 11px; white-space: normal; text-align: center; }
  .spec { position: static; display: grid; gap: 28px; }

  .band { height: 80svh; }

  .why { height: auto; }
  .why__sticky { position: static; height: auto; grid-template-columns: 1fr; padding: 14svh var(--gutter); }
  /* label first; each photo shows under its own description instead of one photo above the list */
  .why__media { display: none; }
  .why__a > p { max-width: none; }
  .why__inline { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 8px; margin-top: 16px; }

  /* address on two lines, no commas */
  .addr__comma { display: none; }
  .addr__l2 { display: block; }

  .local { padding-top: 16svh; }
  .local__serving { flex-wrap: wrap; gap: 14px; }
  .local__big { font-size: 34vw; margin-top: 10svh; }
  .local__map { width: 84vw; margin-top: -20vw; margin-bottom: calc(86vw * .75 + 330px - 42vw); }
  .local__maps2 { position: relative; left: auto; top: auto; width: min(240px, 70vw); margin: 18px auto 0; }
  .contact { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; gap: 20px; margin-top: 12svh; }
  .form { grid-template-columns: 1fr; }
  .foot { flex-direction: column; padding-bottom: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ───────── Spanish page only (site/es/): room for longer words ───────── */
@media (min-width: 821px) {
  html[lang="es"] .hero__lede { width: min(370px, 40vw); }
}
/* "Teléfono o correo electrónico" wraps to two lines: keep the side-by-side fields level */
html[lang="es"] .form > label { align-self: end; }
/* the longer Spanish menu meets the logo below ~1060px: use the phone-style top bar there (English switches at 899px) */
@media (min-width: 821px) and (max-width: 1060px) {
  html[lang="es"] .nav__links, html[lang="es"] .nav__contact a:last-child { display: none; }
  html[lang="es"] .nav__logo { grid-column: 2; }
  html[lang="es"] .nav__contact { grid-column: 3; }
}
/* phones: "Fresca" + "Limpia" are wider than "Fresh" + "Clean"; a touch smaller keeps a gap between them */
@media (max-width: 820px) {
  html[lang="es"] .story__word { font-size: min(44px, 11.6vw); }
}
