/* ============================================================
   Varin — web front-end reference stylesheet
   Slate-teal / mint direction · Exo 2
   Design tokens first, then components (BEM-ish naming).
   Accent is authored in OKLCH (wide-gamut mint ≈ #5ecabb).
   ============================================================ */

@font-face {
  font-family: "Exo 2";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/exo2-variable.205a448676a2.ttf") format("truetype");
}

@font-face {
  font-family: "Exo 2";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/exo2-variable-italic.bad568cea9ed.ttf") format("truetype");
}

:root {
  /* -- Surfaces -- */
  --bg:            #0b1416;   /* app background */
  --bg-hero:       #0a1618;   /* hero photo base */
  --surface:       #0e1c1f;   /* raised well / rows */
  --surface-soft:  rgba(14, 28, 31, 0.5);
  --post-hero:     #0f1e20;   /* article hero base */

  /* -- Lines -- */
  --border:        rgba(228, 236, 236, 0.10);
  --border-soft:   rgba(228, 236, 236, 0.07);
  --border-nav:    rgba(228, 236, 236, 0.08);

  /* -- Ink -- */
  --text:          #e4ecec;   /* primary */
  --text-strong:   #f3efe3;   /* answer headline */
  --text-muted:    #8ba4a4;   /* body / secondary */
  --text-dim:      #6a8484;   /* labels, meta */
  --text-faint:    #5f7573;   /* hints */
  --text-eyebrow:  #7f9c98;   /* hero eyebrow */
  --text-onlight:  #08201f;   /* ink on the accent fill */

  /* -- Accent (mint) -- */
  --accent:        oklch(83% 0.1 188);           /* ≈ #5ecabb */
  --accent-glow:   oklch(83% 0.1 188 / 0.5);
  --accent-tint:   oklch(83% 0.1 188 / 0.16);
  --accent-line:   oklch(83% 0.1 188 / 0.38);
  --accent-hair:   oklch(83% 0.1 188 / 0.40);
  --link-hover:    #cfeee9;

  /* -- Neumorphic shadows (soft-UI) -- */
  --shadow-well:  inset 4px 4px 10px rgba(0,0,0,0.55), inset -3px -3px 8px rgba(255,255,255,0.03);
  --shadow-raise: 3px 3px 7px rgba(0,0,0,0.5), -2px -2px 6px rgba(255,255,255,0.03);
  --shadow-btn:   4px 4px 9px rgba(0,0,0,0.45), -2px -2px 6px oklch(83% 0.1 188 / 0.12);

  /* -- Radii -- */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 11px;
  --r-lg: 12px;
  --pill: 30px;

  /* -- Type -- */
  --font: 'Exo 2', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* -- Layout -- */
  --nav-h: 60px;
  --pad-x: clamp(20px, 5vw, 56px);
  --w-hero:    760px;
  --w-journal: 820px;
  --w-library: 880px;
  --w-read:    680px;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
[hidden] { display: none !important; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--link-hover); }
img { display: block; }
button, input { font: inherit; }
button {
  appearance: none;
  margin: 0;
  border: 0;
}
p, h1, h2, blockquote { margin-top: 0; }
.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;
}
:where(button, input, [role="button"]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.noscript-note {
  margin: 0;
  padding: 12px var(--pad-x);
  background: #3b2710;
  color: #ffe0b2;
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- View router ---------- */
.view { display: none; min-height: 100vh; }
.view.is-active { display: block; }

/* ---------- Top bar / nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  height: var(--nav-h);
  padding: 0 var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(11, 20, 22, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-nav);
}
.topbar--solid { background: rgba(11, 20, 22, 0.9); }
.topbar__brand { height: 14px; width: auto; }
.nav { display: flex; gap: 22px; }
.nav__link {
  padding: 3px 0;
  background: transparent;
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
  color: var(--text-dim); cursor: pointer;
  transition: color 0.15s ease;
}
.nav__link:hover { color: var(--text); }
.nav__link--active { color: var(--accent); }

/* ---------- Shared building blocks ---------- */
.wrap { margin: 0 auto; }
.wrap--hero    { max-width: var(--w-hero);    padding: 78px 32px 96px; }
.wrap--answer  { max-width: var(--w-hero);    padding: 56px 32px 90px; }
.wrap--journal { max-width: var(--w-journal); padding: 52px 32px 90px; }
.wrap--library { max-width: var(--w-library); padding: 52px 32px 90px; }
.wrap--read    { max-width: var(--w-read);    margin: 0 auto; }

.eyebrow {
  font-size: 9px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow--glow { text-shadow: 0 0 16px var(--accent-glow); }
.eyebrow--dim  { color: var(--text-dim); }
.eyebrow--hero { color: var(--text-eyebrow); letter-spacing: 0.22em; }

.overline {
  font-size: 9px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-dim);
}

/* ---------- Hero (search + answer share the photo bed) ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg-hero); }
.hero--answer { min-height: calc(100vh - var(--nav-h)); }
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%; opacity: 0.36;
}
.hero--answer .hero__bg { opacity: 0.34; }
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,18,20,0.55), rgba(7,15,17,0.95) 82%);
}
.hero--answer .hero__scrim {
  background: linear-gradient(180deg, rgba(8,18,20,0.6), rgba(7,15,17,0.96) 82%);
}
.hero__plexus { position: absolute; inset: 0; width: 100%; height: 100%; }
.plexus-bg--ready { display: block; pointer-events: none; }
.plexus-bg__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__inner { position: relative; }

/* ---------- Home: display headline ---------- */
.home-center { text-align: center; }
.display {
  margin: 0 0 20px;
  font-size: 47px; font-weight: 600; line-height: 1.12; letter-spacing: -0.02em;
  color: var(--text);
}
.display em {
  font-style: italic; color: var(--accent);
  text-shadow: 0 0 24px var(--accent-glow);
}
.lede {
  margin: 0 0 32px;
  font-size: 15px; line-height: 1.6; color: #9fb6b4;
}

/* ---------- Search bar (neumorphic well) ---------- */
.searchbar {
  display: flex; gap: 6px; padding: 6px;
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-well);
}
.searchbar:focus-within {
  outline: 1px solid var(--accent-line);
  outline-offset: 3px;
}
.searchbar__q {
  flex: 1; min-width: 0;
  padding: 0 16px; text-align: left;
  border: 0; outline: 0; background: transparent;
  font-size: 15px; color: var(--text);
}
.searchbar__q::placeholder {
  color: #6f8280;
  opacity: 1;
}
.searchbar__btn {
  flex: none; padding: 13px 22px; border-radius: var(--r-sm);
  background: var(--accent); color: var(--text-onlight);
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  box-shadow: var(--shadow-btn); cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.searchbar__btn:hover { filter: brightness(1.08); }
.searchbar__btn:active { transform: translateY(1px); }
.search-error {
  margin: 9px 8px 0;
  text-align: left;
  font-size: 11px;
  color: #ffb4ab;
}

/* ---------- Suggestion chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.chip {
  padding: 8px 14px; border-radius: var(--pill);
  border: 1px solid transparent;
  background: var(--surface); color: #a9c2c0;
  font-size: 11px; cursor: pointer; box-shadow: var(--shadow-raise);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.chip:hover { color: var(--text); border-color: var(--accent-hair); }

/* ---------- Explore cards ---------- */
.rule-block {
  margin-top: 60px; padding-top: 34px;
  border-top: 1px solid var(--border); text-align: left;
}
.explore { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.explore__label { margin-bottom: 16px; }
.card {
  padding: 16px; border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface-soft); cursor: pointer;
  transition: border-color 0.15s ease;
}
.card:hover { border-color: var(--accent-hair); }
.card:focus-visible, .result:focus-visible, .featured:focus-visible, .postrow:focus-visible {
  border-color: var(--accent);
}
.card__kicker {
  font-size: 8px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-eyebrow); margin-bottom: 8px;
}
.card__title { font-size: 14px; font-weight: 500; line-height: 1.32; color: var(--text); }

/* ---------- "How Varin answers" (scroll reveal) ---------- */
.how {
  margin: 64px auto 0; padding: 48px 0 4px;
  border-top: 1px solid var(--border-nav); text-align: left;
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(.22,1,.36,1), transform 0.9s cubic-bezier(.22,1,.36,1);
}
.how.is-in { opacity: 1; transform: translateY(0); }
.how__label { margin-bottom: 26px; }
.how__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step__num  { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 9px; }
.step__name { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--text); margin-bottom: 7px; }
.step__desc { font-size: 12.5px; line-height: 1.6; color: var(--text-muted); }

/* ---------- Answer view ---------- */
.answer__q { font-size: 12px; color: #6f8280; margin: 0 0 22px; }
.answer__eyebrow { margin-bottom: 16px; }
.answer__q b { color: #a9c2c0; font-weight: 400; }
.answer__headline {
  margin: 0 0 20px;
  font-size: 33px; font-weight: 600; line-height: 1.32; letter-spacing: -0.015em;
  color: var(--text-strong);
}
.answer__sub { margin: 0 0 34px; font-size: 15px; line-height: 1.7; color: #9fb6b4; }
.results { padding-top: 28px; border-top: 1px solid var(--border); }
.results__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.results__hint { font-size: 10px; color: var(--text-faint); }
.result {
  margin-bottom: 16px; padding: 17px 19px; border-radius: var(--r-md);
  border: 1px solid var(--border-soft); background: var(--surface-soft);
  cursor: pointer; transition: border-color 0.15s ease;
}
.result:hover { border-color: var(--accent-line); }
.result__meta { font-size: 11px; color: #7f8c78; margin-bottom: 6px; }
.result__meta b { color: var(--accent); font-weight: 600; }
.result__title { font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--text); margin-bottom: 6px; }
.result__title-link { color: inherit; text-decoration: none; }
.result__title-link:hover,
.result__title-link:focus-visible { color: var(--link-hover); text-decoration: underline; text-underline-offset: 2px; }
.result__snippet { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }
.backlink {
  padding: 0; background: transparent;
  cursor: pointer; font-size: 11px; font-weight: 600; letter-spacing: 0.05em;
  color: var(--text-muted); transition: color 0.15s ease;
}
.backlink:hover { color: var(--accent); }
.answer-status {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-soft);
}
.answer-status .overline { margin: 0 0 16px; color: var(--accent); }
.answer-status__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.local-search-results {
  display: grid;
  gap: 10px;
  margin: 22px 0 26px;
}
.local-search-record {
  padding: 16px 18px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  background: rgba(7, 18, 20, 0.42);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.local-search-record:hover {
  border-color: var(--accent-line);
}
.local-search-record__meta {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.local-search-record__title {
  margin: 0 0 5px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.local-search-record__detail {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
}
.text-button {
  padding: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.text-button:hover { color: var(--link-hover); }

.result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 6px;
}

.paper-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 4px;
}

/* ---------- Blog index ---------- */
.journal__title { margin: 0 0 12px; font-size: 34px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; color: var(--text); }
.journal__eyebrow { margin-bottom: 12px; }
.journal__lede  { margin: 0 0 22px; max-width: 520px; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.blog-release-status { margin: 32px 0; color: var(--text-dim); font-size: 13px; }
.blog-release-error {
  display: grid; gap: 8px; margin: 28px auto; max-width: 680px; padding: 20px;
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface);
  color: var(--text-muted); font-size: 13px; line-height: 1.55;
}
.blog-release-error strong { color: var(--text); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 38px; }
.filter {
  padding: 7px 15px; border-radius: var(--pill);
  background: transparent;
  font-size: 10px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--text-muted); border: 1px solid var(--border);
  cursor: pointer; transition: color 0.15s, border-color 0.15s;
}
.filter:hover { color: var(--text); border-color: var(--accent-hair); }
.filter--active { color: var(--bg); background: var(--accent); border-color: transparent; }

.featured {
  display: flex; gap: 26px; align-items: stretch;
  padding: 0 0 32px; margin-bottom: 28px;
  border-bottom: 1px solid var(--border); cursor: pointer;
}
.featured__media { flex: none; width: 360px; height: 250px; }
.featured__body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.kicker { font-size: 9px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.featured__title { margin: 0 0 12px; font-size: 25px; font-weight: 600; line-height: 1.22; letter-spacing: -0.01em; color: var(--text); }
.featured__dek { margin: 0 0 18px; font-size: 14px; line-height: 1.65; color: var(--text-muted); }
.featured__meta { display: flex; align-items: center; gap: 14px; font-size: 11px; color: var(--text-dim); }
.read { color: var(--accent); font-weight: 600; }

.latest__label { margin-bottom: 2px; }
.postlist { }
.postrow {
  display: flex; gap: 18px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--border);
}
.postrow__media { flex: none; width: 110px; height: 78px; }
.postrow__body { flex: 1; min-width: 0; }
.postrow__cat { font-size: 8px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.postrow__title { font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--text); margin-bottom: 4px; }
.postrow__dek { font-size: 12.5px; line-height: 1.5; color: var(--text-muted); }
.postrow__status {
  flex: none;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.loadmore { margin-top: 28px; text-align: center; }
.loadmore button {
  display: inline-block; padding: 11px 24px; border-radius: var(--pill);
  background: transparent;
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  color: var(--text-muted); border: 1px solid var(--border); cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.loadmore button:hover { color: var(--text); border-color: var(--accent-hair); }

/* ---------- Article ---------- */
.article__hero { position: relative; height: 400px; background: var(--post-hero); }
.article__heromedia { position: absolute; inset: 0; width: 100%; height: 100%; }
.article__heroscrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,20,22,0) 36%, var(--bg) 97%);
}
.article__herobody { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 32px; }
.article__title { margin: 0; max-width: 560px; font-size: 34px; font-weight: 600; line-height: 1.16; letter-spacing: -0.015em; color: var(--text); }
.article__meta { margin-top: 12px; font-size: 11px; color: var(--text-muted); }
.article__eyebrow { margin-bottom: 10px; }
.article__backlink { display: inline-block; margin-bottom: 26px; }
.article__body { padding: 26px 32px 70px; }
.prose__after-figure { clear: both; }
.prose p { font-size: 15.5px; line-height: 1.75; margin: 0 0 18px; }
.prose p.lead { color: var(--text); }
.prose p.mut  { color: var(--text-muted); }
.figure { float: right; width: 230px; height: 170px; margin: 4px 0 12px 22px; }
.pullquote {
  border-left: 2px solid var(--accent); padding: 10px 18px; margin: 8px 0 22px;
  font-size: 17px; font-weight: 500; line-height: 1.5; color: var(--text);
}
.sources-label {
  padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 8.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 12px;
}
.sources { display: flex; gap: 8px; flex-wrap: wrap; }
.source {
  padding: 5px 8px; border-radius: var(--r-xs); cursor: pointer;
  font-size: 9px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--accent); background: var(--accent-tint); border: 1px solid var(--accent-line);
}
.source:hover { color: var(--link-hover); }

/* ---------- Library ---------- */
.library__title { margin: 0 0 12px; font-size: 34px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; color: var(--text); }
.library__eyebrow { margin-bottom: 12px; }
.library__lede  { margin: 0 0 30px; max-width: 540px; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.papers { display: flex; flex-direction: column; gap: 10px; }
.paper {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 18px; align-items: center;
  padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer; transition: border-color 0.15s ease;
}

.paper:hover {
  border-color: var(--accent-line);
}
.paper__id { font-size: 12px; font-weight: 600; letter-spacing: 0.03em; color: var(--accent); }
.paper__body { min-width: 0; }
.paper__title { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--text); margin-bottom: 4px; }
.paper__meta { font-size: 11.5px; color: var(--text-dim); }
.paper__side { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; text-align: right; }
.paper__topic { font-size: 8px; font-weight: 700; letter-spacing: 0.12em; color: var(--text-muted); }
.paper__access { font-size: 9px; font-weight: 600; letter-spacing: 0.03em; }
.paper__access--full { color: var(--accent); }
.paper__access--cite { color: var(--text-faint); }
.paper-detail {
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  background: var(--surface-soft);
}
.paper-detail__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.paper-detail__eyebrow {
  margin: 0;
  color: var(--text-faint);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.paper-detail__title {
  margin: 10px 0 8px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
}
.paper-detail__meta {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 11px;
}
.paper-detail__match {
  margin: 10px 0;
  padding: 11px 13px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  background: rgba(8, 24, 28, 0.45);
}
.paper-detail__label {
  margin: 0 0 7px;
  color: var(--text-faint);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.paper-detail__source {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.paper-detail__body {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

/* ---------- Image placeholders (dev fills with real <img>) ---------- */
.imgslot {
  width: 100%; height: 100%; border-radius: var(--r-sm);
  background:
    radial-gradient(circle at 22% 24%, var(--accent-tint), transparent 34%),
    linear-gradient(145deg, #13272a, var(--surface) 58%, #0a1517);
  border: 1px solid var(--border);
}
.imgslot--rect { border-radius: 0; }

/* ---------- Entrance animation ---------- */
@keyframes riseZoom { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes flowIn   { from { opacity: 0; transform: translateY(46px) scale(0.94); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* home hero elements stagger in whenever the view becomes active */
.view[data-view="home"].is-active .anim { opacity: 0; animation: riseZoom 0.9s cubic-bezier(.22,1,.36,1) both; }
.anim.d1 { animation-delay: 0.05s; }
.anim.d2 { animation-delay: 0.12s; }
.anim.d3 { animation-delay: 0.19s; }
.anim.d4 { animation-delay: 0.26s; }
.anim.d5 { animation-delay: 0.33s; }
.anim.d6 { animation-delay: 0.40s; }
.view[data-view="answered"].is-active .flow { animation: flowIn 0.9s cubic-bezier(.16,1,.3,1) both; }

@media (prefers-reduced-motion: reduce) {
  .anim, .flow, .how { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* ---------- Small screens ---------- */
@media (max-width: 720px) {
  .display { font-size: 34px; }
  .explore, .how__grid { grid-template-columns: 1fr; }
  .featured { flex-direction: column; }
  .featured__media { width: 100%; }
  .paper { grid-template-columns: 40px 1fr; }
  .paper__side { grid-column: 2; align-items: flex-start; text-align: left; flex-direction: row; gap: 12px; }
  .results__head { align-items: flex-start; flex-direction: column; gap: 6px; }
}

@media (max-width: 480px) {
  .nav { gap: 14px; }
  .wrap--hero, .wrap--answer, .wrap--journal, .wrap--library { padding-left: 20px; padding-right: 20px; }
  .searchbar__q { padding: 0 10px; font-size: 14px; }
  .searchbar__btn { padding: 13px 15px; }
  .answer__headline { font-size: 27px; }
}
