:root {
  --bg: #08140e;
  --bg-soft: #102319;
  --card: rgba(17, 34, 24, 0.72);
  --line: rgba(202, 255, 205, 0.18);
  --text: #f7f5ed;
  --muted: #bfd7c0;
  --green-1: #9be277;
  --green-2: #5abf89;
  --green-3: #224d36;
  --gold: #f1d58a;
  --rose: #ffbdb8;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius: 28px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(90,191,137,0.18), transparent 22%),
    radial-gradient(circle at 90% 20%, rgba(241,213,138,0.09), transparent 18%),
    radial-gradient(circle at 50% 60%, rgba(155,226,119,0.09), transparent 24%),
    linear-gradient(180deg, #06110b 0%, #0d1c14 30%, #08120d 100%);
  overflow-x: hidden;
}

body.locked {
  overflow: hidden;
}

body.locked > :not(.unlock-overlay):not(script):not(audio) {
  opacity: 0;
  visibility: hidden;
  filter: blur(22px);
  pointer-events: none;
}

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

.unlock-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 18% 16%, rgba(155,226,119,0.18), transparent 26%),
    radial-gradient(circle at 86% 20%, rgba(241,213,138,0.14), transparent 24%),
    linear-gradient(180deg, rgba(5, 14, 10, 0.96), rgba(7, 18, 13, 0.98));
  backdrop-filter: blur(16px) saturate(1.18);
  transition: opacity .6s ease, visibility .6s ease;
}

.unlock-overlay::before,
.unlock-overlay::after {
  content: "";
  position: absolute;
  inset: -18%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.unlock-overlay::before {
  background:
    conic-gradient(from 120deg at 30% 30%, rgba(155,226,119,0.16), transparent 30%),
    conic-gradient(from 300deg at 72% 28%, rgba(241,213,138,0.14), transparent 36%);
  filter: blur(26px);
  animation: unlockFieldSpin 14s linear infinite;
}

.unlock-overlay::after {
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08), transparent 60%);
  animation: unlockFieldPulse 4.2s ease-in-out infinite;
}

.unlock-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.unlock-bg-glow {
  position: absolute;
  width: min(70vw, 820px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155,226,119,0.2), rgba(241,213,138,0.08), transparent 72%);
  filter: blur(20px);
  animation: unlockGlowDrift 10s ease-in-out infinite alternate;
}

.unlock-card {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  padding: 30px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.14);
  background:
    linear-gradient(170deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02)),
    rgba(11, 24, 17, 0.82);
  box-shadow: 0 34px 88px rgba(0,0,0,0.45);
  text-align: center;
  transform: translateY(0);
  transition: transform .35s ease;
  overflow: hidden;
}

.unlock-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, transparent 0 42%, rgba(255,255,255,0.22) 50%, transparent 58% 100%);
  transform: translateX(-135%);
  pointer-events: none;
}

.unlock-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}

.unlock-card.is-error {
  animation: unlockShake .36s ease;
}

.unlock-overlay.is-celebrating .unlock-card::before {
  animation: unlockCardSweep .92s ease forwards;
}

.unlock-kicker {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .74rem;
  color: #d4ebcc;
}

.unlock-card h2 {
  margin: 8px 0 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: .95;
}

.unlock-card p {
  margin: 0;
  color: var(--muted);
}

.unlock-form {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.unlock-input {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #f7f5ed;
  padding: 12px 14px;
  font: inherit;
  letter-spacing: .22em;
  text-align: center;
}

.unlock-input:focus {
  outline: none;
  border-color: rgba(241,213,138,0.56);
  box-shadow: 0 0 0 3px rgba(241,213,138,0.14);
}

.unlock-button {
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 700;
  color: #f4f3eb;
  background: linear-gradient(135deg, rgba(155,226,119,0.3), rgba(241,213,138,0.22));
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease;
}

.unlock-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.24);
}

.unlock-status {
  margin-top: 14px;
  min-height: 20px;
  color: #d3e8cf;
  letter-spacing: .04em;
}

.unlock-status.is-error {
  color: #ffd3ca;
}

.unlock-status.is-success {
  color: #f6ffd6;
  text-shadow: 0 0 18px rgba(241,213,138,0.38);
}

.unlock-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.unlock-piece {
  position: absolute;
  top: -12px;
  width: 10px;
  height: 16px;
  border-radius: 2px;
  opacity: .96;
  animation: unlockConfettiFall 1.5s linear forwards;
}

.grain,
.floating-leaves {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.grain {
  opacity: 0.08;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.55) 0.7px, transparent 0.8px);
  background-size: 16px 16px;
  mix-blend-mode: soft-light;
}

.floating-leaves::before,
.floating-leaves::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50% 0 50% 50%;
  filter: blur(18px);
  opacity: 0.14;
  background: radial-gradient(circle at 30% 30%, #a4eb8e, #4b8558 70%, transparent 72%);
  animation: drift 14s ease-in-out infinite alternate;
}

.floating-leaves::before { top: 10%; left: -70px; }
.floating-leaves::after { bottom: 12%; right: -60px; animation-delay: -4s; }

.section {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  padding: 26px 0 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(15, 30, 22, 0.55);
  backdrop-filter: blur(18px);
  padding: 14px 18px;
  border-radius: 999px;
}

.brand {
  text-transform: lowercase;
  letter-spacing: 0.24em;
  font-size: 0.76rem;
  color: var(--muted);
}

.badge {
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(155,226,119,0.16), rgba(241,213,138,0.12));
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  padding: 54px 0 20px;
}

.eyebrow,
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: #d5efcf;
}

.hero h1,
.section-heading h2,
.memory-card h3,
.timeline-item h3 {
  font-family: 'Cormorant Garamond', serif;
}

.hero h1 {
  font-size: clamp(3.6rem, 9vw, 7.2rem);
  line-height: 0.92;
  margin: 14px 0 18px;
  font-weight: 700;
  text-wrap: balance;
}

.hero-highlight {
  color: var(--green-1);
  text-shadow: 0 0 24px rgba(155,226,119,0.22);
}

.hero-title .hero-line {
  display: block;
  opacity: 0;
  transform: translateY(28px) scale(.98);
  filter: blur(9px);
}

.hero-copy.visible .hero-title .hero-line {
  animation: heroLineIn 1.08s cubic-bezier(.16,.88,.2,1) forwards;
}

.hero-copy.visible .hero-title .hero-line:nth-child(1) { animation-delay: .12s; }
.hero-copy.visible .hero-title .hero-line:nth-child(2) { animation-delay: .34s; }
.hero-copy.visible .hero-title .hero-line:nth-child(3) { animation-delay: .58s; }
.hero-copy.visible .hero-title .hero-line:nth-child(4) { animation-delay: .82s; }

.lead {
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  padding: 14px 22px;
  border-radius: 999px;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  border: 1px solid transparent;
}

.btn:hover { transform: translateY(-3px); }

.btn.primary {
  background: linear-gradient(135deg, var(--green-1), var(--green-2));
  color: #07120c;
  font-weight: 800;
  box-shadow: 0 20px 45px rgba(90,191,137,0.28);
}

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

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.halo,
.moon {
  position: absolute;
  border-radius: 50%;
}

.halo {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(155,226,119,.2) 0%, rgba(155,226,119,0.04) 50%, transparent 72%);
  animation: pulseHalo 6s ease-in-out infinite;
}

.moon {
  inset: 36px auto auto 60px;
  width: 92px;
  height: 92px;
  background: radial-gradient(circle at 28% 28%, #fff7cf 0%, #f0e3a5 45%, #b19f66 100%);
  box-shadow: 0 0 34px rgba(255, 239, 174, 0.18);
}

.cake-card {
  width: min(420px, 100%);
  padding: 30px 30px 26px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 243, 198, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    rgba(16, 35, 25, 0.6);
  border: 1px solid rgba(255,255,255,0.11);
  backdrop-filter: blur(18px);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
  position: relative;
  overflow: hidden;
}

.cake-card::before {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(241,213,138,0.18), transparent 70%);
}

.cake-card::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}

.cake-title {
  text-align: center;
  font-family: 'Great Vibes', cursive;
  font-size: 2.3rem;
  color: #fff2cf;
  margin-bottom: 10px;
}

.cake-stage {
  height: 300px;
  position: relative;
  margin-top: 18px;
  filter: drop-shadow(0 28px 30px rgba(0, 0, 0, 0.24));
}

.cake-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  width: 326px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,0.68), rgba(255,255,255,0.14) 54%, rgba(255,255,255,0.02) 70%),
    linear-gradient(180deg, rgba(250, 245, 232, 0.92), rgba(196, 206, 192, 0.52));
  box-shadow:
    inset 0 3px 4px rgba(255,255,255,0.38),
    0 10px 16px rgba(0,0,0,0.18);
}

.candle {
  position: absolute;
  top: 34px;
  width: 16px;
  height: 72px;
  border-radius: 10px;
  background: repeating-linear-gradient(180deg, #e9fff0 0 8px, #9be277 8px 16px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22), 0 8px 14px rgba(0,0,0,0.18);
}

.c1 { left: 35%; }
.c2 { left: calc(50% - 8px); }
.c3 { left: 62%; }

.flame {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 28px;
  border-radius: 55% 45% 50% 50%;
  background: radial-gradient(circle at 50% 38%, #fffbe8 0%, #ffd96f 32%, #ff8c3f 100%);
  box-shadow: 0 0 22px rgba(255, 187, 67, 0.56);
  animation: flicker 1.1s ease-in-out infinite alternate;
}

.candle.is-out .flame {
  opacity: 0;
  transform: translateX(-50%) translateY(-8px) scale(0.4);
  transition: opacity .25s ease, transform .25s ease;
}

.smoke {
  position: absolute;
  left: 50%;
  top: -18px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  transform: translateX(-50%) scale(0.4);
  background: radial-gradient(circle, rgba(230,236,232,0.75), rgba(230,236,232,0.06) 68%, transparent 72%);
  filter: blur(2px);
  opacity: 0;
  pointer-events: none;
}

.candle.is-out .smoke {
  animation: smokeRise 1.4s ease-out forwards;
}

.flame::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  transform: translateX(-50%);
  width: 7px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  filter: blur(0.5px);
}

.cake-top, .cake-mid, .cake-bottom {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
}

.cake-top::before, .cake-mid::before, .cake-bottom::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 8px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.18));
  opacity: 0.72;
}

.cake-top::after, .cake-mid::after, .cake-bottom::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 0;
  height: 20px;
  background:
    radial-gradient(circle at 8% 100%, #fff7e8 0 8px, transparent 8.5px),
    radial-gradient(circle at 26% 100%, #fff7e8 0 10px, transparent 10.5px),
    radial-gradient(circle at 46% 100%, #fff7e8 0 8px, transparent 8.5px),
    radial-gradient(circle at 65% 100%, #fff7e8 0 10px, transparent 10.5px),
    radial-gradient(circle at 84% 100%, #fff7e8 0 8px, transparent 8.5px);
}

.cake-top {
  bottom: 150px;
  width: 180px;
  height: 58px;
  background:
    linear-gradient(180deg, #fff7e1 0 26%, #f4deb0 26% 60%, #d6b36a 100%);
  box-shadow: 0 16px 22px rgba(0,0,0,0.12);
}
.cake-mid {
  bottom: 92px;
  width: 240px;
  height: 72px;
  background:
    linear-gradient(180deg, #efffd7 0 24%, #b9eb92 24% 68%, #86c96f 68% 100%);
  box-shadow: 0 18px 24px rgba(0,0,0,0.14);
}
.cake-bottom {
  bottom: 26px;
  width: 300px;
  height: 86px;
  background:
    linear-gradient(180deg, #fff8e7 0 22%, #f0ddb0 22% 70%, #d6bc72 70% 100%);
  box-shadow:
    inset 0 8px 0 rgba(255,255,255,0.2),
    0 20px 28px rgba(0,0,0,0.16);
}

.ribbon {
  text-align: center;
  margin-top: 14px;
  color: #e9f2dd;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.cake-reset {
  display: block;
  margin: 14px auto 0;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.cake-reset:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}

.scroll-note {
  text-align: center;
  color: rgba(240,248,232,0.76);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-top: 8px;
}

.intro-grid,
.memory-layout {
  padding: 50px 0;
  display: grid;
  gap: 24px;
}

.intro-grid { grid-template-columns: 1fr 1.1fr; }
.memory-layout { grid-template-columns: 1.1fr 1fr 0.9fr; align-items: stretch; }

.quote-card,
.symbol-card,
.letter,
.prism-panel,
.skyline-card,
.memory-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.quote-card {
  min-height: 320px;
  padding: 34px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.quote-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
}

.script {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.15;
  color: #f7efdb;
  text-align: center;
}

.symbol-card {
  padding: 28px;
  min-height: 320px;
}

.mini-title {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #dbf2d8;
  margin-bottom: 22px;
}

.symbol-row {
  display: flex;
  gap: 22px;
  justify-content: space-around;
  align-items: end;
  min-height: 220px;
}

.fries-wrap, .ball-wrap, .handball-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.fries-wrap { width: 110px; height: 170px; }
.fries-box {
  position: absolute;
  bottom: 0;
  width: 100px;
  height: 82px;
  background: linear-gradient(180deg, #ff7a5d, #be2f2f);
  clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%);
  border-radius: 0 0 18px 18px;
  z-index: 2;
}

.fry {
  position: absolute;
  bottom: 68px;
  width: 14px;
  height: 82px;
  background: linear-gradient(180deg, #fff4b5, #f6be49);
  border-radius: 12px;
  transform-origin: bottom center;
  animation: fryDance 2.4s ease-in-out infinite;
  z-index: 1;
}
.fry-1 { left: 20px; animation-delay: 0s; }
.fry-2 { left: 34px; height: 92px; animation-delay: .2s; }
.fry-3 { left: 48px; height: 88px; animation-delay: .45s; }
.fry-4 { left: 62px; animation-delay: .15s; }
.fry-5 { left: 76px; height: 90px; animation-delay: .35s; }

.billiard-ball {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.82), rgba(255,255,255,0) 18%),
    radial-gradient(circle at 50% 50%, #2a2a2a 0%, #0a0a0a 70%);
  display: grid;
  place-items: center;
  font-size: 2.3rem;
  font-weight: 800;
  box-shadow: inset -16px -16px 24px rgba(255,255,255,0.03), 0 20px 30px rgba(0,0,0,.22);
}

.handball {
  width: 114px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 35%, rgba(255,255,255,.55), transparent 16%),
    repeating-radial-gradient(circle at center, transparent 0 21px, rgba(0,0,0,.18) 21px 22px),
    linear-gradient(135deg, #f8c568, #db7437);
  box-shadow: 0 20px 30px rgba(0,0,0,.22);
  position: relative;
}

.handball::before,
.handball::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(80, 32, 8, 0.26);
}

.section-heading {
  padding-top: 54px;
  padding-bottom: 20px;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  margin: 10px 0 0;
  line-height: 0.95;
}

.section-heading {
  position: relative;
}

.section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 110px;
  height: 1px;
  background: linear-gradient(90deg, rgba(241,213,138,0.9), rgba(155,226,119,0));
}

.time-portrait-section {
  padding: 10px 0 26px;
}

.time-portrait-card {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 22px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 14% 14%, rgba(155,226,119,0.12), transparent 24%),
    radial-gradient(circle at 86% 20%, rgba(241,213,138,0.1), transparent 22%),
    rgba(11, 24, 17, 0.74);
  box-shadow: var(--shadow);
}

.time-portrait-stage {
  --lens-x: 58%;
  --lens-y: 46%;
  --lens-size: 30%;
  position: relative;
  min-height: 460px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(8, 18, 12, 0.8);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.time-portrait-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--lens-x) var(--lens-y), rgba(255,255,255,0.12), transparent 32%),
    linear-gradient(120deg, transparent 0 44%, rgba(255,255,255,0.07) 50%, transparent 56% 100%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 4;
}

.time-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.time-photo-then {
  filter: saturate(0.88) contrast(0.98);
}

.time-photo-now-layer {
  position: absolute;
  inset: 0;
  clip-path: circle(var(--lens-size) at var(--lens-x) var(--lens-y));
  transition: clip-path .34s ease;
}

.time-photo-now {
  filter: saturate(1.06) contrast(1.04);
}

.time-portrait-lens {
  position: absolute;
  left: var(--lens-x);
  top: var(--lens-y);
  width: calc(var(--lens-size) * 2.1);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(242,247,224,0.78);
  box-shadow:
    0 0 0 12px rgba(255,255,255,0.05),
    0 0 24px rgba(241,213,138,0.32);
  z-index: 5;
  pointer-events: none;
  animation: timeLensPulse 4.8s ease-in-out infinite;
}

.time-portrait-label {
  position: absolute;
  z-index: 6;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(6, 17, 12, 0.52);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
}

.label-then { left: 16px; bottom: 14px; color: #d6ebd4; }
.label-now { right: 16px; top: 14px; color: #f5efdb; }

.time-portrait-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.time-portrait-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.time-portrait-controls {
  margin-top: 2px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  display: grid;
  gap: 12px;
}

.time-range-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #d8edd2;
}

.time-portrait-range {
  width: 100%;
  appearance: none;
  height: 10px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(112,186,132,0.62), rgba(241,213,138,0.72));
  outline: none;
}

.time-portrait-range::-webkit-slider-thumb {
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fffce8, #d3f0ba 60%, #8dbf85 100%);
  border: 1px solid rgba(255,255,255,0.62);
  box-shadow: 0 4px 16px rgba(0,0,0,0.28);
  cursor: pointer;
}

.time-portrait-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.time-portrait-button {
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  color: #f5f3ea;
  background: linear-gradient(135deg, rgba(155,226,119,0.22), rgba(241,213,138,0.18));
  cursor: pointer;
  transition: transform .24s ease, box-shadow .24s ease;
}

.time-portrait-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.time-portrait-button.is-playing {
  background: linear-gradient(135deg, rgba(241,213,138,0.24), rgba(155,226,119,0.18));
}

.time-portrait-note {
  color: #cde3cc;
  font-size: 0.84rem;
}

.time-flip-card {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 22px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 14%, rgba(155,226,119,0.14), transparent 26%),
    radial-gradient(circle at 88% 16%, rgba(241,213,138,0.12), transparent 24%),
    rgba(10, 22, 16, 0.76);
  box-shadow: var(--shadow);
}

.time-flip-shell {
  --mx: 0deg;
  --my: 0deg;
  position: relative;
  min-height: 470px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  perspective: 1800px;
  transform: rotateX(var(--mx)) rotateY(var(--my));
  transition: transform .25s ease;
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,0.08), transparent 24%),
    linear-gradient(150deg, rgba(13,30,22,0.95), rgba(8,18,13,0.94));
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.time-flip-core {
  position: relative;
  width: min(86%, 400px);
  aspect-ratio: 0.78;
  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.2,.9,.2,1);
}

.time-flip-drift {
  width: 100%;
  display: grid;
  place-items: center;
  animation: timeFlipFloat 6.2s ease-in-out infinite;
}

.time-flip-core.is-flipped {
  transform: rotateY(180deg);
}

.time-flip-face {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  overflow: hidden;
  backface-visibility: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 20px 48px rgba(0,0,0,0.34);
}

.time-flip-face::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.14), transparent 24%, transparent 72%, rgba(255,255,255,0.1));
  pointer-events: none;
}

.face-now {
  transform: rotateY(180deg);
}

.time-flip-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.face-then .time-flip-photo {
  filter: saturate(.9) contrast(.98);
}

.face-now .time-flip-photo {
  filter: saturate(1.06) contrast(1.04);
  object-position: center 22%;
}

.time-flip-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  border-radius: 999px;
  padding: 9px 14px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  color: #f1f5e7;
  background: rgba(7,16,12,0.52);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
}

.time-flip-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  pointer-events: none;
}

.ring-a {
  width: 420px;
  height: 420px;
  animation: timeRingSpin 18s linear infinite;
}

.ring-b {
  width: 290px;
  height: 290px;
  border-style: dashed;
  opacity: .65;
  animation: timeRingSpinReverse 14s linear infinite;
}

.time-flip-glint {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.time-flip-glint::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -18%;
  width: 42%;
  height: 200%;
  transform: rotate(18deg) translateX(-40%);
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.24), rgba(255,255,255,0));
  opacity: 0;
}

.time-flip-shell.is-glint .time-flip-glint::before {
  opacity: 1;
  animation: timeGlintPass 1s ease forwards;
}

.time-flip-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.time-flip-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.time-flip-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.time-flip-button {
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  color: #f5f3ea;
  background: linear-gradient(135deg, rgba(155,226,119,0.22), rgba(241,213,138,0.18));
  cursor: pointer;
  transition: transform .24s ease, box-shadow .24s ease;
}

.time-flip-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.time-flip-note {
  color: #cde3cc;
  font-size: .84rem;
}

.storybook-section {
  padding-bottom: 34px;
}

.storybook-shell {
  padding: 28px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(241,213,138,0.12), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    rgba(13, 28, 19, 0.74);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.storybook-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.storybook-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.storybook-actions {
  display: flex;
  gap: 10px;
}

.book-nav {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  cursor: pointer;
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}

.book-nav:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}

.book-nav:disabled {
  opacity: 0.42;
  cursor: default;
  transform: none;
}

.storybook-book {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: 28px;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  -ms-overflow-style: none;
}

.storybook-book::-webkit-scrollbar {
  display: none;
}

.storybook-book.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.storybook-book.storybook-rebuild {
  perspective: 2600px;
  overflow: hidden;
}

.storybook-book.storybook-rebuild .book-stage {
  overflow: hidden;
}

.storybook-book.storybook-rebuild .book-shadow {
  opacity: 0.16;
}

.storybook-book.storybook-rebuild .book-spine-core {
  opacity: 0.9;
}

.storybook-book.storybook-rebuild .flip-leaf {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform-origin: left center;
  will-change: transform;
  pointer-events: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.storybook-book.storybook-rebuild .leaf-face {
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

.storybook-book.storybook-rebuild .leaf-prev {
  transform: rotateY(-140deg);
  opacity: 1;
  z-index: 4;
}

.storybook-book.storybook-rebuild .leaf-current {
  transform: rotateY(0deg);
  opacity: 1;
  z-index: 6;
  pointer-events: auto;
}

.storybook-book.storybook-rebuild .leaf-next {
  transform: rotateY(0deg);
  opacity: 0.98;
  z-index: 5;
}

.storybook-book.storybook-rebuild .leaf-current.is-flipping-next {
  transform-origin: left center;
  animation: rebuildFlipNext 420ms cubic-bezier(.2,.72,.12,1);
}

.storybook-book.storybook-rebuild .leaf-prev.is-unflipping-prev {
  transform-origin: right center;
  animation: rebuildFlipPrev 420ms cubic-bezier(.2,.72,.12,1);
  z-index: 7;
}

@keyframes rebuildFlipNext {
  0% { transform: rotateY(0deg); }
  45% { transform: rotateY(-92deg); }
  100% { transform: rotateY(-178deg); }
}

@keyframes rebuildFlipPrev {
  0% { transform: rotateY(-178deg); }
  55% { transform: rotateY(-92deg); }
  100% { transform: rotateY(0deg); }
}

.storybook-book.storybook-virtual {
  perspective: 1200px;
}

.storybook-book.storybook-virtual .book-shadow {
  opacity: 0;
}

.storybook-book.storybook-virtual .book-spine-core {
  opacity: 0.84;
}

.storybook-book.storybook-virtual .virtual-slot {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: opacity 140ms linear;
  will-change: transform, opacity;
  pointer-events: none;
  contain: layout paint;
  backface-visibility: hidden;
}

.storybook-book.storybook-virtual .virtual-face {
  inset: 0;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.storybook-book.storybook-virtual .slot-prev {
  transform: translateX(-2.2%) rotateY(6deg) scale(0.992);
  opacity: 0.96;
  z-index: 4;
}

.storybook-book.storybook-virtual .slot-current {
  transform: translateX(1.1%) rotateY(0deg) scale(1);
  opacity: 1;
  z-index: 6;
  pointer-events: auto;
  transform-origin: left center;
}

.storybook-book.storybook-virtual .slot-next {
  transform: translateX(2.4%) rotateY(-6deg) scale(0.992);
  opacity: 0.9;
  z-index: 3;
}

.storybook-book.storybook-virtual .slot-current.virtual-turn-next {
  transform-origin: left center;
  animation: virtualTurnNext 320ms cubic-bezier(.2,.72,.12,1);
}

.storybook-book.storybook-virtual .slot-current.virtual-turn-prev {
  transform-origin: right center;
  animation: virtualTurnPrev 320ms cubic-bezier(.2,.72,.12,1);
}

@keyframes virtualTurnNext {
  0% { transform: translateX(1.1%) rotateY(0deg); opacity: 1; }
  100% { transform: translateX(-8%) rotateY(-168deg); opacity: 1; }
}

@keyframes virtualTurnPrev {
  0% { transform: translateX(1.1%) rotateY(0deg); opacity: 1; }
  100% { transform: translateX(9%) rotateY(168deg); opacity: 1; }
}

.storybook-book.storybook-lite {
  perspective: none;
}

.storybook-book.storybook-lite .book-shadow,
.storybook-book.storybook-lite .book-spine-core {
  display: none;
}

.storybook-book.storybook-lite .lite-sheet {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none !important;
  transition: none !important;
  transform-style: flat;
  transform-origin: left center;
  will-change: transform, opacity;
}

.storybook-book.storybook-lite .lite-face {
  inset: 0;
}

.storybook-book.storybook-lite .lite-sheet.lite-turn-next {
  animation: liteTurnNext 300ms ease;
}

.storybook-book.storybook-lite .lite-sheet.lite-turn-prev {
  animation: liteTurnPrev 300ms ease;
}

@keyframes liteTurnNext {
  0% { transform: rotateY(10deg) scale(0.992); opacity: 0.62; }
  100% { transform: rotateY(0deg) scale(1); opacity: 1; }
}

@keyframes liteTurnPrev {
  0% { transform: rotateY(-10deg) scale(0.992); opacity: 0.62; }
  100% { transform: rotateY(0deg) scale(1); opacity: 1; }
}

.storybook-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 18px;
}

.book-page {
  position: relative;
  min-height: 470px;
  padding: 34px;
  border-radius: 28px;
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.cover-page {
  background:
    radial-gradient(circle at 70% 22%, rgba(255,255,255,0.16), transparent 18%),
    linear-gradient(140deg, #173122 0%, #234f34 42%, #c8ac64 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff8ea;
}

.page-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.14), transparent 28%, transparent 72%, rgba(255,255,255,0.06));
  pointer-events: none;
}

.cover-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 22px;
  width: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(8,20,14,0.68), rgba(255,255,255,0.18), rgba(8,20,14,0.76));
  box-shadow: 10px 0 24px rgba(0,0,0,0.22);
}

.cover-badge {
  position: relative;
  width: fit-content;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.cover-kicker {
  position: relative;
  margin: 34px 0 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,248,234,0.82);
  font-size: 0.75rem;
}

.cover-page h3,
.memory-page h3,
.back-page h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin: 10px 0 14px;
  line-height: 0.96;
}

.cover-page p {
  position: relative;
  max-width: 28rem;
  line-height: 1.9;
  color: rgba(255,248,234,0.92);
}

.cover-mark {
  position: absolute;
  right: 34px;
  bottom: 28px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  background: rgba(9, 18, 13, 0.24);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: inset 0 0 0 8px rgba(255,255,255,0.04);
}

.memory-page,
.back-page {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.95), rgba(245,238,221,0.96));
  color: #1a261e;
}

.memory-page {
  display: grid;
  grid-template-columns: 0.98fr 1.02fr;
  gap: 28px;
  align-items: center;
}

.alt-page {
  background:
    linear-gradient(180deg, rgba(246,242,230,0.98), rgba(233,227,205,0.98));
}

.page-visual {
  position: relative;
  min-height: 320px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18, 37, 26, 0.08), rgba(18, 37, 26, 0.02));
  box-shadow: inset 0 0 0 1px rgba(24,40,30,0.08);
}

.page-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-number {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #5b765f;
}

.memory-page p,
.back-page p {
  line-height: 1.9;
  color: #44584a;
}

.visual-polaroid {
  background:
    radial-gradient(circle at 20% 14%, rgba(255,255,255,0.8), transparent 20%),
    linear-gradient(160deg, #d8f0d2, #9bc784 45%, #305339 100%);
}

.polaroid {
  position: absolute;
  width: 130px;
  height: 156px;
  background: #fffaf0;
  border-radius: 6px;
  box-shadow: 0 18px 28px rgba(0,0,0,0.18);
}

.polaroid::after {
  content: "";
  position: absolute;
  inset: 12px 12px 28px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.02)), linear-gradient(140deg, #456d48, #d2b879);
}

.polaroid-a { left: 28px; top: 38px; transform: rotate(-10deg); }
.polaroid-b { left: 112px; top: 78px; transform: rotate(8deg); }
.polaroid-c { left: 62px; top: 158px; transform: rotate(-4deg); }

.visual-night {
  background: linear-gradient(180deg, #102033, #172a49 55%, #1f3244 100%);
}

.night-moon {
  position: absolute;
  right: 48px;
  top: 36px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fffce5, #f1de94 68%, #d0ba6a 100%);
  box-shadow: 0 0 36px rgba(255, 228, 145, 0.26);
}

.night-star {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 10px rgba(255,255,255,0.4);
}

.night-star.s1 { left: 56px; top: 70px; }
.night-star.s2 { left: 136px; top: 42px; }
.night-star.s3 { left: 188px; top: 102px; }

.night-hill {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -20px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(180deg, #304f3c, #18271d);
}

.visual-flowers {
  background:
    radial-gradient(circle at 50% 15%, rgba(255,255,255,0.5), transparent 18%),
    linear-gradient(180deg, #f8ecd3, #ebd7a8 44%, #bfd4ae 100%);
}

.flower {
  position: absolute;
  bottom: 0;
  width: 78px;
  height: 230px;
}

.flower::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 6px;
  height: 176px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, #6da56f, #31533b);
}

.flower::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 18px;
  width: 70px;
  height: 70px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, #f7d780 0 22%, transparent 23%),
    radial-gradient(circle at 50% 0, #fff7e6 0 18px, transparent 19px),
    radial-gradient(circle at 100% 50%, #fff7e6 0 18px, transparent 19px),
    radial-gradient(circle at 50% 100%, #fff7e6 0 18px, transparent 19px),
    radial-gradient(circle at 0 50%, #fff7e6 0 18px, transparent 19px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

.stem-1 { left: 24px; }
.stem-2 { left: 118px; bottom: 10px; }
.stem-3 { left: 208px; bottom: -6px; }

.back-page {
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 12%, rgba(241,213,138,0.18), transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,0.95), rgba(243,237,222,0.98));
}

.back-ornament {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(39,60,47,0.08);
  box-shadow: inset 0 0 0 26px rgba(241,213,138,0.08);
}

.center-copy {
  align-items: center;
  text-align: center;
}

.back-signature {
  font-family: 'Great Vibes', cursive;
  font-size: 2.1rem;
  color: #375741 !important;
  margin-top: 8px;
}

.storybook-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.storybook-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,0.18);
  cursor: pointer;
  transition: transform .25s ease, background .25s ease;
}

.storybook-dot.active {
  background: var(--green-1);
  transform: scale(1.18);
}

.realistic-book {
  position: relative;
  overflow: visible;
  cursor: default;
  user-select: none;
  touch-action: pan-y;
  perspective: 2600px;
  min-height: 620px;
}

.book-stage {
  position: relative;
  width: min(100%, 980px);
  height: 620px;
  margin: 0 auto;
  transform-style: preserve-3d;
}

.book-shadow {
  position: absolute;
  inset: 26px 18px 10px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(6, 10, 8, 0.3), rgba(6, 10, 8, 0.08));
  box-shadow: none;
}

.book-spine-core {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 50%;
  width: 32px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(17,31,23,0.9), rgba(56,84,64,0.72), rgba(15,23,17,0.94));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    0 0 0 12px rgba(6,12,9,0.14);
}

.flip-sheet {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform-origin: left center;
  transition: transform 1.2s cubic-bezier(.2,.72,.12,1), z-index .01s linear .6s;
}

.flip-sheet.flipped {
  transform: rotateY(-180deg);
}

.sheet-1 { z-index: 6; }
.sheet-2 { z-index: 5; }
.sheet-3 { z-index: 4; }
.flip-sheet.flipped.sheet-1 { z-index: 1; }
.flip-sheet.flipped.sheet-2 { z-index: 2; }
.flip-sheet.flipped.sheet-3 { z-index: 3; }

.sheet-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: none;
}

.sheet-front {
  transform: rotateY(0deg);
}

.sheet-back {
  transform: rotateY(180deg);
}

.cover-face,
.back-cover-face {
  color: #fff8ea;
}

.cover-face {
  padding: 34px 38px;
  background:
    radial-gradient(circle at 74% 18%, rgba(255,255,255,0.18), transparent 16%),
    linear-gradient(145deg, #152e21 0%, #1e4a31 45%, #c9aa67 100%);
}

.back-cover-face {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 24%, rgba(255,255,255,0.08), transparent 20%),
    linear-gradient(145deg, #183223 0%, #214a31 42%, #c5a35d 100%);
}

.back-cover-face p {
  position: relative;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: rgba(255,248,234,0.78);
}

.back-cover-ornament {
  position: absolute;
  width: 230px;
  height: 320px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 0 0 12px rgba(255,255,255,0.04);
}

.paper-face,
.closing-face {
  padding: 28px 30px;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.06), transparent 7%, transparent 93%, rgba(0,0,0,0.04)),
    linear-gradient(180deg, #f8f2e4, #f1ead8 100%);
  color: #1d2a22;
}

.photo-page {
  display: grid;
  place-items: center;
}

.photo-page-frame {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(31, 42, 34, 0.14);
  box-shadow: none;
  padding: 10px;
  background: rgba(247, 240, 226, 0.9);
}

.storybook-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity .18s ease;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

.storybook-photo.is-ready {
  opacity: 1;
}

.blank-page {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.03), transparent 7%, transparent 93%, rgba(0,0,0,0.02)),
    linear-gradient(180deg, #f8f2e4, #f1ead8 100%);
}

.toc-page {
  background:
    radial-gradient(circle at 10% 14%, rgba(155, 226, 119, 0.24), transparent 26%),
    radial-gradient(circle at 88% 82%, rgba(241, 213, 138, 0.24), transparent 30%),
    linear-gradient(180deg, #f7f1e2 0%, #ecdfc3 100%);
}

.toc-shell {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(58, 84, 66, 0.22);
  border-radius: 16px;
  padding: 22px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
  background: rgba(255, 250, 239, 0.76);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.toc-kicker {
  margin: 0;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: #5b765f;
}

.toc-shell h3 {
  margin: 0;
  color: #203229;
  font-size: 1.35rem;
}

.toc-list {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.toc-list li {
  margin: 0;
}

.toc-link {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(58, 84, 66, 0.14);
  background: rgba(255, 255, 255, 0.68);
  color: #2d4638;
  font: 600 0.88rem/1.25 'Manrope', sans-serif;
  text-align: left;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.toc-item-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.toc-item-icon {
  font-size: 1rem;
  line-height: 1;
}

.toc-link:hover {
  transform: translateY(-1px);
  border-color: rgba(67, 107, 84, 0.34);
  background: rgba(255, 255, 255, 0.86);
}

.toc-list strong {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #516b5d;
}

.divider-page {
  background:
    radial-gradient(circle at 20% 22%, rgba(155, 226, 119, 0.24), transparent 28%),
    radial-gradient(circle at 80% 78%, rgba(241, 213, 138, 0.24), transparent 28%),
    linear-gradient(180deg, #f5edda 0%, #eadabd 100%);
}

.divider-motif {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 20px;
  border: 1px solid rgba(41, 64, 51, 0.2);
  opacity: 0.56;
}

.motif-left {
  top: 32px;
  left: 28px;
  transform: rotate(-10deg);
}

.motif-right {
  right: 28px;
  bottom: 44px;
  transform: rotate(9deg);
}

.divider-ornament {
  position: absolute;
  inset: 20px;
  border-radius: 22px;
  border: 1px solid rgba(47, 72, 57, 0.24);
  box-shadow:
    inset 0 0 0 7px rgba(255, 255, 255, 0.28),
    inset 0 0 0 16px rgba(255, 255, 255, 0.16);
}

.chapter-icon {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  place-items: center;
  z-index: 2;
}

.chapter-icon-glyph {
  width: 114px;
  height: 114px;
  border-radius: 50%;
  border: 2px solid rgba(46, 70, 56, 0.34);
  background: rgba(255, 255, 255, 0.48);
  box-shadow:
    inset 0 0 0 6px rgba(255,255,255,0.32),
    0 8px 18px rgba(35, 52, 42, 0.12);
  display: grid;
  place-items: center;
  font-size: 3rem;
  line-height: 1;
}

.chapter-icon-label {
  font: 800 1.02rem/1 'Manrope', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #274032;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(46, 70, 56, 0.22);
  border-radius: 999px;
  padding: 5px 13px;
}

.divider-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scene-shape {
  position: absolute;
  display: block;
  opacity: 0.46;
}

.shape-a { top: 54px; right: 38px; width: 70px; height: 70px; }
.shape-b { bottom: 86px; left: 38px; width: 86px; height: 86px; }
.shape-c { bottom: 56px; right: 76px; width: 52px; height: 52px; }

.divider-allein {
  background:
    radial-gradient(circle at 18% 22%, rgba(153, 182, 204, 0.32), transparent 30%),
    radial-gradient(circle at 82% 82%, rgba(198, 215, 229, 0.28), transparent 30%),
    linear-gradient(180deg, #edf2f7 0%, #dde7f0 100%);
}

.divider-allein .divider-motif {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.72), rgba(214, 228, 240, 0.65)),
    repeating-linear-gradient(0deg, transparent, transparent 11px, rgba(93, 116, 137, 0.1) 11px, rgba(93, 116, 137, 0.1) 12px);
}

.divider-allein .shape-a,
.divider-allein .shape-b,
.divider-allein .shape-c {
  border-radius: 999px;
  border: 1px solid rgba(84, 111, 133, 0.45);
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.9), rgba(189, 207, 224, 0.42));
}

.icon-allein span {
  border-radius: 50%;
  border: 2px solid rgba(84, 111, 133, 0.55);
  box-shadow:
    inset 26px -8px 0 0 rgba(186, 209, 228, 0.75),
    0 0 24px rgba(111, 148, 179, 0.28);
}

.divider-tiere {
  background:
    radial-gradient(circle at 20% 20%, rgba(183, 224, 157, 0.36), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(240, 210, 145, 0.28), transparent 30%),
    linear-gradient(180deg, #f2f0da 0%, #e5e6c8 100%);
}

.divider-tiere .divider-motif {
  background:
    radial-gradient(circle at 26% 32%, rgba(120, 154, 101, 0.24), transparent 18%),
    radial-gradient(circle at 68% 64%, rgba(120, 154, 101, 0.24), transparent 18%),
    linear-gradient(165deg, rgba(255, 251, 236, 0.8), rgba(227, 234, 206, 0.72));
}

.divider-tiere .shape-a,
.divider-tiere .shape-b,
.divider-tiere .shape-c {
  border-radius: 50% 50% 46% 46%;
  border: 1px solid rgba(93, 131, 74, 0.45);
  background: radial-gradient(circle at 36% 30%, rgba(255,255,255,0.82), rgba(176, 208, 147, 0.54));
}

.icon-tiere span::before,
.icon-tiere span::after {
  content: "";
  position: absolute;
}

.icon-tiere span {
  width: 120px;
  height: 120px;
}

.icon-tiere span::before {
  left: 35px;
  top: 44px;
  width: 50px;
  height: 42px;
  border-radius: 48% 48% 42% 42%;
  border: 2px solid rgba(93, 131, 74, 0.65);
  background: rgba(228, 239, 198, 0.8);
  box-shadow:
    -32px -18px 0 -10px rgba(228, 239, 198, 0.95),
    -32px -18px 0 -8px rgba(93, 131, 74, 0.65),
    -10px -28px 0 -10px rgba(228, 239, 198, 0.95),
    -10px -28px 0 -8px rgba(93, 131, 74, 0.65),
    14px -28px 0 -10px rgba(228, 239, 198, 0.95),
    14px -28px 0 -8px rgba(93, 131, 74, 0.65),
    36px -18px 0 -10px rgba(228, 239, 198, 0.95),
    36px -18px 0 -8px rgba(93, 131, 74, 0.65);
}

.divider-paar {
  background:
    radial-gradient(circle at 18% 18%, rgba(229, 172, 190, 0.34), transparent 28%),
    radial-gradient(circle at 82% 80%, rgba(237, 198, 173, 0.3), transparent 30%),
    linear-gradient(180deg, #f7e6e6 0%, #edd8d2 100%);
}

.divider-paar .divider-motif {
  background:
    linear-gradient(160deg, rgba(255, 244, 244, 0.82), rgba(237, 207, 207, 0.72));
}

.divider-paar .shape-a,
.divider-paar .shape-b,
.divider-paar .shape-c {
  border-radius: 50% 50% 42% 42%;
  border: 1px solid rgba(161, 88, 108, 0.45);
  background: linear-gradient(160deg, rgba(255, 244, 244, 0.9), rgba(235, 179, 191, 0.55));
  transform: rotate(45deg);
}

.icon-paar span::before,
.icon-paar span::after {
  content: "";
  position: absolute;
  top: 22px;
  width: 58px;
  height: 58px;
  border: 3px solid rgba(161, 88, 108, 0.72);
  border-radius: 50%;
}

.icon-paar span::before {
  left: 14px;
}

.icon-paar span::after {
  right: 14px;
}

.divider-freunde {
  background:
    radial-gradient(circle at 15% 24%, rgba(167, 198, 233, 0.34), transparent 28%),
    radial-gradient(circle at 85% 76%, rgba(180, 220, 206, 0.32), transparent 30%),
    linear-gradient(180deg, #e7eff7 0%, #d6e4ee 100%);
}

.divider-freunde .divider-motif {
  background:
    linear-gradient(150deg, rgba(247, 251, 255, 0.86), rgba(212, 230, 224, 0.74));
}

.divider-freunde .shape-a,
.divider-freunde .shape-b,
.divider-freunde .shape-c {
  border-radius: 12px;
  border: 1px solid rgba(74, 114, 145, 0.46);
  background: linear-gradient(150deg, rgba(255,255,255,0.9), rgba(181, 214, 231, 0.56));
}

.icon-freunde span::before,
.icon-freunde span::after {
  content: "";
  position: absolute;
}

.icon-freunde span {
  width: 126px;
}

.icon-freunde span::before {
  left: 18px;
  top: 26px;
  width: 90px;
  height: 52px;
  border: 2px solid rgba(74, 114, 145, 0.65);
  border-radius: 30px;
  box-shadow:
    0 0 0 999px transparent,
    -14px 50px 0 -38px rgba(74, 114, 145, 0.68),
    14px 50px 0 -38px rgba(74, 114, 145, 0.68);
}

.divider-familie {
  background:
    radial-gradient(circle at 22% 18%, rgba(241, 205, 149, 0.32), transparent 28%),
    radial-gradient(circle at 82% 82%, rgba(221, 204, 173, 0.3), transparent 30%),
    linear-gradient(180deg, #f6ebd8 0%, #ebdcc3 100%);
}

.divider-familie .divider-motif {
  background:
    linear-gradient(160deg, rgba(255, 249, 234, 0.85), rgba(235, 218, 189, 0.72));
}

.divider-familie .shape-a,
.divider-familie .shape-b,
.divider-familie .shape-c {
  border-radius: 14px;
  border: 1px solid rgba(140, 112, 71, 0.45);
  background: linear-gradient(150deg, rgba(255, 249, 233, 0.9), rgba(230, 197, 142, 0.56));
}

.icon-familie span::before,
.icon-familie span::after {
  content: "";
  position: absolute;
}

.icon-familie span::before {
  left: 22px;
  top: 44px;
  width: 66px;
  height: 48px;
  border: 2px solid rgba(140, 112, 71, 0.66);
  border-top: none;
  background: rgba(249, 234, 204, 0.82);
}

.icon-familie span::after {
  left: 20px;
  top: 18px;
  width: 70px;
  height: 70px;
  transform: rotate(45deg) scale(0.72);
  border: 2px solid rgba(140, 112, 71, 0.66);
  border-bottom: none;
  border-left: none;
  background: rgba(255, 244, 220, 0.78);
}

.divider-ines {
  background:
    radial-gradient(circle at 16% 18%, rgba(197, 175, 230, 0.3), transparent 30%),
    radial-gradient(circle at 82% 82%, rgba(226, 195, 214, 0.3), transparent 30%),
    linear-gradient(180deg, #efe8f5 0%, #e4d9ea 100%);
}

.divider-ines .divider-motif {
  background:
    linear-gradient(150deg, rgba(250, 245, 255, 0.86), rgba(226, 211, 238, 0.74));
}

.divider-ines .shape-a,
.divider-ines .shape-b,
.divider-ines .shape-c {
  border-radius: 999px;
  border: 1px solid rgba(125, 96, 156, 0.45);
  background: linear-gradient(150deg, rgba(251, 246, 255, 0.9), rgba(206, 180, 228, 0.56));
}

.icon-ines span::before,
.icon-ines span::after {
  content: "";
  position: absolute;
}

.icon-ines span::before {
  inset: 18px;
  border-radius: 50%;
  border: 2px solid rgba(125, 96, 156, 0.68);
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.88), rgba(213, 190, 234, 0.58));
}

.icon-ines span::after {
  left: 50%;
  top: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 10px;
  border: 2px solid rgba(125, 96, 156, 0.68);
}

.photo-number {
  position: absolute;
  right: 30px;
  bottom: 24px;
  z-index: 2;
  background: rgba(248, 242, 228, 0.88);
  border-radius: 999px;
  padding: 2px 10px;
}

.alt-paper {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.06), transparent 7%, transparent 93%, rgba(0,0,0,0.04)),
    linear-gradient(180deg, #f4eddd, #ebe1c8 100%);
}

.closing-face {
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 16%, rgba(241,213,138,0.16), transparent 22%),
    linear-gradient(90deg, rgba(0,0,0,0.06), transparent 7%, transparent 93%, rgba(0,0,0,0.04)),
    linear-gradient(180deg, #f6efdf, #efe6d4 100%);
}

.page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  height: 100%;
}

.paper-face::before,
.closing-face::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 26px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(54,71,57,0.08), transparent);
}

.paper-face::after,
.closing-face::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 18px;
  border: 1px solid rgba(42,59,47,0.07);
  pointer-events: none;
}

.flip-sheet.is-top-turning .sheet-front,
.flip-sheet.is-top-turning .sheet-back {
  box-shadow: none;
}

.storybook-dots {
  margin-top: 28px;
}

.storybook-dot {
  width: 14px;
  height: 14px;
}

.letter {
  padding: 40px;
  position: relative;
  max-width: 900px;
}

.letter p {
  color: #eff6e9;
  line-height: 1.95;
  font-size: 1.04rem;
}

.wax-seal {
  position: absolute;
  right: 26px;
  top: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffb6b2, #9f2237);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.signature {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem !important;
  color: #fff2d8 !important;
}

.timeline-section { padding-bottom: 36px; }
.timeline {
  position: relative;
  margin: 16px 0 30px;
  padding-left: 30px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(155,226,119,0.15), rgba(155,226,119,0.8), rgba(155,226,119,0.15));
}
.timeline-item {
  position: relative;
  padding: 18px 0 18px 26px;
}
.dot {
  position: absolute;
  left: -2px;
  top: 28px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 5px solid rgba(14,33,21,0.9);
  background: radial-gradient(circle, #dfffcb, #84d56d);
  box-shadow: 0 0 0 8px rgba(155,226,119,0.08);
}
.timeline-item .content {
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}
.time-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--green-1);
}
.timeline-item h3 { margin: 8px 0 10px; font-size: 2rem; }
.timeline-item p { color: var(--muted); margin: 0; line-height: 1.8; }

.prism-panel {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 24px;
  padding: 28px;
  align-items: stretch;
}

.prism-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.prism-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.95;
}

.prism-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.prism-switch {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #eef7e9;
  border-radius: 999px;
  padding: 11px 16px;
  font: inherit;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.prism-switch:hover,
.prism-switch.active {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.14);
}

.prism-caption-card {
  margin-top: auto;
  padding: 24px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    rgba(9, 21, 15, 0.46);
  border: 1px solid rgba(255,255,255,0.08);
}

.prism-caption-kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: #dcefd5;
}

.prism-caption-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.98;
  margin: 10px 0 12px;
}

.prism-caption-card p {
  margin: 0;
}

.prism-stage {
  --scene-a: rgba(155,226,119,0.28);
  --scene-b: rgba(241,213,138,0.24);
  --scene-c: rgba(122, 219, 173, 0.18);
  position: relative;
  min-height: 520px;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, var(--scene-a), transparent 28%),
    radial-gradient(circle at 80% 22%, var(--scene-b), transparent 24%),
    radial-gradient(circle at 50% 72%, var(--scene-c), transparent 28%),
    linear-gradient(180deg, rgba(8,16,12,0.88), rgba(12,26,18,0.92));
  isolation: isolate;
  transition: background .6s ease;
}

.prism-stage::before,
.prism-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.prism-stage::before {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.22;
}

.prism-stage::after {
  background: linear-gradient(120deg, transparent 0 42%, rgba(255,255,255,0.08) 50%, transparent 58% 100%);
  transform: translateX(-120%);
  animation: prismSweep 9s linear infinite;
}

.prism-aura {
  position: absolute;
  inset: 12% 16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 66%);
  filter: blur(22px);
}

.prism-grid {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.04), transparent 40%);
}

.prism-core-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(100% - 96px, 360px);
  aspect-ratio: 1 / 1.12;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
}

.prism-orbit {
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
}

.orbit-one {
  animation: prismRotate 16s linear infinite;
}

.orbit-two {
  inset: 8%;
  border-style: dashed;
  opacity: 0.6;
  animation: prismRotateReverse 20s linear infinite;
}

.prism-photo-stack {
  position: absolute;
  inset: 0;
}

.prism-photo {
  --offset-x: 0px;
  --offset-y: 0px;
  --photo-rotate: 0deg;
  --photo-scale: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(78%, 282px);
  aspect-ratio: 0.8;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform-style: preserve-3d;
  transform: translate(calc(-50% + var(--offset-x)), calc(-50% + var(--offset-y))) rotate(var(--photo-rotate)) scale(var(--photo-scale));
  transition: transform .7s cubic-bezier(.22,1,.19,1), opacity .45s ease, filter .45s ease;
}

.photo-frame {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(248, 244, 233, 0.96);
  box-shadow: 0 26px 56px rgba(0,0,0,0.26);
}

.photo-art {
  position: absolute;
  inset: 16px 16px 78px;
  border-radius: 18px;
  width: calc(100% - 32px);
  height: calc(100% - 94px);
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
}

.photo-meta {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  color: #182319;
  text-align: left;
}

.photo-meta strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  line-height: 0.9;
}

.photo-meta small {
  display: block;
  margin-top: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: #4a5b4f;
}

.photo-gloss {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: linear-gradient(120deg, rgba(255,255,255,0.18), transparent 34%, transparent 62%, rgba(255,255,255,0.08));
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
}

.photo-a { --offset-x: -22px; --offset-y: 16px; --photo-rotate: -10deg; --photo-scale: .92; z-index: 1; }
.photo-b { --offset-x: 26px; --offset-y: 8px; --photo-rotate: 8deg; --photo-scale: .93; z-index: 2; }
.photo-c { --offset-x: -10px; --offset-y: -12px; --photo-rotate: -4deg; --photo-scale: .95; z-index: 3; }
.photo-d { --offset-x: 18px; --offset-y: -20px; --photo-rotate: 5deg; --photo-scale: .94; z-index: 4; }

.prism-photo.is-active {
  --offset-x: 0px;
  --offset-y: 0px;
  --photo-rotate: 0deg;
  --photo-scale: 1.08;
  z-index: 6;
}

.prism-photo.is-muted {
  opacity: .46;
  filter: blur(1.2px) saturate(.7);
}

.prism-photo:hover:not(.is-active) {
  --offset-y: -8px;
  --photo-rotate: 0deg;
  --photo-scale: .97;
}

.photo-a .photo-art,
.photo-b .photo-art,
.photo-c .photo-art,
.photo-d .photo-art {
  background: #203127;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 8, 6, 0.82);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  z-index: 50;
}

.lightbox-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-shell {
  position: relative;
  width: min(92vw, 1180px);
  max-height: 88vh;
  display: grid;
  gap: 14px;
  justify-items: center;
  transform: translateY(28px) scale(.92);
  transition: transform .45s cubic-bezier(.22,1,.19,1);
}

.lightbox-overlay.is-open .lightbox-shell {
  transform: translateY(0) scale(1);
}

.lightbox-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  border-radius: 26px;
  object-fit: contain;
  box-shadow: 0 28px 80px rgba(0,0,0,0.44);
  background: rgba(255,255,255,0.04);
}

.lightbox-caption {
  color: #f3efe5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  color: #f4f0e8;
  border-radius: 999px;
  padding: 11px 16px;
  font: inherit;
  cursor: pointer;
  z-index: 2;
}

.prism-tag {
  position: absolute;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(10, 22, 16, 0.54);
  border: 1px solid rgba(255,255,255,0.08);
  color: #eef7e9;
  box-shadow: 0 16px 36px rgba(0,0,0,0.2);
  white-space: nowrap;
  transition: transform .45s ease, opacity .45s ease, background .45s ease;
}

.cloud-a { top: 62px; left: 56px; animation: tagFloat 7s ease-in-out infinite; }
.cloud-b { top: 112px; right: 52px; animation: tagFloat 8s ease-in-out infinite -.8s; }
.cloud-c { bottom: 82px; left: 74px; animation: tagFloat 7.4s ease-in-out infinite -1.2s; }
.cloud-d { bottom: 56px; right: 62px; animation: tagFloat 8.2s ease-in-out infinite -.4s; }

.prism-stage.scene-1 {
  --scene-a: rgba(120,161,255,0.24);
  --scene-b: rgba(255,194,120,0.22);
  --scene-c: rgba(176,140,255,0.16);
}

.prism-stage.scene-2 {
  --scene-a: rgba(255,136,154,0.24);
  --scene-b: rgba(255,221,155,0.24);
  --scene-c: rgba(155,226,119,0.14);
}

.prism-stage.scene-3 {
  --scene-a: rgba(128,255,217,0.22);
  --scene-b: rgba(255,230,150,0.2);
  --scene-c: rgba(126,180,255,0.18);
}

.nyc-card {
  min-height: 560px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.nyc-scene {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 68%, rgba(240,110,80,.30), transparent 20%),
    linear-gradient(to bottom, #07111f 0%, #183257 45%, #f06f4f 82%, #101725 100%);
}

.nyc-label {
  position: absolute;
  top: 22px;
  left: 28px;
  z-index: 20;
  color: rgba(255,245,232,.9);
  font-size: clamp(18px, 2vw, 28px);
  text-transform: uppercase;
  letter-spacing: .23em;
  text-shadow: 0 2px 18px rgba(0,0,0,.25);
}

.nyc-sub {
  position: absolute;
  top: 56px;
  left: 30px;
  z-index: 20;
  color: rgba(255,220,195,.68);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .30em;
}

.nyc-moon {
  position: absolute;
  top: 10%;
  right: 11%;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff9ea 0%, #fff1c8 58%, #ebd8a3 100%);
  box-shadow: 0 0 24px rgba(255,243,204,.42), 0 0 80px rgba(255,230,180,.14);
  animation: moonFloat 9s ease-in-out infinite;
  z-index: 1;
}

.nyc-moon::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  box-shadow: -16px 7px 0 rgba(190,160,90,.10), 15px 19px 0 rgba(190,160,90,.08);
}

.nyc-stars,
.nyc-clouds,
.nyc-reflections {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.nyc-star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  box-shadow: 0 0 8px rgba(255,255,255,.55);
  animation: twinkle linear infinite;
}

.nyc-cloud {
  position: absolute;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(to right, rgba(255,255,255,.03), rgba(255,225,205,.11), rgba(255,255,255,.03));
  filter: blur(7px);
  opacity: .5;
}

.nyc-cloud::before,
.nyc-cloud::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  background: inherit;
}

.nyc-cloud::before {
  width: 55%;
  height: 140%;
  left: 12%;
  top: -48%;
}

.nyc-cloud::after {
  width: 42%;
  height: 115%;
  right: 8%;
  top: -26%;
}

.nyc-mist {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,185,140,.08) 0%, transparent 70%);
  filter: blur(24px);
  animation: mistMove 12s ease-in-out infinite alternate;
  pointer-events: none;
}

.nyc-mist.one { bottom: 27%; z-index: 2; }
.nyc-mist.two { bottom: 18%; z-index: 7; animation-delay: -4s; opacity: .95; }

.nyc-skyline-wrap {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
}

.nyc-skyline-wrap svg {
  width: 100%;
  height: calc(100% + 18px);
  display: block;
  transform: translateY(16px);
}

.nyc-water {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 27%;
  background:
    linear-gradient(to bottom, rgba(255,140,90,.08), transparent 18%),
    linear-gradient(to bottom, #12253f, #060b13);
  overflow: hidden;
  z-index: 8;
}

.nyc-water::before,
.nyc-water::after {
  content: "";
  position: absolute;
  left: -10%;
  width: 120%;
  height: 125%;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.06) 0, rgba(255,255,255,.06) 1px, transparent 3px, transparent 8px);
  opacity: .14;
  animation: waterShift 6s linear infinite;
}

.nyc-water::after {
  opacity: .07;
  filter: blur(2px);
  animation-duration: 9s;
}

.nyc-reflection {
  position: absolute;
  bottom: 0;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(to bottom, rgba(255,216,120,.35), transparent 82%);
  opacity: .45;
  animation: shimmer 4s ease-in-out infinite;
}

.nyc-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(27% - 3px);
  height: 12px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,.06), transparent);
  z-index: 9;
}

.nyc-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .06;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.18) .7px, transparent 1px),
    radial-gradient(circle at 80% 40%, rgba(255,255,255,.12) .7px, transparent 1px),
    radial-gradient(circle at 45% 70%, rgba(255,255,255,.15) .7px, transparent 1px);
  background-size: 150px 150px, 190px 190px, 230px 230px;
  z-index: 20;
  animation: grainMove 18s linear infinite;
}

.nyc-svg-shadow {
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.22));
}

.nyc-win {
  fill: rgba(255,216,130,.08);
  opacity: .55;
  transition: opacity .25s ease, fill .25s ease;
}

.nyc-win.on {
  fill: #ffd86d;
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(255,210,110,.28));
}

.memory-card {
  padding: 28px;
  min-height: 260px;
  position: relative;
  overflow: hidden;
}
.memory-card h3 {
  font-size: 2rem;
  margin: 0 0 14px;
}
.memory-card p { color: var(--muted); line-height: 1.85; }
.memory-card.tall { min-height: 100%; }
.memory-card.wide { grid-column: span 1; }
.reasons {
  columns: 2;
  gap: 22px;
  padding-left: 18px;
  color: #eff5eb;
}
.reasons li { margin-bottom: 10px; }
.orbital-hearts {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 20px auto 0;
}
.orbital-hearts span {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  background: #ffc2c0;
  transform: rotate(45deg);
  animation: orbit 8s linear infinite;
}
.orbital-hearts span::before,
.orbital-hearts span::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: inherit;
  border-radius: 50%;
}
.orbital-hearts span::before { left: -9px; }
.orbital-hearts span::after { top: -9px; }
.orbital-hearts span:nth-child(2) { animation-delay: -2.7s; }
.orbital-hearts span:nth-child(3) { animation-delay: -5.4s; }

.b1-logo-stage {
  position: relative;
  width: 210px;
  height: 210px;
  margin: 20px auto 0;
  display: grid;
  place-items: center;
  animation: b1StageFloat 5.2s ease-in-out infinite;
}

.b1-logo-glow {
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 242, 0, 0.26), rgba(227, 19, 32, 0.16), transparent 72%);
  filter: blur(10px);
  animation: b1GlowPulse 2.2s ease-in-out infinite;
}

.b1-logo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 242, 0, 0.4);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 0 24px rgba(255,242,0,0.16);
}

.b1-logo-ring.ring-one {
  inset: 20px;
  animation: b1Spin 8s linear infinite, b1RingBreath 2.8s ease-in-out infinite;
}

.b1-logo-ring.ring-two {
  inset: 4px;
  border-style: dashed;
  border-color: rgba(227, 19, 32, 0.48);
  animation: b1SpinReverse 6.2s linear infinite;
}

.b1-logo-badge {
  position: relative;
  z-index: 1;
  width: 218px;
  height: 98px;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 58px 36px 1fr;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,0.08), transparent 40%),
    linear-gradient(160deg, #060606, #121212 62%, #050505);
  border: 1px solid rgba(255, 236, 0, 0.24);
  box-shadow: 0 14px 34px rgba(0,0,0,0.44), inset 0 1px 0 rgba(255,255,255,0.1);
  overflow: hidden;
  animation: b1BadgeFloat 2.4s ease-in-out infinite;
}

.b1-logo-badge::after {
  content: "";
  position: absolute;
  inset: -24% -28%;
  background: linear-gradient(118deg, transparent 44%, rgba(255,255,255,0.38) 50%, transparent 56%);
  transform: translateX(-135%);
  animation: b1BadgeShine 2.2s ease-in-out infinite;
}

.b1-letter {
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: 4.1rem;
  line-height: .78;
  font-style: italic;
  font-weight: 900;
  color: #fff200;
  letter-spacing: -0.06em;
  text-shadow: 0 0 10px rgba(255, 242, 0, 0.22);
}

.b1-one {
  position: relative;
  justify-self: center;
  display: block;
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: 3.35rem;
  line-height: .8;
  font-style: italic;
  font-weight: 900;
  color: #e31320;
  -webkit-text-stroke: 2px #fff200;
  text-shadow:
    0 0 12px rgba(227,19,32,0.34),
    1px 1px 0 #fff200,
    -1px -1px 0 #fff200;
  transform: skewX(-10deg) rotate(5deg) translateY(1px);
  animation: b1OneKick 1.6s ease-in-out infinite;
}

.b1-wordmark {
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: 1.34rem;
  line-height: .88;
  font-style: italic;
  font-weight: 900;
  letter-spacing: .01em;
  color: #fff200;
  text-shadow: 0 0 8px rgba(255, 242, 0, 0.18);
}

.b1-logo-spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f1d58a;
  box-shadow: 0 0 12px rgba(241,213,138,0.9);
  top: 50%;
  left: 50%;
  margin: -4px 0 0 -4px;
  animation: b1SparkOrbit 3.1s linear infinite, b1SparkPulse 1.2s ease-in-out infinite;
}

.b1-logo-spark.spark-a {
  --b1-orbit-radius: 82px;
  --b1-orbit-start: 8deg;
  animation-duration: 2.6s, 1.1s;
}

.b1-logo-spark.spark-b {
  --b1-orbit-radius: 92px;
  --b1-orbit-start: 146deg;
  animation-duration: 3.3s, 1.3s;
  animation-delay: -.6s, -.4s;
}

.b1-logo-spark.spark-c {
  --b1-orbit-radius: 74px;
  --b1-orbit-start: 258deg;
  animation-duration: 2.9s, 1s;
  animation-delay: -1.1s, -.7s;
}

.time-window-section {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 32px));
  margin: 72px auto;
  padding: 0;
  }

.time-window-section::before {
  display: none;
}

.time-window-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.time-window-card {
  position: relative;
  width: 100%;
}

.time-window-frame {
  position: relative;
  min-height: 460px;
  border-radius: 42px;
  padding: 36px;
  background:
    radial-gradient(circle at 50% 14%, rgba(255,255,255,0.09), transparent 18%),
    radial-gradient(circle at 50% 48%, rgba(155,226,119,0.14), transparent 42%),
    linear-gradient(180deg, rgba(5,15,10,0.38), rgba(8,18,13,0.18));
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.time-window-badge {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: #deedd8;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
}

.time-window-frame::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.04);
  pointer-events: none;
}

.time-window-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 18%, rgba(255,255,255,0.08) 28%, transparent 40%);
  opacity: 0.36;
  transform: translateX(-120%);
  animation: timeSheen 7.5s ease-in-out infinite;
  pointer-events: none;
}

.time-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}

.orbit-a {
  width: 320px;
  height: 320px;
  top: 26px;
  right: -42px;
  border-color: rgba(155,226,119,0.12);
  animation: orbitDrift 14s linear infinite;
}

.orbit-b {
  width: 250px;
  height: 250px;
  bottom: -52px;
  left: -24px;
  border-color: rgba(241,213,138,0.14);
  animation: orbitDriftReverse 18s linear infinite;
}

.time-beam {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 72%, rgba(241,213,138,0.14), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 22%, transparent 78%, rgba(255,255,255,0.02));
  opacity: 0.8;
  pointer-events: none;
}

.time-glow {
  position: absolute;
  inset: auto 7% 8% 7%;
  height: 128px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(241,213,138,0.22), transparent 54%),
    radial-gradient(circle at 34% 50%, rgba(155,226,119,0.18), transparent 42%);
  filter: blur(22px);
}

.time-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.time-sparkles span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,248,232,0.86);
  box-shadow: 0 0 14px rgba(255,248,232,0.34);
  animation: sparkleBlink 3.8s ease-in-out infinite;
}

.time-sparkles span:nth-child(1) { top: 18%; left: 16%; animation-delay: 0s; }
.time-sparkles span:nth-child(2) { top: 24%; right: 22%; animation-delay: -.7s; }
.time-sparkles span:nth-child(3) { top: 52%; left: 10%; animation-delay: -1.2s; }
.time-sparkles span:nth-child(4) { top: 68%; right: 18%; animation-delay: -2.1s; }
.time-sparkles span:nth-child(5) { bottom: 18%; left: 32%; animation-delay: -1.6s; }
.time-sparkles span:nth-child(6) { bottom: 24%; right: 34%; animation-delay: -.3s; }

.time-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: end;
  padding: 18px 26px 30px;
}

.time-grid::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 22px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.16) 14%, rgba(255,255,255,0.16) 86%, transparent);
  box-shadow: 0 0 18px rgba(155,226,119,0.12);
}

.time-grid::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 18px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155,226,119,0.12), transparent 68%);
  filter: blur(12px);
}

.time-unit {
  position: relative;
  min-height: 204px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  gap: 22px;
  overflow: hidden;
  transition: opacity .45s ease, filter .45s ease;
}

.time-unit::before {
  content: "";
  position: absolute;
  right: -11px;
  top: 24px;
  bottom: 30px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.12), transparent);
  pointer-events: none;
}

.time-unit::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 10px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(241,213,138,0.42);
  box-shadow: 0 0 16px rgba(241,213,138,0.24);
  opacity: 0.64;
  transition: opacity .45s ease, transform .45s ease, box-shadow .45s ease;
}

.time-unit-featured {
  align-items: center;
}

.time-unit-featured .time-value,
.time-unit-accent .time-value {
  color: #fff1c9;
}

.time-unit-accent {
  padding-right: 0;
}

.time-unit-accent::after,
.time-unit.is-ticking::after {
  opacity: 1;
}

.time-unit.is-beating {
  filter: brightness(1.08);
}

.time-unit:last-child::before {
  display: none;
}

.time-value-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 132px;
  width: 100%;
  overflow: visible;
  margin-top: 0;
}

.time-value {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4.8rem, 8.2vw, 7.4rem);
  line-height: 0.88;
  color: #fff5dc;
  text-shadow: 0 0 18px rgba(241,213,138,0.14);
  transform-origin: 50% 100%;
  transition: transform .55s cubic-bezier(.22,1,.19,1), opacity .55s ease, color .45s ease, text-shadow .45s ease, filter .45s ease;
}

.time-label {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #dbead6;
  text-align: center;
  min-height: 1.2em;
}

.time-value.is-changing {
  transform: translateY(-120%) scale(0.92);
  opacity: 0;
  filter: blur(0.8px);
}

.time-value.is-settling {
  transform: translateY(22%) scale(1.03);
  opacity: 0.25;
}

.time-unit.is-beating .time-value {
  text-shadow: 0 0 26px rgba(241,213,138,0.26);
}

.time-unit.is-beating .time-label {
  color: #eef7e9;
}

.aura-section {
  padding-bottom: 24px;
}

.aura-shell {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  padding: 30px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 14% 16%, rgba(241,213,138,0.12), transparent 18%),
    radial-gradient(circle at 84% 18%, rgba(155,226,119,0.12), transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    rgba(12, 25, 18, 0.76);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.aura-shell::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}

.aura-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.aura-badge {
  width: fit-content;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: #e5f2df;
}

.aura-copy h3 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.92;
}

.aura-copy p {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  line-height: 1.95;
}

.aura-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.aura-switch {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-radius: 999px;
  padding: 11px 16px;
  font: inherit;
  cursor: pointer;
  transition: transform .3s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.aura-switch:hover,
.aura-switch.active {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(241,213,138,0.18), rgba(155,226,119,0.16));
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 12px 24px rgba(0,0,0,0.16);
}

.aura-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.aura-notes span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #eff7eb;
}

.aura-stage {
  position: relative;
  min-height: 520px;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(155,226,119,0.18), transparent 28%),
    linear-gradient(180deg, rgba(5,14,11,0.94), rgba(6,18,13,0.94));
  border: 1px solid rgba(255,255,255,0.08);
  transform-style: preserve-3d;
}

.aura-stage::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.05);
  pointer-events: none;
}

.aura-backdrop,
.aura-grid,
.aura-rays {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.aura-backdrop {
  background:
    radial-gradient(circle at 20% 24%, rgba(241,213,138,0.18), transparent 18%),
    radial-gradient(circle at 78% 24%, rgba(126,180,255,0.18), transparent 18%),
    radial-gradient(circle at 50% 82%, rgba(155,226,119,0.18), transparent 22%);
  filter: blur(8px);
}

.aura-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 82%);
  opacity: 0.26;
}

.aura-rays {
  background:
    conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,0.05), transparent 20%, rgba(255,255,255,0.04), transparent 58%, rgba(255,255,255,0.06), transparent);
  animation: auraSpin 28s linear infinite;
  opacity: 0.45;
}

.aura-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  transform: translate(-50%, -50%);
}

.ring-a { width: 340px; height: 340px; animation: auraOrbit 18s linear infinite; }
.ring-b { width: 250px; height: 250px; animation: auraOrbitReverse 14s linear infinite; }
.ring-c { width: 430px; height: 430px; border-style: dashed; animation: auraOrbit 24s linear infinite; opacity: 0.4; }

.aura-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 190px;
  height: 190px;
  transform: translate(-50%, -50%);
}

.aura-core-glow,
.aura-core-shell,
.aura-core-heart {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.aura-core-glow {
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241,213,138,0.28), rgba(155,226,119,0.12) 42%, transparent 70%);
  filter: blur(8px);
  animation: auraBreath 6s ease-in-out infinite;
}

.aura-core-shell {
  border-radius: 38% 62% 46% 54% / 46% 38% 62% 54%;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02)),
    rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 20px 40px rgba(0,0,0,0.22);
  animation: auraBlob 10s ease-in-out infinite;
}

.aura-core-heart {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.4rem;
  color: #fff2d0;
  text-shadow: 0 0 24px rgba(241,213,138,0.22);
}

.aura-fragment {
  position: absolute;
  width: 80px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.22), rgba(255,255,255,0.02));
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.frag-1 { left: 17%; top: 24%; transform: rotate(26deg); animation: fragmentFloat 7s ease-in-out infinite; }
.frag-2 { right: 16%; top: 22%; transform: rotate(-20deg); animation: fragmentFloat 8s ease-in-out infinite -.7s; }
.frag-3 { left: 16%; bottom: 26%; transform: rotate(-36deg); animation: fragmentFloat 7.2s ease-in-out infinite -1.1s; }
.frag-4 { right: 18%; bottom: 22%; transform: rotate(32deg); animation: fragmentFloat 8.4s ease-in-out infinite -.4s; }
.frag-5 { left: 38%; top: 14%; width: 48px; transform: rotate(88deg); animation: fragmentFloat 7.6s ease-in-out infinite -.9s; }
.frag-6 { right: 36%; bottom: 12%; width: 54px; transform: rotate(76deg); animation: fragmentFloat 7.8s ease-in-out infinite -.5s; }

.aura-capsules {
  position: absolute;
  inset: 0;
}

.aura-capsule {
  position: absolute;
  min-width: 126px;
  padding: 14px 16px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03)),
    rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 18px 30px rgba(0,0,0,0.18);
  backdrop-filter: blur(10px);
}

.aura-capsule small {
  display: block;
  color: #d8ebd7;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.65rem;
  margin-bottom: 4px;
}

.aura-capsule strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
}

.capsule-a { left: 10%; top: 18%; animation: capsuleDrift 6.8s ease-in-out infinite; }
.capsule-b { right: 12%; top: 34%; animation: capsuleDrift 7.2s ease-in-out infinite -.8s; }
.capsule-c { left: 18%; bottom: 18%; animation: capsuleDrift 7.4s ease-in-out infinite -1.4s; }

.aura-stage.scene-1 {
  background:
    radial-gradient(circle at 50% 42%, rgba(255,163,183,0.18), transparent 28%),
    linear-gradient(180deg, rgba(17,10,12,0.96), rgba(18,9,14,0.94));
}

.aura-stage.scene-2 {
  background:
    radial-gradient(circle at 50% 42%, rgba(126,180,255,0.18), transparent 28%),
    linear-gradient(180deg, rgba(8,13,20,0.96), rgba(7,15,17,0.94));
}

.aura-stage.scene-3 {
  background:
    radial-gradient(circle at 50% 42%, rgba(255,220,140,0.2), transparent 28%),
    linear-gradient(180deg, rgba(18,15,8,0.96), rgba(15,12,7,0.94));
}

.constellation-section {
  padding-bottom: 24px;
}

.constellation-shell {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 28px;
  padding: 32px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 14% 18%, rgba(241,213,138,0.12), transparent 18%),
    radial-gradient(circle at 82% 20%, rgba(126,180,255,0.12), transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    rgba(10, 24, 18, 0.78);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.constellation-shell::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}

.constellation-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.constellation-badge {
  width: fit-content;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: #e8f1e2;
}

.constellation-copy h3 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.92;
}

.constellation-copy > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.95;
}

.constellation-readout {
  padding: 20px 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
}

.readout-label {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: #d8ead3;
}

.constellation-readout h4 {
  margin: 10px 0 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
}

.constellation-readout p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.constellation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.constellation-tags span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #eff7eb;
}

.constellation-stage {
  position: relative;
  min-height: 540px;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(155,226,119,0.14), transparent 28%),
    linear-gradient(180deg, rgba(5,14,11,0.96), rgba(7,16,14,0.96));
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform .35s ease, background .45s ease;
}

.constellation-stage::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.05);
  pointer-events: none;
}

.constellation-fog,
.constellation-grid,
.constellation-pulse,
.constellation-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.constellation-fog {
  background:
    radial-gradient(circle at 22% 24%, rgba(241,213,138,0.18), transparent 18%),
    radial-gradient(circle at 78% 22%, rgba(126,180,255,0.18), transparent 20%),
    radial-gradient(circle at 48% 78%, rgba(155,226,119,0.16), transparent 22%);
  filter: blur(10px);
}

.constellation-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 36%, transparent 82%);
  opacity: 0.24;
}

.constellation-pulse {
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08), transparent 26%);
  animation: constellationPulse 6s ease-in-out infinite;
}

.constellation-lines {
  z-index: 1;
}

.constellation-lines path {
  fill: none;
  stroke: rgba(255,255,255,0.22);
  stroke-width: 0.36;
  stroke-linecap: round;
  stroke-dasharray: 2.5 2.8;
  animation: constellationFlow 9s linear infinite;
}

.constellation-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 154px;
  height: 154px;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.constellation-core-ring,
.constellation-core-dot,
.constellation-core-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.constellation-core-ring {
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  background:
    radial-gradient(circle, rgba(255,255,255,0.08), transparent 60%);
  box-shadow: 0 0 38px rgba(241,213,138,0.12);
  animation: constellationOrbit 12s linear infinite;
}

.constellation-core-dot::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff5db, #e5b35d 72%, rgba(229,179,93,0));
  box-shadow: 0 0 24px rgba(241,213,138,0.3);
}

.constellation-core-text {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.66);
}

.constellation-node {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  z-index: 3;
}

.constellation-node span,
.constellation-node::before,
.constellation-node::after {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  content: "";
}

.constellation-node::before {
  background: radial-gradient(circle, rgba(255,255,255,0.86), rgba(241,213,138,0.2) 56%, transparent 60%);
}

.constellation-node::after {
  border: 1px solid rgba(255,255,255,0.2);
  animation: nodeHalo 2.8s ease-in-out infinite;
}

.constellation-node span {
  inset: 6px;
  background: #fff2d2;
  box-shadow: 0 0 18px rgba(241,213,138,0.32);
}

.constellation-node.active::before {
  background: radial-gradient(circle, rgba(255,255,255,1), rgba(126,180,255,0.28) 58%, transparent 64%);
}

.constellation-node.active span {
  background: #fff8eb;
}

.node-a { left: 13%; top: 60%; }
.node-b { left: 34%; top: 30%; }
.node-c { left: 53%; top: 47%; }
.node-d { right: 20%; top: 20%; }
.node-e { right: 10%; top: 62%; }

.constellation-shard {
  position: absolute;
  width: 70px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.18), rgba(255,255,255,0.02));
  opacity: 0.6;
}

.shard-1 { left: 14%; top: 18%; transform: rotate(24deg); animation: shardDrift 7.2s ease-in-out infinite; }
.shard-2 { right: 16%; top: 34%; transform: rotate(-28deg); animation: shardDrift 8s ease-in-out infinite -.8s; }
.shard-3 { left: 26%; bottom: 18%; transform: rotate(-18deg); animation: shardDrift 7.6s ease-in-out infinite -1.2s; }
.shard-4 { right: 28%; bottom: 16%; transform: rotate(34deg); animation: shardDrift 8.2s ease-in-out infinite -.4s; }
.shard-5 { left: 44%; top: 14%; width: 44px; transform: rotate(90deg); animation: shardDrift 7s ease-in-out infinite -1s; }

.constellation-cards {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.constellation-card {
  position: absolute;
  min-width: 120px;
  padding: 14px 16px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03)),
    rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 18px 30px rgba(0,0,0,0.18);
}

.constellation-card small {
  display: block;
  color: #d8ebd7;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.65rem;
  margin-bottom: 4px;
}

.constellation-card strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
}

.card-a { left: 8%; top: 16%; animation: constellationCardDrift 6.8s ease-in-out infinite; }
.card-b { right: 10%; top: 38%; animation: constellationCardDrift 7.4s ease-in-out infinite -.8s; }
.card-c { left: 18%; bottom: 14%; animation: constellationCardDrift 7.1s ease-in-out infinite -1.1s; }

.constellation-stage.scene-1 {
  background:
    radial-gradient(circle at 50% 42%, rgba(255,158,173,0.16), transparent 28%),
    linear-gradient(180deg, rgba(16,10,13,0.96), rgba(15,10,12,0.96));
}

.constellation-stage.scene-2 {
  background:
    radial-gradient(circle at 50% 42%, rgba(126,180,255,0.18), transparent 28%),
    linear-gradient(180deg, rgba(8,12,20,0.96), rgba(8,14,18,0.96));
}

.constellation-stage.scene-3 {
  background:
    radial-gradient(circle at 50% 42%, rgba(255,221,141,0.16), transparent 28%),
    linear-gradient(180deg, rgba(17,14,8,0.96), rgba(15,12,7,0.96));
}

.constellation-stage.scene-4 {
  background:
    radial-gradient(circle at 50% 42%, rgba(187,255,214,0.16), transparent 28%),
    linear-gradient(180deg, rgba(8,18,14,0.96), rgba(7,15,12,0.96));
}

.meadow-section {
  padding-bottom: 26px;
}

.meadow-scene {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 38px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,243,193,0.18), transparent 18%),
    linear-gradient(180deg, rgba(13,31,20,0.76), rgba(8,20,14,0.92));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}

.meadow-scene::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.05);
  pointer-events: none;
}

.meadow-sky,
.meadow-glow,
.meadow-fireflies,
.meadow-field,
.meadow-copy,
.meadow-notes {
  position: absolute;
}

.meadow-sky {
  inset: 0;
  background:
    radial-gradient(circle at 20% 22%, rgba(241,213,138,0.16), transparent 18%),
    radial-gradient(circle at 78% 18%, rgba(155,226,119,0.12), transparent 18%),
    radial-gradient(circle at 50% 56%, rgba(255,255,255,0.06), transparent 28%);
  filter: blur(8px);
}

.meadow-glow {
  left: 10%;
  right: 10%;
  bottom: 10%;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155,226,119,0.22), rgba(241,213,138,0.12) 42%, transparent 70%);
  filter: blur(28px);
}

.meadow-copy {
  left: 56px;
  top: 56px;
  max-width: 560px;
  z-index: 2;
}

.meadow-kicker {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: #deefd9;
}

.meadow-copy h3 {
  margin: 10px 0 14px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.92;
}

.meadow-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.95;
  max-width: 40rem;
}

.meadow-field {
  inset: auto 0 0 0;
  height: 68%;
  z-index: 2;
}

.meadow-field::before {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -4%;
  height: 46%;
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.06), transparent 18%),
    linear-gradient(180deg, #1d472d, #10261a 70%);
  box-shadow: inset 0 18px 26px rgba(255,255,255,0.04);
}

.meadow-field::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 18px);
  opacity: 0.22;
}

.meadow-flower {
  position: absolute;
  bottom: 12%;
  width: 120px;
  height: 360px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.flower-a { left: 10%; }
.flower-b { left: 31%; bottom: 8%; }
.flower-c { left: 53%; bottom: 11%; }
.flower-d { right: 10%; bottom: 9%; }

.flower-stem {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 8px;
  height: 270px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, #8ed07d, #27553a);
  box-shadow: 0 0 10px rgba(155,226,119,0.12);
}

.flower-stem::before,
.flower-stem::after {
  content: "";
  position: absolute;
  width: 58px;
  height: 28px;
  border-radius: 58px 0 58px 0;
  background: linear-gradient(145deg, #9ce083, #3e7f4b);
}

.flower-stem::before {
  left: -52px;
  top: 88px;
  transform: rotate(-26deg);
}

.flower-stem::after {
  right: -52px;
  top: 144px;
  transform: scaleX(-1) rotate(-18deg);
}

.flower-head {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 116px;
  height: 116px;
  transform: translateX(-50%);
  animation: flowerSway 6.4s ease-in-out infinite;
}

.petal,
.flower-center {
  position: absolute;
}

.petal {
  width: 48px;
  height: 62px;
  left: 50%;
  top: 50%;
  margin-left: -24px;
  margin-top: -40px;
  border-radius: 54% 46% 56% 44%;
  background: radial-gradient(circle at 50% 28%, rgba(255,255,255,0.72), rgba(255,219,164,0.92) 38%, rgba(241,154,176,0.88) 100%);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.34);
}

.flower-center {
  left: 50%;
  top: 50%;
  width: 38px;
  height: 38px;
  margin-left: -19px;
  margin-top: -19px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff1b3, #e2a742 72%, #7c5320 100%);
  box-shadow: 0 0 16px rgba(241,213,138,0.26);
}

.p1 { transform: translateY(-34px); }
.p2 { transform: rotate(72deg) translateY(-34px); transform-origin: center 74px; }
.p3 { transform: rotate(144deg) translateY(-34px); transform-origin: center 74px; }
.p4 { transform: rotate(216deg) translateY(-34px); transform-origin: center 74px; }
.p5 { transform: rotate(288deg) translateY(-34px); transform-origin: center 74px; }

.meadow-flower.active .flower-center,
.meadow-flower:hover .flower-center {
  box-shadow: 0 0 24px rgba(241,213,138,0.42);
}

.meadow-flower.active .flower-head,
.meadow-flower:hover .flower-head {
  animation-duration: 3.8s;
}

.meadow-notes {
  right: 34px;
  top: 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
}

.meadow-notes span {
  width: fit-content;
  align-self: flex-end;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #eef6e8;
  backdrop-filter: blur(10px);
}

.meadow-fireflies {
  inset: 0;
  pointer-events: none;
}

.meadow-fireflies span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,244,200,0.88);
  box-shadow: 0 0 16px rgba(255,220,140,0.4);
  animation: fireflyFloat 7s ease-in-out infinite;
}

.meadow-fireflies span:nth-child(1) { left: 14%; top: 18%; animation-delay: 0s; }
.meadow-fireflies span:nth-child(2) { left: 34%; top: 26%; animation-delay: -.8s; }
.meadow-fireflies span:nth-child(3) { right: 20%; top: 22%; animation-delay: -1.6s; }
.meadow-fireflies span:nth-child(4) { right: 14%; top: 42%; animation-delay: -2.1s; }
.meadow-fireflies span:nth-child(5) { left: 22%; bottom: 24%; animation-delay: -1.3s; }
.meadow-fireflies span:nth-child(6) { right: 34%; bottom: 28%; animation-delay: -.4s; }

.vinyl-card {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 26px;
  padding: 28px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 18%, rgba(241,213,138,0.12), transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    rgba(13, 24, 19, 0.74);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.vinyl-player {
  position: relative;
  min-height: 430px;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 20%, rgba(255,255,255,0.08), transparent 18%),
    linear-gradient(145deg, #1d2c22, #0e1712 56%, #09100c);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -18px 28px rgba(0,0,0,0.3);
}

.turntable-base {
  position: absolute;
  inset: 22px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.08);
}

.turntable-platter {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.18), transparent 18%),
    radial-gradient(circle, #2f3733 0 56%, #1d221f 56% 72%, #0f1311 72% 100%);
  box-shadow:
    inset 0 0 0 8px rgba(255,255,255,0.03),
    0 24px 50px rgba(0,0,0,0.34);
}

.vinyl-record {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 274px;
  height: 274px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 16%),
    radial-gradient(circle, #242827 0 18%, #080909 18% 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    0 18px 36px rgba(0,0,0,0.34);
}

.vinyl-record.spinning {
  animation: vinylSpin 4.6s linear infinite;
}

.vinyl-rings,
.vinyl-rings::before,
.vinyl-rings::after {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.vinyl-rings {
  background:
    repeating-radial-gradient(circle, rgba(255,255,255,0.03) 0 2px, transparent 2px 8px);
  opacity: 0.55;
}

.vinyl-rings::before,
.vinyl-rings::after {
  content: "";
}

.vinyl-rings::before {
  inset: 22%;
  border: 1px solid rgba(255,255,255,0.06);
}

.vinyl-rings::after {
  inset: 47%;
  background: radial-gradient(circle, #1a231d, #060707 78%);
}

.vinyl-label {
  position: absolute;
  inset: 50%;
  width: 110px;
  height: 110px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.24), transparent 20%),
    linear-gradient(145deg, #ecd9ae, #b99255 68%, #7d5d2f);
  color: #17120d;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px 12px;
  box-shadow: inset 0 0 0 10px rgba(255,255,255,0.08);
}

.vinyl-label strong,
.vinyl-copy h3 {
  font-family: 'Cormorant Garamond', serif;
}

.label-artist {
  display: block;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vinyl-label strong {
  display: block;
  font-size: 1.08rem;
  line-height: 0.92;
}

.vinyl-label small {
  display: block;
  margin-top: 4px;
  font-size: 0.62rem;
}

.tonearm {
  position: absolute;
  right: 32px;
  top: 54px;
  width: 184px;
  height: 120px;
  transform-origin: 156px 20px;
  transform: rotate(30deg);
  transition: transform .8s cubic-bezier(.22,1,.19,1);
  z-index: 6;
}

.tonearm.playing {
  transform: rotate(-18deg);
}

.tonearm-base {
  position: absolute;
  right: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, #d1bf97, #6c5736);
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

.tonearm-arm {
  position: absolute;
  left: 20px;
  top: 16px;
  width: 136px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #dec99f, #a48b63 54%, #6d5b42);
  box-shadow: 0 6px 14px rgba(0,0,0,0.24);
}

.tonearm-head {
  position: absolute;
  left: 6px;
  top: 11px;
  width: 28px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(145deg, #f1e1b8, #8d7145);
  box-shadow: 0 6px 10px rgba(0,0,0,0.24);
}

.vinyl-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vinyl-meta {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: #dcefd5;
}

.vinyl-copy h3 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.94;
  margin: 12px 0 14px;
}

.vinyl-copy p {
  color: var(--muted);
  line-height: 1.9;
  max-width: 34rem;
}

.vinyl-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.vinyl-button {
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(135deg, rgba(241,213,138,0.2), rgba(155,226,119,0.18));
  color: var(--text);
  border-radius: 999px;
  padding: 13px 20px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.vinyl-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.2);
  border-color: rgba(255,255,255,0.18);
}

.vinyl-time {
  min-width: 78px;
  text-align: center;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #f4f0e8;
  letter-spacing: 0.08em;
}

.liebele-section {
  margin-top: 34px;
}

.liebele-card {
  position: relative;
  isolation: isolate;
  display: block;
  width: min(780px, 100%);
  margin: 0 auto;
  padding: 22px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(155,226,119,0.16), transparent 24%),
    radial-gradient(circle at 88% 14%, rgba(241,213,138,0.14), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(112, 198, 158, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    rgba(10, 22, 16, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.liebele-aurora,
.liebele-scan,
.liebele-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.liebele-aurora {
  z-index: 0;
  background:
    conic-gradient(from 150deg at 15% 20%, rgba(159,245,122,0.18), transparent 34%),
    conic-gradient(from 0deg at 88% 16%, rgba(239,210,140,0.16), transparent 38%),
    radial-gradient(circle at 45% 75%, rgba(114, 214, 169, 0.16), transparent 42%);
  filter: blur(26px) saturate(1.2);
  animation: liebeleAurora 14s ease-in-out infinite alternate;
}

.liebele-scan {
  z-index: 1;
  background:
    linear-gradient(180deg, transparent, rgba(255,255,255,0.06), transparent);
  transform: translateY(-120%);
  animation: liebeleScan 8.2s linear infinite;
  opacity: 0.5;
}

.liebele-stars {
  z-index: 1;
  mix-blend-mode: screen;
}

.liebele-stars span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.95), rgba(176,255,187,0.4));
  box-shadow: 0 0 10px rgba(241,213,138,0.35);
  animation: liebeleStarTwinkle 2.4s ease-in-out infinite;
}

.liebele-stage {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  margin: 0 auto;
  border-radius: 28px;
  padding: 24px 24px 20px;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(8, 19, 14, 0.95), rgba(13, 29, 21, 0.92)),
    radial-gradient(circle at 20% 18%, rgba(155,226,119,0.12), transparent 30%),
    radial-gradient(circle at 84% 16%, rgba(241,213,138,0.1), transparent 34%);
  border: 1px solid rgba(255,255,255,0.08);
}

.liebele-stage::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}

.liebele-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.liebele-badge,
.liebele-tries {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.liebele-badge {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e8f7df;
}

.liebele-tries {
  background: linear-gradient(135deg, rgba(155,226,119,0.2), rgba(241,213,138,0.16));
  border: 1px solid rgba(255,255,255,0.14);
  color: #f1f7de;
}

.liebele-grid {
  margin-top: 18px;
  width: min(420px, 100%);
  margin-left: auto;
  margin-right: auto;
  display: grid;
  gap: 8px;
}

.liebele-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(52px, 1fr));
  gap: 8px;
}

.liebele-cell {
  aspect-ratio: 1;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  display: grid;
  place-items: center;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f8f5ea;
  transform-style: preserve-3d;
  transition: transform .4s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease;
}

.liebele-cell.filled {
  border-color: rgba(241,213,138,0.34);
  box-shadow: inset 0 0 0 1px rgba(241,213,138,0.12);
}

.liebele-cell.is-reveal {
  animation: liebeleFlip .62s cubic-bezier(.2,.9,.2,1) both;
}

.liebele-cell.correct {
  background: linear-gradient(145deg, rgba(86,186,116,0.95), rgba(52,130,78,0.95));
  border-color: rgba(194,255,202,0.5);
  color: #f7fff2;
  box-shadow: 0 10px 24px rgba(86,186,116,0.35);
  animation: liebelePop .34s ease both;
}

.liebele-cell.present {
  background: linear-gradient(145deg, rgba(233,186,97,0.95), rgba(170,122,44,0.95));
  border-color: rgba(255,233,183,0.45);
  color: #102015;
  box-shadow: 0 10px 24px rgba(233,186,97,0.28);
  animation: liebelePop .34s ease both;
}

.liebele-cell.absent {
  background: linear-gradient(145deg, rgba(50,67,57,0.9), rgba(34,44,38,0.94));
  border-color: rgba(255,255,255,0.12);
  color: #d7ddd6;
}

.liebele-status {
  margin-top: 14px;
  min-height: 22px;
  color: #d8ebd7;
  letter-spacing: 0.04em;
}

.liebele-status.is-win {
  color: #f4ffcc;
  text-shadow: 0 0 18px rgba(241,213,138,0.45);
}

.liebele-status.is-lose {
  color: #ffd7cf;
}

.liebele-controls {
  margin-top: 14px;
  width: min(500px, 100%);
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
}

.liebele-input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.13);
  background: rgba(255,255,255,0.05);
  color: #f8f5ea;
  padding: 12px 14px;
  font: inherit;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.liebele-input:focus {
  outline: none;
  border-color: rgba(241,213,138,0.45);
  box-shadow: 0 0 0 3px rgba(241,213,138,0.15);
}

.liebele-button {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 11px 16px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.liebele-button.primary {
  background: linear-gradient(135deg, rgba(155,226,119,0.88), rgba(241,213,138,0.72));
  color: #0f1911;
}

.liebele-button.ghost {
  background: rgba(255,255,255,0.06);
  color: #eff5e8;
}

.liebele-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0,0,0,0.22);
}

.liebele-keyboard {
  margin-top: 14px;
  width: min(500px, 100%);
  margin-left: auto;
  margin-right: auto;
  display: grid;
  gap: 8px;
}

.liebele-key-row {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.liebele-key {
  min-width: 0;
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: #f7f5ed;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.liebele-key.action {
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.liebele-key-row.keys-10 {
  grid-template-columns: repeat(10, minmax(0, 1fr));
}

.liebele-key-row.keys-9 {
  grid-template-columns: repeat(9, minmax(0, 1fr));
}

.liebele-key:hover {
  transform: translateY(-2px) scale(1.03);
}

.liebele-key.correct {
  background: rgba(86,186,116,0.9);
  border-color: rgba(194,255,202,0.45);
  color: #f5fff1;
  box-shadow: 0 8px 16px rgba(86,186,116,0.32);
}

.liebele-key.present {
  background: rgba(233,186,97,0.9);
  border-color: rgba(255,233,183,0.45);
  color: #182013;
  box-shadow: 0 8px 16px rgba(233,186,97,0.28);
}

.liebele-key.absent {
  background: rgba(57,68,63,0.9);
  border-color: rgba(255,255,255,0.12);
  color: #d7ddd6;
}

.liebele-stage.is-won {
  animation: liebeleWinGlow 1.3s ease both;
}

.liebele-stage.is-shake {
  animation: liebeleShake .38s ease;
}

.liebele-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.liebele-particle {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6ce 0%, #d8ffaf 58%, rgba(155,226,119,0.1) 100%);
  animation: liebeleParticle .9s ease-out forwards;
}

.footer { padding: 70px 0 100px; }
.footer-inner {
  text-align: center;
  padding: 36px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.big { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 10px; }
.footer p:last-child { color: var(--muted); }

.comic {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 8px 0 0;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  align-items: flex-start;
}

.panel {
  position: relative;
  flex: 1 1 260px;
  min-height: 240px;
  margin: 10px;
  overflow: hidden;
  border: solid 3px #101010;
  border-radius: 22px;
  background: #fffdf8;
  box-shadow:
    0 10px 0 rgba(0,0,0,0.16),
    0 18px 30px rgba(0,0,0,0.18);
  transform: translateY(24px) rotate(0deg);
  opacity: 0;
  animation: comicPanelIn .75s cubic-bezier(.2,.9,.2,1) forwards;
  transition: transform .35s ease, box-shadow .35s ease, filter .35s ease;
  transform-style: preserve-3d;
}

.panel:hover {
  transform: translateY(-8px) rotate(-1.2deg);
  box-shadow:
    0 14px 0 rgba(0,0,0,0.16),
    0 24px 34px rgba(0,0,0,0.22);
  filter: saturate(1.04);
}

.panel:nth-child(2) { animation-delay: .06s; }
.panel:nth-child(3) { animation-delay: .12s; }
.panel:nth-child(4) { animation-delay: .18s; }
.panel:nth-child(5) { animation-delay: .24s; }
.panel:nth-child(6) { animation-delay: .30s; }
.panel:nth-child(7) { animation-delay: .36s; }
.panel:nth-child(8) { animation-delay: .42s; }
.panel:nth-child(9) { animation-delay: .48s; }
.panel:nth-child(10) { animation-delay: .54s; }
.panel:nth-child(11) { animation-delay: .60s; }

.panel-square {
  flex-basis: 280px;
  aspect-ratio: 1 / 1;
}

.panel-landscape {
  flex-basis: 420px;
  aspect-ratio: 1376 / 768;
}

.panel-cinema {
  flex-basis: 420px;
  aspect-ratio: 1651 / 624;
}

.panel-portraitish {
  flex-basis: 320px;
  aspect-ratio: 1193 / 896;
}

.panel-note,
.panel-burst,
.panel-end {
  flex-basis: 220px;
  aspect-ratio: 1 / 1;
}

.panel:nth-child(4n+1) {
  background-image:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), transparent 18%),
    radial-gradient(circle, #ffe66b, #ff8c3a);
}

.panel:nth-child(4n+2) {
  background-image:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), transparent 18%),
    radial-gradient(circle, #95e5ff, #1fa0ff);
}

.panel:nth-child(4n+3) {
  background-image:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), transparent 18%),
    radial-gradient(circle, #d6ff87, #7bc043);
}

.panel:nth-child(4n+4) {
  background-image:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), transparent 18%),
    radial-gradient(circle, #ffadad, #ff5a3d);
}

.panel.has-image {
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,0.82), transparent 16%),
    linear-gradient(180deg, #fffefb, #f6f0e3);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(0,0,0,0.06) 0 1px, transparent 1.5px);
  background-size: 18px 18px;
  opacity: 0.32;
}

.panel.has-image::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), transparent 22%, rgba(0,0,0,0.05)),
    radial-gradient(circle, rgba(0,0,0,0.05) 0 1px, transparent 1.5px);
  background-size: auto, 18px 18px;
  z-index: 1;
}

.panel.has-image::after {
  content: "";
  position: absolute;
  inset: -20% 55% -20% -35%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: translateX(-120%) rotate(8deg);
  animation: comicShine 7s ease-in-out infinite;
  opacity: 0.55;
  z-index: 1;
  pointer-events: none;
}

.panel-image {
  position: absolute;
  inset: 10px;
  width: 100%;
  height: 100%;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  object-fit: contain;
  object-position: center;
  z-index: 0;
  transform: translate3d(0, 0, 0);
  filter: saturate(1.02) contrast(1.04) drop-shadow(0 10px 20px rgba(0,0,0,0.16));
  transition: transform .55s ease, filter .55s ease;
  animation: comicImageDrift 9s ease-in-out infinite;
}

.panel:hover .panel-image {
  transform: translate3d(6px, -4px, 0) rotate(.35deg);
  filter: saturate(1.08) contrast(1.08);
}

.panel-placeholder {
  background:
    radial-gradient(circle at 30% 26%, rgba(255,225,120,0.22), transparent 22%),
    linear-gradient(180deg, #fffefb, #f5eedf);
}

.panel-placeholder::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px dashed rgba(0,0,0,0.14);
  border-radius: 14px;
}

.panel-burst {
  background:
    radial-gradient(circle at center, rgba(255,230,120,0.22), transparent 24%),
    repeating-conic-gradient(from 0deg, rgba(0,0,0,0.04) 0deg 8deg, transparent 8deg 16deg),
    linear-gradient(180deg, #fffefb, #f6efdf);
}

.panel-note {
  animation: comicPanelIn .75s cubic-bezier(.2,.9,.2,1) forwards, noteWobble 5.8s ease-in-out infinite 1s;
}

.panel-burst {
  animation: comicPanelIn .75s cubic-bezier(.2,.9,.2,1) forwards, burstFlash 4.6s steps(2, end) infinite 1.1s;
}

.panel-end {
  animation: comicPanelIn .75s cubic-bezier(.2,.9,.2,1) forwards, endGlint 6.8s ease-in-out infinite 1.2s;
}

.text {
  margin: 0;
  padding: 5px 12px;
  border: solid 2px #000;
  background-color: #fff;
  color: #111;
  font-weight: 700;
  letter-spacing: 0.03em;
  z-index: 2;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
  transition: transform .35s ease;
}

.top-left {
  position: absolute;
  top: -2px;
  left: -6px;
  transform: skew(-15deg);
}

.bottom-right {
  position: absolute;
  right: -6px;
  bottom: -2px;
  transform: skew(-15deg);
}

.panel:hover .top-left {
  transform: skew(-15deg) translate(3px, -2px) rotate(-1deg);
}

.panel:hover .bottom-right {
  transform: skew(-15deg) translate(-3px, 2px) rotate(1deg);
}

.speech {
  display: inline-block;
  position: relative;
  margin: .8em;
  padding: .65em 1.1em;
  border: solid 2px #000;
  border-radius: 16px;
  background-color: #fff;
  color: #111;
  font-weight: 700;
  z-index: 2;
  animation: speechBob 4.6s ease-in-out infinite;
}

.speech::before {
  content: "";
  position: absolute;
  left: 24px;
  bottom: -24px;
  width: 0;
  height: 0;
  border: solid 12px transparent;
  border-left: solid 12px #000;
  border-top: solid 12px #000;
  transform: skew(-15deg);
}

.speech::after {
  content: "";
  position: absolute;
  left: 27px;
  bottom: -19px;
  width: 0;
  height: 0;
  border: solid 10px transparent;
  border-left: solid 10px #fff;
  border-top: solid 10px #fff;
  transform: skew(-15deg);
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.stagger-1 { transition-delay: .08s; }
.stagger-2 { transition-delay: .16s; }
.stagger-3 { transition-delay: .24s; }

.floaty { animation: floaty 6s ease-in-out infinite; }
.floaty-slow { animation: floaty 8s ease-in-out infinite; }
.bouncey { animation: bouncey 2.6s ease-in-out infinite; }
.spin-soft { animation: spinSoft 12s linear infinite; }
.tilt-card:hover { transform: perspective(1200px) rotateX(6deg) rotateY(-7deg) translateY(-5px); }

@keyframes floaty {
  0%,100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}
@keyframes bouncey {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}
@keyframes spinSoft {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes flicker {
  0% { transform: translateX(-50%) scale(1) rotate(-3deg); }
  100% { transform: translateX(-50%) scale(1.12, .94) rotate(4deg); }
}
@keyframes smokeRise {
  0% { opacity: 0.8; transform: translateX(-50%) translateY(0) scale(0.55); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-34px) scale(1.4); }
}
@keyframes pulseHalo {
  0%,100% { transform: scale(0.96); opacity: .82; }
  50% { transform: scale(1.05); opacity: 1; }
}
@keyframes fryDance {
  0%,100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(-8px); }
}
@keyframes pulseDot {
  0% { transform: scale(.7); opacity: .6; }
  70% { transform: scale(2.6); opacity: 0; }
  100% { opacity: 0; }
}
@keyframes beacon {
  0%,100% { opacity: .9; }
  50% { opacity: .35; }
}
@keyframes starsDrift {
  from { transform: translateY(0); }
  to { transform: translateY(40px); }
}
@keyframes orbit {
  from { transform: rotate(0deg) translateX(70px) rotate(45deg); }
  to { transform: rotate(360deg) translateX(70px) rotate(45deg); }
}
@keyframes b1Spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes b1SpinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
@keyframes b1StageFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes b1RingBreath {
  0%, 100% { transform: scale(1); opacity: .8; }
  50% { transform: scale(1.04); opacity: 1; }
}
@keyframes b1GlowPulse {
  0%, 100% { transform: scale(.9); opacity: .62; }
  50% { transform: scale(1.16); opacity: 1; }
}
@keyframes b1BadgeFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-7px) rotate(1deg); }
}
@keyframes b1BadgeShine {
  0% { transform: translateX(-130%); opacity: 0; }
  22% { opacity: .9; }
  45% { transform: translateX(130%); opacity: 0; }
  100% { transform: translateX(130%); opacity: 0; }
}
@keyframes b1OneKick {
  0%, 100% { transform: skewX(-10deg) rotate(5deg) translateY(1px) scale(1); }
  50% { transform: skewX(-10deg) rotate(5deg) translateY(-1px) scale(1.03); }
}
@keyframes b1SparkOrbit {
  from {
    transform: rotate(var(--b1-orbit-start, 0deg)) translateX(var(--b1-orbit-radius, 80px)) rotate(calc(-1 * var(--b1-orbit-start, 0deg)));
  }
  to {
    transform: rotate(calc(var(--b1-orbit-start, 0deg) + 360deg)) translateX(var(--b1-orbit-radius, 80px)) rotate(calc(-1 * (var(--b1-orbit-start, 0deg) + 360deg)));
  }
}
@keyframes b1SparkPulse {
  0%, 100% { opacity: .42; box-shadow: 0 0 10px rgba(241,213,138,0.62); }
  50% { opacity: 1; box-shadow: 0 0 18px rgba(255,242,0,0.95); }
}
@keyframes drift {
  from { transform: translateY(-20px) rotate(0deg); }
  to { transform: translateY(20px) rotate(30deg); }
}
@keyframes twinkle {
  0%,100% { opacity: .22; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.7); }
}
@keyframes mistMove {
  from { transform: translateX(-2%) scaleX(1); }
  to { transform: translateX(2%) scaleX(1.05); }
}
@keyframes waterShift {
  from { transform: translateY(0); }
  to { transform: translateY(12px); }
}
@keyframes shimmer {
  0%,100% { opacity: .25; transform: scaleY(.94); }
  50% { opacity: .62; transform: scaleY(1.12); }
}
@keyframes grainMove {
  from { transform: translate(0,0); }
  to { transform: translate(-18px,10px); }
}
@keyframes vinylSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes prismRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes prismRotateReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
@keyframes prismPulse {
  0%,100% { transform: translateY(-30%); opacity: 0.14; }
  50% { transform: translateY(30%); opacity: 0.38; }
}
@keyframes prismSweep {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}
@keyframes tagFloat {
  0%,100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes timeSheen {
  0%, 100% { transform: translateX(-120%); opacity: 0; }
  16% { opacity: 0.28; }
  44% { transform: translateX(120%); opacity: 0.36; }
  52% { opacity: 0; }
}
@keyframes orbitDrift {
  from { transform: rotate(0deg) scale(1); }
  to { transform: rotate(360deg) scale(1.04); }
}
@keyframes orbitDriftReverse {
  from { transform: rotate(360deg) scale(1); }
  to { transform: rotate(0deg) scale(1.06); }
}
@keyframes sparkleBlink {
  0%,100% { opacity: 0.2; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.7); }
}
@keyframes comicPanelIn {
  0% { opacity: 0; transform: translateY(30px) rotate(-2deg); }
  68% { opacity: 1; transform: translateY(-6px) rotate(0.8deg); }
  100% { opacity: 1; transform: translateY(0) rotate(0deg); }
}
@keyframes comicImageDrift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  25% { transform: translate3d(4px, -3px, 0) rotate(.25deg); }
  50% { transform: translate3d(-3px, -6px, 0) rotate(-.2deg); }
  75% { transform: translate3d(3px, -2px, 0) rotate(.18deg); }
}
@keyframes comicShine {
  0%, 100% { transform: translateX(-120%) rotate(8deg); opacity: 0; }
  16% { opacity: 0.22; }
  42% { transform: translateX(210%) rotate(8deg); opacity: 0.55; }
  54% { opacity: 0; }
}
@keyframes speechBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(-1deg); }
}
@keyframes noteWobble {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  20% { transform: rotate(-1.2deg) translateY(-2px); }
  40% { transform: rotate(.8deg) translateY(0); }
  60% { transform: rotate(-.6deg) translateY(-3px); }
  80% { transform: rotate(.4deg) translateY(0); }
}
@keyframes burstFlash {
  0%, 100% { filter: saturate(1) brightness(1); }
  50% { filter: saturate(1.15) brightness(1.08); }
}
@keyframes endGlint {
  0%, 100% { box-shadow: 0 10px 0 rgba(0,0,0,0.16), 0 18px 30px rgba(0,0,0,0.18); }
  50% { box-shadow: 0 10px 0 rgba(0,0,0,0.16), 0 18px 30px rgba(0,0,0,0.18), inset 0 0 0 2px rgba(255,220,120,0.28); }
}
@keyframes auraSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes auraOrbit {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes auraOrbitReverse {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}
@keyframes auraBreath {
  0%,100% { opacity: 0.7; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.05); }
}
@keyframes auraBlob {
  0%,100% { border-radius: 38% 62% 46% 54% / 46% 38% 62% 54%; transform: rotate(0deg); }
  50% { border-radius: 54% 46% 58% 42% / 42% 58% 44% 56%; transform: rotate(10deg); }
}
@keyframes fragmentFloat {
  0%,100% { opacity: 0.68; transform: translateY(0) rotate(0deg); }
  50% { opacity: 1; transform: translateY(-14px) rotate(6deg); }
}
@keyframes capsuleDrift {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes constellationPulse {
  0%,100% { opacity: 0.22; transform: scale(0.94); }
  50% { opacity: 0.52; transform: scale(1.06); }
}
@keyframes constellationFlow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -18; }
}
@keyframes constellationOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes nodeHalo {
  0%,100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.9); }
}
@keyframes shardDrift {
  0%,100% { opacity: 0.58; transform: translateY(0) rotate(0deg); }
  50% { opacity: 0.92; transform: translateY(-12px) rotate(5deg); }
}
@keyframes constellationCardDrift {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes flowerSway {
  0%,100% { transform: translateX(-50%) rotate(-2deg); }
  50% { transform: translateX(-50%) rotate(3deg); }
}
@keyframes fireflyFloat {
  0%,100% { opacity: 0.3; transform: translateY(0) scale(0.9); }
  50% { opacity: 1; transform: translateY(-14px) scale(1.25); }
}

@media (max-width: 980px) {
  .hero-content,
  .intro-grid,
  .time-flip-card,
  .time-portrait-card,
  .prism-panel,
  .vinyl-card,
  .memory-layout,
  .time-window-card,
  .aura-shell,
  .constellation-shell {
    grid-template-columns: 1fr;
  }

  .hero-visual { min-height: 500px; }
  .section-heading h2 { line-height: 1.04; }
  .storybook-head {
    flex-direction: column;
    align-items: start;
  }

  .memory-page {
    grid-template-columns: 1fr;
  }

  .book-page {
    min-height: 520px;
  }

  .realistic-book {
    min-height: 540px;
  }

  .book-stage {
    height: 540px;
  }

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

  .prism-stage {
    min-height: 480px;
  }
  .prism-core-wrap {
    width: min(100% - 52px, 360px);
  }
  .time-portrait-stage {
    min-height: 420px;
  }
  .time-flip-shell {
    min-height: 420px;
  }
  .aura-stage {
    min-height: 460px;
  }
  .constellation-stage {
    min-height: 460px;
  }
  .meadow-scene {
    min-height: 720px;
  }
  .meadow-copy {
    left: 34px;
    right: 34px;
    max-width: none;
  }
  .meadow-notes {
    right: 20px;
    top: 30px;
  }
  .time-window-section {
    margin: 56px auto;
    padding: 72px 0 78px;
  }
  .time-window-inner {
    width: min(100% - 32px, 1280px);
  }
  .time-window-frame {
    min-height: 440px;
  }
  .time-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    padding: 12px 10px 30px;
  }
  .time-unit-featured {
    grid-column: auto;
    min-height: 176px;
  }
  .time-unit-accent {
    grid-column: auto;
  }
  .nyc-moon {
    width: 82px;
    height: 82px;
  }
  .nyc-label {
    font-size: 18px;
    letter-spacing: .16em;
  }
  .nyc-sub {
    font-size: 10px;
    letter-spacing: .22em;
  }
}

@media (max-width: 640px) {
  .topbar { border-radius: 24px; gap: 12px; flex-direction: column; }
  .hero h1 { font-size: 3.2rem; }
  .cake-card { padding: 18px; }
  .symbol-row { flex-direction: column; gap: 14px; }
  .storybook-shell,
  .book-page { padding: 20px; }
  .storybook-actions { width: 100%; }
  .book-nav { flex: 1; }
  .page-visual { min-height: 260px; }
  .realistic-book {
    min-height: 470px;
  }
  .book-stage {
    height: 470px;
  }
  .sheet-face,
  .cover-face,
  .paper-face,
  .closing-face,
  .back-cover-face {
    border-radius: 18px;
  }
  .cover-face,
  .back-cover-face,
  .paper-face,
  .closing-face {
    padding: 18px;
  }
  .book-spine-core {
    width: 20px;
  }
  .page-grid {
    gap: 16px;
  }
  .prism-panel {
    padding: 20px;
  }
  .prism-stage {
    min-height: 420px;
  }
  .prism-core-wrap {
    width: calc(100% - 42px);
  }
  .time-portrait-card {
    padding: 20px;
  }
  .time-flip-card {
    padding: 20px;
  }
  .time-portrait-stage {
    min-height: 360px;
    border-radius: 20px;
  }
  .time-flip-shell {
    min-height: 360px;
    border-radius: 20px;
  }
  .time-portrait-controls {
    padding: 14px;
  }
  .aura-shell {
    padding: 20px;
  }
  .aura-stage {
    min-height: 420px;
  }
  .aura-copy h3 {
    font-size: 2.7rem;
  }
  .aura-capsule {
    min-width: 104px;
    padding: 12px 13px;
  }
  .capsule-a { left: 8%; top: 15%; }
  .capsule-b { right: 8%; top: 30%; }
  .capsule-c { left: 12%; bottom: 12%; }
  .ring-a { width: 250px; height: 250px; }
  .ring-b { width: 180px; height: 180px; }
  .ring-c { width: 320px; height: 320px; }
  .constellation-shell {
    padding: 20px;
  }
  .constellation-stage {
    min-height: 420px;
  }
  .constellation-copy h3 {
    font-size: 2.7rem;
  }
  .constellation-card {
    min-width: 104px;
    padding: 12px 13px;
  }
  .card-a { left: 7%; top: 15%; }
  .card-b { right: 8%; top: 34%; }
  .card-c { left: 12%; bottom: 12%; }
  .meadow-scene {
    min-height: 840px;
  }
  .meadow-copy {
    left: 22px;
    right: 22px;
    top: 28px;
  }
  .meadow-copy h3 {
    font-size: 2.7rem;
  }
  .meadow-notes {
    left: 18px;
    right: 18px;
    top: auto;
    bottom: 18px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .meadow-notes span {
    align-self: auto;
  }
  .meadow-field {
    height: 58%;
  }
  .meadow-flower {
    width: 100px;
    height: 300px;
    bottom: 12%;
  }
  .flower-a { left: 4%; }
  .flower-b { left: 27%; }
  .flower-c { left: 52%; }
  .flower-d { right: 4%; }
  .photo-frame {
    border-radius: 20px;
  }
  .photo-art {
    inset: 12px 12px 66px;
    border-radius: 14px;
  }
  .photo-meta {
    left: 14px;
    right: 14px;
    bottom: 12px;
  }
  .photo-meta strong {
    font-size: 1.6rem;
  }
  .photo-meta small {
    font-size: 0.62rem;
  }
  .prism-tag {
    font-size: 0.84rem;
    padding: 8px 11px;
  }
  .comic {
    padding-top: 0;
  }
  .panel {
    flex: 0 0 100% !important;
    width: 100%;
    height: auto;
    min-height: 220px;
    margin: 8px 0;
  }
  .panel-square {
    aspect-ratio: 1 / 1;
  }
  .panel-landscape {
    aspect-ratio: 1376 / 768;
  }
  .panel-cinema {
    aspect-ratio: 1651 / 624;
  }
  .panel-portraitish {
    aspect-ratio: 1193 / 896;
  }
  .panel-note,
  .panel-burst,
  .panel-end {
    aspect-ratio: 1 / 1;
  }
  .text,
  .speech {
    font-size: 0.92rem;
  }
  .vinyl-card {
    padding: 20px;
  }
  .time-window-card {
    gap: 24px;
  }
  .time-window-section {
    margin: 44px auto;
    padding: 58px 0 64px;
  }
  .time-window-inner {
    width: min(100% - 20px, 1280px);
    margin-inline: auto;
  }
  #timeWindow .section-heading {
    text-align: center;
  }
  .time-window-frame {
    min-height: 980px;
    padding: 18px;
    text-align: center;
  }
  .time-window-badge {
    max-width: calc(100% - 20px);
    text-align: center;
  }
  .time-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 36px 4px 24px;
    margin-inline: auto;
    justify-items: center;
  }
  .time-unit {
    min-height: 150px;
    width: min(100%, 320px);
    padding: 0;
    margin: 0 auto;
  }
  .time-unit::before {
    display: none;
  }
  .time-unit::after {
    bottom: 8px;
  }
  .time-value-wrap {
    min-height: 96px;
    margin-top: 0;
    width: 100%;
    justify-content: center;
  }
  .time-value {
    font-size: 4.2rem;
    text-align: center;
  }
  .time-label {
    width: 100%;
    text-align: center;
  }
  .orbit-a {
    width: 250px;
    height: 250px;
    right: -70px;
    top: 48px;
  }
  .orbit-b {
    width: 180px;
    height: 180px;
    left: -48px;
    bottom: -24px;
  }
  .vinyl-player {
    min-height: 340px;
  }
  .turntable-platter {
    width: 240px;
    height: 240px;
  }
  .vinyl-record {
    width: 202px;
    height: 202px;
  }
  .tonearm {
    right: 10px;
    top: 38px;
    transform: scale(.82) rotate(30deg);
    transform-origin: top right;
  }
  .tonearm.playing {
    transform: scale(.82) rotate(-18deg);
  }
  .nyc-water {
    bottom: -14px;
    height: 35%;
  }
  .nyc-horizon {
    bottom: calc(35% - 5px);
  }
  .nyc-skyline-wrap svg {
    height: calc(100% + 52px);
    transform: translateY(42px);
  }
  .vinyl-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .vinyl-time,
  .vinyl-button {
    width: 100%;
  }
  .cloud-a { top: 38px; left: 18px; }
  .cloud-b { top: 86px; right: 18px; }
  .cloud-c { bottom: 76px; left: 24px; }
  .cloud-d { bottom: 40px; right: 18px; }
  .polaroid { width: 110px; height: 136px; }
  .polaroid-b { left: 88px; }
  .polaroid-c { left: 44px; top: 146px; }
  .stem-1 { left: 6px; }
  .stem-2 { left: 92px; }
  .stem-3 { left: 174px; }
  .cover-mark {
    right: 20px;
    bottom: 20px;
    width: 68px;
    height: 68px;
  }
  .letter { padding: 24px; }
  .reasons { columns: 1; }
  .timeline { padding-left: 24px; }
  .caption { font-size: .92rem; }
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  filter: blur(42px);
}

body::before {
  top: 14%;
  left: -8%;
  width: 28vw;
  height: 28vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155,226,119,0.14), transparent 68%);
  animation: ambientShift 16s ease-in-out infinite alternate;
}

body::after {
  right: -10%;
  bottom: 8%;
  width: 30vw;
  height: 30vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241,213,138,0.12), transparent 70%);
  animation: ambientShift 19s ease-in-out infinite alternate-reverse;
}

.section-heading {
  position: relative;
}

.section-heading::after {
  content: "";
  display: block;
  width: min(240px, 42vw);
  height: 1px;
  margin-top: 18px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(241,213,138,0.85), rgba(155,226,119,0.72), rgba(255,255,255,0));
  box-shadow: 0 0 18px rgba(241,213,138,0.22);
}

.section.is-in-view .section-heading::after,
.hero.is-in-view .section-heading::after {
  animation: headingLineGlow 2.8s ease-in-out infinite;
}

.topbar,
.quote-card,
.symbol-card,
.storybook-shell,
.letter,
.timeline-item .content,
.prism-panel,
.nyc-card,
.memory-card,
.time-window-frame,
.comic,
.vinyl-card,
.cake-card {
  position: relative;
  overflow: hidden;
}

.topbar::before,
.quote-card::before,
.symbol-card::before,
.storybook-shell::before,
.letter::before,
.prism-panel::before,
.nyc-card::before,
.memory-card::before,
.comic::before,
.vinyl-card::before {
  content: "";
  position: absolute;
  inset: -140% auto auto -20%;
  width: 42%;
  height: 280%;
  transform: rotate(18deg);
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.12), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}

.topbar:hover::before,
.quote-card:hover::before,
.symbol-card:hover::before,
.storybook-shell:hover::before,
.letter:hover::before,
.prism-panel:hover::before,
.nyc-card:hover::before,
.memory-card:hover::before,
.comic:hover::before,
.vinyl-card:hover::before {
  opacity: 1;
  animation: sheenPass 1.4s ease forwards;
}

.topbar,
.cake-card,
.storybook-shell,
.letter,
.prism-panel,
.nyc-card,
.memory-card,
.time-window-frame,
.vinyl-card {
  transform-style: preserve-3d;
  transition: transform .45s ease, box-shadow .45s ease, border-color .45s ease;
  transform:
    perspective(1400px)
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg))
    translate3d(0, 0, 0);
}

.cake-card:hover,
.storybook-shell:hover,
.letter:hover,
.prism-panel:hover,
.nyc-card:hover,
.memory-card:hover,
.time-window-frame:hover,
.vinyl-card:hover {
  box-shadow: 0 40px 110px rgba(0,0,0,0.42);
  border-color: rgba(255,255,255,0.16);
}

.hero-copy {
  position: relative;
}

.hero-copy::after {
  content: "";
  position: absolute;
  left: -2%;
  top: 10%;
  width: 56%;
  height: 56%;
  background: radial-gradient(circle, rgba(155,226,119,0.11), transparent 72%);
  filter: blur(26px);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite;
}

.lead {
  text-shadow: 0 2px 18px rgba(0,0,0,0.16);
}

.cake-stage {
  animation: cakeStageFloat 7s ease-in-out infinite;
}

.cake-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,122,0.14), transparent 68%);
  filter: blur(16px);
  opacity: .75;
  pointer-events: none;
  animation: cakeGlowPulse 3.8s ease-in-out infinite;
}

.candle {
  transition: transform .28s ease;
}

.candle:hover {
  transform: translateY(-3px);
}

.symbol-card::after,
.quote-card::after {
  content: "";
  position: absolute;
  inset: auto 20px 18px 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}

.storybook-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(241,213,138,0.12), transparent 20%),
    radial-gradient(circle at 88% 22%, rgba(155,226,119,0.1), transparent 22%);
  pointer-events: none;
}

.book-stage {
  transform-style: preserve-3d;
}

.flip-sheet {
  will-change: transform;
}

.letter {
  background:
    radial-gradient(circle at 12% 16%, rgba(241,213,138,0.09), transparent 18%),
    radial-gradient(circle at 84% 18%, rgba(155,226,119,0.08), transparent 20%),
    var(--card);
}

.letter::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: calc(var(--radius) - 10px);
  border: 1px solid rgba(255,255,255,0.05);
  pointer-events: none;
}

.timeline::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,0), rgba(155,226,119,0.9), rgba(241,213,138,0.72), rgba(255,255,255,0));
  box-shadow: 0 0 18px rgba(155,226,119,0.24);
}

.timeline-item .dot {
  box-shadow: 0 0 0 10px rgba(155,226,119,0.08), 0 0 18px rgba(241,213,138,0.24);
  animation: timelinePulse 4.2s ease-in-out infinite;
}

.timeline-item:nth-child(2) .dot { animation-delay: -.8s; }
.timeline-item:nth-child(3) .dot { animation-delay: -1.6s; }
.timeline-item:nth-child(4) .dot { animation-delay: -2.4s; }

.timeline-item .content {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    rgba(14, 28, 20, 0.72);
}

.prism-stage {
  transform:
    perspective(1500px)
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg))
    translate3d(0, 0, 0);
  transition: transform .45s ease;
}

.prism-aura {
  animation: prismDrift 12s ease-in-out infinite alternate;
}

.prism-core-wrap {
  animation: coreFloat 5.4s ease-in-out infinite;
}

.prism-photo {
  transition: transform .55s ease, filter .45s ease, opacity .45s ease;
}

.prism-photo .photo-frame {
  animation: prismPhotoBob 7s ease-in-out infinite;
}

.photo-a .photo-frame { animation-delay: -.3s; }
.photo-b .photo-frame { animation-delay: -1.1s; }
.photo-c .photo-frame { animation-delay: -2.2s; }
.photo-d .photo-frame { animation-delay: -3s; }

.prism-tag {
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  animation: tagDrift 7.5s ease-in-out infinite;
}

.cloud-b { animation-delay: -1.4s; }
.cloud-c { animation-delay: -2.2s; }
.cloud-d { animation-delay: -3s; }

.nyc-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015)),
    rgba(10, 16, 26, 0.7);
}

.nyc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent 18%),
    radial-gradient(circle at 50% 88%, rgba(240,110,80,0.12), transparent 22%);
  pointer-events: none;
}

.nyc-scene {
  transform:
    perspective(1500px)
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg));
  transition: transform .45s ease;
}

.nyc-water::before,
.nyc-water::after {
  animation-timing-function: linear;
}

.memory-card {
  background:
    radial-gradient(circle at 14% 14%, rgba(241,213,138,0.08), transparent 18%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    rgba(14, 28, 20, 0.72);
}

.memory-card h3,
.vinyl-copy h3,
.section-heading h2 {
  text-shadow: 0 3px 20px rgba(0,0,0,0.18);
}

.time-window-frame {
  box-shadow:
    0 34px 90px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.time-grid {
  align-items: start;
}

.time-unit {
  position: relative;
}

.time-unit::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155,226,119,0.14), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
  opacity: .72;
}

.time-value {
  text-shadow:
    0 0 18px rgba(255,244,214,0.18),
    0 4px 18px rgba(0,0,0,0.16);
}

.comic {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015)),
    rgba(10, 20, 14, 0.42);
  border-radius: 36px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}

.comic::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(241,213,138,0.08), transparent 18%),
    radial-gradient(circle at 90% 18%, rgba(155,226,119,0.08), transparent 20%);
  pointer-events: none;
  animation: comicAuraShift 11s ease-in-out infinite alternate;
}

.panel {
  transition: transform .35s ease, box-shadow .35s ease, filter .35s ease;
}

.panel:hover {
  transform: translateY(-6px) rotate(var(--panel-tilt, 0deg));
  box-shadow: 0 18px 28px rgba(0,0,0,0.24);
  filter: saturate(1.05);
}

.panel:nth-child(odd) { --panel-tilt: -0.6deg; }
.panel:nth-child(even) { --panel-tilt: 0.6deg; }

.panel-image {
  animation: panelDrift 12s ease-in-out infinite alternate;
}

.panel:nth-child(3n) .panel-image { animation-duration: 10.5s; }
.panel:nth-child(3n+1) .panel-image { animation-duration: 12.4s; }
.panel:nth-child(3n+2) .panel-image { animation-duration: 13.6s; }
.panel:nth-child(2n) .panel-image { animation-delay: -1.4s; }

.vinyl-card {
  background:
    radial-gradient(circle at 20% 16%, rgba(241,213,138,0.1), transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    rgba(13, 24, 19, 0.78);
}

.vinyl-player::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}

.vinyl-record {
  box-shadow:
    0 14px 30px rgba(0,0,0,0.28),
    inset 0 2px 4px rgba(255,255,255,0.05);
}

.tonearm {
  transition: transform .55s cubic-bezier(.2,.8,.2,1);
}


.sparkle-trail {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.sparkle-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,248,220,0.95), rgba(241,213,138,0.4) 45%, transparent 70%);
  box-shadow: 0 0 14px rgba(241,213,138,0.26);
  animation: sparkleBurst .9s ease-out forwards;
}

@keyframes ambientShift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(4vw, -2vw, 0) scale(1.12); }
}

@keyframes unlockGlowDrift {
  0% { transform: translate3d(-2%, -1%, 0) scale(.98); opacity: .84; }
  100% { transform: translate3d(2%, 1%, 0) scale(1.06); opacity: 1; }
}

@keyframes unlockFieldSpin {
  from { transform: rotate(0deg) scale(1); }
  to { transform: rotate(360deg) scale(1.05); }
}

@keyframes unlockFieldPulse {
  0%, 100% { opacity: .35; transform: scale(1); }
  50% { opacity: .62; transform: scale(1.08); }
}

@keyframes unlockShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

@keyframes unlockConfettiFall {
  0% {
    opacity: 0;
    transform: translate3d(0, -10px, 0) rotate(0deg);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--dx), 112vh, 0) rotate(var(--rot));
  }
}

@keyframes unlockCardSweep {
  0% { transform: translateX(-135%); opacity: 0; }
  18% { opacity: .9; }
  100% { transform: translateX(230%); opacity: 0; }
}

@keyframes sheenPass {
  0% { transform: translate3d(0, 0, 0) rotate(18deg); }
  100% { transform: translate3d(280%, 0, 0) rotate(18deg); }
}

@keyframes heroGlow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .85; }
  50% { transform: translate3d(8px, -10px, 0) scale(1.08); opacity: 1; }
}

@keyframes heroLineIn {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(.98);
    filter: blur(9px);
    letter-spacing: .02em;
  }
  65% {
    opacity: 1;
    transform: translateY(-2px) scale(1.005);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    letter-spacing: 0;
  }
}

@keyframes cakeStageFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes cakeGlowPulse {
  0%, 100% { opacity: .45; transform: translateX(-50%) scale(1); }
  50% { opacity: .85; transform: translateX(-50%) scale(1.08); }
}

@keyframes timelinePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

@keyframes prismDrift {
  0% { transform: translate3d(-2%, -2%, 0) scale(.98); }
  100% { transform: translate3d(2%, 2%, 0) scale(1.04); }
}

@keyframes coreFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-10px); }
}

@keyframes prismPhotoBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes tagDrift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes panelDrift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, -10px, 0); }
}

@keyframes comicAuraShift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: .75;
  }
  100% {
    transform: translate3d(1.5%, -1.2%, 0) scale(1.04);
    opacity: 1;
  }
}

@keyframes equalizerGlow {
  0%, 100% { transform: translateX(0) scaleX(1); opacity: .74; }
  50% { transform: translateX(6px) scaleX(1.05); opacity: 1; }
}

@keyframes sparkleBurst {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(.4); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--spark-x), var(--spark-y), 0) scale(1.45); }
}

@keyframes liebeleFlip {
  0% { transform: rotateX(0deg) scale(1); }
  45% { transform: rotateX(90deg) scale(1.03); }
  100% { transform: rotateX(0deg) scale(1); }
}

@keyframes liebelePop {
  0% { transform: scale(0.84); }
  68% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes liebeleWinGlow {
  0% { box-shadow: inset 0 0 0 0 rgba(155,226,119,0); }
  50% { box-shadow: inset 0 0 0 2px rgba(155,226,119,0.45), 0 0 34px rgba(241,213,138,0.2); }
  100% { box-shadow: inset 0 0 0 0 rgba(155,226,119,0); }
}

@keyframes liebeleShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

@keyframes liebeleParticle {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(.45);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--px), var(--py), 0) scale(1.35);
  }
}

@keyframes timeLensPulse {
  0%, 100% {
    box-shadow:
      0 0 0 12px rgba(255,255,255,0.05),
      0 0 24px rgba(241,213,138,0.32);
  }
  50% {
    box-shadow:
      0 0 0 16px rgba(255,255,255,0.04),
      0 0 30px rgba(155,226,119,0.28);
  }
}

@keyframes timeFlipFloat {
  0%, 100% { transform: translateY(0) rotateZ(0); }
  50% { transform: translateY(-9px) rotateZ(-.4deg); }
}

@keyframes timeRingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes timeRingSpinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes timeGlintPass {
  0% { transform: rotate(18deg) translateX(-45%); }
  100% { transform: rotate(18deg) translateX(320%); }
}

@keyframes liebeleAurora {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); }
  50% { transform: translate3d(1%, 2%, 0) scale(1.06); }
  100% { transform: translate3d(2%, -2%, 0) scale(1.03); }
}

@keyframes liebeleScan {
  0% { transform: translateY(-140%); opacity: 0; }
  12% { opacity: .42; }
  90% { opacity: .32; }
  100% { transform: translateY(140%); opacity: 0; }
}

@keyframes liebeleStarTwinkle {
  0%, 100% { opacity: 0.24; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.38); }
}

@keyframes liebeleCardPulse {
  0%, 100% { box-shadow: 0 28px 90px rgba(0,0,0,0.35); }
  50% { box-shadow: 0 36px 110px rgba(56,126,89,0.34), 0 0 22px rgba(241,213,138,0.14); }
}

.liebele-card.is-celebrating {
  animation: liebeleCardPulse 1.2s ease 2;
}

html.lite-mode .grain,
html.lite-mode .floating-leaves,
html.lite-mode .nyc-grain,
html.lite-mode .nyc-mist,
html.lite-mode .nyc-reflections,
html.lite-mode .nyc-stars,
html.lite-mode .nyc-clouds,
html.lite-mode .prism-stage::before,
html.lite-mode .prism-stage::after,
html.lite-mode .prism-orbit,
html.lite-mode .prism-tag,
html.lite-mode .photo-gloss,
html.lite-mode .b1-logo-glow,
html.lite-mode .b1-logo-ring,
html.lite-mode .b1-logo-spark,
html.lite-mode .liebele-aurora,
html.lite-mode .liebele-scan,
html.lite-mode .liebele-stars {
  display: none !important;
}

html.lite-mode .prism-stage,
html.lite-mode .prism-photo,
html.lite-mode .photo-frame,
html.lite-mode .b1-logo-stage,
html.lite-mode .b1-logo-badge,
html.lite-mode .nyc-moon,
html.lite-mode .nyc-water::before,
html.lite-mode .nyc-water::after,
html.lite-mode .unlock-overlay::before,
html.lite-mode .unlock-overlay::after {
  animation: none !important;
}

html.lite-mode .prism-stage,
html.lite-mode .nyc-scene,
html.lite-mode .unlock-overlay,
html.lite-mode .liebele-card {
  backdrop-filter: none !important;
}

html.lite-mode .comic::after,
html.lite-mode .panel::before,
html.lite-mode .panel.has-image::after {
  display: none !important;
}

html.lite-mode .storybook-book.storybook-virtual .paper-face::before,
html.lite-mode .storybook-book.storybook-virtual .paper-face::after,
html.lite-mode .storybook-book.storybook-virtual .closing-face::before,
html.lite-mode .storybook-book.storybook-virtual .closing-face::after,
html.lite-mode .storybook-book.storybook-virtual .page-sheen,
html.lite-mode .storybook-book.storybook-virtual .cover-spine,
html.lite-mode .storybook-book.storybook-virtual .book-spine-core,
html.lite-mode .storybook-book.storybook-rebuild .paper-face::before,
html.lite-mode .storybook-book.storybook-rebuild .paper-face::after,
html.lite-mode .storybook-book.storybook-rebuild .page-sheen,
html.lite-mode .storybook-book.storybook-rebuild .cover-spine {
  display: none !important;
}

html.lite-mode .storybook-book.storybook-virtual .sheet-face {
  box-shadow: none !important;
}

html.lite-mode .storybook-book.storybook-rebuild .leaf-current.is-flipping-next,
html.lite-mode .storybook-book.storybook-rebuild .leaf-prev.is-unflipping-prev {
  animation-duration: 300ms !important;
}

html.lite-mode .panel,
html.lite-mode .panel-image,
html.lite-mode .panel-note,
html.lite-mode .panel-burst,
html.lite-mode .panel-end {
  animation: none !important;
  transition: none !important;
}

html.lite-mode .panel:hover,
html.lite-mode .panel:hover .panel-image {
  transform: none !important;
  filter: none !important;
  box-shadow: 0 10px 0 rgba(0,0,0,0.16), 0 18px 30px rgba(0,0,0,0.18) !important;
}

@keyframes headingLineGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(241,213,138,0.18); opacity: .88; }
  50% { box-shadow: 0 0 26px rgba(155,226,119,0.24); opacity: 1; }
}

@media (max-width: 980px) {
  .liebele-card { width: min(720px, 100%); }
  .liebele-stage { width: min(600px, 100%); }
}

@media (max-width: 740px) {
  .unlock-card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .unlock-form {
    grid-template-columns: 1fr;
  }

  .unlock-button {
    width: 100%;
  }

  .liebele-card {
    width: 100%;
    padding: 18px;
  }

  .liebele-stage {
    border-radius: 20px;
    padding: 18px;
  }

  .liebele-controls {
    grid-template-columns: 1fr;
  }

  .liebele-button {
    width: 100%;
  }

  .liebele-key {
    min-width: 0;
    height: 38px;
    font-size: 0.78rem;
    padding: 0 2px;
  }

  .liebele-key.action {
    font-size: 0.68rem;
  }
}

@media (max-width: 640px) {
  body::before,
  body::after {
    width: 48vw;
    height: 48vw;
  }

  .section-heading::after {
    width: min(160px, 42vw);
  }

  .panel:hover {
    transform: none;
  }
}

/* ==========================================================
   Mobile-First & App-Style Layout Enhancements
   ========================================================== */
body {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: max(24px, calc(76px + env(safe-area-inset-bottom)));
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-tap-highlight-color: transparent;
}

/* Prevent auto-zoom in mobile Safari */
input, select, textarea {
  font-size: 16px !important;
}

/* Touch active micro-animations */
.badge:active,
.unlock-button:active,
.liebele-button:active,
.comic-button:active {
  transform: scale(0.96) !important;
  transition: transform 0.12s ease;
}

/* Native App Mobile Bottom Tab Bar (Dark Elegance Theme) */
.mobile-tab-bar {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .mobile-tab-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(62px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(18, 16, 21, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    user-select: none;
    -webkit-user-select: none;
  }

  .mobile-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.7rem;
    font-weight: 800;
    flex: 1;
    height: 100%;
    padding: 6px 0;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-tab-item:active {
    transform: scale(0.9);
  }

  .mobile-tab-item.active {
    color: #ffd6df;
  }

  .mobile-tab-icon {
    font-size: 1.35rem;
    line-height: 1;
    transition: transform 0.15s ease;
  }

  .mobile-tab-item.active .mobile-tab-icon {
    transform: translateY(-2px) scale(1.12);
  }

  .mobile-tab-label {
    letter-spacing: -0.01em;
  }
}
