@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Patrick Hand";
  src: url("assets/fonts/patrick-hand-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --night: #050b14;
  --ink: #07111f;
  --ink-soft: #0b1928;
  --foam: #f7fbff;
  --mist: #9fb4c8;
  --cyan: #67e8f9;
  --cyan-soft: rgba(103, 232, 249, 0.14);
  --coral: #ff665c;
  --line: rgba(247, 251, 255, 0.14);
  --panel: rgba(9, 22, 36, 0.74);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius-large: 30px;
  --radius-medium: 20px;
  --shell: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--foam);
  background:
    radial-gradient(circle at 18% 28%, rgba(103, 232, 249, 0.08), transparent 28rem),
    radial-gradient(circle at 82% 62%, rgba(255, 102, 92, 0.07), transparent 26rem),
    var(--night);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  content: "";
  opacity: 0.11;
  background: url("assets/ui/dream-noise-256.png") repeat;
  mix-blend-mode: soft-light;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 14px;
  color: var(--night);
  background: var(--cyan);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1180px, calc(100vw - 36px));
  min-height: 62px;
  padding: 8px 10px 8px 12px;
  border: 1px solid rgba(247, 251, 255, 0.14);
  border-radius: 999px;
  background: rgba(5, 11, 20, 0.66);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 2px solid rgba(103, 232, 249, 0.65);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(103, 232, 249, 0.2);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(247, 251, 255, 0.74);
  font-size: 0.86rem;
}

.desktop-nav a,
.nav-cta {
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.desktop-nav a:hover {
  color: var(--foam);
}

.nav-cta {
  justify-self: end;
  padding: 10px 18px;
  color: var(--night);
  background: var(--foam);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--cyan);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
}

.hero-media,
.hero-shade,
.hero-glow {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -4;
  background: var(--night);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-mobile {
  display: none;
}

.hero-shade {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(2, 8, 18, 0.94) 0%, rgba(2, 8, 18, 0.7) 34%, rgba(2, 8, 18, 0.14) 67%, rgba(2, 8, 18, 0.5) 100%),
    linear-gradient(0deg, var(--night) 0%, transparent 28%, rgba(2, 8, 18, 0.1) 100%);
}

.hero-glow {
  z-index: -2;
  pointer-events: none;
}

.hero-glow-cyan {
  width: 28rem;
  height: 28rem;
  top: 38%;
  left: -12rem;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.18), transparent 66%);
  animation: drift 9s ease-in-out infinite alternate;
}

.hero-glow-coral {
  width: 22rem;
  height: 22rem;
  inset: auto -8rem 8% auto;
  background: radial-gradient(circle, rgba(255, 102, 92, 0.16), transparent 68%);
  animation: drift 12s ease-in-out 1s infinite alternate-reverse;
}

@keyframes drift {
  to {
    transform: translate3d(2.2rem, -1.4rem, 0) scale(1.08);
  }
}

.hero-content {
  align-self: end;
  padding-top: 150px;
  padding-bottom: clamp(100px, 13vh, 150px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-family: "Patrick Hand", cursive;
  font-size: clamp(1.06rem, 1.6vw, 1.3rem);
  letter-spacing: 0.045em;
}

.hero h1 {
  max-width: 7ch;
  margin: 0;
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.075em;
  text-shadow: 0 8px 42px rgba(0, 0, 0, 0.38);
}

.hero-statement {
  max-width: 18ch;
  margin: 30px 0 14px;
  font-size: clamp(2rem, 4.4vw, 4.2rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.05em;
  text-wrap: pretty;
}

.hero-copy {
  max-width: 560px;
  margin: 0;
  color: rgba(247, 251, 255, 0.72);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.hero-actions,
.mixer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: -0.015em;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--night);
  background: var(--cyan);
}

.button-primary:hover {
  background: var(--foam);
}

.button-ghost {
  color: var(--foam);
  border-color: rgba(247, 251, 255, 0.34);
  background: rgba(7, 17, 31, 0.42);
  backdrop-filter: blur(8px);
}

.button-ghost:hover {
  border-color: var(--cyan);
  background: rgba(103, 232, 249, 0.08);
}

.button-coral {
  margin-top: 34px;
  color: var(--night);
  background: var(--coral);
}

.proof-pill {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: max-content;
  margin-top: 34px;
  padding: 9px 15px 10px;
  color: rgba(247, 251, 255, 0.72);
  border: 1px solid rgba(247, 251, 255, 0.14);
  border-radius: 999px;
  background: rgba(5, 11, 20, 0.5);
  font-size: 0.86rem;
  backdrop-filter: blur(12px);
}

.proof-number {
  color: var(--foam);
  font-size: 1.2rem;
  font-weight: 700;
}

.sound-toggle {
  position: absolute;
  right: max(28px, calc((100vw - 1180px) / 2));
  bottom: 54px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  color: rgba(247, 251, 255, 0.8);
  border: 1px solid rgba(247, 251, 255, 0.18);
  border-radius: 999px;
  background: rgba(5, 11, 20, 0.54);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.sound-dot {
  width: 8px;
  height: 8px;
  background: var(--coral);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 102, 92, 0.7);
}

.sound-toggle[aria-pressed="true"] .sound-dot {
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(103, 232, 249, 0.85);
}

.scroll-cue {
  position: absolute;
  bottom: 50px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: rgba(247, 251, 255, 0.5);
  font-size: 0.76rem;
  transform: translateX(-50%);
}

.scroll-line {
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--cyan), transparent);
}

.wave-divider {
  height: 72px;
  margin-top: -18px;
  background: url("assets/ui/wave-divider.svg") center / 1600px 120px no-repeat;
  opacity: 0.62;
}

.section {
  position: relative;
  padding: clamp(92px, 11vw, 150px) 0;
}

.section h2,
.ritual-section h2 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(2.7rem, 5.6vw, 5.4rem);
  font-weight: 600;
  line-height: 1.01;
  letter-spacing: -0.06em;
  text-wrap: pretty;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 54px;
}

.section-heading-row {
  display: grid;
  grid-template-columns: 1fr 320px;
  align-items: end;
  gap: 56px;
  max-width: none;
}

.heading-sidecopy,
.section-intro {
  margin: 0;
  color: var(--mist);
  font-size: 1.05rem;
}

.origin-section {
  padding-top: 110px;
}

.origin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(40px, 7vw, 88px);
}

.receipt-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.24);
  border-radius: var(--radius-large);
  background: var(--ink);
  box-shadow: var(--shadow), 0 0 70px rgba(103, 232, 249, 0.08);
  transform: rotate(-1.2deg);
  transition: transform 260ms ease, border-color 260ms ease;
}

.receipt-frame:hover {
  border-color: rgba(103, 232, 249, 0.65);
  transform: rotate(0) translateY(-4px);
}

.receipt-frame img {
  width: 100%;
  height: auto;
}

.receipt-link {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 9px 13px;
  color: var(--night);
  background: var(--cyan);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.origin-copy > p:not(.eyebrow):not(.source-note) {
  margin: 22px 0 0;
  color: rgba(247, 251, 255, 0.72);
  font-size: 1.05rem;
}

.origin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 34px 0 0;
}

.origin-stats div {
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(247, 251, 255, 0.03);
}

.origin-stats dt {
  color: var(--cyan);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.15;
}

.origin-stats dd {
  margin: 4px 0 0;
  color: var(--mist);
  font-size: 0.76rem;
}

.source-note {
  margin: 24px 0 0;
  padding-left: 14px;
  color: rgba(159, 180, 200, 0.7);
  border-left: 2px solid rgba(255, 102, 92, 0.55);
  font-size: 0.78rem;
}

.remix-section {
  overflow: hidden;
  border-block: 1px solid rgba(247, 251, 255, 0.08);
  background:
    linear-gradient(rgba(7, 17, 31, 0.94), rgba(7, 17, 31, 0.94)),
    url("assets/ui/alarm-grid.svg") center / 480px;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 65px;
  right: 8%;
  left: 8%;
  z-index: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--cyan), var(--coral), transparent);
  opacity: 0.46;
}

.time-card {
  position: relative;
  z-index: 1;
  min-height: 300px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: rgba(5, 11, 20, 0.78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.time-card-active {
  border-color: rgba(103, 232, 249, 0.5);
  background: linear-gradient(160deg, rgba(103, 232, 249, 0.12), rgba(5, 11, 20, 0.82) 62%);
  transform: translateY(-14px);
}

.time {
  display: block;
  color: var(--cyan);
  font-family: "Patrick Hand", cursive;
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: 1;
}

.time-card-active .time {
  color: var(--coral);
}

.time-card h3 {
  margin: 86px 0 8px;
  font-size: 1.36rem;
  letter-spacing: -0.035em;
}

.time-card p {
  margin: 0;
  color: var(--mist);
}

.remix-closer {
  margin: 54px 0 0;
  color: var(--foam);
  font-family: "Patrick Hand", cursive;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  text-align: center;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.scene-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: linear-gradient(165deg, rgba(12, 28, 44, 0.78), rgba(5, 11, 20, 0.88));
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.18);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.scene-card:hover {
  border-color: rgba(103, 232, 249, 0.4);
  box-shadow: 0 22px 72px rgba(0, 0, 0, 0.28);
  transform: translateY(-6px);
}

.scene-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.scene-image-wrap::after {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  content: "";
  background: linear-gradient(transparent, rgba(5, 11, 20, 0.55));
}

.scene-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scene-card:hover img {
  transform: scale(1.025);
}

.scene-number {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--night);
  background: var(--foam);
  border-radius: 50%;
  font-family: "Patrick Hand", cursive;
  font-size: 1.05rem;
}

.scene-copy {
  padding: 24px 26px 26px;
}

.scene-copy h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.04em;
}

.scene-copy p {
  margin: 8px 0 0;
  color: rgba(247, 251, 255, 0.82);
  font-size: 1.03rem;
}

.scene-copy span {
  display: block;
  margin-top: 9px;
  color: var(--mist);
  font-family: "Patrick Hand", cursive;
  font-size: 1.06rem;
}

.mixer-section {
  border-block: 1px solid rgba(247, 251, 255, 0.08);
  background:
    radial-gradient(circle at 78% 48%, rgba(103, 232, 249, 0.11), transparent 31rem),
    var(--ink);
}

.mixer-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(42px, 7vw, 88px);
}

.mixer-controls h2 {
  max-width: none;
  font-size: clamp(2.55rem, 3.8vw, 3.45rem);
}

.mixer-controls > p:not(.eyebrow):not(.privacy-note) {
  max-width: 500px;
  margin: 22px 0 32px;
  color: var(--mist);
  font-size: 1.05rem;
}

.mixer-controls label {
  display: block;
  margin-bottom: 9px;
  color: rgba(247, 251, 255, 0.74);
  font-size: 0.82rem;
  font-weight: 600;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  position: absolute;
  top: 50%;
  right: 18px;
  pointer-events: none;
  content: "↓";
  color: var(--cyan);
  transform: translateY(-54%);
}

select {
  width: 100%;
  height: 54px;
  padding: 0 48px 0 16px;
  color: var(--foam);
  border: 1px solid rgba(247, 251, 255, 0.18);
  border-radius: 14px;
  appearance: none;
  background: var(--night);
}

select option {
  color: var(--foam);
  background: var(--night);
}

.privacy-note {
  margin: 19px 0 0;
  color: rgba(159, 180, 200, 0.7);
  font-size: 0.78rem;
}

.dream-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(103, 232, 249, 0.44);
  border-radius: var(--radius-large);
  background: var(--night);
  box-shadow: var(--shadow), 0 0 80px rgba(103, 232, 249, 0.08);
}

.dream-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 180ms ease, transform 480ms ease;
}

.dream-card.is-changing > img {
  opacity: 0.35;
  transform: scale(1.035);
}

.dream-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 8, 18, 0.96) 0%, rgba(2, 8, 18, 0.1) 66%);
}

.dream-card-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: clamp(22px, 4vw, 42px);
}

.dream-card-copy span {
  color: var(--cyan);
  font-family: "Patrick Hand", cursive;
  font-size: 1.08rem;
}

.dream-card-copy strong {
  display: block;
  max-width: 22ch;
  margin-top: 5px;
  font-size: clamp(1.55rem, 3vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-wrap: pretty;
}

.dream-card-copy p {
  margin: 7px 0 0;
  color: rgba(247, 251, 255, 0.68);
}

.dream-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 15px;
}

.text-button {
  padding: 4px 0;
  color: var(--cyan);
  border: 0;
  border-bottom: 1px solid rgba(103, 232, 249, 0.36);
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
}

.text-button:disabled {
  color: rgba(159, 180, 200, 0.38);
  border-color: transparent;
  cursor: not-allowed;
}

.kit-section {
  overflow: hidden;
}

.kit-section::before {
  position: absolute;
  top: 70px;
  right: -100px;
  width: 360px;
  height: 360px;
  content: "";
  border: 1px solid rgba(103, 232, 249, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(103, 232, 249, 0.025), 0 0 0 76px rgba(103, 232, 249, 0.018);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.download-grid a {
  position: relative;
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: linear-gradient(145deg, rgba(13, 31, 48, 0.88), rgba(7, 17, 31, 0.72));
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.download-grid a::before {
  position: absolute;
  top: -55px;
  right: -55px;
  width: 150px;
  height: 150px;
  content: "";
  background: radial-gradient(circle, rgba(103, 232, 249, 0.18), transparent 67%);
}

.download-grid a:hover {
  border-color: rgba(103, 232, 249, 0.5);
  background: linear-gradient(145deg, rgba(16, 42, 61, 0.94), rgba(7, 17, 31, 0.78));
  transform: translateY(-5px);
}

.download-type {
  position: absolute;
  top: 19px;
  left: 20px;
  color: var(--cyan);
  font-family: "Patrick Hand", cursive;
}

.download-grid strong {
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}

.download-grid small {
  margin-top: 4px;
  color: var(--mist);
}

.download-arrow {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--night);
  background: var(--foam);
  border-radius: 50%;
}

.ritual-section {
  position: relative;
  padding: clamp(100px, 13vw, 180px) 0;
  overflow: hidden;
  border-block: 1px solid rgba(247, 251, 255, 0.08);
  background:
    radial-gradient(circle at 50% 100%, rgba(103, 232, 249, 0.14), transparent 40rem),
    linear-gradient(180deg, #07111f, #040912);
  text-align: center;
}

.ritual-inner {
  position: relative;
  z-index: 1;
}

.ritual-section h2 {
  max-width: none;
  font-size: clamp(4rem, 11vw, 9rem);
}

.ritual-inner > p:not(.eyebrow) {
  max-width: 650px;
  margin: 22px auto 0;
  color: var(--mist);
  font-size: 1.05rem;
}

.ritual-lines {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

.ritual-lines button {
  padding: 11px 16px;
  color: rgba(247, 251, 255, 0.8);
  border: 1px solid rgba(247, 251, 255, 0.14);
  border-radius: 999px;
  background: rgba(247, 251, 255, 0.035);
  cursor: pointer;
  font-family: "Patrick Hand", cursive;
  font-size: 1.05rem;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.ritual-lines button:hover {
  color: var(--cyan);
  border-color: rgba(103, 232, 249, 0.5);
  transform: translateY(-2px) rotate(-1deg);
}

.site-footer {
  padding: 58px 0 32px;
  background: #030810;
}

.footer-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(247, 251, 255, 0.1);
}

.footer-brand img {
  width: 48px;
  height: 48px;
}

.footer-main > div > p {
  margin: 14px 0 0;
  color: var(--mist);
}

.footer-slogan {
  margin: 0;
  color: var(--cyan);
  font-family: "Patrick Hand", cursive;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
}

.footer-legal {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 34px;
  padding-top: 28px;
  color: rgba(159, 180, 200, 0.56);
  font-size: 0.74rem;
}

.footer-legal a {
  color: rgba(247, 251, 255, 0.72);
}

.footer-legal p {
  max-width: 820px;
  margin: 0;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  max-width: min(360px, calc(100vw - 48px));
  padding: 13px 17px;
  color: var(--night);
  background: var(--cyan);
  border-radius: 999px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
  font-size: 0.86rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .origin-grid,
  .mixer-layout {
    grid-template-columns: 1fr;
  }

  .origin-copy,
  .mixer-controls {
    max-width: 720px;
  }

  .section-heading-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .heading-sidecopy {
    max-width: 620px;
  }

  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  :root {
    --shell: min(100% - 32px, 620px);
    --radius-large: 23px;
  }

  body {
    line-height: 1.55;
  }

  .site-header {
    top: 12px;
    width: calc(100vw - 24px);
    min-height: 56px;
    padding: 6px 7px 6px 9px;
  }

  .brand {
    gap: 8px;
    font-size: 0.9rem;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .nav-cta {
    padding: 9px 14px;
    font-size: 0.78rem;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-video-desktop {
    display: none;
  }

  .hero-video-mobile {
    display: block;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(2, 8, 18, 0.96) 0%, rgba(2, 8, 18, 0.58) 48%, rgba(2, 8, 18, 0.16) 78%, rgba(2, 8, 18, 0.35) 100%),
      linear-gradient(90deg, rgba(2, 8, 18, 0.4), transparent 50%);
  }

  .hero-content {
    padding-top: 118px;
    padding-bottom: 116px;
  }

  .hero h1 {
    font-size: clamp(4.2rem, 23vw, 7rem);
  }

  .hero-statement {
    max-width: 15ch;
    margin-top: 24px;
    font-size: clamp(2.15rem, 10vw, 3.4rem);
  }

  .hero-copy {
    max-width: 34ch;
  }

  .hero-actions {
    gap: 9px;
  }

  .button {
    min-height: 48px;
    padding: 0 18px;
    font-size: 0.9rem;
  }

  .proof-pill {
    margin-top: 24px;
  }

  .sound-toggle {
    right: 16px;
    bottom: 24px;
  }

  .scroll-cue {
    display: none;
  }

  .section {
    padding: 90px 0;
  }

  .section h2,
  .ritual-section h2 {
    font-size: clamp(2.55rem, 13vw, 4.5rem);
  }

  .origin-section {
    padding-top: 76px;
  }

  .receipt-frame {
    transform: none;
  }

  .receipt-link {
    right: 11px;
    bottom: 11px;
    padding: 7px 10px;
    font-size: 0.7rem;
  }

  .origin-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .origin-stats div {
    padding-inline: 9px;
  }

  .origin-stats dt {
    font-size: 1rem;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    top: 8%;
    bottom: 8%;
    left: 44px;
    width: 1px;
    height: auto;
    background: linear-gradient(transparent, var(--cyan), var(--coral), transparent);
  }

  .time-card,
  .time-card-active {
    display: grid;
    grid-template-columns: 98px 1fr;
    align-items: center;
    min-height: 178px;
    padding: 22px;
    transform: none;
  }

  .time {
    font-size: 2.8rem;
  }

  .time-card h3 {
    margin: 0 0 6px;
  }

  .scene-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .scene-copy {
    padding: 20px;
  }

  .mixer-controls h2 {
    max-width: 13ch;
  }

  .mixer-buttons .button {
    flex: 1 1 auto;
  }

  .dream-card-copy {
    padding: 18px;
  }

  .dream-card-copy span {
    font-size: 0.9rem;
  }

  .dream-card-copy strong {
    font-size: clamp(1.24rem, 6.5vw, 2rem);
  }

  .dream-card-copy p {
    display: none;
  }

  .download-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .download-grid a {
    min-height: 188px;
    padding: 17px;
  }

  .download-arrow {
    right: 13px;
    bottom: 13px;
  }

  .ritual-section {
    padding: 110px 0;
  }

  .ritual-section h2 {
    font-size: clamp(4rem, 20vw, 6rem);
  }

  .footer-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-legal {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 430px) {
  .hero-actions .button {
    flex: 1 1 100%;
  }

  .proof-pill {
    width: fit-content;
    max-width: 100%;
  }

  .origin-stats {
    gap: 6px;
  }

  .origin-stats dd {
    font-size: 0.67rem;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .download-grid a {
    min-height: 155px;
  }
}

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* RAVECAT V2: subject-first layout and natural scene cards */
.heading-line {
  display: block;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 470px) 1fr;
  align-items: end;
  padding-bottom: clamp(72px, 9vh, 104px);
}

.hero-panel {
  width: min(100%, 470px);
  padding: 22px 24px 24px;
  border-left: 2px solid rgba(103, 232, 249, 0.72);
  border-radius: 0 24px 24px 0;
  background: linear-gradient(90deg, rgba(2, 8, 18, 0.78), rgba(2, 8, 18, 0.34) 72%, transparent);
  backdrop-filter: blur(3px);
}

.hero h1 {
  max-width: none;
  font-size: clamp(4.6rem, 7.4vw, 7.4rem);
  line-height: 0.86;
}

.hero-statement {
  max-width: none;
  margin-top: 22px;
  font-size: clamp(1.8rem, 2.55vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero-copy {
  max-width: 38ch;
}

.origin-grid {
  grid-template-columns: minmax(0, 1.28fr) minmax(340px, 0.72fr);
  align-items: start;
  gap: clamp(42px, 6vw, 76px);
}

.origin-visual {
  padding-top: 8px;
}

.origin-copy h2 {
  max-width: none;
  font-size: clamp(3rem, 4.35vw, 4.55rem);
}

.origin-copy > p:not(.eyebrow):not(.source-note) {
  max-width: 44ch;
}

.remix-section .section-heading {
  max-width: none;
}

.remix-section .section-heading h2 {
  max-width: none;
  font-size: clamp(3.4rem, 5vw, 5rem);
  line-height: 1.04;
}

.interruptions-section .section-heading-row {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: end;
}

.interruptions-section h2 {
  max-width: 12ch;
}

.scene-card {
  background: #081321;
}

.scene-image-wrap::after {
  height: 24%;
  background: linear-gradient(transparent, rgba(5, 11, 20, 0.35));
}

.mixer-layout {
  grid-template-columns: minmax(390px, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(44px, 6vw, 72px);
}

.mixer-controls h2 {
  max-width: none;
  font-size: clamp(2.7rem, 3.45vw, 3.55rem);
}

.kit-section .section-heading {
  max-width: none;
}

.kit-title {
  max-width: none !important;
  font-size: clamp(3.5rem, 5.1vw, 5rem) !important;
  line-height: 1.04 !important;
}

.kit-section .section-intro {
  max-width: 880px;
  margin-top: 22px;
}

.download-grid a {
  display: block;
  min-height: 286px;
  padding: 10px;
}

.download-grid a::before {
  display: none;
}

.download-preview {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(247, 251, 255, 0.1);
  border-radius: 14px;
  background: #07111f;
}

.download-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

.download-grid a:hover .download-preview img {
  transform: scale(1.035);
}

.download-type {
  top: 20px;
  left: 20px;
  z-index: 2;
  padding: 4px 9px;
  color: var(--foam);
  border: 1px solid rgba(247, 251, 255, 0.18);
  border-radius: 999px;
  background: rgba(5, 11, 20, 0.78);
  backdrop-filter: blur(8px);
}

.download-copy {
  display: flex;
  min-height: 82px;
  flex-direction: column;
  justify-content: center;
  padding: 14px 48px 5px 7px;
}

.download-grid strong,
.download-grid small {
  display: block;
}

.download-arrow {
  right: 18px;
  bottom: 18px;
}

@media (max-width: 980px) {
  .hero-content {
    grid-template-columns: minmax(0, 450px) 1fr;
  }

  .origin-grid,
  .mixer-layout {
    grid-template-columns: 1fr;
  }

  .origin-copy {
    max-width: 760px;
  }

  .mixer-controls {
    max-width: 620px;
  }
}

@media (max-width: 720px) {
  .hero-content {
    display: block;
    padding-bottom: 92px;
  }

  .hero-panel {
    width: 100%;
    padding: 18px 18px 20px;
    background: linear-gradient(90deg, rgba(2, 8, 18, 0.82), rgba(2, 8, 18, 0.38) 82%, transparent);
  }

  .hero h1 {
    font-size: clamp(4rem, 20vw, 5.8rem);
  }

  .hero-statement {
    font-size: clamp(1.7rem, 7.6vw, 2.35rem);
  }

  .origin-copy h2,
  .remix-section .section-heading h2,
  .kit-title {
    font-size: clamp(2.55rem, 12vw, 4rem) !important;
  }

  .mixer-controls h2 {
    max-width: none;
    font-size: clamp(2.4rem, 11vw, 3.45rem);
  }

  .download-grid a {
    min-height: 244px;
  }
}

@media (max-width: 430px) {
  .heading-line {
    text-wrap: pretty;
  }

  .download-grid a {
    min-height: 250px;
  }
}
/* RAVECAT V2.1: semantic line polish and mobile subject-first split */
@media (min-width: 721px) {
  .origin-copy h2 {
    font-size: clamp(2.85rem, 3vw, 3.05rem);
    line-height: 1.06;
  }

  .origin-copy h2 .heading-line,
  .remix-section h2 .heading-line,
  .kit-title .heading-line {
    white-space: nowrap;
  }

  .remix-section .section-heading h2 {
    font-size: clamp(3.25rem, 3.7vw, 3.7rem);
    line-height: 1.08;
  }
}

@media (max-width: 720px) {
  .hero {
    display: block;
    min-height: auto;
    background: var(--night);
  }

  .hero-media,
  .hero-shade,
  .hero-glow {
    top: 0;
    bottom: auto;
    height: 54svh;
  }

  .hero-video {
    object-position: center 46%;
  }

  .hero-shade {
    background: linear-gradient(0deg, var(--night) 0%, rgba(2, 8, 18, 0.12) 34%, rgba(2, 8, 18, 0.08) 100%);
  }

  .hero-content {
    padding-top: calc(54svh + 26px);
    padding-bottom: 74px;
  }

  .hero-panel {
    padding: 17px 18px 20px;
    background: linear-gradient(90deg, rgba(7, 17, 31, 0.98), rgba(7, 17, 31, 0.62) 86%, transparent);
    backdrop-filter: none;
  }

  .hero h1 {
    font-size: clamp(3.55rem, 17vw, 4.65rem);
  }

  .hero-statement {
    font-size: clamp(1.48rem, 6.6vw, 1.95rem);
  }

  .sound-toggle {
    top: calc(54svh - 54px);
    right: 16px;
    bottom: auto;
  }

  .origin-copy h2,
  .kit-title {
    font-size: clamp(2.2rem, 9.5vw, 3rem) !important;
  }

  .remix-section .section-heading h2 {
    font-size: clamp(2rem, 8.9vw, 2.8rem) !important;
    line-height: 1.1;
  }

  .origin-copy h2 .heading-line,
  .remix-section h2 .heading-line,
  .kit-title .heading-line {
    white-space: normal;
  }
}
/* RAVECAT V2.2: preserve sentence units in the kit heading */
.kit-pair {
  display: flex;
  gap: 0.22em;
}

@media (max-width: 720px) {
  .kit-pair,
  .kit-pair > span {
    display: block;
  }
}
/* RAVECAT V2.3: restore single-column interruption heading on narrow screens */
@media (max-width: 980px) {
  .interruptions-section .section-heading-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .interruptions-section h2 {
    max-width: 12ch;
  }

  .interruptions-section .heading-sidecopy {
    max-width: 620px;
  }
}
/* RAVECAT V2.4: the cats own the hero; all copy lives below the film */
.hero {
  --hero-visual-height: max(620px, 76svh);
  display: block;
  min-height: auto;
  background: var(--night);
}

.hero-media,
.hero-shade {
  top: 0;
  bottom: auto;
  height: var(--hero-visual-height);
}

.hero-video {
  object-position: center center;
}

.hero-shade {
  background: linear-gradient(0deg, var(--night) 0%, rgba(2, 8, 18, 0.04) 20%, rgba(2, 8, 18, 0.08) 100%);
  pointer-events: none;
}

.hero-glow {
  display: none;
}

.hero-content {
  display: block;
  padding-top: calc(var(--hero-visual-height) + 30px);
  padding-bottom: 72px;
}

.hero-panel {
  display: grid;
  grid-template-columns: 245px minmax(360px, 1fr) 320px;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 12px 30px;
  width: 100%;
  padding: 24px 28px;
  border-left: 2px solid rgba(103, 232, 249, 0.72);
  border-radius: 0 24px 24px 0;
  background: linear-gradient(105deg, rgba(7, 17, 31, 0.98), rgba(7, 17, 31, 0.76));
  backdrop-filter: none;
}

.hero-panel .eyebrow {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}

.hero h1 {
  grid-column: 1;
  grid-row: 2;
  font-size: clamp(3.9rem, 4.5vw, 5rem);
  line-height: 0.86;
}

.hero-statement {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  font-size: clamp(1.7rem, 2vw, 2.15rem);
  line-height: 1.18;
}

.hero-statement .heading-line {
  white-space: nowrap;
}

.hero-actions {
  grid-column: 3;
  grid-row: 1;
  margin: 0;
}

.hero-panel .proof-pill {
  grid-column: 3;
  grid-row: 2;
  width: max-content;
  margin-top: 0;
}

.sound-toggle {
  top: calc(var(--hero-visual-height) - 60px);
  bottom: auto;
}

.scroll-cue {
  display: none;
}

@media (max-width: 1100px) {
  .hero-panel {
    grid-template-columns: 220px minmax(320px, 1fr);
  }

  .hero-actions,
  .hero-panel .proof-pill {
    grid-column: 1 / -1;
  }

  .hero-actions {
    grid-row: 3;
  }

  .hero-panel .proof-pill {
    grid-row: 4;
  }
}

@media (max-width: 720px) {
  .hero {
    --hero-visual-height: max(360px, 56svh);
  }

  .hero-video {
    object-position: center 46%;
  }

  .hero-content {
    padding-top: calc(var(--hero-visual-height) + 22px);
    padding-bottom: 62px;
  }

  .hero-panel {
    display: block;
    padding: 19px 18px 21px;
  }

  .hero-panel .eyebrow {
    margin-bottom: 12px;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 17vw, 4.5rem);
  }

  .hero-statement {
    margin-top: 20px;
    font-size: clamp(1.4rem, 6.2vw, 1.78rem);
  }

  .hero-statement .heading-line {
    white-space: nowrap;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-panel .proof-pill {
    margin-top: 22px;
  }

  .sound-toggle {
    top: calc(var(--hero-visual-height) - 54px);
  }
}
/* RAVECAT V2.5: integrate the desktop title into the empty sand below the cats */
@media (min-width: 721px) {
  .hero {
    display: grid;
    min-height: 100svh;
    background: transparent;
  }

  .hero-media,
  .hero-shade {
    inset: 0;
    height: auto;
  }

  .hero-video {
    object-position: center center;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(2, 8, 18, 0.98) 0%, rgba(2, 8, 18, 0.8) 12%, rgba(2, 8, 18, 0.3) 31%, transparent 54%),
      linear-gradient(90deg, rgba(2, 8, 18, 0.24), transparent 28%, transparent 78%, rgba(2, 8, 18, 0.18));
  }

  .hero-content {
    position: relative;
    z-index: 2;
    align-self: end;
    padding-top: 0;
    padding-bottom: 34px;
  }

  .hero-panel {
    display: grid;
    grid-template-columns: 250px minmax(370px, 1fr) 350px;
    grid-template-rows: auto auto;
    align-items: end;
    gap: 10px 34px;
    width: 100%;
    padding: 18px 0 12px 22px;
    border-left: 2px solid rgba(103, 232, 249, 0.8);
    border-radius: 0;
    background: transparent;
  }

  .hero-panel .eyebrow {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }

  .hero h1 {
    grid-column: 1;
    grid-row: 2;
    font-size: clamp(3.7rem, 4.2vw, 4.65rem);
    line-height: 0.84;
  }

  .hero-statement {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
    margin: 0 0 1px;
    font-size: clamp(1.72rem, 2vw, 2.12rem);
    line-height: 1.18;
  }

  .hero-actions {
    grid-column: 3;
    grid-row: 1;
    align-self: end;
    margin: 0;
  }

  .hero-panel .proof-pill {
    grid-column: 3;
    grid-row: 2;
    align-self: end;
    margin: 0;
  }

  .sound-toggle {
    top: auto;
    right: max(28px, calc((100vw - 1180px) / 2));
    bottom: 178px;
  }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .hero-panel {
    grid-template-columns: 220px minmax(320px, 1fr);
    gap: 12px 26px;
  }

  .hero-actions,
  .hero-panel .proof-pill {
    grid-column: 1 / -1;
  }

  .hero-actions {
    grid-row: 3;
  }

  .hero-panel .proof-pill {
    grid-row: 4;
  }
}
/* RAVECAT V2.6: quiet two-column hierarchy on the sand */
@media (min-width: 1101px) {
  .hero-panel {
    grid-template-columns: minmax(0, 1fr) 360px;
    grid-template-rows: auto auto auto;
    align-items: end;
    gap: 7px 54px;
    padding: 22px 0 14px 26px;
  }

  .hero-panel .eyebrow {
    grid-column: 1;
    grid-row: 1;
    margin: 0 0 2px;
  }

  .hero h1 {
    grid-column: 1;
    grid-row: 2;
    font-size: clamp(4rem, 4.7vw, 5rem);
    line-height: 0.86;
  }

  .hero-statement {
    grid-column: 1;
    grid-row: 3;
    display: flex;
    gap: 0.28em;
    margin: 7px 0 0;
    font-size: clamp(1.38rem, 1.55vw, 1.7rem);
    line-height: 1.2;
    letter-spacing: -0.035em;
  }

  .hero-statement .heading-line {
    display: inline;
    white-space: nowrap;
  }

  .hero-actions {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    justify-content: flex-start;
    margin: 0;
  }

  .hero-panel .proof-pill {
    grid-column: 2;
    grid-row: 3;
    align-self: end;
    margin: 7px 0 0;
  }
}

/* RAVECAT V2.7: official identity rail */
.official-strip {
  position: relative;
  z-index: 8;
  border-top: 1px solid rgba(103, 232, 249, 0.2);
  border-bottom: 1px solid rgba(103, 232, 249, 0.16);
  background:
    radial-gradient(circle at 12% 0%, rgba(103, 232, 249, 0.09), transparent 28%),
    #030810;
}

.official-strip-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  min-height: 106px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.official-ca-block { min-width: 0; }

.official-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--cyan);
  font-family: "Patrick Hand", cursive;
  font-size: 0.92rem;
  letter-spacing: 0.09em;
}

.official-ca-block code {
  color: rgba(247, 251, 255, 0.9);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.79rem, 1.15vw, 1rem);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.official-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.official-copy,
.official-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 19px;
  border: 1px solid rgba(247, 251, 255, 0.2);
  border-radius: 999px;
  background: rgba(247, 251, 255, 0.04);
  color: var(--white);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.official-copy {
  border-color: transparent;
  background: var(--cyan);
  color: #041018;
}

.official-copy:hover,
.official-x:hover { transform: translateY(-2px); }

.official-x:hover {
  border-color: rgba(103, 232, 249, 0.58);
  background: rgba(103, 232, 249, 0.08);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

@media (max-width: 720px) {
  .official-strip-inner {
    grid-template-columns: 1fr;
    gap: 17px;
    padding-top: 24px;
    padding-bottom: 25px;
  }

  .official-ca-block code { font-size: 0.74rem; }
  .official-actions { width: 100%; }

  .official-copy,
  .official-x {
    flex: 1 1 0;
    padding-inline: 14px;
  }
}