/* ==========================================================================
   Rogers Lab — Site styles (mobile-first)
   Depends on tokens.css for all design values.
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--link); text-decoration: none; transition: color 0.15s var(--ease); }
a:hover { color: var(--link-hover); }

h1, h2, h3, h4 { line-height: var(--lh-tight); font-weight: var(--fw-bold); margin: 0 0 var(--sp-3); }
p { margin: 0 0 var(--sp-4); }

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

:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }

/* ---- Layout helpers ---------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--sp-5); }
.container--narrow { max-width: var(--maxw-narrow); }

.section { padding-block: var(--sp-8); }
.section--alt { background: var(--bg-2); }
.section__head { margin-bottom: var(--sp-6); }
.section__eyebrow {
  display: inline-block;
  font-size: var(--fs-sm); font-weight: var(--fw-semi);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-teal);
  margin-bottom: var(--sp-2);
}
.section__title { font-size: var(--fs-xl); }
.section__lead { color: var(--text-muted); font-size: var(--fs-md); max-width: 60ch; }

.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: inherit; font-size: var(--fs-sm); font-weight: var(--fw-semi);
  padding: 0.7em 1.25em; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.12s var(--ease), box-shadow 0.2s var(--ease),
              background 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--brand-gradient); color: var(--text-on-brand); box-shadow: var(--glow-brand); }
.btn--primary:hover { color: var(--text-on-brand); box-shadow: 0 10px 36px rgba(22,194,201,0.30); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { color: var(--text); border-color: var(--brand-teal); background: var(--brand-gradient-soft); }

.btn--sm { font-size: var(--fs-xs); padding: 0.5em 0.95em; }

/* ---- Site header / nav ------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(11,20,23,0.78);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.nav__brand { display: inline-flex; align-items: center; gap: var(--sp-3); font-weight: var(--fw-bold); color: var(--text); }
.nav__brand:hover { color: var(--text); }
.nav__brand img { width: 32px; height: 32px; border-radius: 7px; }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1.1; gap: 3px; }
.nav__brand-name { font-size: var(--fs-md); letter-spacing: -0.01em; }
.nav__brand-sub { font-size: 0.66rem; font-weight: var(--fw-medium); letter-spacing: 0.06em;
                  text-transform: uppercase; color: var(--text-faint); }

.nav__links { display: none; align-items: center; gap: var(--sp-1); list-style: none; margin: 0; padding: 0; }
.nav__links a {
  position: relative;
  color: var(--text-muted); font-size: var(--fs-sm); font-weight: var(--fw-medium);
  padding: 0.5em 0.8em; border-radius: var(--r-sm);
}
.nav__links a:hover { color: var(--text); background: var(--surface); }
.nav__links a.is-active { color: var(--text); }
/* Active underline is absolutely positioned: it adds no height (so the row stays
   aligned) and only the active link has it (no stray line/box under any link). */
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 0.8em; right: 0.8em; bottom: 0;
  height: 2px; border-radius: 2px; background: var(--brand-gradient);
}
/* "Connect" CTA nav link — teal to draw the eye */
.nav__cta { color: var(--brand-teal) !important; font-weight: var(--fw-semi); }
.nav__links a.nav__cta { background: rgba(22, 194, 201, 0.10); }
.nav__links a.nav__cta:hover { background: rgba(22, 194, 201, 0.20); }
.nav__right { display: flex; align-items: center; gap: var(--sp-3); }

.nav__toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
  width: 40px; height: 40px; padding: 8px; background: transparent;
  border: 1px solid var(--border); border-radius: var(--r-sm); cursor: pointer;
}
.nav__toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: 0.2s var(--ease); }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile dropdown panel */
.nav__panel {
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  padding: var(--sp-3) var(--sp-5) var(--sp-5);
  display: none; flex-direction: column; gap: var(--sp-1);
  box-shadow: var(--shadow-md);
}
.nav.is-open .nav__panel { display: flex; }
.nav__panel a { color: var(--text-muted); font-weight: var(--fw-medium); padding: 0.7em 0.4em; border-radius: var(--r-sm); }
.nav__panel a:hover, .nav__panel a.is-active { color: var(--text); background: var(--surface); }
.nav__panel .btn { margin-top: var(--sp-3); justify-content: center; }
.nav__panel .btn--primary { color: var(--text-on-brand); }
.nav__panel .btn--primary:hover { color: var(--text-on-brand); }

/* ---- Hero -------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: var(--sp-8) var(--sp-8); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(22,194,201,0.16), transparent 60%),
    radial-gradient(50% 60% at 95% 20%, rgba(63,197,107,0.14), transparent 60%);
}
.hero__inner { display: grid; gap: var(--sp-6); align-items: center; }
.hero__title { font-size: var(--fs-2xl); letter-spacing: -0.02em; }
.hero__lead { font-size: var(--fs-md); color: var(--text-muted); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.hero__logo { height: 40px; width: auto; display: block; margin-bottom: var(--sp-2); }

.hero__visual {
  aspect-ratio: 4 / 3; border-radius: var(--r-lg); border: 1px solid var(--border);
  background:
    var(--brand-gradient-soft),
    radial-gradient(120% 120% at 100% 0%, rgba(63,197,107,0.20), transparent 50%),
    var(--surface);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.hero__visual img { width: 46%; max-width: 220px; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.hero__visual img.hero__visual-art { width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: var(--r-lg); box-shadow: none; }

/* ---- Home hero: full-bleed animated activation-heart background -------- */
.home-hero {
  position: relative; overflow: hidden;
  min-height: clamp(540px, 82vh, 820px);
  display: flex; align-items: center;
  background: linear-gradient(120deg, #06181d 0%, #051418 58%, #040f13 100%);
}
.home-hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.96; z-index: 0;
  -webkit-mask-image: radial-gradient(72% 92% at 70% 50%, #000 0%, #000 34%, rgba(0,0,0,0.22) 66%, transparent 87%);
          mask-image: radial-gradient(72% 92% at 70% 50%, #000 0%, #000 34%, rgba(0,0,0,0.22) 66%, transparent 87%);
}
.home-hero__scrim {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(90deg, rgba(4,15,19,0.94) 0%, rgba(4,15,19,0.6) 30%, rgba(4,15,19,0) 52%);
}
.home-hero .container { position: relative; z-index: 2; }
.home-hero__content { max-width: 540px; display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-4); padding-block: var(--sp-8); }
.home-hero__content .hero__logo { margin-bottom: 0; }
.home-hero__title { font-size: var(--fs-3xl); line-height: var(--lh-tight); letter-spacing: -0.02em; margin: var(--sp-2) 0 0; }
.home-hero__lead { font-size: var(--fs-md); color: var(--text-muted); max-width: 470px; margin: 0; }
.home-hero .hero__actions { margin-top: var(--sp-3); }
@media (max-width: 720px) {
  .home-hero { min-height: 72vh; }
  .home-hero__title { font-size: var(--fs-2xl); }
  .home-hero__scrim { background: linear-gradient(180deg, rgba(4,15,19,0.45) 0%, rgba(4,15,19,0.8) 55%, rgba(4,15,19,0.96) 100%); }
}

/* ---- Cards & grids ----------------------------------------------------- */
.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--sp-5);
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.card--link { display: block; color: inherit; }
.card--link:hover { transform: translateY(-3px); border-color: var(--brand-teal); box-shadow: var(--shadow-md); color: inherit; }
/* Stretched link: makes a whole card clickable while inner links stay interactive */
.card__cover { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card__icon {
  width: 44px; height: 44px; border-radius: var(--r-md); margin-bottom: var(--sp-4);
  display: grid; place-items: center; font-size: 1.4rem;
  background: var(--brand-gradient-soft); border: 1px solid var(--border);
}
.card__icon svg { width: 23px; height: 23px; color: var(--brand-teal); }
.card__title { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.card__text { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }
.card__meta { color: var(--text-faint); font-size: var(--fs-xs); margin-top: var(--sp-3); }
.card__arrow { color: var(--brand-teal); font-weight: var(--fw-semi); font-size: var(--fs-sm); margin-top: var(--sp-4); display: inline-block; }
.map-embed { width: 100%; height: 360px; border: 0; border-radius: var(--r-md); border: 1px solid var(--border); display: block; }
.media-frame { width: 100%; height: 360px; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--border); display: block; }

/* Clinical trial card head (name + role badge) */
.trial__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.trial__head .card__title { margin: 0; }

/* Featured tool card (homepage calipers) */
.feature {
  display: grid; gap: var(--sp-6); align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--sp-6); overflow: hidden;
}
.feature__art {
  border-radius: var(--r-lg); aspect-ratio: 4/3;
  background: var(--brand-gradient-soft), var(--surface-hi);
  display: grid; place-items: center; border: 1px solid var(--border);
}
.feature__art img { width: 40%; max-width: 160px; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.feature__art img.feature__shot { width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: top left; border-radius: var(--r-lg); box-shadow: none; }

/* ---- Data-at-a-glance tiles (Collaborate) ------------------------------ */
.datum { display: flex; flex-direction: column; }
.datum__viz {
  height: 76px; margin-bottom: var(--sp-4); padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md); border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(22,194,201,0.12), rgba(63,197,107,0.05));
  display: grid; place-items: center; overflow: hidden;
}
.datum__viz svg { width: 100%; height: 100%; display: block; color: var(--brand-teal); }
.datum__num {
  font-size: var(--fs-2xl); font-weight: var(--fw-bold); line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.datum__label { font-size: var(--fs-md); margin: var(--sp-2) 0; }

/* ---- Pills / tags ------------------------------------------------------ */
.pill {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-size: var(--fs-xs); font-weight: var(--fw-semi);
  padding: 0.3em 0.75em; border-radius: var(--r-pill);
  background: var(--brand-gradient-soft); color: var(--brand-teal);
  border: 1px solid var(--border);
}
.tag-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ---- Filter bar (publications / news) ---------------------------------- */
.filterbar { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.chip {
  font-family: inherit; font-size: var(--fs-sm); font-weight: var(--fw-medium);
  padding: 0.45em 0.95em; border-radius: var(--r-pill);
  background: var(--surface); color: var(--text-muted);
  border: 1px solid var(--border); cursor: pointer;
  transition: 0.15s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--brand-teal); }
.chip.is-active { background: var(--brand-gradient); color: var(--text-on-brand); border-color: transparent; }
.chip__count { opacity: 0.6; font-weight: var(--fw-medium); font-variant-numeric: tabular-nums; }
.chip.is-active .chip__count { opacity: 0.85; }

/* ---- Publication / news list ------------------------------------------ */
.pub { padding: var(--sp-5) 0; border-bottom: 1px solid var(--border-soft); }
.pub:first-child { padding-top: 0; }
.pub__title { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.pub__title a { color: var(--text); }
.pub__title a:hover { color: var(--link-hover); }
.pub__authors { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--sp-2); }
.pub__venue { color: var(--text-faint); font-size: var(--fs-sm); font-style: italic; }
.pub__venue b { color: var(--brand-green); font-style: normal; font-weight: var(--fw-semi); }

/* Pinned / highlighted publications (manually curated, editorial gold accent) */
.pub--pinned {
  border: 1px solid var(--gold-border);
  border-radius: var(--r-md);
  background: var(--gold-soft);
  box-shadow: var(--gold-glow);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-4);
}
.pub--pinned:first-child { padding-top: var(--sp-4); }
.pub__badge {
  display: inline-flex; align-items: center; gap: 0.35em;
  font-size: var(--fs-xs); font-weight: var(--fw-semi);
  color: var(--text-on-brand); background: var(--gold-gradient);
  padding: 0.25em 0.7em; border-radius: var(--r-pill);
  margin-bottom: var(--sp-3);
}
.pub__badge svg { width: 10px; height: 10px; fill: currentColor; }
.pub__row { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; }
.pub__row .pub__body { flex: 1 1 280px; min-width: 0; }
.pub__figure { width: 100%; max-width: 220px; margin: 0; }
.pub__thumb {
  width: 100%; border-radius: var(--r-sm);
  border: 1px solid var(--border); display: block;
}
.pub__figure-credit {
  margin-top: var(--sp-2); color: var(--text-faint); font-size: var(--fs-xs);
  line-height: 1.4;
}
.pub__figure-credit a { color: var(--text-muted); }
@media (min-width: 560px) { .pub__figure { width: 220px; } }

/* ---- People ------------------------------------------------------------ */
.person { text-align: center; }
.person__photo {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto var(--sp-3);
  background: var(--brand-gradient-soft); border: 1px solid var(--border);
  display: grid; place-items: center; font-size: 2rem; font-weight: var(--fw-bold);
  color: var(--brand-teal); object-fit: cover;
}
.person__name { font-size: var(--fs-md); margin-bottom: 2px; }
.person__role { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }
.person__body { width: 100%; }

/* Full-width "feature" person card (e.g. the single PI) — photo beside the bio */
.person--feature { text-align: left; }
.person--feature .person__photo { margin: 0 0 var(--sp-3); }
@media (min-width: 720px) {
  .person--feature { display: grid; grid-template-columns: 168px 1fr; gap: var(--sp-6); align-items: start; }
  .person--feature .person__photo { width: 168px; height: 168px; margin: 0; }
}

/* ---- News timeline ----------------------------------------------------- */
.news-item { display: grid; grid-template-columns: 1fr; gap: var(--sp-1); padding: var(--sp-5) 0; border-bottom: 1px solid var(--border-soft); }
.news-item__date { color: var(--brand-teal); font-size: var(--fs-sm); font-weight: var(--fw-semi); }
.news-item__title { font-size: var(--fs-md); margin: 0; }
.news-item__text { color: var(--text-muted); font-size: var(--fs-sm); margin: var(--sp-1) 0 0; }
.news-item__title a { color: var(--text); }
.news-item__title a:hover { color: var(--link-hover); }
.news-item__media { display: block; max-width: 300px; margin-bottom: var(--sp-3); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); }
.news-item__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.news-item__link { margin: var(--sp-2) 0 0; }
.news-item__link a { font-size: var(--fs-sm); font-weight: var(--fw-semi); color: var(--brand-teal); }

/* ---- CTA band ---------------------------------------------------------- */
.cta {
  border-radius: var(--r-xl); padding: var(--sp-7) var(--sp-6); text-align: center;
  background: var(--brand-gradient-soft), var(--surface);
  border: 1px solid var(--border);
}
.cta h2 { font-size: var(--fs-xl); }
.cta p { color: var(--text-muted); max-width: 48ch; margin-inline: auto; }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border-soft); padding-block: var(--sp-7) var(--sp-6); margin-top: var(--sp-8); }
.footer-grid { display: grid; gap: var(--sp-6); grid-template-columns: 1fr; }
.footer-brand { max-width: 34ch; }
.footer-brand .nav__brand { margin-bottom: var(--sp-3); }
.footer-brand p { color: var(--text-faint); font-size: var(--fs-sm); }
.footer-col h2 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: var(--sp-3); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-col a { color: var(--text-muted); font-size: var(--fs-sm); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--border-soft);
                 display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between;
                 color: var(--text-faint); font-size: var(--fs-xs); }

/* ---- Prose (article / research detail) --------------------------------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--fs-lg); margin-top: var(--sp-7); }
.prose h3 { font-size: var(--fs-md); margin-top: var(--sp-6); }
.prose ul { padding-left: 1.25em; color: var(--text-muted); }
.prose li { margin-bottom: var(--sp-2); }

/* ---- Research theme detail (summary + figure + contributions) ---------- */
.theme-detail { padding-block: var(--sp-7); border-bottom: 1px solid var(--border-soft); }
.theme-detail__row { display: grid; gap: var(--sp-5); }
.research-fig { margin: 0; }
.research-fig img { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--border); display: block; background: #fff; }
.research-fig figcaption { font-size: var(--fs-xs); color: var(--text-faint); margin-top: var(--sp-2); line-height: 1.45; }
.research-fig__credit a { color: var(--text-muted); }
.research-fig__credit a:hover { color: var(--brand-teal); }
@media (min-width: 760px) {
  .theme-detail__row:has(.research-fig) { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: var(--sp-7); }
}

/* Contributions to Science panel */
.theme-contrib {
  margin-top: var(--sp-5); padding: var(--sp-5);
  background: var(--brand-gradient-soft), var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg);
}
.theme-contrib__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.theme-contrib__title { font-size: var(--fs-md); margin: 0; }
.theme-contrib__text { color: var(--text-muted); max-width: 78ch; margin-bottom: var(--sp-4); }
.theme-contrib__label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin: 0 0 var(--sp-3); }
.theme-pubs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.theme-pub { display: flex; flex-direction: column; gap: 2px; padding-left: var(--sp-4); border-left: 2px solid var(--border); }
.theme-pub--pinned { border-left-color: var(--gold); background: var(--gold-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding-block: var(--sp-1); }
.theme-pub__title { font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.theme-pub__title a { color: var(--text); }
.theme-pub__title a:hover { color: var(--link-hover); }
.theme-pub__meta { font-size: var(--fs-xs); color: var(--text-faint); font-style: italic; }
@media (min-width: 760px) {
  .theme-pubs { grid-template-columns: 1fr 1fr; gap: var(--sp-4) var(--sp-6); }
}

/* ---- Reveal-on-scroll -------------------------------------------------- */
/* Content stays visible if JavaScript fails; include.js opts into animation. */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---- Utilities --------------------------------------------------------- */
.muted { color: var(--text-muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: var(--sp-4); }
.loading { color: var(--text-faint); font-size: var(--fs-sm); padding: var(--sp-5) 0; }

/* ==========================================================================
   Responsive — tablet & up
   ========================================================================== */
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .hero__inner { grid-template-columns: 1.1fr 0.9fr; }
  .hero__title { font-size: var(--fs-3xl); }
  .feature { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .news-item { grid-template-columns: 160px 1fr; gap: var(--sp-5); align-items: baseline; }
}

@media (min-width: 940px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
  .nav__panel { display: none !important; }
  .section { padding-block: var(--sp-9); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card--link:hover { transform: none; }
}

.skip-link {
  position: fixed; top: var(--sp-2); left: var(--sp-2); z-index: 1000;
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm);
  background: var(--brand-teal); color: var(--text-on-brand);
  font-weight: var(--fw-semi); transform: translateY(-160%);
  transition: transform 0.15s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.prose a, .card__text a, figcaption a { text-decoration: underline; text-underline-offset: 0.16em; }

.noscript-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3);
  padding: var(--sp-4); background: var(--bg-2); border-bottom: 1px solid var(--border);
}
.noscript-nav a { color: var(--text); text-decoration: underline; text-underline-offset: 0.16em; }

.tool-disclaimer {
  max-width: 72ch;
  margin: var(--sp-6) 0 0;
  color: var(--text-faint);
  font-size: var(--fs-sm);
}

.contact-safety {
  margin: var(--sp-5) 0 0;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
