/* Built by tools/build.mjs from src/css. Edit the sources, then rebuild. */
/* src/css/01-tokens.css */
/* ==========================================================================
   Rep Peptides design tokens
   Concept: Precision in Motion. Two families only: Sora (display) and Inter (body and labels).
   Outline type means "not yet clear",
   solid type means "clear". Dark stages for atmosphere, soft-white for shopping.
   ========================================================================== */

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette (brief values) */
  --ink: #080d14;          /* midnight charcoal */
  --ink-2: #0b1320;
  --navy: #111d2c;
  --navy-2: #172a3f;
  --paper: #f4f7fa;        /* soft white shopping surface */
  --paper-2: #e9eef4;
  --white: #ffffff;
  --blue: #0875c9;         /* brand blue: accents, large elements */
  --blue-600: #0768b3;     /* action fill, passes 4.5:1 with white text */
  --blue-700: #055a9c;
  --cyan: #13b4da;         /* accent, focus, scan line */
  --cyan-soft: rgba(19, 180, 218, 0.16);

  /* Text */
  --t-on-dark: #eaf1f8;
  --t-on-dark-2: #a6b6c9;
  --t-on-dark-3: #7d8fa5;
  --t-on-light: #0a1422;
  --t-on-light-2: #4c5d72;
  --t-on-light-3: #56667a;

  /* Lines */
  --line-dark: rgba(166, 182, 201, 0.16);
  --line-dark-2: rgba(166, 182, 201, 0.28);
  --line-light: #d6dee8;
  --line-light-2: #c3cfdc;

  /* States */
  --ok: #0f7a50;
  --ok-dark: #3fcf95;
  --warn: #9a5b00;
  --danger: #b4342c;
  --danger-dark: #ff8a80;

  /* Type */
  --f-display: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-label: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif; /* small uppercase labels */

  --fs-hero: clamp(2.75rem, min(1.2rem + 6.2vw, 11.4vh), 7rem); /* 44 to 112, capped by viewport height */
  --fs-h2: clamp(2.25rem, 1rem + 3.6vw, 4.5rem);          /* 36 / 44 / 68 / 72 */
  --fs-h3: clamp(1.375rem, 1rem + 1vw, 1.875rem);
  --fs-h4: 1.1875rem;
  --fs-lede: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);
  --fs-body: 1.0625rem;                                    /* 17px */
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-label: 0.75rem;

  /* Space and shape */
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 4rem);
  --maxw: 1440px;
  --maxw-wide: 1680px;
  --section-y: clamp(4.5rem, 3rem + 6vw, 9rem);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Header */
  --header-h: 96px;
  --header-h-compact: 72px;
  --ruo-h: 34px;
  --consent-offset: 0px;   /* set by a cookie/consent banner so sticky UI stays clear */

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --d-fast: 160ms;
  --d-card: 260ms;
  --d-reveal: 520ms;

  /* Elevation */
  --shadow-card: 0 1px 2px rgba(8, 13, 20, 0.06), 0 12px 32px -12px rgba(8, 13, 20, 0.18);
  --shadow-float: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
  --glow: 0 0 0 1px rgba(19, 180, 218, 0.35), 0 10px 40px -10px rgba(19, 180, 218, 0.45);
}

/* Phones in landscape: a slimmer header leaves room for content */
@media (orientation: landscape) and (max-height: 540px) {
  :root { --header-h: 64px; --header-h-compact: 56px; }
}
@media (max-width: 767px) {
  :root {
    --header-h: 68px;
    --header-h-compact: 60px;
    --ruo-h: 30px;
    --fs-body: 1rem;
  }
}

/* src/css/02-base.css */
/* ==========================================================================
   Base: reset, typography, utilities, buttons, forms
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h-compact) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--t-on-dark);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--f-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
dl, dd { margin: 0; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }
::selection { background: var(--cyan); color: var(--ink); }

/* Focus: always visible for keyboard users */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-light :focus-visible, .surface-light :focus-visible { outline-color: var(--blue-600); }

/* Surfaces */
.surface-light { background: var(--paper); color: var(--t-on-light); }
.surface-white { background: var(--white); color: var(--t-on-light); }
.surface-navy { background: var(--navy); color: var(--t-on-dark); }
.surface-ink { background: var(--ink); color: var(--t-on-dark); }

/* Layout */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: var(--maxw-wide); }
.container--narrow { max-width: 960px; }
.section { padding-block: var(--section-y); position: relative; }
.stack > * + * { margin-top: var(--stack, 1rem); }

/* Type utilities */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--f-label); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan);
}
.surface-light .eyebrow, .surface-white .eyebrow { color: var(--blue-700); }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.8; }
.eyebrow--plain::before { display: none; }
.mono { font-family: var(--f-label); font-weight: 600; font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; }
.h-display { font-size: var(--fs-h2); letter-spacing: -0.04em; line-height: 0.98; }
.h-section { font-size: var(--fs-h2); letter-spacing: -0.04em; line-height: 1; }
.h-sub { font-size: var(--fs-h3); letter-spacing: -0.025em; }
.lede { font-size: var(--fs-lede); line-height: 1.6; color: var(--t-on-dark-2); max-width: 38rem; }
.surface-light .lede, .surface-white .lede { color: var(--t-on-light-2); }
.muted { color: var(--t-on-dark-2); }
.surface-light .muted, .surface-white .muted { color: var(--t-on-light-2); }
.small { font-size: var(--fs-sm); }
.xsmall { font-size: var(--fs-xs); }
.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;
}
.outline-type {
  color: transparent;
  -webkit-text-stroke: 1px currentColor;
}
.text-link {
  color: inherit; font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px; transition: background-size var(--d-card) var(--ease-out), color var(--d-fast);
}
.text-link:hover { background-size: 0% 1px; background-position: 100% 100%; }
.arrow-link { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; text-decoration: none; }
.arrow-link svg { transition: transform var(--d-fast) var(--ease-out); }
.arrow-link:hover svg { transform: translateX(4px); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--white); color: var(--ink); padding: 0.75rem 1rem; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Icons */
.icon { width: 20px; height: 20px; flex: none; }
.icon--sm { width: 16px; height: 16px; }

/* Buttons */
.btn {
  --btn-bg: var(--blue-600); --btn-fg: var(--white); --btn-bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0.8rem 1.4rem;
  border: 1px solid var(--btn-bd); border-radius: var(--r-md);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--f-body); font-weight: 600; font-size: 1rem; line-height: 1.2; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--d-fast) ease, border-color var(--d-fast) ease, color var(--d-fast) ease, box-shadow var(--d-card) ease, transform var(--d-fast) ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { --btn-bg: var(--blue); box-shadow: 0 10px 30px -12px rgba(8, 117, 201, 0.8); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.btn .icon { width: 18px; height: 18px; }
.btn--ghost { --btn-bg: rgba(255, 255, 255, 0.04); --btn-fg: var(--t-on-dark); --btn-bd: rgba(234, 241, 248, 0.32); backdrop-filter: blur(6px); }
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.1); --btn-bd: rgba(234, 241, 248, 0.6); box-shadow: none; }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--ink); }
.btn--light:hover { --btn-bg: var(--paper); box-shadow: none; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--t-on-light); --btn-bd: var(--line-light-2); }
.btn--outline:hover { --btn-bg: var(--white); --btn-bd: var(--t-on-light); box-shadow: none; }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--white); }
.btn--dark:hover { --btn-bg: var(--navy); box-shadow: none; }
.btn--sm { min-height: 42px; padding: 0.55rem 1rem; font-size: 0.9375rem; border-radius: 10px; }
.btn--block { width: 100%; }
.btn.is-added { --btn-bg: var(--ok); --btn-bd: transparent; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__label { opacity: 0.4; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; border: 1px solid transparent; background: transparent; color: inherit;
  transition: background-color var(--d-fast), border-color var(--d-fast);
  position: relative; text-decoration: none;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.08); }
.surface-light .icon-btn:hover, .surface-white .icon-btn:hover { background: rgba(8, 13, 20, 0.06); }

/* Forms */
.field { display: grid; gap: 0.4rem; }
.field__label { font-size: var(--fs-sm); font-weight: 600; }
.field__hint { font-size: var(--fs-xs); color: var(--t-on-light-3); }
.surface-ink .field__hint, .surface-navy .field__hint { color: var(--t-on-dark-3); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 0.75rem 0.95rem;
  border-radius: var(--r-md); border: 1px solid var(--line-light-2);
  background: var(--white); color: var(--t-on-light);
  font-size: 1rem; line-height: 1.4;
  transition: border-color var(--d-fast), box-shadow var(--d-fast);
}
.textarea { min-height: 140px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--t-on-light-3); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(8, 117, 201, 0.25); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.surface-ink .input, .surface-navy .input, .input--dark {
  background: rgba(255, 255, 255, 0.04); border-color: var(--line-dark-2); color: var(--t-on-dark);
}
.surface-ink .input::placeholder, .surface-navy .input::placeholder, .input--dark::placeholder { color: var(--t-on-dark-3); }
.surface-ink .input:focus-visible, .surface-navy .input:focus-visible, .input--dark:focus-visible { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(19, 180, 218, 0.25); }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%234c5d72' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.95rem center;
}
.field__error { font-size: var(--fs-xs); color: var(--danger); font-weight: 600; }
.surface-ink .field__error, .surface-navy .field__error { color: var(--danger-dark); }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--fs-sm); line-height: 1.5; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue-600); flex: none; }

/* Status messages */
.notice {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 0.9rem 1rem; border-radius: var(--r-md);
  border: 1px solid var(--line-light); background: var(--white); color: var(--t-on-light);
  font-size: var(--fs-sm); line-height: 1.55;
}
.notice .icon { margin-top: 2px; color: var(--blue-600); }
.notice--preview { border-style: dashed; border-color: #c28a1c; background: #fff8ea; }
.notice--preview .icon { color: #9a5b00; }
.notice--success { border-color: rgba(15, 122, 80, 0.35); background: #eefaf4; }
.notice--success .icon { color: var(--ok); }
.notice--error { border-color: rgba(180, 52, 44, 0.35); background: #fdf1f0; }
.notice--error .icon { color: var(--danger); }
.surface-ink .notice, .surface-navy .notice, .notice--dark { background: rgba(255, 255, 255, 0.04); border-color: var(--line-dark-2); color: var(--t-on-dark); }
.surface-ink .notice--preview, .surface-navy .notice--preview { border-color: rgba(255, 190, 80, 0.55); background: rgba(255, 190, 80, 0.08); }
.surface-ink .notice--preview .icon, .surface-navy .notice--preview .icon { color: #ffc56b; }
.surface-ink .notice--success .icon, .surface-navy .notice--success .icon { color: var(--ok-dark); }
.surface-ink .notice--error .icon, .surface-navy .notice--error .icon { color: var(--danger-dark); }

.pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.25rem 0.6rem; border-radius: 999px;
  font-family: var(--f-label); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid currentColor; line-height: 1.4; white-space: nowrap;
}
.pill--preview { color: #9a5b00; background: #fff4dc; border-color: #e7b75a; }
.surface-ink .pill--preview, .surface-navy .pill--preview, .pill--preview-dark { color: #ffd083; background: rgba(255, 190, 80, 0.1); border-color: rgba(255, 190, 80, 0.45); }

.stock { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--fs-xs); font-weight: 600; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }
.stock--in { color: var(--ok); }
.stock--out { color: var(--danger); }
.surface-ink .stock--in, .surface-navy .stock--in { color: var(--ok-dark); }

/* Registration marks: the logo's cross, used as frame corners */
.reg { position: relative; }
.reg::before, .reg::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none; z-index: 3;
  background:
    linear-gradient(var(--reg-c, var(--cyan)), var(--reg-c, var(--cyan))) center / 1px 100% no-repeat,
    linear-gradient(var(--reg-c, var(--cyan)), var(--reg-c, var(--cyan))) center / 100% 1px no-repeat;
  opacity: 0.8;
}
.reg::before { top: -7px; left: -7px; }
.reg::after { bottom: -7px; right: -7px; }

/* Reveal utility (IntersectionObserver adds .is-in). Content stays visible without JS. */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--d-reveal) var(--ease-out), transform var(--d-reveal) var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* src/css/03-layout.css */
/* ==========================================================================
   Global layout: research-use bar, header, navigation, overlays, footer
   ========================================================================== */

/* Research-use notice bar */
.ruo-bar {
  position: relative; z-index: 60;
  min-height: var(--ruo-h); display: flex; align-items: center; justify-content: center;
  padding: 0.35rem var(--gutter);
  background: #05090e; color: var(--t-on-dark-2);
  font-family: var(--f-label); font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; text-align: center;
  border-bottom: 1px solid var(--line-dark);
}
.ruo-bar strong { color: var(--t-on-dark); font-weight: 500; }
.ruo-bar a { color: var(--cyan); text-decoration: underline; text-underline-offset: 0.25em; margin-left: 0.75rem; }
.ruo-bar a:hover { color: var(--t-on-dark); }
/* Reserve two lines on phones so the bar height does not change when the web font loads */
@media (max-width: 600px) { :root { --ruo-h: 45px; } .ruo-bar { font-size: 0.625rem; letter-spacing: 0.08em; line-height: 1.6; } .ruo-bar a { display: none; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  margin-bottom: calc(var(--header-h) * -1);
  color: var(--t-on-dark);
  transition: height 320ms var(--ease-out), background-color 320ms ease, border-color 320ms ease, backdrop-filter 320ms ease;
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -40px; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 13, 20, 0.7), rgba(8, 13, 20, 0));
  transition: opacity 320ms ease;
}
.site-header.is-compact, .site-header.is-solid {
  height: var(--header-h-compact);
  background: rgba(8, 13, 20, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line-dark);
}
.site-header.is-solid:not(.is-compact) { height: var(--header-h); }
/* While the hero video is on screen, a plain dark bar keeps video playback smooth (no live blur over moving video) */
.hero-in-view .site-header.is-compact { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(8, 13, 20, 0.93); }
.site-header.is-compact::before, .site-header.is-solid::before { opacity: 0; }
.page--solid-header .site-header { margin-bottom: 0; background: var(--ink); border-bottom-color: var(--line-dark); }
.page--solid-header .site-header::before { display: none; }

.site-header__inner {
  position: relative; height: 100%;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__logo { height: 78px; width: auto; transition: height 320ms var(--ease-out); }
.site-header.is-compact .brand__logo { height: 58px; }
@media (max-width: 767px) {
  .brand__logo { height: 54px; }
  .site-header.is-compact .brand__logo { height: 48px; }
}
@media (orientation: landscape) and (max-height: 540px) {
  .brand__logo { height: 48px; }
  .site-header.is-compact .brand__logo { height: 44px; }
}

.primary-nav { justify-self: center; }
.primary-nav ul { list-style: none; display: flex; gap: clamp(1rem, 0.2rem + 1.6vw, 2.25rem); }
.primary-nav a {
  position: relative; display: inline-block; padding: 0.6rem 0;
  font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.005em; color: var(--t-on-dark-2); text-decoration: none;
  transition: color var(--d-fast);
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.25rem; height: 1px;
  background: var(--cyan); transform: scaleX(0); transform-origin: right; transition: transform var(--d-card) var(--ease-out);
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--t-on-dark); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 0.25rem; justify-self: end; }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--cyan); color: var(--ink);
  font-size: 0.6875rem; font-weight: 700; line-height: 19px; text-align: center;
  transform-origin: center; transition: transform 200ms var(--ease-out);
}
.cart-count[data-count="0"] { display: none; }
.cart-count.is-bump { animation: bump 420ms var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }
.menu-toggle { display: none; }

@media (max-width: 1099px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .site-header__inner { grid-template-columns: auto 1fr; }
}
@media (max-width: 420px) { .header-actions .account-link { display: none; } }

/* Mobile navigation panel */
.mnav {
  position: fixed; inset: 0; z-index: 90; display: grid; grid-template-rows: auto 1fr auto;
  background: var(--ink); color: var(--t-on-dark);
  padding: 0 var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 260ms ease, transform 320ms var(--ease-out), visibility 0s linear 320ms;
}
.mnav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 260ms ease, transform 320ms var(--ease-out), visibility 0s; }
.mnav__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.mnav__links { list-style: none; display: grid; align-content: start; gap: 0.1rem; padding-top: 1rem; overflow-y: auto; }
.mnav__links a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line-dark);
  font-family: var(--f-display); font-size: clamp(1.75rem, 1.2rem + 3vw, 2.5rem); font-weight: 600; letter-spacing: -0.035em; text-decoration: none;
}
.mnav__links a[aria-current="page"] { color: var(--cyan); }
@media (max-width: 359px) { .mnav__links a { font-size: 1.5rem; } }
/* Short screens (small phones, phones in landscape): the whole panel scrolls, links stay on one line */
@media (max-height: 640px) {
  .mnav { grid-template-rows: auto auto auto; align-content: start; overflow-y: auto; overscroll-behavior: contain; }
  .mnav__links { overflow: visible; padding-top: 0.25rem; }
  .mnav__links a { padding: 0.5rem 0; font-size: clamp(1.4rem, 1rem + 2.4vw, 1.75rem); }
  .mnav__foot { padding-top: 1rem; }
}
.mnav__foot { display: grid; gap: 1rem; padding-top: 1.25rem; font-size: var(--fs-sm); color: var(--t-on-dark-2); }
.mnav__foot a { color: var(--t-on-dark); }
.mnav__quick { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Dialog shell shared by search, preview info */
.overlay {
  position: fixed; inset: 0; z-index: 95; background: rgba(4, 7, 11, 0.62);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity 240ms ease, visibility 0s linear 240ms;
}
.overlay.is-open { opacity: 1; visibility: visible; transition: opacity 240ms ease, visibility 0s; }

/* Search */
.search-dialog {
  position: fixed; z-index: 96; left: 50%; top: clamp(1rem, 8vh, 6rem);
  width: min(760px, calc(100vw - 2rem)); max-height: min(80vh, 720px);
  display: grid; grid-template-rows: auto 1fr auto;
  background: var(--paper); color: var(--t-on-light); border-radius: var(--r-lg);
  box-shadow: var(--shadow-float); overflow: hidden;
  opacity: 0; visibility: hidden; transform: translate(-50%, -10px);
  transition: opacity 220ms ease, transform 300ms var(--ease-out), visibility 0s linear 300ms;
}
.search-dialog.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity 220ms ease, transform 300ms var(--ease-out), visibility 0s; }
.search-dialog__bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 0.75rem 0.75rem 1.25rem; border-bottom: 1px solid var(--line-light); background: var(--white); }
.search-dialog__bar .icon { color: var(--t-on-light-3); }
.search-dialog__input { flex: 1; border: 0; background: transparent; font-size: 1.25rem; padding: 0.6rem 0.25rem; min-width: 0; }
.search-dialog__input:focus-visible { outline: none; }
.search-results { list-style: none; overflow-y: auto; padding: 0.5rem; }
.search-results__item a {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 1rem; align-items: center;
  padding: 0.6rem 0.75rem; border-radius: var(--r-md); text-decoration: none;
}
.search-results__item img { width: 56px; height: 56px; border-radius: 10px; background: var(--paper-2); object-fit: cover; }
.search-results__item[aria-selected="true"] a, .search-results__item a:hover { background: var(--white); box-shadow: inset 0 0 0 1px var(--line-light); }
.search-results__name { font-weight: 600; }
.search-results__cat { font-size: var(--fs-xs); color: var(--t-on-light-3); }
.search-results__price { font-weight: 600; font-variant-numeric: tabular-nums; }
.search-empty { padding: 2rem 1.25rem; color: var(--t-on-light-2); }
.search-dialog__foot { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 1.25rem; border-top: 1px solid var(--line-light); font-size: var(--fs-xs); color: var(--t-on-light-3); background: var(--white); }
.search-dialog__foot a { color: var(--blue-700); font-weight: 600; }
kbd { font-family: var(--f-label); font-weight: 600; font-size: 0.6875rem; border: 1px solid var(--line-light-2); border-bottom-width: 2px; border-radius: 5px; padding: 0.05rem 0.35rem; background: var(--white); }

/* Cart drawer */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 96;
  width: min(460px, 100vw); display: grid; grid-template-rows: auto 1fr auto;
  background: var(--paper); color: var(--t-on-light);
  box-shadow: -30px 0 60px -20px rgba(0, 0, 0, 0.5);
  transform: translateX(104%); visibility: hidden;
  transition: transform 420ms var(--ease-out), visibility 0s linear 420ms;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform 420ms var(--ease-out), visibility 0s; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line-light); background: var(--white); }
.drawer__title { font-size: 1.25rem; letter-spacing: -0.02em; }
.drawer__body { overflow-y: auto; padding: 0.5rem 1.25rem 1.25rem; }
.drawer__foot { padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-light); background: var(--white); display: grid; gap: 0.75rem; }
.drawer__row { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.drawer__row .price { font-family: var(--f-display); font-size: 1.375rem; letter-spacing: -0.02em; }
.drawer__actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0.6rem; }

.line-items { list-style: none; }
.line-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 0.9rem; padding: 1rem 0; border-bottom: 1px solid var(--line-light); align-items: start; }
.line-item__img { width: 76px; height: 76px; border-radius: 12px; background: var(--paper-2); object-fit: cover; }
.line-item__name { font-weight: 600; line-height: 1.3; text-decoration: none; }
.line-item__name:hover { text-decoration: underline; }
.line-item__variant { font-size: var(--fs-xs); color: var(--t-on-light-3); margin-top: 0.15rem; }
.line-item__price { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.line-item__controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.6rem; }
.line-item__remove { border: 0; background: none; padding: 0.25rem 0; font-size: var(--fs-xs); color: var(--t-on-light-2); text-decoration: underline; }
.line-item__remove:hover { color: var(--danger); }
.cart-empty { padding: 3rem 0 1rem; display: grid; gap: 1rem; justify-items: start; }
.cart-empty h3 { font-size: 1.5rem; }

/* Quantity stepper */
.qty { display: inline-grid; grid-template-columns: 36px 44px 36px; align-items: center; height: 40px; border: 1px solid var(--line-light-2); border-radius: 10px; background: var(--white); overflow: hidden; }
.qty button { height: 100%; border: 0; background: transparent; display: grid; place-items: center; color: var(--t-on-light); }
.qty button:hover { background: var(--paper-2); }
.qty button:disabled { color: var(--line-light-2); cursor: not-allowed; background: transparent; }
.qty input { width: 100%; height: 100%; border: 0; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--lg { height: 52px; grid-template-columns: 44px 52px 44px; border-radius: var(--r-md); }

/* Toast */
.toast-region { position: fixed; z-index: 97; right: 1rem; bottom: calc(1rem + var(--consent-offset)); display: grid; gap: 0.5rem; width: min(400px, calc(100vw - 2rem)); pointer-events: none; }
.toast {
  pointer-events: auto; display: grid; grid-template-columns: 52px 1fr auto; gap: 0.85rem; align-items: center;
  padding: 0.75rem 0.75rem 0.75rem 0.75rem; border-radius: var(--r-lg);
  background: var(--ink); color: var(--t-on-dark); border: 1px solid var(--line-dark-2);
  box-shadow: var(--shadow-float);
  animation: toast-in 380ms var(--ease-out);
}
.toast.is-leaving { animation: toast-out 260ms ease forwards; }
.toast img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--paper-2); }
.toast__title { font-weight: 600; font-size: var(--fs-sm); line-height: 1.35; }
.toast__meta { font-size: var(--fs-xs); color: var(--t-on-dark-2); }
.toast .btn { min-height: 38px; padding: 0.45rem 0.8rem; font-size: 0.875rem; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }
@media (max-width: 600px) { .toast-region { left: 1rem; right: 1rem; width: auto; bottom: calc(0.75rem + var(--consent-offset) + var(--sticky-bar-h, 0px)); } }

/* Preview build badge */
.preview-badge {
  position: fixed; z-index: 80; left: 1rem; bottom: calc(1rem + var(--consent-offset) + var(--sticky-bar-h, 0px));
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.85rem; border-radius: 999px; border: 1px solid rgba(255, 190, 80, 0.55);
  background: rgba(20, 16, 6, 0.9); color: #ffd083;
  font-family: var(--f-label); font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: bottom 260ms var(--ease-out);
}
.preview-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ffb547; box-shadow: 0 0 0 3px rgba(255, 181, 71, 0.2); }
.preview-panel {
  position: fixed; z-index: 96; left: 50%; top: 50%; transform: translate(-50%, -48%);
  width: min(640px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow-y: auto;
  background: var(--paper); color: var(--t-on-light); border-radius: var(--r-lg); box-shadow: var(--shadow-float);
  padding: clamp(1.25rem, 3vw, 2rem);
  opacity: 0; visibility: hidden; transition: opacity 220ms ease, transform 300ms var(--ease-out), visibility 0s linear 300ms;
}
.preview-panel.is-open { opacity: 1; visibility: visible; transform: translate(-50%, -50%); transition: opacity 220ms ease, transform 300ms var(--ease-out), visibility 0s; }
.preview-panel h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.preview-panel ul { list-style: none; display: grid; gap: 0.6rem; margin: 1.25rem 0; }
.preview-panel li { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; padding: 0.7rem 0; border-top: 1px solid var(--line-light); font-size: var(--fs-sm); }
.preview-panel li strong { font-weight: 600; }
@media (max-width: 560px) { .preview-panel li { grid-template-columns: 1fr; gap: 0.2rem; } }
.preview-panel__close { position: absolute; top: 0.75rem; right: 0.75rem; }

/* Footer */
.site-footer { background: var(--ink); color: var(--t-on-dark-2); border-top: 1px solid var(--line-dark); position: relative; overflow: hidden; }
.site-footer__top { display: grid; grid-template-columns: minmax(220px, 1.1fr) 2.6fr; gap: clamp(2rem, 5vw, 6rem); padding-block: clamp(3.5rem, 6vw, 6rem) 3rem; }
.site-footer__brand { display: grid; gap: 1.5rem; align-content: start; }
.site-footer__logo { width: clamp(150px, 14vw, 200px); height: auto; }
.site-footer__contact { display: grid; gap: 0.35rem; font-size: var(--fs-sm); font-style: normal; }
.site-footer__contact a { color: var(--t-on-dark); text-decoration: none; }
.site-footer__contact a:hover { color: var(--cyan); }
.site-footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.site-footer__cols h2 { font-family: var(--f-label); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-on-dark-3); margin-bottom: 1rem; }
.site-footer__cols ul { list-style: none; display: grid; gap: 0.55rem; }
.site-footer__cols a { color: var(--t-on-dark); text-decoration: none; font-size: var(--fs-sm); }
.site-footer__cols a:hover { color: var(--cyan); }
.site-footer__legal {
  border-top: 1px solid var(--line-dark); padding-block: 1.75rem calc(1.75rem + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem;
  font-size: var(--fs-xs); line-height: 1.7;
}
/* Payment methods and PCI badge, as supplied by the client */
.site-footer__pay { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.site-footer__pay-label { font-family: var(--f-label); font-weight: 600; font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-on-dark-2); }
.site-footer__cards { width: 154px; height: 31px; }
.site-footer__pci { display: inline-grid; place-items: center; width: 46px; height: 42px; padding: 3px 4px; border-radius: 8px; background: var(--white); }
.site-footer__pci img { width: 100%; height: 100%; object-fit: contain; }
.site-footer__word {
  font-family: var(--f-display); font-weight: 600; letter-spacing: -0.06em; line-height: 0.8;
  font-size: clamp(4rem, 15vw, 15rem); white-space: nowrap; margin-bottom: -0.12em;
  color: transparent; -webkit-text-stroke: 1px rgba(166, 182, 201, 0.18); user-select: none; pointer-events: none;
}
@media (max-width: 1023px) {
  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* src/css/04-components.css */
/* ==========================================================================
   Components: section heads, prices, featured plates, product cards, filters, accordions
   ========================================================================== */

/* Section head */
.sec-head { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 5vw, 5rem); align-items: end; margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.sec-head__title { display: grid; gap: 1.1rem; }
.sec-head__aside { display: grid; gap: 1.25rem; justify-items: start; padding-bottom: 0.4rem; }
@media (max-width: 899px) { .sec-head { grid-template-columns: 1fr; } }

/* Price */
.price { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price__from { font-family: var(--f-body); font-size: 0.72em; font-weight: 500; color: var(--t-on-light-3); letter-spacing: 0; margin-right: 0.25em; }

/* ---------- Featured product plate: dark specimen stage + white commerce panel ---------- */
.plates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.9rem, 1.4vw, 1.5rem); }
@media (max-width: 1199px) { .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .plates { grid-template-columns: 1fr; } }

.plate {
  position: relative; display: grid; grid-template-rows: auto 1fr;
  border-radius: var(--r-lg); overflow: hidden; background: var(--white); color: var(--t-on-light);
  box-shadow: var(--shadow-card); isolation: isolate;
  outline: 1px solid rgba(8, 13, 20, 0.06); outline-offset: -1px;
  transition: box-shadow var(--d-card) ease, transform var(--d-card) var(--ease-out), outline-color var(--d-card);
}
.plate:hover, .plate:focus-within { box-shadow: 0 1px 2px rgba(8, 13, 20, 0.08), 0 28px 60px -24px rgba(8, 40, 80, 0.45); outline-color: rgba(8, 117, 201, 0.45); }
.plate__stage {
  position: relative; display: block; aspect-ratio: 4 / 4.4; overflow: hidden; container-type: inline-size;
  background:
    radial-gradient(62% 48% at 50% 76%, rgba(19, 180, 218, 0.22), rgba(19, 180, 218, 0) 70%),
    radial-gradient(120% 90% at 50% 100%, #1a3552 0%, #0d1827 55%, #080d14 100%);
  color: var(--t-on-dark); text-decoration: none;
}
.plate__stage::after { /* floor line */
  content: ""; position: absolute; left: 8%; right: 8%; bottom: 13%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(166, 182, 201, 0.35), transparent);
}
.plate__word {
  position: absolute; left: 0; right: 0; top: 14%; z-index: 0; text-align: center;
  font-family: var(--f-display); font-weight: 700; font-size: 21cqi; line-height: 0.9; letter-spacing: -0.05em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(19, 180, 218, 0.55);
  transition: -webkit-text-stroke-color var(--d-card) ease, color var(--d-card) ease, transform 600ms var(--ease-out);
}
.plate:hover .plate__word { -webkit-text-stroke-color: rgba(19, 180, 218, 0.8); color: rgba(19, 180, 218, 0.08); }
.plate__vial {
  position: absolute; z-index: 1; left: 50%; bottom: 2%; width: 104%; max-width: none; height: auto;
  transform: translateX(-50%); transform-origin: 50% 100%;
  filter: drop-shadow(0 24px 22px rgba(0, 0, 0, 0.55));
  transition: transform 520ms var(--ease-out);
}
.plate:hover .plate__vial { transform: translateX(-50%) translateY(-8px) scale(1.03); }
.plate__tag {
  position: absolute; z-index: 2; left: 1rem; top: 1rem; right: 1rem; display: flex; justify-content: space-between; gap: 0.5rem;
  font-family: var(--f-label); font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-on-dark-2);
}
.plate__body { display: flex; flex-direction: column; gap: 0.9rem; padding: 1.15rem 1.15rem 1.25rem; }
.plate__name { font-size: 1.3125rem; letter-spacing: -0.025em; line-height: 1.2; min-height: 2.4em; }
@media (max-width: 559px) { .plate__name { min-height: 0; } }
.plate__name a { text-decoration: none; }
.plate__name a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.plate__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0.25rem 1.25rem; }
.plate__facts dt { font-family: var(--f-label); font-weight: 600; font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-on-light-3); }
.plate__facts dd { font-size: var(--fs-sm); font-weight: 600; }
.plate__facts .price { font-size: 1.0625rem; }
.plate .select { min-height: 44px; margin-bottom: 0.5rem; }
.plate__buy { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem; }
.plate__buy .btn { min-height: 44px; }
.plate__buy .qty { height: 44px; }
.plate__links { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding-top: 0.85rem; border-top: 1px solid var(--line-light); font-size: var(--fs-xs); }
.plate__links a { color: var(--blue-700); font-weight: 600; text-decoration: none; }
.plate__links a:hover { text-decoration: underline; }

/* ---------- Catalog product card ---------- */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.75rem, 1.2vw, 1.25rem); }
@media (max-width: 1199px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .pgrid { grid-template-columns: 1fr; } }

.pcard {
  position: relative; display: grid; grid-template-rows: auto 1fr;
  background: var(--white); border: 1px solid var(--line-light); border-radius: 18px; overflow: hidden; color: var(--t-on-light);
  transition: border-color var(--d-card), box-shadow var(--d-card), transform var(--d-card) var(--ease-out);
}
.pcard:hover, .pcard:focus-within { border-color: rgba(8, 117, 201, 0.5); box-shadow: 0 18px 40px -22px rgba(8, 40, 80, 0.35); }
.pcard__media { display: block; aspect-ratio: 1; overflow: hidden; background: #e8ebef; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 520ms var(--ease-out); }
.pcard:hover .pcard__media img { transform: scale(1.045); }
.pcard__body { display: grid; gap: 0.55rem; align-content: start; padding: 1rem 1.05rem 1.1rem; }
.pcard__cat { font-family: var(--f-label); font-weight: 600; font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-on-light-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__title { font-size: 1.0625rem; letter-spacing: -0.02em; line-height: 1.25; }
.pcard__title a { text-decoration: none; }
.pcard__title a::after { content: ""; position: absolute; inset: 0 0 auto 0; aspect-ratio: 1; } /* media + title click target, controls stay separate */
.pcard__title a:hover { text-decoration: underline; }
.pcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.9rem; font-size: var(--fs-xs); color: var(--t-on-light-2); }
.pcard__buy { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.35rem; position: relative; z-index: 1; }
.pcard__buy .price { font-size: 1.125rem; margin-right: auto; }
.pcard__buy .select { min-height: 40px; width: auto; padding: 0.4rem 2rem 0.4rem 0.7rem; font-size: 0.875rem; border-radius: 10px; background-position: right 0.7rem center; }
.pcard__buy .btn { min-height: 40px; padding: 0.45rem 0.85rem; font-size: 0.875rem; border-radius: 10px; }
@media (max-width: 599px) {
  .pcard { grid-template-rows: none; grid-template-columns: 116px 1fr; }
  .pcard__media { aspect-ratio: auto; height: 100%; min-height: 150px; }
  .pcard__title a::after { inset: 0 auto 0 0; width: 116px; aspect-ratio: auto; }
  .pcard__body { padding: 0.85rem 0.9rem; }
  .pcard__buy { flex-wrap: wrap; }
}

/* ---------- Catalog toolbar ---------- */
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; }
.search-field { position: relative; }
.search-field .icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--t-on-light-3); pointer-events: none; }
.search-field .input { padding-left: 2.8rem; min-height: 54px; font-size: 1.0625rem; }
.search-field__clear { position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%); }
.sort-field { display: flex; align-items: center; gap: 0.6rem; }
.sort-field label { font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.sort-field .select { min-height: 54px; min-width: 210px; }
.chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 40px; padding: 0.45rem 0.95rem;
  border-radius: 999px; border: 1px solid var(--line-light-2); background: var(--white); color: var(--t-on-light);
  font-size: 0.875rem; font-weight: 500; white-space: nowrap;
  transition: background-color var(--d-fast), border-color var(--d-fast), color var(--d-fast);
}
.chip:hover { border-color: var(--t-on-light-2); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip__count { font-family: var(--f-label); font-weight: 600; font-size: 0.6875rem; opacity: 0.65; }
.result-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; margin: 1.5rem 0 1rem; font-size: var(--fs-sm); color: var(--t-on-light-2); }
.result-bar strong { color: var(--t-on-light); }
.empty-state { display: grid; gap: 0.9rem; justify-items: start; padding: clamp(2rem, 5vw, 3.5rem); border: 1px dashed var(--line-light-2); border-radius: var(--r-lg); background: var(--white); }
.empty-state h3 { font-size: 1.375rem; }
@media (max-width: 767px) {
  .toolbar { grid-template-columns: 1fr; }
  .sort-field .select { min-width: 0; flex: 1; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 0.35rem; scrollbar-width: none; scroll-snap-type: x proximity; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { scroll-snap-align: start; }
}

/* ---------- Accordion (native details) ---------- */
.accordion { border-top: 1px solid var(--line-light); }
.surface-ink .accordion, .surface-navy .accordion { border-color: var(--line-dark); }
.acc { border-bottom: 1px solid var(--line-light); interpolate-size: allow-keywords; }
.surface-ink .acc, .surface-navy .acc { border-color: var(--line-dark); }
.acc summary {
  list-style: none; display: grid; grid-template-columns: 1fr 28px; gap: 1rem; align-items: center;
  padding: 1.25rem 0; cursor: pointer;
  font-family: var(--f-display); font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--blue-700); }
.surface-ink .acc summary:hover, .surface-navy .acc summary:hover { color: var(--cyan); }
.acc__icon { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-light-2); }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform var(--d-card) var(--ease-out); }
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc[open] .acc__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc__body { padding: 0 3rem 1.4rem 0; color: var(--t-on-light-2); max-width: 44rem; }
.surface-ink .acc__body, .surface-navy .acc__body { color: var(--t-on-dark-2); }
.acc::details-content { block-size: 0; overflow: hidden; transition: block-size 300ms var(--ease-out), content-visibility 300ms allow-discrete; }
.acc[open]::details-content { block-size: auto; }

/* src/css/05-home.css */
/* ==========================================================================
   Homepage: hero, featured products, storytelling, About, order to delivery
   ========================================================================== */

/* ---------- 1. Video hero ---------- */
.hero {
  --video-left: clamp(30%, calc((100vw - var(--maxw)) / 2 + 30vw), 44%);
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(640px, calc(96svh - var(--ruo-h)), 1040px);
  display: grid; grid-template-rows: 1fr;
  background: var(--ink); color: var(--t-on-dark);
}
.hero__media { position: absolute; inset: 0; z-index: -1; transform-origin: 70% 40%; will-change: transform; }
.hero__frame { position: absolute; top: 0; bottom: 0; right: 0; left: var(--video-left); overflow: hidden; background: #0b1624; }
.hero__still, .hero__video, .hero__end {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
}
.hero__still { object-position: 60% 50%; }
.hero__video, .hero__end { opacity: 0; transition: opacity 900ms ease; object-position: 60% 50%; }
.hero.is-video .hero__still, .hero-video .hero__still { opacity: 0; }
.hero.is-video.is-playing .hero__video, .hero.is-video.is-paused .hero__video, .hero.is-video.is-blocked .hero__video { opacity: 1; }
.hero.is-ended .hero__end { opacity: 1; transition-duration: 200ms; }
/* Loop dip: fade to the dark frame, restart, fade back in */
.hero.is-video.is-dipping .hero__video { opacity: 0; transition-duration: 480ms; }
/* Directional overlay: solid behind the text column, clearing toward the product */
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--ink) 0%, var(--ink) var(--video-left), rgba(8, 13, 20, 0.94) calc(var(--video-left) + 10%), rgba(8, 13, 20, 0.55) calc(var(--video-left) + 24%), rgba(8, 13, 20, 0) calc(var(--video-left) + 42%)),
    linear-gradient(0deg, var(--ink) 0%, rgba(8, 13, 20, 0.55) 14%, rgba(8, 13, 20, 0) 34%),
    linear-gradient(180deg, rgba(8, 13, 20, 0.55) 0%, rgba(8, 13, 20, 0) 22%);
}
.hero__content {
  position: relative; align-self: center;
  padding-top: calc(var(--header-h) + clamp(2rem, 5vh, 4rem)); padding-bottom: calc(2rem + 40px);
  display: grid; gap: clamp(1.25rem, 2.6vh, 2rem); justify-items: start;
}
.hero__title { font-size: var(--fs-hero); line-height: 0.94; letter-spacing: -0.05em; font-weight: 600; max-width: 6.3em; }
.hero__title .line { display: block; }
.hero__title .line--accent { color: #8fd6ec; }
.hero__lede { max-width: 30rem; font-size: var(--fs-lede); color: #c3d0de; line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.4rem; }
/* Video control sits above the overlapping product surface, outside the text flow */
.hero__foot { position: absolute; left: 0; right: 0; bottom: calc(40px + clamp(1rem, 2.5vh, 1.75rem)); display: flex; justify-content: flex-end; pointer-events: none; }
.hero__foot .vctrl { pointer-events: auto; }

/* Video control: pause / play / replay with progress ring */
.vctrl { display: inline-flex; align-items: center; gap: 0.75rem; flex: none; border: 0; background: none; color: var(--t-on-dark); padding: 0; }
.vctrl__ring { position: relative; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: rgba(8, 13, 20, 0.62); }
.vctrl__ring svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.vctrl__ring .ring__track { stroke: rgba(234, 241, 248, 0.2); }
.vctrl__ring .ring__bar { stroke: var(--cyan); stroke-dasharray: 150.8; stroke-dashoffset: 150.8; transition: stroke-dashoffset 250ms linear; }
.vctrl__label { font-family: var(--f-label); font-weight: 600; font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-on-dark-2); }
.vctrl:hover .vctrl__ring { background: rgba(19, 180, 218, 0.18); }
.vctrl .i-play, .vctrl .i-replay { display: none; }
.hero.is-paused .vctrl .i-pause, .hero.is-blocked .vctrl .i-pause, .hero.is-ended .vctrl .i-pause { display: none; }
.hero.is-paused .vctrl .i-play, .hero.is-blocked .vctrl .i-play { display: block; }
.hero.is-ended .vctrl .i-replay { display: block; }
.hero:not(.is-video) .vctrl { display: none; }

@media (max-width: 1199px) and (min-width: 768px) and (orientation: landscape) {
  .hero { --video-left: 42%; }
  .hero__video, .hero__end, .hero__still { object-position: 59% 50%; }
}

/* Phones in landscape and other very short landscape screens: content-sized hero, CTAs in the first screen */
@media (orientation: landscape) and (max-height: 540px) {
  .hero { min-height: 0; }
  .hero__content { padding-top: calc(var(--header-h) + 1rem); padding-bottom: calc(1.25rem + 40px); gap: 0.85rem; }
  .hero__title { font-size: clamp(1.9rem, 9vh, 2.75rem); }
  .hero__lede { font-size: 0.9375rem; max-width: 30rem; line-height: 1.5; }
  .hero__actions { margin-top: 0.2rem; }
}

/* Small screens and portrait tablets: static portrait art, text above the vial */
@media (max-width: 767px), (max-width: 1199px) and (orientation: portrait) {
  .hero { --video-left: 0%; min-height: max(100svh - var(--ruo-h), 720px); grid-template-rows: auto 1fr; }
  .hero__still { object-position: 50% 100%; }
  .hero__scrim { background: linear-gradient(180deg, rgba(8, 13, 20, 0.92) 0%, rgba(8, 13, 20, 0.82) 38%, rgba(8, 13, 20, 0.2) 58%, rgba(8, 13, 20, 0) 70%, rgba(8, 13, 20, 0.7) 100%); }
  .hero__content { align-self: start; padding-top: calc(var(--header-h) + 1.75rem); gap: 1.1rem; }
  .hero__lede { font-size: 1rem; }
  .hero__actions { width: 100%; max-width: 30rem; display: grid; grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .hero__actions .btn--ghost { --btn-bg: rgba(8, 13, 20, 0.88); }
}

/* ---------- 2. Featured products: soft white surface that slides over the hero ---------- */
.featured {
  position: relative; z-index: 2; margin-top: -40px; border-radius: 36px 36px 0 0;
  padding-block: clamp(4rem, 3rem + 4vw, 7.5rem) var(--section-y);
}
.featured .sec-head .arrow-link { color: var(--t-on-light); }

/* ---------- 3. Storytelling ---------- */
.story {
  --story-bg: #050c15;
  --story-top: var(--header-h-compact);
  position: relative; background: var(--story-bg); color: var(--t-on-dark);
}
.story__track { padding-block: var(--section-y); }
.story__stage, .story__nav { display: none; }
.story__copy { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.story__head { display: grid; }
.story__lead-art { display: none; }
.story__title { font-size: clamp(2.5rem, 1rem + 4.2vw, 5.25rem); line-height: 0.98; letter-spacing: -0.05em; max-width: 12ch; }
.story__chapters { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); }
.story__chapter { display: grid; gap: 1.4rem; align-content: start; }
.story__art { aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: radial-gradient(80% 80% at 50% 45%, #0e2036 0%, var(--story-bg) 75%); }
.story__art img { width: 100%; height: 100%; object-fit: cover; }
.story__chapter:first-child .story__art img { object-fit: contain; padding: 8%; }
.story__text { display: grid; gap: 0.6rem; }
.story__num { font-family: var(--f-label); font-weight: 600; font-size: var(--fs-label); letter-spacing: 0.14em; color: var(--cyan); }
.story__h { font-size: clamp(1.375rem, 1rem + 1vw, 2rem); letter-spacing: -0.03em; }
.story__body { color: var(--t-on-dark-2); max-width: 30rem; }
.story__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; }

/* Phones: the supplied mobile composition carries the title, chapters stack compactly below */
@media (max-width: 767px) {
  .story__track { padding-top: 0; }
  .story__head > * { grid-area: 1 / 1; }
  .story__lead-art { display: block; margin-inline: calc(var(--gutter) * -1); position: relative; }
  .story__lead-art img { width: 100%; height: auto; }
  .story__lead-art::after { content: ""; position: absolute; inset: auto 0 0; height: 18%; background: linear-gradient(0deg, var(--story-bg), rgba(5, 12, 21, 0)); }
  .story__title { align-self: start; padding-top: clamp(3rem, 12vw, 4.5rem); font-size: clamp(2.35rem, 1.2rem + 6vw, 3rem); max-width: 10ch; position: relative; }
  .story__copy { gap: 1.75rem; }
  .story__chapters { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line-dark); }
  .story__chapter { padding: 1.35rem 0; border-bottom: 1px solid var(--line-dark); }
  .story__art { display: none; }
  .story__text { grid-template-columns: 2.25rem 1fr; column-gap: 0.75rem; row-gap: 0.4rem; }
  .story__num { grid-row: 1 / span 2; padding-top: 0.45rem; }
  .story__h { font-size: 1.375rem; }
  .story__body { font-size: var(--fs-sm); }
  .story__controls .btn { width: 100%; }
}

/* Desktop scrub: sticky stage, one chapter at a time, animation scrubbed by scroll */
.story-scrub .story__track { height: calc(100svh - var(--story-top) + var(--story-scroll, 140vh)); padding: 0; }
.story-scrub .story__sticky { position: sticky; top: var(--story-top); height: calc(100svh - var(--story-top)); overflow: hidden; }
.story-scrub .story__stage { display: block; position: absolute; inset: 0; pointer-events: none; }
.story-scrub .story__stage::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--story-bg) 0%, rgba(5, 12, 21, 0.92) 24%, rgba(5, 12, 21, 0.4) 40%, rgba(5, 12, 21, 0) 52%);
}
.story__frame, .story__canvas {
  position: absolute; top: 0; right: 0; height: 100%; width: auto; max-width: none; aspect-ratio: 16 / 9; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%); mask-image: linear-gradient(90deg, transparent 0%, #000 16%);
}
.story__frame { opacity: 0; transition: opacity 500ms ease; }
.story__frame.is-active { opacity: 1; }
.story__canvas { opacity: 0; transition: opacity 450ms ease; background: var(--story-bg); }
.story.has-seq .story__canvas { opacity: 1; }
.story.has-seq .story__frame { opacity: 0; transition-delay: 450ms; }
.story-scrub .story__inner { position: relative; z-index: 1; height: 100%; display: grid; align-items: center; }
.story-scrub .story__copy { width: min(40%, 36rem); gap: clamp(1.5rem, 4.5vh, 3rem); }
.story-scrub .story__title { font-size: clamp(2.25rem, min(1rem + 3.4vw, 7.4vh), 4.75rem); }
.story-scrub .story__lead-art, .story-scrub .story__art { display: none; }
.story-scrub .story__chapters { grid-template-columns: 1fr; }
.story-scrub .story__chapter {
  grid-area: 1 / 1; opacity: 0; transform: translateY(16px);
  transition: opacity 200ms ease, transform 240ms ease;
}
.story-scrub .story__chapter.is-active {
  opacity: 1; transform: none;
  transition: opacity 420ms ease 220ms, transform 560ms var(--ease-out) 220ms;
}
.story-scrub .story__h { font-size: clamp(1.5rem, min(1rem + 1.2vw, 4vh), 2.25rem); }
.story-scrub .story__body { font-size: var(--fs-lede); line-height: 1.55; }
.story-scrub .story__controls { display: grid; gap: clamp(1.25rem, 3.5vh, 2rem); justify-items: start; }
.story-scrub .story__nav { display: flex; gap: 0.75rem; width: 100%; }
.story__dot {
  flex: 1; display: grid; gap: 0.7rem; padding: 0.4rem 0 0.5rem; text-align: left;
  border: 0; background: none; color: var(--t-on-dark-3); min-width: 0;
  transition: color var(--d-card) ease;
}
.story__dot:hover, .story__dot[aria-current="step"] { color: var(--t-on-dark); }
.story__bar { position: relative; display: block; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(166, 182, 201, 0.22); }
.story__bar i { position: absolute; inset: 0; background: var(--cyan); transform: scaleX(var(--p, 0)); transform-origin: left; }
.story__dot-label { font-size: var(--fs-xs); font-weight: 600; line-height: 1.3; }
.story__dot-label span { display: block; font-family: var(--f-label); letter-spacing: 0.1em; color: var(--cyan); margin-bottom: 0.15rem; }
@media (max-width: 1199px) { .story-scrub .story__copy { width: min(36%, 30rem); } }

/* ---------- Catalog preview ---------- */
.catalog { position: relative; }
.catalog__more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line-light); }

/* ---------- 4. About: editorial composition (45% text, 55% visual) ---------- */
.about-intro { position: relative; padding-block: var(--section-y); overflow-x: clip; }
.catalog + .about-intro { padding-top: 0; }
.catalog + .about-intro > .container { border-top: 1px solid var(--line-light); padding-top: var(--section-y); }
.about-intro__grid { display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); gap: clamp(2.5rem, 5vw, 6rem); align-items: center; }
.about-intro__copy { display: grid; gap: clamp(1.25rem, 2vw, 1.75rem); justify-items: start; container-type: inline-size; }
/* Sized to the column so each of the three lines always fits on one line */
.about-intro__title { font-size: clamp(2.5rem, 1rem + 3.6vw, 4.75rem); font-size: clamp(2.25rem, 13.6cqi, 5.25rem); line-height: 1; letter-spacing: -0.05em; }
.about-intro__line > span { white-space: nowrap; }
.about-intro__line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.about-intro__line > span { display: block; }
.about-intro__line:last-child { color: var(--blue-600); }
.about-intro__body { font-size: var(--fs-lede); line-height: 1.6; color: var(--t-on-light-2); max-width: 29rem; }
.about-intro__ruo {
  justify-self: stretch; display: flex; align-items: center; gap: 0.55rem; margin-top: 0.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--line-light); font-size: var(--fs-sm); font-weight: 500; color: var(--t-on-light-2);
}
.about-intro__ruo .icon { color: var(--blue-600); }

/* Arrow link with a round icon; the arrow slides through on hover and keyboard focus */
.about-cta { display: inline-flex; align-items: center; gap: 0.9rem; min-height: 48px; font-weight: 600; font-size: 1.0625rem; color: var(--t-on-light); text-decoration: none; }
.about-cta > span:first-child { background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1.5px no-repeat; padding-bottom: 3px; transition: background-size 360ms var(--ease-out); }
.about-cta__icon {
  display: inline-grid; place-items: center; width: 46px; height: 46px; flex: none; overflow: hidden;
  border-radius: 50%; border: 1px solid var(--line-light-2); color: var(--blue-700);
  transition: background-color 260ms ease, border-color 260ms ease, color 260ms ease;
}
.about-cta__icon .icon { width: 18px; height: 18px; }
.about-cta:hover > span:first-child, .about-cta:focus-visible > span:first-child { background-size: 100% 1.5px; }
.about-cta:hover .about-cta__icon, .about-cta:focus-visible .about-cta__icon { background: var(--blue-600); border-color: var(--blue-600); color: var(--white); }
.about-cta:hover .about-cta__icon .icon, .about-cta:focus-visible .about-cta__icon .icon { animation: arrow-through 520ms var(--ease-out); }
@keyframes arrow-through { 0% { transform: none; } 45% { transform: translateX(150%); } 46% { transform: translateX(-150%); } 100% { transform: none; } }
.about-cta--dark { color: var(--t-on-dark); }
.about-cta--dark .about-cta__icon { border-color: var(--line-dark-2); color: var(--cyan); }
.about-cta--dark:hover .about-cta__icon, .about-cta--dark:focus-visible .about-cta__icon { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }

.about-art { position: relative; isolation: isolate; padding-block: clamp(3rem, 6.5vw, 6.5rem); }
.about-art__field {
  position: absolute; z-index: -2; top: 0; bottom: 0; left: 18%;
  right: calc(-1 * (var(--gutter) + max(0px, (100vw - var(--maxw-wide)) / 2)));
  border-radius: 48px 0 0 48px;
  background: radial-gradient(90% 80% at 30% 20%, #eaf3fb 0%, #d9e8f5 55%, #cbdff0 100%);
}
.about-art__ribbon { position: absolute; z-index: -1; left: 2%; top: -13%; width: 98%; pointer-events: none; will-change: transform; }
.about-art__ribbon img { width: 100%; height: auto; opacity: 0.92; }
.about-art__photo {
  position: relative; margin: 0; width: 90%; aspect-ratio: 1400 / 788; overflow: hidden;
  border-radius: 22px; background: #0b1624;
  box-shadow: 0 50px 90px -45px rgba(8, 30, 60, 0.6), 0 2px 6px rgba(8, 30, 60, 0.12);
}
.about-art__photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 899px) {
  .about-intro__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-art { padding-block: 2.75rem; }
  .about-art__field { left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); border-radius: 0; }
  .about-art__photo { width: 100%; }
  .about-art__ribbon { left: -8%; top: -14%; width: 125%; }
}

/* ---------- 5. Order to delivery: pinned stage sequence (desktop), tabs everywhere ---------- */
.journey { position: relative; overflow: hidden; background: var(--ink); color: var(--t-on-dark); }
.journey__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.journey__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; opacity: 0.42; }
.journey__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 18%, rgba(8, 13, 20, 0.5) 60%, rgba(8, 13, 20, 0.75) 100%), linear-gradient(180deg, var(--ink) 0%, rgba(8, 13, 20, 0) 18%, rgba(8, 13, 20, 0) 82%, var(--ink) 100%); }
.journey__pin { position: relative; z-index: 1; }
.journey__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(2rem, 4vw, 5rem);
  grid-template-areas: "head stage" "tabs stage" "steps stage" "links stage";
  grid-template-rows: auto auto 1fr auto;
  min-height: 100svh; padding-block: calc(var(--header-h-compact) + 2.5rem) 3rem;
  align-content: center;
}
.journey__head { grid-area: head; display: grid; gap: 1rem; }
.journey__title { font-size: clamp(2.25rem, min(0.8rem + 3.4vw, 6.4vh), 4rem); line-height: 1; letter-spacing: -0.045em; }
.journey__line { display: block; }
.journey__line + .journey__line { color: #8fd6ec; }
.journey__lede { color: var(--t-on-dark-2); max-width: 30rem; }
.journey__tabs { grid-area: tabs; display: flex; gap: 0.5rem; margin-top: 2rem; }
.journey__tab {
  position: relative; flex: 1; min-width: 0; display: grid; gap: 0.2rem; text-align: left; padding: 0.8rem 0.9rem 0.9rem;
  border: 1px solid var(--line-dark-2); border-radius: var(--r-md); background: rgba(255, 255, 255, 0.02); color: var(--t-on-dark-2);
  transition: border-color var(--d-card), background-color var(--d-card), color var(--d-card);
}
.journey__tab:hover { color: var(--t-on-dark); border-color: rgba(234, 241, 248, 0.45); }
.journey__tab[aria-selected="true"] { color: var(--t-on-dark); border-color: var(--cyan); background: rgba(19, 180, 218, 0.08); }
.journey__tab-num { font-family: var(--f-label); font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.12em; color: var(--cyan); }
.journey__tab-title { font-family: var(--f-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.02em; line-height: 1.25; }
.journey__label-short { display: none; }
.journey__tab-bar { position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.45rem; height: 2px; border-radius: 2px; background: rgba(166, 182, 201, 0.16); overflow: hidden; }
.journey__tab-bar i { position: absolute; inset: 0; background: var(--cyan); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform 300ms var(--ease-out); }
.journey:not(.is-pinned) .journey__tab[aria-selected="true"] .journey__tab-bar i { --p: 1; }
.journey__panels { grid-area: steps; display: grid; margin-top: 1.5rem; align-content: start; }
.journey__panel { display: grid; gap: 1rem; align-content: start; }
.journey__panel + .journey__panel { margin-top: 2rem; }
.journey__panel:focus-visible { outline-offset: 6px; }
.journey__stage { font-family: var(--f-label); font-weight: 600; font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-on-dark-2); }
.journey__steps { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; }
.journey__steps li { display: grid; gap: 0.4rem; align-content: start; padding-top: 1rem; border-top: 1px solid var(--line-dark-2); }
.journey__step-no { font-family: var(--f-label); font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); }
.journey__steps h3 { font-size: clamp(1.25rem, 0.9rem + 0.8vw, 1.625rem); letter-spacing: -0.03em; }
.journey__steps p { color: var(--t-on-dark-2); line-height: 1.6; }
.journey__links { grid-area: links; display: grid; gap: 1rem; justify-items: start; margin-top: 1.75rem; }
.journey__note { font-size: var(--fs-sm); line-height: 1.6; color: var(--t-on-dark-2); max-width: 36rem; }
.journey__note a { color: var(--t-on-dark); font-weight: 600; text-underline-offset: 0.2em; }
.journey__note a:hover { color: var(--cyan); }

/* Enhanced by script: one panel at a time in a single grid cell, so switching never changes the height */
.journey:not(.is-enhanced) .journey__tabs { display: none; }
.journey.is-enhanced .journey__panel { grid-area: 1 / 1; margin: 0; visibility: hidden; opacity: 0; }
.journey.is-enhanced .journey__panel.is-active { visibility: visible; opacity: 1; animation: journey-in 440ms var(--ease-out); }
@keyframes journey-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Visual: large BPC-157 vial, outlined name, scan line, and step callouts */
.journey__visual { grid-area: stage; position: relative; min-height: min(78svh, 760px); align-self: center; }
.journey__word {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -58%); z-index: 0; white-space: nowrap;
  font-family: var(--f-display); font-weight: 700; letter-spacing: -0.06em; line-height: 0.8;
  font-size: clamp(6rem, 13vw, 15rem);
  color: transparent; -webkit-text-stroke: 1px rgba(19, 180, 218, 0.5);
}
.journey__vialwrap { position: absolute; left: 50%; top: 50%; width: min(82%, 680px); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 1; }
.journey__vial { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 40px 40px rgba(0, 0, 0, 0.6)); }
.journey__scan {
  position: absolute; left: 22%; right: 22%; top: 34%; height: 2px; z-index: 2; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--cyan) 20%, #bff4ff 50%, var(--cyan) 80%, transparent);
  box-shadow: 0 0 18px 2px rgba(19, 180, 218, 0.65);
}
.journey__callouts { list-style: none; position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.journey__callouts .callout { opacity: 0; }
.callout {
  position: absolute; display: grid; gap: 0.1rem; padding: 0.55rem 0.75rem; border-radius: 10px;
  background: rgba(8, 13, 20, 0.86); border: 1px solid rgba(19, 180, 218, 0.4); color: var(--t-on-dark);
  font-size: var(--fs-sm); line-height: 1.3; white-space: nowrap;
}
.callout .callout__k { font-family: var(--f-label); font-weight: 600; font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); }
.callout::before { content: ""; position: absolute; top: 50%; width: 48px; height: 1px; background: linear-gradient(90deg, rgba(19, 180, 218, 0), rgba(19, 180, 218, 0.8)); }
.callout--l { right: 69%; }
.callout--l::before { left: 100%; transform: scaleX(-1); }
.callout--r { left: 69%; }
.callout--r::before { right: 100%; }
.callout--1 { top: 42%; }
.callout--2 { top: 58%; }
/* Stage 2: the vial steps left, so both steps sit on its right and never cover the label */
[data-journey-callouts="1"] .callout { left: 60%; right: auto; }
[data-journey-callouts="1"] .callout::before { left: auto; right: 100%; transform: none; }

/* Pinned: the vial (with its soft shadow) and the outlined name move on their own layers, so the scrub never repaints them */
.journey.is-pinned .journey__vialwrap, .journey.is-pinned .journey__word { will-change: transform, opacity; }

/* Not pinned (reduced motion, tablets, phones, or no script): ordinary panels and a still visual */
.journey:not(.is-pinned) .journey__callouts, .journey:not(.is-pinned) .journey__scan { display: none; }
@media (min-width: 1024px) {
  .journey:not(.is-pinned) .journey__vialwrap { width: min(70%, 560px); }
  .journey:not(.is-pinned) .journey__grid { min-height: 0; grid-template-rows: auto auto auto 1fr; padding-block: var(--section-y); }
}
/* Shorter desktop screens: tighten the pinned layout so everything fits one screen */
@media (max-height: 880px) and (min-width: 1024px) {
  .journey.is-pinned .journey__grid { padding-block: calc(var(--header-h-compact) + 1.5rem) 1.75rem; }
  .journey.is-pinned .journey__lede { display: none; }
  .journey.is-pinned .journey__tabs { margin-top: 1.25rem; }
  .journey.is-pinned .journey__panels { margin-top: 1.1rem; }
  .journey.is-pinned .journey__steps h3 { font-size: 1.25rem; }
  .journey.is-pinned .journey__steps p { font-size: var(--fs-sm); line-height: 1.5; }
  .journey.is-pinned .journey__links { margin-top: 1.1rem; gap: 0.75rem; }
}
@media (max-width: 1023px) {
  .journey__grid { grid-template-columns: 1fr; grid-template-areas: "head" "stage" "tabs" "steps" "links"; grid-template-rows: none; min-height: 0; padding-block: var(--section-y); }
  .journey__visual { min-height: 0; aspect-ratio: 16 / 10; margin-top: 2rem; border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(70% 60% at 50% 80%, #1a3552, #0b1522 70%); }
  .journey__vialwrap { width: 64%; }
  .journey__word { font-size: 24vw; }
}
@media (max-width: 599px) {
  .journey__visual { display: none; }
  .journey__label-full { display: none; }
  .journey__label-short { display: inline; }
  .journey__tab { padding: 0.7rem 0.7rem 0.85rem; }
  .journey__steps { grid-template-columns: 1fr; }
}

/* src/css/06-pages.css */
/* ==========================================================================
   Inner pages: page hero, shop, product detail, cart,
   checkout, account, contact, about, prose
   ========================================================================== */

.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: var(--t-on-dark);
  padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)) 0 clamp(2.5rem, 5vw, 4.5rem);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -1; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; opacity: 0.38; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 25%, rgba(8, 13, 20, 0.4) 100%), linear-gradient(0deg, var(--ink), rgba(8, 13, 20, 0) 40%); }
.page-hero__inner { display: grid; gap: 1.1rem; justify-items: start; }
.page-hero__title { font-size: clamp(2.5rem, 1rem + 4.6vw, 5.5rem); letter-spacing: -0.05em; line-height: 0.96; max-width: 14em; }
.page-hero .lede { max-width: 40rem; }
.page-hero--compact { padding-bottom: 2rem; }
.page-hero--compact .page-hero__title { font-size: clamp(2.25rem, 1rem + 3.4vw, 4rem); }

.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; font-family: var(--f-label); font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-on-dark-3); }
.crumbs a { color: var(--t-on-dark-2); text-decoration: none; }
.crumbs a:hover { color: var(--cyan); }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.5; }
.surface-light .crumbs, .surface-white .crumbs { color: var(--t-on-light-3); }
.surface-light .crumbs a, .surface-white .crumbs a { color: var(--t-on-light-2); }

.page-body { padding-block: clamp(2.5rem, 5vw, 5rem) var(--section-y); }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.25rem clamp(1.5rem, 4vw, 4.5rem); align-items: start; padding-top: clamp(1.25rem, 3vw, 2.25rem); }
.pdp__crumbs { grid-column: 1 / -1; }
.gallery { display: grid; gap: 0.75rem; }
.gallery__main { position: relative; aspect-ratio: 1; border-radius: var(--r-xl); overflow: hidden; background: #e8ebef; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main .gallery__stage { position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 78%, rgba(19, 180, 218, 0.2), transparent 70%), radial-gradient(120% 90% at 50% 100%, #1a3552, #0b1522 60%, #080d14); }
.gallery__main .gallery__stage img { object-fit: contain; padding: 6%; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.5)); }
.gallery__thumbs { display: flex; gap: 0.6rem; list-style: none; }
.gallery__thumb { width: 84px; height: 84px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #e8ebef; }
.gallery__thumb[aria-pressed="true"] { border-color: var(--blue-600); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb--dark { background: #0d1827; }
.gallery__thumb--dark img { object-fit: contain; padding: 6px; }
.gallery__note { font-size: var(--fs-xs); color: var(--t-on-light-3); }

.buybox { position: sticky; top: calc(var(--header-h-compact) + 1.25rem); display: grid; gap: 1.25rem; }
.buybox__cat { font-family: var(--f-label); font-weight: 600; font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-700); text-decoration: none; }
.buybox__title { font-size: clamp(2.25rem, 1.2rem + 2.6vw, 3.5rem); letter-spacing: -0.045em; line-height: 1; }
.buybox__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; font-size: var(--fs-sm); color: var(--t-on-light-2); }
.buybox__price { font-size: clamp(1.75rem, 1.2rem + 1.2vw, 2.25rem); }
.variant-group { border: 0; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.variant-group legend { font-size: var(--fs-sm); font-weight: 600; padding: 0; margin-bottom: 0.6rem; }
.variant-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.variant-option { position: relative; }
.variant-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.variant-option span {
  display: grid; gap: 0.1rem; min-width: 96px; padding: 0.65rem 0.9rem; border-radius: var(--r-md);
  border: 1px solid var(--line-light-2); background: var(--white); text-align: center; line-height: 1.2;
  transition: border-color var(--d-fast), box-shadow var(--d-fast), background-color var(--d-fast);
}
.variant-option span b { font-weight: 600; }
.variant-option span small { font-size: var(--fs-xs); color: var(--t-on-light-3); font-variant-numeric: tabular-nums; }
.variant-option input:hover + span { border-color: var(--t-on-light-2); }
.variant-option input:checked + span { border-color: var(--blue-600); box-shadow: inset 0 0 0 1px var(--blue-600); background: #f1f7fd; }
.variant-option input:focus-visible + span { outline: 2px solid var(--blue-600); outline-offset: 2px; }
.variant-option input:disabled + span { opacity: 0.45; text-decoration: line-through; }
.buybox__buy { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; }
.buybox__buy .btn { min-height: 52px; font-size: 1.0625rem; }
.ruo-note { display: flex; gap: 0.75rem; padding: 1rem; border-radius: var(--r-md); background: var(--ink); color: var(--t-on-dark-2); font-size: var(--fs-xs); line-height: 1.55; }
.ruo-note strong { display: block; color: var(--t-on-dark); font-size: var(--fs-sm); margin-bottom: 0.15rem; }
.ruo-note .icon { color: var(--cyan); }
.buybox__docs { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.9rem 1rem; border-radius: var(--r-md); border: 1px solid var(--line-light); background: var(--white); font-size: var(--fs-sm); }
.buybox__docs a { color: var(--blue-700); font-weight: 600; }

.subnav { position: sticky; top: var(--header-h-compact); z-index: 20; background: rgba(244, 247, 250, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-light); margin-top: clamp(3rem, 6vw, 5rem); }
.subnav ul { list-style: none; display: flex; gap: 1.5rem; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 1rem 0; font-size: var(--fs-sm); font-weight: 600; color: var(--t-on-light-2); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover, .subnav a.is-current { color: var(--t-on-light); border-color: var(--blue-600); }
.pdp-section { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 5rem); padding-block: clamp(2.5rem, 5vw, 4.5rem); border-bottom: 1px solid var(--line-light); }
.pdp-section:last-of-type { border-bottom: 0; }
.pdp-section__head { display: grid; gap: 0.6rem; align-content: start; }
.pdp-section__head h2 { font-size: clamp(1.625rem, 1.1rem + 1.2vw, 2.25rem); letter-spacing: -0.035em; }
.pdp-section__body { display: grid; gap: 1.25rem; align-content: start; max-width: 52rem; }
.pdp-section__body p { color: var(--t-on-light-2); }
@media (max-width: 899px) { .pdp-section { grid-template-columns: 1fr; } }
.spec-table { width: 100%; font-size: var(--fs-sm); background: var(--white); border-radius: var(--r-md); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-light); }
.spec-table caption { text-align: left; font-size: var(--fs-xs); color: var(--t-on-light-3); padding-bottom: 0.6rem; caption-side: bottom; padding-top: 0.7rem; }
.spec-table th, .spec-table td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line-light); vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table thead th { font-family: var(--f-label); font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t-on-light-3); font-weight: 600; background: var(--paper); }
.spec-table tbody th { font-weight: 600; width: 42%; }
.spec-table td { font-variant-numeric: tabular-nums; }
.related { padding-block: var(--section-y); }

.pdp-sticky {
  position: fixed; left: 0; right: 0; bottom: var(--consent-offset); z-index: 70;
  display: none; align-items: center; gap: 0.75rem;
  padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96); color: var(--t-on-light); border-top: 1px solid var(--line-light);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 -12px 30px -18px rgba(8, 13, 20, 0.35);
  transform: translateY(110%); transition: transform 320ms var(--ease-out);
}
.pdp-sticky.is-visible { transform: none; }
.pdp-sticky__info { display: grid; min-width: 0; flex: 1; }
.pdp-sticky__name { font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdp-sticky__price { font-size: 1.0625rem; }
.pdp-sticky .btn { min-height: 46px; }
@media (max-width: 899px) {
  .pdp { grid-template-columns: 1fr; }
  .buybox { position: static; }
  .pdp-sticky { display: flex; }
}


/* ---------- Cart page ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.summary { position: sticky; top: calc(var(--header-h-compact) + 1.25rem); display: grid; gap: 1rem; padding: 1.5rem; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line-light); box-shadow: var(--shadow-card); }
.summary h2 { font-size: 1.375rem; letter-spacing: -0.025em; }
.summary__rows { display: grid; gap: 0.6rem; font-size: var(--fs-sm); }
.summary__row { display: flex; justify-content: space-between; gap: 1rem; }
.summary__row--total { padding-top: 0.8rem; border-top: 1px solid var(--line-light); font-weight: 600; font-size: 1rem; }
.summary__row--total .price { font-size: 1.5rem; }
.cart-page .line-item { grid-template-columns: 96px 1fr auto; }
.cart-page .line-item__img { width: 96px; height: 96px; }
@media (max-width: 899px) { .cart-layout { grid-template-columns: 1fr; } .summary { position: static; } }

/* ---------- Checkout / account / contact forms ---------- */
.form-card { display: grid; gap: 1.25rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line-light); }
.form-card h2 { font-size: 1.375rem; letter-spacing: -0.025em; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 599px) { .form-grid { grid-template-columns: 1fr; } }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.checkout-layout > div { display: grid; gap: 1.25rem; }
@media (max-width: 899px) { .checkout-layout { grid-template-columns: 1fr; } }
.pay-placeholder { display: grid; place-items: center; gap: 0.5rem; min-height: 140px; border: 1px dashed var(--line-light-2); border-radius: var(--r-md); text-align: center; padding: 1.25rem; color: var(--t-on-light-2); font-size: var(--fs-sm); }
.account-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 799px) { .account-layout { grid-template-columns: 1fr; } }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.contact-card { display: grid; gap: 1.5rem; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-lg); background: var(--ink); color: var(--t-on-dark); }
.contact-card dl { display: grid; gap: 1.1rem; }
.contact-card dt { font-family: var(--f-label); font-weight: 600; font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-on-dark-3); }
.contact-card dd { font-size: 1.0625rem; }
.contact-card a { color: var(--t-on-dark); text-decoration: none; font-weight: 600; }
.contact-card a:hover { color: var(--cyan); }
@media (max-width: 899px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 7rem); align-items: start; }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; } }
.big-statement { font-family: var(--f-display); font-size: clamp(1.75rem, 1rem + 2.4vw, 3.25rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.12; }
.values { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.values li { display: grid; gap: 0.75rem; align-content: start; padding: 1.75rem; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line-light); }
.values h3 { font-size: 1.3125rem; letter-spacing: -0.025em; }
.values p { font-size: var(--fs-sm); color: var(--t-on-light-2); }
@media (max-width: 899px) { .values { grid-template-columns: 1fr; } }

/* ---------- Prose (policies) ---------- */
.prose { max-width: 46rem; display: grid; gap: 1.1rem; color: var(--t-on-light-2); }
.prose h2 { color: var(--t-on-light); font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); letter-spacing: -0.03em; margin-top: 1.5rem; }
.prose h3 { color: var(--t-on-light); font-size: 1.1875rem; margin-top: 0.75rem; }
.prose ol, .prose ul { padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.prose strong { color: var(--t-on-light); }
.prose a { color: var(--blue-700); font-weight: 600; }

/* ---------- 404 ---------- */
.nf { min-height: 80svh; display: grid; align-content: center; gap: 1.25rem; justify-items: start; padding-top: var(--header-h); }
.nf__code { font-family: var(--f-display); font-weight: 700; font-size: clamp(7rem, 22vw, 18rem); line-height: 0.8; letter-spacing: -0.07em; color: transparent; -webkit-text-stroke: 1px rgba(19, 180, 218, 0.6); }
