/* ==========================================================================
   Not Noise — Design system + components
   Source of truth: Figma "Not-noise-Relume" (Home • Desktop, node 10205:73685)
   Changes vs Figma are intentional, see figma_audit.md:
   - Warm neutrals only (cool #F2F2F2 replaced)
   - Button fill darkened to #C64A2E for WCAG AA (4.75:1 with white)
   - One button system: 2 sizes × 3 styles
   - Roboto removed; single sans family + serif italic accent
   ========================================================================== */

/* ---------- Fonts ----------
   Neue Montreal + PP Kyoto (Pangram Pangram) need a commercial web license.
   Once licensed, drop the .woff2 files in /fonts and add url() sources below.
   Until then we fall back to Inter Tight + Instrument Serif (Google Fonts). */
@font-face {
  font-family: "Neue Montreal";
  src: local("Neue Montreal"), local("NeueMontreal-Regular");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Neue Montreal";
  src: local("Neue Montreal Medium"), local("NeueMontreal-Medium");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "PP Kyoto";
  src: local("PP Kyoto Medium Italic"), local("PPKyoto-MediumItalic");
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}

:root {
  /* Brand */
  --ink: #0c0c0b;
  --ink-soft: #1d1d1a;
  --flame: #de583a;
  /* accent, large type, decoration */
  --flame-strong: #c64a2e;
  /* button fill — 4.75:1 with white */
  --flame-deep: #a93d24;
  /* hover / pressed */
  --flame-tint: #f7e3dc;

  /* Warm neutrals */
  --beige: #eae9d7;
  /* White Rock */
  --beige-deep: #dedcc5;
  --cream: #f6f5ee;
  --paper: #fcfcfb;
  --white: #ffffff;
  --mint: #e7f1eb;
  /* wellness accent (Jewel Lightest) */
  --mint-deep: #2f6b4f;

  /* Text */
  --text: var(--ink);
  --text-muted: #5c5b55;
  /* 6.2:1 on cream */
  --text-on-dark: #f6f5ee;
  --text-on-dark-muted: #b9b8ad;

  /* Lines */
  --line: rgba(12, 12, 11, 0.12);
  --line-strong: rgba(12, 12, 11, 0.22);
  --line-on-dark: rgba(246, 245, 238, 0.16);

  /* Type */
  --font-sans: "Neue Montreal", "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "PP Kyoto", "Instrument Serif", ui-serif, Georgia, serif;

  --fs-display: clamp(2rem, 2rem + 4.4vw, 4.5rem);
  /* 48 → 88 */
  --fs-h2: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem);
  /* 36 → 60 */
  --fs-h3: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
  /* 24 → 32 */
  --fs-h4: 1.375rem;
  /* 22 */
  --fs-lg: 1.125rem;
  /* 18 */
  --fs-base: 1rem;
  /* 16 */
  --fs-sm: 0.875rem;
  /* 14 */
  --fs-xs: 0.75rem;
  /* 12 */

  /* Space */
  --container: 1280px;
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 4rem);
  --section-y: clamp(5rem, 3rem + 6vw, 8.5rem);

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(12, 12, 11, 0.06), 0 2px 8px rgba(12, 12, 11, 0.04);
  --shadow-md: 0 10px 30px -12px rgba(12, 12, 11, 0.25);
  --shadow-lg: 0 30px 60px -20px rgba(12, 12, 11, 0.35);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur: 0.35s;

  --nav-h: 72px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

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

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--flame-strong);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--flame);
  color: var(--white);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  transition: top var(--dur) var(--ease-out);
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--beige {
  background: var(--beige);
}

.section--paper {
  background: var(--paper);
}

.section--cream {
  background: var(--cream);
}

.section--ink {
  background: var(--ink);
  color: var(--text-on-dark);
}

/* ---------- Typography ---------- */
.display {
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.h4 {
  font-size: var(--fs-h4);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.lead {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  max-width: 36rem;
}

.section--ink .lead {
  color: var(--text-on-dark-muted);
}

.muted {
  color: var(--text-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 0 4px rgba(222, 88, 58, 0.15);
}

.section--ink .eyebrow {
  color: var(--text-on-dark);
}

/* Section header (merged: band title + intro, one per section) */
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: clamp(3rem, 2rem + 3vw, 4.5rem);
}

.section-head__title {
  display: grid;
  gap: 20px;
}

.section-head__body {
  display: grid;
  gap: 28px;
  align-content: end;
}

@media (min-width: 960px) {
  .section-head {
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: end;
  }
}

.section-head--center {
  text-align: center;
  justify-items: center;
  grid-template-columns: 1fr !important;
}

.section-head--center .lead {
  margin-inline: auto;
}

/* ---------- Buttons: 2 sizes × 3 styles ---------- */
.btn {
  --btn-h: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--btn-h);
  padding-inline: 20px;
  border-radius: var(--r-pill);
  font-size: var(--fs-base);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
  will-change: transform;
}

.btn--lg {
  --btn-h: 52px;
  padding-inline: 26px;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn--primary {
  background: var(--flame-strong);
  color: var(--white);
}



.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--secondary:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.section--ink .btn--secondary {
  color: var(--text-on-dark);
  border-color: var(--line-on-dark);
}

.section--ink .btn--secondary:hover {
  background: var(--text-on-dark);
  color: var(--ink);
  border-color: var(--text-on-dark);
}

.btn--link {
  height: auto;
  padding: 0;
  border-radius: 0;
  color: var(--ink);
  gap: 6px;
}

.btn--link .btn__arrow {
  transition: transform var(--dur) var(--ease-out);
}

.btn--link:hover .btn__arrow {
  transform: translateX(4px);
}

.btn__arrow {
  width: 16px;
  height: 16px;
  flex: none;
}

.btn--primary .btn__arrow {
  transition: transform var(--dur) var(--ease-out);
}

.btn--primary:hover .btn__arrow {
  transform: translateX(3px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-note {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.btn-note span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-note svg {
  width: 14px;
  height: 14px;
  color: var(--mint-deep);
}

.section--ink .btn-note {
  color: var(--text-on-dark-muted);
}

.section--ink .btn-note svg {
  color: #8fd1ac;
}

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding-inline: 12px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 500;
  background: rgba(12, 12, 11, 0.06);
  color: var(--ink);
  white-space: nowrap;
}

.chip--dark {
  background: rgba(12, 12, 11, 0.72);
  color: var(--white);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.chip--glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.chip--flame {
  background: var(--flame-tint);
  color: var(--flame-deep);
}

.chip--mint {
  background: var(--mint);
  color: var(--mint-deep);
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(234, 233, 215, 0.78);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(246, 245, 238, 0.86);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo img {
  height: 34px;
  width: auto;
}

.nav__links {
  display: none;
  gap: 32px;
  font-size: var(--fs-base);
}

.nav__links a {
  position: relative;
  padding-block: 6px;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}

.nav__links a:hover::after,
.nav__links a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__actions {
  display: none;
  gap: 10px;
}

.nav__toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: background var(--dur);
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease-out), top var(--dur) var(--ease-out);
}

.nav__toggle span::before {
  top: -6px;
}

.nav__toggle span::after {
  top: 6px;
}

.nav.is-open .nav__toggle span {
  background: transparent;
}

.nav.is-open .nav__toggle span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav.is-open .nav__toggle span::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav__mobile {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 24px var(--gutter) 32px;
  display: grid;
  gap: 8px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

.nav.is-open .nav__mobile {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.nav__mobile a:not(.btn) {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
}

.nav__mobile .btn-row {
  margin-top: 16px;
}

.nav__mobile .btn {
  flex: 1;
}

@media (min-width: 1080px) {

  .nav__links,
  .nav__actions {
    display: flex;
  }

  .nav__toggle,
  .nav__mobile {
    display: none;
  }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  background: var(--beige);
  padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(4rem, 3rem + 4vw, 7rem);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 80%;

  pointer-events: none;
}

.hero__grid {
  display: grid;
  gap: 56px;
  align-items: center;
  position: relative;
}

.hero__copy {
  display: grid;
  gap: 28px;
  max-width: 40rem;
}

.hero__title .serif {
  font-size: 1.04em;
}

.hero__sub {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  color: var(--text-muted);
  max-width: 34rem;
}

.hero__sub strong {
  color: var(--ink);
  font-weight: 500;
}

@media (min-width: 1000px) {
  .hero__grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
  }
}

/* Ad card stack */
.creative-stack {
  position: relative;
  height: clamp(440px, 36vw + 200px, 620px);
  display: grid;
  place-items: center;
  perspective: 1400px;
}

.creative-card {
  position: absolute;
  width: clamp(210px, 14vw + 120px, 300px);
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  background: var(--ink);
  border: 5px solid var(--white);
  box-shadow: var(--shadow-lg);
  transition: transform 0.7s var(--ease-out), box-shadow 0.7s var(--ease-out);
}

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

.creative-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 22%, transparent 55%, rgba(0, 0, 0, 0.6) 100%);
  color: var(--white);
}

.creative-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.creative-card__progress {
  display: flex;
  gap: 4px;
  position: absolute;
  top: 8px;
  left: 14px;
  right: 14px;
}

.creative-card__progress i {
  flex: 1;
  height: 2.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
  position: relative;
}

.creative-card__progress i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
}

.creative-card__progress i.is-done::after {
  transform: scaleX(1);
}

.creative-card__progress i.is-playing::after {
  animation: progress 4.5s linear infinite;
}

@keyframes progress {
  to {
    transform: scaleX(1);
  }
}

.creative-card__caption {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.creative-card__caption mark {
  background: var(--white);
  color: var(--ink);
  padding: 0 4px;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.creative-card__meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.creative-stack .creative-card:nth-child(1) {
  transform: translateX(-62%) rotate(-8deg) scale(0.86);
  z-index: 1;
}

.creative-stack .creative-card:nth-child(2) {
  transform: translateX(62%) rotate(8deg) scale(0.86);
  z-index: 1;
}

.creative-stack .creative-card:nth-child(3) {
  transform: translateY(-2%);
  z-index: 3;
}

.creative-stack:hover .creative-card:nth-child(1) {
  transform: translateX(-74%) rotate(-11deg) scale(0.88);
}

.creative-stack:hover .creative-card:nth-child(2) {
  transform: translateX(74%) rotate(11deg) scale(0.88);
}

.creative-stack:hover .creative-card:nth-child(3) {
  transform: translateY(-4%) scale(1.02);
}

.float-chip {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  font-size: var(--fs-sm);
  animation: float 6s ease-in-out infinite;
}

.float-chip strong {
  display: block;
  font-weight: 500;
  font-size: var(--fs-base);
}

.float-chip small {
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

.float-chip__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--mint-deep);
  flex: none;
}

.float-chip__icon--flame {
  background: var(--flame-tint);
  color: var(--flame-deep);
}

.float-chip__icon svg {
  width: 18px;
  height: 18px;
}

.float-chip--a {
  left: 0;
  top: 14%;
}

.float-chip--b {
  right: 0;
  bottom: 12%;
  animation-delay: -3s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 640px) {
  .float-chip--a {
    left: -4px;
    top: 4%;
  }

  .float-chip--b {
    right: -4px;
    bottom: 2%;
  }
}

/* ==========================================================================
   CATEGORY MARQUEE
   ========================================================================== */
.marquee {
  background: var(--ink);
  color: var(--text-on-dark);
  padding-block: 22px;
  overflow: hidden;
}

.marquee__inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.marquee__label {
  flex: none;
  font-size: var(--fs-sm);
  color: var(--text-on-dark-muted);
  padding-left: var(--gutter);
}

.marquee__track {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__list {
  display: flex;
  flex: none;
  gap: 40px;
  padding-right: 40px;
  animation: marquee 38s linear infinite;
}

.marquee__list li {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.marquee__list li::after {
  content: "✳";
  color: var(--flame);
  font-size: 0.9rem;
}

.marquee:hover .marquee__list {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

@media (max-width: 720px) {
  .marquee__label {
    display: none;
  }
}

/* ==========================================================================
   PROBLEM — The fatigue
   ========================================================================== */
.killers {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .killers {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: clamp(24px, 2vw + 12px, 36px);
  border: 1px solid var(--line);
  position: relative;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--cream);
  margin-bottom: 28px;
}

.card__icon img {
  width: 24px;
  height: 24px;
}

.card p {
  color: var(--text-muted);
  margin-top: 12px;
}

.killer {
  display: flex;
  flex-direction: column;
}

.killer__stat {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.killer__stat strong {
  font-size: clamp(2.5rem, 2rem + 1.6vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.killer__stat span {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.killer--feature {
  background: var(--ink);
  color: var(--text-on-dark);
  border-color: var(--ink);
}

.killer--feature p,
.killer--feature .killer__stat span {
  color: var(--text-on-dark-muted);
}

.killer--feature .card__icon {
  background: rgba(255, 255, 255, 0.08);
}

.killer--feature .card__icon img {
  filter: invert(1);
}

/* Decay chart */
.decay {
  margin-top: 28px;
  display: grid;
  gap: 10px;
}

.decay__bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 96px;
}

.decay__bars i {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--flame) 0%, rgba(222, 88, 58, 0.55) 100%);
  height: var(--h);
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i) * 60ms);
}

.is-visible .decay__bars i {
  transform: scaleY(1);
}

.decay__axis {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--text-on-dark-muted);
}

/* ==========================================================================
   SOLUTION — The antidote (bento)
   ========================================================================== */
.bento {
  display: grid;
  gap: 16px;
}

@media (min-width: 960px) {
  .bento {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(0, auto);
  }

  .bento__hooks {
    grid-column: span 7;
  }

  .bento__volume {
    grid-column: span 5;
    grid-row: span 2;
  }

  .bento__broll {
    grid-column: span 3;
  }

  .bento__ai {
    grid-column: span 4;
  }
}

.bento .card {
  overflow: hidden;
}

.bento__media {
  margin: 28px calc(-1 * clamp(24px, 2vw + 12px, 36px)) calc(-1 * clamp(24px, 2vw + 12px, 36px));
  height: 220px;
  overflow: hidden;
  position: relative;
}

.bento__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.card:hover .bento__media img {
  transform: scale(1.06);
}

.bento__media .chip {
  position: absolute;
  left: 16px;
  bottom: 16px;
}

.hook-list {
  margin-top: 28px;
  display: grid;
  gap: 10px;
  background: var(--cream);
  border-radius: var(--r-md);
  padding: 18px;
}

.hook-list__head {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: 4px;
}

.hook-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-sm);
}

.hook-row__bar {
  position: relative;
  height: 34px;
  border-radius: var(--r-pill);
  background: var(--white);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-inline: 14px;
  font-weight: 500;
}

.hook-row__bar::before {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--w);
  background: var(--beige);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease-out);
}

.is-visible .hook-row__bar::before {
  transform: scaleX(1);
}

.hook-row__bar span {
  position: relative;
}

.hook-row b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  min-width: 72px;
  text-align: right;
}

.bento__volume {
  background: var(--flame-strong);
  color: var(--white);
  border-color: transparent;
  display: flex;
  flex-direction: column;
}

.bento__volume p {
  color: rgba(255, 255, 255, 0.86);
}

.bento__volume .eyebrow {
  color: var(--white);
}

.bento__volume .eyebrow::before {
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.volume__num {
  font-size: clamp(6rem, 4rem + 8vw, 10rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.85;
  margin-top: 24px;
}

.volume__grid {
  margin-top: auto;
  padding-top: 32px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
}

.volume__grid i {
  aspect-ratio: 9/16;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
  transition: background 0.4s;
  transition-delay: calc(var(--i) * 25ms);
}

.is-visible .volume__grid i {
  background: rgba(255, 255, 255, 0.92);
}

.volume__grid i:nth-child(3n) {}

.volume__legend {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.8);
}

/* Stats row */
.stats {
  margin-top: 16px;
  display: grid;
  gap: 16px;
}

@media (min-width: 800px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat {
  padding: 28px clamp(24px, 2vw + 12px, 36px);
  border-radius: var(--r-lg);
  background: var(--beige);
  display: grid;
  gap: 12px;
  align-content: start;
}

.stat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.stat__head img {
  width: 22px;
  height: 22px;
}

.stat__num {
  font-size: clamp(2.75rem, 2rem + 2vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

/* ==========================================================================
   VAULT
   ========================================================================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.filter {
  height: 40px;
  padding-inline: 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}

.filter:hover {
  border-color: var(--ink);
}

.filter.is-active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.filter span {
  opacity: 0.55;
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}

.vault-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 760px) {
  .vault-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .vault-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.vault-item {
  position: relative;
  aspect-ratio: 9/16;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
  transition: transform 0.5s var(--ease-out), opacity 0.4s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.vault-item.is-hidden {
  display: none;
}

.vault-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter 0.6s;
}

.vault-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.vault-item:hover img {
  transform: scale(1.07);
}

.vault-item .creative-card__overlay {
  padding: 16px;
}

.vault-item__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  color: var(--white);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity var(--dur), transform var(--dur) var(--ease-spring);
}

.vault-item__play svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}

.vault-item:hover .vault-item__play,
.vault-item:focus-visible .vault-item__play {
  opacity: 1;
  transform: scale(1);
}

.vault-item__hook {
  transform: translateY(8px);
  opacity: 0.92;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur);
}

.vault-item:hover .vault-item__hook {
  transform: none;
  opacity: 1;
}

.vault-note {
  margin-top: 24px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
}

/* CTA tile in vault grid */
.vault-cta {
  aspect-ratio: 9/16;
  border-radius: var(--r-lg);
  background: var(--beige);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px dashed var(--line-strong);
}

.vault-cta .h4 {
  max-width: 12ch;
}

/* ==========================================================================
   PROCESS — The 48-hour sprint
   ========================================================================== */
.timeline {
  display: grid;
  gap: 16px;
  position: relative;
  counter-reset: step;
}

@media (min-width: 900px) {
  .timeline {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--white);
}

.step__hour {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-sm);
  font-weight: 500;
  margin-bottom: 40px;
}

.step__hour b {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--beige);
  font-variant-numeric: tabular-nums;
}

.step__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 4rem;
  line-height: 0.8;
  color: var(--flame);
}

.step .h3 {
  margin-top: 0;
}

.step ul {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.step li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.step li svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  color: var(--ink);
}

.timeline__track {
  margin-top: 32px;
  height: 6px;
  border-radius: 6px;
  background: var(--beige-deep);
  position: relative;
  overflow: hidden;
}

.timeline__track::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--flame), var(--flame-strong));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 2s var(--ease-out);
}

.is-visible .timeline__track::after {
  transform: scaleX(1);
}

.timeline__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   COMPARISON — The honest math
   ========================================================================== */
.compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
}

.compare {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--fs-base);
}

.compare th,
.compare td {
  padding: 18px 20px;
  text-align: left;
  vertical-align: middle;
}

.compare thead th {
  font-weight: 500;
  vertical-align: bottom;
  padding-bottom: 24px;
}

.compare thead th small {
  display: block;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 4px;
}

.compare tbody th {
  font-weight: 400;
  color: var(--text-muted);
  width: 28%;
}

.compare tbody tr+tr>* {
  border-top: 1px solid var(--line);
}

.compare td {
  width: 24%;
}

.compare .is-us {
  background: var(--white);
  position: relative;
}

.compare thead .is-us {
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding-top: 28px;
}

.compare tbody tr:last-child .is-us {
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}

.compare .is-us {
  box-shadow: inset 1px 0 0 var(--line), inset -1px 0 0 var(--line);
}

.compare thead .is-us {
  box-shadow: inset 1px 0 0 var(--line), inset -1px 0 0 var(--line), inset 0 1px 0 var(--line);
}

.compare tbody tr:last-child .is-us {
  box-shadow: inset 1px 0 0 var(--line), inset -1px 0 0 var(--line), inset 0 -1px 0 var(--line);
}

.compare__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
}

.compare__brand img {
  height: 26px;
  width: auto;
}

.compare__logo-dot {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--beige-deep);
  display: grid;
  place-items: center;
}

.compare__logo-dot img {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.val {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.val svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.val--yes svg {
  color: var(--mint-deep);
}

.val--no {
  color: var(--text-muted);
}

.val--no svg {
  color: #b0aea2;
}

.val--warn {
  color: var(--text-muted);
}

.is-us .val {
  color: var(--ink);
  font-weight: 500;
}

/* ==========================================================================
   PRICING
   ========================================================================== */
.pricing {
  display: grid;
  gap: 16px;
  align-items: stretch;
}

@media (min-width: 900px) {
  .pricing {
    grid-template-columns: 1fr 1fr;
  }
}

.plan {
  border-radius: var(--r-lg);
  padding: clamp(28px, 2vw + 16px, 44px);
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
}

.plan--featured {
  background: var(--ink);
  color: var(--text-on-dark);
  border-color: var(--ink);
}

.plan__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.plan__name {
  font-size: var(--fs-h4);
  font-weight: 500;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.plan__price strong {
  font-size: clamp(3.5rem, 2.5rem + 3vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.plan__price span {
  color: var(--text-muted);
}

.plan--featured .plan__price span,
.plan--featured .plan__desc {
  color: var(--text-on-dark-muted);
}

.plan__desc {
  color: var(--text-muted);
  max-width: 30rem;
}

.plan__list {
  display: grid;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.plan--featured .plan__list {
  border-top-color: var(--line-on-dark);
}

.plan__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.plan__list svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--mint-deep);
  margin-top: 1px;
}

.plan--featured .plan__list svg {
  color: #8fd1ac;
}

.plan__cta {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.plan__cta .btn {
  width: 100%;
}

.plan__cta small {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.plan--featured .plan__cta small {
  color: var(--text-on-dark-muted);
}

.plan--featured .btn--primary {
  background: var(--flame-strong);
}

.plan--featured .btn--secondary {
  color: var(--text-on-dark);
  border-color: var(--line-on-dark);
}

.plan--featured .btn--secondary:hover {
  background: var(--text-on-dark);
  color: var(--ink);
}

/* ==========================================================================
   GUARANTEE
   ========================================================================== */
.guarantee {
  display: grid;
  gap: 16px;
}

@media (min-width: 960px) {
  .guarantee {
    grid-template-columns: 1fr 1fr;
  }
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--white);
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  width: fit-content;
  margin-bottom: 24px;
}

.tab {
  height: 40px;
  padding-inline: 18px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  transition: background var(--dur), color var(--dur);
}

.tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--white);
}

.tab-panel {
  display: grid;
  gap: 16px;
  animation: fadeUp 0.5s var(--ease-out);
}

.tab-panel[hidden] {
  display: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.tab-panel p {
  color: var(--text-muted);
  font-size: var(--fs-lg);
}

.meter {
  background: var(--ink);
  color: var(--text-on-dark);
  border-radius: var(--r-lg);
  padding: clamp(28px, 2vw + 16px, 44px);
  display: grid;
  gap: 28px;
  align-content: start;
}

.meter__formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-lg);
}

.meter__formula .frac {
  display: inline-grid;
  text-align: center;
  font-size: var(--fs-sm);
}

.meter__formula .frac span:first-child {
  border-bottom: 1px solid var(--line-on-dark);
  padding-bottom: 4px;
}

.meter__formula .frac span:last-child {
  padding-top: 4px;
}

.meter__rows {
  display: grid;
  gap: 18px;
}

.meter__row {
  display: grid;
  gap: 8px;
}

.meter__row-head {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: var(--text-on-dark-muted);
}

.meter__bar {
  height: 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.meter__bar i {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.35);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease-out);
}

.meter__bar--us i {
  background: linear-gradient(90deg, var(--flame), #f08a6e);
}

.is-visible .meter__bar i {
  transform: scaleX(1);
}

.meter__foot {
  font-size: var(--fs-sm);
  color: var(--text-on-dark-muted);
  padding-top: 20px;
  border-top: 1px solid var(--line-on-dark);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  display: grid;
  gap: 48px;
}

@media (min-width: 960px) {
  .faq {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
  }

  .faq__intro {
    position: sticky;
    top: calc(var(--nav-h) + 40px);
    align-self: start;
  }
}

.faq__intro {
  display: grid;
  gap: 24px;
}

.faq__list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  transition: border-color var(--dur), box-shadow var(--dur);
}

.faq-item:hover {
  border-color: var(--line-strong);
}

.faq-item.is-open {
  box-shadow: var(--shadow-sm);
}

.faq-item__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 24px;
  text-align: left;
  font-size: var(--fs-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.faq-item__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cream);
  flex: none;
  display: grid;
  place-items: center;
  transition: transform var(--dur) var(--ease-out), background var(--dur);
}

.faq-item__icon svg {
  width: 14px;
  height: 14px;
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
  background: var(--flame-strong);
  color: var(--white);
}

.faq-item__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}

.faq-item.is-open .faq-item__a {
  grid-template-rows: 1fr;
}

.faq-item__a>div {
  overflow: hidden;
}

.faq-item__a p {
  padding: 0 24px 24px;
  color: var(--text-muted);
  max-width: 44rem;
}

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.final-cta {
  overflow: hidden;
}

.final-cta__grid {
  display: grid;
  gap: 56px;
  align-items: center;
}

@media (min-width: 1000px) {
  .final-cta__grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

.final-cta__copy {
  display: grid;
  gap: 28px;
}

.final-cta .display {
  font-size: clamp(2.75rem, 2rem + 3.4vw, 4.75rem);
}

.final-cta .serif {
  color: var(--flame);
}

.reel {
  display: flex;
  gap: 14px;
  height: 440px;
  mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
}

.reel__col {
  flex: 1;
  overflow: hidden;
}

.reel__track {
  display: grid;
  gap: 14px;
  animation: reel 30s linear infinite;
}

.reel__col:nth-child(2) .reel__track {
  animation-direction: reverse;
  animation-duration: 36s;
}

.reel__col:nth-child(3) .reel__track {
  animation-duration: 26s;
}

.reel__track img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  border-radius: 16px;
}

@keyframes reel {
  to {
    transform: translateY(calc(-50% - 7px));
  }
}

@media (max-width: 640px) {
  .reel {
    height: 340px;
  }

  .reel__col:nth-child(3) {
    display: none;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--cream);
  padding-block: 64px 40px;
  border-top: 1px solid var(--line);
}

.footer__top {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .footer__top {
    grid-template-columns: auto 1fr auto;
  }
}

.footer__logo img {
  height: 34px;
  width: auto;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: var(--fs-sm);
  font-weight: 500;
}

@media (min-width: 900px) {
  .footer__links {
    justify-content: center;
  }
}

.footer__links a:hover,
.footer__legal a:hover {
  color: var(--flame-strong);
}

.footer__social {
  display: flex;
  gap: 8px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  transition: background var(--dur), border-color var(--dur);
}

.footer__social a:hover {
  background: var(--white);
  border-color: var(--line-strong);
}

.footer__social img {
  width: 18px;
  height: 18px;
}

.footer__bottom {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer__legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
}

.footer__disclaimer {
  margin-top: 20px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  max-width: 60rem;
}

/* ==========================================================================
   BOOKING MODAL
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 16px;
  visibility: hidden;
}

.modal.is-open {
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 11, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}

.modal.is-open .modal__backdrop {
  opacity: 1;
}

.modal__dialog {
  position: relative;
  width: min(100%, 960px);
  max-height: calc(100dvh - 32px);
  background: var(--cream);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: transform 0.45s var(--ease-out), opacity var(--dur) var(--ease-out);
  box-shadow: var(--shadow-lg);
}

.modal.is-open .modal__dialog {
  transform: none;
  opacity: 1;
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.modal__head p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.modal__close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  flex: none;
  transition: background var(--dur);
}

.modal__close:hover {
  background: var(--white);
}

.modal__close svg {
  width: 14px;
  height: 14px;
}

.modal__body {
  min-height: 0;
  overflow: auto;
}

.modal__body iframe {
  width: 100%;
  height: min(720px, calc(100dvh - 140px));
  border: 0;
  display: block;
  background: var(--white);
}

.modal__fallback {
  padding: 40px 24px;
  display: grid;
  gap: 16px;
  text-align: center;
  justify-items: center;
}

.modal__steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.reveal.is-visible,
.hero .reveal {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .marquee__list,
  .reel__track {
    animation: none !important;
  }
}

/* Ensure hero and creative-stack are always fully visible */
.hero,
.hero__grid,
.hero__copy,
.creative-stack,
.creative-card {
  opacity: 1 !important;
  visibility: visible !important;
}

/* ---------- Vertical Slide Hover Effect for Primary Buttons ---------- */
.btn__slide-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  overflow: hidden;
  height: 1.35em;
  line-height: 1.35;
  vertical-align: middle;
  pointer-events: none;
}

.btn__slide-inner {
  display: flex;
  flex-direction: column;
  transform: translateY(-50%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.btn__slide-line {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.35em;
  line-height: 1.35;
  white-space: nowrap;
}

.btn:hover .btn__slide-inner,
.btn:focus-visible .btn__slide-inner {
  transform: translateY(0);
}

/* ---------- Pixel Grid Wiggle Canvas Effect for Ad Stack ---------- */
.pixel-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.pixel-canvas.is-active {
  opacity: 1;
}