/* ==========================================================
   LYV — shared styles
   Palette: blue #3366FF · off-white · off-black · lavender #D9DBF1
   ========================================================== */

:root {
  --blue: #3366FF;
  --blue-deep: #2451D9;
  --ink: #16161A;
  /* off-black */
  --paper: #F7F6F1;
  /* off-white */
  --lav: #D9DBF1;
  /* minor contrast */
  --lav-ink: #5B5F8F;
  /* readable text on lavender */
  --white: #FFFFFF;
  --muted: #6B6B72;

  --font-display: "Bricolage Grotesque", "Arial Black", Impact, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1;
  margin: 0;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.section {
  padding-block: clamp(56px, 9vw, 120px);
}

.section--tight {
  padding-block: clamp(40px, 6vw, 80px);
}

/* ---------- Type scale ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.92;
  font-size: clamp(2.6rem, 10vw, 7.5rem);
}

.h2 {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.98;
}

.h3 {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 36ch;
}

.muted {
  color: var(--muted);
}

/* Highlight "marker" behind a word (like Food Ora's "FREEDOM CAN") */
.hl {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 0 0.18em;
  border-radius: 6px;
  transform: rotate(-1.5deg);
}

.hl--lav {
  background: var(--lav);
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--blue {
  background: var(--blue);
  border-color: var(--blue);
}

.btn--blue:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--white);
}

.btn--paper {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.btn--sm {
  padding: 10px 16px;
  font-size: 0.75rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- Liquid-metal button (hero Donate) ---------- */
.lm-btn {
  --lm-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 32px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: #d4d4d4;
  isolation: isolate;
  transform: scale(1);
  transition: transform 0.8s var(--lm-ease), box-shadow 0.3s ease;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.3),
    0 2px 5px rgba(0,0,0,.15), 0 9px 9px rgba(0,0,0,.12),
    0 20px 12px rgba(0,0,0,.08), 0 36px 14px rgba(0,0,0,.02);
  cursor: pointer;
}
.lm-btn:hover, .lm-btn:focus-visible {
  transform: scale(1.12);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.4),
    0 1px 2px rgba(0,0,0,.2), 0 4px 4px rgba(0,0,0,.15),
    0 8px 5px rgba(0,0,0,.1), 0 12px 6px rgba(0,0,0,.05);
  outline: none;
}
.lm-btn:active { transform: scale(1.06) translateY(1px); transition-duration: .15s; }
.lm-btn:active .lm-core { box-shadow: inset 0 2px 4px rgba(0,0,0,.5); }
/* metal rim: flowing chrome gradient, liquid-displaced (CSS fallback for the WebGL shader) */
.lm-rim {
  position: absolute; inset: 0; z-index: -2;
  border-radius: inherit; overflow: hidden;
  background: #9a9a9a;
}
.lm-rim::before {
  content: ""; position: absolute; top: -20%; left: 0; height: 140%; width: 300%;
  background: linear-gradient(100deg,
    #7d7d7d 0%, #ededed 4%, #8a8a8a 9%, #fdfdfd 14%, #6a6a6a 20%, #e4e4e4 26%, #999 30%, #fff 33.33%,
    #7d7d7d 33.33%, #ededed 37.33%, #8a8a8a 42.33%, #fdfdfd 47.33%, #6a6a6a 53.33%, #e4e4e4 59.33%, #999 63.33%, #fff 66.66%,
    #7d7d7d 66.66%, #ededed 70.66%, #8a8a8a 75.66%, #fdfdfd 80.66%, #6a6a6a 86.66%, #e4e4e4 92.66%, #999 96.66%, #fff 100%);
  filter: url(#lm-liquid);
  animation: lm-flow 7s linear infinite;
}
.lm-btn:hover .lm-rim::before { animation-duration: 3.5s; }
.lm-rim.is-webgl::before { display: none; }
.lm-rim canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
@keyframes lm-flow { to { transform: translateX(-33.333%); } }
/* dark core pill */
.lm-core {
  position: absolute; inset: 2px; z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, #202020 0%, #000 100%);
  transition: box-shadow .15s ease;
}
.lm-label { text-shadow: 0 1px 2px rgba(0,0,0,.6); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .lm-rim::before { animation: none; } }

/* ---------- Hero photo rail (scroll-driven, fisheye through center) ---------- */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: clamp(32px, 5vw, 64px);
  position: relative; z-index: 1;
}
.hero-copy { z-index: 2; }
.hero-copy .display { position: relative; z-index: 1; }
@media (min-width: 820px) {
  .hero-layout { grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: stretch; }
  .hero-copy { padding-block: 16px 8px; }
  .hero-copy .display { font-size: clamp(2.6rem, 6.4vw, 5.8rem); }
  /* rail runs the full hero height and bleeds to the right edge, sitting behind the copy */
  .hero-rail { height: 100%; min-height: 540px; margin-right: calc(-1 * var(--gutter)); z-index: 0; }
}
.hero-rail {
  position: relative;
  width: 100%;
  height: clamp(420px, 68vh, 620px);
  overflow: hidden;
  /* soft top/bottom edges so photos fade in and out of the window */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.hero-rail-track {
  position: absolute; left: 0; right: 0; top: 0;
  height: 240%;
  will-change: transform;
}
.rail-photo {
  position: absolute;
  left: var(--x); top: var(--y); width: var(--w);
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--white);
  will-change: transform, box-shadow;
  transform-origin: 50% 50%;
}
.rail-photo img { display: block; width: 100%; height: auto; }
.hero-copy-sticker { position: static; display: inline-block; margin-top: 26px; transform: rotate(-4deg); }
@media (max-width: 819px) { .hero-rail { height: clamp(380px, 60vh, 520px); } }

/* ---------- Sticker badges ---------- */
.sticker {
  position: absolute;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 3px 0 var(--ink);
  border: 2px solid var(--ink);
  transform: rotate(-8deg);
  z-index: 3;
  white-space: nowrap;
}

.sticker--lav {
  background: var(--lav);
  color: var(--ink);
  transform: rotate(6deg);
}

.sticker--paper {
  background: var(--paper);
  color: var(--ink);
}

/* On phones, stickers flow under the title instead of floating over it */
@media (max-width: 640px) {

  .hero-copy .sticker,
  .page-hero .sticker {
    position: static;
    display: inline-block;
    margin: 14px 10px 0 0;
    transform: rotate(-3deg);
  }

  .hero-copy .sticker--lav,
  .page-hero .sticker--lav {
    transform: rotate(3deg);
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 40px;
  width: auto;
}

.brand .brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.brand .brand-text::after {
  content: " →";
  color: var(--blue);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 999px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--lav);
}

.nav .btn {
  margin-left: 8px;
}

.nav .btn:hover,
.nav .btn[aria-current="page"] {
  background: var(--blue-deep);
}

.nav-toggle {
  display: none;
  border: 2px solid var(--ink);
  background: transparent;
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .nav {
    display: none;
    position: absolute;
    left: calc(-1 * var(--gutter));
    right: calc(-1 * var(--gutter));
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    padding: 12px var(--gutter) 20px;
    border-bottom: 2px solid var(--ink);
    gap: 4px;
  }

  .nav a {
    padding: 14px 16px;
    font-size: 1rem;
  }

  .nav .btn {
    margin: 8px 0 0;
    justify-content: center;
  }

  .site-header.is-open .nav {
    display: flex;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 7vw, 96px) 0;
}

.hero .wrap {
  position: relative;
}

.hero-title {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 28px;
  align-items: end;
  padding-bottom: clamp(40px, 6vw, 80px);
  position: relative;
  z-index: 1;
}

@media (min-width: 820px) {
  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: start;
  }

  .hero-grid>div:first-child {
    padding-top: 24px;
  }
}

.hero-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--blue);
  background: var(--white);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-wrap {
  position: relative;
}

.squiggle {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 0;
  height: 55%;
  z-index: 0;
  pointer-events: none;
  color: var(--lav);
}

.squiggle svg {
  width: 100%;
  height: 100%;
}

/* Marker-scribble divider (rough brush edge, sits on top of the next band) */
.scribble {
  display: block;
  width: 100%;
  height: clamp(56px, 7vw, 84px);
  margin-bottom: -2px;
}

.scribble--blue {
  color: var(--blue);
}

.scribble--paper {
  color: var(--paper);
}

.scribble--lav {
  color: var(--lav);
}

.scribble--ink {
  color: var(--ink);
}

/* Simple wave divider above the footer */
.waves {
  display: block;
  width: 100%;
  height: clamp(28px, 5vw, 56px);
  margin-bottom: -2px;
}

/* ---------- Marquee divider (black band, scrolls right → left) ---------- */
.marquee {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding-block: 13px;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 70s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.marquee-text {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .7em;
  padding-inline: .7em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.0rem, 1vw, 2.1rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.1;
}

.marquee-star {
  font-style: normal;
  color: var(--blue);
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* ---------- Bands ---------- */
.band {
  color: var(--white);
  background: var(--blue);
}

.band--lav {
  background: var(--lav);
  color: var(--ink);
}

.band--ink {
  background: var(--ink);
  color: var(--paper);
}

.band .eyebrow {
  color: inherit;
  opacity: .8;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 640px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  padding: 8px 0;
  border-top: 2px solid currentColor;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat span {
  display: block;
  font-size: .9rem;
  opacity: .85;
  margin-top: 6px;
}

/* ---------- Cards / placeholders ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 var(--lav);
}

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 18px 18px 20px;
}

.card-body .h3 {
  margin-bottom: 8px;
}

.card-body p {
  margin: 0;
  font-size: .95rem;
  color: var(--muted);
}

.card--blue {
  background: var(--blue);
  color: var(--white);
}

.card--blue .card-body p {
  color: rgba(255, 255, 255, .85);
}

.card--lav {
  background: var(--lav);
}

.card--lav .tag {
  background: var(--white);
}

.card--ink {
  background: var(--ink);
  color: var(--paper);
}

.card--ink .card-body p {
  color: rgba(247, 246, 241, .8);
}

/* Placeholder photo block — swap for a real <img> later */
.ph {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(22, 22, 26, .06) 14px 15px),
    linear-gradient(160deg, var(--lav), #EEEFF8);
  color: var(--lav-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
}

/* Tags */
.tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--lav);
  color: var(--ink);
}

.tag--blue {
  background: var(--blue);
  color: var(--white);
}

.tag--outline {
  background: transparent;
  border: 1.5px solid currentColor;
  color: inherit;
}

/* ---------- Two-col intro ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: end;
}

@media (min-width: 820px) {
  .split {
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
  }
}

/* ---------- Update feed ---------- */
.feed {
  display: grid;
  gap: 14px;
}

.update {
  display: grid;
  gap: 6px 18px;
  grid-template-columns: 1fr;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 2px solid var(--ink);
}

@media (min-width: 720px) {
  .update {
    grid-template-columns: 130px 1fr auto;
    align-items: start;
  }
}

.update time {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
}

.update .amt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

.update h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.update h4 .tag {
  margin-left: 8px;
  vertical-align: middle;
}

.update p {
  margin: 0;
  font-size: .95rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue);
  color: var(--white);
  padding-top: clamp(40px, 6vw, 80px);
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding-bottom: 32px;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}

.footer-grid h4 {
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: .8;
}

.footer-grid a {
  display: block;
  text-decoration: none;
  padding: 4px 0;
  opacity: .95;
}

.footer-grid a:hover {
  text-decoration: underline;
}

.footer-brand {
  grid-column: 1 / -1;
}

@media (min-width: 720px) {
  .footer-brand {
    grid-column: auto;
  }
}

.footer-brand p {
  max-width: 32ch;
  opacity: .9;
  font-size: .95rem;
}

.footer-mark {
  text-align: center;
  line-height: 0;
}

.footer-mark img {
  width: min(560px, 72vw);
  margin-inline: auto;
  filter: invert(1);
  transform: translateY(12%);
}

.footer-mark .wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(5rem, 24vw, 18rem);
  letter-spacing: -0.04em;
  line-height: .8;
  transform: translateY(14%);
  display: block;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  padding: 16px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, .3);
  font-size: .85rem;
  opacity: .85;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding-block: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 48px);
  overflow: hidden;
}

.page-hero .display {
  font-size: clamp(2.6rem, 9vw, 6rem);
}

.page-hero .lead {
  margin-top: 20px;
}

/* ---------- Give form ---------- */
.give-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 900px) {
  .give-layout {
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
  }
}

.give-form { display: flex; justify-content: center; }


.widget-note {
  font-size: .85rem;
  color: var(--muted);
  margin-top: 10px;
}

.gb-button {
  display: inline-block;
  min-height: 44px;
}

/* ---------- Finances ---------- */
.q-picker {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.q-years {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.q-quarters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.q-btn {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 14px 8px;
  font-size: .95rem;
  cursor: pointer;
  transition: background .12s ease, color .12s ease, transform .12s ease;
}

.q-btn small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  margin-top: 2px;
}

.q-btn:hover:not(:disabled) {
  background: var(--lav);
}

.q-btn[aria-pressed="true"] {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.q-btn[aria-pressed="true"] small {
  color: rgba(255, 255, 255, .85);
}

.q-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.q-year {
  padding: 10px 18px;
  border-radius: 999px;
}

.q-report {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 28px;
}

@media (min-width: 900px) {
  .q-report {
    grid-template-columns: 1.15fr 1fr;
    gap: 40px;
    align-items: start;
  }
}

.q-visual {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 8px 8px 0 var(--blue);
  aspect-ratio: 4 / 3;
}

.q-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.q-summary .stats {
  grid-template-columns: repeat(2, 1fr);
  margin: 18px 0 24px;
}

.q-summary .stat b {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.bars {
  display: grid;
  gap: 12px;
}

.bar {
  display: grid;
  gap: 6px;
}

.bar-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .92rem;
}

.bar-head b {
  font-family: var(--font-display);
  font-weight: 700;
  white-space: nowrap;
}

.bar-track {
  height: 14px;
  background: var(--lav);
  border-radius: 999px;
  overflow: hidden;
  border: 1.5px solid var(--ink);
}

.bar-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 999px;
  width: 0;
  transition: width .5s ease;
}

.q-note {
  font-size: .92rem;
  color: var(--muted);
  margin-top: 18px;
}

.reports {
  display: grid;
  gap: 10px;
}

.report {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 2px solid var(--ink);
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}

.report:hover {
  transform: translateX(4px);
  box-shadow: -4px 4px 0 var(--lav);
}

.report .r-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.report .r-meta {
  font-size: .85rem;
  color: var(--muted);
}

.report .r-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  white-space: nowrap;
}

.report.is-missing {
  opacity: .55;
  pointer-events: none;
}

/* ---------- Timeline (about) ---------- */
.timeline {
  border-left: 2px solid var(--ink);
  margin-left: 8px;
}

.tl-item {
  position: relative;
  padding: 0 0 28px 28px;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--ink);
}

.tl-item time {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 4px;
}

.tl-item p {
  margin: 0;
  color: var(--muted);
}

/* Value blocks (about) */
.values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 720px) {
  .values {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--white);
  border: 2px solid var(--ink);
}

.value .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 10px;
}

.value p {
  margin: 8px 0 0;
  font-size: .95rem;
  color: var(--muted);
}

/* ---------- Utilities ---------- */
.mt-1 {
  margin-top: 12px;
}

.mt-2 {
  margin-top: 24px;
}

.mt-3 {
  margin-top: 40px;
}

.center {
  text-align: center;
}

.rel {
  position: relative;
}

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

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 32px;
}

.section-head .lead {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
/* ---------- 8-bit heart cursor + subtle trail (mouse devices only) ---------- */
@media (hover: hover) and (pointer: fine) {
  html, body { cursor: url("../assets/cursor-heart.png") 4 4, auto; }
  a, button, .btn, .lm-btn, .q-btn, .card, .report, .nav-toggle, [role="button"] {
    cursor: url("../assets/cursor-heart.png") 4 4, pointer;
  }
}
.heart-trail {
  position: fixed; left: 0; top: 0;
  width: 14px; height: 14px;
  background: url("../assets/trail-heart.png") center / contain no-repeat;
  pointer-events: none; z-index: 9999;
  opacity: 0.35;
  animation: heart-trail 650ms ease-out forwards;
}
@keyframes heart-trail {
  0%   { transform: translate(-50%, -50%) scale(0.9); opacity: 0.35; }
  100% { transform: translate(-50%, -50%) translateY(-14px) scale(0.5); opacity: 0; }
}

/* Impact stats: detail line + closing note */
.stat small { display: block; font-size: .8rem; opacity: .7; margin-top: 4px; line-height: 1.35; }
@media (min-width: 640px) { .stats--3 { grid-template-columns: repeat(3, 1fr); } }
.stats-note {
  margin: 28px 0 0;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: .01em; opacity: .9;
}

/* Stat labels: bold display face */
.stat span { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: .005em; opacity: 1; }

/* Impact band: compact, single row on wide screens, wraps to 3 / 2 columns when narrow */
.band .stats { gap: 16px; }
.band .stat { padding-top: 10px; }
.band .stat b { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.band .stat span { font-size: .9rem; line-height: 1.2; margin-top: 4px; }
.band .stat small { font-size: .74rem; margin-top: 3px; }
.band .stats-note { margin-top: 20px; font-size: .95rem; }
@media (min-width: 1100px) { .stats--3 { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 640px) and (max-width: 1099px) { .stats--3 { grid-template-columns: repeat(3, 1fr); } }

/* Location carousel (home): bleeds to the screen edges, auto-scrolls, draggable */
.loc-carousel {
  overflow: hidden;
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  cursor: grab;
  user-select: none; -webkit-user-select: none;
  touch-action: pan-y;
}
.loc-carousel.is-dragging { cursor: grabbing; }
.loc-carousel.is-dragging .card { pointer-events: none; }
.loc-track { display: flex; gap: 20px; width: max-content; will-change: transform; }
.loc-track .card { flex: none; width: min(340px, 78vw); }
.loc-track .card:hover { transform: none; }

/* ---------- v1: links to unreleased pages (disabled + tooltip) ---------- */
.soon {
  opacity: .45;
  cursor: not-allowed !important;
  text-decoration: none;
  transition: opacity .16s ease;
}
.soon:hover, .soon:focus-visible { opacity: .6; }
.soon:hover, .soon:focus-visible { transform: none !important; box-shadow: none !important; }

/* one shared tooltip, positioned by js/main.js (never clipped or faded) */
.soon-tip {
  position: fixed;
  left: 0; top: 0;
  z-index: 9998;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .78rem;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(22, 22, 26, .3);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .16s ease, transform .16s ease;
}
.soon-tip.is-visible { opacity: 1; transform: translateY(0); }

/* v1: location cards are not clickable yet (Our Work page unreleased) */
.card--static { cursor: default; }
.card--static:hover { transform: none; box-shadow: none; }
