/* ============================================================
   AXLO LABS — brand landing page
   Palette anchored to the logo: near-black canvas + committed gold.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Canvas — warm near-black so gold glows against it */
  --bg:            oklch(0.145 0.008 78);   /* ~#0d0b07 */
  --bg-2:          oklch(0.185 0.010 78);   /* raised surface */
  --hairline:      oklch(0.30 0.015 80 / 0.55);

  /* Ink */
  --ink:           oklch(0.965 0.010 85);   /* warm white  ~#faf7ef */
  --muted:         oklch(0.775 0.018 82);   /* warm gray, ≥4.5:1 on bg */
  --faint:         oklch(0.60 0.016 82);

  /* Gold — the single voice color, straight from the mark */
  --gold:          oklch(0.795 0.108 82);   /* core   ~#dfb65d */
  --gold-bright:   oklch(0.875 0.085 88);   /* highlight ~#f1cf8d */
  --gold-deep:     oklch(0.60 0.095 78);    /* shadow ~#9a7b34 */
  --gold-ink:      oklch(0.20 0.03 70);     /* text on gold fills */

  /* Type */
  --font-display: "Clash Display", "Arial Black", system-ui, sans-serif;
  --font-body:    "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Fluid scale (≥1.25 ratio) */
  --step--1: clamp(0.83rem, 0.79rem + 0.18vw, 0.94rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  --step-1:  clamp(1.32rem, 1.2rem + 0.6vw, 1.62rem);
  --step-2:  clamp(1.75rem, 1.5rem + 1.2vw, 2.55rem);
  --step-3:  clamp(2.3rem, 1.8rem + 2.4vw, 3.8rem);
  --step-4:  clamp(3rem, 2rem + 4.6vw, 5.6rem);

  /* Space */
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-y: clamp(5rem, 10vw, 9rem);
  --measure: 62ch;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);      /* ease-out-expo-ish */
  --dur: 0.7s;

  /* z-index scale */
  --z-atmosphere: 0;
  --z-base: 1;
  --z-header: 50;
  --z-skip: 100;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
html:not(.no-js) { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
em { font-style: normal; color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 2px; }

.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;
}
.skip-link {
  position: fixed; top: 0; left: 50%; translate: -50% -120%;
  z-index: var(--z-skip); background: var(--gold); color: var(--gold-ink);
  padding: 0.6rem 1.1rem; border-radius: 0 0 10px 10px; font-weight: 700;
  transition: translate 0.25s var(--ease-out);
}
.skip-link:focus { translate: -50% 0; }

/* ---------- Layout primitives ---------- */
main > section, .site-footer {
  width: min(100% - var(--gutter) * 2, 1200px);
  margin-inline: auto;
}

/* ---------- Atmosphere (fixed backdrop) ---------- */
.atmosphere { position: fixed; inset: 0; z-index: var(--z-atmosphere); pointer-events: none; overflow: hidden; }
.atmosphere__grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(to right, var(--hairline) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hairline) 1px, transparent 1px);
  background-size: clamp(48px, 7vw, 92px) clamp(48px, 7vw, 92px);
  opacity: 0.10;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 80%);
  /* Parallax: drifts slowly with scroll for depth (var set by JS) */
  translate: 0 calc(var(--scroll, 0) * 0.035px);
}
.atmosphere__bloom {
  position: absolute; top: -22vh; left: 50%;
  width: min(120vw, 1100px); aspect-ratio: 1;
  background: radial-gradient(circle at center,
    oklch(0.795 0.108 82 / 0.22) 0%,
    oklch(0.60 0.095 78 / 0.10) 32%,
    transparent 62%);
  filter: blur(10px);
  /* Parallax drift (translate) + slow ambient breathing (scale/opacity) compose cleanly */
  translate: -50% calc(var(--scroll, 0) * 0.11px);
  animation: bloom-breathe 9s ease-in-out infinite;
}
@keyframes bloom-breathe { 0%, 100% { scale: 1; opacity: 0.85; } 50% { scale: 1.09; opacity: 1; } }
.atmosphere__grain {
  position: absolute; inset: 0; opacity: 0.04; mix-blend-mode: overlay;
  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' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: clamp(0.9rem, 2vw, 1.35rem) var(--gutter);
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header[data-scrolled] {
  background: oklch(0.145 0.008 78 / 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--hairline);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand__mark { filter: drop-shadow(0 0 8px oklch(0.795 0.108 82 / 0.35)); }
.brand__word { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.1rem); }
.site-nav a { color: var(--muted); font-size: var(--step--1); font-weight: 500; transition: color 0.2s; }
.site-nav a:hover { color: var(--ink); }
.site-nav__cta {
  color: var(--gold) !important; border: 1px solid var(--hairline);
  padding: 0.5rem 1rem; border-radius: 999px; transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.site-nav__cta:hover { border-color: var(--gold); background: oklch(0.795 0.108 82 / 0.10); }
@media (max-width: 620px) { .site-nav a:not(.site-nav__cta) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  --_pad: 0.85rem 1.5rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: var(--_pad); border-radius: 999px; font-weight: 700; font-size: var(--step-0);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.25s, border-color 0.25s, color 0.25s;
}
.btn--gold {
  background: linear-gradient(140deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: var(--gold-ink);
  box-shadow: 0 8px 30px -12px oklch(0.795 0.108 82 / 0.7);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -14px oklch(0.795 0.108 82 / 0.85); }
.btn--ghost { border-color: var(--hairline); color: var(--ink); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding-block: clamp(6rem, 12vh, 9rem) var(--section-y);
  position: relative; z-index: var(--z-base);
}
.hero__inner {
  display: flex; flex-direction: column; align-items: center;
  /* Scroll parallax: content lifts and fades as the hero scrolls away (--scroll set by JS) */
  translate: 0 calc(var(--scroll, 0) * -0.07px);
  opacity: max(0, calc(1 - var(--scroll, 0) / 620));
}
.hero__mark { position: relative; width: clamp(140px, 22vw, 220px); aspect-ratio: 1; margin-bottom: clamp(1.5rem, 4vw, 2.75rem); }
.hero__mark img { animation: mark-float 7s ease-in-out infinite; }
@keyframes mark-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.hero__mark img {
  position: relative; z-index: 1; width: 100%; height: 100%;
  filter: drop-shadow(0 6px 26px oklch(0.795 0.108 82 / 0.45));
}
.hero__glow {
  position: absolute; inset: -40%; border-radius: 50%;
  background: radial-gradient(circle at center, oklch(0.795 0.108 82 / 0.45), transparent 62%);
  filter: blur(24px); z-index: 0;
}
.hero__title {
  font-size: var(--step-4); letter-spacing: -0.035em; line-height: 0.96;
  max-width: 16ch;
}
.hero__title em { display: inline; }
.hero__lede {
  margin-top: clamp(1.1rem, 2.5vw, 1.6rem); max-width: 46ch;
  color: var(--muted); font-size: var(--step-1); line-height: 1.4; text-wrap: pretty;
}
.hero__actions { margin-top: clamp(1.8rem, 4vw, 2.6rem); display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.hero__scroll {
  position: absolute; bottom: clamp(1.5rem, 4vh, 2.5rem); left: 50%; translate: -50% 0;
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--faint); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.hero__scroll svg { animation: nudge 2.4s var(--ease-out) infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0); opacity: 0.6; } 50% { transform: translateY(5px); opacity: 1; } }

/* ---------- Studio ---------- */
.studio { padding-block: var(--section-y); }
.studio__statement {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--step-3); line-height: 1.08; letter-spacing: -0.025em;
  max-width: 20ch;
}
.studio__meta {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
  max-width: 900px; margin-left: auto;
}
.studio__meta h2 { font-size: var(--step-1); margin-bottom: 0.5rem; color: var(--gold); }
.studio__meta p { color: var(--muted); max-width: 46ch; }

/* ---------- Section head ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head__title { font-size: var(--step-3); letter-spacing: -0.03em; }
.section-head__note { color: var(--muted); max-width: 42ch; }

/* ---------- In the lab ---------- */
.lab { padding-block: var(--section-y); }

.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 0.35rem 0.7rem; border-radius: 999px; border: 1px solid var(--hairline);
  color: var(--muted); white-space: nowrap;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--live { color: var(--gold-bright); border-color: oklch(0.795 0.108 82 / 0.4); }
.chip--live::before { box-shadow: 0 0 8px 1px currentColor; animation: pulse-dot 2.2s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Featured product ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.75rem);
}
.feature__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-bottom: 1.4rem; }
.feature__kind { color: var(--faint); font-size: var(--step--1); letter-spacing: 0.01em; }
.feature__name {
  font-size: clamp(2.6rem, 1.9rem + 3.2vw, 4.4rem); letter-spacing: -0.035em; line-height: 0.95;
}
.feature__pitch { margin-top: 1.1rem; color: var(--ink); font-size: var(--step-1); line-height: 1.4; max-width: 40ch; text-wrap: pretty; }
.feature__points { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 0.9rem; max-width: 46ch; }
.feature__points li { position: relative; padding-left: 1.7rem; color: var(--muted); line-height: 1.5; }
.feature__dot {
  position: absolute; left: 0; top: 0.5em; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-bright), var(--gold-deep));
  box-shadow: 0 0 10px oklch(0.795 0.108 82 / 0.5);
}
.feature__actions { margin-top: clamp(2rem, 4vw, 2.75rem); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.feature__soon { color: var(--faint); font-size: var(--step--1); }
.feature__url { color: var(--gold); font-variant-numeric: tabular-nums; }

/* Product visualization — stylized FileSense window */
.feature__viz { position: relative; }
.feature__viz::before {
  content: ""; position: absolute; inset: -14% -8% -20%;
  background: radial-gradient(60% 55% at 60% 35%, oklch(0.795 0.108 82 / 0.16), transparent 70%);
  filter: blur(20px); z-index: -1; pointer-events: none;
}
.fs {
  border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, oklch(0.205 0.011 80 / 0.85), oklch(0.155 0.009 78 / 0.7));
  box-shadow: 0 34px 90px -46px oklch(0 0 0 / 0.9);
}
.fs__bar {
  display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--hairline); background: oklch(0.145 0.008 78 / 0.45);
}
.fs__lights { display: inline-flex; gap: 6px; }
.fs__lights i { width: 9px; height: 9px; border-radius: 50%; background: var(--hairline); }
.fs__title { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.78rem; font-weight: 500; color: var(--muted); }
.fs__pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px 1px var(--gold); animation: pulse-dot 2.2s ease-in-out infinite; }
.fs__stage { position: relative; padding: clamp(0.9rem, 2vw, 1.3rem); }
.fs__scan {
  position: absolute; left: 0; right: 0; top: 0; height: 38%; pointer-events: none; z-index: 3; mix-blend-mode: screen;
  background: linear-gradient(180deg, transparent, oklch(0.795 0.108 82 / 0.10) 65%, oklch(0.875 0.085 88 / 0.14));
  border-bottom: 1px solid oklch(0.875 0.085 88 / 0.35);
  animation: fs-scan 5.5s cubic-bezier(0.55, 0, 0.45, 1) infinite;
}
.fs__stream { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; position: relative; z-index: 1; }
.fs__file {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.7rem;
  padding: 0.55rem 0.7rem; border-radius: 10px; font-size: 0.82rem;
  background: oklch(0.145 0.008 78 / 0.5); border: 1px solid var(--hairline);
}
.fs__ext {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.06em; padding: 0.22rem 0.36rem; border-radius: 5px;
  color: var(--gold-bright); background: oklch(0.795 0.108 82 / 0.14); border: 1px solid oklch(0.795 0.108 82 / 0.28);
}
.fs__nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-variant-numeric: tabular-nums; }
.fs__route {
  position: relative; padding-left: 1.05rem; color: var(--gold); font-size: 0.72rem; font-weight: 600; white-space: nowrap;
  animation: fs-route 5.5s ease-in-out infinite; animation-delay: calc(var(--n) * 0.18s);
}
.fs__route::before { content: "→"; position: absolute; left: 0; }
.fs__folders {
  list-style: none; padding: 0.95rem 0 0; margin: 0.95rem 0 0; border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; gap: 0.5rem; position: relative; z-index: 1;
}
.fs__folders li {
  display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.72rem; color: var(--muted);
  padding: 0.32rem 0.62rem; border-radius: 999px; border: 1px solid var(--hairline);
}
.fs__fico { color: var(--gold); flex: none; }
.fs__count { color: var(--faint); font-variant-numeric: tabular-nums; }

@keyframes fs-scan {
  0% { transform: translateY(-105%); opacity: 0; }
  8% { opacity: 1; }
  60% { transform: translateY(175%); opacity: 1; }
  66%, 100% { transform: translateY(175%); opacity: 0; }
}
@keyframes fs-route { 0%, 70% { opacity: 0.35; } 78%, 96% { opacity: 1; } 100% { opacity: 0.35; } }

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: clamp(2rem, 7vw, 3rem); }
  .feature__viz { order: 2; }
}

/* ---------- How it works ---------- */
.how { padding-block: var(--section-y); }
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: clamp(1.75rem, 4vw, 3.25rem);
}
.step { position: relative; padding-top: 1.4rem; border-top: 1px solid var(--hairline); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.3rem; height: 2.3rem; margin-bottom: 1.15rem; border-radius: 50%;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1;
  color: var(--gold); border: 1px solid oklch(0.795 0.108 82 / 0.4);
  background: oklch(0.795 0.108 82 / 0.06);
}
.step__title { font-size: var(--step-1); letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.step__body { color: var(--muted); max-width: 34ch; }

/* ---------- Principles ---------- */
.principles { padding-block: var(--section-y); }
.principles__kicker { font-family: var(--font-body); font-weight: 500; font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.principles__list { list-style: none; padding: 0; display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.principle { max-width: 34ch; }
.principle__rule { display: block; width: 42px; height: 2px; background: linear-gradient(90deg, var(--gold-bright), var(--gold-deep)); margin-bottom: 1.1rem; border-radius: 2px; }
.principle h3 { font-size: var(--step-2); letter-spacing: -0.02em; margin-bottom: 0.6rem; }
.principle p { color: var(--muted); }

/* ---------- Contact ---------- */
.contact { padding-block: var(--section-y); }
.contact__inner {
  text-align: center; max-width: 640px; margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter);
  border: 1px solid var(--hairline); border-radius: 24px;
  background:
    radial-gradient(120% 140% at 50% -10%, oklch(0.795 0.108 82 / 0.10), transparent 60%),
    oklch(0.185 0.010 78 / 0.5);
  position: relative; overflow: hidden;
}
.contact__title { font-size: var(--step-3); letter-spacing: -0.03em; }
.contact__lede { margin-top: 1rem; color: var(--muted); max-width: 44ch; margin-inline: auto; }
.contact__actions { margin-top: clamp(1.75rem, 4vw, 2.5rem); display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.contact__actions .btn svg { transition: transform 0.3s var(--ease-out); }
.contact__actions .btn:hover svg { transform: translate(2px, -2px); }

/* ---------- Footer ---------- */
.site-footer {
  display: grid; gap: 1.75rem 2.5rem; align-items: start;
  grid-template-columns: 1.4fr 1fr 1fr; padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
  margin-top: var(--section-y); border-top: 1px solid var(--hairline);
}
.site-footer__brand { display: flex; align-items: center; gap: 0.8rem; }
.site-footer__brand .brand__mark { filter: drop-shadow(0 0 8px oklch(0.795 0.108 82 / 0.35)); }
.site-footer__word { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.site-footer__tag { color: var(--faint); font-size: var(--step--1); }
.site-footer__nav, .site-footer__social { display: flex; flex-direction: column; gap: 0.6rem; list-style: none; padding: 0; }
.site-footer__nav a, .site-footer__social a { color: var(--muted); font-size: var(--step--1); width: fit-content; transition: color 0.2s; }
.site-footer__nav a:hover, .site-footer__social a:hover { color: var(--gold); }
.site-footer__legal { grid-column: 1 / -1; color: var(--faint); font-size: 0.78rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline); }
@media (max-width: 620px) { .site-footer { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* ============================================================
   MOTION — progressive enhancement.
   Default (no-js / headless): everything visible. The pre-reveal
   hidden state only applies when <html class="js">, and is cleared
   by IntersectionObserver adding .is-in.
   ============================================================ */
.js .reveal-block {
  opacity: 0; transform: translateY(34px); filter: blur(9px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), filter var(--dur) var(--ease-out);
}
/* Direction-aware entrances: content that lives side-by-side arrives from its own side */
.js .reveal-block[data-reveal="left"]  { transform: translateX(-48px); }
.js .reveal-block[data-reveal="right"] { transform: translateX(48px); }
.js .reveal-block:not(.is-in) { will-change: transform, opacity, filter; }

.js .reveal-line { display: block; overflow: hidden; }
.js .reveal-line > span { display: block; opacity: 0; transform: translateY(110%); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }

.reveal-block.is-in { opacity: 1; transform: none; filter: none; }
.reveal-line.is-in > span { opacity: 1; transform: none; }

/* Hero entrance: stagger the lines/lede/actions after the mark blooms */
.js .hero__mark { opacity: 0; transform: scale(0.9); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.js .hero__mark.is-in { opacity: 1; transform: none; }
.hero .reveal-line { transition-delay: calc(0.15s + var(--d, 0) * 0.09s); }

/* Staggered lists via --i */
.principle.is-in { transition-delay: calc(var(--i, 0) * 0.08s); }
.step.is-in { transition-delay: calc(var(--i, 0) * 0.08s); }

/* Living details: principle rule sweeps in, step number pops */
.js .principle .principle__rule { transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease-out) 0.15s; }
.js .principle.is-in .principle__rule { transform: scaleX(1); }
.js .step .step__num { opacity: 0; transform: scale(0.55); transition: opacity 0.5s var(--ease-out) 0.12s, transform 0.6s var(--ease-out) 0.12s; }
.js .step.is-in .step__num { opacity: 1; transform: none; }

/* Scrollspy: active section gets a drawing-in gold underline in the nav */
.site-nav a:not(.site-nav__cta) { position: relative; }
.site-nav a:not(.site-nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1.5px; border-radius: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.site-nav a:not(.site-nav__cta):hover::after,
.site-nav a.is-active:not(.site-nav__cta)::after { transform: scaleX(1); }
.site-nav a.is-active { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html:not(.no-js) { scroll-behavior: auto; }
  .js .reveal-block, .js .reveal-line > span, .js .hero__mark {
    opacity: 1 !important; transform: none !important; filter: none !important; transition: opacity 0.3s linear !important;
  }
  .js .principle .principle__rule, .js .step .step__num { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__inner { translate: 0 !important; opacity: 1 !important; }
  .hero__scroll svg, .chip--live::before, .fs__pulse, .atmosphere__bloom, .hero__mark img { animation: none !important; }
  .fs__scan { display: none; }
  .fs__route { opacity: 1; animation: none; }
  .btn, .site-nav__cta, .site-nav a::after { transition: none; }
  .contact__actions .btn:hover svg { transform: none; }
}
