/* =================================================================
   ATHLETEX — Design tokens (derived from athletex-pitch.html)
   80% Palantir DNA + 20% Nexflow motion + Athletex brand kit
   ================================================================= */

/* Alliance fonts (Degarism Studio) — local files. woff2 first, otf fallback. */
@font-face {
  font-family: 'Alliance No.1';
  src: url('assets/fonts/AllianceNo1-Light.woff2') format('woff2'),
       url('assets/fonts/AllianceNo1-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alliance No.1';
  src: url('assets/fonts/AllianceNo1-Regular.woff2') format('woff2'),
       url('assets/fonts/AllianceNo1-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alliance No.2';
  src: url('assets/fonts/AllianceNo2-Light.woff2') format('woff2'),
       url('assets/fonts/AllianceNo2-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette */
  --bg:           #0a0a0c;
  --bg-elev:      #111114;
  --bg-elev-2:    #15151a;
  --fg:           #f6f6f7;
  --muted:        rgba(246, 246, 247, .62);
  --dim:          rgba(246, 246, 247, .42);
  --faint:        rgba(246, 246, 247, .28);
  --hair:         rgba(246, 246, 247, .12);
  --hair-strong:  rgba(246, 246, 247, .26);

  /* Type — Alliance No.1 EVERYWHERE except the hero H1 (which gets Alliance No.2). */
  --sans: 'Alliance No.1', 'AllianceNo1', 'Geist', 'General Sans', 'Inter', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  --wordmark: 'Alliance No.1', 'AllianceNo1', 'Geist', 'General Sans', sans-serif;
  --headline: 'Alliance No.1', 'AllianceNo1', 'Geist', 'General Sans', sans-serif;
  /* Display: ONLY for the hero "The data layer for sport" headline */
  --display: 'Alliance No.2', 'Alliance No2', 'Geist', 'General Sans', sans-serif;

  /* Spacing */
  --pad-x: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 10vw, 140px);

  /* Motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Inter: humanist alternates (cv11 = single-storey "a"), tabular figures off */
  font-feature-settings: "ss01", "cv11", "cv02";
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* =================================================================
   ANNOUNCEMENT BAR — with close X (Palantir style)
   ================================================================= */
.announce {
  position: relative;
  background: #1e2124;
  border-bottom: 1px solid var(--hair);
  font-family: var(--wordmark);  /* Alliance No.1 */
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -.005em;
  text-align: left;
  padding: 14px clamp(60px, 6vw, 96px) 14px clamp(20px, 3vw, 40px);
}
.announce[hidden] { display: none; }
.announce-pre {
  color: var(--fg);
}
.announce-link {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--fg);
  margin-left: 4px;
  transition: opacity .2s var(--ease);
}
.announce-link:hover { opacity: .7; }
.announce-close {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: clamp(44px, 3.5vw, 52px);
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.announce-close svg {
  width: 16px;
  height: 16px;
}
.announce-close:hover {
  background: var(--fg);
  color: var(--bg);
}

/* =================================================================
   NAV — Palantir-exact: 10px inset from edges, frosted glass
   Values verified against palantir.com
   ================================================================= */
.nav-outer {
  position: sticky;
  top: 16px;
  z-index: 200;
  padding: 0 10px;
  pointer-events: none;
}
.nav {
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  height: 70px;
  padding: 0 20px;
  /* Palantir-style frosted glass: subtle light tint (NOT fully transparent —
     on a dark page, transparent reads as solid black; this 5% white lift is
     what creates the visible "frosted" surface). */
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-radius: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
}
.logo-mark {
  width: 22px;
  height: 22px;
  display: inline-block;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-word {
  font-family: var(--wordmark);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -.018em;
}

.nav-cta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}
/* Sharp white buttons with dark #1e2124 border — Palantir-exact reference */
.nav .btn {
  padding: 0 52px;
  height: 44px;
  min-width: 210px;
  border-radius: 0;
  font-size: 16px;
  font-weight: 400;
  font-family: var(--sans);  /* Alliance No.1 */
  justify-content: center;
}
.nav .btn-primary {
  background: #fff;
  color: #1e2124;
  border: 1px solid #1e2124;
}
.nav .btn-primary:hover {
  background: #fff;
  border-color: #1e2124;
  opacity: .85;
}
.nav-icon-btn {
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1px solid #1e2124;
  border-radius: 0;
  color: #1e2124;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity .18s var(--ease);
}
.nav-icon-btn svg { width: 18px; height: 18px; }
.nav-icon-btn:hover { opacity: .85; }

/* When any overlay opens: nav darkens to match overlay background */
body.overlay-open .nav {
  background: #1E2121;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Ghost buttons inside nav when overlay open: dark fill, white outline */
body.overlay-open .nav .btn-primary {
  background: #1E2121;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
body.overlay-open .nav .btn-primary:hover { opacity: .75; }
body.overlay-open .nav .nav-icon-btn {
  background: #1E2121;
  border-color: rgba(255,255,255,.35);
  color: #fff;
}

/* X button (was hamburger) gets solid white fill when menu is open */
body.menu-open .nav #menu-toggle {
  background: #fff;
  color: #1E2121;
  border-color: #fff;
}
/* Search nav button → solid white X when search overlay is open */
body.search-open .nav [aria-label="Close search"] {
  background: #fff;
  color: #1E2121;
  border-color: #fff;
}

/* Close Navigation label — hidden by default, fades in when menu opens */
.nav-close-label { display: none; }

/* =================================================================
   BUTTONS
   ================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: -.005em;
  font-weight: 500;
  line-height: 1;
  border-radius: 4px;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn .arr { transition: transform .25s var(--ease); display: inline-block; }
.btn:hover .arr { transform: translateX(3px); }

.btn-primary {
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
}
.btn-primary:hover {
  background: rgba(246, 246, 247, .88);
  border-color: rgba(246, 246, 247, .88);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--hair-strong);
}
.btn-ghost:hover {
  border-color: var(--fg);
  background: rgba(246, 246, 247, .04);
}

/* =================================================================
   HERO — full-screen first viewport
   ================================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh; /* iOS: small viewport, ignores URL bar */
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(60px, 9vh, 120px) var(--pad-x);
  overflow: hidden;
  isolation: isolate;
}
/* shift hero content into visual center (compensates for fixed nav + announce bar) */

/* Subtle radial gradient + grid texture, very faint */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 35%, rgba(246,246,247,.06), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(246,246,247,.04), transparent 70%);
  z-index: -2;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--hair) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hair) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: center center;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 50%, #000 30%, transparent 75%);
  opacity: .5;
  z-index: -1;
  pointer-events: none;
}

/* Full-bleed background video (Forgis-style) — behind grid + content.
   Cold-dark Palantir grade so any clip reads on-brand and the headline stays legible. */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -3;
  pointer-events: none;
  filter: grayscale(.32) brightness(.6) contrast(1.1) saturate(.85);
}
/* Dark scrim + faint cool cast over the video so the headline stays readable */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(8,9,13,.74) 0%,
      rgba(8,9,13,.44) 36%,
      rgba(8,9,13,.58) 64%,
      rgba(8,9,13,.95) 100%),
    radial-gradient(ellipse 95% 75% at 50% 46%, rgba(22,30,48,.22), transparent 72%);
}
.hero-headline,
.hero-lede { text-shadow: 0 2px 24px rgba(0,0,0,.6); }

/* Hero still image (test) — B&W retro with Ken Burns + film grain + light sweep */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -4;
  overflow: hidden;
  pointer-events: none;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  display: block;
  filter: grayscale(1) contrast(1.16) brightness(.62);
  transform-origin: center;
  will-change: transform;
  animation: heroKenburns 26s ease-in-out infinite alternate;
}
/* slow diagonal light sweep across the frame */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.05) 48%, transparent 62%);
  background-size: 250% 100%;
  animation: heroSweep 9s ease-in-out infinite;
}
/* drifting film grain */
.hero-grain {
  position: absolute;
  inset: -50%;
  z-index: -3;
  pointer-events: none;
  opacity: .12;
  mix-blend-mode: overlay;
  background-size: 180px 180px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: heroGrain .6s steps(2) infinite;
}
@keyframes heroKenburns {
  0%   { transform: scale(1.06) translate3d(0, 0, 0); }
  100% { transform: scale(1.16) translate3d(-2.5%, -1.5%, 0); }
}
@keyframes heroSweep {
  0%, 100% { background-position: 120% 0; }
  50%      { background-position: -20% 0; }
}
@keyframes heroGrain {
  0%   { transform: translate3d(0, 0, 0); }
  25%  { transform: translate3d(-3%, 2%, 0); }
  50%  { transform: translate3d(2%, -3%, 0); }
  75%  { transform: translate3d(-2%, -2%, 0); }
  100% { transform: translate3d(3%, 1%, 0); }
}
/* Respect reduced-motion: drop motion + video, keep the dark hero */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-img,
  .hero-grain,
  .hero-media::after { animation: none !important; }
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1100px;
  width: 100%;
  gap: 32px;
  transform: translateY(-7vh);
}

.hero-tag {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
}
.hero-tag span { padding: 9px 14px; display: flex; align-items: center; }
.hero-tag span + span { border-left: 1px solid var(--hair-strong); color: var(--muted); }

.hero-headline {
  font-family: var(--display);  /* Alliance No.2 — only display font on the site */
  font-size: 90px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.032em;
  font-feature-settings: "ss04" on, "ss01" on;
  max-width: 16ch;
  text-align: center;
  color: #efefef;
}
@media (max-width: 860px) {
  .hero-headline { font-size: 56px; }
}

.hero-lede {
  font-family: var(--sans);
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}
/* Hero CTAs match the nav buttons: square corners + dark border, white fill */
.hero-actions .btn {
  border-radius: 0;
  padding: 13px 24px;
  border: 1px solid var(--bg);
  font-size: 14px;
  font-weight: 500;
}
.hero-actions .btn-primary {
  background: #fff;
  color: var(--bg);
  border-color: var(--bg);
}
.hero-actions .btn-primary:hover { opacity: .85; }
.hero-actions .btn-ghost {
  background: #fff;
  color: var(--bg);
  border-color: var(--bg);
}
.hero-actions .btn-ghost:hover { opacity: .85; }

.hero-scroll {
  position: absolute;
  bottom: clamp(28px, 5vh, 48px);
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);  /* Alliance No.1 */
  font-size: 16px;
  letter-spacing: -.005em;
  text-transform: none;
  color: var(--muted);
  transition: color .25s var(--ease);
}
.hero-scroll:hover { color: var(--fg); }
.arr-down {
  display: inline-block;
  animation: bob 2.2s ease-in-out infinite;
  font-family: 'Geist', 'General Sans', system-ui, sans-serif;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* =================================================================
   SHARED — section label "01 / CAPABILITIES" style
   ================================================================= */
.section-label {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
}
.section-label span { padding: 9px 14px; display: flex; align-items: center; }
.section-label span + span { border-left: 1px solid var(--hair-strong); color: var(--muted); }

/* =================================================================
   MEMBERS — ghost logo marquee (seamless with hero, no texture)
   ================================================================= */
.members {
  padding: clamp(36px, 4.5vw, 56px) 0;
  background: var(--bg);
  overflow: hidden;
}
.members-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}
.members-label {
  font-family: var(--sans);  /* Alliance No.1 */
  font-size: 16px;
  letter-spacing: -.002em;
  color: var(--muted);
  text-transform: none;
  text-align: center;
}
/* Narrower marquee since we have only 4 logos — covers ~half the page,
   so the cycle is visually dense and the few logos feel intentional */
.logo-marquee {
  width: clamp(420px, 50vw, 720px);
  margin: 0 auto;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
/* Two .logo-set children with NO gap between them — this is what makes
   translateX(-50%) land exactly on a set boundary for a seamless loop. */
.logo-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: logo-scroll 24s linear infinite;
}
.logo-set {
  display: flex;
  align-items: center;
  gap: clamp(56px, 7vw, 96px);
  /* The padding-right acts as the gap between this set's last logo and
     the NEXT set's first logo — it equals the internal gap so the cycle
     repeats with uniform spacing across the boundary. */
  padding-right: clamp(56px, 7vw, 96px);
  flex-shrink: 0;
}
.logo-track img {
  height: 26px;
  width: auto;
  opacity: .32;
  flex-shrink: 0;
  transition: opacity .25s var(--ease);
}
/* NCAA reads smaller at the same px height — bump it up so it visually matches */
.logo-track img[src*="ncaa"] { height: 44px; }
.logo-track img:hover { opacity: .65; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
}

/* =================================================================
   CAPABILITIES — pill nav (legacy, kept in case re-enabled)
   ================================================================= */
.capabilities {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: var(--bg-elev);
  padding: clamp(40px, 6vw, 64px) var(--pad-x);
}
.cap-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cap-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--fg);
  background: rgba(246, 246, 247, .04);
  border: 1px solid var(--hair);
  border-radius: 999px;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.pill:hover {
  background: rgba(246, 246, 247, .08);
  border-color: var(--hair-strong);
}
.pill-outline {
  background: transparent;
  border-color: var(--hair-strong);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.pill-outline:hover { color: var(--fg); border-color: var(--fg); }

/* =================================================================
   BRAND CALLOUT — huge wordmark + metadata grid (the banner)
   ================================================================= */
.callout {
  background: var(--bg);
  padding: clamp(80px, 10vw, 140px) var(--pad-x);
  border-bottom: 1px solid var(--hair);
  overflow: hidden;
}
.callout-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--hair);
  background: var(--bg-elev);
}
.meta-cell {
  padding: 22px 24px;
  border-bottom: 1px solid var(--hair);
}
.meta-cell:last-child { border-bottom: none; }
.meta-k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.meta-v {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  color: var(--fg);
  font-weight: 400;
}

.callout-mark {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(24px, 3vw, 48px);
  position: relative;
}
.callout-word {
  font-family: var(--sans);
  font-size: clamp(80px, 13vw, 220px);
  font-weight: 500;
  letter-spacing: -.044em;
  line-height: .85;
  color: var(--fg);
}
.callout-star {
  width: clamp(90px, 10vw, 180px);
  height: clamp(90px, 10vw, 180px);
  flex-shrink: 0;
  display: inline-block;
  object-fit: contain;
}

/* =================================================================
   STATEMENT SCROLL-PIN — section stays pinned while words colorize
   ================================================================= */
.software-pin {
  position: relative;
  height: 200vh; /* 100vh stage + 100vh of scroll-pin range */
  background: var(--bg);
}
.software-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--pad-x);
}
.software-statement {
  font-family: var(--wordmark);  /* Alliance No.1 Regular */
  font-size: clamp(36px, 4.8vw, 80px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.022em;
  color: rgba(246, 246, 247, .18);  /* dim default — words light up on scroll */
  max-width: 30ch;
  margin: 0 auto;
  text-align: center;
}
.software-statement .muted { color: inherit; }
.software-statement .word {
  display: inline-block;
  color: rgba(246, 246, 247, .18);
  transition: color .25s var(--ease);
}
.software-statement .word.is-lit { color: var(--fg); }

/* =================================================================
   SOFTWARE — product list (no longer holds the statement)
   ================================================================= */
.software {
  padding: var(--section-y) var(--pad-x);
  border-bottom: 1px solid var(--hair);
}
.software-inner {
  max-width: 1320px;
  margin: 0 auto;
}

.software-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--muted);
  text-transform: uppercase;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hair);
}
.product-list { list-style: none; }
.product {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  column-gap: 24px;
  row-gap: 18px;
  padding: clamp(36px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--hair);
}
.product-name {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--display);  /* Alliance No.2 */
  font-size: clamp(40px, 6vw, 96px);
  font-weight: 400;
  letter-spacing: -.028em;
  line-height: 1;
  color: var(--fg);
  font-feature-settings: "ss04" on, "ss01" on;
}
.product-sub {
  grid-column: 1;
  grid-row: 2;
  font-family: var(--sans);
  font-size: clamp(15px, 1.2vw, 19px);
  font-weight: 400;
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.4;
}
.product-num {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  padding-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--dim);
}
/* Invisible full-row link — makes the whole product row click to customers.html */
.product-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.product:hover .product-name { opacity: .8; transition: opacity .2s var(--ease); }

/* Letter-by-letter "typewriter" reveal on product names when they enter the viewport */
.product-name .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .35s var(--ease);
}
.product-name .letter.is-typed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .product-name .letter { opacity: 1; transform: none; transition: none; }
}

/* =================================================================
   TRACTION
   ================================================================= */
.traction {
  padding: var(--section-y) var(--pad-x);
  border-bottom: 1px solid var(--hair);
  background: var(--bg-elev);
}
.traction-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.traction-h {
  font-family: var(--sans);
  font-size: clamp(40px, 5.6vw, 88px);
  font-weight: 500;
  letter-spacing: -.028em;
  line-height: 1;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
}
.stat {
  background: var(--bg-elev);
  padding: clamp(28px, 3vw, 48px) clamp(24px, 2.6vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 220px;
}
.stat-num {
  font-family: var(--sans);
  font-size: clamp(56px, 6.4vw, 104px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--fg);
}
.stat-num small {
  font-size: .35em;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 4px;
}
.stat-lbl {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* =================================================================
   TWIN CTA BLOCKS — Palantir Request a Demo / Start Building
   ================================================================= */
.ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 1.5vw, 24px);
  padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 32px);
  background: var(--bg);
}
.cta-block {
  position: relative;
  padding: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: clamp(110px, 13vw, 160px);
  border: 1px solid var(--hair-strong);
  transition: opacity .25s var(--ease), background .25s var(--ease);
  isolation: isolate;
  overflow: hidden;
}
.cta-light {
  background: #111316;
  border-color: #111316;
}
.cta-light .cta-h, .cta-light .cta-arr { color: #ffffff; }
.cta-light:hover { background: #1a1e22; }
.cta-dark {
  background: #dbdbdb;
  border-color: #dbdbdb;
}
.cta-dark .cta-h, .cta-dark .cta-arr { color: #121224; }
.cta-dark:hover { background: #c9c9c9; border-color: #c9c9c9; }
.cta-h {
  font-family: var(--headline);
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 400;
  letter-spacing: -.024em;
  line-height: 1;
  font-feature-settings: "ss04" on, "ss01" on;
}
.cta-arr {
  font-family: 'Geist', 'General Sans', system-ui, sans-serif;
  font-size: clamp(20px, 1.7vw, 25px);
  transition: transform .25s var(--ease);
  flex-shrink: 0;
  align-self: flex-end;
}
.cta-block:hover .cta-arr { transform: translateX(10px); }

/* =================================================================
   FOOTER — Palantir-style 5-col grid
   ================================================================= */
.foot {
  padding: clamp(64px, 8vw, 120px) var(--pad-x) clamp(40px, 5vw, 64px);
  background: var(--bg);
  border-top: 1px solid var(--hair);
}
.foot-grid {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr 1fr;
  gap: clamp(28px, 3vw, 56px);
}
/* Minimal 2-col layout: meta on left, single Company column on right */
.foot-grid-min {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(32px, 4vw, 80px);
  align-items: start;
}
.foot-grid-min .foot-meta { gap: 28px; }
.foot-grid-min .foot-social { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.foot-grid-min .foot-col { min-width: 200px; gap: 16px; }
.foot-region a { cursor: pointer; }
.foot-meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.foot-copy {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.4;
  color: var(--fg);
}
.foot-mini {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--fg);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hair);
  width: fit-content;
  transition: opacity .2s var(--ease);
}
.foot-mini:hover { opacity: .7; }
.foot-region {
  display: flex;
  gap: 14px;
}
.foot-region a {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  transition: color .2s var(--ease);
}
.foot-region a.active, .foot-region a:hover { color: var(--fg); }
.foot-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  margin-top: 8px;
}
.foot-social-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--fg);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.foot-social-pill:hover {
  background: rgba(246, 246, 247, .06);
  border-color: var(--fg);
}
.foot-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.foot-h {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.foot-col a {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--fg);
  transition: opacity .2s var(--ease);
}
.foot-col a:hover { opacity: .65; }

/* =================================================================
   CONTACT PAGE — tight layout, CTAs above the fold
   ================================================================= */
.contact-page {
  padding: clamp(56px, 8vw, 100px) var(--pad-x) 0;
  max-width: 1320px;
  margin: 0 auto;
}
.contact-head {
  margin-bottom: clamp(32px, 4vw, 56px);
}

/* =================================================================
   MANIFESTO PAGE
   ================================================================= */
.manifesto {
  padding: clamp(80px, 12vw, 160px) var(--pad-x) clamp(64px, 9vw, 120px);
  max-width: 980px;
  margin: 0 auto;
  border-bottom: 1px solid var(--hair);
}
.manifesto-head { display: flex; flex-direction: column; gap: 32px; margin-bottom: clamp(64px, 9vw, 120px); }
.manifesto-h {
  font-family: var(--display);  /* Alliance No.2 — same as the hero h1 */
  font-size: clamp(40px, 5.6vw, 88px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.028em;
  color: var(--fg);
  font-feature-settings: "ss04" on, "ss01" on;
}
.manifesto-h .muted { color: var(--dim); }
.manifesto-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
}
.manifesto-body { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }
.m-section { display: flex; flex-direction: column; gap: 16px; }
.m-h {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--hair);
}
.m-section p {
  font-family: var(--sans);
  font-size: clamp(17px, 1.3vw, 21px);
  line-height: 1.55;
  color: var(--fg);
  max-width: 70ch;
}
.m-section p em {
  font-style: italic;
  color: var(--muted);
}
.m-list {
  list-style: none;
  counter-reset: m;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.m-list li {
  counter-increment: m;
  position: relative;
  padding-left: 48px;
  font-family: var(--sans);
  font-size: clamp(17px, 1.3vw, 21px);
  line-height: 1.55;
  color: var(--fg);
  max-width: 70ch;
}
.m-list li::before {
  content: "/0." counter(m);
  position: absolute;
  left: 0;
  top: 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--dim);
}
.m-link {
  color: var(--fg);
  border-bottom: 1px solid var(--fg);
  padding-bottom: 2px;
  transition: opacity .2s var(--ease);
}
.m-link:hover { opacity: .65; }
.m-sign { margin-top: 24px; gap: 4px; }
.m-sign-text {
  font-family: var(--headline);
  font-size: clamp(20px, 1.6vw, 26px);
  color: var(--fg);
  font-weight: 400;
}
.m-sign-place {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
}

/* =================================================================
   SEARCH OVERLAY — Palantir-exact: full-width bottom-border input
   ================================================================= */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: #1E2124;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--menu-content-top, 86px) clamp(24px, 5vw, 80px) 0;
  animation: menu-fade .22s var(--ease-out) both;
  overflow-y: auto;
}
.search-overlay[hidden] { display: none; }
/* Close button inside overlay hidden — nav X button handles close */
.search-close { display: none; }
.search-box {
  width: 100%;
  margin-top: -12vh;
}
.search-input {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 0;
  padding: 13px 18px;
  font-family: var(--sans);
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 400;
  letter-spacing: 0;
  color: #fff;
  outline: none;
}
.search-input::placeholder { color: rgba(255,255,255,.38); }
.search-input:focus { border-color: #fff; }
.search-popular {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: clamp(16px, 2.5vw, 40px);
  margin-top: 24px;
}
.search-popular-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--muted);
  text-transform: uppercase;
}
.search-popular a {
  font-family: var(--sans);
  font-size: clamp(14px, 1.1vw, 18px);
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s var(--ease);
}
.search-popular a:hover { opacity: .6; }

@keyframes stagger-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
body.search-open .search-popular a { animation: stagger-in .3s var(--ease) forwards; }
body.search-open .search-popular a:nth-child(2) { animation-delay: .08s; }
body.search-open .search-popular a:nth-child(3) { animation-delay: .16s; }
body.search-open .search-popular a:nth-child(4) { animation-delay: .24s; }
body.search-open .search-popular a:nth-child(5) { animation-delay: .32s; }
body.search-open .search-popular a:nth-child(6) { animation-delay: .40s; }
.search-results {
  margin-top: 32px;
  list-style: none;
  display: flex;
  flex-direction: column;
}
.search-results[hidden] { display: none; }
.search-result {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid var(--hair);
  color: var(--fg);
  transition: opacity .15s var(--ease), padding-left .25s var(--ease);
}
.search-result:hover { opacity: .7; padding-left: 8px; }
.search-result-title {
  font-family: var(--wordmark);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 400;
  margin-bottom: 4px;
}
.search-result-desc {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
}
.search-empty {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--dim);
  text-transform: uppercase;
  padding: 32px 0;
  text-align: center;
}

/* =================================================================
   MENU OVERLAY — full-screen with built-in topbar, bg #1E2121
   ================================================================= */

/* Smooth nav background transition */
.nav { transition: background .22s var(--ease), backdrop-filter .22s var(--ease); }

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #1E2121;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-top: var(--menu-content-top, 86px);
  animation: menu-fade .22s var(--ease-out) both;
}
.menu-overlay[hidden] { display: none; }

@keyframes menu-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes menu-slide {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes label-reveal {
  from { opacity: 0; letter-spacing: 0.01em; transform: translateX(-6px); }
  to   { opacity: 1; letter-spacing: .14em; transform: translateX(0); }
}

/* Built-in topbar inside overlay (logo + CTA + X) */
.menu-topbar {
  flex-shrink: 0;
  height: 70px;
  margin-top: 16px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: menu-slide .25s var(--ease-out) .04s both;
}
.menu-topbar-cta {
  display: flex;
  gap: 8px;
  align-items: center;
}
.menu-topbar .btn { height: 40px; padding: 0 24px; min-width: 120px; font-size: 14px; }
.menu-topbar .btn-primary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--fg);
}
.menu-topbar .btn-primary:hover { opacity: .7; }
.menu-topbar .nav-icon-btn {
  background: transparent;
  border-color: rgba(255,255,255,.3);
  color: #fff;
  width: 40px;
  height: 40px;
}

/* 3-col nav grid */
.menu-nav {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding: 0 clamp(16px, 4vw, 56px) clamp(32px, 5vh, 72px);
}
.menu-col {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #fff;
  padding-top: 28px;
}
.menu-col:nth-child(1) { animation: menu-slide .32s var(--ease-out) .10s both; }
.menu-col:nth-child(2) { animation: menu-slide .32s var(--ease-out) .16s both; }
.menu-col:nth-child(3) { animation: menu-slide .32s var(--ease-out) .22s both; }

/* Section labels — Alliance No.2, #b9b9b9, 10px */
.menu-label {
  font-family: var(--headline);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #b9b9b9;
  margin-bottom: 20px;
}

/* Main nav links — Alliance No.1, 30px */
.menu-big {
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--fg);
  line-height: 1.35;
  margin-bottom: 2px;
  display: block;
  transition: opacity .18s var(--ease);
}
.menu-big:hover { opacity: .55; }

/* Sub-items — Alliance No.1, 30px */
.menu-sub {
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -.006em;
  color: var(--fg);
  line-height: 1.45;
  margin-left: 24px;
  display: block;
  position: relative;
  transition: opacity .18s var(--ease);
}
.menu-sub::before {
  content: "↳";
  position: absolute;
  left: -24px;
  top: 0;
  color: #fff;
  opacity: 1;
  font-family: 'Geist', 'General Sans', system-ui, sans-serif;
  font-size: .88em;
}
.menu-sub:hover { opacity: .6; }
.menu-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 36px;
}
/* Featured / News card */
.menu-feature {
  display: flex;
  flex-direction: column;
}
.menu-feature-date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.menu-feature-title {
  font-family: var(--wordmark);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 400;
  color: var(--fg);
  line-height: 1.25;
  margin-bottom: 16px;
  display: block;
  transition: opacity .18s var(--ease);
}
.menu-feature-title:hover { opacity: .65; }
.menu-feature-body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 20px;
}
.menu-feature-link {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-left: 22px;
  position: relative;
  display: inline-block;
  transition: opacity .18s var(--ease);
}
.menu-feature-link::before {
  content: "↳";
  position: absolute;
  left: -22px;
  opacity: .55;
  font-family: 'Geist', 'General Sans', system-ui, sans-serif;
}
.menu-feature-link:hover { opacity: .65; }
/* Right column: about + bottom links */
.menu-about-body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg);
  margin-bottom: 24px;
}
.menu-bottom {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.menu-bottom a {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--fg);
  transition: opacity .18s var(--ease);
}
.menu-bottom a:hover { opacity: .65; }
@media (max-width: 860px) {
  .menu-nav { grid-template-columns: 1fr; gap: 48px; }
  .menu-col:nth-child(3) { display: none; }
}

/* =================================================================
   MOTION — scroll-reveal (Nexflow influence)
   ================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger > *:nth-child(5) { transition-delay: 320ms; }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1100px) {
  .callout-inner { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .menu-nav { grid-template-columns: 1fr 1fr; }
  .menu-col:last-child { display: none; }
}
@media (max-width: 860px) {
  /* Nav — solo logo + hamburger su mobile, niente Get Started */
  .nav-icon-btn[aria-label="Search"] { display: none; }
  .nav .btn-primary { display: none; }
  .nav { gap: 0; }

  .hero-headline { font-size: 56px; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .ctas { grid-template-columns: 1fr; }
  .cta-block { border-right: none; border-bottom: 1px solid var(--hair); }
  .menu-nav { grid-template-columns: 1fr; gap: 32px; }
  .menu-col:last-child { display: flex; }
  .menu-topbar { padding: 0 20px; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .callout-word { font-size: clamp(56px, 14vw, 96px); }
  .hero-headline { font-size: 44px; }
  .search-input { font-size: clamp(24px, 7vw, 40px); }
  .cta-h { font-size: clamp(28px, 7vw, 44px); }

  /* Hero mobile: bottoni full-width, meno gap */
  .hero-actions { flex-direction: column; width: 100%; gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-inner { gap: 24px; }
}

/* =============================================================
   PRODUCT PAGES (Palantir Warp Speed–style)
============================================================= */
.product-page { padding: clamp(60px, 9vw, 120px) var(--pad-x); }
.product-illust { display: flex; justify-content: flex-end; padding: 0 0 80px; }
.product-svg { width: 100%; max-width: 720px; height: auto; color: var(--fg); }
.product-svg .lbl { font-family: var(--sans); font-size: 14px; fill: var(--fg); }
.product-svg line, .product-svg path, .product-svg rect, .product-svg circle, .product-svg polyline { stroke: var(--fg); stroke-width: 1.2; vector-effect: non-scaling-stroke; }

.product-meta { padding: 32px 0 56px; border-top: 1px solid var(--hair); }
.product-meta-row { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: clamp(28px, 4vw, 64px); }
.product-meta-cell { display: flex; flex-direction: column; gap: 14px; }
.meta-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.meta-val { font-family: var(--sans); font-size: 14px; line-height: 1.45; color: var(--fg); }

.product-wordmark { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 1.5vw, 20px); padding: clamp(40px, 6vw, 100px) 0 clamp(60px, 8vw, 120px); }
.product-wordmark-text { font-family: var(--headline); font-size: clamp(80px, 13vw, 200px); font-weight: 300; letter-spacing: -.04em; line-height: 1; color: var(--fg); font-feature-settings: "ss04" on, "ss01" on; }
.product-wordmark-star { width: clamp(50px, 8vw, 120px); height: clamp(50px, 8vw, 120px); }

@media (max-width: 860px) {
  .product-meta-row { grid-template-columns: 1fr; }
  .product-wordmark-text { font-size: clamp(48px, 16vw, 88px); }
}

/* =============================================================
   CULTURE — editorial heritage band, retro B&W + film grain
============================================================= */
.culture {
  background: #08090d;
  border-top: 1px solid var(--hair);
  padding: clamp(80px, 12vh, 160px) var(--pad-x);
}
.culture-inner { max-width: 1100px; margin: 0 auto; }
.culture-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.culture-h {
  font-family: var(--headline);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 18px 0 0;
  max-width: 20ch;
  color: #efefef;
}
.culture-sub {
  font-family: var(--sans);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 52ch;
  margin: 18px 0 0;
}
.culture-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  margin-top: clamp(40px, 6vh, 72px);
}
.culture-fig {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--hair);
  background: #000;
}
.culture-fig-wide { aspect-ratio: 16 / 10; }
.culture-fig-tall { aspect-ratio: 3 / 4; }
.culture-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* retro: desaturated, punchy contrast, slightly dark to sit in the brand */
  filter: grayscale(1) contrast(1.12) brightness(.82);
}
/* dark vignette + bottom gradient for caption legibility */
.culture-fig::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 52%, rgba(8,9,13,.72) 100%),
    radial-gradient(ellipse 120% 100% at 50% 38%, transparent 58%, rgba(8,9,13,.5));
}
/* film grain layer */
.culture-fig::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .10;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.culture-fig figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(246,246,247,.85);
}
@media (max-width: 760px) {
  .culture-grid { grid-template-columns: 1fr; }
  .culture-fig-wide, .culture-fig-tall { aspect-ratio: 16 / 10; }
}

/* "What we do" — expansion line under the single lead product */
.software-next {
  margin-top: clamp(28px, 4vh, 48px);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .03em;
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}

/* =============================================================
   LIGHT THEME — everything below the hero (Palantir-style white).
   The hero (.hero) stays dark; every section under it inverts to #fff.
============================================================= */
.members,
.software-pin,
.culture,
.ctas,
.foot { background: #ffffff; }

/* MEMBERS marquee on white — white logos flipped to black */
.members-label { color: rgba(30,31,43,.58); }
.logo-track img { filter: brightness(0); opacity: .38; }
.logo-track img:hover { opacity: .7; }

/* STATEMENT — Alliance No.1, dark #1e1f2b + accent #aaaaaa, LEFT-aligned, big */
/* Statement — original-style big CENTERED block (Palantir image 28), static (no scroll reveal). */
.software-statement {
  font-size: clamp(40px, 4.7vw, 70px);
  color: #1e1f2b;
  max-width: min(82vw, 1140px);
  text-align: center;
  line-height: 1.1;
  margin: 0 auto;
}
.software-statement .word { color: rgba(30,31,43,.20); }
.software-statement .word.is-lit { color: #1e1f2b; }
.software-statement .accent .word { color: rgba(170,170,170,.40); }
.software-statement .accent .word.is-lit { color: #aaaaaa; }

/* CULTURE band on white */
.culture { border-top-color: rgba(30,31,43,.12); }
.culture-label { color: rgba(30,31,43,.58); }
.culture-h { color: #1e1f2b; }
.culture-sub { color: rgba(30,31,43,.62); }
.culture-fig { border-color: rgba(30,31,43,.14); }

/* CTAS — Get Started (#202426 dark) + Request a Demo (#dbdbdb grey) */
.cta-light { background: #202426; border-color: #202426; }
.cta-light .cta-h, .cta-light .cta-arr { color: #ffffff; }
.cta-light:hover { background: #14181a; }
.cta-dark { background: #dbdbdb; border-color: #dbdbdb; }
.cta-dark .cta-h, .cta-dark .cta-arr { color: #1e1f2b; }
.cta-dark:hover { background: #cfcfcf; border-color: #cfcfcf; }
/* thin hairlines above + below the CTA row (Palantir reference) */
.ctas { border-top: 1px solid rgba(30,31,43,.16); border-bottom: 1px solid rgba(30,31,43,.16); }

/* FOOTER on white */
.foot { border-top: 1px solid rgba(30,31,43,.12); }
.foot-copy { color: #1e1f2b; }
.foot-mini { color: #1e1f2b; border-bottom-color: rgba(30,31,43,.14); }
.foot-region a { color: rgba(30,31,43,.55); }
.foot-region a.active, .foot-region a:hover { color: #1e1f2b; }
.foot-social-pill { color: #1e1f2b; border-color: rgba(30,31,43,.24); }
.foot-social-pill:hover { background: rgba(30,31,43,.05); border-color: #1e1f2b; }
.foot-h { color: rgba(30,31,43,.55); }
.foot-col a { color: #1e1f2b; }

/* NAV — Get Started PURE WHITE + wider, icon buttons PURE WHITE (NORMAL nav only).
   When an overlay opens, the original ghost rules win (dark buttons, white
   outline) and the active close X turns solid white — search + menu identical. */
.nav .btn-primary {
  background: #ffffff;
  color: #1e2124;
  border-color: #1e2124;
  padding: 0 74px;            /* wider than the 52px default */
}
.nav .btn-primary:hover { background: #ffffff; opacity: .85; }
.nav-icon-btn {
  background: #ffffff;
  border-color: #1e2124;
  color: #1e2124;
}
.nav-icon-btn:hover { background: #ffffff; opacity: .85; }

/* =============================================================
   OUR PLATFORM — Palantir "Our Software" replica (single wordmark)
============================================================= */
.software-feature {
  background: #ffffff;
  padding: clamp(64px, 9vh, 140px) var(--pad-x) clamp(72px, 11vh, 170px);
}
.sf-inner { max-width: 1480px; margin: 0 auto; }
.sf-label {
  font-family: var(--headline);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: -.02em;
  color: #1e1f2b;
  margin: 0 0 clamp(28px, 4vh, 52px);
}
.sf-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(24px, 4vw, 72px);
  align-items: stretch;
  border-top: 1px solid rgba(30,31,43,.14);
  padding-top: clamp(28px, 4vh, 56px);
}
.sf-left {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vh, 56px);
  min-height: clamp(160px, 22vh, 260px);
}
.sf-desc {
  font-family: var(--sans);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.45;
  color: #1e1f2b;
  max-width: 24ch;
  margin: 0;
}
.sf-num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: rgba(30,31,43,.5);
  margin-top: auto;
}
.sf-soon {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(30,31,43,.5);
  opacity: 0;
  transition: opacity .35s var(--ease);
  margin-top: 6px;
}
.sf-soon.show { opacity: 1; }
.sf-wordmark {
  justify-self: end;
  align-self: center;
  font-family: var(--headline);
  font-size: clamp(72px, 13vw, 220px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.03em;
  color: #1e1f2b;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-feature-settings: "ss04" on, "ss01" on;
  transition: opacity .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.sf-wordmark:hover { opacity: .82; }
.sf-wordmark:focus-visible { outline: 1px solid rgba(30,31,43,.4); outline-offset: 8px; }
/* click = animation only (no navigation): decode flicker + soft pulse */
.sf-wordmark.is-anim { animation: sfDecode .62s steps(1, end); }
@keyframes sfDecode {
  0%   { opacity: 1;  transform: scale(1); }
  12%  { opacity: .35; transform: scale(1.012); }
  24%  { opacity: 1; }
  38%  { opacity: .5; }
  52%  { opacity: 1; }
  66%  { opacity: .4; transform: scale(1.006); }
  100% { opacity: 1; transform: scale(1); }
}
@media (max-width: 760px) {
  .sf-row { grid-template-columns: 1fr; gap: 32px; }
  .sf-wordmark { justify-self: start; font-size: clamp(56px, 22vw, 120px); }
}

/* =============================================================
   GOAL ITER 2 — transparent Palantir nav, lighter hero (no grid),
   black CTA lines + smaller buttons, Atlas in Alliance No.2
============================================================= */

/* NAV — original frosted "liquid glass" pill, original sticky position. The dark
   "Read our manifesto" bar (with its hover-white close X) is restored exactly as
   it was before (base .announce styles apply). */
.nav-outer { padding: 0 10px; }
.nav {
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-radius: 14px;
  padding: 0 20px;
  height: 70px;
  transition: background .25s ease;
}
/* over the white sections: lift the glass a touch so the logo/icons stay readable.
   Get Started + icons stay WHITE always (never dark). */
body.nav-scrolled .nav {
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
body.nav-scrolled .brand { color: #1e1f2b; }
/* the asterisk mark is a white PNG — flip it to black so it reads on the white bar */
body.nav-scrolled .logo-mark { filter: brightness(0); }

/* join the search + menu icon buttons (shared border); Get Started pushed left */
.nav-cta { gap: 0; }
.nav .btn-primary { margin-right: 18px; }
.nav-cta .nav-icon-btn + .nav-icon-btn { margin-left: -1px; }

/* HERO: drop the grid; animated dunk GIF (B&W, dark) — neutral grade */
.hero-grid { display: none; }
.hero-img { filter: contrast(1.06) brightness(.95); object-position: center 35%; }

/* HERO FLOW — soft cool-toned light blobs drifting across the image (the "flusso") */
.hero-flow {
  position: absolute;
  inset: -25%;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(38% 50% at 28% 32%, rgba(86,150,255,.30), transparent 62%),
    radial-gradient(46% 50% at 72% 56%, rgba(70,210,220,.24), transparent 62%),
    radial-gradient(42% 52% at 52% 84%, rgba(150,120,255,.22), transparent 62%);
  filter: blur(48px);
  mix-blend-mode: screen;
  opacity: .65;
  animation: heroFlow 18s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroFlow {
  0%   { transform: translate3d(-5%, -3%, 0) scale(1.05) rotate(0deg); }
  50%  { transform: translate3d(4%, 3%, 0) scale(1.14) rotate(4deg); }
  100% { transform: translate3d(-3%, 5%, 0) scale(1.06) rotate(-3deg); }
}
@media (prefers-reduced-motion: reduce) { .hero-flow { animation: none; } }

/* Hero intro: lock the screen + scroll while the dunk GIF plays once */
html.intro-lock, html.intro-lock body { overflow: hidden; height: 100%; touch-action: none; }
.hero-scrim {
  background:
    linear-gradient(180deg,
      rgba(8,9,13,.52) 0%,
      rgba(8,9,13,.20) 42%,
      rgba(8,9,13,.30) 66%,
      rgba(8,9,13,.82) 100%);
}

/* STATEMENT: normal flow section, static. A bit more breathing room above it
   (separated from the members logos). Smooth scroll + scroll-margin so the
   "Scroll to explore" anchor lands cleanly on the statement. */
html { scroll-behavior: smooth; }
.software-pin { height: auto; scroll-margin-top: clamp(96px, 13vh, 132px); }
.software-stage {
  position: static;
  height: auto;
  min-height: 0;
  justify-content: center;
  align-items: center;
  padding: clamp(60px, 9vh, 132px) var(--pad-x) clamp(48px, 7vh, 100px);
}
.software-statement .word { color: #1e1f2b; display: inline; }
.software-statement .accent .word { color: #aaaaaa; }
.members { padding-bottom: clamp(30px, 4.5vh, 56px); }
.software-feature { padding-top: clamp(8px, 2vh, 28px); }

/* OUR PLATFORM wordmark in Alliance No.2 (same as the hero h1) */
.sf-wordmark { font-family: var(--display); }

/* CTAS: original (big) button size kept; black hairlines moved onto the button
   ROW so they start/end exactly where the buttons are (not full-bleed). */
.ctas { border: 0; padding: clamp(40px, 6vh, 90px) var(--pad-x); display: block; }
.ctas-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 1.5vw, 24px);
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  padding: clamp(22px, 2.6vw, 36px) 0;
}

/* "What we're building" / Atlas — Palantir "Our Software" layout (image 29):
   wordmark + descriptor on the LEFT, /0.1 top-right, white bg, with a continuous
   real-time shimmer running across the "Atlas" wordmark. */
.sf-inner { max-width: min(94vw, 1500px); margin: 0; }
.sf-label { font-size: clamp(18px, 1.6vw, 24px); }
.sf-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  grid-template-columns: none;
  gap: clamp(24px, 4vw, 80px);
}
.sf-main { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(16px, 2.4vh, 32px); min-height: 0; }
.sf-desc { max-width: 46ch; margin: 0; font-size: 20px; color: #1e1f2b; }
.sf-num { margin: 6px 0 0; font-size: 14px; align-self: flex-start; }
.sf-wordmark {
  font-family: var(--display);  /* Alliance No.2 */
  font-size: 80px;              /* fixed 80px */
  line-height: .9;
  letter-spacing: -.03em;
  justify-self: auto;
  align-self: auto;
  cursor: default;
  color: #1e1f2b;
}
/* Atlas reuses the product-name typewriter (letters A,t,l,a,s appear one by one) */
.sf-wordmark.product-name { color: #1e1f2b; }
.sf-wordmark.product-name .letter { color: #1e1f2b; }

/* "real-time" stays static (no reveal animation) */

/* =============================================================
   MANIFESTO page — inverted to a WHITE background (dark text)
============================================================= */
body.page-manifesto { background: #ffffff; }
body.page-manifesto .manifesto { border-bottom-color: rgba(30,31,43,.12); }
body.page-manifesto .manifesto-h { color: #1e1f2b; }
body.page-manifesto .manifesto-h .muted { color: #aaaaaa; }
body.page-manifesto .m-h { color: rgba(30,31,43,.55); border-bottom-color: rgba(30,31,43,.14); }
body.page-manifesto .m-section p { color: #1e1f2b; }
body.page-manifesto .m-section p em { color: rgba(30,31,43,.6); }
body.page-manifesto .m-list li { color: #1e1f2b; }
body.page-manifesto .m-link { color: #1e1f2b; }
body.page-manifesto .m-sign-text { color: #1e1f2b; }
/* nav readable over the white page: dark logo + light frosted bar */
body.page-manifesto .nav { background: rgba(255,255,255,.72); }
body.page-manifesto .brand { color: #1e1f2b; }
body.page-manifesto .logo-mark { filter: brightness(0); }

/* =============================================================
   CONTACT page — white background (dark text), homepage-style CTAs
============================================================= */
body.page-contact { background: #ffffff; }
body.page-contact .contact-head { padding: clamp(60px, 12vh, 140px) var(--pad-x) clamp(24px, 4vh, 48px); max-width: 1480px; margin: 0 auto; }
body.page-contact .manifesto-h { color: #1e1f2b; }
body.page-contact .nav { background: rgba(255,255,255,.72); }
body.page-contact .brand { color: #1e1f2b; }
body.page-contact .logo-mark { filter: brightness(0); }

/* =============================================================
   MENU OPEN — the nav matches the overlay's grey on EVERY page,
   overriding the scroll-aware / page-specific light nav.
============================================================= */
body.overlay-open .nav {
  background: #1E2121;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
body.overlay-open .brand { color: #ffffff; }
body.overlay-open .logo-mark { filter: none; }

/* =============================================================
   MOBILE POLISH (≤560px): right-size the statement + stack the CTA blocks
============================================================= */
/* Mobile sticky action bar (phones) — hidden by default, shown at <=560px */
.mobile-bar { display: none; }
.mb-ic-close { display: none; }

@media (max-width: 560px) {
  .software-statement { font-size: clamp(26px, 7.4vw, 34px); max-width: 90vw; }
  .ctas-row { grid-template-columns: 1fr; }
  /* footer: stack to one column so the meta block + social pills aren't squeezed */
  .foot-grid-min { grid-template-columns: 1fr; gap: 36px; }
  .foot-social { flex-wrap: nowrap; }

  /* the top nav loses its action cluster — it becomes just the logo */
  .nav-cta { display: none; }

  /* fixed bottom action bar: menu + search + Get Started, always visible */
  .mobile-bar {
    display: flex; align-items: center; gap: 0;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 400;
    padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    background: transparent;   /* no bar — just the buttons over the site bg */
  }
  /* squared icon buttons, joined, left — exactly like the desktop nav */
  .mb-btn {
    flex: 0 0 auto; width: 40px; height: 40px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: #ffffff; border: 1px solid #1e2124; border-radius: 0;
    color: #1e2124; cursor: pointer;
  }
  .mb-search { order: 1; }
  .mb-menu { order: 2; margin-left: -1px; }
  /* size EVERY svg in the icon buttons — incl. the ones the JS injects via
     innerHTML on open (those lack the .mb-ic class, so without this they
     render with no size = empty button). */
  .mb-ic, .mb-btn svg { width: 20px; height: 20px; }
  /* Get Started — small white pill on the right, like the desktop nav */
  .mb-cta {
    flex: 0 0 auto; order: 3; margin-left: auto; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #ffffff; color: #1e2124; border: 1px solid #1e2124; border-radius: 0;
    padding: 0 16px; font-family: var(--sans); font-size: 14px; font-weight: 500;
    letter-spacing: -.005em; text-decoration: none;
  }
  /* page must clear the fixed bar so the footer isn't hidden behind it */
  body { padding-bottom: 78px; }

  /* overlay open: the active button goes white with an X; the other two (incl
     Get Started) take the menu's grey #1E2121, logo/text still visible in white.
     NO borders (no leftover threads) and nothing disappears. */
  /* overlay open: EVERY button always keeps its black border + visible (dark)
     icon. Non-active = grey box, active = white box; only the active swaps
     its icon for an X. Nothing — border, icon or box — ever disappears. */
  /* normal = white buttons (untouched). Overlay open: non-active take the menu's
     grey #1E2121 (logo white so it stays visible); active = white box with X. */
  /* every button (incl. the active one with the X) = menu grey #1E2121 + WHITE
     border + white icon; the active just shows the X (nothing turns white). */
  body.overlay-open .mb-btn { background: #1E2121; border-color: #ffffff; color: #ffffff; }
  body.overlay-open .mb-cta { background: #1E2121; border-color: #ffffff; color: #ffffff; }
  body.menu-open .mb-menu .mb-ic-open,
  body.search-open .mb-search .mb-ic-open { display: none; }
  body.menu-open .mb-menu .mb-ic-close,
  body.search-open .mb-search .mb-ic-close { display: inline; }

  /* nav + announce stay exactly as before (in flow, with their own bg). Hero
     fits under the announce; "Scroll to explore" clears the bottom bar. */
  .hero { height: calc(100svh - 53px); min-height: 0; }
  .hero-scroll { bottom: 165px; }
}
