/* ============================================================
   all-liv — design system
   Palette/type from Figma (All live / Fonts & colors), styled for a
   premium editorial feel: square corners, hairline rules, uppercase
   micro-labels, a light display face and generous whitespace.
   ============================================================ */
:root {
  /* ---- Figma tokens (All live / Fonts & colors) — exact, do not alter ---- */
  --primary: #00342E;        /* Primary    */
  --primary-l1: #04544B;     /* Primary L1 */
  --secondary: #7F0001;      /* Secondary    */
  --secondary-l1: #CB0202;   /* Secondary L1 */
  --tertiary: #C7C3B2;       /* Teritiary    */
  --tertiary-l1: #F2F1ED;    /* Teritiary L1 */
  --filter-active: #E7D7F5;  /* active filter chip, from the Figma PLP */

  /* ---- neutrals derived from the tokens above ---- */
  --ink: #1A1A18;
  --muted: #6D6D66;
  --card-bg: var(--tertiary-l1);
  --white: #FFFFFF;
  --line: #E4E2DA;                  /* tint of Teritiary */
  --line-strong: var(--tertiary);

  --radius: 2px;
  --radius-lg: 3px;
  --radius-card: 16px;   /* tiles, cards and panels */
  --radius-thumb: 8px;   /* small thumbnails and tags inside a card */
  --shadow: 0 1px 2px rgba(20, 21, 15, 0.04);
  --shadow-float: 0 18px 50px -12px rgba(20, 21, 15, 0.22);

  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --gutter: clamp(20px, 4vw, 56px);
  --section-gap: clamp(64px, 9vw, 120px);

  /* uppercase micro-label used for eyebrows, nav, buttons, column heads */
  --eyebrow-size: 11px;
  --eyebrow-track: .14em;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--primary); color: var(--white); }
:focus-visible { outline: 2px solid var(--primary-l1); outline-offset: 3px; }

.container { max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }

/* ------------------------------ header ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 24px;
}
/* Figma logotype, drawn as SVG in currentColor */
.logo { display: flex; align-items: center; color: var(--primary); }
/* 32px keeps the wordmark ~18px tall now the upright spiral sets the lockup height */
.logo-lockup { display: block; height: 32px; width: auto; }
.main-nav { display: flex; gap: 34px; }
.main-nav a {
  position: relative; color: var(--ink); padding: 6px 0;
  font-size: var(--eyebrow-size); font-weight: 500;
  text-transform: uppercase; letter-spacing: var(--eyebrow-track);
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a.nav-highlight { color: var(--secondary-l1); }
.header-icons { display: flex; align-items: center; gap: 20px; }
.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 28px; height: 28px; color: var(--ink);
  transition: opacity .3s var(--ease);
}
.icon-btn:hover { opacity: .55; }
.badge {
  position: absolute; top: -5px; right: -7px;
  background: var(--secondary-l1); color: var(--white);
  font-size: 9.5px; font-weight: 600; line-height: 1; letter-spacing: 0;
  min-width: 16px; height: 16px; border-radius: 999px;
  display: grid; place-items: center; padding: 0 4px;
}
.badge[hidden] { display: none; }
@media (max-width: 820px) { .main-nav { display: none; } }

/* announcement bar — Secondary L1, per Figma */
.announce { background: var(--secondary-l1); color: var(--white); }
.announce-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 11px;
  font-size: 10.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: var(--eyebrow-track);
}
.announce .pill {
  background: transparent; color: var(--white);
  font-size: 10.5px; font-weight: 600; letter-spacing: var(--eyebrow-track);
  text-transform: uppercase; white-space: nowrap;
  padding: 5px 0; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.5);
  transition: border-color .3s var(--ease);
}
.announce .pill:hover { border-bottom-color: var(--white); }

/* ------------------------------ buttons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: var(--eyebrow-size); font-weight: 600;
  text-transform: uppercase; letter-spacing: var(--eyebrow-track);
  padding: 17px 36px; border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color .4s var(--ease), color .4s var(--ease),
              border-color .4s var(--ease), opacity .3s var(--ease);
}
.btn-red { background: var(--secondary-l1); color: var(--white); border-color: var(--secondary-l1); }
.btn-red:hover { background: var(--secondary); border-color: var(--secondary); }
.btn-green { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-green:hover { background: var(--primary-l1); border-color: var(--primary-l1); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .35; cursor: not-allowed; }

/* ------------------------------ hero ------------------------------ */
/* full-bleed: .hero also carries .container, so drop its inset here */
.hero { padding-top: 0; max-width: none; padding-inline: 0; }
.hero-media {
  position: relative; overflow: hidden; border-radius: 0;
  min-height: min(88vh, 780px); display: flex; align-items: flex-end;
  background:
    radial-gradient(120% 90% at 78% 18%, #B24A3A 0%, rgba(178,74,58,0) 55%),
    radial-gradient(90% 90% at 24% 30%, #3E3A38 0%, rgba(62,58,56,0) 60%),
    linear-gradient(160deg, #55403A 0%, #2E2320 45%, #140F0D 100%);
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 38%, rgba(0,0,0,.62) 100%);
}
.hero-copy {
  position: relative; z-index: 1; color: var(--white);
  width: 100%; max-width: 1440px; margin: 0 auto;
  padding: 0 var(--gutter) clamp(48px, 7vw, 92px);
}
.hero-copy h1 {
  font-size: clamp(46px, 7.4vw, 98px); font-weight: 300;
  letter-spacing: -.035em; line-height: .95; max-width: 14ch;
}
.hero-copy p {
  margin: 20px 0 32px; font-size: 15px; max-width: 34ch;
  color: rgba(255,255,255,.82); line-height: 1.6;
}
.hero-copy .btn-red { background: var(--white); color: var(--ink); border-color: var(--white); }
.hero-copy .btn-red:hover { background: transparent; color: var(--white); border-color: var(--white); }
.hero-pause {
  position: absolute; right: var(--gutter); bottom: clamp(48px, 7vw, 92px); z-index: 1;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: var(--white);
  border: 1px solid rgba(255,255,255,.4);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center; font-size: 11px;
  transition: background-color .4s var(--ease);
}
.hero-pause:hover { background: rgba(255,255,255,.26); }
@media (max-width: 640px) {
  .hero-media { min-height: 74vh; }
  .hero-copy h1 { letter-spacing: -.03em; }
}

/* --------------------------- sections --------------------------- */
.section { padding-top: var(--section-gap); }
.section-title {
  font-size: clamp(24px, 2.8vw, 38px); font-weight: 300;
  letter-spacing: -.025em; line-height: 1.1;
  margin-bottom: clamp(24px, 3vw, 40px);
}

/* category cards */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.2vw, 18px); }
.cat-card {
  position: relative; background: var(--tertiary-l1); border-radius: var(--radius-card);
  min-height: clamp(300px, 34vw, 440px); padding: clamp(20px, 2.2vw, 32px); overflow: hidden;
  display: flex; align-items: flex-start;
}
.cat-card h3 {
  position: relative; z-index: 1;
  font-size: var(--eyebrow-size); font-weight: 600; letter-spacing: var(--eyebrow-track);
  text-transform: uppercase; max-width: 8ch; line-height: 1.5;
}
.cat-card .cat-art {
  position: absolute; left: 0; right: 0; bottom: 0; height: 76%;
  transition: transform .9s var(--ease);
}
.cat-card .cat-art > svg { width: 100%; height: 100%; }
.cat-card::after {
  content: ""; position: absolute; left: clamp(20px,2.2vw,32px); bottom: clamp(20px,2.2vw,32px);
  width: 26px; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
@media (hover: hover) {
  .cat-card:hover .cat-art { transform: scale(1.06); }
  .cat-card:hover::after { transform: scaleX(1); }
}
@media (max-width: 720px) { .cat-grid { grid-template-columns: 1fr; } .cat-card { min-height: 220px; } }

/* perks banner */
/* A grid rather than a centred flex row: the old 140px gap was tuned for
   exactly two items and wrapped badly once there were more.

   Fixed column counts, not auto-fit — auto-fit picked three at some widths
   and left the fourth stranded on a row of its own. Four folds to two, then
   to one, so every row stays full. */
.perks {
  background: var(--primary-l1); color: var(--white);
  border-radius: var(--radius-card); padding: clamp(32px, 4vw, 52px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(30px, 4vw, 48px);
  text-align: center;
}
@media (max-width: 900px) { .perks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .perks { grid-template-columns: 1fr; } }
.perk { display: flex; flex-direction: column; align-items: center; }
/* the note sits at the bottom of its cell, so the labels line up even when
   one of them runs to two lines and another does not */
.perk span { margin-top: auto; }
.perk b {
  display: block; margin-top: 14px;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: var(--eyebrow-track); line-height: 1.7;
}
.perk span { display: block; margin-top: 6px; font-size: 11px; color: rgba(255,255,255,.6); letter-spacing: .04em; }
.perk svg { margin: 0 auto; opacity: .9; }

/* horizontal product scroller (style it like em / pair this with) */
.scroller {
  display: flex; gap: clamp(10px, 1.2vw, 18px); overflow-x: auto;
  padding-bottom: 16px; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.scroller::-webkit-scrollbar { height: 2px; }
.scroller::-webkit-scrollbar-track { background: var(--line); }
.scroller::-webkit-scrollbar-thumb { background: var(--line-strong); }
.look-card {
  position: relative; flex: 0 0 clamp(240px, 26vw, 340px);
  aspect-ratio: 3 / 4; height: auto; border-radius: var(--radius-card);
  overflow: hidden; scroll-snap-align: start;
}
.look-card .look-art { width: 100%; height: 100%; transition: transform .9s var(--ease); }
.look-card .look-art > svg, .stl-tile .look-art > svg,
.look-card .look-art > img, .stl-tile .look-art > img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) { .look-card:hover .look-art { transform: scale(1.05); } }
.look-tag {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-thumb); box-shadow: none;
  padding: 14px 16px; font-size: 13px; line-height: 1.45;
}
.look-tag b {
  display: block; font-size: 9.5px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: var(--eyebrow-track); margin-bottom: 3px;
}
.look-tag .stars { color: var(--ink); font-size: 10px; letter-spacing: 2px; margin-top: 6px; }
.look-tag .price { margin-top: 4px; font-weight: 500; font-size: 13px; }
.look-dot {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--white); border: none;
  box-shadow: 0 0 0 4px rgba(255,255,255,.32);
}

/* giftables */
.gift-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.2vw, 18px); }
.gift-card {
  border-radius: var(--radius-card); padding: clamp(18px, 2vw, 26px); min-height: clamp(200px, 20vw, 280px);
  display: flex; flex-direction: column; justify-content: space-between;
  color: var(--white); position: relative; overflow: hidden;
}
.gift-card h4 {
  font-size: var(--eyebrow-size); font-weight: 600; position: relative; z-index: 1;
  text-transform: uppercase; letter-spacing: var(--eyebrow-track);
}
.gift-card .pill {
  position: relative; z-index: 1; align-self: flex-start;
  background: transparent; color: currentColor;
  font-size: 10px; font-weight: 600; letter-spacing: var(--eyebrow-track);
  text-transform: uppercase; padding: 4px 0; border-radius: 0;
  border-bottom: 1px solid currentColor;
  transition: opacity .3s var(--ease);
}
.gift-card .pill:hover { opacity: .65; }
.gift-card.dark-text { color: var(--ink); }
.gift-card > div:last-child { transition: transform .9s var(--ease); }
@media (hover: hover) { .gift-card:hover > div:last-child { transform: scale(1.06); } }
@media (max-width: 900px) { .gift-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .gift-grid { grid-template-columns: 1fr; } }

/* sustainability */
/* copy on the left, the headline numbers in a 2 x 2 hairline grid on the
   right, so the band reads as one composition at any width */
.sustain {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center; gap: clamp(32px, 6vw, 96px);
}
.sustain p { max-width: 46ch; font-size: 15px; color: var(--muted); margin: 0 0 28px; line-height: 1.7; }
.sustain .sprout { margin-bottom: 18px; opacity: .85; }
.sustain .sprout svg { width: 36px; height: 36px; }
.sustain .sus-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); }
@media (max-width: 860px) { .sustain { grid-template-columns: 1fr; } }

/* ------------------------------ footer ------------------------------ */
.site-footer { background: var(--primary-l1); color: var(--white); margin-top: var(--section-gap); }
.footer-cols {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px); padding: clamp(56px, 7vw, 96px) 0 clamp(32px, 4vw, 48px);
  font-size: 13.5px;
}
.footer-cols h5 {
  font-size: 10px; font-weight: 600; margin-bottom: 22px;
  text-transform: uppercase; letter-spacing: var(--eyebrow-track);
  color: rgba(255,255,255,.55);
}
.footer-cols li { margin-bottom: 13px; }
.footer-cols a { color: rgba(255,255,255,.8); transition: color .3s var(--ease); }
.footer-cols a:hover { color: var(--white); }
.footer-brand {
  padding: clamp(32px, 4vw, 48px) 0 clamp(48px, 6vw, 80px);
  border-top: 1px solid rgba(255,255,255,.14);
}
.footer-logo { display: inline-block; color: var(--white); }
.footer-logo .logo-wordmark { display: block; height: 28px; width: auto; }
.footer-brand p { font-size: 15px; font-weight: 300; margin: 18px 0 26px; max-width: 42ch; color: rgba(255,255,255,.8); line-height: 1.7; }
.footer-brand .btn { border-color: rgba(255,255,255,.45); color: var(--white); }
.footer-brand .btn:hover { background: var(--white); color: var(--primary); border-color: var(--white); }
@media (max-width: 640px) { .footer-cols { grid-template-columns: 1fr; } }

/* --------------------------- product cards --------------------------- */
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(32px, 3.4vw, 52px) clamp(10px, 1.2vw, 18px);
}
@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }

/* home page shelves: a title with a "view all" link, and one tidy row of
   four — at three columns the fourth card would sit alone, so it steps out */
.shelf-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.shelf-head .section-title { margin-bottom: 0; }
.shelf-link {
  flex-shrink: 0; font-size: var(--eyebrow-size); font-weight: 600;
  letter-spacing: var(--eyebrow-track); text-transform: uppercase;
  padding-bottom: 4px; border-bottom: 1px solid currentColor;
  transition: opacity .3s var(--ease);
}
.shelf-link:hover { opacity: .6; }
@media (min-width: 721px) and (max-width: 1000px) {
  .shelf > :nth-child(n + 4) { display: none; }
}

.product-card { position: relative; }
.pc-media {
  position: relative; background: var(--card-bg); border-radius: var(--radius-card);
  aspect-ratio: 4 / 5; overflow: hidden; display: block;
}
/* the render is authored at 4:5 to match this frame, so no correction needed */
.pc-media .garment {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease);
}
@media (hover: hover) {
  .product-card:hover .pc-media .garment { transform: scale(1.06); }
}
.pc-wish {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  background: transparent; display: grid; place-items: center;
  color: var(--ink); box-shadow: none;
  transition: opacity .3s var(--ease), color .3s var(--ease);
}
.pc-wish:hover { opacity: .6; }
.pc-wish.active { color: var(--secondary-l1); }
/* quantity toggle — product cards and the PDP */
.pc-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; margin-top: 8px;
}
.pc-foot .pc-price { margin-top: 0; }
.qty-toggle {
  display: inline-flex; align-items: stretch; flex-shrink: 0; height: 34px;
  border: 1px solid var(--primary); border-radius: var(--radius); overflow: hidden;
  background: var(--white); color: var(--primary);
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.qty-toggle button { color: inherit; display: grid; place-items: center; line-height: 1; }
.qty-toggle button:disabled { opacity: .4; cursor: not-allowed; }
/* in the empty state the minus and the count are collapsed to nothing */
.qty-toggle .qt-dec, .qty-toggle .qt-val {
  max-width: 0; opacity: 0; overflow: hidden;
  transition: max-width .35s var(--ease), opacity .25s var(--ease);
}
.qty-toggle .qt-dec { width: 32px; font-size: 16px; }
.qty-toggle .qt-val {
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.qty-toggle .qt-inc {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px;
  font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: var(--eyebrow-track);
}
.qty-toggle .qt-add-label {
  max-width: 90px; overflow: hidden; white-space: nowrap;
  transition: max-width .35s var(--ease), opacity .25s var(--ease);
}
.qty-toggle .qt-plus { font-size: 16px; font-weight: 400; letter-spacing: 0; }
.qty-toggle[data-state="empty"]:hover { background: var(--primary); color: var(--white); }
.qty-toggle[data-state="active"] { background: var(--primary); color: var(--white); }
.qty-toggle[data-state="active"] .qt-dec { max-width: 32px; opacity: 1; }
.qty-toggle[data-state="active"] .qt-val { max-width: 40px; min-width: 26px; opacity: 1; }
.qty-toggle[data-state="active"] .qt-add-label { max-width: 0; opacity: 0; }
.qty-toggle[data-state="active"] .qt-inc { width: 32px; padding: 0; gap: 0; }
.qty-toggle[data-state="active"] button:hover:not(:disabled) { background: var(--primary-l1); }
@media (hover: none) { .qty-toggle { height: 36px; } }
/* size picker over the card image — opens when + is pressed with no size chosen */
.pc-size-picker {
  position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 4 / 5; z-index: 2;
  display: flex; align-items: flex-end; padding: 10px; pointer-events: none;
}
.pc-size-picker[hidden], .pc-size-tag[hidden] { display: none; }
.pc-size-panel {
  pointer-events: auto; width: 100%;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow-float);
  animation: pc-size-in .35s var(--ease);
}
@keyframes pc-size-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pc-size-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: var(--eyebrow-track);
}
.pc-size-head button { font-size: 13px; color: var(--muted); transition: color .3s var(--ease); }
.pc-size-head button:hover { color: var(--ink); }
/* auto-fit keeps five across on wide cards and wraps to two rows on narrow phone cards */
.pc-size-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(34px, 1fr)); gap: 6px; }
.pc-size-options button {
  height: 34px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--white); font-size: 11px; font-weight: 500; letter-spacing: .04em;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.pc-size-options button:hover,
.pc-size-options button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.pc-size-tag {
  display: inline-flex; align-items: baseline; gap: 6px; margin-top: 8px;
  font-size: 11px; color: var(--muted); letter-spacing: .04em;
}
.pc-size-tag b { color: var(--ink); font-weight: 600; }
.pc-size-tag span { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 480px) {
  .pc-size-picker { padding: 6px; }
  .pc-size-panel { padding: 8px; }
}
/* PDP: the toggle is the full-width bag button — "Add to bag +" then "− 2 in bag +" */
.qty-toggle--lg { display: flex; width: 100%; height: 54px; }
.qty-toggle--lg .qt-inc { flex: 1; font-size: var(--eyebrow-size); gap: 10px; }
.qty-toggle--lg .qt-add-label { max-width: 160px; }
.qty-toggle--lg[data-state="active"] .qt-dec { flex: 0 0 64px; width: 64px; max-width: 64px; }
.qty-toggle--lg[data-state="active"] .qt-inc { flex: 0 0 64px; width: 64px; }
.qty-toggle--lg[data-state="active"] .qt-val {
  flex: 1; max-width: none; font-size: var(--eyebrow-size);
  text-transform: uppercase; letter-spacing: var(--eyebrow-track);
}
.qty-toggle--lg[data-state="active"] .qt-val::after { content: " in bag"; white-space: pre; }
.pc-swatches { display: flex; gap: 7px; margin: 16px 0 10px; }
.swatch {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12); cursor: pointer; position: relative;
  transition: transform .3s var(--ease);
}
.swatch:hover { transform: scale(1.15); }
.swatch.selected::after {
  content: ""; position: absolute; inset: -4px;
  border: 1px solid var(--ink); border-radius: 50%;
}
.stars { font-size: 10px; letter-spacing: 2px; color: var(--ink); }
.pc-name { font-size: 14px; margin-top: 8px; line-height: 1.45; }
.pc-name b {
  display: block; font-size: 9.5px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: var(--eyebrow-track); margin-bottom: 4px;
}
.pc-name span { color: var(--ink); }
.pc-price { font-size: 14px; font-weight: 500; margin-top: 6px; color: var(--ink); }

/* --------------------------- PLP --------------------------- */
.breadcrumb {
  font-size: 10.5px; color: var(--muted); padding: clamp(28px, 4vw, 48px) 0 0;
  text-transform: uppercase; letter-spacing: var(--eyebrow-track);
}
.breadcrumb a { transition: color .3s var(--ease); }
.breadcrumb a:hover { color: var(--ink); }
.plp-title {
  font-size: clamp(30px, 4.4vw, 56px); font-weight: 300;
  letter-spacing: -.03em; line-height: 1.05;
  margin: 18px 0 clamp(28px, 3.4vw, 44px);
}
.plp-title small { font-weight: 300; color: var(--muted); font-size: .42em; letter-spacing: 0; }
.chip-row {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: clamp(28px, 3.4vw, 44px);
  padding-bottom: clamp(20px, 2.4vw, 28px); border-bottom: 1px solid var(--line);
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: var(--eyebrow-track);
  padding: 11px 18px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: var(--white); color: var(--ink);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--filter-active); border-color: transparent; color: var(--ink); font-weight: 600; }
.chip select {
  border: none; background: transparent; font-family: inherit;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: var(--eyebrow-track);
  color: inherit; outline: none; cursor: pointer;
}

/* shop-the-look interlude inside grid */
/* stretches to the row height; the floor keeps it from collapsing, since its
   art is absolutely positioned and contributes no intrinsic height */
.stl-tile {
  grid-column: span 2; position: relative; border-radius: var(--radius-card);
  overflow: hidden; min-height: clamp(380px, 32vw, 520px);
}
.stl-tile .look-art { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .9s var(--ease); }
@media (hover: hover) { .stl-tile:hover .look-art { transform: scale(1.05); } }
@media (max-width: 720px) { .stl-tile { grid-column: span 2; min-height: 420px; } }

/* --------------------------- PDP --------------------------- */
.pdp-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px); padding-top: clamp(20px, 2.4vw, 32px);
}
@media (max-width: 900px) { .pdp-layout { grid-template-columns: 1fr; gap: 32px; } }
.pdp-gallery { position: sticky; top: 108px; align-self: start; }
@media (max-width: 900px) { .pdp-gallery { position: static; } }
.pdp-main {
  background: var(--card-bg); border-radius: var(--radius-card);
  aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 12px;
}
.pdp-main svg, .pdp-main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs { display: flex; gap: 10px; }
.pdp-thumb {
  width: 72px; height: 90px; border-radius: var(--radius-thumb); overflow: hidden;
  background: var(--card-bg); border: 1px solid transparent; padding: 0;
  transition: border-color .3s var(--ease), opacity .3s var(--ease);
  opacity: .6;
}
.pdp-thumb:hover { opacity: 1; }
.pdp-thumb.selected { border-color: var(--ink); opacity: 1; }
.pdp-thumb svg, .pdp-thumb img { width: 100%; height: 100%; }

.pdp-titlebar { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.pdp-titlebar h1 {
  font-size: 10.5px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: var(--eyebrow-track); margin-bottom: 8px;
}
.pdp-titlebar p { color: var(--ink); font-size: clamp(24px, 2.6vw, 34px); font-weight: 300; letter-spacing: -.025em; line-height: 1.15; }
.pdp-actions { display: flex; gap: 16px; color: var(--ink); flex-shrink: 0; }
.pdp-price { font-size: 20px; font-weight: 400; margin: 20px 0 32px; }
.opt-label {
  font-size: 10px; font-weight: 600; margin: 28px 0 12px;
  text-transform: uppercase; letter-spacing: var(--eyebrow-track); color: var(--muted);
}
.opt-label span { color: var(--ink); }
.size-row { display: flex; gap: 8px; flex-wrap: wrap; }
.size-btn {
  min-width: 52px; height: 46px; padding: 0 14px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); font-size: 11px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; background: var(--white);
  transition: border-color .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.size-btn:hover { border-color: var(--ink); }
.size-btn.selected { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pdp-cta { margin: 32px 0 8px; }
.pdp-checkout { margin-bottom: 8px; }

.accordion { border-top: 1px solid var(--line); margin-top: 28px; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; font-size: 11px; font-weight: 600; color: var(--ink); text-align: left;
  text-transform: uppercase; letter-spacing: var(--eyebrow-track); gap: 16px;
}
.acc-head .chev { transition: transform .4s var(--ease); flex-shrink: 0; }
.acc-item.open .chev { transform: rotate(180deg); }
.acc-body { display: none; padding: 0 0 26px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.acc-item.open .acc-body { display: block; }
.acc-body ul { list-style: none; padding-left: 0; }
.acc-body li { margin-bottom: 10px; padding-left: 18px; position: relative; }
.acc-body li::before {
  content: ""; position: absolute; left: 0; top: .7em;
  width: 6px; height: 1px; background: var(--line-strong);
}
.acc-body a { color: var(--ink); }

.impact-box { background: var(--tertiary-l1); border: none; border-radius: var(--radius-card); padding: 22px; }
.impact-box .meter { position: relative; height: 1px; background: var(--line-strong); border-radius: 0; margin: 16px 0 8px; }
.meter .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--primary); border-radius: 0; }
.meter .thumb {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 2px; height: 12px; background: var(--ink); border-radius: 0;
}
.meter-ends { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.review { border-top: 1px solid var(--line); padding: 24px 0; font-size: 14px; color: var(--muted); line-height: 1.7; }
.review:first-of-type { border-top: none; }
.review .stars { margin-bottom: 10px; }
.review b { display: block; margin-bottom: 8px; font-weight: 500; font-size: 15px; color: var(--ink); }
.review .who { color: var(--muted); margin-top: 12px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; }
.rating-summary {
  display: flex; align-items: center; gap: 12px;
  font-size: 22px; font-weight: 300; letter-spacing: -.02em; margin-bottom: 20px;
}

/* --------------------------- cart --------------------------- */
.cart-layout {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: clamp(40px, 6vw, 88px); padding-top: 8px;
}
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; gap: 32px; } }
.cart-item { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.cart-item:first-child { border-top: 1px solid var(--line); }
.cart-thumb { width: 100px; height: 125px; border-radius: var(--radius-thumb); overflow: hidden; background: var(--card-bg); flex-shrink: 0; }
.cart-thumb svg, .cart-thumb img { width: 100%; height: 100%; }
.cart-info { flex: 1; font-size: 13px; }
.cart-info b { display: block; font-size: 15px; font-weight: 400; letter-spacing: -.01em; }
.cart-info .meta { color: var(--muted); margin: 6px 0 10px; font-size: 12px; }
.cart-info .price { font-weight: 500; font-size: 14px; }
.qty-row {
  display: inline-flex; align-items: center; gap: 18px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 7px 14px; margin-top: 14px; font-size: 13px;
}
.qty-row button { font-size: 15px; width: 18px; transition: opacity .3s var(--ease); }
.qty-row button:hover { opacity: .5; }
.cart-remove { color: var(--muted); font-size: 16px; height: fit-content; transition: color .3s var(--ease); }
.cart-remove:hover { color: var(--ink); }

.summary-box {
  border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: clamp(24px, 2.6vw, 34px); height: fit-content; background: var(--tertiary-l1);
}
.promo-row { display: flex; gap: 8px; margin-bottom: 28px; }
.promo-row input {
  flex: 1; border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 14px 16px; font-family: inherit; font-size: 12px; outline: none;
  background: var(--white); letter-spacing: .06em; text-transform: uppercase;
}
.promo-row input::placeholder { text-transform: uppercase; letter-spacing: var(--eyebrow-track); font-size: 10.5px; color: var(--muted); }
.promo-row input:focus { border-color: var(--ink); }
.promo-row .btn { padding-inline: 22px; }
.sum-line { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 12px; color: var(--muted); }
.sum-line span:last-child { color: var(--ink); }
.sum-line.discount, .sum-line.discount span:last-child { color: var(--primary-l1); }
.sum-total {
  display: flex; justify-content: space-between; font-size: 17px; font-weight: 500;
  border-top: 1px solid var(--line-strong); padding-top: 18px; margin-top: 18px;
}
.sum-note { font-size: 10px; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .1em; }
.empty-cart { text-align: center; padding: clamp(64px, 9vw, 120px) 0; color: var(--muted); }
.empty-cart .btn { margin-top: 24px; }

/* --------------------------- toast --------------------------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--white);
  padding: 16px 28px; border-radius: var(--radius);
  font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: var(--eyebrow-track);
  opacity: 0; pointer-events: none; transition: all .45s var(--ease); z-index: 120;
  box-shadow: var(--shadow-float);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.has-action {
  display: flex; align-items: center; gap: 20px; padding-right: 16px;
  width: max-content; max-width: calc(100vw - 32px);
}
.toast.has-action.show { pointer-events: auto; }
.toast-action {
  font: inherit; text-transform: inherit; letter-spacing: inherit;
  color: var(--white); background: none; cursor: pointer; flex-shrink: 0;
  border: 1px solid currentColor; border-radius: var(--radius);
  padding: 8px 14px; white-space: nowrap;
}
.toast-action:hover { background: var(--white); color: var(--ink); }

/* ============================================================
   Overlays, drawers, auth, checkout, profile, orders
   ============================================================ */

/* dim backdrop */
.overlay-backdrop {
  position: fixed; inset: 0; background: rgba(20, 21, 15, .45);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  z-index: 80; opacity: 0; pointer-events: none; transition: opacity .45s var(--ease);
}
.overlay-backdrop.show { opacity: 1; pointer-events: auto; }

/* right-side menu drawer */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; max-height: 100vh;
  width: min(400px, 100%); background: var(--white); border-radius: 0;
  box-shadow: var(--shadow-float); z-index: 90; overflow-y: auto;
  transform: translateX(100%); transition: transform .5s var(--ease);
}
.drawer.show { transform: none; }
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 32px 20px; border-bottom: 1px solid var(--line);
}
.drawer-head b { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: var(--eyebrow-track); }
.drawer-close { font-size: 17px; color: var(--muted); transition: color .3s var(--ease); }
.drawer-close:hover { color: var(--ink); }
.drawer ul { padding: 16px 0 24px; }
.drawer li a, .drawer li button {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 15px 32px; font-size: 13px; color: var(--ink); border-radius: 0; text-align: left;
  transition: background-color .3s var(--ease), padding-left .3s var(--ease);
}
.drawer li a:hover, .drawer li button:hover { background: var(--tertiary-l1); padding-left: 38px; }
.drawer li .with-ico { display: flex; align-items: center; gap: 14px; }
.drawer .sep { border-top: 1px solid var(--line); margin: 12px 32px; }
.drawer .red { color: var(--secondary-l1); }

/* centered modal */
.modal {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  padding: 20px; opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
}
.modal.show { opacity: 1; pointer-events: auto; }
.modal-card {
  background: var(--white); border-radius: var(--radius-card); width: 100%; max-width: 460px;
  padding: clamp(32px, 4vw, 48px); position: relative; box-shadow: var(--shadow-float);
  max-height: 86vh; overflow-y: auto;
  transform: translateY(12px); transition: transform .5s var(--ease);
}
.modal.show .modal-card { transform: none; }
.modal-close { position: absolute; top: 20px; right: 22px; font-size: 16px; color: var(--muted); transition: color .3s var(--ease); }
.modal-close:hover { color: var(--ink); }
.modal-card h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 300; letter-spacing: -.025em; margin-bottom: 8px; line-height: 1.1; }
.modal-card .sub { font-size: 13.5px; color: var(--muted); margin-bottom: 28px; line-height: 1.6; }
.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 10px; font-weight: 600; margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: var(--eyebrow-track); color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 15px 16px; font-family: inherit; font-size: 14px; outline: none; background: var(--white);
  transition: border-color .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 112px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.phone-row { display: flex; gap: 8px; }
.phone-row select { width: 92px; flex-shrink: 0; }
.link-btn { font-size: 11.5px; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); transition: opacity .3s var(--ease); }
.link-btn:hover { opacity: .6; }

/* promo signup modal */
.promo-card {
  background: var(--secondary-l1); color: var(--white); text-align: center;
  padding: clamp(44px, 5vw, 64px) clamp(32px, 4vw, 48px);
}
.promo-card h3 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 300; letter-spacing: -.03em; }
.promo-card p { font-size: clamp(28px, 3.2vw, 40px); font-weight: 300; letter-spacing: -.03em; margin: 0 0 32px; line-height: 1.1; }
.promo-card .modal-close { color: rgba(255,255,255,.7); }
.promo-card .modal-close:hover { color: var(--white); }
.promo-card .btn { background: var(--white); color: var(--secondary); border-color: var(--white); }
.promo-card .btn:hover { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }

/* search overlay */
.search-panel {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  background: var(--white); box-shadow: var(--shadow-float);
  transform: translateY(-105%); transition: transform .5s var(--ease);
}
.search-inner { max-width: 820px; margin: 0 auto; padding: clamp(32px, 4vw, 52px) var(--gutter) clamp(32px, 4vw, 44px); }
.search-panel.show { transform: none; }
.search-bar { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--ink); padding-bottom: 16px; }
.search-bar input {
  flex: 1; border: none; outline: none; font-family: inherit;
  font-size: clamp(20px, 2.4vw, 28px); font-weight: 300; letter-spacing: -.02em;
}
.search-bar input::placeholder { color: var(--line-strong); }
.search-hints { margin-top: 28px; font-size: 13px; }
.search-hints .lbl {
  font-weight: 600; font-size: 10px; color: var(--muted); margin: 20px 0 12px;
  text-transform: uppercase; letter-spacing: var(--eyebrow-track);
}
.search-hints .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.search-results { margin-top: 24px; }
.search-hit {
  display: flex; align-items: center; gap: 16px; padding: 12px 8px; border-radius: var(--radius);
  transition: background-color .3s var(--ease);
}
.search-hit:hover { background: var(--tertiary-l1); }
.search-hit .thumb { width: 52px; height: 65px; border-radius: var(--radius-thumb); overflow: hidden; background: var(--card-bg); flex-shrink: 0; }
.search-hit .thumb svg, .search-hit .thumb img { width: 100%; height: 100%; }
.search-hit b { font-size: 9.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: var(--eyebrow-track); }
.search-hit small { color: var(--muted); }

/* bottom sheet (filters / adding to bag / addresses) */
.sheet {
  position: fixed; z-index: 90; background: var(--white);
  left: 50%; bottom: 0; transform: translate(-50%, 105%);
  width: min(520px, 100%); max-height: 84vh; overflow-y: auto;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: clamp(28px, 3.4vw, 40px);
  transition: transform .5s var(--ease); box-shadow: var(--shadow-float);
}
.sheet.show { transform: translate(-50%, 0); }
.sheet h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 300; letter-spacing: -.025em; margin-bottom: 8px; }
.sheet .modal-close { top: 26px; right: 28px; }
/* also used by the size guide, returns flow and info pages */
.group-lbl {
  font-size: 10px; font-weight: 600; margin: 28px 0 12px;
  text-transform: uppercase; letter-spacing: var(--eyebrow-track); color: var(--muted);
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.choice { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-size: 14px; cursor: pointer; }
.choice input { accent-color: var(--ink); width: 15px; height: 15px; }
.sheet-actions { display: flex; gap: 10px; margin-top: 32px; }
.sheet-actions .btn { flex: 1; }

/* address cards */
.addr-card {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 20px; margin-bottom: 12px; display: flex; gap: 14px; align-items: flex-start;
  font-size: 13.5px; cursor: pointer; color: var(--muted); line-height: 1.6;
  transition: border-color .3s var(--ease);
}
.addr-card:hover { border-color: var(--ink); }
.addr-card.selected { border-color: var(--ink); box-shadow: none; background: var(--tertiary-l1); }
.addr-card b { display: block; font-size: 14px; margin-bottom: 6px; font-weight: 500; color: var(--ink); }
.addr-card .addr-links { margin-top: 12px; display: flex; gap: 18px; }
.addr-card .addr-links button { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; text-decoration: underline; text-underline-offset: 3px; color: var(--muted); }
.addr-card input[type=radio] { margin-top: 4px; accent-color: var(--ink); }

/* checkout steps */
.steps {
  display: flex; gap: 12px; align-items: center;
  font-size: 10px; color: var(--muted); margin: 4px 0 clamp(32px, 4vw, 48px);
  text-transform: uppercase; letter-spacing: var(--eyebrow-track);
}
.steps .on { color: var(--ink); font-weight: 600; }
.steps .dash { flex: 0 0 32px; border-top: 1px solid var(--line-strong); }

/* pay options */
.pay-opt {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 20px; margin-bottom: 10px; display: flex; gap: 14px; align-items: center;
  font-size: 14px; cursor: pointer; transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.pay-opt:hover { border-color: var(--ink); }
.pay-opt.selected { border-color: var(--ink); box-shadow: none; background: var(--tertiary-l1); }
.pay-opt input { accent-color: var(--ink); }
.pay-opt b { font-weight: 500; }
.pay-opt small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }

/* profile */
.profile-grid {
  display: grid; grid-template-columns: 1fr 1.25fr;
  gap: clamp(32px, 5vw, 72px); padding-top: 8px;
}
@media (max-width: 800px) { .profile-grid { grid-template-columns: 1fr; } }
.avatar-block { text-align: center; padding: clamp(32px, 4vw, 48px); background: var(--tertiary-l1); border-radius: var(--radius-card); }
.avatar-circle {
  width: 104px; height: 104px; border-radius: 50%; background: var(--white);
  display: grid; place-items: center; margin: 0 auto 18px; color: var(--primary);
  font-size: 30px; font-weight: 300; letter-spacing: .02em; border: 1px solid var(--line-strong);
}
.avatar-block b { font-size: 20px; font-weight: 300; letter-spacing: -.02em; }
.impact-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 28px; background: var(--line); }
.impact-stat {
  background: var(--tertiary-l1); border-radius: 0; padding: 18px 8px; text-align: center;
  font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em;
}
.impact-stat b { display: block; font-size: 22px; color: var(--primary); font-weight: 300; letter-spacing: -.02em; margin-bottom: 6px; text-transform: none; }
.profile-list { border-top: 1px solid var(--line); margin-top: 8px; }
.profile-list a, .profile-list button {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 4px; font-size: 13px; border-bottom: 1px solid var(--line); color: var(--ink); text-align: left;
  transition: padding-left .3s var(--ease);
}
.profile-list a:hover, .profile-list button:hover { padding-left: 10px; }
.mini-shelf { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 8px; }
.mini-shelf a { width: 72px; height: 90px; flex-shrink: 0; border-radius: var(--radius-thumb); overflow: hidden; background: var(--card-bg); }
.mini-shelf svg, .mini-shelf img { width: 100%; height: 100%; }

/* orders */
.order-card {
  border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px;
  margin-bottom: 12px; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  color: var(--ink); transition: border-color .3s var(--ease);
}
.order-card:hover { border-color: var(--ink); }
.order-card b { display: block; font-size: 15px; font-weight: 400; letter-spacing: -.01em; }
.order-card .meta { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.order-status {
  font-size: 9.5px; font-weight: 600; padding: 5px 12px; border-radius: var(--radius);
  display: inline-block; margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: var(--eyebrow-track);
}
.order-status.ok { background: var(--primary); color: var(--white); }
.order-status.warn { background: #EDE4CE; color: #6B5418; }
.order-status.bad { background: #F2DEDE; color: var(--secondary); }
.order-thumbs { display: flex; gap: 8px; flex-shrink: 0; }
.order-thumbs span { width: 50px; height: 62px; border-radius: var(--radius-thumb); overflow: hidden; background: var(--card-bg); display: block; }
.order-thumbs svg, .order-thumbs img { width: 100%; height: 100%; }

/* order detail timeline */
.timeline { margin: 28px 0; border-left: 1px solid var(--line); padding-left: 26px; }
.tl-step { position: relative; padding-bottom: 28px; font-size: 13px; color: var(--muted); }
.tl-step::before {
  content: ""; position: absolute; left: -30px; top: 6px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--white); border: 1px solid var(--line-strong);
}
.tl-step.done { color: var(--ink); }
.tl-step.done::before { background: var(--primary); border-color: var(--primary); }
.tl-step b {
  display: block; font-weight: 600; font-size: 10.5px; margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: var(--eyebrow-track);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   Milestone 3 — returns, help centre, reviews, size guide,
   account, stories, sustainability, static content
   ============================================================ */

/* shared page furniture */
.lede {
  font-size: clamp(15px, 1.5vw, 18px); font-weight: 300; color: var(--muted);
  max-width: 62ch; line-height: 1.7; margin-bottom: clamp(28px, 3.4vw, 44px);
}
.sub-head {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: var(--eyebrow-track); color: var(--muted);
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
  margin: clamp(32px, 4vw, 48px) 0 20px; display: flex; align-items: center; gap: 10px;
}
.sub-head .count {
  background: var(--tertiary-l1); color: var(--ink); border-radius: 999px;
  padding: 2px 9px; font-size: 10px;
}
.eyebrow {
  display: block; font-size: var(--eyebrow-size); font-weight: 600;
  text-transform: uppercase; letter-spacing: var(--eyebrow-track); margin-bottom: 20px;
}
.flow-actions { display: flex; gap: 12px; margin-top: clamp(28px, 3.4vw, 40px); }
.flow-actions.center { justify-content: center; }
.flow-actions .btn:last-child { flex: 1; }
.flow-actions.center .btn:last-child { flex: 0 0 auto; }
textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 15px 16px; font-family: inherit; font-size: 14px; outline: none;
  background: var(--white); resize: vertical; line-height: 1.6;
}
textarea:focus { border-color: var(--ink); }
.opt { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.rv-empty { color: var(--muted); font-size: 14px; padding: 28px 0; }

/* ------------------------------ returns ------------------------------ */
.order-card.is-disabled { opacity: .55; }
.order-card .why { color: var(--secondary); }
.ret-pick {
  display: flex; align-items: center; gap: 12px; margin-top: 14px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .1em; cursor: pointer;
}
.ret-pick input { accent-color: var(--ink); width: 15px; height: 15px; }
.ret-pick select {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 5px 8px; font-family: inherit; font-size: 12px; background: var(--white);
}
.flow-done { text-align: center; padding: clamp(48px, 6vw, 88px) 0; }
.flow-done .tick {
  width: 72px; height: 72px; border-radius: 50%; background: var(--primary); color: var(--white);
  display: grid; place-items: center; font-size: 28px; margin: 0 auto 24px;
}
.flow-done h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 300; letter-spacing: -.03em; margin-bottom: 16px; }
.flow-done p { color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 52ch; margin: 0 auto 10px; }
.flow-done p.muted { font-size: 13.5px; }

/* ----------------------------- help centre ----------------------------- */
.help-search { margin-bottom: 28px; }
.help-search input {
  width: 100%; border: none; border-bottom: 1px solid var(--ink); border-radius: 0;
  padding: 16px 0; font-family: inherit; font-size: clamp(18px, 2vw, 24px);
  font-weight: 300; letter-spacing: -.02em; outline: none; background: transparent;
}
.help-search input::placeholder { color: var(--line-strong); }
.help-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 8px; }
@media (max-width: 720px) { .help-quick { grid-template-columns: 1fr; } }
.quick-card {
  border: 1px solid var(--line); border-radius: var(--radius-card); padding: 22px;
  transition: border-color .3s var(--ease);
}
.quick-card:hover { border-color: var(--ink); }
.quick-card b { display: block; font-size: 15px; font-weight: 400; margin-bottom: 5px; }
.quick-card span { font-size: 12.5px; color: var(--muted); }
.faq-group .accordion { margin-top: 0; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; }
.contact-card b {
  display: block; font-size: 10px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: var(--eyebrow-track); margin-bottom: 10px;
}
.contact-card p { font-size: 14px; color: var(--ink); line-height: 1.7; }

/* ------------------------------ reviews ------------------------------ */
.reviews-card { max-width: 620px; }
.rv-summary {
  display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center;
  padding: 24px 0; border-block: 1px solid var(--line); margin-bottom: 20px;
}
@media (max-width: 540px) { .rv-summary { grid-template-columns: 1fr; gap: 18px; } }
.rv-score { text-align: center; }
.rv-score b { display: block; font-size: 44px; font-weight: 300; letter-spacing: -.03em; line-height: 1; }
.rv-score .stars { display: block; margin: 8px 0 4px; }
.rv-score small { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.rv-bars { display: grid; gap: 7px; }
.rv-bar {
  display: grid; grid-template-columns: 26px 1fr 30px; align-items: center; gap: 10px;
  font-size: 11px; color: var(--muted); text-align: left;
}
.rv-bar .track { height: 3px; background: var(--line); border-radius: 0; overflow: hidden; }
.rv-bar .fill { display: block; height: 100%; background: var(--ink); }
.rv-bar:hover .fill { background: var(--primary); }
.rv-bar .c { text-align: right; }
.rv-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.rv-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.rv-filters .chip { padding: 8px 12px; }

/* ----------------------------- size guide ----------------------------- */
.size-card { max-width: 620px; }
.table-scroll { overflow-x: auto; margin: 8px 0 10px; }
.size-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 420px; }
.size-table th {
  text-align: left; font-size: 9.5px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: var(--eyebrow-track);
  padding: 12px 10px; border-bottom: 1px solid var(--ink);
}
.size-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); color: var(--muted); }
.size-table td.sz { color: var(--ink); font-weight: 500; }
.size-table tbody tr:hover td { background: var(--tertiary-l1); }
.size-units { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.fit-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.fit-row b { font-weight: 500; }
.fit-row span { color: var(--muted); line-height: 1.6; }
@media (max-width: 540px) { .fit-row { grid-template-columns: 1fr; gap: 4px; } }

/* ------------------------------ account ------------------------------ */
.acct-block { margin-bottom: clamp(32px, 4vw, 52px); }
.pref-row {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.pref-row.as-label { cursor: pointer; }
.pref-row b { display: block; font-size: 14px; font-weight: 400; }
.pref-row small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.pref-row input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--primary); flex-shrink: 0; }
.pref-row input:disabled { opacity: .45; }
.btn-outline.danger { border-color: var(--secondary); color: var(--secondary); }
.btn-outline.danger:hover { background: var(--secondary); color: var(--white); border-color: var(--secondary); }
.field input:disabled { background: var(--tertiary-l1); color: var(--muted); }

/* ------------------------------- prose ------------------------------- */
.prose { margin-bottom: clamp(28px, 3.4vw, 40px); }
.prose h2 {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: var(--eyebrow-track); color: var(--muted); margin-bottom: 12px;
}
.prose p { font-size: 15.5px; line-height: 1.8; color: var(--ink); max-width: 66ch; }
.prose-foot { display: flex; gap: 24px; padding-top: 28px; border-top: 1px solid var(--line); margin-top: 40px; }

/* ------------------------------ stories ------------------------------ */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 36px); }
@media (max-width: 900px) { .story-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .story-grid { grid-template-columns: 1fr; } }
.story-card { display: block; }
.story-cover {
  display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-card);
  margin-bottom: 18px; transition: opacity .4s var(--ease);
}
.story-card:hover .story-cover { opacity: .82; }
.story-meta {
  display: block; font-size: 9.5px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: var(--eyebrow-track); margin-bottom: 10px;
}
.story-card h2 { font-size: 21px; font-weight: 300; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 10px; }
.story-card p { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.story-more {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: var(--eyebrow-track); border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.story-article { max-width: 68ch; margin: 0 auto; }
.story-article h1 {
  font-size: clamp(32px, 4.4vw, 54px); font-weight: 300;
  letter-spacing: -.03em; line-height: 1.08; margin-bottom: 18px;
}
.story-dek { font-size: clamp(16px, 1.8vw, 20px); font-weight: 300; color: var(--muted); line-height: 1.6; margin-bottom: 32px; }
.story-hero { display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-card); margin-bottom: 36px; }
.story-article p { font-size: 16px; line-height: 1.85; margin-bottom: 24px; }
.story-article .btn { margin-top: 12px; }

/* --------------------------- sustainability --------------------------- */
.sus-hero {
  background: var(--primary); color: var(--white);
  padding: clamp(72px, 10vw, 140px) 0 clamp(64px, 9vw, 120px);
}
.sus-hero h1 {
  font-size: clamp(34px, 5.4vw, 68px); font-weight: 300;
  letter-spacing: -.035em; line-height: 1.05; max-width: 18ch; margin-bottom: 24px;
}
.sus-hero p { font-size: clamp(15px, 1.6vw, 18px); font-weight: 300; color: rgba(255,255,255,.78); max-width: 58ch; line-height: 1.7; }
.sus-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
  border-radius: var(--radius-card); overflow: hidden;
}
@media (max-width: 860px) { .sus-stats { grid-template-columns: repeat(2, 1fr); } }
.sus-stat { background: var(--white); padding: clamp(24px, 3vw, 36px) 20px; }
.sus-stat b { display: block; font-size: clamp(28px, 3.4vw, 42px); font-weight: 300; letter-spacing: -.03em; color: var(--primary); }
.sus-stat span { display: block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: var(--eyebrow-track); margin: 12px 0 6px; }
.sus-stat small { font-size: 12.5px; color: var(--muted); }
.sus-pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.4vw, 36px); }
@media (max-width: 720px) { .sus-pillars { grid-template-columns: 1fr; } }
.sus-pillar { border-top: 1px solid var(--ink); padding-top: 20px; }
.sus-pillar h3 { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: var(--eyebrow-track); margin-bottom: 12px; }
.sus-pillar p { font-size: 14.5px; color: var(--muted); line-height: 1.75; }
.sus-honest { background: var(--tertiary-l1); border-radius: var(--radius-card); padding: clamp(28px, 4vw, 52px); }
.sus-honest p { font-size: 15.5px; line-height: 1.8; max-width: 66ch; margin-bottom: 18px; }

/* ---------------------- help centre: raise a complaint ---------------------- */
.complaint-form { border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); background: var(--white); }
.complaint-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .complaint-form .row { grid-template-columns: 1fr; } }
.complaint-form .form-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.complaint-form .form-note { font-size: 11.5px; color: var(--muted); line-height: 1.6; }

.ticket-list { margin-top: 26px; border-top: 1px solid var(--line); }
.ticket-row { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ticket-row .t-id { font-weight: 600; font-size: 13px; white-space: nowrap; }
.ticket-row .t-sub { flex: 1; font-size: 13.5px; }
.ticket-row .t-sub span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.ticket-row .t-state {
  font-size: 10px; letter-spacing: var(--eyebrow-track); text-transform: uppercase;
  font-weight: 600; white-space: nowrap; padding: 3px 9px; border: 1px solid var(--line-strong);
}
.ticket-row .t-state.open { color: var(--secondary-l1); border-color: var(--secondary-l1); }
.ticket-row .t-state.progress { color: var(--ink); }
.ticket-row .t-state.resolved, .ticket-row .t-state.closed { color: var(--primary); border-color: var(--primary); }
.ticket-reply { margin: 0 0 14px; padding: 12px 14px; background: var(--tertiary-l1); border-left: 2px solid var(--primary); font-size: 13px; line-height: 1.6; }
.ticket-reply b { display: block; font-size: 10px; letter-spacing: var(--eyebrow-track); text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }

/* ------------------------------ stock states ------------------------------ */
/* A sold-out option stays visible but is struck through and unclickable —
   hiding it just makes people wonder whether the size ever existed. */
.size-btn.sold-out,
.pc-size-options button.sold-out {
  color: var(--muted);
  border-color: var(--line);
  background:
    linear-gradient(to bottom right, transparent calc(50% - 1px),
      var(--line-strong) 50%, transparent calc(50% + 1px));
  cursor: not-allowed;
}
.size-btn.sold-out:hover, .pc-size-options button.sold-out:hover { border-color: var(--line); }

.swatch.sold-out { opacity: .4; }
.swatch.sold-out::after {
  content: ''; position: absolute; inset: -2px;
  background: linear-gradient(to bottom right, transparent calc(50% - .5px),
    var(--ink) 50%, transparent calc(50% + .5px));
}
.swatch { position: relative; }

.stock-note { font-size: 12.5px; margin-top: 10px; }
.stock-note.low { color: var(--secondary-l1); font-weight: 500; }
.stock-note.out { color: var(--muted); }

.pc-badge-out {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 10px; letter-spacing: var(--eyebrow-track); text-transform: uppercase;
  font-weight: 600; background: var(--white); color: var(--ink);
  padding: 4px 9px; border: 1px solid var(--line-strong);
}
.product-card.is-sold-out .pc-media .garment { opacity: .55; }

/* ------------------------------ accessibility ------------------------------ */

/* Announced by a screen reader, never drawn. Used for the carousel's
   live region, which reports the slide when a person changes it. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Keyboard users land here first; it stays off-screen until focused. */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--primary);
  color: var(--white);
  padding: 11px 18px;
  font-size: var(--eyebrow-size);
  letter-spacing: var(--eyebrow-track);
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius);
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

/* One visible focus ring everywhere, rather than the browser default that
   several of the custom controls were suppressing. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 1px;
}
/* the deep-green panels need the inverse */
.site-footer :where(a, button):focus-visible,
.perks-band :where(a, button):focus-visible { outline-color: var(--white); }

/* A programmatically focused <main> should not draw a ring. */
main:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* the line is at its ceiling — explain why the + stopped working */
.qty-cap { font-size: 11.5px; color: var(--secondary-l1); margin-top: 7px; }
.qty-row button:disabled { opacity: .35; cursor: not-allowed; }

/* ============================================================
   Motion
   ------------------------------------------------------------
   Polish on top of the existing design system. No rule here
   changes layout, type or a brand colour — only opacity,
   transform, shadow and timing.

   Everything is scoped to html.js-motion, which js/motion.js
   only adds once it is running. Without the script the page
   renders exactly as it did before, with nothing hidden.
   ============================================================ */

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

.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  will-change: opacity, transform;
}
.js-motion [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity .62s var(--ease) var(--reveal-delay, 0ms),
    transform .62s var(--ease) var(--reveal-delay, 0ms);
}
/* once it has arrived, stop promising the compositor anything */
.js-motion [data-reveal].is-in { will-change: auto; }

/* ------------------------------ header ------------------------------ */
/* Height is untouched on purpose — only the separation from the page
   behind it changes, so nothing shifts as you scroll. */
.site-header {
  transition: box-shadow .35s var(--ease), background-color .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 1px 18px -6px rgba(20, 21, 15, .18);
}

/* the nav underline grows from the centre rather than appearing */
.main-nav a::after {
  transform-origin: center;
  transition: transform .32s var(--ease), opacity .32s var(--ease);
}

/* --------------------------- product cards --------------------------- */

.product-card {
  transition: transform .4s var(--ease);
}
.js-motion .product-card:hover { transform: translateY(-3px); }

.pc-media {
  overflow: hidden;
  transition: box-shadow .4s var(--ease);
}
.js-motion .product-card:hover .pc-media {
  box-shadow: 0 14px 34px -18px rgba(20, 21, 15, .32);
}

/* the wishlist heart settles in rather than snapping */
.pc-wish { transition: transform .28s var(--ease), color .28s var(--ease), opacity .28s var(--ease); }
.pc-wish:hover { transform: scale(1.12); }
.pc-wish:active { transform: scale(.94); }

/* swapping a colourway replaces the artwork; fade the new one in */
@keyframes media-swap {
  from { opacity: 0; transform: scale(1.02); }
  to   { opacity: 1; transform: none; }
}
.js-motion .media-swap { animation: media-swap .34s var(--ease) both; }

/* swatches */
.swatch { transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.js-motion .swatch:hover { transform: scale(1.14); }
.js-motion .swatch.selected { transform: scale(1.08); }

/* ------------------------------- bag ------------------------------- */

@keyframes badge-bump {
  0%   { transform: scale(1); }
  38%  { transform: scale(1.38); }
  100% { transform: scale(1); }
}
.js-motion .badge.is-bumped { animation: badge-bump .42s var(--ease); }

/* ------------------------- buttons and inputs ------------------------- */

.btn { transition: background-color .28s var(--ease), color .28s var(--ease),
                   border-color .28s var(--ease), transform .18s var(--ease); }
.js-motion .btn:not(:disabled):active { transform: translateY(1px); }

.icon-btn { transition: transform .22s var(--ease), opacity .22s var(--ease); }
.js-motion .icon-btn:hover { transform: translateY(-1px); }
.js-motion .icon-btn:active { transform: translateY(0); }

.quick-card, .contact-card {
  transition: transform .35s var(--ease), border-color .35s var(--ease),
              box-shadow .35s var(--ease);
}
.js-motion .quick-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -20px rgba(20, 21, 15, .34);
}

/* --------------------------- category tiles --------------------------- */

.cat-card .garment, .look-card img, .look-card .garment {
  transition: transform .7s var(--ease);
}
.js-motion .cat-card:hover .garment { transform: scale(1.05); }
.js-motion .look-card:hover img,
.js-motion .look-card:hover .garment { transform: scale(1.04); }

/* -------------------------------- hero -------------------------------- */
/* No ambient drift on the gradient. Animating it means painting a scaled,
   offset copy over the base, and since the underlying linear gradient is
   opaque that copy is what you actually see — the Figma composition would
   sit permanently a little off its marks. The entrance below gives the
   page life without touching it.

   The headline and its supporting copy arrive on load. */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.js-motion .hero-copy > * { animation: hero-in .8s var(--ease) both; }
.js-motion .hero-copy > *:nth-child(2) { animation-delay: .1s; }
.js-motion .hero-copy > *:nth-child(3) { animation-delay: .2s; }
.js-motion .hero-copy > *:nth-child(4) { animation-delay: .3s; }

/* ------------------------------ overlays ------------------------------ */
/* the panels already transition; this just softens how they land */
.search-panel, .modal-card, .drawer-panel { will-change: transform, opacity; }

@keyframes panel-rise {
  from { opacity: 0; transform: translateY(10px) scale(.994); }
  to   { opacity: 1; transform: none; }
}
.js-motion .modal-card { animation: panel-rise .34s var(--ease) both; }

/* ============================================================
   Hero carousel
   ------------------------------------------------------------
   The slides stack in the same box the single hero used, so the
   section keeps its height and the copy keeps its position. Only
   opacity changes between slides.
   ============================================================ */

.hero-carousel { position: relative; }

.hero-track { position: absolute; inset: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s var(--ease), visibility 0s linear .9s;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity .9s var(--ease), visibility 0s;
}

/* the same scrim the single hero carried, so copy stays readable
   whatever the slide is showing */
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 38%, rgba(0,0,0,.62) 100%);
}
.hero-slide .hero-copy { position: relative; z-index: 1; }

/* ------------------------------ controls ------------------------------ */

.hero-controls {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: clamp(48px, 7vw, 92px);
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-dots { display: flex; align-items: center; gap: 9px; }

.hero-dot {
  width: 7px; height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .42);
  cursor: pointer;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.hero-dot:hover { background: rgba(255, 255, 255, .72); }
.hero-dot.is-active { background: var(--white); transform: scale(1.5); }

/* the play/pause control, with the slide's remaining time as a ring */
.hero-pause {
  position: relative;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 21, 15, .42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--white);
  cursor: pointer;
  transition: background-color .3s var(--ease);
}
.hero-pause:hover { background: rgba(20, 21, 15, .62); }

.hero-ring {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);            /* start the sweep at 12 o'clock */
  pointer-events: none;
}
.hero-ring circle { fill: none; stroke-width: 2; }
.hero-ring-track { stroke: rgba(255, 255, 255, .22); }
.hero-ring-fill {
  stroke: var(--white);
  transition: stroke-dashoffset .12s linear;
}
/* while it is held — hovered, focused, or the tab is hidden — the ring
   stops filling, so the control is not lying about what happens next */
.is-held .hero-ring-fill { opacity: .45; }

/* two bars for pause, one triangle for play, drawn rather than typed so
   they sit on the optical centre */
.hero-pause-icon {
  position: relative;
  width: 12px; height: 12px;
}
.hero-pause-icon::before,
.hero-pause-icon::after {
  content: "";
  position: absolute;
  top: 0;
  width: 3px; height: 12px;
  background: currentColor;
  transition: opacity .2s var(--ease);
}
.hero-pause-icon::before { left: 1px; }
.hero-pause-icon::after { right: 1px; }

.hero-pause.is-paused .hero-pause-icon::after { opacity: 0; }
.hero-pause.is-paused .hero-pause-icon::before {
  left: 2px;
  width: 0; height: 0;
  background: none;
  border-left: 11px solid currentColor;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

@media (max-width: 720px) {
  .hero-controls { right: var(--gutter); bottom: clamp(20px, 5vw, 32px); gap: 14px; }
}

/* Reduced motion: the carousel starts paused, and slides cut rather
   than cross-fade if one is chosen by hand. */
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* ============================================================
   Living backgrounds
   ------------------------------------------------------------
   Depth for the dark bands (hero, sustainability banner, footer)
   and a pointer-lit sheen on the tiles. Built from white and
   black at low alpha plus the existing tokens only: every band
   keeps its Figma base colour, and nothing here adds a new one.

   Movement is scoped to html.js-motion, so it never runs for
   anyone who has asked for reduced motion.
   ============================================================ */

:root {
  /* fine film grain: a white speckle tile with no colour of its own */
  --grain: 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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------- hero --------------------------------- */
.hero-slide { isolation: isolate; overflow: hidden; }

/* Uploaded photographs drift very slowly and lean toward the pointer.
   The gradient fallbacks do not — see the hero note in Motion: moving
   them would sit the Figma composition off its marks. */
.hero-slide.has-image::before {
  content: ""; position: absolute; inset: -4%; z-index: -1;
  background: inherit;
  translate: var(--px, 0px) var(--py, 0px);
  transition: translate 1.2s var(--ease);
}
.js-motion .hero-slide.has-image.is-active::before {
  animation: photo-drift 26s ease-in-out infinite alternate;
}
@keyframes photo-drift {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}

/* the scrim gains grain and a slow travelling light; the scrim itself
   is unchanged, so copy stays exactly as readable */
.hero-slide::after {
  background:
    var(--grain),
    radial-gradient(38% 50% at 50% 50%, rgba(255, 255, 255, .11), rgba(255, 255, 255, 0) 72%),
    linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 38%, rgba(0,0,0,.62) 100%);
  background-size: 180px 180px, 240% 240%, 100% 100%;
  background-repeat: repeat, no-repeat, no-repeat;
  background-position: 0 0, 20% 25%, 0 0;
}
.js-motion .hero-slide.is-active::after {
  animation: hero-sheen 20s ease-in-out infinite alternate;
}
@keyframes hero-sheen {
  from { background-position: 0 0, 12% 22%, 0 0; }
  to   { background-position: 0 0, 88% 58%, 0 0; }
}

/* copy moves against the pointer for depth, and eases up and out as
   the hero scrolls away */
.js-motion .hero-slide .hero-copy {
  translate:
    calc(var(--px, 0px) * -.4)
    calc(var(--py, 0px) * -.4 + var(--hero-out, 0) * 70px);
  opacity: calc(1 - var(--hero-out, 0) * 1.15);
  transition: translate .7s var(--ease);
}

/* ------------------------ sustainability + footer ------------------------ */
.site-footer, .sus-hero {
  --glow: var(--primary);
  position: relative; isolation: isolate; overflow: hidden;
}
.sus-hero { --glow: var(--primary-l1); }

/* two soft pools of light, one of the band's sibling green and one
   of white, drifting slowly under a layer of grain */
.site-footer::before, .sus-hero::before {
  content: ""; position: absolute; inset: -25%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(32% 42% at 22% 24%, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 70%),
    radial-gradient(40% 50% at 80% 78%, var(--glow) 0%, transparent 72%);
}
.site-footer::after, .sus-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--grain);
}
.js-motion .site-footer::before,
.js-motion .sus-hero::before {
  animation: band-glow 28s ease-in-out infinite alternate;
}
@keyframes band-glow {
  from { transform: translate3d(-4%, -3%, 0) rotate(0deg); }
  to   { transform: translate3d(4%, 3%, 0) rotate(6deg); }
}

/* ------------------------------ tiles ------------------------------ */
/* a soft light that follows the pointer across a tile */
.cat-card::before, .look-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 40%),
    rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 70%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.look-card::before { z-index: 1; mix-blend-mode: soft-light; }
@media (hover: hover) {
  .cat-card:hover::before, .look-card:hover::before { opacity: 1; }
}

/* ============================================================
   Launch gate
   ------------------------------------------------------------
   The waitlist that covers the home page until launch. The shop
   stays faintly visible behind it under a deep green wash.
   Secondary red (#7F0001) with the footer's grain and a faint
   drifting light; white type; no colour outside the tokens.
   ============================================================ */

html.is-gated, html.is-gated body { overflow: hidden; }

.launch-gate {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  padding: 16px; overflow-y: auto; overscroll-behavior: contain;
  /* deep Primary green wash: Primary #00342E darkened, at 86% */
  background: rgba(0, 29, 26, .86);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}

.launch-card {
  --glow: rgba(255, 255, 255, .05);
  position: relative; isolation: isolate; overflow: hidden;
  width: 100%; max-width: 580px; margin: auto;
  background: var(--secondary); color: var(--white);
  /* larger than --radius-card so the big card reads as round as the field and button */
  border-radius: 28px;
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .55);
  text-align: center;
}
.launch-card::before {
  content: ""; position: absolute; inset: -25%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(34% 40% at 20% 18%, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0) 70%),
    radial-gradient(44% 50% at 82% 84%, var(--glow) 0%, transparent 72%);
}
.launch-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--grain);
}
.js-motion .launch-card { animation: panel-rise .5s var(--ease) both; }
.js-motion .launch-card::before { animation: band-glow 24s ease-in-out infinite alternate; }

/* the photo is the top half of the card, edge to edge, like the discount popup */
.launch-photo {
  display: block; width: 100%; height: auto;
  aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 40%;
  /* short screens: keep the form in view rather than the full square */
  max-height: calc(100vh - 290px); min-height: 300px;
  background: var(--secondary);
}
.launch-body { padding: clamp(14px, 2.4vw, 18px) clamp(22px, 4.5vw, 52px) clamp(26px, 4vw, 40px); }

/* the logo sits over the top of the photo, white on a soft shade */
.launch-media { position: relative; }
.launch-media::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 38%; pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, .32), rgba(0, 0, 0, 0));
}
/* a matching shade at the bottom carries the countdown */
.launch-media::before {
  content: ""; position: absolute; inset: auto 0 0; height: 45%; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .5));
}
.launch-logo {
  position: absolute; z-index: 1; top: clamp(16px, 3vw, 24px); left: 0; right: 0;
  display: flex; justify-content: center; color: var(--white);
}
.launch-logo .logo-lockup { height: clamp(40px, 7vw, 46px); width: auto; filter: drop-shadow(0 1px 8px rgba(0, 0, 0, .35)); }

.launch-lede {
  margin: 0 auto clamp(16px, 2.6vw, 20px); max-width: 40ch;
  font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .92);
  text-wrap: balance;
}

/* four equal cells; the digits use tabular figures so the row never jitters */
.launch-count {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, 1.4vw, 12px);
  position: absolute; z-index: 2; left: clamp(16px, 4.5vw, 52px); right: clamp(16px, 4.5vw, 52px);
  bottom: clamp(16px, 3vw, 26px);
}
.launch-count > div {
  padding: clamp(14px, 2.4vw, 20px) 4px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--radius-card);
  background: rgba(20, 21, 15, .28);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.launch-count b {
  display: block; font-size: clamp(28px, 5.4vw, 46px); font-weight: 300;
  letter-spacing: -.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.launch-count span {
  display: block; margin-top: 10px;
  font-size: 9.5px; font-weight: 600; letter-spacing: var(--eyebrow-track);
  text-transform: uppercase; color: rgba(255, 255, 255, .85);
}

.launch-form { display: flex; gap: 10px; }
.launch-form input {
  flex: 1; min-width: 0; height: 52px; padding: 0 18px;
  font: inherit; font-size: 15px; color: var(--white);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--radius-card);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.launch-form input::placeholder { color: rgba(255, 255, 255, .8); }
.launch-form input:focus { outline: none; border-color: var(--white); background: rgba(255, 255, 255, .1); }
.launch-form input:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.launch-form input[aria-invalid="true"] { border-color: var(--white); }
.launch-form .btn {
  flex-shrink: 0; height: 52px; padding: 0 26px;
  background: var(--white); color: var(--secondary); border-color: var(--white);
  border-radius: var(--radius-card);
}
.launch-form .btn:hover { background: transparent; color: var(--white); }
.launch-form .btn:disabled { opacity: .6; cursor: progress; }
.launch-gate :focus-visible { outline-color: var(--white); }

.launch-msg { min-height: 20px; margin-top: 12px; font-size: 13px; color: var(--white); }
.launch-msg:empty { margin-top: 0; min-height: 0; }

.launch-done {
  display: grid; gap: 6px; padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--radius-thumb);
  background: rgba(255, 255, 255, .06);
}
.launch-done:focus { outline: none; }
.launch-done b { font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.launch-done span { font-size: 13.5px; color: rgba(255, 255, 255, .9); }
.launch-done strong { font-weight: 500; color: var(--white); overflow-wrap: anywhere; }

.launch-fine { margin-top: 22px; font-size: 12px; color: rgba(255, 255, 255, .85); }
.launch-fine a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 520px) {
  .launch-form { flex-direction: column; }
  /* flex: 1 would shrink the field to nothing once the row becomes a column */
  .launch-form input { flex: none; width: 100%; }
  .launch-form .btn { width: 100%; }
  .launch-photo { aspect-ratio: 4 / 5; }
}

/* signed-in staff: the shop, with a reminder that shoppers see the gate */
.launch-preview {
  position: relative; z-index: 70;
  padding: 9px var(--gutter);
  background: var(--ink); color: var(--white);
  font-size: 12px; text-align: center;
}
.launch-preview a { margin-left: 10px; text-decoration: underline; text-underline-offset: 3px; }
