/* ============================================================
   Keepsika — Print-Faithful marketing site
   Colors sit closer to how CMYK inks land on uncoated paper
   than to their pure sRGB primaries.
   ============================================================ */

:root {
  /* Paper + ink foundation */
  --paper:        #F5F0E6;   /* warm off-white, uncoated feel */
  --paper-deep:   #EAE3D3;   /* section band variant */
  --ink:          #14110E;   /* deep neutral black */
  --ink-soft:     #2E2A24;   /* body text */
  --ink-mute:     #6B6459;   /* captions, meta */
  --rule:         #C9BFA9;   /* hairline rules */

  /* Print-faithful CMYK (dusty, uncoated) */
  --cyan:         #4F94A6;   /* aged cyan */
  --magenta:      #B14A6F;   /* dusty magenta */
  --yellow:       #D9A441;   /* warm ochre yellow */
  --key:          var(--ink);

  /* Type */
  --font-display: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Scale */
  --step--1: clamp(0.85rem, 0.82rem + 0.15vw, 0.95rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.15rem);
  --step-1:  clamp(1.20rem, 1.10rem + 0.50vw, 1.50rem);
  --step-2:  clamp(1.55rem, 1.30rem + 1.20vw, 2.25rem);
  --step-3:  clamp(2.10rem, 1.60rem + 2.50vw, 3.50rem);
  --step-4:  clamp(2.80rem, 1.90rem + 4.50vw, 5.50rem);
  --step-5:  clamp(3.50rem, 2.20rem + 6.50vw, 7.50rem);

  /* Layout */
  --page-x:   clamp(1.25rem, 4vw, 3rem);
  --measure:  62ch;
  --max:      1440px;
  --radius:   2px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-reveal: 600ms;   /* editorial section reveals */
  --dur-blur:   550ms;   /* text blur-in */
  --dur-med:    380ms;   /* deliberate UI (drawer open, card lift) */
  --dur-fast:   240ms;   /* snap: hover, toggles, taps */
  --dur-snap:   200ms;   /* system responses (close, dismiss) */
  --dur-slow:   var(--dur-reveal); /* legacy alias */
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink-soft);
  background: var(--paper);
  line-height: 1.55;
  font-size: var(--step-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   PRELOADER — CMYK parallax curtain (Skiper30-style, no images)
   ============================================================ */
.preloader {
  position: fixed; inset: 0;
  z-index: 100;
  background: var(--paper);
  overflow: hidden;
  transition: opacity 500ms var(--ease-out), visibility 0s linear 500ms;
}
body.is-loaded .preloader {
  opacity: 0;
  visibility: hidden;
}
body.is-loading { overflow: hidden; }
/* Returning visitor — skip preloader entirely to avoid seeing the same curtain twice */
html.kp-skip-preloader .preloader { display: none !important; }
html.kp-skip-preloader body { overflow: auto !important; }

/* 4 parallax columns — each column translates upward at its own speed. */
.preloader__cols {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
}
.preloader__col {
  display: block;
  transform: translateY(100%);
  animation: preloader-rise 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.preloader__col--c { background: var(--cyan); }
.preloader__col--m { background: var(--magenta); }
.preloader__col--y { background: var(--yellow); }
.preloader__col--k { background: var(--ink); }
.preloader__col span { display: none; }

/* Stagger: each column rises into place at its own pace, then stays */
.preloader__col--c { animation-duration: 1.4s; animation-delay: 0.00s; }
.preloader__col--m { animation-duration: 1.6s; animation-delay: 0.12s; }
.preloader__col--y { animation-duration: 1.3s; animation-delay: 0.24s; }
.preloader__col--k { animation-duration: 1.5s; animation-delay: 0.36s; }

@keyframes preloader-rise {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* Centered logo + label sit above the columns */
.preloader__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  z-index: 2;
  pointer-events: none;
}
.preloader__logo {
  width: clamp(140px, 22vw, 220px);
  height: clamp(140px, 22vw, 220px);
  object-fit: contain;
  animation: preloader-breathe 1.6s ease-in-out infinite;
  filter: drop-shadow(0 6px 20px rgba(20, 17, 14, 0.15));
}
.preloader__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink);
  background: color-mix(in oklab, var(--paper) 85%, transparent);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
@keyframes preloader-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .preloader__logo { animation: none; }
  .preloader__col { animation: none; transform: translateY(0); }
}

/* Paper texture — subtle noise via layered gradients */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(20,17,14,0.025) 1px, transparent 1px),
    radial-gradient(rgba(20,17,14,0.02) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
  z-index: 1;
  mix-blend-mode: multiply;
}

/* Layout primitives */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--page-x);
  position: relative;
  z-index: 2;
}

section { position: relative; z-index: 2; }

/* Typography */
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: var(--step--1);
  color: var(--ink-mute);
  font-weight: 600;
}
.h-display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-5);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.h-section {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-3);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
.h-product {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-2);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.lede {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 40ch;
  line-height: 1.4;
}
p { max-width: var(--measure); }

/* Ink-swatch hover accent (Aceternity Hero Highlight, vanilla) */
.ink {
  background-image: linear-gradient(120deg, var(--ink-color, var(--yellow)) 0%, var(--ink-color, var(--yellow)) 100%);
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 0% 34%;
  transition: background-size var(--dur-med) var(--ease-out);
  padding: 0 0.08em;
}
.ink:hover, .ink:focus-visible { background-size: 100% 34%; }
.ink--magenta { --ink-color: rgba(177, 74, 111, 0.35); }
.ink--cyan    { --ink-color: rgba(79, 148, 166, 0.35); }
.ink--yellow  { --ink-color: rgba(217, 164, 65, 0.55); }

/* Aurora text — animated CMYK gradient text (Magic UI, adapted to brand) */
.aurora {
  --a1: var(--cyan);
  --a2: var(--magenta);
  --a3: var(--yellow);
  --a4: var(--ink);
  background-image: linear-gradient(
    100deg,
    var(--a1) 0%,
    var(--a2) 25%,
    var(--a3) 50%,
    var(--a4) 75%,
    var(--a1) 100%
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: aurora-shift 10s linear infinite;
  filter: saturate(1.05);
}
@keyframes aurora-shift {
  from { background-position: 0% 50%; }
  to   { background-position: -200% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora { animation: none; }
}

/* Blur-in text reveal — words split into spans by JS */
.reveal .word {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(0.4em);
  transition:
    opacity var(--dur-blur) var(--ease-out),
    filter var(--dur-blur) var(--ease-out),
    transform var(--dur-blur) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.reveal.is-visible .word {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
.reveal .space { display: inline-block; width: 0.28em; }

/* Fade-up primitive for non-text elements */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.fade-up.is-visible { opacity: 1; transform: none; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 20;
  padding: 1.25rem var(--page-x);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.nav.is-scrolled { border-bottom-color: rgba(245, 240, 230, 0.14); }
.nav__brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
  color: var(--paper);
}
.nav__brand img { width: 96px; height: 96px; object-fit: contain; margin: -32px 0; }
/* Menu button */
.menu-toggle {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.5rem 0.9rem;
  background: transparent;
  border: 1px solid rgba(245, 240, 230, 0.28);
  border-radius: 999px;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.menu-toggle:hover { background: rgba(245, 240, 230, 0.08); border-color: var(--paper); }
.menu-toggle__icon {
  display: inline-flex; flex-direction: column; gap: 4px;
  width: 16px;
}
.menu-toggle__icon span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-fast) var(--ease-out);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child  { transform: translateY(-2.5px) rotate(-45deg); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-backdrop {
  position: fixed; inset: 0;
  background: rgba(20, 17, 14, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-out);
  z-index: 40;
}
.sidebar-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.sidebar-backdrop[hidden] { display: block; }

.sidebar {
  position: fixed;
  top: 0; right: 0;
  height: 100dvh;
  width: min(420px, 92vw);
  background: var(--ink);
  color: var(--paper);
  border-left: 1px solid rgba(245, 240, 230, 0.12);
  transform: translateX(100%);
  transition: transform var(--dur-med) var(--ease-out);
  z-index: 50;
  display: flex; flex-direction: column;
  box-shadow: -30px 0 60px -30px rgba(0,0,0,0.55);
}
.sidebar__header { border-bottom-color: rgba(245, 240, 230, 0.18); }
.sidebar__brand { color: var(--paper); }
.sidebar__close {
  border-color: rgba(245, 240, 230, 0.3);
  color: var(--paper);
}
.sidebar__close:hover { background: rgba(245, 240, 230, 0.1); border-color: var(--paper); }
.sidebar__group-label { color: rgba(245, 240, 230, 0.65); }
.sidebar__nav { border-bottom-color: rgba(245, 240, 230, 0.18); }
.sidebar__link { color: var(--paper); }
.sidebar__num { color: rgba(245, 240, 230, 0.6); }
@media (hover: hover) and (pointer: fine) {
  .sidebar__link:hover {
    background: rgba(245, 240, 230, 0.08);
    border-left-color: var(--magenta);
  }
}
.sidebar__shop { border-bottom-color: rgba(245, 240, 230, 0.18); }
.sidebar__shop-empty p { color: var(--paper); }
.sidebar__soon { color: rgba(245, 240, 230, 0.7); }
.sidebar__foot {
  border-top-color: rgba(245, 240, 230, 0.18);
  color: rgba(245, 240, 230, 0.7);
}
.sidebar__foot a { color: var(--paper); }
.sidebar__foot a:hover { border-bottom-color: var(--paper); }
.sidebar.is-open {
  transform: translateX(0);
}

.sidebar__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.sidebar__brand {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.sidebar__brand img {
  width: 72px; height: 72px;
  object-fit: contain;
  margin: -16px 0;
}
.sidebar__close {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(245, 240, 230, 0.3);
  color: var(--paper);
  display: grid; place-items: center;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.sidebar__close:hover { background: rgba(245, 240, 230, 0.1); border-color: var(--paper); }
.sidebar__close svg { width: 18px; height: 18px; }

.sidebar__group-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(245, 240, 230, 0.65);
  padding: 1.5rem 1.5rem 0.75rem;
  display: block;
}

.sidebar__nav { display: flex; flex-direction: column; border-bottom: 1px solid rgba(245, 240, 230, 0.18); padding-bottom: 1rem; }
.sidebar__link {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-2);
  letter-spacing: -0.015em;
  color: var(--paper);
  border-left: 3px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.sidebar__link > span:first-child {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-out);
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .sidebar__link:hover {
    background: rgba(245, 240, 230, 0.08);
    border-left-color: var(--magenta);
  }
  .sidebar__link:hover > span:first-child { transform: translateX(4px); }
}
.sidebar__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(245, 240, 230, 0.55);
  letter-spacing: 0.18em;
}

.sidebar__shop {
  border-bottom: 1px solid rgba(245, 240, 230, 0.18);
  padding-bottom: 1.5rem;
}
.sidebar__shop-empty {
  padding: 0 1.5rem;
  display: grid; gap: 0.4rem;
}
.sidebar__shop-empty p {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-0);
  color: var(--paper);
}
.sidebar__soon {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(245, 240, 230, 0.7);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.sidebar__soon::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--yellow) 30%, transparent);
}

.sidebar__foot {
  margin-top: auto;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(245, 240, 230, 0.18);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(245, 240, 230, 0.7);
}
.sidebar__foot a { color: var(--paper); border-bottom: 1px solid transparent; transition: border-color var(--dur-fast) var(--ease-out); }
.sidebar__foot a:hover { border-bottom-color: var(--paper); }

/* Lock body scroll when sidebar is open */
body.no-scroll { overflow: hidden; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  /* Hero caps at (viewport - marquee) so the marquee is guaranteed visible
     on the initial fold. --marquee-h is set live by JS. Content that
     doesn't fit is clipped by overflow:hidden. */
  height: calc(100svh - var(--marquee-h, 170px));
  min-height: 560px;
  padding: 6rem var(--page-x) 2.5rem;
  display: grid;
  align-content: center;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}
@media (max-width: 720px) {
  .hero {
    height: auto;
    min-height: calc(100svh - var(--marquee-h, 110px));
  }
}

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

/* Shop now CTA + chips grouped */
.hero__ctas {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2rem;
  margin-top: 0.5rem;
}
.hero__cta-row {
  display: flex; align-items: center; gap: 1.5rem;
  flex-wrap: wrap;
}
.hero__trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  width: 100%;
}
.hero__trust li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--rule);
}
.hero__trust li:last-child { border-bottom: none; }
.hero__trust svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 0;
}
.hero__trust li:nth-child(1) svg { color: var(--cyan); }
.hero__trust li:nth-child(2) svg { color: var(--magenta); }
.hero__trust li:nth-child(3) svg { color: var(--yellow); }
.hero__trust span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  min-width: 0;
}
.hero__trust strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.2;
  white-space: nowrap;
}
.hero__trust em {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-style: normal;
  color: var(--ink-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==============================================================
   HERO CAROUSEL (Aceternity-style horizontal snap-scroll)
   ============================================================== */
/* ============================================================
   HERO PRODUCT GRID — editorial 5-tile layout
   Flagship tile (Digital Invitations) sits on the left spanning
   both rows; the other four products fill a 2×2 quadrant on the
   right. All visible at once — no clicking through to browse.
   ============================================================ */
.hero__grid {
  width: 100%;
  min-width: 0;
  max-width: 560px;
  justify-self: end;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  aspect-ratio: 1 / 1.05;
}
@media (max-width: 720px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    aspect-ratio: auto;
    max-width: none;
  }
}
@media (max-width: 480px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

.hero__tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-deep);
  color: var(--paper);
  box-shadow: 0 14px 34px -22px rgba(20, 17, 14, 0.5);
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
  min-height: 140px;
}
.hero__tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94);                     /* light unification pass so mismatched product photos read as a set */
  transition: transform var(--dur-med) var(--ease-out);
}

/* Bottom scrim + top film noise so the meta text stays legible on any
   photo. The film noise is intentionally soft — it makes the whole
   grid feel like a single editorial layout rather than five loose
   photos. */
.hero__tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(20, 17, 14, 0.72) 0%, rgba(20, 17, 14, 0.15) 45%, rgba(20, 17, 14, 0) 65%),
    linear-gradient(180deg, rgba(20, 17, 14, 0.15) 0%, rgba(20, 17, 14, 0) 30%);
  pointer-events: none;
  z-index: 1;
}

.hero__tile-meta {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 2;
  display: grid;
  gap: 0.2rem;
}

.hero__tile-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: color-mix(in oklab, var(--paper) 68%, transparent);
}

.hero__tile-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.9rem, 1.1vw + 0.5rem, 1.15rem);
  letter-spacing: -0.005em;
  color: var(--paper);
  line-height: 1.15;
}

.hero__tile-desc {
  display: none;                              /* hidden on small tiles by default; flagship overrides below */
  font-size: 0.78rem;
  color: color-mix(in oklab, var(--paper) 82%, transparent);
  line-height: 1.4;
  margin-top: 0.4rem;
  max-width: 30ch;
}

/* Flagship — Digital Invitations. Large tile spanning both rows on desktop.
   Bigger title, description visible, more presence. */
.hero__tile--flagship {
  grid-column: 1 / span 1;
  grid-row: 1 / span 2;
}
.hero__tile--flagship .hero__tile-title {
  font-size: clamp(1.3rem, 1.4vw + 0.8rem, 1.9rem);
}
.hero__tile--flagship .hero__tile-eyebrow {
  font-size: 0.62rem;
}
.hero__tile--flagship .hero__tile-desc {
  display: block;
}
@media (max-width: 720px) {
  .hero__tile--flagship {
    grid-column: 1 / -1;                      /* spans full width above the 2×2 grid */
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }
}
@media (max-width: 480px) {
  .hero__tile--flagship { grid-column: 1; }
}

/* Hover: subtle lift + image zoom — familiar magazine card interaction. */
@media (hover: hover) and (pointer: fine) {
  .hero__tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 44px -22px rgba(20, 17, 14, 0.55);
  }
  .hero__tile:hover img { transform: scale(1.05); }
}
.btn-shop {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.btn-shop svg { width: 20px; height: 20px; transition: transform var(--dur-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn-shop:hover { background: var(--magenta); border-color: var(--magenta); transform: translateY(-2px); }
  .btn-shop:hover svg { transform: translateX(4px); }
}
.hero__inner {
  max-width: var(--max);
  margin-inline: auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero__copy { display: grid; gap: 2rem; align-content: center; }
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
}
.hero__eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; }
.hero__eyebrow::before {
  content: ""; width: 32px; height: 1px; background: var(--ink-mute);
}
.hero__title {
  max-width: 20ch;
  font-size: clamp(2rem, 1.2rem + 2.8vw, 4rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.hero__lede { max-width: 34ch; }

/* Registration marks — CMYK print bleeds in the corners */
.reg-mark {
  position: absolute;
  width: 42px; height: 42px;
  opacity: 0.55;
}
.reg-mark--tl { top: 5.5rem; left: var(--page-x); }
.reg-mark--tr { top: 5.5rem; right: var(--page-x); }
.reg-mark--bl { bottom: 2rem; left: var(--page-x); }
.reg-mark--br { bottom: 2rem; right: var(--page-x); }

/* CMYK color chips in hero */
.chips {
  display: flex; gap: 0.4rem;
  margin-top: 0.5rem;
  align-items: center;
}
.chip {
  width: 14px; height: 14px;
  border-radius: 50%;
  outline: 1px solid rgba(20,17,14,0.15);
  outline-offset: 1px;
}
.chip--c { background: var(--cyan); }
.chip--m { background: var(--magenta); }
.chip--y { background: var(--yellow); }
.chip--k { background: var(--key); }
.chips__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin-left: 0.5rem;
}

/* Scroll cue — desktop only. On mobile the marquee below is enough of a scroll cue. */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  pointer-events: none;
}
.scroll-cue__line {
  position: relative;
  width: 1px; height: 44px;
  overflow: hidden;
  background: color-mix(in oklab, var(--ink-mute) 25%, transparent);
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -60%;
  height: 60%;
  background: linear-gradient(to bottom, transparent, var(--ink-mute));
  animation: scroll-travel 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes scroll-travel {
  0%   { transform: translateY(0); }
  100% { transform: translateY(260%); }
}

@media (max-width: 720px) {
  .scroll-cue { display: none; }
}

/* ============================================================
   MASTHEAD — big wordmark over walking crowd
   ============================================================ */
.masthead {
  position: relative;
  width: 100%;
  min-height: 44vh;
  overflow: hidden;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}
.masthead__word {
  position: relative;
  z-index: 3;
  margin: 0;
  width: 100%;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 13vw, 28rem);
  line-height: 0.82;
  letter-spacing: -0.055em;
  padding: 0;
  opacity: 0.85;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}
.mchar { display: inline-block; }
.mchar--c { color: var(--cyan); }
.mchar--m { color: var(--magenta); }
.mchar--y { color: var(--yellow); }
.mchar--k { color: var(--ink); }

.crowd {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.crowd__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  filter: grayscale(0.9) contrast(1.05);
}
.crowd__fade {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 35%;
  background: linear-gradient(to bottom, var(--paper), transparent);
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 720px) {
  .masthead { min-height: 24vh; padding: 1rem 0; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  padding: 0;
  border-block: 1px solid var(--rule);
  background: var(--paper);
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee__item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.8vw, 3rem);
  letter-spacing: -0.015em;
  padding: 1.5rem 2.5rem;
  display: flex; align-items: center;
  white-space: nowrap;
}
.marquee__item--c { background: var(--cyan);    color: var(--paper); }
.marquee__item--m { background: var(--magenta); color: var(--paper); }
.marquee__item--y { background: var(--yellow);  color: var(--ink); }
.marquee__item--k { background: var(--ink);     color: var(--paper); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ============================================================
   INTRO (What we make)
   ============================================================ */
.intro {
  padding: 8rem 0 6rem;
}
.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.intro__meta { display: grid; gap: 1rem; align-content: start; }
.intro__body p { font-size: var(--step-1); line-height: 1.4; margin: 0; }
.intro__body p + p { margin-top: 1.2rem; }
@media (max-width: 820px) {
  .intro__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   HIGHLIGHTS (home page — 3 cards linking to catalog)
   ============================================================ */
.highlights {
  padding: 6rem 0;
  border-top: 1px solid var(--rule);
}
.highlights__header { display: grid; gap: 1rem; margin-bottom: 3rem; max-width: 60ch; }

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .highlight-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .highlight-grid { grid-template-columns: 1fr; } }

.highlight-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.highlight-card__img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper);
}
.highlight-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-med) var(--ease-out);
}
.highlight-card__body {
  padding: 1.5rem;
  display: grid;
  gap: 0.5rem;
  align-content: start;
  position: relative;
}
.highlight-card__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
}
.highlight-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.highlight-card__desc {
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin: 0;
  max-width: 34ch;
}
.highlight-card__cta {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.highlight-card__cta span {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .highlight-card:hover {
    transform: translateY(-4px);
    border-color: var(--ink);
    box-shadow: 0 30px 60px -35px rgba(20, 17, 14, 0.35);
  }
  .highlight-card:hover .highlight-card__img { transform: scale(1.04); }
  .highlight-card:hover .highlight-card__cta span { transform: translateX(4px); }
}

.highlights__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 2.5rem;
  margin-top: 3rem;
  border-top: 1px dashed var(--rule);
}
.highlights__all {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.4rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.highlights__all svg { width: 20px; height: 20px; transition: transform var(--dur-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .highlights__all:hover { background: var(--magenta); }
  .highlights__all:hover svg { transform: translateX(4px); }
}
.highlights__count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
}

/* ============================================================
   CATALOG PAGE — hero + outro
   ============================================================ */
.catalog-hero {
  padding: 10rem var(--page-x) 4rem;
  border-bottom: 1px solid var(--rule);
}
.catalog-hero .h-display { font-size: var(--step-4); max-width: 12ch; margin: 0.5rem 0 1.5rem; }
.catalog-hero .lede { max-width: 46ch; }

.catalog-outro {
  padding: 6rem 0 8rem;
  border-top: 1px solid var(--rule);
}
.catalog-outro__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: end;
}
.catalog-outro__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 720px) {
  .catalog-outro__inner { grid-template-columns: 1fr; align-items: start; gap: 2rem; }
}

/* ============================================================
   PRODUCT SECTIONS + PARALLAX
   ============================================================ */
.product {
  padding: 4rem 0;
  border-top: 1px solid var(--rule);
}
.product__header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2rem;
}
.product__num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  padding-bottom: 0.4rem;
}
.product__title-block { display: grid; gap: 0.75rem; }
.product__desc {
  font-size: var(--step-0);
  max-width: 44ch;
  color: var(--ink-soft);
  margin: 0;
}
.product__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  padding-bottom: 0.4rem;
}
@media (max-width: 720px) {
  .product__header { grid-template-columns: 1fr; gap: 1rem; }
  .product__num, .product__tag { padding-bottom: 0; }
}

/* Parallax 3-column */
.parallax {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.parallax__col {
  display: grid;
  gap: 1.25rem;
  will-change: transform;
}
.parallax__item {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-deep);
  box-shadow: 0 1px 0 rgba(20,17,14,0.06), 0 20px 40px -30px rgba(20,17,14,0.35);
}
.parallax__item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 460px;
  object-fit: cover;
  transition: transform var(--dur-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .parallax__item:hover img { transform: scale(1.03); }
}

/* Portrait phone screenshots for digital-invitations get correct AR */
.parallax__item--phone img { aspect-ratio: 9 / 16; object-fit: cover; }

/* For fewer images, single-column tall spread */
.parallax--2col { grid-template-columns: 1fr 1fr; }
.parallax--single { grid-template-columns: 1fr; max-width: 780px; margin: 0 auto; }

@media (max-width: 720px) {
  .parallax, .parallax--2col { grid-template-columns: 1fr; }
  .parallax__col { transform: none !important; }
}

/* Two-tier digital invitations layout */
.tier { display: grid; gap: 1.5rem; margin-top: 2rem; padding-top: 2rem; }
.tier + .tier { border-top: 1px dashed var(--rule); margin-top: 3rem; padding-top: 2.5rem; }
.tier__label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}
.tier__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--paper);
  background: var(--ink);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.tier__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.35rem;
}
.tier__desc { font-size: var(--step-0); color: var(--ink-soft); max-width: 52ch; margin: 0; }

/* Fine-print note under the microsite previews — sets accurate expectations
   about what CAN be personalized versus what stays fixed. Kept quiet: mono
   type, mid-ink color, subtle asterisk mark. Sits below the previews grid
   / dots so it reads as a footnote to the tile row above. */
.tier__note {
  margin: 1.6rem auto 0;
  max-width: 60ch;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: calc(var(--radius) * 0.55);
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink-soft);
  text-align: left;
}
.tier__note-mark {
  display: inline-block;
  margin-right: 0.35em;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink);
  transform: translateY(-1px);
}

/* Canva link — big external CTA card with the real Canva site as backdrop */
.canva-link {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.5rem 2rem;
  min-height: 200px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--paper);
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  background-image:
    linear-gradient(90deg, rgba(20, 17, 14, 0.72) 0%, rgba(20, 17, 14, 0.42) 55%, rgba(20, 17, 14, 0.25) 100%),
    url("../img/products/digital-invitations/canva-preview.jpg");
  background-size: cover;
  background-position: center 18%;
  background-repeat: no-repeat;
}
.canva-link::after {
  /* subtle grain to keep the photo from looking flat under the tint */
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}
.canva-link__body { position: relative; z-index: 1; display: grid; gap: 0.4rem; }
.canva-link__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: color-mix(in oklab, var(--paper) 78%, transparent);
}
.canva-link__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-2);
  letter-spacing: -0.015em;
  color: var(--paper);
}
.canva-link__meta {
  font-size: var(--step--1);
  color: color-mix(in oklab, var(--paper) 72%, transparent);
  max-width: 40ch;
}
.canva-link__arrow {
  position: relative;
  z-index: 1;
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.canva-link__arrow svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .canva-link:hover { border-color: var(--ink); transform: translateY(-2px); }
  .canva-link:hover .canva-link__arrow { background: var(--magenta); color: var(--paper); transform: translate(3px, -3px); }
}
@media (max-width: 560px) {
  .canva-link { flex-direction: column; align-items: flex-start; text-align: left; padding: 2rem 1.5rem; }
  .canva-link__arrow { align-self: flex-end; }
}

/* ============================================================
   TEMPLATE PREVIEW TILES — mobile-phone frames.
   The outer .preview-card is the phone bezel (uniform dark),
   the inner .preview-card__stage is the "screen" — its bg,
   type, and palette carry each template's identity. Notch
   and home indicator are painted with pseudo-elements.
   ============================================================ */
.previews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
  padding: 1rem 0;
  justify-items: center;
}
@media (max-width: 960px) and (min-width: 641px) {
  .previews { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
}

/* Mobile: horizontal scroll-snap slider so users see the three
   templates without scrolling through a tall stack. Desktop keeps
   the 3-column grid above. */
@media (max-width: 640px) {
  .previews {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 1rem 1.5rem 0.5rem;
    gap: 1rem;
    scroll-padding-inline: 1.5rem;
    /* Let the slider bleed to the viewport edges even if a parent
       has centered padding */
    margin-inline: calc(50% - 50vw);
    padding-inline: 1.5rem;
  }
  .previews::-webkit-scrollbar { display: none; }

  .previews > .preview-card {
    flex: 0 0 82vw;
    max-width: 320px;
    scroll-snap-align: center;
  }
}

/* Pagination dots — mobile-only cue that the slider has more cards */
.previews-dots {
  display: none;
}
@media (max-width: 640px) {
  .previews-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
  }
  .previews-dots li {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ink);
    opacity: 0.22;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .previews-dots li.is-active {
    opacity: 0.85;
    transform: scale(1.4);
  }
}

/* Phone bezel — uniform across all three templates. */
.preview-card {
  position: relative;
  display: block;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 17;
  padding: 10px 10px 22px;
  border-radius: 38px;
  background: linear-gradient(135deg, #1c1c1e 0%, #0a0a0c 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 22px 44px -20px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  container-type: inline-size;
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .preview-card:hover {
    transform: translateY(-6px);
    box-shadow:
      0 34px 68px -28px rgba(0, 0, 0, 0.55),
      inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  }
}

/* Dynamic island / notch — small black pill floating at the top of the
   screen area, inside the bezel padding. */
.preview-card::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 26%;
  min-width: 66px;
  max-width: 92px;
  height: 18px;
  background: #000;
  border-radius: 999px;
  z-index: 3;
  pointer-events: none;
}

/* Home indicator — white pill along the bottom bezel gap. */
.preview-card::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 4px;
  background: rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  z-index: 3;
  pointer-events: none;
}

/* The phone screen. `transform:translateZ(0)` promotes the stage onto its
   own compositing layer so the 28px border-radius reliably clips its
   content (fixes the swatch bleed past the rounded bottom corners on
   iOS 16/17 Safari). Media (poster/video) and text share the same
   stacking context — video sits at the bottom, gradient scrims sit
   above it, and text sits on top. */
.preview-card__stage {
  position: absolute;
  inset: 10px 10px 22px;
  border-radius: 28px;
  background: var(--tile-bg);                 /* fallback shown before poster/video loads */
  color: var(--tile-ink);
  overflow: hidden;
  transform: translateZ(0);
  z-index: 1;
}

/* Video / poster layer that fills the phone screen and shows real
   template content behind the metadata. Positioned to the same inset
   as the stage so it stays clipped to the phone-screen shape (no
   bleed onto the bezel). Poster is used as the resting frame; the
   video only starts playing on desktop hover (see main.js). */
.preview-card__media {
  position: absolute;
  inset: 0;                                   /* fills the stage; stage's overflow:hidden clips it to the rounded phone screen */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  z-index: 0;                                 /* behind scrims + text, above stage's tile-bg fallback */
  opacity: 0;                                 /* fade in once the poster is ready */
  transition: opacity 0.6s ease;
}
.preview-card.is-media-ready .preview-card__media { opacity: 1; }

/* Soft scrims at top and bottom of the phone screen so the metadata
   stays readable against any video frame. Kept subtle — the middle
   of the screen is unobstructed so the template's hero content
   remains the visual anchor. */
.preview-card__stage::before,
.preview-card__stage::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease;
}
.preview-card__stage::before {
  top: 0;
  height: 18%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0) 100%);
}
.preview-card__stage::after {
  bottom: 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0) 100%);
}

/* Bottom foot stack: display name + palette swatches + pitch line.
   All grouped together so the top of the phone screen stays clear
   for the template's hero content. Layered on the bottom scrim. */
.preview-card__foot {
  position: absolute;
  bottom: 1.2rem;
  left: 1.1rem;
  right: 1.1rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

/* Pitch line — italic serif one-liner selling the vibe. Sits directly
   under the palette swatches so it reads as the caption to the identity
   above it. */
.preview-card__pitch {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(0.58rem, 3.4cqi, 0.76rem);
  line-height: 1.35;
  color: rgba(255, 253, 246, 0.88);
  text-align: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  margin-top: 0.15rem;
}

.preview-card__display {
  font-family: var(--tile-font, var(--font-display));
  font-size: var(--tile-size, clamp(2rem, 16cqi, 3.2rem));
  font-style: var(--tile-style, normal);
  line-height: 1;
  letter-spacing: var(--tile-tracking, -0.01em);
  text-transform: var(--tile-case, none);
  color: rgba(255, 253, 246, 0.98);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  display: block;
}

.preview-card__swatches {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}
.preview-card__swatches li {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* Per-template identity — only tokens change, layout is shared.
   Sizes use cqi (container inline size) so text scales with the phone
   screen width rather than the viewport. */
.preview-card--aurora {
  --tile-bg: #B7C4B0;                /* pale sage — matches Aurora's --sage token, garden-timeless mood */
  --tile-ink: #33302A;               /* deep warm brown — reads clearly on the pale bg */
  --tile-font: "Bodoni Moda", "Playfair Display", serif;
  --tile-size: clamp(2rem, 20cqi, 3.2rem);
  --tile-tracking: 0.01em;
  --tile-case: none;
}
.preview-card--azure {
  --tile-bg: #3A5670;                /* dusk-over-water navy — matches --depth lifted slightly for lighter mood */
  --tile-ink: #E5EDF3;               /* cool porcelain-silver */
  --tile-font: "Bodoni Moda", "Playfair Display", serif;
  --tile-size: clamp(2rem, 20cqi, 3.2rem);
  --tile-tracking: 0.01em;
  --tile-case: none;
}
.preview-card--nocturne {
  --tile-bg: #0f0d0b;
  --tile-ink: #ecebe6;
  --tile-font: "Bodoni Moda", "Playfair Display", serif;
  --tile-size: clamp(2rem, 20cqi, 3.2rem);
  --tile-tracking: 0.01em;
  --tile-case: none;
}

/* ============================================================
   PREVIEW MODAL — phone-frame live preview of a template.
   Opens on desktop from .preview-card clicks. Touch/small
   screens skip the modal entirely (they're already on mobile).
   ============================================================ */
.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.preview-modal:not([hidden]) { display: flex; }

.preview-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 5, 3, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.35s ease;
  cursor: pointer;
}
.preview-modal.is-open .preview-modal__backdrop { opacity: 1; }

.preview-modal__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s ease;
}
.preview-modal.is-open .preview-modal__inner {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* The phone chassis. The mask-image + translateZ(0) pair is the
   canonical Safari workaround for iframe content bleeding past a
   rounded-corner parent — Safari won't clip an iframe to its parent's
   border-radius unless the parent is on its own compositing layer. */
.preview-modal__phone {
  position: relative;
  height: min(84vh, 780px);
  aspect-ratio: 9 / 18;
  max-width: 92vw;
  padding: 12px 12px 24px;
  border-radius: 44px;
  background: linear-gradient(135deg, #1c1c1e 0%, #0a0a0c 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, 0.65),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
          mask-image: radial-gradient(white, black);
}

.preview-modal__notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 26%;
  min-width: 76px;
  max-width: 108px;
  height: 22px;
  background: #000;
  border-radius: 999px;
  z-index: 4;
  pointer-events: none;
}
.preview-modal__home {
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 4px;
  background: rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  z-index: 4;
  pointer-events: none;
}

/* The template rendered as a mobile viewport */
.preview-modal__iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 32px;
  background: var(--paper);
  display: block;
}

.preview-modal__loading {
  position: absolute;
  inset: 12px 12px 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 32px;
  background: var(--paper);
  color: var(--ink-mute);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.preview-modal.is-loaded .preview-modal__loading { opacity: 0; }

/* Action row beneath the phone */
.preview-modal__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.preview-modal__external,
.preview-modal__close {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.preview-modal__external:hover,
.preview-modal__close:hover {
  background: rgba(255, 255, 255, 0.16);
}
.preview-modal__external:active,
.preview-modal__close:active { transform: scale(0.97); }

.preview-modal__external svg,
.preview-modal__close svg { width: 14px; height: 14px; }

.preview-modal__close { padding: 0.65rem 0.75rem; }

/* Lock body scroll while modal is open */
body.preview-modal-open {
  overflow: hidden;
  touch-action: none;
}

/* Small screens: don't render the modal at all. Let the anchor
   navigate to the template as normal — the phone metaphor is
   redundant when you're already on a phone. */
@media (max-width: 640px), (hover: none) {
  .preview-modal { display: none !important; }
}

/* ============================================================
   PARTNERS (Consignment logo cloud)
   ============================================================ */
.partners {
  padding: 6rem 0;
  border-top: 1px solid var(--rule);
}
.partners__inner { display: grid; gap: 3rem; }
.partners__header { display: grid; gap: 1rem; max-width: 60ch; }

.partners__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: 2.5rem 0;
  border-block: 1px solid var(--rule);
}

.partner {
  flex: 0 0 auto;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0 1rem;
  filter: grayscale(1) contrast(0.9) brightness(0.9);
  opacity: 0.65;
  transition: filter var(--dur-med) var(--ease-out), opacity var(--dur-med) var(--ease-out);
}
.partner:hover {
  filter: none;
  opacity: 1;
}
.partner img {
  max-height: 44px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.partner--tall { height: 80px; }
.partner--tall img { max-height: 80px; max-width: 100px; }
.partner--xl { height: 110px; padding: 0 0.5rem; }
.partner--xl img { max-height: 110px; max-width: 110px; }

/* Placeholder styling — shown when img fails to load (no file yet) */
.partner__name {
  display: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink-mute);
  letter-spacing: -0.01em;
  border: 1px dashed var(--rule);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  white-space: nowrap;
}
.partner--placeholder img { display: none; }
.partner--placeholder .partner__name { display: inline-flex; }

/* ============================================================
   TIKTOK REELS — reels touch shoulder-to-shoulder, native width
   ============================================================ */
.reels {
  padding: 5rem 0 4rem;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 2.5rem;
}
.reels__header { display: grid; gap: 1rem; max-width: 60ch; }

.reels__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  align-items: stretch;
  padding: 0 var(--page-x);
}
/* Click-to-play TikTok card — poster + play button at rest. On click JS
   swaps in the TikTok iframe. At rest the card is 9:16 vertical; once
   the iframe loads, we lock height at 730 px so TikTok's full player
   fits without cropping. */
.reels__embed {
  position: relative;
  width: 325px !important;
  max-width: 325px !important;
  min-width: 0 !important;
  aspect-ratio: 9 / 16;
  height: auto;
  margin: 0 !important;
  flex: 0 0 auto;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  overflow: hidden;
  display: block;
  padding: 0;
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .reels__embed:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 44px -22px rgba(20, 17, 14, 0.45);
  }
  .reels__embed:hover .reels__play {
    transform: translate(-50%, -50%) scale(1.08);
    background: rgba(255, 255, 255, 0.95);
  }
}
.reels__embed:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 3px;
}

/* Poster image fills the card. On error (missing poster), it hides
   itself via inline onerror and the paper-deep background shows. */
.reels__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

/* Centered play button — circle + triangle glyph. */
.reels__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  display: grid;
  place-items: center;
  pointer-events: none;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.35);
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.reels__play svg { width: 30px; height: 30px; margin-left: 4px; }

/* Handle chip — bottom-left tag identifying the account. */
.reels__handle {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  padding: 0.3rem 0.65rem;
  background: rgba(20, 17, 14, 0.7);
  color: rgba(245, 240, 230, 0.95);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}

/* When JS injects the TikTok iframe, lock the card to TikTok's full-
   player height (730 px) and hide the click-to-play chrome. */
.reels__embed.is-loaded {
  aspect-ratio: auto;
  height: 730px;
  cursor: default;
}
.reels__embed.is-loaded .reels__poster,
.reels__embed.is-loaded .reels__play,
.reels__embed.is-loaded .reels__handle {
  display: none;
}
.reels__embed.is-loaded > iframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  margin: 0 !important;
  overflow: hidden;
}

/* Mobile: turn the vertical stack into a horizontal snap-scrolling carousel */
@media (max-width: 720px) {
  .reels__grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem var(--page-x);
    gap: 0.75rem;
    /* Room so the first + last cards can snap centered on any viewport */
    scroll-padding-inline: max(var(--page-x), calc(50vw - 162.5px));
    padding-inline: max(var(--page-x), calc(50vw - 162.5px));
    justify-content: flex-start;
  }
  .reels__grid::-webkit-scrollbar { display: none; }
  .reels__embed {
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
}

/* Placeholder tiles — dashed frame, disappears once a TikTok embed replaces it */
.reels__placeholder {
  width: 100%;
  max-width: 325px;
  aspect-ratio: 9 / 16;
  border: 1.5px dashed var(--rule);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  gap: 0.4rem;
  background: color-mix(in oklab, var(--paper) 92%, transparent);
}
.reels__placeholder-label {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}
.reels__placeholder-hint {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
}


.reels__foot { display: flex; justify-content: center; }
.reels__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink);
  background: var(--paper);
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.reels__link svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) {
  .reels__link:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-1px); }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: 6rem 0;
  border-top: 1px solid var(--rule);
}
.testimonials__inner { display: grid; gap: 3rem; }
.testimonials__header { display: grid; gap: 1rem; max-width: 60ch; }

/* Facebook post embeds — 3-across row on desktop, stacks on narrow screens */
.testimonial-embeds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
  justify-items: center;
  max-width: 1560px;
  margin-inline: auto;
}
.testimonial-embed {
  width: 100%;
  max-width: 500px;
}
.testimonial-embed iframe {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
}

/* Manual quote card — mirrors the visual weight of a Facebook post embed. */
.testimonial-quote {
  width: 100%;
  max-width: 500px;
  margin: 0;
  padding: 1rem 1.15rem 1.15rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1), 0 0 1px rgba(0,0,0,0.1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1c1e21;
  display: grid;
  gap: 0.75rem;
}
.testimonial-quote__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.testimonial-quote__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  background: color-mix(in oklab, var(--magenta) 25%, var(--paper));
  color: var(--magenta);
}
.testimonial-quote__avatar--c {
  background: color-mix(in oklab, var(--cyan) 22%, var(--paper));
  color: var(--cyan);
}
.testimonial-quote__avatar--m {
  background: color-mix(in oklab, var(--magenta) 25%, var(--paper));
  color: var(--magenta);
}
.testimonial-quote__avatar--y {
  background: color-mix(in oklab, var(--yellow) 30%, var(--paper));
  color: color-mix(in oklab, var(--yellow) 70%, var(--ink));
}
.testimonial-quote__who { display: grid; line-height: 1.25; flex: 1; min-width: 0; }
.testimonial-quote__name { font-weight: 600; font-size: 0.9rem; color: #050505; }
.testimonial-quote__when { font-size: 0.78rem; color: #65676b; }
.testimonial-quote__fb { width: 20px; height: 20px; flex-shrink: 0; }
.testimonial-quote__body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
  color: #050505;
  white-space: pre-line;
}
.testimonial-quote__source {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid #ced0d4;
  font-size: 0.75rem;
  color: #65676b;
  font-weight: 500;
}
.testimonial-quote__source svg { width: 12px; height: 12px; }
@media (hover: hover) and (pointer: fine) {
  .testimonial-quote__source:hover { color: #1877F2; }
}
@media (max-width: 1080px) {
  .testimonial-embeds { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .testimonial-embeds { grid-template-columns: 1fr; }
}

.testimonials__foot {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.testimonials__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink);
  background: var(--paper);
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.testimonials__link svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) {
  .testimonials__link:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-1px); }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding: 6rem 0;
  border-top: 1px solid var(--rule);
}
.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}
.faq__header {
  display: grid; gap: 1rem;
  position: sticky; top: 6rem;
}
.faq__list { display: grid; gap: 0; }

.faq__item {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0;
}
.faq__item:last-child { border-bottom: 1px solid var(--rule); }

.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  width: 22px; height: 22px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center/10px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center/1.5px 10px no-repeat;
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-out), background-size var(--dur-fast) var(--ease-out);
}
.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height var(--dur-med) var(--ease-out), opacity var(--dur-med) var(--ease-out), padding var(--dur-med) var(--ease-out);
  padding-top: 0;
}
.faq__item[open] .faq__body {
  max-height: 400px;
  opacity: 1;
  padding-top: 1rem;
}
.faq__body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--step-0);
  line-height: 1.55;
  max-width: 60ch;
}

@media (max-width: 820px) {
  .faq__grid { grid-template-columns: 1fr; gap: 2rem; }
  .faq__header { position: static; }
}

/* ============================================================
   PROCESS (How it works)
   ============================================================ */
.process {
  padding: 8rem 0;
  border-top: 1px solid var(--rule);
  background: var(--paper-deep);
}
.process__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
.process__header { display: grid; gap: 1rem; align-content: start; position: sticky; top: 6rem; }
.process__steps { display: grid; gap: 3rem; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--rule);
}
.step:last-child { border-bottom: none; padding-bottom: 0; }
.step__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  padding-top: 0.7rem;
  width: 3rem;
}
.step__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-2);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.6rem;
}
.step__body { color: var(--ink-soft); margin: 0; }
@media (max-width: 820px) {
  .process__grid { grid-template-columns: 1fr; gap: 2rem; }
  .process__header { position: static; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 10rem 0;
  border-top: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: end;
}
.contact__title { max-width: 12ch; }
.contact__ctas {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-top: 2rem;
}
.contact__cta {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 1.1rem 1.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: var(--radius);
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.contact__cta svg { width: 20px; height: 20px; }
.contact__cta--primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.contact__cta--secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .contact__cta--primary:hover { background: var(--magenta); border-color: var(--magenta); transform: translateY(-2px); }
  .contact__cta--secondary:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
}

.contact__details {
  display: grid; gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.contact__row {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding-block: 0.75rem;
  border-bottom: 1px dashed var(--rule);
}
.contact__row:last-child { border-bottom: none; }
.contact__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
}
.contact__value {
  font-family: var(--font-display);
  font-size: var(--step-0);
  color: var(--ink);
  font-weight: 500;
}
.contact__value a { border-bottom: 1px solid transparent; transition: border-color var(--dur-fast) var(--ease-out); }
.contact__value a:hover { border-bottom-color: var(--ink); }
@media (max-width: 820px) {
  .contact__grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact__row { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* ============================================================
   INQUIRE PAGE
   ============================================================ */
.inquire {
  padding: 10rem var(--page-x) 6rem;
  min-height: 100svh;
}
.inquire__wrap {
  max-width: 960px;
  margin-inline: auto;
  display: grid;
  gap: 3rem;
}
.inquire__header { display: grid; gap: 1.25rem; max-width: 32ch; }
.inquire__title { font-size: var(--step-4); max-width: 14ch; }

.inquire__form {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-deep);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.inquire__embed {
  width: 100%;
  min-height: 1400px;   /* Google Form with 9 questions renders tall */
  border: 0;
  display: block;
  background: var(--paper);
}
.inquire__fallback {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-top: 1px dashed var(--rule);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-align: center;
}
.inquire__fallback a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  transition: border-color var(--dur-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .inquire__fallback a:hover { border-bottom-color: var(--ink); }
}

.inquire__stub { display: grid; gap: 1.5rem; }
.inquire__stub h2 { margin: 0; }
.inquire__stub p { color: var(--ink-soft); margin: 0; max-width: 52ch; }

.inquire__stub-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  align-self: start;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
}
.inquire__stub-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--yellow) 30%, transparent);
}

.inquire__stub-ctas {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-top: 0.5rem;
}

.inquire__stub-fields {
  list-style: none;
  padding: 1.5rem 0 0;
  margin: 0.5rem 0 0;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 0.6rem;
  font-size: var(--step-0);
  color: var(--ink-soft);
}
.inquire__stub-fields li { display: flex; align-items: baseline; gap: 0.75rem; }
.inquire__stub-fields li::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink-mute);
  flex-shrink: 0;
  transform: translateY(-0.3em);
}
.inquire__stub-fields li:first-child::before { display: none; }
.inquire__stub-fields li:first-child span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
}

.inquire__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}
.inquire__meta > div { display: grid; gap: 0.4rem; }
.inquire__meta p { margin: 0; color: var(--ink-soft); font-size: var(--step-0); max-width: 30ch; }
.inquire__meta a { border-bottom: 1px solid var(--rule); transition: border-color var(--dur-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .inquire__meta a:hover { border-bottom-color: var(--ink); }
}
@media (max-width: 720px) {
  .inquire__meta { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ============================================================
   LEGAL PAGES (privacy, terms)
   ============================================================ */
.legal {
  padding: 9rem var(--page-x) 6rem;
  min-height: 100svh;
}
.legal__wrap {
  max-width: 720px;
  margin-inline: auto;
  display: grid;
  gap: 3rem;
}
.legal__header { display: grid; gap: 0.75rem; }
.legal__title {
  font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4rem);
  max-width: 18ch;
  line-height: 1;
}
.legal__meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  margin: 0;
}
.legal__body {
  display: grid;
  gap: 1.5rem;
  font-size: var(--step-0);
  color: var(--ink-soft);
  line-height: 1.6;
}
.legal__lede {
  font-size: var(--step-1);
  color: var(--ink);
  line-height: 1.45;
  margin: 0 0 0.5rem;
}
.legal__body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 1.5rem 0 0.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  line-height: 1.2;
}
.legal__body h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.legal__body p, .legal__body ul { margin: 0; }
.legal__body ul {
  padding-left: 1.25rem;
  display: grid;
  gap: 0.65rem;
}
.legal__body li { padding-left: 0.35rem; }
.legal__body a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  transition: border-color var(--dur-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .legal__body a:hover { border-bottom-color: var(--ink); }
}
.foot a {
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .foot a:hover { border-bottom-color: currentColor; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  padding: 2.5rem var(--page-x) 3rem;
  border-top: 1px solid rgba(245, 240, 230, 0.12);
  background: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(245, 240, 230, 0.65);
  position: relative;
  z-index: 2;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.to-top {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(5rem, 8vh, 7rem);
  z-index: 30;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  border: none;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.9);
  transition:
    opacity var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    background var(--dur-snap) var(--ease-out);
  box-shadow: 0 10px 30px -10px rgba(20,17,14,0.4);
}
.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
@media (hover: hover) and (pointer: fine) {
  .to-top:hover { background: var(--magenta); }
}
.to-top svg { width: 20px; height: 20px; }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal .word { opacity: 1; filter: none; transform: none; }
  .fade-up { opacity: 1; transform: none; }
  .parallax__col { transform: none !important; }
}

/* Homepage hero — secondary "View pricing" link next to the Shop now CTA */
.hero__pricing-link {
  align-self: center;
  padding: 0.55rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .hero__pricing-link:hover {
    color: var(--magenta);
    border-bottom-color: var(--magenta);
  }
}

/* ============================================================
   PRICING PAGE — three-tier cards + FAQ + closing CTA
   Uses the marketing site's ivory/champagne palette, editorial serif
   headings, and paper-textured cards. Middle tier is the flagship —
   raised, badged, and gets the solid ink CTA.
   ============================================================ */
.pricing-hero { padding-bottom: clamp(2rem, 4vw, 3rem); }

.pricing { padding: clamp(1rem, 3vh, 2rem) 0 clamp(4rem, 8vh, 6rem); }

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  max-width: 52rem;                          /* centered pair; keeps two cards from stretching wide on large screens */
  margin: 0 auto;
}
@media (max-width: 720px) {
  .pricing__grid { grid-template-columns: 1fr; gap: 1rem; max-width: none; }
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.4rem) clamp(1.5rem, 2.6vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px -28px rgba(20, 17, 14, 0.35);
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .price-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 46px -26px rgba(20, 17, 14, 0.45);
    border-color: color-mix(in oklab, var(--ink) 22%, var(--rule));
  }
}

/* Flagship tier — subtle raise + gold rim */
.price-card--featured {
  background: color-mix(in oklab, var(--paper) 92%, var(--yellow) 8%);
  border-color: color-mix(in oklab, var(--yellow) 55%, var(--rule));
  box-shadow: 0 22px 52px -24px rgba(217, 164, 65, 0.35);
}
@media (min-width: 961px) {
  .price-card--featured { transform: translateY(-8px); }
  .price-card--featured:hover { transform: translateY(-12px); }
}

.price-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.35rem 0.85rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
}

.price-card__head { margin-bottom: 1.4rem; }

.price-card__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.6rem;
}

.price-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 1.4vw + 0.9rem, 1.7rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
}

.price-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 1rem 0 1.2rem;
  border-bottom: 1px dashed var(--rule);
  margin-bottom: 1.4rem;
}

.price-card__from {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.price-card__amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 2.6vw + 1rem, 2.8rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.price-card__currency {
  font-family: var(--font-display);
  font-size: 0.68em;
  color: var(--ink-mute);
  margin-right: 0.05em;
  vertical-align: 0.06em;
}

.price-card__pitch {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 1.4rem;
}

.price-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: grid;
  gap: 0.55rem;
  flex: 1;
}
.price-card__features li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink);
}
.price-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--yellow) 30%, transparent);
}

.price-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: auto;
  padding: 0.85rem 1.3rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.price-card__cta svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .price-card__cta:hover { background: var(--ink); color: var(--paper); }
  .price-card__cta:hover svg { transform: translateX(3px); }
}
.price-card__cta:active { transform: scale(0.98); }

/* Flagship CTA is solid by default */
.price-card__cta--solid {
  background: var(--ink);
  color: var(--paper);
}
@media (hover: hover) and (pointer: fine) {
  .price-card__cta--solid:hover {
    background: var(--magenta);
    border-color: var(--magenta);
  }
}

/* Fine-print starting-price note */
.pricing__note {
  max-width: 62ch;
  margin: 2.75rem auto 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: calc(var(--radius) * 0.55);
  background: color-mix(in oklab, var(--paper) 82%, transparent);
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink-soft);
  text-align: left;
}
.pricing__note-mark {
  display: inline-block;
  margin-right: 0.35em;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink);
}

/* ============================================================
   PRICING FAQ — quieter section, editorial two-column on desktop
   ============================================================ */
.pricing-faq {
  background: color-mix(in oklab, var(--paper-deep) 92%, var(--paper) 8%);
  padding: clamp(4rem, 8vh, 6rem) 0;
  border-top: 1px dashed var(--rule);
}
.pricing-faq .h-section { margin-bottom: 2.5rem; text-align: center; }

.pricing-faq__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3rem;
  max-width: 64rem;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .pricing-faq__list { grid-template-columns: 1fr; gap: 1.6rem; }
}

.pricing-faq__item { max-width: 44ch; }

.pricing-faq__q {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 0.5rem;
  letter-spacing: -0.005em;
}
.pricing-faq__a {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* ============================================================
   PRICING CLOSING CTA
   ============================================================ */
.pricing-cta { padding: clamp(4rem, 8vh, 6rem) 0; text-align: center; }
.pricing-cta__inner { max-width: 42rem; margin: 0 auto; }
.pricing-cta__title {
  margin: 1rem 0 2rem;
  font-size: clamp(1.6rem, 2.2vw + 1rem, 2.3rem);
  line-height: 1.2;
  color: var(--ink);
}
.pricing-cta__actions {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   Generic .btn utility (used by pricing CTA + reusable elsewhere)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.btn svg { width: 18px; height: 18px; transition: transform var(--dur-fast) var(--ease-out); }
.btn:active { transform: scale(0.98); }

.btn--ink {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .btn--ink:hover { background: var(--magenta); border-color: var(--magenta); transform: translateY(-2px); }
  .btn--ink:hover svg { transform: translateX(4px); }
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
}

/* ============================================================
   "See pricing" text link next to catalog tiers — editorial, not a button
   ============================================================ */
.tier__actions {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  justify-self: end;                        /* right-align inside the grid tier */
  margin-top: 1.1rem;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.005em;
  text-transform: none;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.tier__actions svg {
  width: 14px;
  height: 14px;
  transition: transform var(--dur-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .tier__actions:hover { color: var(--magenta); }
  .tier__actions:hover svg { transform: translateX(4px); }
}
