/* ==========================================================================
   SIEIAI — sieiai.com
   ========================================================================== */

:root {
  --bg: #050505;
  --bg-2: #0A0A0A;
  --card: #0F0F0F;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #F4F4F1;
  --muted: rgba(244, 244, 241, .62);
  --dim: rgba(244, 244, 241, .4);
  --faint: rgba(244, 244, 241, .18);
  --accent: #2F45E6;
  --accent-rgb: 47, 69, 230;
  --accent-deep: #021197;
  --accent-deep-rgb: 2, 17, 151;

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

  --ease-out: cubic-bezier(.19, 1, .22, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --pad: clamp(20px, 4vw, 56px);
  --maxw: 1440px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

::selection { background: rgba(var(--accent-rgb), .28); color: #fff; }

a { color: inherit; text-decoration: none; }
svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 999px;
  background: var(--text); color: var(--bg);
  transform: translateY(-200%);
  transition: transform .3s;
}
.skip:focus { transform: none; }

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

/* Ambient layers ---------------------------------------------------------- */

.noise {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: .035;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed; top: 0; left: 0; z-index: 1; pointer-events: none;
  width: 640px; height: 640px; margin: -320px 0 0 -320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-deep-rgb), .07) 0%, rgba(var(--accent-deep-rgb), .025) 35%, transparent 65%);
  opacity: 0;
  transition: opacity .8s;
  will-change: transform;
}
.cursor-glow.is-on { opacity: 1; }

/* Type primitives -------------------------------------------------------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--muted);
  text-transform: uppercase;
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), .9);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.6vw, 5.6rem);
  line-height: .94;
  letter-spacing: -.04em;
}

.lead {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--muted);
  max-width: 400px;
}

/* Word split reveal */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .1em;
  margin-bottom: -.1em;
}
.w__i {
  display: inline-block;
  will-change: transform;
}
.js .w__i {
  transform: translate3d(0, 105%, 0);
  transition: transform 1.3s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms + var(--d, 0s));
}
.js .is-in .w__i,
.js.is-loaded .hero .w__i { transform: none; }

/* Generic reveal */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity 1.2s var(--ease-out) var(--d, 0s), transform 1.5s var(--ease-out) var(--d, 0s);
}
.js [data-reveal].is-in,
.js.is-loaded .hero [data-reveal] { opacity: 1; transform: none; }

.js .hero [data-reveal="system"] {
  transform: scale(.94);
  transition: opacity 2.4s var(--ease-out) .3s, transform 2.8s var(--ease-out) .3s;
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  isolation: isolate;
  will-change: transform;
  transition: background-color .4s, border-color .4s, box-shadow .5s, color .4s;
}
.btn__label { display: inline-flex; align-items: center; gap: .55em; will-change: transform; pointer-events: none; }
.btn__arrow { display: inline-block; transition: transform .6s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary { background: var(--text); color: #050505; }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0), 0 16px 50px -12px rgba(var(--accent-rgb), 0);
  transition: box-shadow .6s var(--ease-out);
}
.btn--primary:hover { background: #fff; }
.btn--primary:hover::before { box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .12), 0 18px 60px -12px rgba(var(--accent-rgb), .55); }

.btn--ghost {
  background: rgba(255, 255, 255, .02);
  border-color: var(--line-2);
  color: var(--text);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, .38); background: rgba(255, 255, 255, .06); }

.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 62px; padding: 0 34px; font-size: 16px; }

/* Navigation ------------------------------------------------------------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  padding: 16px var(--pad);
  transition: padding .6s var(--ease-out);
}
.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: calc(var(--maxw) - 2 * var(--pad) + 24px);
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 10px 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(10, 10, 10, 0);
  transition: max-width .9s var(--ease-out), background-color .6s, border-color .6s, box-shadow .6s, -webkit-backdrop-filter .6s, backdrop-filter .6s;
}
.nav.is-scrolled { padding-top: 12px; }
.nav.is-scrolled .nav__inner {
  max-width: 1080px;
  background: rgba(12, 12, 12, .62);
  border-color: var(--line);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .04);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
}

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .08em;
  justify-self: start;
}
.logo__mark { width: 24px; height: 24px; }

.nav__links { display: flex; gap: 6px; }
.nav__links a {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 999px;
  transition: color .3s, background-color .3s;
}
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav__links a.is-current { color: var(--text); }
.nav__links a.is-current::after {
  content: ""; position: absolute; left: 50%; bottom: 2px;
  width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%;
  background: var(--accent);
}

.nav__actions { display: flex; align-items: center; gap: 8px; justify-self: end; }

.nav__toggle {
  display: none;
  position: relative;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
}
.nav__toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.5px;
  background: var(--text);
  transition: transform .5s var(--ease-out);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 23px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; align-items: flex-end;
  padding: 120px var(--pad) 48px;
  background: rgba(5, 5, 5, .94);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease-out), visibility .5s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: grid; width: 100%; }
.mobile-menu a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 8vw, 44px);
  letter-spacing: -.03em;
  transform: translateY(20px);
  opacity: 0;
  transition: transform .8s var(--ease-out), opacity .8s var(--ease-out);
}
.mobile-menu a span { font-family: var(--font-mono); font-size: 12px; color: var(--dim); letter-spacing: .1em; }
.mobile-menu.is-open a { transform: none; opacity: 1; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: .05s; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: .1s; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: .15s; }

/* 01 — Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: clamp(36px, 6vh, 72px);
  overflow: hidden;
  isolation: isolate;
}

.hero__grid {
  position: absolute; inset: 0; z-index: -5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 68% 42%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 70% at 68% 42%, #000 10%, transparent 72%);
}

.hero__canvas { position: absolute; inset: 0; z-index: -4; width: 100%; height: 100%; }

.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, .9) 0%, rgba(5, 5, 5, .55) 30%, rgba(5, 5, 5, 0) 60%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5, 5, 5, .5) 28%, rgba(5, 5, 5, 0) 55%);
}

.hero__system {
  position: absolute; z-index: -2;
  top: 46%;
  right: max(-3vw, calc((100vw - 1760px) / 2));
  width: min(58vw, 860px);
  aspect-ratio: 1;
  margin-top: calc(min(58vw, 860px) * -.5);
}
.system {
  position: relative; width: 100%; height: 100%;
  will-change: transform;
}
.system__svg { width: 100%; height: 100%; overflow: visible; will-change: transform; }

.sys-paths path { stroke-width: 1; }
.sys-flows use { animation: dash 2.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -34; } }

.sys-node circle { fill: #0A0A0A; stroke: rgba(255, 255, 255, .45); stroke-width: 1.2; }
.sys-node text, .core-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  fill: rgba(244, 244, 241, .45);
  text-anchor: middle;
}
.core-label { fill: rgba(244, 244, 241, .6); }

.spin { transform-origin: 400px 400px; animation: spin 10s linear infinite; }
.spin--slow { animation-duration: 36s; }
.spin--rev { animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.pulse-ring { transform-origin: 400px 400px; animation: pulseRing 3.2s var(--ease-out) infinite; }
@keyframes pulseRing {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.matrix rect { fill: #F4F4F1; opacity: .12; animation: matrix 2.7s ease-in-out infinite; animation-delay: calc(var(--i) * .3s); }
@keyframes matrix {
  0%, 100% { opacity: .12; }
  12% { opacity: 1; fill: #021197; }
  30% { opacity: .35; fill: #F4F4F1; }
}

/* floating panels */
.panel {
  position: absolute;
  left: var(--x); top: var(--y);
  will-change: transform;
}
.panel__body {
  min-width: 200px;
  padding: 14px 16px 15px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(24, 24, 24, .7), rgba(12, 12, 12, .62));
  border: 1px solid rgba(255, 255, 255, .09);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
  animation: float 8s var(--ease-io) infinite alternate;
  animation-delay: var(--delay, 0s);
}
@keyframes float {
  from { transform: translate3d(0, -9px, 0); }
  to { transform: translate3d(0, 9px, 0); }
}
.panel__head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--dim);
  white-space: nowrap;
}
.panel__metric {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.panel__metric span { display: inline-block; }
.panel__metric span.bump { animation: bump .6s var(--ease-out); }
@keyframes bump { 0% { color: var(--accent); transform: translateY(-2px); } 100% { color: inherit; transform: none; } }
.panel__caption { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; color: var(--muted); }

.status-dot {
  flex: none;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), .8);
  animation: blink 2.2s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .35; } }

.typing { display: inline-flex; gap: 3px; }
.typing i { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }

.spark { width: 168px; height: 40px; margin-top: 8px; overflow: visible; }
.spark__line { stroke-dasharray: 220; animation: sparkDraw 5s var(--ease-io) infinite; }
@keyframes sparkDraw { 0% { stroke-dashoffset: 220; } 45%, 100% { stroke-dashoffset: 0; } }
.spark__dot { animation: blink 1.4s infinite; }

.flow-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 7px; min-width: 210px; }
.flow-list li {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px;
  color: var(--dim);
  transition: color .5s;
}
.flow-list li::before {
  content: ""; flex: none;
  width: 12px; height: 12px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  transition: all .5s;
}
.flow-list li.is-done { color: var(--muted); }
.flow-list li.is-done::before {
  border-color: rgba(var(--accent-rgb), .6);
  background: rgba(var(--accent-rgb), .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.2 6.2l1.8 1.8 3.8-4' fill='none' stroke='%232F45E6' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.flow-list li.is-running { color: var(--text); }
.flow-list li.is-running::before {
  border-color: var(--accent);
  border-right-color: transparent;
  animation: spinFree .8s linear infinite;
}
@keyframes spinFree { to { transform: rotate(360deg); } }

.meter { height: 3px; margin-top: 12px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.meter span {
  display: block; height: 100%; width: 72%;
  background: linear-gradient(90deg, rgba(255, 255, 255, .5), var(--accent));
  transform-origin: left;
  animation: meter 6s var(--ease-io) infinite alternate;
}
@keyframes meter { from { transform: scaleX(.55); } to { transform: scaleX(1); } }

/* hero content */
.hero__content { position: relative; z-index: 2; will-change: transform; }

.hero__title {
  margin: 26px 0 36px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.9rem, 7.4vw, 8.6rem);
  line-height: .9;
  letter-spacing: -.05em;
}
.hero__line { display: block; }
.hero__line--dim { color: rgba(244, 244, 241, .38); }
.hero__line + .hero__line .w__i { transition-delay: calc(var(--i, 0) * 70ms + .12s); }

.hero__bottom {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px;
}
.hero__text {
  max-width: 470px;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.55;
  color: var(--muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero__scroll {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .24em;
  color: var(--dim);
}
.hero__scroll i {
  position: relative; display: block;
  width: 1px; height: 56px;
  background: var(--line-2);
  overflow: hidden;
}
.hero__scroll i::after {
  content: ""; position: absolute; left: 0; top: -40%;
  width: 1px; height: 40%;
  background: linear-gradient(transparent, var(--text));
  animation: scrollCue 2.4s var(--ease-io) infinite;
}
@keyframes scrollCue { to { top: 110%; } }

/* Ticker ----------------------------------------------------------------- */

.ticker {
  position: relative;
  padding: 26px 0;
  border-block: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker__group {
  display: flex; align-items: center; gap: 44px;
  padding-right: 44px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: -.01em;
  color: var(--dim);
  white-space: nowrap;
}
.ticker__group i { width: 6px; height: 6px; background: var(--accent); opacity: .7; transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections --------------------------------------------------------------- */

.section { position: relative; padding-block: clamp(100px, 13vw, 200px); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px 64px;
  flex-wrap: wrap;
}
.section-head .h2 { margin-top: 24px; }

/* 02 — Solutions --------------------------------------------------------- */

.cards {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.2vw, 32px);
  margin-top: clamp(56px, 7vw, 96px);
}

.card {
  --mx: 50%; --my: 50%;
  position: relative;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  will-change: transform;
}
.js .card[data-reveal] { transition: opacity 1.2s var(--ease-out) var(--d, 0s), transform 1.5s var(--ease-out) var(--d, 0s); }
.card.is-tilting { transition: none !important; }

.card::before {
  content: ""; position: absolute; inset: -1px; z-index: 2; pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(460px circle at var(--mx) var(--my), rgba(var(--accent-rgb), .75), rgba(255, 255, 255, .14) 38%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity .7s var(--ease-out);
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(700px circle at var(--mx) var(--my), rgba(255, 255, 255, .045), transparent 55%);
  opacity: 0;
  transition: opacity .7s var(--ease-out);
}
.card.is-active::before, .card.is-active::after { opacity: 1; }

.card__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  height: 100%;
  padding: clamp(22px, 2.8vw, 40px);
  transform-style: preserve-3d;
}

.card__top {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--dim);
}
.card__status { display: inline-flex; align-items: center; gap: 8px; }

.card__visual {
  position: relative;
  margin: 22px 0 34px;
  aspect-ratio: 560 / 340;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 28px 28px,
    #090909;
  overflow: hidden;
  transition: transform 1s var(--ease-out), border-color .7s;
}
.card.is-active .card__visual { transform: translateZ(40px); border-color: var(--line-2); }
.viz { width: 100%; height: 100%; padding: 4%; }

.viz__glow { opacity: .35; transition: opacity .8s; }
.card.is-active .viz__glow { opacity: 1; }
.viz__paths path { stroke: rgba(255, 255, 255, .12); stroke-width: 1; transition: stroke .8s; }
.card.is-active .viz__paths path { stroke: rgba(var(--accent-rgb), .32); }
.viz .dot { fill: var(--accent); opacity: 0; transition: opacity .6s; }
.viz .dot--white { fill: #fff; }
.card.is-active .viz .dot { opacity: 1; }
.viz .spin { animation-duration: 3s; animation-play-state: paused; }
.card.is-active .viz .spin { animation-play-state: running; }
.viz .matrix rect { animation-play-state: paused; }
.card.is-active .viz .matrix rect { animation-play-state: running; }
.viz text {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  fill: rgba(244, 244, 241, .6);
}
.viz .viz__label { fill: rgba(244, 244, 241, .5); font-size: 10px; }

.chip rect { fill: #0C0C0C; stroke: rgba(255, 255, 255, .12); transition: stroke .6s, fill .6s; }
.chip circle { fill: rgba(255, 255, 255, .3); transition: fill .6s; }
.card.is-active .chip rect { stroke: rgba(255, 255, 255, .26); fill: #111; transition-delay: calc(var(--i) * 70ms); }
.card.is-active .chip circle { fill: var(--accent); transition-delay: calc(var(--i) * 70ms); }

.bar { fill: rgba(255, 255, 255, .2); transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(.4); transition: transform 1.2s var(--ease-out), fill .6s; transition-delay: calc(var(--i) * 60ms); }
.bar--accent { fill: rgba(var(--accent-rgb), .55); }
.card.is-active .bar { transform: scaleY(1); animation: barLive 2.6s ease-in-out infinite alternate; animation-delay: calc(1.2s + var(--i) * -.4s); }
.card.is-active .bar:not(.bar--accent) { fill: rgba(255, 255, 255, .35); }
@keyframes barLive { from { transform: scaleY(1); } to { transform: scaleY(.6); } }

.card__body { transform-style: preserve-3d; display: flex; flex-direction: column; flex: 1; transition: transform 1s var(--ease-out); }
.card.is-active .card__body { transform: translateZ(20px); }

.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.2vw, 46px);
  letter-spacing: -.035em;
  line-height: 1;
}
.card__sub { margin-top: 12px; font-size: clamp(17px, 1.4vw, 20px); color: var(--text); letter-spacing: -.01em; }
.card__desc { margin-top: 24px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

.card__list {
  list-style: none;
  margin: 14px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 24px;
}
.card__list li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--muted);
  transition: color .5s, transform .6s var(--ease-out);
  transition-delay: calc(var(--i) * 35ms);
}
.card__list li::before {
  content: ""; flex: none;
  width: 5px; height: 5px;
  border: 1px solid rgba(255, 255, 255, .35);
  transform: rotate(45deg);
  transition: background-color .5s, border-color .5s;
  transition-delay: inherit;
}
.card.is-active .card__list li { color: var(--text); transform: translateX(3px); }
.card.is-active .card__list li::before { background: var(--accent); border-color: var(--accent); }

.card__note { margin-top: 18px; font-size: 14px; color: var(--dim); max-width: 44ch; }

.card__cta {
  display: inline-flex; align-items: center; gap: 10px;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 30px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  position: relative;
}
.card__cta::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--text);
  transform: scaleX(.25); transform-origin: left;
  transition: transform .8s var(--ease-out);
}
.card__cta span { transition: transform .6s var(--ease-out); }
.card__cta:hover::after, .card.is-active .card__cta::after { transform: scaleX(1); }
.card__cta:hover span { transform: translateX(5px); }

.cards__bridge {
  position: absolute; z-index: 5;
  left: 50%; top: clamp(150px, 16vw, 250px);
  width: 0; height: 0;
  pointer-events: none;
}
.cards__bridge-line {
  position: absolute; left: -48px; width: 96px; top: -.5px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), .5), transparent);
  overflow: hidden;
}
.cards__bridge-line i {
  position: absolute; top: 0; left: -30%; width: 30%; height: 1px;
  background: #fff;
  animation: bridge 2.8s var(--ease-io) infinite;
}
@keyframes bridge { to { left: 100%; } }
.cards__bridge-node {
  position: absolute; left: -21px; top: -21px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  color: var(--text);
  box-shadow: 0 0 0 6px var(--bg), 0 0 30px rgba(var(--accent-rgb), .15);
}
.cards__bridge-node svg { width: 18px; height: 18px; }

/* 03 — How it works ------------------------------------------------------ */

.process {
  position: relative;
  height: 520vh;
  background:
    radial-gradient(ellipse 60% 40% at 50% 55%, rgba(var(--accent-deep-rgb), .035), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}
.process__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-columns: minmax(0, 1fr);
  padding-top: calc(var(--nav-h) + 44px);
  padding-bottom: clamp(24px, 5vh, 56px);
  overflow: hidden;
}

.process__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px 40px;
  flex-wrap: wrap;
}
.process__title { margin-top: 18px; font-size: clamp(2rem, 4.4vw, 4.6rem); }

.states {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0; padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
}
.state { position: relative; color: var(--faint); transition: color .7s var(--ease-out), text-shadow .7s; }
.state.is-done { color: var(--dim); }
.state.is-active { color: var(--text); text-shadow: 0 0 20px rgba(var(--accent-rgb), .6); }
.state.is-active::after {
  content: ""; position: absolute; left: 0; right: .16em; bottom: -8px; height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.state-arrow { color: var(--faint); }

.process__stage { position: relative; min-height: 0; }
.process__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.process__word {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
  overflow: hidden;
}
.process__word span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 17vw, 18rem);
  letter-spacing: -.06em;
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .055);
}
.process__word span.is-swapping { animation: wordIn 1.1s var(--ease-out); }
@keyframes wordIn {
  from { opacity: 0; transform: translateY(24px) scale(.98); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

.process__readout {
  position: absolute; left: 0; right: 0; bottom: 6px;
  display: flex; gap: 28px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--dim);
  pointer-events: none;
}
.process__readout b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }

.process__rail { position: relative; padding-top: 12px; }

.track {
  --step-w: clamp(270px, 27vw, 400px);
  --gap: clamp(16px, 2vw, 28px);
  position: relative;
  display: flex;
  gap: var(--gap);
  width: max-content;
  padding: 30px var(--pad) 0;
  will-change: transform;
}
.track__line {
  position: absolute;
  top: 5px;
  left: calc(var(--pad) + 28px);
  width: calc(4 * (var(--step-w) + var(--gap)));
  height: 1px;
  background: var(--line-2);
}
.track__fill {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .6), var(--accent));
  box-shadow: 0 0 12px rgba(var(--accent-rgb), .7);
  transform-origin: left;
  transform: scaleX(0);
}
.track__head {
  position: absolute; left: 0; top: -3px;
  width: 7px; height: 7px; margin-left: -3.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .18), 0 0 18px 2px rgba(var(--accent-rgb), .9);
}

.step {
  position: relative;
  flex: none;
  width: var(--step-w);
  padding: 26px 28px 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0));
  opacity: .4;
  transition: opacity .8s var(--ease-out), border-color .8s, background-color .8s;
}
.step.is-done { opacity: .62; }
.step.is-active {
  opacity: 1;
  border-color: rgba(255, 255, 255, .16);
  background-color: rgba(255, 255, 255, .025);
}
.step__node {
  position: absolute; top: -30px; left: 22px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, .3);
  transition: all .6s var(--ease-out);
}
.step.is-done .step__node, .step.is-active .step__node {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), .8);
}
.step.is-active .step__node::after {
  content: ""; position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), .6);
  animation: nodePing 2s var(--ease-out) infinite;
}
@keyframes nodePing { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.step__num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: var(--dim); }
.step.is-active .step__num { color: var(--accent); }
.step__title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.2vw, 32px);
  letter-spacing: -.03em;
  line-height: 1;
}
.step__text { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* 04 — Why --------------------------------------------------------------- */

.why__title {
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 8vw, 9rem);
  line-height: .92;
  letter-spacing: -.05em;
}
.sl { display: block; opacity: var(--o, 1); }
.js .sl { opacity: var(--o, .16); }

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(80px, 10vw, 150px);
  border-top: 1px solid var(--line);
}
.pillar {
  position: relative;
  padding: 30px 28px 8px 0;
}
.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--line); }
.pillar::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0));
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.6s var(--ease-out) calc(var(--d, 0s) + .2s);
}
.pillar.is-in::before { transform: scaleX(1); }
.pillar:hover::before { background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), 0)); }
.pillar__num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--dim); }
.pillar h3 {
  margin: 48px 0 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 1.55vw, 22px);
  letter-spacing: -.01em;
  line-height: 1.15;
}
.pillar p { max-width: 30ch; font-size: 15px; color: var(--muted); }

.formula {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline;
  gap: 0 .28em;
  margin-top: clamp(110px, 14vw, 220px);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 7vw, 8rem);
  line-height: 1;
  letter-spacing: -.05em;
  text-align: center;
}
.fx {
  position: relative;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .22);
}
.fx::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  color: var(--text);
  -webkit-text-stroke: 0;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.8s var(--ease-io) calc(var(--d) + .3s);
}
.formula.is-in .fx::after { clip-path: inset(0 0 0 0); }
.no-js .fx, html:not(.js) .fx { color: var(--text); }
.plus { color: var(--accent); font-weight: 300; }

.eco {
  display: flex; align-items: center;
  margin: clamp(64px, 8vw, 110px) auto 0;
  max-width: 1180px;
}
.eco__node {
  position: relative;
  flex: none;
  display: flex; flex-direction: column; align-items: center;
  width: clamp(160px, 16vw, 220px);
  padding: 24px 16px 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #111, #0B0B0B);
  text-align: center;
  animation: ecoNode 4.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 1.2s);
}
@keyframes ecoNode {
  0%, 40%, 100% { border-color: var(--line); box-shadow: none; }
  12% { border-color: rgba(var(--accent-rgb), .45); box-shadow: 0 0 40px -12px rgba(var(--accent-rgb), .55); }
}
.eco__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  color: var(--text);
}
.eco__icon svg { width: 22px; height: 22px; }
.eco__label { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .03em; }
.eco__meta { margin-top: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: var(--dim); }

.eco__link { position: relative; flex: 1; min-width: 28px; height: 48px; }
.eco__link::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: linear-gradient(90deg, var(--line-2), rgba(var(--accent-rgb), .4), var(--line-2));
}
.eco__link em {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -150%);
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dim);
}
.eco__link i {
  position: absolute; top: 50%; left: 0;
  width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: ecoRight 3s linear infinite;
}
.eco__link i:last-child { background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .8); animation-name: ecoLeft; animation-delay: -1.5s; }
@keyframes ecoRight { 0% { left: 0; opacity: 0; } 12%, 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes ecoLeft { 0% { left: 100%; opacity: 0; } 12%, 88% { opacity: 1; } 100% { left: 0; opacity: 0; } }

/* 05 — CTA --------------------------------------------------------------- */

.cta {
  position: relative;
  display: grid; place-items: center;
  min-height: 100vh; min-height: 100svh;
  padding-block: clamp(120px, 14vw, 200px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--line);
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 50% 35% at 50% 58%, rgba(var(--accent-deep-rgb), .07), transparent 70%);
}
.cta__canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta__title {
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7.4vw, 8.4rem);
  line-height: .92;
  letter-spacing: -.05em;
}
.cta__copy { max-width: 540px; margin: 32px auto 44px; font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cta__tagline {
  margin-top: clamp(72px, 9vw, 130px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--dim);
  text-transform: uppercase;
}

/* Footer ----------------------------------------------------------------- */

.footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: var(--bg); }
.footer__inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 20px 40px;
  padding-block: 36px;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__links a { font-size: 14px; color: var(--muted); transition: color .3s; }
.footer__links a:hover { color: var(--text); }
.footer__meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--dim); }
.footer__mega {
  margin-bottom: -.22em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 27vw;
  line-height: .9;
  letter-spacing: -.06em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .07);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 70%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}

/* Modal ------------------------------------------------------------------ */

.modal {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 26px;
  background: #0B0B0B;
  color: var(--text);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 1), 0 0 0 1px rgba(255, 255, 255, .02);
  overflow: auto;
  overscroll-behavior: contain;
}
.modal[open] { animation: modalIn .7s var(--ease-out); }
.modal::backdrop { background: rgba(0, 0, 0, .65); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }

.modal__close {
  position: absolute; top: 18px; right: 18px;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: transparent;
  cursor: pointer;
  transition: background-color .3s, transform .5s var(--ease-out);
}
.modal__close:hover { background: rgba(255, 255, 255, .06); transform: rotate(90deg); }
.modal__close svg { width: 18px; height: 18px; }

.modal__form, .modal__success { display: grid; gap: 18px; padding: clamp(28px, 5vw, 48px); }
.modal__title {
  margin: 4px 0 8px;
  padding-right: 40px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span, .choice legend {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .02);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  resize: vertical;
  transition: border-color .3s, background-color .3s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), .6);
  background: rgba(255, 255, 255, .04);
}
.choice { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.choice legend { margin-bottom: 10px; padding: 0; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 14px;
  color: var(--muted);
  transition: all .3s;
}
.choice label:hover span { border-color: rgba(255, 255, 255, .3); color: var(--text); }
.choice input:checked + span { background: var(--text); border-color: var(--text); color: var(--bg); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.modal__submit { justify-self: start; margin-top: 6px; }
.modal__note { font-size: 13px; color: var(--dim); }
.modal__success { justify-items: start; }
.modal__success p { color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.modal__submit[disabled] { opacity: .6; cursor: progress; }
.modal__link { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.modal__check {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), .5);
  color: var(--accent);
  box-shadow: 0 0 30px -6px rgba(var(--accent-rgb), .6);
}
.modal__check svg { width: 24px; height: 24px; }

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1100px) {
  .cards { grid-template-columns: 1fr; }
  .cards__bridge { display: none; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillar:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 8px; }
  .hero__system { width: min(70vw, 760px); margin-top: calc(min(70vw, 760px) * -.5); right: -12vw; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__inner { grid-template-columns: 1fr auto; padding-left: 18px; }
  .nav__toggle { display: block; }

  .eco { flex-direction: column; max-width: 340px; }
  .eco__node { width: 100%; }
  .eco__link { flex: none; width: 1px; height: 56px; min-width: 0; }
  .eco__link::before { left: 0; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--line-2), rgba(var(--accent-rgb), .4), var(--line-2)); }
  .eco__link em { left: 14px; transform: translate(0, -50%); }
  .eco__link i { left: 0; top: 0; animation-name: ecoDown; }
  .eco__link i:last-child { animation-name: ecoUp; }
  @keyframes ecoDown { 0% { top: 0; opacity: 0; } 12%, 88% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
  @keyframes ecoUp { 0% { top: 100%; opacity: 0; } 12%, 88% { opacity: 1; } 100% { top: 0; opacity: 0; } }
}

@media (max-width: 767px) {
  :root { --nav-h: 58px; }
  .nav { padding: 10px 12px; }
  .nav.is-scrolled { padding-top: 10px; }
  .nav__inner { padding: 0 8px 0 16px; }
  .nav .btn--sm { height: 40px; padding: 0 14px; font-size: 13px; }
  .nav .btn--sm .btn__arrow { display: none; }
  .logo { font-size: 16px; }

  .hero { align-items: flex-end; padding-top: calc(var(--nav-h) + 30px); }
  .hero::after {
    background: linear-gradient(0deg, var(--bg) 0%, rgba(5, 5, 5, .85) 45%, rgba(5, 5, 5, .2) 75%, rgba(5, 5, 5, 0) 100%);
  }
  .hero__system {
    top: calc(var(--nav-h) + 10px);
    right: 50%;
    width: 128vw;
    margin: 0 -64vw 0 0;
    opacity: .85;
  }
  .js .hero [data-reveal="system"].is-in, .js.is-loaded .hero [data-reveal="system"] { opacity: .85; }
  .hero__grid { -webkit-mask-image: radial-gradient(ellipse 90% 45% at 50% 28%, #000 10%, transparent 72%); mask-image: radial-gradient(ellipse 90% 45% at 50% 28%, #000 10%, transparent 72%); }
  .panel__body { min-width: 0; padding: 10px 12px; border-radius: 12px; }
  .panel__head { font-size: 8.5px; margin-bottom: 4px; }
  .panel__metric { font-size: 19px; }
  .panel__caption { font-size: 10.5px; }
  .panel { --x: 18% !important; }
  .panel:nth-of-type(2) { --x: 54% !important; --y: 28% !important; }
  .panel:first-of-type { --x: 16% !important; --y: 11% !important; }
  .spark { width: 110px; height: 28px; }
  .panel--wide, .panel--hours { display: none; }
  .hero__title { font-size: clamp(2.6rem, 12.4vw, 4.4rem); margin: 20px 0 22px; line-height: .92; }
  .hero__scroll { display: none; }
  .hero__actions { margin-top: 24px; }
  .hero__actions .btn { flex: 1 1 auto; }

  .section-head { flex-direction: column; align-items: flex-start; }

  .card { border-radius: 22px; }
  .card__visual { margin: 18px 0 26px; border-radius: 14px; }
  .viz { padding: 2%; }
  .card__list { grid-template-columns: 1fr; }

  .process { height: 440vh; }
  .process__sticky { padding-top: calc(var(--nav-h) + 26px); padding-bottom: 20px; }
  .process__title { font-size: clamp(1.8rem, 8.2vw, 2.6rem); margin-top: 12px; }
  .states { gap: 6px 8px; font-size: 9.5px; letter-spacing: .1em; }
  .process__readout { gap: 14px; font-size: 9.5px; letter-spacing: .1em; }
  .process__readout span:nth-child(2) { display: none; }
  .track { --step-w: min(78vw, 320px); --gap: 14px; padding-top: 26px; }
  .step { padding: 20px 20px 22px; border-radius: 16px; }
  .step__node { left: 14px; top: -26px; }
  .track__line { left: calc(var(--pad) + 19px); top: 5px; }
  .step__title { font-size: 24px; margin-top: 10px; }
  .step__text { font-size: 14px; }

  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 26px 0 18px; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); margin-top: 0; }
  .pillar h3 { margin-top: 20px; }

  .cta__actions { width: 100%; }
  .cta__actions .btn { width: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .field-row { grid-template-columns: 1fr; }
}

@media (min-width: 768px) and (max-height: 820px) {
  .process__sticky { padding-top: calc(var(--nav-h) + 30px); }
  .process__title { font-size: clamp(1.8rem, 3.6vw, 3.4rem); }
  .step { padding: 20px 24px 22px; }
  .step__text { font-size: 14px; }
  .step__title { font-size: 24px; margin-top: 10px; }
}

/* Reduced motion --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .js .w__i, .js [data-reveal] { transform: none !important; opacity: 1 !important; }
  .fx::after { clip-path: none !important; }
  .js .sl { opacity: 1; }
  .ticker__track { transform: none; }
  .cursor-glow { display: none; }

  .process { height: auto; }
  .process__sticky { position: relative; height: auto; overflow: visible; padding-block: clamp(100px, 12vw, 160px); }
  .process__stage { height: min(52vh, 440px); margin-block: 32px; }
  .track { width: auto; flex-wrap: wrap; padding-top: 0; }
  .track__line, .step__node { display: none; }
  .step { opacity: 1; width: calc((100% - 2 * var(--gap)) / 3); flex: 1 1 260px; }
}
