/* ============================================================
   POLISH — loads last.
   The correction that matters most: ZaZa Fatcap is the signature,
   not the workhorse. A hand-drawn display face carries a hero and
   looks crude everywhere else. Bricolage Grotesque now sets every
   heading; the custom face is reserved for the one moment that
   should feel drawn by hand.
   ============================================================

   @author Thomas G. and Sophia, SOPHIA XT LLC (sophiaxt.com)
   @sophia-mark sx1 df5ae605af70 55eebecf825b X5qemOdMBAQ8ypHqTJy6IWr7NwXAIIlhCcTyhdFjMAl57OnYqWkxg_Lyj5N7ZjBFRI6WnGNMRz-urlTemwkmCw
 */

:root {
  --font-head: "Bricolage Grotesque", "Rubik", system-ui, sans-serif;
  --font-sig:  "ZaZa Fatcap", "Rubik", cursive;   /* hero only */
}

/* every heading moves to the text face ... */
.shead__h, .duo__h, .ccard__h, .fin__h, .step__h, .loc__city,
.cta__h, .phead__h, .cfg__h, .qsum__h, .artw__h, .pricenote__h,
.ftr__h, .crmbox h3, .cfg__done h2, .cfg__done h3, .pcard__t,
.ahdr__h, .anote__h, .marq__t, .duo__num, .fact__n, .step__n, .fin__n {
  font-family: var(--font-head) !important;
  font-weight: 700;
  letter-spacing: -0.016em;
  font-variation-settings: "opsz" 32;
}

/* ... and only the hero keeps the drawn one */
.hero__h, .intro__logo { font-family: var(--font-sig) !important; }

/* tighter, more deliberate heading sizes */
.shead__h {
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  max-width: 18ch;
  font-weight: 800;
}
.phead__h {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.cta__h {
  font-size: clamp(1.875rem, 1.2rem + 3vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  font-weight: 800;
}
.duo__h, .ccard__h, .fin__h, .step__h, .loc__city, .cfg__h, .pcard__t {
  letter-spacing: -0.022em;
  font-weight: 700;
}
.duo__h { font-size: clamp(1.25rem, 1rem + 0.9vw, 1.625rem); line-height: 1.12; }
.loc__city { font-size: clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem); }

/* numerals read as data, not decoration */
.duo__num, .fact__n, .fin__n, .step__n {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.duo__num { font-weight: 800; font-size: 1.5rem; opacity: 1; color: var(--c-text-mute); }
.fact__n { font-weight: 800; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); }
.marq__t { font-weight: 800; letter-spacing: -0.01em; }

/* ------------------------------------------------------------
   HERO — compose it instead of stacking it
   ------------------------------------------------------------ */
.hero { padding-block: var(--s-16) var(--s-20); }
@media (min-width: 1024px) { .hero { padding-block: var(--s-20) var(--s-24); } }

.hero__h {
  font-size: clamp(2.75rem, 1rem + 6.4vw, 5.75rem);
  line-height: 0.98;
  letter-spacing: -0.005em;
  margin: var(--s-6) 0 0;
}
.ln:nth-child(2) { margin-left: 0; }

.hero__sub {
  margin-top: var(--s-7, 28px);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.62;
  color: var(--c-text-2);
  max-width: 46ch;
}
.hero__cta { margin-top: var(--s-8); gap: var(--s-3); }

/* the product needs a floor. a cut-out with no contact shadow floats
   like a sticker on a page; this grounds it. */
.hero__art::after {
  content: "";
  position: absolute;
  left: 14%; right: 14%; bottom: 7%;
  height: 26px;
  background: radial-gradient(ellipse at 50% 50%, rgba(20,18,23,.26), rgba(20,18,23,0) 70%);
  filter: blur(7px);
  z-index: 0;
}
.hero__art img { filter: drop-shadow(0 26px 30px rgba(20,18,23,.22)); }
.hero__art::before { opacity: .85; }

/* ------------------------------------------------------------
   DEPTH — the pale cards were reading as empty
   ------------------------------------------------------------ */
.fact {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  box-shadow: 0 1px 2px rgba(20,18,23,.04), 0 10px 24px -12px rgba(20,18,23,.14);
  padding: var(--s-6) var(--s-6) var(--s-5);
  position: relative;
  overflow: hidden;
}
.fact::before {
  content: "";
  position: absolute; inset: 0 auto 0 0; width: 4px;
}
.fact--cyan::before   { background: var(--c-cyan); }
.fact--yellow::before { background: var(--c-yellow); }
.fact--pink::before   { background: var(--c-pink); }
.fact--ink::before    { background: var(--c-ink); }
.fact__l { color: var(--c-text-mute); font-weight: 500; letter-spacing: .04em; }

.duo__c, .fin, .step, .loc, .ccard {
  border: 1px solid var(--c-line);
  box-shadow: 0 1px 2px rgba(20,18,23,.04), 0 12px 28px -14px rgba(20,18,23,.16);
}
.duo__c:first-child, .duo__c:last-child { background: var(--c-paper); }
.duo__c:first-child { border-top: 4px solid var(--c-cyan); }
.duo__c:last-child  { border-top: 4px solid var(--c-pink); }
.loc:nth-child(1), .loc:nth-child(2), .loc:nth-child(3) { background: var(--c-paper); }
.loc:nth-child(1) { border-top: 4px solid var(--c-cyan); }
.loc:nth-child(2) { border-top: 4px solid var(--c-pink); }
.loc:nth-child(3) { border-top: 4px solid var(--c-yellow); }

/* ------------------------------------------------------------
   The ticker was shouting. Quieter, and it reads as a spec strip.
   ------------------------------------------------------------ */
.marq {
  background: var(--c-ink);
  padding: var(--s-4) 0;
  box-shadow: none;
}
.marq__t { color: var(--c-paper); font-size: clamp(.9375rem, 1.6vw, 1.125rem); letter-spacing: .02em; text-transform: uppercase; }
.marq__t b { color: var(--c-cyan); }

/* ------------------------------------------------------------
   Rhythm: one vertical scale, so sections stop drifting apart
   ------------------------------------------------------------ */
.sect { padding-block: clamp(var(--s-16), 7vw, var(--s-24)); }
.shead { margin-bottom: clamp(var(--s-8), 3.4vw, var(--s-12)); }
.cta { margin-top: 0; padding-block: clamp(var(--s-16), 7vw, var(--s-24)); }
.ftr { margin-top: 0; }

/* section eyebrow sits closer to its heading */
.tag { margin-bottom: 0; }
.shead > .tag + .shead__h { margin-top: var(--s-4); }

/* ------------------------------------------------------------
   Typographic detail
   ------------------------------------------------------------ */
body { font-feature-settings: "kern" 1, "liga" 1; text-rendering: optimizeLegibility; }
p { text-wrap: pretty; }
.shead__h, .phead__h, .cta__h, .hero__h { text-wrap: balance; }

/* links in prose read as links */
.pricenote a, .note a, .duo__p a { color: var(--c-cyan-ink); text-underline-offset: 3px; }

/* ------------------------------------------------------------
   Focus: one visible, consistent ring
   ------------------------------------------------------------ */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--c-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .hero__art img { animation: none !important; }
}

/* ------------------------------------------------------------
   PRODUCT PLATES — one box, one baseline
   Each cut-out has its own aspect ratio, so without a fixed stage
   the plates were different heights and every card title in the
   row landed on a different line. The stage is now square and the
   product is contained and centred inside it.
   ------------------------------------------------------------ */
.plate {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: var(--s-5);
  overflow: visible;
  position: relative;
}
.plate__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 16px 20px rgba(20,18,23,.18));
}
/* the colour cloud sits behind, sized to the stage rather than the art */
.plate::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 58% 42% 46% 54% / 44% 52% 48% 56%;
  z-index: 0;
}

/* card bodies then share a baseline and the row bottoms line up */
.ccard, .pcard { display: flex; flex-direction: column; }
.ccard__b, .pcard__b { flex: 1; display: flex; flex-direction: column; }
.ccard__n { margin-top: auto; }
.pcard__f { margin-top: auto; }

/* catalogue grid rows stay even */
.cat__grid { align-items: stretch; }
.cat__grid > .pcard { height: 100%; }
