:root {
  --ink: #f5f7fb;
  --muted: rgba(245, 247, 251, 0.68);
  --line: rgba(245, 247, 251, 0.22);
  --amber: #f2aa3b;
  --gold: #ffd98a;
  --black: #000103;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

html {
  background: var(--black);
  scroll-behavior: smooth;
}

html.is-intro-loading,
html.is-intro-loading body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  overflow-x: hidden;
  background: var(--black);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

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

.home {
  position: relative;
  min-height: 540svh;
  isolation: isolate;
  overflow-x: clip;
  background: #000;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  filter: saturate(116%);
  transform: scale(1.02);
  transform-origin: 50% 50%;
  will-change: opacity, transform, filter;
}

.coffee-flow {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  filter: saturate(72%) contrast(108%) brightness(0.82);
  mix-blend-mode: normal;
  transform: scale(1.01);
  transform-origin: 50% 50%;
  transition: opacity 900ms ease;
  will-change: opacity, transform, filter;
}

.coffee-flow.is-ready {
  opacity: 0.86;
}

.shade,
.grain,
.vignette {
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.shade {
  --layer-opacity: 1;
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(7, 3, 0, 0.84) 0%, rgba(9, 4, 0, 0.5) 28%, transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.5));
}

.vignette {
  --layer-opacity: 1;
  z-index: 4;
  background:
    radial-gradient(circle at 54% 42%, transparent 0 32%, rgba(0, 0, 0, 0.24) 66%, rgba(0, 0, 0, 0.84) 100%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.62) 100%);
}

.red-stage {
  --layer-opacity: 0.58;
  position: fixed;
  inset: auto -18% -22% -18%;
  z-index: 2;
  height: 158%;
  background:
    radial-gradient(circle at 50% 7%, rgba(255, 245, 204, 1), rgba(255, 209, 103, 0.9) 18%, transparent 40%),
    radial-gradient(circle at 70% 48%, rgba(255, 157, 24, 0.78), transparent 34%),
    linear-gradient(92deg, rgba(119, 55, 0, 0.9) 0%, #ffc247 32%, #ff970f 58%, rgba(120, 55, 0, 0.92) 100%);
  filter: blur(46px) saturate(165%) brightness(1.02);
  opacity: 0.58;
  transform: translate3d(0, 4%, 0) scale(1.24, 1.14) skewY(-1.4deg);
  transform-origin: 50% 52%;
  mix-blend-mode: screen;
  pointer-events: none;
  will-change: transform, opacity, filter;
}

@supports (mix-blend-mode: plus-lighter) {
  .red-stage {
    mix-blend-mode: plus-lighter;
  }
}

.grain {
  --layer-opacity: 0.16;
  z-index: 5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 4px 4px, 5px 5px;
  mix-blend-mode: overlay;
}

.hero {
  --hero-blur: 0px;
  --hero-dim: 0;
  --hero-scale: 1;
  --hero-warmth: 0;
  --hero-y: 0px;
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  min-height: 100svh;
  padding: clamp(26px, 4vw, 64px);
  grid-template-rows: auto 1fr auto auto;
  pointer-events: none;
  filter: blur(var(--hero-blur));
  transform: translate3d(0, var(--hero-y), 0) scale(var(--hero-scale));
  transform-origin: 50% 56%;
  will-change: transform, filter;
}

.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.hero::before {
  z-index: -1;
  background:
    radial-gradient(circle at 54% 58%, rgba(255, 217, 138, calc(var(--hero-warmth) * 0.22)), transparent 34%),
    linear-gradient(180deg, transparent 35%, rgba(255, 151, 15, calc(var(--hero-warmth) * 0.16)) 72%, transparent 100%);
  opacity: var(--hero-warmth);
  mix-blend-mode: screen;
}

.hero::after {
  z-index: 20;
  background:
    radial-gradient(circle at 50% 52%, transparent 0 36%, rgba(0, 0, 0, calc(var(--hero-dim) * 0.34)) 74%, rgba(0, 0, 0, calc(var(--hero-dim) * 0.76)) 100%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, calc(var(--hero-dim) * 0.72)) 100%);
  opacity: var(--hero-dim);
}

.intro {
  max-width: 560px;
  color: var(--ink);
  font-size: clamp(15px, 1.2vw, 19px);
  line-height: 1.65;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(-8px);
  will-change: transform, opacity;
}

.intro em {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: rgba(245, 247, 251, 0.78);
}

.mark {
  align-self: end;
  display: grid;
  grid-template-columns: max-content max-content;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  gap: clamp(18px, 3vw, 64px);
  padding-bottom: clamp(28px, 4vw, 50px);
  opacity: 0;
  transform: translate3d(0, -24svh, 0) scale(0.28);
  transform-origin: 50% 55%;
  will-change: transform, opacity;
}

.mark span {
  display: block;
  white-space: nowrap;
  letter-spacing: 0;
  line-height: 0.82;
  text-shadow:
    0 18px 46px rgba(0, 0, 0, 0.6),
    0 0 34px rgba(242, 170, 59, 0.2);
}

.mark-main {
  font-size: clamp(72px, 13.2vw, 245px);
  font-weight: 760;
}

.mark-script {
  color: color-mix(in srgb, var(--gold) 72%, white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(62px, 10.2vw, 204px);
  font-style: italic;
  font-weight: 400;
}

.scroll-hint {
  position: absolute;
  right: clamp(24px, 4vw, 64px);
  bottom: clamp(96px, 9vw, 140px);
  margin: 0;
  color: rgba(245, 247, 251, 0.42);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: rotate(90deg);
  transform-origin: right center;
  will-change: transform, opacity;
}

.footer {
  --line-scale: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 26px;
  position: relative;
  padding-top: 24px;
  color: var(--muted);
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  pointer-events: auto;
  will-change: transform, opacity;
}

.footer::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--line);
  transform: scaleX(var(--line-scale));
  transform-origin: left;
}

.version {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.arrow {
  position: relative;
  width: 12px;
  height: 12px;
  opacity: 0;
}

.arrow::before,
.arrow::after {
  position: absolute;
  content: "";
  background: currentColor;
}

.arrow::before {
  top: 5px;
  left: 0;
  width: 12px;
  height: 2px;
}

.arrow::after {
  top: 2px;
  right: 0;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  background: transparent;
  transform: rotate(45deg);
}

.social,
.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
}

.social {
  justify-self: center;
}

.nav {
  justify-self: end;
}

.split {
  color: rgba(245, 247, 251, 0.34);
  font-weight: 500;
  opacity: 0;
}

.footer a {
  position: relative;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.type {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
}

.footer a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.footer a:hover {
  color: var(--ink);
  transform: translateY(-2px);
}

.footer a:hover::after {
  transform: scaleX(1);
}

.orbit-system,
.system-map {
  position: relative;
  z-index: 2;
  width: min(100%, 390px);
  aspect-ratio: 1.22;
  margin: auto;
}

.trajectory-step .orbit-system,
.trajectory-step .system-map,
.trajectory-step .signal-stack,
.trajectory-step .metric-orbit {
  opacity: var(--visual-opacity, 0);
  filter: blur(var(--visual-blur, 16px));
  transform: translate3d(0, var(--visual-y, 56px), 0) scale(var(--visual-scale, 0.92));
  transition: none;
  will-change: transform, opacity, filter;
}

.orbit-system::before,
.system-map::before {
  position: absolute;
  inset: 12%;
  content: "";
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 217, 138, 0.2), transparent 64%);
  filter: blur(26px);
  opacity: 0.82;
}

.orbit-ring {
  position: absolute;
  inset: 50%;
  width: var(--size);
  height: calc(var(--size) * 0.58);
  border: 1px solid rgba(255, 217, 138, var(--alpha));
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(var(--rotate));
  box-shadow:
    0 0 34px rgba(242, 170, 59, 0.14),
    inset 0 0 24px rgba(255, 217, 138, 0.06);
}

.ring-one {
  --size: 88%;
  --alpha: 0.32;
  --rotate: -9deg;
  animation: orbitDrift 18s linear infinite;
}

.ring-two {
  --size: 68%;
  --alpha: 0.46;
  --rotate: 21deg;
  animation: orbitDriftReverse 22s linear infinite;
}

.ring-three {
  --size: 48%;
  --alpha: 0.62;
  --rotate: -34deg;
  animation: orbitDrift 15s linear infinite;
}

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: clamp(82px, 10vw, 124px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 217, 138, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 245, 204, 0.92), rgba(255, 194, 71, 0.5) 34%, rgba(23, 11, 0, 0.82) 72%),
    rgba(255, 255, 255, 0.05);
  color: #fff8e8;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 850;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 44px rgba(255, 194, 71, 0.4),
    0 24px 70px rgba(0, 0, 0, 0.36);
  animation: coreBreathe 5.8s ease-in-out infinite;
}

.orbit-node {
  position: absolute;
  display: inline-grid;
  min-width: 88px;
  min-height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 217, 138, 0.32);
  border-radius: 999px;
  background: rgba(10, 5, 0, 0.46);
  color: rgba(255, 248, 232, 0.88);
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 780;
  letter-spacing: 0.02em;
  box-shadow:
    0 0 22px rgba(242, 170, 59, 0.2),
    inset 0 0 16px rgba(255, 217, 138, 0.07);
  backdrop-filter: blur(14px);
  animation: nodeFloat 6.8s ease-in-out infinite;
}

.node-strategy {
  top: 14%;
  left: 52%;
}

.node-data {
  top: 42%;
  right: 3%;
  animation-delay: -1.4s;
}

.node-sales {
  right: 34%;
  bottom: 7%;
  animation-delay: -2.8s;
}

.node-content {
  top: 36%;
  left: 2%;
  animation-delay: -4.2s;
}

.system-map {
  aspect-ratio: 1.36;
  max-width: 430px;
}

.system-map::before {
  inset: 18%;
  border-radius: 40%;
}

.map-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(255, 217, 138, 0.52), transparent);
  opacity: 0.78;
}

.line-horizontal {
  top: 50%;
  left: 6%;
  width: 88%;
  height: 1px;
  animation: lineSweepX 4.8s ease-in-out infinite;
}

.line-vertical {
  top: 8%;
  left: 50%;
  width: 1px;
  height: 84%;
  background: linear-gradient(180deg, transparent, rgba(255, 217, 138, 0.42), transparent);
  animation: lineSweepY 5.2s ease-in-out infinite;
}

.map-tile {
  position: absolute;
  display: grid;
  width: clamp(104px, 13vw, 148px);
  aspect-ratio: 1.28;
  place-items: center;
  border: 1px solid rgba(255, 217, 138, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 217, 138, 0.14), rgba(255, 255, 255, 0.03)),
    rgba(7, 3, 0, 0.46);
  color: rgba(255, 248, 232, 0.9);
  font-size: clamp(13px, 1.2vw, 18px);
  font-weight: 820;
  letter-spacing: 0.03em;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.28),
    inset 0 0 28px rgba(255, 217, 138, 0.06);
  backdrop-filter: blur(16px);
  animation: tileLift 7.2s ease-in-out infinite;
}

.tile-brief {
  top: 8%;
  left: 8%;
}

.tile-model {
  top: 8%;
  right: 8%;
  animation-delay: -1.4s;
}

.tile-flow {
  bottom: 8%;
  left: 8%;
  animation-delay: -2.8s;
}

.tile-metric {
  right: 8%;
  bottom: 8%;
  animation-delay: -4.2s;
}

.map-pulse {
  position: absolute;
  width: clamp(28px, 4vw, 44px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 217, 138, 0.54);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 245, 204, 0.92), rgba(255, 194, 71, 0.26) 44%, transparent 68%);
  box-shadow: 0 0 40px rgba(255, 194, 71, 0.42);
}

.pulse-one {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulseGlow 2.8s ease-in-out infinite;
}

.pulse-two {
  top: 50%;
  left: 50%;
  opacity: 0.38;
  transform: translate(-50%, -50%) scale(3.8);
  animation: pulseRing 3.8s ease-out infinite;
}

.trajectory {
  --trajectory-entry: 0;
  position: relative;
  z-index: 13;
  min-height: 320svh;
  padding: 24svh clamp(20px, 6vw, 96px) 0;
}

.trajectory::before,
.trajectory::after {
  position: absolute;
  right: 0;
  left: 0;
  content: "";
  pointer-events: none;
}

.trajectory::before {
  top: -34svh;
  z-index: 2;
  height: 78svh;
  background:
    radial-gradient(ellipse at 50% 56%, rgba(255, 217, 138, calc(var(--trajectory-entry) * 0.32)), transparent 42%),
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, calc(var(--trajectory-entry) * 0.78)) 50%, rgba(0, 0, 0, 0));
  filter: blur(calc(2px + var(--trajectory-entry) * 18px));
  opacity: var(--trajectory-entry);
}

.trajectory::after {
  top: -28svh;
  z-index: 0;
  height: 70svh;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, calc(0.72 * var(--trajectory-entry))) 54%, transparent 100%);
  opacity: var(--trajectory-entry);
}

.trajectory-line {
  position: absolute;
  top: -42svh;
  bottom: -42svh;
  left: 49%;
  z-index: 0;
  width: 156vw;
  max-width: 1760px;
  overflow: visible;
  pointer-events: none;
  transform: translateX(-50%);
  filter:
    drop-shadow(0 0 18px rgba(255, 151, 15, 0.38))
    drop-shadow(0 0 54px rgba(242, 170, 59, 0.22));
}

.trajectory-path {
  fill: none;
  stroke: #ff8f0f;
  stroke-width: 46;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.96;
  stroke-dasharray: var(--path-length, 1);
  stroke-dashoffset: var(--path-length, 1);
  will-change: stroke-dashoffset;
}

.trajectory-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(240px, 0.64fr);
  width: min(1040px, 100%);
  min-height: 64svh;
  align-items: center;
  gap: clamp(36px, 7vw, 96px);
  padding-block: clamp(36px, 6vw, 78px);
  border-top: 1px solid rgba(255, 217, 138, 0.14);
  opacity: 0;
  filter: blur(18px);
  transform: translate3d(0, 140px, 0) scale(0.94);
  transform-origin: 50% 58%;
  will-change: transform, opacity, filter;
}

.trajectory-step::before {
  position: absolute;
  top: -5px;
  left: clamp(0px, 4vw, 48px);
  width: 9px;
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 24px rgba(255, 194, 71, 0.56);
}

.step-one,
.step-three {
  margin-left: auto;
}

.step-two,
.step-four {
  margin-right: auto;
  grid-template-columns: minmax(240px, 0.64fr) minmax(0, 0.82fr);
}

.step-two::before,
.step-four::before {
  right: clamp(0px, 4vw, 48px);
  left: auto;
}

.step-two .step-copy,
.step-four .step-copy {
  grid-column: 2;
}

.step-two .system-map,
.step-four .metric-orbit {
  grid-column: 1;
  grid-row: 1;
}

.step-index {
  color: rgba(255, 217, 138, 0.54);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.step-copy {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.trajectory-step p {
  max-width: 13ch;
  margin: 24px 0 0;
  color: rgba(245, 247, 251, 0.9);
  font-size: clamp(34px, 4.6vw, 74px);
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

.signal-stack,
.metric-orbit {
  position: relative;
  z-index: 2;
  width: min(100%, 380px);
  aspect-ratio: 1.18;
  margin: auto;
}

.signal-stack span {
  position: absolute;
  right: calc(var(--i, 0) * 8%);
  left: calc(var(--i, 0) * 8%);
  height: 22%;
  border: 1px solid rgba(255, 217, 138, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 217, 138, 0.16), transparent 70%),
    rgba(7, 3, 0, 0.42);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.signal-stack span:nth-child(1) {
  --i: 0;
  top: 14%;
  animation: stackScan 5.2s ease-in-out infinite;
}

.signal-stack span:nth-child(2) {
  --i: 1;
  top: 39%;
  animation: stackScan 5.2s ease-in-out infinite;
  animation-delay: -1.1s;
}

.signal-stack span:nth-child(3) {
  --i: 2;
  top: 64%;
  animation: stackScan 5.2s ease-in-out infinite;
  animation-delay: -2.2s;
}

.metric-orbit {
  border: 1px solid rgba(255, 217, 138, 0.2);
  border-radius: 50%;
  box-shadow:
    inset 0 0 42px rgba(255, 217, 138, 0.06),
    0 0 48px rgba(242, 170, 59, 0.12);
  animation: metricGlow 7s ease-in-out infinite;
}

.metric-core {
  position: absolute;
  inset: 38%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 245, 204, 0.88), rgba(255, 151, 15, 0.34) 48%, transparent 70%);
  box-shadow: 0 0 46px rgba(255, 194, 71, 0.36);
  animation: metricCoreBreathe 4.6s ease-in-out infinite;
}

.metric-dot {
  position: absolute;
  width: 16px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 24px rgba(255, 194, 71, 0.58);
}

.metric-dot:nth-child(1) {
  top: 14%;
  left: 48%;
  animation: metricDotOne 7.5s ease-in-out infinite;
}

.metric-dot:nth-child(2) {
  right: 14%;
  bottom: 28%;
  animation: metricDotTwo 7.5s ease-in-out infinite;
  animation-delay: -1.8s;
}

.metric-dot:nth-child(3) {
  bottom: 18%;
  left: 18%;
  animation: metricDotThree 7.5s ease-in-out infinite;
  animation-delay: -3.6s;
}

.reveal-section {
  position: relative;
  z-index: 14;
  min-height: 350svh;
  margin-top: -12svh;
  background: transparent;
}

.reveal-card {
  --circle-scale: 0.18;
  --circle-y: 22svh;
  --content-opacity: 0;
  --content-y: 72px;
  --content-blur: 18px;
  position: sticky;
  top: 0;
  display: grid;
  min-height: 100svh;
  color: #030303;
  overflow: hidden;
  isolation: isolate;
}

.reveal-circle {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 0;
  width: 100vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f2f2f2;
  transform: translate3d(-50%, calc(50% + var(--circle-y)), 0) scale(var(--circle-scale));
  transform-origin: 50% 50%;
  will-change: transform, border-radius;
}

.reveal-content {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100svh;
  opacity: 1;
  filter: none;
  transform: none;
  will-change: transform, opacity, filter;
}

/* === Reveal Panel (Parallax) === */
.reveal-panel {
  --panel-opacity: 0;
  --panel-y: 60px;
  --panel-scale: 0.94;
  --panel-blur: 16px;
  grid-area: 1 / 1;
  display: grid;
  align-content: center;
  min-height: 100svh;
  padding: clamp(40px, 7vw, 128px) clamp(28px, 6vw, 124px);
  gap: clamp(24px, 3.6vw, 52px);
  opacity: var(--panel-opacity);
  filter: blur(var(--panel-blur));
  transform: translate3d(0, var(--panel-y), 0) scale(var(--panel-scale));
  will-change: transform, opacity, filter;
  pointer-events: none;
}

.panel-copy {
  align-self: center;
}

.panel-kicker {
  display: block;
  color: rgba(3, 3, 3, 0.48);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel-heading {
  margin: clamp(18px, 2.4vw, 30px) 0 0;
  color: #030303;
  font-size: clamp(82px, 14.2vw, 236px);
  font-weight: 820;
  line-height: 0.84;
  letter-spacing: 0;
}

.panel-desc {
  max-width: 380px;
  margin: 0;
  color: rgba(3, 3, 3, 0.88);
  font-size: clamp(18px, 1.72vw, 30px);
  font-weight: 660;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

.panel-links {
  display: grid;
  gap: 9px;
  color: rgba(3, 3, 3, 0.9);
  font-size: clamp(18px, 1.6vw, 30px);
  font-weight: 780;
  line-height: 1.08;
}

.panel-links a {
  width: max-content;
  max-width: min(100%, 30ch);
  transition:
    color 220ms ease,
    transform 220ms ease;
}

.panel-links a:hover {
  color: #a14c00;
  transform: translateX(8px);
}

.panel-signal {
  position: absolute;
  right: clamp(24px, 5vw, 92px);
  bottom: clamp(22px, 5vw, 74px);
  display: grid;
  width: min(26vw, 360px);
  min-width: 168px;
  gap: clamp(8px, 1.1vw, 14px);
}

.panel-signal span {
  display: block;
  height: clamp(7px, 0.8vw, 12px);
  border-radius: 999px;
  background: #030303;
  transform-origin: right;
}

.panel-signal span:nth-child(1) {
  width: 62%;
  opacity: 0.22;
}

.panel-signal span:nth-child(2) {
  width: 100%;
  opacity: 0.58;
}

.panel-signal span:nth-child(3) {
  width: 78%;
  opacity: 0.34;
}

.panel-signal span:nth-child(4) {
  width: 44%;
  opacity: 0.18;
}

/* === Panel Nav (Carousel Dots) === */
.panel-nav {
  position: absolute;
  right: clamp(20px, 3vw, 48px);
  top: 50%;
  z-index: 5;
  display: grid;
  gap: 14px;
  transform: translateY(-50%);
  pointer-events: none;
}

.panel-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border: none;
  background: none;
  color: rgba(3, 3, 3, 0.35);
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 380ms ease;
  pointer-events: auto;
}

.panel-nav-item:hover {
  color: rgba(3, 3, 3, 0.65);
}

.panel-nav-item.is-active {
  color: #030303;
}

.panel-nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  background: transparent;
  transition: background 380ms ease, border-color 380ms ease, transform 380ms ease;
}

.panel-nav-item.is-active .panel-nav-dot {
  background: currentColor;
  transform: scale(1.3);
}

/* === Capabilities Grid (Panel 2) === */
.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 44px) clamp(28px, 4vw, 60px);
  max-width: 720px;
}

.cap-item {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  align-items: flex-start;
}

.cap-num {
  flex-shrink: 0;
  font-size: clamp(10px, 0.9vw, 13px);
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1.8;
  color: rgba(3, 3, 3, 0.3);
}

.cap-body {
  min-width: 0;
}

.cap-title {
  margin: 0 0 clamp(6px, 0.6vw, 10px);
  color: #030303;
  font-size: clamp(18px, 1.6vw, 28px);
  font-weight: 780;
  line-height: 1.1;
  letter-spacing: 0;
}

.cap-desc {
  margin: 0;
  color: rgba(3, 3, 3, 0.66);
  font-size: clamp(14px, 1.1vw, 18px);
  font-weight: 520;
  line-height: 1.48;
  letter-spacing: 0;
}

.closing {
  --closing-progress: 0;
  position: relative;
  z-index: 15;
  display: grid;
  min-height: 100svh;
  padding: clamp(26px, 4vw, 64px);
  overflow: hidden;
  background: transparent;
  isolation: isolate;
}

.closing::before,
.closing::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.closing::before {
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 46%, rgba(255, 217, 138, 0.13), transparent 24%),
    radial-gradient(circle at 82% 58%, rgba(242, 170, 59, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 217, 138, 0.035), transparent 32%);
  opacity: calc(0.28 + var(--closing-progress) * 0.48);
  transform: translate3d(0, calc((1 - var(--closing-progress)) * 80px), 0);
}

.closing::after {
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 112%, rgba(255, 217, 138, 0.12), transparent 42%);
}

.imprint-field {
  position: absolute;
  z-index: 0;
  clip-path: polygon(8% 19%, 35% 2%, 69% 8%, 94% 27%, 100% 57%, 83% 91%, 48% 100%, 14% 86%, 0 52%);
  opacity: calc(0.2 + var(--closing-progress) * 0.66);
  transform: translate3d(calc((1 - var(--closing-progress)) * 34px), calc((1 - var(--closing-progress)) * 38px), 0) rotate(-6deg);
  transition:
    opacity 500ms ease,
    transform 700ms cubic-bezier(0.19, 1, 0.22, 1);
  user-select: none;
  contain: layout paint style;
}

.imprint-grid {
  position: absolute;
  inset:
    var(--imprint-pad-top, 0)
    var(--imprint-pad-right, 0)
    var(--imprint-pad-bottom, 0)
    var(--imprint-pad-left, 0);
  display: grid;
  grid-template-columns: repeat(var(--imprint-cols, 64), minmax(0, 1fr));
  grid-auto-rows: var(--imprint-cell, 18px);
  gap: var(--imprint-gap, 0);
  align-content: stretch;
  justify-content: stretch;
}

.imprint-field-bottom {
  right: calc(max(-28vw, -360px) - var(--imprint-pad-right, 64px));
  bottom: calc(max(-20svh, -220px) - var(--imprint-pad-bottom, 64px));
  width: calc(min(1120px, 118vw) + var(--imprint-pad-left, 64px) + var(--imprint-pad-right, 64px));
  height: calc(min(720px, 78svh) + var(--imprint-pad-top, 64px) + var(--imprint-pad-bottom, 64px));
  transform: translate3d(calc((1 - var(--closing-progress)) * 34px), calc((1 - var(--closing-progress)) * 38px), 0) rotate(-6deg);
}

.imprint-field-top {
  top: calc(clamp(12px, 3svh, 42px) - var(--imprint-pad-top, 64px));
  left: calc(clamp(12px, 3vw, 42px) - var(--imprint-pad-left, 64px));
  width: calc(min(760px, 76vw) + var(--imprint-pad-left, 64px) + var(--imprint-pad-right, 106px));
  height: calc(min(390px, 42svh) + var(--imprint-pad-top, 64px) + var(--imprint-pad-bottom, 112px));
  clip-path: polygon(5% 30%, 27% 8%, 62% 0, 91% 15%, 100% 46%, 87% 80%, 55% 100%, 20% 88%, 0 58%);
  opacity: calc(0.12 + var(--closing-progress) * 0.5);
  transform: translate3d(calc((1 - var(--closing-progress)) * -22px), calc((1 - var(--closing-progress)) * -18px), 0) rotate(-7deg);
}

.imprint-cell {
  --cell-opacity: 0.48;
  display: grid;
  min-width: 0;
  min-height: var(--imprint-cell, 18px);
  place-items: center;
  color: rgba(255, 217, 138, 0.78);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(8px, 0.58vw, 11px);
  line-height: 1;
  text-align: center;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transform-origin: 50% 50%;
  transition:
    background-color 760ms cubic-bezier(0.19, 1, 0.22, 1),
    color 760ms cubic-bezier(0.19, 1, 0.22, 1),
    opacity 760ms cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform, opacity, background-color, color;
  backface-visibility: hidden;
}

.imprint-cell.is-empty {
  visibility: hidden;
}

.closing.is-awake .imprint-cell {
  opacity: var(--cell-opacity);
  animation: imprintFadeIn 900ms cubic-bezier(0.19, 1, 0.22, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}

.imprint-cell.is-hot {
  background: var(--ink);
  color: #000;
  opacity: 1;
  transition-duration: 120ms;
  transition-delay: 0ms;
  animation: none;
}

.closing-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-self: start;
  gap: clamp(24px, 5vw, 96px);
  color: rgba(245, 247, 251, 0.92);
  font-size: clamp(14px, 1vw, 19px);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: uppercase;
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  will-change: opacity, transform;
}

.closing-contact,
.closing-services,
.closing-nav {
  display: grid;
  gap: 8px;
}

.closing-contact {
  justify-self: start;
  text-transform: none;
}

.closing-services {
  justify-self: center;
}

.closing-nav {
  justify-self: end;
}

.closing-top a {
  position: relative;
  width: max-content;
  transition:
    color 220ms ease,
    transform 220ms ease;
}

.closing-type {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
}

.closing-top a::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms ease;
}

.closing-top a:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

.closing-top a:hover::after {
  transform: scaleX(1);
}

.closing-mark {
  position: relative;
  z-index: 1;
  align-self: end;
  display: grid;
  grid-template-columns: max-content max-content;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  gap: clamp(18px, 3vw, 64px);
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 0.82;
  text-shadow:
    0 24px 72px rgba(0, 0, 0, 0.86),
    0 0 42px rgba(242, 170, 59, 0.16);
}

.closing-word {
  display: inline-block;
  white-space: nowrap;
  opacity: 0;
  transform: translate3d(0, 22vh, 0) scale(0.88);
  transform-origin: 50% 80%;
  will-change: transform, opacity, filter;
}

.closing-word .char {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 1.2em, 0) rotateX(70deg);
  transform-origin: 50% 100%;
}

.closing-main {
  font-size: clamp(72px, 13.2vw, 245px);
  font-weight: 760;
}

.closing-script {
  color: color-mix(in srgb, var(--gold) 72%, white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(62px, 10.2vw, 204px);
  font-style: italic;
  font-weight: 400;
}

@keyframes imprintFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: var(--cell-opacity);
  }
}

@keyframes orbitDrift {
  0% {
    transform: translate(-50%, -50%) rotate(var(--rotate));
  }
  100% {
    transform: translate(-50%, -50%) rotate(calc(var(--rotate) + 360deg));
  }
}

@keyframes orbitDriftReverse {
  0% {
    transform: translate(-50%, -50%) rotate(var(--rotate));
  }
  100% {
    transform: translate(-50%, -50%) rotate(calc(var(--rotate) - 360deg));
  }
}

@keyframes coreBreathe {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    filter: brightness(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.045);
    filter: brightness(1.14);
  }
}

@keyframes nodeFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -8px, 0);
  }
}

@keyframes lineSweepX {
  0%,
  100% {
    opacity: 0.36;
    transform: scaleX(0.72);
  }
  50% {
    opacity: 0.9;
    transform: scaleX(1);
  }
}

@keyframes lineSweepY {
  0%,
  100% {
    opacity: 0.34;
    transform: scaleY(0.72);
  }
  50% {
    opacity: 0.82;
    transform: scaleY(1);
  }
}

@keyframes tileLift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    filter: brightness(1);
  }
  50% {
    transform: translate3d(0, -7px, 0);
    filter: brightness(1.12);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.96);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes pulseRing {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.4);
  }
  45% {
    opacity: 0.34;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(4.2);
  }
}

@keyframes stackScan {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.72;
  }
  50% {
    transform: translate3d(18px, 0, 0);
    opacity: 1;
  }
}

@keyframes metricGlow {
  0%,
  100% {
    filter: brightness(1);
    box-shadow:
      inset 0 0 42px rgba(255, 217, 138, 0.06),
      0 0 48px rgba(242, 170, 59, 0.12);
  }
  50% {
    filter: brightness(1.12);
    box-shadow:
      inset 0 0 58px rgba(255, 217, 138, 0.1),
      0 0 68px rgba(242, 170, 59, 0.2);
  }
}

@keyframes metricCoreBreathe {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.12);
    filter: brightness(1.18);
  }
}

@keyframes metricDotOne {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(22px, 10px, 0);
  }
}

@keyframes metricDotTwo {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-12px, -24px, 0);
  }
}

@keyframes metricDotThree {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(18px, -18px, 0);
  }
}

@media (max-width: 980px) {
  .home {
    min-height: 430svh;
  }

  .mark {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .mark-main,
  .mark-script {
    white-space: normal;
  }

  .footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .social,
  .nav {
    justify-self: start;
    flex-wrap: wrap;
  }

  .trajectory-line {
    left: 50%;
    width: min(58vw, 480px);
  }

  .reveal-content {
    padding: 40px 32px;
  }

  .panel-signal {
    width: min(36vw, 280px);
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: clamp(22px, 3vw, 36px);
  }

  .panel-nav-label {
    display: none;
  }

  .closing-top {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .closing-services,
  .closing-nav {
    justify-self: start;
  }

  .closing-mark {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .closing-main,
  .closing-script {
    white-space: normal;
  }
}

@media (max-width: 620px) {
  .hero {
    padding: 24px 20px;
  }

  .intro {
    max-width: 310px;
  }

  .mark {
    padding-bottom: 24px;
  }

  .mark-main {
    font-size: clamp(58px, 20vw, 112px);
  }

  .mark-script {
    font-size: clamp(52px, 18vw, 104px);
  }

  .scroll-hint {
    right: 20px;
    bottom: 104px;
    font-size: 10px;
  }

  .footer {
    gap: 20px;
    padding-top: 20px;
  }

  .social,
  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
  }

  .split {
    display: none;
  }

  .orbit-system,
  .system-map {
    width: 100%;
  }

  .orbit-node {
    min-width: 76px;
    min-height: 36px;
    font-size: 11px;
  }

  .node-data {
    right: 0;
  }

  .node-content {
    left: 0;
  }

  .map-tile {
    width: clamp(88px, 29vw, 116px);
    font-size: 11px;
  }

  .trajectory {
    min-height: 300svh;
    padding: 8svh 20px 0;
  }

  .trajectory-line {
    left: 49%;
    width: 188vw;
    max-width: 1080px;
    top: -28svh;
    bottom: -28svh;
    opacity: 0.82;
  }

  .trajectory-path {
    stroke-width: 34;
  }

  .trajectory-step {
    grid-template-columns: 1fr;
    min-height: 62svh;
    gap: 24px;
    padding-block: 44px;
  }

  .step-one,
  .step-two,
  .step-three,
  .step-four {
    margin-right: auto;
    margin-left: auto;
  }

  .step-two,
  .step-four {
    grid-template-columns: 1fr;
  }

  .step-two .step-copy,
  .step-four .step-copy,
  .step-two .system-map,
  .step-four .metric-orbit {
    grid-column: auto;
    grid-row: auto;
  }

  .trajectory-step p {
    max-width: 12ch;
    margin-top: 18px;
    font-size: clamp(34px, 11vw, 60px);
    line-height: 1.06;
  }

  .step-copy {
    max-width: 420px;
  }

  .signal-stack,
  .metric-orbit {
    width: min(100%, 320px);
  }

  .reveal-section {
    min-height: 280svh;
    margin-top: -10svh;
  }

  .reveal-panel {
    padding: 40px 20px 50px;
    gap: 20px;
  }

  .panel-kicker {
    font-size: 10px;
  }

  .panel-heading {
    font-size: clamp(62px, 23vw, 112px);
  }

  .panel-desc {
    max-width: 25ch;
    font-size: clamp(17px, 5.6vw, 24px);
    line-height: 1.1;
    text-align: left;
  }

  .panel-links {
    align-self: start;
    font-size: clamp(17px, 5.4vw, 24px);
  }

  .panel-signal {
    right: 20px;
    bottom: 22px;
    width: min(48vw, 220px);
    min-width: 126px;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .cap-title {
    margin-bottom: 6px;
  }

  .panel-nav {
    right: 14px;
    gap: 10px;
  }

  .panel-nav-label {
    display: none;
  }

  .closing {
    padding: 24px 20px;
  }

  .imprint-cell {
    font-size: 9px;
  }

  .closing-top {
    font-size: 13px;
  }

  .closing-main {
    font-size: clamp(58px, 20vw, 112px);
  }

  .closing-script {
    font-size: clamp(52px, 18vw, 104px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ambient,
  .coffee-flow,
  .red-stage,
  .shade,
  .vignette,
  .grain,
  .intro,
  .mark,
  .scroll-hint,
  .arrow,
  .split,
  .trajectory-step {
    opacity: var(--layer-opacity, 1);
    transform: none;
    animation: none;
  }

  .reveal-card {
    --circle-scale: 1.55;
    --circle-y: 0;
  }

  .reveal-content,
  .reveal-panel {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none;
  }

  .trajectory-path {
    stroke-dashoffset: 0;
  }

  .trajectory-step .orbit-system,
  .trajectory-step .system-map,
  .trajectory-step .signal-stack,
  .trajectory-step .metric-orbit {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .orbit-ring,
  .orbit-core,
  .orbit-node,
  .map-line,
  .map-tile,
  .map-pulse,
  .signal-stack span,
  .metric-orbit,
  .metric-core,
  .metric-dot {
    animation: none;
  }

  .footer::before {
    transform: scaleX(1);
    animation: none;
  }

  .type {
    clip-path: inset(0);
    animation: none;
  }

  .footer a,
  .footer a::after {
    transition: none;
  }

  .imprint-field,
  .imprint-cell,
  .closing-top a,
  .closing-top a::after {
    transition: none;
  }

  .imprint-cell {
    transform: none !important;
    will-change: auto;
  }

  .closing-word,
  .closing-word .char {
    opacity: 1;
    transform: none;
  }

  .closing-top,
  .closing-type,
  .closing.is-awake .imprint-cell {
    opacity: 1;
    clip-path: inset(0);
    animation: none;
    transform: none;
  }
}
