/* Heritage Quarter Horses — design system
   Layers: primitives → semantic → component tokens. Cards live in cards.css. */

/* ============ 1. PRIMITIVES ============ */
:root {
  --ivory-50: #fffaf5; --ivory-100: #fff5ec; --ivory-200: #fbe8df; --ivory-300: #f3cfc2;
  --ember-400: #e5483a; --ember-500: #c8281e; --ember-600: #a51d16; --ember-700: #7f1610;
  --turmeric-300: #ffd780; --turmeric-400: #f9bc3a; --turmeric-500: #f2a516;
  --saddle-900: #2a0e0b; --saddle-800: #3b1511; --saddle-700: #5c2a23; --saddle-500: #8b5a52; --saddle-400: #aa827a;
  --sage-500: #5b7f4a; --sage-100: #e5ecd9; --rose-500: #d23b2a;

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-editorial: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-xs: 10px; --r-sm: 16px; --r-md: 24px; --r-lg: 34px; --r-xl: 48px; --r-pill: 999px;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 72px; --sp-9: 112px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.45, .64, 1);
  --t-fast: 140ms; --t-med: 300ms; --t-slow: 700ms;
}

/* ============ 2. SEMANTIC ============ */
:root {
  --bg: var(--ivory-100);
  --surface: var(--ivory-50);
  --surface-tint: rgba(160, 40, 30, .07);
  --surface-glass: rgba(255, 251, 243, .66);
  --ink: var(--saddle-800);
  --ink-strong: var(--saddle-900);
  --muted: var(--saddle-500);
  --primary: var(--ember-500);
  --primary-hover: var(--ember-600);
  --accent: var(--turmeric-500);
  --ok: var(--sage-500);
  --danger: var(--rose-500);
  --on-dark: #fff2dc;
  --on-dark-muted: #e6c9a0;
  --hairline: rgba(100, 40, 35, .09);

  --shadow-1: 0 1px 2px rgba(90, 20, 15, .06), 0 4px 10px -4px rgba(90, 20, 15, .08);
  --shadow-2: 0 2px 4px rgba(90, 20, 15, .05), 0 12px 24px -8px rgba(90, 20, 15, .14);
  --shadow-3: 0 4px 8px rgba(90, 20, 15, .05), 0 22px 40px -14px rgba(90, 20, 15, .22), 0 40px 70px -40px rgba(90, 20, 15, .3);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, .85);
  --ring: 0 0 0 3px var(--ivory-50), 0 0 0 6px var(--ember-500);

  --grad-primary: linear-gradient(135deg, var(--ember-400) 0%, var(--ember-500) 55%, var(--ember-600) 100%);
  --grad-accent: linear-gradient(135deg, var(--turmeric-300) 0%, var(--turmeric-500) 100%);
  --grad-dusk: linear-gradient(160deg, #4d1813 0%, var(--saddle-800) 60%, #2a0e0b 100%);

  --max: 1240px;
  --gut: 20px;
}
@media (min-width: 700px) { :root { --gut: 32px; } }
@media (min-width: 1100px) { :root { --gut: 56px; } }

/* ============ 3. BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 400 16px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip; position: relative; }
@media (min-width: 1024px) { body { font-size: 17px; } }
/* atmosphere: static, cheap */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 520px at 6% -4%, rgba(229, 72, 58, .16), transparent 70%), radial-gradient(760px 560px at 104% 22%, rgba(200, 40, 30, .10), transparent 70%), radial-gradient(700px 500px at 30% 108%, rgba(91, 127, 74, .08), transparent 70%); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; transition: color var(--t-fast); }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-xs); }
::selection { background: var(--turmeric-300); color: var(--saddle-900); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 .5em; font-weight: 800; color: var(--ink-strong); text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.9rem); }
h2 { font-size: clamp(1.85rem, 3.8vw, 3rem); }
h3 { font-size: 1.2rem; letter-spacing: -.02em; }
em { font-family: var(--font-editorial); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--primary); font-size: 1.12em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 10px; background: var(--ink-strong); color: #fff; padding: 12px 18px; z-index: 200; border-radius: var(--r-pill); }
.skip:focus { left: 10px; }
.container { width: 100%; max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.muted { color: var(--muted); }
.eyebrow { display: none; }

.section { padding: var(--sp-8) 0; } .section-tight { padding: var(--sp-7) 0; }
@media (min-width: 1024px) { .section { padding: var(--sp-9) 0; } .section-tight { padding: var(--sp-8) 0; } }
.bg-paper { margin-inline: clamp(8px, 2vw, 28px); border-radius: clamp(28px, 4.5vw, 64px); background: linear-gradient(150deg, var(--ivory-200), #fbe2b9); box-shadow: var(--highlight); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: var(--sp-6); }
.section-head h2 { margin-bottom: .15em; }

/* text link with animated underline */
.link-arrow { position: relative; font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--ink-strong); padding-bottom: 3px; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 2px no-repeat; transition: background-size var(--t-med) var(--ease-out), color var(--t-fast); }
.link-arrow:hover { color: var(--primary); background-size: 100% 4px; }

/* ============ 4. COMPONENTS: buttons ============ */
.btn { --b-bg: var(--grad-primary); --b-fg: #fff; --b-sh: 0 8px 18px -8px rgba(200, 40, 30, .75);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 1.55rem; border: 0; border-radius: var(--r-pill);
  background: var(--b-bg); color: var(--b-fg); font: 700 .95rem/1 var(--font-body); letter-spacing: -.005em; text-decoration: none; cursor: pointer; isolation: isolate;
  box-shadow: var(--b-sh), var(--highlight); transition: transform var(--t-med) var(--ease-spring), box-shadow var(--t-med) var(--ease-out), filter var(--t-fast); -webkit-tap-highlight-color: transparent; }
.btn:hover { color: var(--b-fg); transform: translateY(-2px) scale(1.025); box-shadow: 0 14px 26px -10px rgba(200, 40, 30, .8), var(--highlight); filter: saturate(1.08); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: var(--t-fast); box-shadow: 0 3px 8px -4px rgba(200, 40, 30, .7); }
.btn:focus-visible { box-shadow: var(--ring); }
.btn .arr { display: inline-block; transition: transform var(--t-med) var(--ease-spring); }
.btn:hover .arr { transform: translateX(4px); }
.btn-brass { --b-bg: var(--grad-accent); --b-fg: var(--saddle-900); --b-sh: 0 8px 18px -8px rgba(242, 165, 22, .85); }
.btn-brass:hover { box-shadow: 0 14px 26px -10px rgba(242, 165, 22, .9), var(--highlight); }
.btn-outline { --b-bg: rgba(200, 40, 30, .1); --b-fg: var(--ember-600); --b-sh: 0 0 0 0 transparent; box-shadow: var(--highlight); }
.btn-outline:hover { --b-fg: var(--ember-700); background: rgba(200, 40, 30, .18); box-shadow: var(--shadow-1); filter: none; }
.btn-ghost { --b-bg: transparent; --b-fg: var(--ink-strong); --b-sh: 0 0 0 0 transparent; box-shadow: none; padding-inline: .9rem; }
.btn-ghost:hover { background: var(--surface-tint); box-shadow: none; }
.btn-sm { min-height: 42px; padding: 0 1.15rem; font-size: .86rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; filter: grayscale(.4); }
.btn.is-loading { pointer-events: none; color: transparent; }
.btn.is-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn-brass.is-loading::after { border-color: rgba(42,20,8,.25); border-top-color: var(--saddle-900); }
.btn.is-done { --b-bg: linear-gradient(135deg, #78a05f, var(--sage-500)); --b-fg: #fff; --b-sh: 0 8px 18px -8px rgba(91,127,74,.8); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ navigation: floating glass pill ============ */
.site-header { position: sticky; top: 10px; z-index: 80; padding: 0 var(--gut); margin-top: 10px; }
.nav-pill { position: relative; max-width: calc(var(--max) + 8px); margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 18px; border-radius: var(--r-pill);
  background: var(--surface-glass); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: var(--shadow-2), var(--highlight); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; color: var(--ink-strong); }
.logo img { display: block; height: 42px; width: auto; transition: transform var(--t-med) var(--ease-spring); transform-origin: left center; }
.logo:hover img { transform: scale(1.04); }
.logo-footer img { height: 58px; }
@media (max-width: 419px) { .logo img { height: 36px; } }
.main-nav { display: none; position: relative; }
.main-nav ul { position: relative; display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; align-items: center; }
.main-nav a, .more-btn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 10px 15px; border: 0; background: none; border-radius: var(--r-pill); color: var(--ink); font: 600 .9rem/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: color var(--t-fast); }
.main-nav a:hover, .more-btn:hover, .main-nav a[aria-current="page"] { color: var(--ember-600); }
.nav-ind { position: absolute; z-index: 0; left: 0; top: 50%; height: 38px; width: 0; margin-top: -19px; border-radius: var(--r-pill); background: rgba(200, 40, 30, .12); box-shadow: var(--highlight); transform: translateX(0); opacity: 0; transition: transform var(--t-med) var(--ease-out), width var(--t-med) var(--ease-out), opacity var(--t-fast); pointer-events: none; }
.more { position: relative; }
.more-btn svg { width: 12px; height: 12px; transition: transform var(--t-med) var(--ease-out); }
.more.open .more-btn svg { transform: rotate(180deg); }
.more-menu { position: absolute; right: 0; top: calc(100% + 14px); min-width: 230px; padding: 8px; border-radius: var(--r-md) var(--r-md) var(--r-md) var(--r-xs); background: var(--surface); box-shadow: var(--shadow-3); opacity: 0; transform: translateY(-8px) scale(.97); transform-origin: top right; pointer-events: none; visibility: hidden; transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out), visibility 0s var(--t-med); }
.more.open .more-menu { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.more-menu a { display: flex; width: 100%; padding: 11px 14px; border-radius: var(--r-sm); }
.more-menu a:hover { background: var(--surface-tint); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.saved-link { position: relative; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink); transition: background var(--t-fast), transform var(--t-med) var(--ease-spring); }
.saved-link:hover { background: var(--surface-tint); color: var(--primary); transform: scale(1.08); }
.saved-link svg { width: 22px; height: 22px; }
.saved-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px; background: var(--grad-primary); color: #fff; font: 700 .68rem/18px var(--font-body); text-align: center; box-shadow: 0 0 0 2px var(--ivory-50); }
.saved-count:empty { display: none; }
.header-cta { display: none; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface-tint); color: var(--ink-strong); cursor: pointer; transition: background var(--t-fast), transform var(--t-med) var(--ease-spring); }
.menu-btn:active { transform: scale(.92); }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .bar { transition: transform var(--t-med) var(--ease-out), opacity var(--t-fast); transform-origin: center; }
.menu-btn[aria-expanded="true"] .b1 { transform: translateY(5px) rotate(45deg); } .menu-btn[aria-expanded="true"] .b2 { opacity: 0; } .menu-btn[aria-expanded="true"] .b3 { transform: translateY(-5px) rotate(-45deg); }
@media (min-width: 1020px) { .main-nav { display: block; } .header-cta { display: inline-flex; } .menu-btn { display: none; } }
.mobile-nav { position: absolute; left: var(--gut); right: var(--gut); top: calc(100% + 10px); padding: 10px; border-radius: var(--r-lg) var(--r-lg) var(--r-lg) var(--r-sm); background: var(--surface); box-shadow: var(--shadow-3); opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transform-origin: top; transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out), visibility 0s var(--t-med); max-height: calc(100vh - 110px); overflow: auto; }
.mobile-nav.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-nav a { display: flex; align-items: center; min-height: 52px; padding: 0 16px; border-radius: var(--r-sm); color: var(--ink-strong); text-decoration: none; font: 700 1.05rem var(--font-display); letter-spacing: -.02em; transition: background var(--t-fast), transform var(--t-med) var(--ease-out); }
.mobile-nav a:hover, .mobile-nav a:active { background: var(--surface-tint); transform: translateX(4px); }
.mobile-nav a.sub { font: 500 .95rem var(--font-body); color: var(--muted); min-height: 44px; }
@media (min-width: 1020px) { .mobile-nav, .mobile-nav.open { display: none; } }

/* scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; transform: scaleX(0); transform-origin: left; background: var(--grad-primary); pointer-events: none; }

/* ============ hero ============ */
.hero { position: relative; overflow-x: clip; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.hero-bg .b1 { width: 420px; height: 420px; right: -80px; top: 40px; background: var(--ember-400); }
.hero-bg .b2 { width: 320px; height: 320px; left: -100px; bottom: 0; background: var(--ember-400); opacity: .22; }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) { .hero-bg .b1 { animation: drift 18s ease-in-out infinite alternate; } .hero-bg .b2 { animation: drift 22s ease-in-out infinite alternate-reverse; } }
@keyframes drift { to { transform: translate3d(-40px, 30px, 0) scale(1.08); } }
.hero-grid { display: grid; gap: var(--sp-6); padding-block: var(--sp-6) var(--sp-7); }
.hero-copy { align-self: center; position: relative; z-index: 2; }
.hero h1 { margin-bottom: .32em; }
.hero h1 .l1 { display: block; }
.hero h1 em { display: block; font-size: 1.02em; line-height: .98; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 34ch; color: var(--muted); margin-bottom: var(--sp-5); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.hero-media { position: relative; }
.hero-arch { border-radius: 46% 46% var(--r-lg) var(--r-lg) / 34% 34% var(--r-lg) var(--r-lg); overflow: hidden; box-shadow: var(--shadow-3); aspect-ratio: 5 / 4.6; background: var(--ivory-300); }
.hero-arch img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; transform: scale(1.06); transition: transform 1.4s var(--ease-out); }
.hero-media:hover .hero-arch img { transform: scale(1.1); }
.glass { background: var(--surface-glass); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); box-shadow: var(--shadow-2), var(--highlight); }
.hero-chip { position: absolute; left: -6px; bottom: 26px; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: var(--r-md) var(--r-md) var(--r-md) var(--r-xs); text-decoration: none; color: var(--ink-strong); transition: transform var(--t-med) var(--ease-spring), box-shadow var(--t-med); }
.hero-chip:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: var(--shadow-3), var(--highlight); color: var(--ink-strong); }
.hero-chip .dot { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-primary); color: #fff; font-size: 1.05rem; transition: transform var(--t-med) var(--ease-spring); }
.hero-chip:hover .dot { transform: rotate(-35deg) scale(1.08); }
.hero-chip b { display: block; font: 800 1.02rem/1.1 var(--font-display); letter-spacing: -.025em; }
.hero-chip span { font-size: .8rem; color: var(--muted); }
.hero-badge { position: absolute; top: 8%; right: -8px; width: 98px; height: 98px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: var(--grad-accent); color: var(--saddle-900); font: italic 400 1.02rem/1.05 var(--font-editorial); box-shadow: var(--shadow-2), var(--highlight); transform: rotate(10deg); animation: floaty 6s ease-in-out infinite alternate; }
@keyframes floaty { to { transform: rotate(4deg) translateY(-8px); } }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1.05fr; gap: var(--sp-8); padding-block: var(--sp-7) var(--sp-8); } }
/* the one orchestrated moment: hero entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise var(--t-slow) var(--ease-out) both; }
  .hero-copy > :nth-child(1) { animation-delay: .05s; } .hero-copy > :nth-child(2) { animation-delay: .17s; } .hero-copy > :nth-child(3) { animation-delay: .27s; }
  .hero-arch { animation: unveil 1.1s var(--ease-out) .1s both; }
  .hero-chip { animation: rise var(--t-slow) var(--ease-out) .7s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes unveil { from { clip-path: inset(18% 12% 0 12% round 40%); opacity: .2; } to { clip-path: inset(0 0 0 0 round 0); opacity: 1; } }

/* search bar */
.search-wrap { position: relative; z-index: 5; margin-top: -14px; }
.search-bar { display: grid; gap: var(--sp-3); padding: var(--sp-4); border-radius: var(--r-lg) var(--r-lg) var(--r-lg) var(--r-sm); box-shadow: var(--shadow-3), var(--highlight); }
@media (min-width: 800px) { .search-bar { grid-template-columns: repeat(3, 1fr) auto; align-items: end; padding: var(--sp-4) var(--sp-4) var(--sp-4) var(--sp-5); } }
.field { display: grid; gap: 2px; }
.field label, .field-label { display: block; font: 600 .8rem/1.2 var(--font-body); color: var(--muted); padding-left: 4px; margin-bottom: 5px; }

/* inputs: filled, no outline */
select, input[type=text], input[type=search], input[type=email], input[type=tel], input[type=number], textarea {
  width: 100%; font: 500 1rem var(--font-body); color: var(--ink-strong); background-color: var(--surface-tint); padding: 14px 16px; border: 0; border-radius: var(--r-sm);
  box-shadow: inset 0 1px 2px rgba(90, 20, 15, .08); transition: background-color var(--t-fast), box-shadow var(--t-med) var(--ease-out); -webkit-appearance: none; appearance: none; }
select { padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237f1610' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; cursor: pointer; }
select:hover, input:hover, textarea:hover { background-color: rgba(160, 40, 30, .11); }
select:focus, input:focus, textarea:focus { outline: none; background-color: #fff; box-shadow: 0 0 0 3px rgba(200, 40, 30, .28), var(--shadow-1); }
input::placeholder, textarea::placeholder { color: var(--saddle-400); }
[aria-invalid="true"] { background-color: #fde9e4 !important; box-shadow: 0 0 0 3px rgba(210, 59, 42, .25) !important; }
.field-error { margin: 6px 0 0 4px; font-size: .84rem; color: var(--danger); font-weight: 600; animation: rise var(--t-med) var(--ease-out); }
textarea { min-height: 150px; resize: vertical; }

/* ============ sections ============ */
.benefits { margin-top: var(--sp-7); }
.benefits ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-5) var(--sp-4); grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .benefits ul { grid-template-columns: repeat(4, 1fr); } }
.benefits li { display: flex; align-items: center; gap: 14px; font: 700 .95rem/1.25 var(--font-display); letter-spacing: -.015em; color: var(--ink-strong); }
.medallion { flex: none; width: 54px; height: 54px; display: grid; place-items: center; background: var(--surface); color: var(--primary); box-shadow: var(--shadow-1), var(--highlight); border-radius: 18px 18px 18px 6px; transition: transform var(--t-med) var(--ease-spring); }
.benefits li:hover .medallion { transform: translateY(-3px) rotate(-5deg); }
.medallion svg { width: 26px; height: 26px; }

/* numbers: editorial, borderless */
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5) var(--sp-4); margin: 0; padding: var(--sp-6) var(--sp-5); border-radius: var(--r-xl) var(--r-xl) var(--r-xl) var(--r-md); background: var(--grad-dusk); color: var(--on-dark); box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255,255,255,.12); }
@media (min-width: 900px) { .stat-row { grid-template-columns: repeat(4, 1fr); padding: var(--sp-7) var(--sp-6); } }
.stat-row > div { display: flex; flex-direction: column-reverse; gap: 2px; }
.stat-row dd { margin: 0; font: 400 clamp(2.2rem, 4.6vw, 3.6rem)/1 var(--font-editorial); font-style: italic; letter-spacing: -.02em; color: var(--turmeric-300); }
.stat-row dt { font-size: .9rem; color: var(--on-dark-muted); }

/* chips + tabs */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 var(--sp-6); padding: 0; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 17px; border-radius: var(--r-pill); background: var(--surface-tint); color: var(--ink); text-decoration: none; font-size: .86rem; font-weight: 600; transition: background var(--t-fast), color var(--t-fast), transform var(--t-med) var(--ease-spring); }
.chip:hover { background: rgba(200, 40, 30, .16); color: var(--ember-700); transform: translateY(-2px); }
.chip:active { transform: scale(.96); }
.chip[aria-current="true"] { background: var(--ink-strong); color: var(--on-dark); }
.tabs { position: relative; display: inline-flex; max-width: 100%; gap: 2px; padding: 5px; margin-bottom: var(--sp-6); border-radius: var(--r-pill); background: var(--surface-tint); box-shadow: inset 0 1px 2px rgba(90, 20, 15,.08); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; z-index: 1; flex: none; min-height: 40px; padding: 0 18px; border: 0; border-radius: var(--r-pill); background: none; color: var(--muted); font: 600 .9rem var(--font-body); cursor: pointer; transition: color var(--t-fast); white-space: nowrap; }
.tab:hover { color: var(--ink-strong); }
.tab[aria-selected="true"] { color: var(--ink-strong); }
.tab-ind { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--shadow-1), var(--highlight); transition: transform var(--t-med) var(--ease-out), width var(--t-med) var(--ease-out); }
.swap { opacity: 0; transform: translateY(10px); transition: opacity 160ms ease, transform 160ms ease; }
.budget-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: var(--sp-7); }
.budget-line .muted { font-weight: 600; font-size: .92rem; margin-right: 4px; }

/* goal tiles: tonal, varied radii, gradient shifts on hover */
.goal-grid { list-style: none; margin: var(--sp-6) 0 0; padding: 0; display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.goal-tile { --g1: #fff1ea; --g2: #fcd9cf; position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: var(--sp-5); border-radius: var(--r-lg) var(--r-lg) var(--r-lg) var(--r-xs); background: linear-gradient(135deg, var(--g1), var(--g2), var(--g1)); background-size: 220% 220%; background-position: 0 0; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-1), var(--highlight); transition: background-position var(--t-slow) var(--ease-out), transform var(--t-med) var(--ease-spring), box-shadow var(--t-med); }
.goal-grid li:nth-child(2) .goal-tile { --g1: #fdeee8; --g2: #f5c9bd; border-radius: var(--r-lg) var(--r-xs) var(--r-lg) var(--r-lg); }
.goal-grid li:nth-child(3) .goal-tile { --g1: #f3f1de; --g2: #dfe6c8; }
.goal-grid li:nth-child(4) .goal-tile { --g1: #fff1d6; --g2: #fbd98e; border-radius: var(--r-xs) var(--r-lg) var(--r-lg) var(--r-lg); }
.goal-tile:hover { background-position: 100% 100%; transform: translateY(-6px); box-shadow: var(--shadow-3), var(--highlight); }
.goal-tile strong { font: 800 1.35rem/1.1 var(--font-display); letter-spacing: -.03em; color: var(--ink-strong); }
.goal-tile span { color: var(--muted); font-size: .94rem; flex: 1; }
.goal-tile em { font-size: 1.1rem; color: var(--ember-600); display: inline-flex; gap: 6px; align-items: center; }
.goal-tile em::after { content: "→"; font-family: var(--font-body); font-style: normal; transition: transform var(--t-med) var(--ease-spring); }
.goal-tile:hover em::after { transform: translateX(6px); }
.field-hint { font-size: .85rem; color: var(--muted); }

/* story / split */
.split { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--sp-8); } .split.flip .split-photo { order: 2; } }
.split-photo { position: relative; border-radius: var(--r-xl) var(--r-xl) var(--r-xs) var(--r-xl); overflow: hidden; box-shadow: var(--shadow-3); }
.split-photo img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.split-photo:hover img { transform: scale(1.04); }
.checklist { list-style: none; margin: var(--sp-4) 0 var(--sp-5); padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { flex: none; width: 24px; height: 24px; padding: 4px; margin-top: 1px; border-radius: 50%; background: var(--sage-100); color: var(--sage-500); }

/* values: tonal tiles */
.value-grid { list-style: none; margin: var(--sp-6) 0 0; padding: 0; display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.value-card { padding: var(--sp-5); border-radius: var(--r-lg) var(--r-lg) var(--r-xs) var(--r-lg); background: rgba(255, 251, 243, .72); box-shadow: var(--shadow-1), var(--highlight); transition: transform var(--t-med) var(--ease-out), background var(--t-med); }
.value-card:nth-child(even) { border-radius: var(--r-lg) var(--r-lg) var(--r-lg) var(--r-xs); }
.value-card:hover { transform: translateY(-4px); background: var(--surface); }
.value-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.value-card p { margin: 0; font-size: .96rem; color: var(--muted); }

/* sequence: a real process, with a progress line that draws in */
.steps { position: relative; list-style: none; margin: var(--sp-6) 0 var(--sp-5); padding: 0; display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; display: flex; gap: 16px; align-items: flex-start; }
.step-num { position: relative; z-index: 1; flex: none; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--ember-600); font: 400 1.7rem/1 var(--font-editorial); font-style: italic; box-shadow: var(--shadow-2), var(--highlight); transition: background var(--t-med), color var(--t-med), transform var(--t-med) var(--ease-spring); }
.step:hover .step-num { background: var(--grad-primary); color: #fff; transform: scale(1.1) rotate(-6deg); }
.step h3 { font-size: 1.1rem; margin: 3px 0 4px; } .step p { margin: 0; font-size: .95rem; color: var(--muted); }
@media (min-width: 900px) {
  .steps.flow::before, .steps.flow::after { content: ""; position: absolute; left: 27px; right: 27px; top: 26px; height: 3px; border-radius: 3px; }
  .steps.flow::before { background: rgba(100, 40, 35,.1); }
  .steps.flow::after { background: var(--grad-primary); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease-out) .2s; }
  .steps.flow.in::after { transform: scaleX(1); }
}

/* pull quote */
.quote-inner { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 900px) { .quote-inner { grid-template-columns: 1.4fr 1fr; } }
.quote-mark { font: 400 7rem/.6 var(--font-editorial); color: var(--accent); display: block; height: 56px; }
blockquote { margin: 0 0 14px; font: italic 400 clamp(1.7rem, 3.4vw, 2.7rem)/1.15 var(--font-editorial); color: var(--ink-strong); letter-spacing: -.015em; text-wrap: balance; }
.round-photo { aspect-ratio: 1; max-width: 360px; width: 100%; margin: 0 auto; border-radius: 50% 50% 50% var(--r-sm); overflow: hidden; box-shadow: var(--shadow-3); }
.round-photo img { width: 100%; height: 100%; object-fit: cover; }

/* faq: smooth expand */
.faq-item { border-radius: var(--r-md); transition: background var(--t-med); }
.faq-item + .faq-item { margin-top: 4px; }
.faq-item[open], .faq-item:hover { background: rgba(255, 251, 243, .7); }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font: 700 1.1rem/1.3 var(--font-display); letter-spacing: -.02em; color: var(--ink-strong); position: relative; border-radius: var(--r-md); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--surface-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a51d16' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform var(--t-med) var(--ease-spring), background-color var(--t-fast); }
.faq-item[open] summary::after { transform: rotate(135deg); background-color: rgba(200, 40, 30,.18); }
.faq-a { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 22px 22px; color: var(--muted); max-width: 68ch; }

/* closing band */
.cta-band { position: relative; margin: var(--sp-7) clamp(8px, 2vw, 28px) 0; border-radius: clamp(32px, 5vw, 64px); color: #fff; overflow: hidden; isolation: isolate; background: var(--grad-primary); box-shadow: var(--shadow-3); }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; mix-blend-mode: soft-light; opacity: .6; z-index: -1; }
.cta-inner { padding: var(--sp-8) 0; max-width: 640px; }
.cta-inner h2 { color: #fff; font-size: clamp(2.3rem, 5.4vw, 4rem); }
.cta-inner h2 em { color: var(--turmeric-300); }
.cta-inner p { font-size: 1.2rem; color: #fff6e8; }
.cta-band .btn-brass { --b-sh: 0 10px 24px -8px rgba(42,20,8,.55); }

/* ============ inner pages ============ */
.page-hero { padding: var(--sp-7) 0 var(--sp-5); }
.page-hero h1 { margin-bottom: 12px; font-size: clamp(2.3rem, 5.2vw, 4rem); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 58ch; margin: 0; }
.crumbs { font-size: .84rem; font-weight: 600; margin-bottom: var(--sp-4); color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.crumbs a { color: var(--muted); text-decoration: none; padding: 2px 0; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size var(--t-med) var(--ease-out), color var(--t-fast); }
.crumbs a:hover { color: var(--ink-strong); background-size: 100% 2px; }
.crumbs span[aria-hidden] { color: var(--accent); }
.prose { max-width: 740px; }
.prose h2 { margin-top: 1.7em; font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin-bottom: .55em; }
.two-col { display: grid; gap: var(--sp-6); }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 340px; gap: var(--sp-8); align-items: start; } }
.panel { padding: var(--sp-5); border-radius: var(--r-lg) var(--r-lg) var(--r-lg) var(--r-xs); background: var(--surface); box-shadow: var(--shadow-2), var(--highlight); }
.panel h3:first-child { margin-top: 0; }
.draft-tag { display: inline-block; font: 600 .8rem var(--font-body); padding: 6px 12px; border-radius: var(--r-pill); background: var(--grad-accent); color: var(--saddle-900); margin-bottom: 14px; }
.alert { display: flex; gap: 12px; padding: 14px 18px; border-radius: var(--r-md); background: #fff0c9; box-shadow: var(--highlight); margin: 0 0 var(--sp-4); animation: rise var(--t-med) var(--ease-out); }
.alert.err { background: #fde5df; }
.alert.ok { background: var(--sage-100); }
.stack { display: grid; gap: 10px; }

/* ============ catalogue ============ */
.catalogue-layout { display: grid; gap: var(--sp-6); }
@media (min-width: 960px) { .catalogue-layout { grid-template-columns: 290px 1fr; gap: var(--sp-7); align-items: start; } }
.filters { padding: var(--sp-4) var(--sp-5); border-radius: var(--r-lg) var(--r-lg) var(--r-lg) var(--r-xs); background: var(--surface); box-shadow: var(--shadow-2), var(--highlight); }
@media (min-width: 960px) { .filters { position: sticky; top: 96px; } }
.filters summary { display: flex; align-items: center; justify-content: space-between; font: 800 1.1rem var(--font-display); letter-spacing: -.02em; color: var(--ink-strong); cursor: pointer; list-style: none; min-height: 44px; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after { content: ""; width: 12px; height: 12px; border-right: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary); transform: rotate(45deg); transition: transform var(--t-med) var(--ease-out); margin-right: 4px; }
.filters[open] summary::after { transform: rotate(225deg); }
.filters form { display: grid; gap: 14px; margin: 8px 0 var(--sp-3); }
.filters fieldset { border: 0; padding: 0; margin: 0; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filter-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.result-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: var(--sp-6); }
.result-count { margin: 0; font: 400 1.7rem/1 var(--font-editorial); font-style: italic; color: var(--ink-strong); }
.sort { display: flex; align-items: center; gap: 10px; } .sort select { width: auto; }
.cards, .stalls { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-6) var(--sp-5); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.catalogue-layout .stalls { grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); }
.stalls[data-featured], .stalls[data-similar] { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: var(--sp-7); }
.pager a, .pager span { min-width: 46px; min-height: 46px; display: inline-grid; place-items: center; padding: 0 16px; font-weight: 700; text-decoration: none; border-radius: var(--r-pill); color: var(--ink-strong); background: var(--surface-tint); transition: background var(--t-fast), transform var(--t-med) var(--ease-spring); }
.pager a:hover { background: rgba(200, 40, 30,.18); transform: translateY(-2px); } .pager [aria-current="page"] { background: var(--ink-strong); color: var(--on-dark); } .pager .off { opacity: .35; pointer-events: none; }
.empty { text-align: center; padding: var(--sp-8) var(--sp-5); font: italic 400 1.9rem/1.2 var(--font-editorial); color: var(--ink-strong); }
.empty a { font-family: var(--font-body); font-style: normal; font-size: 1rem; font-weight: 700; }

/* ============ horse profile ============ */
.profile-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 960px) { .profile-grid { grid-template-columns: 1.4fr 1fr; gap: var(--sp-7); align-items: start; } }
.profile-photo { position: relative; border-radius: var(--r-xl) var(--r-xl) var(--r-xl) var(--r-sm); overflow: hidden; background: var(--ivory-300); box-shadow: var(--shadow-3); }
.profile-photo .zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.profile-photo img { width: 100%; transition: transform 1.2s var(--ease-out); }
.profile-photo:hover img { transform: scale(1.025); }
.profile-photo .zoom-hint { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--r-pill); font: 600 .82rem var(--font-body); color: var(--ink-strong); opacity: 0; transform: translateY(6px); transition: opacity var(--t-med), transform var(--t-med) var(--ease-out); }
.profile-photo:hover .zoom-hint, .zoom:focus-visible .zoom-hint { opacity: 1; transform: none; }
@media (hover: none) { .profile-photo .zoom-hint { opacity: 1; transform: none; } }
@media (min-width: 960px) { .profile-side { position: sticky; top: 96px; } }
.profile-side .panel { padding: var(--sp-5) var(--sp-5) var(--sp-4); background: linear-gradient(170deg, #fffdf8 0%, #ffece3 100%); }
.profile-side h1 { font-size: clamp(2.4rem, 4vw, 3.2rem); margin: 10px 0 4px; }
.profile-side .sub { margin: 0; color: var(--muted); }
.profile-price { font: italic 400 3.6rem/1 var(--font-editorial); color: var(--primary); margin: 14px 0 20px; letter-spacing: -.02em; }
.stall-no-lg { display: inline-block; font: 700 .8rem/1 var(--font-body); padding: 7px 13px; border-radius: var(--r-pill); background: var(--surface-tint); color: var(--ember-700); }
.facts-list { margin: 8px 0 0; display: grid; }
.facts-list div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; position: relative; }
.facts-list div + div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, var(--hairline), transparent); }
.facts-list dt { font-size: .86rem; color: var(--muted); }
.facts-list dd { margin: 0; text-align: right; font-weight: 600; color: var(--ink-strong); }
.trust-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; color: var(--muted); }
.trust-list li { padding-left: 26px; position: relative; }
.trust-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--sage-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b7f4a' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l5 5L19.5 7'/%3E%3C/svg%3E") center / 10px no-repeat; }
.profile-side h2 { font-size: 1.1rem !important; margin: 22px 0 0 !important; }
.profile-body { max-width: 68ch; } .profile-body p { font-size: 1.08rem; line-height: 1.75; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 20px; }
.mobile-action-bar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 70; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 22px; border-radius: var(--r-pill); }
.mobile-action-bar .price { font: italic 400 1.9rem/1 var(--font-editorial); color: var(--primary); }
.action-spacer { height: 86px; }
@media (min-width: 960px) { .mobile-action-bar, .action-spacer { display: none; } }

/* ============ modal (lightbox) ============ */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); width: auto; overflow: visible; color: #fff; }
dialog.lightbox::backdrop { background: rgba(32, 14, 4, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog.lightbox[open] { display: block; animation: pop var(--t-med) var(--ease-out); }
dialog.lightbox[open]::backdrop { animation: fade var(--t-med) ease; }
dialog.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: var(--r-lg); box-shadow: var(--shadow-3); }
dialog.lightbox figcaption { text-align: center; margin-top: 14px; font: italic 400 1.5rem var(--font-editorial); }
.lb-close { position: absolute; top: -14px; right: -6px; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.6rem; line-height: 1; background: var(--surface); color: var(--ink-strong); box-shadow: var(--shadow-2); transition: transform var(--t-med) var(--ease-spring); }
.lb-close:hover { transform: rotate(90deg) scale(1.08); }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(12px); } }
@keyframes fade { from { opacity: 0; } }

/* ============ toast ============ */
.toasts { position: fixed; z-index: 150; left: 0; right: 0; bottom: 18px; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 460px; padding: 12px 16px 12px 14px; border-radius: var(--r-pill); background: var(--saddle-900); color: var(--on-dark); font-size: .92rem; font-weight: 500; box-shadow: var(--shadow-3); animation: toast-in var(--t-med) var(--ease-spring) both; }
.toast.out { animation: toast-out 220ms ease forwards; }
.toast i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-500); font-style: normal; font-size: .85rem; }
.toast.error i { background: var(--danger); } .toast.info i { background: var(--ember-500); }
.toast a { color: var(--turmeric-300); font-weight: 700; margin-left: 4px; }
.mobile-bar-on .toasts { bottom: 96px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(18px) scale(.94); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px) scale(.96); } }

/* tooltip */
[data-tip] { position: relative; }
@media (hover: hover) {
  [data-tip]::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); padding: 6px 11px; border-radius: var(--r-xs); background: var(--saddle-900); color: var(--on-dark); font: 600 .76rem/1.2 var(--font-body); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--t-fast), transform var(--t-med) var(--ease-out); z-index: 20; }
  [data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
}

/* skeleton (loading state) */
.skel { min-height: 420px; border-radius: 28px 28px 28px 10px; background: linear-gradient(100deg, rgba(160, 40, 30,.06) 30%, rgba(255,255,255,.7) 50%, rgba(160, 40, 30,.06) 70%) 0 0 / 220% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -120% 0; } }

/* ============ forms ============ */
.form-grid { display: grid; gap: var(--sp-4); } @media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.form-note { font-size: .9rem; color: var(--muted); }

/* ============ footer: dusk panel ============ */
.site-footer { margin: var(--sp-8) clamp(8px, 2vw, 28px) clamp(8px, 2vw, 28px); padding: var(--sp-7) 0 var(--sp-5); border-radius: var(--r-xl) var(--r-xl) var(--r-lg) var(--r-lg); background: var(--grad-dusk); color: var(--on-dark); font-size: .95rem; box-shadow: var(--shadow-3); }
.footer-grid { display: grid; gap: var(--sp-6); } @media (min-width: 900px) { .footer-grid { grid-template-columns: 1.2fr 1.4fr 1fr; gap: var(--sp-7); } }
.site-footer a { color: var(--on-dark); text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size var(--t-med) var(--ease-out), color var(--t-fast); }
.site-footer a:hover { color: #fff; background-size: 100% 2px; }
.site-footer .logo { color: #fff; background: none; } .site-footer .logo span { color: #fff; } .site-footer .logo small { color: var(--turmeric-300); }
.site-footer .tag { font: italic 400 1.9rem/1.1 var(--font-editorial); color: var(--turmeric-300); margin-top: 16px; max-width: 14ch; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px; }
.footer-links a { display: inline-block; padding: 7px 0; }
.site-footer p { margin: 0 0 8px; }
.fineprint { margin: var(--sp-6) 0 0 !important; padding-top: var(--sp-4); font-size: .84rem; color: var(--on-dark-muted); background-image: linear-gradient(90deg, rgba(255,255,255,.14), transparent); background-size: 100% 1px; background-repeat: no-repeat; }

/* ============ reveal (cards + sequences only) ============ */
.reveal { opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  .scroll-progress { display: none; }
  .steps.flow::after { transform: scaleX(1); }
}
@media (max-width: 899px) { .hero-bg i { display: none; } .hero-badge { width: 80px; height: 80px; font-size: .9rem; right: 6px; } .hero-chip { left: 8px; } }
