/* =====================================================================
   AXIS ROBOTICS — stylesheet
   Structure:
     1.  Fonts & tokens
     2.  Reset & base
     3.  Layout utilities / helpers
     4.  Buttons
     5.  Media placeholders
     6.  Preloader
     7.  Header & navigation
     8.  Mega menu
     9.  Hero
     10. Bottleneck (pinned card stack)
     11. Loop (word-reveal)
     12. Living system (rock parallax)
     13. Quadrants (green feature grid)
     14. Ecosystem
     15. Pillars (Infra / Workforce / Data)
     16. Products (pinned panels)
     17. Marquee
     18. Footer
     19. Reveal animation system
     20. Responsive
     21. Accessibility
===================================================================== */

/* ---------------------------------------------------------------------
   1. FONTS & TOKENS
--------------------------------------------------------------------- */
:root {
  /* Palette */
  --black: #000000;
  --near-black: #0a0a0a;
  --ink: #111111;
  --white: #ffffff;
  --off-white: #f6f6f4;
  --green: #17a64b;
  --green-dim: #0f7d38;
  --green-soft: #bfe8cd;
  --gray-100: #f2f2f0;
  --gray-200: #e4e4e1;
  --gray-300: #cfcfcb;
  --gray-400: #a9a9a5;
  --gray-500: #8a8a86;
  --gray-600: #6b6b68;
  --gray-700: #4a4a48;
  --gray-800: #242422;
  --gray-900: #161615;

  /* Fonts */
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-ui: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Layout */
  --header-h: 96px;
  --side-pad: 48px;
  --container-max: 1760px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(.16, .84, .44, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: .25s;
  --dur-med: .5s;
  --dur-slow: .9s;

  color-scheme: light;
}

@media (max-width: 1023px) {
  :root {
    --header-h: 76px;
    --side-pad: 24px;
  }
}

@media (max-width: 560px) {
  :root {
    --side-pad: 20px;
  }
}

/* ---------------------------------------------------------------------
   2. RESET & BASE
--------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
  height: 100vh;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 10000;
  background: var(--white);
  color: var(--black);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-weight: 600;
  transition: top .2s var(--ease-out);
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

section {
  position: relative;
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--gray-500);
  font-weight: 500;
}

/* ---------------------------------------------------------------------
   3. LAYOUT UTILITIES
--------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--side-pad);
}

/* ---------------------------------------------------------------------
   4. BUTTONS
--------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast);
}

.btn i {
  font-size: 18px;
  transition: transform var(--dur-fast) var(--ease-out);
}

.btn:hover i {
  transform: translate(2px, -2px);
}

.btn:active {
  transform: scale(.97);
}

.btn--pill {
  padding: 15px 14px 15px 26px;
  border-radius: var(--radius-pill);
  justify-content: space-between;
  min-width: 190px;
}

.btn--light {
  background: var(--white);
  color: var(--black);
}

.btn--light:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

.btn--dark {
  background: var(--black);
  color: var(--white);
}

.btn--dark:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

.btn--launch {
  color: currentColor;
  min-width: 0;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------------------------------------------------------------------
   5. MEDIA PLACEHOLDERS
--------------------------------------------------------------------- */
.media-placeholder {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #1c1c1c, #050505);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  isolation: isolate;
}

.media-placeholder::after {
  content: attr(data-asset-label);
  position: absolute;
  left: 10px;
  bottom: 8px;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .32);
  z-index: 1;
  pointer-events: none;
}

.media-placeholder__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 16px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  line-height: 1.4;
}

.media-placeholder__inner i {
  font-size: 26px;
  color: rgba(255, 255, 255, .4);
}

/* light variant, used on white sections so placeholder text is legible */
.pillar__media.media-placeholder,
.rock-shape.media-placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(0, 0, 0, .025) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #e9e9e6, #cfcfca);
}

.rock-shape.media-placeholder .media-placeholder__inner,
.rock-shape.media-placeholder .media-placeholder__inner i {
  color: rgba(0, 0, 0, .35);
}

.rock-shape.media-placeholder::after {
  color: rgba(0, 0, 0, .3);
}

/* ---------------------------------------------------------------------
   6. PRELOADER
--------------------------------------------------------------------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-inline: var(--side-pad);
  border-top: 3px solid #2f4dbf;
  transition: transform .9s var(--ease-in-out), opacity .6s ease .1s;
}

#preloader.is-done {
  transform: translateY(-100%);
  opacity: .98;
  pointer-events: none;
}

.preloader__mark {
  position: absolute;
  top: 40px;
  left: var(--side-pad);
  width: 34px;
  height: 34px;
  color: var(--black);
  opacity: 0;
  animation: fadeIn .5s var(--ease-out) .2s forwards;
}

.preloader__icon {
  width: 100%;
  height: 100%;
}

.preloader__wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 9vw, 120px);
  line-height: .94;
  letter-spacing: -.01em;
  color: var(--black);
  opacity: 0;
  transform: translateY(24px);
  animation: revealUp .7s var(--ease-out) .25s forwards;
}

.preloader__percent {
  position: absolute;
  top: 44px;
  right: var(--side-pad);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 32px);
  color: var(--black);
}

.preloader__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--gray-200);
}

.preloader__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--black);
  transition: width .15s linear;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------------------------------------------------------------
   7. HEADER & NAVIGATION
--------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: flex-start;
  background: transparent;
  color: var(--white);
  transition: color var(--dur-fast) ease;
  mix-blend-mode: normal;
}

.site-header[data-theme="light"] {
  color: var(--black);
}

.site-header[data-theme="dark"] {
  color: var(--white);
}

.site-header[data-theme="green"] {
  color: var(--white);
}

.site-header__inner {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 30px var(--side-pad) 0;
}

/* Brand -------------------------------------------------------------- */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand__icon {
  width: 26px;
  height: 26px;
  flex: none;
  color: currentColor;
}

.brand__text {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.18;
  letter-spacing: .01em;
  white-space: nowrap;
}

/* Right cluster -------------------------------------------------------*/
.site-header__inner>.nav-expanded,
.site-header__inner>.nav-compact {
  margin-left: auto;
}

.nav-compact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 16px;
  padding: 6px 2px;
}

.nav-compact__icon {
  font-size: 18px;
  transition: transform var(--dur-fast) var(--ease-out);
}

.nav-compact[aria-expanded="true"] .nav-compact__icon {
  transform: rotate(45deg);
}

/* Expanded inline nav (hero, scrollY = 0, desktop only) --------------*/
.nav-expanded {
  display: none;
}

.nav-expanded ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}

.nav-expanded__item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 170px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 16px;
  padding: 4px 0;
  transition: opacity var(--dur-fast), transform var(--dur-fast);
}

.nav-expanded__item i {
  font-size: 16px;
}

.nav-expanded__item:hover {
  opacity: .6;
}

/* header top-state toggling (desktop only) */
@media (min-width:1024px) {
  .site-header.at-top .nav-expanded {
    display: block;
  }

  .site-header.at-top .nav-compact {
    display: none;
  }

  .site-header:not(.at-top) .nav-expanded {
    display: none;
  }
}

.btn--launch {
  flex: 0 0 auto;
}

/* ---------------------------------------------------------------------
   8. MEGA MENU
--------------------------------------------------------------------- */
.mega-menu__scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  backdrop-filter: blur(2px);
  z-index: 940;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-out);
}

.mega-menu__scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mega-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(480px, 92vw);
  height: 100%;
  z-index: 950;
  background: var(--white);
  color: var(--black);
  transform: translateX(100%);
  transition: transform var(--dur-med) var(--ease-in-out);
  display: flex;
  flex-direction: column;
  box-shadow: -30px 0 60px rgba(0, 0, 0, .2);
}

.mega-menu.is-open {
  transform: translateX(0);
}

.mega-menu__panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 30px var(--side-pad);
  overflow-y: auto;
}

.mega-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.mega-menu__title {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 16px;
}

.mega-menu__close {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  font-size: 18px;
  transition: background var(--dur-fast), transform var(--dur-fast);
}

.mega-menu__close:hover {
  background: var(--gray-100);
  transform: rotate(90deg);
}

.mega-menu__columns {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

.mm-cat {
  border-bottom: 1px solid var(--gray-200);
}

.mm-cat:first-child {
  border-top: 1px solid var(--gray-200);
}

.mm-cat__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 2px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
}

.mm-cat__trigger i {
  font-size: 20px;
  transition: transform var(--dur-fast) var(--ease-out);
}

.mm-cat.is-open .mm-cat__trigger i {
  transform: rotate(45deg);
}

.mm-cat__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-med) var(--ease-in-out);
}

.mm-cat.is-open .mm-cat__panel {
  max-height: 320px;
}

.mm-cat__panel ul {
  padding-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mm-cat__panel a {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--gray-600);
  transition: color var(--dur-fast);
}

.mm-cat__panel a:hover {
  color: var(--black);
}

.mega-menu__foot {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mega-menu__social {
  display: flex;
  gap: 10px;
}

.mega-menu__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.mega-menu__social a:hover {
  background: var(--black);
  color: var(--white);
}

/* ---------------------------------------------------------------------
   9. HERO
--------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--near-black);
  color: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15, 60, 25, .65) 0%, transparent 32%),
    linear-gradient(to bottom, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .55) 100%);
  pointer-events: none;
}

.hero__content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  padding: calc(var(--header-h) + 70px) var(--side-pad) 0;
}

.hero__intro {
  margin-left: auto;
  max-width: 620px;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.5;
  color: rgba(255, 255, 255, .92);
  text-align: right;
}

.hero__bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 0 var(--side-pad) 64px;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -.01em;
  max-width: 900px;
}

.hero__cta {
  flex: 0 0 auto;
}

/* ---------------------------------------------------------------------
   Generic pinned-scroll scaffolding
   (desktop: sticky+tall wrapper driven by JS; mobile: normal flow)
--------------------------------------------------------------------- */
.pin-wrapper {
  position: relative;
}

.pin-inner {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

@media (min-width:1024px) {
  .pin-inner {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }
}

/* ---------------------------------------------------------------------
   10. BOTTLENECK
--------------------------------------------------------------------- */
.bottleneck {
  background: var(--white);
  color: var(--black);
}

.bottleneck__grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 0 var(--side-pad);
  padding-top: var(--header-h);
}

.bottleneck__copy {
  padding-right: 24px;
}

.bottleneck__data {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(90px, 13vw, 200px);
  line-height: .85;
  letter-spacing: -.02em;
  margin: 6px 0 10px;
}

.bottleneck__sub {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 500;
  color: var(--black);
}

.bottleneck__sub em {
  font-style: italic;
  color: var(--green);
  font-weight: 600;
}

.bottleneck__cards {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.bottleneck__pager {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--gray-600);
  align-self: flex-end;
}

.bottleneck__pager i {
  font-size: 15px;
}

.bottleneck__pager-count {
  font-weight: 600;
  color: var(--black);
}

.card-stack {
  position: relative;
  width: 100%;
  max-width: 620px;
  height: 440px;
}

.story-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--gray-900);
  will-change: transform, opacity;
}

.story-card img {
  height: 100%;
}

.story-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.story-card__body {
  position: relative;
  z-index: 1;
  padding: 28px 26px 26px;
  background: linear-gradient(to top, rgba(0, 0, 0, .88) 10%, rgba(0, 0, 0, .35) 65%, transparent 100%);
}

.story-card__body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 1.8vw, 26px);
  color: var(--white);
  margin-bottom: 8px;
}

.story-card__body p {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .72);
  max-width: 46ch;
}

@media (min-width:1024px) {
  .story-card {
    position: absolute;
    inset: 0;
    transform-origin: bottom right;
  }
}

/* ---------------------------------------------------------------------
   11. LOOP (scroll-tied word reveal)
--------------------------------------------------------------------- */
.loop {
  background: var(--black);
  color: var(--white);
  padding: 34vh var(--side-pad);
  min-height: 110vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loop__text {
  max-width: 1500px;
  margin-inline: auto;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4.6vw, 64px);
  line-height: 1.22;
  letter-spacing: -.01em;
}

.loop__text span {
  color: rgba(255, 255, 255, .18);
  transition: color .45s var(--ease-out);
}

.loop__text span.is-revealed {
  color: var(--white);
}

.loop__text span[data-accent].is-revealed {
  color: var(--green);
}

/* ---------------------------------------------------------------------
   12. LIVING SYSTEM
--------------------------------------------------------------------- */
.living-system {
  background: var(--off-white);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 40px) var(--side-pad) 60px;
}

.living-system__heading {
  position: relative;
  z-index: 1;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 5vw, 68px);
  line-height: 1.18;
  letter-spacing: -.01em;
  color: rgba(20, 20, 18, .82);
  max-width: 1100px;
}

.living-system__rock {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: min(46vw, 620px);
  aspect-ratio: 1/1;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.rock-shape {
  width: 100%;
  height: 100%;
  border-radius: 38% 62% 55% 45%/48% 42% 58% 52%;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .25));
  animation: rockFloat 7s ease-in-out infinite;
}

@keyframes rockFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

/* ---------------------------------------------------------------------
   13. QUADRANTS
--------------------------------------------------------------------- */
.quadrants {
  background: var(--green);
  color: var(--white);
  min-height: 100vh;
  padding: calc(var(--header-h) + 60px) var(--side-pad) 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.quadrants__rock {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(30vw, 420px);
  aspect-ratio: 1/1;
  z-index: 2;
}

.quadrants__rock .rock-shape {
  border-radius: 42% 58% 50% 50%/55% 45% 55% 45%;
}

.quadrants__ring {
  position: absolute;
  inset: -14%;
  border: 1.5px dashed rgba(255, 255, 255, .55);
  border-radius: 50%;
  animation: spin 50s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.quadrants__grid {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 120px;
  column-gap: 40px;
}

.quadrant {
  max-width: 340px;
}

.quadrant:nth-child(2) {
  justify-self: end;
  text-align: right;
}

.quadrant:nth-child(4) {
  justify-self: end;
  text-align: right;
}

.quadrant i {
  font-size: 26px;
  margin-bottom: 16px;
  display: inline-block;
}

.quadrant h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 1.9vw, 28px);
  margin-bottom: 8px;
}

.quadrant p {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .85);
}

/* ---------------------------------------------------------------------
   14. ECOSYSTEM
--------------------------------------------------------------------- */
.ecosystem {
  background: var(--white);
  color: var(--black);
  padding: calc(var(--header-h) + 80px) var(--side-pad) 120px;
  text-align: center;
}

.ecosystem__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6.2vw, 92px);
  line-height: 1.03;
  letter-spacing: -.02em;
  max-width: 1400px;
  margin-inline: auto;
}

.ecosystem__body {
  margin: 40px auto 0;
  max-width: 820px;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.6;
  color: var(--gray-600);
}

/* ---------------------------------------------------------------------
   15. PILLARS
--------------------------------------------------------------------- */
.pillars {
  background: var(--white);
  padding: 0 var(--side-pad) 120px;
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pillar {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 560px;
}

.pillar__head {
  padding: 32px 32px 8px;
}

.pillar__head h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 2.4vw, 34px);
  margin-bottom: 10px;
}

.pillar__head p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--gray-400);
}

.pillar__media {
  flex: 1;
  margin: 20px 20px 20px;
  border-radius: var(--radius-sm);
}

/* ---------------------------------------------------------------------
   16. PRODUCTS
--------------------------------------------------------------------- */
.products {
  background: var(--black);
  color: var(--white);
}

.products__grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 0 var(--side-pad);
  padding-top: var(--header-h);
}

/* --- device mock (desktop / pinned column) --- */
.products__media {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 70vh;
  max-height: 620px;
}

.products__ledge {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 0;
  height: 38%;
  background:
    radial-gradient(120% 100% at 30% 0%, rgba(255, 255, 255, .05), transparent 60%),
    linear-gradient(160deg, #222, #050505);
  clip-path: polygon(0 35%, 22% 20%, 45% 38%, 68% 15%, 100% 30%, 100% 100%, 0 100%);
  z-index: 0;
}

.device-mock {
  position: relative;
  z-index: 1;
  width: min(78%, 460px);
  transform: perspective(1400px) rotateX(4deg) rotateY(-8deg);
  transition: transform .6s var(--ease-out);
}

.device-mock__frame {
  background: #111;
  border-radius: 14px 14px 4px 4px;
  padding: 10px 10px 16px;
  box-shadow: 0 40px 70px rgba(0, 0, 0, .55);
}

.device-mock__screen {
  aspect-ratio: 16/10;
  border-radius: 4px;
}

.device-mock__base {
  height: 10px;
  margin-top: -4px;
  background: linear-gradient(#1c1c1c, #050505);
  border-radius: 0 0 10px 10px;
  transform: perspective(200px) rotateX(-40deg);
  transform-origin: top;
}

.device-mock[data-device="phone"] {
  width: min(38%, 220px);
}

.device-mock[data-device="phone"] .device-mock__frame {
  border-radius: 34px;
  padding: 10px;
}

.device-mock[data-device="phone"] .device-mock__screen {
  aspect-ratio: 9/18.5;
  border-radius: 24px;
}

.device-mock[data-device="phone"] .device-mock__base {
  display: none;
}

/* --- content column --- */
.products__content {
  max-width: 640px;
}

.products__pager {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--gray-400);
  margin-bottom: 26px;
}

.products__pager-count {
  color: var(--white);
  font-weight: 600;
}

.products__rail {
  position: relative;
  width: 2px;
  height: 170px;
  background: rgba(255, 255, 255, .16);
  margin-bottom: 30px;
}

.products__rail-dot {
  position: absolute;
  left: 50%;
  top: 0%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--white);
  transform: translate(-50%, -50%);
  transition: top .1s linear;
}

.products__panels {
  position: relative;
}

.products__panel {
  display: none;
}

.products__panel.is-active {
  display: block;
  animation: panelIn .5s var(--ease-out);
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.products__panel-media {
  display: none;
}

.products__panel h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.08;
  margin-bottom: 22px;
}

.products__panel p {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
  color: var(--gray-400);
  margin-bottom: 32px;
  max-width: 56ch;
}

@media (min-width:1024px) {
  .products__panels {
    min-height: 260px;
  }
}

/* ---------------------------------------------------------------------
   17. MARQUEE
--------------------------------------------------------------------- */
.marquee-section {
  background: var(--black);
  padding: 64px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.marquee {
  width: 100%;
  overflow: hidden;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;
  animation: marquee 2s linear infinite;
}

.marquee-section:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--white);
  white-space: nowrap;
  opacity: .9;
  width: 40px;
  height: 40px;
}

.marquee__item i {
  font-size: .8em;
  color: var(--gray-400);
}

.marquee__item img {}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ---------------------------------------------------------------------
   18. FOOTER
--------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  padding-top: 180px;
}

.site-footer__banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 220px;
  background-image: linear-gradient(180deg, var(--green) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 0;
}

.site-footer__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--black) 100%);
}

.site-footer__rings {
  position: absolute;
  left: 6%;
  bottom: -10%;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center, rgba(255, 255, 255, .06) 0 1px, transparent 1px 34px);
  pointer-events: none;
  z-index: 0;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 0 var(--side-pad) 40px;
}

.site-footer__top {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-bottom: 80px;
}

.site-footer__mark {
  width: 60px;
  height: 60px;
  color: var(--white);
}

.site-footer__wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(46px, 7vw, 110px);
  line-height: .92;
  letter-spacing: -.01em;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-bottom: 120px;
}

.nav-col h4 {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15px;
  color: var(--gray-400);
  margin-bottom: 20px;
}

.nav-col ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav-col a {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--white);
  transition: opacity var(--dur-fast);
}

.nav-col a:hover {
  opacity: .6;
}

.site-footer__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.site-footer__tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 1.8vw, 26px);
  line-height: 1.3;
}

.site-footer__copyright {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gray-500);
}

.site-footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.site-footer__social {
  display: flex;
  gap: 10px;
}

.site-footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.site-footer__social a:hover {
  background: var(--white);
  color: var(--black);
}

.site-footer__legal-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.site-footer__legal-links a {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gray-500);
  transition: color var(--dur-fast);
}

.site-footer__legal-links a:hover {
  color: var(--white);
}

/* ---------------------------------------------------------------------
   19. REVEAL ANIMATION SYSTEM
--------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* staggered children */
[data-reveal-group]>* {
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* ---------------------------------------------------------------------
   20. RESPONSIVE  (tablet ≤1023px / phone ≤640px)
--------------------------------------------------------------------- */
@media (max-width:1023px) {

  /* ---- header ---- */
  .site-header__inner {
    padding-top: 22px;
    align-items: center;
  }

  .brand__text {
    font-size: 13.5px;
  }

  .brand__icon {
    width: 22px;
    height: 22px;
  }

  .nav-compact {
    font-size: 15px;
  }

  .btn--launch {
    display: none;
  }

  /* ---- hero: reorder to headline > intro > cta ---- */
  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero__content,
  .hero__bottom {
    display: contents;
  }

  .hero__intro {
    order: 2;
    text-align: left;
    max-width: none;
    padding: 18px var(--side-pad) 0;
    font-size: 15.5px;
  }

  .hero__headline {
    order: 1;
    padding: 0 var(--side-pad);
    font-size: clamp(34px, 9vw, 46px);
    max-width: none;
  }

  .hero__cta {
    order: 3;
    width: calc(100% - (var(--side-pad) * 2));
    margin: 22px var(--side-pad) 40px;
    justify-content: center;
  }

  .hero__media-fade {
    background:
      linear-gradient(to top, rgba(10, 40, 18, .75) 0%, transparent 40%),
      linear-gradient(to bottom, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, .6) 100%);
  }

  /* ---- bottleneck ---- */
  .bottleneck__grid {
    grid-template-columns: 1fr;
    padding-top: calc(var(--header-h) + 30px);
    gap: 36px;
  }

  .bottleneck__copy {
    padding-right: 0;
  }

  .bottleneck__pager {
    display: none;
  }

  .bottleneck__cards {
    align-items: stretch;
  }

  .card-stack {
    height: auto;
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .story-card {
    position: static;
    height: 420px;
    transform: none !important;
    opacity: 1 !important;
  }

  /* ---- loop ---- */
  .loop {
    padding: 18vh var(--side-pad);
    min-height: 0;
  }

  /* ---- living system ---- */
  .living-system {
    padding: calc(var(--header-h) + 20px) var(--side-pad) 40px;
    min-height: 80vh;
  }

  .living-system__rock {
    width: min(72vw, 380px);
  }

  /* ---- quadrants ---- */
  .quadrants {
    flex-direction: column;
    justify-content: flex-start;
    padding: calc(var(--header-h) + 30px) var(--side-pad) 70px;
    gap: 56px;
    min-height: 0;
  }

  .quadrants__rock {
    position: static;
    transform: none;
    width: min(66vw, 320px);
    margin-inline: auto;
  }

  .quadrants__grid {
    grid-template-columns: 1fr;
    row-gap: 44px;
  }

  .quadrant,
  .quadrant:nth-child(2),
  .quadrant:nth-child(4) {
    justify-self: start;
    text-align: left;
    max-width: none;
  }

  /* ---- ecosystem ---- */
  .ecosystem {
    padding: calc(var(--header-h) + 40px) var(--side-pad) 80px;
  }

  /* ---- pillars ---- */
  .pillars {
    padding-bottom: 70px;
  }

  .pillars__grid {
    grid-template-columns: 1fr;
  }

  .pillar {
    min-height: 460px;
  }

  /* ---- products: unwind the pin, show every panel with its own media ---- */
  .products .pin-inner {
    display: block;
    padding: 0;
  }

  .products__grid {
    display: block;
    padding-top: calc(var(--header-h) + 10px);
  }

  .products__media,
  .products__pager,
  .products__rail {
    display: none;
  }

  .products__content {
    max-width: none;
  }

  .products__panels {
    display: block;
  }

  .products__panel {
    display: block !important;
    padding-bottom: 70px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    animation: none !important;
  }

  .products__panel:last-child {
    border-bottom: 0;
  }

  .products__panel-media {
    display: flex;
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
    margin-bottom: 28px;
  }

  /* ---- footer ---- */
  .site-footer {
    padding-top: 120px;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
    row-gap: 44px;
    margin-bottom: 70px;
  }

  .site-footer__top {
    margin-bottom: 56px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .site-footer__legal {
    flex-direction: column;
    align-items: flex-start;
  }

  /* ---- marquee ---- */
  .marquee__track {
    gap: 48px;
  }
}

@media (max-width:640px) {
  .bottleneck__data {
    font-size: clamp(70px, 24vw, 120px);
  }

  .bottleneck__sub {
    font-size: clamp(24px, 8vw, 34px);
  }

  .ecosystem__heading {
    font-size: clamp(32px, 10vw, 44px);
  }

  .site-footer__wordmark {
    font-size: clamp(38px, 13vw, 60px);
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
  }

  .quadrant h3 {
    font-size: 20px;
  }
}

/* ---------------------------------------------------------------------
   21. ACCESSIBILITY
--------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}