/* stylelint-disable declaration-block-single-line-max-declarations, rule-empty-line-before, comment-empty-line-before, media-feature-range-notation, property-no-vendor-prefix, selector-class-pattern, color-function-notation, alpha-value-notation, color-function-alias-notation -- compact rules, legacy rgba */
/* Grupo Alista home */
:root {
  --bg: #09141c;
  --bg-elevated: #0d1c26;
  --bg-card: #111f2a;
  --ink: #e4ecf1;
  --muted: #9db6c4;
  --line: rgba(165, 188, 198, 0.2);
  --copper: #ba6a45;
  --copper-light: #e2a07c;
  --steel: #a5bcc6;
  --unit-live: var(--copper-light);
  --focus-x: 0.5;
  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --mono: 'Roboto Mono', ui-monospace, monospace;
  --sans: 'Montserrat', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; overflow-x: clip; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--copper-light); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--mono); font-weight: 400; letter-spacing: -0.035em; line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); }
.eyebrow { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--unit-live); transition: color 500ms var(--ease); }
.section-lead { color: var(--muted); max-width: 46ch; margin-top: 1rem; }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--pad); }
.skip { position: fixed; top: -4rem; left: 1rem; z-index: 60; background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; }
.skip:focus { top: 1rem; }

.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Stage: fixed world behind everything ── */
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--bg); }
.worlds, .world, .scrim, .veil, #home-gl, .grain { position: absolute; inset: 0; width: 100%; height: 100%; }
.world { object-fit: cover; object-position: calc(var(--focus-x) * 100%) 50%; opacity: 0; transform: scale(1.06); transition: opacity 900ms var(--ease), transform 2400ms var(--ease); }
.world.is-on { opacity: 1; transform: none; }
.scrim { background: linear-gradient(90deg, rgba(9, 20, 28, 0.9) 0%, rgba(9, 20, 28, 0.55) 38%, rgba(9, 20, 28, 0) 62%); }
.veil { background: var(--bg); opacity: 0; }
.grain { opacity: 0.05; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
#home-gl { pointer-events: none; }
.crisp-logo { position: absolute; top: 0; left: 0; width: 0; height: 0; opacity: 0; pointer-events: none; }
main, .footer { position: relative; z-index: 1; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3.1rem; padding: 0.8rem 1.6rem; border: 1px solid transparent; border-radius: 3px; font-family: var(--mono); font-size: 0.86rem; letter-spacing: 0.02em; text-decoration: none; cursor: pointer; transition: transform 180ms var(--ease), background-color 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease); }
.btn:active { transform: scale(0.98); }
.btn svg { width: 1rem; height: 1rem; fill: currentcolor; }
.btn--primary { background: var(--copper-light); color: #1a0f09; }
.btn--primary:hover { background: #efb896; }
.btn--primary:disabled { opacity: 0.6; cursor: progress; }
.btn--ghost { border-color: rgba(228, 236, 241, 0.34); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(228, 236, 241, 0.08); }
.link-arrow { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--mono); font-size: 0.86rem; color: var(--unit, var(--ink)); text-decoration: none; }
.link-arrow svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentcolor; stroke-width: 1.6; transition: transform 220ms var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── Sound ── */
.sound-toggle { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.5rem; padding: 0.4rem 0.9rem; background: rgba(228, 236, 241, 0.06); border: 1px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: 0.74rem; white-space: nowrap; cursor: pointer; transition: border-color 200ms var(--ease), background-color 200ms var(--ease); }
.sound-toggle:hover { border-color: var(--ink); }
.sound-toggle:active { transform: scale(0.98); }
.sound-toggle[aria-pressed="true"] { border-color: var(--copper-light); background: rgba(226, 160, 124, 0.14); }
.sound-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound-bars i { display: block; width: 2px; height: 100%; background: currentcolor; transform: scaleY(0.25); transform-origin: bottom; }
.sound-on .sound-bars i { animation: sound-bar 900ms ease-in-out infinite alternate; }
.sound-on .sound-bars i:nth-child(2) { animation-delay: -260ms; }
.sound-on .sound-bars i:nth-child(3) { animation-delay: -520ms; }
.sound-on .sound-bars i:nth-child(4) { animation-delay: -130ms; }

@keyframes sound-bar { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }

/* ── Nav ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem var(--pad); transition: background-color 300ms var(--ease), padding 300ms var(--ease); }
.nav.scrolled { background: rgba(9, 20, 28, 0.78); backdrop-filter: blur(14px); padding-block: 0.6rem; box-shadow: inset 0 -1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--mono); font-size: 0.92rem; text-decoration: none; white-space: nowrap; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { position: relative; font-family: var(--mono); font-size: 0.8rem; text-decoration: none; color: var(--muted); padding-block: 0.4rem; transition: color 200ms var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--copper-light); transform: scaleX(0); transform-origin: left; transition: transform 260ms var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-tools { display: flex; align-items: center; gap: 0.75rem; }
/* Companies dropdown */
.nav-group { position: relative; }
.nav-trigger { display: inline-flex; align-items: center; gap: 0.4rem; }
.nav-trigger svg { width: 0.7rem; height: 0.7rem; fill: none; stroke: currentcolor; stroke-width: 1.5; transition: transform 220ms var(--ease); }
.nav-trigger[aria-expanded='true'] { color: var(--ink); }
.nav-trigger[aria-expanded='true'] svg { transform: rotate(180deg); }
.units-menu { position: absolute; top: calc(100% + 0.9rem); left: 50%; width: 25rem; padding: 0.6rem; background: rgba(13, 28, 38, 0.94); backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 24px 48px -16px rgba(4, 10, 14, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05); transform: translateX(-50%); animation: units-in 220ms var(--ease); }
.units-menu ul { list-style: none; margin: 0; padding: 0; }
.units-menu li a { display: grid; grid-template-columns: 7.2rem 1fr; align-items: center; gap: 1rem; padding: 0.7rem 0.8rem; border-radius: 4px; text-decoration: none; transition: background-color 180ms var(--ease); }
.units-menu li a::after { content: none; }
.units-menu li a:hover, .units-menu li a:focus-visible { background: rgba(165, 188, 198, 0.08); box-shadow: inset 2px 0 0 var(--unit); }
.units-menu li a:active { transform: scale(0.99); }
.units-menu img { width: 100%; height: auto; }
.units-menu span { font-family: var(--sans); font-size: 0.82rem; line-height: 1.35; color: var(--muted); }
.units-menu li a:hover span { color: var(--ink); }
.units-menu .units-all { display: block; margin-top: 0.4rem; padding: 0.7rem 0.8rem 0.4rem; border-top: 1px solid var(--line); font-size: 0.74rem; color: var(--copper-light); }
.units-menu .units-all::after { content: none; }

@keyframes units-in { from { opacity: 0; transform: translate(-50%, -6px); } }
.drawer-units { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem 1rem; list-style: none; margin: -0.4rem 0 0.6rem; padding: 0; }
.drawer-units a { display: block; padding: 0.5rem 0; }
.drawer-units img { width: 100%; max-width: 9rem; height: auto; }
.lang { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; min-height: 2.5rem; font-family: var(--mono); font-size: 0.78rem; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; transition: border-color 200ms var(--ease); }
.lang:hover { border-color: var(--ink); }
.burger, .drawer-close { display: none; position: relative; width: 2.5rem; height: 2.5rem; background: none; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.burger span, .drawer-close span { position: absolute; left: 30%; right: 30%; height: 1px; background: var(--ink); }
.burger span:first-child { top: 44%; }
.burger span:last-child { top: 56%; }
.drawer-close span { top: 50%; transform: rotate(45deg); }
.drawer-close span:last-child { transform: rotate(-45deg); }
.drawer { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: center; gap: 1.2rem; padding: var(--pad); background: var(--bg); visibility: hidden; opacity: 0; transition: opacity 240ms var(--ease), visibility 240ms; }
.drawer.open { visibility: visible; opacity: 1; }
.drawer a { font-family: var(--mono); font-size: 1.7rem; text-decoration: none; }
.drawer-close { position: absolute; top: 1rem; right: var(--pad); }

/* ── Rail ── */
.rail { position: fixed; right: 1rem; top: 50%; z-index: 20; display: flex; flex-direction: column; gap: 0.1rem; padding: 0.5rem 0.8rem; background: rgba(9, 20, 28, 0.62); border-radius: 6px; backdrop-filter: blur(8px); transform: translateY(-50%); opacity: 0; pointer-events: none; transition: opacity 300ms var(--ease); }
.rail.is-on { opacity: 1; pointer-events: auto; }
.rail a { display: flex; align-items: center; justify-content: flex-end; gap: 0.7rem; min-height: 2rem; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); text-decoration: none; text-shadow: 0 1px 8px rgba(9, 20, 28, 0.9); transition: color 200ms var(--ease); }
.rail a::after { content: ''; width: 1.4rem; height: 1px; background: currentcolor; transform-origin: right; transform: scaleX(0.55); transition: transform 300ms var(--ease); }
.rail a:hover { color: var(--ink); }
.rail a.is-active { color: var(--unit); }
.rail a.is-active::after { transform: none; }

/* ── Hero ── */
.hero { min-height: 100dvh; display: flex; align-items: center; padding: 6rem var(--pad) 4rem; position: relative; }
.hero-copy { max-width: 40rem; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.7rem); margin-top: 1.1rem; font-weight: 300; }
.line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.line > span { display: block; }
.js .line > span { transform: translateY(105%); animation: line-up 1100ms var(--ease) 500ms forwards; }
.js .line:nth-child(2) > span { animation-delay: 640ms; }
.js .line:nth-child(3) > span { animation-delay: 780ms; color: var(--copper-light); }
.line:nth-child(3) > span { color: var(--copper-light); }

@keyframes line-up { to { transform: none; } }
.hero-lead { margin-top: 1.5rem; font-size: clamp(1.05rem, 1.7vw, 1.3rem); min-height: 3.4em; max-width: 34rem; }
.rotator { display: inline; color: var(--ink); font-weight: 600; transition: opacity 300ms var(--ease); }
.rotator.is-out { opacity: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }
.hero-sound { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; margin-top: 1.6rem; color: var(--muted); font-size: 0.82rem; }
.scroll-cue { position: absolute; left: var(--pad); bottom: 1.4rem; display: flex; align-items: center; gap: 0.7rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.scroll-cue span { width: 2.4rem; height: 1px; background: currentcolor; transform-origin: left; animation: cue 2.2s var(--ease) infinite; }

@keyframes cue { 0% { transform: scaleX(0); } 60%, 100% { transform: scaleX(1); opacity: 0; } }

/* ── Manifesto ── */
.manifesto { height: 240vh; }
.manifesto-sticky { position: sticky; top: 0; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: 2rem; max-width: 1040px; margin-inline: auto; padding: 5rem var(--pad); }
.manifesto-text { font-family: var(--mono); font-weight: 300; font-size: clamp(1.45rem, 3.1vw, 2.6rem); line-height: 1.34; letter-spacing: -0.02em; }
.js .manifesto-text span { opacity: 0.2; transition: opacity 260ms linear; }
.js .manifesto-text span.lit { opacity: 1; }
.manifesto-motto { color: var(--copper-light); font-family: var(--mono); font-size: 0.92rem; }

/* ── Company chapters ── */
.chapter { height: 175vh; }
.chapter-sticky { position: sticky; top: 0; min-height: 100dvh; display: flex; align-items: center; padding: 5.5rem var(--pad) 2rem; }
.chapter-copy { max-width: 35rem; }
.chapter-head { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.2rem; }
.slot { position: relative; flex: none; }
.chapter-slot { width: clamp(84px, 9vw, 112px); aspect-ratio: 1; }
.fallback-mark { display: none; width: 100%; height: 100%; }
.no-gl .fallback-mark { display: block; }
.chapter-kicker { display: flex; flex-direction: column; font-family: var(--mono); font-size: 0.82rem; color: var(--unit); letter-spacing: 0.04em; }
.chapter-num { color: var(--ink); font-size: 1.15rem; }
.chapter-num span { color: var(--muted); font-size: 0.8rem; }
.chapter-title { font-size: clamp(1.75rem, 3.1vw, 2.75rem); }
.chapter-name { display: block; font-family: var(--sans); font-size: 0.86rem; font-weight: 600; letter-spacing: 0.02em; color: var(--unit); margin-bottom: 0.6rem; }
.chapter-body { margin-top: 0.9rem; color: #c8d6df; }
.chapter-facts { display: grid; grid-template-columns: 1fr 1.25fr; gap: 1.5rem; margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.86rem; }
.chapter-facts dt { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }
.chapter-proof { display: flex; flex-wrap: wrap; gap: 0.5rem 1.8rem; margin-block: 1.1rem; }
.chapter-proof li { display: flex; flex-direction: column; }
.chapter-proof strong { font-family: var(--mono); font-size: 1.35rem; font-weight: 400; color: var(--unit); }
.chapter-proof span { font-size: 0.74rem; color: var(--muted); }

/* ── Router ── */
.solve { padding-block: clamp(5rem, 11vw, 9rem); }
.solve-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.solve-options { margin-top: 2rem; border-top: 1px solid var(--line); }
.solve-option { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 4rem; padding: 0.9rem 0.4rem; background: none; border: 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: clamp(0.92rem, 1.5vw, 1.1rem); text-align: left; cursor: pointer; transition: color 200ms var(--ease), padding 240ms var(--ease); }
.solve-option svg { flex: none; width: 1.2rem; height: 1.2rem; fill: none; stroke: currentcolor; stroke-width: 1.5; opacity: 0.5; transition: transform 240ms var(--ease), opacity 200ms var(--ease); }
.solve-option:hover { color: var(--unit); padding-left: 0.8rem; }
.solve-option:hover svg { transform: translateX(4px); opacity: 1; }
.solve-option:active { transform: scale(0.995); }
.solve-option[aria-pressed="true"] { color: var(--unit); padding-left: 0.8rem; box-shadow: inset 2px 0 0 var(--unit); }
.solve-option[aria-pressed="true"] svg { opacity: 1; }
.solve-result { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.4rem; }
.solve-slot { width: clamp(190px, 24vw, 300px); aspect-ratio: 1; }
.solve-empty { color: var(--muted); font-size: 0.92rem; max-width: 30ch; }
.solve-panel { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; animation: panel-in 420ms var(--ease); }
.solve-panel[hidden] { display: none; }
.solve-panel img { height: 3rem; width: auto; }
.solve-panel p { color: #c8d6df; font-size: 0.95rem; max-width: 40ch; }
.solve-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.2rem; }

@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── Stats ── */
.stats { padding-block: clamp(3.5rem, 7vw, 6rem); background: var(--bg-elevated); box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.stats-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 2rem; }
.stats-list strong { display: block; font-family: var(--mono); font-weight: 300; font-size: clamp(2.2rem, 4.6vw, 3.8rem); letter-spacing: -0.04em; line-height: 1.05; }
.stats-list span { color: var(--muted); font-size: 0.88rem; }
.stats-note { margin-top: 1.8rem; color: var(--muted); font-size: 0.74rem; }

/* ── Film ── */
.film { padding-block: clamp(5rem, 10vw, 8rem); background: var(--bg); }
.film-head { display: grid; grid-template-columns: 1fr; gap: 0.6rem; margin-bottom: 2rem; }
.film-frame { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--bg-card); }
.film-frame video { width: 100%; height: 100%; object-fit: cover; }

/* ── Contact ── */
.contact { padding-block: clamp(5rem, 10vw, 8rem); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact-slot { width: clamp(110px, 12vw, 160px); aspect-ratio: 1; margin-block: 2rem; }
address { display: flex; flex-direction: column; gap: 0.35rem; font-style: normal; color: var(--muted); font-size: 0.92rem; }
address a { color: var(--ink); text-underline-offset: 4px; }
address a:hover { color: var(--copper-light); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; padding: clamp(1.25rem, 3vw, 2.2rem); background: rgba(13, 28, 38, 0.86); border: 1px solid var(--line); border-radius: 6px; box-shadow: inset 0 1px 0 rgba(228, 236, 241, 0.08), 0 30px 60px -30px rgba(1, 8, 14, 0.9); }
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field--wide, .form > .btn, .form-legal, .form-status { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 2.9rem; padding: 0.65rem 0.8rem; background: rgba(9, 20, 28, 0.7); border: 1px solid var(--line); border-radius: 3px; transition: border-color 200ms var(--ease); }
.field select option { background: var(--bg-card); }
.field textarea { resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--steel); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--copper-light); outline-offset: 0; }
.form-legal { font-size: 0.76rem; color: var(--muted); }
.form-status { font-size: 0.88rem; padding: 0.7rem 0.9rem; border-radius: 3px; border: 1px solid var(--line); }
.form-status:empty { display: none; }
.form-status.is-ok { color: #8fe0b4; border-color: rgba(143, 224, 180, 0.4); }
.form-status.is-err { color: #ffb4a6; border-color: rgba(255, 180, 166, 0.45); }

/* ── Footer ── */
.footer { background: var(--bg-elevated); box-shadow: inset 0 1px 0 var(--line); padding-block: 3rem 1.5rem; font-size: 0.86rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h2 { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.footer-grid nav { display: flex; flex-direction: column; gap: 0.25rem; }
.footer-grid a { text-decoration: none; padding-block: 0.15rem; }
.footer-grid a:hover { color: var(--copper-light); text-decoration: underline; text-underline-offset: 3px; }
.footer-motto { color: var(--muted); font-size: 0.8rem; }
.footer-rights { margin-top: 2rem; color: var(--muted); font-size: 0.76rem; }

/* ── WhatsApp ── */
.whatsapp { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 25; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: #1f9d57; transition: transform 200ms var(--ease), background-color 200ms var(--ease); }
.whatsapp svg { width: 1.7rem; height: 1.7rem; fill: #fff; }
.whatsapp:hover { background: #25b866; transform: translateY(-2px); }
.whatsapp:active { transform: scale(0.96); }

/* ── Tablet and below ── */
@media (max-width: 1024px) {
  .nav-links, .sound-toggle--nav .sound-text { display: none; }
  .sound-toggle--nav { padding-inline: 0.7rem; }
  .burger, .drawer-close { display: block; }
  .rail { display: none; }
  .solve-grid, .contact-grid { grid-template-columns: 1fr; }
  .stats-list { grid-template-columns: repeat(2, 1fr); }
}

/* ── Phone: copy flows under the logo, chapters stop being sticky ── */
@media (max-width: 768px) {
  .worlds { height: 56dvh; }
  .scrim { background: linear-gradient(180deg, rgba(9, 20, 28, 0) 34dvh, var(--bg) 56dvh); }
  .hero { align-items: flex-start; padding-top: 54dvh; padding-bottom: 3.5rem; }
  .scroll-cue { display: none; }
  .manifesto { height: 200vh; }
  .chapter { height: auto; }
  .chapter-sticky { position: static; padding-block: 34vh 3.5rem; }
  .chapter-facts { grid-template-columns: 1fr; gap: 0.9rem; }
  .form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .stats-list { gap: 1.4rem 1rem; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .units-menu { animation: none; }
  html { scroll-behavior: auto; }
  .js .line > span { transform: none; animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .world { transition: opacity 200ms linear; transform: none; }
  .scroll-cue span, .sound-on .sound-bars i { animation: none; }
  .solve-panel { animation: none; }
}
