@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Inter:wght@300;400;600;800&display=swap');

:root {
  --text: #fff8ed;
  --muted: rgba(255, 248, 237, .72);
  --wine: #7b1025;
  --dark: #151015;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--dark);
  font-family: Inter, sans-serif;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background: #151015;
  transition: filter .3s ease;
}

.page-video-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  object-fit: cover;
  object-position: center 40%;
  opacity: .82;
  pointer-events: none;
  transform: scale(1.12);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: .11;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 30;
  background: #fff8ed;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 58px;
  padding: 18px 6px 18px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.brand, .eyebrow, .number { letter-spacing: .45em; text-transform: uppercase; }
.brand {
  display: grid;
  gap: 2px;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
}
.audio-controls {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 3px;
  transform: translateY(38px);
  width: 32px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 4px;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(10px);
}

.sound {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.08);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}

.volume {
  width: 18px;
  height: 72px;
  margin: 4px 0;
  writing-mode: vertical-lr;
  direction: rtl;
  accent-color: var(--text);
  cursor: pointer;
}

.panel {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  padding: clamp(96px, 12vh, 132px) clamp(24px, 9vw, 132px);
  overflow: hidden;
  isolation: isolate;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0,0,0,.34);
}

.scene-bg {
  display: none;
  position: absolute;
  inset: -14vh -6vw;
  z-index: -2;
  background: var(--scene-bg);
  background-position: center;
  background-size: cover;
  opacity: .28;
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.04);
  will-change: transform;
}

.scene-video {
  width: calc(100% + 12vw);
  height: calc(100% + 28vh);
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.panel[data-bg="1"] {
  --scene-overlay: rgba(21, 16, 21, .34);
  --scene-image: #151015;
  --scene-bg: var(--scene-overlay), var(--scene-image);
}
.panel[data-bg="2"],
.panel[data-bg="3"],
.panel[data-bg="4"],
.panel[data-bg="5"] {
  --scene-bg: #151015;
}

.content {
  width: 100%;
  max-width: 790px;
  overflow-wrap: break-word;
}
.content.right { margin-left: auto; max-width: 620px; }
.content.center { margin: auto; text-align: center; max-width: 760px; }

h1, h2, h3 {
  font-family: Cinzel, serif;
  margin: 0;
  line-height: .98;
}
h1 { font-size: clamp(38px, 8vw, 112px); max-width: 1050px; }
h2 { font-size: clamp(34px, 6vw, 86px); }
h3 { font-size: clamp(28px, 5vw, 36px); }
p { color: var(--muted); font-size: clamp(16px, 2vw, 22px); line-height: 1.65; }
.lead { max-width: 680px; }
.eyebrow, .number { color: rgba(255,248,237,.55); font-size: 13px; font-weight: 700; }
.number { margin-bottom: 16px; }

.stars {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255,248,237,.9);
  box-shadow:
    34px 18px 0 rgba(255,248,237,.42),
    82px 74px 0 rgba(255,248,237,.78),
    136px 28px 0 rgba(255,248,237,.5),
    190px 106px 0 rgba(255,248,237,.72),
    248px 42px 0 rgba(255,248,237,.38),
    306px 92px 0 rgba(255,248,237,.66),
    374px 20px 0 rgba(255,248,237,.48),
    428px 132px 0 rgba(255,248,237,.82),
    492px 64px 0 rgba(255,248,237,.52),
    548px 12px 0 rgba(255,248,237,.74),
    622px 196px 0 rgba(255,248,237,.44),
    704px 82px 0 rgba(255,248,237,.72),
    786px 252px 0 rgba(255,248,237,.5),
    868px 138px 0 rgba(255,248,237,.68),
    946px 34px 0 rgba(255,248,237,.42),
    1030px 218px 0 rgba(255,248,237,.8),
    1124px 116px 0 rgba(255,248,237,.54),
    1212px 284px 0 rgba(255,248,237,.66);
  opacity: .72;
  pointer-events: none;
  animation: twinkle 5s ease-in-out infinite;
  will-change: opacity;
}

.stars::before,
.stars::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,248,237,.85);
}

.stars::before {
  width: 3px;
  height: 3px;
  left: 118px;
  top: 118px;
  box-shadow:
    156px -76px 0 rgba(255,248,237,.72),
    286px -28px 0 rgba(255,248,237,.58),
    392px 34px 0 rgba(255,248,237,.74),
    544px -18px 0 rgba(255,248,237,.52),
    706px 92px 0 rgba(255,248,237,.78),
    926px -52px 0 rgba(255,248,237,.56),
    1098px 58px 0 rgba(255,248,237,.7);
}

.stars::after {
  width: 1px;
  height: 1px;
  left: 72px;
  top: 156px;
  box-shadow:
    104px -96px 0 rgba(255,248,237,.62),
    218px 18px 0 rgba(255,248,237,.7),
    330px -124px 0 rgba(255,248,237,.46),
    462px -18px 0 rgba(255,248,237,.64),
    594px 76px 0 rgba(255,248,237,.52),
    774px -86px 0 rgba(255,248,237,.74),
    992px 34px 0 rgba(255,248,237,.48),
    1168px -52px 0 rgba(255,248,237,.66);
}

.stars-a {
  left: 6vw;
  top: 10vh;
}
.stars-b {
  left: 1vw;
  top: 52vh;
  opacity: .52;
  transform: scale(.82);
  animation-delay: -2.4s;
}

@keyframes twinkle {
  50% {
    opacity: .34;
    filter: drop-shadow(0 0 5px rgba(255,248,237,.36));
  }
}

.split { gap: 6vw; }
.cards-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
  padding-left: 4vw;
  padding-right: 4vw;
}
.card {
  width: min(580px, 100%);
  padding: 44px;
  border: 1px solid rgba(255,248,237,.14);
  border-radius: 8px;
  background: rgba(7, 7, 8, .64);
  box-shadow: 0 18px 46px rgba(0,0,0,.24);
  position: relative;
  overflow: hidden;
}

.cards-row .card {
  width: 100%;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.cards-row .card h2 {
  font-size: clamp(34px, 3.3vw, 64px);
}

.cards-row .card .card-number {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1;
  letter-spacing: .32em;
  color: rgba(255,248,237,.55);
}

.card-copy {
  flex: 1;
  display: flex;
  align-items: center;
}

.cards-row .card p {
  font-family: Cinzel, serif;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.45;
  margin: 0;
}

.card .number,
.card h2,
.card p {
  position: relative;
  z-index: 1;
}
.quote {
  max-width: 480px;
  font-family: Cinzel, serif;
  font-size: clamp(26px, 3vw, 48px);
  line-height: 1.15;
  color: #fff8ed;
}

.quote-card .quote {
  max-width: none;
  font-family: Cinzel, serif;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 1120px) {
  .cards-row {
    grid-template-columns: 1fr;
    padding-left: 24px;
    padding-right: 24px;
  }

  .cards-row .card {
    min-height: auto;
  }
}

.surprise {
  margin-top: 26px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 18px 30px;
  background: #fff8ed;
  color: #12070d;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(70px) scale(.98);
  transition: opacity 900ms ease, transform 900ms ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  z-index: 40;
  background: rgba(0,0,0,.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.modal::-webkit-scrollbar { display: none; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-box {
  width: min(720px, calc(100vw - 56px));
  overflow: visible;
  margin: clamp(26px, 6vh, 48px) 0;
  padding: clamp(28px, 4vw, 42px);
  border-radius: 8px;
  position: relative;
  z-index: 0;
}
.modal-box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: rgba(9,5,10,.98);
  border: 0;
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}
.modal-box > :not(.letter-cat):not(.letter-dog):not(.close) {
  position: relative;
  z-index: 2;
}

.modal-box .eyebrow {
  font-size: clamp(10px, 1.4vw, 13px);
}

.modal-box h3 {
  font-size: clamp(30px, 4.6vw, 42px);
}

.modal-box p {
  font-size: clamp(15px, 1.65vw, 20px);
  line-height: 1.55;
}

.letter-cat {
  position: absolute;
  left: 10%;
  top: 0;
  z-index: 1;
  width: clamp(86px, 12vw, 132px);
  height: auto;
  transform: translate(-50%, -61%);
  filter: sepia(.18) saturate(.72) brightness(.82) contrast(.92) drop-shadow(0 12px 22px rgba(0,0,0,.45));
  pointer-events: none;
  user-select: none;
}
.letter-dog {
  position: absolute;
  right: 12px;
  bottom: 0;
  z-index: 1;
  width: clamp(112px, 12.5vw, 164px);
  height: auto;
  transform: translateY(36%) rotate(-3deg);
  filter: sepia(.32) saturate(.48) brightness(.64) contrast(.84) drop-shadow(0 12px 22px rgba(0,0,0,.45));
  pointer-events: none;
  user-select: none;
}
.modal-box > .close {
  position: absolute;
  right: 24px;
  top: 20px;
  z-index: 3;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 34px;
  cursor: pointer;
}
.letter-signature {
  text-align: center;
  margin: 28px 0 0;
  font-weight: 700;
}
.letter-signature + .letter-signature {
  margin-top: 8px;
}

@media (max-width: 760px) {
  .page-video-bg {
    object-position: center center;
    transform: scale(1.06);
  }

  .topbar { height: 54px; padding: 14px 14px 14px 20px; }
  .audio-controls { gap: 6px; padding: 3px; transform: translateY(30px); }
  .sound { width: 24px; height: 24px; }
  .volume { width: 18px; height: 64px; margin: 4px 0; }
  .panel {
    min-height: 100svh;
    padding: 100px 22px 82px;
  }
  .content.right {
    margin-left: 0;
    max-width: 100%;
  }
  .split { flex-direction: column; align-items: flex-start; }
  .cards-row {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-left: 22px;
    padding-right: 22px;
  }
  .card { padding: 26px; }
  .cards-row .card { min-height: auto; }
  .cards-row .card p,
  .quote-card .quote {
    font-size: clamp(18px, 5vw, 24px);
  }
  .surprise {
    width: min(100%, 260px);
    padding: 16px 22px;
  }
  .modal {
    align-items: start;
    padding: 64px 16px 18px;
  }
  .modal-box {
    width: min(520px, calc(100vw - 32px));
    margin: 24px 0 34px;
    padding: 28px 22px 26px;
  }
  .modal-box p { line-height: 1.5; }
  .modal-box > .close {
    right: 14px;
    top: 10px;
    font-size: 32px;
  }
  .letter-cat {
    left: 18%;
    width: 82px;
    transform: translate(-50%, -56%);
  }
  .letter-dog {
    right: 12px;
    width: 112px;
    transform: translateY(36%) rotate(-3deg);
  }
}

@media (max-width: 480px) {
  .brand, .eyebrow, .number {
    letter-spacing: .28em;
  }

  .brand {
    font-size: 12px;
  }

  .topbar {
    height: 50px;
    padding: 12px 12px 12px 16px;
  }

  .audio-controls {
    width: 30px;
    gap: 5px;
    transform: translateY(28px);
  }

  .sound {
    width: 22px;
    height: 22px;
    font-size: 13px;
  }

  .volume {
    height: 54px;
  }

  .panel {
    padding: 92px 18px 72px;
  }

  h1 {
    font-size: clamp(34px, 12vw, 52px);
  }

  h2 {
    font-size: clamp(31px, 10vw, 44px);
  }

  p {
    font-size: 16px;
    line-height: 1.58;
  }

  .cards-row {
    padding-left: 18px;
    padding-right: 18px;
  }

  .card {
    padding: 22px;
  }

  .cards-row .card .card-number {
    font-size: 22px;
  }

  .modal-box {
    width: calc(100vw - 28px);
    margin: 18px 0 28px;
    padding: 26px 18px 24px;
  }

  .modal-box .eyebrow {
    font-size: 10px;
    letter-spacing: .28em;
  }

  .modal-box h3 {
    font-size: 28px;
  }

  .modal-box p {
    font-size: 15px;
    line-height: 1.48;
  }

  .letter-signature {
    margin-top: 22px;
  }

  .letter-dog {
    width: 76px;
    opacity: .82;
  }

  .letter-cat {
    width: 60px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .audio-controls {
    transform: translateY(18px);
  }

  .volume {
    height: 48px;
  }

  .panel {
    min-height: auto;
    padding-top: 82px;
    padding-bottom: 58px;
  }

  .modal {
    align-items: start;
    padding: 42px 18px 18px;
  }

  .modal-box {
    width: min(680px, calc(100vw - 48px));
    margin: 22px 0;
    padding: 22px 28px;
  }

  .modal-box h3 {
    font-size: 28px;
  }

  .modal-box p {
    font-size: 14px;
    line-height: 1.42;
    margin: 12px 0;
  }

  .letter-signature {
    margin-top: 14px;
  }

  .letter-cat {
    width: 58px;
  }

  .letter-dog {
    width: 72px;
  }
}
