/* ============================================================
   BERUNDA — The Collection (Crimson Velvet)
   A royal crimson gallery. Satin-blue product vitrines set into
   deep velvet like sapphires in a red lacquer wall, hairlined in
   gold. Editorial mosaic — featured + supporting tiles — that
   scales from four cups to a full estate. Built on the design
   system tokens in ../../styles.css.
   ============================================================ */

/* ============================================================
   Dawn plumbing
   ============================================================ */
/* The design's pages inherit their base typography from the kit's
   tokens/base.css — 18px / 1.65 body, and element defaults on p and the
   headings that the page CSS is authored on top of. Inside the theme they
   would inherit Dawn's instead, which retunes anything sized in em, adds
   ~9% leading to every tracked small-caps label, and drops the reading
   measure so paragraphs run the full column. Re-establish the design's base
   at our own page roots: `.col` covers the collection page and the product
   page (`.col.pp`) and nothing outside them.

   Sizes are px rather than the rem-based size and space tokens: those assume
   a 16px root, but Dawn sets html to 62.5% (1rem = 10px), so they would land
   at 62.5% of their intended size here. Everything root-independent —
   unitless leading, em tracking, the ch measure, families and colours — still
   comes from the tokens.

   Everything is wrapped in :where() so the scope costs NO specificity. In the
   kit these are bare element rules that every component rule outranks; a
   plain `.col p` would be (0,1,1) and would beat the design's own
   `.gs-lede { max-width: 44ch }` (0,1,0) — inverting the cascade and quietly
   restyling the page it is supposed to be reproducing. */
:where(.col) {
  font-size: 18px;
  line-height: var(--leading-relaxed);
}
:where(.col) p {
  margin: 0 0 16px;
  max-width: var(--measure);
  text-wrap: pretty;
}
/* One step above zero: Dawn ships its own `h1…h6` element rules (leading 1.3),
   which a zero-specificity selector loses to. `.col :where(…)` is (0,1,0) —
   enough to beat Dawn's element rules, and still beaten by every one of the
   design's own class rules, which all live in later stylesheets. */
.col :where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-display);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  font-weight: var(--weight-bold);
  margin: 0 0 16px;
  text-wrap: balance;
}
:where(.col) h1 { font-size: 64px; }
:where(.col) h2 { font-size: 48px; }
:where(.col) h3 { font-size: 36px; }
:where(.col) h4 { font-size: 28px; }
/* Dawn's base.css hides every empty element (`div:empty { display:none }`).
   Half this design's furniture is a deliberately empty box — scrims, glows,
   rules, the seal's rings. Undo it inside our own scopes. The selectors must
   OUT-SPECIFY `div:empty` (0,1,1), so they are scoped rather than bare:
   `.ri-scrim` alone (0,1,0) loses and the tasting chart's scrim vanishes.
   `.ri-modal` is a sibling of `.col`, not a descendant, so it needs its own. */
.col div:empty,
.col section:empty,
.col p:empty,
.ri-modal div:empty,
.ri-modal p:empty,
.col-bg div:empty {
  display: revert;
}


.col {
  /* ---- Crimson velvet ground (default = Deep Burgundy #460205) ---- */
  --ground:    #2a0206;   /* deepest velvet base */
  --ground-2:  #3a0508;
  --bloom:     rgba(138, 18, 24, 0.42);   /* crimson light bloom */
  --panel:     #4c070d;   /* raised tile plinth */
  --panel-2:   #2f0408;
  --tile:      #350609;     /* card surface — opaque deep-velvet panel framed on the cream ground */
  --tile-hi:   #4a0a11;
  --satin:     #103063;   /* satin-blue vitrine field */
  --satin-2:   #081d40;
  --glow:      rgba(198, 135, 27, 0.16);  /* gold pedestal light */
  --hair:      rgba(214, 162, 63, 0.30);  /* gold hairline */
  --hair-soft: rgba(214, 162, 63, 0.16);
  --gilt:      0.5;        /* lustre multiplier (Tweak) */
  --ink:       var(--ivory-300);
  --ink-soft:  var(--ivory-400);

  position: relative;
  background-color: var(--ivory-beige);   /* cream stationery base — shows in the gallery/close gaps */
  color: var(--ink);
  overflow-x: clip;
  isolation: isolate;
  transition: background-color 0.6s var(--ease-standard);
}
.col * { box-sizing: border-box; }

/* royal crest letterhead — the cream stationery field, fixed behind the content
   so it stays put through the scroll (the dark hero sits over its own photo above it) */
.col::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: var(--ivory-beige) url("collection-hero-crest-v2.webp") center / cover no-repeat;
}
.col::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: none;
}
/* every real section rides above the velvet */
.col > * { position: relative; z-index: 1; }

.col-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 92px);
}

/* ---- Accent re-tints (Velvet shade) ---- */
.col[data-accent="royal"] { --ground:#3c0408; --ground-2:#520a0e; --panel:#640a12; --panel-2:#3e060b; --bloom:rgba(165,22,30,0.46); --tile:#52090f; --tile-hi:#6a0e16; }
.col[data-accent="vivid"] { --ground:#4a060c; --ground-2:#640c12; --panel:#7c1018; --panel-2:#4c080e; --bloom:rgba(196,30,42,0.5);  --tile:#6e101a; --tile-hi:#8a1a26; }

/* lustre */
.col[data-gilt="rich"]  { --gilt: 0.5; }
.col[data-gilt="high"]  { --gilt: 0.85; }

/* ============================================================
   Chrome — sticky nav  (LOCKED — do not restyle)
   ============================================================ */

.col-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #1c0408;
  border-bottom: 1px solid rgba(198, 135, 27, 0.14);
  transition: background-color 0.45s var(--ease-standard),
              backdrop-filter 0.45s var(--ease-standard);
}
.col-nav.scrolled {
  background: rgba(28, 4, 8, 0.72);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  backdrop-filter: blur(10px) saturate(1.05);
}
.col-nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 92px);
  height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.col-nav-group { display: flex; gap: clamp(22px, 2.6vw, 42px); align-items: center; }
.col-nav-group.right { justify-content: flex-end; }
.col-nav-link {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: var(--ivory-400);
  text-decoration: none;
  position: relative;
  /* 13px block padding lifts the hit box to 44px inside the fixed 74px bar.
     The row is centre-aligned, so nothing moves; the underline is re-anchored
     below to keep its original 4px offset from the text. */
  padding-top: 13px;
  padding-bottom: 17px;
  white-space: nowrap;
  transition: color var(--dur-slow) var(--ease-standard);
}
.col-nav-link[aria-current="page"] { color: var(--gold-300); }
.col-nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 13px;
  width: 100%; height: 1px;
  background: var(--gold-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-standard);
}
.col-nav-link[aria-current="page"]::after { transform: scaleX(1); }
.col-nav-link:hover { color: var(--gold-300); }
.col-nav-link:hover::after { transform: scaleX(1); }
/* icon-only home link: 19px glyph, hit area widened to 44px without moving it */
.col-nav-link.nav-home { padding-bottom: 13px; }
.col-nav-link.nav-home::before { content: ""; position: absolute; inset: 0 -13px; }
.col-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.42em;
  font-size: 24px;
  color: var(--gold-400);
  text-decoration: none;
  padding-left: 0.42em;
  white-space: nowrap;
}
.col-cart {
  position: relative;
  margin-left: clamp(4px, 0.8vw, 12px);
  width: 40px;
  height: 40px;
  border: 1px solid rgba(198, 135, 27, 0.30);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ivory-400);
  text-decoration: none;
  transition: color var(--dur-slow) var(--ease-standard),
              border-color var(--dur-slow) var(--ease-standard),
              transform var(--dur-slow) var(--ease-standard);
}
/* the ring stays 40px; an invisible expander brings the hit area to 44px */
.col-cart::before { content: ""; position: absolute; inset: -2px; }
.col-cart-glyph { width: 22px; height: 22px; display: block; }
.col-cart:hover { color: var(--gold-300); border-color: rgba(198, 135, 27, 0.6); transform: translateY(-1px); }
/* ============================================================
   Hero — full-bleed, centered, ceremonial (matches the flagship)
   ============================================================ */
.col-hero {
  position: relative;
  min-height: clamp(560px, 88vh, 940px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: clamp(72px, 13vh, 156px);   /* lifts the centred lockup a little above mid-page */
  overflow: hidden;
}
.col-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;   /* cup + drape sit just right of the centred crest */
  z-index: 0;
}
/* centre-weighted vignette so the centred title reads, edges keep the still-life */
.col-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(118% 86% at 50% 44%, rgba(18, 2, 5, 0.74) 0%, rgba(18, 2, 5, 0.46) 42%, rgba(18, 2, 5, 0.12) 100%),
    linear-gradient(180deg, rgba(18, 2, 5, 0.58), transparent 26%),
    linear-gradient(0deg, rgba(18, 2, 5, 0.62), transparent 34%);
}
.col-hero-inner { position: relative; z-index: 2; width: 100%; }
.col-hero-content {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.col-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ivory-100, #f4ecdc);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.3;
  letter-spacing: 0.015em;
  margin: 0;
  text-shadow: 0 6px 46px rgba(0, 0, 0, 0.55);
}
.col-hero-the {
  display: block;
  font-size: 0.64em;          /* THE sits close to COLLECTION — one lockup, COLLECTION just a touch bigger */
  font-weight: 400;
  letter-spacing: 0.32em;
  color: var(--gold-300);
  margin: 0 0 0.08em 0.32em;
  text-shadow: none;
}
.col-hero-rule {
  width: clamp(72px, 8vw, 110px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
  margin: clamp(26px, 3.4vh, 38px) 0 0;
}
.col-hero-sub {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(19px, 1.8vw, 26px);
  line-height: 1.5;
  color: var(--ivory-200);
  max-width: 30em;
  margin: clamp(22px, 3vh, 32px) auto 0;
  text-wrap: balance;
}

/* paired hero CTAs — primary "Explore the Cups" + secondary "Brew Guide", on one baseline */
.col-hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(18px, 2.4vw, 30px);
  margin: clamp(34px, 4.4vh, 52px) auto 0;
}
.col-hero-cta-div {
  width: 1px;
  height: 15px;
  background: rgba(214, 162, 63, 0.32);
}

/* subtle in-content explore CTA — invites the scroll to the cups below */
.col-hero-explore {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  white-space: nowrap;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 11px;
  color: var(--gold-300);
  text-decoration: none;
  padding: 0 0 6px 0.26em;
  border-bottom: 1px solid rgba(214, 162, 63, 0.34);
  transition: color 0.35s var(--ease-standard),
              border-color 0.35s var(--ease-standard),
              gap 0.35s var(--ease-standard);
}
/* the underline is the visible edge, so the hit area grows via a pseudo
   rather than padding, which would drop the rule away from the text */
.col-hero-explore::before { content: ""; position: absolute; inset: -10px -6px; }
.col-hero-explore:hover { color: var(--gold-200, #f4d589); border-color: var(--gold-300); gap: 14px; }
.col-hero-explore:focus-visible { outline: 2px solid var(--gold-200); outline-offset: 5px; }
.col-hero-explore-chev {
  font-size: 13px;
  line-height: 1;
  transition: transform 0.4s var(--ease-entrance);
}
.col-hero-explore:hover .col-hero-explore-chev { transform: translateY(3px); }
.col-hero-explore-ico {
  width: 13px;
  height: 13px;
  display: inline-flex;
  margin-right: -1px;
}
.col-hero-explore-ico svg { width: 100%; height: 100%; display: block; }

@media (max-width: 620px) {
  .col-hero { min-height: 82vh; }
  .col-hero-img { object-position: 70% center; }
}

/* ============================================================
   Filtration bar — see collection-filter.css (sticky controls row)
   ============================================================ */

/* ============================================================
   The Mosaic — editorial gallery of vitrine tiles
   ============================================================ */
.col-gallery {
  position: relative;
  /* rides on the constant cream crest-letterhead (.col::before) — the velvet
     lives only inside each product photo. Extra bottom padding sets the gap
     before the close, which shares this same cream ground (separate, seamless). */
  padding: clamp(28px, 4.5vh, 56px) 0 clamp(104px, 15vh, 196px);
}
.col-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: clamp(22px, 2.2vw, 40px);
  align-items: start;
}
/* Mosaic breathing room (Tweak) */
.col[data-density="cozy"] .col-mosaic { gap: clamp(14px, 1.4vw, 24px); }
.col[data-density="airy"] .col-mosaic { gap: clamp(30px, 3.2vw, 56px); }
.col[data-density="cozy"] .col-card-body { padding: clamp(14px, 1vw, 20px) 16px clamp(4px, 0.6vw, 10px); }
.col[data-density="airy"] .col-card-body { padding: clamp(26px, 2vw, 40px) 24px clamp(14px, 1vw, 22px); }

/* ---- a product — frameless; the velvet photograph bleeds to the card edge ---- */
.col-card {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: linear-gradient(180deg, #1c0205 0%, #160103 100%);
  border: 1px solid rgba(214, 162, 63, 0.16);
  border-radius: clamp(10px, 0.9vw, 16px);   /* subtle curve at the corners */
  padding: 0;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(34, 4, 8, 0.20);   /* warm, contained — doesn't muddy the cream */
  transition: border-color 0.5s var(--ease-standard),
              transform 0.55s var(--ease-entrance),
              box-shadow 0.55s var(--ease-entrance);
}
.col-card:hover,
.col-card:focus-visible {
  border-color: var(--hair);
  transform: translateY(-5px);
  box-shadow: 0 26px 60px rgba(34, 4, 8, 0.32),
              0 0 0 1px rgba(214, 162, 63, calc(0.10 + 0.12 * var(--gilt)));
}
/* the lift is shared with hover, so on its own it tells a keyboard user
   nothing. The cards are the collection's primary navigation — they keep a
   real ring. (`outline: none` used to be set here for both states.) */
.col-card:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 3px; }

/* the product photograph — full velvet scene, cropped to frame the product */
.col-card-figure {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.col-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 33%;
  display: block;
  transition: transform 0.9s var(--ease-standard);
}
.col-card:hover .col-card-img,
.col-card:focus-visible .col-card-img { transform: scale(1.035); }

/* the caption well — floats in the same velvet */
.col-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: clamp(18px, 1.4vw, 26px) 20px clamp(10px, 0.9vw, 16px);
  margin-top: 4px;   /* clear of the feather → no dissolve haze behind the pill */
}
.col-card-pill {
  font-family: var(--font-display);
  text-transform: uppercase;
  /* 9.5px/0.28em was the smallest type on the collection page and it names the
     format the buyer is choosing — a little larger, tracked a little tighter so
     the longest pill still fits the fixed 170px */
  letter-spacing: 0.24em;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--gold-200);
  width: 170px;
  max-width: 100%;
  text-align: center;
  padding: 6px 12px;
  border: 1px solid rgba(214, 162, 63, 0.22);
  border-radius: 999px;
  background: rgba(214, 162, 63, 0.04);
  text-indent: 0.28em;   /* optical centering against the tracking */
}
.col-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ivory-100, #f4ecdc);
  font-size: clamp(28px, 2.4vw, 40px);
  letter-spacing: 0.03em;
  line-height: 1.02;
  margin: 4px 0 0;
}
.col-card-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--gold-300);
  margin: auto 0 0;   /* drop to the bottom of the body so taglines align across cards with fewer pills */
  font-variant-numeric: tabular-nums;
}
/* CTA — a quiet gold pill that fills on hover */
.col-card-cue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: clamp(12px, 1vw, 16px);
  padding: 10px 28px;
  border: 1px solid var(--gold-600);
  border-radius: 999px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 10.5px;
  color: var(--gold-300);
  position: relative;
  overflow: hidden;
  transition: color 0.4s var(--ease-standard), border-color 0.4s var(--ease-standard);
}
.col-card-cue > span { position: relative; z-index: 1; }
.col-card-cue::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(168deg, var(--gold-300), var(--gold-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-entrance);
  z-index: 0;
}
.col-card-cue .arrow { transition: transform 0.4s var(--ease-entrance); }
.col-card:hover .col-card-cue,
.col-card:focus-visible .col-card-cue { color: #1c0205; border-color: var(--gold-300); }
.col-card:hover .col-card-cue::before,
.col-card:focus-visible .col-card-cue::before { transform: scaleX(1); }
.col-card:hover .col-card-cue .arrow,
.col-card:focus-visible .col-card-cue .arrow { transform: translateX(4px); }

/* Filtered out. Scoped to .col-mosaic so this outranks the anchor-conversion
   rule `.col-mosaic a.col-card { display: flex }` further down — that one is
   (0,2,1) and a bare `.col-card.is-hidden` is only (0,2,0), so the card kept
   its flex display and the Filter silently stopped hiding anything. */
.col-mosaic .col-card.is-hidden { display: none; }

/* empty composition */
.col-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: clamp(56px, 9vh, 110px) 0;
  border: 1px solid var(--hair-soft);
  background: linear-gradient(168deg, var(--tile-hi), var(--tile));
}
.col-empty[hidden] { display: none; }
.col-empty-orn { display: flex; justify-content: center; margin-bottom: clamp(16px, 2.4vh, 24px); }
.col-empty-orn img { height: 13px; opacity: 0.72; }
.col-empty-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-400);
  font-size: clamp(22px, 2.5vw, 32px);
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin: 0 auto;
  max-width: 18em;
  text-wrap: balance;
}
.col-empty-body {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--ivory-400);
  max-width: 28em;
  margin: clamp(12px, 1.8vh, 18px) auto 0;
  text-wrap: pretty;
}
.col-empty .col-btn { cursor: pointer; margin-top: clamp(24px, 3.6vh, 36px); }

/* ============================================================
   Close — provenance line
   ============================================================ */
.col-close {
  position: relative;
  text-align: center;
  padding: clamp(78px, 12vh, 152px) 0;
  /* fades in from the stationery well above the section, covers solid to the footer */
  background: linear-gradient(180deg,
    rgba(250, 244, 231, 0.3) 0%,
    rgba(250, 244, 231, 0.48) 9%,
    rgba(250, 244, 231, 0.68) 18%,
    rgba(250, 244, 231, 0.85) 27%,
    rgba(250, 244, 231, 0.96) 35%,
    #faf4e7 44%,
    #faf4e7 100%);
}
/* the halo reaches up past the section edge into the mosaic above */
.col-close::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: clamp(120px, 18vh, 230px);
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(250, 244, 231, 0) 0%,
    rgba(250, 244, 231, 0.06) 26%,
    rgba(250, 244, 231, 0.14) 50%,
    rgba(250, 244, 231, 0.22) 76%,
    rgba(250, 244, 231, 0.3) 100%);
}
.col-close .col-container {
  position: relative;
}
.col-close-orn { display: flex; justify-content: center; margin-bottom: clamp(20px, 3.2vh, 30px); }
.col-close-orn img { height: 15px; opacity: 0.78; }
.col-close-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--crimson-burgundy);
  font-size: clamp(26px, 3.4vw, 46px);
  letter-spacing: 0.04em;
  line-height: 1.16;
  margin: 0 auto;
  max-width: 16em;
  text-wrap: balance;
}
.col-close-body {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.66;
  color: var(--espresso-brown);
  max-width: 34em;
  margin: clamp(22px, 3.2vh, 30px) auto 0;
  text-wrap: pretty;
}
.col-close-cta { margin-top: clamp(32px, 4.4vh, 48px); }

.col-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  color: var(--gold-300);
  background: transparent;
  border: 1px solid var(--gold-600);
  padding: 16px 38px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: color var(--dur-slow) var(--ease-standard), border-color var(--dur-slow) var(--ease-standard);
}
.col-btn span { position: relative; z-index: 1; }
.col-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--regal-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-entrance);
  z-index: 0;
}
.col-btn:hover { color: #2a0206; border-color: var(--regal-gold); }
.col-btn:hover::before { transform: scaleX(1); }

/* Close section rides on the cream stationery — solid crimson CTA, gold sweep on hover */
.col-close .col-btn {
  color: var(--gold-200);
  background: var(--crimson-burgundy);
  border-color: var(--crimson-burgundy);
  box-shadow: 0 10px 26px rgba(70, 2, 5, 0.22);
}
.col-close .col-btn::before { background: var(--regal-gold); }
.col-close .col-btn:hover { color: #2a0206; border-color: var(--regal-gold); }

/* ============================================================
   Footer  (locked dark band)
   ============================================================ */
.col-footer {
  background: #1c0408;
  border-top: 1px solid rgba(198, 135, 27, 0.14);
  padding: clamp(32px, 4.5vh, 52px) 0 40px;
}

/* ============================================================
   Scroll reveal — visible by default; hidden only once JS adds
   .col-js so a script failure never hides the catalogue.
   ============================================================ */
.col-js .col-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.0s var(--ease-entrance), transform 1.0s var(--ease-entrance);
  will-change: opacity, transform;
}
.col-js .col-reveal.in { opacity: 1; transform: none; }
/* frozen-clock failsafe — see collection.js */
.col.col-static .col-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.col-js .col-reveal.d1 { transition-delay: 0.10s; }
.col-js .col-reveal.d2 { transition-delay: 0.20s; }
.col-js .col-reveal.d3 { transition-delay: 0.30s; }
.col-js .col-mosaic .col-card.col-reveal.in:nth-child(2) { transition-delay: 0.08s; }
.col-js .col-mosaic .col-card.col-reveal.in:nth-child(3) { transition-delay: 0.16s; }
.col-js .col-mosaic .col-card.col-reveal.in:nth-child(4) { transition-delay: 0.24s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 680px) {
  .col-nav-group { display: none; }
  .col-nav-inner { grid-template-columns: 1fr; justify-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .col-js .col-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}


/* ============================================================
   Footer content — brand · explore · connect · copyright
   ============================================================ */
.col-footer { padding-bottom: 0; }

.col-footer { position: relative; overflow: hidden; }
/* footer background: pure solid #1c0408 */
.col-footer-inner {
  position: relative; z-index: 1;
  max-width: 1320px; margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 92px) clamp(26px, 4vh, 40px);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.col-footer-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
.col-footer-emblem {
  width: 76px; height: auto; display: block;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.55));
}
.col-footer-name {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.42em;
  font-size: 20px; color: var(--gold-400); margin: 14px 0 0; padding-left: 0.42em;
}
.col-footer-tagline {
  font-family: var(--font-body); font-style: italic; font-size: 15px;
  letter-spacing: 0.01em; color: var(--ivory-300); margin-top: 7px;
}
.col-footer-col { display: flex; flex-direction: column; align-items: flex-start; }
.col-footer-col--plain { padding-top: 37px; }
.col-footer-col-title {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.3em;
  font-size: 10px; color: var(--gold-300); margin: 0 0 14px;
  position: relative; padding-bottom: 10px;
}
.col-footer-col-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 22px; height: 1px; background: var(--gold-500);
}
.col-footer-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 15px; letter-spacing: 0.01em;
  color: var(--ivory-300); text-decoration: none; white-space: nowrap;
  position: relative; padding-bottom: 2px; margin-bottom: 9px; width: fit-content;
  transition: color var(--dur-slow) var(--ease-standard);
}
.col-footer-link svg { width: 16px; height: 16px; flex: none; display: block; }
.col-footer-link:last-child { margin-bottom: 0; }
.col-footer-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--gold-400); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-standard);
}
.col-footer-link:hover { color: var(--gold-300); }
.col-footer-link:hover::after { transform: scaleX(1); }
.col-footer-base {
  position: relative; z-index: 1;
  max-width: 1320px; margin: 0 auto;
  padding: 15px clamp(24px, 6vw, 92px) 22px;
  border-top: 1px solid rgba(198, 135, 27, 0.12);
  text-align: center;
}
.col-footer-copy {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 9.5px; color: var(--ivory-400); opacity: 0.85;
}
@media (max-width: 760px) {
  .col-footer-inner { grid-template-columns: 1fr; gap: clamp(36px, 6vh, 52px); }
}



/* ============================================================
   parity — collection cards, hero, card-as-link
   ============================================================ */
/* ============ COLLECTION — merged cards ============ */
/* every card in a row is the same height regardless of content */
.col-mosaic { align-items: stretch; }
.col-card { height: auto; }
.col-card-body { flex: 1 1 auto; }

/* pills stack vertically, all identical width, name sits above them */
.col-card-pillbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

/* The tagline (in collection.css) owns the bottom-anchoring auto margin so the
   tagline+cue group drops together and taglines line up across a row even when a
   card has fewer format pills. The cue keeps its normal gap below the tagline. */
.col-card-cue { margin-top: clamp(12px, 1vw, 16px); }

/* Merged cards once stacked the second format's image on top and dissolved it
   in and out on a 9s loop. It was meant as atmosphere and read as a fault —
   the product photograph changing by itself, on desktop and mid-scroll on a
   phone. A product card shows one photograph and holds still. The rule is kept
   as a hard hide so any cached markup that still carries the element cannot
   bring the effect back. */
.col-card-img--alt { display: none; }

/* ============ COLLECTION — hero (mobile CTA stack) ============ */
@media (max-width: 620px) {
  /* Stack the paired CTAs — Brew Guide below Explore, both centred,
     no hairline divider between them. */
  .col-hero-ctas { flex-direction: column; gap: 26px; }
  .col-hero-cta-div { display: none; }
}

/* ---- product cards are links now (popup retired for full pages) ---- */
a.col-card, a.bf-product {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* The kit's mosaic card is a <button> that JS navigates from. Ours is a real
   <a> to the product page, so the link is crawlable, opens in a new tab on
   middle-click, and works with JS off. A button, though, does NOT inherit the
   page's typography — the browser gives it 13.333px / normal — and the card's
   internal metrics were laid out on top of that: inheriting the page's 18px /
   1.65 instead pushes the pill stack and the card ~13px taller. Hand the
   anchor the same neutral starting point the kit's button had, and keep the
   flex layout `a.col-card { display: block }` above would otherwise remove. */
.col-mosaic a.col-card {
  display: flex;
  font-size: 13.3333px;
  line-height: normal;
}



/* ============================================================
   mobile (≤680px) — collection
   ============================================================ */
@media (max-width: 680px) {
  /* ---------------- Collection ---------------- */
  .col-hero-explore { min-height: 48px; align-items: center; }
  .col-hero-sub { font-size: 17.5px; }
  .col-filter-btn { min-height: 44px; padding: 11px 22px; }
  .col-facet-label { font-size: 11px; }
  .col-chip { min-height: 40px; padding: 9px 16px; font-size: 12.5px; }
  .col-filter-clear { min-height: 44px; padding: 8px 14px; }
  .col-filter-done { min-height: 48px; padding: 10px 26px; font-size: 12.5px; }
  .col-card-pill { font-size: 10.5px; letter-spacing: 0.13em; }
  .col-card-name { font-size: 26px; }
  .col-card-tagline { font-size: 15px; }
  .col-card-cue { min-height: 44px; align-items: center; font-size: 12px; }
  .col-close-title { font-size: 27px; }
  .col-close-body { font-size: 17px; }
  .col-btn { min-height: 48px; align-items: center; }

  /* Brew-guide popup → full-screen scroll with a fixed close */
  .col-bg-dialog { position: fixed !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; border-radius: 0 !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch; padding-bottom: 48px !important; }
  .col-bg-x { position: fixed !important; top: 14px; right: 14px; width: 44px !important; height: 44px !important; border-radius: 50%; background: rgba(0, 9, 29, 0.6); z-index: 6; }
}
