/* =========================================================
   Strays Home Animal Rescue Foundation
   Design system + components
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --ink: #16130f;
  --ink-2: #463d33;
  --ink-3: #7a6d60;

  --cream: #fff8ef;
  --cream-2: #ffeedd;
  --paper: #ffffff;

  --coral: #ff5a45;
  --coral-dark: #d83a26;
  --sun: #ffc336;
  --teal: #0fb6a0;
  --grape: #7b61ff;
  --sky: #37c2ff;

  --ring: rgba(255, 90, 69, 0.35);

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  --bd: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);
  --shadow-soft: 0 18px 40px -18px rgba(22, 19, 15, 0.45);

  --maxw: 1200px;
  --pad: clamp(1rem, 4vw, 2.5rem);

  --font-display: "Bricolage Grotesque", "Outfit", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 76px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--grape);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem); }

p { text-wrap: pretty; }

::selection { background: var(--sun); color: var(--ink); }

/* ---------- Utilities ---------- */
.wrap {
  width: min(100% - (var(--pad) * 2), var(--maxw));
  margin-inline: auto;
}
.wrap--wide { width: min(100% - (var(--pad) * 2), 1420px); }
.wrap--narrow {
  width: min(100% - (var(--pad) * 2), 760px);
  margin-inline: auto;
}

.section { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 999;
  background: var(--ink);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-pill);
  font-weight: 700;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.75rem; }
.mt-4 { margin-top: 2.5rem; }
.lede {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  color: var(--ink-2);
  max-width: 62ch;
}
.muted { color: var(--ink-3); }
.small { font-size: 0.875rem; }

/* ---------- Eyebrow / chips ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--cream);
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-pill);
}
.eyebrow--sun { background: var(--sun); color: var(--ink); }
.eyebrow--teal { background: var(--teal); color: #04211d; }
.eyebrow--coral { background: var(--coral); color: #fff; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: var(--bd);
  background: var(--paper);
  border-radius: var(--r-pill);
  padding: 0.35rem 0.85rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--coral);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: var(--bd);
  border-radius: var(--r-pill);
  padding: 0.85rem 1.6rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.18s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.btn--sun { --btn-bg: var(--sun); --btn-fg: var(--ink); }
.btn--teal { --btn-bg: var(--teal); --btn-fg: #04211d; }
.btn--grape { --btn-bg: var(--grape); --btn-fg: #fff; }
.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--cream); }
.btn--paper { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.btn--lg { font-size: 1.1rem; padding: 1.05rem 2rem; box-shadow: var(--shadow); }
.btn--sm { font-size: 0.875rem; padding: 0.55rem 1.1rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Header ---------- */
.topbar {
  background: var(--ink);
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 600;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 0.5rem 0;
  text-align: center;
}
.topbar a { color: var(--sun); font-weight: 800; }
@media (max-width: 780px) {
  .topbar { display: none; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 239, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 3px solid var(--ink);
}
.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
}
.brand__mark {
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--ink);
  flex: none;
}
.brand__name { font-size: 1.06rem; letter-spacing: -0.02em; }
.brand__sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.site-header .brand > span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.site-header .brand__mark {
  width: 92px;
  height: 92px;
  margin-block: -18px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transform: translateY(4px);
}
@media (max-width: 520px) {
  .site-header .brand__mark {
    width: 86px;
    height: 86px;
    margin-block: -15px;
    transform: translateY(3px);
  }
}

.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav a {
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-pill);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav a:hover { background: var(--cream-2); }
.nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--cream);
}
.nav .nav__cta { display: none; }

.header-cta { display: flex; align-items: center; gap: 0.6rem; }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  border: var(--bd);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 3px;
  background: var(--ink);
  border-radius: 3px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px; height: 3px;
  background: var(--ink);
  border-radius: 3px;
  transition: transform 0.2s ease;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: grid; }
  .header-cta .btn { display: none; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: var(--cream);
    border-bottom: 3px solid var(--ink);
    padding: 1rem var(--pad) 1.75rem;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, visibility 0.2s;
    box-shadow: var(--shadow-soft);
  }
  .nav[data-open="true"] { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a { padding: 0.85rem 1rem; font-size: 1.05rem; border-radius: 14px; }
  .nav .btn { margin-top: 0.75rem; }
  .nav .nav__cta { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(1.75rem, 0.75rem + 4vw, 3.25rem) clamp(3rem, 1rem + 7vw, 6rem);
  background:
    radial-gradient(900px 520px at 88% -10%, rgba(255, 195, 54, 0.35), transparent 62%),
    var(--cream);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-areas:
    "intro   art"
    "lede    art"
    "actions art";
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.hero__intro { grid-area: intro; }
.hero__lede { grid-area: lede; }
.hero__art { grid-area: art; }
.hero__actions { grid-area: actions; }
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "lede"
      "art"
      "actions";
  }
  .hero__actions {
    width: min(88vw, 440px);
    margin-inline: auto;
    text-align: center;
  }
  .hero__actions .btn-row {
    justify-content: center;
    transform: translateX(-0.75rem);
  }
  .hero__stats { justify-content: center; }
  .hero__stat { text-align: center; }
  .hero__stat--desktop { display: none; }
  .hero__intro .eyebrow { display: none; }
}

.hero h1 { font-size: clamp(2.2rem, 1.3rem + 3.3vw, 3.6rem); }

.hero h1 .hl {
  position: relative;
  display: inline-block;
  color: var(--coral);
}
.hero h1 .hl::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.06em;
  height: 0.24em;
  background: var(--sun);
  border-radius: var(--r-pill);
  z-index: -1;
  transform: rotate(-1.2deg);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 3px dashed rgba(22, 19, 15, 0.25);
}
.hero__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
  line-height: 1;
}
.hero__stat span { font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }

.hero__art {
  position: relative;
  margin-top: clamp(0.75rem, 1.5vw, 1.35rem);
}
@media (max-width: 900px) {
  .hero__art {
    margin-top: 0;
    width: min(88vw, 440px);
    margin-inline: auto;
  }
}
.hero__card {
  border: var(--bd);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--paper);
  aspect-ratio: 4 / 4.2;
  max-height: min(58vh, 540px);
  transform: rotate(1.4deg);
}
@media (max-width: 900px) {
  .hero__card { transform: none; }
}
.hero__card img,
.hero__card .ph { width: 100%; height: 100%; object-fit: cover; }

.hero__badge {
  position: absolute;
  border: var(--bd);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  padding: 0.7rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hero__badge--a { left: -10px; top: 12%; transform: rotate(-4deg); background: var(--sun); }
.hero__badge--b { right: -10px; bottom: 10%; transform: rotate(3deg); background: var(--teal); color: #04211d; }
@media (max-width: 520px) {
  .hero__badge--a { left: 0; }
  .hero__badge--b { right: 0; }
}

/* ---------- Ticker ---------- */
.ticker {
  background: var(--ink);
  color: var(--cream);
  border-block: 3px solid var(--ink);
  overflow: hidden;
  padding: 0.7rem 0;
}
.ticker__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: slide-x 28s linear infinite;
}
.ticker__track span {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
}
.ticker__track span::after { content: "🐾"; }

@keyframes slide-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section heads ---------- */
.section__head { max-width: 68ch; margin-bottom: clamp(2rem, 1rem + 2vw, 3rem); }
.section__head.center { margin-inline: auto; }
.section__head .eyebrow { margin-bottom: 1rem; }
.section__head p { margin-top: 1rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: clamp(1rem, 0.6rem + 1.4vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.card {
  background: var(--paper);
  border: var(--bd);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 1rem + 1vw, 2rem);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.card--hover:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.card--cream { background: var(--cream-2); }
.card--sun { background: var(--sun); }
.card--teal { background: var(--teal); color: #04211d; }
.card--coral { background: var(--coral); color: #fff; }
.card--ink { background: var(--ink); color: var(--cream); }
.card--ink .muted, .card--coral .muted { color: rgba(255, 255, 255, 0.75); }
.card p { color: inherit; }
.card--flat { box-shadow: none; }

.card__icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border: var(--bd);
  border-radius: 18px;
  background: var(--cream);
  font-size: 1.6rem;
  flex: none;
}
.card h3 { margin-top: 0.25rem; }
.card__link {
  margin-top: auto;
  padding-top: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.card__link:hover { gap: 0.75rem; }
.card__link::after { content: "→"; transition: transform 0.15s ease; }

/* ---------- Stats band ---------- */
.stats {
  background: var(--ink);
  color: var(--cream);
  border-block: 3px solid var(--ink);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  text-align: center;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem);
  line-height: 1;
  color: var(--sun);
}
.stat__num .plus { color: var(--coral); }
.stat__label {
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: rgba(255, 248, 239, 0.78);
}

/* ---------- Marquee gallery ---------- */
.marquee-block { overflow: hidden; padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.marquee {
  display: flex;
  gap: 1.1rem;
  width: max-content;
  padding-block: 0.55rem;
  animation: slide-x var(--speed, 60s) linear infinite;
}
.marquee--reverse { animation-direction: reverse; }

.marquee__item {
  width: clamp(190px, 24vw, 300px);
  aspect-ratio: 4 / 5;
  border: var(--bd);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--cream-2);
  flex: none;
  position: relative;
  padding: 0;
  cursor: zoom-in;
  transition: transform 0.18s ease;
}
.marquee__item:nth-child(odd) { transform: rotate(-1.1deg); }
.marquee__item:nth-child(even) { transform: rotate(1.1deg); }
.marquee__item:hover { transform: rotate(0deg) scale(1.03); z-index: 2; }
.marquee__item img,
.marquee__item .ph { width: 100%; height: 100%; object-fit: cover; }

.marquee-fade { position: relative; overflow: hidden; }
.marquee-fade::before,
.marquee-fade::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(40px, 8vw, 140px);
  z-index: 3;
  pointer-events: none;
}
.marquee-fade::before { left: 0; background: linear-gradient(90deg, var(--cream), transparent); }
.marquee-fade::after { right: 0; background: linear-gradient(270deg, var(--cream), transparent); }

/* ---------- Photo placeholder tiles ---------- */
.ph {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.4rem;
  width: 100%;
  height: 100%;
  color: rgba(22, 19, 15, 0.55);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, var(--cream-2), #ffd9c2);
}
.ph svg { width: 34%; max-width: 76px; opacity: 0.5; }
.ph--1 { background: linear-gradient(135deg, #ffe3b8, #ffb4a2); }
.ph--2 { background: linear-gradient(135deg, #c9f2ea, #9fd8ff); }
.ph--3 { background: linear-gradient(135deg, #ffd9e6, #d9c7ff); }
.ph--4 { background: linear-gradient(135deg, #fff0c2, #ffd08a); }
.ph--5 { background: linear-gradient(135deg, #d6f5c9, #a8e6cf); }
.ph--6 { background: linear-gradient(135deg, #ffd6cc, #ffb3c1); }
.ph--7 { background: linear-gradient(135deg, #cfe3ff, #b8c9ff); }
.ph--8 { background: linear-gradient(135deg, #ffe8d1, #f9c7a0); }

/* ---------- Donate ---------- */
.donate-hero {
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(255, 90, 69, 0.28), transparent 60%),
    var(--cream);
}

.amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.amount {
  border: var(--bd);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  padding: 1.1rem 1rem;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.amount:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.amount[aria-pressed="true"] { background: var(--sun); }
.amount__value { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; line-height: 1.1; }
.amount__desc { font-size: 0.85rem; color: var(--ink-2); margin-top: 0.35rem; }

.bank {
  border: var(--bd);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.bank__head {
  background: var(--ink);
  color: var(--cream);
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
}
.bank__body { padding: 0.5rem 1.4rem 1.4rem; }
.bank__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.95rem 0;
  border-bottom: 2px dashed rgba(22, 19, 15, 0.18);
}
.bank__row:last-child { border-bottom: 0; }
.bank__label {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-3);
  flex: 0 0 150px;
}
.bank__value {
  font-weight: 700;
  font-size: 1.02rem;
  word-break: break-word;
  flex: 1 1 200px;
}
.bank__value code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
}
.copy-btn {
  border: 2px solid var(--ink);
  background: var(--cream-2);
  border-radius: var(--r-pill);
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.copy-btn:hover { background: var(--sun); }
.copy-btn[data-copied="true"] { background: var(--teal); color: #04211d; }

/* ---------- Split / feature ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  align-items: center;
}
.frame {
  border: var(--bd);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--cream-2);
  aspect-ratio: 5 / 4;
}
.frame img, .frame .ph { width: 100%; height: 100%; object-fit: cover; }
.frame--tilt { transform: rotate(-1.5deg); }

/* ---------- Instagram band ---------- */
.ig-band {
  background: linear-gradient(120deg, #ffd15c, #ff5a45 45%, #7b61ff 100%);
  border-block: 3px solid var(--ink);
  color: #fff;
}
.ig-band .wrap { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.ig-band h2 { color: #fff; }
.ig-band p { color: rgba(255, 255, 255, 0.92); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.25rem; }
.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.1rem;
  align-items: start;
  border: var(--bd);
  border-radius: var(--r-lg);
  background: var(--paper);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 60px; height: 60px;
  display: grid;
  place-items: center;
  border: var(--bd);
  border-radius: 50%;
  background: var(--sun);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 0.9rem;
  margin-inline: auto;
}
.faq details {
  border: var(--bd);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 3.2rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  text-align: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  font-size: 1.6rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}
.faq details[open] summary { background: var(--sun); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > p, .faq details > ul { padding: 0 1.3rem 1.2rem; margin-top: 1rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 700; font-size: 0.92rem; }
.field input,
.field select,
.field textarea {
  border: var(--bd);
  border-radius: 14px;
  background: var(--paper);
  padding: 0.8rem 1rem;
  width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  box-shadow: 0 0 0 4px var(--ring);
}
.field--row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; }
.form__note { font-size: 0.85rem; color: var(--ink-3); }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.75rem; font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); }
.prose h3 { margin-top: 1.75rem; font-size: 1.15rem; }
.prose p, .prose ul, .prose ol { margin-top: 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-top: 0.4rem; }
.prose a { color: var(--coral-dark); font-weight: 600; }

/* ---------- Page hero ---------- */
.page-hero {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  border-bottom: 3px solid var(--ink);
  background:
    radial-gradient(700px 380px at 85% -20%, rgba(123, 97, 255, 0.22), transparent 62%),
    radial-gradient(600px 340px at 0% 120%, rgba(255, 195, 54, 0.35), transparent 60%),
    var(--cream);
}
.page-hero--compact { padding-block: clamp(1.4rem, 1rem + 2vw, 2.4rem); }
.page-hero--compact h1 { font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.45rem); }
.page-hero--compact .crumbs { margin-bottom: 0.55rem; }
.crumbs { font-size: 0.85rem; font-weight: 600; color: var(--ink-3); margin-bottom: 0.9rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Callout ---------- */
.callout {
  border: var(--bd);
  border-left-width: 10px;
  border-radius: var(--r-md);
  background: var(--paper);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.callout--warn { border-left-color: var(--coral); background: #fff3f1; }
.callout--info { border-left-color: var(--teal); background: #eefbf8; }
.callout--sun { border-left-color: var(--sun); background: #fff8e3; }

/* ---------- CTA band ---------- */
.cta-band {
  border: var(--bd);
  border-radius: var(--r-xl);
  background: var(--ink);
  color: var(--cream);
  padding: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--sun); }
.cta-band p { color: rgba(255, 248, 239, 0.85); margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Gallery wall (gallery.html) ---------- */
.gallery-wall-section { padding-block: clamp(0.9rem, 0.6rem + 2vw, 2rem) clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.gallery-wall-section > .wrap--wide { padding-block: 0 !important; }
.wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  height: clamp(560px, 84vh, 1000px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent);
}
.wall__col { display: grid; gap: 1rem; align-content: start; animation: slide-y var(--speed, 48s) linear infinite; }
.wall__col--down { animation-direction: reverse; }
.wall__item {
  border: var(--bd);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 5;
  background: var(--cream-2);
  padding: 0;
  cursor: zoom-in;
  display: block;
  width: 100%;
}
.wall__item img, .wall__item .ph { width: 100%; height: 100%; object-fit: cover; }

@keyframes slide-y {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@media (max-width: 900px) { .wall { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 10, 8, 0.9);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  border: 0;
}
.lightbox[hidden] { display: none; }
.lightbox__inner {
  max-width: min(1000px, 100%);
  max-height: 86vh;
  border: var(--bd);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--cream);
  box-shadow: var(--shadow-lg);
}
.lightbox__inner img { max-height: 74vh; width: auto; margin-inline: auto; }
.lightbox__cap { display: none; }
.lightbox__close {
  position: absolute;
  top: clamp(0.75rem, 3vw, 1.5rem);
  right: clamp(0.75rem, 3vw, 1.5rem);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: var(--bd);
  background: var(--sun);
  font-size: 1.4rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  border-top: 3px solid var(--ink);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(1.75rem, 1rem + 3vw, 3rem);
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

.site-footer h4 {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 1rem;
}
.footer__links { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.footer__links a { text-decoration: none; color: rgba(255, 248, 239, 0.82); font-weight: 500; }
.footer__links a:hover { color: var(--sun); text-decoration: underline; }
.site-footer .brand { color: var(--cream); }
.site-footer .brand__sub { color: rgba(255, 248, 239, 0.6); }
.site-footer .brand__mark { border-color: var(--cream); background: var(--cream); }
.footer__about { color: rgba(255, 248, 239, 0.75); max-width: 42ch; font-size: 0.95rem; }
.footer__links--contact a { color: var(--cream); }
.footer__links strong { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 248, 239, 0.55); }

.socials { display: flex; gap: 0.6rem; margin-top: 1.25rem; flex-wrap: wrap; }
.socials a {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 3px solid var(--cream);
  border-radius: 50%;
  color: var(--cream);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.socials a:hover { background: var(--sun); color: var(--ink); border-color: var(--sun); transform: translateY(-3px); }
.socials svg { width: 21px; height: 21px; fill: currentColor; }

.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(255, 248, 239, 0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 248, 239, 0.7);
}
.footer__bottom a { color: rgba(255, 248, 239, 0.7); }

/* ---------- Sticky mobile donate bar ---------- */
.donate-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  gap: 0.6rem;
  padding: 0.6rem var(--pad) calc(0.6rem + env(safe-area-inset-bottom));
  background: var(--cream);
  border-top: 3px solid var(--ink);
}
.donate-bar .btn { flex: 1; padding: 0.75rem 1rem; box-shadow: none; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  width: 50px; height: 50px;
  border: var(--bd);
  border-radius: 50%;
  background: var(--sun);
  box-shadow: var(--shadow-sm);
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.22s ease;
}
.to-top[data-show="true"] { opacity: 1; visibility: visible; transform: translateY(0); }
@media (max-width: 700px) { .to-top { bottom: 88px; } }

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Decorative blobs ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .marquee, .wall__col, .ticker__track { animation: none !important; }
  .wall { height: auto; -webkit-mask-image: none; mask-image: none; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .donate-bar, .to-top, .marquee-block, .ticker { display: none !important; }
  body { background: #fff; }
}
