/* ============================================
   McStrategy — Futuristic Glassmorphic Site
   ============================================ */

:root {
  --yellow: #fdc12b;
  --red: #cf2d1e;
  --yellow-rgb: 253, 193, 43;
  --red-rgb: 207, 45, 30;

  --glass-bg: rgba(10, 5, 4, 0.45);
  --glass-bg-light: rgba(10, 5, 4, 0.25);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-highlight: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.88);
  --text-muted: rgba(255, 255, 255, 0.72);

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: var(--font-sans);
  --font-body: var(--font-sans);

  --page-max: min(1100px, 94vw);
  --content-max: min(680px, 92vw);
  --text-max: min(42rem, 100%);

  --space-xs: clamp(0.5rem, 1.2vw, 0.75rem);
  --space-sm: clamp(0.75rem, 1.8vw, 1.125rem);
  --space-md: clamp(1.125rem, 2.5vw, 1.75rem);
  --space-lg: clamp(1.5rem, 3.5vw, 2.75rem);
  --space-xl: clamp(2rem, 5vw, 4rem);
  --space-2xl: clamp(3rem, 8vw, 6rem);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --carousel-max-native: 500px;
  --carousel-max-width: min(98vw, 1680px);
  --carousel-viewport-ratio: 0.135;
  --carousel-min: 96px;
  --carousel-max-visible: 0;

  --text-body: clamp(1.0625rem, 1.35vw + 0.5rem, 1.3125rem);
  --text-lead: clamp(1.1875rem, 1.6vw + 0.5rem, 1.5rem);
  --text-title: clamp(2rem, 4vw + 0.5rem, 3.25rem);
  --text-hero: clamp(2.75rem, 7vw + 0.5rem, 5.5rem);

  --action-cluster-width: min(56rem, 94vw);
  --action-icon-size: clamp(3rem, 9vw, 4.75rem);
  --action-logo-width: clamp(9rem, 28vw, 15.2rem);
  --action-cluster-gap: clamp(2rem, 8vw, 4rem);

  --cursor-candle: auto;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  cursor: var(--cursor-candle);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-body);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  background: var(--yellow);
}

a,
button,
.cta__label,
.social-link,
.carousel__track {
  cursor: inherit;
}

/* Stock tick popups on scroll */
.stock-ticks {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 500;
  overflow: hidden;
}

.stock-tick {
  position: absolute;
  font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
  font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 1.75rem);
  --tick-scale: 1;
  color: #ff2b2b;
  letter-spacing: -0.02em;
  text-shadow:
    0 0 12px rgba(255, 40, 40, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.65);
  animation: stock-tick-pop 2.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform, opacity;
}

.stock-tick--up {
  color: #22e06a;
  text-shadow:
    0 0 12px rgba(34, 224, 106, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.65);
}

.touch-candle {
  position: fixed;
  top: 0;
  left: 0;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  line-height: 0;
  transition: opacity 0.1s ease;
  filter:
    drop-shadow(0 0 10px rgba(255, 40, 40, 0.55))
    drop-shadow(0 2px 8px rgba(0, 0, 0, 0.65));
}

.touch-candle--visible {
  opacity: 1;
}

.touch-candle--up {
  filter:
    drop-shadow(0 0 10px rgba(34, 224, 106, 0.55))
    drop-shadow(0 2px 8px rgba(0, 0, 0, 0.65));
}

.touch-candle svg {
  display: block;
  width: 100%;
  height: 100%;
}

@media (hover: hover) and (pointer: fine) {
  .touch-candle {
    display: none !important;
  }
}

.stock-tick--quote {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(0.8125rem, 2.1vw, 1.125rem);
  letter-spacing: 0;
  line-height: 1.35;
  max-width: min(22rem, 78vw);
  white-space: normal;
  text-align: center;
}

@keyframes stock-tick-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(calc(0.4 * var(--tick-scale, 1)));
  }
  12% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(calc(1.2 * var(--tick-scale, 1)));
  }
  28% {
    transform: translate(-50%, calc(-50% - 6px)) scale(var(--tick-scale, 1));
  }
  65% {
    opacity: 1;
    transform: translate(-50%, calc(-50% - 6px)) scale(var(--tick-scale, 1));
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift, 0px)), calc(-50% + var(--drop, 28px))) scale(calc(0.85 * var(--tick-scale, 1)));
  }
}

/* Background layers */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  contain: strict;
  pointer-events: none;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--yellow) 0%, var(--red) 100%);
}

.bg-grid {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: clamp(40px, 8vw, 80px) clamp(40px, 8vw, 80px);
  transform-origin: center center;
  will-change: transform;
}

.bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  will-change: transform, translate;
  transform: translateY(var(--scroll-shift, 0px)) scale(var(--scroll-scale, 1));
  animation: orb-drift 10s ease-in-out infinite;
}

.orb--1 {
  width: clamp(200px, 40vw, 500px);
  height: clamp(200px, 40vw, 500px);
  background: var(--yellow);
  top: 10%;
  left: -10%;
  animation-duration: 12s;
}

.orb--2 {
  width: clamp(150px, 30vw, 400px);
  height: clamp(150px, 30vw, 400px);
  background: var(--red);
  top: 50%;
  right: -5%;
  animation-duration: 9s;
  animation-delay: -3s;
}

.orb--3 {
  width: clamp(100px, 20vw, 300px);
  height: clamp(100px, 20vw, 300px);
  background: linear-gradient(135deg, var(--yellow), var(--red));
  bottom: 10%;
  left: 30%;
  animation-duration: 11s;
  animation-delay: -5s;
}

@keyframes orb-drift {
  0%, 100% { translate: 0 0; }
  33% { translate: 45px -55px; }
  66% { translate: -40px 35px; }
}

.bg-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.05) 2px,
    rgba(0, 0, 0, 0.05) 4px
  );
  pointer-events: none;
  opacity: 0.65;
  animation: scanline-drift 8s linear infinite;
}

@keyframes scanline-drift {
  from { transform: translateY(0); }
  to { transform: translateY(8px); }
}

/* Glass panels */
.glass-panel {
  background: var(--glass-bg-light);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 var(--glass-highlight);
}

.glass-text-panel {
  background: rgba(6, 3, 2, 0.78);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Layout shell */
.header {
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: var(--space-lg) var(--space-md) clamp(1.5rem, 4vw, 2.75rem);
  z-index: 1;
  isolation: isolate;
}

.fries-rain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.fries-rain__fry {
  position: absolute;
  width: 50px;
  height: 50px;
  max-width: 50px;
  max-height: 50px;
  object-fit: contain;
  object-position: center;
  transform-origin: center center;
  pointer-events: none;
  will-change: transform, left, top, opacity;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.fries-rain__fry--knocked {
  animation: none !important;
  z-index: 4;
  opacity: 1;
}

.fries-rain__fry--fall {
  animation: fries-fall-down var(--fries-duration, 4.2s) linear forwards;
}

@keyframes fries-fall-down {
  0% {
    transform: translateY(-56px) rotate(var(--fries-rotate-start, 0deg));
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(var(--fries-rotate-end, 180deg));
    opacity: 0.85;
  }
}

.fries-rain__fry--drift-right {
  animation: fries-drift-right var(--fries-duration, 3.8s) linear forwards;
}

.fries-rain__fry--drift-left {
  animation: fries-drift-left var(--fries-duration, 3.8s) linear forwards;
}

@keyframes fries-drift-right {
  0% {
    transform: translateX(0) rotate(var(--fries-rotate-start, -12deg));
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateX(120vw) rotate(var(--fries-rotate-end, 18deg));
    opacity: 0.9;
  }
}

@keyframes fries-drift-left {
  0% {
    transform: translateX(0) rotate(var(--fries-rotate-start, 12deg));
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateX(-120vw) rotate(var(--fries-rotate-end, -18deg));
    opacity: 0.9;
  }
}

@media (max-width: 768px) {
  .header {
    padding-top: max(var(--space-sm), env(safe-area-inset-top, 0px));
  }

  .fries-rain {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    width: 100%;
    min-height: 72px;
    height: clamp(72px, 18vw, 96px);
    margin: 0 0 var(--space-md);
    padding: 8px 0;
    overflow: visible;
    box-sizing: border-box;
    z-index: 5;
  }

  .hero {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    width: 100%;
  }
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2.75rem, 7vw, 5rem);
  max-width: var(--page-max);
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.hero__content {
  width: 100%;
  max-width: var(--content-max);
  position: relative;
  overflow: visible;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 4vw, 2.5rem);
}

.hero__content .hero__tag,
.hero__content .hero__title,
.hero__content .hero__subtitle {
  position: relative;
  z-index: 1;
}

.hero__tag {
  font-size: clamp(1.05rem, 1.5vw + 0.5rem, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--yellow);
  margin: 0 0 clamp(0.25rem, 0.6vw, 0.4rem);
  animation: hero-tag-color 2.8s ease-in-out infinite;
}

@keyframes hero-tag-color {
  0%, 45% {
    color: var(--yellow);
    text-shadow: 0 0 14px rgba(var(--yellow-rgb), 0.5);
  }
  50%, 95% {
    color: var(--red);
    text-shadow: 0 0 14px rgba(var(--red-rgb), 0.5);
  }
  100% {
    color: var(--yellow);
    text-shadow: 0 0 14px rgba(var(--yellow-rgb), 0.5);
  }
}

.hero__title {
  margin: 0 0 clamp(0.25rem, 0.6vw, 0.4rem);
}

.hero__logo-flip {
  display: block;
  width: clamp(220px, 78vw, 560px);
  max-width: 100%;
  margin: 0 auto;
  perspective: 1600px;
  line-height: 0;
}

.hero__logo-flip-inner {
  display: grid;
  transform-style: preserve-3d;
  animation: hero-logo-flip 2.8s ease-in-out infinite;
  will-change: transform;
}

.hero__logo-face {
  grid-area: 1 / 1;
  display: block;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
}

.hero__logo-face--front {
  transform: translateZ(1px);
}

.hero__logo-face--back {
  display: grid;
  transform: rotateY(180deg) translateZ(1px);
}

.hero__logo-face--back .hero__logo {
  grid-area: 1 / 1;
}

.hero__logo-face--back .hero__logo--saylor-a {
  animation: hero-saylor-crossfade-a 2.8s ease-in-out infinite;
}

.hero__logo-face--back .hero__logo--saylor-b {
  animation: hero-saylor-crossfade-b 2.8s ease-in-out infinite;
}

@keyframes hero-saylor-crossfade-a {
  0%, 52% {
    opacity: 1;
  }
  68%, 100% {
    opacity: 0;
  }
}

@keyframes hero-saylor-crossfade-b {
  0%, 52% {
    opacity: 0;
  }
  68%, 100% {
    opacity: 1;
  }
}

.hero__logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.45));
}

@keyframes hero-logo-flip {
  0%, 42% {
    transform: rotateY(0deg);
  }
  50%, 92% {
    transform: rotateY(180deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.hero__subtitle {
  font-size: var(--text-lead);
  color: #ffffff;
  font-weight: 500;
  max-width: var(--text-max);
  margin: 0 auto;
  line-height: 1.4;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hero-video {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}

.hero-video__clip {
  line-height: 0;
  border-radius: 28px;
  overflow: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero-video__player {
  display: block;
  width: auto;
  height: auto;
  max-width: min(94vw, 760px);
  max-height: clamp(280px, 52vh, 560px);
  vertical-align: top;
}

@media (max-width: 768px) {
  .hero-video {
    width: 100%;
    max-width: 100%;
    padding-inline: var(--space-sm);
    box-sizing: border-box;
  }

  .hero-video__clip {
    width: 100%;
    max-width: 100%;
  }

  .hero-video__player {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: min(42vh, 360px);
    object-fit: contain;
  }
}

@media (max-width: 480px) {
  .hero-video__clip {
    border-radius: 22px;
  }

  .hero-video__player {
    max-height: min(36vh, 280px);
  }
}

/* Carousel */
.carousel {
  width: 100%;
  max-width: var(--carousel-max-width);
  padding: 0;
  margin: 0 0 clamp(1rem, 2.5vw, 1.75rem);
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform-origin: center center;
  will-change: transform;
}

.carousel__track-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 3%, black 97%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 3%, black 97%, transparent);
}

.carousel__track {
  display: flex;
  gap: var(--space-sm);
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0;
  justify-content: flex-start;
}

.carousel__slide {
  flex: 0 0 auto;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  line-height: 0;
}

.carousel__image {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  object-fit: contain;
  border-radius: var(--radius-md);
  transition: transform 0.5s ease, filter 0.5s ease, opacity 0.5s ease;
}

.carousel__slide:hover .carousel__image {
  transform: scale(1.03);
  filter: brightness(1.1);
}

.carousel__overlay {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(
    135deg,
    rgba(var(--yellow-rgb), 0.25) 0%,
    rgba(var(--red-rgb), 0.35) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.carousel__slide:hover .carousel__overlay {
  opacity: 1;
}

/* Sections */
.section {
  padding: var(--space-2xl) var(--space-md);
  position: relative;
  will-change: transform;
}

.section__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  text-align: center;
}

.section__inner--center {
  text-align: center;
}

.section__content {
  width: 100%;
  max-width: var(--content-max);
}

.section__visual {
  width: 100%;
  display: flex;
  justify-content: center;
}

.section__number {
  font-size: clamp(0.9375rem, 1.1vw + 0.4rem, 1.0625rem);
  font-weight: 600;
  color: var(--yellow);
  display: block;
  margin-bottom: var(--space-xs);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.section__title {
  font-size: var(--text-title);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.section__text {
  font-size: var(--text-body);
  color: var(--text-secondary);
  font-weight: 500;
  max-width: var(--text-max);
  margin: 0 auto;
  line-height: 1.7;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.section__text code {
  font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.45);
  padding: 3px 10px;
  border-radius: 6px;
  color: var(--yellow);
  font-weight: 600;
}

.section--alt .section__content {
  margin: 0 auto;
}

/* Poem */
.section--poem {
  padding: clamp(1.75rem, 4.5vw, 3rem) var(--space-md) clamp(4rem, 10vh, 7rem);
  position: relative;
}

.poem-notes {
  position: absolute;
  inset: -3% -4%;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}

.poem-note {
  position: absolute;
  font-size: clamp(1.1rem, 2.8vw, 1.85rem);
  color: var(--yellow);
  opacity: 0.45;
  text-shadow: 0 0 16px rgba(var(--yellow-rgb), 0.5);
  animation: note-float 4s ease-in-out infinite;
  line-height: 1;
}

.poem-note--1 { top: 4%; left: 3%; animation-delay: 0s; }
.poem-note--2 { top: 12%; right: 4%; animation-delay: -0.8s; animation-duration: 3.5s; }
.poem-note--2, .poem-note--5, .poem-note--9, .poem-note--14 { font-size: clamp(1.45rem, 3.5vw, 2.35rem); }
.poem-note--3 { top: 28%; left: 1%; animation-delay: -1.6s; animation-duration: 4.5s; }
.poem-note--4 { top: 38%; right: 2%; animation-delay: -2.4s; }
.poem-note--5 { top: 50%; left: 5%; animation-delay: -1.2s; }
.poem-note--6 { top: 58%; right: 6%; animation-delay: -2s; animation-duration: 3.8s; }
.poem-note--7 { top: 68%; left: 2%; animation-delay: -0.4s; font-size: clamp(0.95rem, 2.2vw, 1.4rem); opacity: 0.38; }
.poem-note--8 { top: 22%; left: 12%; animation-delay: -1.9s; color: #ff6b5a; text-shadow: 0 0 14px rgba(var(--red-rgb), 0.45); }
.poem-note--9 { top: 32%; right: 14%; animation-delay: -0.6s; }
.poem-note--10 { top: 44%; left: 14%; animation-delay: -2.8s; animation-duration: 5s; font-size: clamp(0.9rem, 2vw, 1.3rem); opacity: 0.32; }
.poem-note--11 { top: 52%; right: 12%; animation-delay: -1.4s; }
.poem-note--12 { top: 62%; left: 16%; animation-delay: -3.2s; font-size: clamp(0.95rem, 2.2vw, 1.4rem); opacity: 0.38; }
.poem-note--13 { top: 72%; right: 3%; animation-delay: -0.9s; color: #ff6b5a; text-shadow: 0 0 14px rgba(var(--red-rgb), 0.45); }
.poem-note--14 { top: 78%; left: 8%; animation-delay: -2.1s; }
.poem-note--15 { top: 8%; left: 18%; animation-delay: -1.7s; font-size: clamp(0.9rem, 2vw, 1.3rem); opacity: 0.34; }
.poem-note--16 { top: 86%; right: 10%; animation-delay: -3.5s; animation-duration: 4.2s; }

.poem-notes--inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.poem-notes--inner .poem-note {
  opacity: 0.28;
  font-size: clamp(0.85rem, 2vw, 1.25rem);
}

.poem-note--in1 { top: 6%; left: 7%; animation-delay: -0.3s; }
.poem-note--in2 { top: 14%; right: 9%; animation-delay: -1.1s; animation-duration: 3.6s; font-size: clamp(1rem, 2.4vw, 1.45rem); }
.poem-note--in3 { top: 26%; left: 5%; animation-delay: -2s; opacity: 0.22; }
.poem-note--in4 { top: 38%; right: 6%; animation-delay: -0.7s; color: #ff6b5a; text-shadow: 0 0 12px rgba(var(--red-rgb), 0.35); }
.poem-note--in5 { top: 52%; left: 8%; animation-delay: -1.8s; animation-duration: 4.8s; }
.poem-note--in6 { top: 64%; right: 7%; animation-delay: -2.6s; font-size: clamp(1rem, 2.4vw, 1.45rem); }
.poem-note--in7 { top: 72%; left: 12%; animation-delay: -1.4s; opacity: 0.22; }
.poem-note--in8 { top: 82%; right: 11%; animation-delay: -3.1s; animation-duration: 3.4s; }

.poem-note--in3, .poem-note--in7 {
  animation-name: note-float-alt;
}

@keyframes note-float {
  0%, 100% { transform: translateY(0) rotate(-10deg); opacity: 0.32; }
  50% { transform: translateY(-16px) rotate(10deg); opacity: 0.62; }
}

@keyframes note-float-alt {
  0%, 100% { transform: translateY(0) rotate(8deg) scale(1); }
  50% { transform: translateY(-10px) rotate(-6deg) scale(1.08); }
}

.poem-note--3, .poem-note--7, .poem-note--11, .poem-note--15 {
  animation-name: note-float-alt;
}

.section__content--poem {
  max-width: min(44rem, 94vw);
  text-align: center;
  position: relative;
  z-index: 2;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 4vw, 2.5rem) clamp(0.35rem, 1vw, 0.65rem);
  overflow: visible;
}

.section__content--poem::after {
  content: none;
}

.section__content--poem .section__title--poem,
.section__content--poem .poem {
  position: relative;
  z-index: 1;
}

.section__title--poem {
  color: #ffffff;
  font-size: clamp(2.5rem, 6.5vw + 0.5rem, 4.5rem);
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
  line-height: 1.1;
}

.tragedy-title {
  position: relative;
  overflow: visible;
}

.tragedy-title__inner {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.1rem, 0.5vw, 0.25rem);
}

.tragedy-title__row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.28em;
}

.tragedy-title__row--bottom {
  gap: clamp(0.15rem, 0.8vw, 0.35rem);
}

.tragedy-title__shard {
  display: inline-block;
  transform-origin: center center;
  will-change: transform;
}

.tragedy-title__crack {
  display: inline-flex;
  align-items: center;
  width: clamp(0.6rem, 1.6vw, 0.95rem);
  height: clamp(2.75rem, 7vw, 4.25rem);
  opacity: 0;
  transform: scaleY(0.2);
  transform-origin: center top;
}

.tragedy-title__crack-svg {
  width: 100%;
  height: 100%;
}

.tragedy-title--play .tragedy-title__inner {
  animation: tragedy-title-quake 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.tragedy-title--play .tragedy-title__shard--it {
  animation: tragedy-break-it 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.tragedy-title--play .tragedy-title__shard--s {
  animation: tragedy-break-s 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.38s both;
}

.tragedy-title--play .tragedy-title__shard--a {
  animation: tragedy-break-a 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both;
}

.tragedy-title--play .tragedy-title__shard--trag {
  animation: tragedy-break-trag 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.48s both;
}

.tragedy-title--play .tragedy-title__shard--edy {
  animation: tragedy-break-edy 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.52s both;
}

.tragedy-title--play .tragedy-title__crack {
  animation: tragedy-crack-reveal 0.55s ease-out 0.62s both;
}

.tragedy-title--broken .tragedy-title__shard--it {
  transform: translate(-0.1em, 0.08em) rotate(-5deg);
  opacity: 0.88;
  text-shadow:
    0 0 16px rgba(var(--red-rgb), 0.35),
    0 2px 20px rgba(0, 0, 0, 0.45);
}

.tragedy-title--broken .tragedy-title__shard--s {
  transform: translate(0.12em, 0.14em) rotate(4deg);
  opacity: 0.82;
}

.tragedy-title--broken .tragedy-title__shard--a {
  transform: translate(0.04em, 0.22em) rotate(-8deg) scale(0.96);
  opacity: 0.78;
}

.tragedy-title--broken .tragedy-title__shard--trag {
  transform: translate(-0.18em, 0.16em) rotate(-7deg);
  opacity: 0.9;
  text-shadow:
    0 0 22px rgba(var(--red-rgb), 0.4),
    0 2px 24px rgba(0, 0, 0, 0.5);
}

.tragedy-title--broken .tragedy-title__shard--edy {
  transform: translate(0.2em, 0.18em) rotate(6deg);
  opacity: 0.86;
}

.tragedy-title--broken .tragedy-title__crack {
  opacity: 1;
  transform: scaleY(1);
}

.tragedy-title--broken .tragedy-title__inner {
  animation: tragedy-title-ache 4.5s ease-in-out 1.4s infinite;
}

@keyframes tragedy-title-quake {
  0%, 100% { transform: translate(0, 0); filter: none; }
  8% { transform: translate(-3px, 2px) rotate(-0.6deg); filter: drop-shadow(2px 0 0 rgba(var(--red-rgb), 0.5)); }
  16% { transform: translate(4px, -2px) rotate(0.8deg); filter: drop-shadow(-2px 0 0 rgba(255, 255, 255, 0.35)); }
  24% { transform: translate(-5px, 1px) rotate(-1deg); }
  32% { transform: translate(5px, 3px) rotate(1.2deg); filter: drop-shadow(3px 0 0 rgba(var(--red-rgb), 0.55)); }
  40% { transform: translate(-4px, -3px) rotate(-0.9deg); }
  48% { transform: translate(6px, 2px) rotate(1deg); }
  56% { transform: translate(-2px, 0) rotate(-0.4deg); filter: none; }
}

@keyframes tragedy-break-it {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  35% { transform: translate(-0.04em, 0.04em) rotate(-2deg); }
  100% { transform: translate(-0.1em, 0.08em) rotate(-5deg); opacity: 0.88; }
}

@keyframes tragedy-break-s {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  40% { transform: translate(0.06em, 0.08em) rotate(2deg); }
  100% { transform: translate(0.12em, 0.14em) rotate(4deg); opacity: 0.82; }
}

@keyframes tragedy-break-a {
  0% { transform: translate(0, 0) rotate(0) scale(1); opacity: 1; }
  45% { transform: translate(0.02em, 0.12em) rotate(-4deg) scale(0.98); }
  100% { transform: translate(0.04em, 0.22em) rotate(-8deg) scale(0.96); opacity: 0.78; }
}

@keyframes tragedy-break-trag {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; filter: none; }
  30% { transform: translate(-0.08em, 0.06em) rotate(-3deg); filter: drop-shadow(0 0 8px rgba(var(--red-rgb), 0.5)); }
  100% { transform: translate(-0.18em, 0.16em) rotate(-7deg); opacity: 0.9; }
}

@keyframes tragedy-break-edy {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  35% { transform: translate(0.1em, 0.08em) rotate(3deg); }
  100% { transform: translate(0.2em, 0.18em) rotate(6deg); opacity: 0.86; }
}

@keyframes tragedy-crack-reveal {
  0% { opacity: 0; transform: scaleY(0.15); }
  60% { opacity: 1; transform: scaleY(1.08); }
  100% { opacity: 1; transform: scaleY(1); }
}

@keyframes tragedy-title-ache {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(0, 1px); }
}

.poem {
  text-align: center;
  max-width: min(38rem, 100%);
  margin: 0 auto;
}

.poem__stanza {
  margin-bottom: clamp(1rem, 2.5vw, 1.35rem);
}

.poem__stanza:last-child {
  margin-bottom: 0;
}

.poem__stanza:last-child .poem__line:last-child {
  padding-bottom: 0;
}

.poem__line {
  font-size: clamp(1.0625rem, 1.2vw + 0.55rem, 1.3125rem);
  font-weight: 500;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.22);
  margin: 0;
  padding: clamp(0.15rem, 0.5vw, 0.35rem) 0;
  text-align: center;
  opacity: 0.25;
  transform: translateY(10px);
  filter: blur(1px);
  transition:
    opacity 0.45s ease,
    color 0.45s ease,
    transform 0.45s ease,
    filter 0.45s ease,
    text-shadow 0.45s ease;
}

.poem__line--revealed {
  opacity: 0.72;
  color: rgba(255, 255, 255, 0.82);
  transform: translateY(0);
  filter: blur(0);
}

.poem__line--active {
  opacity: 1;
  color: #ffffff;
  font-weight: 600;
  text-shadow:
    0 0 24px rgba(255, 255, 255, 0.35),
    0 2px 12px rgba(0, 0, 0, 0.4);
  transform: translateY(0) scale(1.02);
  filter: blur(0);
}

@media (max-width: 480px) {
  .poem__line {
    font-size: clamp(0.975rem, 3.5vw, 1.125rem);
    line-height: 1.7;
  }

  .section__content--poem {
    padding: clamp(1rem, 3.5vw, 1.5rem) clamp(1.25rem, 4vw, 1.75rem) clamp(0.25rem, 0.8vw, 0.5rem);
  }

  .poem-notes--inner .poem-note {
    opacity: 0.22;
  }
}

@media (prefers-reduced-motion: reduce) {
  .poem__line {
    opacity: 1;
    color: #ffffff;
    transform: none;
    filter: none;
  }

  .poem-note {
    animation: none;
  }

  .tragedy-title--broken .tragedy-title__inner {
    animation: none;
  }
}

/* Holo card visual */
.holo-card {
  aspect-ratio: 1;
  width: min(360px, 70vw);
  max-width: 400px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  animation: holo-float 5s ease-in-out infinite;
}

@keyframes holo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.holo-card__ring {
  position: absolute;
  width: 70%;
  height: 70%;
  border: 3px solid rgba(var(--yellow-rgb), 0.75);
  border-radius: 50%;
  box-shadow:
    0 0 20px rgba(var(--yellow-rgb), 0.4),
    inset 0 0 20px rgba(var(--yellow-rgb), 0.15);
  animation: spin 8s linear infinite;
}

.holo-card__ring--inner {
  width: 45%;
  height: 45%;
  border-width: 2px;
  border-color: rgba(var(--red-rgb), 0.8);
  box-shadow:
    0 0 24px rgba(var(--red-rgb), 0.45),
    inset 0 0 16px rgba(var(--red-rgb), 0.2);
  animation-direction: reverse;
  animation-duration: 6s;
}

.holo-card__core {
  width: 22%;
  height: 22%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), var(--red));
  box-shadow:
    0 0 50px rgba(var(--yellow-rgb), 0.8),
    0 0 80px rgba(var(--red-rgb), 0.5);
  animation: pulse-core 1.8s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse-core {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 40px rgba(var(--yellow-rgb), 0.7),
      0 0 60px rgba(var(--red-rgb), 0.4);
  }
  50% {
    transform: scale(1.35);
    box-shadow:
      0 0 70px rgba(var(--yellow-rgb), 1),
      0 0 100px rgba(var(--red-rgb), 0.7);
  }
}

/* Pulse rings */
#pulse.section {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(5rem, 16vh, 9rem);
  overflow: visible;
}

#pulse .section__visual {
  margin-bottom: clamp(1.5rem, 5vh, 3rem);
  overflow: visible;
}

.pulse-stage {
  position: relative;
  width: clamp(280px, 48vw, 440px);
  height: clamp(280px, 48vw, 440px);
  margin: 0 auto;
  overflow: visible;
}

.pulse-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pulse-quotes {
  position: absolute;
  inset: -18% -14%;
  pointer-events: none;
  overflow: visible;
  z-index: 20;
}

.pulse-quote {
  position: absolute;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(0.8125rem, 2.1vw, 1.125rem);
  letter-spacing: 0;
  line-height: 1.35;
  max-width: min(22rem, 78vw);
  white-space: normal;
  text-align: center;
  color: #fff44f;
  text-shadow:
    0 0 12px rgba(255, 244, 79, 1),
    0 0 28px rgba(255, 230, 40, 0.85),
    0 0 48px rgba(255, 210, 0, 0.45),
    0 2px 10px rgba(0, 0, 0, 0.75);
  animation: stock-tick-pop 2.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform, opacity;
  z-index: 1;
}

.pulse-ring {
  position: absolute;
  inset: 0;
  border: 3px solid rgba(var(--yellow-rgb), 0.85);
  border-radius: 50%;
  box-shadow:
    0 0 30px rgba(var(--yellow-rgb), 0.5),
    inset 0 0 20px rgba(var(--yellow-rgb), 0.15);
  animation: pulse-expand 2.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.pulse-ring:nth-child(2) {
  border-color: rgba(var(--red-rgb), 0.75);
  box-shadow:
    0 0 30px rgba(var(--red-rgb), 0.45),
    inset 0 0 20px rgba(var(--red-rgb), 0.15);
  animation-delay: 0.73s;
}

.pulse-ring:nth-child(3) {
  animation-delay: 1.46s;
}

@keyframes pulse-expand {
  0% {
    transform: scale(0.35);
    opacity: 1;
  }
  70% {
    opacity: 0.6;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

.pulse-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  overflow: visible;
  animation: pulse-center-beat 1.8s ease-in-out infinite;
}

.pulse-face {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
}

.pulse-face__img {
  display: block;
  width: clamp(120px, 22vw, 180px);
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  animation: pulse-face-glow 1.4s ease-in-out infinite;
}

@keyframes pulse-face-glow {
  0%, 100% {
    opacity: 1;
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.65);
  }
}

@keyframes pulse-center-beat {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
  }
}

/* Social links */
.section--social {
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section--cta {
  padding-top: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: var(--space-xl);
}

.social-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--action-cluster-gap);
  width: 100%;
  max-width: var(--action-cluster-width);
  margin: 0 auto;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--action-icon-size);
  height: var(--action-icon-size);
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  text-decoration: none;
  color: var(--yellow);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.social-link:hover {
  transform: translateY(-8px) scale(1.06);
  color: #ffffff;
}

.social-link:active {
  transform: translateY(-2px) scale(1.02);
  color: #ffffff;
}

.social-link__icon {
  width: 100%;
  height: 100%;
  color: var(--yellow);
  filter: drop-shadow(0 0 12px rgba(var(--yellow-rgb), 0.55));
  transition:
    color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.social-link:hover .social-link__icon {
  color: #ffffff;
  filter:
    drop-shadow(0 0 20px rgba(255, 255, 255, 0.85))
    drop-shadow(0 0 36px rgba(var(--yellow-rgb), 0.45));
  transform: scale(1.12) rotate(-3deg);
}

.social-link:active .social-link__icon {
  color: #ffffff;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.65));
  transform: scale(1.05);
}

/* CTA */
.cta {
  text-align: center;
  width: 100%;
  max-width: var(--action-cluster-width);
  margin: 0 auto;
}

.cta__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.15rem);
  width: 100%;
  padding: clamp(1.5rem, 3.5vw, 2.25rem) clamp(1.25rem, 3vw, 2rem);
  border-radius: clamp(1.25rem, 3vw, 2rem);
  background: rgba(6, 3, 2, 0.16);
  backdrop-filter: blur(6px) saturate(1.05);
  -webkit-backdrop-filter: blur(6px) saturate(1.05);
  border: none;
  box-shadow: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta__card-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(
    135deg,
    rgba(var(--yellow-rgb), 0.95),
    rgba(var(--red-rgb), 0.85),
    rgba(var(--yellow-rgb), 0.95)
  );
  background-size: 220% 220%;
  animation: cta-border-flow 5s ease infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.cta__card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    ellipse 85% 90% at 50% 50%,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.06) 45%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
}

.cta__card::after {
  content: '';
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgba(255, 255, 255, 0.07) 50%,
    transparent 58%
  );
  transform: translateX(-120%);
  animation: cta-shimmer 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.cta__card:hover {
  transform: translateY(-6px);
}

@keyframes cta-border-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes cta-shimmer {
  0%, 72%, 100% { transform: translateX(-120%); }
  78% { transform: translateX(120%); }
}

.cta__heading {
  margin: 0;
  position: relative;
  z-index: 3;
  font-size: clamp(0.8125rem, 1.6vw + 0.2rem, 1rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  text-shadow: 0 0 20px rgba(var(--yellow-rgb), 0.45);
}

.cta__heading::after {
  content: '';
  display: block;
  width: clamp(3.5rem, 14vw, 5.5rem);
  height: 2px;
  margin: clamp(0.45rem, 1vw, 0.65rem) auto 0;
  background: linear-gradient(90deg, transparent, var(--yellow), var(--red), transparent);
  border-radius: 2px;
  opacity: 0.9;
}

.cta__label {
  display: block;
  width: 100%;
  margin: 0;
  padding: clamp(0.5rem, 1.2vw, 0.7rem) clamp(0.35rem, 0.9vw, 0.75rem);
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(var(--yellow-rgb), 0.28);
  border-radius: var(--radius-sm);
  cursor: inherit;
  color: var(--yellow);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  position: relative;
  z-index: 3;
  overflow: hidden;
  transition:
    color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
  box-shadow: inset 0 0 20px rgba(var(--yellow-rgb), 0.06);
}

.cta__label-text {
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1;
}

.cta__label:hover {
  color: #ffffff;
  transform: translateY(-2px);
  border-color: rgba(var(--yellow-rgb), 0.55);
  background: rgba(0, 0, 0, 0.48);
  box-shadow:
    inset 0 0 24px rgba(var(--yellow-rgb), 0.12),
    0 0 24px rgba(var(--yellow-rgb), 0.2);
}

.cta__label:active {
  transform: translateY(0) scale(0.99);
}

.cta__label--copied {
  color: #ffffff;
  border-color: rgba(var(--yellow-rgb), 0.7);
  background: rgba(var(--yellow-rgb), 0.12);
  box-shadow:
    inset 0 0 28px rgba(var(--yellow-rgb), 0.2),
    0 0 32px rgba(var(--yellow-rgb), 0.35);
  transform: scale(1.02);
}

.cta__label--copied .cta__label-text {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: clamp(0.875rem, 3vw + 0.25rem, 1.5rem) !important;
}

.cta__image-link {
  display: block;
  position: relative;
  z-index: 3;
  line-height: 0;
  text-decoration: none;
}

.cta__image {
  display: block;
  width: var(--action-logo-width);
  max-width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
  opacity: 1;
  filter: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta__image-link:hover .cta__image,
.cta__card:hover .cta__image {
  transform: translateY(-4px) scale(1.04);
}

/* Footer */
.footer {
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
}

.footer p {
  font-size: clamp(0.9375rem, 1.1vw + 0.4rem, 1.0625rem);
  font-weight: 500;
  color: var(--text-secondary);
}

.footer__line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--yellow), var(--red));
  margin: var(--space-sm) auto 0;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(70px) scale(0.94);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Scroll-driven zoom on sections (hero carousel only; main sections stay static) */
[data-section]:not([data-poem-section]):not(.section--cta):not(.section--social):not(#pulse) {
  transform-origin: center center;
  will-change: transform, opacity;
}

@media (min-width: 1024px) {
  .carousel__track {
    gap: clamp(0.5rem, 0.65vw, 0.75rem);
  }
}

@media (max-width: 768px) {
  :root {
    --carousel-viewport-ratio: 0.36;
    --carousel-min: 140px;
    --carousel-max-visible: 2.25;
  }

  .carousel__track {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  :root {
    --carousel-viewport-ratio: 0.52;
    --carousel-min: 168px;
    --carousel-max-visible: 1.4;
  }

  .header {
    padding: var(--space-lg) var(--space-sm);
  }

  .section {
    padding: var(--space-xl) var(--space-sm);
  }
}

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

  html {
    scroll-behavior: auto;
  }

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

  .stock-tick,
  .touch-candle {
    animation: none;
    opacity: 0;
  }

  .hero__logo-flip-inner {
    animation: none;
    transform: none;
  }

  .hero__logo-face--back {
    opacity: 0;
  }

  .hero__logo--saylor-b {
    opacity: 0;
    animation: none;
  }

  .hero__tag {
    animation: none;
    color: var(--yellow);
    text-shadow: 0 0 14px rgba(var(--yellow-rgb), 0.5);
  }

  .fries-rain__fry {
    animation: none;
    opacity: 0;
  }
}
