/* ===== 01-tokens.css ===== */
/* =========================================================================
   SHERPA OFFROAD — Design tokens
   Palette sampled from SHERPALOGO.png. The logo's black is replaced by
   Warm Bone as the site's base field. See BRAND.md for verified contrast.
   ========================================================================= */

/* ---------------------------------------------------------------- fonts */
/* Archivo is a single variable file carrying BOTH axes:
   wght 100-900 and wdth 62-125. Display type = wght 900 / wdth 125 (Expanded).
   Body type = wght 400 / wdth 100. One download, two faces. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------- tokens */

:root {
  /* Brand — sampled from the logo */
  --crimson: #a71f23;
  --orange: #f15626;
  --gold: #ffcc19;
  --white: #ffffff;

  /* Base field (logo black -> Warm Bone) */
  --bone: #f4f1ea;
  --bone-2: #eae6dc;
  --bone-3: #dfd9cb;
  --ink: #1a1714;
  --ink-2: #4a423a;
  --ink-3: #8a7f70; /* 3.48:1 on bone — decorative / large only, never body copy */

  /* Semantic */
  --bg: var(--bone);
  --bg-raised: var(--bone-2);
  --border: var(--bone-3);
  --text: var(--ink);
  --text-muted: var(--ink-2);
  --text-faint: var(--ink-3);

  --cta: var(--gold); /* ink on gold = 11.8:1 */
  --cta-text: var(--ink);
  --cta-hover: var(--orange); /* ink on orange = 5.18:1 */
  --accent: var(--orange);
  --alert: var(--crimson); /* white on crimson = 7.33:1 */
  --focus: var(--orange);

  /* Type */
  --font-display: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.25rem, 1.6vw, 1.5rem);
  --fs-xl: clamp(1.625rem, 2.6vw, 2rem);
  /* Display floors are set by the longest single word that has to fit on a
     320px screen in Archivo Expanded caps (~0.78em per cap). Anything larger
     clips silently, because overflow-x:hidden swallows the overflow instead of
     surfacing it. `.display/.h1/.h2/.h3` also carry overflow-wrap:break-word
     as a backstop for words longer than any of these assume. */
  --fs-2xl: clamp(1.75rem, 4vw, 2.75rem);
  --fs-3xl: clamp(1.875rem, 6vw, 4rem);
  --fs-4xl: clamp(2rem, 9vw, 6rem);
  --fs-5xl: clamp(2rem, 10.8vw, 8.25rem);

  /* Spacing — 4/8 rhythm */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  --section-y: clamp(3.5rem, 9vw, 8rem);
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --maxw: 90rem;
  --maxw-text: 42rem;

  /* Shape — industrial: square corners, hard offsets, no soft shadows */
  --r-0: 0px;
  --r-sm: 2px;
  --r-pill: 999px;
  --hair: 1px solid var(--border);
  --hair-ink: 1px solid var(--ink);
  --shadow-hard: 4px 4px 0 var(--ink);
  --shadow-lift: 0 1px 2px rgb(26 23 20 / 0.06), 0 8px 24px rgb(26 23 20 / 0.08);
  --shadow-drawer: -8px 0 40px rgb(26 23 20 / 0.16);

  /* Motion */
  --dur-fast: 140ms;
  --dur: 240ms;
  --dur-slow: 420ms;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);

  /* Layers */
  --z-sticky: 100;
  --z-drawer: 400;
  --z-overlay: 500;
  --z-modal: 600;
  --z-toast: 700;
  --z-grain: 9500;
  --z-cursor: 9600;

  --header-h: 68px;
  --announce-h: 34px;
}

@media (min-width: 900px) {
  :root {
    --header-h: 78px;
  }
}

/* ---------------------------------------------------------------- reset */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s-4));
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.6;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Component classes set their own `display`, which beats the UA sheet's
   [hidden]{display:none} on equal specificity. Without this, anything toggled
   via the hidden attribute (cart empty state, no-results, form status) stays
   visible. */
[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

:where(h1, h2, h3, h4, h5, h6) {
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* Focus: the 3-bar device doubles as the focus indicator */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

/* Motion opt-out — honoured everywhere, no exceptions */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ===== 02-base.css ===== */
/* =========================================================================
   Base — typography, layout primitives, buttons, the 3-bar device
   ========================================================================= */

/* ------------------------------------------------------------ typography */

.display,
.h1,
.h2,
.h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%; /* Archivo Expanded via the wdth axis */
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.02em;
  /* Backstop: an unusually long word breaks rather than being clipped by
     body{overflow-x:hidden}. Only engages when nothing else fits. */
  overflow-wrap: break-word;
}

.display {
  font-size: var(--fs-5xl);
}
.h1 {
  font-size: var(--fs-4xl);
}
.h2 {
  font-size: var(--fs-3xl);
}
.h3 {
  font-size: var(--fs-2xl);
  font-weight: 800;
}

.h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
  font-size: var(--fs-lg);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.lede {
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 46ch;
}

.prose {
  max-width: var(--maxw-text);
}
.prose p + p {
  margin-top: var(--s-4);
}
.prose p {
  font-size: var(--fs-md);
  line-height: 1.72;
}
.prose a {
  color: var(--crimson); /* 6.50:1 on bone */
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
.prose a:hover {
  color: var(--ink);
  background: var(--gold);
}

/* --------------------------------------------------------------- layout */

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

.wrap--narrow {
  max-width: 68rem;
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: calc(var(--section-y) * 0.6);
}

.section--ink {
  background: var(--ink);
  color: var(--bone);
}
.section--ink .lede,
.section--ink .sechead__kicker {
  color: color-mix(in srgb, var(--bone) 72%, transparent);
}

.section--raised {
  background: var(--bg-raised);
}

.stack > * + * {
  margin-top: var(--s-4);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}

.rule {
  border: 0;
  border-top: var(--hair);
  margin-block: var(--s-6);
}

/* --------------------------------------------------- the 3-bar device */

/* The logo's three vertical bars, reused as the site's signature element:
   section dividers, headline underlines, hover states, progress bars. */
.bars {
  display: flex;
  width: 100%;
  height: 6px;
  overflow: hidden;
}
.bars > i {
  flex: 1;
  display: block;
}
.bars > i:nth-child(1) {
  background: var(--crimson);
}
.bars > i:nth-child(2) {
  background: var(--orange);
}
.bars > i:nth-child(3) {
  background: var(--gold);
}

.bars--thin {
  height: 3px;
}
.bars--thick {
  height: 10px;
}

/* Inline underline version that draws in on scroll */
.barline {
  display: block;
  width: 84px;
  height: 6px;
  background: linear-gradient(
    to right,
    var(--crimson) 0 33.333%,
    var(--orange) 33.333% 66.666%,
    var(--gold) 66.666% 100%
  );
  transform-origin: left center;
}

/* ------------------------------------------------------ section heading */

.sechead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}

.sechead__kicker {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}
.sechead__kicker::before {
  content: '';
  width: 28px;
  height: 3px;
  background: var(--orange);
  flex: none;
}

.sechead__title {
  margin: 0;
}

/* -------------------------------------------------------------- buttons */

.btn {
  --btn-bg: var(--cta);
  --btn-fg: var(--cta-text);
  --btn-bd: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid var(--btn-bd);
  border-radius: var(--r-0);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
  will-change: transform;
}

.btn:hover {
  background: var(--cta-hover);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard);
}

.btn:active {
  transform: translate(0, 0);
  box-shadow: 0 0 0 var(--ink);
}

.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
}

.btn--lg {
  min-height: 56px;
  padding: 1rem 2rem;
  font-size: var(--fs-sm);
}

.btn--block {
  width: 100%;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--bone);
}

.btn--ink {
  --btn-bg: var(--ink);
  --btn-fg: var(--bone);
}
.btn--ink:hover {
  background: var(--crimson);
  color: var(--white);
}

/* On dark backgrounds the hard-shadow offset flips to bone and the ghost
   button inverts — without this it renders ink-on-ink and disappears. */
.section--ink .btn:hover,
.on-ink .btn:hover,
.hero .btn:hover,
.chero .btn:hover,
.drop .btn:hover,
.about__hero .btn:hover {
  box-shadow: 4px 4px 0 var(--bone);
}
.section--ink .btn--ghost,
.on-ink .btn--ghost,
.hero .btn--ghost,
.chero .btn--ghost,
.drop .btn--ghost,
.about__hero .btn--ghost {
  --btn-fg: var(--bone);
  --btn-bd: var(--bone);
}
.section--ink .btn--ghost:hover,
.on-ink .btn--ghost:hover,
.hero .btn--ghost:hover,
.chero .btn--ghost:hover,
.drop .btn--ghost:hover,
.about__hero .btn--ghost:hover {
  background: var(--bone);
  color: var(--ink);
}

/* Text link with sliding arrow. The border sits on an inner pseudo-element so
   the anchor can carry a full 44px tap target without a floating underline. */
.linkarrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.linkarrow::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 2px;
  background: currentColor;
}
.linkarrow svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform var(--dur) var(--ease);
}
a:hover .linkarrow svg,
.linkarrow:hover svg {
  transform: translateX(5px);
}

/* --------------------------------------------------------------- chips */

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border: var(--hair-ink);
  border-radius: var(--r-pill);
  background: transparent;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.chip:hover {
  background: var(--bone-3);
}
.chip[aria-pressed='true'],
.chip.is-on {
  background: var(--ink);
  color: var(--bone);
}

/* -------------------------------------------------------------- badges */

.badge {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  z-index: 2;
  padding: 0.3rem 0.55rem;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
}
.badge--drop {
  background: var(--crimson);
  color: var(--white);
}
/* Top-right so it never collides with the quick-add panel sliding up */
.badge--out {
  left: auto;
  right: var(--s-3);
  background: var(--bone);
  color: var(--ink);
  border: 1px solid var(--ink);
}

/* ---------------------------------------------------------------- forms */

.field {
  display: block;
}
.field + .field {
  margin-top: var(--s-4);
}

.field__label {
  display: block;
  margin-bottom: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.field__req {
  color: var(--crimson);
}

.field__input,
.field__select,
.field__textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--r-0);
  font-size: var(--fs-base); /* 16px — stops iOS zoom-on-focus */
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field__textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}
.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  outline: none;
  box-shadow: 4px 4px 0 var(--orange);
}
.field__input::placeholder,
.field__textarea::placeholder {
  color: var(--ink-3);
}

.field__help {
  margin-top: var(--s-2);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.field__error {
  display: none;
  margin-top: var(--s-2);
  padding-left: 1.25rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--crimson); /* 6.50:1 */
  background: no-repeat left 0.15em / 0.9em url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23a71f23'%3E%3Cpath d='M8 1L15 14H1L8 1zm0 4v5h0V5zm-.9 0h1.8v5H7.1V5zm0 6h1.8v1.8H7.1V11z'/%3E%3C/svg%3E");
}
.field.is-invalid .field__error {
  display: block;
}
.field.is-invalid .field__input,
.field.is-invalid .field__textarea {
  border-color: var(--crimson);
}

/* --------------------------------------------------------------- grain */

/* Fine film grain over the whole page — the "gritty" half of the aesthetic.
   pointer-events:none and no blend mode, so it costs nothing to composite. */
.grain {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .grain {
    opacity: 0.03;
  }
}

/* ------------------------------------------------------------ utilities */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: var(--s-4);
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid var(--ink);
  transform: translateY(-200%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
}

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* !important because component classes like .iconbtn set their own display and
   would otherwise win on equal specificity, leaking the no-JS fallback in. */
html:not(.no-js) .no-js-only {
  display: none !important;
}
html.no-js .js-only {
  display: none !important;
}


/* ===== 03-chrome.css ===== */
/* =========================================================================
   Chrome — announcement, header, nav, mobile menu, search, cart drawer, footer
   ========================================================================= */

/* --------------------------------------------------------- announcement */

.announce {
  position: relative;
  background: var(--ink);
  color: var(--bone);
  overflow: hidden;
}
.announce__track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  min-height: var(--announce-h);
  padding: 0.35rem var(--gutter);
  text-align: center;
}
/* Wraps rather than clipping — the longest message doesn't fit on a 320px
   screen and the bar has overflow:hidden. */
.announce__item {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-wrap: balance;
}
.announce__item.is-on {
  display: flex;
  animation: announceIn var(--dur-slow) var(--ease-out);
}
.announce__item b {
  color: var(--gold);
  font-weight: 700;
}
@keyframes announceIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------- header */

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--bone);
  border-bottom: var(--hair);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-4);
  height: var(--header-h);
}

/* Home page only: header floats over the dark hero until you scroll */
.page-home .header:not(.is-stuck) {
  background: transparent;
  border-bottom-color: transparent;
  color: var(--bone);
}
.page-home .header:not(.is-stuck) .logo__word {
  color: var(--bone);
}

.header.is-stuck {
  box-shadow: 0 1px 0 var(--border), 0 6px 24px rgb(26 23 20 / 0.06);
}

/* Hide-on-scroll-down, show-on-scroll-up */
.header.is-hidden {
  transform: translateY(-100%);
}

/* ----------------------------------------------------------------- logo */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px; /* tap target — the crest alone is only 40px */
  grid-column: 2;
  justify-self: center;
}
.logo__crest {
  width: 40px;
  height: 40px;
  flex: none;
  transition: transform var(--dur-slow) var(--ease-out);
}
.logo:hover .logo__crest {
  transform: rotate(-8deg) scale(1.06);
}
.logo__word {
  display: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: 1.0625rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

@media (min-width: 900px) {
  .header__inner {
    grid-template-columns: auto 1fr auto;
  }
  .logo {
    grid-column: 1;
    justify-self: start;
  }
  .logo__crest {
    width: 46px;
    height: 46px;
  }
  .logo__word {
    display: block;
  }
}

/* ------------------------------------------------------------------ nav */

.nav {
  display: none;
}

@media (min-width: 900px) {
  .nav {
    display: block;
    grid-column: 2;
    justify-self: center;
  }
  .nav__list {
    display: flex;
    align-items: center;
    gap: var(--s-6);
  }
  .nav__item--has-menu {
    position: static;
  }
  .nav__link {
    position: relative;
    display: inline-block;
    padding: 0.5rem 0;
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }
  /* 3-bar hover indicator */
  .nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(
      to right,
      var(--crimson) 0 33.333%,
      var(--orange) 33.333% 66.666%,
      var(--gold) 66.666% 100%
    );
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--dur) var(--ease);
  }
  .nav__link:hover::after,
  .nav__link:focus-visible::after,
  .nav__link.is-active::after {
    transform: scaleX(1);
  }
}

/* ------------------------------------------------------------ mega menu */

.megamenu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--bone);
  border-bottom: var(--hair);
  box-shadow: 0 20px 40px rgb(26 23 20 / 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
    visibility 0s linear var(--dur);
  color: var(--ink);
}
.nav__item--has-menu:hover .megamenu,
.nav__item--has-menu:focus-within .megamenu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.megamenu__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--s-8);
  align-items: start;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--s-5) var(--gutter) var(--s-6);
}

/* Single column: a nav list reads top-to-bottom, and two columns left an
   awkward empty cell at this item count. */
.megamenu__links {
  display: grid;
  grid-template-columns: minmax(0, 26rem);
  align-content: start;
}
.megamenu__links a {
  display: block;
  padding: 0.7rem 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: 1.375rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  border-bottom: var(--hair);
  transition: color var(--dur-fast) var(--ease), padding-left var(--dur) var(--ease);
}
.megamenu__links a:hover {
  color: var(--crimson);
  padding-left: 0.5rem;
}

.megamenu__feature a {
  display: block;
  position: relative;
  overflow: hidden;
}
.megamenu__feature img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.megamenu__feature a:hover img {
  transform: scale(1.04);
}
.megamenu__feature span {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.6rem 0.9rem;
  background: var(--gold);
  color: var(--ink);
}
.megamenu__feature svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* -------------------------------------------------------------- actions */

.header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--s-1);
  grid-column: 3;
}

.iconbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-0);
  transition: background-color var(--dur-fast) var(--ease);
}
.iconbtn:hover {
  background: color-mix(in srgb, currentColor 10%, transparent);
}

.header__menu {
  grid-column: 1;
  justify-self: start;
}
@media (min-width: 900px) {
  .header__menu {
    display: none;
  }
}

.cartcount {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  background: var(--crimson);
  color: var(--white);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  transform: scale(0);
  transition: transform var(--dur) var(--ease-out);
}
.cartcount.is-on {
  transform: scale(1);
}
.cartcount.is-bump {
  animation: bump var(--dur-slow) var(--ease-out);
}
@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

/* -------------------------------------------------------- scrim (shared) */

.scrim {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  background: rgb(26 23 20 / 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility 0s linear var(--dur);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.scrim.is-open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

body.is-locked {
  overflow: hidden;
}

/* --------------------------------------------------------- mobile menu */

.mobmenu {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: calc(var(--z-drawer) + 1);
  width: min(90vw, 400px);
  display: flex;
  flex-direction: column;
  background: var(--bone);
  transform: translateX(-100%);
  transition: transform var(--dur-slow) var(--ease-out);
  visibility: hidden;
}
.mobmenu.is-open {
  transform: none;
  visibility: visible;
}
.mobmenu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4) var(--s-5);
  border-bottom: var(--hair);
}
.mobmenu__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--s-5);
}
.mobmenu__body li {
  border-bottom: var(--hair);
}
.mobmenu__body li:first-child {
  border-top: var(--hair);
}
.mobmenu__body a {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  transition: padding-left var(--dur) var(--ease), color var(--dur-fast) var(--ease);
}
.mobmenu__body a:active,
.mobmenu__body a:hover {
  padding-left: 0.5rem;
  color: var(--crimson);
}
.mobmenu__foot {
  padding: var(--s-5);
  border-top: var(--hair);
  background: var(--bone-2);
}
.mobmenu__social {
  display: flex;
  gap: var(--s-4);
  margin-top: var(--s-3);
}

/* ------------------------------------------------------- search overlay */

.search {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  background: var(--bone);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
    visibility 0s linear var(--dur);
}
.search.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.search__bar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--gutter);
  border-bottom: 2px solid var(--ink);
}
.search__input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.search__input:focus {
  outline: none;
}
.search__input::placeholder {
  color: var(--ink-3);
}

.search__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--s-6) var(--gutter) var(--s-8);
}
.search__meta {
  color: var(--text-muted);
  margin-bottom: var(--s-5);
}
.search__suggest {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-3);
}
.search__empty {
  padding: var(--s-7) 0;
  text-align: center;
}
.search__empty p {
  color: var(--text-muted);
  margin-top: var(--s-3);
}

.search__results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--s-5) var(--s-4);
}
@media (min-width: 700px) {
  .search__results {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  }
}

.sresult {
  display: block;
}
.sresult img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--bone-2);
  transition: transform var(--dur) var(--ease);
}
.sresult:hover img {
  transform: scale(1.03);
}
.sresult h4 {
  margin-top: var(--s-3);
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: 0.9375rem;
  text-transform: uppercase;
  line-height: 1.1;
}
.sresult p {
  margin-top: 0.2rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.sresult mark {
  background: var(--gold);
  color: var(--ink);
  padding: 0 2px;
}

/* ----------------------------------------------------------- cart drawer */

.cart {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: calc(var(--z-drawer) + 1);
  width: min(94vw, 440px);
  display: flex;
  flex-direction: column;
  background: var(--bone);
  box-shadow: var(--shadow-drawer);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  visibility: hidden;
}
.cart.is-open {
  transform: none;
  visibility: visible;
}

.cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-bottom: var(--hair);
}
.cart__title {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
}

.cart__ship {
  padding: var(--s-4) var(--s-5);
  background: var(--bone-2);
  border-bottom: var(--hair);
}
.cart__ship p {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--s-2);
}
.cart__ship b {
  color: var(--crimson);
}
/* 3-bar progress: fills crimson -> orange -> gold */
.cart__bar {
  position: relative;
  height: 8px;
  background: var(--bone-3);
  overflow: hidden;
}
.cart__bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(
    to right,
    var(--crimson) 0,
    var(--orange) 55%,
    var(--gold) 100%
  );
  transition: width var(--dur-slow) var(--ease-out);
}

.cart__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--s-5);
}

.cart__empty {
  display: grid;
  place-items: center;
  gap: var(--s-4);
  padding: var(--s-8) var(--s-4);
  text-align: center;
}
.cart__empty p {
  color: var(--text-muted);
}

.citem {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: var(--s-4);
  padding-bottom: var(--s-4);
  margin-bottom: var(--s-4);
  border-bottom: var(--hair);
  animation: citemIn var(--dur-slow) var(--ease-out);
}
.citem:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}
@keyframes citemIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.citem.is-removing {
  animation: citemOut var(--dur) var(--ease-in) forwards;
}
@keyframes citemOut {
  to {
    opacity: 0;
    transform: translateX(24px);
    max-height: 0;
    padding-bottom: 0;
    margin-bottom: 0;
  }
}
.citem img {
  width: 76px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--bone-2);
}
.citem__top {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
}
.citem__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: 0.9375rem;
  text-transform: uppercase;
  line-height: 1.1;
}
.citem__variant {
  margin-top: 0.2rem;
  color: var(--text-muted);
}
.citem__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-3);
}
.qty {
  display: inline-flex;
  align-items: center;
  border: var(--hair-ink);
}
.qty button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1;
  transition: background-color var(--dur-fast) var(--ease);
}
.qty button:hover {
  background: var(--gold);
}
.qty output {
  min-width: 34px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}
.citem__remove {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  padding-inline: 2px;
}
.citem__remove:hover {
  color: var(--crimson);
}

.cart__foot {
  padding: var(--s-5);
  border-top: 2px solid var(--ink);
  background: var(--bone-2);
}
.cart__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--s-2);
}
.cart__total {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: 1.5rem;
  text-transform: uppercase;
}
.cart__note {
  margin: var(--s-3) 0 var(--s-4);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

/* ---------------------------------------------------------------- toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: var(--s-5);
  z-index: var(--z-toast);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0.85rem 1.1rem;
  background: var(--ink);
  color: var(--bone);
  border-left: 5px solid var(--gold);
  transform: translate(-50%, 140%);
  transition: transform var(--dur-slow) var(--ease-out);
  max-width: min(92vw, 420px);
}
.toast.is-on {
  transform: translate(-50%, 0);
}
.toast svg {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: var(--gold);
}

/* --------------------------------------------------------------- footer */

.footer {
  background: var(--ink);
  color: var(--bone);
  padding-top: var(--s-8);
}
.footer__grid {
  display: grid;
  gap: var(--s-7);
  padding-bottom: var(--s-8);
}
@media (min-width: 720px) {
  .footer__grid {
    grid-template-columns: 1.4fr repeat(2, minmax(0, 1fr));
    gap: var(--s-6);
  }
}
@media (min-width: 1000px) {
  .footer__grid {
    grid-template-columns: 1.6fr repeat(2, minmax(0, 0.8fr)) 1.4fr;
  }
}

.footer__brand .logo__word {
  display: block;
  color: var(--bone);
  font-size: 1.25rem;
}
.footer__blurb {
  margin-top: var(--s-4);
  max-width: 34ch;
  color: color-mix(in srgb, var(--bone) 74%, transparent);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.footer__h {
  color: var(--gold);
  margin-bottom: var(--s-4);
}
.footer__col a {
  display: inline-block;
  padding: 0.35rem 0;
  color: color-mix(in srgb, var(--bone) 82%, transparent);
  font-size: var(--fs-sm);
  transition: color var(--dur-fast) var(--ease);
}
.footer__col a:hover {
  color: var(--gold);
}

.footer__signup p {
  margin-bottom: var(--s-4);
  color: color-mix(in srgb, var(--bone) 74%, transparent);
  font-size: var(--fs-sm);
  line-height: 1.7;
}
.signup {
  display: flex;
  gap: 0;
}
.signup input {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  padding: 0.75rem 1rem;
  background: transparent;
  border: 2px solid color-mix(in srgb, var(--bone) 40%, transparent);
  border-right: 0;
  color: var(--bone);
  font-size: var(--fs-base);
}
.signup input::placeholder {
  color: color-mix(in srgb, var(--bone) 50%, transparent);
}
.signup input:focus {
  outline: none;
  border-color: var(--gold);
}
.signup button {
  min-height: 50px;
  padding-inline: 1.25rem;
  background: var(--gold);
  color: var(--ink);
  border: 2px solid var(--gold);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background-color var(--dur-fast) var(--ease);
}
.signup button:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.footer__social {
  display: flex;
  gap: var(--s-4);
  margin-top: var(--s-5);
}
.footer__social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--bone) 30%, transparent);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.footer__social a:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-block: var(--s-5);
  border-top: 1px solid color-mix(in srgb, var(--bone) 18%, transparent);
  color: color-mix(in srgb, var(--bone) 60%, transparent);
}

/* Oversized wordmark that bleeds off the bottom of the footer */
.footer__mark {
  overflow: hidden;
  line-height: 0;
  padding-top: var(--s-4);
}
.footer__mark svg {
  width: 100%;
  height: auto;
  display: block;
}
.footer__mark text {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
  fill: color-mix(in srgb, var(--bone) 12%, transparent);
}


/* ===== 04-product.css ===== */
/* =========================================================================
   Product — cards, grid, PDP, gallery, options, size guide
   ========================================================================= */

/* ----------------------------------------------------------------- grid */

.pgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-6) var(--s-4);
}
@media (min-width: 760px) {
  .pgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-7) var(--s-5);
  }
}
@media (min-width: 1180px) {
  .pgrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.pgrid[data-empty='true'] {
  display: block;
}

/* ----------------------------------------------------------------- card */

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
}
.pcard[hidden] {
  display: none;
}

/* Stretched link — the title anchor is the card's click target. Quick-add sits
   above it on the z-axis, so both stay reachable without nesting <a> elements. */
.pcard__link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.pcard__media {
  position: relative;
  overflow: hidden;
  background: var(--bone-2);
  aspect-ratio: 4 / 5;
}

.pcard__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur) var(--ease);
}
.pcard__img--b {
  opacity: 0;
}

@media (hover: hover) {
  .pcard:hover .pcard__img--a {
    opacity: 0;
  }
  .pcard:hover .pcard__img--b {
    opacity: 1;
    transform: scale(1.04);
  }
}

/* 3-bar wipe across the bottom of the image on hover */
.pcard__bars {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  height: 5px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}
.pcard__bars i {
  flex: 1;
}
.pcard__bars i:nth-child(1) {
  background: var(--crimson);
}
.pcard__bars i:nth-child(2) {
  background: var(--orange);
}
.pcard__bars i:nth-child(3) {
  background: var(--gold);
}
.pcard:hover .pcard__bars,
.pcard:focus-within .pcard__bars {
  transform: scaleX(1);
}

.pcard__body {
  padding-top: var(--s-3);
}

.pcard__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* Fixed two-line box so prices line up across a grid row regardless of how
   long each excerpt runs. */
.pcard__excerpt {
  margin-top: 0.3rem;
  font-size: var(--fs-sm);
  line-height: 1.5;
  min-height: calc(2 * 1.5 * var(--fs-sm));
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pcard__price {
  margin-top: var(--s-2);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.pcard__price s {
  color: var(--text-muted);
  margin-left: 0.35rem;
  font-weight: 400;
}

/* ------------------------------------------------------------ quick add */

/* Quick-add lives inside the media box. On touch it's always visible below the
   image; on hover-capable pointers it slides up over the bottom of the image. */
.pcard__quick {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: var(--s-3);
  background: color-mix(in srgb, var(--bone) 94%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--border);
  transform: translateY(101%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease);
}

.pcard:hover .pcard__quick,
.pcard:focus-within .pcard__quick,
.pcard.is-quickopen .pcard__quick {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Touch devices get no hover — surface quick-add via a tap toggle instead. */
@media (hover: none) {
  .pcard__quick {
    transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease);
  }
}

.pcard__quick-toggle {
  position: absolute;
  right: var(--s-2);
  bottom: var(--s-2);
  z-index: 4;
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  background: var(--gold);
  color: var(--ink);
  border: 2px solid var(--ink);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.pcard__quick-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
}
@media (hover: none) {
  .pcard__quick-toggle {
    display: grid;
  }
  .pcard.is-quickopen .pcard__quick-toggle {
    opacity: 0;
    pointer-events: none;
  }
}

.pcard__quick-label {
  display: block;
  color: var(--text-muted);
  margin-bottom: var(--s-2);
}

.pcard__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.qa-size {
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.5rem;
  border: var(--hair-ink);
  background: var(--bone);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.qa-size:hover {
  background: var(--gold);
}
.qa-size:active {
  background: var(--orange);
}
.qa-size.is-out {
  color: var(--text-faint);
  border-color: var(--border);
  cursor: not-allowed;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0 5px,
    var(--bone-3) 5px 6px
  );
}

/* ------------------------------------------------------------ PDP layout */

.pdp {
  display: grid;
  gap: var(--s-6);
  padding-top: var(--s-5);
}
@media (min-width: 900px) {
  .pdp {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: var(--s-8);
    align-items: start;
    padding-top: var(--s-6);
  }
}

/* -------------------------------------------------------------- gallery */

.gal {
  display: grid;
  gap: var(--s-3);
}
@media (min-width: 900px) {
  .gal {
    position: sticky;
    top: calc(var(--header-h) + var(--s-4));
    grid-template-columns: 84px minmax(0, 1fr);
    gap: var(--s-4);
    align-items: start;
  }
}

.gal__stage {
  position: relative;
  overflow: hidden;
  background: var(--bone-2);
  aspect-ratio: 4 / 5;
  order: -1;
}
@media (min-width: 900px) {
  .gal__stage {
    order: 0;
  }
}
.gal__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.gal__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.gal__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gal__thumbs {
  display: flex;
  gap: var(--s-2);
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
}
@media (min-width: 900px) {
  .gal__thumbs {
    flex-direction: column;
    overflow: visible;
    gap: var(--s-3);
  }
}
.gal__thumb {
  flex: none;
  width: 68px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bone-2);
  border: 2px solid transparent;
  transition: border-color var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
  opacity: 0.6;
}
@media (min-width: 900px) {
  .gal__thumb {
    width: 84px;
  }
}
.gal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gal__thumb:hover {
  opacity: 1;
}
.gal__thumb.is-active {
  border-color: var(--ink);
  opacity: 1;
}

.gal__zoom {
  position: absolute;
  right: var(--s-3);
  bottom: var(--s-3);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.45rem 0.7rem;
  background: var(--bone);
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ----------------------------------------------------------- PDP detail */

.pdp__head {
  padding-bottom: var(--s-5);
  border-bottom: var(--hair);
}
.pdp__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  color: var(--text-muted);
  margin-bottom: var(--s-3);
}
.pdp__meta .badge {
  position: static;
}
.pdp__title {
  font-size: var(--fs-2xl);
}
.pdp__excerpt {
  margin-top: var(--s-3);
  color: var(--text-muted);
  font-size: var(--fs-md);
}
.pdp__price {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  margin-top: var(--s-4);
}
.pdp__price b {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
}

.pdp__form {
  padding-block: var(--s-5);
}

.opt + .opt {
  margin-top: var(--s-5);
}
.opt__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}
.opt__name {
  color: var(--text-muted);
}
.opt__name b {
  color: var(--ink);
  font-weight: 700;
}
.opt__guide {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
}
.opt__guide:hover {
  color: var(--crimson);
}

.opt__vals {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.swatch {
  min-height: 48px;
  min-width: 48px;
  padding: 0 0.9rem;
  border: 2px solid var(--border);
  background: var(--bone);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}
.swatch:hover {
  border-color: var(--ink);
}
.swatch.is-selected {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}
.swatch.is-out {
  color: var(--text-faint);
  cursor: not-allowed;
  background: repeating-linear-gradient(-45deg, transparent 0 5px, var(--bone-3) 5px 6px);
}
.swatch.is-out.is-selected {
  background: var(--bone-3);
  color: var(--ink-2);
}

.pdp__cta {
  margin-top: var(--s-6);
}
.pdp__cta .btn + .btn {
  margin-top: var(--s-3);
}

.pdp__assure {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: var(--hair);
}
.pdp__assure li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.pdp__assure svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  stroke: var(--crimson);
  fill: none;
  stroke-width: 1.75;
}

/* --------------------------------------------------------- accordions */

.acc {
  border-top: var(--hair);
}
.acc:last-of-type {
  border-bottom: var(--hair);
}
.acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  width: 100%;
  min-height: 60px;
  padding: var(--s-4) 0;
  text-align: left;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.acc__btn:hover {
  color: var(--crimson);
}
.acc__icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
}
.acc__icon::before,
.acc__icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.acc__icon::before {
  left: 0;
  top: 6px;
  width: 14px;
  height: 2px;
}
.acc__icon::after {
  left: 6px;
  top: 0;
  width: 2px;
  height: 14px;
}
.acc__btn[aria-expanded='true'] .acc__icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease);
}
.acc__panel > div {
  overflow: hidden;
}
.acc.is-open .acc__panel {
  grid-template-rows: 1fr;
}
.acc__inner {
  padding-bottom: var(--s-5);
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-muted);
}
.acc__inner p + p {
  margin-top: var(--s-3);
}

.spectable th {
  width: 40%;
  text-align: left;
  padding: 0.6rem 0;
  color: var(--text-muted);
  font-weight: 500;
  vertical-align: top;
  border-bottom: var(--hair);
}
.spectable td {
  padding: 0.6rem 0;
  border-bottom: var(--hair);
  color: var(--ink);
}
.spectable tr:last-child th,
.spectable tr:last-child td {
  border-bottom: 0;
}

/* -------------------------------------------------------- size guide modal */

.sizeguide {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: var(--s-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.sizeguide.is-open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.sizeguide__panel {
  position: relative;
  width: min(100%, 640px);
  max-height: 86dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bone);
  border: 2px solid var(--ink);
  padding: var(--s-6);
  transform: scale(0.96) translateY(10px);
  transition: transform var(--dur-slow) var(--ease-out);
}
.sizeguide.is-open .sizeguide__panel {
  transform: none;
}
.sizeguide__close {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
.sizetable {
  margin-top: var(--s-5);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}
.sizetable th,
.sizetable td {
  padding: 0.55rem 0.4rem;
  text-align: left;
  border-bottom: var(--hair);
  font-variant-numeric: tabular-nums;
}
.sizetable thead th {
  background: var(--ink);
  color: var(--bone);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sizetable tbody th {
  font-weight: 700;
}


/* ===== 05-pages.css ===== */
/* =========================================================================
   Pages — home, collection, journal, about, policy
   ========================================================================= */

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 88svh;
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
  background: var(--ink);
  color: var(--bone);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: -8% 0 -8% 0;
  z-index: -2;
  will-change: transform;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

/* Scrim keeps the headline legible over any photograph that lands here. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      to top,
      rgb(26 23 20 / 0.92) 0%,
      rgb(26 23 20 / 0.55) 42%,
      rgb(26 23 20 / 0.25) 70%,
      rgb(26 23 20 / 0.6) 100%
    );
}

.hero__inner {
  position: relative;
  width: 100%;
  padding-block: var(--s-8) var(--s-7);
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
  color: var(--gold);
}
.hero__kicker::before {
  content: '';
  width: 34px;
  height: 3px;
  background: var(--gold);
}

.hero__title {
  max-width: 16ch;
}

.hero__sub {
  margin-top: var(--s-5);
  max-width: 46ch;
  font-size: var(--fs-md);
  line-height: 1.6;
  color: color-mix(in srgb, var(--bone) 84%, transparent);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-6);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid color-mix(in srgb, var(--bone) 24%, transparent);
}
.hero__fact dd {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
}
.hero__fact b {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: 1.5rem;
  line-height: 1;
}
.hero__fact span {
  color: color-mix(in srgb, var(--bone) 66%, transparent);
}

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: var(--s-6);
  display: none;
  align-items: center;
  gap: var(--s-2);
  color: color-mix(in srgb, var(--bone) 70%, transparent);
  writing-mode: vertical-rl;
}
@media (min-width: 1000px) {
  .hero__scroll {
    display: flex;
  }
}
.hero__scroll i {
  display: block;
  width: 1px;
  height: 54px;
  background: color-mix(in srgb, var(--bone) 40%, transparent);
  overflow: hidden;
  position: relative;
}
.hero__scroll i::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 40%;
  background: var(--gold);
  animation: scrollCue 1.8s var(--ease) infinite;
}
@keyframes scrollCue {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

/* -------------------------------------------------------------- marquee */

.marquee {
  background: var(--gold);
  color: var(--ink);
  border-block: 2px solid var(--ink);
  overflow: hidden;
  padding-block: 0.7rem;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
.marquee__group {
  display: flex;
  align-items: center;
  flex: none;
}
.marquee__group span {
  display: inline-flex;
  align-items: center;
  gap: var(--s-4);
  padding-inline: var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.marquee__group span::after {
  content: '';
  width: 22px;
  height: 8px;
  background: linear-gradient(
    to right,
    var(--crimson) 0 33.333%,
    var(--ink) 33.333% 66.666%,
    var(--white) 66.666% 100%
  );
  flex: none;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .marquee__group:nth-child(n + 2) {
    display: none;
  }
}

/* ------------------------------------------------------------ categories */

.cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}
@media (min-width: 900px) {
  .cats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--s-4);
  }
}

.cat {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 3 / 4;
  isolation: isolate;
}
.cat img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur) var(--ease);
}
.cat:hover img {
  transform: scale(1.06);
  opacity: 0.5;
}
.cat::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(26 23 20 / 0.85), transparent 55%);
}
.cat__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: var(--s-4);
  color: var(--bone);
}
.cat__label h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(1.125rem, 2.4vw, 1.625rem);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.01em;
}
.cat__label p {
  margin-top: 0.35rem;
  color: color-mix(in srgb, var(--bone) 72%, transparent);
}
.cat__bars {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 5px;
  display: flex;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.cat:hover .cat__bars,
.cat:focus-visible .cat__bars {
  transform: scaleX(1);
}
.cat__bars i { flex: 1; }
.cat__bars i:nth-child(1) { background: var(--crimson); }
.cat__bars i:nth-child(2) { background: var(--orange); }
.cat__bars i:nth-child(3) { background: var(--gold); }

/* ----------------------------------------------------------- drop panel */

.drop {
  position: relative;
  background: var(--ink);
  color: var(--bone);
  overflow: hidden;
}
.drop__grid {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}
@media (min-width: 900px) {
  .drop__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: var(--s-8);
  }
}
.drop__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.drop__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.drop__flag {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.5rem 0.9rem;
  background: var(--crimson);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.countdown {
  display: flex;
  gap: var(--s-3);
  margin-block: var(--s-5);
}
.countdown__cell {
  flex: 1;
  max-width: 96px;
  padding: var(--s-3) var(--s-2);
  border: 1px solid color-mix(in srgb, var(--bone) 26%, transparent);
  text-align: center;
}
.countdown__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}
.countdown__lbl {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: color-mix(in srgb, var(--bone) 62%, transparent);
}
.countdown.is-over .countdown__num {
  color: var(--crimson);
}

/* ------------------------------------------------------ sticky story */

.story {
  position: relative;
}
@media (min-width: 1000px) {
  .story__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: var(--s-8);
    align-items: start;
  }
  .story__sticky {
    position: sticky;
    top: calc(var(--header-h) + var(--s-7));
  }
}

.story__panels {
  display: grid;
  gap: var(--s-6);
}
@media (min-width: 1000px) {
  .story__panels {
    gap: var(--s-9);
  }
}

.spanel {
  display: grid;
  gap: var(--s-4);
}
.spanel__media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bone-2);
}
.spanel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.spanel__num {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--crimson);
}
.spanel__num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.spanel h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: var(--fs-xl);
  text-transform: uppercase;
  line-height: 1.05;
}
.spanel p {
  color: var(--text-muted);
  max-width: 52ch;
}

/* ---------------------------------------------------------------- split */

.split {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-8);
  }
  .split--reverse > :first-child {
    order: 2;
  }
}
.split__media {
  overflow: hidden;
  background: var(--bone-2);
}
.split__media img {
  width: 100%;
  height: auto;
}

/* -------------------------------------------------------- collection UI */

.chero {
  position: relative;
  background: var(--ink);
  color: var(--bone);
  overflow: hidden;
  isolation: isolate;
}
.chero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  z-index: -1;
}
.chero__inner {
  padding-block: clamp(3rem, 8vw, 6rem);
}
.chero__sub {
  margin-top: var(--s-3);
  max-width: 52ch;
  color: color-mix(in srgb, var(--bone) 80%, transparent);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
  color: color-mix(in srgb, currentColor 65%, transparent);
}
.crumbs a:hover {
  color: var(--gold);
}
.crumbs li:not(:last-child)::after {
  content: '/';
  margin-left: var(--s-2);
  opacity: 0.5;
}
.crumbs li {
  display: inline-flex;
  align-items: center;
}

.toolbar {
  position: sticky;
  /* Follows the auto-hiding header: when the header slides away the toolbar
     rises to the top edge, so page content can't show through the gap. */
  top: var(--header-h);
  transition: top var(--dur) var(--ease);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-block: var(--s-3);
  margin-bottom: var(--s-5);
  background: var(--bg);
  border-bottom: var(--hair);
}
.toolbar__filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  flex: 1;
  min-width: 0;
}
.toolbar__right {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.toolbar__count {
  color: var(--text-muted);
  white-space: nowrap;
}
html.header-hidden .toolbar {
  top: 0;
}

.sortsel {
  min-height: 44px;
  padding: 0 2rem 0 0.75rem;
  border: var(--hair-ink);
  background: var(--bone)
    no-repeat right 0.6rem center / 12px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%231a1714' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  appearance: none;
  cursor: pointer;
}

.noresults {
  padding: var(--s-8) 0;
  text-align: center;
}
.noresults p {
  margin-block: var(--s-3) var(--s-5);
  color: var(--text-muted);
}

/* -------------------------------------------------------------- journal */

.jgrid {
  display: grid;
  gap: var(--s-7) var(--s-5);
}
@media (min-width: 720px) {
  .jgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .jgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.acard__media {
  overflow: hidden;
  background: var(--bone-2);
  aspect-ratio: 3 / 2;
}
.acard__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.acard:hover .acard__img {
  transform: scale(1.04);
}
.acard__body {
  padding-top: var(--s-4);
}
.acard__meta {
  color: var(--text-muted);
  margin-bottom: var(--s-3);
}
.acard__meta span {
  opacity: 0.5;
  margin-inline: 0.15rem;
}
.acard__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: var(--fs-lg);
  text-transform: uppercase;
  line-height: 1.08;
  letter-spacing: -0.01em;
  transition: color var(--dur-fast) var(--ease);
}
.acard:hover .acard__title {
  color: var(--crimson);
}
.acard__excerpt {
  margin-block: var(--s-3) var(--s-4);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

/* feature card = first item, spans full width on wide screens */
.jfeature .acard {
  display: grid;
  gap: var(--s-5);
}
@media (min-width: 900px) {
  .jfeature .acard > a {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: var(--s-7);
    align-items: center;
  }
  .jfeature .acard__media {
    aspect-ratio: 16 / 10;
  }
  .jfeature .acard__body {
    padding-top: 0;
  }
  .jfeature .acard__title {
    font-size: var(--fs-2xl);
  }
  .jfeature .acard__excerpt {
    font-size: var(--fs-md);
  }
}

/* -------------------------------------------------------------- article */

.article__head {
  padding-block: var(--s-7) var(--s-6);
  text-align: center;
}
.article__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
  color: var(--text-muted);
  margin-bottom: var(--s-4);
}
.article__title {
  max-width: 20ch;
  margin-inline: auto;
}
.article__lede {
  max-width: 54ch;
  margin: var(--s-4) auto 0;
  color: var(--text-muted);
  font-size: var(--fs-md);
}
.article__cover {
  margin-bottom: var(--s-7);
  overflow: hidden;
  background: var(--bone-2);
}
.article__cover img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}
.article__body {
  max-width: var(--maxw-text);
  margin-inline: auto;
}
.article__body > p {
  font-size: var(--fs-md);
  line-height: 1.75;
}
.article__body > p + p {
  margin-top: var(--s-4);
}
.article__body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: 4.25rem;
  line-height: 0.78;
  padding: 0.06em 0.14em 0 0;
  color: var(--crimson);
}
.article__figure {
  margin-block: var(--s-6);
}
.article__figure img {
  width: 100%;
}
.article__figure figcaption {
  margin-top: var(--s-3);
  color: var(--text-muted);
}

.nextup {
  display: block;
  padding: var(--s-6);
  background: var(--bone-2);
  border-left: 6px solid var(--crimson);
  transition: background-color var(--dur) var(--ease);
}
.nextup:hover {
  background: var(--bone-3);
}
.nextup h2 {
  margin-block: var(--s-2) var(--s-3);
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: var(--fs-xl);
  text-transform: uppercase;
  line-height: 1.05;
}
.nextup p {
  color: var(--text-muted);
  max-width: 56ch;
}

/* ---------------------------------------------------------------- about */

.about__hero {
  position: relative;
  background: var(--ink);
  color: var(--bone);
  overflow: hidden;
  isolation: isolate;
}
.about__hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  z-index: -1;
}
.about__hero .wrap {
  padding-block: clamp(4rem, 12vw, 9rem);
}

.valuegrid {
  display: grid;
  gap: var(--s-5);
  counter-reset: v;
}
@media (min-width: 760px) {
  .valuegrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-6);
  }
}
.value {
  padding-top: var(--s-4);
  border-top: 3px solid var(--ink);
  counter-increment: v;
}
.value::before {
  content: counter(v, decimal-leading-zero);
  display: block;
  margin-bottom: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--crimson);
}
.value h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: var(--fs-lg);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: var(--s-3);
}
.value p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.imgpair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}
@media (min-width: 900px) {
  .imgpair {
    gap: var(--s-4);
  }
}
.imgpair img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--bone-2);
}

/* ------------------------------------------------------- policy / faq */

.pagehead {
  padding-block: var(--s-7) var(--s-6);
  border-bottom: var(--hair);
  margin-bottom: var(--s-7);
}
.pagehead__title {
  margin-top: var(--s-3);
}

.policy {
  display: grid;
  gap: var(--s-7);
}
@media (min-width: 900px) {
  .policy {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: var(--s-8);
    align-items: start;
  }
  .policy__nav {
    position: sticky;
    top: calc(var(--header-h) + var(--s-5));
  }
}
.policy__nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0;
  border-bottom: var(--hair);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease), padding-left var(--dur) var(--ease);
}
.policy__nav a:hover {
  color: var(--ink);
  padding-left: 0.35rem;
}
.policy__body h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: var(--fs-xl);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: var(--s-4);
  scroll-margin-top: calc(var(--header-h) + var(--s-5));
}
.policy__body section + section {
  margin-top: var(--s-7);
}
.policy__body p + p,
.policy__body ul {
  margin-top: var(--s-4);
}
.policy__body p,
.policy__body li {
  color: var(--text-muted);
  line-height: 1.75;
}
.policy__body li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: var(--s-2);
}
.policy__body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 12px;
  height: 3px;
  background: var(--orange);
}

/* ------------------------------------------------------------- contact */

.contact {
  display: grid;
  gap: var(--s-7);
}
@media (min-width: 900px) {
  .contact {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: var(--s-8);
    align-items: start;
  }
}
.contact__aside {
  padding: var(--s-5);
  background: var(--bone-2);
  border-top: 4px solid var(--ink);
}
.contact__aside h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: var(--fs-lg);
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}
.contact__aside p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
}
.contact__aside dl {
  margin-top: var(--s-4);
}
.contact__aside dt {
  margin-top: var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--crimson);
}
.contact__aside dd {
  margin: 0.3rem 0 0;
  font-size: var(--fs-sm);
}

.formstatus {
  margin-top: var(--s-4);
  padding: var(--s-4);
  border-left: 5px solid var(--gold);
  background: var(--bone-2);
  font-size: var(--fs-sm);
}
.formstatus[hidden] {
  display: none;
}

/* ------------------------------------------------------------------ 404 */

.nf {
  display: grid;
  place-items: center;
  min-height: 64svh;
  text-align: center;
  padding-block: var(--s-8);
}
.nf__code {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(5rem, 22vw, 14rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
  background: linear-gradient(
    to right,
    var(--crimson) 0 33.333%,
    var(--orange) 33.333% 66.666%,
    var(--gold) 66.666% 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


/* ===== 06-motion.css ===== */
/* =========================================================================
   Motion — scroll reveals, view transitions, custom cursor, progress
   Every effect here degrades to a fully working static page.
   ========================================================================= */

/* -------------------------------------------------------- scroll reveal */

/* Only arms once JS confirms IntersectionObserver support, so a JS failure
   can never leave content invisible. */
html.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 45ms);
  will-change: opacity, transform;
}
html.reveal-ready .reveal.is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Headline underline draws in */
html.reveal-ready .barline {
  transform: scaleX(0);
  transition: transform var(--dur-slow) var(--ease-out) 120ms;
}
html.reveal-ready .barline.is-in,
html.reveal-ready .is-in .barline {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  html.reveal-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html.reveal-ready .barline {
    transform: none;
    transition: none;
  }
}

/* ------------------------------------------------------ view transitions */

/* Native cross-document transitions. Unsupported browsers simply navigate
   normally — nothing to polyfill, nothing to break. */
@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) {
    animation: vtOut 180ms var(--ease-in) both;
  }
  ::view-transition-new(root) {
    animation: vtIn 320ms var(--ease-out) both;
  }
}

@keyframes vtOut {
  to {
    opacity: 0;
    transform: scale(0.992);
  }
}
@keyframes vtIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* Chrome persists across navigation instead of cross-fading with the page */
.header {
  view-transition-name: site-header;
}
.footer {
  view-transition-name: site-footer;
}

/* Shared-element continuity: the clicked product image morphs into the PDP hero */
.pcard.is-navigating .pcard__media {
  view-transition-name: product-media;
}
.page-product .gal__stage {
  view-transition-name: product-media;
}

/* -------------------------------------------------------- load progress */

/* 3-bar progress strip that runs across the top during navigation. */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: calc(var(--z-cursor) + 1);
  height: 3px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms var(--ease);
}
.progress.is-on {
  opacity: 1;
}
.progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(
    to right,
    var(--crimson) 0 33.333%,
    var(--orange) 33.333% 66.666%,
    var(--gold) 66.666% 100%
  );
  background-size: 100vw 100%;
  transition: width 260ms var(--ease-out);
}

/* --------------------------------------------------------- custom cursor */

/* Desktop only, and only after JS has successfully mounted it — otherwise the
   native cursor is never hidden. */
.cursor,
.cursor__ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-cursor);
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.cursor {
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background: var(--crimson);
}

.cursor__ring {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1.5px solid var(--ink);
  display: grid;
  place-items: center;
  transition: width var(--dur) var(--ease-out), height var(--dur) var(--ease-out),
    margin var(--dur) var(--ease-out), background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.cursor__label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 140ms var(--ease), transform 140ms var(--ease);
  white-space: nowrap;
}

html.cursor-on .cursor,
html.cursor-on .cursor__ring {
  opacity: 1;
}

html.cursor-on,
html.cursor-on a,
html.cursor-on button,
html.cursor-on [role='button'],
html.cursor-on input,
html.cursor-on select,
html.cursor-on textarea,
html.cursor-on label {
  cursor: none;
}

/* Hovering something interactive */
html.cursor-on .cursor__ring.is-hot {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  background: color-mix(in srgb, var(--gold) 26%, transparent);
  border-color: var(--ink);
}

/* Hovering a product image */
html.cursor-on .cursor__ring.is-view {
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  background: var(--gold);
  border-color: var(--ink);
}
html.cursor-on .cursor__ring.is-view .cursor__label {
  opacity: 1;
  transform: none;
}
html.cursor-on .cursor.is-hidden {
  opacity: 0;
}

/* Mouse down */
html.cursor-on .cursor__ring.is-down {
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
}

/* Off entirely for touch, coarse pointers and reduced motion */
@media (pointer: coarse), (hover: none), (prefers-reduced-motion: reduce) {
  .cursor,
  .cursor__ring {
    display: none !important;
  }
  html.cursor-on,
  html.cursor-on * {
    cursor: auto;
  }
  html.cursor-on a,
  html.cursor-on button {
    cursor: pointer;
  }
}

/* --------------------------------------------------------- hero parallax */

@media (prefers-reduced-motion: reduce) {
  .hero__media {
    transform: none !important;
  }
}

/* ----------------------------------------------------- misc micro-motion */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.fade-up {
  animation: fadeUp var(--dur-slow) var(--ease-out) both;
}
