/* =========================================================
   Bubbles Malmesbury
   Colours: royal, navy, light grey, white (plus tints of royal)
   Type: Archivo, widest and heaviest, uppercase (headlines); Figtree (everything else)
   ========================================================= */

:root {
  --royal: #1F3FBF;
  --royal-deep: #17309A;
  --navy: #0B1640;
  --grey: #EEF1F5;
  --white: #FFFFFF;
  --ice: #DCE5FA;

  --navy-72: rgba(11, 22, 64, .72);
  --navy-50: rgba(11, 22, 64, .5);
  --navy-14: rgba(11, 22, 64, .14);
  --navy-08: rgba(11, 22, 64, .08);

  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1360px;
  --gutter: clamp(16px, 5vw, 72px);
  --space: clamp(6rem, 14vw, 12rem);
  --header-h: 72px;

  --ease: cubic-bezier(.215, .61, .355, 1);      /* power3.out */
  --ease-io: cubic-bezier(.645, .045, .355, 1);  /* power3.inOut */
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--grey);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::after {               /* subtle grain over everything */
  content: ""; position: fixed; inset: 0; z-index: 95; pointer-events: none;
  background: url("../images/grain.png"); opacity: .45; mix-blend-mode: multiply;
}

img, svg, canvas, picture { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, address, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; }
::selection { background: var(--royal); color: var(--white); }

:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 200; padding: .7rem 1rem;
  background: var(--navy); color: var(--white); border-radius: 999px; text-decoration: none;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- Type ---------- */
/* Every headline: Archivo at its widest (wdth 125) and heaviest (900), uppercase.
   Sizes are clamp()ed so the longest single word always fits its column. */
.h-xl, .h-lg, .h-md, .ch-word, .cta-title, .story-year, .delivery-price, .tile-name, .facts strong {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: .9;
  color: var(--navy);
  text-wrap: balance;
  overflow-wrap: normal; word-break: normal; hyphens: none;
}
.h-xl { font-size: clamp(2.05rem, 4.2vw + 1rem, 4.4rem); }
.h-lg { font-size: clamp(1.55rem, 2.3vw + 1rem, 3rem); }
.h-md { font-size: clamp(1.2rem, 1.3vw + .85rem, 1.85rem); }
.h-sm { font: 600 1.1rem/1.3 var(--body); color: var(--navy); }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--navy-72); max-width: 34em; text-wrap: pretty; }

.link {
  display: inline-block; font-weight: 600; color: var(--royal);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .28em;
  transition: text-underline-offset .3s var(--ease);
}
.link:hover { text-underline-offset: .42em; }

/* split headings: lines are wrapped by JS for the mask reveal */
.line { display: block; overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: block; }

/* ---------- Buttons ---------- */
.pill {
  --bg: var(--navy); --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .8rem 1.5rem; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bg);
  font: 600 1rem/1 var(--body); text-decoration: none; white-space: nowrap;
  transition: transform .45s var(--ease), background-color .3s, color .3s, box-shadow .45s var(--ease);
}
.pill:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(31, 63, 191, .7); }
.pill:active { transform: translateY(0); }
.pill-royal { --bg: var(--royal); }
.pill-royal:hover { --bg: var(--royal-deep); }
.pill-white { --bg: var(--white); --fg: var(--royal); }
.pill-ghost { --bg: transparent; --fg: var(--white); border-color: rgba(255, 255, 255, .55); }
.pill-ghost:hover { border-color: var(--white); box-shadow: none; }
.pill-lg { min-height: 60px; padding: 1rem 2rem; font-size: 1.08rem; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 80; height: var(--header-h);
  display: flex; align-items: center; gap: 2rem; padding-inline: var(--gutter);
  transition: background-color .5s, box-shadow .5s, transform .5s var(--ease);
}
.site-header.is-solid {
  background: rgba(238, 241, 245, .72);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 1px 0 var(--navy-08);
}
.header-logo img { height: 34px; width: auto; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.film-on .site-header:not(.show-logo) .header-logo img { opacity: 0; transform: translateY(-6px); }
.nav { display: flex; gap: 2rem; margin-left: auto; }
.nav a { font-weight: 500; font-size: .98rem; text-decoration: none; position: relative; padding-block: .4rem; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-cta { min-height: 42px; padding: .6rem 1.2rem; font-size: .95rem; }
@media (max-width: 860px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 420px) {
  .header-logo img { height: 24px; }
}

/* =========================================================
   THE FILM
   Static by default (no JS, reduced motion): each chapter is a
   full-height section over its poster. .film-on turns it into
   the sticky scroll film.
   ========================================================= */
.film { position: relative; background: var(--grey); }
.film-canvas, .film-veil, .film-index, .film-loader, .pour { display: none; }

.chapter {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; padding: calc(var(--header-h) + 2rem) var(--gutter) clamp(2rem, 6vh, 4rem);
}
.ch-poster, .ch-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ch-poster { z-index: 0; }
.chapter > :not(.ch-poster) { position: relative; z-index: 1; }

/* Intro */
.ch-intro { align-items: center; justify-content: center; text-align: center; }
.intro { display: grid; justify-items: center; gap: clamp(1rem, 2.4vw, 1.75rem); font-weight: inherit; }
.intro-logo img { width: min(42vw, 640px); height: auto; filter: drop-shadow(0 18px 40px rgba(31, 63, 191, .18)); }
.intro-sub {
  font: 500 clamp(1.05rem, 1.55vw, 1.4rem)/1.4 var(--body); color: var(--navy);
  max-width: 26em; text-wrap: balance;
}
.scroll-cue {
  position: absolute; left: 50%; bottom: clamp(1.5rem, 4vh, 2.5rem); transform: translateX(-50%);
  display: grid; justify-items: center; gap: .6rem; font-size: .85rem; font-weight: 500; color: var(--navy-72);
}
.scroll-cue span { width: 1.5px; height: 44px; background: linear-gradient(var(--navy-14), var(--navy-14)); position: relative; overflow: hidden; }
.scroll-cue span::after {
  content: ""; position: absolute; inset: 0; background: var(--royal);
  animation: cue 2.2s var(--ease-io) infinite; transform: translateY(-100%);
}
@keyframes cue { 50% { transform: translateY(0); } 100% { transform: translateY(100%); } }

/* Chapter text */
.ch-text { max-width: min(36rem, 100%); }
.ch-word { font-size: clamp(4rem, 6.9vw, 8.25rem); margin-left: -.03em; }
.ch-word .m { padding: .08em .04em .06em; margin: -.08em -.04em 0; }
.m { display: block; overflow: clip; }
.m > span { display: block; }
.ch-title { font: 600 clamp(1.2rem, 1.7vw, 1.6rem)/1.2 var(--body); margin-top: clamp(.8rem, 1.6vw, 1.4rem); }
.ch-copy { margin-top: .75rem; max-width: 26em; color: var(--navy-72); font-size: clamp(1rem, 1.15vw, 1.12rem); text-wrap: pretty; }

.ch-clean { align-items: center; }
.ch-refill { align-items: flex-start; }
.ch-fresh { align-items: center; justify-content: flex-end; }
.ch-fresh .ch-text { text-align: right; }
.ch-fresh .ch-copy { margin-left: auto; }

/* --- Film mode --- */
.film-on .film { height: 640vh; }
.film-on .film-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.film-on .film-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
/* Live pour (js/pour.js): sits exactly over the canvas and follows its push-in */
.film-on .pour { display: block; position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.pour-svg { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; visibility: hidden; will-change: transform, opacity; }
.pour-fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.film-on .film-veil {
  display: block; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(220, 229, 250, .35) 100%);
}
.film-on .chapter { position: absolute; inset: 0; min-height: 0; overflow: visible; pointer-events: none; }
.film-on .chapter a { pointer-events: auto; }
.film-on .ch-poster { display: none; }
.film-on .ch-intro .ch-poster { display: block; transition: opacity .6s; }
.film-on.film-ready .ch-intro .ch-poster { opacity: 0; }
.film-on .chapter:not(.ch-intro) { visibility: hidden; }

.film-on .film-index {
  display: flex; position: absolute; left: 50%; bottom: clamp(1.25rem, 3.5vh, 2rem); transform: translateX(-50%);
  gap: 4px; z-index: 2; font-size: .8rem; font-weight: 500;
  padding: .55rem .9rem .5rem; border-radius: 999px;
  background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
}
.film-index li {
  width: clamp(56px, 7vw, 96px); padding-top: .55rem; color: var(--navy-50);
  position: relative; transition: color .4s;
}
.film-index li::before, .film-index li::after { content: ""; position: absolute; top: 0; left: 0; height: 2px; border-radius: 2px; }
.film-index li::before { right: 0; background: var(--navy-14); }
.film-index li::after { width: calc(var(--p, 0) * 100%); background: var(--royal); }
.film-index li.is-on { color: var(--navy); }
.film-on .scroll-cue { bottom: calc(clamp(1.25rem, 3.5vh, 2rem) + 3.2rem); }

.film-on .film-loader {
  display: block; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 3;
}
.film-loader span { display: block; height: 100%; width: 100%; background: var(--royal); transform-origin: left; transform: scaleX(var(--load, 0)); transition: transform .3s, opacity .6s .3s; }
.film-loaded .film-loader span { opacity: 0; }

/* Phones and portrait tablets: text sits at the bottom over a soft wash */
@media (max-width: 700px), (max-width: 1100px) and (orientation: portrait) {
  .chapter { padding-bottom: 6.5rem; }
  .ch-clean, .ch-refill, .ch-fresh { align-items: flex-end; justify-content: flex-start; }
  .ch-fresh .ch-text { text-align: left; }
  .ch-fresh .ch-copy { margin-left: 0; }
  .ch-word { font-size: min(20.5vw, 8.5rem); }
  .film-on .film-index { left: var(--gutter); transform: none; bottom: calc(clamp(16px, 2.5vw, 28px) + 18px); }
  .chapter:not(.ch-intro)::after {
    content: ""; position: absolute; inset: 40% 0 0; z-index: 0; pointer-events: none;
    background: linear-gradient(to bottom, rgba(238, 241, 245, 0), rgba(238, 241, 245, .88) 55%, var(--grey));
  }
  .film-on .chapter:not(.ch-intro)::after { opacity: var(--wash, 0); }
  .ch-text { max-width: 34rem; }
  .intro-logo img { width: min(82vw, 520px); }
  .film-on .scroll-cue { bottom: 6rem; }
}
@media (max-width: 700px) {
  .film-index li { font-size: 0; width: 44px; }
}
@media (min-width: 701px) and (max-width: 1100px) and (orientation: landscape) {
  .ch-word { font-size: clamp(4rem, 8vw, 6.5rem); }
  .ch-text { max-width: 22rem; }
}

/* =========================================================
   PRODUCTS (home page section)
   ========================================================= */
.shop {
  position: relative; padding-block: var(--space); isolation: isolate; overflow: clip;
  background:
    radial-gradient(40vw 40vw at 88% 12%, rgba(31, 63, 191, .16), transparent 70%),
    radial-gradient(36vw 36vw at 6% 58%, rgba(120, 160, 255, .22), transparent 70%),
    radial-gradient(30vw 30vw at 70% 96%, rgba(31, 63, 191, .12), transparent 70%),
    var(--grey);
}
.shop-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
@media (max-width: 860px) { .shop-head { grid-template-columns: 1fr; } }

.glass {
  background: rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 24px 60px -40px rgba(11, 22, 64, .45);
}

/* ---------- Category tiles (home page and Products page) ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.tiles[hidden] { display: none; }
.tile {
  container-type: inline-size; height: 100%; min-height: 190px;
  display: flex; flex-direction: column; border-radius: 28px; padding: 1.4rem; text-decoration: none;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 34px 70px -40px rgba(31, 63, 191, .55); }
.tile-img { margin: -.5rem -.5rem 1.25rem; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ice); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
.tile-bubble {
  width: 34px; height: 34px; border-radius: 50%; margin-bottom: 2.25rem; flex: none;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .95) 0 12%, transparent 13%),
    conic-gradient(from 210deg, #9fd4ff, #c9b8ff, #ffd6f0, #b9f0ff, #8fb0ff, #9fd4ff);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 62%); mask: radial-gradient(circle, transparent 60%, #000 62%);
  opacity: .85;
}
.tile-name { font-size: min(1.15rem, 8.6cqi); line-height: 1; }
.tile-meta {
  margin-top: auto; padding-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  color: var(--navy-72); font-size: .93rem; font-weight: 500;
}
.tile-meta .chev { width: 20px; height: 20px; color: var(--royal); transform: rotate(-90deg); transition: transform .45s var(--ease); }
.tile:hover .tile-meta .chev { transform: rotate(-90deg) translateY(4px); }

.shop-all { margin-top: clamp(1.5rem, 3vw, 2.5rem); }

/* =========================================================
   CATALOGUE (products.html): category pages, accordions, search
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.catalogue {
  min-height: 100svh; padding: calc(var(--header-h) + clamp(2rem, 5vw, 4rem)) 0 var(--space);
  background:
    radial-gradient(40vw 40vw at 92% 4%, rgba(31, 63, 191, .14), transparent 70%),
    radial-gradient(36vw 36vw at 0% 46%, rgba(120, 160, 255, .18), transparent 70%),
    var(--grey);
}
.catalogue:focus { outline: none; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .95rem; font-weight: 500; color: var(--navy-72); }
.crumbs li + li::before { content: "\203A"; margin-right: .5rem; color: var(--navy-50); }
.crumbs a { color: var(--royal); text-underline-offset: .25em; }
.crumbs + .cat-head { margin-top: 1.25rem; }

.cat-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* Search */
.search { position: relative; max-width: 34rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.search svg { position: absolute; z-index: 1; left: 1.1rem; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--navy-72); pointer-events: none; }
.search input {
  width: 100%; min-height: 56px; padding: .9rem 1.25rem .9rem 3rem; border-radius: 999px;
  border: 1px solid var(--navy-14); background: rgba(255, 255, 255, .9); color: var(--navy);
  font: 500 1.05rem/1.2 var(--body);
  box-shadow: inset 0 1px 0 #fff, 0 18px 40px -30px rgba(11, 22, 64, .5);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: box-shadow .3s, border-color .3s;
}
.search input::placeholder { color: var(--navy-50); }
.search input:focus-visible { outline: none; border-color: var(--royal); box-shadow: 0 0 0 4px rgba(31, 63, 191, .18); }
.result + .result { margin-top: clamp(2rem, 4vw, 3rem); }
.result-h { font: 600 1.15rem/1.3 var(--body); margin-bottom: .9rem; }
.result-h a { color: var(--royal); text-underline-offset: .25em; }
mark { background: #FFE9A8; color: inherit; border-radius: 3px; padding: 0 .1em; }

/* Accordions: one per product type. Columns keep their own height, so opening one never stretches its neighbours. */
.acc-list { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start; }
@media (min-width: 700px) { .acc-list { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (min-width: 1120px) { .acc-list { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

.acc {
  border-radius: 20px; background: var(--white); overflow: hidden;
  box-shadow: 0 1px 0 rgba(11, 22, 64, .04), 0 22px 44px -32px rgba(31, 63, 191, .65);
  transition: box-shadow .5s var(--ease);
}
.acc.is-open { box-shadow: 0 1px 0 rgba(11, 22, 64, .04), 0 30px 60px -34px rgba(31, 63, 191, .8); }
.acc-h { font: inherit; }
.acc-bar {
  appearance: none; width: 100%; min-height: 60px; margin: 0; padding: .95rem 1.1rem .95rem 1.35rem; border: 0; border-radius: 20px;
  display: flex; align-items: center; gap: .75rem; text-align: left; cursor: pointer;
  background: var(--royal); color: var(--white); font: 600 1.05rem/1.25 var(--body);
  transition: background-color .3s, border-radius .45s var(--ease-io);
}
button.acc-bar:hover { background: var(--royal-deep); }
button.acc-bar:focus-visible { outline: 3px solid var(--navy); outline-offset: -5px; border-radius: 20px; }
.acc-name { flex: 1; }
.acc-n { font-size: .8rem; font-weight: 600; min-width: 1.9em; padding: .25em .5em; border-radius: 999px; text-align: center; background: rgba(255, 255, 255, .2); }
.acc-bar .chev { width: 22px; height: 22px; flex: none; transition: transform .45s var(--ease-io); }
.acc.is-open .acc-bar .chev { transform: rotate(180deg); }
.acc.is-open .acc-bar { border-radius: 20px 20px 0 0; }

.acc-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .5s var(--ease-io), visibility 0s .5s; }
.acc.is-open .acc-panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .5s var(--ease-io), visibility 0s; }
.acc-inner { min-height: 0; overflow: hidden; }
.acc-inner ul { padding: 1.1rem 1.35rem 1.35rem; display: grid; gap: .55rem; }
.acc-inner li { position: relative; padding-left: 1.35rem; line-height: 1.4; }
.acc-inner li::before { content: ""; position: absolute; left: .1rem; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: var(--royal); }

/* A product type with no variants: a single item, nothing to open */
.acc-single { box-shadow: none; background: transparent; }
.acc-single .acc-bar { cursor: default; font-weight: 600; background: rgba(255, 255, 255, .7); color: var(--navy); box-shadow: inset 0 0 0 1.5px rgba(31, 63, 191, .35); }

/* Product label: name, short description (smaller, grey), badge, optional note */
.p-desc { font-size: .88em; font-weight: 400; color: var(--navy-50); }
.acc-bar .p-desc { color: rgba(255, 255, 255, .72); }
.acc-single .acc-bar .p-desc { color: var(--navy-50); }
.p-badge {
  display: inline-block; margin-left: .15rem; padding: .2em .6em; border-radius: 999px; vertical-align: .08em;
  background: var(--ice); color: var(--royal); font-size: .72rem; font-weight: 600; line-height: 1.3; white-space: nowrap;
}
.acc-bar .p-badge { background: rgba(255, 255, 255, .92); }
.p-note, .acc-note { font-size: .85rem; color: var(--navy-72); }
.p-note { display: block; margin-top: .1rem; }
.acc-note { margin: -.4rem 1.35rem 1.25rem; padding-top: .75rem; border-top: 1px solid var(--navy-08); }

/* The category title can hold long single words, so it runs smaller than other page titles */
.cat-title { font-size: clamp(1.5rem, 3vw + .85rem, 3.6rem); }

/* Previous / next category */
.cat-nav { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cat-nav a {
  display: flex; align-items: center; gap: .75rem; min-height: 64px; padding: .8rem 1.1rem; border-radius: 20px;
  background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .9); text-decoration: none; font-weight: 600; line-height: 1.25;
  transition: background-color .3s, transform .45s var(--ease);
}
.cat-nav a:hover { background: var(--white); transform: translateY(-2px); }
.cat-nav small { display: block; font-size: .8rem; font-weight: 500; color: var(--navy-50); }
.cat-nav .chev { width: 20px; height: 20px; flex: none; color: var(--royal); }
.cat-prev .chev { transform: rotate(90deg); }
.cat-next { justify-content: flex-end; text-align: right; grid-column: 2; }
.cat-next .chev { transform: rotate(-90deg); }
@media (max-width: 560px) {
  .cat-nav { grid-template-columns: 1fr; }
  .cat-next { grid-column: 1; }
  .cat-nav > span:empty { display: none; }
}

/* Order bar at the bottom of every catalogue page */
.order-bar {
  margin-top: clamp(3rem, 6vw, 5rem); padding: clamp(1.75rem, 4vw, 3rem); border-radius: clamp(24px, 3vw, 40px);
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem clamp(2rem, 5vw, 4rem); align-items: center;
  background: var(--navy); color: var(--white);
}
.order-bar .h-md { color: var(--white); }
.order-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; }
.order-actions .pill { min-height: 52px; }
@media (max-width: 960px) {
  .order-bar { grid-template-columns: 1fr; }
  .order-actions { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .order-actions { display: grid; }
  .order-actions .pill { padding-inline: .9rem; font-size: .93rem; }
}

.nav a[aria-current="page"]::after { transform: scaleX(1); }

.shelves + .shelves { margin-top: 2rem; }
.shelves {
  margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--navy-14);
  display: grid; grid-template-columns: 14rem 1fr auto; gap: 1rem 3rem; align-items: baseline;
}
.shelves h3 { font: 600 1.1rem/1.3 var(--body); }
.shelves p { color: var(--navy-72); max-width: 44em; }
@media (max-width: 860px) { .shelves { grid-template-columns: 1fr; } }

/* =========================================================
   REFILL
   ========================================================= */
.refill { background: var(--white); padding-block: var(--space); }
.refill-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.refill-media { border-radius: clamp(24px, 3vw, 40px); overflow: hidden; aspect-ratio: 4 / 5; background: var(--grey); }
/* Portrait (9:16) loop cropped into the 4:5 box, framed low so both bottles stay whole. */
.refill-media video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 85%; }
.refill-text .lede { margin-top: 1.5rem; }
.steps { counter-reset: s; margin: 2.5rem 0; display: grid; gap: 1.5rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; }
.steps li::before {
  content: counter(s); grid-row: span 2; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--ice); color: var(--royal); font: 600 1.05rem/1 var(--body);
}
.steps strong { font: 600 1.15rem/1.3 var(--body); }
.steps span { color: var(--navy-72); }
@media (max-width: 860px) {
  .refill-grid { grid-template-columns: 1fr; }
  .refill-media { width: min(100%, 34rem); }
}

/* =========================================================
   STORY
   ========================================================= */
.story { padding-block: var(--space); background: var(--grey); overflow: clip; }
.story-year {
  font-size: min(29vw, 25.5rem); line-height: .78;
  color: var(--royal); margin: 0 0 clamp(2rem, 5vw, 4rem) -.05em;
}
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem clamp(2rem, 6vw, 6rem); }
.story-copy { display: grid; gap: 1.1rem; color: var(--navy-72); font-size: 1.1rem; max-width: 34em; }
.story-copy p:first-child { color: var(--navy); }
/* Team photo: the photo's own blue backdrop fills the card, the caption sits in its headroom */
.team {
  position: relative; overflow: hidden;
  margin-top: clamp(3rem, 7vw, 6rem);
  border-radius: clamp(24px, 3vw, 40px);
  background: #304FFF;               /* matches the photo's backdrop exactly */
  box-shadow: 0 40px 80px -48px rgba(11, 22, 64, .55);
}
.team figcaption {
  position: absolute; z-index: 1; top: clamp(1.25rem, 3vw, 2.5rem); left: clamp(1.25rem, 3.5vw, 3rem);
  display: grid; gap: .35rem; color: var(--white);
}
.team-title { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125; text-transform: uppercase; font-size: clamp(1.5rem, 3.6vw, 3.25rem); line-height: .95; letter-spacing: -.01em; }
.team-sub { font-size: clamp(.95rem, 1.3vw, 1.15rem); color: rgba(255, 255, 255, .85); }
.team picture, .team img { display: block; width: 100%; height: auto; }
@media (max-width: 700px) {
  /* Too little headroom on phones: caption sits above the photo instead */
  .team figcaption { position: static; padding: 1.5rem 1.25rem .25rem; }
}
.facts { margin-top: clamp(3rem, 7vw, 6rem); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--navy-14); }
.facts li { padding: 1.5rem 1.5rem 0 0; display: grid; gap: .25rem; }
.facts li + li { padding-left: 1.5rem; border-left: 1px solid var(--navy-14); }
.facts strong { font-size: clamp(1.15rem, 1.5vw, 1.6rem); line-height: 1; }
.facts span { color: var(--navy-72); }
@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 1.25rem 0; border-left: 0; border-bottom: 1px solid var(--navy-14); }
}

/* =========================================================
   REVIEWS
   ========================================================= */
.reviews { padding-block: 0 var(--space); background: var(--grey); }
.review-grid { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 20px); }
.review { border-radius: 28px; padding: 2rem; background: var(--white); display: flex; flex-direction: column; gap: 1rem; min-height: 240px; }
.review blockquote { font: 500 1.2rem/1.4 var(--body); flex: 1; }
.review-by { font-weight: 600; }
.review-flag { display: none; }
/* Marked placeholders: information the brief does not supply */
.flag {
  display: inline-block; justify-self: start; padding: .3rem .7rem; border-radius: 12px;
  border: 1.5px dashed rgba(31, 63, 191, .45); color: var(--royal); font-size: .8rem; font-weight: 600; line-height: 1.3;
}
.review.is-placeholder { background: transparent; border: 1.5px dashed rgba(31, 63, 191, .45); color: var(--navy-50); }
.review.is-placeholder .review-flag {
  display: inline-block; align-self: flex-start; padding: .35rem .75rem; border-radius: 999px;
  background: var(--ice); color: var(--royal); font-size: .82rem; font-weight: 600;
}
.reviews-more { margin-top: 2rem; }
@media (max-width: 860px) { .review-grid { grid-template-columns: 1fr; } .review { min-height: 0; } }

/* =========================================================
   VISIT
   ========================================================= */
.visit { padding-block: 0 var(--space); background: var(--grey); }
.delivery {
  display: grid; grid-template-columns: 1fr; gap: 1rem clamp(2rem, 5vw, 5rem); align-items: center;
  padding: clamp(2rem, 5vw, 4rem); border-radius: clamp(24px, 3vw, 40px);
  background: var(--navy); color: var(--white);
}
.delivery .h-md { color: var(--white); }
.delivery p:not(.delivery-price) { color: rgba(255, 255, 255, .75); margin-top: .6rem; max-width: 36em; }
.delivery-price { font-size: clamp(3.75rem, 9vw, 8rem); line-height: .8; color: var(--white); }
@media (max-width: 700px) { .delivery { grid-template-columns: 1fr; } }

.visit-grid { margin-top: clamp(4rem, 8vw, 7rem); display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.visit-info address { font: 600 clamp(1.25rem, 1.9vw, 1.6rem)/1.3 var(--body); margin: 1.75rem 0 .75rem; }
.hours { margin-top: 2.5rem; width: 100%; border-collapse: collapse; }
.hours caption { text-align: left; margin-bottom: .5rem; }
.hours th, .hours td { padding: .8rem 0; border-bottom: 1px solid var(--navy-14); text-align: left; font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.open-now { margin-top: 1rem; display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .95rem; }
.open-now::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.open-now.is-open { color: #1C7A4B; }
.open-now.is-closed { color: var(--navy-50); }
.contact { margin-top: 2.5rem; display: grid; gap: 0; }
.contact div { display: grid; grid-template-columns: 7rem 1fr; padding: .8rem 0; border-bottom: 1px solid var(--navy-14); }
.contact dt { color: var(--navy-50); }
.contact dd a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact dd a:hover { color: var(--royal); }
@media (max-width: 480px) {
  .contact div { grid-template-columns: 1fr; gap: .1rem; }
  .contact dt { font-size: .85rem; }
}
.footer-base a { white-space: nowrap; }
.map { border-radius: clamp(24px, 3vw, 40px); overflow: hidden; background: var(--ice); aspect-ratio: 4 / 5; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.85); }
@media (max-width: 860px) {
  .visit-grid { grid-template-columns: 1fr; }
  .map { position: static; aspect-ratio: 1; }
}

/* =========================================================
   CLOSING CTA
   ========================================================= */
.cta { position: relative; overflow: clip; background: var(--royal); color: var(--white); padding-block: clamp(7rem, 16vw, 14rem); isolation: isolate; }
.cta-inner { position: relative; z-index: 1; text-align: center; display: grid; justify-items: center; }
.cta-title { color: var(--white); font-size: clamp(2.5rem, 7.6vw, 8rem); }
.cta-lede { margin-top: 1.75rem; font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: rgba(255, 255, 255, .82); max-width: 30em; text-wrap: balance; }
.cta-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.cta-bubbles i {
  position: absolute; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .55) 0 6%, transparent 7%), radial-gradient(circle, transparent 62%, rgba(255, 255, 255, .22) 70%, rgba(190, 210, 255, .35) 100%);
  border: 1px solid rgba(255, 255, 255, .25);
  animation: rise linear infinite;
}
.cta-bubbles i:nth-child(1) { width: 22vw; height: 22vw; left: -6vw; bottom: -8vw; animation-duration: 26s; }
.cta-bubbles i:nth-child(2) { width: 9vw; height: 9vw; left: 14%; top: 18%; animation-duration: 19s; animation-delay: -6s; }
.cta-bubbles i:nth-child(3) { width: 15vw; height: 15vw; right: 6%; top: 8%; animation-duration: 23s; animation-delay: -3s; }
.cta-bubbles i:nth-child(4) { width: 5vw; height: 5vw; right: 22%; bottom: 14%; animation-duration: 15s; }
.cta-bubbles i:nth-child(5) { width: 28vw; height: 28vw; right: -10vw; bottom: -14vw; animation-duration: 30s; animation-delay: -12s; }
@keyframes rise { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(1.5vw, -3vw, 0); } }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .78); padding-block: clamp(4rem, 8vw, 6rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.footer-brand img { width: 220px; height: auto; background: var(--white); padding: 12px 16px; border-radius: 16px; }
.footer-brand p { margin-top: 1.25rem; max-width: 22em; }
.footer-h { font: 600 .95rem/1.2 var(--body); color: var(--white); margin-bottom: .9rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: .25em; }
.footer-base { margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } .footer-base { padding-bottom: 4.5rem; } }

/* ---------- Floating WhatsApp ---------- */
.wa-fab {
  position: fixed; right: clamp(16px, 2.5vw, 28px); bottom: clamp(16px, 2.5vw, 28px); z-index: 85;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--royal); color: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 18px 40px -14px rgba(31, 63, 191, .8);
  transition: transform .5s var(--ease);
}
.wa-fab svg { width: 28px; height: 28px; }
.wa-fab:hover { transform: scale(1.08); }

/* ---------- Bubble cursor (fine pointers, motion on) ---------- */
.cursor { display: none; }
@media (pointer: fine) {
  .cursor-on .cursor {
    display: block; position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none;
    width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
    background:
      radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .95) 0 9%, transparent 10%),
      radial-gradient(circle, rgba(255, 255, 255, .05) 58%, rgba(170, 200, 255, .35) 72%, rgba(31, 63, 191, .55) 100%);
    box-shadow: inset 0 0 0 1px rgba(31, 63, 191, .35);
    transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s;
  }
  .cursor-on .cursor.is-link { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .cursor-on .cursor.is-hidden { opacity: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
.rm .cta-bubbles i, .rm .scroll-cue span::after { animation: none; }
