/* ══════════════════════════════════════════════════════════════════════
   Capella Holding — landing page
   Order: tokens → reset → base → layout → components → sections → media
   ══════════════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────────────── */
:root {
  /* Palette */
  --ink:        #0B0B0C;
  --charcoal:   #16161A;
  --charcoal-2: #1F1F24;
  --ivory:      #F6F1EA;
  --ivory-dim:  #EAE3D9;
  --gold:       #C9A227;
  --gold-light: #E8D9A8;
  --gold-deep:  #8A6D1F;   /* the only gold permitted as text on ivory */
  --muted:      #8A8578;
  --muted-dark: #6B6559;   /* secondary text on ivory (4.9:1) */

  /* Type */
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-ui: "Jost", "Helvetica Neue", Arial, system-ui, sans-serif;

  --fs-display: clamp(2.75rem, 1.4rem + 5.8vw, 6.25rem);
  --fs-h2:      clamp(2rem, 1.25rem + 3vw, 3.5rem);
  --fs-h3:      clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem);
  --fs-lede:    clamp(1.02rem, 0.96rem + 0.3vw, 1.2rem);
  --fs-body:    clamp(0.97rem, 0.93rem + 0.2vw, 1.05rem);
  --fs-small:   0.82rem;
  --fs-eyebrow: 0.72rem;

  /* Space */
  --shell: 1240px;
  --gutter: clamp(1.25rem, 0.6rem + 2.6vw, 3rem);
  --section-y: clamp(4.5rem, 2.5rem + 7vw, 9rem);
  --header-h: 80px;

  /* Lines & motion */
  --hair: 1px solid rgba(201, 162, 39, 0.28);
  --hair-ivory: 1px solid rgba(11, 11, 12, 0.12);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t: 420ms var(--ease);
}

/* ── Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

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

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip-link {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -110%);
  z-index: 200;
  padding: 0.75rem 1.5rem;
  background: var(--gold);
  color: var(--ink);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 200ms var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ── Typography ─────────────────────────────────────────────────────── */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.display em { font-style: italic; font-weight: 300; color: var(--gold-light); }

.h2 { font-size: var(--fs-h2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
  color: var(--gold);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
}
/* Gold on ivory measures ~2.1:1 — text there must use the deep tone. */
.eyebrow--deep { color: var(--gold-deep); }

.spark {
  width: 0.85em;
  height: 0.85em;
  flex: none;
  fill: currentColor;
}

/* ── Layout ─────────────────────────────────────────────────────────── */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section--ink   { background: var(--ink); color: var(--ivory); }
.section--ivory { background: var(--ivory); color: var(--ink); }

.section--ivory p { color: var(--muted-dark); }
.section--ink p   { color: var(--muted); }

.section__head { max-width: 46ch; margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.section__lede { margin-top: 1.25rem; font-size: var(--fs-lede); }

/* ── Buttons & links ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2rem;
  border: 1px solid transparent;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  transition: background var(--t), color var(--t), border-color var(--t);
}

.btn--gold {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--ink);
}
.btn--gold:hover { background: var(--gold-light); }

.btn--ghost {
  border-color: rgba(201, 162, 39, 0.5);
  color: var(--gold-light);
}
.btn--ghost:hover {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.1);
  color: var(--gold-light);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.link-arrow span { transition: transform var(--t); }
@media (hover: hover) { .link-arrow:hover span { transform: translateX(5px); } }
.section--ivory .link-arrow { color: var(--gold-deep); }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background var(--t), border-color var(--t), height var(--t);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  height: 64px;
  background: rgba(11, 11, 12, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(201, 162, 39, 0.22);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  height: 100%;
}

.brand { display: flex; align-items: center; gap: 0.7rem; margin-right: auto; }
.brand__mark { width: auto; height: 34px; transition: height var(--t); }
.site-header.is-stuck .brand__mark { height: 28px; }

.brand__lockup { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ivory);
}
.brand__sub {
  margin-top: 0.3rem;
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav__link {
  position: relative;
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  transition: color var(--t);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav__link:hover { color: var(--gold-light); }
.nav__link:hover::after { transform: scaleX(1); }

.header__cta { padding: 0.7rem 1.4rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  padding: 0;
  place-items: center;
  align-content: center;
  gap: 7px;
}
.nav-toggle__bar {
  display: block;
  width: 24px; height: 1px;
  margin-inline: auto;
  background: var(--ivory);
  transition: transform 300ms var(--ease), opacity 200ms var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child  { transform: translateY(-4px) rotate(-45deg); }

/* Mobile overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: grid;
  place-items: center;
  background: var(--ink);
  opacity: 0;
  transition: opacity 320ms var(--ease);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav.is-open { opacity: 1; }

.mobile-nav__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  text-align: center;
}
.mobile-nav__link {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  font-weight: 300;
  color: var(--ivory);
  opacity: 0;
  transform: translateY(14px);
}
.mobile-nav.is-open .mobile-nav__link { animation: rise 460ms var(--ease) forwards; }
.mobile-nav__cta { margin-top: 1rem; opacity: 0; }
.mobile-nav.is-open .mobile-nav__cta { animation: rise 460ms var(--ease) 260ms forwards; }

@keyframes rise { to { opacity: 1; transform: none; } }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-block: calc(var(--header-h) + 2.5rem) 6rem;
  overflow: hidden;
  background: var(--ink);
}

.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* CSS fallback glow — also carries the look if the canvas never starts. */
.hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(52rem 40rem at 72% 28%, rgba(201, 162, 39, 0.16), transparent 62%),
    radial-gradient(40rem 34rem at 12% 88%, rgba(232, 217, 168, 0.07), transparent 66%);
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 2; }

/* Line breaks come from the <br>s in the markup, so no max-width here --
   a character cap fights them and forces a fourth line. */
.hero__title {
  font-size: var(--fs-display);
  margin-bottom: 1.75rem;
}

.hero__lede {
  max-width: 54ch;
  font-size: var(--fs-lede);
  color: var(--ivory-dim);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.75rem;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.scroll-cue__line {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: cue 2.6s var(--ease) infinite;
}
@keyframes cue {
  0%, 100% { opacity: 0.35; transform: scaleY(0.6); transform-origin: top; }
  50%      { opacity: 1;    transform: scaleY(1);   transform-origin: top; }
}

/* ── Marquee ────────────────────────────────────────────────────────── */
.marquee {
  position: relative;
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--charcoal);
  border-block: var(--hair);
  overflow: hidden;
}
/* Soft edges so names enter and leave the strip instead of being sliced. */
.marquee__fade {
  position: absolute;
  top: 0; bottom: 0;
  z-index: 2;
  width: clamp(3rem, 9vw, 8rem);
  pointer-events: none;
}
.marquee__fade--l { left: 0;  background: linear-gradient(to right, var(--charcoal), transparent); }
.marquee__fade--r { right: 0; background: linear-gradient(to left,  var(--charcoal), transparent); }

.marquee__track { display: flex; width: max-content; }
/* The -50% keyframe only loops cleanly once JS has cloned the group, so the
   animation waits for that rather than sliding a single group off-screen. */
.marquee__track.is-ready { animation: slide 46s linear infinite; }
/* Touch browsers latch :hover on the last-tapped element, which would
   freeze the strip permanently. Pointer devices only. */
@media (hover: hover) {
  .marquee:hover .marquee__track { animation-play-state: paused; }
}

.marquee__group { display: flex; flex: none; }
.marquee__item {
  padding-inline: clamp(1.75rem, 4vw, 3.5rem);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(246, 241, 234, 0.42);
  transition: color var(--t);
}
.marquee__item:hover { color: var(--gold-light); }

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

/* ── Stats ──────────────────────────────────────────────────────────── */
.stats { padding-block: clamp(3rem, 5vw, 5rem); background: var(--ink); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: clamp(1.75rem, 3vw, 3rem);
}
.stat { position: relative; padding-left: 1.75rem; }
.stat::before {
  content: "";
  position: absolute;
  left: 0; top: 0.35rem; bottom: 0.35rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 2rem + 3vw, 4.25rem);
  font-weight: 300;
  line-height: 1;
  color: var(--gold-light);
}
.stat__label {
  display: block;
  margin-top: 0.6rem;
  font-size: var(--fs-small);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── About ──────────────────────────────────────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.about__copy p + p { margin-top: 1.1rem; }
.about__copy .h2 { margin-bottom: 1.75rem; }

.tick-list { list-style: none; padding: 0; margin-top: 2rem; }
.tick-list li {
  position: relative;
  padding-left: 1.75rem;
  padding-block: 0.55rem;
  border-top: var(--hair-ivory);
  color: var(--ink);
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
}
.tick-list li:last-child { border-bottom: var(--hair-ivory); }
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.1rem;
  width: 8px; height: 8px;
  background: var(--gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.frame { position: relative; }
.frame::before {
  content: "";
  position: absolute;
  inset: -1.25rem 1.25rem 1.25rem -1.25rem;
  border: 1px solid rgba(138, 109, 31, 0.45);
  pointer-events: none;
}
.frame__img {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(150deg, var(--charcoal) 0%, var(--ink) 55%, #241f16 100%);
}
.frame__img--placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
}
.frame__spark { width: 34px; height: 34px; fill: var(--gold); opacity: 0.85; }
.frame__note {
  font-size: var(--fs-small);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.9;
  color: var(--muted);
}
/* The offset frame needs room to sit outside the image; below 720px it would
   run into the page gutter, so it steps aside. */
@media (max-width: 719px) {
  .frame::before { display: none; }
}

.frame__caption {
  margin-top: 1.5rem;
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

/* ── Cards (divisions) ──────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: clamp(1.25rem, 2vw, 1.75rem);
}
.card {
  position: relative;
  padding: clamp(2rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
  background: var(--charcoal);
  border: 1px solid rgba(246, 241, 234, 0.08);
  transition: border-color var(--t), background var(--t), transform var(--t);
}
@media (hover: hover) {
  .card:hover {
    border-color: rgba(201, 162, 39, 0.55);
    background: var(--charcoal-2);
    transform: translateY(-4px);
  }
}
.card__spark {
  position: absolute;
  top: 1.35rem; right: 1.35rem;
  width: 15px; height: 15px;
  fill: var(--gold);
  opacity: 0.55;
  transition: opacity var(--t), transform var(--t);
}
@media (hover: hover) { .card:hover .card__spark { opacity: 1; transform: rotate(90deg); } }

.card__index {
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.card__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 0.9rem;
}
/* Grows to fill, so the link sits on the same baseline in every card. */
.card__body { flex: 1; margin-bottom: 1.5rem; }
.card .link-arrow { align-self: flex-start; }

/* ── Coverage tiers ─────────────────────────────────────────────────── */
.tiers {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.tier {
  padding: clamp(1.75rem, 3.5vw, 3rem);
  background: #fff;
  border: var(--hair-ivory);
}
.tier--i { border-left: 3px solid var(--gold); }
.tier--ii { border-left: 3px solid var(--ink); }

.tier__head { margin-bottom: 1.25rem; }
.tier__mark {
  display: block;
  margin-bottom: 0.6rem;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.tier--ii .tier__mark { color: var(--muted-dark); }
.tier__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 400;
}
.tier__body { max-width: 62ch; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 1.75rem 0; }
.chip {
  padding: 0.45rem 1rem;
  border: var(--hair-ivory);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  color: var(--ink);
}
.chip--gold {
  border-color: rgba(138, 109, 31, 0.5);
  background: rgba(201, 162, 39, 0.1);
  color: var(--gold-deep);
  font-weight: 400;
}
.chip--more { border-style: dashed; color: var(--muted-dark); }

.tier__note {
  padding-top: 1.25rem;
  border-top: var(--hair-ivory);
  font-size: var(--fs-small);
  font-style: italic;
}

/* ── Brand portfolio ────────────────────────────────────────────────── */
.filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.25rem; }
.filter__btn {
  padding: 0.6rem 1.35rem;
  border: 1px solid rgba(246, 241, 234, 0.16);
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--t), border-color var(--t), background var(--t);
}
.filter__btn:hover { color: var(--ivory); border-color: rgba(201, 162, 39, 0.45); }
.filter__btn.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 500;
}

/* Hairlines live on the cards, not on a background showing through gaps --
   a part-filled last row would otherwise render as grey blocks. */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(215px, 100%), 1fr));
  border-top: 1px solid rgba(246, 241, 234, 0.1);
  border-left: 1px solid rgba(246, 241, 234, 0.1);
}
.brand-card {
  display: grid;
  place-content: center;
  gap: 0.5rem;
  min-height: 148px;
  padding: 1.5rem;
  background: var(--ink);
  border-right: 1px solid rgba(246, 241, 234, 0.1);
  border-bottom: 1px solid rgba(246, 241, 234, 0.1);
  text-align: center;
  transition: background var(--t);
}
.brand-card:hover { background: var(--charcoal-2); }
.brand-card[hidden] { display: none; }

.brand-card__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ivory-dim);
  transition: color var(--t);
}
.brand-card:hover .brand-card__name { color: var(--gold-light); }
.brand-card__scope {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.brands__foot { margin-top: 2.25rem; font-size: var(--fs-small); }
.brands__foot .link-arrow { margin-left: 0.5rem; }

/* ── Retail branches ────────────────────────────────────────────────── */
.branches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(1.25rem, 2vw, 1.75rem);
}
.branch {
  position: relative;
  padding: clamp(1.75rem, 2.5vw, 2.25rem);
  background: #fff;
  border: var(--hair-ivory);
  border-top: 2px solid var(--gold);
  transition: transform var(--t), box-shadow var(--t);
}
@media (hover: hover) {
  .branch:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -28px rgba(11, 11, 12, 0.5); }
}

.branch--soon {
  background: transparent;
  border-top-color: rgba(138, 109, 31, 0.35);
  border-style: dashed;
}
@media (hover: hover) { .branch--soon:hover { transform: none; box-shadow: none; } }

.badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.75rem;
  background: rgba(201, 162, 39, 0.14);
  border: 1px solid rgba(138, 109, 31, 0.45);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.branch__name {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 400;
}
.branch__label {
  margin-top: 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep) !important;
}
.branch__addr {
  margin-top: 1.1rem;
  font-style: normal;
  font-size: var(--fs-small);
  line-height: 1.8;
  color: var(--muted-dark);
}
.branch__hours {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: var(--hair-ivory);
  font-size: var(--fs-small);
}
.branch .link-arrow { margin-top: 1.1rem; }

/* ── Proof grid ─────────────────────────────────────────────────────── */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(265px, 100%), 1fr));
  gap: clamp(1.75rem, 3vw, 3rem);
}
@media (min-width: 900px) {
  /* Four items: 2x2 rather than a 3 + 1 orphan. */
  .proof-grid { grid-template-columns: repeat(2, 1fr); column-gap: clamp(3rem, 6vw, 6rem); }
}
.proof { padding-top: 1.5rem; border-top: var(--hair); }
.proof__title {
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ivory);
}

/* ── Contact ────────────────────────────────────────────────────────── */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.contact__intro .h2 { margin-bottom: 1.5rem; }

.contact__details { margin-top: 2.5rem; }
.contact__details > div { padding-block: 1rem; border-top: var(--hair-ivory); }
.contact__details > div:last-child { border-bottom: var(--hair-ivory); }
.contact__details dt {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.contact__details dd {
  margin: 0.35rem 0 0;
  font-size: var(--fs-small);
  line-height: 1.8;
  color: var(--ink);
}
.contact__details a { border-bottom: 1px solid rgba(138, 109, 31, 0.4); transition: border-color var(--t); }
.contact__details a:hover { border-bottom-color: var(--gold-deep); }
.contact__details address { font-style: normal; }
.contact__cta { margin-top: 2rem; }

.contact__panel {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: #fff;
  border: var(--hair-ivory);
}
.contact__panel .contact__details { margin-top: 0; }
.contact__panel .contact__details > div:first-child { border-top: 0; padding-top: 0; }


/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
  background: var(--ink);
  border-top: var(--hair);
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
}
.footer__brand { grid-column: 1 / -1; }
.footer__brand img { width: auto; height: 86px; }
.footer__tag {
  max-width: 30ch;
  margin-top: 1.25rem;
  font-size: var(--fs-small);
  color: var(--muted);
}

.footer__col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__head {
  margin-bottom: 0.4rem;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer__col a {
  font-size: var(--fs-small);
  color: var(--muted);
  transition: color var(--t);
}
.footer__col a:hover { color: var(--gold-light); }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(246, 241, 234, 0.08);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ── Scroll reveal ──────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 760ms var(--ease), transform 760ms var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* A phone scrolls a single-column stack far faster than a desktop scrolls a
   grid: at the desktop timing the card is still fading in as it leaves the
   screen, which reads as "the animation didn't run". Shorten the travel. */
@media (max-width: 720px) {
  .reveal {
    transform: translateY(14px);
    transition-duration: 480ms;
  }
}

/* ── Breakpoints ────────────────────────────────────────────────────── */
@media (min-width: 720px) {
  .tiers { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .about__grid   { grid-template-columns: 1.15fr 0.85fr; }
  .contact__grid { grid-template-columns: 1.05fr 0.95fr; }
  .footer__brand { grid-column: auto; }
  .footer__grid  { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

@media (max-width: 899px) {
  :root { --header-h: 68px; }
  .nav, .header__cta { display: none; }
  .nav-toggle { display: grid; }
}

@media (max-width: 480px) {
  .brand__name { font-size: 1.12rem; letter-spacing: 0.14em; }
  .brand__sub { font-size: 0.5rem; letter-spacing: 0.34em; }
  .hero__actions .btn { width: 100%; }
}

/* ── Reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  /* Must match .marquee__track.is-ready's specificity, or the universal
     duration override above just snaps the strip to its end frame. */
  .marquee__track.is-ready { animation: none; }
  .scroll-cue__line { animation: none; opacity: 1; transform: none; }
  .mobile-nav__link, .mobile-nav__cta { opacity: 1; transform: none; }
}
