:root {
  color-scheme: light;
  --canvas: oklch(97% 0.012 94);
  --paper: oklch(99% 0.004 96);
  --petal: oklch(94% 0.035 31);
  --mint: oklch(93% 0.04 148);
  --sun: oklch(79% 0.15 78);
  --sun-soft: oklch(91% 0.075 82);
  --leaf: oklch(36% 0.09 145);
  --leaf-soft: oklch(83% 0.08 145);
  --coral: oklch(64% 0.16 31);
  --ink: oklch(19% 0.04 130);
  --ink-soft: oklch(36% 0.04 128);
  --muted: oklch(48% 0.035 116);
  --line: oklch(32% 0.05 130 / 0.14);
  --line-strong: oklch(32% 0.05 130 / 0.28);
  --shadow-soft: 0 28px 90px oklch(38% 0.07 108 / 0.16);
  --shadow-card: 0 18px 54px oklch(38% 0.07 108 / 0.13);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-tight: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 20px;
  --z-canvas: 0;
  --z-base: 1;
  --z-nav: 45;
  --z-control: 70;
  --z-overlay: 90;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  background: var(--canvas);
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, oklch(83% 0.08 145 / 0.42), transparent 26rem),
    radial-gradient(circle at 92% 6%, oklch(91% 0.075 82 / 0.58), transparent 28rem),
    radial-gradient(circle at 72% 48%, oklch(94% 0.035 31 / 0.62), transparent 32rem),
    linear-gradient(180deg, var(--canvas) 0%, var(--paper) 42%, oklch(96% 0.015 105) 100%);
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-base);
  opacity: 0.34;
  background-image:
    linear-gradient(90deg, oklch(36% 0.09 145 / 0.08) 1px, transparent 1px),
    linear-gradient(180deg, oklch(36% 0.09 145 / 0.08) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(180deg, #000 0 16rem, transparent 42rem);
}

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

img,
canvas,
svg {
  display: block;
}

img {
  max-width: 100%;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
}

section {
  position: relative;
  scroll-margin-top: 110px;
}

#signal-canvas {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-canvas);
  width: 100%;
  height: 100%;
  opacity: 0.22;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  opacity: 0.08;
  background-image:
    radial-gradient(circle at center, oklch(19% 0.04 130 / 0.28) 0 0.8px, transparent 1.2px);
  background-size: 7px 7px;
  mix-blend-mode: multiply;
}

.progress-rail {
  position: fixed;
  z-index: calc(var(--z-nav) + 1);
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: oklch(36% 0.09 145 / 0.1);
}

.progress-rail span {
  display: block;
  width: calc(var(--page-progress, 0) * 100%);
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--sun), var(--leaf));
}

.topbar {
  position: fixed;
  z-index: var(--z-nav);
  top: 18px;
  left: 50%;
  display: grid;
  width: min(1120px, calc(100% - 32px));
  min-height: 64px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 9px;
  border: 1px solid oklch(100% 0 0 / 0.72);
  border-radius: 999px;
  background: oklch(99% 0.006 96 / 0.86);
  box-shadow: 0 18px 60px oklch(38% 0.06 110 / 0.14);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
}

.wordmark {
  display: inline-flex;
  width: max-content;
  flex-direction: column;
  justify-content: center;
  padding-left: 14px;
}

.wordmark span {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}

.wordmark small {
  margin-top: 4px;
  color: var(--leaf);
  font-size: 12px;
  font-weight: 900;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: oklch(100% 0 0 / 0.58);
}

.topbar nav a {
  min-width: 86px;
  padding: 11px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  transition:
    color 180ms var(--ease-tight),
    background 180ms var(--ease-tight);
}

.topbar nav a:hover {
  color: var(--ink);
  background: var(--mint);
}

.topbar-cta,
.button,
.control-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 900;
  transition:
    transform 180ms var(--ease-tight),
    box-shadow 180ms var(--ease-tight),
    background 180ms var(--ease-tight);
}

.topbar-cta {
  justify-self: end;
  min-height: 46px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--sun);
  font-size: 13px;
}

.button {
  min-height: 56px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  font-size: 15px;
}

.button.primary,
.control-cta {
  border-color: transparent;
  color: var(--ink);
  background: var(--sun);
  box-shadow: 0 18px 40px oklch(79% 0.15 78 / 0.26);
}

.button.ghost {
  color: var(--ink);
  background: oklch(100% 0 0 / 0.74);
}

.topbar-cta:hover,
.button:hover,
.control-cta:hover {
  transform: translateY(-2px);
}

.topbar svg,
.button svg,
.control-toggle svg,
.control-cta svg,
.side-control svg,
.system-flow svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.3;
}

.control-toggle {
  position: fixed;
  z-index: calc(var(--z-control) + 1);
  top: auto;
  bottom: 26px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid oklch(100% 0 0 / 0.8);
  border-radius: 999px;
  color: var(--ink);
  background: oklch(99% 0.006 96 / 0.86);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
  cursor: pointer;
}

.side-control {
  position: fixed;
  z-index: var(--z-control);
  top: 92px;
  left: 18px;
  width: min(350px, calc(100vw - 36px));
  max-height: calc(100svh - 112px);
  padding: 14px;
  overflow: auto;
  border: 1px solid oklch(100% 0 0 / 0.8);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, oklch(91% 0.075 82 / 0.52), transparent 14rem),
    oklch(99% 0.006 96 / 0.94);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px);
  transform: translateX(calc(-100% - 26px));
  visibility: hidden;
  transition:
    transform 420ms var(--ease),
    visibility 0ms linear 420ms;
}

body.control-open .side-control {
  transform: translateX(0);
  visibility: visible;
  transition:
    transform 420ms var(--ease),
    visibility 0ms linear 0ms;
}

body.control-open .control-toggle {
  opacity: 0;
  pointer-events: none;
}

.side-control__head {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px 10px 14px;
  border-bottom: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  background: oklch(99% 0.006 96 / 0.96);
}

.side-control__head strong {
  display: block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 21px;
  font-weight: 800;
}

.side-control__head span {
  display: block;
  margin-top: 4px;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 900;
}

.side-control__close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: var(--mint);
  cursor: pointer;
}

.control-nav {
  display: grid;
  gap: 8px;
}

.control-nav a,
.drawer-content button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  color: var(--ink-soft);
  background: oklch(100% 0 0 / 0.72);
  font-size: 14px;
  font-weight: 900;
  transition:
    color 180ms var(--ease-tight),
    transform 180ms var(--ease-tight),
    background 180ms var(--ease-tight);
}

.control-nav a.is-active,
.control-nav a:hover,
.drawer-content button:hover {
  color: var(--ink);
  background: var(--sun-soft);
  transform: translateX(4px);
}

.control-drawer {
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: oklch(100% 0 0 / 0.7);
}

.drawer-trigger {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-radius: 18px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.drawer-trigger svg {
  transition: transform 220ms var(--ease-tight);
}

.control-drawer.is-open .drawer-trigger svg {
  transform: rotate(180deg);
}

.drawer-content {
  display: grid;
  grid-template-rows: 0fr;
  gap: 7px;
  padding: 0 10px;
  transition: grid-template-rows 320ms var(--ease);
}

.drawer-content::before {
  content: "";
}

.drawer-content > * {
  overflow: visible;
}

.control-drawer.is-open .drawer-content {
  grid-template-rows: 1fr;
  padding-bottom: 10px;
}

.drawer-content button {
  width: 100%;
  justify-content: flex-start;
  cursor: pointer;
}

.control-cta {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
}

main {
  position: relative;
  z-index: var(--z-base);
}

.scene {
  min-height: 100svh;
  padding: clamp(96px, 11vw, 156px) max(24px, 5vw);
  isolation: isolate;
}

.scene::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: auto 6vw 5vw auto;
  z-index: -1;
  width: min(28vw, 420px);
  aspect-ratio: 1;
  border: 1px solid oklch(36% 0.09 145 / 0.1);
  border-radius: 38% 62% 52% 48%;
  background: oklch(83% 0.08 145 / 0.13);
  transform: rotate(calc(var(--page-progress, 0) * 60deg));
}

.hero {
  display: block;
  min-height: 192svh;
  padding: 0;
  overflow: visible;
}

.hero.scene::after {
  display: none;
}

.hero-stage {
  position: sticky;
  top: 0;
  display: grid;
  height: 100svh;
  grid-template-columns: minmax(0, 0.88fr) minmax(380px, 0.76fr);
  align-items: center;
  gap: clamp(34px, 7vw, 104px);
  padding: clamp(92px, 9vw, 132px) max(24px, 5vw) clamp(76px, 7vw, 112px);
  overflow: hidden;
  isolation: isolate;
}

.hero-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 12%;
  right: -8%;
  width: min(72vw, 920px);
  aspect-ratio: 1;
  border-radius: 44% 56% 48% 52%;
  background:
    radial-gradient(circle at 44% 42%, oklch(79% 0.15 78 / 0.54), transparent 17%),
    radial-gradient(circle at 68% 54%, oklch(64% 0.16 31 / 0.36), transparent 24%),
    radial-gradient(circle at 36% 70%, oklch(83% 0.08 145 / 0.54), transparent 31%);
  filter: blur(8px);
  opacity: calc(0.28 + var(--hero-drift, 0) * 0.34);
  transform:
    translate3d(calc(var(--hero-drift, 0) * -120px), calc(var(--hero-drift, 0) * 70px), 0)
    scale(calc(0.42 + var(--hero-drift, 0) * 1.1))
    rotate(calc(var(--hero-drift, 0) * 24deg));
  transition:
    background 420ms var(--ease),
    opacity 160ms linear;
}

.hero-stage::after {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: -1;
  top: calc(12% + var(--hero-drift, 0) * 76%);
  right: max(24px, 5vw);
  left: clamp(520px, 52vw, 780px);
  height: 1px;
  background:
    linear-gradient(90deg, transparent 2%, oklch(64% 0.16 31 / 0.28), var(--sun), oklch(36% 0.09 145 / 0.26), transparent 98%);
  box-shadow: 0 0 26px oklch(79% 0.15 78 / 0.18);
  opacity: calc(0.14 + var(--hero-drift, 0) * 0.22);
  transform: translate3d(0, -50%, 0);
}

body[data-hero-phase="leak"] .hero-stage::before {
  background:
    radial-gradient(circle at 38% 38%, oklch(64% 0.16 31 / 0.58), transparent 18%),
    radial-gradient(circle at 70% 56%, oklch(79% 0.15 78 / 0.4), transparent 25%),
    radial-gradient(circle at 42% 78%, oklch(94% 0.035 31 / 0.68), transparent 35%);
}

body[data-hero-phase="capture"] .hero-stage::before {
  background:
    radial-gradient(circle at 40% 40%, oklch(83% 0.08 145 / 0.7), transparent 20%),
    radial-gradient(circle at 70% 54%, oklch(79% 0.15 78 / 0.42), transparent 28%),
    radial-gradient(circle at 42% 78%, oklch(93% 0.04 148 / 0.74), transparent 36%);
}

.ambient-film {
  position: absolute;
  inset: 7% 5% auto auto;
  z-index: -1;
  display: grid;
  width: min(48vw, 680px);
  aspect-ratio: 1.22;
  border-radius: 38px;
  opacity: 0.72;
  transform: translateY(calc(var(--hero-drift, 0) * -46px));
}

.ambient-film span {
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
}

.ambient-film span:nth-child(1) {
  inset: 6% 7% auto auto;
  width: 58%;
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--sun-soft), transparent 66%);
}

.ambient-film span:nth-child(2) {
  bottom: 4%;
  left: 8%;
  width: 44%;
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--petal), transparent 68%);
}

.ambient-film span:nth-child(3) {
  right: 0;
  bottom: 8%;
  width: 36%;
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--mint), transparent 70%);
}

.hero-copy {
  max-width: 860px;
  transform: translate3d(0, calc(var(--hero-drift, 0) * -32px), 0);
  transition:
    max-width 420ms var(--ease),
    transform 120ms linear;
  will-change: transform;
}

.status-pill,
.chapter,
.cost-question p,
.system-title p,
.close-inner p {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.status-pill span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 8px oklch(64% 0.16 31 / 0.12), 0 0 28px oklch(64% 0.16 31 / 0.24);
}

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

h1,
h2,
h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 900px;
  margin-bottom: 28px;
  color: var(--ink);
  font-size: clamp(44px, 6.2vw, 78px);
  line-height: 0.96;
  transition:
    font-size 420ms var(--ease),
    line-height 420ms var(--ease),
    max-width 420ms var(--ease);
}

h2 {
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(36px, 5.2vw, 72px);
  line-height: 0.98;
}

h3 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(24px, 2.2vw, 38px);
  line-height: 1.02;
}

p {
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.58;
  text-wrap: pretty;
}

.hero-copy > p {
  max-height: 220px;
  overflow: hidden;
  transition:
    opacity 260ms var(--ease-tight),
    max-height 420ms var(--ease),
    margin 420ms var(--ease);
}

body[data-hero-phase="leak"] .hero-copy,
body[data-hero-phase="capture"] .hero-copy {
  max-width: 690px;
}

body[data-hero-phase="leak"] .hero-copy h1,
body[data-hero-phase="capture"] .hero-copy h1 {
  max-width: 640px;
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 0.98;
}

body[data-hero-phase="leak"] .hero-copy > p,
body[data-hero-phase="capture"] .hero-copy > p {
  max-height: 0;
  margin-bottom: 0;
  opacity: 0;
}

.attention-line {
  position: relative;
  display: inline;
  color: inherit;
  box-decoration-break: clone;
  background:
    linear-gradient(transparent 64%, oklch(79% 0.15 78 / 0.5) 65% 88%, transparent 89%);
  padding-inline: 0.03em;
}

.hero-actions,
.close-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-phase-copy {
  position: relative;
  width: min(640px, 100%);
  min-height: 92px;
  margin-top: 24px;
}

.hero-phase-copy article {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  padding: 16px 18px;
  border: 1px solid oklch(100% 0 0 / 0.82);
  border-radius: 22px;
  background: oklch(100% 0 0 / 0.68);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.98);
  transition:
    opacity 280ms var(--ease-tight),
    transform 360ms var(--ease),
    background 260ms var(--ease-tight),
    visibility 0ms linear 280ms;
}

.hero-phase-copy article.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition:
    opacity 280ms var(--ease-tight),
    transform 360ms var(--ease),
    background 260ms var(--ease-tight),
    visibility 0ms linear 0ms;
}

.hero-phase-copy span {
  margin-bottom: 5px;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 900;
}

.hero-phase-copy strong {
  color: var(--ink);
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.15;
}

body[data-hero-phase="leak"] .hero-phase-copy article.is-active {
  background: oklch(94% 0.035 31 / 0.82);
}

body[data-hero-phase="capture"] .hero-phase-copy article.is-active {
  background: oklch(93% 0.04 148 / 0.82);
}

.hero-console {
  position: relative;
  min-height: min(60vw, 640px);
  display: grid;
  place-items: center;
  perspective: 1200px;
  transform:
    translate3d(calc(var(--hero-drift, 0) * -22px), calc(var(--hero-drift, 0) * -18px), 0)
    rotate(calc(var(--hero-drift, 0) * -1.4deg));
  transform-origin: 52% 48%;
  transition: transform 120ms linear;
  will-change: transform;
}

.loss-lens {
  position: relative;
  display: grid;
  width: min(38vw, 470px);
  min-width: 320px;
  aspect-ratio: 1;
  place-items: center;
  transform: rotate(calc(var(--hero-drift, 0) * -8deg));
  transition: transform 120ms linear;
  will-change: transform;
}

.loss-lens__ring {
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  background:
    conic-gradient(from 220deg, var(--coral) 0 16%, oklch(64% 0.16 31 / 0.08) 16% 34%, var(--sun) 34% 52%, oklch(79% 0.15 78 / 0.1) 52% 72%, var(--leaf-soft) 72% 100%);
  box-shadow: 0 24px 80px oklch(79% 0.15 78 / 0.18);
  transform: scale(calc(0.82 + var(--hero-drift, 0) * 0.58));
  transition: transform 140ms linear;
}

body[data-hero-phase="leak"] .loss-lens__ring {
  box-shadow:
    0 24px 90px oklch(64% 0.16 31 / 0.24),
    0 0 0 calc(var(--hero-drift, 0) * 56px) oklch(64% 0.16 31 / 0.055);
}

body[data-hero-phase="capture"] .loss-lens__ring {
  box-shadow:
    0 24px 90px oklch(36% 0.09 145 / 0.18),
    0 0 0 calc(var(--hero-drift, 0) * 44px) oklch(83% 0.08 145 / 0.12);
}

.loss-lens__ring::after {
  content: "";
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 34%, oklch(100% 0 0 / 0.7), var(--paper) 72%);
  box-shadow: inset 0 0 0 1px var(--line);
}

.loss-lens__center {
  position: relative;
  z-index: 1;
  display: grid;
  width: 168px;
  height: 168px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: oklch(100% 0 0 / 0.68);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.loss-lens__center small,
.console-card small {
  display: block;
  color: var(--leaf);
  font-weight: 900;
}

.loss-lens__center strong {
  display: block;
  margin-top: -42px;
  color: var(--coral);
  font-size: 22px;
  line-height: 1;
}

.capture-line {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--leaf), transparent);
  opacity: calc(0.38 + var(--hero-drift, 0) * 0.44);
  transform-origin: center;
  transition:
    width 320ms var(--ease),
    opacity 220ms var(--ease-tight),
    background 220ms var(--ease-tight);
}

body[data-hero-phase="capture"] .capture-line {
  background: linear-gradient(90deg, transparent, var(--leaf), var(--sun), transparent);
}

.capture-line.one {
  top: 28%;
  left: -3%;
  width: 44%;
  transform: rotate(-18deg);
}

.capture-line.two {
  right: -4%;
  bottom: 30%;
  width: 42%;
  transform: rotate(16deg);
}

.capture-line.three {
  bottom: 7%;
  left: 30%;
  width: 42%;
  transform: rotate(82deg);
}

.console-card {
  position: absolute;
  width: min(304px, 82vw);
  padding: 18px;
  border: 1px solid oklch(100% 0 0 / 0.76);
  border-radius: 20px;
  background: oklch(100% 0 0 / 0.74);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
  transition:
    transform 420ms var(--ease),
    opacity 260ms var(--ease-tight),
    background 260ms var(--ease-tight);
}

.console-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(18px, 1.45vw, 23px);
  line-height: 1.08;
}

.console-card.hot {
  top: 5%;
  left: 2%;
  transform: rotate(-4deg);
}

.console-card.warm {
  right: 0;
  bottom: 16%;
  transform: rotate(3deg);
}

.console-card.cool {
  left: 12%;
  bottom: 0;
  background: var(--mint);
  transform: rotate(-1deg);
}

body[data-hero-phase="attract"] .console-card.hot,
body[data-hero-phase="attract"] .console-card.warm {
  opacity: 0.62;
}

body[data-hero-phase="leak"] .console-card.hot {
  opacity: 1;
  background: oklch(100% 0 0 / 0.9);
  transform: translate(-22px, -10px) rotate(-7deg) scale(1.04);
}

body[data-hero-phase="leak"] .console-card.warm {
  opacity: 1;
  background: oklch(94% 0.035 31 / 0.9);
  transform: translate(24px, 18px) rotate(6deg) scale(1.04);
}

body[data-hero-phase="leak"] .console-card.cool {
  opacity: 0.72;
  transform: translateY(22px) rotate(-1deg) scale(0.96);
}

body[data-hero-phase="capture"] .console-card.hot,
body[data-hero-phase="capture"] .console-card.warm {
  opacity: 0.46;
  transform: translateY(-8px) scale(0.92);
}

body[data-hero-phase="capture"] .console-card.cool {
  opacity: 1;
  background: linear-gradient(135deg, var(--mint), oklch(100% 0 0 / 0.88));
  transform: translate(42px, -118px) rotate(1deg) scale(1.12);
}

.scroll-cue {
  position: absolute;
  right: -18px;
  bottom: 46%;
  display: grid;
  gap: 8px;
}

.scroll-cue span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: oklch(19% 0.04 130 / 0.18);
  transition:
    height 240ms var(--ease-tight),
    background 240ms var(--ease-tight);
}

body[data-hero-phase="attract"] .scroll-cue span:nth-child(1),
body[data-hero-phase="leak"] .scroll-cue span:nth-child(2),
body[data-hero-phase="capture"] .scroll-cue span:nth-child(3) {
  height: 28px;
  background: var(--sun);
}

.hero-proof-strip {
  position: absolute;
  right: max(24px, 5vw);
  bottom: 32px;
  left: max(24px, 5vw);
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 16px;
  width: min(640px, calc(100% - 48px));
  padding: 12px;
  border: 1px solid oklch(100% 0 0 / 0.86);
  border-radius: 22px;
  background: oklch(100% 0 0 / 0.7);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
  transform: translate3d(0, calc(var(--hero-drift, 0) * -18px), 0);
  transition: transform 120ms linear;
  will-change: transform;
}

.hero-proof-strip figure {
  height: 82px;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
}

.hero-proof-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 10% 10%;
}

.hero-proof-strip span {
  display: block;
  margin-bottom: 4px;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 900;
}

.hero-proof-strip strong {
  display: block;
  max-width: 42ch;
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.1;
}

.section-copy {
  max-width: 860px;
}

.section-copy.wide {
  width: min(1080px, 100%);
  max-width: none;
}

.problems-section {
  min-height: 112svh;
  background:
    linear-gradient(180deg, transparent 0 18%, oklch(100% 0 0 / 0.48) 18% 100%);
}

.problem-board {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: clamp(14px, 2vw, 24px);
  margin-top: clamp(38px, 7vw, 90px);
}

.problem-card {
  position: relative;
  min-height: 300px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid oklch(100% 0 0 / 0.9);
  border-radius: 26px;
  background:
    linear-gradient(140deg, oklch(100% 0 0 / 0.78), oklch(100% 0 0 / 0.5)),
    var(--paper);
  box-shadow: var(--shadow-card);
  transform: translateY(calc(var(--i) * 10px)) rotate(var(--tilt, 0deg));
  transition:
    transform 500ms var(--ease),
    background 280ms var(--ease-tight),
    border-color 280ms var(--ease-tight);
}

.problem-card:nth-child(1) {
  grid-column: span 4;
  --tilt: -1.6deg;
}

.problem-card:nth-child(2) {
  grid-column: span 3;
  --tilt: 1deg;
}

.problem-card:nth-child(3) {
  grid-column: span 3;
  --tilt: -0.8deg;
}

.problem-card:nth-child(4) {
  grid-column: 2 / span 4;
  --tilt: 1.4deg;
}

.problem-card:nth-child(5) {
  grid-column: span 5;
  --tilt: -0.8deg;
  background:
    linear-gradient(145deg, var(--mint), oklch(100% 0 0 / 0.75));
}

.problem-card:hover,
.problem-card.is-pulsed,
.problem-card.is-scroll-active {
  border-color: oklch(79% 0.15 78 / 0.72);
  transform: translateY(-8px) rotate(0deg);
}

.problem-card.is-scroll-active {
  background:
    linear-gradient(140deg, oklch(100% 0 0 / 0.92), oklch(91% 0.075 82 / 0.48)),
    var(--paper);
  box-shadow: 0 30px 90px oklch(79% 0.15 78 / 0.22);
}

.problem-card.is-scroll-active .problem-card__number {
  transform: scale(1.12);
}

.problem-card__number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--sun);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 24px;
  font-weight: 800;
}

.problem-card p {
  margin-bottom: 24px;
  font-size: 17px;
}

.problem-card strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}

.evidence-section {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(340px, 0.84fr);
  align-items: center;
  gap: clamp(36px, 7vw, 108px);
  background: linear-gradient(180deg, transparent, oklch(93% 0.04 148 / 0.42), transparent);
}

.evidence-copy {
  max-width: 760px;
}

.evidence-lab {
  position: relative;
  min-height: 640px;
}

.phone-frame {
  position: absolute;
  inset: 0 auto auto 8%;
  width: min(340px, 72vw);
  margin: 0;
  overflow: hidden;
  border: 10px solid white;
  border-radius: 42px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.phone-frame.tilted {
  transform: rotate(-3deg);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loss-receipt {
  position: absolute;
  right: 0;
  bottom: 4%;
  width: min(360px, 80vw);
  padding: 26px;
  color: var(--ink);
  border: 1px solid oklch(100% 0 0 / 0.92);
  border-radius: 22px;
  background: oklch(100% 0 0 / 0.88);
  box-shadow: var(--shadow-soft);
  transform: rotate(4deg);
}

.receipt-top {
  margin-bottom: 14px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.loss-receipt p {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px dashed oklch(19% 0.04 130 / 0.18);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}

.loss-receipt strong {
  color: var(--coral);
  white-space: nowrap;
}

.maze-section {
  min-height: 108svh;
  padding-top: clamp(80px, 10vw, 130px);
}

.maze-stage {
  display: grid;
  grid-template-columns: minmax(280px, 0.64fr) minmax(420px, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 90px);
}

.maze-copy {
  max-width: 620px;
}

.channel-maze {
  position: relative;
  min-height: min(56vw, 560px);
}

.channel-maze svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.channel-maze path {
  fill: none;
  stroke: oklch(36% 0.09 145 / 0.42);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 8 16;
  animation: dash 7s linear infinite;
}

.channel-maze path.broken {
  stroke: oklch(64% 0.16 31 / 0.66);
  stroke-width: 4;
  stroke-dasharray: 18 12 2 12;
}

.channel {
  position: absolute;
  z-index: 1;
  display: grid;
  min-width: 120px;
  min-height: 44px;
  place-items: center;
  padding: 0 16px;
  border: 1px solid oklch(100% 0 0 / 0.9);
  border-radius: 999px;
  background: oklch(100% 0 0 / 0.76);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  box-shadow: var(--shadow-card);
}

.channel.client {
  top: 46%;
  left: 50%;
  background: var(--sun);
  transform: translate(-50%, -50%) scale(1.08);
}

.channel.instagram { top: 8%; left: 12%; }
.channel.web { top: 8%; right: 10%; }
.channel.linktree { top: 47%; left: 0; }
.channel.reservas { top: 45%; right: 0; }
.channel.eventos { bottom: 8%; left: 16%; }
.channel.bonos { right: 16%; bottom: 8%; }
.channel.crm {
  bottom: 0;
  left: 50%;
  color: white;
  background: var(--coral);
  transform: translateX(-50%);
}

.cost-section {
  min-height: auto;
  background: var(--paper);
}

.cost-question {
  width: min(1040px, 100%);
}

.cost-question p {
  color: var(--coral);
  font-weight: 900;
}

.cost-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: clamp(32px, 5vw, 62px);
}

.cost-panel {
  min-height: 420px;
  padding: clamp(26px, 3vw, 44px);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}

.cost-panel span {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.cost-panel.before {
  color: var(--ink);
  background: linear-gradient(145deg, var(--petal), oklch(100% 0 0 / 0.86));
}

.cost-panel.after {
  color: var(--ink);
  background: linear-gradient(135deg, var(--sun-soft), var(--mint));
}

.cost-panel ul {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.cost-panel li {
  position: relative;
  padding-left: 24px;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.25;
}

.cost-panel li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}

.heat-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(340px, 0.9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 90px);
  background: linear-gradient(180deg, transparent, oklch(94% 0.035 31 / 0.52), transparent);
}

.heat-copy {
  max-width: 700px;
}

.heat-browser {
  overflow: hidden;
  border: 1px solid oklch(100% 0 0 / 0.94);
  border-radius: 26px;
  background: white;
  box-shadow: var(--shadow-soft);
  transform: rotate(1deg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-bar span:nth-child(1) { background: var(--coral); }
.browser-bar span:nth-child(2) { background: var(--sun); }
.browser-bar span:nth-child(3) { background: var(--leaf); }

.browser-bar strong {
  margin-left: 8px;
  color: var(--muted);
  font-size: 13px;
}

.heat-page {
  position: relative;
  display: grid;
  min-height: 410px;
  grid-template-columns: 1fr 0.52fr;
  grid-template-rows: 0.9fr 0.36fr 0.7fr;
  gap: 18px;
  padding: 24px;
  background: var(--paper);
}

.site-hero,
.site-cta,
.site-menu,
.site-copy {
  border-radius: 12px;
}

.site-hero {
  grid-column: 1 / 2;
  background:
    linear-gradient(135deg, var(--petal), oklch(86% 0.11 70));
}

.site-cta {
  align-self: start;
  height: 54px;
  background: var(--sun);
}

.site-menu {
  grid-column: 1 / 3;
  background: linear-gradient(90deg, var(--leaf), oklch(51% 0.1 146));
}

.site-copy {
  grid-column: 1 / 3;
  background:
    repeating-linear-gradient(
      180deg,
      oklch(19% 0.04 130 / 0.2) 0 8px,
      transparent 8px 20px
    );
}

.heat {
  position: absolute;
  border-radius: 999px;
  filter: blur(16px);
  mix-blend-mode: multiply;
  animation: heatPulse 3.4s var(--ease) infinite;
}

.heat-one {
  top: 28%;
  left: 42%;
  width: 160px;
  height: 110px;
  background: radial-gradient(circle, var(--coral), oklch(79% 0.15 78 / 0.38), transparent 72%);
}

.heat-two {
  right: 12%;
  bottom: 28%;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, var(--sun), oklch(64% 0.16 31 / 0.28), transparent 72%);
  animation-delay: 600ms;
}

.heat-three {
  bottom: 18%;
  left: 26%;
  width: 120px;
  height: 86px;
  background: radial-gradient(circle, var(--leaf-soft), transparent 70%);
  animation-delay: 1.1s;
}

.heat-footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.heat-footer span {
  display: grid;
  min-height: 54px;
  place-items: center;
  color: var(--muted);
  border-right: 1px solid var(--line);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.system-section {
  min-height: 90svh;
}

.system-title {
  max-width: 940px;
}

.system-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(36px, 6vw, 80px);
  overflow: hidden;
  border: 1px solid oklch(100% 0 0 / 0.94);
  border-radius: 28px;
  background: var(--line);
  box-shadow: var(--shadow-soft);
}

.system-flow article {
  min-height: 280px;
  padding: clamp(24px, 3vw, 38px);
  background: oklch(100% 0 0 / 0.76);
}

.system-flow svg {
  margin-bottom: 34px;
  color: var(--leaf);
}

.system-flow strong {
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
}

.system-flow span {
  color: var(--muted);
  line-height: 1.45;
}

.proof-section {
  display: grid;
  min-height: auto;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(34px, 7vw, 110px);
  background: var(--paper);
}

.profile-proof {
  margin: 0;
  overflow: hidden;
  border: 10px solid white;
  border-radius: 38px;
  box-shadow: var(--shadow-soft);
  transform: rotate(-2deg);
}

.profile-proof img {
  width: 100%;
  height: min(70vw, 620px);
  object-fit: cover;
  object-position: top center;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.source-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--mint);
  font-size: 13px;
  font-weight: 900;
}

.close-section {
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at center, oklch(91% 0.075 82 / 0.64), transparent 32rem),
    var(--canvas);
}

.close-section::before {
  content: "";
  position: absolute;
  width: min(72vw, 920px);
  aspect-ratio: 1.55;
  border: 1px solid oklch(36% 0.09 145 / 0.12);
  border-radius: 50%;
  background:
    radial-gradient(circle at 58% 50%, oklch(79% 0.15 78 / 0.14), transparent 22%),
    radial-gradient(circle at 24% 38%, oklch(64% 0.16 31 / 0.12), transparent 28%);
  transform: rotate(12deg);
}

.close-inner {
  position: relative;
  width: min(1040px, 100%);
}

.close-inner h2 {
  margin-right: auto;
  margin-left: auto;
}

.close-inner span {
  display: block;
  width: min(780px, 100%);
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.5;
}

.close-inner span strong {
  color: var(--ink);
}

.close-actions {
  justify-content: center;
}

.scene [data-reveal],
.reveal-ready [data-reveal] {
  opacity: 1;
}

@keyframes dash {
  to {
    stroke-dashoffset: -140;
  }
}

@keyframes heatPulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-console {
    animation: heroEnter 820ms var(--ease) both;
  }

  .hero-console {
    animation-delay: 120ms;
  }

  .problem-card {
    transition-delay: calc(var(--i) * 30ms);
  }
}

@keyframes heroEnter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topbar nav {
    display: none;
  }

  .hero,
  .evidence-section,
  .heat-section,
  .maze-stage,
  .proof-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 0;
  }

  .hero-stage {
    position: relative;
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
    padding: 118px 24px 180px;
    overflow: visible;
  }

  .hero-stage::after {
    display: none;
  }

  .hero-copy,
  .hero-console {
    transform: none;
  }

  .hero-console {
    min-height: 560px;
  }

  .hero-proof-strip {
    right: 24px;
    left: 24px;
  }

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

  .problem-card,
  .problem-card:nth-child(1),
  .problem-card:nth-child(2),
  .problem-card:nth-child(3),
  .problem-card:nth-child(4),
  .problem-card:nth-child(5) {
    grid-column: auto;
    transform: none;
  }

  .system-flow,
  .cost-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  body {
    background:
      radial-gradient(circle at 80% 0%, oklch(91% 0.075 82 / 0.76), transparent 19rem),
      linear-gradient(180deg, var(--canvas) 0%, var(--paper) 100%);
  }

  .scene {
    min-height: auto;
    padding: 100px 18px;
  }

  .hero.scene {
    padding: 0;
  }

  .hero-stage {
    padding: 118px 18px 180px;
  }

  .topbar {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 58px;
    padding: 8px;
  }

  .wordmark {
    padding-left: 8px;
  }

  .wordmark small {
    display: none;
  }

  .topbar-cta {
    min-height: 42px;
    padding: 0 12px;
  }

  .control-toggle {
    top: auto;
    bottom: 18px;
    left: 18px;
  }

  .side-control {
    top: 78px;
    bottom: 16px;
    left: 12px;
    width: calc(100% - 24px);
    max-height: none;
  }

  h1 {
    font-size: clamp(40px, 11.7vw, 56px);
    line-height: 0.98;
  }

  h2 {
    font-size: clamp(33px, 9vw, 47px);
    line-height: 1;
  }

  p {
    font-size: 17px;
  }

  .hero {
    gap: 30px;
    padding-top: 118px;
    padding-bottom: 180px;
  }

  .ambient-film {
    display: none;
  }

  .hero-console {
    min-height: 520px;
  }

  .loss-lens {
    width: 310px;
    min-width: 0;
  }

  .loss-lens__ring {
    transform: scale(calc(0.78 + var(--hero-drift, 0) * 0.34));
  }

  .loss-lens__center {
    width: 134px;
    height: 134px;
  }

  .loss-lens__center strong {
    margin-top: -32px;
    font-size: 18px;
  }

  .console-card.hot {
    top: 0;
    left: 0;
  }

  .console-card.warm {
    right: 0;
    bottom: 17%;
  }

  .console-card.cool {
    left: 0;
    bottom: 0;
  }

  .hero-proof-strip {
    grid-template-columns: 70px 1fr;
    bottom: 18px;
  }

  .hero-proof-strip figure {
    height: 70px;
  }

  .problem-board,
  .system-flow,
  .cost-grid {
    grid-template-columns: 1fr;
  }

  .problem-card {
    min-height: auto;
  }

  .evidence-lab {
    min-height: 620px;
  }

  .phone-frame {
    left: 50%;
    transform: translateX(-50%) rotate(-3deg);
  }

  .phone-frame.tilted {
    transform: translateX(-50%) rotate(-3deg);
  }

  .loss-receipt {
    right: 50%;
    bottom: 0;
    transform: translateX(50%) rotate(3deg);
  }

  .maze-stage {
    gap: 20px;
  }

  .channel-maze {
    min-height: 520px;
  }

  .channel {
    min-width: 100px;
    font-size: 12px;
  }

  .channel.instagram { top: 4%; left: 2%; }
  .channel.web { top: 4%; right: 0; }
  .channel.linktree { top: 47%; left: 0; }
  .channel.reservas { top: 45%; right: 0; }
  .channel.eventos { bottom: 8%; left: 2%; }
  .channel.bonos { right: 2%; bottom: 8%; }

  .cost-panel {
    min-height: auto;
  }

  .heat-browser {
    transform: none;
  }

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

  .profile-proof img {
    height: 500px;
  }
}

@media (max-width: 420px) {
  .button {
    width: 100%;
  }

  .topbar-cta {
    font-size: 0;
    width: 42px;
    padding: 0;
  }

  .topbar-cta svg {
    margin: 0;
  }

  .hero-proof-strip {
    align-items: start;
  }

  .hero-proof-strip strong {
    font-size: 15px;
  }

  .console-card {
    width: min(292px, 88vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  #signal-canvas {
    display: none;
  }
}
