/* ═══════════════════════════════════════════════════════════
   NU7 — Artificial Physical Intelligence
   Design system: Inter · Pearl White / Grey / Deep Black
   ═══════════════════════════════════════════════════════════ */

:root {
  --pearl:    #FAF9F7;
  --pearl-2:  #F1F0ED;
  --ink:      #0A0A0B;
  --ink-2:    #131315;
  --ink-3:    #1C1C1F;
  --grey:     #6E6E73;
  --grey-2:   #A6A6AB;
  --grey-3:   #D6D5D2;
  --line:     rgba(10, 10, 11, .08);
  --line-l:   rgba(250, 249, 247, .12);
  --accent:      #58C7F5; /* light sky blue — the "signal" color for all tech animation */
  --accent-ink:  #1FA2E0; /* deeper sky for small UI elements & text on light bg */
  --error:       #E5484D; /* pose-correction highlight */
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --ease: cubic-bezier(.22, .61, .21, 1);
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--pearl);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

::selection { background: var(--ink); color: var(--pearl); }

/* ─── Typography ─── */

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey);
}
.eyebrow--light { color: var(--grey-2); }

.h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
}
.h2--light { color: var(--pearl); }

.section-sub {
  margin-top: 14px;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 500;
  color: var(--grey);
}
.section-sub--grey { color: var(--grey-2); font-weight: 600; }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 600;
  color: var(--grey);
  line-height: 1.7;
}
.lede--tight { line-height: 1.6; }
.body { font-size: 1.02rem; color: var(--grey); max-width: 46ch; }

/* ─── Buttons ─── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 15px/1 "Inter", sans-serif;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease),
              background .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn--sm { padding: 12px 22px; font-size: 14px; }
.btn--primary {
  background: var(--ink);
  color: var(--pearl);
  box-shadow: 0 1px 2px rgba(10,10,11,.2);
}
.btn--primary:hover { box-shadow: 0 14px 34px -12px rgba(10,10,11,.5); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(10,10,11,.18);
}
.btn--ghost:hover { border-color: var(--ink); }

/* ─── Loader ─── */

.loader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px;
  background: var(--pearl);
  transition: opacity .7s var(--ease), visibility .7s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader__logo { width: 108px; }
.loader__bar {
  width: 168px; height: 2px; border-radius: 2px;
  background: rgba(10,10,11,.1); overflow: hidden;
}
.loader__bar span {
  display: block; height: 100%; width: 0%;
  background: var(--ink);
  transition: width .3s var(--ease);
}
.loader__hint { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-2); }

/* ─── WebGL canvas ─── */

#gl {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
#gl.on { opacity: 1; }
#gl.off { opacity: 0; }

/* ─── Navigation ─── */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  /* backdrop-filter deliberately not transitioned — it snaps in most engines and
     animating it forces expensive compositor work on every threshold crossing */
  transition: background .4s, box-shadow .4s;
}
.nav__inner {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav.scrolled {
  background: rgba(250, 249, 247, .8);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__brand img { height: 26px; width: auto; }
.nav__links { display: flex; gap: 34px; }
.nav__links a {
  font-size: 14px; font-weight: 500; color: var(--grey);
  transition: color .25s;
  position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1.5px; background: var(--ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ─── Hero ─── */

.hero {
  position: relative; z-index: 2;
  min-height: 100vh;  /* fallback for engines without svh */
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 60px;
}
.hero__inner {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center; gap: 40px;
}
.hero__title {
  margin-top: 22px;
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
}
.hero__title .line {
  display: block; overflow: hidden;
  padding-bottom: .08em; margin-bottom: -.08em; /* room for descenders (y, g) */
}
.hero__title .line > span {
  display: block;
  transform: translateY(120%);
  transition: transform 1s var(--ease);
}
body.ready .hero__title .line > span { transform: translateY(0); }
body.ready .hero__title .line:nth-child(2) > span { transition-delay: .08s; }
body.ready .hero__title .line:nth-child(3) > span { transition-delay: .16s; }

.line--type { margin-top: .2em; }
.hero__type {
  display: flex; align-items: baseline;
  font-family: "American Typewriter", "Courier Prime", "Courier New", Courier, serif;
  font-size: .44em;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--grey);
  min-height: 1.35em;
}
.hero__type .caret {
  width: 2.5px; height: .95em;
  margin-left: 3px;
  align-self: center;
  background: var(--accent-ink);
  animation: caret 1s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__ticks {
  margin-top: 42px;
  display: flex; flex-wrap: wrap; gap: 10px 28px;
}
.hero__ticks li {
  font-size: 13px; font-weight: 500; color: var(--grey);
  display: flex; align-items: center; gap: 8px;
}
.hero__ticks li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink);
}

.hero__stage {
  position: relative;
  height: min(72vh, 680px);
  touch-action: pan-y; /* horizontal drag rotates the suit, vertical still scrolls */
  user-select: none;
  -webkit-user-select: none;
}
.hero__fallback {
  display: none;
  position: absolute; inset: 0; margin: auto;
  max-height: 100%; object-fit: contain;
}
body.no-webgl .hero__fallback { display: block; }
.hero__caption {
  position: absolute; right: -18px; top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  white-space: nowrap;
  font-size: 12px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--grey-2);
}

/* ─── Vision band ─── */

.vision {
  position: relative; z-index: 2;
  background: var(--ink);
  color: var(--pearl);
  padding: clamp(110px, 16vh, 180px) 0;
  overflow: hidden;
}
.vision::before { /* faint oversized logomark texture, keeps the band from feeling empty */
  content: "N";
  position: absolute; right: -4%; top: 50%;
  transform: translateY(-50%) rotate(12deg);
  font-size: 44rem; font-weight: 800; line-height: 1;
  color: rgba(250, 249, 247, .025);
  pointer-events: none;
}
.vision__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
.vision__quote {
  margin-top: 26px;
  max-width: 18ch;
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.14;
}
.vision__quote em { font-style: normal; color: var(--grey-2); }
.vision__sub { margin-top: 26px; color: var(--grey-2); font-size: 1.02rem; max-width: 44ch; }
.vision__pillars li {
  padding: 26px 0;
  border-top: 1px solid var(--line-l);
}
.vision__pillars li:last-child { border-bottom: 1px solid var(--line-l); }
.vision__pillars h3 {
  font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px;
}
.vision__pillars h3::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}
.vision__pillars p { margin-top: 8px; color: var(--grey-2); font-size: .92rem; max-width: 40ch; }

/* ─── Yoga, Reinvented ─── */

.reinvented {
  position: relative; z-index: 2;
  background: var(--pearl);
  padding: clamp(100px, 14vh, 160px) 0;
}
.reinvented__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.reinvented__copy > * + * { margin-top: 28px; }
.reinvented__copy .h2 em { font-style: italic; font-weight: 700; }
.chiprow { display: flex; flex-wrap: wrap; gap: 10px; }
.chiprow li {
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--pearl);
  font-size: 13.5px; font-weight: 600; color: var(--grey);
  transition: border-color .3s, color .3s, transform .45s var(--ease);
}
.chiprow li:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.reinvented__media {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(10,10,11,.35);
}
.reinvented__media img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 3/2; object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  transform: scale(1.04);
  transition: transform 1.6s var(--ease);
}
.reinvented__media.in img { transform: scale(1); }

/* ─── Ecosystem (scroll-driven 3D) ─── */

.eco { position: relative; z-index: 2; }
.eco__head {
  position: relative; z-index: 2;
  background: var(--pearl); /* covers the canvas while the suit repositions left */
  padding: clamp(100px, 14vh, 160px) 0 40px;
  text-align: center;
}
.eco__track { position: relative; }
.eco__steps {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
  display: flex; flex-direction: column;
}
.eco-step {
  min-height: 100vh;  /* fallback for engines without svh */
  min-height: 100svh;
  display: flex; align-items: center; justify-content: flex-end;
}
.eco-step__card {
  width: min(460px, 100%);
  padding: 38px 40px;
  border-radius: var(--r-lg);
  background: rgba(250, 249, 247, .72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(10,10,11,.18);
  opacity: .25;
  transform: translateY(26px) scale(.98);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.eco-step.active .eco-step__card { opacity: 1; transform: none; }
.eco-step__index {
  font-size: 12px; font-weight: 700; letter-spacing: .16em;
  color: var(--grey-2);
}
.eco-step__card h3 {
  margin-top: 10px;
  font-size: 1.7rem; font-weight: 700; letter-spacing: -0.025em;
}
.eco-step__card > p { margin-top: 12px; color: var(--grey); font-size: .98rem; }

.eco-step__chip {
  margin-top: 20px;
  display: flex; align-items: center; gap: 14px;
}
.eco-step__chip img {
  width: 84px; height: 84px; object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}
.eco-step__chip figcaption {
  font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--grey);
}

.ble-badge {
  margin-top: 20px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--grey);
}
.ble-badge__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.eco-step.active .ble-badge__dot { animation: blip 1.6s infinite; }
@keyframes blip {
  0%, 100% { box-shadow: 0 0 0 0 rgba(88,199,245,.45); }
  50% { box-shadow: 0 0 0 8px rgba(88,199,245,0); }
}

.calib { margin-top: 22px; display: grid; gap: 12px; }
.calib__row {
  display: grid; grid-template-columns: 82px 1fr;
  align-items: center; gap: 14px;
  font-size: 12px; font-weight: 600; color: var(--grey);
}
.calib__row i {
  height: 3px; border-radius: 3px;
  background: linear-gradient(to right, var(--accent) 0 calc(var(--v) * 100%), rgba(10,10,11,.1) 0);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s var(--ease) .2s;
}
.eco-step.active .calib__row i { transform: scaleX(1); }
.eco-step.active .calib__row:nth-child(2) i { transition-delay: .35s; }
.eco-step.active .calib__row:nth-child(3) i { transition-delay: .5s; }

.voice { margin-top: 22px; display: flex; align-items: center; gap: 14px; }
.voice__name {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  color: var(--accent-ink);
  padding: 6px 12px;
  border: 1px solid rgba(31,162,224,.35);
  border-radius: 999px;
}
.voice__wave { display: flex; align-items: center; gap: 3px; height: 26px; }
.voice__wave i {
  width: 3px; border-radius: 3px; background: var(--accent-ink);
  height: 100%;
  transform: scaleY(.26); /* compositor-only animation — never invalidates layout */
}
.eco-step.active .voice__wave i { animation: wave 1.1s var(--ease) infinite; }
.voice__wave i:nth-child(2) { animation-delay: .12s; }
.voice__wave i:nth-child(3) { animation-delay: .24s; }
.voice__wave i:nth-child(4) { animation-delay: .36s; }
.voice__wave i:nth-child(5) { animation-delay: .48s; }
@keyframes wave {
  0%, 100% { transform: scaleY(.26); }
  50% { transform: scaleY(1); }
}
.voice__line {
  font-size: .96rem; font-weight: 600;
  color: var(--accent-ink);
  min-height: 1.4em;
}
.voice__hint {
  margin-top: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  color: var(--grey-2);
}

/* Post-session analytics — one glance, one insight */
.viz {
  margin-top: 22px;
  display: flex; align-items: center; gap: 26px;
}
.viz__ring { position: relative; width: 112px; height: 112px; flex: none; }
.viz__ring svg { width: 100%; height: 100%; display: block; }
.viz__arc { transition: stroke-dashoffset 1.4s var(--ease) .2s; }
.eco-step.active .viz__arc { stroke-dashoffset: 56.5; } /* 314 × (1 − .82) */
.viz__ringlabel {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.viz__ringlabel strong { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; }
.viz__ringlabel span { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-2); }
.viz__stats { display: grid; gap: 12px; }
.viz__stats li {
  opacity: 0; transform: translateX(12px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.eco-step.active .viz__stats li { opacity: 1; transform: none; }
.eco-step.active .viz__stats li:nth-child(2) { transition-delay: .12s; }
.eco-step.active .viz__stats li:nth-child(3) { transition-delay: .24s; }
.viz__stats strong { display: block; font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; }
.viz__stats span { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--grey-2); }

.viz__week { margin-top: 22px; }
.acc__title {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--grey);
  margin-bottom: 12px;
}
.viz__bars {
  display: flex; align-items: flex-end; gap: 7px;
  height: 54px;
}
.viz__bars i {
  flex: 1;
  height: calc(var(--h) * 100%);
  border-radius: 4px 4px 2px 2px;
  background: rgba(88, 199, 245, .38);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .7s var(--ease);
}
.viz__bars i.hi { background: var(--accent-ink); }
.eco-step.active .viz__bars i { transform: scaleY(1); }
.eco-step.active .viz__bars i:nth-child(2) { transition-delay: .06s; }
.eco-step.active .viz__bars i:nth-child(3) { transition-delay: .12s; }
.eco-step.active .viz__bars i:nth-child(4) { transition-delay: .18s; }
.eco-step.active .viz__bars i:nth-child(5) { transition-delay: .24s; }
.eco-step.active .viz__bars i:nth-child(6) { transition-delay: .3s; }
.eco-step.active .viz__bars i:nth-child(7) { transition-delay: .36s; }
.eco-step.active .viz__bars i:nth-child(8) { transition-delay: .42s; }
.acc__focus {
  margin-top: 10px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--error);
}
.acc__focus span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--error); flex: none;
}
.eco-step.active .acc__focus span { animation: blipRed 1.6s infinite; }
@keyframes blipRed {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229,72,77,.4); }
  50% { box-shadow: 0 0 0 6px rgba(229,72,77,0); }
}

/* ─── Stack grid (dark) ─── */

.stack {
  position: relative; z-index: 2;
  background: var(--ink);
  padding: clamp(100px, 14vh, 170px) 0;
}
.stack .eyebrow { margin-bottom: 0; }
.stack .h2 { margin-top: 22px; }
.stack__grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stack-card {
  border-radius: var(--r-md);
  background: var(--ink-2);
  border: 1px solid var(--line-l);
  overflow: hidden;
  transition: transform .6s var(--ease), border-color .4s, background .4s;
}
.stack-card:hover {
  transform: translateY(-8px);
  border-color: rgba(250,249,247,.28);
  background: var(--ink-3);
}
.stack-card figure {
  aspect-ratio: 4/3.4; overflow: hidden;
  background: var(--ink-3);
}
.stack-card__viz svg {
  width: 100%; height: 100%; display: block;
  transition: transform 1s var(--ease);
}
.stack-card:hover .stack-card__viz svg { transform: scale(1.05); }
.stack-card figure.stack-card__wear { background: #FFFFFF; }
.stack-card__wear img {
  object-fit: contain;
  padding: 10%;
  filter: none; /* keep the garment true black on white */
}
.stack-card:hover .stack-card__wear img { filter: none; }
.stack-card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.55);
  transition: transform 1s var(--ease), filter .6s;
}
.stack-card:hover img { transform: scale(1.05); filter: saturate(.9); }
.stack-card h3 {
  padding: 22px 22px 0;
  color: var(--pearl);
  font-size: 1.06rem; font-weight: 700; letter-spacing: -0.01em;
}
.stack-card p {
  padding: 8px 22px 26px;
  color: var(--grey-2); font-size: .9rem;
}

/* ─── How (setup flow) ─── */

.how {
  position: relative; z-index: 2;
  background: var(--pearl);
  padding: clamp(100px, 14vh, 170px) 0;
  text-align: center;
}
.how__timeline {
  position: relative;
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 44px);
  text-align: left;
}
.how__rail {
  position: absolute; top: -34px; left: 6%; right: 6%;
  height: 1.5px; background: rgba(10,10,11,.1);
  overflow: hidden; border-radius: 2px;
}
.how__rail span {
  display: block; height: 100%; width: 0%;
  background: var(--ink);
  transition: width 1.4s var(--ease);
}
.how-step figure {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4/4.6;
  box-shadow: 0 30px 60px -34px rgba(10,10,11,.4);
}
.how-step img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.how-step:hover img { transform: scale(1.045); }
.how-step__tag {
  position: absolute; left: 18px; bottom: 16px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(250, 249, 247, .85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
}
.how-step__body {
  margin-top: 20px;
  display: flex; gap: 14px; align-items: flex-start;
}
.how-step__num {
  font-size: 13px; font-weight: 700; color: var(--grey-2);
  padding-top: 3px;
}
.how-step__body p { color: var(--grey); font-size: .96rem; }

/* ─── Features ─── */

.features {
  position: relative; z-index: 2;
  background: var(--pearl-2);
  padding: clamp(100px, 14vh, 170px) 0;
  text-align: center;
}
.features__grid {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.feature {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 34px 18px;
  border-radius: var(--r-md);
  background: var(--pearl);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px -26px rgba(10,10,11,.3);
}
.feature svg {
  width: 30px; height: 30px;
  fill: none; stroke: var(--grey); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .4s;
}
.feature:hover svg { stroke: var(--ink); }
.feature span { font-size: .94rem; font-weight: 600; letter-spacing: -0.01em; }

/* ─── CTA ─── */

.cta {
  position: relative; z-index: 2;
  background: var(--pearl);
  padding: clamp(120px, 18vh, 200px) 0;
}
.cta__inner { text-align: center; }
.cta__form {
  margin: 46px auto 0;
  width: min(440px, 100%);
  display: grid; gap: 12px;
}
.cta__form input {
  height: 56px;
  padding: 0 22px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--pearl-2);
  font: 500 15px "Inter", sans-serif;
  color: var(--ink);
  outline: none;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.cta__form input::placeholder { color: var(--grey-2); }
.cta__form input:focus {
  border-color: var(--ink);
  background: var(--pearl);
  box-shadow: 0 0 0 4px rgba(10,10,11,.06);
}
.cta__form .btn { width: 100%; height: 56px; border-radius: var(--r-sm); }
.cta__note { min-height: 20px; font-size: 13px; font-weight: 500; color: var(--grey); }
.cta__note a { color: var(--ink); text-decoration: underline; }
.cta__form.success input { display: none; }
.cta__form.success .btn {
  background: var(--pearl);
  color: var(--ink);
  border: 1px solid var(--ink);
  pointer-events: none;
}

/* ─── Footer ─── */

.footer {
  position: relative; z-index: 2;
  background: var(--pearl);
  border-top: 1px solid var(--line);
  padding: 74px 0 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, .6fr);
  gap: 40px;
}
.footer__brand img { height: 30px; width: auto; }
.footer__brand p {
  margin-top: 18px; max-width: 34ch;
  color: var(--grey); font-size: .95rem;
}
.footer h4 {
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  margin-bottom: 16px;
}
.footer nav a {
  display: block;
  margin-bottom: 12px;
  font-size: .93rem; color: var(--grey);
  transition: color .25s;
}
.footer nav a:hover { color: var(--ink); }
.footer__base {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-size: 12.5px; color: var(--grey-2);
}

/* ─── Reveal system ─── */

.reveal, .reveal-card {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }
.reveal.in, .reveal-card.in { opacity: 1; transform: none; }
.reveal-img { opacity: 0; transition: opacity 1.1s var(--ease); }
.reveal-img.in { opacity: 1; }

/* staggered cards inside grids */
.stack__grid .reveal-card:nth-child(2), .how__timeline .reveal-card:nth-child(3) { transition-delay: .12s; }
.stack__grid .reveal-card:nth-child(3), .how__timeline .reveal-card:nth-child(4) { transition-delay: .24s; }
.stack__grid .reveal-card:nth-child(4) { transition-delay: .36s; }
.features__grid .reveal-card:nth-child(4n+2) { transition-delay: .08s; }
.features__grid .reveal-card:nth-child(4n+3) { transition-delay: .16s; }
.features__grid .reveal-card:nth-child(4n+4) { transition-delay: .24s; }

/* ─── Below-fold rendering: skip layout/paint until near the viewport ─── */

.how, .features, .cta, .footer {
  content-visibility: auto;
}
.how { contain-intrinsic-size: auto 1100px; }
.features { contain-intrinsic-size: auto 900px; }
.cta { contain-intrinsic-size: auto 700px; }
.footer { contain-intrinsic-size: auto 500px; }

/* ─── Responsive ─── */

@media (max-width: 1024px) {
  .stack__grid { grid-template-columns: repeat(2, 1fr); }
  .features__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  /* keep section anchors reachable on touch — compact row instead of hiding */
  .nav__links { gap: 16px; }
  .nav__links a { font-size: 13px; padding: 10px 2px; }
  .nav__links a::after { display: none; }

  .vision__grid { grid-template-columns: 1fr; }
  .vision::before { font-size: 26rem; }

  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .hero__copy { text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__ticks { justify-content: center; }
  .hero__stage { height: 52vh; height: 52svh; }

  .reinvented__grid { grid-template-columns: 1fr; }
  .reinvented__copy { text-align: center; }
  .reinvented__copy .body { margin-inline: auto; }

  .eco-step { justify-content: center; }
  .eco-step__card {
    /* near-opaque anyway on mobile — dropping the blur saves a per-frame
       backdrop readback of the live canvas on phone GPUs, visually identical */
    background: rgba(250, 249, 247, .93);
    padding: 30px 26px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  /* caption returns to a centered horizontal line under the stage on touch layouts */
  .hero__caption {
    writing-mode: horizontal-tb;
    white-space: normal;
    left: 0; right: 0; width: 100%;
    top: auto; bottom: -6px;
    transform: none;
    text-align: center;
    letter-spacing: .12em;
  }

  .cta__form input { font-size: 16px; } /* prevents iOS Safari focus zoom */

  .footer nav a { padding: 10px 0; margin-bottom: 2px; } /* touch-sized targets */

  .how__timeline { grid-template-columns: 1fr; gap: 44px; }
  .how__rail { display: none; }
  .how-step figure { aspect-ratio: 4/3; }

  .features__grid { grid-template-columns: repeat(2, 1fr); }

  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 480px) {
  .features__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .feature { padding: 26px 12px; }

  .stack__grid { grid-template-columns: 1fr; gap: 14px; }
  /* phones: brand + section links; the Join Waitlist CTA lives in the hero/footer */
  .nav__brand { flex: none; }
  .nav .btn--sm { display: none; }
  .nav__links { gap: 12px; }
  .nav__links a { font-size: 12.5px; white-space: nowrap; }
  .eco-step__card { padding: 26px 20px; }

  /* analytics viz: keep the ring + stats inside narrow cards */
  .viz { flex-wrap: wrap; gap: 18px; }
  .viz__ring { width: 96px; height: 96px; }
  .viz__ringlabel strong { font-size: 1.2rem; }
  .viz__stats { grid-template-columns: repeat(3, auto); gap: 14px; }

  .hero__cta .btn { padding: 14px 22px; }
  .how__timeline { margin-top: 48px; }
}

/* ─── Motion preferences ─── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .2s !important;
  }
  .reveal, .reveal-card, .reveal-img { opacity: 1; transform: none; }
}
