/* =====================================================================
   PALO — Design System  ·  "Palo Green"
   Direction: restful & bold. Deep spruce field, butter breather,
   clementine pop. Warm, premium, D2C. Built to port into Laravel Blade.
   Type: Plus Jakarta Sans (display) + Hanken Grotesk (body).
   ===================================================================== */

/* ---------------------------------------------------------------------
   1 · TOKENS
   --------------------------------------------------------------------- */
:root {
  /* Brand field + neutrals */
  --spruce:        #173F35;   /* primary brand colour, big blocks   */
  --spruce-700:    #11302A;
  --spruce-900:    #0C231E;   /* deepest, near-black green           */
  --ink:           #122019;   /* text on light                      */
  --ink-soft:      #3A4A42;   /* secondary text on light            */
  --ink-faint:     #6B7A71;   /* tertiary / captions                */

  --butter:        #F2E7CE;   /* warm canvas breather               */
  --butter-deep:   #E9DBBC;
  --paper:         #FBF7EE;   /* lightest warm paper                */
  --paper-card:    #FFFDF8;

  --sage:          #9CB3A0;   /* mid green-grey                     */
  --sage-soft:     #D7E1D6;   /* light sage tint for cards          */
  --sage-line:     #C3D1C3;

  /* Pop */
  --clementine:    #FF5A36;
  --clementine-600:#F0441F;
  --clementine-200:#FFD9CD;

  /* On-dark text */
  --cream:         #F2E7CE;
  --cream-soft:    rgba(242,231,206,0.72);
  --cream-faint:   rgba(242,231,206,0.46);

  /* Hairlines */
  --line:          rgba(18,32,25,0.12);
  --line-strong:   rgba(18,32,25,0.20);
  --line-dark:     rgba(242,231,206,0.16);
  --line-dark-strong: rgba(242,231,206,0.28);

  /* Radii — friendly, tactile, generous */
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  /* Soft, warm, diffused shadows (never harsh black) */
  --shadow-sm:  0 2px 8px -2px rgba(18,32,25,0.10);
  --shadow-md:  0 16px 36px -18px rgba(18,32,25,0.22);
  --shadow-lg:  0 34px 70px -28px rgba(18,32,25,0.30);
  --shadow-pop: 0 18px 40px -16px rgba(255,90,54,0.45);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 180ms;
  --t-med: 320ms;
  --t-slow: 700ms;

  /* Type */
  --font-display: "Plus Jakarta Sans", "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  /* Layout */
  /* side margin = half of the old 1240px wrap's margin at every width */
  --wrap: calc(50vw + 580px + 2 * var(--gut));
  --wrap-tight: 1040px;
  --gut: clamp(0.75rem, 2vw, 1.25rem);
  --section-y: clamp(2.25rem, 4.5vw, 4.25rem);
}

/* ---------------------------------------------------------------------
   2 · RESET / BASE
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2.5px solid var(--clementine); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--clementine); color: #fff; }

/* ---------------------------------------------------------------------
   3 · TYPOGRAPHY
   --------------------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.d-hero  { font-family: var(--font-display); font-weight: 600; line-height: 0.98; letter-spacing: -0.028em; text-wrap: balance;
           font-size: clamp(2.5rem, 1.9rem + 3.1vw, 4.4rem); }
.d-xl    { font-family: var(--font-display); font-weight: 600; line-height: 1.0; letter-spacing: -0.024em; text-wrap: balance;
           font-size: clamp(2rem, 1.6rem + 2.1vw, 3.15rem); }
.d-lg    { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance;
           font-size: clamp(1.7rem, 1.4rem + 1.5vw, 2.4rem); }
.d-md    { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.018em; text-wrap: balance;
           font-size: clamp(1.45rem, 1.25rem + 1vw, 1.95rem); }
.d-sm    { font-family: var(--font-display); font-weight: 600; line-height: 1.14; letter-spacing: -0.012em; text-wrap: balance;
           font-size: clamp(1.2rem, 1.08rem + 0.5vw, 1.5rem); }

.lede    { font-size: clamp(1.1rem, 1rem + 0.55vw, 1.4rem); line-height: 1.5; color: var(--ink-soft); font-weight: 400; }
.body-lg { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); line-height: 1.6; }
.small   { font-size: 0.875rem; }
.tnum    { font-variant-numeric: tabular-nums; }

.serif-italic { font-style: italic; } /* Clash has no italic; reserved */

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: ""; width: 1.6em; height: 1px; background: currentColor; opacity: 0.5;
}
.eyebrow.no-rule::before { display: none; }

.mark-pop { color: var(--clementine); }
.mark-sage { color: var(--sage); }
.u-line { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

/* tone-on-tone text colours */
.on-dark { color: var(--cream); }
.on-dark .eyebrow, .on-dark .lede { color: var(--cream-soft); }
.t-soft { color: var(--ink-soft); }
.t-faint { color: var(--ink-faint); }
.t-cream-soft { color: var(--cream-soft); }

/* ---------------------------------------------------------------------
   4 · LAYOUT
   --------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap-tight { max-width: var(--wrap-tight); }
.section { padding-block: var(--section-y); }
.section-sm { padding-block: clamp(1.5rem, 3vw, 2.5rem); }
/* vh-centered stage sections (quiz, wizards): centering WITH breathing room,
   so content that outgrows the viewport never sits flush on the section edge. */
.stage-center { min-height: 80vh; display: flex; align-items: center; padding-block: clamp(2.5rem, 6vw, 4rem); }
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.6rem; }
.center { text-align: center; }
.measure { max-width: 62ch; }
.measure-sm { max-width: 44ch; }

.grid { display: grid; gap: clamp(1rem, 2.5vw, 2rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.split-wide { grid-template-columns: 1.15fr 0.85fr; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: 0.5rem; } .gap { gap: 1rem; } .gap-lg { gap: 1.6rem; }
.wrap-flex { flex-wrap: wrap; }

/* ---------------------------------------------------------------------
   5 · PANELS (colour blocks — the signature of this direction)
   --------------------------------------------------------------------- */
.panel { position: relative; }
.panel-spruce { background: var(--spruce); color: var(--cream); }
.panel-spruce-deep { background: var(--spruce-900); color: var(--cream); }
.panel-butter { background: var(--butter); color: var(--ink); }
.panel-paper  { background: #ffffff; color: var(--ink); }
.panel-sage   { background: var(--sage-soft); color: var(--ink); }
.panel-pop    { background: var(--clementine); color: #fff; }
.panel-spruce, .panel-spruce-deep { --line: var(--line-dark); --line-strong: var(--line-dark-strong); }

.round-top { border-radius: var(--r-xl) var(--r-xl) 0 0; }
.round-all { border-radius: var(--r-xl); }
.round-block { border-radius: clamp(20px, 4vw, 44px); margin-block: clamp(1rem, 2vw, 1.5rem); }

/* ---------------------------------------------------------------------
   6 · BUTTONS
   --------------------------------------------------------------------- */
.btn {
  --bg: var(--ink); --fg: var(--paper); --bd: transparent;
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.5rem; border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  font-weight: 600; font-size: 0.96rem; letter-spacing: -0.01em;
  line-height: 1; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), background var(--t-med) var(--ease),
              color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
/* Lift on real hover only: a tap on a phone would leave the button raised. */
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-2px); } }
.btn:active { transform: translateY(0) scale(0.985); }

.btn-pop { --bg: var(--clementine); --fg: #fff; box-shadow: var(--shadow-pop); }
.btn-pop:hover { --bg: var(--clementine-600); }
.btn-spruce { --bg: var(--spruce); --fg: var(--cream); }
.btn-spruce:hover { --bg: var(--spruce-700); }
.btn-cream { --bg: var(--cream); --fg: var(--ink); }
.btn-dark { --bg: var(--ink); --fg: var(--paper); }
.btn-ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-strong); }
.btn-ghost:hover { --bd: var(--ink); }
.on-dark .btn-ghost { --fg: var(--cream); --bd: var(--line-dark-strong); }
.on-dark .btn-ghost:hover { --bd: var(--cream); }
.btn-lg { padding: 1.1rem 1.8rem; font-size: 1.02rem; }
.btn-sm { padding: 0.65rem 1.1rem; font-size: 0.85rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* button-in-button arrow, used sparingly */
.btn .ico {
  display: grid; place-items: center; width: 1.65rem; height: 1.65rem;
  margin-right: -0.4rem; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.18);
  transition: transform var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.btn-ghost .ico { background: rgba(18,32,25,0.08); }
.btn:hover .ico { transform: translate(2px, -1px); }
.btn .ico svg { width: 0.85rem; height: 0.85rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600;
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px; line-height: 1.2;
  transition: gap var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
}
.link-arrow:hover { gap: 0.75rem; }
.link-arrow svg { width: 0.85em; height: 0.85em; }

/* ---------------------------------------------------------------------
   7 · TAGS / PILLS / BADGES
   --------------------------------------------------------------------- */
.tag {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.4rem 0.8rem; border-radius: var(--r-pill);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.02em;
  background: var(--sage-soft); color: var(--spruce);
}
.tag-pop { background: var(--clementine-200); color: var(--clementine-600); }
.tag-outline { background: transparent; border: 1.5px solid var(--line-strong); color: var(--ink-soft); }
.on-dark .tag-outline { border-color: var(--line-dark-strong); color: var(--cream-soft); }
.tag-dot::before { content:""; width:6px; height:6px; border-radius:50%; background: currentColor; }

.chip {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.55rem 1rem; border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong); background: transparent;
  font-weight: 600; font-size: 0.9rem; color: var(--ink);
  transition: border-color var(--t-med) var(--ease), background var(--t-med) var(--ease), color var(--t-med) var(--ease);
}
.chip:hover, .chip[aria-pressed="true"], .chip.is-active {
  border-color: var(--spruce); background: var(--spruce); color: var(--cream);
}

/* star rating */
.stars { display: inline-flex; gap: 2px; color: var(--clementine); }
.stars svg { width: 1em; height: 1em; }

/* ---------------------------------------------------------------------
   8 · CARDS
   --------------------------------------------------------------------- */
.card {
  background: var(--paper-card); border-radius: var(--r-lg);
  border: 1px solid var(--line); overflow: hidden;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.card-pad { padding: clamp(1.25rem, 2.5vw, 2rem); }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* product card */
.product {
  display: flex; flex-direction: column; background: var(--paper-card);
  border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.product:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product .ph {
  position: relative; aspect-ratio: 4/5; background: var(--sage-soft); overflow: hidden;
}
.product .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.product:hover .ph img { transform: scale(1.045); }
.product .ph .tag { position: absolute; top: 0.9rem; left: 0.9rem; backdrop-filter: blur(4px); }
.product .pb { padding: 1.1rem 1.15rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.product .pname { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; }
.product .pdesc { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.45; }
.product .prow { margin-top: auto; display: flex; align-items: baseline; gap: 0.5rem; padding-top: 0.4rem; }
.product .price { font-weight: 700; font-size: 1.08rem; }
.product .price-was { color: var(--ink-faint); text-decoration: line-through; font-size: 0.9rem; }

/* feature / link card */
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 320px; padding: 1.5rem; border-radius: var(--r-lg); overflow: hidden; color: #fff;
  isolation: isolate; transition: transform var(--t-med) var(--ease);
}
.tile:hover { transform: translateY(-4px); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform var(--t-slow) var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile::after { content:""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(12,35,30,0.82) 0%, rgba(12,35,30,0.28) 55%, rgba(12,35,30,0.05) 100%); }
.tile .tile-k { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; opacity: 0.85; }
.tile .tile-t { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; line-height: 1.05; margin-top: 0.35rem; }

/* stat */
.stat .n { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -0.02em; }
.stat .l { color: var(--ink-soft); font-size: 0.9rem; margin-top: 0.5rem; }
.on-dark .stat .l { color: var(--cream-soft); }

/* ---------------------------------------------------------------------
   9 · NAV
   --------------------------------------------------------------------- */
.announce {
  background: var(--spruce-900); color: var(--cream-soft);
  font-size: 0.8rem; letter-spacing: 0.01em; text-align: center;
  padding: 0.55rem 1rem;
}
.announce strong { color: var(--cream); font-weight: 600; }

.nav {
  position: sticky; top: 0; z-index: 60;
  background-color: #ffffff;
  /* background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); */
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) var(--ease), background var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.nav.is-stuck { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.brand { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--ink); display: inline-flex; align-items: center; gap: 0.35rem; }
.brand .dot { width: 0.42rem; height: 0.42rem; border-radius: 50%; background: var(--clementine); margin-bottom: 0.5rem; }
/* The brand lockup, as artwork rather than type. Intrinsic width/height are set on
   the tag so the reserved box is right before it decodes; height drives the size. */
.brand-logo { display: block; width: auto; height: 2.6rem; }
/* The artwork is red type over a BLACK script tagline, which is invisible on the
   near-black drawer and footer. Knock it out to a flat white there. */
.drawer .brand-logo, .footer .brand-logo { filter: brightness(0) invert(1); }
.drawer .brand-logo { height: 2.4rem; }
.footer .brand-logo { height: 3.2rem; }
.nav-links { display: flex; align-items: center; gap: 0.3rem; }
.nav-links a {
  padding: 0.5rem 0.85rem; border-radius: var(--r-pill); font-weight: 500; font-size: 0.9rem; line-height: 1; color: var(--ink-soft);
  transition: color var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(18,32,25,0.05); }
.nav-actions { display: flex; align-items: center; gap: 0.4rem; }
.icon-btn { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%; color: var(--ink); transition: background var(--t-med) var(--ease); position: relative; }
.icon-btn:hover { background: rgba(18,32,25,0.06); }
.icon-btn svg { width: 1.25rem; height: 1.25rem; }
.icon-btn .count { position: absolute; top: 0.25rem; right: 0.25rem; min-width: 1.05rem; height: 1.05rem; padding: 0 3px;
  background: var(--clementine); color: #fff; border-radius: var(--r-pill); font-size: 0.65rem; font-weight: 700; display: grid; place-items: center; }
.nav-burger { display: none; }

/* mega menu */
.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 0.5rem); left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(840px, 92vw); background: var(--paper-card); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 1.5rem; opacity: 0; visibility: hidden;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility var(--t-med);
  z-index: 70;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.mega h5 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-faint); font-weight: 700; margin-bottom: 0.75rem; }
.mega-link { display: block; padding: 0.5rem 0.7rem; margin: 0 -0.7rem; border-radius: var(--r-sm); color: var(--ink-soft); font-weight: 500; font-size: 0.92rem; line-height: 1.2; transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.mega-link:hover { color: var(--ink); background: rgba(18,32,25,0.05); }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 90; background: var(--spruce);
  color: var(--cream); padding: 1.25rem var(--gut) 2rem; display: flex; flex-direction: column;
  transform: translateY(-100%); transition: transform var(--t-slow) var(--ease);
  overflow-y: auto;
}
.drawer.open { transform: translateY(0); }
.drawer .drawer-top { display: flex; align-items: center; justify-content: space-between; }
.drawer .brand { color: var(--cream); }
.drawer-nav { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.2rem; }
.drawer-nav a { font-family: var(--font-display); font-weight: 600; font-size: 1.8rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line-dark); }

/* ---------------------------------------------------------------------
   10 · BODY MAP (signature)
   The figure is a photograph; the dots are buttons placed by percentage of
   its box, so they stay on the joint at any size.
   --------------------------------------------------------------------- */
.bm-poses { display: inline-flex; gap: 0.25rem; padding: 0.25rem; border-radius: var(--r-pill); background: rgba(31,58,46,0.08); }
.bm-pose {
  border: 0; background: transparent; color: var(--ink-soft); font: inherit; font-weight: 600; font-size: 0.86rem;
  padding: 0.45rem 0.95rem; border-radius: var(--r-pill); cursor: pointer;
  transition: background var(--t-med) var(--ease), color var(--t-med) var(--ease);
}
.bm-pose:hover { color: var(--ink); }
.bm-pose.is-on { background: var(--spruce); color: var(--cream); }
.bm-pose:focus-visible { outline: 2px solid var(--clementine); outline-offset: 2px; }
/* The lamp glow below spills past the stage on purpose; clip it at the section,
   or on phones it widens the page and leaves a white strip on the right. */
#bodymap { overflow: clip; }
.bm-stage {
  position: relative; aspect-ratio: 1 / 1; overflow: visible; isolation: isolate;
  --sx: 50%; --sy: 50%;
  transition: --sx 1.1s cubic-bezier(0.22, 0.7, 0.2, 1), --sy 1.1s cubic-bezier(0.22, 0.7, 0.2, 1);
}
@property --sx { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
@property --sy { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
/* Every posture shares one frame and one floor line; a change is a slow dissolve, nothing moves. */
.bm-figure {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 0.9s var(--ease), visibility 0s linear 0.9s;
}
.bm-figure.is-on { opacity: 1; visibility: visible; transition: opacity 0.9s var(--ease); }
.bm-figure img { display: block; width: 100%; height: 100%; }
/* The lamp: the ground dims softly away from the chosen spot, and the spot itself catches a little warmth. */
.bm-light {
  position: absolute; inset: -14% -30% -22% -30%; pointer-events: none; z-index: 1;
  background:
    radial-gradient(circle at var(--sx) var(--sy), rgba(255,250,240,0.5) 0, rgba(255,250,240,0) 9%),
    radial-gradient(ellipse 58% 54% at var(--sx) var(--sy), rgba(23,63,53,0) 0, rgba(23,63,53,0) 24%, rgba(23,63,53,0.09) 52%, rgba(23,63,53,0.11) 66%, rgba(23,63,53,0) 100%);
  mix-blend-mode: multiply;
  /* The pool always fades out before the box does, so it never shows an edge. */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 78%, transparent), linear-gradient(to right, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 78%, transparent), linear-gradient(to right, transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.bm-hot {
  position: absolute; width: 16px; height: 16px; transform: translate(-50%, -50%);
  border: 0; background: transparent; padding: 0; cursor: pointer; z-index: 2;
}
.bm-hot:hover, .bm-hot.is-active, .bm-hot:focus-visible { z-index: 3; }
.bm-dot {
  position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%;
  background: rgba(242,231,206,0.9); box-shadow: 0 0 0 1.5px rgba(23,63,53,0.55);
  transition: width 0.5s var(--ease), height 0.5s var(--ease), margin 0.5s var(--ease), background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.bm-hot:hover .bm-dot { background: var(--cream); box-shadow: 0 0 0 1.5px var(--clementine); }
.bm-hot.is-active .bm-dot {
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  background: var(--clementine); box-shadow: 0 0 0 2px rgba(242,231,206,0.95), 0 0 0 3.5px var(--clementine);
}
.bm-hot.is-active .bm-dot::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  box-shadow: 0 0 0 1px var(--clementine); animation: bm-breathe 2.8s ease-in-out infinite;
}
/* Caption on a hairline, like a film still's annotation. Only the chosen spot is named. */
.bm-lbl {
  position: absolute; top: 50%; left: calc(100% + 1.55rem); transform: translateY(-50%);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1;
  color: var(--ink); white-space: nowrap; opacity: 0; transition: opacity 0.6s var(--ease) 0.15s;
}
.bm-lbl::before {
  content: ""; position: absolute; top: 50%; right: calc(100% + 0.5rem); width: 1rem; height: 1px; background: var(--ink);
  opacity: 0.55;
}
.bm-hot--left .bm-lbl { left: auto; right: calc(100% + 1.55rem); }
.bm-hot--up .bm-lbl { left: 50%; right: auto; top: auto; bottom: calc(100% + 1.4rem); transform: translateX(-50%); }
.bm-hot--up .bm-lbl::before { right: auto; left: 50%; top: calc(100% + 0.35rem); width: 1px; height: 0.9rem; }
.bm-hot--left .bm-lbl::before { right: auto; left: calc(100% + 0.5rem); }
.bm-hot.is-active .bm-lbl, .bm-hot:focus-visible .bm-lbl { opacity: 1; }
.bm-hot:focus-visible { outline: none; }
.bm-hot:focus-visible .bm-dot { box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--ink); }
/* The card changes its words without changing its place. */
.bm-detail { min-height: 22rem; }
.bm-detail.is-swap .bm-swap { animation: bm-in 0.7s var(--ease); }
@keyframes bm-breathe { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.8; } }
@keyframes bm-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 560px) { .bm-lbl { font-size: 0.66rem; } .bm-detail { min-height: 0; } }

/* ---------------------------------------------------------------------
   11 · FINDER / ENGINE
   --------------------------------------------------------------------- */
.finder {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow-md);
}
.finder-row { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 0.75rem; align-items: end; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); }
.select, .input, .textarea {
  width: 100%; padding: 0.9rem 1rem; border-radius: var(--r-sm);
  border: 1.5px solid var(--line-strong); background: var(--paper);
  font-weight: 500; color: var(--ink); transition: border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
  appearance: none;
}
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23122019' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; cursor: pointer; }
.select:disabled { opacity: 0.5; cursor: not-allowed; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--spruce); box-shadow: 0 0 0 4px rgba(23,63,53,0.12); outline: none; }
.textarea { resize: vertical; min-height: 120px; line-height: 1.55; }

.result-card {
  margin-top: 1.25rem; background: var(--sage-soft); border-radius: var(--r-md); padding: 1.25rem;
  display: flex; gap: 1.1rem; align-items: center;
}
.result-card .rc-img { width: 92px; height: 92px; border-radius: var(--r-sm); object-fit: cover; flex: none; background: var(--paper); }

/* single-search finder + autocomplete */
.finder-search { position: relative; }
.search-wrap { position: relative; }
.search-wrap .search-ic { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 1.15rem; height: 1.15rem; color: var(--ink-faint); pointer-events: none; }
.search-wrap .input { padding-left: 2.7rem; }
.finder-list { position: absolute; left: 0; right: 0; top: calc(100% + 0.4rem); z-index: 30; background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg); overflow: hidden auto; max-height: 264px; }
.finder-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; text-align: left; padding: 0.8rem 1rem; font-weight: 500; font-size: 0.95rem; color: var(--ink); border-bottom: 1px solid var(--line); transition: background var(--t-fast) var(--ease); }
.finder-item:last-child { border-bottom: 0; }
.finder-item:hover, .finder-item:focus-visible { background: var(--sage-soft); }
.finder-item .fi-go { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.02em; color: var(--clementine-600); flex: none; }

/* ---------------------------------------------------------------------
   12 · QUIZ
   --------------------------------------------------------------------- */
.quiz-progress { height: 4px; background: rgba(255,255,255,0.16); border-radius: var(--r-pill); overflow: hidden; }
.quiz-progress .bar { height: 100%; background: var(--clementine); border-radius: var(--r-pill); transition: width var(--t-slow) var(--ease); }
.opt {
  display: flex; align-items: center; gap: 1rem; width: 100%; text-align: left;
  padding: 1.1rem 1.25rem; border-radius: var(--r-md); border: 1.5px solid var(--line-dark-strong);
  background: rgba(255,255,255,0.04); color: var(--cream);
  transition: border-color var(--t-med) var(--ease), background var(--t-med) var(--ease), transform var(--t-fast) var(--ease);
}
.opt:hover { border-color: var(--clementine); background: rgba(255,255,255,0.08); transform: translateX(4px); }
.opt .opt-ico { width: 2.6rem; height: 2.6rem; border-radius: var(--r-sm); display: grid; place-items: center; background: rgba(242,231,206,0.1); flex: none; }
.opt .opt-ico svg { width: 1.3rem; height: 1.3rem; }

/* ---------------------------------------------------------------------
   13 · FORMS / GENERIC
   --------------------------------------------------------------------- */
/* Password show/hide toggle (was scoped to the partners page only) */
.pw-row { position: relative; }
.pw-row .pw-toggle { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); font-size: 0.78rem; font-weight: 600; color: var(--ink-faint); padding: 0.3rem 0.5rem; border-radius: var(--r-xs); }
.pw-row .pw-toggle:hover { color: var(--spruce); background: rgba(18,32,25,0.05); }

/* Phone bottom tab bar. Hidden until the header collapses to the burger. */
.tabbar { display: none; }
@media (max-width: 880px) {
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: grid; grid-template-columns: repeat(5, 1fr);
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(12,35,30,0.06);
    padding-bottom: env(safe-area-inset-bottom); }
  .tabbar > a, .tabbar > button { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; padding: 0.55rem 0 0.5rem;
    font-size: 0.7rem; font-weight: 600; color: var(--ink-faint); background: none; border: 0; cursor: pointer; }
  .tabbar svg { width: 1.4rem; height: 1.4rem; }
  .tabbar .is-on { color: var(--spruce); }
  .tabbar svg { transition: transform 120ms var(--ease); }
  .tabbar > a:active svg, .tabbar > button:active svg { transform: scale(0.88); }
  .tabbar .is-on svg { stroke-width: 2.2; }
  .tabbar .tb-ic { position: relative; display: block; line-height: 0; }
  .tabbar .tb-n { position: absolute; top: -0.35rem; right: -0.6rem; min-width: 1.05rem; height: 1.05rem; padding: 0 3px; border-radius: var(--r-pill);
    background: var(--clementine); color: #fff; font-size: 0.62rem; line-height: 1.05rem; text-align: center; }
  /* keep the footer's last line and the toast clear of the bar */
  body { padding-bottom: calc(3.6rem + env(safe-area-inset-bottom)); }
  .flash-toast { bottom: calc(4.4rem + env(safe-area-inset-bottom)) !important; }
}

/* Sign in / create account popup */
.auth-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: var(--gut); }
.auth-card { transition: opacity 220ms var(--ease), transform 220ms var(--ease); }
@starting-style { .auth-card { opacity: 0; transform: translateY(10px) scale(0.97); } }
.auth-backdrop { position: absolute; inset: 0; background: rgba(12,35,30,0.55); backdrop-filter: blur(3px); }
.auth-card { position: relative; width: min(100%, 420px); max-height: calc(100vh - 2rem); overflow-y: auto; background: #fff; border-radius: var(--r-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,0.3); padding: clamp(1.25rem, 3vw, 1.8rem); }
.auth-card form { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 1.1rem; }
.auth-card .field-row { gap: 0.7rem; }
.auth-x { position: absolute; top: 0.8rem; right: 0.8rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; color: var(--ink-soft); }
.auth-x:hover { background: rgba(18,32,25,0.06); color: var(--ink); }
.auth-x svg { width: 1.1rem; height: 1.1rem; }
.auth-tabs { display: inline-flex; gap: 0.25rem; padding: 0.25rem; border-radius: var(--r-pill); background: rgba(31,58,46,0.07); margin-bottom: 1.1rem; }
.auth-tabs button { padding: 0.45rem 0.95rem; border-radius: var(--r-pill); font-weight: 600; font-size: 0.85rem; color: var(--ink-soft); }
.auth-tabs button.is-on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.1)); }
.auth-err { margin-top: 0.9rem; padding: 0.65rem 0.8rem; border-radius: var(--r-sm); background: rgba(240,68,31,0.08); color: var(--clementine-600); font-weight: 600; font-size: 0.86rem; }
.auth-remember { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--ink-soft); }
.auth-forgot { align-self: center; }
@media (max-width: 640px) {
  .auth-modal { place-items: end center; padding: 0; }
  .auth-card { width: 100%; border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 92vh; }
  .auth-card .field-row { grid-template-columns: 1fr; }
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.note { font-size: 0.82rem; color: var(--ink-faint); }
.divider { height: 1px; background: var(--line); border: 0; }
.on-dark .divider { background: var(--line-dark); }

/* list with check ticks */
.ticks { display: flex; flex-direction: column; gap: 0.7rem; }
.ticks li { display: flex; gap: 0.7rem; align-items: flex-start; }
.ticks .tk { flex: none; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--sage-soft); color: var(--spruce); display: grid; place-items: center; margin-top: 1px; }
.on-dark .ticks .tk { background: rgba(242,231,206,0.14); color: var(--cream); }
.ticks .tk svg { width: 0.8rem; height: 0.8rem; }

/* ---------------------------------------------------------------------
   14 · MARQUEE (trust logos / words)
   --------------------------------------------------------------------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: clamp(2rem, 5vw, 4rem); width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track .logo { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 2.5vw, 1.7rem); color: var(--ink-soft); opacity: 0.8; white-space: nowrap; letter-spacing: -0.01em; }
.on-dark .marquee-track .logo { color: var(--cream-soft); }
/* Real logos in the track. Cap the height, not the width, so five different aspect
   ratios line up; a square lockup needs a taller cap to carry the same weight. */
.marquee-track img.logo { height: clamp(1.5rem, 2.8vw, 2.1rem); width: auto; max-width: 11rem;
  object-fit: contain; opacity: 1; flex: none; }
.marquee-track img.logo.is-stacked { height: clamp(2.5rem, 4.6vw, 3.5rem); }

/* Product page fit check. The yes and the no are both useful answers, so they are
   equally legible — the no carries the redirect that turns a mismatch into a sale. */
.fitcheck { margin-top: 0.8rem; }
.fitcheck .input { width: 100%; }
.fitrow { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 0.7rem; font-size: 0.92rem; line-height: 1.45; }
.fitrow .fitmark { flex: none; width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 700; margin-top: 0.1rem; }
.fitrow.is-yes .fitmark { background: var(--sage-soft); color: var(--spruce); }
.fitrow.is-no .fitmark { background: var(--clementine-200); color: var(--clementine-600); }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------------
   15 · ACCORDION
   --------------------------------------------------------------------- */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; text-align: left; padding: 1.3rem 0; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; }
.acc-head .pm { flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: transform var(--t-med) var(--ease), background var(--t-med) var(--ease), color var(--t-med) var(--ease); }
.acc-item.open .acc-head .pm { transform: rotate(45deg); background: var(--spruce); color: var(--cream); border-color: var(--spruce); }
.acc-body { overflow: hidden; max-height: 0; transition: max-height var(--t-slow) var(--ease); }
.acc-body-inner { padding-bottom: 1.3rem; color: var(--ink-soft); line-height: 1.6; max-width: 64ch; }

/* ---------------------------------------------------------------------
   16 · FOOTER
   --------------------------------------------------------------------- */
.footer { background: var(--spruce-900); color: var(--cream); }
.footer a { color: var(--cream-soft); transition: color var(--t-med) var(--ease); }
.footer a:hover { color: var(--cream); }
.footer h5 { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--cream-faint); font-weight: 700; margin-bottom: 1rem; }
.footer-cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.7rem; font-size: 0.95rem; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--cream-faint); }

/* The footer's own block: tighter than a page section, and close to the rule below it. */
.footer > .section { padding-block: clamp(3rem, 5vw, 4.5rem) 2.5rem; }

/* ---------------------------------------------------------------------
   17 · IMAGE FRAMES
   --------------------------------------------------------------------- */
.frame { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--sage-soft); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-4-5 { aspect-ratio: 4/5; }
.frame-3-2 { aspect-ratio: 3/2; }
.frame-1-1 { aspect-ratio: 1/1; }
.frame-16-9 { aspect-ratio: 16/9; }
.frame-portrait { aspect-ratio: 3/4; }

/* floating annotation pill on imagery (warm, not technical) */
.pin {
  position: absolute; display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.85rem; border-radius: var(--r-pill);
  background: rgba(251,247,238,0.92); backdrop-filter: blur(6px);
  box-shadow: var(--shadow-md); font-size: 0.82rem; font-weight: 600; color: var(--ink);
}
.pin .pin-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--clementine); }
.pin small { font-weight: 500; color: var(--ink-faint); }

/* ---------------------------------------------------------------------
   18 · REVEAL / MOTION
   --------------------------------------------------------------------- */
/* gated on .js so content is fully visible if JS is disabled or fails */
/* Scroll reveal: a short fade-up. palo.js staggers batches and strips the class
   once done, so the delays below never leak into hover transitions later. */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease-soft), transform 0.6s var(--ease-soft); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal.reveal-d1 { transition-delay: 0.08s; }
html.js .reveal.reveal-d2 { transition-delay: 0.16s; }
html.js .reveal.reveal-d3 { transition-delay: 0.24s; }
html.js .reveal.reveal-d4 { transition-delay: 0.32s; }

/* Page-to-page: a quick crossfade (Chrome/Edge 126+, Safari 18.2+; others just
   navigate). The header and phone tab bar hold still instead of fading. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 200ms; animation-timing-function: var(--ease); }
.nav { view-transition-name: site-nav; }
.tabbar { view-transition-name: site-tabbar; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  @view-transition { navigation: none; }
  .auth-card, .fdd-panel { transition: opacity 150ms ease; transform: none; }
  .marquee-track { animation: none; }
  .add-btn.pop, .count.bump { animation: none; }
  .bm-hot.is-active .bm-dot::after, .bm-detail.is-swap .bm-swap { animation: none; }
  .bm-stage, .bm-figure, .bm-figure.is-on { transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------------
   19 · UTILITIES
   --------------------------------------------------------------------- */
.bg-spruce { background: var(--spruce); } .bg-butter { background: var(--butter); }
.bg-paper { background: var(--paper); } .bg-sage { background: var(--sage-soft); }
.text-pop { color: var(--clementine); }
.mt-0{margin-top:0}.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}.mt-5{margin-top:3rem}
.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}
.hide { display: none !important; }
.rel { position: relative; }
.z1 { position: relative; z-index: 1; }
.full-bleed-img { width: 100%; height: 100%; object-fit: cover; }
.pop-underline { background-image: linear-gradient(var(--clementine), var(--clementine)); background-size: 100% 0.14em; background-position: 0 92%; background-repeat: no-repeat; }

/* =====================================================================
   STOREFRONT MODULE — merchandising like a real D2C shop
   (category tiles, product rails, cart drawer, press, journal)
   ===================================================================== */

/* section header row (title + see-all + rail arrows) */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.rail-nav { display: none; } /* rails now wrap as a grid, no arrows needed */
.rail-nav button { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: var(--ink); transition: border-color var(--t-med) var(--ease), background var(--t-med) var(--ease), color var(--t-med) var(--ease); }
.rail-nav button:hover { border-color: var(--spruce); background: var(--spruce); color: var(--cream); }
.rail-nav svg { width: 1.1rem; height: 1.1rem; }
.on-dark .rail-nav button { border-color: var(--line-dark-strong); color: var(--cream); }
.on-dark .rail-nav button:hover { background: var(--cream); color: var(--spruce); border-color: var(--cream); }

/* category tiles */
/* Six was the count of the hardcoded tiles; the grid follows the categories table
   now, so it fits as many columns as the row holds instead of stranding the odd
   one on a line of its own. */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: clamp(0.7rem, 1.5vw, 1.1rem); }
.cat-tile { display: flex; flex-direction: column; gap: 0.7rem; text-align: center; }
.cat-tile .cat-ph { aspect-ratio: 1/1; border-radius: var(--r-lg); overflow: hidden; background: var(--sage-soft); position: relative; }
.cat-tile .cat-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.cat-tile:hover .cat-ph img { transform: scale(1.06); }
.cat-tile .cat-nm { font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em; }
.cat-tile .cat-ct { font-size: 0.8rem; color: var(--ink-faint); }
.on-dark .cat-tile .cat-ct { color: var(--cream-soft); }

/* product rail -> responsive wrapping grid (no horizontal scroll trap, no half-cut cards) */
.rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: clamp(0.9rem, 1.8vw, 1.4rem); }

/* merch product card */
.pcard { display: flex; flex-direction: column; background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease); }
@media (hover: hover) and (pointer: fine) { .pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); } }
.pcard-ph { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--sage-soft); display: block; }
.pcard-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--t-slow) var(--ease); }
@media (hover: hover) and (pointer: fine) { .pcard:hover .pcard-ph img { transform: scale(1.05); } }
/* Second shot fades in over the main one on hover; cards with one image never swap. */
.pcard-ph .pcard-alt { position: absolute; inset: 0; opacity: 0; transition: opacity var(--t-med) var(--ease), transform var(--t-slow) var(--ease); }
/* A clip as the second shot: same frame as the photo, played muted by palo.js on hover. */
.pcard-ph video.pcard-alt { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--sage-soft); }
.pcard:hover .pcard-ph .pcard-alt { opacity: 1; }
.pcard .badge { position: absolute; top: 0.7rem; left: 0.7rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.28rem 0.6rem; border-radius: var(--r-pill); background: var(--clementine); color: #fff; }
.pcard .badge.is-soft { background: var(--sage-soft); color: var(--spruce); }
.pcard-b { padding: 0.8rem 0.85rem 0.9rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.pcard .rate { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; color: var(--ink-soft); font-weight: 600; }
.pcard .rate .stars svg { width: 0.82rem; height: 0.82rem; }
.pcard .rate .rev { color: var(--ink-faint); font-weight: 500; }
/* Two lines, always: long names clamp and short ones keep the height, so the
   price and buttons line up across a row of cards. */
.pcard-name { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pcard-name:hover { color: var(--spruce); }
.pcard-sub { font-size: 0.82rem; color: var(--ink-faint); line-height: 1.4; }
/* Card foot: price on its own row, then [Add | Buy now] as two equal buttons.
   A lone link (family "N sizes", sold out, B2B) takes the full row. */
.pcard-foot { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; padding-top: 0.45rem; }
.pcard-foot .price-wrap { grid-column: 1 / -1; }
.pcard-foot .add-btn, .buy-btn { justify-content: center; padding: 0.6rem 0.5rem; border-radius: var(--r-pill); font-weight: 600; font-size: 0.82rem; line-height: 1; white-space: nowrap; }
.pcard-foot .add-btn { background: transparent; color: var(--spruce); box-shadow: inset 0 0 0 1.5px var(--spruce); }
.pcard-foot .add-btn:hover { background: var(--spruce); color: var(--cream); }
.pcard-foot .add-btn.is-added { background: var(--spruce); color: var(--cream); }
.pcard-foot a.add-btn { grid-column: 1 / -1; }
/* Out of stock: the Add button turns into a full-width, inert label (Buy now hides). */
.add-btn:disabled, .btn:disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.pcard-foot .add-btn:disabled { grid-column: 1 / -1; }
/* "Notify me when available" under the Out of stock button */
.notify-me { margin-top: 1rem; }
.notify-label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.45rem; }
.notify-row { display: flex; gap: 0.5rem; }
.notify-row .input { flex: 1 1 auto; min-width: 0; }
.notify-row .btn { flex: none; }
.notify-err { color: var(--clementine-600, #c2401f); margin-top: 0.4rem; }
.notify-ok { font-weight: 600; color: var(--spruce, #173F35); text-align: center; }
.btn.btn-soldout:disabled { background: #e9e4d8; color: var(--ink-soft, #5d655b); box-shadow: inset 0 0 0 1.5px var(--line, #dad4c4); opacity: 1; }
.buy-btn { display: inline-flex; background: var(--spruce); color: var(--cream); transition: background var(--t-med) var(--ease), transform var(--t-fast) var(--ease); }
.buy-btn:hover { background: var(--clementine); color: #fff; }
.buy-btn:active { transform: scale(0.97); }
@media (max-width: 640px) {
  .pcard-b { padding: 0.65rem 0.65rem 0.75rem; gap: 0.25rem; }
  .pcard-name { font-size: 0.84rem; }
  .pcard .badge { top: 0.5rem; left: 0.5rem; font-size: 0.6rem; padding: 0.22rem 0.5rem; }
  .pcard-foot { gap: 0.35rem; }
  .pcard-foot .price-wrap .price { font-size: 0.95rem; }
  .pcard-foot .price-wrap .mrp { font-size: 0.75rem; }
  .pcard-foot .add-btn, .buy-btn { padding: 0.55rem 0.3rem; font-size: 0.74rem; }
}
.price-wrap { display: flex; align-items: baseline; gap: 0.4rem; flex-wrap: wrap; }
.price-wrap .price { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.price-wrap .mrp { font-size: 0.85rem; color: var(--ink-faint); text-decoration: line-through; }
.price-wrap .save { font-size: 0.74rem; font-weight: 700; color: var(--clementine-600); }
.add-btn { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.55rem 0.95rem; border-radius: var(--r-pill); background: var(--spruce); color: var(--cream); font-weight: 600; font-size: 0.85rem; white-space: nowrap; transition: background var(--t-med) var(--ease), transform var(--t-fast) var(--ease); }
.add-btn:hover { background: var(--clementine); }
.add-btn:active { transform: scale(0.95); }
.add-btn.is-added { background: var(--spruce-900, #0C231E); color: var(--cream); }
.add-btn.pop { animation: addpop 0.28s var(--ease); }
@keyframes addpop { 40% { transform: scale(1.09); } 100% { transform: scale(1); } }
.count.bump { animation: countbump 0.4s var(--ease); }
@keyframes countbump { 30% { transform: scale(1.45); } 60% { transform: scale(0.9); } 100% { transform: scale(1); } }

/* press / as-featured-in strip */
.press { display: flex; align-items: center; justify-content: center; gap: clamp(1.5rem, 5vw, 4rem); flex-wrap: wrap; opacity: 0.85; }
.press .pr { font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, 2vw, 1.35rem); color: var(--ink-soft); letter-spacing: -0.01em; }
/* Real client logos arrive in five different aspect ratios. Cap the height rather than
   the width so they optically match. Shown in their own colours: these are plain <img>
   in a <div>, not links, so a hover reveal had nothing to reveal itself to. */
.press .pr-logo { height: clamp(1.5rem, 2.8vw, 2.1rem); width: auto; max-width: 10rem; object-fit: contain; }
/* A square lockup (mark stacked above the name) needs a taller cap than a wordmark to
   carry the same optical weight in the row. */
.press .pr-logo.is-stacked { height: clamp(2.5rem, 4.6vw, 3.5rem); }

/* journal / blog cards */
.post .post-ph { aspect-ratio: 16/10; border-radius: var(--r-lg); overflow: hidden; background: var(--sage-soft); }
.post .post-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.post:hover .post-ph img { transform: scale(1.05); }
.post .post-k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-faint); font-weight: 600; margin-top: 1rem; }
.post .post-t { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.1; margin-top: 0.5rem; }

/* CART DRAWER */
.cart-overlay { position: fixed; inset: 0; z-index: 95; background: rgba(12,35,30,0.45); backdrop-filter: blur(2px); }
.cart { position: fixed; top: 0; right: 0; bottom: 0; z-index: 96; width: min(420px, 100vw); background: var(--paper); display: flex; flex-direction: column; }
/* shadow only while open: parked off-screen it bled a grey band down the page's right edge */
.cart.is-open { box-shadow: -30px 0 60px -30px rgba(12,35,30,0.5); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem var(--gut); border-bottom: 1px solid var(--line); }
.cart-head h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.cart-items { flex: 1; overflow-y: auto; padding: 0.5rem var(--gut); }
.cart-line { display: flex; gap: 0.9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 74px; height: 74px; border-radius: var(--r-sm); object-fit: cover; flex: none; background: var(--sage-soft); }
.cart-line .cl-b { flex: 1; display: flex; flex-direction: column; gap: 0.3rem; }
.cart-line .cl-nm { font-weight: 600; font-size: 0.95rem; line-height: 1.2; }
.cart-line .cl-nm:hover { color: var(--clementine); }
.cart-line .cl-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.stepper { display: inline-flex; align-items: center; gap: 0.65rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); padding: 0.2rem 0.55rem; }
.stepper button { width: 1.4rem; height: 1.4rem; display: grid; place-items: center; font-weight: 700; color: var(--ink-soft); }
.stepper button:hover { color: var(--clementine); }
.stepper .n { min-width: 1.2rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.cl-rm { font-size: 0.78rem; color: var(--ink-faint); text-decoration: underline; text-underline-offset: 2px; }
.cl-rm:hover { color: var(--clementine); }
.cart-empty { flex: 1; display: grid; place-items: center; text-align: center; padding: 2rem; color: var(--ink-faint); }
.cart-foot { padding: 1.2rem var(--gut) 1.5rem; border-top: 1px solid var(--line); }
.cart-foot .sub { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.cart-foot .sub .s2 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; }
.cart-enter { transition: transform var(--t-slow) var(--ease); }

@media (max-width: 1024px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------------
   20 · RESPONSIVE
   --------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-cols { grid-template-columns: 1fr 1fr 1fr; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  .nav-cta-desktop { display: none; }
  .split, .split-wide { grid-template-columns: 1fr; }
  .finder-row { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .mega { display: none; }
}
@media (max-width: 640px) {
  /* Four icon buttons share the bar with the lockup at this width. */
  .brand-logo { height: 2.2rem; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .finder-row { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .product .ph { aspect-ratio: 1/1; }
  .btn { width: auto; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}

/* ---------- Embedded media in admin-authored body copy ----------
   Emitted by VideoEmbed from a @video(url) directive, so it turns up inside
   product descriptions, blog posts and policy pages alike. */
.rt-video { margin: 1.6rem 0; border-radius: var(--r-lg); overflow: hidden; background: var(--sage-soft); box-shadow: var(--shadow-md); }
.rt-video iframe, .rt-video video { display: block; width: 100%; aspect-ratio: 16/9; border: 0; background: #000; }
.rt-video-link { margin: 1.2rem 0; }
.rt-video-link a { text-decoration: underline; text-underline-offset: 3px; }

/* "from" before a range price: filter family cards on shop and the home body map */
.price-from { font-weight: 500; font-size: 0.82em; color: var(--ink-faint); }
