/* =================================================================
   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: 40px;
  height: 40px;
  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;
}

.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(--headline);
  font-size: clamp(40px, 5.6vw, 88px);
  font-weight: 300;
  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); }
}
