/* ==========================================================================
   Quant Designs — styles
   Layout concept: an engineering ledger. Calm paper surfaces, navy ink,
   one teal signal lifted from the faceted Q in the logo, dark bands for the
   sections that carry weight (services, projects, founder, consult).
   ========================================================================== */

/* ---- Tokens --------------------------------------------------------------- */
:root {
  --ink-950: #070B16;
  --ink-900: #0C1427;
  --ink-800: #121D36;
  --ink-700: #1B2A4A;
  --ink-600: #2B3D63;
  --ink-500: #4B5B7E;
  --ink-400: #6C7A99;
  --ink-300: #9AA6BF;
  --ink-200: #C8D0DF;
  --ink-100: #E5EAF2;
  --ink-50:  #F1F4F8;
  --paper:   #F7F9FC;
  --white:   #FFFFFF;

  --navy-700: #1F3A6E;
  --navy-600: #27499A;
  --blue-500: #2F86E8;
  --teal-700: #0E8A88;
  --teal-600: #149F9C;
  --teal-500: #1DB3B0;
  --teal-400: #3FC9C6;
  --cyan-400: #3FD3EC;
  --teal-100: #D6F4F3;
  --teal-50:  #EAFAF9;

  --amber-500: #E9A500;
  --red-500:   #E5484D;
  --green-500: #1FAE5B;

  --bg:            var(--paper);
  --surface:       var(--white);
  --surface-2:     var(--ink-50);
  --text:          var(--ink-900);
  --text-2:        var(--ink-500);
  --text-3:        var(--ink-400);
  --border:        var(--ink-100);
  --border-strong: var(--ink-200);
  --accent:        var(--teal-500);
  --accent-strong: var(--teal-600);
  --accent-text:   var(--teal-700);
  --accent-soft:   var(--teal-50);
  --primary:       var(--navy-700);
  --primary-hover: var(--navy-600);
  --primary-ink:   var(--white);
  --focus:         var(--blue-500);

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-xs:  0.75rem;
  --fs-sm:  0.875rem;
  --fs-md:  1rem;
  --fs-lg:  1.125rem;
  --fs-xl:  1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  --fs-4xl: clamp(2.125rem, 1.6rem + 2vw, 3rem);
  --fs-5xl: clamp(2.5rem, 1.6rem + 3.6vw, 4.6rem);

  --lh-tight: 1.02;
  --lh-snug:  1.2;
  --lh-body:  1.6;
  --tracking-tight: -0.028em;
  --tracking-wide:  0.08em;

  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem; --sp-5: 1.5rem;
  --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem; --sp-9: 6rem; --sp-10: 8rem;

  --section-pad: clamp(3.5rem, 6vw, 5.5rem);
  --container: 1200px;
  --container-narrow: 760px;
  --gutter: clamp(1rem, 4vw, 2rem);

  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(12, 20, 39, 0.06), 0 1px 3px rgba(12, 20, 39, 0.04);
  --shadow-md: 0 4px 12px rgba(12, 20, 39, 0.08), 0 2px 4px rgba(12, 20, 39, 0.04);
  --shadow-lg: 0 24px 48px -16px rgba(12, 20, 39, 0.22), 0 8px 16px -8px rgba(12, 20, 39, 0.08);
  --shadow-glow: 0 0 0 1px rgba(29, 179, 176, 0.35), 0 12px 40px -8px rgba(29, 179, 176, 0.45);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms; --dur-base: 250ms; --dur-slow: 600ms;
}

.on-ink {
  --bg:            var(--ink-900);
  --surface:       var(--ink-800);
  --surface-2:     var(--ink-700);
  --text:          var(--white);
  --text-2:        var(--ink-300);
  --text-3:        var(--ink-400);
  --border:        rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --accent-text:   var(--teal-400);
  --accent-soft:   rgba(29, 179, 176, 0.14);
  --primary:       var(--teal-500);
  --primary-hover: var(--teal-400);
  --primary-ink:   var(--ink-950);
  background: var(--bg);
  color: var(--text);
}

/* ---- Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
svg { display: inline-block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-snug);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--fs-5xl); line-height: var(--lh-tight); font-weight: 800; }
h2 { font-size: var(--fs-4xl); font-weight: 700; }
h3 { font-size: var(--fs-xl); font-weight: 700; }
h4 { font-size: var(--fs-sm); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-wide); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--r-sm); }
.mono { font-family: var(--font-mono); font-size: 0.92em; font-variant-numeric: tabular-nums; }
.link { color: var(--accent-text); font-weight: 600; border-bottom: 1px solid transparent; transition: border-color var(--dur-fast); }
.link:hover { border-bottom-color: currentColor; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-pad); }
/* Back-to-back sections on the same background share one gap, not two */
.section:not(.on-ink) + .section:not(.on-ink), .section.on-ink + .section.on-ink { padding-top: 0; }
.br-desktop { display: none; }
@media (min-width: 900px) { .br-desktop { display: inline; } }
.nowrap { white-space: nowrap; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--accent-text);
  margin-bottom: var(--sp-4);
}
.section__head { max-width: 680px; margin-bottom: var(--sp-7); display: grid; gap: var(--sp-4); }
.section__head .eyebrow { margin-bottom: 0; }
.section__head p:not(.eyebrow) { font-size: var(--fs-lg); color: var(--text-2); }
.section__head--center { margin-inline: auto; text-align: center; }

/* ---- Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 0.7rem 1.25rem;
  font-weight: 600; font-size: var(--fs-sm); line-height: 1;
  border-radius: var(--r-pill); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-base), background var(--dur-fast), border-color var(--dur-fast);
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--primary); color: var(--primary-ink); }
.btn--primary:hover { background: var(--primary-hover); box-shadow: var(--shadow-glow); }
.btn--dark { background: var(--ink-900); color: var(--white); }
.btn--dark:hover { background: var(--ink-700); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--text); }
.btn--lg { padding: 0.95rem 1.6rem; font-size: var(--fs-md); }
.btn--block { width: 100%; }

/* ---- Header ----------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 249, 252, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base), background var(--dur-base);
}
.header.is-scrolled { border-bottom-color: var(--border); background: rgba(247, 249, 252, 0.92); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); height: 72px; }
.logo { display: inline-flex; align-items: center; gap: var(--sp-3); }
.logo__mark { width: 36px; height: 36px; }
.logo__word { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--navy-700); }
.logo__word span { font-weight: 500; color: var(--text-3); }
.on-ink .logo__word { color: var(--white); }
.nav { display: none; gap: var(--sp-5); }
.nav a { font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); transition: color var(--dur-fast); }
.nav a:hover { color: var(--text); }
.header__cta { display: flex; align-items: center; gap: var(--sp-2); }
.header__cta .btn--ghost { display: none; }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
  width: 40px; height: 40px; padding: 0 9px; border: 0; background: transparent; cursor: pointer; border-radius: var(--r-sm);
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--dur-base), opacity var(--dur-base); }
.header.is-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.header.is-open .nav {
  display: flex; flex-direction: column; gap: var(--sp-4);
  position: absolute; left: 0; right: 0; top: 72px;
  padding: var(--sp-5) var(--gutter) var(--sp-6);
  background: var(--paper); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.header.is-open .nav a { font-size: var(--fs-lg); }
.nav__cta { display: none; }
.header.is-open .nav__cta { display: inline-flex; align-self: flex-start; margin-top: var(--sp-2); color: var(--primary-ink); font-size: var(--fs-sm); }
@media (max-width: 560px) {
  .header__cta .btn--primary { display: none; }
  .logo__mark { width: 32px; height: 32px; }
}
@media (min-width: 1000px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .header__cta .btn--ghost { display: inline-flex; }
}

/* ---- Hero ----------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); }
.hero__facets {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(135deg, rgba(29, 179, 176, 0.10), transparent 40%),
    radial-gradient(60% 50% at 85% 20%, rgba(47, 134, 232, 0.14), transparent 70%);
}
.hero__facets::before, .hero__facets::after {
  content: ""; position: absolute; width: 38vw; height: 38vw; max-width: 520px; max-height: 520px; opacity: 0.55;
  clip-path: polygon(30% 4%, 70% 4%, 96% 30%, 96% 70%, 70% 96%, 30% 96%, 4% 70%, 4% 30%);
}
.hero__facets::before { right: -10vw; top: -12vw; background: linear-gradient(135deg, var(--teal-100), transparent 70%); }
.hero__facets::after { right: 22vw; bottom: -26vw; background: linear-gradient(315deg, rgba(39, 73, 154, 0.12), transparent 70%); }
.hero__inner { position: relative; display: grid; gap: var(--sp-7); align-items: center; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.15fr 0.85fr; gap: var(--sp-8); } }
.hero__copy { display: grid; gap: var(--sp-5); max-width: 640px; }
.hero__copy .eyebrow { margin-bottom: 0; }
.hero h1 { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem); }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.hero__lead { font-size: var(--fs-lg); color: var(--text-2); max-width: 58ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero__facts { display: flex; flex-wrap: wrap; gap: var(--sp-5) var(--sp-7); margin: var(--sp-2) 0 0; padding-top: var(--sp-5); border-top: 1px solid var(--border-strong); }
.hero__facts div { display: grid; gap: 2px; }
.hero__facts dt { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--text-3); }
.hero__facts dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }

.hero__visual { position: relative; display: grid; justify-items: center; gap: var(--sp-4); }
.portrait {
  position: relative; width: min(100%, 420px); aspect-ratio: 3 / 4;
}
.portrait img {
  position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover;
  clip-path: polygon(22% 0, 78% 0, 100% 16%, 100% 84%, 78% 100%, 22% 100%, 0 84%, 0 16%);
}
.portrait__tile { position: absolute; z-index: 0; width: 44%; aspect-ratio: 1; clip-path: polygon(0 0, 100% 0, 0 100%); }
.portrait__tile--a { left: -9%; top: -6%; background: linear-gradient(135deg, var(--teal-500), var(--cyan-400)); }
.portrait__tile--b { right: -9%; bottom: -6%; background: linear-gradient(315deg, var(--navy-700), var(--navy-600)); transform: rotate(180deg); }
.portrait__caption { position: relative; z-index: 2; margin-top: var(--sp-5); font-size: var(--fs-sm); color: var(--text-2); }
.portrait__caption strong { color: var(--text); }

.ship-card {
  position: absolute; z-index: 2; right: 0; bottom: 14%; margin: 0;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: var(--sp-4) var(--sp-5);
  font-size: var(--fs-sm); display: grid; gap: var(--sp-3);
  transform: translateX(8%);
}
.ship-card__head { display: flex; align-items: center; gap: var(--sp-2); font-weight: 600; color: var(--text-2); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.04em; }
.ship-card .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 4px rgba(31, 174, 91, 0.18); }
.ship-card ul { display: grid; gap: var(--sp-2); }
.ship-card li { display: flex; align-items: center; gap: var(--sp-2); font-weight: 500; }
.ship-card li .mono { color: var(--text-2); margin-left: auto; }
.ship-card svg.ok { width: 16px; height: 16px; color: var(--teal-600); flex: none; }
@media (max-width: 899px) {
  .hero__visual { margin-top: var(--sp-4); }
  .ship-card { position: static; transform: none; width: min(100%, 420px); }
  .portrait__tile--a { left: -3%; top: -3%; }
  .portrait__tile--b { right: -3%; bottom: -3%; }
}

/* ---- Stack strip ------------------------------------------------------------ */
.stack-strip { border-block: 1px solid var(--border); background: var(--white); }
.stack-strip__inner { display: flex; align-items: center; gap: var(--sp-5); height: 60px; }
.stack-strip__label { flex: none; font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--text-3); }
.marquee { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: var(--sp-6); width: max-content; animation: marquee 36s linear infinite; }
.marquee__track li { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); color: var(--text-2); white-space: nowrap; }
.marquee__track li::before { content: "◆"; font-size: 0.5em; color: var(--accent); margin-right: var(--sp-3); vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Last mile --------------------------------------------------------------- */
.checklist { display: grid; gap: var(--sp-3); }
.checklist li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.checklist svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--accent-text); }
.lastmile { display: grid; gap: var(--sp-5); align-items: start; }
@media (min-width: 1000px) { .lastmile { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--sp-6); } }
.gaps { display: grid; gap: var(--sp-3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) and (max-width: 999px) { .gaps { grid-template-columns: repeat(3, 1fr); } }
.gap { position: relative; display: grid; gap: var(--sp-1); align-content: start; padding: var(--sp-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); transition: border-color var(--dur-base), box-shadow var(--dur-base); }
.gap__icon { width: 40px; height: 40px; padding: 9px; margin-bottom: var(--sp-2); border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent-text); transition: background var(--dur-base), color var(--dur-base); }
.gap strong { font-family: var(--font-display); font-size: var(--fs-lg); }
.gap__swap { display: flex; flex-wrap: wrap; gap: 0 var(--sp-2); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--accent-text); }
.gap__swap s { color: var(--text-3); }
.gap__swap s::after { content: "→"; display: inline-block; margin-left: var(--sp-2); color: var(--text-3); }
.gap__st { position: absolute; top: var(--sp-4); right: var(--sp-4); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--teal-500); color: var(--white); }
.gap__st svg { width: 12px; height: 12px; }
.promises { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3) var(--sp-6); margin-top: var(--sp-6); font-weight: 600; font-size: var(--fs-sm); }
.promises li { display: flex; align-items: center; gap: var(--sp-2); }
.promises svg { width: 18px; height: 18px; color: var(--accent-text); }
/* main.js runs the pipeline; each finished step checks off its tile */
.js .gap:not(.is-done) .gap__st { background: transparent; box-shadow: inset 0 0 0 2px var(--red-500); }
.js .gap:not(.is-done) .gap__st svg { opacity: 0; }
.js .gap:not(.is-done) .gap__icon { background: var(--surface-2); color: var(--text-3); }
.js .gap.is-done .gap__st { animation: pop 450ms var(--ease-out); }
.js .gap.is-done { border-color: rgba(29, 179, 176, 0.45); box-shadow: 0 8px 24px -14px rgba(29, 179, 176, 0.6); }

/* CI/CD run card */
.pipeline { margin: 0; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-md); overflow: hidden; }
.pipeline__head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.pipeline__repo { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--text-2); min-width: 0; }
.pipeline__repo svg { width: 16px; height: 16px; flex: none; color: var(--accent-text); }
.pipeline__status { flex: none; padding: 3px 10px; border-radius: var(--r-pill); font: 600 var(--fs-xs) var(--font-mono); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: #9A6B00; background: rgba(233, 165, 0, 0.14); }
.pipeline__status.is-passed { color: var(--accent-text); background: var(--accent-soft); }
.pipeline__steps { display: grid; padding: var(--sp-3) var(--sp-5); }
.pstep { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: var(--sp-3); padding: 0.7rem 0; font-size: var(--fs-sm); color: var(--text-3); transition: color var(--dur-base); }
.pstep + .pstep { border-top: 1px dashed var(--border); }
.pstep__icon { position: relative; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--border-strong); color: var(--white); }
.pstep__icon svg { width: 12px; height: 12px; opacity: 0; }
.pstep__meta { color: var(--text-3); font-size: var(--fs-xs); }
.pstep__meta b { color: inherit; font-weight: 600; }
.pstep__spark { width: 64px; height: 18px; }
.pstep__spark polyline { fill: none; stroke: var(--teal-500); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 90; stroke-dashoffset: 90; transition: stroke-dashoffset 1.2s var(--ease-out); }
.pstep.is-running { color: var(--text); }
.pstep.is-running .pstep__icon { box-shadow: inset 0 0 0 2px rgba(233, 165, 0, 0.25); }
.pstep.is-running .pstep__icon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--amber-500); animation: df-spin 0.8s linear infinite; }
.pstep.is-done, html:not(.js) .pstep { color: var(--text); }
.pstep.is-done .pstep__icon, html:not(.js) .pstep__icon { background: var(--teal-500); box-shadow: none; animation: pop 450ms var(--ease-out); }
.pstep.is-done .pstep__icon svg, html:not(.js) .pstep__icon svg { opacity: 1; }
.pstep.is-done .pstep__meta, html:not(.js) .pstep__meta { color: var(--accent-text); }
.pstep.is-done .pstep__spark polyline, html:not(.js) .pstep__spark polyline { stroke-dashoffset: 0; }
.pipeline__bar { height: 3px; margin: 0 var(--sp-5); border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.pipeline__bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--navy-600), var(--teal-400)); transition: width 400ms var(--ease-out); }
.pipeline__foot { display: flex; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); font-size: var(--fs-xs); color: var(--text-3); }
[data-pipeline-foot].is-passed { color: var(--accent-text); }
@keyframes pop { 0% { transform: scale(0.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .pstep.is-done .pstep__icon, .js .gap.is-done .gap__st { animation: none; }
  .pstep__spark polyline { transition: none; }
}

/* ---- Services ------------------------------------------------------------------ */
/* An index, not a card grid: one lead panel, then numbered rows on hairlines */
.section__head--split { max-width: none; }
@media (min-width: 900px) {
  .section__head--split { grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-8); align-items: end; }
  .section__head--split > div { display: grid; gap: var(--sp-4); }
}
.services { display: grid; border-top: 1px solid var(--border); }
.svc { border-bottom: 1px solid var(--border); }
.svc__row {
  display: grid; gap: var(--sp-2) var(--sp-5); grid-template-columns: auto 1fr; align-items: baseline;
  padding: var(--sp-5) var(--sp-2);
}
.svc__num { font-size: var(--fs-xs); color: var(--text-3); letter-spacing: 0.1em; }
.svc__title { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 600; }
.svc__desc { grid-column: 2; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.65; max-width: 56ch; text-wrap: pretty; }
@media (min-width: 900px) {
  .svc__row { grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--sp-6); align-items: center; padding: var(--sp-6) var(--sp-4); }
  .svc__desc { grid-column: auto; }
}

/* ---- Automation: live data flow ---------------------------------------------------
   Inputs → AI core → destinations. main.js draws the wires between the nodes,
   sends packets and light beams along them and cycles the active pipeline. */
@property --df-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.dataflow {
  position: relative; isolation: isolate; display: grid; gap: var(--sp-8) var(--sp-6); align-items: stretch;
  padding: var(--sp-6) var(--sp-5); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden;
  background:
    radial-gradient(ellipse 40% 55% at 50% 50%, rgba(29, 179, 176, 0.12), transparent 70%),
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(39, 73, 154, 0.06), transparent 60%),
    linear-gradient(180deg, var(--white), var(--ink-50));
  box-shadow: var(--shadow-lg);
}
.dataflow::before { /* faint blueprint grid, fading out toward the edges */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(39, 73, 154, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(39, 73, 154, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 80%);
}
.dataflow__wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.dataflow__col, .dataflow__core { position: relative; z-index: 1; }
.dataflow__col { display: flex; flex-direction: column; gap: var(--sp-4); }
.dataflow__col ul { display: flex; justify-content: space-between; gap: var(--sp-2); }
.dataflow__label { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-3); }
.dataflow__label::before { content: "// "; color: var(--teal-600); }
.dataflow__col--out { flex-direction: column-reverse; }

/* Glass nodes; the active one gets a rotating light border */
.df-node {
  position: relative; display: flex; align-items: center; gap: var(--sp-3); padding: 6px; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.78); border: 1px solid var(--border); color: var(--text-2); box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 600 var(--fs-sm)/1.3 var(--font-body); text-align: left; cursor: pointer;
  transition: border-color var(--dur-base), color var(--dur-base), box-shadow var(--dur-base), transform var(--dur-base);
}
.df-node::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none; opacity: 0;
  background: conic-gradient(from var(--df-angle), transparent 0 55%, var(--navy-600) 68%, var(--teal-400) 80%, transparent 88%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: opacity var(--dur-base);
}
.df-node svg { width: 36px; height: 36px; padding: 8px; flex: none; border-radius: var(--r-md); background: var(--ink-50); border: 1px solid var(--border); color: var(--ink-500); transition: background var(--dur-base), color var(--dur-base), border-color var(--dur-base), box-shadow var(--dur-base); }
.df-node span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.df-node:hover, .df-node:focus-visible { border-color: var(--border-strong); color: var(--text); }
.df-node.is-active { color: var(--text); background: var(--white); border-color: rgba(29, 179, 176, 0.3); box-shadow: 0 12px 30px -12px rgba(29, 179, 176, 0.45), var(--shadow-sm); }
.df-node.is-active::before { opacity: 1; animation: df-border 2.4s linear infinite; }
.df-node.is-active svg { color: var(--white); border-color: transparent; background: linear-gradient(135deg, var(--navy-600), var(--teal-500)); box-shadow: 0 6px 14px -4px rgba(29, 179, 176, 0.6); }
.df-count { display: none; margin-left: auto; padding-left: var(--sp-3); font-style: normal; font-size: var(--fs-xs); color: var(--text-3); font-variant-numeric: tabular-nums; transition: color var(--dur-base); }
.df-node.is-active .df-count { color: var(--accent-text); }
.df-plus { position: absolute; right: 12px; top: 2px; font: 600 var(--fs-xs) var(--font-mono); color: var(--accent-text); pointer-events: none; animation: df-plus 900ms var(--ease-out) forwards; }

/* AI core: dark chip with a teal bolt, orbits, HUD ticks and corner brackets */
.dataflow__core { display: grid; justify-items: center; align-content: center; gap: var(--sp-5); text-align: center; }
.dataflow__core .dataflow__label { display: none; }
.core { position: relative; width: 100px; height: 100px; margin: 18px; }
.core > * { position: absolute; inset: 0; }
.core__chip {
  display: grid; place-items: center; border-radius: 22%;
  background: linear-gradient(160deg, var(--ink-800), var(--ink-900));
  box-shadow: inset 0 0 0 1px var(--ink-600), inset 0 0 0 8px var(--ink-900), inset 0 0 0 9px var(--ink-700),
    0 18px 36px -12px rgba(12, 20, 39, 0.5), 0 0 60px rgba(29, 179, 176, 0.35);
}
.core__glyph { position: relative; width: 40%; height: 40%; color: var(--teal-400); filter: drop-shadow(0 0 6px rgba(63, 201, 198, 0.6)); }
.core__hud { inset: -35%; width: 170%; height: 170%; overflow: visible; animation: df-spin 40s linear infinite reverse; }
.core__ticks { fill: none; stroke: rgba(39, 73, 154, 0.25); stroke-width: 3; stroke-dasharray: 1 8.05; }
.core__arc { fill: none; stroke: var(--teal-500); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 90 463; animation: df-arc 3.2s linear infinite; transform-origin: center; }
.core__frame {
  inset: -55%; pointer-events: none; opacity: 0.8;
  --c: rgba(39, 73, 154, 0.35);
  background:
    linear-gradient(var(--c), var(--c)) top left / 14px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) top left / 1.5px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 14px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) top right / 1.5px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 14px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) bottom left / 1.5px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 14px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) bottom right / 1.5px 14px no-repeat;
}
.core__orbit { inset: -25%; border-radius: 50%; border: 1px solid rgba(29, 179, 176, 0.35); transform: rotate(-24deg) scaleY(0.3); }
.core__orbit--b { inset: -17%; transform: rotate(32deg) scaleY(0.34); border-color: rgba(39, 73, 154, 0.3); }
.core__orbit i { position: absolute; inset: 0; border-radius: 50%; animation: df-spin 5s linear infinite; }
.core__orbit--b i { animation-duration: 7.5s; animation-direction: reverse; }
.core__orbit i::after { content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 2px var(--white), 0 0 10px 2px rgba(29, 179, 176, 0.6); }
.core__orbit--b i::after { background: var(--navy-600); box-shadow: 0 0 0 2px var(--white), 0 0 10px 2px rgba(39, 73, 154, 0.4); }

.core__verb { display: grid; gap: 4px; justify-items: center; }
.core__verb > span { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.2em; color: var(--text-3); }
.core__verb b { font-family: var(--font-display); font-size: var(--fs-xl); color: var(--text); }
.core__route { margin-top: var(--sp-1); font-size: var(--fs-sm); color: var(--text-2); }

/* Wires, packets and light beams */
.df-wire { fill: none; stroke: var(--ink-200); stroke-width: 1.25; transition: stroke var(--dur-base); }
.df-beam { fill: none; stroke: var(--teal-500); stroke-width: 2.5; stroke-linecap: round; opacity: 0; filter: drop-shadow(0 0 4px rgba(29, 179, 176, 0.55)); }
.df-packet { fill: var(--ink-300); opacity: 0.6; transition: opacity var(--dur-base); }
.df-pipe.is-active .df-wire { stroke: rgba(29, 179, 176, 0.45); }
.df-pipe.is-active .df-beam { opacity: 1; animation: df-beam 1.2s linear infinite; }
.df-pipe.is-active .df-beam--out { animation-delay: 0.6s; }
.df-pipe.is-active .df-packet { opacity: 1; fill: var(--teal-500); stroke: var(--white); stroke-width: 1.5; filter: drop-shadow(0 0 4px rgba(29, 179, 176, 0.7)); }

@keyframes df-spin { to { transform: rotate(360deg); } }
@keyframes df-border { to { --df-angle: 360deg; } }
@keyframes df-arc { to { stroke-dashoffset: -553; } }
@keyframes df-beam { from { stroke-dashoffset: var(--beam-from); } to { stroke-dashoffset: var(--beam-to); } }
@keyframes df-plus { from { transform: translateY(6px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(-14px); opacity: 0; } }

@media (min-width: 900px) {
  .dataflow { grid-template-columns: minmax(0, 290px) 1fr minmax(0, 290px); gap: 0 var(--sp-6); padding: var(--sp-7) var(--sp-6); }
  .dataflow__col, .dataflow__col--out { flex-direction: column; }
  .dataflow__col ul { flex-direction: column; justify-content: center; gap: var(--sp-3); flex: 1; }
  .df-node { width: 100%; padding: 8px 14px 8px 8px; }
  .df-node span { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .df-count { display: inline; }
  .dataflow__core { grid-template-rows: auto 1fr auto auto 1fr; align-content: stretch; }
  .dataflow__core .dataflow__label { display: block; grid-row: 1; }
  .core { grid-row: 3; width: 116px; height: 116px; }
  .core__glyph { width: 40%; height: 40%; }
  .core__verb { grid-row: 4; }
  .core__route { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .core__hud, .core__arc, .core__orbit i, .df-node.is-active::before { animation: none; }
  .df-pipe.is-active .df-beam { animation: none; opacity: 0; }
}

/* ---- Projects --------------------------------------------------------------------- */
.projects { display: grid; gap: var(--sp-3); }
.project {
  display: grid; gap: var(--sp-2) var(--sp-5); align-items: center;
  padding: var(--sp-4) var(--sp-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  transition: border-color var(--dur-base);
}
.project:hover { border-color: var(--border-strong); }
@media (min-width: 760px) { .project { grid-template-columns: 200px 1fr auto; } }
.project__who { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); }
.project__what { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.6; }
.project__price { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xl); color: var(--accent-text); font-variant-numeric: tabular-nums; }
.projects__note { margin-top: var(--sp-5); font-size: var(--fs-sm); color: var(--text-3); }

/* ---- Approach: unlock + steps -------------------------------------------------------- */
.unlock {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--sp-4);
  padding: var(--sp-6) var(--sp-5); margin-bottom: var(--sp-7);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
}
.unlock__item { display: grid; justify-items: center; gap: var(--sp-3); width: 150px; text-align: center; font-weight: 600; font-size: var(--fs-sm); }
.unlock__item svg { width: 64px; height: 64px; padding: 16px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text-2); }
.unlock__item--result svg { background: linear-gradient(135deg, var(--navy-600), var(--teal-500)); border-color: transparent; color: var(--white); box-shadow: var(--shadow-glow); }
.unlock__item--result span { color: var(--accent-text); }
.unlock__op { color: var(--ink-300); display: inline-flex; }
.unlock__op svg { width: 24px; height: 24px; }
.unlock__op--eq svg { width: 48px; }
@media (max-width: 640px) {
  .unlock { flex-direction: column; }
  .unlock__op svg { transform: rotate(90deg); }
  .unlock__op--eq svg { width: 24px; transform: rotate(90deg); }
}

.steps { display: grid; gap: var(--sp-4); counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { display: grid; gap: var(--sp-3); align-content: start; padding: var(--sp-5) var(--sp-5) 0; border-top: 2px solid var(--border-strong); }
.step__num { color: var(--accent-text); font-weight: 600; }
.step p { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.65; }

/* ---- Buyers --------------------------------------------------------------------------- */
.buyers { display: grid; gap: var(--sp-4); }
@media (min-width: 640px) { .buyers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .buyers { grid-template-columns: repeat(3, 1fr); } }
.buyer { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-2) var(--sp-4); align-items: start; padding: var(--sp-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.buyer > svg { grid-row: span 2; width: 40px; height: 40px; padding: 9px; border-radius: var(--r-md); color: var(--navy-600); background: var(--surface-2); border: 1px solid var(--border); }
.buyer h3 { font-size: var(--fs-lg); }
.buyer p { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.6; }

/* ---- After --------------------------------------------------------------------------- */
.after { display: grid; gap: var(--sp-4); }
@media (min-width: 800px) { .after { grid-template-columns: 1fr 1fr; gap: var(--sp-5); } }
.after__card { display: grid; gap: var(--sp-4); padding: var(--sp-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); }
.after__card--featured { border-color: var(--teal-400); box-shadow: 0 0 0 4px rgba(29, 179, 176, 0.10); }
.after__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy-700); color: var(--white); }
.after__card--featured .after__icon { background: var(--teal-500); color: var(--ink-950); }
.after__icon svg { width: 24px; height: 24px; }
.after__card .checklist { font-size: var(--fs-sm); }

/* ---- Founder -------------------------------------------------------------------------- */
.founder { display: grid; gap: var(--sp-7); align-items: center; }
@media (min-width: 900px) { .founder { grid-template-columns: 0.8fr 1.2fr; gap: var(--sp-9); } }
.founder__photo { position: relative; isolation: isolate; width: min(100%, 420px); margin-inline: auto; }
.founder__photo img { border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.founder__photo::after { content: ""; position: absolute; inset: auto -12px -12px auto; width: 40%; aspect-ratio: 1; border-radius: var(--r-xl); background: linear-gradient(135deg, var(--teal-500), var(--cyan-400)); z-index: -1; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.founder__copy { display: grid; gap: var(--sp-4); }
.founder__copy .eyebrow { margin-bottom: 0; }
.founder__role { color: var(--accent-text); font-weight: 600; margin-top: calc(-1 * var(--sp-2)); }
.founder__copy > p:not(.eyebrow):not(.founder__role) { color: var(--text-2); max-width: 60ch; }
.founder__links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-5); margin-top: var(--sp-2); }

/* ---- Plans ---------------------------------------------------------------------------- */
.plans { display: grid; gap: var(--sp-4); align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); } }
.plan { position: relative; display: grid; gap: var(--sp-4); align-content: start; padding: var(--sp-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); }
.plan--featured { border-color: var(--navy-700); box-shadow: var(--shadow-lg); }
.plan__badge { position: absolute; top: -12px; left: var(--sp-6); font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: var(--tracking-wide); font-weight: 600; background: var(--navy-700); color: var(--white); padding: 5px 10px; border-radius: var(--r-pill); }
.plan__price { display: flex; align-items: baseline; gap: var(--sp-2); }
.plan__amount { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-4xl); letter-spacing: var(--tracking-tight); font-variant-numeric: tabular-nums; }
.plan__per { color: var(--text-3); font-size: var(--fs-sm); }
.plan__for { color: var(--text-2); font-size: var(--fs-sm); min-height: 2.6em; }
.plan .checklist { font-size: var(--fs-sm); }
.plan .btn { margin-top: auto; }
.plans__note { margin-top: var(--sp-6); text-align: center; color: var(--text-2); font-size: var(--fs-sm); }

/* ---- FAQ ------------------------------------------------------------------------------- */
.faq { display: grid; gap: var(--sp-2); }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 0 var(--sp-5); transition: border-color var(--dur-base); }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); padding: var(--sp-4) 0; font-weight: 600; font-family: var(--font-display); font-size: var(--fs-lg); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--accent-text); font-weight: 500; transition: transform var(--dur-base) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding-bottom: var(--sp-5); max-width: 62ch; }

/* ---- Consult ------------------------------------------------------------------------------ */
.consult { position: relative; overflow: hidden; }
.consult::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 20% 30%, rgba(29, 179, 176, 0.16), transparent 70%); pointer-events: none; }
.consult__inner { position: relative; display: grid; gap: var(--sp-7); align-items: start; }
@media (min-width: 960px) { .consult__inner { grid-template-columns: 1fr 1fr; gap: var(--sp-9); } }
.consult__copy { display: grid; gap: var(--sp-4); }
.consult__copy .eyebrow { margin-bottom: 0; }
.consult__copy > p { color: var(--text-2); max-width: 56ch; }
.consult__copy .checklist { margin-top: var(--sp-2); }
.consult__direct { margin-top: var(--sp-3); }
.consult__panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-bottom: 1px solid var(--border); padding: var(--sp-2); gap: var(--sp-2); }
.tab { font: inherit; font-weight: 600; font-size: var(--fs-sm); color: var(--text-2); background: transparent; border: 1px solid transparent; border-radius: var(--r-md); padding: 0.7rem 1rem; cursor: pointer; transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.panel { padding: var(--sp-6); }
.calendar__fallback { display: grid; justify-items: center; text-align: center; gap: var(--sp-4); padding: var(--sp-6) var(--sp-4); }
.calendar__icon { width: 56px; height: 56px; padding: 14px; border-radius: 50%; color: var(--white); background: linear-gradient(135deg, var(--navy-600), var(--teal-500)); }
.calendar__fallback p { color: var(--text-2); font-size: var(--fs-sm); max-width: 38ch; }
.calendar__note { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--amber-500); }
.calendar__note code { color: var(--text); }
.form { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: var(--sp-2); }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border-strong); border-radius: var(--r-md); padding: 0.75rem 0.9rem;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-400); box-shadow: 0 0 0 3px rgba(29, 179, 176, 0.25); }
.field textarea { resize: vertical; min-height: 100px; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
.field.is-invalid input { border-color: var(--red-500); }
.form__status { font-size: var(--fs-sm); color: var(--accent-text); min-height: 1.4em; }
.form__status.is-error { color: #FF8A8E; }

/* ---- Footer -------------------------------------------------------------------------------- */
.footer { background: var(--ink-950); color: var(--ink-300); padding-block: var(--sp-8) var(--sp-5); }
.footer__inner { display: grid; gap: var(--sp-6); }
@media (min-width: 800px) { .footer__inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer__brand { display: grid; gap: var(--sp-4); max-width: 34ch; }
.footer__brand .logo__word { color: var(--white); }
.footer__brand p { font-size: var(--fs-sm); }
.footer__col { display: grid; gap: var(--sp-2); align-content: start; }
.footer__col h4 { color: var(--white); margin-bottom: var(--sp-2); }
.footer__col a { font-size: var(--fs-sm); transition: color var(--dur-fast); }
.footer__col a:hover { color: var(--white); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,0.08); font-size: var(--fs-xs); color: var(--ink-400); }
.footer__legal a { margin-left: var(--sp-3); text-decoration: underline; text-underline-offset: 3px; }
.footer__legal a:hover { color: var(--white); }

/* ---- Legal pages (privacy.html) ------------------------------------------------------------ */
.legal { padding-block: var(--sp-8) var(--section-pad); }
.legal h1 { font-size: var(--fs-4xl); margin-bottom: var(--sp-3); }
.legal__meta { color: var(--text-3); font-size: var(--fs-sm); margin-bottom: var(--sp-7); }
.legal h2 { font-size: var(--fs-xl); margin: var(--sp-7) 0 var(--sp-3); }
.legal p, .legal li { color: var(--text-2); line-height: 1.7; max-width: 68ch; }
.legal p + p { margin-top: var(--sp-3); }
.legal ul { display: grid; gap: var(--sp-2); margin: var(--sp-3) 0; padding-left: 1.2em; list-style: disc; }
.legal a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Reveal --------------------------------------------------------------------------------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  .btn { transition: none; }
}
