/* ============================================================
   BASALT — styles.css
   Light · Apple-minimalist · single blue accent.
   References: Vectura (light SaaS, blue accent, SF type, whitespace)
   + Fabrica (monochrome restraint, numbered structure, big type).
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --white: #FFFFFF;
  --bg: #FBFBFD;          /* page */
  --surface: #F5F5F7;     /* light grey panel (Apple) */
  --surface-2: #EFEFF3;

  /* Ink */
  --ink: #1D1D1F;
  --ink-2: #515154;       /* secondary — AA on white */
  --ink-3: #86868B;       /* tertiary — decorative/non-informational only (below AA for text) */

  /* Blue accent — single accent colour */
  --blue: #0071E3;        /* button fills / fine accents */
  --blue-hover: #0064C8;  /* darkens on hover — keeps white text >=4.5:1 (AA) */
  --blue-ink: #0066CC;    /* text/links/labels — AA on white */

  /* Lines + shadows */
  --line: #D2D2D7;
  --line-2: #E8E8ED;
  --shadow-card: 0 2px 6px rgba(0,0,0,0.04), 0 12px 32px -12px rgba(0,0,0,0.10);
  --shadow-pop: 0 4px 12px rgba(0,0,0,0.06), 0 24px 60px -20px rgba(0,0,0,0.18);
  --shadow-video: 0 8px 24px rgba(0,0,0,0.08), 0 40px 80px -32px rgba(0,30,80,0.22);

  /* Type */
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Fluid type scale */
  --fs-eyebrow: 0.74rem;
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.1875rem);
  --fs-lede: clamp(1.1875rem, 1.05rem + 0.7vw, 1.5rem);
  --fs-h3: clamp(1.3rem, 1.15rem + 0.8vw, 1.75rem);
  --fs-h2: clamp(2.1rem, 1.5rem + 2.9vw, 3.75rem);
  --fs-display: clamp(2.75rem, 1.5rem + 5.6vw, 6rem);
  --fs-stat: clamp(2.5rem, 1.7rem + 3.6vw, 4.5rem);
  --fs-mega: clamp(4.5rem, 1rem + 18vw, 19rem);

  /* Space — 8pt base */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 48px; --s-6: 64px; --s-7: 96px; --s-8: 128px;
  --gutter: clamp(20px, 5vw, 72px);
  --shell: 1280px;
  --section-pad: clamp(72px, 10vw, 168px);

  /* Radii */
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 24px;
  --r-pill: 980px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-1: 0.35s;
  --dur-2: 0.6s;
  --dur-3: 0.85s;

  /* Layers */
  --z-rail: 9;
  --z-masthead: 10;
  --z-drawer: 20;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Lenis — when JS smooth-scroll is active, disable the native scroll-behavior so the
   two don't fight (a real source of scroll jank). Lenis sets these classes on <html>. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Shell ---------- */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

/* ---------- Visually hidden (SR-only) ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed; top: -120%; left: var(--gutter); z-index: 99;
  background: var(--ink); color: #fff;
  padding: 12px 18px; font: 500 0.85rem/1 var(--sans);
  border-radius: 8px;
}
.skip-link:focus { top: 16px; }

/* ---------- Scroll progress rail ---------- */
.scroll-rail {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: var(--z-rail); pointer-events: none;
  background: transparent;
}
.scroll-rail__fill {
  display: block; height: 100%; width: 0;
  background: var(--blue);
}

/* ---------- Shared bits ---------- */
.eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-ink);
  font-weight: 600;
}
.ser { font-style: normal; font-family: inherit; font-weight: inherit; }
.bone-strong { color: var(--ink); font-weight: 600; }

/* blue full-stop accent — echoes the logo */
.accent-dot {
  display: inline-block;
  width: 0.34em; height: 0.34em;
  background: var(--blue);
  border-radius: 1px;
  margin-left: 0.12em;
  vertical-align: baseline;
}
.accent-dot--display { width: 0.14em; height: 0.14em; margin-left: 0.06em; }

.section { padding-block: var(--section-pad); }
.section + .section { border-top: 1px solid var(--line-2); }
.section__head { max-width: 60ch; margin-bottom: clamp(40px, 5vw, 72px); }
.section__head--row {
  display: grid; grid-template-columns: 1fr; gap: var(--s-4);
  max-width: none; align-items: end;
}
@media (min-width: 1025px) {
  .section__head--row { grid-template-columns: 1.4fr 0.9fr; align-items: end; }
}
.section__title {
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-top: var(--s-2);
  color: var(--ink);
}
.section__aside { color: var(--ink-2); max-width: 42ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--sans);
  font-weight: 500; font-size: 1rem;
  letter-spacing: -0.01em;
  padding: 0.7em 1.3em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease),
              border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease),
              box-shadow var(--dur-1) var(--ease);
}
.btn--lg { padding: 0.85em 1.6em; font-size: 1.05rem; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); }
.btn--primary:active { transform: scale(0.98); }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); border-color: var(--line); }

/* ============================================================ MASTHEAD ============================================================ */
.masthead {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-masthead);
  transition: background var(--dur-2) var(--ease), backdrop-filter var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease);
  border-bottom: 1px solid transparent;
}
.masthead[data-elevated="true"] {
  background: rgba(251,251,253,0.8);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--line-2);
}
/* While the drawer is open, lift the masthead's stacking context above the drawer panel
   so the burger (the close affordance) and its focus ring stay visible on top. */
.masthead:has(.burger[aria-expanded="true"]) { z-index: calc(var(--z-drawer) + 1); }
.masthead__inner {
  display: flex; align-items: center; gap: var(--s-4);
  padding-block: clamp(14px, 1.6vw, 22px);
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); flex-shrink: 0; }
.brand__mark { height: clamp(20px, 2.1vw, 25px); width: auto; color: var(--ink); flex: none; }
.brand__word { font-family: var(--sans); font-weight: 600; font-size: clamp(1.02rem, 0.95rem + 0.5vw, 1.2rem); letter-spacing: -0.022em; color: var(--ink); white-space: nowrap; line-height: 1; }
.brand__dot { display: inline-block; width: 0.32em; height: 0.32em; background: var(--blue); border-radius: 1px; margin-left: 0.1em; vertical-align: baseline; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: clamp(18px, 2.2vw, 40px); }
.nav__link {
  position: relative; font-size: 0.96rem; color: var(--ink-2);
  padding-block: 4px; transition: color var(--dur-1) var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: var(--blue); transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur-2) var(--ease);
}
.nav__link:hover, .nav__link[aria-current] { color: var(--ink); }
.nav__link:hover::after, .nav__link[aria-current]::after { transform: scaleX(1); transform-origin: left; }

.masthead__cta { flex-shrink: 0; padding: 0.6em 1.15em; font-size: 0.95rem; }

.burger {
  display: none; flex-direction: column; gap: 6px; justify-content: center;
  position: relative; z-index: calc(var(--z-drawer) + 1);
  width: 44px; height: 44px; background: none; border: none; cursor: pointer; margin-left: auto;
}
.burger span { display: block; width: 26px; height: 1.8px; background: var(--ink); margin-inline: auto; transition: transform var(--dur-1) var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.9px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.9px) rotate(-45deg); }

/* ---------- Drawer ---------- */
.drawer {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  height: 100vh;
  height: 100dvh;
  background: var(--white);
  padding: clamp(96px, 18vh, 150px) var(--gutter) var(--gutter);
  display: flex; flex-direction: column; justify-content: flex-start;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  transform: translateY(-100%); opacity: 0; visibility: hidden;
  transition: transform var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease), visibility var(--dur-2);
}
.drawer[data-open="true"] { transform: translateY(0); opacity: 1; visibility: visible; }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__link {
  display: flex; align-items: baseline; gap: var(--s-3);
  font-size: clamp(1.8rem, 8vw, 2.75rem); font-weight: 600; letter-spacing: -0.03em;
  padding-block: clamp(12px, 2.2vw, 18px); border-bottom: 1px solid var(--line-2);
  color: var(--ink);
}
.drawer__num { font-size: 0.85rem; color: var(--ink-2); font-weight: 600; }
.drawer__cta { margin-top: auto; padding-top: var(--s-5); align-self: flex-start; }

/* ============================================================ HERO ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(118px, 17vh, 184px);
  padding-bottom: clamp(88px, 8vw, 120px);
  text-align: center;
  overflow: hidden;
}
/* soft blue ambient wash behind the hero */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(0,113,227,0.07), transparent 70%),
    linear-gradient(180deg, var(--white), var(--bg) 60%);
}
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero__eyebrow { margin-bottom: clamp(18px, 2.4vw, 28px); }
.hero__title {
  font-weight: 600;
  font-size: var(--fs-display);
  line-height: 1.03;
  letter-spacing: -0.035em;
  max-width: 16ch;
}
.hero__lede {
  font-size: var(--fs-lede);
  color: var(--ink-2);
  max-width: 46ch;
  margin: clamp(20px, 2.6vw, 32px) auto 0;
  line-height: 1.45;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; margin-top: clamp(28px, 3.4vw, 44px); }

/* video showcase */
.hero__showcase { margin-top: clamp(48px, 6vw, 88px); }
.hero__video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #0E1116 center/cover no-repeat;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-video);
  transform: translateZ(0);          /* own compositor layer — smoother scroll over the video */
  backface-visibility: hidden;
}
.hero__video-frame video { width: 100%; height: 100%; object-fit: cover; }

.hero__proof {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(28px, 6vw, 88px);
  margin-top: clamp(48px, 6vw, 80px);
}
.proof { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.proof__value { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.proof__label { font-size: 0.85rem; letter-spacing: 0.02em; color: var(--ink-2); max-width: 14ch; line-height: 1.3; }

/* ============================================================ MANIFESTO ============================================================ */
.manifesto { padding-block: clamp(80px, 13vw, 180px); text-align: center; }
.manifesto__text {
  font-size: clamp(1.7rem, 1rem + 3.4vw, 3.75rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 24ch;
  margin-inline: auto;
  color: var(--ink);
}
.manifesto__text .ser { color: var(--blue-ink); }

/* ============================================================ TRUSTED BY / CLIENTS ============================================================ */
.clients { padding-block: clamp(36px, 4.5vw, 64px); border-top: 1px solid var(--line-2); }
.clients__inner { display: flex; flex-direction: column; align-items: center; gap: clamp(18px, 2.6vw, 30px); text-align: center; }
.clients__label { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.clients__list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(26px, 5vw, 64px); }
.client { font-size: clamp(1.15rem, 0.9rem + 1vw, 1.6rem); font-weight: 600; letter-spacing: -0.02em; color: var(--ink-3); transition: color var(--dur-1) var(--ease); }
.client:hover { color: var(--ink); }
/* drop-in slot for real vector logos: <img class="client__logo" src="..." alt="..."> */
.client__logo { height: clamp(22px, 2.4vw, 30px); width: auto; opacity: 0.55; filter: grayscale(1); transition: opacity var(--dur-1) var(--ease); }
.client__logo:hover { opacity: 1; }

/* ============================================================ STATS ============================================================ */
.stats { border-top: 1px solid var(--line-2); padding-block: clamp(56px, 7vw, 104px); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5) var(--s-4); }
.stat { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; overflow-wrap: anywhere; }
.stat__value { font-size: var(--fs-stat); font-weight: 600; line-height: 0.95; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat__label { color: var(--ink-2); font-size: 0.95rem; max-width: 22ch; line-height: 1.45; }

/* ============================================================ APPROACH / CAPABILITIES (Fabrica numbered ledger) ============================================================ */
.caps { border-top: 1px solid var(--line); }
.cap {
  display: grid;
  grid-template-columns: 88px minmax(220px, 1.05fr) 1.4fr;
  gap: var(--s-4);
  align-items: start;
  padding-block: clamp(28px, 3.2vw, 48px);
  border-bottom: 1px solid var(--line);
  transition: background var(--dur-2) var(--ease);
}
.cap:hover { background: var(--surface); }
.cap__num { font-size: 0.9rem; color: var(--ink-2); font-weight: 600; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; padding-top: 0.5em; }
.cap__title { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.02em; }
.cap__desc { color: var(--ink-2); max-width: 46ch; }

/* ============================================================ MODEL ============================================================ */
.model { background: var(--surface); border-top: 1px solid var(--line-2); }
.model__head {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 80px);
  align-items: end; margin-bottom: clamp(48px, 6vw, 88px);
}
.model__title { font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4.75rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.03em; margin-top: var(--s-2); }
.model__title .ser { color: var(--blue-ink); }
.model__body { color: var(--ink-2); font-size: var(--fs-lede); line-height: 1.5; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.step {
  background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: clamp(26px, 2.8vw, 40px); display: flex; flex-direction: column; gap: var(--s-2);
  box-shadow: var(--shadow-card);
}
.step__num { font-size: 0.85rem; color: var(--ink-2); font-weight: 600; letter-spacing: 0.06em; margin-bottom: var(--s-2); display: inline-flex; align-items: center; gap: 10px; }
.step__num::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.step__title { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.02em; }
.step__desc { color: var(--ink-2); }

/* ============================================================ WORK ============================================================ */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.case {
  background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: clamp(24px, 2.4vw, 36px);
  display: flex; flex-direction: column; gap: var(--s-3); min-height: clamp(240px, 26vw, 380px);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.case__frame { display: flex; align-items: center; justify-content: space-between; padding-bottom: var(--s-3); border-bottom: 1px solid var(--line-2); margin-bottom: auto; }
.case__index { font-size: 0.85rem; color: var(--ink-2); font-weight: 600; letter-spacing: 0.04em; }
.case__cat { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.case__title { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.02em; }
.case__desc { color: var(--ink-2); }

/* ============================================================ PULL QUOTE ============================================================ */
.quote { padding-block: clamp(88px, 12vw, 176px); border-top: 1px solid var(--line-2); text-align: center; }
.quote__text { font-size: clamp(1.7rem, 1rem + 3.4vw, 3.75rem); font-weight: 600; line-height: 1.14; letter-spacing: -0.025em; max-width: 22ch; margin-inline: auto; color: var(--ink); }
.quote__text .ser { color: var(--blue-ink); }
.quote__by { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; margin-top: var(--s-4); }

/* ============================================================ FAQ ============================================================ */
.faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq .section__head { position: sticky; top: clamp(96px, 14vh, 130px); margin-bottom: 0; }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding-block: clamp(20px, 2.2vw, 28px); cursor: pointer; list-style: none;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem); font-weight: 500; letter-spacing: -0.015em;
  color: var(--ink); transition: color var(--dur-1) var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--blue-ink); }
.qa__mark { position: relative; flex-shrink: 0; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; transition: border-color var(--dur-1) var(--ease); }
.qa summary:hover .qa__mark { border-color: var(--blue); }
.qa__mark::before, .qa__mark::after { content: ""; position: absolute; top: 50%; left: 50%; background: var(--blue); transition: transform var(--dur-2) var(--ease); }
.qa__mark::before { width: 9px; height: 1.6px; transform: translate(-50%, -50%); }
.qa__mark::after { width: 1.6px; height: 9px; transform: translate(-50%, -50%); }
.qa[open] .qa__mark::after { transform: translate(-50%, -50%) scaleY(0); }
.qa__panel { overflow: hidden; }
.qa__panel p { padding-bottom: clamp(20px, 2.2vw, 28px); color: var(--ink-2); max-width: 60ch; }
.qa:not([open]) .qa__panel { display: none; }

/* ============================================================ CTA ============================================================ */
.cta { text-align: center; border-top: 1px solid var(--line-2); }
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta__title { font-size: var(--fs-h2); font-weight: 600; line-height: 1.04; letter-spacing: -0.03em; margin-top: var(--s-2); }
.cta__sub { color: var(--ink-2); font-size: var(--fs-lede); max-width: 44ch; margin-top: var(--s-3); }
.cta__actions { display: flex; flex-direction: column; align-items: center; gap: var(--s-3); margin-top: clamp(32px, 4vw, 48px); }
.cta__email { font-size: 0.95rem; color: var(--blue-ink); position: relative; font-weight: 500; display: inline-block; padding: 10px 0; }
.cta__email::after { content: ""; position: absolute; left: 0; bottom: 7px; width: 100%; height: 1.5px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform var(--dur-2) var(--ease); }
.cta__email:hover::after { transform: scaleX(1); transform-origin: left; }

/* ============================================================ FOOTER ============================================================ */
.footer {
  border-top: 1px solid var(--line-2); background: var(--surface);
  padding-top: clamp(56px, 7vw, 104px); padding-bottom: var(--s-5);
  /* content-visibility removed: its on-approach rendering caused scroll hitching near the footer */
}
.footer__top { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: start; }
.footer__brand { color: var(--ink); }
.footer__brand .brand__mark { height: 26px; }
.footer__brand .brand__word { font-size: 1.18rem; }
.footer__tag { color: var(--ink-2); margin-top: var(--s-3); max-width: 28ch; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.footer__col { display: flex; flex-direction: column; gap: 4px; }
.footer__h { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; margin-bottom: 6px; }
.footer__col a { color: var(--ink-2); font-size: 0.95rem; width: fit-content; padding-block: 8px; transition: color var(--dur-1) var(--ease); }
.footer__col a:hover { color: var(--blue-ink); }
.footer__col-soon { color: var(--ink-2); font-size: 0.95rem; width: fit-content; padding-block: 8px; cursor: default; }

.footer__wordmark {
  font-weight: 700; letter-spacing: -0.05em; line-height: 0.8;
  font-size: var(--fs-mega); color: #E6E6EC;
  margin-block: clamp(36px, 5vw, 80px) clamp(20px, 3vw, 36px);
  user-select: none; display: flex; align-items: flex-end;
  max-width: 100%; overflow: hidden;
}
.footer__wordmark .accent-dot { background: rgba(0,113,227,0.18); align-self: flex-end; margin-bottom: 0.12em; }

.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2);
  padding-top: var(--s-4); border-top: 1px solid var(--line-2);
  font-size: 0.78rem; letter-spacing: 0.01em; color: var(--ink-2);
}
.footer__legal-tag { color: var(--blue-ink); font-weight: 500; }

/* ============================================================ RESPONSIVE ============================================================ */
@media (max-width: 1024px) {
  .cap { grid-template-columns: 64px 1fr; }
  .cap__title { grid-column: 2; }
  .cap__desc { grid-column: 2; }
  .model__head { grid-template-columns: 1fr; }
  .faq__grid { grid-template-columns: 1fr; }
  .faq .section__head { position: static; }
  .steps, .cases { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .footer__col a { overflow-wrap: anywhere; }
  .br-desktop { display: none; }
}
@media (max-width: 860px) {
  .nav, .masthead__cta { display: none; }
  .burger { display: flex; }
  .steps, .cases { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: var(--s-5); }
}
@media (max-width: 560px) {
  .hero__proof { flex-direction: column; align-items: center; gap: var(--s-4); }
  .proof__label { max-width: 18ch; }
  .cap { grid-template-columns: 1fr; gap: var(--s-2); }
  .cap__title, .cap__desc { grid-column: auto; }
  .cap__num { padding-top: 0; }
  .stats__grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  /* full-width only for the in-page CTA pairs — NOT the drawer CTA (it hugs, left-aligned) */
  .hero__actions .btn, .cta__actions .btn { width: 100%; }
}

/* Short viewports (landscape phones): reclaim vertical space and keep the drawer reachable. */
@media (max-height: 560px) {
  .masthead__inner { padding-block: 10px; }
  .brand__mark { height: 19px; }
  .hero { padding-top: 84px; }
  .drawer { padding-top: 80px; padding-bottom: var(--s-4); }
  .drawer__link { padding-block: clamp(8px, 1.2vw, 12px); font-size: clamp(1.4rem, 5vw, 1.9rem); }
  .drawer__cta { padding-top: var(--s-3); }
}

/* ============================================================ ANTI-FOUC PRE-HIDE (motion only; main.js strips .anim if GSAP fails) ============================================================ */
.anim [data-reveal] { opacity: 0; transform: translateY(24px); }
.anim [data-reveal-lines] { opacity: 0; transform: translateY(36px); }

/* ============================================================ MOTION SAFETY ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
