/* =====================================================================
   Solvaira — main.css
   Light editorial public homepage
   Static homepage + embedded text assistant
   Motion: transform/opacity only, <300ms UI, custom ease-out, hover gated,
   reduced-motion respected.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Neutral surfaces. --surface-1/2 + --hairline are still used by the header,
     buttons, and skip link. --canvas and --hairline-soft are legacy (the old
     global background/grid was removed) and kept only for compatibility. */
  --canvas:        oklch(0.16 0.010 250); /* legacy — no longer paints the page */
  --surface-1:     oklch(0.20 0.012 250);
  --surface-2:     oklch(0.24 0.012 250);
  --hairline:      oklch(0.32 0.012 250);
  --hairline-soft: oklch(0.27 0.010 250); /* legacy — old grid line colour */

  /* Neutral text scale (used by header/buttons/skip link and mono captions) */
  --text-strong:   oklch(0.96 0.005 250);
  --text:          oklch(0.86 0.006 250);
  --text-muted:    oklch(0.66 0.010 250);
  --text-faint:    oklch(0.52 0.012 250);

  /* Primary signal — electric blue (scarce, load-bearing) */
  --signal:        oklch(0.74 0.150 235);
  --signal-deep:   oklch(0.58 0.140 245);
  --signal-faint:  oklch(0.74 0.150 235 / 0.12);

  /* Secondary signal — warm human-in-the-loop (rare) */
  --human:         oklch(0.78 0.110 65);
  --human-faint:   oklch(0.78 0.110 65 / 0.14);

  /* Status (semantic, very scarce) */
  --ok:            oklch(0.76 0.120 150);

  /* Editorial light palette — used by the hero first screen only */
  --paper:         oklch(0.97 0.004 95);
  --ink:           oklch(0.21 0.010 255);
  --ink-muted:     oklch(0.46 0.010 255);

  /* Type */
  --font-display: "Space Grotesk", "Hanken Grotesk", system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Spacing scale (px) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px; --s-11: 160px;

  /* Layout */
  --maxw: 1200px;
  --measure: 68ch;
  --radius: 12px;
  --radius-sm: 8px;

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --t-press: 130ms;
  --t-ui: 220ms;
  --t-reveal: 600ms;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  /* Light editorial page surface — no dark canvas, no grid underlay. */
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }

::selection { background: color-mix(in oklch, var(--ink) 12%, transparent); color: var(--ink); }

:focus-visible {
  outline: 2px solid color-mix(in oklch, var(--ink) 72%, transparent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid color-mix(in oklch, var(--ink) 18%, transparent);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus { left: var(--s-4); top: var(--s-4); }

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

.section { padding-block: var(--s-9); position: relative; }
@media (min-width: 880px) {
  .section { padding-block: var(--s-10); }
}

/* Mono caption base — only .footer-mono remains in the current markup. */
.footer-mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t-press) var(--ease-out),
              background-color var(--t-ui) var(--ease-out),
              border-color var(--t-ui) var(--ease-out),
              color var(--t-ui) var(--ease-out);
}
.btn .arrow { transition: transform var(--t-ui) var(--ease-out); }
.btn-lg { padding: var(--s-4) var(--s-6); font-size: 1.0625rem; }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}
.btn-ghost {
  background: transparent;
  color: var(--text-strong);
  border-color: var(--hairline);
}
.btn:active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: color-mix(in oklch, var(--ink) 88%, var(--paper)); }
  .btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
  .btn-ghost:hover .arrow { transform: translateX(3px); }
}

/* ---------- Header / nav ---------- */
/* Light header in every state so it merges with the paper hero at the top
   and reads as a quiet light bar when scrolled. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-ui) var(--ease-out),
              box-shadow var(--t-ui) var(--ease-out);
}
.site-header[data-scrolled="true"] {
  border-bottom-color: color-mix(in oklch, var(--ink) 12%, transparent);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  height: 64px;
}
.brand { display: inline-flex; align-items: center; }
.brand-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav-links {
  display: none;
  gap: var(--s-5);
  margin-inline-start: auto;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--ink-muted);
  transition: color var(--t-ui) var(--ease-out);
  position: relative;
  padding-block: var(--s-2);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-ui) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--ink); }
  .nav-links a:hover::after { transform: scaleX(1); }
}
/* Minimal outline CTA — the only CTA on the first screen, kept quiet */
.nav-cta {
  display: none;
  background: transparent;
  color: var(--ink);
  border: 1px solid color-mix(in oklch, var(--ink) 28%, transparent);
  border-radius: 999px;
  padding: var(--s-2) var(--s-5);
  font-size: 0.85rem;
  font-weight: 500;
}
@media (hover: hover) and (pointer: fine) {
  .nav-cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
}

@media (min-width: 900px) {
  .nav-links { display: inline-flex; }
  .nav-cta { display: inline-flex; }

  /* First screen stays bare — only the wordmark shows. Nav + CTA fade in
     once the user scrolls (existing data-scrolled attribute). */
  .site-header:not([data-scrolled="true"]) .nav-links,
  .site-header:not([data-scrolled="true"]) .nav-cta { display: none; }
}

/* ---------- Hero (light editorial first screen, minimal B&W) ---------- */
/* A calm, full-height paper screen that fills the first viewport and centers a
   single headline + one line. No grid, glow, blue, or CTA. */
.hero {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  padding-block: var(--s-7) var(--s-8);
}

/* Headline + line are optically centred in the open space; the micro-row
   rests quietly at the bottom of the screen as a composition detail. */
.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 860px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3) var(--s-6);
  margin-top: var(--s-7);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  opacity: 0.6;
}
.hero-meta span { white-space: nowrap; }

.hero-title {
  /* Neutral humanist sans (already loaded), lighter weight for an editorial,
     un-compressed feel — not the geometric display face. */
  font-family: var(--font-body);
  color: var(--ink);
  font-weight: 400;
  font-size: clamp(2.5rem, 7.5vw, 5.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 auto var(--s-6);
}
.hero-line { display: block; }

.hero-sub {
  font-family: var(--font-body);
  color: var(--ink-muted);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  max-width: 42ch;
  margin: 0 auto;
}

/* Hero headline word-rise reveal (CSS-only, plays on load) */
.hero-title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* room so descenders/period are never clipped by the mask */
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.hero-title .word > span {
  display: inline-block;
  transform: translateY(115%);
  animation: heroWordRise 0.8s var(--ease-out) both;
  animation-delay: var(--d, 0ms);
}
@keyframes heroWordRise { to { transform: translateY(0); } }

/* ---------- Problem — light editorial continuation of the hero ----------
   Same off-white surface, ink/gray palette, large type and generous space as the
   approved Hero. One question + one short answer. No blue, cards, borders, or
   technical 01/02/03 list. */
.problem {
  background: var(--paper);
  color: var(--ink);
}
.problem-inner {
  max-width: 760px;
  text-align: center;
  padding-block: var(--s-6);
}
.problem-q {
  font-family: var(--font-body);
  color: var(--ink);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin: 0 auto var(--s-6);
}
.problem-q .qline { display: block; }

/* Word-rise reveal — mirrors the Hero pattern, but the words stay hidden until the
   section enters the viewport (.is-in is toggled on [data-reveal] by main.js). */
.problem-q .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.problem-q .word > span {
  display: inline-block;
  transform: translateY(115%);
}
.problem.is-in .problem-q .word > span {
  animation: heroWordRise 0.8s var(--ease-out) both;
  animation-delay: var(--d, 0ms);
}

.problem-a {
  font-family: var(--font-body);
  color: var(--ink-muted);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  max-width: 52ch;
  margin: 0 auto;
}

/* ---------- Services -> editorial question blocks (light) ----------
   Continues the Hero / #problema language: off-white surface, ink/gray text, flat
   line-based blocks. No bento, panels, blue signal, shadows, or product UI. Uses
   the existing .reveal scroll system (no JS, reduced-motion handled globally). */
.qblocks {
  background: var(--paper);
  color: var(--ink);
}
.qblocks-inner { max-width: 1000px; }
.qblocks-intro {
  font-family: var(--font-body);
  color: var(--ink);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 0 var(--s-8);
}
.qcard-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
}
@media (min-width: 760px) {
  .qcard-list { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
}
.qcard {
  padding-top: var(--s-5);
  border-top: 1px solid color-mix(in oklch, var(--ink) 16%, transparent);
}
.qcard-q {
  font-family: var(--font-body);
  color: var(--ink);
  font-weight: 500;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: var(--s-4);
}
.qcard-a {
  font-family: var(--font-body);
  color: var(--ink-muted);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 38ch;
}

/* ---------- Assistant ---------- */
/* ---------- Assistant — light editorial bridge to the demo ----------
   Off-white surface, ink/gray text, calm two-column layout. No dark panel, blue
   glow, chat bubbles, or product-console UI. CTAs are scoped to ink (no blue) to
   stay consistent with the approved light sections. Uses the existing .reveal
   system (no JS, reduced-motion handled globally). */
.assistant {
  background: var(--paper);
  color: var(--ink);
}
.assistant-inner {
  display: grid;
  gap: var(--s-7);
  align-items: center;
}
@media (min-width: 900px) {
  .assistant-inner { grid-template-columns: 1fr 0.85fr; gap: var(--s-9); }
}
.assistant-q {
  font-family: var(--font-body);
  color: var(--ink);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin-bottom: var(--s-5);
}
.assistant-lead {
  font-family: var(--font-body);
  color: var(--ink-muted);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  max-width: 48ch;
  margin-bottom: var(--s-6);
}
.assistant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
}
/* Ink CTAs — keep this light section free of the blue signal colour. */
.assistant .btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.assistant .btn-ghost {
  color: var(--ink);
  border-color: color-mix(in oklch, var(--ink) 24%, transparent);
}
@media (hover: hover) and (pointer: fine) {
  .assistant .btn-primary:hover { background: color-mix(in oklch, var(--ink) 88%, var(--paper)); }
  .assistant .btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
}
.assistant-disclaimer {
  font-family: var(--font-body);
  color: var(--ink-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0.75;
  margin-top: var(--s-5);
  max-width: 42ch;
}

/* Embedded text-only chat — flat, light, editorial. No dark card, blue glow,
   bubbles, shadows, mic, or TTS. Quiet hairlines in ink tone on the paper surface. */
.home-assistant {
  display: flex;
  flex-direction: column;
  border: 1px solid color-mix(in oklch, var(--ink) 12%, transparent);
  border-radius: 14px;
  background: color-mix(in oklch, var(--ink) 2%, var(--paper));
  overflow: hidden;
}
.home-assistant-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid color-mix(in oklch, var(--ink) 8%, transparent);
}
.home-assistant-title {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
  font-size: 0.95rem;
}
.home-assistant-status {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  opacity: 0.8;
}

.home-assistant-log {
  display: flex; flex-direction: column; gap: var(--s-4);
  padding: var(--s-5);
  min-height: 180px;
  max-height: 360px;
  overflow-y: auto;
}
.ha-msg { display: flex; flex-direction: column; gap: 4px; max-width: 92%; }
.ha-msg-user { align-self: flex-end; align-items: flex-end; text-align: right; }
.ha-msg-assistant { align-self: flex-start; }
.ha-who {
  font-family: var(--font-body);
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-muted); opacity: 0.65;
}
.ha-text {
  font-family: var(--font-body);
  color: var(--ink);
  font-size: 1rem; line-height: 1.55;
  overflow-wrap: anywhere;
}
.ha-msg-user .ha-text { color: var(--ink-muted); }

.ha-typing { display: inline-flex; gap: 5px; align-items: center; padding-top: 4px; }
.ha-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: color-mix(in oklch, var(--ink) 35%, transparent);
  animation: haBlink 1.2s var(--ease-out) infinite both;
}
.ha-typing span:nth-child(2) { animation-delay: 0.18s; }
.ha-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes haBlink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

.home-assistant-chips {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  padding: 0 var(--s-5) var(--s-4);
}
.ha-chip {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-muted);
  padding: var(--s-2) var(--s-4);
  border: 1px solid color-mix(in oklch, var(--ink) 16%, transparent);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: color var(--t-ui) var(--ease-out), border-color var(--t-ui) var(--ease-out);
}
.ha-chip:disabled { opacity: 0.5; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .ha-chip:hover:not(:disabled) { color: var(--ink); border-color: color-mix(in oklch, var(--ink) 32%, transparent); }
}

.home-assistant-form {
  display: flex; gap: var(--s-3);
  padding: var(--s-4) var(--s-5) var(--s-5);
  border-top: 1px solid color-mix(in oklch, var(--ink) 8%, transparent);
}
.home-assistant-input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: var(--s-3) var(--s-4);
  border: 1px solid color-mix(in oklch, var(--ink) 18%, transparent);
  border-radius: 10px;
  background: var(--paper);
}
.home-assistant-input::placeholder { color: var(--ink-muted); opacity: 0.7; }
.home-assistant-input:focus { outline: none; border-color: color-mix(in oklch, var(--ink) 40%, transparent); }
.home-assistant-input:disabled { opacity: 0.6; }
.home-assistant-send {
  flex: none;
  font-family: var(--font-body); font-weight: 500;
  font-size: 0.95rem;
  color: var(--paper); background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 10px;
  padding: var(--s-3) var(--s-5);
  cursor: pointer;
  transition: background var(--t-ui) var(--ease-out);
}
.home-assistant-send:disabled { opacity: 0.5; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .home-assistant-send:hover:not(:disabled) { background: color-mix(in oklch, var(--ink) 88%, var(--paper)); }
}
.ha-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  .ha-typing span { animation: none; }
}

/* ---------- Footer — light editorial closing note ----------
   Off-white surface, ink/gray text, hairlines in ink tone. No dark grid, blue
   links, boxed panel, or control-room feeling — a calm end to the light page. */
.site-footer {
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid color-mix(in oklch, var(--ink) 10%, transparent);
  /* Breathing room comes from top padding only — no external margin that could
     open a gap above the footer. */
  padding-block: var(--s-8) var(--s-6);
}
.footer-inner {
  display: grid; gap: var(--s-7);
  grid-template-columns: 1fr;
  padding-bottom: var(--s-7);
  border-bottom: 1px solid color-mix(in oklch, var(--ink) 8%, transparent);
}
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.4fr 1fr; } }
.footer-brand .brand-name { color: var(--ink); }
.footer-tagline { color: var(--ink-muted); max-width: 40ch; margin-top: var(--s-4); font-size: 0.95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); align-content: start; }
.footer-nav a { color: var(--ink-muted); font-size: 0.92rem; transition: color var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .footer-nav a:hover { color: var(--ink); } }
.footer-base {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6);
  justify-content: space-between;
  padding-top: var(--s-5);
}
.footer-mono { color: var(--ink-muted); opacity: 0.8; }

/* Right column: nav links + a quiet email contact note (no panel, card, or form). */
.footer-right { display: flex; flex-direction: column; gap: var(--s-6); }
.footer-contact { display: flex; flex-direction: column; gap: var(--s-2); align-items: start; }
.footer-contact-title { color: var(--ink); font-size: 0.95rem; font-weight: 500; }
.footer-contact-line { color: var(--ink-muted); font-size: 0.92rem; }
.footer-contact-link {
  color: var(--ink);
  border-bottom: 1px solid color-mix(in oklch, var(--ink) 22%, transparent);
  transition: border-color var(--t-ui) var(--ease-out);
}
.footer-contact-cta {
  display: inline-flex; align-items: center; gap: var(--s-2);
  margin-top: var(--s-2);
  color: var(--ink); font-size: 0.92rem; font-weight: 500;
}
.footer-contact-cta .arrow { transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .footer-contact-link:hover { border-color: var(--ink); }
  .footer-contact-cta:hover .arrow { transform: translateX(3px); }
}

/* Very small screens (~320px): the hero/problem headlines use masked word spans
   that can't wrap mid-word, so cap their floor here to prevent horizontal
   overflow. Desktop/tablet sizing is untouched. */
@media (max-width: 360px) {
  .hero-title { font-size: clamp(2.1rem, 9vw, 2.5rem); }
  .problem-q { font-size: clamp(1.85rem, 8vw, 2.1rem); }
}

/* =====================================================================
   Motion — scroll reveal + flow choreography (transform/opacity only)
   ===================================================================== */
[data-reveal] .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--t-reveal) var(--ease-out),
              transform var(--t-reveal) var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-in .reveal { opacity: 1; transform: none; }

/* stagger within reveal groups (cap at 8) */
[data-reveal].is-in .reveal:nth-child(1) { transition-delay: 0ms; }
[data-reveal].is-in .reveal:nth-child(2) { transition-delay: 60ms; }
[data-reveal].is-in .reveal:nth-child(3) { transition-delay: 120ms; }
[data-reveal].is-in .reveal:nth-child(4) { transition-delay: 180ms; }
[data-reveal].is-in .reveal:nth-child(5) { transition-delay: 240ms; }
[data-reveal].is-in .reveal:nth-child(6) { transition-delay: 300ms; }
/* Reduced motion: show everything in final state, no movement */
@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;
  }
  [data-reveal] .reveal { opacity: 1; transform: none; }
  .hero-title .word > span { transform: none; animation: none; }
  .problem-q .word > span { transform: none; animation: none; }
  .btn:active { transform: none; }
}
