/* ============================================================
   Alturus — design system
   Reference: palantir.com (editorial-industrial sophistication)
   ============================================================ */

@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@400,500,700,800&f[]=boska@400i&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Palette — matched to Palantir's monochrome marketing system.
     Marketing chrome is BLACK + WHITE + GRAYS only. Color signals
     (HOT, PRICE, deltas) live ONLY inside the product-UI dashboard. */
  --ink: #000000;          /* pure black, hero + dark section backgrounds */
  --carbon: #1e2124;        /* Palantir's exact body-text near-black */
  --bone: #ffffff;          /* pure white, light section backgrounds */
  --paper: #f5f5f5;         /* subtle off-white for layering */
  --ash: #e0e0e0;           /* light gray (Palantir's mid-viewport dominant) */
  --graphite: #606060;      /* muted text on light */
  --graphite-soft: #b9b9b9; /* eyebrow labels (Palantir's h2 color) */
  /* `--ember` is kept as the variable name for backwards-compatibility, but the
     value is now Palantir-monochrome: pure bone. White-as-accent is exactly
     how Palantir's "Get Started" CTA reads against their dark hero. */
  --ember: #ffffff;
  --ember-glow: rgba(255, 255, 255, 0.10);

  /* Product UI signals — used ONLY inside .dash (dashboard mockup) */
  --signal-warn: #ff6b35;   /* HOT status, negative deltas */
  --signal-ok: #4ade80;     /* OK status, positive deltas */
  --signal-cool: #4b6cb7;   /* informational hint (rare) */

  /* Type stacks */
  --font-display: 'Cabinet Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-italic: 'Boska', Georgia, serif;

  /* Rhythm */
  --section-y: clamp(96px, 14vw, 200px);
  --page-pad: clamp(20px, 4vw, 64px);

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Reset --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  background: var(--bone);
  color: var(--carbon);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'ss02';
}
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.05; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img, svg, video { display: block; max-width: 100%; }
ol, ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--carbon); color: var(--bone); }

/* Layout helpers ------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--page-pad);
}
.container--wide { max-width: 1320px; }
.stack > * + * { margin-top: var(--stack-gap, 24px); }

/* Eyebrow label — Palantir-signature ---------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--graphite);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow--on-dark { color: var(--graphite-soft); }
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.eyebrow .num {
  color: var(--graphite-soft);
  font-weight: 500;
}
.eyebrow--plain::before { display: none; }

/* Header / Nav -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background 240ms var(--ease-out-quart), border-color 240ms;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: saturate(140%) blur(20px);
  -webkit-backdrop-filter: saturate(140%) blur(20px);
  border-bottom-color: rgba(214, 210, 203, 0.08);
}
.site-header[data-theme="light"] {
  background: transparent;
  color: var(--ink);
}
.site-header[data-theme="light"].is-scrolled {
  background: rgba(244, 241, 236, 0.86);
  border-bottom-color: rgba(10, 10, 10, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.nav__brand-mark {
  width: 22px;
  height: 22px;
  color: currentColor;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: inherit;
  opacity: 0.78;
  transition: opacity 180ms;
}
.nav__link:hover { opacity: 1; }
.nav__link.is-active { opacity: 1; }
.nav__link.is-active::after {
  content: "";
  display: block;
  height: 1px;
  background: currentColor;
  margin-top: 4px;
}
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bone);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 200ms var(--ease-out-quart), background 200ms;
}
.site-header[data-theme="light"] .nav__cta {
  background: var(--ink);
  color: var(--bone);
}
.nav__cta:hover { transform: translateY(-1px); }
.nav__cta-arrow { font-family: var(--font-mono); font-weight: 400; }

/* Top ribbon (editorial Palantir-style) ------------------------- */
.ribbon {
  background: var(--ink);
  color: var(--bone);
  border-bottom: 1px solid rgba(244, 241, 236, 0.1);
}
.ribbon__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--graphite-soft);
}
.ribbon a { color: var(--bone); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ribbon .dot { color: var(--bone); }

/* Section theming ----------------------------------------------- */
.section {
  padding-block: var(--section-y);
  position: relative;
  overflow: hidden;
}
.section--dark {
  background: var(--ink);
  color: var(--bone);
}
.section--carbon {
  background: var(--carbon);
  color: var(--bone);
}
.section--light {
  background: var(--bone);
  color: var(--ink);
}
.section__head {
  margin-bottom: 64px;
  max-width: 880px;
}
.section__head .eyebrow { margin-bottom: 24px; }
.section__title {
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.025em;
}
.section__lede {
  margin-top: 28px;
  font-size: 19px;
  max-width: 620px;
  color: var(--graphite);
  line-height: 1.55;
}
.section--dark .section__lede { color: var(--graphite-soft); }

/* Hero — multi-layered parallax --------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--ink);
  color: var(--bone);
  padding: 0;
}

/* Each layer sits absolutely positioned, full-bleed. JS applies a scroll
   transform to create the parallax — deeper layers move less than the
   foreground, giving the multi-layer feel. */
.hero__bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

/* Layer 0: animated gradient mesh — Palantir-style cool atmosphere.
   Color samples taken from palantir.com's top-viewport palette: deep navy-
   purple (#200060) and dark slate (#202040). Very subtle — atmosphere, not
   chrome decoration. */
.hero__bg-layer--mesh {
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 18% 28%, rgba(75, 79, 138, 0.22), transparent 70%),
    radial-gradient(ellipse 50% 40% at 82% 76%, rgba(50, 80, 120, 0.18), transparent 70%),
    radial-gradient(ellipse 40% 30% at 55% 0%, rgba(75, 79, 138, 0.10), transparent 60%),
    var(--ink);
  filter: blur(40px);
  animation: meshDrift 32s ease-in-out infinite alternate;
}
@keyframes meshDrift {
  0%   { transform: translate(0, 0) scale(1.05); }
  50%  { transform: translate(-34px, 20px) scale(1.12); }
  100% { transform: translate(22px, -14px) scale(1.08); }
}

/* Layer 1: intro video. JS cross-fades it out when it ends and reveals the
   dashboard layer in its place; only opacity changes during the transition. */
.hero__bg-layer--video {
  z-index: 2;          /* same plane as the dashboard so cross-fade reads cleanly */
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1.4s ease-out;
}
/* Visible on load, fades out when the video ends */
.hero__video--first { opacity: 1; }
.hero__video--first.is-fading-out { opacity: 0; }

/* Layer 2: dashboard mockup — starts hidden; fades in when the intro video
   ends. The internal .dash--in-hero retains its 0.88 visual shading (the
   "current shading" the brief said was correct). */
.hero__bg-layer--dash {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(40px, 8vh, 120px) clamp(20px, 4vw, 80px);
  opacity: 0;
  transition: opacity 1.4s ease-out;
}
.hero__bg-layer--dash.is-revealed { opacity: 1; }
.dash--in-hero {
  width: min(82%, 1080px);
  transform: translate(4%, 6%) scale(1.04);
  opacity: 0.88;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}

/* Layer 3: veil — gradient that darkens the title region for legibility
   while leaving the right-side dashboard visible */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  /* Top-of-gradient stop bumped a further +0.10 → 0.33 (darker at the top of
     the hero where the headline sits). Other stops kept from the prior +0.05
     pass. */
  background:
    linear-gradient(
      180deg,
      rgba(10, 10, 10, 0.33) 0%,
      rgba(10, 10, 10, 0.50) 55%,
      rgba(10, 10, 10, 1.00) 100%
    ),
    radial-gradient(
      ellipse 80% 70% at 18% 50%,
      rgba(10, 10, 10, 0.75) 0%,
      rgba(10, 10, 10, 0.35) 45%,
      transparent 75%
    );
}

/* Layer 4: foreground — the title sits on this transparent layer; it scrolls
   with the page (JS adds a slightly accelerated translateY for parallax) */
.hero__fg {
  position: relative;
  z-index: 4;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(120px, 16vh, 200px) 0 clamp(80px, 12vh, 140px);
  will-change: transform;
}
.hero__fg .container { width: 100%; }
.hero__eyebrow { margin-bottom: 36px; }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(58px, 8vw, 124px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--bone);
  max-width: 14ch;
  text-wrap: balance;
}
.hero__title em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: inherit;  /* match surrounding — subtle emphasis via font choice only */
}
.hero__lede {
  margin-top: 38px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--graphite-soft);
  max-width: 540px;
}
.hero__actions {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* Scroll hint — animated thin line + label at bottom-center */
.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite-soft);
  transition: opacity 300ms;
}
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg,
    transparent,
    var(--graphite-soft) 30%,
    var(--graphite-soft) 70%,
    transparent
  );
  transform-origin: top center;
  animation: scrollHintPulse 2.6s ease-in-out infinite;
}
@keyframes scrollHintPulse {
  0%, 100% { transform: scaleY(0.45); opacity: 0.35; }
  50%      { transform: scaleY(1);    opacity: 1; }
}

/* Hero mobile/tablet adjustments */
@media (max-width: 1080px) {
  .hero__bg-layer--dash { display: none; }
  .hero__veil { background:
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.97) 100%);
  }
  .hero__title { font-size: clamp(48px, 11vw, 80px); }
}

/* Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 220ms var(--ease-out-quart), background 220ms, color 220ms, border-color 220ms;
}
.btn:hover { transform: translateY(-2px); }
/* Primary CTA is white-on-dark (Palantir's exact "Get Started" treatment).
   On light sections, the ghost-light variant or the dark-bg .btn--dark below take over. */
.btn--primary {
  background: var(--bone);
  color: var(--ink);
  font-weight: 700;
}
.btn--primary:hover { background: var(--ash); }
.section--light .btn--primary,
.btn--dark {
  background: var(--ink);
  color: var(--bone);
}
.section--light .btn--primary:hover,
.btn--dark:hover { background: var(--carbon); }
.btn--ghost-dark {
  background: transparent;
  color: var(--bone);
  border-color: rgba(244, 241, 236, 0.3);
}
.btn--ghost-dark:hover { border-color: var(--bone); background: rgba(244, 241, 236, 0.06); }
.btn--ghost-light {
  background: transparent;
  color: var(--ink);
  border-color: rgba(10, 10, 10, 0.2);
}
.btn--ghost-light:hover { border-color: var(--ink); }
.btn .arrow { font-family: var(--font-mono); font-weight: 500; }

/* Hero dashboard mockup ----------------------------------------- */
.dash {
  background: var(--carbon);
  border: 1px solid rgba(244, 241, 236, 0.08);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(244, 241, 236, 0.04) inset;
  font-family: var(--font-mono);
}
.dash__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(244, 241, 236, 0.08);
  background: rgba(244, 241, 236, 0.02);
}
.dash__title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--graphite-soft);
  display: flex;
  gap: 12px;
}
.dash__title .sep { opacity: 0.4; }
.dash__title .live {
  color: var(--signal-warn);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dash__title .live::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal-warn);
  box-shadow: 0 0 8px var(--signal-warn);
}
.dash__dots { display: flex; gap: 6px; }
.dash__dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(244, 241, 236, 0.18);
}
.dash__toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-size: 11px;
  color: var(--graphite-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(244, 241, 236, 0.06);
}
.dash__toolbar .chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(244, 241, 236, 0.14);
}
.dash__toolbar .chip--on {
  background: rgba(255, 107, 53, 0.14);
  color: var(--signal-warn);
  border-color: rgba(255, 107, 53, 0.4);
}
.dash__table {
  font-size: 12px;
  line-height: 1.6;
}
.dash__row {
  display: grid;
  grid-template-columns: 1.5fr 2fr 0.7fr 0.9fr 0.9fr 0.9fr;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(244, 241, 236, 0.05);
  color: var(--bone);
  align-items: center;
}
.dash__row--head {
  font-size: 10px;
  color: var(--graphite-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.dash__row .delta-up { color: var(--signal-ok); }
.dash__row .delta-down { color: var(--signal-warn); }
.dash__row .status {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px;
}
.dash__row .status--hot { background: rgba(255, 107, 53, 0.16); color: var(--signal-warn); }
.dash__row .status--ok  { background: rgba(74, 222, 128, 0.14); color: var(--signal-ok); }
.dash__row .status--age { background: rgba(244, 241, 236, 0.08); color: var(--graphite-soft); }
.dash__footer {
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--graphite-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Trusted-by — sticky-pinned scroll-driven scale transition --------
   The section's outer .trusted__scroll-area gives the journey 200vh of
   scroll distance. The .trusted__pinned child position:sticky-pins at the
   top, staying centered while the user scrolls through the journey.
   JS computes a 0→1 --trusted-progress on this section as the journey
   advances; CSS calc() interpolates label down and marquee items up. */
.section.trusted {
  padding: 0;        /* override default section padding — sticky journey owns the rhythm */
}
.trusted__scroll-area {
  position: relative;
  /* Tightened from 200vh → 150vh so the sticky journey ends ~50vh sooner.
     This prevents the long bone-colored "blank" stretch that used to sit
     between the trusted panel and the CAPABILITIES section coming up below. */
  height: 150vh;
}
.trusted__pinned {
  position: sticky;
  top: 0;
  /* Panel fills the full viewport height again so there is NO bone-colored
     blank space below the content during the sticky journey. Content is
     bottom-aligned (flex-end), preserving the "panel-bottom = marquee-bottom
     + 72pt" relationship via padding-bottom — except now the panel bottom
     coincides with the viewport bottom, eliminating visible voids. */
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 72pt;
  background: var(--bone);
  overflow: hidden;
}
.trusted__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 8vh, 96px);
  align-items: center;
  width: 100%;
}

/* Logo (geometric mark only — no wordmark). Uses the SAME interpolation
   algorithm as the label below: linear, driven by --trusted-progress.
   120pt @ progress=0  →  24pt @ progress=1
   width:auto keeps the square SVG proportional to height as it scales. */
.trusted__logo {
  color: var(--ink);
  height: calc(120pt - 96pt * var(--trusted-progress, 0));
  width: auto;
  display: block;
  /* Opacity dims in parallel with the label so the visual handoff is unified */
  opacity: calc(1 - 0.35 * var(--trusted-progress, 0));
}

.trusted__label {
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--graphite);
  text-align: center;
  /* No max-width: the explicit <br> + nowrap spans below own the line break.
     This guarantees the same two-line structure at every font-size — no
     automatic paragraph re-flow as the text shrinks. Reduction in size is
     the only visual element of the transition. */
  font-size: calc(24pt - 16pt * var(--trusted-progress, 0));
  opacity: calc(1 - 0.35 * var(--trusted-progress, 0));
  line-height: 1.3;
}
.trusted__label span {
  /* Each line is a single un-wrapping run. Combined with the <br> between
     them, the structure stays "line 1 / line 2" at every scale. */
  white-space: nowrap;
}
.trusted__label .as-typed {
  /* Render literally — preserves mixed case (e.g. "OEMs" with lowercase s)
     when the parent's text-transform: uppercase would otherwise force "OEMS". */
  text-transform: none;
}
.marquee {
  width: 100%;
  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: 80px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee__item {
  font-family: var(--font-display);
  font-weight: 700;
  /* Linear interpolation: 24px @ progress=0 → 56px @ progress=1 */
  font-size: calc(24px + 32px * var(--trusted-progress, 0));
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  /* As they take over the focus, lift opacity from 0.78 to 1 */
  opacity: calc(0.78 + 0.22 * var(--trusted-progress, 0));
}
.marquee__item .sub {
  font-family: var(--font-mono);
  font-weight: 500;
  /* Subscale: 10px @ progress=0 → 16px @ progress=1 */
  font-size: calc(10px + 6px * var(--trusted-progress, 0));
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--graphite);
  opacity: 0.7;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Reduce-motion: snap to mid-progress instead of animating, keep marquee static */
@media (prefers-reduced-motion: reduce) {
  .section.trusted { --trusted-progress: 0.5; }
  .marquee__track { animation: none; }
}

/* Capabilities catalog ----------------------------------------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(244, 241, 236, 0.1);
  border: 1px solid rgba(244, 241, 236, 0.1);
}
.cap {
  background: var(--ink);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background 240ms;
  position: relative;
}
.cap:hover { background: var(--carbon); }
.cap__index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--graphite-soft);
  text-transform: uppercase;
}
.cap__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bone);
}
.cap__body {
  color: var(--graphite-soft);
  font-size: 15px;
  line-height: 1.55;
  flex: 1;
}
.cap__link {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bone);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  transition: color 200ms;
}
.cap__link:hover { color: var(--bone); }
.cap__link .arrow { display: inline-block; transition: transform 240ms var(--ease-out-quart); }
.cap__link:hover .arrow { transform: translateX(4px); }

/* ─── Capability cards (graphic variant: the AI-capability redesign) ─────
   Each card carries a custom abstract SVG diagram at the top. The diagram's
   lines draw in (stroke-dashoffset) when the card enters the viewport; nodes
   pop in afterward with a slight overshoot. Active comm/scan lines pulse
   continuously to convey life. */
.cap--with-graphic {
  padding: 32px 28px 32px;
  gap: 20px;
}
.cap--with-graphic .cap__title {
  font-size: 21px;
  line-height: 1.18;
  letter-spacing: -0.015em;
}
.cap--with-graphic .cap__body { font-size: 14.5px; line-height: 1.55; }

.cap__graphic {
  width: 100%;
  aspect-ratio: 1.55 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(244, 241, 236, 0.02), rgba(244, 241, 236, 0)),
    var(--ink);
  border: 1px solid rgba(244, 241, 236, 0.08);
  position: relative;
  overflow: hidden;
  margin-bottom: 4px;
  transition: background 240ms, border-color 240ms;
}
.cap__graphic::before {
  /* Subtle inner light bloom at the bottom — adds depth without color */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 90% 60% at 50% 100%,
    rgba(255, 107, 53, 0.05),
    transparent 65%
  );
  pointer-events: none;
}
.cap__graphic svg {
  width: 78%;
  height: 78%;
  color: var(--bone);
  position: relative;
  z-index: 1;
  display: block;
}

/* Hover: lift the inner panel ─ ink → carbon, intensify border */
.cap--with-graphic:hover .cap__graphic {
  background:
    linear-gradient(180deg, rgba(244, 241, 236, 0.03), rgba(244, 241, 236, 0)),
    var(--carbon);
  border-color: rgba(244, 241, 236, 0.16);
}

/* ─── Scroll-in animations on the SVG diagram primitives ─────────────────
   .draw-path: stroke-dashoffset transition (one-time draw)
   .pop-in:    opacity + scale overshoot (one-time pop)
   .flow:      continuous dash-flow (always running) */
.cap .draw-path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 240ms;
}
.cap.is-in .draw-path { stroke-dashoffset: 0; }

.cap .pop-in {
  opacity: 0;
  transform: scale(0.4);
  transform-origin: center;
  transform-box: fill-box;
  transition:
    opacity 480ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 480ms cubic-bezier(0.34, 1.5, 0.5, 1);
  transition-delay: 900ms;
}
.cap.is-in .pop-in { opacity: 1; transform: scale(1); }

.flow {
  stroke-dasharray: 4 6;
  animation: flowMove 2s linear infinite;
}
@keyframes flowMove { to { stroke-dashoffset: -10; } }

/* Reduced-motion: skip the drawing/pop choreography, no idle pulse */
@media (prefers-reduced-motion: reduce) {
  .cap .draw-path { stroke-dashoffset: 0; transition: none; }
  .cap .pop-in { opacity: 1; transform: none; transition: none; }
  .flow { animation: none; }
}

/* How it works -------------------------------------------------- */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.process__step {
  border-top: 1px solid var(--ink);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.process__num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--graphite);
}
.process__title {
  font-size: 26px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.process__body { color: var(--graphite); font-size: 15px; line-height: 1.6; }

/* Case file ----------------------------------------------------- */
.case {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: end;
}
.case__metric {
  font-family: var(--font-display);
  font-size: clamp(96px, 14vw, 200px);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: var(--bone);
  display: block;
}
.case__metric-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite-soft);
  margin-top: 12px;
}
.case__quote {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.32;
  color: var(--bone);
  border-left: 2px solid var(--bone);
  padding-left: 28px;
  margin: 0;
}
.case__attr {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite-soft);
}
.case__attr strong { color: var(--bone); font-weight: 500; }

/* Insights cards ----------------------------------------------- */
.insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.insight {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--ash);
  background: var(--bone);
  transition: transform 240ms var(--ease-out-quart), border-color 240ms, box-shadow 240ms;
}
.insight:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 24px 48px -24px rgba(10, 10, 10, 0.15);
}
.insight__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--graphite);
}
.insight__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
}
.insight__meta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--graphite);
  display: flex;
  justify-content: space-between;
}

/* CTA section --------------------------------------------------- */
.cta-band {
  text-align: left;
}
.cta-band__title {
  font-size: clamp(48px, 6vw, 88px);
  letter-spacing: -0.035em;
  line-height: 0.96;
  max-width: 880px;
  font-weight: 700;
}
.cta-band__title em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: inherit;
}
.cta-band__actions { margin-top: 48px; display: flex; gap: 16px; flex-wrap: wrap; }

/* Footer -------------------------------------------------------- */
.site-footer {
  background: var(--carbon);
  color: var(--bone);
  padding-block: 80px 32px;
  border-top: 1px solid rgba(244, 241, 236, 0.06);
}
.foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(244, 241, 236, 0.08);
}
.foot__brand-mark {
  width: 28px; height: 28px;
  color: var(--bone);
  margin-bottom: 16px;
}
.foot__tagline {
  margin-top: 18px;
  color: var(--graphite-soft);
  max-width: 320px;
  font-size: 14px;
  line-height: 1.55;
}
.foot__addr {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--graphite-soft);
  line-height: 1.7;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.foot__col-head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--graphite-soft);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.foot__list li { padding: 6px 0; }
.foot__list a {
  font-size: 14px;
  color: var(--bone);
  opacity: 0.78;
  transition: opacity 180ms;
}
.foot__list a:hover { opacity: 1; }
.foot__bar {
  display: flex;
  justify-content: space-between;
  padding-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--graphite);
}

/* Principles (about page) -------------------------------------- */
.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px 60px;
}
.principle__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--graphite);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  display: block;
}
.principle__title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.principle__body { color: var(--graphite); font-size: 16px; line-height: 1.6; max-width: 460px; }

/* Module rows (platform page) ---------------------------------- */
.module {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 100px;
  align-items: center;
}
.module--flip { grid-template-columns: 1.1fr 1fr; }
.module--flip .module__media { order: -1; }
.module__index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--graphite-soft);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.module__title {
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.0;
  margin-bottom: 24px;
}
.module__body {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 520px;
}
.section--dark .module__body { color: var(--graphite-soft); }
.module__bullets {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.module__bullet {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-left: 16px;
  position: relative;
  color: inherit;
  opacity: 0.85;
}
.module__bullet::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.module__media {
  background: var(--carbon);
  border: 1px solid rgba(244, 241, 236, 0.08);
  border-radius: 6px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--graphite-soft);
  text-transform: uppercase;
}
.section--light .module__media {
  background: var(--ink);
  color: var(--graphite-soft);
}

/* ─── Module media graphics ──────────────────────────────────────
   Animated SVG diagram panels that replace the text placeholders.
   Same choreography vocabulary as the capability cards:
   .draw-path (one-time line draw), .pop-in (one-time pop with
   overshoot, stagger via .d2/.d3/.d4), .flow (continuous dash-flow),
   plus .packet (message dots traveling along channels). All gated
   on .is-in, which app.js applies via the [data-reveal] observer. */
.module__media--graphic {
  position: relative;
  padding: clamp(20px, 3.5vw, 44px);
  color: var(--bone);
}
.module__media--graphic svg {
  width: 92%;
  height: auto;
  display: block;
}
.module__media__caption {
  position: absolute;
  left: 18px;
  bottom: 13px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite-soft);
}
.module__media--graphic .draw-path {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 240ms;
}
.module__media--graphic.is-in .draw-path { stroke-dashoffset: 0; }
.module__media--graphic .pop-in {
  opacity: 0;
  transform: scale(0.4);
  transform-origin: center;
  transform-box: fill-box;
  transition:
    opacity 480ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 480ms cubic-bezier(0.34, 1.5, 0.5, 1);
  transition-delay: 900ms;
}
.module__media--graphic .pop-in.d2 { transition-delay: 1150ms; }
.module__media--graphic .pop-in.d3 { transition-delay: 1400ms; }
.module__media--graphic .pop-in.d4 { transition-delay: 1650ms; }
.module__media--graphic.is-in .pop-in { opacity: 1; transform: scale(1); }

/* Message packets — dots that travel a channel, looping. Travel
   distance per packet is set inline via --travel. */
.packet { opacity: 0; transform-box: fill-box; }
.is-in .packet--right { animation: packetRight 2.8s linear infinite; animation-delay: 1.6s; }
.is-in .packet--left  { animation: packetLeft 2.8s linear infinite; animation-delay: 3s; }
@keyframes packetRight {
  0%   { transform: translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateX(var(--travel, 70px)); opacity: 0; }
}
@keyframes packetLeft {
  0%   { transform: translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateX(calc(-1 * var(--travel, 70px))); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .module__media--graphic .draw-path { stroke-dashoffset: 0; transition: none; }
  .module__media--graphic .pop-in { opacity: 1; transform: none; transition: none; }
  .packet { animation: none !important; }
}

/* Scroll reveal ------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease-out-expo), transform 700ms var(--ease-out-expo);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transform: none; transition: opacity 200ms; }
  .marquee__track { animation: none; }
}

/* Responsive ---------------------------------------------------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 60px; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; gap: 36px; }
  .case { grid-template-columns: 1fr; gap: 40px; }
  .insights { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1.4fr 1fr; }
  .principles { grid-template-columns: 1fr; gap: 48px; }
  .module { grid-template-columns: 1fr; gap: 40px; }
  .module--flip .module__media { order: 1; }
}
@media (max-width: 720px) {
  .nav__menu { display: none; }
  .cap-grid { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; gap: 40px; }
  .dash__row {
    grid-template-columns: 1fr 0.6fr 0.6fr 0.6fr;
  }
  .dash__row > *:nth-child(2),
  .dash__row > *:nth-child(5) { display: none; }
}
