/* ============================================================
   Ali Soltaninezhad — personal site
   Hand-written CSS, no build step. Theming via [data-theme].
   Design system: Zinc neutrals + single emerald accent.
   Type: Geist / Geist Mono. No gradient text, no neon glows.
   ============================================================ */

:root {
  --bg-1: #0a0a0b;
  --bg-2: #0d0e10;
  --surface: #141518;
  --surface-2: #1a1c20;
  --text: #e9e9ec;
  --muted: #9598a1;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent: #35c99a;          /* emerald, ~64% sat */
  --accent-2: #26a883;        /* deeper emerald (same hue) */
  --accent-soft: rgba(53, 201, 154, 0.12);
  --accent-ink: #04231a;      /* dark text on accent fills */
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1240px;
  --r: 14px;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

html[data-theme="light"] {
  --bg-1: #fafafa;
  --bg-2: #f1f2f3;
  --surface: #ffffff;
  --surface-2: #f3f4f5;
  --text: #14161a;            /* off-black, never pure #000 */
  --muted: #565a63;
  --border: rgba(15, 17, 21, 0.10);
  --border-strong: rgba(15, 17, 21, 0.20);
  --accent: #0e9d6e;
  --accent-2: #0b855d;
  --accent-soft: rgba(14, 157, 110, 0.10);
  --accent-ink: #ffffff;
  --shadow: 0 24px 60px -32px rgba(15, 17, 21, 0.16);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg-1);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: "Geist", system-ui, sans-serif; font-weight: 700; }

a { color: inherit; text-decoration: none; }

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.section { padding: clamp(72px, 13vh, 148px) 0; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 16px; top: 16px; }

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

/* Shared mono label */
.mono-label {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}

/* ---------- Live neural-network background (blurred, whole site) ---------- */
#neural-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  filter: blur(3px); opacity: 0.55;
}

/* ---------- Cursor-following glow ---------- */
#cursor-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 0.35s var(--ease);
  background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--accent) 13%, transparent), transparent 68%);
}
@media (hover: none), (prefers-reduced-motion: reduce) { #cursor-glow { display: none; } }

/* ---------- Gamified detection line ---------- */
#progress-line { position: absolute; top: 0; left: 0; z-index: 0; pointer-events: none; overflow: visible; }
.pl-track { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0.12; }
.pl-draw { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0.6; stroke-linecap: round; }
.pl-box {
  fill: transparent; stroke: var(--accent); stroke-width: 2; opacity: 0.32;
  transition: opacity 0.3s var(--ease), stroke-width 0.2s var(--ease);
}
.pl-box.cleared { opacity: 0.6; }
.pl-box.lock { opacity: 1; stroke-width: 3; }
.pl-head { fill: color-mix(in srgb, var(--accent) 16%, transparent); stroke: var(--accent); stroke-width: 2; }
.pl-iou {
  fill: var(--accent); font-family: var(--mono); font-size: 11px; font-weight: 500;
  opacity: 0; transition: opacity 0.12s linear;
}
/* keep content above the decorative layers */
#main, .footer { position: relative; z-index: 1; }

/* finale: get-in-touch block lights up on arrival */
#get-in-touch { transition: border-color 0.4s var(--ease), transform 0.4s var(--ease); }
#get-in-touch.arrived { border-color: var(--accent); transform: translateY(-3px); }
.contact-loc { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }

/* single centered contact block */
#contact .contact-cta { max-width: 640px; margin: 0 auto; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg-1) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; gap: 24px;
}
.nav-logo { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.03em; display: inline-flex; align-items: center; }
.nav-logo .dot { color: var(--accent); }
.nav-logo-img {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  display: none; border: 1px solid var(--border-strong);
}
.nav-logo-img.is-ready { display: block; }
.nav-logo-img.is-ready + .nav-logo-text { display: none; }
.nav-links { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.nav-links a {
  color: var(--muted); font-size: 0.9rem; transition: color 0.2s var(--ease);
  position: relative; padding-bottom: 2px;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--accent); border-radius: 2px;
}

.theme-toggle, .nav-burger {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
  display: grid; place-items: center; transition: border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
html[data-theme="dark"] .icon-sun { display: block; }
html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: block; }

.nav-burger { display: none; flex-direction: column; gap: 4px; }
.nav-burger span { width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- Hero (asymmetric, restrained) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; overflow: hidden;
}
.hero-content {
  position: relative; z-index: 1; padding-top: 96px; padding-bottom: 96px;
  max-width: 60ch;
}
.hero-eyebrow {
  font-family: var(--mono); color: var(--accent); font-size: 0.8rem; letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 22px;
  display: inline-flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--accent);
}
.hero-name {
  font-size: clamp(2.6rem, 6.4vw, 4.7rem); line-height: 1.0; letter-spacing: -0.04em;
  font-weight: 800; color: var(--text);
}
.hero-role {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem); color: var(--muted); font-weight: 400;
  margin: 24px 0 38px; max-width: 42ch; line-height: 1.5;
}
.rotator-word { color: var(--text); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); font-weight: 500; font-size: 0.94rem; cursor: pointer;
  transition: transform 0.15s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary {
  background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 600;
}
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--accent) 60%, transparent); }

.social-row { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; }
.social-row a {
  color: var(--muted); font-size: 0.88rem; transition: color 0.2s var(--ease);
  font-family: var(--mono); letter-spacing: 0.02em;
}
.social-row a:hover { color: var(--accent); }

.scroll-cue {
  position: absolute; bottom: 26px; left: 28px;
  color: var(--muted); z-index: 1; animation: bob 2s ease-in-out infinite;
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 50%;
}
.scroll-cue svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- Section titles ---------- */
.section-title {
  font-size: clamp(1.7rem, 3.8vw, 2.5rem); letter-spacing: -0.025em; font-weight: 700;
  margin-bottom: 44px; position: relative; display: inline-block;
}
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: -12px;
  width: 40px; height: 3px; border-radius: 3px; background: var(--accent);
}

.prose p { color: var(--muted); margin-bottom: 16px; max-width: 65ch; }
.prose strong { color: var(--text); font-weight: 600; }

/* Inline reference links in body copy */
.prose a, .honor-card p a, .industry-callout p a {
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  transition: border-color 0.2s var(--ease);
}
.prose a:hover, .honor-card p a:hover, .industry-callout p a:hover { border-bottom-color: var(--accent); }
.industry-callout p a strong { color: inherit; }

/* ---------- About (asymmetric) ---------- */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
.quick-facts {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 30px;
}
.quick-facts h3 { margin-bottom: 18px; font-size: 1rem; }
.quick-facts ul { list-style: none; display: grid; gap: 0; }
.quick-facts li {
  font-size: 0.95rem; padding: 13px 0; border-top: 1px solid var(--border);
}
.quick-facts li:first-of-type { border-top: none; padding-top: 0; }
.quick-facts li span {
  display: block; font-family: var(--mono); color: var(--accent); font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 3px;
}

/* ---------- Research (asymmetric bento) ---------- */
.cards-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(6, 1fr);
}
.tilt-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 28px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
  transform-style: preserve-3d; will-change: transform;
  grid-column: span 2;
}
/* asymmetric spans: row 1 has two wide cards, row 2 has three */
.cards-grid .tilt-card:nth-child(1),
.cards-grid .tilt-card:nth-child(2) { grid-column: span 3; }
.tilt-card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.card-icon {
  color: var(--accent); margin-bottom: 16px;
  width: 30px; height: 30px; display: inline-flex;
}
.card-icon svg {
  width: 100%; height: 100%; fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.tilt-card h3 { font-size: 1.1rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.tilt-card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Projects (compact grid, small thumbnails) ---------- */
.projects-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.project-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; position: relative;
  display: flex; flex-direction: column;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.project-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); transform: translateY(-3px); }
.project-thumb { overflow: hidden; background: var(--surface-2); height: 132px; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.project-card:hover .project-thumb img { transform: scale(1.04); }
/* diagram/figure thumbnails: show the whole image, don't crop */
.project-thumb.is-contain { background: #ffffff; display: grid; place-items: center; }
.project-thumb.is-contain img { object-fit: contain; padding: 10px; }
.project-card:hover .project-thumb.is-contain img { transform: scale(1.02); }
.project-body { padding: 22px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.project-badge {
  align-self: flex-start; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  padding: 3px 9px; border-radius: 6px;
}
.project-body h3 { font-size: 1.12rem; letter-spacing: -0.02em; }
.project-summary { color: var(--muted); font-size: 0.9rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.project-tags span {
  font-family: var(--mono); font-size: 0.68rem; color: var(--muted);
  background: var(--surface-2); padding: 3px 9px; border-radius: 6px;
}
.project-details { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }
.project-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: auto; padding-top: 8px; }
.project-links a, .project-readmore {
  font-size: 0.82rem; color: var(--accent); background: none;
  border: none; cursor: pointer; padding: 0; font-family: inherit; font-weight: 500;
}
.project-links a:hover, .project-readmore:hover { text-decoration: underline; }

/* ---------- Publications ---------- */
.pub-controls {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  justify-content: space-between; margin-bottom: 28px;
}
.pub-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 0.84rem;
  font-family: var(--mono); letter-spacing: 0.02em;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.12s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip:active { transform: scale(0.96); }
.chip.active { color: var(--accent-ink); border-color: transparent; background: var(--accent); }
.pub-year {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 9px 14px; border-radius: 8px; font-size: 0.84rem; font-family: var(--mono);
}
.pub-list { list-style: none; display: grid; gap: 0; }
.pub-item {
  background: transparent; border-top: 1px solid var(--border);
  padding: 24px 4px; transition: background 0.2s var(--ease), padding 0.2s var(--ease);
}
.pub-list .pub-item:last-child { border-bottom: 1px solid var(--border); }
.pub-item:hover { background: var(--surface); padding-left: 18px; padding-right: 18px; border-radius: 10px; }
.pub-item.is-highlight { border-left: 2px solid var(--accent); padding-left: 18px; }
.pub-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.pub-item h3 { font-size: 1.05rem; line-height: 1.45; font-weight: 600; }
.pub-authors { color: var(--muted); font-size: 0.9rem; margin: 6px 0; }
.pub-authors b { color: var(--text); font-weight: 600; }
.pub-venue { font-family: var(--mono); font-size: 0.82rem; color: var(--accent); letter-spacing: 0.02em; }
.pub-badge {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 6px; border: 1px solid var(--border); color: var(--muted);
}
.pub-badge.accepted { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.pub-badge.published { color: var(--text); border-color: var(--border-strong); }
.pub-badge.review { color: var(--muted); border-style: dashed; border-color: var(--border-strong); }
.pub-star { color: var(--accent); }
.pub-doi { font-size: 0.84rem; color: var(--accent); margin-top: 10px; display: inline-block; font-weight: 500; }
.pub-doi:hover { text-decoration: underline; }

/* ---------- Teaching timeline ---------- */
.timeline { list-style: none; position: relative; padding-left: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px;
  width: 1px; background: var(--border-strong);
}
.timeline-item { position: relative; margin-bottom: 16px; }
.timeline-item::before {
  content: ""; position: absolute; left: -26px; top: 20px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg-1); border: 2px solid var(--accent);
}
.timeline-item details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 18px 22px;
}
.timeline-item summary {
  cursor: pointer; font-weight: 500; list-style: none;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline;
}
.timeline-item summary::-webkit-details-marker { display: none; }
.tl-when {
  font-family: var(--mono); color: var(--accent); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.timeline-item p { color: var(--muted); font-size: 0.92rem; margin-top: 14px; }

/* ---------- Honors (de-boxed, mono numerals) ---------- */
.honors-grid {
  display: grid; gap: 0;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.honor-card {
  background: transparent; padding: 30px 28px;
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  transition: background 0.25s var(--ease);
}
.honor-card:hover { background: var(--surface); }
.honor-big {
  font-family: var(--mono); font-size: 2rem; font-weight: 500;
  color: var(--accent); margin-bottom: 12px; letter-spacing: -0.02em;
}
.honor-card h3 { font-size: 1rem; margin-bottom: 6px; font-weight: 600; }
.honor-card p { color: var(--muted); font-size: 0.9rem; }
.honor-headline {
  grid-column: 1 / -1;
  background: var(--accent-soft);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
}
.honor-headline .honor-big { font-size: 2.6rem; }

/* ---------- Industry callout (flat, accent rule) ---------- */
.industry-callout {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r); padding: clamp(30px, 5vw, 56px);
}
.viatec-badge {
  display: inline-block; font-family: var(--mono);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent);
  padding: 6px 14px; border-radius: 6px; margin-bottom: 20px;
}
.industry-callout h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin-bottom: 16px; letter-spacing: -0.02em; }
.industry-callout p { color: var(--muted); max-width: 70ch; }
.industry-callout strong { color: var(--text); font-weight: 600; }

/* ---------- Contact (email CTA) ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.contact-meta { list-style: none; display: grid; gap: 16px; margin: 24px 0; }
.contact-meta li { padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.contact-meta span {
  display: block; font-family: var(--mono); color: var(--accent); font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 3px;
}
.contact-meta a:hover { color: var(--accent); }

.contact-cta {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 38px 34px; display: grid; gap: 18px;
}
.contact-cta h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.contact-cta .mono-label { color: var(--accent); }
.contact-cta p:not(.mono-label) { color: var(--muted); font-size: 0.95rem; }
.contact-cta .btn-primary { justify-content: center; padding: 15px 22px; font-size: 1rem; }
.contact-cta-social { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 6px; }
.contact-cta-social a { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }
.contact-cta-social a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 36px 0; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  align-items: center; color: var(--muted); font-size: 0.84rem; font-family: var(--mono);
}
.back-to-top:hover { color: var(--accent); }

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

/* ---------- Reveal animation base ---------- */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid .tilt-card,
  .cards-grid .tilt-card:nth-child(1),
  .cards-grid .tilt-card:nth-child(2) { grid-column: span 1; }
  .honors-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg-1); border-bottom: 1px solid var(--border);
    padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease);
  }
  .nav-links.open { max-height: 72vh; padding: 12px 0; }
  .nav-links a { padding: 14px 28px; width: 100%; }
  .nav-links a.is-active::after { display: none; }
  .theme-toggle { margin-left: auto; }
  .nav-burger { display: flex; }
}

@media (max-width: 680px) {
  .projects-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .honors-grid { grid-template-columns: 1fr; }
}

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