/* ===== src/css/00-tokens.css ===== */
/* ==========================================================================
   PaperBae v2 — design tokens (see DESIGN.md)
   Three layers: primitives → semantic → component. Sections only use semantic tokens.
   ========================================================================== */
:root {
  /* primitives: the brand palette */
  --sky-900: #0b1c4a;
  --sky-700: #14327e;
  --blue: #2b5fd0;
  --sky-500: #3f73e0;
  --sky-300: #7aa2f2;
  --sky-100: #d7e5fb;
  --cloud: #f6f9ff;
  --butter: #f4cf35;
  --butter-600: #d9b21c;
  --tangerine: #e9532c;
  --ink: #0c1838;

  /* semantic: surfaces and text */
  --canvas: var(--blue);
  --text: var(--cloud);
  --text-soft: rgba(246, 249, 255, 0.78);
  --text-faint: rgba(246, 249, 255, 0.56);
  --ink-soft: rgba(12, 24, 56, 0.68);
  --ink-faint: rgba(12, 24, 56, 0.46);
  --accent: var(--butter);
  --accent-ink: var(--sky-900);
  --line: rgba(246, 249, 255, 0.22);
  --line-strong: rgba(246, 249, 255, 0.4);
  --line-ink: rgba(12, 24, 56, 0.12);
  --success: #1a8a4a;
  --danger: #c2342f;

  /* glass materials */
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-bg-hover: rgba(255, 255, 255, 0.18);
  --glass-edge: rgba(255, 255, 255, 0.34);
  --glass-highlight: rgba(255, 255, 255, 0.45);
  --glass-blur: 22px;
  --paper-bg: rgba(246, 249, 255, 0.88);
  --paper-edge: rgba(255, 255, 255, 0.7);
  --shadow-tint: 8, 20, 60;
  --shadow-lg: 0 24px 60px -28px rgba(var(--shadow-tint), 0.55);
  --shadow-md: 0 14px 36px -18px rgba(var(--shadow-tint), 0.45);
  --shadow-sm: 0 6px 18px -10px rgba(var(--shadow-tint), 0.4);

  /* type */
  --f-display: "Cabinet Grotesk", "Satoshi", system-ui, sans-serif;
  --f-body: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-display: clamp(2.4rem, 5.5vw, 5.4rem);
  --fs-h2: clamp(2rem, 4.2vw, 3.6rem);
  --fs-h3: clamp(1.35rem, 2vw, 1.75rem);
  --fs-lede: clamp(1.05rem, 1.35vw, 1.2rem);
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-micro: 12.5px;

  /* spacing / shape */
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(72px, 9vw, 128px);
  --section-sm: clamp(48px, 6vw, 80px);
  --container: 1180px;
  --r-pill: 999px;
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 16px;
  --r-sm: 12px;
  --bezel: 6px;             /* outer shell padding of a double-bezel panel */
  --nav-h: 64px;

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --dur-fast: 0.28s;
  --dur: 0.55s;
  --dur-slow: 0.9s;

  /* z-index scale (the only z values used anywhere) */
  --z-sky: -1;
  --z-mbar: 90;
  --z-nav: 100;
  --z-menu: 140;
  --z-sheet: 150;
  --z-toast: 155;
  --z-cart: 160;
  --z-veil: 300;
  --z-flyer: 400;

  color-scheme: light;
  accent-color: var(--butter);
}

/* A deeper sky for people who prefer dark interfaces: same brand, more night. */
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #1b3f98;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --paper-bg: rgba(246, 249, 255, 0.9);
  }
}

/* phone: tighter rhythm */
@media (max-width: 767px) {
  :root {
    --fs-body: 16px;
    --nav-h: 58px;
    --r-xl: 22px;
    --r-lg: 16px;
  }
}


/* ===== src/css/01-base.css ===== */
/* ==========================================================================
   Base: fonts, reset, the sky environment, type helpers, layout primitives
   ========================================================================== */
@font-face { font-family: 'Cabinet Grotesk'; src: url('/assets/fonts/cabinet-grotesk-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cabinet Grotesk'; src: url('/assets/fonts/cabinet-grotesk-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cabinet Grotesk'; src: url('/assets/fonts/cabinet-grotesk-800.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/assets/fonts/satoshi-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/assets/fonts/satoshi-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/assets/fonts/satoshi-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; scroll-padding-top: calc(var(--nav-h) + 24px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; overflow-x: clip;
}
body.is-locked { overflow: hidden; }
body.is-paused *, body.is-paused *::before, body.is-paused *::after { animation-play-state: paused !important; }

img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
main { position: relative; display: block; }
main:focus { outline: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong, b { font-weight: 700; }
s { text-decoration-thickness: 1.5px; }

:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--butter); color: var(--sky-900); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: fixed; left: 16px; top: -64px; z-index: var(--z-veil);
  background: var(--sky-900); color: var(--cloud); padding: 10px 16px; border-radius: var(--r-pill);
  text-decoration: none; font-weight: 700; transition: top var(--dur-fast) var(--ease-out);
}
.skip:focus { top: 16px; }

/* ---------- The sky: one fixed environment behind everything ---------- */
.sky {
  position: fixed; inset: 0; z-index: var(--z-sky); pointer-events: none; overflow: hidden;
  background:
    radial-gradient(90% 70% at 15% 10%, rgba(122, 162, 242, 0.55) 0%, rgba(122, 162, 242, 0) 60%),
    radial-gradient(70% 60% at 85% 85%, rgba(20, 50, 126, 0.75) 0%, rgba(20, 50, 126, 0) 65%),
    linear-gradient(180deg, var(--sky-700) 0%, var(--canvas) 38%, #3b6fdc 100%);
}
.sky__cloud {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; will-change: transform;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
  animation: drift 90s var(--ease-spring) infinite alternate;
}
.sky__cloud--a { width: 60vw; height: 60vw; left: -18vw; top: -22vw; animation-delay: -30s; }
.sky__cloud--b { width: 48vw; height: 48vw; right: -14vw; top: 30vh; animation-delay: -62s; animation-duration: 110s; opacity: 0.4; }
.sky__cloud--c { width: 38vw; height: 38vw; left: 28vw; bottom: -20vw; animation-delay: -15s; animation-duration: 75s; opacity: 0.3; }
.sky__grain {
  position: absolute; inset: 0; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vw, 4vh, 0) scale(1.08); } }

/* ---------- Layout primitives ---------- */
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--sm { padding-block: var(--section-sm); }
.section__head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.section__head--split .lede { max-width: 44ch; }

/* ---------- Type ---------- */
.h-display, .h-xl {
  font-family: var(--f-display); font-weight: 800;
  font-size: var(--fs-display); line-height: 0.95; letter-spacing: -0.03em; text-wrap: balance;
}
.h-lg, .h-2 { font-family: var(--f-display); font-weight: 800; font-size: var(--fs-h2); line-height: 1; letter-spacing: -0.03em; text-wrap: balance; }
.h-md, .h-3 { font-family: var(--f-display); font-weight: 800; font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -0.02em; }
.lede { font-size: var(--fs-lede); color: var(--text-soft); max-width: 52ch; text-wrap: pretty; margin-top: 14px; }
.kicker { font-weight: 700; font-size: var(--fs-small); letter-spacing: 0.01em; color: var(--text-soft); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--butter); }
.num { font-variant-numeric: tabular-nums; }
.on-paper { color: var(--ink); }
.on-paper .lede, .on-paper .kicker { color: var(--ink-soft); }
.hl { color: var(--butter); }

/* Long-form reading (policies, contact) */
.prose { max-width: 68ch; font-size: 16.5px; line-height: 1.65; color: var(--ink); }
.prose h2 { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; margin: 36px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-weight: 700; font-size: 1.1rem; margin: 22px 0 6px; }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 4px 0; }
.prose a { color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { color: var(--sky-700); }
.prose .muted { color: var(--ink-soft); font-size: 14.5px; }

/* ---------- Media and images ---------- */
.media { position: relative; overflow: hidden; background: rgba(255, 255, 255, 0.08); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.img-fade { opacity: 0; transition: opacity 0.6s var(--ease-out); }
.img-fade.is-loaded, .no-js .img-fade { opacity: 1; }

/* ---------- Reduced motion: everything collapses to its final state ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .sky__cloud { animation: none; }
}


/* ===== src/css/02-glass.css ===== */
/* ==========================================================================
   Glass system. Two materials, one double-bezel construction.
   .glass          frost over sky or photos (white type)
   .glass--paper   reading / buying surfaces (ink type)
   .glass--deep    denser frost for text-heavy panels over busy imagery
   .bezel          the outer shell of a double-bezel panel (wrap a .glass inside)
   Every material has a solid fallback for no backdrop-filter and reduced transparency.
   ========================================================================== */
.glass {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  border-radius: var(--r-xl);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    inset 0 0 0 1px var(--glass-edge),
    var(--shadow-lg);
  color: var(--text);
}
.glass--deep { background: rgba(11, 28, 74, 0.38); --glass-edge: rgba(255, 255, 255, 0.26); --glass-highlight: rgba(255, 255, 255, 0.3); }
.glass--paper {
  background: var(--paper-bg);
  color: var(--ink);
  --glass-edge: var(--paper-edge);
  --glass-highlight: rgba(255, 255, 255, 0.95);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    inset 0 0 0 1px var(--glass-edge),
    var(--shadow-lg);
}
.glass--sm { border-radius: var(--r-lg); box-shadow: inset 0 1px 0 var(--glass-highlight), inset 0 0 0 1px var(--glass-edge), var(--shadow-md); }
.glass--pill { border-radius: var(--r-pill); }
.glass--flat { box-shadow: inset 0 1px 0 var(--glass-highlight), inset 0 0 0 1px var(--glass-edge); }

/* the sheen: a soft light caught on the top-left of the glass, like a cloud lit from above */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background:
    radial-gradient(120% 70% at 12% -10%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 45%);
}
.glass--paper::before { background: radial-gradient(120% 70% at 12% -10%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 55%); }
.glass > * { position: relative; z-index: 1; }

/* Double bezel: outer tray + inner core, concentric radii */
.bezel {
  padding: var(--bezel);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.bezel > .glass, .bezel > .media, .bezel > img, .bezel > video { border-radius: calc(var(--r-xl) - var(--bezel)); }
.bezel--paper { background: rgba(255, 255, 255, 0.3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }

/* Interactive glass: lift, brighten, tilt (JS sets --rx/--ry on fine pointers) */
.glass--interactive {
  transition: transform var(--dur) var(--ease-spring), background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out);
  transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateY(var(--lift, 0px));
  will-change: transform;
}
.glass--interactive:hover { --lift: -4px; background: var(--glass-bg-hover); }
.glass--paper.glass--interactive:hover { background: rgba(246, 249, 255, 0.95); }

/* Scrim for text over photos (used inside media panels) */
.scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(8, 20, 60, 0) 40%, rgba(8, 20, 60, 0.7) 100%); }

/* Fallbacks */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(29, 69, 170, 0.92); }
  .glass--deep { background: rgba(11, 28, 74, 0.94); }
  .glass--paper { background: #f6f9ff; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: rgba(29, 69, 170, 0.96); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .glass--deep { background: rgba(11, 28, 74, 0.97); }
  .glass--paper { background: #f6f9ff; }
}
@media (prefers-reduced-motion: reduce) {
  .glass--interactive { transform: none !important; }
}


/* ===== src/css/03-components.css ===== */
/* ==========================================================================
   Components: buttons, icon buttons, chips, steppers, meters, forms, skeletons,
   progress bar, veil, toast, tabs. Shared by every section and page.
   ========================================================================== */

/* ---------- Buttons ----------
   .btn            base pill
   .btn--primary   butter (THE accent) — primary action on any surface
   .btn--glass     frosted, white type (on sky / photos)
   .btn--paper     solid cloud, ink type (on sky when a light button is needed)
   .btn--ink       solid deep sky, cloud type (on paper surfaces)
   .btn--ghost     hairline only (secondary, on sky)
   .btn--sm / .btn--block / .btn--icon
   Hover never changes the text colour's contrast class: fills shift one step, never to white-on-white. */
.btn {
  --h: 52px; --pad: 24px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 var(--pad);
  border-radius: var(--r-pill);
  font-family: var(--f-body); font-weight: 700; font-size: 15.5px; letter-spacing: -0.005em; line-height: 1.1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform var(--dur) var(--ease-spring), background-color var(--dur-fast) var(--ease-out), color var(--dur-fast), box-shadow var(--dur) var(--ease-out);
  transform: translate(var(--mx, 0px), var(--my, 0px));
}
.btn:active { transform: translate(var(--mx, 0px), var(--my, 0px)) scale(0.97); }
.btn--sm { --h: 42px; --pad: 16px; font-size: 14.5px; }
.btn--lg { --h: 58px; --pad: 28px; font-size: 16.5px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

.btn--primary { background: var(--butter); color: var(--sky-900); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, var(--shadow-sm); }
.btn--primary:hover { background: #ffd94a; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 12px 30px -12px rgba(244, 207, 53, 0.6); }
.btn--glass { background: rgba(255, 255, 255, 0.14); color: var(--cloud); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn--glass:hover { background: rgba(255, 255, 255, 0.24); }
.btn--paper { background: var(--cloud); color: var(--sky-900); box-shadow: var(--shadow-sm); }
.btn--paper:hover { background: #ffffff; }
.btn--ink { background: var(--sky-900); color: var(--cloud); }
.btn--ink:hover { background: var(--sky-700); }
.btn--ghost { color: var(--cloud); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }
.on-paper .btn--ghost, .glass--paper .btn--ghost { color: var(--sky-900); box-shadow: inset 0 0 0 1.5px rgba(12, 24, 56, 0.25); }
.on-paper .btn--ghost:hover, .glass--paper .btn--ghost:hover { background: rgba(12, 24, 56, 0.06); }

/* button-in-button trailing icon */
.btn__ico {
  display: grid; place-items: center; width: 30px; height: 30px; margin: 0 calc(-1 * (var(--pad) - 11px)) 0 2px;
  border-radius: 50%; background: rgba(12, 24, 56, 0.1); flex: none;
  transition: transform var(--dur) var(--ease-spring), background-color var(--dur-fast);
}
.btn__ico svg { width: 14px; height: 14px; }
.btn--glass .btn__ico, .btn--ink .btn__ico, .btn--ghost .btn__ico { background: rgba(255, 255, 255, 0.16); }
.btn:hover .btn__ico { transform: translate(2px, -1px) scale(1.06); }
.btn--sm .btn__ico { width: 26px; height: 26px; margin-right: calc(-1 * (var(--pad) - 8px)); }

/* busy + success states (add to cart) */
.btn .btn__label { transition: opacity var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.btn .btn__state { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: translateY(8px); transition: opacity var(--dur-fast), transform var(--dur) var(--ease-spring); }
.btn.is-busy .btn__label, .btn.is-done .btn__label { opacity: 0; transform: translateY(-8px); }
.btn.is-busy .btn__state--busy, .btn.is-done .btn__state--done { opacity: 1; transform: none; }
.btn.is-busy { pointer-events: none; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* icon button */
.ibtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, 0.14); color: var(--cloud);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: background-color var(--dur-fast), transform var(--dur) var(--ease-spring);
}
.ibtn:hover { background: rgba(255, 255, 255, 0.26); }
.ibtn:active { transform: scale(0.94); }
.ibtn svg { width: 20px; height: 20px; }
.ibtn--paper { background: var(--cloud); color: var(--sky-900); box-shadow: var(--shadow-sm); }
.ibtn--paper:hover { background: #fff; }
.ibtn--ink { background: var(--sky-900); color: var(--cloud); box-shadow: none; }
.ibtn--ink:hover { background: var(--sky-700); }

/* text link with drawn underline */
.linkbtn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px;
  font-weight: 700; font-size: 14.5px; text-decoration: none; position: relative; color: inherit;
}
.linkbtn::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 10px; height: 1.5px; background: currentColor; transform-origin: left; transform: scaleX(0.35); opacity: 0.6; transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast); }
.linkbtn:hover::after { transform: scaleX(1); opacity: 1; }

/* ---------- Chips, tags, badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px;
  border-radius: var(--r-pill); font-weight: 700; font-size: 13px; line-height: 1;
  background: rgba(255, 255, 255, 0.14); color: var(--cloud);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}
.chip--accent { background: var(--butter); color: var(--sky-900); box-shadow: none; }
.chip--paper { background: rgba(12, 24, 56, 0.06); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(12, 24, 56, 0.14); }
.chip--quiet { background: transparent; }
.badge { min-width: 24px; height: 24px; padding: 0 7px; border-radius: var(--r-pill); display: inline-grid; place-items: center; background: var(--butter); color: var(--sky-900); font-weight: 800; font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* ---------- Price ---------- */
.price { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price s { font-family: var(--f-body); font-weight: 500; font-size: 0.6em; opacity: 0.65; margin-left: 0.3em; letter-spacing: 0; }

/* ---------- Quantity stepper ---------- */
.qty {
  display: inline-grid; grid-template-columns: 44px 1fr 44px; align-items: center;
  height: 44px; min-width: 132px; border-radius: var(--r-pill);
  background: var(--cloud); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-ink);
}
.qty button { height: 44px; font-size: 20px; font-weight: 500; border-radius: var(--r-pill); transition: background-color var(--dur-fast), transform var(--dur-fast) var(--ease-spring); }
.qty button:hover { background: rgba(12, 24, 56, 0.06); }
.qty button:active { transform: scale(0.9); }
.qty output { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.qty output.is-bump { animation: bump var(--dur) var(--ease-spring); }
.qty--sm { height: 38px; min-width: 112px; grid-template-columns: 38px 1fr 38px; }
.qty--sm button { height: 38px; }
.qty--glass { background: rgba(255, 255, 255, 0.14); color: var(--cloud); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.qty--glass button:hover { background: rgba(255, 255, 255, 0.14); }
@keyframes bump { 30% { transform: scale(1.25); } 60% { transform: scale(0.94); } }
.is-bump { animation: bump var(--dur) var(--ease-spring); }

/* ---------- Discount meter ---------- */
.meter { position: relative; height: 8px; border-radius: 8px; background: rgba(12, 24, 56, 0.1); }
.meter > span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--blue), var(--sky-300)); transition: width 0.7s var(--ease-out); }
.meter > i { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--cloud); box-shadow: 0 0 0 2px var(--sky-100); }
.meter > i:last-child { transform: translate(-100%, -50%); }
.meter--glass { background: rgba(255, 255, 255, 0.2); }
.meter--glass > span { background: var(--butter); }

/* ---------- Forms (label above, helper and error below) ---------- */
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 14.5px; }
.field .hint { font-size: 13px; color: var(--ink-soft); }
.field .error { font-size: 13px; color: var(--danger); font-weight: 600; display: none; }
.field.is-invalid .error { display: block; }
.input {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--r-md);
  background: #fff; color: var(--ink); border: 1.5px solid rgba(12, 24, 56, 0.16);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.input::placeholder { color: rgba(12, 24, 56, 0.5); }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(43, 95, 208, 0.18); }
.field.is-invalid .input { border-color: var(--danger); }
textarea.input { min-height: 140px; resize: vertical; }

/* ---------- Loading: skeleton shimmer ---------- */
.skeleton { position: relative; overflow: hidden; background: rgba(255, 255, 255, 0.12); border-radius: var(--r-md); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent); animation: shimmer 1.4s var(--ease-out) infinite; }
.on-paper .skeleton, .glass--paper .skeleton { background: rgba(12, 24, 56, 0.07); }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- Page loading bar + transition veil ---------- */
.pbar { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: var(--z-veil); pointer-events: none; }
.pbar span { display: block; height: 100%; width: 0; background: var(--butter); border-radius: 0 3px 3px 0; transition: width 0.3s var(--ease-out), opacity 0.4s; opacity: 0; box-shadow: 0 0 12px rgba(244, 207, 53, 0.8); }
.pbar.is-on span { opacity: 1; }
.veil {
  position: fixed; inset: 0; z-index: var(--z-veil); pointer-events: none;
  background: rgba(43, 95, 208, 0.55); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  clip-path: inset(100% 0 0 0); opacity: 0;
}
.veil.is-active { pointer-events: auto; }

/* ---------- Toast ----------
   Rises at the bottom centre, clear of the nav and of the shop's product tabs (where it used to land), and
   steps over whatever else is docked down there: the product page's buy bar, a reel's shop card. On phones it
   is a snackbar in the cart bar's own place (just above it, it covered the pinned shop's Add to cart, and a tap
   on it fell through to that button): the bar stands for the cart, so for two seconds the cart answers, and a
   tap goes through to View cart. With the cart open it rides above the drawer's dimmed page: beside the
   drawer, or in the top strip the phone sheet leaves free. Siblings in overlays.html: #story, #cart, #toast. */
.toast {
  position: fixed; z-index: var(--z-toast); left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 16px);
  display: flex; align-items: center; gap: 10px; max-width: calc(100% - 24px); width: max-content;
  padding: 12px 18px; border-radius: var(--r-pill);
  background: var(--sky-900); color: var(--cloud); font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  opacity: 0; pointer-events: none; transition: opacity var(--dur-fast), transform var(--dur) var(--ease-spring);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast .badge { background: var(--butter); flex: none; }
body:has(.pdp__dock.is-on) .cart:not(.is-open) ~ .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
.story:not([hidden]) ~ .toast { bottom: calc((100dvh - min(92dvh, 860px)) / 2 + 106px); }
.cart.is-open ~ .toast { z-index: calc(var(--z-cart) + 1); left: calc((100% - min(440px, 100% - 24px) - 12px) / 2); }
/* tablets: the pinned shop's buy card reaches the bottom centre (its Details link sat under the toast), so the
   toast keeps to the right half, over the pack; over a reel it stays centred on the frame */
@media (min-width: 768px) and (max-width: 1023px) {
  .toast { left: 75%; }
  .story:not([hidden]) ~ .toast { left: 50%; }
}
@media (max-width: 767px) {
  .toast { left: 12px; right: 12px; width: auto; max-width: none; min-height: 58px; justify-content: center; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateY(16px); }
  .toast.is-on, .cart.is-open ~ .toast.is-on { transform: none; }
  /* with the cart bar showing, the product page's buy bar rides above it, so the snackbar keeps the bar's place */
  body:has(.mbar.is-on):has(.pdp__dock.is-on) .cart:not(.is-open) ~ .toast { bottom: calc(12px + env(safe-area-inset-bottom)); }
  .story:not([hidden]) ~ .toast { bottom: calc(106px + env(safe-area-inset-bottom)); }
  .cart.is-open ~ .toast { left: 12px; top: calc(12px + env(safe-area-inset-top)); bottom: auto; min-height: 52px; transform: translateY(-16px); }
}
/* over a reel, 12px above the reel's shop card wherever it actually ends up (its product name wraps to two lines
   under 375px and the card grows from 81 to 98px); the fixed lifts above stay for browsers without anchors */
@media (max-width: 374px) { .story:not([hidden]) ~ .toast { bottom: calc(124px + env(safe-area-inset-bottom)); } }
@supports (anchor-name: --a) {
  .story:not([hidden]) ~ .toast { position-anchor: --story-shop; bottom: calc(anchor(top) + 12px); }
}

/* ---------- Segmented tabs (glass pill with gliding thumb) ---------- */
.seg { position: relative; display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.seg__thumb { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: var(--r-pill); background: var(--cloud); transition: transform var(--dur) var(--ease-spring), width var(--dur) var(--ease-spring); }
.seg button, .seg a { position: relative; z-index: 1; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); font-weight: 700; font-size: 14px; color: var(--cloud); transition: color var(--dur-fast); text-decoration: none; display: inline-flex; align-items: center; }
.seg button.is-active, .seg a.is-active, .seg [aria-selected="true"] { color: var(--sky-900); }

/* ---------- Fly-to-cart clone ---------- */
.flyer { position: fixed; z-index: var(--z-flyer); pointer-events: none; width: 90px; height: auto; filter: drop-shadow(0 14px 20px rgba(8, 20, 60, 0.35)); }

/* ---------- Reveal (use sparingly: only where a sequence benefits) ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in, .no-js .reveal { opacity: 1; transform: none; transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }


/* ===== src/css/04-nav.css ===== */
/* ==========================================================================
   Navigation: floating glass island (desktop), compact island + full-screen
   glass menu (phones), persistent across AJAX page loads.
   ========================================================================== */
.nav {
  position: fixed; z-index: var(--z-nav);
  top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1120px, calc(100% - 24px));
  height: var(--nav-h);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 0 8px 0 18px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.32), var(--shadow-md);
  transition: transform var(--dur) var(--ease-spring), width var(--dur) var(--ease-spring), background-color var(--dur-fast), box-shadow var(--dur);
}
.nav.is-hidden { transform: translate(-50%, calc(-100% - 20px)); }
.nav.is-compact { width: min(820px, calc(100% - 24px)); }
/* with the menu open the island hands its glass to the sheet below it, so the two read as one panel; taking it
   back as the sheet goes is instant (.is-handback, core/30-ui.js), or the island showed bare for 0.2s */
.nav.is-menu { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav.is-handback { transition: none; }
.nav__logo { display: inline-flex; align-items: center; min-height: 44px; }
.nav__logo img { width: 112px; height: auto; }
.nav__links { display: flex; justify-content: center; gap: 2px; }
.nav__links a {
  position: relative; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--cloud);
  padding: 10px 14px; border-radius: var(--r-pill); min-height: 44px; display: inline-flex; align-items: center;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.nav__links a:hover { background: rgba(255, 255, 255, 0.14); }
/* "you are here": the current page (router, aria-current="page") or, on the home page, the section in view
   (core/35-nav.js, .is-active). A butter underline draws out from the middle; the weight stays put, so the
   links never shift sideways as the highlight moves down the page. */
.nav__links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 7px; height: 2px; border-radius: 2px; background: var(--butter); transform: scaleX(0); transition: transform var(--dur) var(--ease-out); }
.nav__links a[aria-current="page"]::after, .nav__links a.is-active::after { transform: none; }
.nav__tools { display: flex; align-items: center; gap: 6px; }
.nav__cart {
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 6px 0 16px; border-radius: var(--r-pill);
  background: var(--sky-900); color: var(--cloud); font-weight: 700; font-size: 15px;
  transition: transform var(--dur) var(--ease-spring), background-color var(--dur-fast);
}
.nav__cart:hover { background: var(--sky-700); }
.nav__cart.is-bump { animation: bump 0.6s var(--ease-spring); }
.nav__cart svg { width: 20px; height: 20px; }
.nav__count { min-width: 30px; height: 30px; padding: 0 8px; border-radius: var(--r-pill); display: grid; place-items: center; background: var(--butter); color: var(--sky-900); font-size: 14px; font-variant-numeric: tabular-nums; }

/* ---------- burger: the middle line rests short and fills out on hover; opening, the lines first
   squeeze together, then turn into an X (and unwind the same way). The keyframes only run once the
   button has been used (.has-played), so nothing plays on page load. ---------- */
.burger { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; transition: transform var(--dur) var(--ease-spring), background-color var(--dur-fast); }
.burger:hover { background: rgba(255, 255, 255, 0.12); }
.burger:active { transform: scale(0.92); }
.burger span { position: absolute; left: 13px; width: 18px; height: 2px; border-radius: 2px; background: var(--cloud); transform-origin: 50% 50%; transition: transform var(--dur) var(--ease-spring); }
.burger span:nth-child(1) { transform: translateY(-6px); }
.burger span:nth-child(2) { transform: scaleX(0.62) translateX(-5.5px); }
.burger span:nth-child(3) { transform: translateY(6px); }
.burger:hover span:nth-child(2) { transform: none; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: scaleX(0); opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }
.burger.has-played[aria-expanded="true"] span:nth-child(1) { animation: burger-top-x 0.56s var(--ease-out) both; }
.burger.has-played[aria-expanded="true"] span:nth-child(2) { animation: burger-mid-x 0.56s var(--ease-out) both; }
.burger.has-played[aria-expanded="true"] span:nth-child(3) { animation: burger-bot-x 0.56s var(--ease-out) both; }
/* unwinding fills backwards only: its last frame equals the resting state, and a fill that held it would outrank
   :hover, so the middle line stopped filling out on hover after the first open and close */
.burger.has-played[aria-expanded="false"] span:nth-child(1) { animation: burger-top-back 0.56s var(--ease-out) backwards; }
.burger.has-played[aria-expanded="false"] span:nth-child(2) { animation: burger-mid-back 0.56s var(--ease-out) backwards; }
.burger.has-played[aria-expanded="false"] span:nth-child(3) { animation: burger-bot-back 0.56s var(--ease-out) backwards; }
@keyframes burger-top-x { 0% { transform: translateY(-6px); } 42% { transform: translateY(0); } 100% { transform: rotate(45deg); } }
@keyframes burger-bot-x { 0% { transform: translateY(6px); } 42% { transform: translateY(0); } 100% { transform: rotate(-45deg); } }
@keyframes burger-mid-x { 0% { transform: scaleX(0.62) translateX(-5.5px); opacity: 1; } 42% { transform: scaleX(0); opacity: 0; } 100% { transform: scaleX(0); opacity: 0; } }
@keyframes burger-top-back { 0% { transform: rotate(45deg); } 52% { transform: translateY(0); } 100% { transform: translateY(-6px); } }
@keyframes burger-bot-back { 0% { transform: rotate(-45deg); } 52% { transform: translateY(0); } 100% { transform: translateY(6px); } }
@keyframes burger-mid-back { 0% { transform: scaleX(0); opacity: 0; } 52% { transform: scaleX(0); opacity: 0; } 100% { transform: scaleX(0.62) translateX(-5.5px); opacity: 1; } }
/* the burger is for phones and tablets only (shown again under 900px below); this comes after .burger,
   whose display: grid used to win and put a second way into the menu beside the desktop links */
.nav__menu { display: none; }

/* ---------- menu: "just hang & pull". The nav island grows down into one frosted sheet, pulled from under
   the island with a small tug at the end, over a dimmed page (a tap on it closes the menu). Links rise
   through masks, then the three packs, then contact. Closing retracts it faster than it opened. ---------- */
/* closing, the menu stays visible (.is-closing, core/30-ui.js) while the sheet retracts, and is hidden in the same
   frame as the island takes its glass back; data-lenis-prevent on the sheet lets it scroll while Lenis holds the page */
.menu { position: fixed; inset: 0; z-index: var(--z-menu); visibility: hidden; pointer-events: none; }
.menu.is-open, .menu.is-closing { visibility: visible; }
.menu.is-open { pointer-events: auto; }
.menu__scrim { position: absolute; inset: 0; background: rgba(6, 16, 44, 0.5); opacity: 0; transition: opacity 0.4s var(--ease-out); }
.menu.is-open .menu__scrim { opacity: 1; transition-duration: 0.5s; }
.menu__sheet {
  position: absolute; top: 14px; left: 50%; width: min(1120px, calc(100% - 24px));
  max-height: calc(100svh - 28px); overflow-y: auto; overscroll-behavior: contain;
  display: grid; align-content: start; gap: clamp(22px, 4vh, 34px);
  /* side padding = the island's own (14px at these widths), so logo, links, packs and contact share one edge */
  padding: calc(var(--nav-h) + clamp(18px, 3.4vh, 32px)) 14px clamp(16px, 3vh, 24px);
  border-radius: calc(var(--nav-h) / 2 + 6px);
  background: rgba(11, 28, 74, 0.7);
  -webkit-backdrop-filter: blur(28px) saturate(1.5); backdrop-filter: blur(28px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 34px 80px -24px rgba(4, 12, 36, 0.65);
  transform: translate(-50%, calc(-100% + var(--nav-h)));
  /* closing: the contents fade first (0.16s), then the sheet pulls back up under the island */
  transition: transform 0.42s cubic-bezier(0.55, 0, 0.75, 0.2) 0.14s;
}
.menu.is-open .menu__sheet { transform: translate(-50%, 0); transition: transform 0.78s cubic-bezier(0.2, 1.12, 0.32, 1); }
.menu__links, .menu__packs, .menu__foot { transition: opacity 0.16s var(--ease-out); }
.menu:not(.is-open) .menu__links, .menu:not(.is-open) .menu__packs, .menu:not(.is-open) .menu__foot { opacity: 0; }

/* links: each word rises through its own mask; on fine pointers the others step back */
.menu__links { display: grid; }
.menu__links a {
  display: block; overflow: hidden; padding: 6px 0; text-decoration: none; color: var(--cloud);
  font-family: var(--f-display); font-weight: 800; font-size: clamp(2.05rem, 8.4vw, 3.3rem); line-height: 1.04; letter-spacing: -0.035em;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.menu__in { display: flex; align-items: baseline; gap: 12px; transform: translateY(108%); transition: transform 0.32s var(--ease-in); }
.menu__in small { font-family: var(--f-body); font-weight: 500; font-size: 14px; letter-spacing: 0; color: var(--text-soft); }
.menu.is-open .menu__in { transform: none; transition: transform 0.9s var(--ease-out); transition-delay: calc(0.18s + var(--i, 0) * 0.055s); }
.menu__links a:nth-child(2) { --i: 1; } .menu__links a:nth-child(3) { --i: 2; } .menu__links a:nth-child(4) { --i: 3; }
.menu__links a:nth-child(5) { --i: 4; } .menu__links a:nth-child(6) { --i: 5; }
@media (hover: hover) and (pointer: fine) {
  .menu__in { transition-property: transform; }
  .menu__links:hover a:not(:hover) { opacity: 0.45; }
  .menu__links a:hover .menu__in { transform: translateX(10px); transition: transform var(--dur) var(--ease-spring); }
}
.menu__links a:focus-visible { outline-offset: -2px; border-radius: 12px; }

/* the three packs: a quick way into each product page, prices from the store */
.menu__packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.menu__pack {
  display: grid; justify-items: center; gap: 6px; height: 100%; padding: 12px 8px 12px; border-radius: var(--r-lg);
  text-decoration: none; color: var(--cloud); text-align: center;
  background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), background-color var(--dur-fast);
}
.menu__pack img { height: clamp(58px, 9vh, 82px); width: auto; filter: drop-shadow(0 10px 14px rgba(4, 12, 36, 0.45)); transition: transform var(--dur) var(--ease-spring); }
.menu__pack b { font-weight: 700; font-size: 13.5px; line-height: 1.2; }
.menu__pack .num { font-size: 13px; color: var(--butter); font-weight: 700; }
.menu__pack:hover { background: rgba(255, 255, 255, 0.13); }
.menu__pack:hover img { transform: translateY(-4px) rotate(-3deg); }
.menu.is-open .menu__pack { opacity: 1; transform: none; transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out), background-color var(--dur-fast); transition-delay: calc(0.5s + var(--i, 0) * 0.06s); }
.menu__packs li:nth-child(2) .menu__pack { --i: 1; } .menu__packs li:nth-child(3) .menu__pack { --i: 2; }

.menu__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.menu.is-open .menu__foot { opacity: 1; transition: opacity 0.6s var(--ease-out) 0.66s; }
.menu:not(.is-open) .menu__foot { transition-delay: 0s; }
.menu__mail { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-soft); font-weight: 500; font-size: 15px; text-decoration: none; }
.menu__mail:hover { color: var(--cloud); text-decoration: underline; text-underline-offset: 3px; }
.menu__social { display: flex; gap: 10px; }

@media (max-width: 767px) { .menu__sheet { top: 10px; } }
@media (max-height: 640px) { .menu__packs { display: none; } }
/* reduced motion: the sheet and its contents simply fade; nothing slides */
@media (prefers-reduced-motion: reduce) {
  .menu__sheet, .menu.is-open .menu__sheet { transform: translate(-50%, 0); opacity: 0; transition: opacity 0.2s; }
  .menu.is-open .menu__sheet { opacity: 1; }
  .menu__in, .menu.is-open .menu__in, .menu__pack, .menu.is-open .menu__pack { transform: none; transition: none; opacity: 1; }
  .burger span, .burger.has-played span { animation: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .menu__sheet { background: rgba(11, 28, 74, 0.97); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (max-width: 900px) {
  .nav { grid-template-columns: auto 1fr auto; padding-left: 14px; }
  .nav__links { display: none; }
  .nav__menu { display: inline-grid; }
  .nav__cart-label { display: none; }
  .nav__cart { height: 44px; padding: 0 5px 0 12px; }
  .nav__count { min-width: 28px; height: 28px; font-size: 13px; }
}
@media (max-width: 767px) {
  .nav { top: 10px; }
  .nav__logo img { width: 98px; }
}

/* mobile sticky cart bar. Parked below the screen it is also hidden (after its slide out), so an empty cart
   leaves no invisible "Open cart" stop at the end of the Tab order. */
.mbar {
  position: fixed; z-index: var(--z-mbar); left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: none; align-items: center; gap: 12px;
  height: 58px; padding: 0 8px 0 20px; border-radius: var(--r-pill);
  background: var(--sky-900); color: var(--cloud);
  box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  visibility: hidden;
  transform: translateY(140%); transition: transform var(--dur) var(--ease-spring), visibility 0s linear var(--dur);
}
.mbar.is-on { transform: none; visibility: visible; transition: transform var(--dur) var(--ease-spring); }
/* the open menu is modal: main and the footer go inert (core/30-ui.js), and the two controls outside them, the
   cart bar under the scrim and the skip link, leave the Tab order too (the bar once the scrim has faded in) */
.menu.is-open ~ .mbar { visibility: hidden; transition: visibility 0s linear 0.5s; }
body:has(.menu.is-open) .skip { visibility: hidden; }
.mbar__count { font-size: 14px; opacity: 0.8; }
.mbar__total { font-family: var(--f-display); font-weight: 800; font-size: 20px; margin-right: auto; font-variant-numeric: tabular-nums; }
.mbar__go { height: 44px; padding: 0 18px; border-radius: var(--r-pill); display: grid; place-items: center; background: var(--butter); color: var(--sky-900); font-weight: 700; font-size: 15px; }
@media (max-width: 767px) { .mbar { display: flex; } }


/* ===== src/css/05-overlays.css ===== */
/* ==========================================================================
   Overlays: cart drawer, product sheet, story player. All paper glass.
   ========================================================================== */

/* ---------- Cart drawer ----------
   A paper panel that is as tall as what is in it: head, tier meter, lines, the nudge directly under them,
   then the totals, so one pack never leaves a hole and an empty cart is a small card. Once it reaches the
   viewport's height the whole panel scrolls (every line stays whole and reachable) while the totals and
   Checkout stay pinned to its bottom edge; a shadow on that edge says there is more above it (.has-more,
   core/50-cart.js, which also keeps --cart-foot at the foot's height so scrolling a line into view clears it).
   data-lenis-prevent on the panel lets the wheel and touch scroll it while Lenis holds the page. */
.cart { position: fixed; inset: 0; z-index: var(--z-cart); pointer-events: none; }
.cart__backdrop { position: absolute; inset: 0; background: rgba(8, 16, 40, 0.45); opacity: 0; transition: opacity var(--dur) var(--ease-out); }
.cart__panel {
  position: absolute; right: 12px; top: 12px; width: min(440px, calc(100% - 24px)); max-height: calc(100% - 24px);
  display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  scroll-padding: 8px 0 calc(var(--cart-foot, 0px) + 8px);
  border-radius: var(--r-xl);
  transform: translateX(calc(100% + 24px)); transition: transform 0.7s var(--ease-spring);
}
.cart__panel > * { flex: none; }
.cart.is-open { pointer-events: auto; }
.cart.is-open .cart__backdrop { opacity: 1; }
.cart.is-open .cart__panel { transform: none; }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 16px 10px 24px; }
.cart__head h3 { font-family: var(--f-display); font-weight: 800; font-size: 28px; letter-spacing: -0.03em; }
.cart__tier { margin: 0 20px 8px; padding: 14px 16px; border-radius: var(--r-lg); background: rgba(43, 95, 208, 0.08); }
.cart__tier p { font-weight: 700; font-size: 14px; color: var(--sky-700); }
.cart__tier .meter { margin-top: 10px; }
.cart__lines { margin: 0; padding: 8px 20px; display: grid; align-content: start; gap: 10px; }
/* steppers and small buttons in the drawer keep a full 44px target */
.cline .qty--sm { height: 44px; min-width: 124px; grid-template-columns: 44px 1fr 44px; }
.cline .qty--sm button { height: 44px; }
.cart__panel .btn--sm { --h: 44px; }
.cline { display: grid; grid-template-columns: 68px 1fr auto; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line-ink); }
.cline__img { width: 68px; height: 68px; border-radius: var(--r-sm); background: rgba(43, 95, 208, 0.08); display: grid; place-items: center; overflow: hidden; }
.cline__img img { max-height: 60px; width: auto; }
.cline__name { font-weight: 700; font-size: 15px; line-height: 1.25; }
.cline__unit { font-size: 13px; color: var(--ink-soft); margin: 2px 0 8px; }
.cline__price { font-family: var(--f-display); font-weight: 800; font-size: 18px; align-self: start; font-variant-numeric: tabular-nums; }
.cart__empty { display: none; padding: 12px 24px calc(32px + env(safe-area-inset-bottom)); text-align: center; gap: 14px; justify-items: center; color: var(--ink-soft); }
.cart__empty img { height: 110px; width: auto; filter: drop-shadow(0 12px 16px rgba(8, 20, 60, 0.18)); }
.cart__empty p { max-width: 26ch; }
.cart.is-empty .cart__empty { display: grid; }
.cart.is-empty .cart__foot, .cart.is-empty .cart__upsell, .cart.is-empty .cart__tier, .cart.is-empty .cart__lines { display: none; }
.cart__upsell { padding: 4px 20px 12px; }
.cart__upsell:empty { display: none; }
.upsell { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line-ink); }
.upsell img { height: 48px; width: auto; }
.upsell p { flex: 1; font-size: 14px; line-height: 1.3; }
.upsell p b { display: block; }
.cart__foot {
  position: sticky; bottom: 0; z-index: 1;
  padding: 16px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-ink);
  background: var(--cloud); display: grid; gap: 8px;   /* solid: at 0.97 the lines scrolling under it still showed through */
  transition: box-shadow var(--dur-fast) var(--ease-out);
}
.cart__panel.has-more .cart__foot { box-shadow: 0 -16px 24px -14px rgba(8, 20, 60, 0.3); }
.cart__row { display: flex; justify-content: space-between; font-size: 15px; font-variant-numeric: tabular-nums; }
/* a deeper green than --success (3.95 to 4.12:1 on this foot at 15px), kept to this one row */
.cart__row--save { color: #13693a; font-weight: 700; }
.cart__row--total { font-family: var(--f-display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; margin: 4px 0 8px; }
.cart__eta { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 4px; }
.cart__eta svg { width: 18px; height: 18px; flex: none; color: var(--blue); }
.cart__eta b { color: var(--ink); }
.cart__note { font-size: 12.5px; color: var(--ink-soft); text-align: center; }
/* short screens (a small phone, a landscape laptop): the head, the tier card and the foot tighten so the lines
   get the room; the foot stays pinned, so Checkout never leaves the screen */
@media (max-height: 720px) {
  .cart__head { padding: 14px 14px 6px 20px; }
  .cart__head h3 { font-size: 24px; }
  .cart__tier { padding: 10px 14px; margin-bottom: 4px; }
  .cart__tier p { font-size: 13.5px; }
  .cart__tier .meter { margin-top: 8px; }
  .cart__foot { padding-top: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); gap: 6px; }
  .cart__row--total { font-size: 21px; margin: 2px 0 4px; }
  .cart__eta { font-size: 12.5px; margin-bottom: 0; }
  .cart__note { font-size: 12px; line-height: 1.35; }
  .cart__foot .btn--lg { --h: 50px; }
}
/* phones: a bottom sheet that always leaves the top strip of the screen uncovered, where the toast lands while
   the cart is open (03-components.css), so a toast never sits on the sheet's head or close button */
@media (max-width: 767px) {
  .cart__panel { right: 0; top: auto; bottom: 0; width: 100%; max-height: calc(100dvh - 76px - env(safe-area-inset-top)); border-radius: var(--r-xl) var(--r-xl) 0 0; transform: translateY(100%); }
}

/* ---------- Product sheet (dialog) ---------- */
.sheet { position: fixed; inset: 0; z-index: var(--z-sheet); display: grid; place-items: center; padding: 16px; }
.sheet[hidden] { display: none; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(8, 16, 40, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet__panel {
  position: relative; width: min(1000px, 100%); max-height: calc(100dvh - 32px); overflow: auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px;
  padding: 20px; border-radius: var(--r-xl);
  overscroll-behavior: contain;
}
.sheet__close { position: absolute; right: 14px; top: 14px; z-index: 2; }
.sheet__main { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1; background: #fff; }
.sheet__main img { width: 100%; height: 100%; object-fit: cover; }
.sheet__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.sheet__thumbs button { border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 1; opacity: 0.6; transition: opacity var(--dur-fast), transform var(--dur) var(--ease-spring); background: #fff; }
.sheet__thumbs button:hover { opacity: 0.9; }
.sheet__thumbs button.is-on { opacity: 1; outline: 2px solid var(--blue); outline-offset: 2px; }
.sheet__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.sheet__info { padding: 20px 8px 4px 0; display: flex; flex-direction: column; gap: 14px; }
.sheet__spec { font-weight: 700; color: var(--blue); font-size: 14px; }
.sheet__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 0.98; letter-spacing: -0.03em; }
.sheet__price { font-size: 28px; }
.sheet__points { display: grid; gap: 10px; margin: 4px 0; }
.sheet__points li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15px; }
.sheet__points li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: rgba(43, 95, 208, 0.1) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 12.5l4 4 8-9' fill='none' stroke='%232b5fd0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 14px no-repeat; }
.sheet__points b { display: block; }
.sheet__buy { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 12px; }
.sheet__buy .btn { flex: 1; }
.sheet__more { font-size: 14px; color: var(--ink-soft); }
.sheet__more a { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-weight: 700; }   /* a 44px row, still on the sentence's baseline */
@media (max-width: 900px) {
  .sheet { padding: 0; align-items: end; }
  .sheet__panel { grid-template-columns: 1fr; gap: 8px; padding: 14px; max-height: 94dvh; border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .sheet__info { padding: 8px 0 0; }
}

/* ---------- Story player (shoppable reels) ---------- */
.story { position: fixed; inset: 0; z-index: var(--z-sheet); display: grid; place-items: center; }
.story[hidden] { display: none; }
.story__backdrop { position: absolute; inset: 0; background: rgba(5, 10, 30, 0.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.story__frame { position: relative; height: min(92dvh, 860px); aspect-ratio: 9 / 16; max-width: 100vw; border-radius: var(--r-xl); overflow: hidden; background: #0b1c4a; color: var(--cloud); touch-action: pan-y; }
.story__frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.story__bars { position: absolute; left: 12px; right: 12px; top: 10px; z-index: 3; display: flex; gap: 4px; }
.story__bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.35); overflow: hidden; }
.story__bars i b { display: block; height: 100%; width: 0; background: var(--cloud); }
.story__top { position: absolute; left: 12px; right: 12px; top: 22px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.story__label { font-weight: 700; font-size: 14px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
.story__tools { display: flex; gap: 8px; }
.story__nav { position: absolute; top: 15%; bottom: 25%; z-index: 2; width: 35%; }
.story__nav--prev { left: 0; }
.story__nav--next { right: 0; }
.story__shop { anchor-name: --story-shop; position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-lg); }
.story__thumb img { width: 52px; height: 60px; object-fit: contain; }
.story__name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.story__price { font-size: 18px; }
.vbtn { min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.18); color: var(--cloud); font-weight: 700; font-size: 13px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.vbtn[aria-pressed="true"] { background: var(--cloud); color: var(--sky-900); }
@media (max-width: 767px) { .story__frame { height: 100dvh; border-radius: 0; width: 100vw; aspect-ratio: auto; } }


/* ===== src/css/06-footer.css ===== */
/* ==========================================================================
   Footer: one deep glass slab at the bottom of the sky.
   The slab is a little denser than .glass--deep, the brand line is full cloud and the quiet text sits at
   0.86 to 0.9: the footnotes and the copyright were 3.1 to 3.4:1 at --text-faint over the lighter parts of
   the sky; everything now clears 4.5:1 wherever the drifting clouds put their light (measured from 360 to
   1440 wide, across the clouds' whole cycle). Every link is a 44px row.
   ========================================================================== */
.footer { padding: var(--section-sm) var(--gutter) calc(28px + env(safe-area-inset-bottom)); }
.footer__panel { max-width: var(--container); margin: 0 auto; padding: clamp(28px, 4vw, 48px); display: grid; gap: 36px; background: rgba(11, 28, 74, 0.56); }
.footer__top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 24px 48px; align-items: start; }
.footer__brand img { width: 150px; height: auto; }
.footer__brand p { margin-top: 14px; max-width: 34ch; color: var(--cloud); }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer__cols h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: rgba(246, 249, 255, 0.9); }
.footer__cols a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 15px; color: var(--cloud); transition: color var(--dur-fast), transform var(--dur) var(--ease-spring); }
.footer__cols a:hover { color: var(--butter); transform: translateX(3px); }
.footer__contact { display: grid; justify-items: start; gap: 4px; margin-top: 4px; }
.footer__contact > a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--cloud); text-underline-offset: 3px; }
.footer__contact > a:hover { color: var(--butter); }
.footer__social { display: flex; gap: 8px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: rgba(246, 249, 255, 0.9); }
.footer__notes { display: grid; gap: 4px; font-size: 12.5px; line-height: 1.5; color: rgba(246, 249, 255, 0.86); max-width: 70ch; }
@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .footer__cols a:hover { transform: none; }
}
/* the slab's own fallbacks (its fill above overrides the ones .glass--deep carries) */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .footer__panel { background: rgba(11, 28, 74, 0.94); }
}
@media (prefers-reduced-transparency: reduce) {
  .footer__panel { background: rgba(11, 28, 74, 0.97); }
}


/* ===== src/css/07-intro.css ===== */
/* ==========================================================================
   Intro (home, first visit in a tab): the pack drops in on its string, one embossed
   sheet slides out of its base and waits for the visitor to pull it. Pulled, it comes
   further out of the pack while the pack dips and swings toward the hand, a perforation
   shows at the lip and the butter bar fills; past the threshold it tears and falls away
   in front of everything, the pack springs back with the next sheet's edge peeking out
   and rises, the wordmark writes itself in, the heart lands last, then the logo flies
   into the nav while the sky drops away. "Pull to open" shows under the sheet if nothing
   happens for a moment.
   Markup, physics and timeline: src/js/core/80-intro.js. The inline script in layout.html
   adds .pre-intro before first paint, so the page never flashes behind it; .intro-lock on
   html holds scrolling and pull to refresh while the intro is up.
   ========================================================================== */
:root {
  --z-intro: 350;
  --intro-bg:
    radial-gradient(70% 55% at 50% 38%, rgba(122, 162, 242, 0.34) 0%, rgba(122, 162, 242, 0) 70%),
    radial-gradient(90% 70% at 15% 0%, rgba(122, 162, 242, 0.28) 0%, rgba(122, 162, 242, 0) 60%),
    linear-gradient(180deg, var(--sky-900) 0%, var(--sky-700) 52%, #1e4bb0 100%);
}

/* the cover that holds the page until the intro takes over (removed by JS, or after 6s regardless) */
html.pre-intro body::after {
  content: ""; position: fixed; inset: 0; z-index: var(--z-intro);
  background: var(--intro-bg);
}
/* while the intro is up the page behind cannot scroll, rubber band or pull to refresh */
html.intro-lock { overflow: hidden; overscroll-behavior: none; }
html.intro-lock body { overscroll-behavior: none; }

/* the overlay owns every gesture: a press anywhere lands on .intro itself (its layers never take the pointer) */
.intro {
  position: fixed; inset: 0; z-index: var(--z-intro); pointer-events: auto;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.intro__curtain, .intro__logo { pointer-events: none; }
.intro img { -webkit-user-drag: none; }
@media (hover: hover) and (pointer: fine) {
  .intro { cursor: grab; }
  .intro.is-grabbing { cursor: grabbing; }
  .intro.is-torn, .intro.is-out { cursor: default; }
}
.intro__curtain {
  position: absolute; inset: 0; overflow: hidden;
  background: var(--intro-bg);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  will-change: transform;
}
/* a soft cloud of light behind the pack and the logo */
.intro__curtain::before {
  content: ""; position: absolute; left: 50%; top: 46%; width: 90vmin; height: 90vmin;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  filter: blur(20px);
}

/* ---------- the hanging pack ---------- */
.intro__stage { position: absolute; inset: 0; display: grid; place-items: center; }
/* the real pack (cut-hanging.webp, 587 x 1276, its adhesive hook at the top centre) on a string from the sky;
   the hang drops and lifts, the swing inside it dips and leans toward the hand (written per frame) */
.intro__hang {
  --ph: clamp(250px, 46vh, 430px);
  --hw: calc(var(--ph) * 587 / 1276);
  position: relative; height: var(--ph); width: var(--hw); margin-top: -14vh;
  transform: translateY(-110vh);
  transform-origin: 50% -70vh;
  will-change: transform;
}
.intro__swing { position: absolute; inset: 0; transform-origin: 50% -70vh; will-change: transform; }
.intro__string {
  position: absolute; left: 50.6%; bottom: calc(100% - 3px); width: 2px; height: 72vh; margin-left: -1px;
  background: linear-gradient(180deg, rgba(246, 249, 255, 0), rgba(246, 249, 255, 0.7) 45%);
}
.intro__pack {
  position: relative; z-index: 1; display: block; width: 100%; height: 100%;
  filter: drop-shadow(0 34px 44px rgba(4, 12, 40, 0.5));
}
/* the slot in the pack's base: only what is below its top edge shows, so a pulled sheet keeps coming out of the
   pack (the window is wide and deep so a leaning, stretched sheet and its shadow are never cut) */
.intro__win {
  position: absolute; left: -60%; right: -60%; top: 95%; height: calc(var(--ph) * 1.6);
  overflow: hidden;
}
/* the sheet: 40% of the pack's height shows at rest; --ext more of it is still inside the pack for the pull.
   It slides and leans about the slot (transform-origin), so the slot never opens a gap. */
.intro__sheet {
  --ext: calc(var(--ph) * 0.6);
  position: absolute; left: 50%; top: calc(var(--ext) * -1);
  width: calc(var(--hw) * 0.38); height: calc(var(--ext) + var(--ph) * 0.4); margin-left: calc(var(--hw) * -0.19);
  transform: translateY(calc(var(--ph) * -0.4));
  transform-origin: 50% var(--ext);
  border-radius: 3px 3px 12px 12px;
  background:
    repeating-linear-gradient(45deg, rgba(43, 95, 208, 0.13) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(-45deg, rgba(43, 95, 208, 0.13) 0 1px, transparent 1px 9px),
    linear-gradient(180deg, #eef3fc 0%, #fbfcff 62%, var(--cloud) 100%);
  box-shadow: 0 18px 30px rgba(4, 12, 40, 0.32);
  will-change: transform;
}
/* the perforation: kept level with the pack's lip while the sheet slides past, it shows as the pull nears the tear */
.intro__perf {
  position: absolute; left: 3px; right: 3px; top: 0; height: 2px; margin-top: -1px;
  background: repeating-linear-gradient(90deg, rgba(20, 50, 126, 0.6) 0 3px, transparent 3px 6px);
  opacity: 0;
  will-change: transform, opacity;
}
/* torn free: lifted out to the top of the overlay (in front of the bar and Skip, never behind them) and moved
   by one matrix per frame as it falls */
.intro__sheet.is-free { position: absolute; left: 0; top: 0; z-index: 4; margin: 0; transform-origin: 0 0; pointer-events: none; }

/* "Pull to open": under the sheet once it has waited a moment; the arrow drops through its dot on a loop */
.intro__hint {
  position: absolute; left: 50%; top: calc(135% + 24px); z-index: 2;
  display: flex; align-items: center; gap: 10px; margin: 0;
  padding: 5px 5px 5px 16px; border-radius: var(--r-pill); white-space: nowrap;
  font-family: var(--f-body); font-weight: 700; font-size: 14px; line-height: 1; letter-spacing: 0.005em;
  color: var(--cloud);
  background: rgba(246, 249, 255, 0.1);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(246, 249, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.3), var(--shadow-sm);
  opacity: 0; transform: translate(-50%, 10px) scale(0.96);
  transition: opacity 0.22s var(--ease-out), transform 0.5s var(--ease-spring);
}
.intro.is-hint .intro__hint {
  opacity: 1; transform: translate(-50%, 0) scale(1);
  transition: opacity 0.45s var(--ease-out), transform 0.7s var(--ease-spring);
}
.intro__chev {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; overflow: hidden;
  background: var(--butter); color: var(--sky-900);
}
.intro__chev svg { width: 14px; height: 14px; animation: intro-nudge 1.6s var(--ease-out) infinite; }
@keyframes intro-nudge {
  0%, 18% { transform: translateY(0); }
  48% { transform: translateY(20px); }
  49% { transform: translateY(-20px); }
  86%, 100% { transform: translateY(0); }
}

/* ---------- the logo: three layers sharing one 2346 x 708 frame ---------- */
.intro__logo {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: min(76vw, 500px); aspect-ratio: 2346 / 708;
  transform: translate(-50%, -50%);
  transform-origin: 0 0;
}
.intro__logo > * { position: absolute; inset: 0; width: 100%; height: 100%; }
/* written in from the left; the clip reaches past the box so the word's shadow is never cut into a rectangle */
.intro__word, .intro__tag { clip-path: inset(-30% 100% -30% 0); will-change: clip-path; }
.intro__word { filter: drop-shadow(0 10px 26px rgba(4, 12, 40, 0.35)); }
.intro__heart { transform: scale(0); transform-origin: 60.9% 50.8%; overflow: visible; }

/* ---------- pull progress + skip ---------- */
.intro__bar {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 30px; height: 2px;
  border-radius: var(--r-pill); background: rgba(246, 249, 255, 0.16); overflow: hidden;
}
.intro__bar i { position: absolute; inset: 0; background: var(--butter); transform-origin: left; transform: scaleX(0); will-change: transform; }
.intro__skip {
  position: absolute; right: var(--gutter); bottom: 44px; z-index: 3;
  min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); cursor: pointer;
  font-weight: 700; font-size: 14px; color: rgba(246, 249, 255, 0.78);
  background: rgba(246, 249, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(246, 249, 255, 0.22);
  transition: background-color var(--dur-fast), color var(--dur-fast), opacity 0.3s;
}
.intro__skip:hover { color: var(--cloud); background: rgba(246, 249, 255, 0.16); }
.intro.is-out { pointer-events: none; }
.intro.is-out .intro__skip { opacity: 0; }

/* while the logo flies in, the nav keeps its own logo hidden so there is only ever one */
.intro-handoff .nav__logo img { opacity: 0; }
.nav__logo img { transition: opacity 0.25s var(--ease-out); }

@media (max-width: 767px) {
  .intro__hang { --ph: clamp(240px, 42vh, 380px); margin-top: -16vh; }
  .intro__skip { bottom: 40px; }
  .intro__hint { font-size: 13.5px; }
}
/* short landscape screens: a smaller pack so the sheet clears the bar, the hint beside the pack's base */
@media (max-height: 540px) {
  .intro__hang { --ph: clamp(180px, 52vh, 250px); }
  .intro__hint { top: 100%; left: calc(100% + 14px); transform: translate(0, 10px) scale(0.96); }
  .intro.is-hint .intro__hint { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .intro__chev svg { animation: none; }
}


/* ===== src/css/08-pages.css ===== */
/* ==========================================================================
   Inner pages: product, policies, contact, 404. Home sections live in 1x-9x files.
   ========================================================================== */

/* soft white type on these pages sits on deep frost or the sky; .78 measured 2.2 to 2.9:1 on the light frost */
.pdp, .contact, .doc, .lost { --text-soft: rgba(246, 249, 255, 0.88); }

/* ---------- Page head and breadcrumbs ---------- */
.page-head { padding: calc(var(--nav-h) + clamp(40px, 7vw, 88px)) 0 clamp(24px, 4vw, 40px); }
.page-head .lede { color: var(--text); }
/* the trail sits on the sky's brightest corner: a small deep pill keeps it readable (2.6:1 bare), and every
   link is a full 44px tall target inside it */
.page-head .crumbs {
  display: inline-flex; flex-wrap: wrap; align-items: center; min-height: 44px; padding: 0 8px; margin-bottom: 18px;
  border-radius: var(--r-pill); background: rgba(11, 28, 74, 0.46); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  font-size: 14px; line-height: 1.2; color: var(--text-soft);
}
.page-head .crumbs li { display: inline-flex; align-items: center; }
.page-head .crumbs a, .page-head .crumbs [aria-current] { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 8px; }
.page-head .crumbs a { color: inherit; text-decoration: none; border-radius: var(--r-pill); }
.page-head .crumbs a:hover { color: var(--cloud); text-decoration: underline; text-underline-offset: 3px; }
.page-head .crumbs [aria-current] { padding-left: 0; color: var(--cloud); font-weight: 700; }
.page-head .crumbs li + li::before { content: "/"; opacity: 0.5; font-weight: 400; }
.page-head .crumbs [aria-current]::before { margin-right: 8px; }
/* a lede straight on the sky: a soft deep shade behind the words, like the shadow of a cloud
   (the contact lede was 3.2:1 on the bright corner, the product section ledes 4.4:1) */
.page-head--shade, .pdp__section .section__head { position: relative; }
.page-head--shade > *, .pdp__section .section__head > * { position: relative; }
.page-head--shade::before, .pdp__section .section__head:has(.lede)::before {
  content: ""; position: absolute; left: -14%; right: 8%; top: 18%; bottom: -24%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(11, 28, 74, 0.5), rgba(11, 28, 74, 0.28) 55%, rgba(11, 28, 74, 0));
}
.pdp__section .section__head:has(.lede)::before { left: -12%; right: -12%; top: 0; bottom: -40%; opacity: 0.7; }

/* the deep frost for page tiles that carry small white type (the generated tiles come with .glass--sm);
   their top-left sheen is halved, since it lit the corner where the first line of type sits */
.pdp .fact, .pdp__points > li, .pdp__steps > li, .faq details, .pcard, .contact__card.glass--deep {
  background: rgba(11, 28, 74, 0.44);
  --glass-edge: rgba(255, 255, 255, 0.22); --glass-highlight: rgba(255, 255, 255, 0.28);
}
.pdp .fact::before, .pdp__points > li::before, .pdp__steps > li::before, .faq details::before, .pcard::before, .contact__card.glass--deep::before { opacity: 0.5; }

/* ---------- Policy / long-form ---------- */
.doc { padding-bottom: var(--section); }
/* the policy pages read as one centred column: crumbs, title and the paper panel share the panel's 880px
   measure (wider would stretch the lines past a comfortable length), so nothing hangs off the left */
.doc .page-head, .doc__panel { max-width: 880px; margin-inline: auto; }
.doc__panel { padding: clamp(24px, 4vw, 56px); }
.doc__meta { color: var(--ink-soft); font-size: 14px; margin-bottom: 24px; }
.doc__meta a { color: var(--blue); text-underline-offset: 3px; }
.doc .prose h2 { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line-ink); scroll-margin-top: calc(var(--nav-h) + 24px); }
.doc .prose h2:first-child { margin-top: 0; }
.doc .prose h2:focus-visible { outline-offset: 6px; }
/* the jump list (src/js/pages/doc.js): every h2 of the policy, in two columns, collapsible */
.doc__toc { margin: 0 0 28px; border-radius: var(--r-lg); background: rgba(12, 24, 56, 0.045); box-shadow: inset 0 0 0 1px var(--line-ink); }
.doc__toc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 0 18px; border-radius: var(--r-lg); font-weight: 700; font-size: 15px;
}
.doc__toc summary::-webkit-details-marker { display: none; }
.doc__toc summary small { font-weight: 500; font-size: 13px; color: var(--ink-soft); margin-left: 8px; }
.doc__toc summary::after {
  content: ""; width: 10px; height: 10px; flex: none; margin-right: 4px;
  border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg);
  transition: transform var(--dur) var(--ease-spring);
}
.doc__toc[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.doc__toc ol { columns: 2; column-gap: 12px; padding: 0 8px 10px; }
.doc__toc li { break-inside: avoid; }
.doc__toc a {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border-radius: var(--r-sm);
  color: var(--ink); font-size: 14.5px; line-height: 1.3; text-decoration: none;
}
.doc__toc a:hover { background: rgba(12, 24, 56, 0.06); text-decoration: underline; text-underline-offset: 3px; }
.doc__toc a span { flex: none; min-width: 1.6em; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--blue); }

/* ---------- Contact ---------- */
.contact { padding-bottom: var(--section); }
.contact__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: start; }
.contact__card { padding: clamp(22px, 3vw, 36px); }
.contact__ways { display: grid; gap: 10px; margin-top: 18px; }
.contact__way {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 72px; padding: 12px 18px 12px 14px;
  border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  position: relative; text-decoration: none; transition: transform var(--dur) var(--ease-spring);
}
/* the hover tint is a layer that fades in (opacity), the row itself only lifts */
.contact__way::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(255, 255, 255, 0.04); opacity: 0; pointer-events: none; transition: opacity var(--dur-fast) var(--ease-out); }
.contact__way > * { position: relative; }
.contact__way:hover { transform: translateY(-2px); }
.contact__way:hover::before { opacity: 1; }
.contact__way b { display: block; }
.contact__way small { display: block; font-size: 14px; color: var(--text-soft); overflow-wrap: anywhere; }
.contact__go { width: 18px; height: 18px; opacity: 0.8; transition: transform var(--dur) var(--ease-spring); }
.contact__way:hover .contact__go { transform: translateX(3px); }
.contact__way[target="_blank"]:hover .contact__go { transform: translate(2px, -2px); }
.contact__note { margin-top: 22px; font-size: 15px; color: var(--text-soft); max-width: 52ch; }
/* the form is typed into and read closely: a denser paper than the default .88 (the red error line was 4.4:1 on it) */
.contact__form { display: grid; gap: 16px; }
.contact__form.glass--paper { background: rgba(246, 249, 255, 0.95); }
.contact__fields { display: grid; gap: 18px; }
.contact__form .btn { justify-self: start; }
.contact__small { font-size: 13px; color: var(--ink-soft); }
/* sent: the fields give way to a confirmation with the hand-off link and a way back to the message */
.form__success { display: none; gap: 12px; justify-items: start; padding: 20px; border-radius: var(--r-lg); background: rgba(26, 138, 74, 0.08); box-shadow: inset 0 0 0 1px rgba(26, 138, 74, 0.22); }
.form__success:focus { outline: none; }
.form__success:focus-visible { outline: 3px solid var(--sky-900); outline-offset: 3px; }
.form__success-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--success); color: var(--cloud); }
.form__success-ico svg { width: 20px; height: 20px; }
.form__success b { font-size: 17px; }
.form__success p { color: var(--ink-soft); font-size: 15px; }
.form__success a { color: var(--sky-700); font-weight: 700; text-underline-offset: 3px; }
.form.is-sent .form__success { display: grid; animation: pageIn var(--dur) var(--ease-out); }
.form.is-sent .contact__fields { display: none; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.lost { min-height: 100dvh; display: grid; place-items: center; padding: calc(var(--nav-h) + 48px) var(--gutter) 64px; text-align: center; }
.lost__panel { width: min(100%, 560px); padding: clamp(28px, 5vw, 52px); display: grid; justify-items: center; gap: 16px; }
.lost__pack { width: 92px; height: auto; transform: rotate(-8deg); filter: drop-shadow(0 20px 30px rgba(8, 20, 60, 0.35)); animation: lostFloat 6s var(--ease-spring) infinite alternate; }
.lost__panel .chip { margin-top: 4px; }
.lost__panel .lede { margin-top: 0; text-align: center; color: var(--text); }
.lost__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.lost__more { font-size: 15px; color: var(--text-soft); }
.lost__more a { color: var(--cloud); }
@keyframes lostFloat { from { transform: translateY(0) rotate(-8deg); } to { transform: translateY(-10px) rotate(-4deg); } }

/* ---------- Product page ---------- */
/* each product's own colour, for the glow behind its gallery (blue, butter, tangerine) */
.pdp { --glow: 150, 186, 250; padding-bottom: var(--section); }
.pdp[data-theme="kitchen"] { --glow: 244, 207, 53; }
.pdp[data-theme="tabletop"] { --glow: 233, 83, 44; }
.pdp .page-head { padding: calc(var(--nav-h) + 36px) 0 12px; }
.pdp .page-head .crumbs { margin-bottom: 0; }
.pdp__hero { --thumb-h: 88px; display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); gap: clamp(20px, 2.6vw, 32px); align-items: start; }
/* both columns ride along while the taller one scrolls past */
.pdp__gallery, .pdp__buy { position: sticky; top: calc(var(--nav-h) + 24px); }
.pdp__gallery { display: grid; gap: 10px; }
.pdp__gallery::before {
  content: ""; position: absolute; inset: -12% -16% -18%; pointer-events: none; border-radius: 50%;
  /* the middle sits behind the photo, so the colour is held out to where the halo shows past the tray */
  background: radial-gradient(closest-side, rgba(var(--glow), 0.7) 0%, rgba(var(--glow), 0.62) 60%, rgba(var(--glow), 0.24) 80%, rgba(var(--glow), 0));
  opacity: 0; transform: scale(0.9);
  transition: opacity 1.4s var(--ease-out), transform 1.8s var(--ease-out);
}
.pdp.is-ready .pdp__gallery::before { opacity: 1; transform: none; }
.pdp__main { aspect-ratio: 1; border-radius: calc(var(--r-xl) - var(--bezel)); overflow: hidden; background: #fff; }
.pdp__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--dur-fast), transform 0.35s var(--ease-out); }
.pdp__thumbs { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-auto-rows: var(--thumb-h); gap: 8px; }
.pdp__thumbs button { border-radius: var(--r-sm); overflow: hidden; background: #fff; opacity: 0.62; transition: opacity var(--dur-fast), transform var(--dur) var(--ease-spring); }
.pdp__thumbs button:hover { opacity: 0.92; transform: translateY(-2px); }
.pdp__thumbs button.is-on { opacity: 1; outline: 2px solid var(--butter); outline-offset: 2px; }
.pdp__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* the buy card: quiet type, specs as pills, one clear action */
.pdp__buy { padding: clamp(22px, 2.8vw, 36px); display: grid; gap: 16px; align-content: start; }
.pdp__chips { display: flex; flex-wrap: wrap; gap: 6px; padding-right: 52px; }
.pdp__title { font-size: clamp(1.8rem, 2.9vw, 2.6rem); letter-spacing: -0.025em; }
.pdp__buy .price { font-size: 32px; line-height: 1; }
.pdp__blurb { color: var(--ink-soft); max-width: 46ch; }
.pdp__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-top: 4px; }
.pdp__row .btn { flex: 1 1 200px; }
.pdp__tier { padding: 12px 14px; border-radius: var(--r-lg); background: rgba(43, 95, 208, 0.08); font-size: 14px; }
.pdp__tier b { color: var(--sky-700); }
.pdp__trust { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding-top: 14px; border-top: 1px solid var(--line-ink); }
.pdp__trust li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.pdp__trust svg { width: 18px; height: 18px; color: var(--blue); flex: none; }

/* facts: stat tiles under the hero */
.pdp__facts { margin-top: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fact { padding: 20px 20px 18px; display: grid; gap: 8px; align-content: start; }
.fact b { font-family: var(--f-display); font-weight: 800; font-size: 1.9rem; letter-spacing: -0.03em; line-height: 1; }
.fact span { font-size: 14px; color: var(--text-soft); }

.pdp__section { margin-top: var(--section-sm); }
.pdp__section .section__head { margin-bottom: clamp(22px, 3vw, 36px); }
.pdp__section .h-lg { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.pdp__section .lede { color: var(--text); }
/* points: five read as two wide and three narrow, four as two and two */
.pdp__points { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.pdp__points > li { grid-column: span 2; padding: 22px; display: grid; gap: 6px; align-content: start; }
.pdp__points > li:nth-child(-n+2), .pdp__points:not(:has(> li:nth-child(5))) > li { grid-column: span 3; }
.pdp__points li b { font-size: 17px; }
.pdp__points li span { color: var(--text-soft); font-size: 15px; }
.pdp__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.pdp__steps li { padding: 22px; display: grid; gap: 8px; align-content: start; }
.pdp__steps li span { color: var(--text-soft); }
/* ::after with order -1 (the glass material already owns ::before, which pinned the number over the title) */
.pdp__steps li::after { order: -1; position: relative; z-index: 1; counter-increment: step; content: counter(step); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--butter); color: var(--sky-900); font-family: var(--f-display); font-weight: 800; }

/* FAQ: each question a glass row, the whole row is the control */
.faq { display: grid; gap: 8px; }
.faq details { border-radius: var(--r-lg); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 10px 14px 10px 22px; border-radius: var(--r-lg); font-weight: 700; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline-offset: -3px; }
.faq summary::after {
  content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat,
    rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: transform var(--dur) var(--ease-spring);
}
.faq summary:hover::after { background-color: rgba(255, 255, 255, 0.18); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 64px 20px 22px; color: var(--text-soft); max-width: 68ch; }
.faq details[open] p { animation: pageIn var(--dur) var(--ease-out); }

/* related: image-led cards, the pack large on a lit well, quiet type beside it */
.pdp__related { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pcard { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: 22px; align-items: center; padding: 10px 22px 10px 10px; text-decoration: none; }
.pdp .pcard:hover { background: rgba(11, 28, 74, 0.52); }
.pcard__img {
  aspect-ratio: 1; border-radius: calc(var(--r-lg) - 4px);
  background: radial-gradient(70% 70% at 50% 60%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.pcard__img img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; filter: drop-shadow(0 14px 20px rgba(8, 20, 60, 0.35)); transition: transform var(--dur) var(--ease-spring); }
.pcard:hover .pcard__img img { transform: translateY(-6px) rotate(-3deg); }
.pcard b { font-size: 18px; line-height: 1.2; display: block; text-wrap: balance; }
.pcard small { color: var(--text-soft); font-size: 14px; display: block; margin: 6px 0 12px; }
.pcard .price { font-size: 22px; }

@media (max-width: 1099px) {
  .pdp__hero { --thumb-h: 76px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pdp__trust { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .pdp__hero { --thumb-h: 64px; }
  .pcard { grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding-right: 16px; }
}

/* ---------- Product page: share, delivery date, hover zoom ---------- */
.pdp__share { position: absolute; top: 14px; right: 14px; }
.pdp__eta { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.pdp__eta svg { width: 20px; height: 20px; flex: none; color: var(--blue); }
.pdp__eta b { color: var(--ink); }
.pdp__main.is-zoom { cursor: zoom-in; }
.pdp__main.is-zoom img { transform: scale(1.9); transform-origin: var(--zx, 50%) var(--zy, 50%); }

/* ---------- Product page: the buy bar, docked once the main add row has scrolled away ---------- */
.pdp__dock {
  --dock-b: 16px;
  position: fixed; z-index: var(--z-mbar); left: 50%; bottom: calc(var(--dock-b) + env(safe-area-inset-bottom));
  width: min(560px, calc(100% - 24px));
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 7px 7px 7px 16px; border-radius: var(--r-pill);
  /* parked: its own height plus its lift off the bottom (80px over the phone cart bar) plus a margin, so no
     edge peeks out; hidden once the slide has finished, shown at once when it comes back */
  transform: translate(-50%, calc(100% + var(--dock-b) + 24px + env(safe-area-inset-bottom)));
  visibility: hidden;
  transition: transform var(--dur-slow) var(--ease-spring), visibility 0s linear var(--dur-slow);
}
.pdp__dock.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform var(--dur-slow) var(--ease-spring), visibility 0s; }
.pdp__dock-img { height: 50px; width: auto; filter: drop-shadow(0 8px 12px rgba(8, 20, 60, 0.3)); }
.pdp__dock-meta { display: grid; gap: 2px; line-height: 1.15; min-width: 0; }
.pdp__dock-meta b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdp__dock-meta span { font-family: var(--f-display); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.pdp__dock-meta small { font-family: var(--f-body); font-weight: 500; font-size: 13px; color: var(--ink-soft); }
.pdp__dock .btn { --h: 50px; }

/* shared entrance for content that appears on a toggle (FAQ answer, sent form): opacity and a short rise */
@keyframes pageIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Phones ---------- */
@media (max-width: 767px) {
  .page-head { padding-top: calc(var(--nav-h) + 32px); }
  .page-head .crumbs { margin-bottom: 14px; }
  .page-head--shade::before { left: -20%; right: -20%; }

  /* doc: the jump list is one swipeable row of pills, so the policy itself starts a short way down */
  .doc__toc ol { columns: auto; display: flex; align-items: stretch; gap: 8px; overflow-x: auto; padding: 0 12px 14px; scroll-padding-inline: 12px; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
  .doc__toc ol::-webkit-scrollbar { display: none; }
  /* a long heading wraps inside its pill, so the next pill always peeks in at the edge */
  .doc__toc li { flex: none; max-width: 76%; scroll-snap-align: start; }
  .doc__toc a { height: 100%; padding: 6px 14px; border-radius: var(--r-md); background: rgba(12, 24, 56, 0.06); }

  .contact__way { padding-right: 14px; }
  .contact__form .btn { justify-self: stretch; }

  .lost { padding-top: calc(var(--nav-h) + 28px); }
  .lost__pack { width: 76px; }
  .lost__btns .btn { flex: 1 1 100%; }

  .pdp .page-head { padding-top: calc(var(--nav-h) + 30px); }
  .pdp__hero { --thumb-h: 52px; grid-template-columns: 1fr; gap: 14px; }
  .pdp__gallery, .pdp__buy { position: relative; top: auto; }
  .pdp__gallery::before { inset: -10% -18% -6%; }
  /* the photo well is 4:3 here; the square photos sit whole inside it on their own white */
  .pdp__main { aspect-ratio: 4 / 3; }
  .pdp__main img { object-fit: contain; }
  .pdp__thumbs { gap: 6px; }
  .pdp__buy { padding: 22px 20px; gap: 14px; }
  .pdp__buy .price { font-size: 28px; }
  /* the stepper and the button share one row down to 360px */
  .pdp__row .btn { flex-basis: 140px; --pad: 20px; }
  .pdp__trust { grid-template-columns: 1fr; }
  .pdp__facts { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
  .fact { padding: 16px; }
  .fact b { font-size: 1.6rem; }
  .pdp__points { grid-template-columns: 1fr; gap: 10px; }
  .pdp__points > li, .pdp__points > li:nth-child(-n+2), .pdp__points:not(:has(> li:nth-child(5))) > li { grid-column: auto; padding: 18px; }
  .pdp__steps { grid-template-columns: 1fr; gap: 10px; }
  .pdp__steps li { padding: 18px; }
  .faq summary { min-height: 60px; padding-left: 18px; font-size: 15.5px; }
  .faq details p { padding: 0 18px 18px; }
  .pdp__related { grid-template-columns: 1fr; gap: 10px; }
  .pcard { grid-template-columns: 112px minmax(0, 1fr); }
  .pcard b { font-size: 16px; }
  .pcard .price { font-size: 19px; }
  /* phones: the buy bar sits above the cart bar when it is showing */
  body:has(.mbar.is-on) .pdp__dock { --dock-b: 80px; }
}

/* ---------- Fallbacks: solid deep tiles without the frost ---------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pdp .fact, .pdp__points > li, .pdp__steps > li, .faq details, .pcard, .contact__card.glass--deep { background: rgba(11, 28, 74, 0.94); }
}
@media (prefers-reduced-transparency: reduce) {
  .pdp .fact, .pdp__points > li, .pdp__steps > li, .faq details, .pcard, .contact__card.glass--deep { background: rgba(11, 28, 74, 0.97); }
}

/* ---------- Reduced motion: final states ---------- */
@media (prefers-reduced-motion: reduce) {
  .pdp__dock { transition: none; }
  .pdp__main.is-zoom img { transition: none; }
  .pdp__gallery::before { transition: none; opacity: 1; transform: none; }
  .lost__pack { animation: none; }
  .faq details[open] p, .form.is-sent .form__success { animation: none; }
}


/* ===== src/css/09-micro.css ===== */
/* ==========================================================================
   Micro-interactions (src/js/core/85-micro.js). One layer for the whole site:
   .cursor         a soft ring that trails a fine pointer, swells over controls and
                   carries a word over things that play (data-cursor or a known selector).
                   The system cursor stays; the ring only follows it.
   .btn::after     a light that sits under the pointer inside every button
   .is-lit         the same light on interactive glass cards and price tags
   .ripple         a press bloom from the touch or click point (phones too)
   .puff           three tissue sheets that float off where a pack was added to the cart
   Everything here is transform and opacity; the light moves by custom properties on hover only.
   ========================================================================== */

/* ---------- the trailing ring (fine pointers, motion allowed) ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: var(--z-flyer);
  width: 0; height: 0; pointer-events: none;
  opacity: 0; transition: opacity var(--dur-fast) var(--ease-out);
}
.cursor.is-on { opacity: 1; }
.cursor__ring {
  position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.92), 0 0 0 1px rgba(12, 24, 56, 0.32), 0 6px 18px -6px rgba(8, 20, 60, 0.35);
  background: rgba(255, 255, 255, 0);
  transition: transform var(--dur) var(--ease-spring), opacity var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.cursor.is-link .cursor__ring { transform: scale(1.55); background: rgba(255, 255, 255, 0.14); }
/* the word disc sits below and right of the pointer, so the system cursor never covers the word */
.cursor.is-label .cursor__ring {
  transform: translate(26px, 26px) scale(2.75); background: rgba(246, 249, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.95), 0 10px 30px -10px rgba(8, 20, 60, 0.45);
}
.cursor.is-down .cursor__ring { transform: scale(0.82); }
.cursor.is-link.is-down .cursor__ring { transform: scale(1.3); }
.cursor.is-label.is-down .cursor__ring { transform: translate(26px, 26px) scale(2.45); }
/* over text fields the I-beam marks the spot; the ring steps aside */
.cursor.is-text .cursor__ring { transform: scale(0.4); opacity: 0; }
/* over paper and butter the ring takes ink, so it never disappears into the surface */
.cursor.is-ink .cursor__ring { box-shadow: inset 0 0 0 1.5px rgba(12, 24, 56, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.5); }
.cursor.is-ink.is-link .cursor__ring { background: rgba(12, 24, 56, 0.06); }
.cursor__label {
  position: absolute; left: 26px; top: 26px; transform: translate(-50%, -50%) scale(0.6);
  font-family: var(--f-display); font-weight: 800; font-size: 13px; letter-spacing: -0.01em; line-height: 1;
  color: var(--sky-900); white-space: nowrap; opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur) var(--ease-spring);
}
.cursor.is-label .cursor__label { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* the nav cart follows the pointer like the buttons do (85-micro.js sets --mx/--my) */
.nav__cart { transform: translate(var(--mx, 0px), var(--my, 0px)); }

/* ---------- the light under the pointer ----------
   strong only where the label is dark (butter); a faint lift on glass and ink so white labels keep their contrast */
.btn::after {
  --light: rgba(255, 255, 255, 0.14);
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(110px circle at var(--sx, 50%) var(--sy, 50%), var(--light), transparent 70%);
  opacity: 0; transition: opacity var(--dur-fast) var(--ease-out);
}
.btn--primary::after { --light: rgba(255, 255, 255, 0.5); }
.btn--ink::after { --light: rgba(255, 255, 255, 0.1); }
.btn--paper::after, .btn--ghost::after { --light: rgba(42, 91, 215, 0.14); }
.on-paper .btn--ghost::after, .glass--paper .btn--ghost::after { --light: rgba(12, 24, 56, 0.08); }
.btn.is-lit::after { opacity: 1; }

/* cards and tags: the light rides on a layer above the glass, under the content */
.glass--interactive, .ptag { --lit: 0; }
.glass--interactive::after, .ptag::after {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(260px circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 70%);
  opacity: var(--lit); transition: opacity var(--dur) var(--ease-out);
}
.glass--paper.glass--interactive::after, .ptag::after { background: radial-gradient(200px circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 70%); }
.glass--interactive.is-lit, .ptag.is-lit { --lit: 1; }

/* ---------- press ripple ---------- */
/* hosts that are static by default get a positioning context; :where keeps it at zero specificity,
   so any control placed absolutely (sheet, cart and story close buttons) keeps its own position */
:where(.ibtn, .store, .qty button, button.chip) { position: relative; }
.ripple {
  position: absolute; inset: 0; z-index: 0; border-radius: inherit; overflow: hidden; pointer-events: none;
}
.btn > .ripple { z-index: -1; }
.ripple > i {
  position: absolute; border-radius: 50%; background: currentColor; opacity: 0;
  transform: scale(0); will-change: transform, opacity;
}

/* ---------- tissue puff on add to cart: three soft sheets with a perforation line ---------- */
.puff { position: fixed; left: 0; top: 0; z-index: var(--z-flyer); width: 0; height: 0; pointer-events: none; }
.puff > i {
  position: absolute; left: -8px; top: -10px; width: 16px; height: 20px; border-radius: 2px;
  background:
    linear-gradient(180deg, transparent 47%, rgba(42, 91, 215, 0.16) 47%, rgba(42, 91, 215, 0.16) 53%, transparent 53%),
    linear-gradient(160deg, #ffffff 0%, #eef3ff 100%);
  box-shadow: 0 5px 12px -4px rgba(8, 20, 60, 0.4), inset 0 0 0 0.5px rgba(12, 24, 56, 0.1);
  opacity: 0; will-change: transform, opacity;
}

/* none of it on touch-only devices except the ripple and the puff; none of it with reduced motion */
@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor, .ripple, .puff { display: none; }
  .btn::after, .glass--interactive::after, .ptag::after { transition: none; }
}


/* ===== src/css/09-polish.css ===== */
/* ==========================================================================
   Site-wide polish found in the 2026-10-29 section review. It loads after the core files and before
   every section, so a section's own rule still wins where it sets one.
   ========================================================================== */

/* the lede sat at 4.2:1 (3.1:1 at the 95th percentile) over the light top of the sky on phones and tablets */
.lede { color: rgba(246, 249, 255, 0.9); }

/* the butter focus ring is about 1.3:1 on paper surfaces (the cart, the quick-view sheet, paper cards);
   inside them it takes the deep sky, which also stays clear around butter buttons */
.on-paper :focus-visible, .glass--paper :focus-visible, .cart__panel :focus-visible, .sheet__panel :focus-visible { outline-color: var(--sky-900); }

/* the nav slides up out of view, but its shadow still darkened the top edge of the page */
.nav.is-hidden { box-shadow: none; }

/* the nav's white frost put its white links at 1.7:1 over the hero's first (white) frame; a deep frost keeps
   them at about 4.9:1 there (with the hero's top shade) and well above that everywhere else */
.nav { background: rgba(11, 28, 74, 0.48); }
/* the open phone menu covered the nav, so its close button could not be reached; the nav rides above it */
.nav.is-menu { z-index: calc(var(--z-menu) + 1); }
/* with the links hidden on phones and tablets, cart and menu fell into the middle column and sat left of centre */
@media (max-width: 900px) { .nav__tools { grid-column: -2; justify-self: end; } }

/* deep interactive glass carries white type: the generic hover swapped it for light frost and washed the type out */
.glass--deep.glass--interactive:hover { background: rgba(11, 28, 74, 0.46); }

/* every quick-add button carries a hidden spinner; it only turns while its button is busy */
.spinner { animation-play-state: paused; }
.is-busy .spinner { animation-play-state: running; }


/* ===== src/css/10-hero.css ===== */
/* ==========================================================================
   Hero film (scroll-scrubbed canvas) - see src/js/sections/10-hero.js
   .film (tall scroll track) > .film__stage (sticky viewport) > canvas, scrim,
   .film__copy (stacked beats + the persistent CTA row, bottom-left), .film__progress (timeline).
   All scrim colours are the deep sky mixed to an alpha, so the shade reads as sky, not soot.
   Phone rules are scoped under .film so they win over 89-legacy-responsive.css until its hero rules go.
   ========================================================================== */
section.film { position: relative; height: 560vh; }
.film__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: var(--sky-500);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}
#filmCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity var(--dur-slow) var(--ease-out); transform-origin: 50% 50%;
}
.film.is-ready #filmCanvas { opacity: 1; }
/* fine pointers: the film leans away from the cursor (10-hero.js, at most 7px across, 6px down), so it is
   drawn 10px past every edge (max-width: the base media reset would cap the extra width) */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  #filmCanvas { inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px); max-width: none; }
}

/* Scrim: a soft pool of shade behind the copy block, a lift at the top for the nav,
   and a floor gradient so the CTAs read over the white tissue and the white studio floor. */
.film__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(780px 450px at calc(var(--gutter) + 330px) calc(100% - 290px),
      color-mix(in srgb, var(--sky-900) 70%, transparent) 0%,
      color-mix(in srgb, var(--sky-900) 60%, transparent) 34%,
      color-mix(in srgb, var(--sky-900) 26%, transparent) 70%,
      transparent 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--sky-900) 30%, transparent) 0%, transparent 24%),
    linear-gradient(0deg,
      color-mix(in srgb, var(--sky-900) 76%, transparent) 0%,
      color-mix(in srgb, var(--sky-900) 56%, transparent) 14%,
      color-mix(in srgb, var(--sky-900) 28%, transparent) 36%,
      transparent 60%);
}

/* ---------- copy block: beats stacked in one grid cell, CTA row below ---------- */
.film__copy {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(56px, 10vh, 112px);
  max-width: 720px; color: var(--cloud);
  /* the column left of the centred pack: it stops 24px short of the pack's left edge (the pack spans ±280px
     of the 1600×900 frame's centre, scaled by the cover fit); the closing headline and the CTA row keep to it */
  --col: max(13.5rem, calc(50vw - max(17.5vw, 31.1vh) - var(--gutter) - 24px));
}
/* fine pointers: the larger canvas scales the pack up (its half-width grows by 3.5px of width or 6.2px of height)
   and the lean brings film and copy up to 4px closer, so the pack-clear column gives that back */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .film__copy { --col: max(13.5rem, calc(50vw - max(17.5vw + 3.5px, 31.1vh + 6.2px) - var(--gutter) - 28px)); }
}
.film__beats { display: grid; pointer-events: none; }
.beat {
  grid-area: 1 / 1; align-self: end; max-width: 100%;
  opacity: 0; visibility: hidden;
  /* a tight shadow only: the word masks (.w, overflow hidden) cut a wide one into visible boxes; the scrim carries the shade */
  text-shadow: 0 1px 2px color-mix(in srgb, var(--sky-900) 55%, transparent);
}
.beat.is-on { opacity: 1; visibility: visible; }
/* reduced motion shows only the closing beat; the first beat (the page's h1) stays in the accessibility tree */
.beat.is-sr { visibility: visible; opacity: 1; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.beat__kicker { margin-bottom: 18px; text-shadow: none; }
.beat__kicker .chip {
  min-height: 32px; padding: 0 14px; font-size: 13.5px;
  background: color-mix(in srgb, var(--sky-900) 52%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.beat__title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.5rem, 5.9vw, 5.6rem); line-height: 0.92; letter-spacing: -0.04em; text-wrap: balance;
}
.beat__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.beat__title .w > span { display: inline-block; will-change: transform; }
/* the closing beat shares the frame with the centred pack: three short lines in the pack-clear column,
   the type scaling with the column so the longest line ("hangs around.", ~5.7em) always fits */
.beat--end .beat__title { font-size: min(clamp(2.2rem, 3.9vw, 3.75rem), calc(var(--col) / 5.9)); max-width: var(--col); }

/* the row wraps to the pack-clear column, so where that column is narrow the glass button sits under the primary */
.film__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; max-width: var(--col); pointer-events: auto; }
.film__ctas .btn { flex: none; }
/* the secondary button is a deep frost here (the film goes white under it); the chip above matches */
.film__ctas .btn--glass { background: color-mix(in srgb, var(--sky-900) 46%, transparent); }
.film__ctas .btn--glass:hover { background: color-mix(in srgb, var(--sky-900) 60%, transparent); }

/* ---------- timeline: loaded (faint) under played (butter), inset to the gutters ---------- */
.film__progress {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 22px; height: 2px;
  border-radius: var(--r-pill); background: var(--line); overflow: hidden;
}
.film__progress span { position: absolute; inset: 0; border-radius: inherit; transform-origin: left; transform: scaleX(0); }
.film__loaded { background: var(--line-strong); transition: transform var(--dur) var(--ease-out), opacity var(--dur-slow); }
.film__loaded.is-done { opacity: 0; }
.film__played { background: var(--butter); }

/* ---------- phone: one column, copy above the cart bar's 84px, stacked 48px buttons ---------- */
@media (max-width: 767px) {
  section.film { height: 460vh; }
  .film .film__stage { border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .film .film__scrim {
    background:
      radial-gradient(118% 300px at 50% calc(100% - 212px),
        color-mix(in srgb, var(--sky-900) 66%, transparent) 0%,
        color-mix(in srgb, var(--sky-900) 56%, transparent) 40%,
        color-mix(in srgb, var(--sky-900) 22%, transparent) 76%,
        transparent 100%),
      linear-gradient(180deg, color-mix(in srgb, var(--sky-900) 30%, transparent) 0%, transparent 22%),
      linear-gradient(0deg,
        color-mix(in srgb, var(--sky-900) 80%, transparent) 0%,
        color-mix(in srgb, var(--sky-900) 64%, transparent) 20%,
        color-mix(in srgb, var(--sky-900) 32%, transparent) 44%,
        transparent 64%);
  }
  .film .film__copy { bottom: 84px; max-width: none; }
  .film .beat__kicker { margin-bottom: 14px; }
  .film .beat__title { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  .film .beat--end .beat__title { font-size: clamp(2.2rem, 10vw, 3.2rem); max-width: none; }
  .film .film__ctas { gap: 8px; margin-top: 22px; max-width: none; }
  .film .film__ctas .btn { --h: 48px; --pad: 18px; font-size: 14.5px; flex: 1 1 100%; }
  .film .film__progress { left: var(--gutter); right: var(--gutter); bottom: 20px; transition: opacity var(--dur) var(--ease-out); }
  /* the cart bar takes the bottom band once the cart has an item; the timeline would run through it */
  body:has(.mbar.is-on) .film .film__progress { opacity: 0; }
}
/* portrait screens (phones, tablets upright) see the pack fill the frame under "Just hang & pull." and the closing
   beat ([data-deep]), so there the floor deepens until the pack's lower band sinks into it and the headline sits on sky */
@media (max-width: 767px), (max-aspect-ratio: 3/4) {
  .film .film__scrim::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(0deg,
      color-mix(in srgb, var(--sky-900) 86%, transparent) 0%,
      color-mix(in srgb, var(--sky-900) 80%, transparent) 42%,
      color-mix(in srgb, var(--sky-900) 44%, transparent) 56%,
      transparent 70%);
    opacity: 0; transition: opacity var(--dur-slow) var(--ease-out);
  }
  .film.is-deep .film__scrim::after { opacity: 1; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .film .film__copy { bottom: 24px; }
  .film .beat__title { font-size: clamp(1.8rem, 5vw, 3rem); }
  .film .beat--end .beat__title { font-size: min(clamp(1.8rem, 5vw, 3rem), calc(var(--col) / 5.9)); }
  .film .beat__kicker { display: none; }
  .film .film__ctas { margin-top: 16px; }
  .film .film__progress { bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  section.film { height: auto; }
  .film__stage { position: relative; height: 100svh; }
  #filmCanvas { transition: none; }
  .film__progress { display: none; }
}


/* ===== src/css/20-brand.css ===== */
/* ==========================================================================
   Brand banner (#brand)
   The ambassador artwork sits in a bezel tray (same double bezel as every panel),
   and ONE deep-frost glass panel holds all the copy and both CTAs.
   Desktop: the panel floats over the empty upper-right sky of the artwork.
   Phone:   the artwork is a portrait crop and the panel sits below it in the same tray.
   CSS holds the final states; src/js/sections/20-brand.js animates from them.
   ========================================================================== */
.brand { padding: clamp(14px, 2vw, 28px) var(--gutter) clamp(40px, 5vw, 64px); }
.brand__tray { position: relative; max-width: var(--container); margin-inline: auto; }

/* the artwork (an explicit width: with width auto, max-height would carry through the ratio and narrow the art inside the tray) */
.brand__media {
  width: 100%; aspect-ratio: 5 / 3;
  min-height: 540px;
  max-height: calc(100svh - 32px);
  border-radius: calc(var(--r-xl) - var(--bezel));
}
.brand__media picture { display: contents; }
/* (.brand__media prefix: the base .media img rule would otherwise win on width/height) */
.brand__media .brand__art {
  position: absolute; inset: -5% 0; width: 100%; height: 110%;
  object-fit: cover; object-position: 50% 100%;
  will-change: transform;
}
/* fly-to-cart anchor: sized and placed over the hanging pack in the photo, never seen or clicked */
.brand__media .brand__pack {
  position: absolute; left: 54.5%; top: 47%; width: 9%; height: auto;
  opacity: 0; pointer-events: none;
}

/* the glass panel */
.brand__panel {
  position: absolute;
  top: clamp(14px, 3.4%, 34px); right: clamp(14px, 3.2%, 34px);
  width: clamp(360px, 47%, 560px); /* never narrower than both CTAs side by side, or it grows down onto the packs */
  padding: clamp(20px, 2.2vw, 30px) clamp(20px, 2.4vw, 32px) clamp(20px, 2.4vw, 32px);
  border-radius: var(--r-lg);
}
.brand__logo img { width: clamp(132px, 13vw, 176px); height: auto; }
.brand__claim {
  margin-top: clamp(12px, 1.4vw, 18px);
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(1.45rem, 2.15vw, 2.05rem); line-height: 1.02; letter-spacing: -0.025em;
  text-wrap: balance;
}
.brand__claim sup { font-size: 0.5em; font-weight: 700; vertical-align: top; color: var(--text-soft); margin-left: 0.06em; }
.brand__tag {
  margin-top: clamp(8px, 1vw, 12px);
  font-size: clamp(1rem, 1.25vw, 1.15rem); font-weight: 500; line-height: 1.4;
  color: var(--text);
}
/* the rotating word: every word shares one grid cell, so the box is always as wide as the longest */
.brand__swap { display: inline-grid; overflow: hidden; vertical-align: baseline; text-align: left; }
.brand__swap > span { grid-area: 1 / 1; font-weight: 700; white-space: nowrap; transform: translateY(110%); will-change: transform; }
.brand__swap > span.is-on { transform: none; }
.brand__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(16px, 2vw, 24px); }

/* ---------- phone: a portrait crop with the panel underneath, in the same tray ---------- */
@media (max-width: 767px) {
  .brand { padding: 12px var(--gutter) 40px; }
  .brand__media { aspect-ratio: 4 / 5; min-height: 0; max-height: none; }
  .brand__media .brand__art { inset: 0; height: 100%; object-position: 50% 88%; will-change: auto; }
  .brand__media .brand__pack { left: 41%; top: 56%; width: 16%; }
  .brand__panel {
    position: relative; top: auto; right: auto; width: auto;
    margin-top: var(--bezel);
    padding: 22px 20px 20px;
    border-radius: calc(var(--r-xl) - var(--bezel));
  }
  .brand__logo img { width: 148px; }
  .brand__claim { margin-top: 14px; font-size: clamp(1.5rem, 7.2vw, 1.9rem); }
  .brand__tag { margin-top: 8px; font-size: 16.5px; }
  .brand__ctas { margin-top: 18px; gap: 8px; }
  .brand__ctas .btn { flex: 1 1 auto; --h: 50px; --pad: 18px; }
}

/* short windows: keep the panel off the packs by letting it shrink */
@media (min-width: 768px) and (max-height: 620px) {
  .brand__media { min-height: 0; }
  .brand__panel { padding: 16px 18px 18px; }
  .brand__logo img { width: 120px; }
  .brand__claim { font-size: 1.3rem; margin-top: 10px; }
  .brand__ctas { margin-top: 12px; }
}
/* landscape phones and very short windows: even the small panel would reach the packs, so it drops below
   the artwork (as on a phone) with the copy on the left and the CTAs on the right */
@media (min-width: 768px) and (max-height: 580px) {
  .brand__panel {
    position: relative; top: auto; right: auto; width: auto;
    margin-top: var(--bezel);
    border-radius: calc(var(--r-xl) - var(--bezel));
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: center;
  }
  .brand__ctas { grid-area: 1 / 2 / span 3; margin-top: 0; }
}

/* reduced motion: everything is already in its final state; nothing drifts or rotates */
@media (prefers-reduced-motion: reduce) {
  .brand__media .brand__art, .brand__swap > span { will-change: auto; }
}


/* ===== src/css/25-marquee.css ===== */
/* ==========================================================================
   Marquee: one deep-glass pill band drifting the five plain promises.
   Sits between the brand banner and the range; decorative (aria-hidden).
   ========================================================================== */
.marquee { padding: var(--section-sm) var(--gutter) 0; }
.marquee__band {
  width: min(var(--container), 100%); margin-inline: auto;
  height: 60px; overflow: hidden;
  display: flex; align-items: center;
  box-shadow: inset 0 1px 0 var(--glass-highlight), inset 0 0 0 1px var(--glass-edge), var(--shadow-md);
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--ink) 6%, var(--ink) 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, var(--ink) 6%, var(--ink) 94%, transparent);
}
.marquee__track {
  display: flex; align-items: center; gap: 36px; width: max-content; padding-left: 36px;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  letter-spacing: -0.01em; line-height: 1; white-space: nowrap; color: var(--text);
  animation: marquee-drift 42s linear infinite;
  will-change: transform;
}
.marquee__track b { color: var(--butter); font-size: 0.72em; font-weight: 500; }
@keyframes marquee-drift { to { transform: translateX(-50%); } }

/* phone: a shorter band, the same drift */
@media (max-width: 767px) {
  .marquee { padding-top: 32px; }
  .marquee__band { height: 50px; }
  .marquee__track { gap: 26px; padding-left: 26px; font-size: 1rem; }
}

/* reduced motion: the band rests on its first promises */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; will-change: auto; }
}


/* ===== src/css/30-range.css ===== */
/* ==========================================================================
   Range: split banner on the sky. Copy in a deep-glass panel on the left, the
   model film in a 9:16 double bezel on the right with the three packs floating
   at its edges and a paper-glass price tag under each pack.
   Phone layout: copy, then the film with the packs, then the three tags as a list.
   ========================================================================== */
.range { position: relative; padding: var(--section-sm) 0 var(--section); }
.range__inner {
  width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 5.5fr) minmax(0, 6.5fr); align-items: center; /* the headline holds two lines down to 1024 */
  gap: clamp(24px, 4vw, 56px);
}

/* ---------- copy panel ---------- */
.range__copywrap { align-self: center; }
.range__copy { padding: clamp(28px, 3.2vw, 44px); }
.range__title { font-size: clamp(2.4rem, 4.6vw, 4.1rem); line-height: 0.96; letter-spacing: -0.035em; }
.range__lede { color: var(--text); opacity: 0.9; max-width: 40ch; }
.range__word { white-space: nowrap; } /* "table-top" never splits at its hyphen on narrow phones */
.range__cta { margin-top: 28px; }
.range__cta s { font-weight: 500; opacity: 0.72; margin-left: 0.2em; }
.range__cta .btn__state--done { font-weight: 700; }

/* ---------- scene ---------- */
/* the scene is the 4:5 box the packs are placed on: as tall as the screen allows (540 to 760px), and when its
   column is narrower than that it shrinks whole, so the packs never slide in over the film */
.range__scene { position: relative; width: min(100%, max(540px, min(78vh, 760px)) * 0.8); aspect-ratio: 4 / 5; justify-self: center; }
/* flex, not grid: the bezel's 100% height must resolve against the scene, or the 9:16 grows from the width and spills out */
.range__film { position: absolute; inset: 0; display: flex; justify-content: center; }
.range__bezel { height: 100%; max-width: 100%; }
.range__media { height: 100%; aspect-ratio: 9 / 16; border-radius: calc(var(--r-xl) - var(--bezel)); background: var(--sky-700); }
.range__media video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* packs: absolute at the film's edges. Three layers, one motion each: .pack drifts with the scroll and leans
   to the pointer, .pack__in carries the entrance, the img carries the idle float */
.pack { position: absolute; will-change: transform; }
.pack__in { height: 100%; }
.pack img { height: 100%; width: auto; max-width: none; filter: drop-shadow(0 26px 30px rgba(var(--shadow-tint), 0.42)); }
.pack--hanging { right: 2%; top: 0; height: 48%; }
.pack--kitchen { left: 0; bottom: 10%; height: 42%; }
.pack--tabletop { right: 0; bottom: 10%; height: 30%; } /* 10% (70px at 900 tall), so on short scenes it keeps clear of the hanging tag */

/* tactile packs (30-range.js sets data-tactile once motion is allowed): a fine pointer grabs and drags them,
   a tap makes one hop. Never a touch-action change: a swipe that starts on a pack scrolls the page. */
.pack img { -webkit-user-drag: none; -webkit-user-select: none; user-select: none; }
.range__scene[data-tactile] .pack__in { will-change: transform; -webkit-tap-highlight-color: transparent; }
.range__scene[data-tactile="drag"] .pack__in { cursor: grab; }
.range__scene[data-tactile="drag"] .pack__in.is-held { cursor: grabbing; }
.pack.is-live { z-index: 1; } /* a pack out of place rides over the price tags until it is home */
.pack:has(> .pack__in.is-held) { z-index: 2; } /* and the one in hand rides over a pack that is still moving */

/* tags: on desktop each wrapper is pinned under its pack */
.range__tags { display: contents; }
.tagpos { position: absolute; will-change: transform; }
.tagpos--hanging { right: 0; top: calc(48% + 8px); }
.tagpos--kitchen { left: 2%; bottom: 10px; }
.tagpos--tabletop { right: 0; bottom: 10px; }

/* the price tag: paper glass pill, name + price + a 34px plus */
.ptag {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 5px 5px 5px 16px;
  font-size: 14.5px; line-height: 1; white-space: nowrap; text-align: left;
  box-shadow: inset 0 1px 0 var(--glass-highlight), inset 0 0 0 1px var(--glass-edge), var(--shadow-md);
  transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur) var(--ease-out);
}
.ptag:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 var(--glass-highlight), inset 0 0 0 1px var(--glass-edge), var(--shadow-lg); }
.ptag:active { transform: translateY(0) scale(0.98); }
.ptag__name { font-weight: 700; color: var(--ink); }
.ptag__price { font-weight: 500; color: var(--ink-soft); }
.ptag__plus {
  position: relative; display: grid; place-items: center; width: 34px; height: 34px; flex: none; margin-left: 2px;
  border-radius: 50%; background: var(--sky-900); color: var(--cloud);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur) var(--ease-spring);
}
.ptag__ico { position: absolute; width: 16px; height: 16px; transition: opacity var(--dur-fast), transform var(--dur) var(--ease-spring); }
.ptag__ico--done { opacity: 0; transform: scale(0.5) rotate(-20deg); }
.ptag:hover .ptag__plus { background: var(--butter); color: var(--sky-900); transform: rotate(90deg); }
.ptag.is-busy .ptag__plus { transform: scale(0.86); }
.ptag.is-done .ptag__plus { background: var(--butter); color: var(--sky-900); transform: none; }
.ptag.is-done .ptag__ico--plus { opacity: 0; transform: scale(0.5) rotate(40deg); }
.ptag.is-done .ptag__ico--done { opacity: 1; transform: none; }
.ptag:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; border-radius: var(--r-pill); }

/* a tapped pack points at its tag: the tag lifts, its plus turns butter and sends out a butter ring twice, a
   crisp line with a soft halo, edged in the deeper butter so it still reads on the pale paper glass (under the
   icon: the plus is its own stacking layer, so z-index -1 sits above its fill) */
.ptag.is-cue { transform: translateY(-3px) scale(1.04); box-shadow: inset 0 1px 0 var(--glass-highlight), inset 0 0 0 1px var(--glass-edge), var(--shadow-lg); }
.ptag.is-cue .ptag__plus { background: var(--butter); color: var(--sky-900); transform: rotate(90deg); }
.ptag.is-cue.is-done .ptag__plus { transform: none; }
.ptag__plus::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 2px var(--butter), 0 0 0 3px var(--butter-600);
  box-shadow: 0 0 0 2px var(--butter), 0 0 0 3px var(--butter-600), 0 0 16px 3px color-mix(in srgb, var(--butter) 60%, transparent);
}
.ptag.is-cue .ptag__plus::after { animation: ptag-cue 0.9s var(--ease-out) 2; }
@keyframes ptag-cue {
  0% { transform: scale(1); opacity: 1; }
  55% { opacity: 0.85; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ---------- tablets: one column, the scene keeps its desktop choreography ---------- */
@media (max-width: 1023px) and (min-width: 768px) {
  .range__inner { grid-template-columns: 1fr; gap: 32px; }
  .range__copywrap { width: 100%; max-width: 640px; justify-self: center; } /* centred over the centred scene */
  .range__scene { width: min(100%, max(540px, min(72vh, 680px)) * 0.8); }
}

/* ---------- phone layout ---------- */
@media (max-width: 767px) {
  .range { padding: 40px 0 var(--section-sm); }
  .range__inner { grid-template-columns: 1fr; gap: 22px; }
  .range__copy { padding: 24px 22px 26px; }
  .range__title { font-size: clamp(2.3rem, 10.6vw, 3rem); }
  .range__lede { margin-top: 12px; font-size: 1.02rem; }
  .range__cta { width: 100%; margin-top: 22px; --h: 54px; }

  .range__scene { width: auto; aspect-ratio: auto; justify-self: stretch; }
  .range__film { position: relative; inset: auto; height: min(68vh, 520px); margin-bottom: 14px; }
  .range__bezel { height: 100%; }
  .pack--hanging { right: -2%; top: 0; height: 36%; }
  .pack--kitchen { left: -1%; bottom: 0; height: 33%; }
  .pack--tabletop { right: 0; bottom: 9%; height: 25%; }
  .pack img { filter: drop-shadow(0 16px 20px rgba(var(--shadow-tint), 0.4)); }

  /* the three tags become a tidy list under the film, names and full 34px plus kept
     (.range-scoped so they outrank the parked v1 .ptag phone rules in 70-how.css) */
  .range__tags { display: grid; gap: 8px; }
  .tagpos { position: static; display: block; will-change: auto; }
  .range .ptag { width: 100%; min-height: 48px; padding-left: 18px; gap: 10px; font-size: 14.5px; }
  .range .ptag__name { display: block; }
  .range .ptag__plus { width: 34px; height: 34px; }
  .ptag__price { margin-left: auto; font-size: 15px; }
  .range .ptag.is-cue { transform: translateY(-3px) scale(1.015); } /* a full-width row only needs a nudge */
}

/* ---------- reduced motion: everything rests in its final state ---------- */
@media (prefers-reduced-motion: reduce) {
  .pack, .tagpos { will-change: auto; }
  .ptag:hover { transform: none; }
  .ptag:hover .ptag__plus { transform: none; }
}


/* ===== src/css/40-shop.css ===== */
/* ==========================================================================
   Shop: pinned product switcher. The stage takes each product's own colour
   (blue / butter / tangerine as product identity), tabs ride on top, title and
   description sit in the left column on a small glass chip, the pack tilts in
   the centre, and a paper buy card docks bottom-right. See src/js/sections/40-shop.js
   ========================================================================== */
.shop {
  position: relative; height: 260vh;
  /* per-theme chrome: title ink, and the chip material + ink under the tabs and description.
     blue: cloud title (soft shadow), deep (navy) glass with cloud type; butter and tangerine:
     ink title, light frost with ink type. Measured on the flat colour: cloud on navy-over-blue
     8.3:1, ink on frost-over-butter 12:1, ink on frost-over-tangerine 7.7:1. The title takes the
     darkest ink, --ink: 4.7:1 or more on tangerine, where sky-900 measured 4.4 to 4.5:1 (and a
     cloud title fell to 2.9:1 under the glow on a 360px phone). */
  --shop-ink: var(--cloud);
  --shop-ink-shadow: 0 1px 2px rgba(var(--shadow-tint), 0.24), 0 2px 8px rgba(var(--shadow-tint), 0.14);
  --shop-chip-ink: var(--cloud);
  --shop-chip: color-mix(in srgb, var(--sky-900) 44%, transparent);
  --shop-chip-edge: color-mix(in srgb, var(--cloud) 26%, transparent);
  --shop-chip-light: color-mix(in srgb, var(--cloud) 20%, transparent);
}
.shop[data-theme="kitchen"] {
  --shop-ink: var(--ink);
  --shop-ink-shadow: none;
  --shop-chip-ink: var(--sky-900);
  --shop-chip: color-mix(in srgb, var(--cloud) 30%, transparent);
  --shop-chip-edge: color-mix(in srgb, var(--cloud) 62%, transparent);
  --shop-chip-light: color-mix(in srgb, var(--cloud) 70%, transparent);
}
.shop[data-theme="tabletop"] {
  --shop-ink: var(--ink);
  --shop-ink-shadow: none;
  --shop-chip-ink: var(--sky-900);
  --shop-chip: color-mix(in srgb, var(--cloud) 42%, transparent);
  --shop-chip-edge: color-mix(in srgb, var(--cloud) 66%, transparent);
  --shop-chip-light: color-mix(in srgb, var(--cloud) 78%, transparent);
}

.shop__pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden; isolation: isolate;
  color: var(--shop-ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  column-gap: 24px; row-gap: clamp(12px, 2vh, 24px);
  padding: calc(var(--nav-h) + 22px) max(var(--gutter), calc((100% - 1400px) / 2)) clamp(24px, 4vh, 44px);
}

/* ---------- the colour: three layers, crossfaded on opacity ---------- */
.shop__bgs { position: absolute; inset: 0; overflow: hidden; }
.shop__bg {
  position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(44% 52% at 52% 46%, var(--shop-glow) 0%, var(--shop-bg) 72%);
}
.shop__bg.is-on { opacity: 1; }
.shop__bg[data-k="hanging"] { --shop-bg: var(--blue); --shop-glow: var(--sky-300); }
.shop__bg[data-k="kitchen"] { --shop-bg: var(--butter); --shop-glow: color-mix(in srgb, var(--butter) 58%, var(--cloud)); }
.shop__bg[data-k="tabletop"] { --shop-bg: var(--tangerine); --shop-glow: color-mix(in srgb, var(--tangerine) 62%, var(--cloud)); }

/* ---------- tabs ---------- */
.shop__seg {
  grid-column: 1 / -1; grid-row: 1; justify-self: center; position: relative;
  max-width: 100%;
  background: var(--shop-chip);
  box-shadow: inset 0 0 0 1px var(--shop-chip-edge), inset 0 1px 0 var(--shop-chip-light), var(--shadow-md);
}
.shop .seg button { min-height: 44px; padding: 0 18px; color: var(--shop-chip-ink); }
.shop .seg button.is-active, .shop .seg [aria-selected="true"] { color: var(--sky-900); }

/* ---------- title + description (left column) ---------- */
/* above the stage, so a pack sweeping across never covers the title */
.shop__copy { grid-column: 1; grid-row: 2; align-self: center; position: relative; z-index: 1; min-width: 0; padding-bottom: 4vh; }
/* the stack reserves the tallest title; a one-line title sits down on its description */
.shop__titles { display: grid; align-items: end; }
.shop__title {
  grid-area: 1 / 1;
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 0.95; letter-spacing: -0.035em;
  text-wrap: balance; max-width: 9ch;
  text-shadow: var(--shop-ink-shadow);
}
.shop__title:not(.is-on) { visibility: hidden; }
.shop__title > span { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.08em 0 0.18em; margin: -0.08em 0 -0.18em; }
.shop__title > span > i { display: inline-block; font-style: normal; will-change: transform; }

.shop__desc {
  display: grid; margin-top: clamp(16px, 2.6vh, 28px);
  width: fit-content; max-width: min(100%, 36ch);
  padding: 14px 18px; border-radius: var(--r-lg);
  background: var(--shop-chip); color: var(--shop-chip-ink);
  --glass-edge: var(--shop-chip-edge); --glass-highlight: var(--shop-chip-light);
  box-shadow: inset 0 1px 0 var(--glass-highlight), inset 0 0 0 1px var(--glass-edge), var(--shadow-md);
}
.shop__desc > p { grid-area: 1 / 1; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.5; font-weight: 500; }
.shop__desc > p:not(.is-on) { visibility: hidden; }

/* ---------- the pack ---------- */
.shop__stage { grid-column: 2; grid-row: 2; position: relative; min-height: 0; will-change: transform; }
.shop__pack {
  position: absolute; inset: 0; margin: auto;
  width: 100%; height: 100%; max-height: 720px;
  object-fit: contain;
  filter: drop-shadow(0 40px 50px rgba(var(--shadow-tint), 0.35));
  will-change: transform, opacity;
}
.shop__pack:not(.is-on) { visibility: hidden; }

/* ---------- buy card (paper) ---------- */
.shop__buy {
  grid-column: 3; grid-row: 2; align-self: end; justify-self: end;
  width: min(100%, 360px);
  padding: 20px 22px 18px;
  display: grid; gap: 14px;
}
.shop__name { font-weight: 700; font-size: 16px; line-height: 1.3; }
.shop__spec { font-size: 13.5px; color: var(--ink-soft); margin-top: 3px; }
.shop__price { font-size: 28px; line-height: 1; margin-top: 8px; }
.shop__price s[hidden] { display: none; }
.shop__actions { display: flex; align-items: center; gap: 6px 10px; }
.shop__actions .btn { flex: 1 1 auto; }
.shop__actions .linkbtn { flex: none; margin-left: 6px; }

/* ---------- focus rings that stay visible on each colour ---------- */
.shop[data-theme="kitchen"] :focus-visible, .shop[data-theme="tabletop"] :focus-visible { outline-color: var(--sky-900); }
.shop .shop__buy :focus-visible { outline-color: var(--blue); }

/* ---------- tablet: copy + buy card stack on the left, pack on the right ---------- */
@media (max-width: 1023px) and (min-width: 768px) {
  .shop__pin { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
  /* the glow sits behind the pack, and the copy sits just above the buy card */
  .shop__bg { background: radial-gradient(44% 52% at 70% 50%, var(--shop-glow) 0%, var(--shop-bg) 72%); }
  .shop__copy { grid-column: 1; grid-row: 2; align-self: end; padding-bottom: 0; }
  .shop__stage { grid-column: 2; grid-row: 2 / 4; }
  .shop__buy { grid-column: 1; grid-row: 3; justify-self: start; }
}

/* ---------- phone: tabs, title, pack, two-line description, buy card docked above the cart bar ---------- */
@media (max-width: 767px) {
  .shop__pin {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    row-gap: 10px;
    padding: calc(var(--nav-h) + 14px) var(--gutter) calc(84px + env(safe-area-inset-bottom));
  }
  .shop__seg { grid-row: 1; box-shadow: inset 0 0 0 1px var(--shop-chip-edge), inset 0 1px 0 var(--shop-chip-light); }
  .shop .seg button { padding: 0 12px; font-size: 13.5px; }
  .shop__copy { display: contents; }
  /* positioned: the copy wrapper is gone here, and a static title would paint under the colour layers */
  .shop__titles { grid-column: 1; grid-row: 2; justify-self: center; text-align: center; max-width: 100%; position: relative; z-index: 1; }
  .shop__title { max-width: none; }
  /* room for the pack's 12px breathing lift and the title's descenders */
  .shop__stage { grid-column: 1; grid-row: 3; min-height: 150px; margin-top: 14px; }
  .shop__pack { max-height: 100%; filter: drop-shadow(0 22px 28px rgba(var(--shadow-tint), 0.32)); }
  .shop__desc {
    grid-column: 1; grid-row: 4; justify-self: center;
    margin-top: 0; width: 100%; max-width: 100%;
    padding: 10px 14px; text-align: center; box-shadow: inset 0 1px 0 var(--glass-highlight), inset 0 0 0 1px var(--glass-edge);
  }
  .shop__desc > p { font-size: 14.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .shop__buy { grid-column: 1; grid-row: 5; justify-self: stretch; width: 100%; padding: 14px 16px; gap: 10px; }
  .shop__meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; }
  .shop__name { font-size: 15px; }
  .shop__spec { font-size: 13px; margin-top: 2px; }
  .shop__price { grid-column: 2; grid-row: 1 / 3; margin: 0; font-size: 24px; }
  .shop__actions .btn { --h: 48px; --pad: 18px; }
}

/* ---------- narrow phones (360 and below): the three labels stay on one line ---------- */
@media (max-width: 379px) {
  .shop .seg button { padding: 0 9px; font-size: clamp(12px, 3.75vw, 13.5px); white-space: nowrap; }
}

/* ---------- short phones (667px and similar): tighter chrome so the pack keeps a hero's share ---------- */
@media (max-width: 767px) and (max-height: 700px) {
  .shop__pin { row-gap: 6px; padding-top: calc(var(--nav-h) + 8px); }
  .shop__stage { margin-top: 10px; }
  .shop__desc { padding: 7px 12px; }
  .shop__desc > p { font-size: 14px; line-height: 1.35; }
  .shop__buy { padding: 12px 14px; gap: 8px; }
  .shop__actions .btn { --h: 44px; }
}

/* ---------- short landscape phones: pack and buy card side by side (stacked, the card covered the pack) ---------- */
@media (max-width: 767px) and (max-height: 560px) {
  .shop__titles, .shop__desc { display: none; }
  .shop__pin { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .shop__stage { grid-column: 1; grid-row: 2; min-height: 0; }
  .shop__buy { grid-column: 2; grid-row: 2; align-self: end; }
}

/* ---------- reduced motion: no pin, final states, tabs switch instantly ---------- */
@media (prefers-reduced-motion: reduce) {
  .shop { height: auto; }
  .shop__pin { position: relative; height: auto; min-height: 100svh; }
  .shop__pack, .shop__title > span > i { will-change: auto; }
}


/* ===== src/css/45-manifesto.css ===== */
/* ==========================================================================
   Manifesto: one statement on a wide deep-glass panel over the sky, and beside it a pack you can pull.
   Words sit at .38 and brighten to 1 as the visitor reads down (JS splits them into .mw).
   Without JS, or with reduced motion, the paragraph is simply fully lit.
   The dispenser: the panel is the wall, the pack hangs on its adhesive hook near the top edge and one
   tissue tab peeks out of its base. The tab's hit area is a real button; the sheet itself is a painted
   span behind the pack that JS slides out (transform only), and it carries the button's focus ring, so the
   ring hugs the tab and tucks behind the pack with it. Torn sheets are .disp__float spans that
   JS creates, floats away and removes. The hook plate is part of the pack photo, so .disp__hook is a
   second copy of it cut along the top of the pack: hidden at rest, and while a pack is swapped
   (.is-unhooked) it stays on the wall and the moving pack is cut below it, so only the pack comes
   and goes. Desktop: statement left, dispenser a compact column on the right.
   Phone: the dispenser sits under the statement, centred on the sheet's axis.
   ========================================================================== */
.manifesto { padding: var(--section-sm) var(--gutter); overflow-x: clip; }
.manifesto__panel {
  --pad-y: clamp(40px, 6vw, 96px);
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--pad-y) clamp(28px, 6vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(180px, 19vw, 240px);
  column-gap: clamp(32px, 5.5vw, 88px);
  align-items: center;
}
.manifesto__text {
  max-width: 20ch;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.7vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text);
  text-wrap: pretty;
}
.manifesto__text .mw { opacity: 0.38; }

/* ---------- the dispenser ---------- */
.disp {
  /* geometry: plain px for the two lengths JS reads (--tab peeking, --tear stretch at the moment it tears) */
  --pack-w: clamp(148px, 14vw, 184px);
  --tab: 22px;
  --tear: 54px;
  --slot-x: 60.5%;                    /* the centre of the pack's front face, where the sheet comes out */
  --slot-y: 97.6%;                    /* just above the base line, so the sheet's top hides under the pack */
  --sheet-w: calc(var(--pack-w) * 0.34);
  --sheet-l: calc(var(--pack-w) * 0.82);
  /* the hit area is 44px tall and ends 12px under the resting tab; the invitation starts a clear 14px below
     that, because a touch lands on a button from about 10px away and a thumb on the words must still scroll */
  --hit-h: 44px;
  --hit-down: 12px;
  --hit-gap: 14px;
  /* the tissue's quilted face, shared by the sheet and the torn pieces */
  --quilt:
    linear-gradient(90deg, color-mix(in srgb, var(--sky-300) 26%, transparent), transparent 24% 76%, color-mix(in srgb, var(--sky-300) 26%, transparent)),
    repeating-linear-gradient(45deg, color-mix(in srgb, var(--blue) 7.5%, transparent) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(-45deg, color-mix(in srgb, var(--blue) 7.5%, transparent) 0 1px, transparent 1px 8px),
    linear-gradient(170deg, var(--cloud) 35%, var(--sky-100) 150%);
  position: relative;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* hang from just under the panel's top edge: the hook's plate sits on the glass like it would on a wall */
  margin-top: calc(18px - var(--pad-y));
  -webkit-user-select: none;
  user-select: none;
}
.disp__wall {
  position: relative;
  width: var(--pack-w);
  /* shift so the sheet (not the hook) is on the column's axis: the hint and count line up under it */
  left: calc(var(--pack-w) * -0.105);
}
.disp__rig {
  position: relative;
  transform-origin: 50.6% 0.6%;       /* the hook */
  will-change: transform;
}
.disp__pack {
  position: relative;
  z-index: 1;
  width: 100%;
  pointer-events: none;
  -webkit-user-drag: none;
}
.disp__pack,
.disp__hook { filter: drop-shadow(0 22px 24px rgba(var(--shadow-tint), 0.38)) drop-shadow(0 2px 3px rgba(var(--shadow-tint), 0.25)); }

/* the plate stays on the wall while a pack is swapped. Both cuts follow the top edge of the pack's flap
   (a straight line in the photo, a touch lower on the right): the pack keeps that edge whole and the
   plate reaches just under it, behind the pack, so nothing shifts at the moment they part or meet */
.disp__hook {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  visibility: hidden;
  pointer-events: none;
  will-change: transform;             /* drawn on its own layer like the rig, so the two copies match */
}
.disp__hook img {
  width: 100%;
  -webkit-user-drag: none;
  clip-path: polygon(-30% -30%, 130% -30%, 130% 13.48%, -30% 10.3%);
}
.disp.is-unhooked .disp__hook { visibility: visible; }
.disp.is-unhooked .disp__pack { clip-path: polygon(-30% 10.07%, 130% 13.25%, 130% 130%, -30% 130%); }
.disp__slot { position: absolute; left: var(--slot-x); top: var(--slot-y); width: 0; height: 0; pointer-events: none; }

/* the sheet: a quilted tissue with its perforation drawn where it will sit at the moment it tears */
.disp__sheet {
  position: absolute;
  z-index: 0;
  left: calc(var(--slot-x) - var(--sheet-w) / 2);
  top: calc(var(--slot-y) + var(--tab) - var(--sheet-l));
  width: var(--sheet-w);
  height: var(--sheet-l);
  border-radius: 2px 2px 6px 6px / 2px 2px 9px 9px;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--blue) 42%, transparent) 0 0.9px, transparent 1.4px) 0 calc(var(--sheet-l) - var(--tab) - var(--tear) + 5px) / 6px 3px repeat-x,
    var(--quilt);
  box-shadow: 0 10px 16px -10px rgba(var(--shadow-tint), 0.55), inset 0 -1px 0 color-mix(in srgb, var(--blue) 8%, transparent);
  /* pivot on the slot, so a sideways pull swings the sheet from where it leaves the pack */
  transform-origin: 50% calc(var(--sheet-l) - var(--tab));
  pointer-events: none;
  will-change: transform;
  transition: translate 0.45s var(--ease-spring);
}

/* the hit area: wider than the tab and reaching up over the pack's foot, so a thumb finds it; only here does a drag not scroll */
.disp__tab {
  position: absolute;
  z-index: 2;
  left: calc(var(--slot-x) - 30px);
  top: calc(var(--slot-y) + var(--tab) + var(--hit-down) - var(--hit-h));
  width: 60px;
  height: var(--hit-h);
  border-radius: var(--r-pill);
  touch-action: none;
  cursor: grab;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
.disp.is-pulling .disp__tab { cursor: grabbing; }
/* a little more tab when a pointer or the keyboard finds it */
@media (hover: hover) and (pointer: fine) {
  .disp__tab:hover ~ .disp__sheet { translate: 0 5px; }
}
/* focus: the ring goes round the tissue, not the hit area (the button keeps a clear one for forced colours) */
.disp__tab:focus-visible { outline-color: transparent; }
.disp__tab:focus-visible ~ .disp__sheet { translate: 0 5px; outline: 3px solid var(--butter); outline-offset: 3px; }

/* torn sheets: the top edge keeps the bitten line of the perforation (the mask reads alpha only) */
.disp__float {
  position: absolute;
  z-index: 3;
  border-radius: 2px 2px 6px 6px / 2px 2px 9px 9px;
  background: var(--quilt);
  box-shadow: 0 14px 22px -14px rgba(var(--shadow-tint), 0.6);
  -webkit-mask: radial-gradient(circle at 50% 0, transparent 1.5px, var(--ink) 2px) 0 0 / 6px 100% repeat-x;
  mask: radial-gradient(circle at 50% 0, transparent 1.5px, var(--ink) 2px) 0 0 / 6px 100% repeat-x;
  transform-origin: 50% 0;
  pointer-events: none;
  will-change: transform, opacity;
}

/* the invitation sits in the pull zone and steps aside while a sheet comes down over it. It starts --hit-gap
   under the hit area: the wall ends a little below the slot, (100% - --slot-y) of the pack's 1276/587 height */
.disp__hint {
  margin-top: calc(var(--tab) + var(--hit-down) + var(--hit-gap) - var(--pack-w) * 0.052);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-soft);
  text-align: center;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.disp.is-pulling .disp__hint { opacity: 0; }
.no-js .disp__hint { visibility: hidden; }

.disp__count {
  margin-top: calc(var(--tear) - 22px);
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 0.4em;
  font-size: var(--fs-small);
  color: var(--text-soft);
  white-space: nowrap;
}
.disp__pre:empty { display: none; }
.disp__num {
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 2.2vw, 2.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

/* phone: the statement first, then the dispenser below it, smaller and centred, with no pull to the top edge */
@media (max-width: 767px) {
  .manifesto__panel {
    padding: 32px 22px 30px;
    grid-template-columns: minmax(0, 1fr);
  }
  .manifesto__text {
    max-width: none;
    font-size: clamp(1.7rem, 7.6vw, 2.1rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
  }
  .disp {
    --pack-w: 96px;
    --tab: 18px;
    --tear: 46px;
    align-self: center;
    margin-top: 26px;
    padding-top: 22px;
    width: 100%;
    border-top: 1px solid var(--line);
  }
  .disp__count { margin-top: calc(var(--tear) - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  .manifesto__text .mw { opacity: 1; }
  .disp__sheet, .disp__hint { transition: none; }
}


/* ===== src/css/50-why.css ===== */
/* ==========================================================================
   Why PaperBae (v2): four reasons, each a deep-glass card on the sky.
   Desktop: cards are sticky and stack; the one beneath recedes (scale, a copy fade and a dim
   overlay, all driven by src/js/sections/50-why.js through transform/opacity only). Copy left,
   photo right on every card, so a new card's text always lands over the dark text column of the
   card below.
   A pinned card always fits under the nav: on shorter desktop screens the photo gives up height
   (the copy never does). Phone: a plain stack, photo on top, nothing sticky. Screens too short
   to hold a whole card drop the pinning too.
   ========================================================================== */
.why { padding-bottom: 48px; }                 /* the section ends 48px after the last card */
/* bare sky behind the head: full cloud plus a soft deep halo keep it above 4.5:1 (lede) and 3:1 (title) where the sky's light corner passes behind it */
.why .lede { color: var(--text); text-shadow: 0 1px 12px rgba(11, 28, 74, 0.65); }
#whyTitle { text-shadow: 0 1px 16px rgba(11, 28, 74, 0.55); }
.why__head { margin-bottom: clamp(32px, 4vw, 56px); }

.reasons { display: grid; gap: 24px; }

.reason {
  position: sticky; top: calc(var(--nav-h) + 24px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 2.6vw, 36px); align-items: center;
  min-height: clamp(440px, 60vh, 560px);
  padding: 10px;
  transform-origin: 50% 0;
}

.reason__copy { padding: clamp(24px, 3.2vw, 48px) 0 clamp(24px, 3.2vw, 48px) clamp(20px, 3vw, 40px); max-width: 52ch; }
.reason__title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(1.9rem, 3.3vw, 2.9rem); line-height: 0.98; letter-spacing: -0.03em;
  text-wrap: balance; color: var(--text);
}
.reason__text { margin-top: 16px; font-size: clamp(16px, 1.22vw, 18px); line-height: 1.55; max-width: 40ch; color: var(--text); text-wrap: pretty; }
.reason__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.reason .chip { background: rgba(255, 255, 255, 0.08); }   /* a thinner fill than the default keeps 13px chip type above 4.5:1 where the sky behind is lightest */

/* the photo: a double-bezel tray that fills the card's height. Its square crop sets that height, so it is
   capped to keep a pinned card's bottom 24px above the fold (sticky top, card and bezel padding, 24px) */
.reason__tray { align-self: stretch; display: grid; border-radius: calc(var(--r-md) + var(--bezel)); }
.reason__tray > .reason__media { border-radius: var(--r-md); height: 100%; min-height: 320px; max-height: calc(100svh - var(--nav-h) - 68px - 2 * var(--bezel)); }
.reason__media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: var(--origin, 50% 50%);
  transform-origin: var(--origin, 50% 50%);
  scale: calc(var(--zoom, 1) * var(--settle, 1));   /* the crop; the script eases --settle in from slightly tighter */
}

/* the dim: a sky-900 sheet the script fades in (never past 24%) as the next card slides over */
.reason__dim { position: absolute; inset: 0; border-radius: inherit; background: var(--sky-900); opacity: 0; pointer-events: none; }

/* ---------- tablet: one column, photo on top, still stacking ---------- */
@media (max-width: 959px) {
  .reason { grid-template-columns: 1fr; gap: 0; align-items: start; min-height: 0; }
  .reason__tray { order: -1; align-self: auto; }
  .reason__tray > .reason__media { height: auto; min-height: 0; max-height: none; aspect-ratio: 16 / 10; }
  .reason__copy { padding: 22px 18px 26px; max-width: none; }
  .reason__text { max-width: 52ch; }
  /* landscape trays: drop below the towel pack onto the hand and the oil spill (the 2X badge stays out on the left) */
  .reason:nth-child(4) .reason__media img { object-position: 100% 86%; transform-origin: 100% 86%; }
}

/* ---------- short screens (landscape phones, small windows): a card taller than the screen would pin
   with its copy below the fold, so the stack lets go and the cards scroll as a plain list.
   Keep in step with PINNED in 50-why.js, which builds the recede only where the cards stick ---------- */
@media (max-width: 959px) and (max-height: 899px), (max-height: 599px) {
  .reason { position: relative; top: auto; }
  .reason__dim { display: none; }
}

/* ---------- phone: a plain stack, nothing sticky ---------- */
@media (max-width: 767px) {
  .why { padding-bottom: 48px; }
  .why .lede { text-shadow: 0 1px 14px rgba(11, 28, 74, 0.8), 0 0 4px rgba(11, 28, 74, 0.5); }   /* the light corner sits right behind it here */
  .why__head { margin-bottom: 28px; }
  .reasons { gap: 14px; }
  .reason { position: relative; top: auto; padding: 8px; }
  .reason__tray > .reason__media { aspect-ratio: 4 / 3; }
  .reason:nth-child(4) .reason__media img { scale: calc(1.6 * var(--settle, 1)); }   /* a taller 4:3 window needs a closer crop to clear the pack and the hashtag */
  .reason__copy { padding: 18px 12px 22px; }
  .reason__title { font-size: clamp(1.7rem, 8vw, 2.1rem); }
  .reason__text { margin-top: 12px; font-size: 16px; max-width: none; }
  .reason__chips { margin-top: 18px; }
  .reason__dim { display: none; }
}

/* ---------- reduced motion: final states, no pinning ---------- */
@media (prefers-reduced-motion: reduce) {
  .reason { position: relative; top: auto; }
  .reason__dim { display: none; }
}


/* ===== src/css/55-reels.css ===== */
/* ==========================================================================
   Reels: three shoppable films in a horizontal rail.
   A frost frame (.glass--interactive) holds each poster: 4:5 on desktop, 9:16 in the phone rail.
   Fine pointers preview the muted film on hover; phones get the poster only and a tap opens the
   story player (markup in partials/overlays.html, styled in 05-overlays.css).
   Entrances move the .reel wrapper only (transform/opacity); the card and its controls stay put.
   Stacking inside a card follows DOM order (every .glass child is already position:relative), so no z-index.
   ========================================================================== */
.reels .section__head--split .lede { margin-top: 0; }
.reels__rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); margin: 0; padding: 0; list-style: none; }
.reel { min-width: 0; }

/* ---------- the frame ---------- */
.reel__card { padding: var(--bezel); aspect-ratio: 4 / 5; border-radius: var(--r-xl); }
.reel__card .reel__media { height: 100%; overflow: hidden; border-radius: calc(var(--r-xl) - var(--bezel)); background: var(--sky-900); }
.reel__poster, .reel__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease-out), opacity var(--dur) var(--ease-out);
}
.reel__video { opacity: 0; }
.reel__video.is-playing { opacity: 1; }
/* fine pointers only: a tap leaves :hover stuck on touch screens */
@media (hover: hover) and (pointer: fine) {
  .reel__card:hover .reel__poster, .reel__card:hover .reel__video { transform: scale(1.04); }
}
.reel__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--shadow-tint), 0) 40%, rgba(var(--shadow-tint), 0.5) 66%, rgba(var(--shadow-tint), 0.86) 100%);
}

/* ---------- caption and play chip (not controls: the poster button beneath them is) ---------- */
.reel__card .reel__caption {
  position: absolute; left: calc(var(--bezel) + 16px); right: calc(var(--bezel) + 16px); bottom: calc(var(--bezel) + 102px);
  margin: 0; pointer-events: none;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(1.3rem, 1.7vw, 1.6rem); line-height: 1; letter-spacing: -0.02em; text-wrap: balance;
  color: var(--cloud); text-shadow: 0 1px 12px rgba(var(--shadow-tint), 0.35);
}
.reel__card .reel__play {
  position: absolute; left: calc(var(--bezel) + 12px); top: calc(var(--bezel) + 12px);
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px 0 8px;
  border-radius: var(--r-pill); pointer-events: none;
  background: rgba(var(--shadow-tint), 0.66); color: var(--cloud);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  font-weight: 700; font-size: 13px; line-height: 1;
}
.reel__play svg { width: 22px; height: 22px; }

/* ---------- the whole poster opens the player; its ring sits in the bezel gap ---------- */
.reel__card .reel__open { position: absolute; inset: var(--bezel); border-radius: calc(var(--r-xl) - var(--bezel)); cursor: pointer; }
.reel__card .reel__open:focus-visible { outline-offset: 1px; }

/* ---------- paper tag: product, price, 44px add ---------- */
.reel__card .reel__tag {
  position: absolute; left: calc(var(--bezel) + 10px); right: calc(var(--bezel) + 10px); bottom: calc(var(--bezel) + 10px);
  display: grid; grid-template-columns: 46px minmax(0, 1fr) 44px; align-items: center; gap: 10px;
  padding: 7px 7px 7px 9px; border-radius: var(--r-md);
}
.reel__thumb { height: 58px; display: grid; place-items: center; }
.reel__thumb img { max-height: 58px; width: auto; filter: drop-shadow(0 6px 10px rgba(var(--shadow-tint), 0.25)); }
.reel__tag p { margin: 0; min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.2; }
.reel__tag p b { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.reel__tag .price { display: block; margin-top: 2px; font-size: 16px; }
.reel__tag .price s { font-size: 12px; }
.reel__add svg { grid-area: 1 / 1; transition: transform var(--dur) var(--ease-spring), opacity var(--dur-fast) var(--ease-out); }
.reel__add .reel__add-done { opacity: 0; transform: scale(0.4) rotate(-30deg); }
.reel__add.is-busy .reel__add-plus { transform: scale(0.7); }
.reel__add.is-done .reel__add-plus { opacity: 0; transform: scale(0.4) rotate(90deg); }
.reel__add.is-done .reel__add-done { opacity: 1; transform: none; }
.reel__add.is-done { background: var(--butter); color: var(--sky-900); }

/* ---------- story player: progress on transform, a top scrim for the label and tools, phone tap targets ---------- */
.story__bars i b { width: 100%; transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.25s linear; }
/* the films open on pale walls: a navy fade keeps the white label, bars and tools legible (the nav buttons sit above it) */
.story__frame::before {
  content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: 168px; pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--shadow-tint), 0.7) 0, rgba(var(--shadow-tint), 0.56) 72px, rgba(var(--shadow-tint), 0) 100%);
}
/* on a narrow frame the title drops to its own line whole (the dot stays with the label) instead of leaving a word behind */
.story__label { line-height: 1.25; }
.story__title { display: inline-block; text-wrap: balance; }
.story__tools .vbtn, .story__tools .ibtn { background: rgba(var(--shadow-tint), 0.5); }
.story__tools .vbtn:hover, .story__tools .ibtn:hover { background: rgba(var(--shadow-tint), 0.66); }
.story__shop .btn--sm { --h: 44px; }

/* ---------- tablets: the rail scrolls ---------- */
@media (max-width: 1023px) {
  .reels__rail {
    display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding: 6px var(--gutter) 36px;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .reels__rail::-webkit-scrollbar { display: none; }
  .reel { flex: 0 0 min(44vw, 340px); scroll-snap-align: start; }
}

/* ---------- phones: 72vw reels, 9:16, poster only ---------- */
@media (max-width: 767px) {
  .reels__rail { gap: 12px; }
  .reel { flex-basis: 72vw; }
  .reel__card { aspect-ratio: 9 / 16; }
  .reel__video { display: none; }
  .reel__card .reel__caption { font-size: 1.4rem; bottom: calc(var(--bezel) + 96px); }
  .reel__card .reel__tag { left: calc(var(--bezel) + 8px); right: calc(var(--bezel) + 8px); bottom: calc(var(--bezel) + 8px); grid-template-columns: 42px minmax(0, 1fr) 44px; gap: 8px; }
  .reel__thumb { height: 54px; }
  .reel__thumb img { max-height: 54px; }
}

/* ---------- fallbacks ---------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .reel__card .reel__play { background: rgba(var(--shadow-tint), 0.88); }
}
@media (prefers-reduced-transparency: reduce) {
  .reel__card .reel__play { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(var(--shadow-tint), 0.9); }
}
@media (prefers-reduced-motion: reduce) {
  .reel__video { display: none; }
  .reel__poster, .reel__add svg, .story__bars i b { transition: none; }
  .reel__card:hover .reel__poster { transform: none; }
}


/* ===== src/css/60-bundles.css ===== */
/* ==========================================================================
   Bundles: a bento of deep-glass bundle cards floating in the sky, plus the
   paper bundle builder. Entrances move transform only and never touch the
   controls. Desktop first, tablet grid, then the phone layout at the bottom.
   css/89-legacy-responsive.css still styles the v1 .bento, .bcard__packs and .brow at 1100px and below,
   so the rules it collides with carry one more class here (.bundles / .builder) until those lines go.
   ========================================================================== */
.bundles__head { margin-bottom: clamp(28px, 4vw, 44px); }
.bundles__head .lede { margin-top: 0; }
.nw { white-space: nowrap; }

/* ---------- bento ---------- */
.bundles .bento { display: grid; gap: 16px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bcell { display: flex; min-width: 0; } /* flex, so the legacy grid-column spans on .bcard--* do nothing */
.bcell--wide { grid-column: span 4; }
.bcell--tall { grid-column: span 2; grid-row: span 2; }
.bcell--half { grid-column: span 2; }

/* default card: text, then art, then the buy row; the art owns its own row so nothing overlaps it.
   Only the wide card splits into the brief's two columns: the tall and half cards are 300-400px wide,
   too narrow for text and packs side by side, so their packs take the full width under the text */
.bcard {
  flex: 1 1 auto; min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(200px, 1fr) auto;
  row-gap: 18px;
  padding: clamp(20px, 2.2vw, 28px);
  overflow: hidden;
  border-radius: var(--r-xl);
}
.bcard__text { grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; }
.bcard__art { grid-row: 2; position: relative; min-height: 200px; }
.bcard__buy { grid-row: 3; align-self: end; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }

/* wide card: two columns, text and button left, packs right */
.bcard--wide { grid-template-columns: minmax(0, 1fr) 46%; grid-template-rows: 1fr auto; column-gap: 20px; }
.bcard--wide .bcard__text { grid-column: 1; grid-row: 1; }
.bcard--wide .bcard__buy { grid-column: 1; grid-row: 2; justify-content: flex-start; }
.bcard--wide .bcard__art { grid-column: 2; grid-row: 1 / -1; min-height: 344px; }

/* the shared interactive-glass hover swaps in a light wash that sinks white type: deep cards get denser instead */
.bcard.glass--interactive:hover { background: rgba(11, 28, 74, 0.46); }

/* the bundle colour, as a soft glow behind the packs, never a flat fill. It lives inside .bcard__art,
   so it follows the packs in every layout and never tints the text above them. Mixed with white, so it
   reads as light on the deep glass: the raw colours went muddy (butter, coral) or vanished (blue, navy) */
.bcard__glow {
  position: absolute; inset: 0 -30% -30%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--bc, var(--sky-300)) 45%, white) 15%, transparent 100%);
  opacity: 0.6; pointer-events: none;
}

.bcard__tag { font-size: 13px; background: rgba(11, 28, 74, 0.28); } /* a touch of deep glass: on the sheen a clear chip read 4.3:1 */
.bcard__name {
  margin-top: 14px;
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(1.55rem, 2vw, 2rem); line-height: 1; letter-spacing: -0.03em;
  text-wrap: balance;
}
.bcard--wide .bcard__name { font-size: clamp(1.8rem, 2.5vw, 2.5rem); max-width: 10ch; }
.bcard__items { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--text); max-width: 36ch; text-wrap: pretty; } /* --text-soft fell to 3.6:1 on the lighter sky */
.bcard--wide .bcard__items { max-width: 30ch; }

.bcard__price { display: flex; flex-direction: column; gap: 4px; font-size: clamp(1.5rem, 1.9vw, 1.8rem); line-height: 1; }
.bcard__price s { margin-left: 0; opacity: 1; font-size: 14px; color: var(--text-soft); }
.bcard .btn { --h: 46px; --pad: 20px; }

/* packs: bottom-anchored cut-outs inside .bcard__art, fanned by count, lifted on hover (transform only) */
.bcard__pack {
  position: absolute; bottom: 0; left: var(--x, 22%); width: var(--w, 56%); height: auto; max-height: 100%;
  object-fit: contain; object-position: bottom center;
  filter: drop-shadow(0 18px 22px rgba(8, 20, 60, 0.42));
  transition: transform var(--dur-slow) var(--ease-spring);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.bcard__art[data-n="2"] .bcard__pack { --w: 56%; }
.bcard__art[data-n="2"] .bcard__pack:nth-of-type(1) { --x: 0%; }
.bcard__art[data-n="2"] .bcard__pack:nth-of-type(2) { --x: 44%; }
.bcard__art[data-n="3"] .bcard__pack { --w: 48%; }
.bcard__art[data-n="3"] .bcard__pack:nth-of-type(1) { --x: 0%; }
.bcard__art[data-n="3"] .bcard__pack:nth-of-type(2) { --x: 26%; }
.bcard__art[data-n="3"] .bcard__pack:nth-of-type(3) { --x: 52%; }
.bcard:hover .bcard__pack { transform: translateY(-8px); }

/* tall card: its art row is about twice as tall as it is wide, so the two packs cascade down it, the first
   raised at the left, the second in front at the bottom right, and no empty band opens above them.
   max-height keeps the raised pack inside the art when a wider card (1000px tablets) makes it taller */
@media (min-width: 768px) {
  .bcard--tall .bcard__art[data-n="2"] .bcard__pack:nth-of-type(1) { --w: 64%; bottom: 22%; max-height: 78%; }
  .bcard--tall .bcard__art[data-n="2"] .bcard__pack:nth-of-type(2) { --x: 30%; --w: 70%; }
}

/* ---------- builder (paper) ---------- */
.builder {
  margin-top: 16px;
  padding: clamp(22px, 3vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
  gap: 28px clamp(24px, 4vw, 56px);
}
.builder :focus-visible { outline-color: var(--sky-900); } /* the butter ring is about 1.4:1 on paper and vanishes round the butter button */
.builder__head { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: end; }
.builder__msg { margin-top: 8px; font-weight: 700; font-size: 16px; color: var(--blue); min-height: 1.5em; text-wrap: balance; }
.builder__tiers { display: flex; flex-wrap: wrap; gap: 8px; }
.builder__tiers .chip { min-height: 36px; padding: 0 14px; font-size: 14px; }
.builder__tiers .chip b { font-family: var(--f-display); font-weight: 800; font-size: 15px; letter-spacing: -0.01em; }
.builder__tiers .chip span { color: var(--ink-soft); font-weight: 500; }
.builder__tiers .chip.is-on { background: var(--sky-900); color: var(--cloud); box-shadow: none; }
.builder__tiers .chip.is-on span { color: var(--text-soft); }
.builder__meter { grid-column: 1 / -1; }
.builder__meter > span { width: 100%; transform: scaleX(var(--p, 0)); transform-origin: 0 50%; transition: transform var(--dur-slow) var(--ease-out); }

.builder__rows { display: grid; gap: 10px; align-content: start; }
.builder .brow {
  position: relative;
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-rows: auto auto;
  column-gap: 14px; row-gap: 2px; align-items: center;
  padding: 12px 14px 12px 12px; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 0 0 1px var(--line-ink);
}
.brow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--blue); opacity: 0; transition: opacity var(--dur-fast); pointer-events: none; }
.brow.is-picked::after { opacity: 1; }
.builder .brow__img { grid-row: 1 / 3; width: 64px; height: 76px; display: grid; place-items: center; }
.builder .brow__img img { max-height: 76px; width: auto; filter: drop-shadow(0 8px 10px rgba(8, 20, 60, 0.22)); }
.brow__name { font-weight: 700; font-size: 15.5px; line-height: 1.25; align-self: end; }
.brow__price { font-size: 14px; color: var(--ink-soft); align-self: start; }
.builder .brow .qty { grid-column: 3; grid-row: 1 / 3; }
.brow [data-bq="-1"] { transition: opacity var(--dur-fast); }
.brow [data-bq="-1"][aria-disabled="true"] { opacity: 0.55; } /* nothing to remove at 0: dimmed, still 3:1 */

.builder__sum {
  align-self: end; display: grid; gap: 8px;
  padding: 22px; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 0 0 1px var(--line-ink);
}
.builder__sumlabel { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.builder__total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; font-size: clamp(1.9rem, 2.6vw, 2.4rem); line-height: 1; }
.builder__total s { margin-left: 0; opacity: 1; font-size: 16px; color: var(--ink-soft); }
.builder__save { font-weight: 700; font-size: 15px; color: var(--blue); min-height: 1.5em; }
.builder.is-empty .builder__total { display: none; }
.builder.is-empty .builder__save { color: var(--ink-soft); }
.builder__sum .btn { width: 100%; margin-top: 8px; }
/* aria-disabled, not disabled: the empty button stays focusable, so the cart can hand focus back to it */
.builder__sum .btn[aria-disabled="true"] { opacity: 1; pointer-events: auto; cursor: not-allowed; background: rgba(12, 24, 56, 0.08); color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--line-ink); }

/* ---------- tablet: two columns, the wide card on its own row; the builder in one column ---------- */
@media (max-width: 1023px) {
  .bundles .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bcell--wide { grid-column: 1 / -1; }
  .bcell--tall { grid-column: span 1; grid-row: span 2; }
  .bcell--half { grid-column: span 1; }
  .bcard--wide { grid-template-columns: minmax(0, 1fr) 42%; }

  /* beside the summary the rows were 350-430px and every name wrapped to three lines: the summary goes under them */
  .builder { grid-template-columns: minmax(0, 1fr); }
  .builder__sum { grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; }
  .builder__sum > * { grid-column: 1; }
  .builder__sum .btn { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: auto; margin-top: 0; }
}

/* ---------- phone: one column of stacked cards, builder in one column ---------- */
@media (max-width: 767px) {
  .bundles .bento { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bcell--wide, .bcell--tall, .bcell--half { grid-column: auto; grid-row: auto; }
  .bcard, .bcard--wide {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(210px, 1fr) auto;
    column-gap: 0; row-gap: 16px; padding: 20px 18px 18px;
  }
  .bcard--wide .bcard__text { grid-column: 1; grid-row: 1; }
  .bcard--wide .bcard__art { grid-column: 1; grid-row: 2; min-height: 210px; }
  .bcard--wide .bcard__buy { grid-column: 1; grid-row: 3; justify-content: space-between; }
  .bcard__name, .bcard--wide .bcard__name { font-size: 1.7rem; max-width: none; }
  .bcard__items, .bcard--wide .bcard__items { font-size: 14.5px; max-width: none; }
  .bcard__art { min-height: 210px; }
  .bcard__buy .btn { flex: 1 1 auto; }

  .builder { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px 16px 16px; margin-top: 12px; }
  .builder__head { grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
  .builder__msg { font-size: 15px; }
  /* the three tiers stay one row: each chip stacks its discount over its pack count */
  .builder__tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .builder__tiers .chip { flex-direction: column; justify-content: center; gap: 3px; min-height: 48px; padding: 6px 8px; border-radius: var(--r-md); font-size: 13px; }
  .builder .brow { grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; row-gap: 6px; padding: 10px; }
  .builder .brow__img { grid-row: 1 / 3; width: 48px; height: 60px; }
  .builder .brow__img img { max-height: 60px; }
  .brow__name { grid-column: 2 / 4; font-size: 15px; align-self: auto; }
  .brow__price { grid-column: 2; grid-row: 2; align-self: center; }
  .builder .brow .qty { grid-column: 3; grid-row: 2; margin: 0; }
  .builder__sum { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; }
  .builder__sum .btn { grid-column: 1; grid-row: auto; width: 100%; margin-top: 8px; }
}

/* ---------- reduced motion: final states, no lifts ---------- */
@media (prefers-reduced-motion: reduce) {
  .bcard__pack, .builder__meter > span, .brow::after, .brow [data-bq="-1"] { transition: none; }
  .bcard:hover .bcard__pack { transform: none; }
}


/* ===== src/css/65-places.css ===== */
/* ==========================================================================
   Places: horizontal accordion of real settings.
   - the open panel is sized to the photo's ratio (1200x858 = 1.4), so the whole photo shows
     and the baked-in logos and signs are never sliced
   - collapsed panels are slivers framed on the pack (--x) with a vertical glass chip label
   - --acc-h shrinks with the container so slivers never get narrower than 64px
   - phone: a vertical accordion, 76px rows framed on the pack (--y), the open row shows the full photo
   - reduced motion: no accordion, a 3 x 2 grid of whole photos with their labels
   ========================================================================== */
.places__wrap { container-type: inline-size; }

.places__acc {
  --gap: 10px;
  --sliver: 64px;
  --ratio: 1.3986;
  --acc-h: clamp(380px, 62vh, 600px);
  display: flex; gap: var(--gap);
  height: var(--acc-h);
}
@supports (width: 1cqw) {
  .places__acc { --acc-h: min(clamp(380px, 62vh, 600px), (100cqw - 5 * var(--gap) - 5 * var(--sliver)) / var(--ratio)); }
}

.place {
  position: relative; isolation: isolate; overflow: hidden;
  flex: 1 1 0; min-width: 0;
  border-radius: var(--r-lg);
  background: var(--sky-700);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), var(--shadow-md);
  text-align: left; color: var(--cloud);
  transition: flex-grow var(--dur-slow) var(--ease-out), flex-basis var(--dur-slow) var(--ease-out);
}
.place.is-open { flex: 0 0 calc(var(--acc-h) * var(--ratio)); }

.place img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  object-position: var(--x, 50%) 50%;
  transform: scale(1.06);
  transition: object-position var(--dur-slow) var(--ease-out), transform 1.2s var(--ease-out);
}
.place.is-open img { object-position: 50% 50%; transform: none; }

/* scrim: deep at the foot for the label, gone above the middle */
.place::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgba(8, 20, 60, 0.74) 0%, rgba(8, 20, 60, 0.28) 32%, rgba(8, 20, 60, 0) 58%);
  transition: opacity var(--dur) var(--ease-out);
}
.place:not(.is-open)::after { opacity: 0.85; }
.place:not(.is-open):hover::after { opacity: 0.6; }
.place:focus-visible { outline-offset: 4px; border-radius: var(--r-lg); }

/* collapsed label: a vertical glass chip reading bottom to top */
.place__chip {
  position: absolute; left: 50%; bottom: 14px;
  writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg);
  max-height: calc(100% - 28px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 12px 7px; border-radius: var(--r-pill);
  background: rgba(11, 28, 74, 0.42); color: var(--cloud);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  font-weight: 700; font-size: 13px; line-height: 1;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.place.is-open .place__chip { opacity: 0; }

/* open label: the place name, large, over the scrim */
.place__label {
  position: absolute; left: clamp(18px, 2.4vw, 28px); right: clamp(18px, 2.4vw, 28px); bottom: clamp(16px, 2.2vw, 26px);
  font-family: var(--f-display); font-weight: 800; font-size: var(--fs-h3); line-height: 1.05; letter-spacing: -0.02em;
  text-shadow: 0 1px 14px rgba(8, 20, 60, 0.45);
  white-space: nowrap;
  opacity: 0; transform: translateY(14px);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur) var(--ease-out);
}
.place.is-open .place__label { opacity: 1; transform: none; transition-delay: 0.22s, 0.22s; }

@media (prefers-reduced-transparency: reduce) {
  .place__chip { background: var(--sky-900); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* tablet and phone: a vertical accordion */
@media (max-width: 899px) {
  .places__acc { flex-direction: column; height: auto; }
  .place, .place.is-open { flex: none; }
  .place { height: 76px; transition: height var(--dur-slow) var(--ease-out); }
  .place.is-open { height: calc(100cqw / var(--ratio)); }
  .place img { object-position: 50% var(--y, 50%); transform: none; }
  .place.is-open img { object-position: 50% 50%; }
  .place::after { background: linear-gradient(90deg, rgba(8, 20, 60, 0.62) 0%, rgba(8, 20, 60, 0.18) 55%, rgba(8, 20, 60, 0) 80%); }
  .place.is-open::after { background: linear-gradient(0deg, rgba(8, 20, 60, 0.72) 0%, rgba(8, 20, 60, 0) 50%); }
  .place__chip {
    writing-mode: horizontal-tb; left: 14px; top: 50%; bottom: auto; transform: translateY(-50%);
    max-width: calc(100% - 28px); max-height: none; padding: 9px 14px; font-size: 14px;
  }
  .place__label { white-space: normal; }
}
@supports not (width: 1cqw) {
  @media (max-width: 899px) { .place.is-open { height: 62vw; } }
}

@media (prefers-reduced-motion: reduce) {
  .places__acc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: auto; }
  .place, .place.is-open { flex: none; height: auto; aspect-ratio: 1200 / 858; }
  .place img, .place.is-open img { object-position: 50% 50%; transform: none; }
  .place::after { opacity: 1; background: linear-gradient(0deg, rgba(8, 20, 60, 0.72) 0%, rgba(8, 20, 60, 0) 50%); }
  .place__chip { display: none; }
  .place__label { opacity: 1; transform: none; white-space: normal; font-size: clamp(1.05rem, 1.6vw, 1.35rem); }
}
@media (prefers-reduced-motion: reduce) and (max-width: 767px) {
  .places__acc { grid-template-columns: 1fr; }
}


/* ===== src/css/70-how.css ===== */
/* ==========================================================================
   How: phone-framed film + steps that highlight in sync (src/js/sections/70-how.js)
   Desktop: film left in a .bezel frame, heading + paper-glass rows + link right, centred on the frame.
   Phone:   heading, film (with controls), rows, link, in DOM order.
   Materials: .bezel tray, .media screen, deep-glass chrome over the film, .glass--paper rows.
   ========================================================================== */
.how { position: relative; }
.how__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-rows: minmax(0, 1fr) auto auto auto minmax(0, 1fr);
  grid-template-areas:
    "media ."
    "media title"
    "media steps"
    "media cta"
    "media .";
  column-gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

/* ---------- heading ---------- */
.how__title {
  grid-area: title;
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 3.4rem); line-height: 0.98; letter-spacing: -0.03em;
  text-wrap: balance; max-width: 13ch;
  color: var(--text);
}
.how__dag { font-size: 0.42em; font-weight: 500; line-height: 0; vertical-align: top; position: relative; top: 0.55em; margin-left: 0.08em; letter-spacing: 0; }

/* ---------- film in a phone frame ---------- */
/* width follows the viewport height on short screens, so the frame and its caption fit one view below the nav (9:16 screen + 8px bezel) */
.how__media { grid-area: media; align-self: center; justify-self: center; width: 100%; max-width: 392px; max-width: clamp(300px, calc((100svh - 192px) * 9 / 16 + 16px), 392px); margin: 0; }
.how__phone { --bezel: 8px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), var(--shadow-lg); }
.how__screen { aspect-ratio: 9 / 16; background: var(--sky-900); }
.how__screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* controls: deep-glass chrome, bottom-left, always on a dark base so the cloud type keeps its contrast over a light film */
.how__ctrl { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 8px; }
.how__play, .how__sound {
  background: rgba(11, 28, 74, 0.66);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.34), var(--shadow-sm);
}
.how__play:hover, .how__sound:hover { background: rgba(11, 28, 74, 0.8); }
/* focus: a navy band under the butter ring, so the ring still reads over the film's light walls */
.how__play:focus-visible, .how__sound:focus-visible {
  outline-offset: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 0 0 2px var(--sky-900), var(--shadow-sm);
}
.how__sound { display: inline-flex; align-items: center; gap: 6px; padding: 0 16px 0 12px; font-size: 13.5px; }
.how__sound[aria-pressed="true"] { background: var(--cloud); color: var(--sky-900); }
.how__sound[aria-pressed="true"]:hover { background: var(--cloud); }
.how__ico { width: 20px; height: 20px; }
.how__sound .how__ico { width: 18px; height: 18px; }
.how__ico--pause, .how__ico--loud { display: none; }
.how.is-playing .how__ico--pause, .how__sound[aria-pressed="true"] .how__ico--loud { display: block; }
.how.is-playing .how__ico--play, .how__sound[aria-pressed="true"] .how__ico--muted { display: none; }

/* the disclosure sits low in the view, where the sky is lightest: a soft navy halo keeps it legible (as in places/reels) */
.how__caption { margin: 14px auto 0; max-width: 36ch; text-align: center; font-size: 14.5px; font-weight: 500; line-height: 1.45; color: var(--text); text-wrap: balance; text-shadow: 0 1px 12px rgba(11, 28, 74, 0.5); }

/* ---------- steps: paper-glass rows, the live one lifts and draws a butter underline ---------- */
.how__steps { grid-area: steps; display: grid; gap: 10px; margin-top: clamp(26px, 3vw, 36px); }
.how__step {
  transform: translate3d(0, 0, 0);
  transition: transform var(--dur) var(--ease-spring);
  will-change: transform;
}
.how__step:hover { background: rgba(246, 249, 255, 0.95); }
.how__step.is-on {
  transform: translate3d(0, -4px, 0); background: rgba(246, 249, 255, 0.97);
  box-shadow: inset 0 1px 0 var(--glass-highlight), inset 0 0 0 1px var(--glass-edge), var(--shadow-lg);
}
.how__stepbtn {
  width: 100%; min-height: 44px;
  display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 14px;
  padding: 15px 20px 17px; text-align: left; border-radius: inherit;
}
.how__n {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums;
  background: rgba(12, 24, 56, 0.07); color: var(--ink);
  transition: transform var(--dur) var(--ease-spring);
}
.how__step.is-on .how__n { background: var(--butter); color: var(--sky-900); transform: scale(1.08); }
.how__text { display: block; min-width: 0; }
.how__text b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 19px; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.how__text small { display: block; margin-top: 3px; font-size: 14.5px; line-height: 1.4; color: var(--ink-soft); text-wrap: pretty; }
.how__line {
  position: absolute; left: 20px; right: 20px; bottom: 0; height: 3px; border-radius: 3px;
  background: var(--butter); transform-origin: left center; transform: scaleX(0);
}

/* ---------- link ---------- */
.how__cta { grid-area: cta; justify-self: start; margin-top: clamp(22px, 2.6vw, 30px); }

/* ---------- tablet: one centred column, heading, film, rows, link ---------- */
@media (max-width: 899px) {
  .how__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "title" "media" "steps" "cta";
    row-gap: 0;
    max-width: 640px;
  }
  .how__title { max-width: none; justify-self: center; text-align: center; }
  .how__media { max-width: 360px; margin-top: 28px; }
  .how__steps { margin-top: 32px; }
  .how__cta { justify-self: center; }
}

/* ---------- phone: its own layout, not a shrunk desktop ---------- */
@media (max-width: 767px) {
  .how__title { font-size: clamp(2.1rem, 9.2vw, 2.6rem); max-width: 12ch; justify-self: start; text-align: left; }
  .how__cta { justify-self: stretch; }
  .how__media { max-width: 300px; margin-top: 22px; }
  .how__phone { --bezel: 6px; }
  .how__ctrl { left: 12px; bottom: 12px; }
  .how__caption { font-size: 14px; max-width: 30ch; }
  .how__steps { gap: 8px; margin-top: 26px; }
  .how__step.is-on { transform: translate3d(0, -3px, 0); }
  .how__stepbtn { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 14px 16px 16px; }
  .how__n { width: 32px; height: 32px; font-size: 14px; }
  .how__text b { font-size: 18px; }
  .how__text small { font-size: 14px; }
  .how__line { left: 16px; right: 16px; }
  .how__cta { justify-self: stretch; margin-top: 18px; }
}

/* ---------- reduced motion: final states, no lift ---------- */
@media (prefers-reduced-motion: reduce) {
  .how__step, .how__step.is-on { transform: none; will-change: auto; }
  .how__step.is-on .how__n { transform: none; }
}


/* ===== src/css/75-feed.css ===== */
/* ==========================================================================
   Feed: a 4 x 3 grid of Instagram posts on the sky, one link to the profile.
   Tiles are double-bezel frames; hover lifts a tile and shows a glass "Open Instagram" chip.
   Phone: two columns, the first eight posts.
   ========================================================================== */
.feed .hl { white-space: nowrap; }

.feed__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 16px);
  text-decoration: none; color: var(--cloud);
  border-radius: var(--r-xl);
}
.feed__grid:focus-visible { outline-offset: 8px; border-radius: var(--r-xl); }

.feed__item {
  position: relative; display: block;
  transition: transform var(--dur) var(--ease-spring), background-color var(--dur-fast) var(--ease-out);
}
.feed__item .media { display: block; aspect-ratio: 4 / 5; border-radius: calc(var(--r-xl) - var(--bezel)); }
.feed__item img { transition: transform 1.1s var(--ease-out); }

.feed__item::after {
  content: "Open Instagram \2197";
  position: absolute; left: 50%; bottom: 18px; z-index: 1;
  padding: 9px 14px; border-radius: var(--r-pill); white-space: nowrap;
  background: rgba(11, 28, 74, 0.4); color: var(--cloud);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  font-weight: 700; font-size: 13.5px; line-height: 1;
  opacity: 0; transform: translate(-50%, 8px);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur) var(--ease-spring);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .feed__item:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.16); }
  .feed__item:hover img { transform: scale(1.05); }
  .feed__item:hover::after { opacity: 1; transform: translate(-50%, 0); }
}

@media (prefers-reduced-transparency: reduce) {
  .feed__item::after { background: var(--sky-900); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (max-width: 1023px) {
  .feed__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .feed .section__head--split { align-items: flex-start; }
  .feed__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .feed__item { --bezel: 4px; }
  .feed__item:nth-child(n + 9) { display: none; }
  .feed__item::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .feed__item, .feed__item:hover, .feed__item:hover img { transform: none; }
}


/* ===== src/css/80-stores.css ===== */
/* ==========================================================================
   Stores: a compact frost band. "Also on" + three marketplace links (44px+ pills) + a quiet line.
   Desktop: one row. Phone: the label on top, the links as a row of equal pills, the note below.
   ========================================================================== */
/* sits right under the feed, whose section padding already gives the space above */
.stores { padding-block: 0 clamp(32px, 4vw, 56px); }

.stores__band {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 28px;
  padding: 18px 18px 18px clamp(20px, 3vw, 32px);
}
.stores__title { font-weight: 700; font-size: var(--fs-small); color: var(--text-soft); white-space: nowrap; }
.stores__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.stores__note { font-size: var(--fs-small); color: var(--text-soft); white-space: nowrap; }

.store {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 20px; border-radius: var(--r-pill);
  color: var(--cloud); text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur) var(--ease-spring), box-shadow var(--dur-fast);
}
.store:hover { background: rgba(255, 255, 255, 0.18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); transform: translateY(-2px); }
.store:active { transform: scale(0.97); }
.store__ico { width: 22px; height: 22px; flex: none; }
.store__name { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1; }
.store__name--mark { font-size: 1.35rem; letter-spacing: -0.035em; }

@media (max-width: 899px) {
  .stores__band { flex-direction: column; align-items: stretch; text-align: center; padding: 20px 16px; gap: 14px; }
  .stores__list { justify-content: center; }
}
@media (max-width: 420px) {
  .stores__list { gap: 6px; }
  .store { min-height: 48px; padding: 0 12px; gap: 7px; }
  .store__ico { width: 17px; height: 17px; }
  .store__name { font-size: 1.02rem; }
  .store__name--mark { font-size: 1.06rem; }
}

@media (prefers-reduced-motion: reduce) {
  .store:hover, .store:active { transform: none; }
}


/* ===== src/css/89-legacy-responsive.css ===== */
/* v1.0 responsive + reduced-motion rules for the sections, kept until each section moves its own rules into its file. Nav, cart, sheet, footer and mbar rules were removed (rewritten in 04/05/06). */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bcard--wide { grid-column: span 4; }
  .bcard--tall { grid-column: span 2; grid-row: span 1; }
  .bcard--half { grid-column: span 2; }
  .bcard--half:last-child { grid-column: span 4; }
  .bcard { min-height: 0; }
  .bcard .bcard__packs,
  .bcard--half .bcard__packs,
  .bcard--tall .bcard__packs,
  .bcard--wide .bcard__packs { position: relative; z-index: 0; order: 1; right: auto; bottom: auto; width: 100%; height: 190px; margin: 4px 0 -6px; }
  .bcard__buy { order: 2; }
  .bcard--half .bcard__items, .bcard--wide .bcard__items { max-width: 40ch; }
  .builder__rows { grid-template-columns: 1fr; }
  .brow { grid-template-columns: 64px 1fr auto; grid-template-rows: auto auto; }
  .brow__img { width: 64px; height: 64px; }
  .brow__img img { max-height: 64px; }
  .brow .qty { grid-column: 3; grid-row: 1 / 3; margin: 0; }
}

@media (max-width: 1024px) {
  /* chroma: title on top, product centre, card bottom */
  .chroma__pin {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto auto;
    row-gap: 14px;
    padding-top: calc(var(--nav-h) + 26px);
  }
  .chroma__tabs { grid-row: 1; }
  .chroma__titles { grid-column: 1; grid-row: 2; min-height: 1.7em; align-self: start; text-align: center; font-size: clamp(2.5rem, 11vw, 7.5rem); }
  .chroma__title { left: 50%; top: 0; transform: translateX(-50%); font-size: inherit; display: flex; gap: .22em; }
  .chroma__title > span { display: inline-block; }
  .chroma__stage { grid-column: 1; grid-row: 3; }
  .chroma__pack { max-height: min(46vh, 520px); }
    .chroma__copy { grid-column: 1; grid-row: 4; text-align: center; justify-self: center; }
  .chroma__desc { margin: 0 auto; }
  .buycard { grid-column: 1; grid-row: 5; justify-self: center; width: min(100%, 520px); grid-template-columns: 56px 1fr auto; }
  .buycard__thumb { width: 56px; height: 56px; }
  .chroma__dots { display: none; }
}

@media (max-width: 900px) {
  .bundles__head { grid-template-columns: 1fr; }
  .stack__card { grid-template-columns: 1fr; min-height: 0; }
  .stack__media { aspect-ratio: 16 / 10; order: -1; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  :root { --nav-h: 64px; }
  .film { height: 500vh; }
  .film__hint { display: none; }
  .beat { bottom: 92px; }
  .beat__title { font-size: clamp(2.6rem, 12.5vw, 4rem); }
  .beat__ctas .btn { flex: 1 1 auto; }
  .chroma { height: 320vh; }
  .chroma__tab { padding: 0 12px; font-size: 13px; }
  .chroma__pack { max-height: 100%; }
  .chroma__desc { font-size: 15px; }
  .buycard { grid-template-columns: 52px 1fr; padding: 12px; margin-bottom: 70px; }
  .buycard__thumb { width: 52px; height: 52px; }
  .buycard__actions { grid-column: 1 / -1; flex-direction: row; }
  .bento { grid-template-columns: 1fr; }
  .bcard--wide, .bcard--tall, .bcard--half, .bcard--half:last-child { grid-column: auto; grid-row: auto; }
  .bcard { min-height: 340px; }
  .bcard__packs { width: 56%; height: 64%; }
  .builder__head { grid-template-columns: 1fr; }
  .brow { grid-template-columns: 56px 1fr; }
  .brow__img { width: 56px; height: 56px; }
  .brow__img img { max-height: 56px; }
  .brow .qty { grid-column: 1 / -1; grid-row: auto; margin-top: 8px; }
  .builder__foot .btn { width: 100%; }
  .stack__card { top: calc(var(--nav-h) + 20px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee__track { animation: none; }
  .film { height: auto; }
  .film__stage { position: relative; height: 100svh; }
  .chroma { height: auto; }
  .chroma__pin { position: relative; }
  .stack__card { position: relative; top: auto; }
}



/* ===== src/css/90-cta.css ===== */
/* ==========================================================================
   Closing CTA: the one big glass panel, the hanging pack standing sharp in its right side
   and breaking out of its top and bottom edges, so panel and pack read as one composition.
   Phone: pack above the copy (height-capped, never wider than the screen), panel below.
   ========================================================================== */
.cta__grid { position: relative; }
.cta__panel {
  display: flex; flex-direction: column; justify-content: center;
  min-height: clamp(360px, 34vw, 460px);
  padding: clamp(44px, 6vw, 96px) clamp(28px, 5vw, 80px);
  padding-right: clamp(240px, 32vw, 420px);
}
.cta__title { max-width: 11ch; }
.cta__line { color: var(--text-soft); margin-top: 18px; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 3vw, 36px); }

.cta__art {
  position: absolute; z-index: 2; top: 50%; right: clamp(16px, 5vw, 90px);
  width: clamp(220px, 26vw, 340px);
  display: grid; place-items: center;
  transform: translateY(-50%);
  pointer-events: none;
}
.cta__glow {
  position: absolute; width: 130%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(122, 162, 242, 0.5), rgba(122, 162, 242, 0));
}
.cta__pack {
  position: relative; width: auto; max-width: none; height: clamp(400px, 44vw, 620px);
  transform: rotate(-6deg);
  filter: drop-shadow(0 30px 40px rgba(8, 20, 60, 0.45));
}

@media (max-width: 767px) {
  .cta__grid { display: grid; }
  .cta__art { grid-row: 1; position: relative; top: auto; right: auto; width: auto; transform: none; margin: 0 0 -56px; }
  .cta__glow { width: min(320px, 80vw); }
  .cta__pack { height: 300px; max-width: 100%; }
  .cta__panel { grid-row: 2; min-height: 0; padding: 76px 22px 28px; text-align: center; align-items: center; }
  .cta__btns { flex-direction: column; align-self: stretch; }
  .cta__btns .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cta__pack { transform: rotate(-6deg) !important; }
}


/* ===== src/css/91-commerce.css ===== */
/* ==========================================================================
   Commerce: shared storefront pieces for the backend features (P1-F, spec 8).
   - .nav__acct          the account chip in the nav (core/57-auth.js renders it; TP-4 moves these rules
                         into 04-nav.css once TP-3 puts the markup in the nav partial)
   - .pb-ribbon          mode ribbon ("Demo mode: no money moves"); --sandbox, --alert (a sandbox window on the
                         live host), --site (the small fixed test ribbon for non-live hosts)
   - .pb-banner          calm banner (503 paused, offline, errors) with an optional action
   - .pb-sheet           confirm sheet (price changed): a centred dialog on desktop, a bottom sheet on phones
   Markup the pages use (P2-G, P2-H):
     <p class="pb-ribbon" role="note">Demo mode: no money moves</p>
     <div class="pb-banner" role="status">
       <svg class="pb-banner__icon" aria-hidden="true">...</svg>
       <p class="pb-banner__text">Checkout is paused for a few minutes. Your cart is saved.</p>
       <button type="button" class="btn btn--ink btn--sm pb-banner__action">Try again</button>
     </div>
     <div class="pb-sheet" role="dialog" aria-modal="true" aria-labelledby="t" aria-describedby="d" hidden>
       <div class="pb-sheet__backdrop" data-pb-sheet-close></div>
       <div class="pb-sheet__panel">
         <h2 class="pb-sheet__title" id="t">Prices were updated</h2>
         <p class="pb-sheet__text" id="d">Your new total is ₹1,040.</p>
         <div class="pb-sheet__actions"><button class="btn btn--primary">Continue</button>
           <button class="btn btn--ghost" data-pb-sheet-close>Back</button></div>
       </div>
     </div>
     Open: remove [hidden], then add .is-open on the next frame; close: remove .is-open, then set [hidden] after
     var(--dur-fast). Focus, Escape and the focus trap belong to the page (PB.ui.trapFocus, PB.ui.saveFocus).
   Motion is transform and opacity only, and reduced motion gets the final states.
   ========================================================================== */

/* ---------- account chip (nav) ---------- */
/* a slot shows only once 57-auth.js has painted it (it sets data-auth-state), so the static deploy, where the
   backend is off and nothing paints, never shows one, not even for a frame before the script runs */
[data-auth-slot][hidden], [data-auth-slot]:not([data-auth-state]) { display: none !important; }
.nav__acct {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none;
  height: 46px; min-width: 46px; padding: 0 16px 0 12px; border-radius: var(--r-pill);
  color: var(--cloud); font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap; text-decoration: none;
  /* deep glass: a white tint would pull the label under 4.5:1 where the nav floats over the hero's light first
     frame; a deep one adds contrast there and still reads as glass beside the solid cart */
  background: rgba(11, 28, 74, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur) var(--ease-spring);
}
.nav__acct:hover { background: rgba(11, 28, 74, 0.64); }
.nav__acct:active { transform: scale(0.95); transition-duration: var(--dur-fast); }
.nav__acct:focus-visible { border-radius: var(--r-pill); outline: 3px solid var(--butter); outline-offset: 3px; }
.nav__acct-icon { width: 20px; height: 20px; flex: none; }
.nav__acct-initials {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--cloud); color: var(--sky-900);
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.02em; font-variant-numeric: tabular-nums;
}
.nav__acct[data-auth-state="in"] { padding-left: 8px; }
/* a label that changes (checking, then the name) fades in rather than snapping */
.nav__acct-label { display: inline-block; animation: pb-acct-in var(--dur-fast) var(--ease-out) both; }
@keyframes pb-acct-in { from { opacity: 0; } to { opacity: 1; } }

/* "Your orders" in the phone menu rises with the others, after Contact */
.menu__links a[data-pb-injected] { --i: 6; }

@media (max-width: 900px) {
  .nav__acct { height: 44px; min-width: 44px; padding: 0 14px 0 11px; }
  .nav__acct[data-auth-state="in"] { padding-left: 7px; }
}
/* phones: the icon (or the initials) only, a round 44 px target */
@media (max-width: 767px) {
  .nav__acct, .nav__acct[data-auth-state="in"] { width: 44px; padding: 0; gap: 0; }
  .nav__acct-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav__acct, .nav__acct:active { transform: none; transition: none; }
  .nav__acct-label { animation: none; }
}

/* ---------- mode ribbon ---------- */
.pb-ribbon {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 36px; margin: 0; padding: 8px 18px; border-radius: var(--r-pill);
  color: var(--sky-900); font-weight: 700; font-size: var(--fs-small); line-height: 1.3; text-align: center;
  background: var(--butter);
  background: repeating-linear-gradient(-45deg, var(--butter) 0 12px, color-mix(in srgb, var(--butter) 76%, var(--cloud)) 12px 24px);
  box-shadow: inset 0 0 0 1px rgba(12, 24, 56, 0.12);
}
.pb-ribbon--sandbox { background: repeating-linear-gradient(-45deg, var(--cloud) 0 12px, var(--sky-100) 12px 24px); }
/* a sandbox window on the live host: the one place a state colour shows, and only as text and its outline */
.pb-ribbon--alert { color: var(--danger); background: var(--cloud); box-shadow: inset 0 0 0 2px currentColor; }
.pb-ribbon--site {
  position: fixed; z-index: var(--z-mbar); left: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  min-height: 28px; padding: 5px 12px; font-size: var(--fs-micro); pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(12, 24, 56, 0.12), var(--shadow-sm);
}
@media (max-width: 767px) {
  .pb-ribbon { border-radius: var(--r-md); }
  .pb-ribbon--site { left: 50%; transform: translateX(-50%); bottom: auto; top: calc(var(--nav-h) + 16px); border-radius: var(--r-pill); }
}

/* ---------- calm banner ---------- */
.pb-banner {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 14px 14px 14px 16px; border-radius: var(--r-lg);
  /* solid paper: it sits over the sky or a busy page, and its red error line must keep 4.5:1 */
  background: var(--cloud); color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 0 0 1px var(--paper-edge), var(--shadow-md);
  animation: pb-rise var(--dur) var(--ease-out) both;
}
.pb-banner[hidden] { display: none; }
.pb-banner__icon { width: 24px; height: 24px; color: var(--blue); flex: none; }
.pb-banner__text { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.45; }
.pb-banner__text b { font-weight: 700; }
.pb-banner__action { justify-self: end; }
.pb-banner--error .pb-banner__text { color: var(--danger); font-weight: 600; }
.pb-banner :focus-visible { outline-color: var(--sky-900); }
@media (max-width: 767px) {
  .pb-banner { grid-template-columns: auto minmax(0, 1fr); }
  .pb-banner__action { grid-column: 1 / -1; justify-self: stretch; }
}

/* ---------- confirm sheet ---------- */
.pb-sheet { position: fixed; inset: 0; z-index: var(--z-sheet); display: grid; place-items: center; padding: 16px; }
.pb-sheet[hidden] { display: none; }
.pb-sheet__backdrop {
  position: absolute; inset: 0; background: rgba(8, 16, 40, 0.5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity var(--dur-fast) var(--ease-out);
}
.pb-sheet__panel {
  position: relative; display: grid; gap: 12px; width: min(440px, 100%); padding: 26px 24px 22px;
  border-radius: var(--r-xl); background: var(--cloud); color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 0 0 1px var(--paper-edge), var(--shadow-lg);
  opacity: 0; transform: translateY(16px) scale(0.98);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur) var(--ease-spring);
}
.pb-sheet.is-open .pb-sheet__backdrop { opacity: 1; }
.pb-sheet.is-open .pb-sheet__panel { opacity: 1; transform: none; }
.pb-sheet__title { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.45rem, 2.4vw, 1.8rem); line-height: 1.05; letter-spacing: -0.02em; }
.pb-sheet__text { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.pb-sheet__text b, .pb-sheet__text .num { color: var(--ink); font-weight: 700; }
.pb-sheet__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.pb-sheet__actions .btn:only-child { grid-column: 1 / -1; }
.pb-sheet :focus-visible { outline-color: var(--sky-900); }
/* a ghost button on paper: ink type and an ink outline (the base ghost is white, for the sky) */
.pb-sheet .btn--ghost, .pb-banner .btn--ghost { color: var(--sky-900); box-shadow: inset 0 0 0 1.5px rgba(12, 24, 56, 0.28); }
.pb-sheet .btn--ghost:hover, .pb-banner .btn--ghost:hover { background: rgba(12, 24, 56, 0.06); }
@media (max-width: 767px) {
  .pb-sheet { place-items: end stretch; padding: 0; }
  .pb-sheet__panel {
    width: 100%; border-radius: var(--r-xl) var(--r-xl) 0 0;
    padding: 24px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%);
    transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur) var(--ease-spring);
  }
  .pb-sheet__actions { grid-template-columns: 1fr; }
  .pb-sheet__actions .btn { width: 100%; }
}

@keyframes pb-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .pb-banner { animation: none; }
  .pb-sheet__panel, .pb-sheet.is-open .pb-sheet__panel { transform: none; transition: opacity 0.12s linear; }
  .pb-sheet__backdrop { transition: opacity 0.12s linear; }
}
@media (prefers-reduced-transparency: reduce) {
  .pb-sheet__backdrop { background: rgba(8, 16, 40, 0.78); -webkit-backdrop-filter: none; backdrop-filter: none; }
}


/* ===== src/css/95-checkout.css ===== */
/* ==========================================================================
   Checkout and order pages (P2-G, spec 8.3 and 8.4). src/pages/checkout.html + src/js/pages/checkout.js,
   src/pages/account/order.html + src/js/pages/order.js. Shared pieces (.pb-ribbon, .pb-banner, .pb-sheet) live in
   91-commerce.css; field, input, chip, qty and btn come from 03-components.css.
   - .co          the checkout: page head, a two column grid from 960 px (the form, then a sticky summary that holds
                  the Pay button), one column below it with the order folded under one line (.co__peek) and the
                  Pay button as a bar fixed to the bottom of the screen
   - .co__card    one paper card per step (Contact, Delivery, Payment); .co__method and .co__addr are choosable cards
   - .co__line    an order line (thumb on the product's colour, quantity badge, name, unit, total), also on the order page
   - .ord         the order page: the state card (.ord__hero) with its mark, then the details grid (progress stepper,
                  items and totals, what happens next, delivery, payment, help, timeline)
   Paper surfaces keep ink type and an ink focus ring (butter on paper reads at 1.5:1); butter stays the one accent:
   the Pay button, the tier meter, the progress fill and the paid mark. Motion is transform, opacity and clip-path
   only; reduced motion lands on the final state (01-base.css collapses every animation).
   ========================================================================== */

.co, .ord { --co-line: rgba(12, 24, 56, 0.12); --co-tint: rgba(12, 24, 56, 0.05); padding-bottom: var(--section-sm); accent-color: var(--sky-900); }
.co [hidden], .ord [hidden] { display: none !important; }
.co-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.co .glass--paper :focus-visible, .ord .glass--paper :focus-visible { outline-color: var(--sky-900); }
.co .btn--sm, .ord .btn--sm { --h: 44px; }
/* the paper cards here carry the form: a touch more solid than the default paper so small grey type keeps 4.5:1 */
.co .glass--paper, .ord .glass--paper { background: rgba(246, 249, 255, 0.95); }

/* this page has its own sticky bar and its own ribbon: the cart bar and the small site ribbon step aside */
body[data-page="checkout"] .mbar { display: none !important; }
body[data-page="checkout"] [data-pb-site-ribbon], body[data-page="order"] [data-pb-site-ribbon] { display: none; }

/* ---------- page head ---------- */
.co__head, .ord__head { padding: calc(var(--nav-h) + clamp(28px, 5vw, 64px)) 0 clamp(18px, 2.6vw, 28px); }
.co__head .crumbs, .ord__head .crumbs { margin-bottom: 14px; }
.co__titlerow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.co__title, .ord__title {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(2.3rem, 4.8vw, 3.8rem);
  line-height: 0.95; letter-spacing: -0.03em; color: var(--cloud); text-wrap: balance;
}
.ord__title:focus { outline: none; }
.co__secure {
  display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px 0 11px;
  border-radius: var(--r-pill); background: rgba(11, 28, 74, 0.5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  color: var(--cloud); font-weight: 700; font-size: 13.5px;
}
.co__secure svg { width: 16px; height: 16px; }
.co__lede, .ord__sub { margin-top: 12px; max-width: 52ch; color: var(--cloud); font-size: var(--fs-lede); }
.ord__sub { font-size: 16px; color: var(--text-soft); }
.co__ribbon, .ord__ribbon { display: inline-flex; margin-top: 16px; }

.co__banner, .ord__banner { margin-bottom: 16px; }
.co__banner:focus, .ord__banner:focus { outline: none; }
.co__banner:focus-visible, .ord__banner:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; }

/* ---------- loading, empty, static ---------- */
.co__loading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 410px); gap: clamp(16px, 2vw, 28px); align-items: start; }
.co__skel { display: grid; align-content: start; gap: 14px; min-height: 280px; padding: clamp(22px, 3vw, 32px); }
.co__skel--side { min-height: 360px; }
.co__skel-line { display: block; height: 16px; border-radius: var(--r-pill); }
.co__skel-line--title { height: 26px; width: 42%; margin-bottom: 8px; }
.co__skel-line--short { width: 56%; }
.co__skel-thumb { display: block; height: 64px; border-radius: 14px; }
.ord__loading { max-width: 760px; }

.co__state { display: grid; justify-items: center; gap: 14px; max-width: 560px; margin: 8px auto 0; padding: clamp(32px, 6vw, 60px) 24px; text-align: center; }
.co__state-img { width: 64px; height: auto; transform: rotate(-6deg); filter: drop-shadow(0 16px 18px rgba(8, 20, 60, 0.3)); }
.co__state-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.co__state-title:focus { outline: none; }
.co__state-text { max-width: 40ch; color: var(--ink-soft); }
.co__state .btn { margin-top: 6px; }

/* ---------- the grid ---------- */
.co__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 410px); gap: clamp(16px, 2vw, 28px); align-items: start; }
.co__main { display: grid; gap: clamp(14px, 1.6vw, 20px); min-width: 0; }
.co__peek { display: none; }

.co__card { display: grid; gap: 18px; padding: clamp(20px, 2.6vw, 32px); }
.co__cardhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.co__h2 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.3rem, 1.9vw, 1.55rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.co__aside { font-size: 14px; color: var(--ink-soft); }
.co__eta { display: inline-flex; align-items: center; gap: 8px; }
.co__eta svg { width: 20px; height: 20px; flex: none; color: var(--sky-700); }
.co__eta b { color: var(--ink); }

.co__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px 16px; }
.co__fields > .field, .co__codefield, .co__more > .field { align-content: start; }
.co__f { min-width: 0; }
.co__f--full { grid-column: 1 / -1; }
.co__f .error { line-height: 1.4; }
.co__f .hint { line-height: 1.4; }
.co__opt-tag { margin-left: 4px; font-weight: 500; font-size: 13px; color: var(--ink-soft); }
.co__mono { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.co__pinfound { align-self: center; margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.co__pinfound:empty { display: none; }

/* the mobile number: one control with a fixed +91 */
.co__tel {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch;
  border-radius: var(--r-md); background: #fff; border: 1.5px solid rgba(12, 24, 56, 0.16);
}
.co__tel:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(43, 95, 208, 0.18); }
.field.is-invalid .co__tel { border-color: var(--danger); }
.co__tel-cc { display: grid; place-items: center; padding: 0 2px 0 16px; font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.co__tel .input, .co__tel .input:focus { border: 0; box-shadow: none; background: transparent; padding-left: 8px; border-radius: 0 var(--r-md) var(--r-md) 0; }

.co__select {
  appearance: none; -webkit-appearance: none; padding-right: 46px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5' fill='none' stroke='%230c1838' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 16px;
}
.co__note { min-height: 92px; }

/* checkboxes: ink ticks on paper, every row a 44 px target */
.co__check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; line-height: 1.35; color: var(--ink); cursor: pointer; }
.co__check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--sky-900); cursor: pointer; }

/* disclosures (delivery note, GSTIN, the discount code) */
.co__more { border-top: 1px solid var(--co-line); padding-top: 4px; }
.co__more-sum {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px;
  padding: 0 4px; border-radius: var(--r-sm); list-style: none; cursor: pointer;
  font-weight: 700; font-size: 15px; color: var(--ink);
}
.co__more-sum::-webkit-details-marker { display: none; }
.co__more[open] > .co__more-sum { margin-bottom: 8px; }
.co__chev { width: 18px; height: 18px; flex: none; transition: transform var(--dur-fast) var(--ease-out); }
.co__more[open] > .co__more-sum .co__chev, .co__peek-btn[aria-expanded="true"] .co__chev { transform: rotate(180deg); }
.co__more > .field, .co__more > .co__fields { padding-bottom: 6px; }

/* text buttons (Edit cart, Not you, Remove): ink blue, underline drawn in, 44 px tall */
.co__textbtn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; border-radius: var(--r-sm);
  font-weight: 700; font-size: 14.5px; color: var(--sky-700);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: rgba(20, 50, 126, 0.35);
}
.co__textbtn:hover { text-decoration-color: currentColor; }
.co__textbtn--inline { vertical-align: middle; }

/* signed in */
.co__signed { display: flex; align-items: center; gap: 12px; padding: 6px 14px 6px 8px; border-radius: var(--r-pill); background: var(--co-tint); box-shadow: inset 0 0 0 1px var(--co-line); }
.co__avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--sky-900); color: var(--cloud); font-weight: 800; font-size: 13px; letter-spacing: 0.02em; }
.co__signed-text { margin: 0; font-size: 14.5px; color: var(--ink); line-height: 1.4; }
.co__signed-text b { overflow-wrap: anywhere; }

/* choosable cards: payment methods and saved addresses (the real radio sits over the card, invisible) */
.co__methods, .co__saved { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.co__legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.co__saved-list { display: grid; gap: 10px; }
.co__method, .co__addr {
  position: relative; display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 14px;
  min-height: 66px; padding: 14px 16px; border-radius: var(--r-lg); cursor: pointer;
  background: rgba(255, 255, 255, 0.72); box-shadow: inset 0 0 0 1.5px rgba(12, 24, 56, 0.14);
}
.co__addr { grid-template-columns: auto minmax(0, 1fr); }
.co__method input, .co__addr input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.co__method:hover, .co__addr:hover { background: #fff; }
.co__method:has(input:checked), .co__addr:has(input:checked), .co__method.is-on, .co__addr.is-on { background: #fff; box-shadow: inset 0 0 0 2px var(--sky-900), var(--shadow-sm); }
.co__method:has(input:focus-visible), .co__addr:has(input:focus-visible) { outline: 3px solid var(--sky-900); outline-offset: 3px; }
.co__radio { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(12, 24, 56, 0.42); }
.co__radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sky-900); transform: scale(0); transition: transform var(--dur-fast) var(--ease-spring); }
:checked ~ .co__radio { box-shadow: inset 0 0 0 2px var(--sky-900); }
:checked ~ .co__radio::after { transform: scale(1); }
.co__method-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--co-tint); color: var(--sky-900); }
.co__method-ico svg { width: 22px; height: 22px; }
.co__method-text, .co__addr-text { display: grid; gap: 2px; min-width: 0; }
.co__method-text b, .co__addr-text b { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; font-size: 15.5px; color: var(--ink); }
.co__method-text small, .co__addr-text small { font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); }
.co__chip { min-height: 22px; padding: 0 9px; font-size: 12px; }

/* notices from the quote (sold out, capped quantities) */
.co__notes { display: grid; gap: 8px; }
.co__notes:empty { display: none; }
.co__note-line {
  display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 16px; border-radius: var(--r-md);
  background: var(--cloud); color: var(--ink); font-size: 14.5px; font-weight: 600; line-height: 1.45;
  box-shadow: inset 0 0 0 1px var(--paper-edge), var(--shadow-sm);
  animation: pb-rise var(--dur) var(--ease-out) both;
}
.co__note-line svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--blue); }

/* ---------- the summary ---------- */
.co__sum {
  --sum-pad: clamp(20px, 2.2vw, 26px); --sum-gap: 14px;
  position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: var(--sum-gap);
  max-height: calc(100dvh - var(--nav-h) - 40px); overflow: auto; overscroll-behavior: contain;
  padding: var(--sum-pad); scrollbar-width: thin;
}
.co__sumhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.co__lines { display: grid; gap: 12px; margin: 0; padding: 0; }
.co__line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.co__thumb {
  position: relative; display: grid; place-items: center; width: 56px; height: 64px; border-radius: 14px;
  background: radial-gradient(85% 85% at 50% 30%, var(--th-bg2, var(--sky-300)) 0%, var(--th-bg, var(--blue)) 82%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.co__thumb img { width: 32px; height: 52px; object-fit: contain; filter: drop-shadow(0 6px 7px rgba(8, 20, 60, 0.32)); }
.co__qtybadge {
  position: absolute; top: -7px; right: -7px; display: grid; place-items: center; min-width: 23px; height: 23px; padding: 0 6px;
  border-radius: var(--r-pill); background: var(--sky-900); color: var(--cloud); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px var(--cloud);
}
.co__line-body { display: grid; gap: 2px; min-width: 0; }
.co__line-name { font-weight: 700; font-size: 15px; line-height: 1.25; color: var(--ink); }
.co__line-meta { font-size: 13.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.co__line-note { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.co__line-total { font-weight: 700; color: var(--ink); white-space: nowrap; }
.co__qty { margin-top: 8px; min-width: 124px; height: 44px; grid-template-columns: 44px 1fr 44px; }

.co__tier { display: grid; gap: 10px; padding: 14px 16px; border-radius: var(--r-md); background: var(--co-tint); box-shadow: inset 0 0 0 1px var(--co-line); }
.co__tier-text { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.co__meter { position: relative; height: 8px; border-radius: 8px; background: rgba(12, 24, 56, 0.1); overflow: hidden; }
.co__meter span {
  position: absolute; inset: 0; border-radius: inherit; background: var(--butter); box-shadow: inset 0 0 0 1px rgba(12, 24, 56, 0.16);
  clip-path: inset(0 calc((1 - var(--x, 0)) * 100%) 0 0 round 8px); transition: clip-path var(--dur-slow) var(--ease-out);
}

.co__code-sum { display: inline-flex; align-items: center; gap: 10px; }
.co__code-sum svg { width: 18px; height: 18px; color: var(--sky-700); }
.co__codefield { display: grid; gap: 6px; }
.co__coderow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.co__codebtn { --h: 50px; --pad: 20px; }
.co__codeok { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }

.co__totals { display: grid; gap: 9px; margin: 0; padding-top: 16px; border-top: 1px solid var(--co-line); }
.co__trow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 15px; }
.co__trow dt { color: var(--ink-soft); }
.co__trow dt small { margin-left: 6px; font-size: 13px; color: var(--ink-soft); }
.co__trow dd { margin: 0; font-weight: 700; color: var(--ink); white-space: nowrap; }
.co__trow--save dt, .co__trow--save dd { color: var(--ink); }
.co__trow--save dt::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--butter); box-shadow: 0 0 0 1px rgba(12, 24, 56, 0.2); vertical-align: 1px; }
.co__trow--total { align-items: end; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--co-line); }
.co__trow--total dt { display: grid; gap: 2px; font-weight: 700; color: var(--ink); }
.co__trow--total dt small { margin: 0; font-weight: 500; }
.co__trow--total dd { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.7rem, 2.4vw, 2rem); line-height: 1; letter-spacing: -0.02em; }
.co__totals:empty { display: none; }
/* no quote yet (paused, offline): the lines without prices, and this one quiet line where the totals go */
.co__sumnote { margin: 0; padding-top: 16px; border-top: 1px solid var(--co-line); font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--ink-soft); }

.co__consent { display: grid; gap: 2px; padding-top: 4px; }
.co__notice { margin: 0 0 6px; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.co__notice a { color: var(--sky-700); font-weight: 700; text-underline-offset: 3px; }

.co__checkout { display: grid; gap: 10px; }
.co__trust { order: 2; margin: 0; font-size: 13px; line-height: 1.45; text-align: center; color: var(--ink-soft); text-wrap: balance; }
.co__pay { order: 1; display: grid; gap: 10px; }
/* desktop: the summary is one card no taller than the screen. When the order would make it taller, the part above
   the totals (lines, bundle saving, the code) scrolls inside the card, and the totals, Pay and its line of
   reassurance stay in view below it, never covered. That scrolling part gets a soft fade on the edge that has
   more and is a keyboard scrollable region while it scrolls (checkout.js sets tabindex). Only a screen too short
   even for that scrolls the whole card (.is-over), with Pay pinned to its bottom edge on opaque paper */
.co__sumbody, .co__sumscroll { display: contents; }
@media (min-width: 960px) {
  .co__sum { display: flex; flex-direction: column; }
  .co__sum > * { flex: none; }
  .co__sum > .co__sumbody { position: relative; flex: 0 1 auto; display: flex; flex-direction: column; min-height: 96px; margin: -8px calc(-1 * var(--sum-pad) + 8px); }
  .co__sumscroll {
    display: flex; flex-direction: column; gap: var(--sum-gap); flex: 1 1 auto; min-height: 0;
    overflow-y: auto; overscroll-behavior: contain; padding: 8px calc(var(--sum-pad) - 8px); scrollbar-width: thin;
  }
  .co__sumscroll > * { flex: none; }
  /* the fade: the content itself fades out at the edge that has more (a mask, so the card shows through as it is) */
  .co__sumbody.has-below > .co__sumscroll { -webkit-mask-image: linear-gradient(#000 calc(100% - 32px), transparent); mask-image: linear-gradient(#000 calc(100% - 32px), transparent); }
  .co__sumbody.has-above > .co__sumscroll { -webkit-mask-image: linear-gradient(transparent, #000 32px); mask-image: linear-gradient(transparent, #000 32px); }
  .co__sumbody.has-above.has-below > .co__sumscroll { -webkit-mask-image: linear-gradient(transparent, #000 32px, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(transparent, #000 32px, #000 calc(100% - 32px), transparent); }
  .co__sumbody > .co__sumscroll:focus-visible { -webkit-mask-image: none; mask-image: none; outline: 3px solid var(--sky-900); outline-offset: -3px; border-radius: var(--r-md); }
  .co__sum > .co__checkout { position: sticky; bottom: calc(-1 * var(--sum-pad)); z-index: 3; margin: 0 calc(-1 * var(--sum-pad)) calc(-1 * var(--sum-pad)); padding: 12px var(--sum-pad) var(--sum-pad); border-radius: 0 0 var(--r-xl) var(--r-xl); }
  .co__sum.is-over > .co__checkout { background: linear-gradient(rgba(246, 249, 255, 0), #f6f9ff 12px); box-shadow: 0 -18px 22px -22px rgba(8, 20, 60, 0.45); }
}
/* a laptop screen (768 to 860 px tall): the same card, a little tighter, so a few lines still show above the totals */
@media (min-width: 960px) and (max-height: 860px) {
  .co__sum { --sum-pad: 18px; --sum-gap: 10px; }
  .co__sum .co__tier { gap: 8px; padding: 10px 14px; }
  .co__sum .co__more-sum { min-height: 44px; }
  .co__sum .co__more[open] > .co__more-sum { margin-bottom: 4px; }
  .co__sum .co__totals { gap: 6px; padding-top: 12px; }
  .co__sum .co__trow--total { margin-top: 2px; padding-top: 10px; }
  .co__sum .co__checkout { gap: 8px; }
  .co__sum .co__paybtn { --h: 54px; }
}
.co__paybtn { width: 100%; }
.co__paylabel { display: inline-flex; align-items: center; gap: 10px; }
.co__paylock { width: 18px; height: 18px; flex: none; }
.co__paybtn .spinner { width: 20px; height: 20px; }

/* ---------- one column (phones and small tablets) ---------- */
@media (max-width: 959px) {
  .co__grid, .co__loading { grid-template-columns: minmax(0, 1fr); }
  .co__skel--side { display: none; }
  .co__peek { display: block; padding: 0; }
  .co__peek-btn {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
    width: 100%; min-height: 60px; padding: 10px 16px 10px 18px; border-radius: inherit; text-align: left; color: var(--ink);
  }
  .co__peek-label { display: grid; gap: 1px; font-weight: 700; font-size: 15px; }
  .co__peek-label small { font-weight: 500; font-size: 13px; color: var(--ink-soft); }
  .co__peek-total { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; }
  .co__peek-body { display: grid; gap: 10px; padding: 4px 16px 16px; animation: pb-rise var(--dur-fast) var(--ease-out) both; }
  .co__peek-body .co__textbtn { justify-self: start; }
  /* the summary follows the form; its lines are in the fold at the top */
  .co__sum { position: static; max-height: none; overflow: visible; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .co__sum .co__lines--sum, .co__sumhead .co__textbtn { display: none; }
  .co { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
  /* the Pay bar, fixed to the bottom of the screen (the summary above has no backdrop filter, so fixed means the
     viewport); on touch screens it steps down while a text field has focus (the keyboard is up), so it never sits over the keyboard or the field;
     a select keeps it, as its picker covers the screen and Pay is the next tap */
  .co .co__pay {
    position: fixed; z-index: var(--z-mbar); left: 0; right: 0; bottom: 0;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(246, 249, 255, 0.9); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: 0 -14px 32px -20px rgba(8, 20, 60, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 1px 0 1px var(--paper-edge);
    transition: transform var(--dur) var(--ease-spring);
  }
  @media (pointer: coarse) {
    .co:has(.co__grid :is(input:not([type="checkbox"]):not([type="radio"]), textarea):focus) .co__pay { transform: translateY(115%); }
  }
  .co .co__paybtn { --h: 56px; }
  .co__trust { order: 0; }
  .co__checkout { margin-top: 2px; }
  :root:has(body[data-page="checkout"]) { scroll-padding-bottom: 120px; }
  body[data-page="checkout"] .toast { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 767px) {
  .co__head, .ord__head { padding-top: calc(var(--nav-h) + 30px); }
  .co__lede { font-size: 16px; }
  .co__fields { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .co__card { padding: 20px 16px; gap: 16px; }
  .co__method, .co__addr { gap: 12px; padding: 12px 14px; }
  .co__method-ico { width: 38px; height: 38px; }
  .co__line { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; }
  .co__thumb { width: 52px; height: 60px; }
  .co__sum { padding: 20px 16px; }
  .co__signed { border-radius: var(--r-md); align-items: flex-start; padding: 10px 12px; }
}
@media (prefers-reduced-transparency: reduce) {
  .co .co__pay { background: var(--cloud); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ==========================================================================
   The order page
   ========================================================================== */
.ord__hero { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: clamp(16px, 2.4vw, 28px); margin-bottom: 18px; padding: clamp(22px, 3.2vw, 38px); }
.ord__mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--co-tint); color: var(--sky-900); box-shadow: inset 0 0 0 1px var(--co-line); }
.ord__mark svg { width: 32px; height: 32px; }
.ord__mark--spin .spinner { width: 30px; height: 30px; border-width: 3px; color: var(--blue); }
/* paid: a butter disc pops in, then the tick draws itself from the left (clip-path) */
.ord__mark--ok { background: var(--butter); box-shadow: 0 10px 26px -12px rgba(217, 178, 28, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.6); animation: ord-pop var(--dur) var(--ease-spring) both; }
.ord__mark--ok svg { width: 36px; height: 36px; clip-path: inset(0 100% 0 0); animation: ord-draw 0.6s var(--ease-out) 0.22s forwards; }
@keyframes ord-pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes ord-draw { to { clip-path: inset(0 0 0 0); } }
.ord__hero-body { display: grid; min-width: 0; }
.ord__hero-title { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.04; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.ord__hero-title:focus { outline: none; }
.ord__hero-text { margin-top: 10px; max-width: 58ch; font-size: 16.5px; line-height: 1.55; color: var(--ink-soft); }
.ord__hero-note { margin-top: 14px; padding: 12px 16px; border-radius: var(--r-md); background: var(--co-tint); box-shadow: inset 0 0 0 1px var(--co-line); font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.ord__hero-note a { color: var(--sky-700); font-weight: 700; text-underline-offset: 3px; }
.ord__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ord__live:empty { display: none; }
.ord__live { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--ink); }

.ord__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); gap: clamp(14px, 1.6vw, 20px); align-items: start; }
.ord__col { display: grid; gap: clamp(14px, 1.6vw, 20px); min-width: 0; }
.ord__card { display: grid; gap: 16px; padding: clamp(20px, 2.4vw, 30px); }
.ord__cardhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.ord__status { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-soft); }

/* the stepper: horizontal from 768 px, vertical on phones; the butter fill is clipped to the progress */
.ord__steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 4px 0 0; padding: 0; }
.ord__rail { position: absolute; left: 10%; right: 10%; top: 15px; height: 4px; border-radius: 4px; background: rgba(12, 24, 56, 0.12); }
.ord__rail-fill {
  position: absolute; inset: 0; border-radius: inherit; background: var(--butter); box-shadow: inset 0 0 0 1px rgba(12, 24, 56, 0.18);
  clip-path: inset(0 calc((1 - var(--p, 0)) * 100%) 0 0); transition: clip-path 1s var(--ease-out);
}
.ord__step { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; text-align: center; }
.ord__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--cloud); box-shadow: inset 0 0 0 2px rgba(12, 24, 56, 0.24); }
.ord__dot svg { width: 18px; height: 18px; }
.ord__step.is-done .ord__dot { background: var(--sky-900); color: var(--cloud); box-shadow: none; }
.ord__step.is-now .ord__dot { background: var(--butter); box-shadow: inset 0 0 0 2px var(--sky-900); }
.ord__step-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.ord__step.is-next .ord__step-name { color: var(--ink-soft); font-weight: 600; }
.ord__step-at { min-height: 1.2em; font-size: 12.5px; color: var(--ink-soft); }

.ord__track { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px 14px; padding: 14px 16px; border-radius: var(--r-md); background: var(--co-tint); box-shadow: inset 0 0 0 1px var(--co-line); }
.ord__track-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--cloud); color: var(--sky-900); }
.ord__track-ico svg { width: 22px; height: 22px; }
.ord__track-text { display: grid; gap: 2px; min-width: 0; color: var(--ink); }
.ord__track-text small { font-size: 13.5px; color: var(--ink-soft); overflow-wrap: anywhere; }
.ord__track-text .co__mono { color: var(--ink); font-weight: 700; }
.ord__track-tools { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.ord__track-tools .btn__label { display: inline-flex; align-items: center; gap: 8px; }
.ord__track-tools svg { width: 16px; height: 16px; }

.ord__next { display: grid; gap: 14px; margin: 0; padding: 0; }
.ord__next li { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: start; gap: 12px; }
.ord__next-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--co-tint); box-shadow: inset 0 0 0 1px var(--co-line); font-weight: 800; font-size: 14px; color: var(--ink); }
.ord__next b { display: block; font-size: 15.5px; color: var(--ink); }
.ord__next small { display: block; margin-top: 2px; font-size: 14.5px; line-height: 1.45; color: var(--ink-soft); }

.ord__addr { display: grid; gap: 2px; font-style: normal; font-size: 15.5px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.ord__addr-name { font-weight: 700; }
.ord__meta { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.ord__meta--strong { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.ord__tools { display: flex; flex-wrap: wrap; gap: 8px; }
.ord__tools .ord__meta { flex-basis: 100%; }

.ord__timeline { position: relative; display: grid; gap: 14px; margin: 0; padding: 0; }
.ord__timeline::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--co-line); }
.ord__timeline li { position: relative; display: grid; gap: 1px; padding-left: 24px; }
.ord__timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--cloud); box-shadow: inset 0 0 0 2px var(--sky-900); }
.ord__timeline li:first-child::before { background: var(--sky-900); }
.ord__timeline b { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.ord__timeline small { font-size: 13px; color: var(--ink-soft); }

.ord__cancel { gap: 14px; }
.ord__reasons { display: grid; gap: 0; margin: 0; padding: 0; border: 0; }

@media (max-width: 899px) {
  .ord__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .ord__hero { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 22px 18px; }
  .ord__mark { width: 56px; height: 56px; }
  .ord__actions .btn { flex: 1 1 100%; }
  .ord__card { padding: 20px 16px; }
  .ord__steps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ord__rail { left: 15px; right: auto; top: 17px; bottom: 17px; width: 4px; height: auto; }
  .ord__rail-fill { clip-path: inset(0 0 calc((1 - var(--p, 0)) * 100%) 0); }
  .ord__step { grid-template-columns: 34px minmax(0, 1fr) auto; justify-items: start; align-items: center; column-gap: 14px; text-align: left; }
  .ord__step-at { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ord__mark--ok, .ord__mark--ok svg { animation-delay: 0s; }
  .ord__mark--ok svg { clip-path: none; }
  .co__note-line, .co__peek-body { animation: none; }
}


/* ===== src/css/96-account.css ===== */
/* ==========================================================================
   /account/ (spec 8.5; P2-H): src/pages/account/index.html, src/js/pages/account.js.
   .acct__grid       signed out: sign in (wide) beside "Orders on this device" and "Track an order"; one column
                     on phones with sign in first
   .acct__card       a paper glass card (the reading surface); .acct__static, .acct__empty, skeletons
   .acct__tabs       Orders, Addresses, Profile: a frost pill whose cloud thumb is drawn with clip-path
   .acct__hero       "Last order: 3 x Hanging tissue, 41 days ago" with "Order again"
   .ocard            an order card: stacked cutouts with quantities, "PB1042 · 31 Oct · ₹1,077", the status
                     chip (.ochip), the 5 dot progress line for active orders (.ostep, butter fill by clip-path),
                     actions, and the inline details (.odet: items, totals, address, payment, tracking, timeline)
   .omini            a compact order row (orders on this device)
   .acard, .aform    saved address cards and the pincode-first address form
   .pswitch          the offer switches (role="switch")
   .acct-sheet       the confirm sheet (the shared .pb-sheet of 91-commerce.css) with a code field
   Butter is the only accent (the tab thumb is cloud, the progress fill and the "on" switch are butter); state
   colours appear only as text (a failed payment, the delete action). Motion is transform, opacity and
   clip-path only; reduced motion gets the final states. Every control is at least 44 px tall.
   ========================================================================== */
.acct { --text-soft: rgba(246, 249, 255, 0.9); padding-bottom: var(--section); }
.acct [hidden], .acct-sheet[hidden] { display: none !important; }
.acct__head .h-display:focus { outline: none; }
.acct__head .h-display:focus-visible { outline: 3px solid var(--butter); outline-offset: 6px; border-radius: 8px; }
.acct__app { display: grid; gap: clamp(16px, 2.4vw, 24px); }
.acct__app[aria-busy="true"] { cursor: progress; }

/* ---------- cards ---------- */
.acct__card { display: grid; gap: 14px; align-content: start; padding: clamp(20px, 3vw, 32px); min-width: 0; }
.acct__card.glass--paper, .ocard.glass--paper, .acard.glass--paper, .aform.glass--paper, .acct__hero.glass--paper { background: rgba(246, 249, 255, 0.95); }
.acct__card > h2, .acct__card > .h-md { margin: 0; }
.acct__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(16px, 2.4vw, 24px); align-items: start; }
.acct__side { display: grid; gap: clamp(16px, 2.4vw, 24px); min-width: 0; }
.acct__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 24px); align-items: start; }
.acct__muted { margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.5; max-width: 60ch; }
.acct__small { font-size: var(--fs-small); }
.acct__notice { margin: 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.5; }
.acct__notice a, .acct__grievance a, .acct__card p a { color: var(--sky-900); font-weight: 700; text-underline-offset: 3px; overflow-wrap: anywhere; }
.acct__grievance { margin: 0; color: var(--ink); line-height: 1.5; }
.acct__opt { font-weight: 500; color: var(--ink-soft); }
.acct__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.acct__form { display: grid; gap: 14px; }
.acct__email { overflow-wrap: anywhere; color: var(--ink); }
.acct__inline-error { margin: 0; color: var(--danger); font-weight: 600; font-size: 14.5px; line-height: 1.45; }
.acct__inline-error:empty { display: none; }
.acct__answer { margin: 0; padding: 12px 14px; border-radius: var(--r-md); background: rgba(12, 24, 56, 0.05); box-shadow: inset 0 0 0 1px var(--line-ink); color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.45; }
.acct__answer:empty { display: none; }
.acct__saved { color: var(--ink); font-weight: 600; font-size: 14.5px; min-height: 1.4em; }
.acct__label { font-weight: 700; font-size: 14.5px; }
.acct__readonly { margin: 0; min-height: 50px; display: flex; align-items: center; padding: 0 16px; border-radius: var(--r-md); background: rgba(12, 24, 56, 0.05); box-shadow: inset 0 0 0 1px var(--line-ink); color: var(--ink); overflow-wrap: anywhere; }
.acct__noscript { margin-top: 16px; }
.acct__static { max-width: 640px; }
.acct__banner { max-width: 760px; }

/* on paper the butter ring would vanish: an ink ring keeps every focus visible (3:1 and more) */
.acct__card :focus-visible, .ocard :focus-visible, .acard :focus-visible, .aform :focus-visible, .acct__hero :focus-visible, .acct-sheet :focus-visible { outline: 3px solid var(--sky-900); outline-offset: 2px; }
.acct__card .input:focus-visible, .aform .input:focus-visible, .acct-sheet .input:focus-visible { outline: none; }
.acct__card .btn--ghost, .ocard .btn--ghost, .acard .btn--ghost, .aform .btn--ghost, .acct__hero .btn--ghost { color: var(--sky-900); box-shadow: inset 0 0 0 1.5px rgba(12, 24, 56, 0.3); }
.acct__card .btn--ghost:hover, .ocard .btn--ghost:hover, .acard .btn--ghost:hover, .aform .btn--ghost:hover { background: rgba(12, 24, 56, 0.06); }
.acct__card .btn--sm, .ocard .btn--sm, .acard .btn--sm, .acct__bar .btn--sm { --h: 44px; }
/* Delete: the state colour on the text only, with the neutral ink outline of every other ghost button */
.acct__card .btn--ghost.acct__danger { color: var(--danger); box-shadow: inset 0 0 0 1.5px rgba(12, 24, 56, 0.3); }
.btn.acct__danger-solid { background: var(--sky-900); color: var(--cloud); }
.acct button[disabled], .acct-sheet button[disabled] { cursor: default; }
.acct button[aria-busy="true"] { cursor: progress; }

/* the +91 prefix inside the mobile field */
.acct__prefixed { position: relative; display: block; }
.acct__prefix { position: absolute; left: 1.5px; top: 1.5px; bottom: 1.5px; display: grid; place-items: center; width: 54px; border-radius: calc(var(--r-md) - 1.5px) 0 0 calc(var(--r-md) - 1.5px); background: rgba(12, 24, 56, 0.05); color: var(--ink); font-weight: 700; pointer-events: none; }
.acct__prefixed .input { padding-left: 66px; }

/* ---------- placeholders ---------- */
.acct__card--skeleton { min-height: 220px; }
.acct__line { display: block; height: 16px; border-radius: var(--r-pill); }
.acct__line--title { width: 45%; height: 26px; }
.acct__line--field { height: 50px; border-radius: var(--r-md); }
.acct__line--btn { height: 52px; width: 100%; border-radius: var(--r-pill); }

/* ---------- sign in ---------- */
.acct__signin { gap: 16px; }
.acct__code { font-size: 28px; font-weight: 700; letter-spacing: 0.42em; text-indent: 0.42em; text-align: center; font-variant-numeric: tabular-nums; max-width: 300px; min-height: 60px; }
.acct__code::placeholder { letter-spacing: 0.2em; }
.acct__code-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; color: var(--sky-900); }
.acct__code-actions .linkbtn[disabled] { color: var(--ink-soft); }
.acct__code-actions .linkbtn[disabled]::after { display: none; }
.acct__signin .linkbtn, .acct__card .linkbtn { color: var(--sky-900); }

/* ---------- tabs ---------- */
.acct__tabs {
  position: relative; display: inline-flex; justify-self: start; gap: 4px; padding: 4px; max-width: 100%;
  border-radius: var(--r-pill); background: rgba(11, 28, 74, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.acct__tabs-thumb {
  position: absolute; inset: 0; border-radius: var(--r-pill); background: var(--cloud); pointer-events: none;
  clip-path: inset(4px var(--r, 100%) 4px var(--l, 0px) round 999px);
  transition: clip-path var(--dur) var(--ease-spring);
}
.acct__tab {
  position: relative; z-index: 1; min-height: 44px; padding: 0 20px; border-radius: var(--r-pill);
  color: var(--cloud); font-weight: 700; font-size: 15px; white-space: nowrap;
}
.acct__tab[aria-selected="true"] { color: var(--sky-900); }
.acct__tab:focus-visible { outline: 3px solid var(--butter); outline-offset: 2px; }
.acct__panel { display: grid; gap: clamp(16px, 2.4vw, 24px); min-width: 0; }
.acct__panel[hidden] { display: none; }
.acct__panel:focus { outline: none; }
.acct__panel:focus-visible { outline: 3px solid var(--butter); outline-offset: 6px; border-radius: var(--r-lg); }
.acct__h2 { margin: 0 0 12px; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.5rem, 2.2vw, 1.85rem); letter-spacing: -0.02em; color: var(--cloud); }
.acct__group { display: grid; }
.acct__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.acct__bar .acct__h2 { margin: 0; }

/* ---------- reorder hero ---------- */
.acct__hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px 24px; padding: clamp(18px, 2.6vw, 28px); }
.acct__eyebrow { margin: 0 0 4px; color: var(--ink-soft); font-weight: 700; font-size: var(--fs-small); }
.acct__hero-title { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }
.acct__hero-text { display: grid; gap: 6px; min-width: 0; }
.acct__hero-btn { justify-self: end; }

/* ---------- stacked pack cutouts ---------- */
.ostack { display: inline-flex; align-items: center; flex: none; padding-left: 20px; }
.ostack > img, .ostack__pack, .ostack > .ostack__none {
  position: relative; width: 56px; height: 56px; margin-left: -12px; flex: none;
  border-radius: var(--r-sm); background: radial-gradient(70% 70% at 50% 40%, var(--sky-100), var(--cloud) 80%);
  box-shadow: 0 0 0 2px var(--cloud), var(--shadow-sm); object-fit: contain;
}
.ostack__pack img { width: 100%; height: 100%; padding: 4px; object-fit: contain; border-radius: inherit; }
.ostack__pack:nth-child(2), .ostack > img:nth-child(2) { transform: rotate(4deg); }
.ostack__pack:nth-child(3), .ostack > img:nth-child(3) { transform: rotate(-4deg); }
.ostack__none { display: grid; place-items: center; color: var(--ink-soft); }
.ostack__none svg { width: 24px; height: 24px; }
/* a later pack covers the right side of the one before it, so each quantity sits on the left, where it shows */
.ostack__qty {
  position: absolute; left: -6px; bottom: -6px; z-index: 1; min-width: 26px; height: 22px; padding: 0 6px; border-radius: var(--r-pill);
  display: grid; place-items: center; background: var(--sky-900); color: var(--cloud);
  font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--cloud);
}
.ostack--lg > img, .ostack--lg .ostack__pack, .ostack--lg > .ostack__none { width: 72px; height: 72px; }

/* ---------- order cards ---------- */
.olist { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ocard { display: grid; gap: 14px; padding: clamp(14px, 2vw, 20px); min-width: 0; }
.ocard__top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px 18px; }
.ocard__meta { display: grid; gap: 3px; min-width: 0; }
.ocard__title { margin: 0; font-size: 16.5px; font-weight: 700; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.ocard__sep { color: var(--ink-soft); font-weight: 500; }
.ocard__items { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.45; }
.ocard__note { margin: 0; color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.ocard__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ocard__more { margin-left: auto; color: var(--sky-900); }
.ocard__chev { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-spring); }
.ocard__more[aria-expanded="true"] .ocard__chev { transform: rotate(180deg); }
.ocard__detail { border-top: 1px solid var(--line-ink); padding-top: 16px; }
.ocard__detail:not([hidden]) { animation: acct-rise var(--dur) var(--ease-out) both; }
.ocard--skeleton { min-height: 120px; gap: 12px; }
@keyframes acct-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* the status chip: text carries the meaning (a dot or a check beside it is decoration) */
.ochip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 12px; border-radius: var(--r-pill);
  background: var(--cloud); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(12, 24, 56, 0.16);
  font-weight: 700; font-size: 13px; line-height: 1; white-space: nowrap;
}
.ochip__dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--butter); box-shadow: 0 0 0 1.5px var(--sky-900); }
.ochip--wait .ochip__dot { animation: acct-pulse 1.8s var(--ease-out) infinite; }
.ochip--good .ochip__dot { background: var(--sky-900); box-shadow: none; }
.ochip--bad { color: var(--danger); }
.ochip--bad .ochip__dot { background: transparent; box-shadow: inset 0 0 0 2px var(--sky-900); }
.ochip--off { color: var(--ink-soft); }
.ochip--off .ochip__dot { background: transparent; box-shadow: inset 0 0 0 2px rgba(12, 24, 56, 0.4); }
@keyframes acct-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.7); opacity: 0.55; } }

/* the 5 dot progress line: the butter fill is clipped to the step reached. The track is the content box; the
   columns are 1:2:2:2:1, so the middle dots are centred at exactly 25, 50 and 75 percent of it, and the first and
   last dots are pulled half a dot outwards onto its two ends (0 and 100 percent), where the fill starts and ends. */
.ostep { position: relative; padding: 4px 7px 0; }
.ostep__track { position: absolute; left: 7px; right: 7px; top: 9px; height: 4px; border-radius: 4px; background: rgba(12, 24, 56, 0.12); }
.ostep__fill {
  position: absolute; inset: 0; border-radius: inherit; background: var(--butter); box-shadow: inset 0 0 0 1px rgba(217, 178, 28, 0.9);
  clip-path: inset(0 calc((1 - var(--p, 0)) * 100%) 0 0 round 4px);
  transition: clip-path var(--dur-slow) var(--ease-out);
}
.ostep__dots { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
.ostep__dots li { display: grid; justify-items: center; gap: 6px; text-align: center; color: var(--ink-soft); font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.ostep__dots li:first-child { justify-items: start; text-align: left; margin-left: -7px; }
.ostep__dots li:last-child { justify-items: end; text-align: right; margin-right: -7px; }
.ostep__dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--cloud); box-shadow: inset 0 0 0 2px rgba(12, 24, 56, 0.28); }
.ostep__dots .is-done i { background: var(--butter); box-shadow: inset 0 0 0 2px var(--sky-900); }
.ostep__dots .is-now i { background: var(--butter); box-shadow: inset 0 0 0 2px var(--sky-900), 0 0 0 4px rgba(244, 207, 53, 0.45); }
.ostep__dots .is-now span { color: var(--ink); font-weight: 800; }

/* ---------- order details ---------- */
.odet { display: grid; gap: 16px; }
.odet__cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 20px 32px; }
.odet__col { display: grid; gap: 10px; align-content: start; min-width: 0; }
.odet__h { margin: 4px 0 0; font-size: 13px; font-weight: 800; letter-spacing: 0.02em; color: var(--ink-soft); }
.odet__items { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.odet__items li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.odet__items img, .odet__items .ostack__none { width: 48px; height: 48px; border-radius: var(--r-sm); background: var(--sky-100); object-fit: contain; padding: 3px; }
.odet__name { display: grid; gap: 2px; font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--ink); min-width: 0; }
.odet__name small { font-weight: 500; font-size: 13.5px; color: var(--ink-soft); }
.odet__amt { font-weight: 700; color: var(--ink); }
.osum { display: grid; gap: 6px; margin: 4px 0 0; padding-top: 10px; border-top: 1px dashed rgba(12, 24, 56, 0.18); }
.osum__row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--ink); }
.osum__row dt { color: var(--ink-soft); }
.osum__row dd { margin: 0; font-weight: 600; }
.osum__row--save dd { font-weight: 700; }
.osum__row--total { padding-top: 6px; font-size: 17px; }
.osum__row--total dt { color: var(--ink); font-weight: 700; }
.osum__row--total dd { font-weight: 800; }
.odet__addr { display: grid; gap: 2px; font-style: normal; color: var(--ink); line-height: 1.45; overflow-wrap: anywhere; }
.odet__addr span:first-child { font-weight: 700; }
.odet__pay, .odet__track p { margin: 0; color: var(--ink); line-height: 1.45; }
.odet__track { display: grid; gap: 2px; }
.acct__ico { width: 16px; height: 16px; }
.otime { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.otime li { position: relative; display: grid; gap: 1px; padding: 0 0 12px 22px; }
.otime li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--sky-900); }
.otime li:not(:last-child)::after { content: ""; position: absolute; left: 7px; top: 16px; bottom: 0; width: 2px; background: rgba(12, 24, 56, 0.14); }
.otime li:last-child::before { background: var(--butter); box-shadow: 0 0 0 2px var(--sky-900); }
.otime__label { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.otime time { font-size: 13px; color: var(--ink-soft); }
.odet__actions { padding-top: 4px; }

/* ---------- orders on this device ---------- */
.acct__mini { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.omini {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto 20px; align-items: center; gap: 12px; min-height: 64px;
  padding: 8px 12px 8px 8px; border-radius: var(--r-md); color: var(--ink); text-decoration: none;
  background: rgba(12, 24, 56, 0.04); box-shadow: inset 0 0 0 1px var(--line-ink);
  transition: transform var(--dur) var(--ease-spring);
}
.omini:hover { transform: translateY(-2px); }
.omini .ostack > img, .omini .ostack > .ostack__none { width: 44px; height: 44px; }
.omini__text { display: grid; gap: 1px; min-width: 0; font-size: 14px; color: var(--ink-soft); }
.omini__text b { color: var(--ink); font-size: 15.5px; }
.omini__go { width: 20px; height: 20px; color: var(--ink-soft); }

/* ---------- empty states ---------- */
.acct__empty { justify-items: start; padding: clamp(24px, 4vw, 40px); }
.acct__empty--sm { padding: 20px 22px; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.acct__empty--sm p { margin: 0; color: var(--ink-soft); }
.acct__empty-icon { width: 40px; height: 40px; color: var(--sky-900); }
.acct__empty--sm .acct__empty-icon { width: 28px; height: 28px; }
.acct__more { justify-self: center; margin-top: 16px; }
.acct__panel > .acct__empty { max-width: 720px; }

/* ---------- saved addresses ---------- */
.alist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.alist > li:only-child.acct__empty { grid-column: 1 / -1; }
.acard { display: grid; gap: 10px; align-content: start; padding: clamp(16px, 2vw, 22px); min-width: 0; }
.acard[hidden] { display: none; }
.acard__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.acard__label { margin: 0; font-size: 16.5px; font-weight: 800; color: var(--ink); }
.acard__default { min-height: 26px; font-size: 12.5px; }
.acard__lines { display: grid; gap: 1px; font-style: normal; color: var(--ink); line-height: 1.45; overflow-wrap: anywhere; }
.acard__lines span:first-child { font-weight: 700; }
.acard__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 4px; }
.acard__actions .linkbtn { color: var(--sky-900); }
.acard__actions .linkbtn.acard__delete { color: var(--danger); }

.aform { display: grid; gap: 18px; padding: clamp(18px, 2.6vw, 28px); }
.aform .h-md:focus { outline: none; }
.aform__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 16px; align-items: start; }
.acct .field { align-content: start; }
.aform__found { min-height: 1.4em; color: var(--ink); font-weight: 600; }
.aform__found:empty { display: none; }
.aform__grid > [data-field="pincode"], .aform__grid > [data-field="city"], .aform__grid > [data-field="state_code"] { grid-column: span 2; }
.aform__grid > [data-field="line1"], .aform__grid > .aform__labels, .aform__grid > .aform__check { grid-column: 1 / -1; }
.aform__grid > [data-field="line2"], .aform__grid > [data-field="landmark"], .aform__grid > [data-field="name"], .aform__grid > [data-field="phone"] { grid-column: span 3; }
.aform__pin { font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.aform select.input { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.aform__labels { margin: 0; padding: 0; border: 0; min-width: 0; }
.aform__labels legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: 14.5px; }
.aform__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.aform__pill { position: relative; display: inline-flex; }
.aform__pill input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.aform__pill span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill);
  color: var(--ink); font-weight: 700; font-size: 14.5px; box-shadow: inset 0 0 0 1.5px rgba(12, 24, 56, 0.24);
}
.aform__pill input:checked + span { background: var(--sky-900); color: var(--cloud); box-shadow: none; }
.aform__pill input:focus-visible + span { outline: 3px solid var(--sky-900); outline-offset: 2px; }
.aform__check { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 600; color: var(--ink); cursor: pointer; }
.aform__check input { width: 22px; height: 22px; margin: 0; accent-color: var(--sky-900); flex: none; }
.aform__check input:disabled + span { color: var(--ink-soft); }
.aform__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- offer switches ---------- */
.pswitch { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 6px 0; border-top: 1px solid var(--line-ink); }
.pswitch__text { display: grid; gap: 2px; min-width: 0; }
.pswitch__label { font-weight: 700; color: var(--ink); }
.pswitch__hint { font-size: 13.5px; color: var(--ink-soft); }
.pswitch__btn { position: relative; flex: none; width: 60px; height: 44px; border-radius: var(--r-pill); }
.pswitch__btn::before {
  content: ""; position: absolute; left: 4px; right: 4px; top: 7px; bottom: 7px; border-radius: var(--r-pill);
  background: rgba(12, 24, 56, 0.16); box-shadow: inset 0 0 0 1.5px rgba(12, 24, 56, 0.34);
}
.pswitch__btn i {
  position: absolute; left: 8px; top: 11px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--cloud); box-shadow: 0 1px 3px rgba(var(--shadow-tint), 0.4), inset 0 0 0 1.5px rgba(12, 24, 56, 0.3);
  transition: transform var(--dur) var(--ease-spring);
}
.pswitch__btn[aria-checked="true"]::before { background: var(--butter); box-shadow: inset 0 0 0 1.5px var(--sky-900); }
.pswitch__btn[aria-checked="true"] i { transform: translateX(22px); background: var(--sky-900); box-shadow: none; }
.pswitch__btn[disabled] { opacity: 0.45; }
.pswitch__btn:focus-visible { outline: 3px solid var(--sky-900); outline-offset: 0; }

/* ---------- the confirm sheet ---------- */
.acct-sheet__body:empty { display: none; }
.acct-sheet .acct__code { max-width: none; }
.acct-sheet .pb-sheet__text { overflow-wrap: anywhere; }

/* ---------- tablet and phone ---------- */
@media (max-width: 1023px) {
  .acct__cols { grid-template-columns: minmax(0, 1fr); }
  .odet__cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 899px) {
  .acct__grid { grid-template-columns: minmax(0, 1fr); }
  .alist { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .acct__card { padding: 20px 18px; }
  .acct__tabs { justify-self: stretch; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .acct__tab { padding: 0 8px; font-size: 14.5px; }
  .acct__hero { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .acct__hero-btn { justify-self: stretch; }
  .ostack--lg > img, .ostack--lg .ostack__pack, .ostack--lg > .ostack__none { width: 60px; height: 60px; }
  .ocard__top { grid-template-columns: auto minmax(0, 1fr); }
  .ocard__top > .ochip { grid-column: 2; justify-self: start; }
  .ostack > img, .ostack__pack, .ostack > .ostack__none { width: 50px; height: 50px; }
  .ostep__dots li { font-size: 11px; }
  .ocard__actions .btn { flex: 1 1 auto; }
  .ocard__more { margin-left: 0; }
  .aform__grid { grid-template-columns: minmax(0, 1fr); }
  .aform .aform__grid > * { grid-column: 1 / -1; }
  .aform__actions .btn { flex: 1 1 auto; }
  .omini { grid-template-columns: auto minmax(0, 1fr) 20px; }
  .omini .ochip { grid-column: 2; grid-row: 2; justify-self: start; }
  .omini__go { grid-column: 3; grid-row: 1 / span 2; }
  .acct__code-actions { justify-content: flex-start; }
}

/* ---------- motion and transparency preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .acct__tabs-thumb, .ostep__fill, .ocard__chev, .pswitch__btn i, .omini { transition: none; }
  .ocard__detail:not([hidden]) { animation: none; }
  .ochip--wait .ochip__dot { animation: none; }
  .omini:hover { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .acct__tabs { background: var(--sky-900); -webkit-backdrop-filter: none; backdrop-filter: none; }
}


/* ===== src/css/97-shop.css ===== */
/* ==========================================================================
   /shop.html: every product in PB.store.ALL (P1-A, spec 8.6). src/pages/shop.html, src/js/pages/shop.js.
   .shopall__grid      two columns on phones, three from 900px, four from 1180px when there are four or more
   .scard              a paper glass card: the cutout on the product's colour (--scard-bg, --scard-bg2 set by
                       shop.js), name (a link stretched over the card), spec, price, one action above the link
   .scard__chip        Sold out, Coming soon, Only a few left, New
   Also here, because the Publisher renders it into product pages: .pdp__gone, the "No longer available" block of
   an archived product's page (spec 6.3).
   ========================================================================== */
.shopall { --text-soft: rgba(246, 249, 255, 0.88); padding-bottom: var(--section-sm); }

.shopall__tiers {
  display: inline-block; margin: 0 0 clamp(18px, 3vw, 28px); padding: 10px 18px;
  /* deep enough that the butter lead reads at 4.5:1 or more over the lightest sky */
  border-radius: var(--r-pill); background: rgba(11, 28, 74, 0.72); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  color: var(--cloud); font-size: var(--fs-small); line-height: 1.45; max-width: 100%;
}
.shopall__tiers b { color: var(--butter); font-weight: 700; }

.shopall__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px);
  margin: 0; padding: 0; list-style: none;
}
@media (min-width: 900px) { .shopall__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .shopall__grid:has(> .scard:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- the card ---------- */
.scard {
  display: flex; flex-direction: column; min-width: 0; padding: 8px;
  transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur) var(--ease-out);
}
.scard.glass--paper { background: rgba(246, 249, 255, 0.94); }
.scard__media {
  position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: calc(var(--r-lg) - 6px);
  background: radial-gradient(70% 70% at 50% 42%, var(--scard-bg2, var(--sky-300)) 0%, var(--scard-bg, var(--blue)) 78%);
}
.scard__media img {
  position: absolute; inset: 9% 10%; width: 80%; height: 82%; object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(8, 20, 60, 0.32));
  transition: transform var(--dur) var(--ease-spring);
}
.scard:hover .scard__media img { transform: translateY(-6px) rotate(-3deg); }

/* the body is not positioned, so the name link's ::after covers the whole card (the media included) */
.scard > .scard__body { position: static; display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 14px 10px 10px; }
.scard__body > :not(.scard__name) { position: relative; z-index: 1; }
.scard__chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 26px; }
.scard__chip {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: var(--r-pill);
  background: rgba(12, 24, 56, 0.07); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(12, 24, 56, 0.14);
  font-weight: 700; font-size: var(--fs-micro); line-height: 1;
}
.scard__chip--new { background: var(--butter); color: var(--sky-900); box-shadow: none; }
.scard__chip--out { background: var(--sky-900); color: var(--cloud); box-shadow: none; }
.scard__name { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
.scard__link { color: inherit; text-decoration: none; }
.scard__link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: var(--r-lg); }
.scard__link:focus-visible { outline: none; }
.scard__link:focus-visible::after { outline: 3px solid var(--butter); outline-offset: 3px; border-radius: var(--r-lg); }
.scard__spec { color: var(--ink-soft); font-size: var(--fs-small); line-height: 1.4; }
.scard__price { font-size: clamp(1.2rem, 1.8vw, 1.45rem); margin-top: auto; padding-top: 4px; color: var(--ink); }
.scard__price s { color: rgba(12, 24, 56, 0.72); opacity: 1; }
.scard__body > .scard__actions { z-index: 3; display: flex; padding-top: 6px; }
.scard__btn { width: 100%; --pad: 14px; }
/* the paper button keeps its look when disabled (Sold out, Coming soon): the label reads, nothing invites a tap */
.scard__btn[disabled] { opacity: 1; background: rgba(12, 24, 56, 0.06); color: var(--ink-soft); box-shadow: inset 0 0 0 1px rgba(12, 24, 56, 0.16); }
@media (hover: hover) and (pointer: fine) {
  .scard:hover { transform: translateY(-4px); }
}

/* placeholders until shop.js has rendered the cards */
.scard--skeleton { display: flex; flex-direction: column; gap: 12px; padding: 8px; border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.1); }
.scard--skeleton .scard__media { background: rgba(255, 255, 255, 0.14); }
.scard--skeleton .scard__body { display: flex; flex-direction: column; gap: 10px; padding: 6px 8px 12px; }
.scard__line { display: block; height: 16px; border-radius: var(--r-pill); }
.scard__line--short { width: 55%; }
.no-js .shopall__grid { display: none; }
.shopall__plain { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.shopall__plain a { color: var(--cloud); font-weight: 700; }

.shopall__more { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 4vw, 40px); }

@media (max-width: 767px) {
  .scard { padding: 6px; }
  .scard > .scard__body { padding: 12px 6px 6px; }
  .scard__spec { font-size: var(--fs-micro); }
  .scard__btn { --h: 46px; --pad: 10px; font-size: 14.5px; }
  .shopall__tiers { border-radius: var(--r-md); }
}
@media (prefers-reduced-motion: reduce) {
  .scard, .scard__media img { transition: none; }
  .scard:hover, .scard:hover .scard__media img { transform: none; }
}

/* ---------- an archived product's page (rendered by the Publisher, spec 6.3) ---------- */
.pdp__gone { display: grid; gap: 10px; justify-items: start; margin-top: 18px; padding: 18px; border-radius: var(--r-lg); background: rgba(12, 24, 56, 0.06); box-shadow: inset 0 0 0 1px rgba(12, 24, 56, 0.12); }
.pdp__gone-title { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: var(--fs-h3); line-height: 1.1; color: var(--ink); }
.pdp__gone-text { margin: 0; color: var(--ink-soft); }

/* the site-wide test ribbon 12-catalog.js adds on demo and sandbox catalogs: one line on phones too (its fixed,
   centred box would otherwise shrink to half the screen and wrap) */
[data-pb-site-ribbon] > .pb-ribbon--site { width: max-content; max-width: calc(100vw - 24px); }
