/* Center for Long Covid & Chronic Illness — site styles. No framework.
   Fonts, self-hosted: Fraunces (headings), Geist (text). */
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/Fraunces.woff2") format("woff2"); font-weight: 300 600; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/Fraunces-Italic.woff2") format("woff2"); font-weight: 300 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@view-transition { navigation: auto; }

:root {
  --paper: #f4f1e8;
  --card: #fbfaf5;
  --ink: #10231d;
  --body: #46554f;
  --muted: #76837c;
  --line: rgba(16, 35, 29, .11);
  --green: #17875c;
  --blue: #2f7fc4;
  --radius: 28px;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --sway: cubic-bezier(.45, .05, .55, .95);
  /* paper tray: inner highlight, hairline, pale rim, outer hairline, long soft drop */
  --bezel: inset 0 1px 0 #fff, 0 0 0 1px rgba(16, 35, 29, .07), 0 0 0 7px rgba(255, 255, 255, .55),
           0 0 0 8px rgba(16, 35, 29, .06), 0 50px 80px -50px rgba(16, 35, 29, .35);
  --max: 1180px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: light; scroll-padding-top: 100px; }
body {
  margin: 0; background: var(--paper); color: var(--body);
  font: 400 17px/1.72 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::after {    /* paper grain */
  content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html.lock { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: .22em; text-decoration-thickness: 1px; transition: color .4s var(--ease); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 8px; }
::selection { background: rgba(23, 135, 92, .22); color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 380; line-height: 1.04; letter-spacing: -.03em; margin: 0 0 .55em; text-wrap: balance; font-optical-sizing: auto; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.18; }
h1 em, h2 em { font-style: italic; color: var(--green); font-weight: 340; }
p { margin: 0 0 1.15em; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 60; }
.skip:focus { left: 12px; }

/* ---------- header: floating pill ---------- */
.site-header { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; pointer-events: none; }
.nav-pill {
  pointer-events: auto; position: relative; isolation: isolate; width: min(1080px, 100% - 24px); margin-inline: auto;
  height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 9px 0 12px; border-radius: 999px;
}
.nav-pill::before {   /* the glass sits on a pseudo-element so the full-screen menu stays fixed to the viewport */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: rgba(251, 250, 245, .72); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(16, 35, 29, .08), 0 24px 40px -26px rgba(16, 35, 29, .4);
}
.brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.08rem; letter-spacing: -.015em; }
.brand img { height: 40px; width: 40px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  color: var(--body); text-decoration: none; font-weight: 500; font-size: .92rem; padding: 9px 16px; border-radius: 999px;
  transition: color .5s var(--ease), background .5s var(--ease), opacity .7s var(--ease), transform .7s var(--ease);
}
.nav a:hover { color: var(--ink); background: rgba(16, 35, 29, .05); }
.nav a[aria-current="page"] { color: var(--ink); background: rgba(16, 35, 29, .07); }
.nav a.cta { background: var(--ink); color: #fff; margin-left: 8px; padding-inline: 22px; }
.nav a.cta:hover { background: var(--green); color: #fff; }
.menu-btn { display: none; }
@media (max-width: 760px) {
  .menu-btn {
    display: block; position: relative; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: rgba(16, 35, 29, .07); cursor: pointer; padding: 0;
  }
  .menu-btn span {
    position: absolute; left: 13px; top: 21px; width: 18px; height: 1.5px; border-radius: 2px; background: var(--ink);
    transition: transform .6s var(--ease);
  }
  .menu-btn span:first-child { transform: translateY(-4px); }
  .menu-btn span:last-child { transform: translateY(4px); }
  .open .menu-btn span:first-child { transform: rotate(45deg); }
  .open .menu-btn span:last-child { transform: rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px;
    padding: 110px 32px 48px; background: rgba(244, 241, 232, .9); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .6s var(--ease), visibility 0s .6s;
  }
  .open .nav { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .6s var(--ease), visibility 0s; }
  .nav a, .nav a:hover, .nav a[aria-current="page"] { background: none; }
  .nav a {
    font: 380 clamp(2.4rem, 11vw, 3.4rem)/1.15 var(--serif); letter-spacing: -.03em; color: var(--ink);
    padding: 6px 0; opacity: 0; transform: translateY(40px);
  }
  .nav a[aria-current="page"] { color: var(--green); font-style: italic; }
  .open .nav a { opacity: 1; transform: none; }
  .open .nav a:nth-child(1) { transition-delay: .08s; }
  .open .nav a:nth-child(2) { transition-delay: .14s; }
  .open .nav a:nth-child(3) { transition-delay: .2s; }
  .open .nav a:nth-child(4) { transition-delay: .26s; }
  .nav a.cta, .nav a.cta:hover { margin: 22px 0 0; font: 500 1.05rem var(--font); letter-spacing: 0; padding: 14px 30px; background: var(--ink); color: #fff; }
}

/* ---------- buttons, eyebrow ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font-weight: 520; font-size: .98rem;
  padding: 7px 7px 7px 26px; border-radius: 999px; transition: transform .6s var(--ease), background .6s var(--ease), box-shadow .6s var(--ease), color .6s var(--ease);
}
.btn::after {   /* arrow in its own circle */
  content: ""; width: 40px; height: 40px; border-radius: 50%; flex: none; transition: transform .6s var(--ease);
  background: rgba(255, 255, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.btn:hover::after { transform: translateX(3px) rotate(-45deg) scale(1.05); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 18px 40px -18px rgba(16, 35, 29, .7); }
.btn-primary:hover { background: var(--green); color: #fff; box-shadow: 0 22px 50px -18px rgba(23, 135, 92, .8); }
.btn-ghost { background: rgba(255, 255, 255, .6); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost::after { background-color: var(--ink); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light::after { background-color: var(--green); }
.btn-light:hover { color: var(--ink); background: #eafff5; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; margin-bottom: 26px;
  font-size: .68rem; font-weight: 560; letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
  background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px var(--line);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: beat 2.4s var(--sway) infinite alternate; }

/* ---------- hero ---------- */
.hero { position: relative; overflow-x: clip; padding: clamp(130px, 14vw, 180px) 0 clamp(60px, 8vw, 110px); }
.hero::before {   /* slow breathing colour, like light through leaves */
  content: ""; position: absolute; inset: -10% -20% 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(36% 40% at 78% 28%, rgba(23, 135, 92, .2), transparent 70%),
    radial-gradient(32% 36% at 14% 12%, rgba(47, 127, 196, .16), transparent 70%),
    radial-gradient(30% 30% at 50% 90%, rgba(23, 135, 92, .08), transparent 70%);
  animation: drift 18s var(--sway) infinite alternate;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.hero h1 .w { display: inline-block; }
.lead { font-size: clamp(1.1rem, 1.55vw, 1.28rem); line-height: 1.62; max-width: 58ch; }
.page-hero { padding-bottom: clamp(30px, 4vw, 50px); }
.page-hero h1 { margin-bottom: .3em; }
.page-hero .lead { max-width: 70ch; }

.hero-art { position: relative; isolation: isolate; justify-self: center; width: min(100%, 400px); }
.arch { position: relative; overflow: hidden; border-radius: 999px 999px var(--radius) var(--radius); aspect-ratio: 4 / 5.2; box-shadow: var(--bezel); }
.arch img { width: 100%; height: 100%; object-fit: cover; animation: breathe 22s var(--sway) infinite alternate; }
.hero-art::before {   /* orbit line */
  content: ""; position: absolute; inset: -9% -14%; border-radius: 50%; border: 1px dashed rgba(16, 35, 29, .22);
  animation: spin 80s linear infinite; z-index: -1;
}
.seal {   /* the logo, floating on the corner of the photo */
  position: absolute; left: -34px; bottom: 38px; width: 104px; height: 104px; border-radius: 50%; padding: 14px;
  background: var(--card); box-shadow: var(--bezel); animation: float 6s var(--sway) infinite alternate;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { width: min(78%, 340px); }
  .seal { left: -22px; width: 84px; height: 84px; padding: 11px; }
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.track div { display: flex; gap: 44px; padding-right: 44px; }
.track span { display: inline-flex; align-items: center; gap: 44px; white-space: nowrap; font: italic 340 1.5rem var(--serif); letter-spacing: -.01em; color: var(--ink); }
.track span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); opacity: .7; }

/* ---------- sections ---------- */
.section { padding: clamp(84px, 11vw, 160px) 0; }
.section.tint { background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)); border-top: 1px solid var(--line); }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 70px); }
.section-head p { font-size: 1.1rem; max-width: 62ch; }
.grid-2 { display: grid; gap: 34px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

/* figures */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 5vw, 70px); margin-top: clamp(50px, 7vw, 90px); }
.stat { position: relative; padding-top: 26px; }
.stat::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--ink); transform-origin: left; transition: transform 1.4s var(--ease) .2s; }
.stat b { display: block; font: 340 clamp(4rem, 10vw, 7.5rem)/.95 var(--serif); letter-spacing: -.05em; color: var(--ink); margin-bottom: 18px; }
.stat b sup { font-size: .42em; color: var(--green); vertical-align: top; position: relative; top: .25em; margin-left: .04em; }
.stat p { max-width: 34ch; margin: 0; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }

/* picture beside text */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.feature.flip .media { order: 2; }
.media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--bezel); }
.media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; transition: transform 1.8s var(--ease); }
.media.tall img { aspect-ratio: 4 / 5; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature.flip .media { order: 0; } }

/* cards */
.card {
  position: relative; overflow: hidden; display: block; border-radius: var(--radius); padding: clamp(26px, 3.2vw, 40px);
  background: var(--card); box-shadow: var(--bezel); color: inherit; text-decoration: none;
}
.card::before, .band::after {   /* light that follows the pointer */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .7s var(--ease);
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), rgba(23, 135, 92, .13), transparent 62%);
}
.card:hover::before, .band:hover::after { opacity: 1; }
.card > * { position: relative; }
.card:hover { transform: translateY(-6px); color: inherit; }
.card p:last-child { margin-bottom: 0; }
.card .thumb { margin: calc(clamp(26px, 3.2vw, 40px) * -1 + 8px); margin-bottom: 28px; border-radius: 21px; overflow: hidden; }
.card .thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.6s var(--ease); }
.card:hover .thumb img { transform: scale(1.05); }
.meta { font-size: .7rem; font-weight: 560; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.more { display: inline-flex; gap: 8px; align-items: center; font-weight: 520; color: var(--green); margin-top: 6px; }
.more::after { content: "→"; transition: transform .5s var(--ease); }
.card:hover .more::after, a.more:hover::after { transform: translateX(5px); }

/* people */
.people { display: grid; gap: 34px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .people { grid-template-columns: 1fr; } }
.portrait {
  width: 108px; height: 108px; border-radius: 50%; object-fit: cover; margin-bottom: 26px; border: 3px solid var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 0 0 7px rgba(23, 135, 92, .1), 0 22px 40px -20px rgba(16, 35, 29, .5);
}
.card h3 { margin-bottom: .25em; }
.role { color: var(--ink); font-weight: 520; font-size: .95rem; margin: 0 0 .2em; }
.where { color: var(--muted); font-size: .88rem; margin: 0 0 1.2em; }
.person { display: grid; grid-template-columns: 250px 1fr; gap: clamp(28px, 5vw, 76px); padding: clamp(44px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.person aside { position: sticky; top: 110px; align-self: start; }
.person .portrait { width: 190px; height: 190px; }
.person h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: .3em; }
.person .text { max-width: 720px; }
.person .text p:last-child { margin-bottom: 0; }
.note { padding: 20px 24px; border-radius: 18px; background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px var(--line); font-size: .95rem; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1.2em; padding: 0; list-style: none; }
.links a { display: inline-block; padding: 8px 16px; border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); background: rgba(255, 255, 255, .6); transition: background .5s var(--ease), color .5s var(--ease); }
.links a:hover { background: var(--ink); color: #fff; }
.group-title { font: 560 .7rem var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: clamp(40px, 6vw, 70px) 0 18px; }
@media (max-width: 760px) { .person { grid-template-columns: 1fr; } .person aside { position: static; } .person .portrait { width: 130px; height: 130px; } }

/* quote */
.quote { margin: 0; text-align: center; }
.quote p { font: italic 340 clamp(1.7rem, 3.6vw, 2.9rem)/1.22 var(--serif); letter-spacing: -.02em; color: var(--ink); max-width: 24ch; margin: 0 auto .9em; text-wrap: balance; }
.quote footer { font-size: .95rem; }
.quote footer b { display: block; color: var(--ink); font-weight: 560; }

/* ---------- band: dark panel with a slowly turning light edge ---------- */
.band {
  position: relative; overflow: hidden; border-radius: 40px; padding: clamp(40px, 7vw, 92px); border: 1.5px solid transparent; color: #c5d6cd;
  background: linear-gradient(155deg, #143328, #0b1c16) padding-box,
              conic-gradient(from var(--a), #46d39b, transparent 24%, #6bb4f0 50%, transparent 74%, #46d39b) border-box;
  box-shadow: 0 60px 100px -60px rgba(16, 35, 29, .8);
  animation: turn 14s linear infinite;
}
.band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(560px 340px at 100% 0%, rgba(70, 211, 155, .22), transparent 70%), radial-gradient(460px 300px at 0% 100%, rgba(107, 180, 240, .16), transparent 70%);
}
.band::after { background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .08), transparent 62%); }
.band > * { position: relative; }
.band h2 { color: #fff; max-width: 20ch; }
.band h2 em { color: #7fe3b8; }
.band p { max-width: 60ch; font-size: 1.08rem; }
.band .eyebrow { color: #fff; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.band .mail { color: #fff; font: 340 clamp(1.25rem, 3vw, 2rem) var(--serif); letter-spacing: -.015em; text-decoration-color: rgba(255, 255, 255, .3); word-break: break-word; }
.band .mail:hover { color: #7fe3b8; }

/* ---------- questions ---------- */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font: 380 clamp(1.2rem, 2.2vw, 1.5rem)/1.25 var(--serif); letter-spacing: -.015em; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); transition: transform .6s var(--ease), background-color .6s var(--ease);
  background: rgba(255, 255, 255, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310231d' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.faq details[open] summary::after { transform: rotate(135deg); background-color: #fff; }
.faq details p { max-width: 70ch; padding-bottom: 12px; animation: rise .7s var(--ease); }

/* ---------- long text (articles, consent) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-top: 1.9em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: .75em; padding-left: .3em; }
.prose li::marker { color: var(--green); font-weight: 560; }
.prose strong { color: var(--ink); font-weight: 560; }
.prose .cover { border-radius: var(--radius); overflow: hidden; box-shadow: var(--bezel); margin: 0 0 clamp(36px, 5vw, 60px); }
.prose .cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.byline { color: var(--muted); font-size: .95rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(60px, 8vw, 100px) 0 40px; font-size: .95rem; }
.motto { font: 340 clamp(2rem, 6vw, 4.4rem)/1.05 var(--serif); letter-spacing: -.035em; color: var(--ink); margin: 0 0 clamp(50px, 7vw, 90px); text-wrap: balance; }
.motto em { color: var(--green); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr; gap: 40px; }
.footer-grid img { height: 56px; width: 56px; margin-bottom: 16px; }
.footer-grid h4 { margin: 0 0 14px; color: var(--muted); font-size: .68rem; font-weight: 560; text-transform: uppercase; letter-spacing: .2em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--body); text-decoration: none; word-break: break-word; }
.footer-grid a:hover { color: var(--green); }
.fine { margin: 50px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: 80vh; min-height: 80dvh; display: grid; place-items: center; text-align: center; }
.notfound .btn-row { justify-content: center; }

/* ---------- motion ---------- */
@keyframes drift { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(4%, 3%, 0) scale(1.1); } }
@keyframes breathe { from { transform: scale(1.02); } to { transform: scale(1.16); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes turn { to { --a: 360deg; } }
@keyframes float { from { transform: translateY(-7px); } to { transform: translateY(7px); } }
@keyframes beat { from { transform: scale(.75); opacity: .55; } to { transform: scale(1.25); opacity: 1; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* Scroll reveal. The "js" class is set by site.js before first paint, so without JavaScript
   everything is simply visible. Keep this list in step with site.js. */
.js :is(.hero-copy > *, .hero-art, .page-hero .wrap > *, .marquee, .section-head, .stat, .card, .person,
        .feature > *, .band, .faq > *, .prose > *, .notfound .wrap > *) {
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
}
.js :is(.hero-copy > *, .hero-art, .page-hero .wrap > *, .marquee, .section-head, .stat, .card, .person,
        .feature > *, .band, .faq > *, .prose > *, .notfound .wrap > *):not(.in) {
  opacity: 0; transform: translateY(34px); filter: blur(10px);
}
.js .hero h1 .w { transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--i) * 55ms + 120ms); }
.js .hero h1:not(.in) .w { opacity: 0; transform: translateY(.55em); filter: blur(8px); }
.js .media:not(.in) img { transform: scale(1.18); }
.js .stat:not(.in)::before { transform: scaleX(0); }

/* Reduce motion: no looping animation and nothing moves; reveals become plain fades
   (transform and blur snap while the element is still invisible). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-property: opacity, visibility, color, background-color !important; }
}
