:root {
  color-scheme: dark;
  --bg: #101312;
  --bg-soft: #171c1a;
  --surface: rgba(28, 35, 32, 0.78);
  --surface-strong: #1c2421;
  --line: rgba(202, 255, 230, 0.14);
  --line-strong: rgba(41, 242, 153, 0.4);
  --mint: #18ec8d;
  --mint-soft: #94f8cd;
  --forest: #17372d;
  --white: #f5f8f6;
  --muted: #aab7b1;
  --violet: #b487ff;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --wide: min(1320px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 12% 0%, rgba(24, 236, 141, 0.16), transparent 30rem),
    radial-gradient(circle at 90% 8%, rgba(148, 248, 205, 0.12), transparent 24rem),
    var(--bg);
  color: var(--white);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0;
  margin: 0;
  overflow-x: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-glow {
  background-image:
    repeating-radial-gradient(
      circle at 50% 32%,
      transparent 0 76px,
      rgba(111, 255, 194, 0.06) 77px 78px,
      transparent 79px 132px
    );
  inset: 0;
  mask-image: linear-gradient(black, transparent 72%);
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(13, 17, 15, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 24px;
  grid-template-columns: auto 1fr auto;
  left: 50%;
  max-width: var(--wide);
  padding: 14px 16px;
  position: fixed;
  top: 18px;
  transform: translateX(-50%);
  width: calc(100vw - 36px);
  z-index: 20;
}

.wordmark {
  color: var(--mint);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: 0;
}

.site-header nav {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  justify-content: center;
}

.site-header nav a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 180ms ease;
}

.site-header nav a:hover {
  color: var(--white);
}

.header-cta,
.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.header-cta,
.button-primary {
  background: var(--mint);
  box-shadow: 0 16px 45px rgba(24, 236, 141, 0.22);
  color: #06120d;
}

.header-cta:hover,
.button-primary:hover {
  box-shadow: 0 18px 55px rgba(24, 236, 141, 0.34);
  transform: translateY(-2px);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

main {
  display: block;
}

.hero,
.section,
.bridge-band {
  margin-inline: auto;
  width: var(--wide);
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(28px, 4vw, 64px);
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  min-height: 100svh;
  padding-top: 132px;
}

.eyebrow {
  color: var(--mint-soft);
  font-size: 0.86rem;
  font-weight: 700;
  margin: 0 0 16px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.7rem, 5.8vw, 7.4rem);
  line-height: 0.94;
  margin-bottom: 24px;
  text-wrap: balance;
}

/* Editorial treatment for main hero headline */
.hero-headline {
  display: grid;
  gap: 0.06em;
  max-width: 13.5ch;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.92;
}

.hero-headline-line {
  display: block;
  font-size: clamp(2.7rem, 5.8vw, 7.4rem);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

.hero-headline-line:first-child { transform: translateX(-0.04em); }
.hero-headline-line:last-child { transform: translateX(0.12em); }

.hero-headline-emphasis { font-weight: 900; color: var(--white); }

.hero-headline-payoff {
  color: var(--mint);
  font-weight: 900;
  display: inline-block;
  position: relative;
  -webkit-text-stroke: 0.6px rgba(255,255,255,0.06);
}

.hero-headline-payoff::after {
  /* subtle glowing underline to emphasize payoff */
  content: "";
  position: absolute;
  left: 6%; right: 6%;
  bottom: -0.16em;
  height: 0.14em;
  background: linear-gradient(90deg, rgba(24,236,141,0.12), rgba(24,236,141,0.92), rgba(24,236,141,0.12));
  border-radius: 999px;
  filter: blur(6px);
  opacity: 0.95;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 4.6rem);
  line-height: 0.98;
  margin-bottom: 18px;
  text-wrap: balance;
}

h3 {
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  line-height: 1.1;
}

p {
  color: var(--muted);
  font-size: clamp(1rem, 1.18vw, 1.2rem);
  line-height: 1.6;
}

.hero-lead {
  max-width: 680px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.cta-stack {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta-stack small {
  color: var(--mint-soft);
  font-size: 0.83rem;
  font-weight: 700;
}

.hero-proof,
.keyword-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-proof {
  margin-top: 38px;
}

.hero-proof span,
.keyword-strip span,
.old-way span,
.output-rail span,
.demo-tags span {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--white);
  display: inline-flex;
  padding: 10px 12px;
}

.hero-stage {
  aspect-ratio: 1 / 1;
  isolation: isolate;
  max-height: 880px;
  min-height: 620px;
  position: relative;
}

.chaos-cloud span,
.intake,
.output-rail span {
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  position: absolute;
}

.chaos-cloud span {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 700;
  padding: 12px 14px;
  z-index: 3;
}

.chaos-cloud span:nth-child(1) {
  left: 2%;
  top: 20%;
  transform: rotate(-8deg);
}

.chaos-cloud span:nth-child(2) {
  left: 0;
  top: 48%;
  transform: rotate(6deg);
}

.chaos-cloud span:nth-child(3) {
  left: 13%;
  top: 75%;
  transform: rotate(-5deg);
}

.chaos-cloud span:nth-child(4) {
  left: 20%;
  top: 7%;
  transform: rotate(4deg);
}

.chaos-cloud span:nth-child(5) {
  left: 7%;
  top: 61%;
  transform: rotate(8deg);
}

.portal-shell {
  align-items: center;
  display: grid;
  inset: 7% 3% 7% 16%;
  justify-items: center;
  perspective: 900px;
  position: absolute;
}

.ring-field {
  background:
    radial-gradient(circle, rgba(24, 236, 141, 0.2), transparent 42%),
    repeating-radial-gradient(
      circle,
      transparent 0 38px,
      rgba(131, 255, 204, 0.08) 39px 41px,
      transparent 42px 78px
    );
  border-radius: 50%;
  filter: blur(0);
  inset: 2%;
  position: absolute;
}

.portal-shell > img {
  aspect-ratio: 1;
  border-radius: 50%;
  filter: saturate(1.12) drop-shadow(0 30px 90px rgba(24, 236, 141, 0.18));
  mix-blend-mode: screen;
  object-fit: cover;
  opacity: 0.95;
  width: min(100%, 690px);
}

.portal-core {
  align-content: center;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 35%, rgba(148, 248, 205, 0.18), transparent 36%),
    linear-gradient(145deg, rgba(16, 24, 21, 0.96), rgba(19, 45, 35, 0.8));
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 90px rgba(24, 236, 141, 0.2);
  display: grid;
  justify-items: center;
  overflow: hidden;
  position: absolute;
  width: clamp(210px, 29vw, 350px);
}

.portal-core strong {
  font-size: clamp(1.6rem, 2.8vw, 3.2rem);
  line-height: 1;
  position: relative;
  z-index: 1;
}

.portal-core em {
  color: var(--mint-soft);
  font-size: 0.92rem;
  font-style: normal;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.scan {
  background: linear-gradient(90deg, transparent, rgba(148, 248, 205, 0.52), transparent);
  height: 1px;
  left: -10%;
  position: absolute;
  width: 120%;
}

.scan-a {
  animation: scan 4.8s ease-in-out infinite;
}

.scan-b {
  animation: scan 4.8s 2.4s ease-in-out infinite;
}

.intake {
  background: rgba(15, 25, 21, 0.84);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 12px 14px;
}

.intake-a {
  animation: intake-a 6s ease-in-out infinite;
  left: 8%;
  top: 25%;
}

.intake-b {
  animation: intake-b 6.4s ease-in-out infinite;
  left: 10%;
  top: 50%;
}

.intake-c {
  animation: intake-c 6.7s ease-in-out infinite;
  right: 12%;
  top: 20%;
}

.intake-d {
  animation: intake-d 7s ease-in-out infinite;
  right: 4%;
  top: 57%;
}

.output-rail {
  bottom: 14%;
  display: grid;
  gap: 10px;
  position: absolute;
  width: 200px;
  z-index: 7; /* show above phone image */
}

/* left and right rails for bottom corners of phone */
.output-rail-left {
  right: 38%;
  bottom: 2%;
  align-items: flex-end;
}

.output-rail-right {
  right: 6%;
  bottom: 2%;
  align-items: flex-start;
}

@media (min-width: 1600px) {
  /* on very wide screens nudge rails further out */
  .output-rail-left {
    right: 38%;
  }
  .output-rail-right {
    right: 5%;
  }
}

.output-rail span {
  border-color: var(--line-strong);
  position: relative;
}

.phone-proof {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0;
  overflow: hidden;
}

.hero-phone {
  bottom: 1%;
  max-width: 244px;
  position: absolute;
  right: 17%;
  transform: rotate(4deg);
  z-index: 5;
}

.bridge-band {
  background:
    linear-gradient(90deg, rgba(24, 236, 141, 0.14), rgba(255, 255, 255, 0.03)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  margin-top: 42px;
  padding: clamp(24px, 3vw, 44px);
}

.bridge-band p {
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 3.8rem);
  font-weight: 800;
  line-height: 1;
  margin: 0;
}

.bridge-line {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(160px, 1fr) auto;
}

.bridge-line span {
  color: var(--mint-soft);
  font-weight: 800;
}

.bridge-line i {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 120' fill='none'%3E%3Cpath d='M10 92C78 92 114 34 210 34C306 34 342 92 410 92' stroke='rgba(24,236,141,0.22)' stroke-width='12' stroke-linecap='round'/%3E%3Cpath d='M10 92C78 92 114 34 210 34C306 34 342 92 410 92' stroke='rgba(24,236,141,0.95)' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  filter: drop-shadow(0 0 12px rgba(24, 236, 141, 0.28));
  height: clamp(42px, 4.8vw, 66px);
  position: relative;
}

.bridge-line i::after {
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0 42%, rgba(255, 255, 255, 0.35) 58%, rgba(255, 255, 255, 0) 74%);
  border-radius: 50%;
  content: "";
  height: 10px;
  position: absolute;
  right: 0;
  top: calc(50% + 15px);
  transform: translate(50%, -50%);
  width: 10px;
}

.section {
  padding-top: clamp(96px, 12vw, 160px);
}

.section-heading {
  max-width: 920px;
}

.section-heading p:last-child {
  max-width: 760px;
}

.problem-grid,
.proof,
.final-cta {
  display: grid;
  gap: clamp(18px, 3vw, 36px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.problem-grid {
  margin-top: 42px;
}

.quote-panel {
  background:
    radial-gradient(circle at 86% 8%, rgba(24, 236, 141, 0.2), transparent 19rem),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 390px;
  padding: clamp(24px, 4vw, 54px);
}

.quote-panel p {
  color: var(--white);
  font-size: clamp(2rem, 3.3vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 40px;
}

.quote-panel strong {
  color: var(--mint-soft);
  display: block;
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  line-height: 1.4;
}

.old-way {
  align-content: center;
  background:
    repeating-radial-gradient(
      circle at 80% 50%,
      transparent 0 36px,
      rgba(255, 255, 255, 0.05) 37px 39px,
      transparent 40px 72px
    ),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 390px;
  padding: clamp(24px, 4vw, 54px);
}

.old-way span:nth-child(2n) {
  transform: translateY(12px);
}

.old-way span:nth-child(3n) {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--muted);
}

.process-track {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-top: 44px;
  position: relative;
}

.process-track::before {
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
  content: "";
  height: 1px;
  left: 4%;
  position: absolute;
  right: 4%;
  top: 35px;
}

.process-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 210px;
  padding: 18px;
  position: relative;
}

.process-card span,
.demo-scene > span,
.story-card span {
  color: var(--mint);
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 900;
  margin-bottom: 30px;
}

.process-card h3 {
  margin-bottom: 10px;
}

.process-card p,
.feature-card p,
.outcome-card p,
.story-card p {
  font-size: 0.98rem;
  margin-bottom: 0;
}

.proof {
  align-items: center;
}

.proof-copy p {
  max-width: 620px;
}

.keyword-strip {
  margin-top: 30px;
}

.proof-gallery {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.06fr 0.94fr;
}

.media-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0;
  overflow: hidden;
}

.media-card img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.media-tall {
  grid-row: span 2;
  min-height: 680px;
}

.media-short {
  min-height: 332px;
}

.features {
  position: relative;
}

.feature-orbit {
  background:
    radial-gradient(circle, transparent 0 180px, rgba(24, 236, 141, 0.1) 181px 182px, transparent 183px),
    radial-gradient(circle, transparent 0 310px, rgba(255, 255, 255, 0.06) 311px 312px, transparent 313px);
  inset: 240px 0 auto;
  min-height: 720px;
  pointer-events: none;
  position: absolute;
}

.feature-grid,
.outcome-grid,
.storyboard {
  display: grid;
  gap: 14px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 44px;
  position: relative;
}

.feature-card,
.outcome-card,
.story-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.065), transparent 55%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 246px;
  padding: clamp(20px, 2vw, 28px);
  transition:
    border-color 220ms ease,
    transform 220ms ease;
}

.feature-card:hover,
.outcome-card:hover,
.story-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.feature-card:nth-child(4),
.feature-card:nth-child(6) {
  background:
    radial-gradient(circle at 84% 8%, rgba(180, 135, 255, 0.18), transparent 12rem),
    var(--surface);
}

.demo {
  align-items: start;
  display: grid;
  gap: clamp(24px, 4vw, 70px);
  grid-template-columns: minmax(380px, 0.9fr) minmax(0, 1fr);
}

.demo-sticky {
  position: sticky;
  top: 118px;
}

.demo-console {
  background:
    radial-gradient(circle at 50% 50%, rgba(24, 236, 141, 0.2), transparent 24rem),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 560px;
  overflow: hidden;
  padding: clamp(22px, 3vw, 40px);
  position: relative;
}

.demo-ring {
  background:
    url("./assets/human-portal.jpg") center / contain no-repeat,
    var(--forest);
  border-radius: 50%;
  filter: saturate(1.2);
  height: min(78vw, 560px);
  left: 50%;
  opacity: 0.42;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: transform 600ms ease;
  width: min(78vw, 560px);
}

.demo-console.is-awake .demo-ring {
  transform: translate(-50%, -50%) rotate(18deg) scale(1.08);
}

.demo-screen {
  backdrop-filter: blur(18px);
  background: rgba(9, 13, 11, 0.72);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  bottom: clamp(18px, 3vw, 34px);
  left: clamp(18px, 3vw, 34px);
  padding: clamp(20px, 2.4vw, 30px);
  position: absolute;
  right: clamp(18px, 3vw, 34px);
}

.demo-index {
  color: var(--mint);
  font-size: 0.86rem;
  font-weight: 900;
  margin-bottom: 18px;
}

.demo-screen h3 {
  font-size: clamp(1.55rem, 2.2vw, 2.65rem);
  line-height: 1.05;
  margin-bottom: 20px;
}

.demo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-scenes {
  display: grid;
  gap: 18px;
}

.demo-scene {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 258px;
  opacity: 0.58;
  padding: clamp(22px, 3vw, 38px);
  transition:
    background 300ms ease,
    border-color 300ms ease,
    opacity 300ms ease,
    transform 300ms ease;
}

.demo-scene.is-active {
  background: rgba(24, 236, 141, 0.08);
  border-color: var(--line-strong);
  opacity: 1;
  transform: translateX(-10px);
}

.demo-scene h3 {
  margin-bottom: 12px;
}

.cycle {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 70px);
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1fr);
}

.cycle-loop {
  aspect-ratio: 1;
  background:
    radial-gradient(circle, rgba(24, 236, 141, 0.18), transparent 46%),
    repeating-radial-gradient(
      circle,
      transparent 0 56px,
      rgba(148, 248, 205, 0.09) 57px 59px,
      transparent 60px 100px
    );
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}

.cycle-loop::before {
  border: clamp(18px, 2vw, 28px) solid var(--mint);
  border-bottom-color: transparent;
  border-left-color: rgba(24, 236, 141, 0.4);
  border-radius: 50%;
  content: "";
  height: 42%;
  position: absolute;
  width: 42%;
}

.cycle-loop span {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
  padding: 12px 16px;
  position: absolute;
}

.cycle-loop span:nth-child(1) {
  top: 8%;
}

.cycle-loop span:nth-child(2) {
  right: 7%;
  top: 25%;
}

.cycle-loop span:nth-child(3) {
  bottom: 25%;
  right: 7%;
}

.cycle-loop span:nth-child(4) {
  bottom: 8%;
}

.cycle-loop span:nth-child(5) {
  bottom: 25%;
  left: 7%;
}

.cycle-loop span:nth-child(6) {
  left: 7%;
  top: 25%;
}

.film-stage {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 660px;
  overflow: hidden;
  position: relative;
}

.film-stage img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.film-overlay {
  background: linear-gradient(90deg, rgba(9, 13, 11, 0.96), rgba(9, 13, 11, 0.4), transparent);
  bottom: 0;
  display: grid;
  left: 0;
  max-width: 720px;
  padding: clamp(26px, 4vw, 58px);
  position: absolute;
  top: 0;
  align-content: end;
}

.film-overlay p:last-child {
  color: var(--white);
}

.storyboard {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.story-card {
  min-height: 220px;
}

.outcome-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 40px;
}

.outcome-card {
  min-height: 208px;
}

.outcome-card h3 {
  color: var(--mint-soft);
}

.final-cta {
  align-items: center;
  padding-bottom: clamp(96px, 12vw, 160px);
}

.final-media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 680px;
  overflow: hidden;
}

.final-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.final-copy {
  padding: clamp(8px, 3vw, 48px);
}

footer {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--wide);
  padding: 26px 0 42px;
}

footer p,
footer span {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 720ms ease,
    transform 720ms ease;
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes proofPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: var(--shadow);
  }

  50% {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 18px 40px rgba(24, 236, 141, 0.18);
  }
}

@keyframes scan {
  0%,
  100% {
    opacity: 0;
    transform: translateY(-115px);
  }

  18%,
  76% {
    opacity: 1;
  }

  88% {
    opacity: 0;
    transform: translateY(115px);
  }
}

@keyframes intake-a {
  0%,
  100% {
    transform: translate3d(-24px, -10px, 0) rotate(-8deg);
  }

  46% {
    opacity: 1;
  }

  60% {
    opacity: 0.24;
    transform: translate3d(170px, 110px, 0) scale(0.48);
  }
}

@keyframes intake-b {
  0%,
  100% {
    transform: translate3d(-32px, 14px, 0) rotate(6deg);
  }

  48% {
    opacity: 1;
  }

  64% {
    opacity: 0.2;
    transform: translate3d(165px, -8px, 0) scale(0.5);
  }
}

@keyframes intake-c {
  0%,
  100% {
    transform: translate3d(20px, -8px, 0) rotate(6deg);
  }

  50% {
    opacity: 1;
  }

  66% {
    opacity: 0.2;
    transform: translate3d(-150px, 112px, 0) scale(0.5);
  }
}

@keyframes intake-d {
  0%,
  100% {
    transform: translate3d(22px, 10px, 0) rotate(-7deg);
  }

  52% {
    opacity: 1;
  }

  68% {
    opacity: 0.2;
    transform: translate3d(-170px, -8px, 0) scale(0.52);
  }
}

@media (max-width: 1120px) {
  .hero,
  .cycle {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    max-height: none;
    min-height: min(92vw, 780px);
  }

  .portal-shell {
    inset-inline: 10%;
  }

  .process-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-track::before {
    display: none;
  }

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

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

  .demo-sticky {
    position: static;
  }

  .storyboard,
  .outcome-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --wide: calc(100vw - 24px);
  }

  .site-header {
    gap: 12px;
    grid-template-columns: 1fr auto;
    padding: 12px;
    top: 12px;
    width: calc(100vw - 20px);
  }

  .site-header nav {
    display: none;
  }

  .header-cta {
    min-height: 42px;
    padding-inline: 12px;
  }

  .hero {
    min-height: auto;
    padding-top: 118px;
  }

  h1 {
    font-size: clamp(2.65rem, 12vw, 4.7rem);
  }

  .hero-headline {
    margin-inline: auto;
    max-width: none;
    text-align: center;
    justify-items: center;
  }

  .hero-headline-line:first-child,
  .hero-headline-line:last-child {
    transform: none;
  }

  h2 {
    font-size: clamp(2rem, 9vw, 3.45rem);
  }

  .button {
    width: 100%;
  }

  .cta-row,
  .cta-stack {
    width: 100%;
  }

  .hero-stage {
    aspect-ratio: auto;
    min-height: 600px;
  }

  .portal-shell {
    inset: 10% 0 17%;
  }

  .portal-shell > img {
    width: 100%;
  }

  .chaos-cloud span:nth-child(1) {
    display: none;
  }

  .chaos-cloud span:nth-child(2) {
    left: 4%;
    top: 26%;
  }

  .chaos-cloud span:nth-child(3) {
    display: none;
  }

  .chaos-cloud span:nth-child(4),
  .chaos-cloud span:nth-child(5),
  .intake-d {
    display: none;
  }

  .intake-a {
    left: 3%;
    top: 34%;
  }

  .intake-b {
    left: 2%;
    top: 55%;
  }

  .intake-c {
    right: 3%;
    top: 26%;
  }

  .output-rail {
    display: none;
  }

  .hero-proof {
    justify-content: center;
    margin-top: 26px;
  }

  .hero-proof span {
    animation: proofPulse 2.8s ease-in-out infinite;
  }

  .hero-proof span:nth-child(2) {
    animation-delay: 0.2s;
  }

  .hero-proof span:nth-child(3) {
    animation-delay: 0.4s;
  }

  .hero-proof span:nth-child(4) {
    animation-delay: 0.6s;
  }

  .hero-phone {
    bottom: 3%;
    max-width: 174px;
    right: 34%;
  }

  .bridge-band,
  .problem-grid,
  .proof,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .quote-panel,
  .old-way {
    min-height: auto;
  }

  .process-track,
  .feature-grid,
  .storyboard,
  .outcome-grid {
    grid-template-columns: 1fr;
  }

  .media-tall {
    min-height: 520px;
  }

  .media-short {
    min-height: 250px;
  }

  .proof-gallery {
    grid-template-columns: 1fr;
  }

  .demo-console {
    min-height: 460px;
  }

  .demo-scene.is-active {
    transform: none;
  }

  .cycle-loop {
    min-height: calc(100vw - 24px);
  }

  .cycle-loop span {
    font-size: 0.9rem;
    padding: 10px 12px;
  }

  .film-stage,
  .final-media {
    min-height: 520px;
  }

  .film-stage img {
    object-position: 60% center;
  }

  .film-overlay {
    background: linear-gradient(0deg, rgba(9, 13, 11, 0.98), rgba(9, 13, 11, 0.46), transparent);
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

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