/* =========================================================
   Kinship Families of Thailand
   "Quiet precision" — editorial, near-monochrome, hairline-driven.
   Display: Space Grotesk · Text: Inter · Accent: a single gold hairline.
   ========================================================= */

:root {
  /* Ink / surfaces */
  --ink:        #14271a;   /* near-black forest — text & solid surfaces */
  --ink-soft:   #3c4a40;   /* body text */
  --muted:      #79806f;   /* tertiary / labels */
  --green:      #15301f;   /* deep green surface */
  --green-2:    #1d3e29;

  /* Paper */
  --paper:      #fbfaf5;   /* page background */
  --paper-2:    #f2f0e7;   /* faint alternating band */
  --line:       #e4e0d3;   /* hairline on light */
  --line-2:     #d8d3c2;
  --line-dk:    rgba(255,255,255,.14); /* hairline on dark */

  /* Accent */
  --gold:       #a07d34;   /* restrained — lines, labels */
  --gold-2:     #c39a47;

  --white:#fff;

  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gut: clamp(20px, 5vw, 56px);
  --hh: 88px;               /* header height */
  --ease: cubic-bezier(.4, 0, .15, 1);

  --r: 3px;                 /* squared geometry */
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.72;
  font-weight: 400;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.page--flat { padding-top: var(--hh); }   /* clear the fixed header on heroless pages */
[id] { scroll-margin-top: calc(var(--hh) + 18px); }  /* anchor jumps clear the fixed header */

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--ink); color: var(--paper); }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0;
}
p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gut); }
.section { padding: clamp(72px, 11vw, 148px) 0; }
.section--tight { padding: clamp(56px, 8vw, 104px) 0; }
.section--band { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #cfd6c9; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Signature: gold tick + label ---------- */
.label {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--sans); font-weight: 600;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold);
}
.label::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .8; }
.label--plain::before { display: none; }
.on-dark .label, .label--light { color: var(--gold-2); }

.section-head { max-width: 720px; margin-bottom: clamp(38px, 5vw, 64px); }
.section-head .label { margin-bottom: 1.4rem; }
h2.section-title { font-size: clamp(1.9rem, 4vw, 3.1rem); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--muted); line-height: 1.55; margin-top: 1.1rem; letter-spacing: -.01em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--sans); font-weight: 600;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 1.05em 1.7em; border-radius: var(--r);
  border: 1px solid transparent; background: transparent;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--green-2); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--line-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--line-light:hover { background: #fff; color: var(--ink); border-color:#fff; }
.btn--block { width: 100%; justify-content: center; }
.btn--sm { padding: .85em 1.25em; font-size: .72rem; }

/* text link */
.tlink {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-weight: 600; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); padding-bottom: 3px; border-bottom: 1px solid var(--line-2);
  transition: color .25s, border-color .25s;
}
.tlink svg { transition: transform .25s var(--ease); }
.tlink:hover { color: var(--gold); border-color: var(--gold); }
.tlink:hover svg { transform: translateX(3px); }
.on-dark .tlink { color: #fff; border-color: var(--line-dk); }
.on-dark .tlink:hover { color: var(--gold-2); border-color: var(--gold-2); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--hh);
  display: flex; align-items: center;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-header.solid {
  background: rgba(251,250,245,.86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}

.brand { display: flex; align-items: center; flex: none; }
.brand .logo { height: clamp(45px, 5.2vw, 77px); width: auto; display: block; }
.brand .logo--white { display: none; }
/* dark backgrounds (over-hero header): wordmark goes white, icon + THAILAND stay original */
.site-header:not(.solid) .brand .logo--color { display: none; }
.site-header:not(.solid) .brand .logo--white { display: block; }
/* when the mobile menu is open the header sits over the cream drawer: use the colour logo + dark toggle */
.site-header.nav-open .brand .logo--white { display: none; }
.site-header.nav-open .brand .logo--color { display: block; }

.nav-links { display: flex; align-items: center; gap: 2.1rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--sans); font-weight: 500; font-size: .82rem; letter-spacing: .04em;
  color: var(--ink-soft); transition: color .25s;
}
.site-header:not(.solid) .nav-links a { color: rgba(255,255,255,.82); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold); }
.site-header:not(.solid) .nav-links a:hover, .site-header:not(.solid) .nav-links a[aria-current="page"] { color: #fff; }

.nav-cta { display: flex; align-items: center; gap: 1rem; }
.site-header:not(.solid) .nav-cta .btn--line { border-color: rgba(255,255,255,.5); color:#fff; }
.site-header:not(.solid) .nav-cta .btn--line:hover { background:#fff; color: var(--ink); }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); background: transparent;
  border-radius: var(--r); flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.site-header:not(.solid) .nav-toggle { border-color: rgba(255,255,255,.4); }
.nav-toggle span { width: 18px; height: 1.5px; background: var(--ink); transition: .3s var(--ease); }
.site-header:not(.solid) .nav-toggle span { background: #fff; }
.site-header.nav-open .nav-toggle { border-color: var(--line-2); }
.site-header.nav-open .nav-toggle span { background: var(--ink); }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(6.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(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,19,13,.62) 0%, rgba(11,19,13,.36) 30%, rgba(11,19,13,.8) 72%, rgba(11,19,13,.96) 100%),
    rgba(11,19,13,.14);  /* slight overall darkening so the headline always reads */
}
.hero__inner { padding-bottom: clamp(54px, 8vw, 104px); padding-top: calc(var(--hh) + 24px); max-width: 940px; }
.hero .label { color: var(--gold-2); margin-bottom: 1.6rem; }
.hero h1 { color: #fff; font-size: clamp(2.7rem, 7vw, 5.6rem); font-weight: 500; line-height: .98; letter-spacing: -.035em; max-width: 16ch; }
.hero p { color: rgba(255,255,255,.86); font-size: clamp(1.05rem, 1.7vw, 1.3rem); max-width: 50ch; margin-top: 1.5rem; line-height: 1.55; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.4rem; }
.hero__scroll {
  position: absolute; left: var(--gut); bottom: 26px; display: flex; align-items: center; gap: .7em;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6);
}

/* ---------- Stats strip ---------- */
.stats { border-top: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(34px, 4.5vw, 56px) clamp(18px,2.5vw,34px); border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num {
  font-family: var(--display); font-weight: 500; font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--ink); line-height: 1; letter-spacing: -.03em; display: flex; align-items: baseline; gap: .12em;
}
.stat .num .suffix { font-size: .42em; color: var(--gold); }
.stat .lbl { margin-top: 1rem; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ---------- Feature (asymmetric image + text) ---------- */
.feature { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(34px, 6vw, 96px); align-items: center; }
.feature--flip .feature__text { order: -1; }
.feature__media { position: relative; }
.feature__media img { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; border-radius: var(--r); }
.feature__media figcaption { margin-top: .9rem; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: .7em; }
.feature__media figcaption::before { content: ""; width: 22px; height: 1px; background: var(--gold); }
.feature h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 1.2rem; }
.feature .body p { margin-bottom: 1.1rem; }
.feature .actions { margin-top: 2rem; }

/* ---------- Ways to give ---------- */
.give-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.give-card { padding: clamp(30px, 3.4vw, 48px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s var(--ease); position: relative; }
.give-card:hover { background: var(--paper-2); }
.give-card .ico { width: 30px; height: 30px; color: var(--gold); margin-bottom: clamp(28px,4vw,52px); }
.give-card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.give-card p { font-size: .96rem; color: var(--muted); margin-bottom: 1.5rem; }
.give-card .price { font-family: var(--display); font-weight: 500; font-size: 1.05rem; color: var(--ink); letter-spacing: -.01em; }
.give-card .price .per { color: var(--muted); font-family: var(--sans); font-size: .82rem; font-weight: 500; }

/* ---------- Process / Kinship model (sequence) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: clamp(28px,3vw,40px) clamp(20px,2vw,30px) 0; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step .idx { font-family: var(--display); font-weight: 500; font-size: .9rem; color: var(--gold); letter-spacing: .08em; }
.step .ico { width: 26px; height: 26px; color: var(--ink); margin: clamp(34px,5vw,64px) 0 1.2rem; }
.step h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.step p { font-size: .95rem; color: var(--muted); }

/* ---------- Stories (editorial text) ---------- */
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.story { border-top: 2px solid var(--ink); padding-top: 1.6rem; }
.story .idx { font-family: var(--display); font-weight: 500; color: var(--gold); font-size: .82rem; letter-spacing: .1em; }
.story h3 { font-size: 1.45rem; margin: 1.4rem 0 .8rem; line-height: 1.1; }
.story p { font-size: .98rem; color: var(--muted); margin-bottom: 1.4rem; }

/* ---------- Families index (roster) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; margin-bottom: 12px; }
.filter {
  background: none; border: 0; padding: .4em 0; font-family: var(--sans); font-weight: 500; font-size: .82rem;
  letter-spacing: .02em; color: var(--muted); border-bottom: 2px solid transparent; transition: color .25s, border-color .25s;
}
.filter:hover { color: var(--ink); }
.filter.is-active { color: var(--ink); border-color: var(--gold); }

.roster { border-top: 1px solid var(--ink); }
.row {
  display: grid; grid-template-columns: 56px 1fr 200px 130px 40px; align-items: center; gap: 1.5rem;
  padding: clamp(22px, 2.6vw, 34px) 4px; border-bottom: 1px solid var(--line);
  transition: padding-left .3s var(--ease), background .3s var(--ease); position: relative;
}
.row:hover { background: var(--paper-2); padding-left: 18px; }
.row .ridx { font-family: var(--display); font-weight: 500; color: var(--gold); font-size: .9rem; }
.row .fname { font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: var(--ink); letter-spacing: -.02em; }
.row .rmeta { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.row .rcount { font-family: var(--display); font-weight: 500; color: var(--ink-soft); font-size: .95rem; }
.row .rcount span { color: var(--muted); font-family: var(--sans); font-size: .76rem; }
.row .arr { color: var(--ink); justify-self: end; transition: transform .3s var(--ease); }
.row:hover .arr { transform: translateX(5px); color: var(--gold); }
.row.is-hidden { display: none; }

/* ---------- Family detail ---------- */
.fd-hero { position: relative; color: #fff; min-height: clamp(420px, 64vh, 620px); display: flex; align-items: flex-end; overflow: hidden; }
.fd-hero__media { position: absolute; inset: 0; z-index: -1; }
.fd-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.fd-hero__media::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(15,25,18,.25) 30%, rgba(15,25,18,.9)); }
.fd-hero__inner { padding-bottom: clamp(38px, 5vw, 64px); padding-top: calc(var(--hh) + 30px); width: 100%; }
.back-link { display:inline-flex; align-items:center; gap:.5em; font-size:.74rem; letter-spacing:.14em; text-transform:uppercase; color: rgba(255,255,255,.7); margin-bottom: 1.4rem; }
.back-link:hover { color:#fff; }
.fd-hero h1 { color:#fff; font-size: clamp(2.2rem, 5.2vw, 3.8rem); letter-spacing: -.03em; }
.fd-meta { display: flex; flex-wrap: wrap; gap: 0; margin-top: 1.4rem; }
.fd-meta div { padding-right: 2rem; margin-right: 2rem; border-right: 1px solid rgba(255,255,255,.22); }
.fd-meta div:last-child { border-right: 0; }
.fd-meta .k { display:block; font-size:.68rem; letter-spacing:.16em; text-transform:uppercase; color: var(--gold-2); margin-bottom:.25rem; }
.fd-meta .v { font-family: var(--display); font-weight:500; font-size:1.05rem; color:#fff; }

.tabs { display: flex; flex-wrap: wrap; gap: 2rem; border-bottom: 1px solid var(--line); margin-bottom: clamp(34px,5vw,52px); }
.tab { background: none; border: 0; padding: 0 0 1.1rem; font-family: var(--sans); font-weight: 600; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .25s, border-color .25s; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); border-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fade .45s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tab-panel h2 { font-size: clamp(1.5rem,3vw,2rem); margin-bottom: 1.2rem; }

.fd-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(34px, 6vw, 80px); align-items: start; }
.needs-list { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.needs-list li { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 0; border-top: 1px solid var(--line); font-size: .98rem; color: var(--ink-soft); }
.needs-list .ico { color: var(--gold); flex: none; margin-top: 3px; }

.support-card { border: 1px solid var(--line); border-radius: var(--r); padding: clamp(26px,3vw,38px); position: sticky; top: calc(var(--hh) + 20px); background: var(--paper); }
.support-card h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.support-card p.sc-sub { font-size: .92rem; color: var(--muted); }
.amounts { display: flex; gap: 8px; margin: 22px 0; }
.amounts button {
  flex: 1; padding: .85em 0; border: 1px solid var(--line-2); background: transparent; border-radius: var(--r);
  font-family: var(--display); font-weight: 500; font-size: .95rem; color: var(--ink-soft); transition: .25s var(--ease);
}
.amounts button:hover { border-color: var(--ink); }
.amounts button.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sc-note { margin-top: 14px; font-size: .76rem; color: var(--muted); text-align: center; }

/* ---------- CTA band ---------- */
.cta { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.cta__topo { position: absolute; inset: 0; opacity: .06; pointer-events: none; }
.cta__topo img { width: 100%; height: 100%; object-fit: cover; }
.cta .container { position: relative; }
.cta .label { color: var(--gold-2); margin-bottom: 1.5rem; }
.cta h2 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.03em; max-width: 18ch; }
.cta p { color: rgba(255,255,255,.78); max-width: 52ch; margin-top: 1.3rem; font-size: 1.08rem; }
.cta .actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green); color: #aab6a3; padding: clamp(60px, 8vw, 100px) 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.3fr; gap: clamp(32px, 4vw, 56px); }
.site-footer .brand .logo { height: 63px; }
.site-footer .brand .logo--color { display: none; }
.site-footer .brand .logo--white { display: block; }
.site-footer p { color: #93a08c; font-size: .96rem; max-width: 36ch; }
.footer-col h4 { color: #fff; font-family: var(--sans); font-weight: 600; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 1.3rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.footer-col a { color: #aab6a3; font-size: .95rem; transition: color .25s; }
.footer-col a:hover { color: var(--gold-2); }
.footer-news { display: flex; gap: 8px; margin-top: 1rem; }
.footer-news input { flex: 1; min-width: 0; padding: .8em 1em; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: #fff; border-radius: var(--r); font-family: var(--sans); }
.footer-news input::placeholder { color: #7e8c78; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: clamp(44px,5vw,68px); padding-top: 26px; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: .82rem; color: #7e8c78; }
.footer-bottom .socials { display: flex; gap: 1.2rem; }
.footer-bottom .socials a { color: #93a08c; transition: color .25s; }
.footer-bottom .socials a:hover { color: var(--gold-2); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
[data-delay="1"]{ transition-delay: .08s; } [data-delay="2"]{ transition-delay: .16s; } [data-delay="3"]{ transition-delay: .24s; }

/* ---------- Mobile drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(15,25,18,.5); opacity: 0; visibility: hidden; transition: .35s; z-index: 98; }
.scrim.show { opacity: 1; visibility: visible; }
.nav-drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: 100%; z-index: 99;
  background: var(--paper); padding: calc(var(--hh) + 16px) var(--gut) 40px;
  transform: translateX(105%); transition: transform .4s var(--ease); display: flex; flex-direction: column; overflow-y: auto;
}
.nav-drawer.open { transform: none; }
.nav-drawer a:not(.btn) { font-family: var(--display); font-weight: 500; font-size: 1.5rem; color: var(--ink); padding: .7em 0; border-bottom: 1px solid var(--line); letter-spacing: -.01em; }
.nav-drawer .btn { margin-top: 1.8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature--flip .feature__text { order: 0; }
  .give-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stories { grid-template-columns: 1fr; gap: 0; }
  .story { padding: 1.6rem 0; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .fd-grid { grid-template-columns: 1fr; }
  .support-card { position: static; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .row { grid-template-columns: 38px 1fr 28px; gap: 1rem; row-gap: .25rem; padding-block: 22px; }
  .row:hover { padding-left: 4px; }   /* no shift on touch */
  .row .ridx { align-self: start; padding-top: .35rem; }
  .row .rmeta { grid-column: 2; }
  .row .rcount { grid-column: 2; }
  .row .arr { grid-row: 1 / span 3; grid-column: 3; align-self: center; }
  /* tabs become a horizontal scroller */
  .tabs { flex-wrap: nowrap; overflow-x: auto; gap: 1.5rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; flex: none; }
}
@media (max-width: 560px) {
  :root { --hh: 96px; }
  .brand .logo { height: clamp(62px, 21vw, 82px); }   /* ~80% larger on phones */
  .site-header .container { gap: 12px; }
  .section { padding: clamp(56px, 14vw, 80px) 0; }
  .give-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
  .step:last-child { border-bottom: 0; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 30px 16px; }
  .fd-meta div { border-right: 0; padding-right: 0; margin-right: 0; margin-bottom: 1rem; }
  .fd-meta div:last-child { margin-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .hero .actions { flex-direction: column; align-items: stretch; }
  .hero .actions .btn { width: 100%; justify-content: center; }
  .hero__scroll { display: none; }
  .filters { gap: 1.1rem 1.4rem; }
}
@media (max-width: 380px) {
  .stats__grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}
@media (min-width: 861px) { .nav-drawer, .scrim { display: none; } }
