/* ==========================================================================
   Inhle Collections — Design System
   Editorial luxury: hairline rules, oversized serif display, restrained
   colour. Palette drawn from the brand logo (warm black + metallic gold)
   on a cream ground, with blush as a supporting band.
   ========================================================================== */

:root {
  --bg: #fbf8f3;
  --bg-warm: #f5eee3;
  --blush: #f2dcc0;
  --ink: #14100c;
  --ink-soft: #3d342a;
  --ink-60: rgba(20, 16, 12, 0.62);
  --ink-40: rgba(20, 16, 12, 0.4);
  --gold: #b8860b;
  --gold-light: #e0bd72;
  --gold-pale: #f0dcb0;
  --line: rgba(20, 16, 12, 0.12);
  --line-light: rgba(255, 255, 255, 0.18);
  --white: #ffffff;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Jost", "Segoe UI", sans-serif;

  --container: 1400px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body:not(.has-hero) { padding-top: var(--header-h); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; color: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; font-size: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

section { padding: 78px 0; }

@media (max-width: 900px) {
  section { padding: 52px 0; }
  .container { padding: 0 20px; }
}

/* ---------- Editorial heading kit ---------- */
.eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.eyebrow-rule {
  display: flex;
  align-items: center;
  gap: 16px;
}

.eyebrow-rule::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 90px;
  background: currentColor;
  opacity: 0.45;
}

.display-xl { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
.display-lg { font-size: clamp(2rem, 3.6vw, 3rem); }
.display-md { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }

.lead {
  font-size: clamp(0.98rem, 1.2vw, 1.06rem);
  color: var(--ink-60);
  font-weight: 300;
  max-width: 58ch;
}

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow-rule { justify-content: center; }
.section-head.center .eyebrow-rule::after { display: none; }
.section-head h2 { margin-bottom: 16px; }

@media (max-width: 900px) { .section-head { margin-bottom: 32px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 34px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--gold); color: var(--ink); }

.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }

.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { background: var(--gold); color: var(--ink); }

.btn-ghost-light { border-color: rgba(255,255,255,0.45); color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--ink); }

.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Text link with animated rule */
.link-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.4s var(--ease), gap 0.4s var(--ease);
}
.link-line:hover { border-color: var(--gold); gap: 18px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease), height 0.45s var(--ease);
}

.site-header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}

.brand { justify-self: start; display: block; }
.brand img {
  height: 52px;
  width: auto;
  transition: filter 0.45s var(--ease), height 0.45s var(--ease);
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 46px;
}

.main-nav a {
  position: relative;
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 0;
  transition: color 0.35s var(--ease);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.45s var(--ease);
}

.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--gold); }

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.icon-btn:hover { background: rgba(20,16,12,0.06); }

.cart-badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle { display: none; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.menu-toggle span { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease), opacity 0.3s var(--ease); }
body.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Transparent over hero, solid once scrolled */
.has-hero .site-header {
  background: transparent;
  border-bottom-color: transparent;
  color: var(--white);
}
.has-hero .site-header .brand img { filter: brightness(0) invert(1); }
.has-hero .site-header .icon-btn:hover { background: rgba(255,255,255,0.14); }
.has-hero .site-header.scrolled {
  background: var(--bg);
  border-bottom-color: var(--line);
  color: var(--ink);
  height: 76px;
}
.has-hero .site-header.scrolled .brand img { filter: none; height: 46px; }

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-overlay form { width: min(760px, 84vw); }
.search-overlay .eyebrow { text-align: center; }
.search-overlay input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  outline: none;
  text-align: center;
}
.search-overlay input::placeholder { color: var(--ink-40); }
.search-close { position: absolute; top: 30px; right: 40px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }

@media (max-width: 940px) {
  .menu-toggle { display: flex; }

  /* The nav becomes position:fixed below, which removes it from the grid
     flow — so drop to two columns or the actions land in the middle one. */
  .site-header .container { grid-template-columns: 1fr auto; }

  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(360px, 84vw);
    background: var(--bg);
    color: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 34px;
    padding: 0 44px;
    transform: translateX(101%);
    transition: transform 0.55s var(--ease);
    z-index: 250;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.5rem; font-family: var(--font-display); letter-spacing: 0; text-transform: none; }

  /* Lift the toggle above the open drawer so it stays visible and becomes the
     close (X) button — the drawer panel would otherwise paint over it, leaving
     no visible way out of the menu. */
  .menu-toggle { position: relative; z-index: 260; }

  /* Bars are white over the hero; against the cream drawer they need to flip
     to ink or the X is invisible. */
  body.nav-open .menu-toggle span { background: var(--ink); }

  /* Stops the page behind the drawer scrolling while it is open. */
  body.nav-open { overflow: hidden; }
}

/* Drawer scrim.
   Must live INSIDE .site-header: the header is position:fixed with a z-index,
   so it forms a stacking context that traps .main-nav. A scrim placed on the
   body (or as body::before) sits in the root stacking context and paints over
   the whole header — swallowing every tap meant for the menu. Keeping it here
   means its z-index is compared against the nav's, not the page's.
   A real element rather than a pseudo-element so it can take a click handler:
   iOS Safari does not bubble taps on non-interactive elements up to document. */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 240;
  background: rgba(20, 16, 12, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease);
}

body.nav-open .nav-scrim { opacity: 1; visibility: visible; }

@media (min-width: 941px) { .nav-scrim { display: none; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  /* Capped rather than full-viewport so the sections below stay visible
     without a long scroll on tall desktop screens. */
  min-height: clamp(520px, 74vh, 700px);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(15,12,9,0.82) 0%, rgba(15,12,9,0.45) 46%, rgba(15,12,9,0.12) 100%),
    linear-gradient(180deg, rgba(15,12,9,0.5) 0%, transparent 26%);
}

.hero .container { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 24px); padding-bottom: 24px; }

.hero .eyebrow { color: var(--gold-light); margin-bottom: 14px; }
.hero h1 { color: var(--white); margin-bottom: 20px; max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero p { color: rgba(255,255,255,0.8); font-weight: 300; max-width: 48ch; margin-bottom: 30px; font-size: 1.02rem; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-foot {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line-light);
  margin-top: 42px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero { min-height: clamp(460px, 68vh, 600px); }
  .hero-foot { margin-top: 30px; gap: 10px; }
  .hero-foot span:nth-child(3) { display: none; }
}
@media (max-width: 560px) {
  .hero-foot span:nth-child(2) { display: none; }
}

/* ---------- Marquee strip ---------- */
.marquee {
  background: var(--ink);
  color: var(--bg);
  padding: 22px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track { display: inline-flex; align-items: center; gap: 46px; animation: marquee 34s linear infinite; }
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  letter-spacing: 0.02em;
}
.marquee-track i { color: var(--gold); font-size: 0.6rem; font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ==========================================================================
   Editorial split
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split-narrow { grid-template-columns: 0.85fr 1fr; }

.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }

.split-media.stacked { padding-bottom: 70px; padding-right: 60px; }
.split-media.stacked .img-back { aspect-ratio: 1/1; }
.split-media.stacked .img-front {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 56%;
  aspect-ratio: 1/1;
  border: 10px solid var(--bg);
}

.split h2 { margin-bottom: 18px; }
.split p { color: var(--ink-60); font-weight: 300; margin-bottom: 14px; }

@media (max-width: 980px) {
  .split, .split-narrow { grid-template-columns: 1fr; gap: 32px; }
  .split .split-media { order: -1; }
  .split-media.stacked { padding-bottom: 50px; padding-right: 36px; }
}

/* ---------- Facts row ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 32px;
}
.facts div { padding: 20px 22px 0 0; }
.facts dt {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold);
  margin-bottom: 6px;
}
.facts dd { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-60); }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } .facts div { padding-bottom: 22px; border-bottom: 1px solid var(--line); } }

/* ==========================================================================
   Numbered editorial grid (standards / values)
   ========================================================================== */
.numbered {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 44px;
}

.numbered-item {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.numbered-item .num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 10px;
}

.numbered-item h3 { font-size: 1.16rem; margin-bottom: 8px; }
.numbered-item p { color: var(--ink-60); font-weight: 300; font-size: 0.92rem; }

@media (max-width: 980px) { .numbered { grid-template-columns: repeat(2, 1fr); column-gap: 32px; } }
@media (max-width: 620px) { .numbered { grid-template-columns: 1fr; } .numbered-item { padding: 22px 0; } }

/* ---------- Fabric partners ----------
   Set as type rather than logo images: the client supplied the partner marks
   only as one flat composite poster, and slicing it would ship soft, mixed-
   resolution crops. Swap in real SVG/PNG marks here if they arrive. */
.section-warm { background: var(--bg-warm); }

/* Exactly three across at every width: there are nine partners, so 3x3 always
   fills cleanly — a 4- or 5-column layout leaves a dead cell on the last row. */
.partners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  max-width: 1000px;
  margin: 0 auto;
}

.partners li {
  background: var(--bg-warm);
  min-height: 118px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  transition: background 0.4s var(--ease);
}

.partners li:hover { background: var(--bg); }

.partner-name {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.2;
}

.partner-est {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-40);
}

.partner-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 34px;
  margin-top: 30px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.partner-notes span { display: inline-flex; align-items: center; gap: 10px; }
.partner-notes span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

@media (max-width: 560px) {
  .partners li { min-height: 88px; padding: 16px 8px; gap: 4px; }
  .partner-name { font-size: 0.8rem; }
  .partner-est { font-size: 0.54rem; letter-spacing: 0.14em; }
  .partner-notes { gap: 10px 20px; font-size: 0.66rem; }
}

/* ---------- Dark band ---------- */
.band-dark {
  background: var(--ink);
  color: var(--bg);
}
.band-dark h2 { color: var(--bg); }
.band-dark p { color: rgba(251,248,243,0.66); font-weight: 300; }
.band-dark .eyebrow { color: var(--gold-light); }
.band-dark .numbered-item { border-top-color: var(--line-light); }
.band-dark .numbered-item p { color: rgba(251,248,243,0.6); }
.band-dark .numbered-item h3 { color: var(--bg); }

.quote-block {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}
.quote-block p.statement {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.3vw, 1.9rem);
  line-height: 1.38;
  color: var(--bg);
  font-weight: 400;
}

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  padding: 84px 0;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}
.cta-media { position: absolute; inset: 0; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-media::after { content: ""; position: absolute; inset: 0; background: rgba(15,12,9,0.66); }
.cta .container { position: relative; z-index: 2; }
.cta h2 { color: var(--white); margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,0.76); font-weight: 300; max-width: 52ch; margin: 0 auto 28px; }

/* ==========================================================================
   Store — grid + cards
   ========================================================================== */
.page-head {
  padding: 46px 0 34px;
  border-bottom: 1px solid var(--line);
}
.page-head h1 { margin-bottom: 12px; }
.page-head .lead { margin: 0; }
.page-head.center { text-align: center; }
.page-head.center .lead { margin: 0 auto; }
.page-head.center .eyebrow-rule { justify-content: center; }
.page-head.center .eyebrow-rule::after { display: none; }

.store-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.filter-bar { display: flex; flex-wrap: wrap; gap: 26px; }

.filter-chip {
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-40);
  padding: 6px 0;
  position: relative;
  transition: color 0.35s var(--ease);
}
.filter-chip::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.45s var(--ease);
}
.filter-chip:hover { color: var(--ink); }
.filter-chip.active { color: var(--ink); }
.filter-chip.active::after { width: 100%; }

.results-meta { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-40); }
/* Visible only to screen readers — labels controls that carry an icon. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Store search — sits in the filter bar so the whole range is reachable by
   typing rather than scrolling. Filters live; no page load. */
.store-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 240px;
}
.store-search > svg {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-40);
  pointer-events: none;
}
.store-search input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink);
  padding: 8px 26px 8px 26px;
  transition: border-color 0.35s var(--ease);
}
.store-search input::placeholder { color: var(--ink-40); }
.store-search input:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.store-search input::-webkit-search-cancel-button { display: none; }

.store-search .search-clear {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  padding: 4px;
  color: var(--ink-40);
  line-height: 0;
  transition: color 0.3s var(--ease);
}
.store-search .search-clear:hover { color: var(--ink); }
.store-search.has-value .search-clear { display: block; }

@media (max-width: 700px) {
  .store-bar { gap: 10px; }
  .store-search { min-width: 100%; order: -1; }
  .filter-bar { gap: 18px; }
}


/* Dense by default: 4 across on desktop, stepping down with width so at
   least six products stay visible without scrolling on common screens. */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 26px;
  row-gap: 40px;
  padding-top: 38px;
}

.product-card { position: relative; }

/* Wraps the image link and the action bar as siblings — the bar has to sit
   outside the <a> because enquiry items make it a link of its own, and
   anchors cannot be nested. */
.product-media { position: relative; overflow: hidden; }

.product-thumb {
  display: block;
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--bg-warm);
}

.product-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.product-card:hover .product-thumb img { transform: scale(1.05); }

/* Solid chip rather than a blend mode — product photos vary from white to
   dark, and blending made the label unreadable on light backgrounds. */
.product-cat {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 10px;
  background: rgba(251, 248, 243, 0.92);
  color: var(--ink-soft);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.product-quick {
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 12px;
  text-align: center;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transform: translateY(100%);
  transition: transform 0.45s var(--ease), background 0.35s var(--ease);
}
.product-card:hover .product-quick { transform: translateY(0); }
.product-quick:hover { background: var(--gold); color: var(--ink); }

.product-body {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-top: 14px;
}
.product-body h3 { font-size: 0.98rem; font-weight: 500; line-height: 1.3; }
.product-body h3 a:hover { color: var(--gold); }
.product-price { font-family: var(--font-display); font-size: 0.98rem; color: var(--gold); white-space: nowrap; }
/* No published price yet — read as a quieter label, not a number. */
.product-price.is-enquire { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-40); }

@media (max-width: 1180px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .product-grid { grid-template-columns: repeat(2, 1fr); column-gap: 20px; row-gap: 32px; } }
@media (max-width: 420px) { .product-grid { grid-template-columns: 1fr; } }
/* Touch devices never hover, so the add-to-cart bar stays visible there. */
@media (hover: none) { .product-quick { transform: translateY(0); } }

.empty-state { padding: 100px 20px; text-align: center; }
.empty-state h3 { font-size: 1.6rem; margin-bottom: 12px; }
.empty-state p { color: var(--ink-60); margin-bottom: 30px; }

/* ==========================================================================
   Product detail
   ========================================================================== */
.breadcrumb {
  padding: 18px 0;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { margin: 0 10px; }
.breadcrumb .current { color: var(--ink); }

.product-detail {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 54px;
  align-items: start;
  padding-bottom: 24px;
}

.product-gallery { background: var(--bg-warm); aspect-ratio: 1/1; overflow: hidden; }
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }

.product-info { padding-top: 4px; }
.product-info h1 { margin-bottom: 14px; }

.price-row { display: flex; align-items: center; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.price-row .price { font-family: var(--font-display); font-size: 1.7rem; color: var(--gold); }
.price-row .price.is-enquire { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-40); }

.buy-note { margin: -12px 0 26px; font-size: 0.82rem; font-weight: 300; color: var(--ink-40); max-width: 44ch; }

.options-block { margin-top: 34px; }
.options-block h3 { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; font-family: var(--font-body); font-weight: 500; color: var(--gold); margin-bottom: 14px; }
.stock-pill { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-60); display: inline-flex; align-items: center; gap: 8px; }
.stock-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4b7f52; }

.product-info .description { color: var(--ink-60); font-weight: 300; margin-bottom: 24px; max-width: 46ch; }

.buy-row { display: flex; gap: 12px; align-items: stretch; margin-bottom: 26px; flex-wrap: wrap; }

.qty-control { display: flex; align-items: center; border: 1px solid var(--line); }
.qty-control button { width: 44px; height: 100%; min-height: 50px; font-size: 1rem; transition: background 0.3s var(--ease); }
.qty-control button:hover { background: var(--bg-warm); }
.qty-control input { width: 46px; text-align: center; border: none; background: transparent; outline: none; font-size: 0.95rem; }

.buy-row .btn { flex: 1; min-width: 200px; }

.spec-list { border-top: 1px solid var(--line); }
.spec-list li {
  display: flex;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-60);
  font-weight: 300;
}
.spec-list li strong { min-width: 130px; color: var(--ink); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; padding-top: 3px; }

@media (max-width: 940px) { .product-detail { grid-template-columns: 1fr; gap: 40px; } }

/* Toast */
.add-toast {
  position: fixed;
  bottom: 30px; left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--bg);
  padding: 16px 28px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  z-index: 400;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.add-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }

.contact-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-item:first-of-type { border-top: 1px solid var(--line); }
.contact-item .label { font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.contact-item a, .contact-item span { display: block; color: var(--ink-soft); font-weight: 300; }
.contact-item a:hover { color: var(--gold); }

.social-row { display: flex; gap: 26px; margin-top: 22px; }
.social-row a { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; padding-bottom: 5px; border-bottom: 1px solid var(--line); transition: border-color 0.35s var(--ease); }
.social-row a:hover { border-color: var(--gold); color: var(--gold); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-40); margin-bottom: 8px; }
.form-group input, .form-group textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 10px 0;
  outline: none;
  font-weight: 300;
  transition: border-color 0.35s var(--ease);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-note { margin-top: 20px; font-size: 0.8rem; color: var(--ink-40); font-weight: 300; }

@media (max-width: 940px) { .contact-grid { grid-template-columns: 1fr; gap: 54px; } .form-row { grid-template-columns: 1fr; gap: 0; } }

/* ==========================================================================
   Cart
   ========================================================================== */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }

.cart-row {
  display: grid;
  grid-template-columns: 88px 1fr auto auto;
  gap: 22px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-row:first-child { border-top: 1px solid var(--line); }
.cart-row img { width: 88px; aspect-ratio: 1/1; object-fit: cover; background: var(--bg-warm); }
.cart-row .name { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 4px; }
.cart-row .cat { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-40); }
.cart-row .remove-btn { margin-top: 12px; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-40); border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.cart-row .remove-btn:hover { color: #a2402f; border-color: #a2402f; }
.cart-row .line-total { font-family: var(--font-display); font-size: 1.15rem; color: var(--gold); white-space: nowrap; }
.cart-row .qty-control button { min-height: 42px; width: 40px; }

.cart-summary { border: 1px solid var(--line); padding: 30px 28px; position: sticky; top: calc(var(--header-h) + 20px); }
.cart-summary h3 { font-size: 1.25rem; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.88rem; color: var(--ink-60); font-weight: 300; }
.summary-row.total { border-bottom: none; padding-top: 18px; font-size: 1.02rem; color: var(--ink); font-weight: 400; }
.summary-row.total span:last-child { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); }
.cart-summary .btn { margin-top: 28px; }
.cart-note { margin-top: 18px; font-size: 0.74rem; color: var(--ink-40); text-align: center; font-weight: 300; }

.empty-cart { text-align: center; padding: 90px 20px 40px; }
.empty-cart .mark { color: var(--gold); margin-bottom: 28px; display: flex; justify-content: center; }
.empty-cart h2 { font-size: 2rem; margin-bottom: 14px; }
.empty-cart p { color: var(--ink-60); margin-bottom: 34px; font-weight: 300; }

@media (max-width: 940px) { .cart-layout { grid-template-columns: 1fr; gap: 44px; } .cart-summary { position: static; } }
@media (max-width: 620px) {
  .cart-row { grid-template-columns: 84px 1fr; gap: 18px; }
  .cart-row img { width: 84px; }
  .cart-row .qty-control { grid-column: 2; justify-self: start; }
  .cart-row .line-total { grid-column: 2; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(251,248,243,0.62); padding-top: 62px; }

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer-brand img { height: 54px; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer-brand p { font-size: 0.9rem; font-weight: 300; max-width: 32ch; line-height: 1.8; }

.footer-col h4 { font-family: var(--font-body); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 18px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a, .footer-col span { font-size: 0.9rem; font-weight: 300; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px 0;
  border-top: 1px solid var(--line-light);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(251,248,243,0.4);
}

@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } .site-footer { padding-top: 64px; } }

/* ---------- Reveal ----------
   Only hidden when JS is running (html.js is set by main.js). Without JS the
   content stays visible rather than disappearing entirely. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* ==========================================================================
   E-COMMERCE — load more, checkout, order confirmation, tracking
   ========================================================================== */

/* ---- store: load more --------------------------------------------------- */

.load-more-wrap { display: flex; justify-content: center; padding: 46px 0 8px; }
.load-more-wrap .more-count {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-left: 10px;
}

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

.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumb {
  width: 78px;
  height: 78px;
  padding: 0;
  border: 1px solid var(--line);
  background: none;
  opacity: 0.6;
  transition: opacity 0.25s var(--ease), border-color 0.25s var(--ease);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active { opacity: 1; border-color: var(--ink); }

/* ---- checkout ----------------------------------------------------------- */

.checkout-form { max-width: 640px; }
.form-heading {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-40);
  padding-bottom: 12px;
  margin: 34px 0 20px;
  border-bottom: 1px solid var(--line);
}
.checkout-form .form-heading:first-child { margin-top: 0; }
.req { color: var(--gold); }
.field-hint { display: block; margin-top: 7px; font-size: 0.78rem; color: var(--ink-40); line-height: 1.5; }
.summary-qty { color: var(--ink-40); }

.form-note.is-error { color: #a8562f; }
.form-note.is-success { color: #4b7f52; }
.form-note.is-error a { text-decoration: underline; }

/* ---- a field that needs fixing ----------------------------------------
   Marked three ways over, because colour alone is not a message: the label
   changes, the border changes, and there is a sentence saying what is wrong.
   A customer who cannot distinguish the red still gets told. ---------- */
.form-group.has-error label { color: #a8562f; }
.form-group.has-error input,
.form-group.has-error textarea {
  border-color: #c8734a;
  background: #fdf6f2;
}
.form-group.has-error input:focus,
.form-group.has-error textarea:focus { border-color: #a8562f; }

.field-error {
  display: flex;
  gap: 7px;
  margin-top: 8px;
  font-size: 0.8rem;
  line-height: 1.5;
  font-weight: 400;
  color: #a8562f;
}
/* An exclamation mark carries the meaning where the colour does not. */
.field-error::before {
  content: "!";
  flex: 0 0 15px;
  height: 15px;
  margin-top: 2px;
  border-radius: 50%;
  background: #a8562f;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 15px;
  text-align: center;
}
/* The hint underneath is now secondary to the error, so it stops competing. */
.form-group.has-error .field-hint { color: var(--ink-40); opacity: 0.7; }

/* The terms notice sits directly under Place Order, so its links have to read
   as links against the muted note colour. */
.form-terms { margin-top: 14px; }
.form-terms a { color: var(--ink-60); text-decoration: underline; text-underline-offset: 2px; }
.form-terms a:hover { color: var(--gold); }
/* ------------------------------------------------------------------ payment */

/* Two ways to finish, shown as cards so the choice reads before the customer
   commits rather than as a pair of radio dots. */
.pay-choice { display: grid; gap: 12px; margin-bottom: 16px; }

.pay-option {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.pay-option:hover { border-color: var(--gold-light); }
.pay-option input { margin-top: 3px; accent-color: var(--gold); flex: none; }
.pay-option:has(input:checked) { border-color: var(--gold); background: #fffdf8; }

.pay-body { display: flex; flex-direction: column; gap: 4px; }
/* Shown only to a signed-in admin while payments run against PayFast's test
   servers. Loud on purpose — a test transaction must never read as a sale. */
.pay-sandbox {
  margin: 0 0 14px;
  padding: 12px 16px;
  border: 1px solid #a8562f;
  border-left: 3px solid #a8562f;
  background: #fbeee7;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #7d3f22;
}
.pay-sandbox strong { font-weight: 500; }

.pay-title { font-size: 0.95rem; color: var(--ink); }
.pay-hint { font-size: 0.8rem; line-height: 1.5; color: var(--ink-60); font-weight: 300; }

/* The customer is about to pay the furniture total and delivery is not in it.
   That has to be readable, not a footnote — so it carries the accent rule. */
.pay-excludes {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-left: 2px solid var(--gold);
  background: var(--bg-warm);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.spinner {
  display: inline-block;
  width: 22px; height: 22px;
  border: 2px solid var(--line);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2.4s; }
}


/* ---- order confirmation -------------------------------------------------- */

.order-done { max-width: 620px; margin: 0 auto; text-align: center; padding: 20px 0 30px; }
.order-done .mark.ok {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 26px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
}
.order-done .lead { margin-bottom: 6px; }
.order-done p { color: var(--ink-60); }

.order-ref {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 4px 0 20px;
}
.order-ref.small { font-size: 1.45rem; margin: 2px 0 0; }

.order-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 30px 0 18px; }

/* ---- tracking ------------------------------------------------------------ */

.track-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto 44px;
  flex-wrap: wrap;
}
.track-form input {
  flex: 1;
  min-width: 200px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  background: var(--white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.track-form input:focus { outline: 0; border-color: var(--ink); }

.track-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 40px);
}
.track-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.track-meta { text-align: right; }
.track-placed { display: block; margin-top: 8px; font-size: 0.8rem; color: var(--ink-40); }
.stock-pill.is-cancelled { color: #a8562f; border-color: #e6c3b1; }

.timeline { list-style: none; margin: 32px 0 8px; padding: 0; }
.timeline-step { position: relative; display: flex; gap: 18px; padding-bottom: 26px; }
.timeline-step:last-child { padding-bottom: 0; }

/* The connecting rule is drawn on the dot's column, stopping at the last step. */
.timeline-step::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 16px;
  bottom: -4px;
  width: 1px;
  background: var(--line);
}
.timeline-step:last-child::before { display: none; }
.timeline-step.done::before { background: var(--gold-light); }

.timeline-dot {
  position: relative;
  z-index: 1;
  flex: none;
  width: 13px;
  height: 13px;
  margin-top: 4px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
}
.timeline-step.done .timeline-dot { background: var(--gold-light); border-color: var(--gold-light); }
.timeline-step.current .timeline-dot {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.16);
}

.timeline-label { display: block; font-size: 0.95rem; color: var(--ink-40); }
.timeline-step.done .timeline-label { color: var(--ink); }
.timeline-step.current .timeline-label { font-weight: 500; }
.timeline-date { display: block; margin-top: 2px; font-size: 0.78rem; color: var(--ink-40); }
.timeline-blurb { margin-top: 7px; font-size: 0.9rem; color: var(--ink-60); max-width: 46ch; }

.track-items { margin-top: 34px; padding-top: 8px; border-top: 1px solid var(--line); }
.track-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.track-item img { width: 64px; height: 64px; object-fit: cover; }
.track-item .name { font-weight: 500; }
.track-item .cat { font-size: 0.8rem; color: var(--ink-40); }

.track-foot { margin-top: 26px; }

.track-message {
  max-width: 520px;
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--white);
  text-align: center;
  color: var(--ink-60);
}
.track-message.is-error { border-color: #e6c3b1; background: #fbeee7; color: #82361c; }
.track-cancelled {
  margin: 26px 0 0;
  padding: 16px 18px;
  background: #fbeee7;
  border: 1px solid #e6c3b1;
  color: #82361c;
}

@media (max-width: 620px) {
  .track-head { flex-direction: column; }
  .track-meta { text-align: left; }
  .track-item { grid-template-columns: 52px 1fr; }
  .track-item img { width: 52px; height: 52px; }
  .track-item .line-total { grid-column: 2; }
  .order-actions .btn { width: 100%; justify-content: center; }
}

/* ---- legal pages (privacy policy) --------------------------------------- */

.legal { max-width: 780px; margin: 0 auto; }
.legal-updated {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-40);
  padding-bottom: 22px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.legal h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  margin: 44px 0 14px;
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin: 26px 0 10px;
}
.legal p { color: var(--ink-60); margin-bottom: 14px; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--gold); }

.legal-list { margin: 0 0 16px; padding: 0; }
.legal-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 9px;
  color: var(--ink-60);
}
/* A hairline dash rather than a bullet, to match the editorial rules used
   elsewhere on the site. */
.legal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 1px;
  background: var(--gold-light);
}
.legal-list strong { color: var(--ink); font-weight: 500; }

.legal-foot { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); }
.legal-foot p { margin: 0; }
/* Long legal pages (the terms run to 30 clauses) get a jump-to index and
   numbered headings, so a customer can land on "delivery" without scrolling. */
.legal-index {
  margin: 34px 0 46px;
  padding: 26px 30px;
  background: var(--bg-warm);
}
.legal-index h2 {
  margin: 0 0 16px;
  font-size: 0.72rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.legal-index ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: clause;
  columns: 2;
  column-gap: 34px;
}
.legal-index li {
  counter-increment: clause;
  break-inside: avoid;
  margin-bottom: 7px;
  font-size: 0.88rem;
  line-height: 1.45;
}
.legal-index li::before {
  content: counter(clause) ".";
  display: inline-block;
  min-width: 24px;
  color: var(--ink-40);
  font-variant-numeric: tabular-nums;
}
.legal-index a {
  color: var(--ink-60);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.legal-index a:hover { color: var(--gold); }

.legal h2[id] {
  /* clears the fixed header when a #clause link is followed */
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.clause-num {
  display: inline-block;
  min-width: 42px;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.78em;
  font-weight: 500;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 620px) {
  .legal-index { padding: 22px 20px; }
  .legal-index ol { columns: 1; }
  .clause-num { min-width: 32px; }
}


.footer-legal { display: inline-flex; gap: 22px; flex-wrap: wrap; }
.footer-legal a { opacity: 0.75; transition: opacity 0.25s var(--ease); }
.footer-legal a:hover { opacity: 1; color: var(--gold-light); }
