/* ============================================================
   OMAR SALEH — CALGARY-FOOTHILLS · shared styles
   Palette: UCP navy #062E82 + gold #ECA100 on warm white.
   Scenery layers are Calgary skyline SVGs tinted by currentColor.
   ============================================================ */

:root{
  --w-max: 1240px;
  --pad: clamp(20px, 4vw, 56px);
  --radius: 6px;
  --font-body: "Libre Franklin", "Helvetica Neue", Helvetica, sans-serif;
  --ease-out: cubic-bezier(.22,.8,.24,1);
}

/* ---------- PALETTE ---------- */
:root{
  --bg: #f7f7f4;
  --surface: #ffffff;
  --ink: #0d1a33;
  --muted: #56618a;
  --line: #dde1ec;
  --deep: #062e82;
  --deep-2: #04205c;
  --deep-ink: #ffffff;
  --deep-muted: #a9bce4;
  --accent: #eca100;
  --accent-hover: #d79300;
  --accent-ink: #062e82;
  --sky-a: #dfe6f5; --sky-b: #f7f7f4;
  --sun: #eca100;
  --font-display: "Libre Franklin", "Helvetica Neue", Helvetica, sans-serif;
  --display-case: none;
  --display-weight: 800;
  --display-track: -0.028em;
  --display-leading: 0.96;
}

/* ---------- BASE ---------- */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; overflow-x: clip; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img{ max-width: 100%; display: block; }
a{ color: var(--deep); text-underline-offset: 3px; }
a:hover{ color: var(--accent-hover); }
.on-deep a, .deep-band a, .site-footer a, .page-hero a{ color: var(--deep-ink); }
.on-deep a:hover, .deep-band a:hover, .site-footer a:hover, .page-hero a:hover{ color: var(--accent); }
.btn, .wordmark, .nav-links a, .mobile-nav a, .pri-tile, .prio-card, .chapter-nav a, .amount-chip{ color: inherit; }
::selection{ background: var(--accent); color: var(--accent-ink); }

.wrap{ max-width: var(--w-max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

h1,h2,h3{ margin: 0; }
.display{
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  text-transform: var(--display-case);
  letter-spacing: var(--display-track);
  line-height: var(--display-leading);
}
.kicker{
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.kicker::before{
  content: "";
  width: 22px; height: 2px;
  background: var(--accent);
  flex: 0 0 auto;
}
.lede{ font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--muted); max-width: 56ch; text-wrap: pretty; }

/* grain overlay */
.grain{
  position: fixed; inset: 0;
  background: url("../assets/grain.png");
  pointer-events: none;
  z-index: 60;
  opacity: .55;
  mix-blend-mode: multiply;
}


/* ---------- BUTTONS ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-body);
  font-size: 15px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease-out), background .2s, border-color .2s, color .2s;
}
.btn:hover{ background: var(--accent-hover); transform: translateY(-2px); }
.btn:active{ transform: translateY(0); }
.btn .arr{ transition: transform .25s var(--ease-out); }
.btn:hover .arr{ transform: translateX(4px); }
.btn-ghost{
  background: transparent;
  border-color: color-mix(in oklab, var(--ink) 35%, transparent);
  color: var(--ink);
}
.btn-ghost:hover{ background: color-mix(in oklab, var(--ink) 7%, transparent); border-color: var(--ink); }
.btn-on-deep{ }
.on-deep .btn-ghost{ border-color: color-mix(in oklab, var(--deep-ink) 40%, transparent); color: var(--deep-ink); }
.hero .btn-ghost.on-deep{ border-color: color-mix(in oklab, var(--deep-ink) 80%, transparent); color: var(--deep-ink); background: color-mix(in oklab, var(--deep-2) 30%, transparent); }
.hero .btn-ghost.on-deep:hover{ background: color-mix(in oklab, var(--deep-2) 55%, transparent); border-color: var(--deep-ink); }
.on-deep .btn-ghost:hover{ background: color-mix(in oklab, var(--deep-ink) 10%, transparent); border-color: var(--deep-ink); }

/* ---------- HEADER ---------- */
.site-header{
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .35s, box-shadow .35s, transform .35s;
}
.site-header .bar{
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad);
  max-width: calc(var(--w-max) + 160px); margin: 0 auto;
}
.site-header.scrolled{
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.on-hero:not(.scrolled){ color: var(--ink); }
body:has(.page-hero) .site-header:not(.scrolled){ color: var(--deep-ink); }
body:has(.page-hero) .site-header:not(.scrolled) .wordmark small{ color: var(--deep-muted); }

.wordmark{
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-weight: 800; font-size: 17px; letter-spacing: 0.04em; text-transform: uppercase;
  color: inherit;
}
.wordmark .mark{
  width: 14px; height: 14px;
  background: var(--accent);
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.wordmark small{
  display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.18em;
  color: var(--muted); margin-top: 1px;
}

.nav-links{ display: flex; align-items: center; gap: 4px; }
.nav-links a{
  text-decoration: none;
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 12px 14px;
  border-radius: var(--radius);
  position: relative;
  transition: color .2s;
}
.nav-links a:not(.btn)::after{
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 7px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease-out);
}
.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn)[aria-current="page"]::after{ transform: scaleX(1); }
.nav-links .btn{ min-height: 44px; padding: 0 20px; margin-left: 10px; }

.menu-btn{
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 48px; height: 48px;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: inherit;
}
.menu-btn span{ display: block; width: 24px; height: 2px; background: currentColor; transition: transform .3s var(--ease-out), opacity .2s; }
.menu-open .menu-btn span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2){ opacity: 0; }
.menu-open .menu-btn span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

.mobile-nav{
  display: none;
  position: fixed; inset: 0;
  z-index: 49;
  background: var(--deep);
  color: var(--deep-ink);
  padding: 110px var(--pad) 40px;
  flex-direction: column; gap: 4px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.menu-open .mobile-nav{ opacity: 1; pointer-events: auto; }
.mobile-nav a{
  text-decoration: none;
  font-family: var(--font-display);
  text-transform: var(--display-case);
  font-size: clamp(38px, 9vw, 56px);
  line-height: 1.15;
  padding: 6px 0;
  border-bottom: 1px solid color-mix(in oklab, var(--deep-ink) 14%, transparent);
  display: flex; justify-content: space-between; align-items: center;
  transform: translateY(14px); opacity: 0;
  transition: transform .45s var(--ease-out), opacity .45s;
}
.menu-open .mobile-nav a{ transform: none; opacity: 1; }
.mobile-nav a:nth-child(2){ transition-delay: .05s; }
.mobile-nav a:nth-child(3){ transition-delay: .1s; }
.mobile-nav a:nth-child(4){ transition-delay: .15s; }
.mobile-nav a .arr{ font-size: 24px; color: var(--accent); }
.mobile-nav .mobile-foot{ margin-top: auto; font-size: 13px; color: var(--deep-muted); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- HERO ---------- */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: clip;
  background: linear-gradient(var(--sky-a), var(--sky-b) 70%);
}
.hero .scenery{ position: absolute; inset: 0; pointer-events: none; }
.scenery .layer{ position: absolute; left: -4%; right: -4%; bottom: -2%; height: 72%; will-change: transform; }
.scenery .layer svg{ display: block; width: 100%; height: 100%; }
.scenery .sun{
  position: absolute;
  width: clamp(180px, 24vw, 360px); aspect-ratio: 1;
  border-radius: 50%;
  right: 12%; top: 9%;
  background: var(--sun);
  opacity: .85;
  filter: blur(1px);
  will-change: transform;
}
.scenery .sky-far{ color: color-mix(in oklab, var(--deep) 32%, var(--bg)); height: 46%; bottom: 12%; }
.scenery .sky-mid{ color: color-mix(in oklab, var(--deep) 68%, var(--bg)); height: 56%; bottom: 6%; }
.scenery .rooftops{ color: var(--deep-2); height: 22%; bottom: -1%; }
.scenery .mist{
  position: absolute; left: 0; right: 0; bottom: 0; height: 52%;
  background: linear-gradient(to top, color-mix(in srgb, var(--bg) 60%, transparent) 0%, color-mix(in srgb, var(--bg) 25%, transparent) 55%, transparent);
}
.hero .veil{
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 90%, transparent) 32%, color-mix(in srgb, var(--bg) 40%, transparent) 52%, transparent 70%);
}
.hero-content{
  position: relative; z-index: 2;
  width: 100%;
  max-width: calc(var(--w-max) + 160px);
  margin: 0 auto;
  padding: 140px var(--pad) clamp(56px, 9vh, 110px);
  color: var(--ink);
}
.hero .kicker{ color: var(--ink); opacity: .92; margin-bottom: clamp(16px, 3vh, 28px); }
.hero .kicker::before{ background: var(--accent); }
.hero-name{
  font-size: clamp(64px, 13.5vw, 218px);
  color: var(--ink);
  text-wrap: balance;
}
.hero-name .thin{ display: block; font-size: 0.42em; opacity: .85; margin-bottom: .06em; }
.hero-sub{
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px;
  margin-top: clamp(24px, 4vh, 44px);
}
.hero-sub p{
  margin: 0;
  font-size: clamp(17px, 1.9vw, 21px);
  max-width: 44ch;
  color: var(--muted);
  text-wrap: pretty;
}
.hero-cta{ display: flex; gap: 14px; flex-wrap: wrap; }
.scroll-hint{
  position: absolute; z-index: 2;
  left: 50%; bottom: 18px; transform: translateX(-50%);
  width: 2px; height: 44px;
  background: color-mix(in oklab, var(--ink) 22%, transparent);
  overflow: hidden;
}
.scroll-hint::after{
  content: ""; position: absolute; left: 0; top: -50%;
  width: 100%; height: 50%;
  background: var(--accent);
  animation: hint 2s var(--ease-out) infinite;
}
@keyframes hint{ to{ top: 110%; } }

/* hero entrance — transition-based (.rv + .in), screenshot- and no-motion-safe */

/* ---------- MARQUEE ---------- */
.marquee{
  background: var(--deep);
  color: var(--deep-ink);
  overflow: hidden;
  padding: 16px 0;
  border-top: 1px solid color-mix(in oklab, var(--deep-ink) 12%, transparent);
}
.marquee .track{
  display: flex; gap: 0; width: max-content;
  animation: scroll-x 30s linear infinite;
}
.marquee .seq{
  display: flex; align-items: center; gap: 36px; padding-right: 36px;
  font-family: var(--font-display);
  text-transform: var(--display-case);
  font-size: clamp(18px, 2.4vw, 28px);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.marquee .seq i{ font-style: normal; color: var(--accent); font-size: .6em; }
@keyframes scroll-x{ to{ transform: translateX(-50%); } }

/* ---------- SECTIONS ---------- */
section{ position: relative; }
.section-pad{ padding: clamp(72px, 12vh, 140px) 0; }
.section-head{ display: grid; gap: 18px; margin-bottom: clamp(36px, 6vh, 64px); }
.h2{
  font-size: clamp(40px, 6vw, 84px);
  max-width: 16ch;
  text-wrap: balance;
}
.deep-band{ background: var(--deep); color: var(--deep-ink); overflow: clip; }
.deep-band .kicker{ color: var(--deep-muted); }
.deep-band .lede{ color: var(--deep-muted); }
.deep-band .h2{ color: var(--deep-ink); }

/* contours decorative bg (inlined svg via data-svg) */
.contours{
  position: absolute; pointer-events: none;
  width: min(70vw, 880px); aspect-ratio: 1;
  opacity: .07;
}
.contours svg{ display: block; width: 100%; height: 100%; }

/* reveal on scroll */
.rv{ opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.rv.in{ opacity: 1; transform: none; }
.rv-d1{ transition-delay: .08s; } .rv-d2{ transition-delay: .16s; } .rv-d3{ transition-delay: .24s; }

/* ---------- PRIORITY CARDS ---------- */
.prio-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.prio-card{
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  text-decoration: none;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 220px;
  overflow: hidden;
  transition: transform .35s var(--ease-out), border-color .25s, box-shadow .35s;
}
.prio-card:hover{
  transform: translateY(-6px);
  border-color: color-mix(in oklab, var(--accent) 60%, var(--line));
  box-shadow: 0 18px 40px -18px color-mix(in oklab, var(--deep) 35%, transparent);
}
.prio-card .num{
  font-family: var(--font-display);
  text-transform: var(--display-case);
  font-size: 15px;
  color: var(--accent);
  letter-spacing: .1em;
}
.prio-card h3{
  font-family: var(--font-display);
  text-transform: var(--display-case);
  font-weight: var(--display-weight);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.08;
}
.prio-card p{ margin: 0; font-size: 14.5px; color: var(--muted); flex: 1; text-wrap: pretty; }
.prio-card .go{
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.prio-card .go::after{ content: "→"; color: var(--accent); transition: transform .25s var(--ease-out); }
.prio-card:hover .go::after{ transform: translateX(4px); }

/* ---------- ABOUT ---------- */
.about-grid{
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.portrait-stack{ position: relative; }
.portrait-stack .frame{
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 12px 12px 16px;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -30px color-mix(in oklab, var(--deep) 45%, transparent);
}
.portrait-stack .frame figcaption{
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); padding-top: 10px;
  display: flex; justify-content: space-between;
}
.portrait-stack .candid{
  position: absolute;
  right: -8%; bottom: -34%;
  width: 62%;
  transform: rotate(3.5deg);
}
.about-copy{ display: grid; gap: 20px; }
.about-copy .statement{
  font-family: var(--font-display);
  text-transform: var(--display-case);
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.12;
  letter-spacing: var(--display-track);
  text-wrap: balance;
}
.about-copy .statement em{ font-family: "Newsreader", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--deep); }
.about-copy p{ margin: 0; color: var(--muted); max-width: 58ch; text-wrap: pretty; }
.fact-row{
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px;
}
.fact-row span{
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 9px 14px; border-radius: 999px;
  color: var(--muted);
}

/* ---------- PRIORITY IMAGE TILES ---------- */
.tile-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile-grid.lead{ margin-bottom: 16px; }
.pri-tile{
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .25s;
}
.pri-tile:hover{ transform: translateY(-6px); border-color: color-mix(in oklab, var(--accent) 70%, var(--line)); box-shadow: 0 22px 44px -22px color-mix(in oklab, var(--deep) 45%, transparent); }
.pri-tile .shot{ position: relative; background: color-mix(in oklab, var(--deep) 8%, var(--surface)); }
.pri-tile image-slot{ display: block; width: 100%; height: auto; aspect-ratio: 16/10; }
.pri-tile.big image-slot{ aspect-ratio: 4/3; }
.pri-tile .body{ padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pri-tile .num{ font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--accent); }
.pri-tile h3{ font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-size: clamp(21px, 2.1vw, 27px); line-height: 1.08; color: var(--ink); }
.pri-tile p{ margin: 0; font-size: 14.5px; color: var(--muted); flex: 1; text-wrap: pretty; }
.pri-tile .go{ font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--deep); display: inline-flex; gap: 8px; align-items: center; }
.pri-tile .go::after{ content: "→"; color: var(--accent); transition: transform .25s var(--ease-out); }
.pri-tile:hover .go::after{ transform: translateX(4px); }

/* ---------- LOCAL / FOOTHILLS BAND ---------- */
.local-grid{ display: grid; grid-template-columns: minmax(0,6fr) minmax(0,5fr); gap: clamp(32px,5vw,72px); align-items: center; }
.local-list{ list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 0; }
.local-list li{ display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid color-mix(in oklab, var(--deep-ink) 18%, transparent); font-size: 16px; line-height: 1.5; }
.local-list li::before{ content: "→"; color: var(--accent); font-weight: 700; }
.local-shot{ border: 1px solid color-mix(in oklab, var(--deep-ink) 22%, transparent); border-radius: var(--radius); overflow: hidden; }
.local-shot image-slot{ display: block; width: 100%; height: auto; aspect-ratio: 4/5; }

/* ---------- MEMBERSHIP ---------- */
.member-band{ background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.member-grid{ display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: clamp(28px,4vw,56px); align-items: start; }
.member-copy .price{ font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(56px, 8vw, 104px); line-height: .9; color: var(--deep); }
.member-copy .price small{ display: block; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.member-frame{ position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden; box-shadow: 0 24px 60px -34px color-mix(in oklab, var(--deep) 50%, transparent); }
.member-frame .chrome{ display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); font-size: 12px; color: var(--muted); }
.member-frame .chrome code{ font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-frame .dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.member-frame iframe{ display: block; width: 100%; height: 640px; border: 0; background: #fff; }
.member-fallback{ padding: 26px; display: grid; gap: 14px; justify-items: start; border-top: 1px solid var(--line); background: var(--surface); font-size: 14.5px; color: var(--muted); }

/* ---------- LAWN SIGN BAND ---------- */
.sign-band{ overflow: clip; }
.sign-band .inner{
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.lawn-sign{
  position: relative;
  margin: 0 auto;
  width: min(380px, 80%);
  transform: rotate(-2deg);
  transition: transform .4s var(--ease-out);
}
.sign-band:hover .lawn-sign{ transform: rotate(0deg) translateY(-4px); }
.lawn-sign .panel{
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  padding: 20px;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.45);
  text-align: center;
}
.lawn-sign .panel .nm{
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(40px, 9vw, 64px);
  line-height: .95;
}
.lawn-sign .panel .of{
  font-size: 13px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
}
.lawn-sign .panel .rule{ width: 56px; height: 3px; background: currentColor; margin: 8px 0; }
.lawn-sign .legs{
  display: flex; justify-content: space-evenly;
}
.lawn-sign .legs i{
  width: 10px; height: 64px;
  background: color-mix(in oklab, var(--deep-ink) 55%, var(--deep));
}
.grass-edge{
  position: absolute; left: -4%; right: -4%; bottom: -6px; height: 60px;
  color: var(--deep-2);
  opacity: .5;
}
.grass-edge svg{ display: block; width: 100%; height: 100%; }

/* ---------- DONATE BAND ---------- */
.donate-band .amounts{
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px;
}
.amount-chip{
  font-family: var(--font-display);
  text-transform: var(--display-case);
  font-size: clamp(24px, 3vw, 40px);
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in oklab, var(--deep-ink) 30%, transparent);
  color: var(--deep-ink);
  text-decoration: none;
  transition: background .2s, color .2s, transform .25s var(--ease-out), border-color .2s;
}
.amount-chip:hover{
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
  transform: translateY(-4px);
}
.fine{ font-size: 13px; color: var(--deep-muted); max-width: 64ch; line-height: 1.6; }
.fine a{ color: inherit; }

/* ---------- FOOTER ---------- */
.site-footer{
  background: var(--deep-2);
  color: var(--deep-ink);
  padding: clamp(56px, 8vh, 90px) 0 32px;
  position: relative;
  overflow: clip;
}
.site-footer .big-name{
  font-size: clamp(48px, 9vw, 140px);
  color: color-mix(in oklab, var(--deep-ink) 16%, transparent);
  line-height: .9;
  margin-bottom: 48px;
  user-select: none;
}
.footer-grid{
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid color-mix(in oklab, var(--deep-ink) 14%, transparent);
}
.footer-grid h4{
  margin: 0 0 14px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--deep-muted);
}
.footer-grid ul{ list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a{ text-decoration: none; font-size: 15px; opacity: .9; }
.footer-grid a:hover{ opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer-grid .soon{ font-size: 15px; color: var(--deep-muted); }
.footer-grid .soon code{
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  background: color-mix(in oklab, var(--deep-ink) 10%, transparent);
  padding: 2px 7px; border-radius: 4px;
}
.legal{
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 24px;
  font-size: 12.5px; color: var(--deep-muted);
}
.legal .auth{ font-weight: 600; }
.legal .note{ flex-basis: 100%; opacity: .85; }

/* ---------- SUBPAGE HERO ---------- */
.page-hero{
  background: var(--deep);
  color: var(--deep-ink);
  padding: clamp(150px, 24vh, 220px) 0 clamp(48px, 8vh, 88px);
  position: relative;
  overflow: clip;
}
.page-hero .contours{ right: -12%; top: -30%; color: var(--deep-ink); }
.page-hero .kicker{ color: var(--deep-muted); margin-bottom: 18px; }
.page-hero h1{
  font-size: clamp(52px, 9vw, 150px);
  color: var(--deep-ink);
}
.page-hero .lede{ color: var(--deep-muted); margin-top: 20px; }
.page-hero .treefoot{
  position: absolute; left: -2%; right: -2%; bottom: -2px; height: 70px;
  color: var(--deep-2);
  opacity: .6;
}
.page-hero .treefoot svg{ display: block; width: 100%; height: 100%; }

/* ---------- MOTION OFF ---------- */
html[data-motion="off"] .marquee .track{ animation-play-state: paused; }
html[data-motion="off"] .scroll-hint::after{ animation: none; }
html[data-motion="off"] .scenery .layer,
html[data-motion="off"] .scenery .sun{ transform: none !important; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .marquee .track{ animation-play-state: paused; }
  .scroll-hint::after{ animation: none; }
  .scenery .layer, .scenery .sun{ transform: none !important; }
  .rv{ transition-duration: .01s; transition-delay: 0s; }
  .btn, .prio-card, .amount-chip, .lawn-sign{ transition: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px){
  .prio-grid{ grid-template-columns: repeat(2, 1fr); }
  .tile-grid{ grid-template-columns: repeat(2, 1fr); }
  .local-grid, .member-grid{ grid-template-columns: 1fr; }
  .local-shot{ max-width: 420px; }
  .about-grid{ grid-template-columns: 1fr; }
  .portrait-stack{ max-width: 440px; }
  /* Stacked layout: un-float the candid so it flows under the portrait
     instead of hanging over the copy below. */
  .portrait-stack .candid{
    position: static;
    right: auto; bottom: auto;
    width: 68%;
    margin: 18px 0 0 auto;
  }
  .sign-band .inner{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px){
  .nav-links{ display: none; }
  .menu-btn{ display: flex; }
  .mobile-nav{ display: flex; }
  .prio-grid{ grid-template-columns: 1fr; }
  .prio-card{ min-height: 0; }
  .tile-grid{ grid-template-columns: 1fr; }
  .member-frame iframe{ height: 520px; }
  .hero-content{ padding-top: 120px; }
  .hero-sub{ flex-direction: column; align-items: flex-start; }
  .hero-cta .btn{ flex: 1 1 auto; }
  .footer-grid{ grid-template-columns: 1fr; gap: 28px; }
}
