/* ============================================================
   Aabiskar Bhusal — personal site
   Typeset in Fraunces (display), Inter (text), JetBrains Mono (labels)
   ============================================================ */

:root {
  --font-display: "Fraunces", "Georgia", serif;
  --font-text: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  --container: 1080px;
  --header-h: 68px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1017;
  --bg-raised: #12161f;
  --ink: #e8e4da;
  --ink-strong: #f5f2ea;
  --muted: #8b92a0;
  --faint: #5c6270;
  --line: rgba(232, 228, 218, 0.1);
  --line-strong: rgba(232, 228, 218, 0.2);
  --accent: #ffb454;
  --accent-ink: #0d1017;
  --accent-soft: rgba(255, 180, 84, 0.12);
  --sim-bond: rgba(232, 228, 218, 0.28);
  --sim-a: #ffb454;
  --sim-b: #8b92a0;
  --sim-c: #e06c60;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #faf7f1;
  --bg-raised: #ffffff;
  --ink: #26231c;
  --ink-strong: #17150f;
  --muted: #6d6a60;
  --faint: #9b978c;
  --line: rgba(38, 35, 28, 0.12);
  --line-strong: rgba(38, 35, 28, 0.26);
  --accent: #b06210;
  --accent-ink: #faf7f1;
  --accent-soft: rgba(176, 98, 16, 0.1);
  --sim-bond: rgba(38, 35, 28, 0.22);
  --sim-a: #b06210;
  --sim-b: #8d8a80;
  --sim-c: #b8412f;
  --shadow: 0 24px 60px -28px rgba(38, 35, 28, 0.28);
}

/* ---------- reset & base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.45s ease, color 0.45s ease;
  overflow-x: clip;
}

/* faint paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
sub { font-size: 0.68em; }
sup { font-size: 0.62em; }

a { color: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 460;
  color: var(--ink-strong);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

em { font-style: italic; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 6px;
  font-size: 0.85rem;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0.75rem; }

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

/* ---------- scroll progress ---------- */

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: transform 0.4s var(--ease-out), background-color 0.3s ease,
              border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header.hidden { transform: translateY(-100%); }

.header-inner {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.brand-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-strong);
}
.brand-role {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 1.6rem;
}
.site-nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.3rem 0;
  transition: color 0.25s ease;
}
.site-nav a sup {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--accent);
  margin-right: 0.3em;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 0.3s var(--ease-out);
}
.site-nav a:hover, .site-nav a.active { color: var(--ink-strong); }
.site-nav a:hover::after, .site-nav a.active::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--line-strong); transform: rotate(15deg); }
.theme-toggle svg { grid-area: 1 / 1; transition: opacity 0.3s ease, transform 0.4s var(--ease-out); }
[data-theme="dark"] .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }
[data-theme="light"] .icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  padding: 0 9px;
}
.nav-toggle span {
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out);
}
body.nav-open .nav-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
body.nav-open .nav-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 3rem) 0 7rem;
  overflow: clip;
}

.hero-sim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, var(--bg) 0%, transparent 22%, transparent 68%, var(--bg) 100%),
    radial-gradient(ellipse 90% 70% at 28% 45%, color-mix(in srgb, var(--bg) 62%, transparent) 0%, transparent 70%);
}

.hero-content { position: relative; z-index: 2; max-width: 780px; }

.hero-cite {
  color: var(--accent);
  margin-bottom: 1.6rem;
}

.hero h1 {
  font-size: clamp(2.35rem, 6vw, 4.3rem);
  margin-bottom: 1.6rem;
}
.hero h1 em { color: var(--accent); }

.hero-lede {
  max-width: 34em;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.hero-keywords {
  color: var(--faint);
  max-width: 46em;
  margin-bottom: 2.4rem;
  line-height: 1.9;
}
.kw-label {
  color: var(--accent);
  font-style: italic;
  margin-right: 0.9em;
}
.kw-label::after { content: " —"; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), background-color 0.25s ease,
              color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 60%, transparent);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: color-mix(in srgb, var(--bg) 40%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero-figure {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1.6rem;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}

.fig-caption {
  color: var(--faint);
  line-height: 1.6;
  max-width: 46em;
}
.fig-caption strong {
  color: var(--muted);
  font-weight: 500;
  font-style: italic;
}

.sim-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.sim-temp {
  color: var(--faint);
  margin-right: 0.4rem;
  min-width: 7.5ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.sim-controls button {
  font: inherit;
  color: var(--muted);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.32rem 0.8rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.sim-controls button:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ---------- sections ---------- */

.section {
  padding: clamp(5rem, 11vh, 8rem) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin-bottom: clamp(2.6rem, 6vh, 4rem);
}
.section-no {
  color: var(--accent);
  font-size: 0.85rem;
}
.section-no::after {
  content: "/";
  margin-left: 1rem;
  color: var(--faint);
}
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.section-sub {
  flex-basis: 100%;
  max-width: 44em;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- 01 introduction ---------- */

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.intro-copy .lead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.5;
  color: var(--ink-strong);
  margin-bottom: 1.5rem;
}
.intro-copy p + p { margin-top: 1.1rem; }
.intro-copy { color: var(--muted); }
.intro-copy strong { color: var(--ink-strong); font-weight: 600; }

.fact-list {
  list-style: none;
  margin-top: 2.2rem;
  border-top: 1px solid var(--line);
}
.fact-list li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.fact-list li span:first-child {
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
}

.portrait {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
.portrait img {
  border-radius: 10px;
  filter: grayscale(28%) contrast(1.03);
  box-shadow: var(--shadow);
  transition: filter 0.5s ease, transform 0.5s var(--ease-out);
}
.portrait:hover img { filter: grayscale(0%); transform: translateY(-4px); }
.portrait figcaption { margin-top: 0.9rem; color: var(--faint); }

/* ---------- 02 methods ---------- */

.methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.method {
  position: relative;
  padding: 1.9rem 1.7rem 2.1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease;
  overflow: hidden;
}
.method::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 100%;
  height: 2px;
  background: var(--accent);
  transition: right 0.45s var(--ease-out);
}
.method:hover { background: var(--accent-soft); }
.method:hover::before { right: 0; }

.method-no {
  display: block;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.method h3 { font-size: 1.22rem; margin-bottom: 0.7rem; }
.method p { font-size: 0.92rem; color: var(--muted); }
.method-tags {
  margin-top: 1.1rem;
  color: var(--faint);
  font-size: 0.72rem;
}

/* ---------- 03 chronology ---------- */

.timeline {
  list-style: none;
  max-width: 760px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 6px; bottom: 6px;
  left: 147px;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 3.4rem;
  padding: 1.3rem 0;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 143.5px;
  top: 2.1rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--accent);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.timeline-item:hover::before {
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.tl-time {
  color: var(--faint);
  text-align: right;
  padding-top: 0.45rem;
  white-space: nowrap;
}
.tl-body h3 { font-size: 1.18rem; margin-bottom: 0.4rem; }
.tl-body p { font-size: 0.92rem; color: var(--muted); max-width: 46em; }

/* ---------- 04 selected results ---------- */

.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.project {
  position: relative;
  padding: 2rem 1.9rem 2.2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-raised);
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease, box-shadow 0.35s ease;
}
.project:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.project-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.3rem;
}
.project-no { color: var(--accent); }
.project-type {
  color: var(--faint);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.project h3 { font-size: 1.45rem; margin-bottom: 0.8rem; }
.project p { font-size: 0.94rem; color: var(--muted); }
.project-tags {
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line);
  color: var(--faint);
  font-size: 0.72rem;
}

/* ---------- 05 references ---------- */

.pub-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.8rem;
}
.pub-stats > div {
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.pub-stats strong {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: 2rem;
  color: var(--ink-strong);
  line-height: 1.1;
}
.pub-stats span { color: var(--faint); font-size: 0.7rem; }

.pub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 2rem;
}
.pub-filter {
  font: inherit;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.34rem 0.95rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.pub-filter:hover { color: var(--ink-strong); border-color: var(--line-strong); }
.pub-filter.active {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.ref-list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.ref {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 0.6rem;
  padding: 1.15rem 0.5rem 1.15rem 0.25rem;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s ease;
}
.ref:hover { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.ref.filtered { display: none; }
.ref-no { color: var(--accent); padding-top: 0.22rem; }
.ref-body p {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 60em;
}
.ref-body b { color: var(--ink-strong); font-weight: 600; }
.ref-body em { color: var(--ink); }
.ref-doi {
  display: inline-block;
  margin-top: 0.45rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
a.ref-doi:hover { border-bottom-color: var(--accent); }
.ref-doi.muted { color: var(--faint); }

.ref-empty {
  padding: 2rem 0.25rem;
  color: var(--faint);
}

/* ---------- 06 correspondence ---------- */

.section-contact { padding-bottom: clamp(6rem, 14vh, 10rem); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-lede {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.45;
  color: var(--ink-strong);
  margin-bottom: 2.2rem;
}
.contact-lede em { color: var(--accent); }

.contact-email {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 3.4vw, 2.1rem);
  color: var(--ink-strong);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.2rem;
  transition: color 0.25s ease, border-color 0.25s ease;
  overflow-wrap: anywhere;
}
.contact-email:hover { color: var(--accent); border-color: var(--accent); }
.contact-email span { font-style: normal; font-size: 0.7em; }

.contact-links {
  list-style: none;
  border-top: 1px solid var(--line);
}
.contact-links li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-links li > span:first-child {
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  padding-top: 0.15rem;
}
.contact-links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.contact-links a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.contact-links .plain { color: var(--ink); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 2.6rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem 2rem;
  color: var(--faint);
}
.footer-colophon { color: var(--faint); }
.back-top {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.back-top:hover { color: var(--accent); }

/* ---------- reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

.count { font-variant-numeric: tabular-nums; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .methods-grid { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: 1fr; }
  .pub-stats { grid-template-columns: repeat(2, 1fr); }
  .intro-grid { grid-template-columns: 1fr; }
  .portrait {
    position: static;
    max-width: 340px;
  }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-figure { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (max-width: 720px) {
  :root { --header-h: 60px; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 90;
    flex-direction: column;
    gap: 0;
    padding: 0.8rem 1.5rem 1.6rem;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s var(--ease-out), opacity 0.3s ease, visibility 0.4s;
  }
  body.nav-open .site-nav {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .site-nav a {
    font-size: 1.05rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a::after { content: none; }

  .nav-toggle { display: flex; }

  .hero { padding-bottom: 10.5rem; }
  .hero-keywords { display: none; }
  .hero-figure .fig-caption { max-width: 100%; }

  .timeline::before { left: 3px; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.3rem; padding-left: 1.6rem; }
  .timeline-item::before { left: 0; top: 0.72rem; }
  .tl-time { text-align: left; padding-top: 0; }

  .ref { grid-template-columns: 2.6rem 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .methods-grid { grid-template-columns: 1fr; }
  .br-wide { display: none; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
