/* ============================================================
   Chiya Sewa · style.css (shared by all 7 pages)
   Mobile-first: base styles target ~360-390px phones;
   min-width media queries enhance tablet & desktop.
   Palette: deep browns, cream, marigold, leaf green.
   ============================================================ */

:root {
  /* Cormorant Garamond light editorial theme (legacy aliases kept for compat) */
  --night: #1C1009;
  --night-2: #2A1A0C;
  --brown: #1C1009;          /* legacy alias of --night */
  --brown-2: #2A1A0C;        /* legacy alias of --night-2 */
  --brown-3: #1C1009;        /* legacy alias of --night */
  --cream: #FFFBEB;
  --cream-2: #F8ECD2;
  --cream-deep: #F8ECD2;
  --terra: #9A3412;
  --ember: #C2410C;
  --ember-glow: #F59E3F;    /* warm gold-orange: strong pop on dark */
  --leaf: #1E7A4F;
  --leaf-light: #8FD0A8;
  --leaf-glow: #62C489;     /* small text on night: 8.7:1 */
  --gold-glow: #EEB04D;     /* small text on night: 9.8:1 */
  --marigold: #C2410C;      /* legacy alias of --ember */
  --marigold-deep: #9A3412; /* legacy alias of --terra */
  --ink: #221407;
  --muted: #6B5B4C;
  --card: #FFFFFF;
  --line: #F0E2CC;
  --radius: 0.75rem;
  --shadow: 0 18px 45px rgba(34, 20, 7, 0.10);
  --tap: 44px; /* minimum touch target */
  --font-head: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }

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

html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.0625rem;
}

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }
iframe { max-width: 100%; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.08; margin: 0 0 1rem; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.6rem, 11vw, 5.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 7.5vw, 3.1rem); font-weight: 500; }
h3 { font-size: 1.4rem; font-weight: 600; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: 4.5rem 0; scroll-margin-top: 4.5rem; }
.band { background: var(--cream-deep); }

.kicker {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.75rem; font-weight: 600; color: var(--terra);
  margin: 0 0 0.75rem;
}
.section-lead { font-size: 1.1rem; color: var(--muted); max-width: 38rem; margin: 0 0 2.5rem; }

.fineprint { font-size: 0.82rem; color: var(--muted); }

.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  background: var(--ember); color: #fff;
  border-radius: 999px; padding: 0.2em 0.8em; vertical-align: middle;
  letter-spacing: 0.04em;
}

/* ---------- Buttons (min 44px targets) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: var(--tap); padding: 0.7rem 1.6rem;
  border-radius: 0.625rem; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ember); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); background: var(--terra); color: #fff; }
.btn-ghost { border-color: rgba(255,251,235,0.7); color: var(--cream); }
.btn-ghost:hover { background: rgba(255,251,235,0.14); }
.btn-ghost-dark { border-color: var(--terra); color: var(--terra); background: transparent; font-size: 0.9rem; padding: 0.5rem 1.2rem; }
.btn-ghost-dark:hover { background: rgba(194,65,12,0.08); }
.btn-outline { border-color: var(--marigold-deep); color: var(--marigold-deep); background: transparent; }
.btn-outline:hover { background: var(--ember); border-color: var(--ember); color: #fff; }
.btn-small { min-height: var(--tap); padding: 0.55rem 1.2rem; font-size: 0.92rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.1rem;
  background: transparent;
  -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0);
  border: 1px solid transparent;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav.hidden {
  transform: translateY(-130%);
}
.nav.scrolled {
  inset: 0.75rem 1rem auto 1rem;
  border-radius: 1.25rem;
  background: rgba(14, 8, 4, 0.88);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid rgba(194,65,12,0.25);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}
.nav-logo { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--cream); text-decoration: none; }
.nav-logo img { width: 38px; height: 38px; border-radius: 50%; display: block; }
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px; justify-content: center; align-items: center;
  width: var(--tap); height: var(--tap); background: transparent; border: 0; cursor: pointer;
  position: relative; z-index: 60; /* above the full-screen menu overlay (z 49) */
}
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--cream); border-radius: 2px; transition: 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav-links {
  position: absolute; top: 100%; left: 0; right: 0;
  display: none; flex-direction: column; gap: 0.25rem;
  background: rgba(42, 26, 15, 0.97); padding: 0.75rem 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(194,65,12,0.25);
}
.nav-links.open { display: flex; }
.nav-links a {
  color: var(--cream); text-decoration: none; font-weight: 500;
  min-height: var(--tap); display: inline-flex; align-items: center;
  padding: 0.35rem 0.25rem;
}
.nav-links a:hover { color: var(--ember-glow); }
.nav-links a::after {
  content: ""; display: block; height: 2px; width: 0;
  background: var(--ember-glow); border-radius: 1px;
  transition: width 0.3s ease; margin-top: 2px;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ember-glow); font-weight: 700; }
.nav-links .btn { margin-top: 0.5rem; align-self: flex-start; }

/* ============================================================
   PRELOADER — paw-stamp reveal
   ============================================================ */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  width: 100vw; height: 100vh; height: 100svh;
  min-height: 100svh;
  background: #0e0804;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), visibility 0.7s;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-paw { width: 72px; height: 72px; }
.paw-pad { fill: var(--ember); opacity: 0; transform-origin: center; }
.paw-pad.p1 { animation: pawStamp 0.32s cubic-bezier(.34,1.56,.64,1) 0.25s forwards; }
.paw-pad.p2 { animation: pawStamp 0.32s cubic-bezier(.34,1.56,.64,1) 0.40s forwards; }
.paw-pad.p3 { animation: pawStamp 0.32s cubic-bezier(.34,1.56,.64,1) 0.55s forwards; }
.paw-pad.p4 { animation: pawStamp 0.32s cubic-bezier(.34,1.56,.64,1) 0.70s forwards; }
.paw-pad.p5 { animation: pawStamp 0.40s cubic-bezier(.34,1.56,.64,1) 0.90s forwards; }
@keyframes pawStamp {
  0%   { opacity: 0; transform: scale(0.2); }
  55%  { opacity: 1; transform: scale(1.18); }
  100% { opacity: 1; transform: scale(1); }
}
.preloader-text {
  font-family: var(--font-head); font-weight: 300;
  font-size: 1.15rem; color: var(--cream); letter-spacing: 0.18em;
  margin-top: 1.6rem; opacity: 0;
  animation: preloaderFade 0.55s ease 1.15s forwards;
}
.preloader-bar {
  width: 120px; height: 2px; background: rgba(255,251,235,0.10);
  margin-top: 1.2rem; border-radius: 2px; overflow: hidden;
}
.preloader-bar::after {
  content: ""; display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--ember), var(--ember-glow));
  border-radius: 2px;
  animation: preloaderProgress 1.6s ease 0.3s forwards;
}
@keyframes preloaderFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 0.75; transform: none; } }
@keyframes preloaderProgress { to { width: 100%; } }

/* ---------- Hero (home): "Every cup rises" ---------- */
.hero {
  --heroNight: 1;
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: flex-start;
  background: rgba(28,16,9,var(--heroNight)); color: var(--cream);
  overflow: clip; text-align: left;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("../assets/hero-bg.jpg") center 55%/cover no-repeat, var(--night);
  filter: saturate(1.05) contrast(1.04);
  will-change: transform;
  animation: heroKenBurns 28s ease-in-out infinite alternate;
}
@keyframes heroKenBurns {
  from { transform: scale(1.02); }
  to   { transform: scale(1.12) translateY(-1.8%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; transform: scale(1.05); }
}
/* melt zone: the dark scene dissolves into cream, no hard edge */
.hero-melt {
  position: absolute; left: 0; right: 0; bottom: 0; height: 36vh; z-index: 1;
  background: linear-gradient(0deg, var(--cream) 0%, rgba(255,251,235,0.6) 42%, rgba(255,251,235,0) 100%);
  opacity: 0; pointer-events: none;
}
/* cinematic scrim: gentle fade for text legibility, photo breathes through */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: var(--heroNight, 1);
  background:
    radial-gradient(circle at 68% 28%, rgba(241,162,60,0.30), rgba(241,162,60,0) 20%),
    linear-gradient(90deg, rgba(18,11,8,0.54) 0%, rgba(18,11,8,0.34) 35%, rgba(18,11,8,0.10) 60%, rgba(18,11,8,0.06) 78%),
    linear-gradient(180deg, rgba(18,11,8,0.04) 0%, rgba(18,11,8,0.38) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  width: min(76rem, 100%); margin: 0 auto;
  padding: 7rem clamp(1.25rem, 6vw, 4rem) 5rem;
}
.hero-title {
  font-family: var(--font-head); font-weight: 300;
  font-size: clamp(3.4rem, 11vw, 8.5rem); line-height: 0.95; letter-spacing: -0.01em;
  margin: 0; color: var(--cream); text-wrap: balance;
}
.hero-title .h-line { display: block; overflow: hidden; padding-bottom: 0.09em; margin-bottom: -0.09em; }
.hero-title .h-inner { display: block; will-change: transform; }
.hero-title em {
  font-style: italic; color: var(--ember-glow);
  font-weight: 400;
  text-shadow: 0 0 40px rgba(245,158,63,0.25);
}
.hero-sub { font-size: 1.18rem; line-height: 1.65; color: #eed8b5; max-width: 42rem; margin: 1.8rem 0 2.4rem; font-weight: 300; }
.hero-cta { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.hero .hero-cta { justify-content: flex-start; align-items: center; }
.hero-textlink {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--cream); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid rgba(255,251,235,0.35); padding-bottom: 0.15rem;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.hero-textlink:hover { color: var(--ember-glow); border-color: var(--ember-glow); }
.hero-textlink .ic { width: 1.05em; height: 1.05em; }
.hero-stats {
  display: flex; gap: clamp(1.5rem, 4vw, 3rem); flex-wrap: wrap;
  margin: 2.6rem 0 0; padding: 1.4rem 0 0;
  border-top: 1px solid rgba(255,251,235,0.16);
  font-family: var(--font-mono); max-width: 44rem;
}
.hstat { display: flex; flex-direction: column; gap: 0.35rem; }
.hstat-num { font-size: 1.35rem; font-weight: 600; color: var(--cream); letter-spacing: 0.02em; }
.hstat-label { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: #c8a97e; }
.hero-scroll {
  position: absolute; bottom: 1.1rem; left: 50%; transform: translateX(-50%); z-index: 2;
  width: var(--tap); height: var(--tap); display: flex; align-items: center; justify-content: center;
  color: var(--cream); text-decoration: none; font-size: 1.4rem;
  border: 1.5px solid rgba(255,251,235,0.5); border-radius: 50%;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.hero-scroll:hover { background: rgba(255,251,235,0.14); border-color: var(--ember-glow); }

@media (max-height: 800px) {
  .hero-content { padding: 6rem clamp(1rem, 5vw, 3rem) 3.5rem; }
  .hero-title { font-size: clamp(2.8rem, 9vw, 6.5rem); }
  .hero-sub { margin: 1.2rem 0 1.8rem; font-size: 1.05rem; }
  .hero-stats { margin: 1.8rem 0 0; padding: 1rem 0 0; }
  .hstat-num { font-size: 1.15rem; }
}

/* ---------- Page hero (inner pages: light 3D band) ---------- */
.page-hero {
  position: relative; min-height: 52svh;
  display: flex; align-items: flex-end;
  background: var(--brown-3); color: var(--cream);
  overflow: clip; padding: 6.5rem 0 2.75rem;
}
.page-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(28,16,9,0.25), rgba(28,16,9,0.88));
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.4rem, 9vw, 4.2rem); font-weight: 500; margin-bottom: 0.5rem; }
.page-hero .kicker { color: var(--page-accent, var(--marigold)); }
.page-hero p.lead { color: #ecd9bd; max-width: 36rem; margin: 0; font-size: 1.05rem; }
body.no-webgl .page-hero canvas { display: none; }
body.no-webgl .page-hero { background: var(--brown-3) url("../assets/hero-bg.jpg") center/cover; }

/* ---------- Body page transition ---------- */
body { animation: pageFadeIn 0.45s ease both; }
@keyframes pageFadeIn { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { body { animation: none; } }

/* ---------- Dog cursor follower ---------- */
.dog-follower {
  position: fixed; z-index: 9990; pointer-events: none;
  width: 28px; height: 28px;
  color: var(--ember-glow); opacity: 0.3;
  filter: drop-shadow(0 0 6px rgba(245,158,63,0.35));
  transition: opacity 0.3s ease;
  will-change: transform, left, top;
}
.dog-follower svg { width: 100%; height: 100%; display: block; }
.dog-trail {
  position: fixed; z-index: 9989; pointer-events: none;
  width: 18px; height: 18px;
  color: var(--ember-glow); opacity: 0.25;
  transition: opacity 0.8s ease;
}
.dog-trail svg { width: 100%; height: 100%; display: block; }
.dog-trail.fading { opacity: 0; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: 4rem 0; }
.cta-band h2 { margin-bottom: 0.75rem; }
.cta-band p { color: var(--muted); max-width: 34rem; margin: 0 auto 1.75rem; }


/* ---------- Split layout (stacked on mobile) ---------- */
.split { display: grid; gap: 2.5rem; align-items: center; }
.split-media img, .map { box-shadow: var(--shadow); }
.map { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }
.pull-quote {
  margin: 1.75rem 0 0; padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--marigold); background: rgba(194,65,12,0.1);
  border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.12rem; font-style: italic;
}
.pull-quote cite { display: block; font-style: normal; font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; }

/* ---------- Cards ---------- */
.cards-3, .cards-2, .support-grid { display: grid; gap: 1.25rem; margin-top: 1rem; }
.card, .dog-card, .support-card, .hl-card {
  background: var(--card); color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}
.card:hover, .dog-card:hover, .support-card:hover, .hl-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(34,20,7,0.12);
}
.card { padding: 1.75rem 1.5rem; }

.card-emoji { font-size: 2.4rem; margin-bottom: 0.75rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { margin: 0; color: var(--muted); }

.hl-card img { border-radius: 0; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.hl-card-body { padding: 1.5rem; }
.hl-card-body p { margin: 0 0 1.1rem; color: var(--muted); }


.dog-card img { border-radius: 0; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.dog-card-body { padding: 1.5rem; }
.dog-card-body p { margin: 0; color: var(--muted); }


/* Support cards */
.support-card { padding: 1.75rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.support-card h3 { margin-bottom: 0.25rem; }
.support-card p { margin: 0 0 1rem; color: var(--muted); flex: 1; }

.support-card .btn { align-self: flex-start; }
.soon-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  background: rgba(30,122,79,0.16); color: var(--leaf); border: 1px dashed var(--leaf);
  border-radius: 999px; padding: 0.25em 0.9em; align-self: flex-start;
}


/* ---------- Order widget ---------- */
.widget {
  margin-top: 3rem; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.75rem 1.25rem;
}
.widget h3 { margin-bottom: 0.4rem; }
.widget-note { color: var(--muted); font-size: 0.95rem; margin: 0 0 1.25rem; }
.widget-items { display: grid; gap: 0.75rem; }
.widget-item {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 56px; padding: 0.7rem 1.1rem; border-radius: 0.9rem;
  background: var(--cream); color: var(--ink);
  border: 1.5px solid var(--line); cursor: pointer;
  font-size: 1rem; font-family: var(--font-body); width: 100%;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.widget-item:hover { border-color: var(--terra); }
.widget-item[aria-pressed="true"] { background: var(--ember); border-color: var(--ember); color: #fff; font-weight: 700; }
.wi-price { font-weight: 600; opacity: 0.85; }
.widget-result { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.wr-total { margin: 0; font-size: 1.05rem; }
.wr-impact { margin: 0; flex-basis: 100%; font-size: 1.05rem; color: var(--terra); font-weight: 600; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2rem; }
.stat {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.5rem 1.25rem; text-align: center;
}
.stat-num { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.9rem, 8vw, 2.8rem); color: var(--marigold-deep); }
.stat-label { font-size: 0.9rem; color: var(--muted); }

/* ---------- Money breakdown bars ---------- */
.money-rows { margin-top: 2.5rem; display: grid; gap: 1rem; }
.money-row {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.25rem 1.4rem;
}
.money-row .mr-emoji { font-size: 1.8rem; line-height: 1.2; }
.money-row h3 { font-size: 1.1rem; margin: 0 0 0.25rem; }
.money-row p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 2.5rem 0 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 3px;
  background: linear-gradient(var(--marigold), var(--leaf)); border-radius: 3px;
}
.timeline li { position: relative; padding: 0 0 1.75rem 2.5rem; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 0; font-size: 1.05rem;
  background: var(--cream); border-radius: 50%; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
}
.timeline strong { display: block; font-family: var(--font-head); font-size: 1.15rem; }
.timeline span { color: var(--muted); }

/* ---------- Menu / visit lists ---------- */
.mini-h { margin: 2rem 0 0.75rem; font-size: 1.2rem; }
.menu-list, .visit-list { list-style: none; margin: 0; padding: 0; }
.menu-list li, .visit-list li {
  display: flex; align-items: baseline; gap: 0.6rem;
  padding: 0.8rem 0; border-bottom: 1px dashed rgba(194,65,12,0.4);
}
.menu-list .dots { flex: 1; border-bottom: 2px dotted rgba(194,65,12,0.5); transform: translateY(-4px); }
.visit-list li { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
.visit-list strong { color: var(--marigold); }

/* ---------- Slider ---------- */
.slider { overflow: clip; margin-top: 2rem; }
.slider-track { display: flex; transition: transform 0.45s ease; }
.slide {
  flex: 0 0 100%; margin: 0; padding: 2.25rem 1.75rem;
  background: var(--card); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
  text-align: center;
}
.slide blockquote { font-family: var(--font-head); font-size: 1.18rem; margin: 1rem 0; font-style: italic; }
.slide figcaption { color: var(--muted); font-size: 0.92rem; }
.stars { color: var(--marigold); font-size: 1.3rem; letter-spacing: 0.2em; }
.stars-partial { position: relative; display: inline-block; font-size: 1.3rem; line-height: 1.2; color: #dcc9a6; }
.stars-partial .fg { position: absolute; left: 0; top: 0; width: 94%; overflow: hidden; white-space: nowrap; color: var(--marigold); }
.slider-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.25rem; }
.slider-btn {
  width: var(--tap); height: var(--tap); border-radius: 50%;
  border: 1.5px solid var(--marigold-deep); background: transparent; color: var(--marigold-deep);
  font-size: 1.2rem; cursor: pointer;
}
.slider-btn:hover { background: var(--marigold); color: #fff; border-color: var(--marigold); }
.slider-dots { display: flex; gap: 0.6rem; }
.slider-dots button {
  width: 14px; height: 14px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(28,16,9,0.25); padding: 0; min-height: 0;
}
.slider-dots button[aria-selected="true"] { background: var(--marigold-deep); }

/* ---------- Footer ---------- */
.footer {
  background: var(--brown-3); color: #d9c3a3; padding: 4.5rem 0 1.8rem;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, transparent 5%, var(--ember) 30%, var(--ember-glow) 50%, var(--ember) 70%, transparent 95%) 1;
}
.footer-grid { display: grid; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-logo { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-head); font-size: 1.5rem; color: var(--cream); margin: 0 0 0.6rem; }
.footer-logo img { width: 54px; height: 54px; border-radius: 50%; display: block; }
.footer-h { font-family: var(--font-mono); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ember-glow); margin: 0 0 0.65rem; }
.footer nav { display: flex; flex-direction: column; gap: 0.15rem; }
.footer nav a { color: #d9c3a3; text-decoration: none; min-height: var(--tap); display: inline-flex; align-items: center; transition: color 0.2s ease, transform 0.2s ease; }
.footer nav a:hover { color: var(--cream); transform: translateX(4px); }
.footer-made { text-align: center; font-family: var(--font-head); font-size: 1.1rem; color: var(--cream); margin-top: 2rem; }

/* ---------- Rescue Stories: editorial long-read ---------- */
.story-narrow { max-width: 44rem; margin: 0 auto; }
.story-chapter-no { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--terra); margin: 0 0 0.8rem; }
.story-chapter h2 { font-size: clamp(2.6rem, 8vw, 4rem); margin-bottom: 1.5rem; }
.story-body p { font-size: 1.13rem; line-height: 1.75; margin: 0 0 1.4rem; color: var(--ink); }
.story-body p.dropcap::first-letter { font-family: var(--font-head); font-weight: 500; font-size: 4.4em; float: left; line-height: 0.82; padding: 0.06em 0.14em 0 0; color: var(--terra); }
.story-figure { margin: 2.8rem 0; }
.story-figure img { width: 100%; height: auto; display: block; }
.story-figure figcaption { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 0.8rem; }
.pull-line { font-family: var(--font-head); font-style: italic; font-weight: 400; font-size: clamp(1.7rem, 4.5vw, 2.4rem); line-height: 1.25; text-align: center; color: var(--terra); margin: 3rem auto; max-width: 36rem; }
.pull-line::before, .pull-line::after { content: ""; display: block; width: 3.5rem; height: 1px; background: var(--terra); opacity: 0.45; margin: 1.4rem auto; }

/* ---------- invitation band + shared footer ---------- */
.invite-band { background: var(--terra); color: var(--cream); padding: 4.5rem 0; }
.invite-grid { display: grid; gap: 2rem; align-items: center; }
.invite-band .kicker { color: var(--gold-glow); }
.invite-band h2 { color: var(--cream); font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 500; margin-bottom: 0.8rem; }
.invite-sub { color: #f3ddba; max-width: 34rem; font-size: 1.08rem; line-height: 1.6; margin: 0; }
.invite-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: #ffffff; color: var(--ink); transform: translateY(-2px); }
.btn-ghost-light { border: 2px solid rgba(255,251,235,0.55); color: var(--cream); background: transparent; }
.btn-ghost-light:hover { background: rgba(255,251,235,0.14); color: var(--cream); }
.footer-fine { text-align: center; }
.footer-nudge .btn { margin-top: 0.8rem; }
@media (min-width: 900px) {
  .invite-grid { grid-template-columns: 1.5fr 1fr; }
  .invite-actions { justify-content: flex-end; align-items: center; }
}

/* ---------- Reveal default (no-JS / no-GSAP safe) ---------- */
.reveal { opacity: 1; }
.js-anim .reveal { opacity: 0; } /* main.js adds .js-anim only when GSAP is ready */

/* ============================================================
   Tablet & desktop enhancements (mobile-first: min-width up)
   ============================================================ */
@media (min-width: 700px) {
  .cards-3, .support-grid { grid-template-columns: repeat(3, 1fr); }
  .cards-2 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .widget-items { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .map { height: 420px; }
  .support-grid { grid-template-columns: repeat(2, 1fr); }
  .money-rows { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .nav { padding: 0.7rem 2rem; }
  .nav-toggle { display: none; }
  .nav-links {
    position: static; display: flex; flex-direction: row; align-items: center; gap: 1.6rem;
    background: transparent; border: 0; padding: 0;
  }
  .nav-links .btn { margin-top: 0; }
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .section { padding: 6.5rem 0; }
  .page-hero { min-height: 60svh; }
  .support-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .slider-track { transition: none; }
}


/* ============================================================
   Premium refinement pass: anti-slop layer
   (film grain, icon system, editorial layouts, charity components)
   ============================================================ */

/* film grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

::selection { background: var(--ember); color: #fff; }
:focus-visible { outline: 2.5px solid var(--marigold-deep); outline-offset: 3px; border-radius: 6px; }

/* ---------- icon system ---------- */
.ic { width: 1.2em; height: 1.2em; flex: none; vertical-align: -0.24em; }
.ic-chip {
  width: 46px; height: 46px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(194,65,12,.15); color: var(--marigold-deep);
  transition: transform .25s ease, background .25s ease;
}
.ic-chip .ic { width: 24px; height: 24px; }
.ic-chip.sm { width: 38px; height: 38px; border-radius: 10px; }
.ic-chip.sm .ic { width: 20px; height: 20px; }

li:hover > .ic-chip { transform: translateY(-2px); }

/* ---------- photos: art-directed grade ---------- */
img.photo { border-radius: 12px; box-shadow: var(--shadow); filter: sepia(.22) saturate(1.06) contrast(1.02); }

/* ---------- editorial index (home highlights) ---------- */
.hl-index { margin-top: 2.5rem; border-top: 1px solid rgba(28,16,9,.16); }
.hl-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.1rem; align-items: center;
  padding: 1.4rem 1rem; border-bottom: 1px solid rgba(28,16,9,.16);
  text-decoration: none; color: inherit;
  border-radius: var(--radius);
  transition: background-color .45s cubic-bezier(.16, 1, .3, 1), transform .45s cubic-bezier(.16, 1, .3, 1), scale .45s cubic-bezier(.16, 1, .3, 1), box-shadow .45s ease;
}
.hl-num { font-family: var(--font-mono); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.08em; color: var(--marigold-deep); transition: color .45s ease; }
.hl-row img { width: 84px; height: 84px; object-fit: cover; transition: transform .5s cubic-bezier(.16, 1, .3, 1), filter .5s ease; }
.hl-text h3 { margin: 0 0 .3rem; font-size: 1.3rem; transition: color .45s ease; }
.hl-text p { margin: 0; color: var(--muted); }
.hl-arrow { width: 26px; height: 26px; color: var(--marigold-deep); transition: transform .45s cubic-bezier(.16, 1, .3, 1), color .45s ease; }
.hl-row:active { background: rgba(194,65,12,.04); }
@media (hover: hover) and (pointer: fine) {
  .hl-row:hover { background: rgba(194,65,12,.035); transform: translateY(-1px); scale: 1.012; box-shadow: 0 5px 18px rgba(45,24,12,.045); }
  .hl-row:hover .hl-num,
  .hl-row:hover .hl-text h3,
  .hl-row:hover .hl-arrow { color: var(--terra); }
  .hl-row:hover img { transform: scale(1.04); filter: sepia(.08) saturate(1.04) contrast(1.025); }
  .hl-row:hover .hl-arrow { transform: translateX(3px); }
}
@media (min-width: 700px) {
  .hl-row { grid-template-columns: 64px 150px 1fr auto; gap: 1.6rem; }
  .hl-row img { width: 150px; height: 100px; }
  .hl-num { font-size: 1.35rem; }
}

/* ---------- dog features (asymmetric rows) ---------- */
.dog-features { display: grid; gap: 3rem; margin-top: 2.5rem; }
.dog-feature { display: grid; gap: 1.25rem; align-items: center; }
.dog-feature > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.dog-feature-text .kicker { margin-bottom: .35rem; }
.dog-feature-text h3 { font-size: 1.9rem; margin: 0 0 .6rem; }
.dog-feature-text p { color: var(--muted); margin: 0 0 1.1rem; }
.text-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--marigold-deep); text-decoration: none; }
.text-link:hover { color: var(--ink); }
.text-link .ic { transition: transform .25s ease; }
.text-link:hover .ic { transform: translateX(4px); }
.dog-feature > img { transition: transform 0.6s cubic-bezier(0.16,1,0.3,1), filter 0.6s ease, box-shadow 0.6s ease; }
.dog-feature:hover > img { transform: scale(1.03); filter: sepia(.0) saturate(1.2) contrast(1.05) brightness(1.05); box-shadow: 0 15px 35px rgba(28,16,9,0.2); }
.stat { transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease; padding: 1rem; border-radius: 12px; }
.stat:hover { transform: translateY(-6px) scale(1.02); background: rgba(255,251,235,0.03); filter: drop-shadow(0 8px 16px rgba(194,65,12,0.15)); }
.money-row { transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease; border-radius: 12px; padding: 1rem; }
.money-row:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 22px 50px rgba(34,20,7,0.14); background: #fff; }
@media (min-width: 700px) {
  .dog-feature { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .dog-feature.flip > img { order: 2; }
}

/* ---------- icon list with rules ---------- */
.icon-list { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.icon-list > li {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
  padding: 1.3rem 0; border-top: 1px solid rgba(28,16,9,.16);
}
.icon-list > li:last-child { border-bottom: 1px solid rgba(28,16,9,.16); }
.icon-list h3 { margin: 0 0 .3rem; font-size: 1.25rem; }
.icon-list p { margin: 0; color: var(--muted); }
.icon-list .btn { margin-top: .9rem; }



/* ---------- numbered timeline ---------- */
.timeline::before, .timeline li::before { display: none; }
.timeline { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; padding: 1.4rem 0; border-top: 1px solid rgba(194,65,12,.3); }
.timeline li:last-child { border-bottom: 1px solid rgba(194,65,12,.3); }
.t-num { font-family: var(--font-mono); font-weight: 600; font-size: 2.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--terra); }
@supports not (-webkit-text-stroke: 1px black) { .t-num { color: var(--terra); } }
.timeline strong { display: block; font-family: var(--font-head); font-size: 1.2rem; margin-bottom: .25rem; }
.timeline span { color: var(--muted); }

/* ---------- donation tiers ---------- */
.tiers { display: grid; gap: 1.25rem; margin-top: 2rem; }
.tier { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 1.75rem 1.5rem; text-align: center; }
.tier-amount { font-family: var(--font-head); font-size: 2.3rem; font-weight: 700; color: var(--marigold-deep); margin: 0 0 .4rem; }
.tier h3 { margin: 0 0 .4rem; }
.tier p { color: var(--muted); margin: 0 0 .9rem; }
.tier-featured { border: 2px solid var(--marigold); }
@media (min-width: 700px) { .tiers { grid-template-columns: repeat(3, 1fr); } }

/* ---------- give band (charity CTA) ---------- */
.give-band {
  margin: 3.5rem 0 1rem; border-radius: 12px; padding: 2rem 1.75rem;
  background: linear-gradient(135deg, rgba(194,65,12,.16), rgba(194,65,12,.06));
  border: 1px solid rgba(194,65,12,.35);
  display: grid; gap: 1.25rem; align-items: center;
}
.give-band h2 { font-size: 1.6rem; margin: 0 0 .35rem; }
.give-band p { margin: 0; color: var(--muted); }
.give-band-actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
@media (min-width: 700px) { .give-band { grid-template-columns: 1fr auto; padding: 2.25rem 2.5rem; } }

/* ---------- newsletter ---------- */
.newsletter { margin-top: 2.5rem; background: rgba(194,65,12,.1); border: 1px solid rgba(194,65,12,.3); border-radius: 12px; padding: 1.75rem; }
.newsletter h3 { margin: 0 0 .3rem; }
.newsletter > p { color: var(--muted); margin: 0 0 1.1rem; }
.newsletter-form { display: grid; gap: .75rem; }
.newsletter-form input {
  min-height: var(--tap); border: 1.5px solid rgba(28,16,9,.25); border-radius: 10px;
  padding: .7rem 1rem; font: inherit; background: #fff; color: var(--ink); width: 100%;
}
.newsletter-form input:focus { border-color: var(--marigold-deep); outline: none; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn[disabled]:active { transform: none; }
@media (min-width: 700px) { .newsletter-form { grid-template-columns: 1fr auto; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- visit list with icons ---------- */
.visit-list li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: center; }
.visit-list strong { color: var(--marigold-deep); display: block; margin-bottom: .15rem; }

/* nav: keep donate button text dark when active */
.nav-links a.btn.active { color: #fff; }

/* larger lead on inner heroes */
.page-hero p.lead { font-size: 1.1rem; }

/* type scale up on desktop */
@media (min-width: 900px) {
  body { font-size: 1.125rem; }
  .section-lead { font-size: 1.15rem; }
}

/* ---- bundle: hash-routed pages (one file, 7 pages) ---- */
.page{display:none}
.page.active{display:block}
/* ============================================================
   Mobile-only premium pass (max-width: 768px).
   Desktop styles above are intentionally untouched.
   ============================================================ */
.paw-progress, .donate-pill, .sec-num, .motif-divider,
.tier-perf, .tier-stub-no, .menu-watermark { display: none; }

@media (max-width: 768px) {

  .hero {
    min-height: 82svh;
  }

  .page-hero {
    min-height: 66svh;
    display: flex;
    align-items: center;
    padding-top: 6.2rem;
    padding-bottom: 2rem;
  }

  .page-hero .container {
    padding-top: 1.2rem;
  }

  .hero-content {
    padding-top: clamp(7rem, 23vw, 8.5rem);
    padding-bottom: clamp(3rem, 10vw, 4rem);
  }

  .page-hero h1 {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }

  .page-hero p.lead {
    font-size: 1rem;
  }

  .hero-title {
    font-size: clamp(3rem, 17vw, 5.1rem);
    line-height: 0.9;
  }

  .hero-sub {
    font-size: clamp(1.05rem, 4.4vw, 1.35rem);
    margin: 1.2rem 0 1.8rem;
  }

  .hero-stats {
    gap: 1.1rem 1.5rem;
    margin-top: 1.8rem;
  }

  .hero-scroll {
    bottom: 0.8rem;
  }

  /* ---- type rhythm ---- */
  h2 { font-size: clamp(2rem, 8vw, 2.7rem); }
  .section { padding: 3.75rem 0; }

  /* ---- editorial section numerals ---- */
  .sec-num {
    display: block; font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.1em;
    font-size: clamp(3.4rem, 15vw, 4.6rem); line-height: 1;
    color: transparent; -webkit-text-stroke: 1.5px var(--marigold-deep);
    margin: 0 0 0.35rem; user-select: none;
  }

  @supports not (-webkit-text-stroke: 1px black) {
    .sec-num { color: var(--marigold-deep); }

  }

  /* ---- motif dividers ---- */
  .motif-divider { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0.35rem 0; }
  .motif-divider .md-rule { height: 1px; width: 62px; background: rgba(28,16,9,.22); }
  .motif-divider svg.ic { color: var(--marigold-deep); }
  .motif-divider svg.ic:nth-of-type(1) { width: 20px; height: 20px; }
  .motif-divider svg.ic:nth-of-type(2) { width: 15px; height: 15px; opacity: .6; }
  .motif-divider svg.ic:nth-of-type(3) { width: 11px; height: 11px; opacity: .38; }

  /* ---- full-screen menu overlay ---- */
  .nav-links {
    position: fixed; inset: 0; z-index: 49;
    display: flex; flex-direction: column; justify-content: center;
    gap: 0.2rem; padding: 4.5rem 2.2rem 5rem;
    background: #1C1009; border: 0; overflow: hidden;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .38s ease, transform .38s ease, visibility 0s linear .38s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; transition: opacity .38s ease, transform .38s ease; }
  .nav-links a {
    font-family: var(--font-head); font-size: clamp(1.9rem, 7.5vw, 2.4rem);
    font-weight: 600; color: var(--cream); padding: 0.45rem 0; min-height: var(--tap);
  }
  .nav-links a.active { color: var(--ember-glow); }
  .nav-links .btn { font-family: var(--font-body); font-size: 1rem; margin-top: 1.1rem; align-self: stretch; justify-content: center; }
  .menu-watermark {
    display: block; position: absolute; right: -46px; bottom: -46px;
    width: 300px; height: 300px; color: rgba(194,65,12,.09); pointer-events: none;
  }

  /* ---- sticky bottom tab bar ---- */
  .nav {
    display: none !important;
  }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: flex; position: fixed; left: max(.65rem, env(safe-area-inset-left)); right: max(.65rem, env(safe-area-inset-right)); bottom: max(.55rem, env(safe-area-inset-bottom)); z-index: 60;
    background: rgba(18,10,6,.92);
    -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15);
    border: 1px solid rgba(255,234,202,.14);
    border-radius: 1.1rem;
    box-shadow: 0 12px 30px rgba(10,6,4,.32), inset 0 1px rgba(255,255,255,.04);
    padding: .38rem .42rem;
  }
  .tabbar a {
    flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; min-height: 58px; position: relative;
    color: #d8b68a; text-decoration: none; font-size: .64rem; font-weight: 600; letter-spacing: .02em;
    border-radius: .8rem; transition: color .2s ease, transform .15s ease, background .2s ease, box-shadow .2s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .tabbar a:hover { color: var(--cream); }
  .tabbar a .ic { width: 24px; height: 24px; }
  .tabbar a .tab-paw { display: none; position: absolute; top: 3px; width: 11px; height: 11px; color: var(--ember-glow); }
  .tabbar a.active {
    color: var(--cream);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    box-shadow: inset 0 0 0 1px rgba(194,65,12,.12);
  }
  .tabbar a.active .tab-paw { display: block; }
  .tabbar a:active { transform: scale(.94); }
  .tabbar a:active .ic { animation: tab-bounce .35s ease; }
  @keyframes tab-bounce { 0% { transform: translateY(0); } 40% { transform: translateY(-5px); } 100% { transform: translateY(0); } }
  .tabbar a.tab-donate {
    background: linear-gradient(180deg, #ce4d1b, #b73d13);
    color: #fff;
    margin: 2px 3px;
    font-weight: 700;
    box-shadow: 0 10px 18px rgba(194,65,12,.28), inset 0 1px rgba(255,255,255,.18);
  }
  .footer { padding-bottom: 2.5rem; }

  /* ---- paw-trail scroll progress ---- */
  .paw-progress { display: block; position: fixed; right: 5px; top: 50%; transform: translateY(-50%); z-index: 55; transition: opacity .3s ease; }
  .paw-progress.is-hidden { opacity: 0; pointer-events: none; }
  .paw-track { position: relative; width: 20px; height: 118px; border-radius: 999px; background: rgba(28,16,9,.1); border: 1px solid rgba(28,16,9,.16); }
  .paw-runner { position: absolute; top: 1px; left: 50%; width: 18px; height: 18px; margin-left: -9px; color: var(--marigold-deep); }
  body.menu-open .paw-progress, body.menu-open .donate-pill { opacity: 0 !important; pointer-events: none !important; }

  /* ---- sticky donate pill ---- */
  .donate-pill {
    display: inline-flex; align-items: center; gap: .45rem;
    position: fixed; right: 1rem; bottom: calc(100px + env(safe-area-inset-bottom)); z-index: 60;
    background: var(--ember); color: #fff; font-weight: 700; font-size: .95rem;
    padding: .72rem 1.25rem; border-radius: 999px; text-decoration: none;
    box-shadow: 0 10px 28px rgba(28,16,9,.35);
    opacity: 0; transform: translateY(14px) scale(.92); pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .donate-pill.show { opacity: 1; transform: none; pointer-events: auto; }
  .donate-pill:active { transform: scale(.93); }

  /* ---- mobile hero: cinematic poster ---- */
  .hero { flex-direction: column; justify-content: flex-end; align-items: stretch; text-align: left; min-height: 100svh; }
  .hero-bg { background-position: center 62%; }
  .hero-melt { height: 22vh; }
  .hero::before {
    background:
      linear-gradient(0deg, rgba(20,11,6,0.94) 0%, rgba(20,11,6,0.62) 40%, rgba(20,11,6,0.22) 68%, rgba(20,11,6,0.38) 100%),
      linear-gradient(90deg, rgba(20,11,6,0.30) 0%, rgba(20,11,6,0) 55%);
  }
  .hero-content { width: 100%; max-width: none; padding: 6rem 1.25rem 2.75rem; }
  .hero-title { font-size: clamp(2.9rem, 13.5vw, 4.4rem); letter-spacing: 0.005em; line-height: 1.02; }
  .hero-sub { margin: 1.25rem 0 1.75rem; font-size: 1.05rem; }
  .hero .hero-cta { flex-direction: row; align-items: center; }
  .hero .hero-cta .btn-primary { flex: 1; justify-content: center; }
  .hero-scroll { display: none; }
  .hero-stats { gap: 1.25rem 1.75rem; margin-top: 1.75rem; padding-top: 1.1rem; max-width: none; }
  .hstat-num { font-size: 1.15rem; }
  .page-hero { min-height: 48svh; padding-top: 6rem; }
  .page-hero h1 { font-size: clamp(2.4rem, 10.5vw, 3.4rem); }

  /* ---- snap-scroll carousels (edge bleed, hidden scrollbars) ---- */
  .tiers, .money-rows, .widget-items {
    display: flex; gap: 1rem; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 1.25rem;
    margin-inline: -1.25rem; padding: 0.5rem 2.5rem 1.25rem 1.25rem;
    scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch;
  }
  .tiers::-webkit-scrollbar, .money-rows::-webkit-scrollbar, .widget-items::-webkit-scrollbar { display: none; }
  .tiers > .tier { flex: 0 0 84%; scroll-snap-align: center; }
  .money-rows > .money-row { flex: 0 0 84%; scroll-snap-align: center; }
  .widget-items > .widget-item { flex: 0 0 66%; scroll-snap-align: center; }

  /* ---- ticket-stub donation tiers ---- */
  .tier { position: relative; overflow: hidden; text-align: left; padding: 1.4rem 1.4rem 1.5rem; }
  .tier-stub-no { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 0 0 .15rem; }
  .tier-amount { text-align: left; }
  .tier-perf { display: block; border-top: 2px dashed rgba(28,16,9,.3); margin: 1.1rem -1.4rem; position: relative; }
  .tier-perf::before, .tier-perf::after {
    content: ""; position: absolute; top: -12px; width: 22px; height: 22px;
    border-radius: 50%; background: var(--cream);
  }
  .tier-perf::before { left: 0; transform: translateX(-50%); }
  .tier-perf::after { right: 0; transform: translateX(50%); }
  .tier-featured .tier-perf::before, .tier-featured .tier-perf::after { box-shadow: 0 0 0 2px var(--marigold); }

  /* ---- full-bleed photo moments ---- */
  .dog-feature { display: block; }
  .dog-feature-text { margin-top: 1.25rem; }
  .bleed-frame {
    position: relative; display: block;
    width: 100vw; max-width: 100vw;
    margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
    overflow: hidden; aspect-ratio: 16/10; border-radius: 0;
  }
  .bleed-frame img.photo {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: 0; box-shadow: none; margin: 0;
    transform: scale(1.15); will-change: transform;
  }
  .bleed-cap {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 2.4rem 1.25rem 1rem; margin: 0;
    color: var(--cream); font-size: .92rem; font-weight: 600; letter-spacing: .01em;
    background: linear-gradient(transparent, rgba(28,16,9,.8));
  }

  /* ---- micro-interactions ---- */
  .btn, .widget-item, .hl-row, .money-row, .icon-list .btn { -webkit-tap-highlight-color: transparent; }
  .btn:active { transform: scale(.96); }
  .tiers > *:active, .money-rows > *:active { transform: scale(.97); }
  .hl-row:active { background: rgba(194,65,12,.08); }

  /* ---- sticky bottom tab bar ---- */
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(28,16,9,.9);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-top: 1px solid rgba(194,65,12,.28);
    padding: .4rem .2rem calc(.4rem + env(safe-area-inset-bottom));
  }
  .tabbar a {
    flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; min-height: 58px; position: relative;
    color: #cfa878; text-decoration: none; font-size: .68rem; font-weight: 600; letter-spacing: .02em;
    border-radius: 12px; transition: color .2s ease, transform .15s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .tabbar a .ic { width: 25px; height: 25px; }
  .tabbar a .tab-paw { display: none; position: absolute; top: 3px; width: 11px; height: 11px; color: var(--ember-glow); }
  .tabbar a.active { color: var(--ember-glow); }
  .tabbar a.active .tab-paw { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .paw-progress { display: none !important; }
  .tabbar a:active .ic { animation: none; }
}

/* ---- mobile overlay for tablets (769-899px) ---- */
@media (min-width: 769px) and (max-width: 899px) {
  .nav-links {
    position: fixed; inset: 0; z-index: 49;
    display: flex; flex-direction: column; justify-content: center;
    gap: 0.4rem; padding: 5rem 3rem 5rem;
    background: #1C1009; border: 0; overflow: hidden;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .38s ease, transform .38s ease, visibility 0s linear .38s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; transition: opacity .38s ease, transform .38s ease; }
  .nav-links a {
    font-family: var(--font-head); font-size: clamp(1.9rem, 6vw, 2.4rem);
    font-weight: 600; color: var(--cream); padding: 0.5rem 0; min-height: var(--tap);
  }
  .nav-links a.active { color: var(--ember-glow); }
  .nav-links .btn { font-family: var(--font-body); font-size: 1rem; margin-top: 1.1rem; align-self: stretch; justify-content: center; }

}

@media (min-width: 900px) {
  .tabbar { display: none !important; }
}
