* {
  box-sizing: border-box;
}

:root {
  --red: #c8102e;
  --red-light: #ef3b50;
  --blue: #123c78;
  --gold: #c99a2e;
  --ink: #172033;
  --white: #ffffff;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  font-family: "Montserrat", Arial, sans-serif;
  background: var(--white);
  color: var(--ink);
  overflow: hidden;
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background: var(--white);
}

.content {
  position: relative;
  z-index: 5;
  width: min(92vw, 900px);
  text-align: center;
}

.intro-mark {
  width: clamp(72px, 12vw, 105px);
  height: clamp(72px, 12vw, 105px);
  margin: 0 auto 30px;
  opacity: 0;
  transform: scale(.92);
  animation: markReveal .8s ease-out .25s forwards;
}

.d-mark {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.d-path {
  fill: none;
  stroke: var(--red);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  filter: drop-shadow(0 6px 12px rgba(200, 16, 46, .18));
  animation: drawD 1.6s cubic-bezier(.65, 0, .35, 1) .35s forwards;
}

.message {
  opacity: 0;
  transform: translateY(22px);
  animation: messageReveal .9s ease-out 3.1s forwards;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: clamp(.7rem, 1.4vw, .82rem);
  font-weight: 700;
  letter-spacing: .28em;
}

h1 {
  margin: 0;
  color: var(--red);
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 800;
  text-wrap: balance;
  animation: glow 3.8s ease-in-out 4s infinite;
}

.subtitle {
  max-width: 650px;
  margin: 24px auto 0;
  color: var(--ink);
  font-size: clamp(.95rem, 2vw, 1.2rem);
  line-height: 1.6;
  font-weight: 500;
}

.signature {
  margin: 20px 0 0;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-style: italic;
  font-weight: 600;
}

.shape {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: .13;
  border-radius: 50%;
  filter: blur(.2px);
}

.shape-one {
  width: 260px;
  height: 260px;
  left: -100px;
  top: 12%;
  border: 3px solid var(--red);
  animation: driftOne 10s ease-in-out infinite alternate;
}

.shape-two {
  width: 180px;
  height: 180px;
  right: -50px;
  top: 17%;
  border: 2px solid var(--blue);
  border-radius: 30%;
  transform: rotate(24deg);
  animation: driftTwo 12s ease-in-out infinite alternate;
}

.shape-three {
  width: 220px;
  height: 220px;
  right: 9%;
  bottom: -120px;
  border: 3px solid var(--gold);
  animation: driftThree 11s ease-in-out infinite alternate;
}

.shape-four {
  width: 90px;
  height: 90px;
  left: 12%;
  bottom: 13%;
  border: 2px solid var(--blue);
  border-radius: 25%;
  transform: rotate(45deg);
  animation: driftFour 9s ease-in-out infinite alternate;
}

.sound-control {
  position: fixed;
  z-index: 10;
  right: 22px;
  bottom: 20px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(200, 16, 46, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
  color: var(--red);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: .42;
  transition: opacity .25s ease, transform .25s ease, background .25s ease;
  backdrop-filter: blur(8px);
}

.sound-control:hover,
.sound-control:focus-visible {
  opacity: 1;
  transform: scale(1.06);
  outline: none;
  background: var(--white);
}

.sound-icon {
  font-size: 1.05rem;
  line-height: 1;
}

@keyframes drawD {
  to { stroke-dashoffset: 0; }
}

@keyframes markReveal {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes messageReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  0%, 100% { text-shadow: 0 0 0 rgba(200, 16, 46, 0); }
  50% { text-shadow: 0 0 28px rgba(200, 16, 46, .16); }
}

@keyframes driftOne {
  to { transform: translate(45px, 28px) rotate(20deg); }
}

@keyframes driftTwo {
  to { transform: translate(-35px, 45px) rotate(80deg); }
}

@keyframes driftThree {
  to { transform: translate(-40px, -35px) rotate(-18deg); }
}

@keyframes driftFour {
  to { transform: translate(25px, -30px) rotate(95deg); }
}

@media (max-width: 600px) {
  .content {
    width: min(90vw, 500px);
  }

  .intro-mark {
    margin-bottom: 24px;
  }

  h1 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .subtitle {
    margin-top: 20px;
    padding: 0 10px;
  }

  .shape-one {
    width: 170px;
    height: 170px;
    left: -95px;
  }

  .shape-two {
    width: 120px;
    height: 120px;
    right: -65px;
  }

  .shape-three {
    width: 145px;
    height: 145px;
  }

  .shape-four {
    width: 60px;
    height: 60px;
  }

  .sound-control {
    right: 14px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
