/* BioRelix site.css
   Design read: premium e-commerce for Bali expats; clinical-editorial "apothecary lab notebook".
   Dials: variance 8, motion 7, density 3. One light theme, one accent (logo teal), one radius system.
   Type: Newsreader (display, light) + Geist (body) + Geist Mono (data: temps, lots, sequences, prices). */

:root {
  /* colour */
  --bone: #f3f0e8;          /* canvas */
  --bone-2: #ebe6db;        /* recessed surfaces */
  --paper: #faf8f3;         /* raised surfaces (off-white, never #fff) */
  --ink: #15201f;           /* off-black with a teal cast */
  --ink-2: #3d4847;
  --ink-3: #586260;         /* AA (>=4.5:1) on bone, bone-2 and paper */
  --line: #ddd7ca;
  --line-2: #c9c2b3;
  --accent: #1b5f7a;        /* logo teal: the only accent */
  --accent-2: #144a5f;
  --accent-soft: #dfe9ea;
  --ok: #2f6b4f;
  /* type */
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  /* radius system */
  --r-sm: 8px; --r: 14px; --r-lg: 24px; --r-pill: 999px;
  /* shadows tinted to the canvas hue */
  --sh-1: 0 1px 1px rgb(60 52 36 / .04), 0 2px 6px -2px rgb(60 52 36 / .08);
  --sh-2: 0 1px 2px rgb(60 52 36 / .05), 0 10px 30px -12px rgb(40 46 44 / .22);
  --sh-3: 0 30px 80px -24px rgb(21 32 31 / .38);
  /* layout */
  --wrap: 1360px;
  --gutter: clamp(16px, 4vw, 40px);
  --head-h: 72px;
  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --spring: linear(0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%, 0.938 16.7%, 1.017 20.4%, 1.041 24.4%, 1.026 28.8%, 0.998 36.1%, 0.996 47.8%, 1);
  /* z-index scale */
  --z-grain: 1; --z-sticky: 20; --z-head: 40; --z-bar: 60; --z-layer: 100; --z-toast: 120; --z-gate: 140;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bone);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, select { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--paper); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: var(--r-sm); z-index: var(--z-gate); }
.skip:focus { left: 8px; }
.i { width: 1.15em; height: 1.15em; flex: none; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 1; letter-spacing: -.01em; }

/* Grain: fixed, non-interactive texture layer */
.grain {
  position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none; opacity: .06; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Type ── */
h1, h2, h3 { font-family: var(--serif); font-weight: 300; letter-spacing: -.02em; line-height: 1.04; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(46px, 7.6vw, 112px); }
h2 { font-size: clamp(34px, 4.8vw, 64px); line-height: 1.06; }
h3 { font-size: 24px; line-height: 1.2; font-weight: 400; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: var(--accent); padding-bottom: .06em; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.muted { color: var(--ink-3); }
.eyebrow { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.mono-label { display: inline-block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.prose p + p { margin-top: 14px; }
.prose a, .faq a, .link, .article a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s; }
.prose a:hover, .faq a:hover, .link:hover, .article a:hover { color: var(--accent-2); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; color: var(--accent); }
.link-arrow .i { transition: transform .25s var(--ease-out); }
.link-arrow:hover .i { transform: translateX(4px); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--r-pill); border: 1px solid transparent;
  font-weight: 500; font-size: 15px; letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s var(--ease-out), box-shadow .2s;
}
.btn .i { width: 18px; height: 18px; transition: transform .25s var(--ease-out); }
.btn:hover .i:last-child:not(:first-child) { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--bone); }
.btn-ghost-light { border-color: rgb(250 248 243 / .55); color: var(--paper); }
.btn-ghost-light:hover { background: rgb(250 248 243 / .12); border-color: var(--paper); }
.btn-block { width: 100%; }

.ref-banner { position: relative; z-index: var(--z-head); background: var(--accent); color: var(--paper); font-size: 13px; text-align: center; padding: 9px var(--gutter); }

/* ── Header ── */
#top-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }
.site-head {
  position: sticky; top: 0; z-index: var(--z-head);
  background: rgb(243 240 232 / .78); backdrop-filter: saturate(1.3) blur(16px); -webkit-backdrop-filter: saturate(1.3) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.site-head.scrolled { border-bottom-color: var(--line); background: rgb(243 240 232 / .9); }
.head-row { display: flex; align-items: center; gap: 28px; height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 26px; height: 32px; object-fit: contain; }
.brand span { font-size: 13px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.main-nav { display: none; gap: 2px; }
.main-nav a { position: relative; padding: 8px 12px; font-size: 14.5px; color: var(--ink-2); text-decoration: none; transition: color .15s; }
.main-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { transform: scaleX(1); }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; text-decoration: none;
  transition: border-color .2s, background-color .2s, transform .15s var(--ease-out);
}
.icon-btn:hover { border-color: var(--ink); background: var(--paper); }
.icon-btn:active { transform: scale(.95); }
.icon-btn .i { width: 20px; height: 20px; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: var(--r-pill); background: var(--accent); color: var(--paper); font: 600 11px/1 var(--mono);
  display: none; align-items: center; justify-content: center;
}
.cart-count.on { display: inline-flex; }
.head-wa { display: none; }
.menu-btn { display: inline-flex; }
@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .head-wa { display: inline-flex; }
  .menu-btn { display: none; }
}

/* ── Layers: drawer, modal, menu (transitions, so rapid re-triggers retarget) ── */
.layer { position: fixed; inset: 0; overflow: hidden; z-index: var(--z-layer); visibility: hidden; pointer-events: none; transition: visibility 0s .3s; }
.layer.open { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.layer-bg { position: absolute; inset: 0; background: rgb(21 32 31 / .42); opacity: 0; transition: opacity .25s var(--ease-in); }
.layer.open .layer-bg { opacity: 1; transition: opacity .3s var(--ease-out); }
#gate { z-index: var(--z-gate); }
body.locked { overflow: hidden; }

.mnav-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: var(--bone);
  padding: 18px 24px 32px; overflow-y: auto; transform: translateX(100%); transition: transform .22s var(--ease-in);
}
.mnav.open .mnav-panel { transform: none; transition: transform .38s var(--ease-out); }
.mnav-panel nav { display: grid; margin: 10px 0 24px; }
.mnav-panel nav a { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--serif); font-weight: 300; font-size: 28px; }
.mnav-close { margin-left: auto; display: flex; }

.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); background: var(--bone);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .22s var(--ease-in);
  box-shadow: var(--sh-3);
}
.drawer.open .drawer-panel { transform: none; transition: transform .4s var(--ease-out); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 30px; }
.drawer-items { flex: 1; overflow-y: auto; padding: 4px 24px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line img { width: 64px; height: 64px; object-fit: contain; background: var(--paper); border-radius: var(--r-sm); mix-blend-mode: multiply; }
.line-name { font-weight: 500; font-size: 15px; line-height: 1.3; }
.line-price { font: 13px var(--mono); color: var(--ink-3); }
.line .stepper { height: 36px; }
.line .stepper button { width: 32px; }
.drawer-empty { padding: 56px 8px; text-align: center; color: var(--ink-2); }
.drawer-empty .btn { margin-top: 18px; }
.drawer-foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); background: var(--bone-2); }
.sum-row { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; }
.sum-row span:last-child { font-family: var(--mono); }
.sum-row.total { font-size: 18px; font-weight: 600; margin: 10px 0 4px; }
.sum-row .disc { color: var(--ok); }
.drawer-note { font-size: 13px; color: var(--ink-3); margin: 8px 0 14px; }
.drawer-alt { display: block; text-align: center; font-size: 13px; margin-top: 12px; }

.modal { display: flex; align-items: flex-end; justify-content: center; }
.modal-card {
  position: relative; width: 100%; max-width: 820px; max-height: 92vh; overflow-y: auto; background: var(--bone);
  border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--sh-3);
  opacity: 0; transform: translateY(24px) scale(.98); transform-origin: 50% 100%;
  transition: opacity .18s var(--ease-in), transform .2s var(--ease-in);
}
.modal.open .modal-card { opacity: 1; transform: none; transition: opacity .3s var(--ease-out), transform .45s var(--spring); }
@media (min-width: 720px) { .modal { align-items: center; padding: 24px; } .modal-card { border-radius: var(--r-lg); transform-origin: 50% 50%; } }
.modal-x { position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--bone); }
.qv { display: grid; }
@media (min-width: 720px) { .qv { grid-template-columns: 320px 1fr; } }
.qv-media { background: var(--paper); display: grid; place-items: center; padding: 28px; }
.qv-media img { max-height: 340px; width: auto; mix-blend-mode: multiply; }
.qv-body { padding: 30px; display: grid; gap: 12px; align-content: start; }
.qv-body h2 { font-size: 38px; }
.qv-body .price { font-size: 22px; }
.qv-body p { color: var(--ink-2); font-size: 15px; }
.qv-meta { list-style: none; display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 14px; }
.qv-meta li { display: flex; align-items: center; gap: 10px; }
.qv-meta .i { color: var(--accent); }
.qv-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

.gate { align-items: center; padding: 16px; }
.gate .modal-card { max-width: 460px; padding: 34px 28px 24px; text-align: center; border-radius: var(--r-lg); transform: translateY(16px); }
.gate img { width: 40px; height: 50px; margin: 0 auto 16px; object-fit: contain; }
.gate h2 { font-size: 34px; margin-bottom: 10px; }
.gate p { color: var(--ink-2); font-size: 14.5px; }
.gate ul { list-style: none; display: grid; gap: 8px; text-align: left; margin: 20px 0 22px; }
.gate li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14px; color: var(--ink-2); padding: 11px 13px; background: var(--paper); border-radius: var(--r-sm); }
.gate li b { color: var(--ink); font-weight: 600; }
.gate li .i { color: var(--accent); width: 20px; height: 20px; margin-top: 1px; }
.gate .leave { display: block; margin: 14px auto 0; font-size: 13px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.gate small { display: block; margin-top: 12px; font-size: 11.5px; color: var(--ink-3); }

.cartbar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: var(--z-bar);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 560px; margin: 0 auto;
  padding: 10px 10px 10px 20px; border-radius: var(--r-pill); background: var(--ink); color: var(--paper); box-shadow: var(--sh-3);
  transform: translateY(150%); visibility: hidden; transition: transform .25s var(--ease-in), visibility 0s .25s;
}
.cartbar.on { transform: none; visibility: visible; transition: transform .5s var(--spring); }
.cartbar-txt { font-size: 14px; }
.cartbar-txt strong { font-family: var(--mono); font-weight: 500; }
.cartbar .btn { min-height: 44px; padding: 0 18px; background: var(--paper); color: var(--ink); }
.cartbar .btn:hover { background: var(--bone); }

.toast {
  position: fixed; left: 50%; bottom: 86px; z-index: var(--z-toast); pointer-events: none;
  background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: var(--r-pill); font-size: 14px;
  opacity: 0; transform: translate(-50%, 12px) scale(.96); transition: opacity .15s var(--ease-in), transform .15s var(--ease-in);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); transition: opacity .2s var(--ease-out), transform .35s var(--spring); }

/* ── Hero: full-width two-line headline, copy + film below (asymmetric) ── */
.hero { min-height: calc(100dvh - var(--head-h)); display: grid; align-items: center; padding: clamp(24px, 4vw, 48px) 0 clamp(32px, 4vw, 56px); }
.hero-grid { display: grid; gap: 24px; }
.hero-title { font-size: clamp(48px, 9.4vw, 136px); line-height: .98; letter-spacing: -.035em; }
.hero-title .l1, .hero-title .l2 { display: block; }
.hero-copy .lede { max-width: 34ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-media { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #8d9a83; aspect-ratio: 16 / 10; box-shadow: var(--sh-2); }
.hero-media img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 28% 55%; }
.hero-video { opacity: 0; transition: opacity 1.2s var(--ease-out); }
.hero-video.ready { opacity: 1; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(32px, 4vw, 64px); row-gap: clamp(24px, 3vw, 40px); align-items: start; }
  .hero-title { grid-column: 1 / -1; }
  .hero-title .l2 { padding-left: calc(33.3% + 20px); }
  .hero-copy { padding-top: 8px; }
  .hero-media { aspect-ratio: auto; height: clamp(300px, calc(100dvh - var(--head-h) - 2 * clamp(48px, 9.4vw, 136px) - 140px), 620px); min-height: 300px; margin-right: calc(var(--gutter) * -1); border-radius: var(--r-lg) 0 0 var(--r-lg); }
}
@media (min-width: 1440px) { .hero-media { margin-right: calc((100vw - var(--wrap)) / -2 - var(--gutter)); } }

/* Hero entrance: once per visit (rare, so expressive) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; }
.js .hero .w > span { transform: translateY(105%); }
.js .hero .hero-in { opacity: 0; transform: translateY(14px); filter: blur(6px); }
.js .hero .hero-media { clip-path: inset(10% 0 10% 12% round var(--r-lg)); }
.js .hero .hero-media img { transform: scale(1.12); }
.hero.play .w > span { transform: none; transition: transform 1s var(--ease-out); transition-delay: calc(120ms + var(--w) * 70ms); }
.hero.play .hero-in { opacity: 1; transform: none; filter: none; transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), filter .8s var(--ease-out); transition-delay: calc(500ms + var(--d) * 120ms); }
.hero.play .hero-media { clip-path: inset(0 0 0 0 round var(--r-lg)); transition: clip-path 1.4s var(--ease-out) .1s; }
@media (min-width: 960px) { .hero.play .hero-media { clip-path: inset(0 0 0 0 round var(--r-lg) 0 0 var(--r-lg)); } }
.hero.play .hero-media img { transform: none; transition: transform 2.2s var(--ease-out) .1s; }

/* ── Delivery clock (instrument readout) ── */
.clock { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bone-2); position: relative; z-index: 2; }
.clock-row { display: grid; grid-template-columns: 1fr 1fr; }
.clock-cell { padding: 18px 0; display: grid; gap: 6px; align-content: center; }
.clock-cell b { font-weight: 500; font-size: 20px; display: inline-flex; align-items: center; gap: 8px; }
.clock-cell b .i { color: var(--accent); }
.clock-main { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
.clock-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-size: clamp(17px, 1.7vw, 22px); line-height: 1.35; }
.clock-line [data-clock-status] { color: var(--ink-2); }
.clock-line [data-clock-status] strong { color: var(--accent); font-family: var(--mono); font-weight: 500; }
.select-wrap { position: relative; display: inline-flex; align-items: center; }
.select-wrap select {
  appearance: none; -webkit-appearance: none; font-family: var(--serif); font-size: 1.3em; font-style: italic; font-weight: 400;
  color: var(--accent); padding: 0 30px 2px 0; border-bottom: 1px solid currentColor; cursor: pointer; min-height: 44px;
}
.select-wrap .i { position: absolute; right: 2px; pointer-events: none; color: var(--accent); }
@media (min-width: 900px) {
  .clock-row { grid-template-columns: auto 1fr auto auto; gap: 0; }
  .clock-cell { padding: 22px 28px; border-left: 1px solid var(--line); }
  .clock-cell:first-child { border-left: 0; padding-left: 0; }
  .clock-cell:last-child { padding-right: 0; }
  .clock-main { grid-column: auto; border-bottom: 0; }
}

/* ── Marquee (one per page) ── */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding: 16px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; flex: none; }
.seq { display: inline-flex; align-items: baseline; gap: 12px; padding: 0 28px; font-family: var(--mono); font-size: 14px; color: var(--ink-3); letter-spacing: .14em; white-space: nowrap; }
.seq b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 19px; letter-spacing: -.01em; color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Sections ── */
.section { padding: clamp(64px, 9vw, 140px) 0; position: relative; }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 4vw, 56px); max-width: 820px; }
.sec-head h2 { margin: 0; }
.sec-head.row { max-width: none; }
@media (min-width: 900px) { .sec-head.row { grid-template-columns: 1fr auto; align-items: end; gap: 48px; } .sec-head.row .lede { max-width: 40ch; } }

/* ── Shop ── */
.shop-bar {
  position: sticky; top: var(--head-h); z-index: var(--z-sticky); background: rgb(243 240 232 / .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 12px 0; margin-bottom: 28px; border-bottom: 1px solid var(--line); display: grid; gap: 12px;
}
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line-2);
  font-size: 14px; font-weight: 500; color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px;
  transition: background-color .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip small { font: 11.5px var(--mono); color: var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip[aria-pressed="true"] small { color: rgb(250 248 243 / .7); }
.search { position: relative; }
.search .i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); }
.search input {
  width: 100%; height: 46px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--paper);
  padding: 0 18px 0 44px; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
@media (min-width: 1024px) { .shop-bar { grid-template-columns: 1fr 320px; align-items: center; } .chips { margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; } }

.cat-block { margin-bottom: 56px; }
.cat-block[hidden] { display: none; }
.cat-title { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.cat-title h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 300; }
.cat-title p { font-size: 14px; color: var(--ink-3); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r); overflow: hidden;
  box-shadow: var(--sh-1); transition: box-shadow .35s var(--ease-out), transform .35s var(--ease-out);
}
.card:hover { box-shadow: var(--sh-2); transform: translateY(-3px); }
.card[hidden] { display: none; }
.card-media { position: relative; display: block; width: 100%; background: linear-gradient(180deg in oklch, #f4f3ef, #e9e7e0); aspect-ratio: 1 / 1; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 6% 14%; mix-blend-mode: multiply; transition: transform .6s var(--ease-out); }
.card:hover .card-media img { transform: translateY(-2%) scale(1.05) rotate(-1.5deg); }
.qv-hint {
  position: absolute; left: 12px; bottom: 12px; font: 500 11.5px var(--mono); letter-spacing: .04em; text-transform: uppercase;
  background: var(--paper); padding: 6px 10px; border-radius: var(--r-pill); opacity: 0; transform: translateY(6px);
  transition: opacity .2s var(--ease-out), transform .25s var(--ease-out);
}
.card:hover .qv-hint, .card-media:focus-visible .qv-hint { opacity: 1; transform: none; }
@media (hover: none) { .qv-hint { display: none; } }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.card .mono-label { font-size: 10.5px; }
.card .tag { color: var(--accent); }
.card-name { font-family: var(--sans); font-size: 16.5px; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; }
.card-name a { text-decoration: none; transition: color .15s; }
.card-name a:hover { color: var(--accent); }
.card-name .dose { font-weight: 400; color: var(--ink-3); }
.card-spec { font-size: 12.5px; color: var(--ink-3); line-height: 1.35; min-height: 2.7em; }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; }
.price { font-family: var(--mono); font-weight: 500; font-size: 15px; letter-spacing: -.02em; }
.per-mg { display: block; font: 11px var(--mono); color: var(--ink-3); margin-top: 2px; }
.add {
  flex: none; height: 44px; min-width: 44px; padding: 0 16px; border-radius: var(--r-pill); background: var(--ink); color: var(--paper);
  font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background-color .15s, transform .12s var(--ease-out);
}
.add .i { width: 16px; height: 16px; }
.add:hover { background: var(--accent-2); }
.add:active { transform: scale(.96); }
.stepper { display: inline-flex; align-items: center; height: 44px; border-radius: var(--r-pill); border: 1px solid var(--ink); overflow: hidden; background: var(--paper); animation: pop-in .16s var(--ease-out); }
.stepper button { width: 40px; height: 100%; font-size: 18px; line-height: 1; transition: background-color .12s; }
.stepper button:hover { background: var(--bone-2); }
.stepper output { min-width: 22px; text-align: center; font: 500 14px var(--mono); }
@keyframes pop-in { from { opacity: 0; transform: scale(.92); } }
@media (max-width: 440px) {
  .card-body { padding: 12px 12px 14px; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .add, .stepper { width: 100%; }
  .stepper { justify-content: space-between; }
}
.no-results { display: none; padding: 32px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--ink-2); }
.no-results.on { display: block; }

/* ── Bento ── */
.bento { display: grid; gap: 14px; }
.b { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--paper); box-shadow: var(--sh-1); }
.b figcaption, .b > h3, .b > p { position: relative; }
figure.b { min-height: 300px; background: var(--ink); }
figure.b img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
figure.b::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg in oklch, rgb(21 32 31 / 0) 35%, rgb(21 32 31 / .72)); }
figure.b figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 26px; color: var(--paper); display: grid; gap: 6px; max-width: 46ch; font-size: 15px; }
figure.b .big { font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 8vw, 120px); line-height: .9; letter-spacing: -.03em; }
figure.b .mono { font-size: 30px; }
div.b { padding: 30px; display: grid; gap: 12px; align-content: start; }
div.b > .i { width: 30px; height: 30px; color: var(--accent); margin-bottom: 8px; }
div.b h3 { font-size: 28px; }
div.b p { color: var(--ink-2); font-size: 15px; }
div.b .link-arrow { margin-top: 8px; }
.b-coa { background: var(--accent-soft); }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(240px, auto); gap: 18px; }
  .b-lab { grid-column: 1 / 9; grid-row: span 2; min-height: 560px; }
  .b-coa { grid-column: 9 / 13; }
  .b-cold { grid-column: 9 / 13; }
  .b-kit { grid-column: 1 / 6; }
  .b-pay { grid-column: 6 / 13; align-content: center; }
}

/* ── Cold-chain journey: horizontal pan driven by scroll (CSS scroll-driven animation) ── */
.journey { position: relative; padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.journey-track { display: grid; gap: 14px; padding: 0 var(--gutter); max-width: var(--wrap); margin: 0 auto; }
.panel { background: var(--paper); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--sh-1); }
.panel .t { font-size: clamp(44px, 5vw, 76px); line-height: 1; letter-spacing: -.04em; color: var(--accent); margin-bottom: auto; padding-bottom: 24px; }
.panel-img .t { font-size: 22px; padding-bottom: 0; margin-bottom: 6px; }
.panel h3 { font-size: 30px; }
.panel p { color: var(--ink-2); font-size: 15px; max-width: 34ch; }
.panel-img img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--r); margin-bottom: auto; }
.panel-img .t { margin-top: 18px; }
.panel-intro { background: transparent; box-shadow: none; padding: 0 0 12px; justify-content: center; }
.panel-intro h2 { margin-bottom: 18px; }
.journey-meter { max-width: var(--wrap); margin: 22px auto 0; padding: 0 var(--gutter); display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--ink-2); }
.journey-meter span { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.journey-meter .i { color: var(--accent); }
.journey-meter .bar { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; border-radius: 2px; }
.journey-meter .bar::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(1); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 720px) {
    .journey { height: 360vh; padding: 0; view-timeline-name: --journey; }
    .journey-sticky { position: sticky; top: var(--head-h); height: calc(100dvh - var(--head-h)); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
    .journey-track {
      display: flex; gap: 22px; width: max-content; max-width: none; margin: 0; padding: 0 var(--gutter);
      animation: pan linear both; animation-timeline: --journey; animation-range: contain 0% contain 100%;
    }
    .panel { width: min(420px, 74vw); height: min(62dvh, 540px); flex: none; }
    .panel-intro { width: min(560px, 80vw); }
    .panel-img img { height: 46%; }
    .journey-meter .bar::after { animation: grow linear both; animation-timeline: --journey; animation-range: contain 0% contain 100%; }
  }
}
@keyframes pan { to { transform: translateX(calc(-100% + 100vw)); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (min-width: 900px) {
  @supports not (animation-timeline: view()) {
    .journey-track { grid-template-columns: repeat(5, 1fr); }
    .panel-intro { grid-column: 1 / -1; }
  }
}

/* ── Area gallery ── */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.area { position: relative; display: block; border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--paper); aspect-ratio: 4 / 3; background: var(--ink); }
.area img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.area:hover img { transform: scale(1.06); }
.area::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg in oklch, rgb(21 32 31 / 0) 40%, rgb(21 32 31 / .74)); }
.area-txt { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; display: grid; gap: 2px; transition: transform .45s var(--ease-out); }
.area:hover .area-txt { transform: translateY(-4px); }
.area-txt strong { font-family: var(--serif); font-weight: 300; font-size: 24px; line-height: 1.1; }
.area-txt .mono { font-size: 12px; display: inline-flex; align-items: center; gap: 6px; opacity: .92; }
.area-txt .i { width: 14px; height: 14px; }
.area-0 { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .area { aspect-ratio: auto; min-height: 200px; }
  .area-0 { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .area-0 .area-txt strong { font-size: 44px; }
  .area-1 { grid-column: span 2; }
  .area-1 .area-txt strong { font-size: 34px; }
}
.areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .areas { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.area-note { margin-top: 22px; font-size: 14px; color: var(--ink-3); max-width: 80ch; }
.pill-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pill-links a { font-size: 14px; padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center; border-radius: var(--r-pill); border: 1px solid var(--line-2); text-decoration: none; color: var(--ink); transition: border-color .15s, background-color .15s; }
.pill-links a:hover { border-color: var(--ink); background: var(--paper); }

/* ── Research index ── */
.lib-wrap .sec-head { grid-template-columns: 1fr auto; align-items: end; max-width: none; }
.index { list-style: none; border-top: 1px solid var(--ink); }
.index li { border-bottom: 1px solid var(--line-2); }
.index a {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; align-items: center;
  padding: 24px 4px; text-decoration: none; isolation: isolate;
}
.index a::before { content: ""; position: absolute; inset: 0; background: var(--paper); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .35s var(--ease-out); }
.index a:hover::before { transform: scaleY(1); }
.index strong { font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -.015em; grid-column: 1; }
.index .mono-label { grid-column: 1; }
.index .ix-sub { grid-column: 1; color: var(--ink-3); font-size: 14.5px; }
.index .i { grid-column: 2; grid-row: 1 / 4; width: 26px; height: 26px; color: var(--accent); transition: transform .35s var(--ease-out); }
.index a:hover .i { transform: translate(4px, -4px); }
@media (min-width: 900px) {
  .index a { grid-template-columns: 140px 1fr 1fr auto; padding: 30px 8px; }
  .index .mono-label { grid-column: 1; grid-row: 1; }
  .index strong { grid-column: 2; grid-row: 1; }
  .index .ix-sub { grid-column: 3; grid-row: 1; }
  .index .i { grid-column: 4; grid-row: 1; }
}

/* ── FAQ ── */
.faq-grid { display: grid; gap: clamp(28px, 4vw, 72px); }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: 400px 1fr; } .faq-grid .sec-head { position: sticky; top: calc(var(--head-h) + 32px); align-self: start; } }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-child { border-top: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font-weight: 500; font-size: 17px; line-height: 1.4; transition: color .15s; }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease-out); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq .ans { padding: 0 0 24px; color: var(--ink-2); max-width: 68ch; }
.faq details[open] .ans { animation: ans-in .3s var(--ease-out); }
@keyframes ans-in { from { opacity: 0; transform: translateY(-6px); } }

/* ── Closing statement ── */
.statement { padding: clamp(80px, 12vw, 180px) 0; border-top: 1px solid var(--line); }
.statement h2 { font-size: clamp(48px, 9vw, 140px); line-height: .98; letter-spacing: -.03em; max-width: 14ch; }
.statement-row { display: grid; gap: 22px; margin-top: 36px; align-items: center; }
@media (min-width: 900px) { .statement-row { grid-template-columns: minmax(0, 46ch) auto; justify-content: space-between; } }
.cta-band { display: grid; gap: 22px; align-items: center; padding: clamp(32px, 5vw, 60px); border-radius: var(--r-lg); background: var(--bone-2); }
.cta-band h2 { font-size: clamp(30px, 3.8vw, 46px); }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; } }

/* ── Footer (same light theme, recessed tone) ── */
.site-foot { background: var(--bone-2); padding: 72px 0 28px; font-size: 14.5px; color: var(--ink-2); position: relative; z-index: 2; }
.foot-top { display: grid; gap: 20px; padding-bottom: 44px; border-bottom: 1px solid var(--line-2); margin-bottom: 44px; }
@media (min-width: 900px) { .foot-top { grid-template-columns: auto 1fr auto; align-items: center; gap: 48px; } }
.brand-lg img { width: 34px; height: 42px; }
.brand-lg span { font-size: 15px; }
.foot-top p { max-width: 52ch; }
.foot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
@media (min-width: 1024px) { .foot-grid { grid-template-columns: repeat(4, 1fr); } }
.foot-col h4 { font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.foot-col ul { list-style: none; display: grid; gap: 4px; }
.foot-col a { display: inline-block; padding: 4px 0; text-decoration: none; transition: color .15s; }
.foot-col a:hover { color: var(--accent); }
.compliance { margin-top: 48px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 13px; line-height: 1.6; }
.foot-bottom { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; color: var(--ink-3); }
.foot-bottom a { text-decoration: none; }
.foot-bottom a:hover { color: var(--ink); }

/* ── Sub pages ── */
main { position: relative; z-index: 2; }
.crumbs { font: 12.5px var(--mono); color: var(--ink-3); padding-top: 20px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.page-hero { position: relative; margin-top: 18px; border-radius: var(--r-lg); overflow: hidden; min-height: min(72dvh, 620px); display: flex; align-items: flex-end; color: var(--paper); background: var(--ink); }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg in oklch, rgb(21 32 31 / .05) 25%, rgb(21 32 31 / .8)); }
.page-hero-txt { position: relative; z-index: 1; padding: clamp(24px, 4vw, 56px); max-width: 820px; }
.page-hero h1 { color: var(--paper); font-size: clamp(46px, 7vw, 96px); margin: 0 0 16px; }
.page-hero .eyebrow { color: var(--paper); opacity: .9; }
.page-hero p { color: rgb(250 248 243 / .92); font-size: clamp(16px, 1.5vw, 19px); max-width: 56ch; }
.page-hero .hero-ctas { margin-top: 26px; }
.page-intro { padding: clamp(28px, 5vw, 64px) 0 28px; }
.page-intro h1 { font-size: clamp(44px, 6.4vw, 92px); margin: 14px 0 20px; }
.page-intro .lede { max-width: 62ch; }
.cols { display: grid; gap: 28px; }
@media (min-width: 900px) { .cols { grid-template-columns: repeat(3, 1fr); gap: 44px; } }
.cols h3 { margin-bottom: 10px; }
.cols p { color: var(--ink-2); font-size: 15.5px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag-list li { list-style: none; font: 13px var(--mono); padding: 7px 12px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-2); }
.table-wrap { overflow-x: auto; border-radius: var(--r); background: var(--paper); box-shadow: var(--sh-1); }
table.prices { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
table.prices th, table.prices td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.prices thead th { font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: var(--bone-2); }
table.prices tbody th { font-weight: 500; }
table.prices td.num { font-family: var(--mono); white-space: nowrap; }
table.prices tr.group th { background: var(--paper); font-family: var(--serif); font-size: 22px; font-weight: 300; padding-top: 26px; }
table.prices tbody tr:not(.group) { transition: background-color .15s; }
table.prices tbody tr:not(.group):hover { background: var(--bone); }
table.prices a { color: var(--accent); text-underline-offset: 3px; }
table.prices .add { height: 40px; font-size: 13px; padding: 0 14px; }
table.prices .stepper { height: 40px; }
.guide-hero { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(24px, 4vw, 56px) 0; }
@media (min-width: 900px) { .guide-hero { grid-template-columns: 1.2fr .8fr; } }
.guide-hero h1 { font-size: clamp(46px, 6.4vw, 92px); margin: 0 0 18px; }
.guide-hero .from { margin-top: 20px; font-size: 15px; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.guide-hero .from strong { font: 500 22px var(--mono); color: var(--ink); }
.guide-hero .from .mono { font-size: 12.5px; color: var(--ink-3); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.guide-media { background: linear-gradient(180deg in oklch, #f4f3ef, #e6e3da); border-radius: var(--r-lg); display: grid; place-items: center; aspect-ratio: 1 / 1; overflow: hidden; }
.guide-media img { width: 66%; height: auto; mix-blend-mode: multiply; }
.article { max-width: 760px; }
.article h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 64px 0 18px; }
.article h3 { font-size: 19px; margin: 22px 0 6px; font-family: var(--sans); font-weight: 600; letter-spacing: -.005em; }
.article p { color: var(--ink-2); font-size: 17px; }
.article p + p { margin-top: 14px; }
.research div { padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.research div:first-child { border-top: 1px solid var(--line-2); }
.research h3 { margin: 0 0 4px; }
.research p { font-size: 15.5px; }
table.spec { width: 100%; border-collapse: collapse; font-size: 15.5px; background: var(--paper); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1); }
table.spec th, table.spec td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec th { width: 34%; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
table.spec td { font-family: var(--mono); font-size: 14.5px; }
table.spec tr:last-child th, table.spec tr:last-child td { border-bottom: 0; }
.note { margin-top: 28px; padding: 16px 18px; border-radius: var(--r); background: var(--bone-2); font-size: 14px; color: var(--ink-2); }
.grid.few { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 660px; }

/* ── Scroll reveals (JS adds .js to <html>; content is visible without JS) ── */
.js .rv { opacity: 0; transform: translateY(18px); filter: blur(6px); }
.js .rv.in { opacity: 1; transform: none; filter: none; transition: opacity .7s var(--ease-out), transform .8s var(--ease-out), filter .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .card.rv.in { transition: opacity .7s var(--ease-out), transform .8s var(--ease-out), filter .7s var(--ease-out), box-shadow .35s var(--ease-out); }
.js .card.rv.in:hover { transform: translateY(-3px); transition-delay: 0s; }
.js .rv-img { clip-path: inset(14% 0 0 0 round var(--r-lg)); }
.js .rv-img img { transform: scale(1.14); }
.js .rv-img.in { clip-path: inset(0 0 0 0 round var(--r-lg)); transition: clip-path 1.1s var(--ease-out); }
.js .rv-img.in img { transform: none; transition: transform 1.6s var(--ease-out); }
.js .rv-img figcaption { opacity: 0; transform: translateY(12px); }
.js .rv-img.in figcaption { opacity: 1; transform: none; transition: opacity .7s var(--ease-out) .4s, transform .8s var(--ease-out) .4s; }

/* Gentle parallax on bento photography (scroll-driven, no JS) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .bento figure.b.in img, .page-hero > img { animation: drift linear both; animation-timeline: view(); animation-range: cover; }
  }
}
@keyframes drift { from { transform: translateY(-4%) scale(1.1); } to { transform: translateY(4%) scale(1.1); } }

/* ── Reduced motion: decorative motion removed, state changes become instant ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-set[aria-hidden] { display: none; }
  .marquee-set { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .marquee { mask-image: none; }
  .js .rv, .js .rv-img, .js .rv-img img, .js .rv-img figcaption, .js .hero .w > span, .js .hero .hero-in, .js .hero .hero-media, .js .hero .hero-media img { opacity: 1; transform: none; filter: none; clip-path: none; }
  .hero-video { display: none; }
}
