/* AdvaizerLabs — site styles
   Palette and type follow the existing brand: near-black, Inter, phosphor green. */

:root {
  --bg: #000;
  --bg-soft: #0a0a0a;
  --text: #f0f0f0;
  --muted: rgba(240, 240, 240, 0.55);
  --green: #00ff41;
  --green-line: #66be5e;
  --green-copy: #8eed6b;
  --green-hover: #bdf4cb;
  --hair: rgba(255, 255, 255, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --gutter: clamp(20px, 5vw, 72px);
  --copy: 760px;
  --nav-h: 68px;
}

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

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  /* no background here: the html element paints black, so the fixed canvas (z-index -1) stays visible */
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Static gradient: the brand glow, and the fallback when the canvas is off. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0, 40, 10, 0.6), transparent 72%),
    linear-gradient(#000, #0a0a0a);
  pointer-events: none;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }

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

::selection { background: rgba(0, 255, 65, 0.28); color: #fff; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 100;
  padding: 10px 16px;
  background: #000;
  color: var(--green);
  border: 1px solid var(--green);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.ai { color: var(--green); }

/* ---------- Background canvas ---------- */

.field {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.field.is-on { opacity: 1; }

/* ---------- Scroll progress (a left-edge hairline) ---------- */

.progress {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 60;
  width: 2px;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.progress-bar {
  display: block;
  width: 100%; height: 100%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.6);
  transform: scaleY(var(--p, 0));
  transform-origin: top;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(0, 0, 0, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
@supports (backdrop-filter: blur(8px)) {
  .nav.is-scrolled { background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(10px); }
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  white-space: nowrap;
}
.nav-brand img { width: 28px; height: 28px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
}
.nav-menu a {
  position: relative;
  padding: 8px 0;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(240, 240, 240, 0.78);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu a[aria-current="page"] {
  color: var(--green);
  text-shadow: 0 0 14px rgba(0, 255, 65, 0.55);
}
.nav-menu a:hover::after,
.nav-menu a[aria-current="page"]::after { transform: scaleX(1); }
.nav-menu .nav-contact { color: var(--green-copy); }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px; height: 44px;
  margin-right: -10px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: transform 0.45s var(--ease), opacity 0.2s ease, background 0.2s ease;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span { background: var(--green); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 767.98px) {
  .nav-toggle { display: block; }
  .nav-brand { position: relative; z-index: 2; }
  .nav-menu {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: var(--nav-h) var(--gutter) 40px;
    background: #000;
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.6s var(--ease), visibility 0s linear 0.6s;
  }
  .nav.is-open .nav-menu {
    visibility: visible;
    clip-path: inset(0);
    transition: clip-path 0.6s var(--ease), visibility 0s;
  }
  .nav-menu a {
    padding: 14px 0;
    font-size: 1rem;
    letter-spacing: 0.14em;
  }
  .nav.is-open { background: none; backdrop-filter: none; border-bottom-color: transparent; }
}

/* ---------- Vertical hairlines ---------- */

.hairlines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hairlines span {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--x);
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--hair) 18%, var(--hair) 82%, transparent);
  transform-origin: top;
  animation: line-draw 1.8s var(--ease) var(--d, 0s) both;
}
.hairlines span.accent {
  background: linear-gradient(to bottom, transparent, rgba(102, 190, 94, 0.55) 18%, rgba(102, 190, 94, 0.55) 82%, transparent);
}
@keyframes line-draw {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}
@media (max-width: 767.98px) {
  .hairlines span:nth-child(even) { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 96px;
  text-align: center;
}
.hero-inner { position: relative; width: 100%; }

.wordmark {
  font-weight: 300;
  font-size: clamp(2rem, 10vw, 7rem);
  line-height: 1.1;
  letter-spacing: 0.12em;
  margin-right: -0.12em; /* optically re-centre the tracked word */
  text-shadow: 0 0 42px rgba(0, 255, 65, 0.28);
  white-space: nowrap;
}
.wordmark-letters > span {
  display: inline-block;
  animation: letter-in 1.1s var(--ease) calc(0.7s + var(--i) * 0.06s) both;
}
.wordmark-letters .wordmark-gap { width: 0.18em; animation: none; }
.wordmark-letters .ai {
  color: var(--green);
  text-shadow: 0 0 18px rgba(0, 255, 65, 0.75), 0 0 60px rgba(0, 255, 65, 0.45);
  animation:
    letter-in 1.1s var(--ease) calc(0.7s + var(--i) * 0.06s) both,
    ignite 1.1s linear 2s both;
}
@keyframes letter-in {
  from { opacity: 0; filter: blur(14px); transform: translateY(0.18em); }
  to { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes ignite {
  0%, 12% { color: var(--text); text-shadow: none; }
  16% { color: var(--green); text-shadow: 0 0 18px rgba(0, 255, 65, 0.9); }
  22% { color: rgba(240, 240, 240, 0.7); text-shadow: none; }
  30% { color: var(--green); text-shadow: 0 0 24px rgba(0, 255, 65, 0.9); }
  38% { color: rgba(142, 237, 107, 0.6); text-shadow: none; }
  52%, 100% { color: var(--green); text-shadow: 0 0 18px rgba(0, 255, 65, 0.75), 0 0 60px rgba(0, 255, 65, 0.45); }
}

.tagline {
  margin-top: clamp(20px, 3vw, 36px);
  font-size: clamp(0.82rem, 1.5vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-copy);
}

.hero-cta {
  margin-top: clamp(36px, 6vh, 64px);
  animation: mask-in 1.2s var(--ease) 3.5s both;
}
@keyframes mask-in {
  from { clip-path: inset(0 100% 0 0); opacity: 0; }
  to { clip-path: inset(0 -20px); opacity: 1; }
}

.link-cta {
  display: inline-block;
  padding: 10px 2px;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(var(--green-line), var(--green-line)) left bottom / 100% 1px no-repeat;
  transition: color 0.25s ease, text-shadow 0.25s ease, background-size 0.5s var(--ease);
}
.link-cta::after { content: "\2192"; display: inline-block; margin-left: 0.7em; transition: transform 0.4s var(--ease); }
.link-cta:hover, .link-cta:focus-visible {
  color: var(--green-hover);
  text-shadow: 0 0 14px rgba(0, 255, 65, 0.5);
  background-image: linear-gradient(var(--green), var(--green));
}
.link-cta:hover::after { transform: translateX(6px); }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  animation: fade-in 1.2s ease 3.9s both;
}
.scroll-cue span { margin-right: -0.24em; }
.scroll-cue i {
  display: block;
  width: 1px; height: 38px;
  background: linear-gradient(to bottom, var(--green), transparent);
  transform-origin: top;
  animation: cue 2.4s var(--ease) infinite;
}
.scroll-cue:hover { color: var(--green-hover); }
@keyframes cue {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Shared section pieces ---------- */

.section {
  position: relative;
  padding: clamp(96px, 16vh, 180px) var(--gutter);
}
.copy {
  width: 100%;
  max-width: var(--copy);
  margin-inline: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(28px, 5vh, 48px);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow span { color: var(--green-line); font-variant-numeric: tabular-nums; }
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--hair), transparent);
}

.block + .block { margin-top: clamp(36px, 6vh, 60px); }

.label {
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

.lead {
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text);
}

/* ---------- Streamed text ---------- */

.stream-u { visibility: hidden; }
.cursor {
  border-left: 2px solid var(--green);
  margin-right: -2px;
  margin-left: 1px;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { border-color: transparent; } }

/* ---------- Scroll reveals (only armed once JS is running) ---------- */

.js-ready [data-reveal] {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s var(--ease);
}
.js-ready [data-reveal].is-in { clip-path: inset(0 0 0 0); }

.js-ready [data-reveal="wipe"] { clip-path: inset(0 0 100% 0); transition-duration: 1.3s; }
.js-ready [data-reveal="wipe"].is-in { clip-path: inset(-200px); }

.js-ready [data-reveal="rise"] {
  clip-path: inset(0 0 100% 0);
  transform: translateY(0.35em);
  transition: clip-path 1.2s var(--ease), transform 1.2s var(--ease);
}
.js-ready [data-reveal="rise"].is-in { clip-path: inset(-0.2em -0.1em); transform: none; }

.js-ready [data-reveal="lines"] { clip-path: none; }
.js-ready [data-reveal="lines"] span { animation-play-state: paused; }
.js-ready [data-reveal="lines"].is-in span { animation-play-state: running; }

.js-ready [data-block] .label {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.7s var(--ease);
}
.js-ready [data-block].is-live .label { clip-path: inset(0); }

/* ---------- Story: problem -> Labi ---------- */

.story {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 0 var(--gutter);
}
.panel {
  display: flex;
  align-items: center;
  padding: clamp(72px, 12vh, 140px) 0;
}
.panel .copy { margin-inline: 0; }
.story-slot { height: min(92vw, 440px); }

@media (min-width: 900px) {
  .story {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    column-gap: clamp(32px, 5vw, 80px);
    max-width: 1500px;
    margin-inline: auto;
  }
  .panel { grid-column: 1; min-height: 100vh; }
  .panel-labi { min-height: 150vh; align-items: flex-start; padding-top: 24vh; }
  .panel .copy { max-width: 560px; margin-left: auto; }
  .story-slot {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: sticky;
    top: 0;
    height: 100vh;
    align-self: start;
  }
}

/* ---------- For whom: the spectrum ---------- */

.section-whom { overflow: hidden; } /* the gliding rail must not widen the page */

.spectrum {
  max-width: 980px;
  margin: clamp(64px, 11vh, 120px) auto 0;
  padding-top: 64px;
}
.spectrum-track {
  position: relative;
  height: 28px;
  border-bottom: 1px solid var(--hair);
  background: repeating-linear-gradient(to right, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 5%) bottom left / 100% 9px no-repeat;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}
.spectrum-rail {
  position: absolute;
  inset: 0;
  animation: glide 11s cubic-bezier(0.65, 0, 0.35, 1) infinite alternate;
  animation-play-state: paused;
}
.spectrum.is-in .spectrum-rail { animation-play-state: running; }
@keyframes glide {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}
.spectrum-marker {
  position: absolute;
  left: 0; bottom: -7px;
  width: 1px; height: 58px;
  background: linear-gradient(to top, var(--green), rgba(0, 255, 65, 0.15));
}
.spectrum-marker::before {
  content: "";
  position: absolute;
  left: -6px; bottom: 0;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(0, 255, 65, 0.14), 0 0 26px 6px rgba(0, 255, 65, 0.45);
}
.spectrum-marker span {
  position: absolute;
  bottom: 100%; left: 0;
  transform: translateX(-50%);
  padding-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}
.spectrum-ends,
.spectrum-axis {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.spectrum-ends {
  margin-top: 22px;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  font-weight: 400;
}
.spectrum-axis {
  margin-top: 6px;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Team ---------- */

.vision {
  margin-top: clamp(56px, 10vh, 110px);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
}
.vision-big {
  display: block;
  margin: 0.45em 0 0.4em;
  font-size: clamp(1.9rem, 5.4vw, 3.9rem);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--text);
}
.draw-underline {
  color: var(--green-copy);
  padding-bottom: 0.06em;
  background: linear-gradient(var(--green), var(--green)) left bottom / 100% 2px no-repeat;
}
.js-ready .draw-underline { background-size: 0% 2px; transition: background-size 2.6s var(--ease) 0.2s; }
.js-ready .is-streamed .draw-underline { background-size: 100% 2px; }

/* ---------- Privacy promise ---------- */

.statement {
  font-size: clamp(2.5rem, 9vw, 6.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-shadow: 0 0 60px rgba(0, 255, 65, 0.2);
}
.terminal-out {
  margin-top: clamp(32px, 6vh, 56px);
  font-family: var(--mono);
  font-size: clamp(0.86rem, 1.5vw, 1.02rem);
  line-height: 1.75;
  color: var(--green-copy);
}
.terminal-out p + p { margin-top: 12px; }
.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin-top: clamp(36px, 6vh, 56px);
}

/* ---------- CTA + footer ---------- */

.section-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 78vh;
  text-align: center;
  overflow: hidden;
}
.magnetic {
  position: relative;
  display: inline-block;
  padding: clamp(22px, 3.4vw, 38px) clamp(26px, 5.5vw, 76px);
  border: 1px solid var(--green-line);
  color: var(--text);
  font-size: clamp(0.92rem, 2.3vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.6);
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: transform 0.5s var(--ease), color 0.3s ease, border-color 0.3s ease, box-shadow 0.4s ease;
  overflow: hidden;
}
.magnetic::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--green);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.55s var(--ease);
}
.magnetic span {
  position: relative;
  display: inline-block;
  transform: translate(calc(var(--mx, 0px) * 0.4), calc(var(--my, 0px) * 0.4));
  transition: transform 0.5s var(--ease);
}
.magnetic:hover, .magnetic:focus-visible {
  color: #000;
  border-color: var(--green);
  box-shadow: 0 0 60px -6px rgba(0, 255, 65, 0.55);
}
.magnetic:hover::before, .magnetic:focus-visible::before { transform: scaleY(1); }
.magnetic:focus-visible { outline-offset: 6px; }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 28px var(--gutter) 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.footer a { color: var(--text); text-decoration: none; transition: color 0.25s ease, text-shadow 0.25s ease; }
.footer a:hover { color: var(--green); text-shadow: 0 0 14px rgba(0, 255, 65, 0.5); }

/* ---------- Custom cursor (fine pointers only; enabled from JS) ---------- */

.cursor-fx {
  position: fixed;
  left: 0; top: 0;
  z-index: 90;
  width: 26px; height: 26px;
  margin: -13px 0 0 -13px;
  border: 1px solid rgba(102, 190, 94, 0.7);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0);
  transition: opacity 0.3s ease, border-radius 0.25s ease, border-color 0.25s ease, width 0.25s var(--ease), height 0.25s var(--ease), margin 0.25s var(--ease);
}
.cursor-fx.is-active { opacity: 1; }
.cursor-fx::before, .cursor-fx::after {
  content: "";
  position: absolute;
  background: var(--green);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cursor-fx::before { left: 50%; top: -7px; bottom: -7px; width: 1px; margin-left: -0.5px; }
.cursor-fx::after { top: 50%; left: -7px; right: -7px; height: 1px; margin-top: -0.5px; }
.cursor-fx.is-cross {
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border-color: transparent;
  border-radius: 0;
}
.cursor-fx.is-cross::before, .cursor-fx.is-cross::after { opacity: 1; }

/* ---------- Privacy page ---------- */

.legal {
  position: relative;
  padding: calc(var(--nav-h) + clamp(56px, 12vh, 130px)) var(--gutter) clamp(80px, 12vh, 140px);
}
.legal-head .eyebrow { margin-bottom: 28px; }
.docs { margin-top: clamp(64px, 11vh, 110px); }

.tabs {
  display: flex;
  gap: clamp(20px, 4vw, 44px);
  border-bottom: 1px solid var(--hair);
  overflow-x: auto;
}
.tab {
  position: relative;
  padding: 16px 4px;
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}
.tab::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.tab:hover { color: var(--green-hover); }
.tab[aria-selected="true"] { color: var(--green); text-shadow: 0 0 14px rgba(0, 255, 65, 0.45); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab:focus-visible { outline-offset: -2px; }
@media (max-width: 480px) {
  .tabs { gap: 10px; }
  .tab { font-size: 0.68rem; letter-spacing: 0.06em; }
}

.doc { padding-top: clamp(32px, 6vh, 56px); min-height: 40vh; }
.doc:focus-visible { outline-offset: 8px; }
.doc-status { color: var(--muted); font-size: 0.95rem; }
.doc-status a, .doc a { color: var(--green-copy); text-underline-offset: 3px; }
.doc a:hover { color: var(--green-hover); }
.doc h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 1em; }
.doc h2 { font-size: 1.2rem; font-weight: 700; margin: 2.2em 0 0.6em; color: var(--text); }
.doc h3 { font-size: 1rem; font-weight: 700; margin: 1.8em 0 0.5em; }
.doc p, .doc ul, .doc ol, .doc table, .doc blockquote { margin: 0 0 1.1em; }
.doc p, .doc li { color: rgba(240, 240, 240, 0.84); }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: 0.35em; }
.doc li::marker { color: var(--green-line); }
.doc strong { font-weight: 700; color: var(--text); }
.doc blockquote {
  padding: 14px 18px;
  border-left: 2px solid var(--green);
  background: rgba(0, 255, 65, 0.06);
}
.doc blockquote p:last-child { margin-bottom: 0; }
.doc code { font-family: var(--mono); font-size: 0.88em; color: var(--green-copy); }
.doc hr { border: 0; border-top: 1px solid var(--hair); margin: 2.4em 0; }
.doc table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.doc th, .doc td { padding: 10px 14px; border: 1px solid var(--hair); text-align: left; vertical-align: top; }
.doc th { font-weight: 700; }

/* ---------- Reduced motion: everything is simply there ---------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .js-ready [data-reveal],
  .js-ready [data-block] .label { clip-path: none !important; transform: none !important; }
  .js-ready .draw-underline { background-size: 100% 2px; }
  .spectrum-rail { transform: translateX(50%); }
  .cursor-fx { display: none; }
  .cursor { display: none; }
}
