/* =====================================================================
   ARSMAGNA — "Blueprint Técnico"
   Light paper · engineering grid · monospace · hard edges · invert hovers
   Brand blue: #1C75BC
   ===================================================================== */

:root {
  --blue:      #1C75BC;
  --blue-deep: #145A92;
  --blue-soft: rgba(28, 117, 188, .10);

  --paper:   #F4F4EE;   /* warm blueprint paper */
  --paper-2: #ECECE4;
  --card:    #FBFBF8;
  --ink:     #11151B;   /* near-black */
  --ink-2:   #3C434C;
  --ink-3:   #6E757D;
  --line:    #CFCFC4;   /* grid / hairlines */
  --line-2:  #B7B7AA;

  --grid-minor: rgba(17, 21, 27, .045);
  --grid-major: rgba(28, 117, 188, .10);

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body:    "IBM Plex Sans", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 56px);
  --rail-w: 200px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html { scroll-padding-top: calc(var(--header-h, 78px) + 18px); }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

.skip-link { position: absolute; left: 12px; top: -50px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- Custom blueprint cursor ---------- */
@media (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
}
.cursor { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .25s var(--ease); }
.cursor.on { opacity: 1; }
.cursor-dot { position: fixed; top: 0; left: 0; width: 6px; height: 6px; background: var(--blue); will-change: transform; }
.cursor-ring {
  position: fixed; top: 0; left: 0; width: 26px; height: 26px;
  border: 1.5px solid var(--ink); will-change: transform;
  transition: width .22s var(--ease), height .22s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.cursor-ring.hover { width: 48px; height: 48px; border-color: var(--blue); background: rgba(28, 117, 188, .10); }
.cursor.down .cursor-ring { width: 20px; height: 20px; }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--blue); z-index: 80; pointer-events: none;
  transition: width .1s linear;
}

/* ---------- Back-to-top button ---------- */
.to-top {
  position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px);
  z-index: 70; display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px;
  background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink);
  opacity: 0; transform: translateY(14px) scale(.92); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: var(--paper); }
.to-top:focus-visible { background: var(--blue); border-color: var(--blue); color: #fff; }
.to-top svg { width: 24px; height: 24px; }

/* ---------- Blueprint grid backdrop ---------- */
.blueprint-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px),
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px, 160px 160px, 160px 160px;
}

/* ---------- Buttons (hard-edged) ---------- */
.btn {
  --p: 12px 22px;
  display: inline-flex; align-items: center; gap: .55em;
  padding: var(--p); border: 1.5px solid var(--ink);
  font-family: var(--font-mono); font-weight: 500; font-size: .82rem;
  letter-spacing: .06em; text-transform: uppercase;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn-lg { --p: 15px 28px; font-size: .85rem; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--blue); border-color: var(--blue); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }

/* ---------- Utility bar ---------- */
.utility-bar { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 60; }
.util-inner { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.util-item { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; color: var(--ink-3); white-space: nowrap; }
.util-mid { color: var(--blue); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 244, 238, .88);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; padding: 14px 0; }
.brand { margin-right: auto; display: inline-flex; }
.brand img { height: 46px; width: auto; }
.nav-desktop { display: flex; gap: 4px; }
.nav-desktop a {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-2); padding: 8px 14px;
  border: 1px solid transparent; transition: color .18s, border-color .18s, background .18s;
}
.nav-desktop a:hover { color: var(--ink); border-color: var(--line-2); background: var(--card); }
.nav-desktop a.active { color: var(--blue); border-color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch { display: flex; border: 1.5px solid var(--ink); }
.lang-switch button { border: 0; background: transparent; color: var(--ink-3); font-family: var(--font-mono); font-size: .72rem; font-weight: 600; padding: 6px 10px; transition: background .15s, color .15s; }
.lang-switch button.is-active { background: var(--ink); color: var(--paper); }
.lang-switch button:not(.is-active):hover { color: var(--ink); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; background: transparent; border: 0; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { position: sticky; top: var(--header-h, 64px); z-index: 49; background: var(--card); border-bottom: 1px solid var(--line); }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; padding: 8px var(--gut) 18px; }
.mobile-menu a { font-family: var(--font-mono); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.mobile-menu .btn { margin-top: 16px; justify-content: center; color: var(--paper); }

/* ---------- HERO ---------- */
.hero { position: relative; padding: clamp(60px, 11vw, 130px) 0 0; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; max-width: 1000px; }
.fig-tag { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .18em; color: var(--blue); margin-bottom: 26px; }

.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.25rem, 5.2vw, 5.4rem); line-height: 1.02;
  letter-spacing: -.02em; text-transform: uppercase;
  overflow-wrap: normal; word-break: keep-all; hyphens: none;
}
.hero-title .line { display: block; }
.hero-title .hl { color: var(--blue); }

.hero-sub { font-size: clamp(1.05rem, 1.9vw, 1.3rem); color: var(--ink-2); max-width: 60ch; margin-top: 30px; line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero-readout { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line); }
.ro { padding: 20px 18px 20px 0; border-right: 1px solid var(--line); }
.ro:last-child { border-right: 0; }
.ro-k { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; color: var(--ink-3); margin-bottom: 8px; }
.ro-v { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .01em; }
.ro-v .counter { color: var(--blue); }

/* hero reticle (crosshair follows cursor) */
.hero-reticle { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .3s; }
.hero-reticle .rx, .hero-reticle .ry { position: absolute; background: rgba(28,117,188,.28); }
.hero-reticle .rx { left: 0; right: 0; height: 1px; top: 0; transform: translateY(var(--cy, 0)); }
.hero-reticle .ry { top: 0; bottom: 0; width: 1px; left: 0; transform: translateX(var(--cx, 0)); }
.hero:hover .hero-reticle { opacity: 1; }

/* hero scanning line */
.hero-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--blue), transparent); opacity: .55; z-index: 1; animation: scan 7s var(--ease) infinite; }
@keyframes scan { 0% { transform: translateY(60px); opacity: 0; } 12% { opacity: .55; } 88% { opacity: .55; } 100% { transform: translateY(420px); opacity: 0; } }

/* ---------- SHEET (section) layout ---------- */
.sheet { padding: clamp(56px, 8vw, 110px) 0; border-top: 1px solid var(--line); }
.sheet-alt { background: var(--paper-2); }
.sheet-grid { display: grid; grid-template-columns: var(--rail-w) 1fr; gap: clamp(24px, 4vw, 60px); }

.rail { position: relative; }
.rail-code { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 600; color: var(--blue); display: block; }
.rail-label { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); display: block; margin-top: 8px; }
.rail-rule { display: block; height: 1.5px; background: var(--ink); margin-top: 18px; width: 100%; transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.rail.in .rail-rule, .sheet-body.in ~ .rail .rail-rule { transform: scaleX(1); }
.in .rail-rule { transform: scaleX(1); }

.sheet-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: -.015em; max-width: 20ch; }
.sheet-lead { font-size: 1.12rem; color: var(--ink-2); margin-top: 24px; max-width: 64ch; }

/* drivers row */
.drivers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.drivers li { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; padding: 9px 14px; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--card); }

/* ---------- §02 Question list ---------- */
.q-list { margin-top: 40px; border-top: 1px solid var(--line); }
.q-row { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 18px; padding: 22px 18px; border-bottom: 1px solid var(--line); transition: background .2s var(--ease), color .2s var(--ease), padding-left .2s var(--ease); cursor: default; }
.q-idx { font-family: var(--font-mono); font-size: .9rem; color: var(--blue); font-weight: 600; }
.q-text { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 1.9vw, 1.35rem); line-height: 1.25; }
.q-row:hover { background: var(--ink); color: var(--paper); padding-left: 26px; }
.q-row:hover .q-idx { color: #6FB4EE; }
.q-answer { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.7rem); color: var(--blue); margin-top: 34px; }

/* ---------- §03 Spec cards ---------- */
.spec-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.spec { position: relative; background: var(--card); border: 1px solid var(--line-2); padding: 26px 22px 28px; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.spec::before, .spec::after { content: ""; position: absolute; width: 12px; height: 12px; border-color: var(--blue); transition: border-color .2s; }
.spec::before { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.spec::after { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; }
.spec-code { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; color: var(--ink-3); }
.spec-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-top: 14px; line-height: 1.2; }
.spec-desc { color: var(--ink-2); font-size: .94rem; margin-top: 10px; }
.spec:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-3px); }
.spec:hover .spec-code { color: #8FC2EE; }
.spec:hover .spec-desc { color: #C7CDD3; }
.spec:hover::before, .spec:hover::after { border-color: var(--paper); }

/* ---------- §04 The edge (dark) ---------- */
.edge { padding: clamp(60px, 9vw, 120px) 0; background: var(--ink); color: var(--paper); border-top: 1.5px solid var(--ink); }
.edge .sheet-title { color: var(--paper); }
.edge .sheet-lead { color: #C2C8CF; }
.rail-dark .rail-code { color: #6FB4EE; }
.rail-dark .rail-label { color: #8E96A0; }
.rail-dark .rail-rule { background: var(--paper); }
.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); }
.step { background: var(--ink); display: flex; gap: 18px; padding: 26px 24px; align-items: flex-start; transition: background .2s var(--ease); }
.step:hover { background: #1B2128; }
.step-n { font-family: var(--font-mono); font-size: 1.4rem; font-weight: 600; color: var(--blue); line-height: 1; }
.step p { font-size: 1.02rem; color: #D7DCE1; padding-top: 4px; }

/* ---------- §05 Checklist ---------- */
.checklist { margin-top: 38px; border-top: 1px solid var(--line); }
.checklist li { position: relative; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 1.8vw, 1.3rem); padding: 20px 0 20px 44px; border-bottom: 1px solid var(--line); transition: padding-left .2s var(--ease), color .2s; }
.checklist li::before { content: "+"; position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 1.3rem; color: var(--blue); font-weight: 600; }
.checklist li:hover { padding-left: 54px; color: var(--blue-deep); }

/* ---------- §06 Track record ---------- */
.metrics { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--ink); }
.metric { padding: 30px 24px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric-n { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1; color: var(--blue); display: block; }
.metric-l { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); display: block; margin-top: 14px; }
.tr-note { font-size: 1.08rem; color: var(--ink-2); margin-top: 34px; max-width: 70ch; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.tag { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; padding: 9px 16px; border: 1px solid var(--ink); color: var(--ink); transition: background .18s, color .18s; }
.tag:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- §07 Contact ---------- */
.contact-layout { margin-top: 42px; display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }

.bp-form { background: var(--card); border: 1px solid var(--line-2); padding: clamp(22px, 3vw, 38px); }
.form-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 18px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.fh-ref { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; color: var(--ink-2); }
.fh-tag { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-deep); border: 1px solid rgba(28,117,188,.4); padding: 4px 9px; }

.bp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bp-field { margin-bottom: 22px; }
.bp-field label { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 9px; }
.bp-k { color: var(--blue); }
.bp-field input, .bp-field textarea {
  width: 100%; background: var(--paper); border: 1px solid var(--line-2);
  padding: 12px 14px; color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.bp-field input:focus, .bp-field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(28,117,188,.13); }
.bp-field textarea { resize: vertical; min-height: 112px; }

.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.seg button { background: var(--paper); border: 0; padding: 11px 6px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-2); transition: background .16s var(--ease), color .16s var(--ease); }
.seg button:hover { background: var(--paper-2); color: var(--ink); }
.seg button.active { background: var(--ink); color: var(--paper); }

.bp-submit { margin-top: 6px; }
.form-note { margin-top: 16px; font-family: var(--font-mono); font-size: .82rem; min-height: 1.2em; }
.form-note.ok { color: var(--blue-deep); }
.form-note.err { color: #B42318; }

.contact-aside { display: grid; gap: 24px; }
.ca-block { display: flex; flex-direction: column; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.ca-k { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.ca-mail { font-family: var(--font-mono); font-size: .98rem; color: var(--blue-deep); word-break: break-all; }
.ca-mail:hover { color: var(--blue); text-decoration: underline; }
.ca-v { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--ink); }
.ca-coord { font-family: var(--font-mono); font-size: .74rem; color: var(--ink-3); margin-top: 4px; }
.ca-steps .ca-k { margin-bottom: 14px; }
.ca-steps ol { display: grid; gap: 13px; }
.ca-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; font-size: .92rem; color: var(--ink-2); line-height: 1.45; }
.ca-steps li > span:first-child { font-family: var(--font-mono); color: var(--blue); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--ink); color: var(--paper); padding-top: clamp(56px, 8vw, 92px); }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--blue); }
.footer-top { display: grid; grid-template-columns: 2.2fr 1fr 1.3fr 1.3fr; gap: 40px; padding-bottom: 56px; }
.footer-brand { max-width: 380px; }
.footer-brand img { height: 40px; width: auto; }
.footer-tagline { color: #9AA1AA; margin-top: 24px; font-size: .95rem; line-height: 1.65; }
.footer-social { display: inline-flex; align-items: center; gap: 9px; margin-top: 26px; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #C2C8CF; border: 1px solid rgba(255,255,255,.2); padding: 9px 15px; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.footer-social svg { width: 16px; height: 16px; }
.footer-social:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

.footer-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer-h { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #6E757D; font-weight: 500; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.12); width: 100%; }
.footer-col a { color: #C2C8CF; font-size: .93rem; padding: 7px 0; transition: color .18s var(--ease), padding-left .18s var(--ease); }
.footer-col a:hover { color: #6FB4EE; padding-left: 5px; }
.footer-mail { font-family: var(--font-mono); font-size: .88rem; color: #fff !important; word-break: break-all; }
.footer-mail:hover { color: #6FB4EE !important; padding-left: 0 !important; }
.footer-meta { color: #8E96A0; font-size: .84rem; font-family: var(--font-mono); padding: 5px 0; }
.footer-cta { margin-top: 16px; font-family: var(--font-mono); font-size: .78rem !important; letter-spacing: .06em; text-transform: uppercase; color: #6FB4EE !important; }
.footer-cta:hover { color: #fff !important; }

.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.14); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .05em; color: #8E96A0; }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a:hover { color: #C2C8CF; }

/* ---------- Animations ---------- */
.anim-up { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.anim-up.in { opacity: 1; transform: none; }
.anim-line { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.anim-line.in { opacity: 1; transform: none; }
.anim-wipe { opacity: 0; clip-path: inset(0 100% 0 0); transition: clip-path .8s var(--ease), opacity .1s; }
.anim-wipe.in { opacity: 1; clip-path: inset(0 0 0 0); }

[data-delay="1"] { transition-delay: .08s; }
[data-delay="2"] { transition-delay: .16s; }
[data-delay="3"] { transition-delay: .24s; }
[data-delay="4"] { transition-delay: .32s; }
[data-delay="5"] { transition-delay: .40s; }

/* stagger for grids/lists handled via JS adding inline delay; fallback ok */

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-solid { display: none; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .sheet-grid { grid-template-columns: 1fr; gap: 22px; }
  .rail { display: flex; align-items: center; gap: 14px; }
  .rail-rule { flex: 1; margin-top: 0; width: auto; }
  .rail-label { margin-top: 0; }
  .hero-readout { grid-template-columns: repeat(2, 1fr); }
  .ro:nth-child(2) { border-right: 0; }
  .ro { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; max-width: 520px; }
}
@media (max-width: 600px) {
  .util-mid { display: none; }
  .brand img { height: 38px; }
  .to-top { width: 48px; height: 48px; }
  .spec-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .bp-row { grid-template-columns: 1fr; gap: 0; }
  .seg { grid-template-columns: repeat(2, 1fr); }
  .hero-readout { grid-template-columns: 1fr; }
  .ro { border-right: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { max-width: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .q-row { grid-template-columns: 40px 1fr; gap: 12px; padding: 18px 10px; }
  .q-row:hover { padding-left: 14px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .anim-up, .anim-line, .anim-wipe { opacity: 1; transform: none; clip-path: none; }
  .rail-rule { transform: scaleX(1); }
  .hero-scan { display: none; }
}
