/* ============================================================
   SAPIURA — landing styles
   Swiss/editorial minimalism · light iridescent surfaces
   ============================================================ */

:root {
  --ink: #14161a;
  --ink-soft: #565b63;
  --ink-faint: #9aa0a8;
  --bg: #fafbfc;
  --surface: rgba(255, 255, 255, 0.55);
  --line: rgba(20, 22, 26, 0.08);
  --line-strong: rgba(20, 22, 26, 0.14);
  --mint: #8de6b0;
  --sky: #4cc9f0;
  --lilac: #c8b6ff;
  --peach: #ffd6a5;
  --radius-pill: 999px;
  --radius-card: 18px;
  --font: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --nav-h: 64px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: initial; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; }

.container {
  width: min(1720px, 92vw);
  margin-inline: auto;
}

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__mark {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700; letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--ink) 40%, var(--ink-faint) 50%, var(--ink) 60%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 1.4s linear infinite;
}
@keyframes shine { to { background-position: -200% 0; } }

/* ---------- ambient background ---------- */
.page-bg {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
}
.page-bg canvas { width: 100%; height: 100%; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(1240px, 94vw);
}
.nav__pill {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  height: var(--nav-h);
  padding: 0 10px 0 clamp(20px, 3vw, 32px);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 32px rgba(20, 22, 26, 0.06);
}
.nav__logo {
  display: inline-block;
  margin-right: auto;
  line-height: 0;
}
.nav__logo img {
  height: 26px; width: auto; display: block;
}
.nav__links { display: flex; gap: clamp(14px, 2vw, 28px); }
.nav__link {
  color: var(--ink-soft); font-size: 1rem;
  transition: color 0.25s;
  position: relative;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__link--active { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill);
  padding: 12px 26px;
  font-weight: 600; font-size: 1rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, background 0.3s;
  will-change: transform;
}
.btn--dark {
  background: var(--ink); color: #fff;
  box-shadow: 0 4px 18px rgba(20, 22, 26, 0.22);
}
.btn--dark:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 28px rgba(20, 22, 26, 0.28); }
.btn--dark:active { transform: translateY(0) scale(0.99); }
.btn--lg { padding: 18px 44px; font-size: 1.1rem; }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav__burger span {
  display: block; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.nav__mobile {
  display: none;
  margin-top: 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 12px 40px rgba(20, 22, 26, 0.1);
  padding: 14px;
  flex-direction: column; gap: 4px;
}
.nav__mobile.is-open { display: flex; }
.nav__mobile a {
  padding: 12px 16px; border-radius: 14px;
  font-weight: 500;
}
.nav__mobile a:hover { background: rgba(20, 22, 26, 0.05); }

/* ---------- hero (home) ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + 40px);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
.hero__title {
  font-size: clamp(2.6rem, 5.4vw, 5.4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
/* single-column hero (visual removed until final video is provided) */
.hero--solo .hero__inner { grid-template-columns: 1fr; }
.hero--solo .hero__title { max-width: 20ch; }

.hero__accent { font-style: normal; color: var(--ink-faint); white-space: nowrap; }
.hero__caret {
  display: inline-block; width: 3px; height: 0.85em;
  margin-left: 2px; vertical-align: -0.08em;
  background: var(--ink-faint);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.hero__sub {
  margin-top: clamp(24px, 3vw, 44px);
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero__visual {
  position: relative;
  aspect-ratio: 1 / 0.82;
  border-radius: 28px;
  overflow: hidden;
}
.hero__video, .hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__video { display: none; }
.hero__video.is-ready { display: block; }
.hero__video.is-ready + .hero__canvas { display: none; }

/* ---------- entry cards ---------- */
.cards { padding: clamp(60px, 10vh, 140px) 0 clamp(80px, 14vh, 180px); }
.cards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 520px));
  justify-content: center;
  gap: 24px;
}
.card {
  display: flex; align-items: center; gap: 18px;
  padding: clamp(22px, 3vw, 34px) clamp(24px, 3vw, 36px);
  border-radius: var(--radius-card);
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 40px rgba(20, 22, 26, 0.05);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.card--link:hover { transform: translateY(-4px); box-shadow: 0 22px 60px rgba(20, 22, 26, 0.1); }
.card__icon { width: 40px; height: 40px; flex: none; }
.card__label { font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 500; letter-spacing: -0.01em; }
.card__arrow {
  margin-left: auto; color: var(--ink-faint);
  font-size: 1.3rem;
  transition: transform 0.35s var(--ease-out), color 0.35s;
}
.card--link:hover .card__arrow { transform: translate(4px, -4px); color: var(--ink); }

/* ---------- agencies: sub-hero ---------- */
.subhero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 48px) 0 48px;
}
.subhero__eyebrow {
  font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 28px;
}
.subhero__title {
  font-size: clamp(2.2rem, 4.6vw, 4.6rem);
  font-weight: 500; line-height: 1.08; letter-spacing: -0.028em;
  max-width: 24ch;
}
.subhero__lead {
  margin-top: clamp(24px, 3vh, 40px);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ---------- statement ---------- */
.statement { padding: clamp(80px, 16vh, 200px) 0; }
.statement__text {
  font-size: clamp(1.8rem, 3.6vw, 3.6rem);
  font-weight: 500; line-height: 1.15; letter-spacing: -0.025em;
  max-width: 26ch;
}
.statement__text--center { margin: 0 auto; text-align: center; max-width: 24ch; }
.statement__text .w { opacity: 0.12; display: inline-block; }
.statement__body {
  margin-top: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 58ch;
}

/* ---------- horizontal-scroll headline (pinned) ---------- */
.hscroll { position: relative; }
.hscroll__viewport {
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hscroll__line {
  margin: 0;
  white-space: nowrap;
  padding: 0 18vw 0 95vw;
  font-size: 34vh;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  will-change: transform;
}
.hscroll__line .ch-word { display: inline-block; white-space: nowrap; }
.hscroll__line .ch { display: inline-block; will-change: transform; }

@media (max-width: 980px) {
  .hscroll__viewport { height: auto; padding: clamp(64px, 12vh, 140px) 0; overflow: hidden; }
  .hscroll__line {
    white-space: normal;
    padding: 0;
    font-size: clamp(2.4rem, 12vw, 5rem);
    letter-spacing: -0.02em;
    text-align: center;
    transform: none !important;
  }
  .hscroll__line .ch { transform: none !important; }
}

/* ---------- sections shared ---------- */
.section-title {
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  font-weight: 500; letter-spacing: -0.025em; line-height: 1.08;
  margin-bottom: clamp(36px, 6vh, 72px);
  max-width: 20ch;
}

/* ---------- benefits ---------- */
.benefits { padding: clamp(60px, 10vh, 140px) 0 clamp(20px, 2.5vh, 40px); }
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(18px, 2vw, 28px);
}
.benefit {
  padding: clamp(26px, 3vw, 40px);
  border-radius: var(--radius-card);
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 40px rgba(20, 22, 26, 0.045);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s;
}
.benefit:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(20, 22, 26, 0.09); }
.benefit__num {
  display: inline-block;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 22px;
}
.benefit h3 {
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  font-weight: 600; letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.benefit p { color: var(--ink-soft); font-size: 1.02rem; }

/* ---------- focus ---------- */
.focus { padding: clamp(28px, 3.5vh, 56px) 0 clamp(28px, 3.5vh, 56px); }
.focus__body {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ---------- systems (pinned) ---------- */
.systems { padding: clamp(28px, 4vh, 52px) 0 0; }
.systems__intro {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: clamp(40px, 7vh, 90px);
}
.systems__pin { position: relative; }
.systems__stage {
  position: relative;
  height: 100vh; height: 100svh;
  display: grid; place-items: center;
}
.system {
  grid-area: 1 / 1;
  width: min(860px, 100%);
  padding: clamp(30px, 4vw, 56px);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 24px 80px rgba(20, 22, 26, 0.09);
  will-change: transform, opacity;
}
.system__head {
  display: flex; align-items: baseline; gap: 18px;
  margin-bottom: 10px;
}
.system__index {
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.1em;
  color: var(--ink-faint);
}
.system h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 600; letter-spacing: -0.02em;
}
.system__tag {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 18px;
}
.system__desc { color: var(--ink-soft); font-size: 1.05rem; max-width: 60ch; margin-bottom: 22px; }
.system__outcome {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 1.02rem;
  color: var(--ink-soft);
}
.system__outcome span { font-weight: 600; color: var(--ink); margin-right: 6px; }
.system--statement,
.system--title,
.system--lead,
.system--closing {
  background: transparent;
  border: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  text-align: center;
  display: grid;
  place-items: center;
}
.system--statement p {
  font-size: clamp(1.8rem, 3.4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.18;
  max-width: 24ch;
  color: var(--ink);
}
.system--statement .w { display: inline-block; }
.system--title h2 { overflow: visible; }
.system--title h2 span { will-change: transform; }
.system--title h2 {
  font-size: clamp(2.2rem, 4.4vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.06;
  max-width: 18ch;
  color: var(--ink);
}
.system--lead p {
  font-size: clamp(1.3rem, 2.4vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.22;
  max-width: 30ch;
  color: var(--ink);
}
.system--closing p {
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 26ch;
  color: var(--ink);
}

/* ---------- FAQ ---------- */
.faq { padding: clamp(60px, 10vh, 140px) 0; }
.faq__list { max-width: 880px; margin-inline: auto; }
.faq .section-title { text-align: center; max-width: none; }
.faq__item {
  border-top: 1px solid var(--line-strong);
}
.faq__item:last-child { border-bottom: 1px solid var(--line-strong); }
.faq__item summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: clamp(20px, 2.6vw, 30px) 4px;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 500; letter-spacing: -0.01em;
  cursor: pointer;
  transition: color 0.25s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--ink-soft); }
.faq__icon {
  position: relative; flex: none;
  width: 34px; height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}
.faq__icon::before, .faq__icon::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 12px; height: 1.5px; background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease-out);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__answer { overflow: hidden; }
.faq__answer p {
  padding: 0 4px clamp(22px, 3vw, 32px);
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 64ch;
}

/* ---------- CTA ---------- */
.cta { padding: clamp(100px, 18vh, 240px) 0; }
.cta__inner { text-align: center; }
.cta__title {
  font-size: clamp(2.6rem, 5.5vw, 5.5rem);
  font-weight: 500; letter-spacing: -0.03em;
}
.cta__sub {
  margin: 18px 0 40px;
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  color: var(--ink-soft);
}

/* ---------- contact form (Talk to us) ---------- */
.contact { padding: calc(var(--nav-h) + clamp(64px, 12vh, 130px)) 0 clamp(80px, 14vh, 180px); }
.contact__inner { max-width: 960px; margin-inline: auto; }
.contact__title {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 500; letter-spacing: -0.03em; line-height: 1.05;
}
.contact__intro {
  margin-top: 18px;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: clamp(40px, 6vh, 72px);
}

.form { display: flex; flex-direction: column; gap: clamp(22px, 3vh, 34px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.form__field { display: flex; flex-direction: column; min-width: 0; }
.form__label {
  font-size: 1.05rem; font-weight: 600; color: var(--ink);
  margin-bottom: 10px;
}
.form__label .req { color: var(--ink); margin-left: 2px; }
.form__optional { color: var(--ink-faint); font-weight: 500; }
.form__hint {
  font-size: 0.92rem; color: var(--ink-faint);
  margin: -2px 0 12px;
  max-width: 62ch;
}
.form__input, .form__textarea, .form__select {
  font: inherit; font-size: 1.05rem; color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 14px 16px;
  width: 100%;
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s;
}
.form__input::placeholder, .form__textarea::placeholder { color: var(--ink-faint); }
.form__input:focus, .form__textarea:focus, .form__select:focus {
  outline: none;
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(20, 22, 26, 0.08);
}
.form__input:hover, .form__textarea:hover, .form__select:hover { border-color: rgba(20, 22, 26, 0.28); }
.form__textarea { min-height: 190px; resize: vertical; line-height: 1.5; }
.form__phone { display: flex; gap: 10px; }
.form__phone .form__select { width: auto; flex: 0 0 auto; cursor: pointer; }
.form__phone .form__input { flex: 1 1 auto; }
.form__examples {
  margin: 0 0 14px; padding-left: 20px;
  color: var(--ink-faint); font-size: 0.92rem;
}
.form__examples li { margin: 3px 0; }
.form__recaptcha {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink-soft);
  font-size: 0.9rem;
  width: fit-content;
}
.form__recaptcha-check {
  width: 22px; height: 22px; flex: none;
  border: 2px solid var(--line-strong);
  border-radius: 4px;
}
/* when the real Google widget renders, drop the placeholder chrome */
.form__recaptcha--live {
  border: none; background: none; padding: 0;
  display: block; width: auto;
}
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.form__status { margin: 0; min-height: 1.2em; font-size: 0.95rem; color: #c0392b; }
.form__status--ok { color: var(--ink-soft); }
.form__consent {
  font-size: 0.95rem; color: var(--ink-soft);
  line-height: 1.6; max-width: 78ch;
}
.form__consent a { text-decoration: underline; text-underline-offset: 2px; }
.form__consent a:hover { color: var(--ink); }
.form__submit { align-self: flex-start; margin-top: 4px; }
.form__done {
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  text-align: center;
}
.form__done h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 12px; }
.form__done p { color: var(--ink-soft); }

/* ---------- legal pages (Privacy / Terms) ---------- */
.legal { padding: calc(var(--nav-h) + clamp(64px, 12vh, 130px)) 0 clamp(80px, 14vh, 180px); }
.legal__inner { max-width: 880px; margin-inline: auto; }
.legal__eyebrow {
  font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 28px;
}
.legal__body { font-size: 1.02rem; line-height: 1.65; color: var(--ink); }
.legal__body p { margin: 0 0 14px; }
.legal__body p:first-child strong { font-size: 1.15em; }
.legal__body em { color: var(--ink-soft); }
.legal__body h1 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 600; letter-spacing: -0.015em; line-height: 1.25;
  margin: clamp(34px, 5vh, 52px) 0 16px;
}
.legal__body a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal__body a:hover { color: var(--ink-soft); }
.legal__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 22px;
  font-size: 0.98rem;
}
.legal__body th, .legal__body td {
  border: 1px solid var(--line-strong);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
.legal__body th { background: rgba(20, 22, 26, 0.035); }
.legal__body td p, .legal__body th p { margin: 0; }
.legal__body table p + p { margin-top: 8px; }
@media (max-width: 640px) {
  .legal__body table { display: block; overflow-x: auto; }
}

/* ---------- footer ---------- */
.footer { padding: clamp(40px, 6vh, 80px) 0 28px; overflow: hidden; }
.footer__rule { height: 1px; background: var(--line); margin-bottom: clamp(28px, 4vh, 48px); }
.footer__links {
  display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 56px);
  color: var(--ink-soft);
  margin-bottom: clamp(40px, 8vh, 100px);
}
.footer__links a { transition: color 0.25s; }
.footer__links a:hover { color: var(--ink); }
.footer__wordmark {
  line-height: 0.82;
  margin-bottom: clamp(40px, 7vh, 80px);
}
.footer__wordmark span {
  display: block;
  font-size: clamp(4rem, 17.5vw, 21rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  color: rgba(20, 22, 26, 0.07);
  user-select: none;
  will-change: transform;
}
.footer__legal {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 14px clamp(18px, 3vw, 40px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft); font-size: 0.95rem;
}
.footer__legal a:hover { color: var(--ink); }
.footer__tag { color: var(--ink-faint); }

/* ---------- reveal primitives ---------- */
/* Clip-free reveal: lines rise + fade in. Avoids the overflow-clip trap where a
   sub-pixel offset leaves text permanently hidden. */
[data-reveal] { opacity: 0; transform: translateY(28px); }
[data-split] .line { display: block; }
[data-split] .line > span { display: block; opacity: 0; transform: translateY(0.5em); }
.no-js [data-reveal], .no-js [data-split] .line > span { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
  .hero__caret { animation: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-height: 34vh; aspect-ratio: auto; height: 30vh; }
  .hero { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 40px; }
  .subhero { padding-top: calc(var(--nav-h) + 40px); }
  .systems__stage { height: auto; min-height: 0; display: flex; flex-direction: column; gap: 20px; padding: 10px 0 40px; }
  .system { grid-area: auto; }
}
@media (max-width: 640px) {
  .form__row { grid-template-columns: 1fr; }
  .form__submit { align-self: stretch; }
}
@media (max-width: 560px) {
  .footer__legal { flex-direction: column; align-items: flex-start; }
}
