/* ═══════════════════════════════════════════════════════════════
   iubito — design system (shop-redesign)
   One serif with character (Newsreader) + one quiet sans (Instrument Sans).
   Cream / wine family. No gold decoration, no script font, no emoji icons.

   Radius rule (fixed for the whole site):
     · interactive controls (buttons, chips)  = pill (999px)
     · containers & cards                     = 20px
     · inputs                                 = 12px
     · phone bezel                            = 44px outer / 34px screen
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Tokens ─────────────────────────────────────────────── */
:root {
  /* color */
  --paper:      #f7f1e6;   /* page background */
  --paper-deep: #efe5d1;   /* warm band background */
  --surface:    #fdfaf3;   /* cards, header glass base */
  --ink:        #33191f;   /* primary text */
  --ink-2:      #6d5751;   /* muted text (AA on paper) */
  --wine:       #6e2136;   /* the one accent: CTAs, links, emphasis */
  --wine-hot:   #85293f;   /* hover shade */
  --wine-deep:  #521427;   /* dark section background */
  --on-wine:    #f6ead9;   /* text on dark */
  --on-wine-2:  #dbbcab;   /* muted text on dark (AA on wine-deep) */
  --line:       #e5d8c1;   /* hairlines on light — decorative only */
  --line-strong:#d5c3a4;   /* stronger decorative hairline (rules, separators) */
  /* Boundary of an INTERACTIVE control. WCAG 1.4.11 wants 3:1 against the
     adjacent surface, and the control borders have to clear it on all three
     backgrounds they actually appear on:
       #947d50 on --surface    #fdfaf3  = 3.80:1
       #947d50 on --paper      #f7f1e6  = 3.52:1
       #947d50 on --paper-deep #efe5d1  = 3.16:1   ← the binding case
     (The review's #9a8355 measures 2.92:1 on --paper-deep, where the ghost
     buttons in a --band section sit, so it misses on that one surface.)
     Same warm bronze family, one step down in value. */
  --line-control:#947d50;
  --line-dark:  rgba(246, 234, 217, .18); /* hairlines on dark */
  --focus:      #8a3a52;

  /* type */
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-hero: clamp(2.6rem, 6vw, 4.4rem);
  --fs-peak: clamp(2.3rem, 5.8vw, 4rem);
  --fs-h2:   clamp(1.9rem, 3.8vw, 2.7rem);
  --fs-h3:   clamp(1.35rem, 2.2vw, 1.6rem);
  --fs-lead: clamp(1.05rem, 1.7vw, 1.22rem);
  --fs-body: 1.0625rem;
  --fs-small:.925rem;
  --fs-tiny: .8125rem;

  /* spacing */
  --sect:      clamp(88px, 12vw, 144px);  /* section vertical padding */
  --sect-sm:   clamp(60px, 8vw, 96px);
  --gap:       clamp(20px, 3vw, 36px);
  --wrap-max:  1160px;
  --wrap-pad:  clamp(20px, 4vw, 40px);

  /* radius */
  --r-card:  20px;
  --r-input: 12px;
  --r-pill:  999px;
  --r-phone: 44px;
  --r-screen:34px;

  /* elevation (wine-tinted, two levels only) */
  --shadow-sm: 0 10px 24px -12px rgba(82, 20, 39, .28);
  --shadow-lg: 0 34px 70px -30px rgba(82, 20, 39, .4);

  /* motion (spec §5.1) */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --t-press:   120ms;
  --t-fast:    150ms;
  --t-hover:   200ms;
  --t-ui:      250ms;
  --t-chrome:  300ms;
  --t-screen:  400ms;
  --t-reveal:  600ms;
  --t-entrance:700ms;
  --reveal-y: 20px;
  --stagger:  40ms;
}

/* ── 2. Reset & base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.has-mobilebar { padding-bottom: 0; }
@media (max-width: 899px) {
  body.has-mobilebar { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}

::selection { background: var(--wine); color: #fff; }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: var(--wine); text-decoration: none; }
a:hover { color: var(--wine-hot); }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible, .chip:focus-visible, .nav-toggle:focus-visible { border-radius: var(--r-pill); }

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 1200;
  background: var(--wine); color: #fff; padding: 10px 18px; border-radius: var(--r-pill);
}
.skip-link:focus-visible { left: 12px; color: #fff; }

/* ── 3. Layout primitives ──────────────────────────────────── */
.wrap { max-width: var(--wrap-max); margin-inline: auto; padding-inline: var(--wrap-pad); }
.wrap--narrow { max-width: 820px; }

.section       { padding-block: var(--sect); }
.section--sm   { padding-block: var(--sect-sm); }
.section--dark { background: var(--wine-deep); color: var(--on-wine); }
.section--band { background: var(--paper-deep); }

.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p  { color: var(--on-wine-2); }
.section--dark ::selection { background: var(--on-wine); color: var(--wine-deep); }

/* ── 4. Typography helpers ─────────────────────────────────── */
.h-hero { font-size: var(--fs-hero); line-height: 1.08; padding-bottom: .08em; }
.h-hero .accent-i {
  display: block;
  font-size: .62em;
  line-height: 1.25;
  margin-top: .3em;
  letter-spacing: -0.01em;
}
.h-peak { font-size: var(--fs-peak); line-height: 1.14; }
.h2     { font-size: var(--fs-h2); }
.h3     { font-size: var(--fs-h3); }

.lead   { font-size: var(--fs-lead); color: var(--ink-2); max-width: 52ch; }
.small  { font-size: var(--fs-small); }
.muted  { color: var(--ink-2); }

/* italic serif accent: the ONE signature-flourish allowed per page */
.accent-i { font-style: italic; color: var(--wine); }
.section--dark .accent-i { color: var(--on-wine); }

/* eyebrow: max 3 per page, budget enforced in markup */
.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: var(--on-wine-2); }

.price {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variant-numeric: lining-nums;
}
.price small { font-size: .58em; font-weight: 400; margin-left: .18em; }

/* ── 5. Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  font-family: var(--sans);
  font-weight: 550;
  font-size: 1rem;
  line-height: 1.2;
  padding: 15px 30px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  transition: transform var(--t-press) var(--ease-out),
              background-color var(--t-hover) var(--ease-out),
              border-color var(--t-hover) var(--ease-out),
              color var(--t-hover) var(--ease-out);
  position: relative;
}
.btn:active { transform: scale(.97); }
.btn--lg { padding: 18px 38px; font-size: 1.05rem; }

.btn--primary { background: var(--wine); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover, .btn--primary:focus-visible { color: #fff; }

.btn--ghost { border-color: var(--line-control); color: var(--wine); background: rgba(253, 250, 243, .6); }

/* dark-section variants */
.btn--light { background: var(--paper); color: var(--wine-deep); }
.btn--light:hover { color: var(--wine-deep); }
.btn--ghost-dark { border-color: var(--line-dark); color: var(--on-wine); background: transparent; }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--wine-hot); transform: translateY(-1px); }
  .btn--primary:hover:active { transform: scale(.97); }
  .btn--ghost:hover { border-color: var(--wine); }
  .btn--ghost-dark:hover { color: #fff; border-color: rgba(246, 234, 217, .45); }
  .btn--light:hover { background: #fff; transform: translateY(-1px); }
}

/* text-link with hairline underline */
.link-more {
  font-weight: 550;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  display: inline-block;
  transition: border-color var(--t-hover) var(--ease-out),
              color var(--t-hover) var(--ease-out),
              transform var(--t-press) var(--ease-out);
}
.link-more:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .link-more:hover { border-color: var(--wine); }
}

/* ── 6. Chips (filters, occasions, selectable options) ─────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line-control);
  background: var(--surface);
  color: var(--ink);
  transition: background-color var(--t-fast) linear,
              border-color var(--t-fast) linear,
              color var(--t-fast) linear,
              transform var(--t-press) var(--ease-out);
}
.chip:active { transform: scale(.97); }
.chip.is-active, .chip[aria-pressed="true"] {
  background: var(--wine);
  border-color: var(--wine);
  color: #fff;
}
@media (hover: hover) and (pointer: fine) {
  .chip:not(.is-active):not([aria-pressed="true"]):hover { border-color: var(--wine); }
}

/* ── 7. Cards ──────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  position: relative;
}
.card--pad { padding: clamp(24px, 3.4vw, 40px); }

/* hover lift with pre-rendered shadow (opacity-only animation) */
.card--lift { transition: transform var(--t-hover) var(--ease-out); }
.card--lift::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity var(--t-hover) var(--ease-out);
  pointer-events: none;
  z-index: -1;
}
@media (hover: hover) and (pointer: fine) {
  .card--lift:hover { transform: translateY(-3px); }
  .card--lift:hover::after { opacity: 1; }
}

.badge {
  display: inline-block;
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--wine);
  background: rgba(110, 33, 54, .08);
  border-radius: var(--r-pill);
  padding: 5px 13px;
}

/* ── 8. Hairline-separated inline facts (replaces ✓-strips) ── */
.fact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 0;
  font-size: var(--fs-small);
  color: var(--ink-2);
}
.fact-row > span { padding-inline: 18px; border-left: 1px solid var(--line-strong); }
.fact-row > span:first-child { padding-left: 0; border-left: 0; }
.section--dark .fact-row { color: var(--on-wine-2); }
.section--dark .fact-row > span { border-color: var(--line-dark); }

/* ── 9. Forms ──────────────────────────────────────────────── */
.field { display: grid; gap: 8px; }
.field label { font-weight: 550; font-size: var(--fs-small); }
.field label .opt { color: var(--ink-2); font-weight: 400; }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="date"],
.field textarea,
.field select {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line-control);
  border-radius: var(--r-input);
  padding: 13px 16px;
  width: 100%;
  transition: border-color var(--t-fast) linear, background-color var(--t-fast) linear;
}
.field input::placeholder, .field textarea::placeholder { color: #9c8a80; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 0;
  border-color: var(--wine);
  border-radius: var(--r-input);
}
.field .help { font-size: var(--fs-tiny); color: var(--ink-2); }
.field .error { font-size: var(--fs-tiny); color: #9c2222; display: none; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: #9c2222; }
.field.is-invalid .error { display: block; }

/* addon toggle rows (order page) */
.addon {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border: 1.5px solid var(--line-control);
  border-radius: var(--r-input);
  background: var(--surface);
  transition: border-color var(--t-fast) linear, background-color var(--t-fast) linear;
}
.addon__tick {
  flex: none;
  width: 22px; height: 22px;
  border: 1.5px solid var(--line-control);
  border-radius: 7px;
  display: grid; place-items: center;
  transition: background-color var(--t-fast) linear, border-color var(--t-fast) linear;
}
.addon__tick::after {
  content: "";
  width: 10px; height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(.5) translateY(-1px);
  opacity: 0;
  transition: transform var(--t-fast) var(--ease-out), opacity var(--t-fast) var(--ease-out);
}
.addon[aria-pressed="true"] { border-color: var(--wine); background: rgba(110, 33, 54, .05); }
.addon[aria-pressed="true"] .addon__tick { background: var(--wine); border-color: var(--wine); }
.addon[aria-pressed="true"] .addon__tick::after { opacity: 1; transform: rotate(-45deg) scale(1) translateY(-1px); }
.addon__body { flex: 1; }
.addon__label { font-weight: 550; }
.addon__desc { font-size: var(--fs-tiny); color: var(--ink-2); }
.addon__price { font-weight: 550; white-space: nowrap; }

/* order summary */
.summary { position: sticky; top: 96px; }
.summary .total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--serif); font-size: 1.5rem;
  font-variant-numeric: tabular-nums lining-nums;
}
.summary .line {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: var(--fs-small); color: var(--ink-2);
  padding-block: 7px;
  font-variant-numeric: tabular-nums;
}
@supports (opacity: 1) {
  .summary .line { transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out); }
  @starting-style { .summary .line { opacity: 0; transform: translateY(4px); } }
}

/* ── 10. Phone mockup & live demos ─────────────────────────────
   Geometry rule: the SCREEN is the ratio source, never the bezel.
   The demos are authored at 390×844, the posters are captured at
   390×844, and the JS scales the iframe by screenWidth/390 — so the
   screen box must be exactly 390:844 or the poster gets cover-cropped
   and the live iframe lands at a different size, producing a visible
   jump on every swap.

   An `aspect-ratio` on `.phone` cannot satisfy that: the padding is a
   constant, so screenAR = (W - 2p) / (W/A - 2p) changes with the
   rendered width W. Putting the ratio on `.phone__screen` and letting
   the bezel take its height from content is exact at every width. */
.phone {
  width: min(310px, 84%);
  height: auto;
  align-self: center;
  background: #241318;
  border-radius: var(--r-phone);
  padding: 10px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .14);
  position: relative;
  flex: none;
}
.phone--sm { width: min(230px, 78%); border-radius: 36px; padding: 8px; }
.phone--sm .phone__screen { border-radius: 28px; }
.phone__notch {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 78px; height: 18px;
  background: #241318;
  border-radius: 12px;
  z-index: 6;
}
.phone__screen {
  width: 100%;
  aspect-ratio: 390 / 844;   /* the one source of truth for demo geometry */
  border-radius: var(--r-screen);
  overflow: hidden;
  position: relative;
  background: var(--paper-deep);
}
/* poster paints instantly; the live iframe fades in above it */
.phone__poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.phone__screen iframe,
[data-demo] > iframe,
[data-demo-rotate] > iframe {
  position: absolute; top: 0; left: 0;
  border: 0; display: block;
  transform-origin: top left;
  pointer-events: none;
  background: transparent;
  opacity: 0;
  filter: blur(6px);
  transition: opacity var(--t-screen) var(--ease-out), filter var(--t-screen) var(--ease-out);
}
.phone__screen iframe.is-live,
[data-demo] > iframe.is-live,
[data-demo-rotate] > iframe.is-live { opacity: 1; filter: none; }

/* The product page is the one place that shows a film instead of the live
   preview: the clip is authored at exactly 390:844, the ratio the screen is
   locked to, so `cover` never crops — and it needs pointer events for its
   own controls. */
[data-demo-full] > video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border: 0; display: block;
  pointer-events: auto;
  background: #241318;
}

/* The hero rotator is a crossfade between two demos, not a screen coming on:
   spec §5.6 wants 500ms ease-in-out. shop.js removes the outgoing iframe at
   600ms, so the outgoing one is still painted for the whole fade (no blank
   frame) and only overlaps fully-opaque for ~100ms. Declared here, before the
   reduced-motion block, so that block still wins when it applies. */
[data-demo-rotate] > iframe {
  transition: opacity 500ms var(--ease-in-out), filter 500ms var(--ease-in-out);
}

/* phone caption chip */
.phone-link {
  display: flex; justify-content: center; position: relative;
  color: inherit; width: 100%;
  transition: transform var(--t-press) var(--ease-out);
}
/* the biggest tap target on the site — it must answer a press */
.phone-link__tag {
  position: absolute; bottom: -14px; left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 7px 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--wine);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  z-index: 7;
}

/* ambient float: hero + product page phones only */
@keyframes float-y {
  0%, 100% { transform: translateY(0) rotate(.4deg); }
  50%      { transform: translateY(-12px) rotate(-.4deg); }
}
.phone--float { animation: float-y 7s ease-in-out infinite; }

/* ── 11. Header ────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(247, 241, 230, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 216, 193, .8);
  transition: transform var(--t-chrome) var(--ease-drawer);
}
.site-header.is-hidden { transform: translateY(-101%); }
.site-header__in {
  max-width: var(--wrap-max); margin-inline: auto;
  display: flex; align-items: center; gap: 28px;
  padding: 12px var(--wrap-pad);
  min-height: 64px;
}
.logo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;         /* clears the 72px wordmark minimum in BRAND.md */
  font-weight: 400;        /* matches the outlined masters in brand/logo/ */
  color: var(--wine);
  line-height: 1;
  letter-spacing: -0.01em;
}
.logo:hover { color: var(--wine); }
/* The comma IS the mark, so it is the drawn path from brand/logo/iubito-mark.svg,
   never Newsreader's own comma. Geometry mirrors the logo masters exactly:
   ink 0.205 × 0.31em, top edge 0.11em above the baseline — hence bottom 0.20em
   below it. Drift it right or down and it detaches from the word. */
.logo__c {
  display: inline-block;
  width: .205em;
  height: .31em;
  margin-left: -.03em;
  position: relative;
  top: .20em;
  fill: currentColor;
}
.site-nav { margin-left: auto; display: flex; gap: 30px; font-size: var(--fs-small); font-weight: 500; }
.site-nav a { color: var(--ink-2); transition: color var(--t-hover) linear; }
.site-nav a:hover { color: var(--wine); }
.site-header .btn { margin-left: auto; padding: 10px 22px; font-size: var(--fs-small); }
.site-nav + .btn { margin-left: 0; }
/* The nav is gone below 899px (replaced by the injected drawer), so the button
   has to reclaim the gap the adjacent-sibling rule above gave to the nav, or it
   sits on the logo. Below 900px the header CTA is a touch target, so it gets a
   44px minimum; the row padding drops by 2px each side so the header keeps its
   64px height. */
@media (max-width: 899px) {
  .site-nav { display: none; }
  .site-nav + .btn { margin-left: auto; }
  .site-header__in { gap: 12px; padding-block: 10px; }
  .site-header .btn { min-height: 44px; }
}

/* footer of dark wine */
.site-footer {
  background: var(--wine-deep);
  color: var(--on-wine-2);
  padding: 56px 0 calc(40px + env(safe-area-inset-bottom));
  font-size: var(--fs-small);
}
.site-footer__in {
  display: flex; flex-wrap: wrap; gap: 28px 48px;
  align-items: flex-start; justify-content: space-between;
}
.site-footer a { color: var(--on-wine-2); transition: color var(--t-hover) linear; }
.site-footer a:hover { color: var(--on-wine); }
.site-footer .logo { color: var(--on-wine); }
.site-footer .logo small { color: var(--on-wine-2); }
/* Footer links are the only nav on mobile below the fold: 11px of vertical
   padding turns a 24px line box into a 46px tap target without moving the
   baselines, so the row-gap comes off to keep the visual rhythm. */
.site-footer nav { display: flex; gap: 0 24px; flex-wrap: wrap; }
.site-footer nav a { display: inline-block; padding-block: 11px; }
.site-footer .legal { font-size: var(--fs-tiny); }
.site-footer .legal a { padding-block: 12px; }
.site-footer .colophon {
  width: 100%; text-align: center;
  font-size: var(--fs-tiny);
  border-top: 1px solid var(--line-dark);
  padding-top: 22px; margin-top: 10px;
}

/* ── 12. Mobile CTA bar ────────────────────────────────────── */
.mobile-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 800;
  display: flex; gap: 10px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(247, 241, 230, .95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transition: transform var(--t-chrome) var(--ease-drawer);
}
.mobile-bar.is-hidden { transform: translateY(120%); }
.mobile-bar .btn { flex: 1; padding: 14px 12px; font-size: .95rem; }
.mobile-bar .btn--ghost { flex: none; }
@media (min-width: 900px) { .mobile-bar { display: none; } }

/* ── 13. Reveal system (spec §5.3) ─────────────────────────────
   Content is visible by default. JS adds html.js-reveal, which is the
   ONLY thing that can hide; reveals are one-shot time-based transitions. */
.reveal {
  transition: opacity var(--t-reveal) var(--ease-out),
              transform var(--t-reveal) var(--ease-out);
  transition-delay: calc(var(--stagger) * var(--i, 0));
}
html.js-reveal .reveal:not(.in) {
  opacity: 0;
  transform: translateY(var(--reveal-y));
  transition-delay: 0ms;
}
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
  .site-header, .mobile-bar { position: static; }
  .phone__screen iframe { display: none; }
}

/* page-load entrance (hero only) */
html.js-reveal .rise { opacity: 0; transform: translateY(24px); }
html.js-reveal .rise.in {
  opacity: 1; transform: none;
  transition: opacity var(--t-entrance) var(--ease-out),
              transform var(--t-entrance) var(--ease-out);
  transition-delay: calc(80ms * var(--i, 0));
}

/* ── 14. FAQ accordion ─────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 22px 4px;
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 500;
  transition: color var(--t-hover) linear, transform var(--t-press) var(--ease-out);
}
.faq summary:active { transform: scale(.995); }   /* full-width row: keep it tiny */
.faq summary::-webkit-details-marker { display: none; }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--wine); } }
.faq summary .ind {
  flex: none;
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--wine);
  line-height: 1;
  transition: transform var(--t-hover) var(--ease-out);
  transform-origin: center;
  align-self: center;
}
.faq details[open] summary .ind { transform: rotate(45deg); }
.faq .faq__a {
  padding: 0 4px 24px;
  color: var(--ink-2);
  max-width: 62ch;
}

/* ── 15. Testimonials ──────────────────────────────────────── */
.quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.quote-attr {
  font-family: var(--sans);
  font-style: normal;
  font-size: var(--fs-small);
  color: var(--ink-2);
  margin-top: 18px;
  display: block;
}
.quote-mini { font-size: var(--fs-small); color: var(--ink-2); }
.quote-mini em { font-family: var(--serif); font-size: 1.08rem; color: var(--ink); }

/* asymmetric proof layout: big quote left, minis right */
.proof {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.proof__minis {
  display: grid;
  gap: 22px;
  border-left: 1px solid var(--line-strong);
  padding-left: clamp(20px, 3vw, 40px);
}
@media (max-width: 767px) {
  .proof { grid-template-columns: 1fr; }
  .proof__minis { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-strong); padding-top: 24px; }
}

/* ── 16. Price tier rows ───────────────────────────────────── */
.tiers { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.tiers__row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 28px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-dark);
}
.tiers__price { font-family: var(--serif); font-size: 1.7rem; color: #fff; white-space: nowrap; }
.tiers__what strong { color: var(--on-wine); font-weight: 550; }
.tiers__what { color: var(--on-wine-2); font-size: var(--fs-small); }
@media (max-width: 560px) { .tiers__row { grid-template-columns: 1fr; padding: 18px 0; } }

/* light variant */
.tiers--light { border-color: var(--line); }
.tiers--light .tiers__row { border-color: var(--line); }
.tiers--light .tiers__price { color: var(--ink); }
.tiers--light .tiers__what strong { color: var(--ink); }
.tiers--light .tiers__what { color: var(--ink-2); }

/* price section: copy left, tiers right */
.price-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
@media (max-width: 899px) { .price-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ── 17. Steps (editorial numbered list) ───────────────────── */
.steps { display: grid; gap: 0; max-width: 780px; }
.step {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 10px 30px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--wine);
  line-height: 1;
  opacity: .85;
}
.step__t { font-size: var(--fs-h3); margin-bottom: 8px; }
.step__d { color: var(--ink-2); max-width: 56ch; }
@media (max-width: 560px) {
  .step { grid-template-columns: 1fr; gap: 6px; }
  .step__n { font-size: 1.9rem; }
}

/* ── 18. Model cards & showcase track ──────────────────────── */
.models {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
/* No `overflow: hidden` here: `.card--lift::after` paints an OUTER box-shadow,
   which lives entirely outside its own border box, so clipping the card clips
   100% of the hover shadow. The clip only ever existed to round the stage's
   top corners — so it belongs on the stage. */
.model-card {
  display: flex;
  flex-direction: column;
}
.model-card__stage {
  padding: 34px 20px 26px;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  border-radius: var(--r-card) var(--r-card) 0 0;
}
.model-card__body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.model-card__cat { font-size: var(--fs-tiny); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.model-card__name { font-size: 1.55rem; }
.model-card__pitch { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--wine); }
.model-card__desc { font-size: var(--fs-small); color: var(--ink-2); }
.model-card__meta { display: flex; align-items: baseline; gap: 12px; margin-top: auto; padding-top: 14px; }
.model-card__meta .small { color: var(--ink-2); }
.model-card__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.model-card__cta .btn { padding: 12px 24px; font-size: var(--fs-small); }

@media (max-width: 1023px) { .models { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
  .models {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding-inline: var(--wrap-pad);
    margin-inline: calc(-1 * var(--wrap-pad));
  }
  .models::-webkit-scrollbar { display: none; }
  .models .model-card {
    flex: 0 0 86%;
    max-width: 340px;
    scroll-snap-align: center;
  }
}

/* carousel dots (mobile only) — the visual dot stays 8px, the hit area is 44px */
.dots { display: none; justify-content: center; gap: 0; margin-top: 16px; }
@media (max-width: 767px) { .dots { display: flex; } }
.dots button {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  transition: transform var(--t-press) var(--ease-out);
}
.dots button:active { transform: scale(.88); }
.dots button::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: transform var(--t-hover) var(--ease-out), background-color var(--t-hover) linear;
}
.dots button[aria-current="true"]::after { background: var(--wine); transform: scale(1.4); }

/* ── 19. Hero ──────────────────────────────────────────────── */
.hero {
  padding-top: clamp(120px, 16vh, 160px);
  padding-bottom: var(--sect-sm);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  min-height: min(92dvh, 900px);
}
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero__copy .lead { margin: 22px 0 32px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__note { font-size: var(--fs-small); color: var(--ink-2); margin-top: 18px; }
.hero__stage { display: flex; justify-content: center; position: relative; }
@media (max-width: 899px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 104px;
    min-height: 0;
    text-align: center;
  }
  .hero__copy { align-items: center; }
}

/* ── 20. Mobile navigation ─────────────────────────────────────
   Injected by shop.js (progressive enhancement) from whatever links the
   page's own `.site-nav` carries, so all seven pages get the same drawer
   with no markup changes and no per-page link list to keep in sync.
   Exists only below 900px, where `.site-nav` is hidden. */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex: none;
  place-items: center;
  border-radius: var(--r-pill);
  color: var(--wine);
  transition: transform var(--t-press) var(--ease-out),
              background-color var(--t-hover) var(--ease-out);
}
.nav-toggle:active { transform: scale(.94); }
.nav-toggle__bars { position: relative; width: 20px; height: 14px; display: block; }
.nav-toggle__bars i {
  position: absolute; left: 0;
  width: 100%; height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  /* rotate resolves last on open and first on close, so the bars always
     travel to the centre before they cross */
  transition: transform var(--t-chrome) var(--ease-drawer);
}
.nav-toggle__bars i:nth-child(1) { top: 0; }
.nav-toggle__bars i:nth-child(2) { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(6.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { transform: translateY(-6.25px) rotate(-45deg); }

.nav-scrim {
  position: fixed; inset: 0; z-index: 880;
  display: none;
  background: rgba(51, 25, 31, .38);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-hover) var(--ease-out), visibility 0s linear var(--t-hover);
}
.nav-scrim.is-open {
  opacity: 1; visibility: visible;
  transition: opacity var(--t-chrome) var(--ease-out), visibility 0s;
}

.nav-drawer {
  position: fixed; z-index: 890;
  top: var(--nav-top, 64px); left: 0; right: 0;
  display: none;
  max-height: calc(100dvh - var(--nav-top, 64px));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 6px var(--wrap-pad) calc(18px + env(safe-area-inset-bottom));
  /* closed: nudged up behind the header, and `visibility: hidden` keeps the
     links out of the tab order without killing the exit transition */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--t-hover) var(--ease-out),
              transform var(--t-hover) var(--ease-drawer),
              visibility 0s linear var(--t-hover);
}
.nav-drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--t-chrome) var(--ease-out),
              transform var(--t-chrome) var(--ease-drawer),
              visibility 0s;
}
.nav-drawer a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 8px 4px;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: color var(--t-hover) linear, transform var(--t-press) var(--ease-out);
}
.nav-drawer a:last-child { border-bottom: 0; }
.nav-drawer a:active { transform: scale(.99); color: var(--wine); }

/* staggered entrance: the links ride in just behind the sheet */
.nav-drawer a {
  opacity: 0;
  transform: translateY(6px);
}
.nav-drawer.is-open a {
  opacity: 1;
  transform: none;
  transition: opacity var(--t-ui) var(--ease-out) calc(60ms + 30ms * var(--i, 0)),
              transform var(--t-ui) var(--ease-out) calc(60ms + 30ms * var(--i, 0)),
              color var(--t-hover) linear;
}

@media (max-width: 899px) {
  .nav-toggle { display: grid; }
  .nav-scrim, .nav-drawer { display: block; }
}

/* ── 21. Reduced motion (spec §5.4): gentler, not zero ─────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js-reveal .reveal:not(.in) { transform: none; }
  .reveal { transition-duration: 300ms; transition-delay: 0ms !important; }
  html.js-reveal .rise { transform: none; }
  html.js-reveal .rise.in { transition-duration: 300ms; transition-delay: 0ms; }
  .phone--float { animation: none; }
  .phone__screen iframe { filter: none; transition: opacity 200ms linear; }
  .models { scroll-behavior: auto; scroll-snap-type: none; }
  /* drawer: fade only, no travel, no stagger */
  .nav-drawer { transform: none; }
  .nav-drawer a, .nav-drawer.is-open a { transform: none; transition-delay: 0ms; }
  .nav-toggle__bars i { transition-duration: 1ms; }
}
