:root {
  --cream: #f7f1e5;
  --paper: #fffdf8;
  --ink: #141411;
  --muted: #6f6a60;
  --yellow: #f5c842;
  --turquoise: #23cbbb;
  --green: #397a55;
  --coral: #f06469;
  --pink: #f38aa1;
  --line: rgba(20, 20, 17, 0.15);
  --shadow: 0 22px 70px rgba(50, 43, 29, 0.1);
  --radius-lg: clamp(24px, 4vw, 48px);
  --radius-md: 22px;
  --page: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

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

em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

::selection {
  color: var(--ink);
  background: var(--yellow);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 999px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  overflow: hidden;
}

.section-pad {
  width: var(--page);
  margin-inline: auto;
  padding-block: clamp(46px, 5.5vw, 72px);
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow span {
  margin-left: 14px;
  color: var(--muted);
  font-weight: 500;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.45rem, 5.6vw, 5.8rem);
  font-weight: 750;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

h2 em {
  letter-spacing: -0.045em;
}

.hero {
  position: relative;
  min-height: min(780px, 100svh);
  display: grid;
  place-items: center;
  padding: clamp(52px, 6vw, 72px) 20px 44px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 12% 18%, rgba(245, 200, 66, 0.45), transparent 21%),
    radial-gradient(circle at 87% 22%, rgba(35, 203, 187, 0.26), transparent 24%),
    radial-gradient(circle at 76% 87%, rgba(240, 100, 105, 0.2), transparent 26%),
    var(--cream);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  pointer-events: none;
}

.hero-inner {
  width: min(1020px, 100%);
  min-width: 0;
  text-align: center;
}

.hero-kicker {
  margin-bottom: clamp(16px, 2.2vw, 24px);
}

.hero-title {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(3.15rem, 7.2vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.82;
}

.hero-title em {
  position: relative;
  color: var(--green);
  white-space: nowrap;
}

.hero-title em::after {
  content: "";
  position: absolute;
  right: 2%;
  bottom: -0.02em;
  left: 4%;
  height: 0.1em;
  background: var(--yellow);
  border-radius: 50%;
  transform: rotate(-1.5deg);
  z-index: -1;
}

.hero-state-line {
  display: inline-block;
  transform-origin: center bottom;
}

.hero-state-line.is-changing {
  animation: heroStateChange 620ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 16px 36px;
  margin: clamp(22px, 3vw, 32px) 0 16px;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
}

.hero-meta p {
  margin: 0;
}

.hero-meta p:first-child {
  font-weight: 800;
}

.countdown-wrap {
  width: min(700px, 100%);
  margin: 0 auto;
  padding: clamp(16px, 2.2vw, 24px);
  background: rgba(255, 253, 248, 0.74);
  border: 1px solid rgba(20, 20, 17, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 55px rgba(86, 75, 49, 0.08);
  backdrop-filter: blur(10px);
}

.countdown-label {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.countdown {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
}

.time-block {
  min-width: 0;
}

.time-block strong {
  display: block;
  font-size: clamp(1.9rem, 4.7vw, 4.2rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.time-block span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: clamp(0.56rem, 1vw, 0.7rem);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.time-divider {
  padding-inline: clamp(3px, 1.4vw, 14px);
  font-family: Georgia, serif;
  font-size: clamp(1.7rem, 3.8vw, 3.6rem);
  line-height: 0.92;
}

.countdown-aside {
  margin: 13px 0 0;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 0.92rem;
  font-style: italic;
}

#birthday-preview-control:empty {
  display: none;
}

.birthday-preview-button {
  min-height: 44px;
  margin-top: 13px;
  padding: 8px 15px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: 1px dashed rgba(20, 20, 17, 0.28);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.birthday-preview-button:hover,
.birthday-preview-button:focus-visible,
.birthday-preview-button[aria-pressed="true"] {
  color: var(--ink);
  background: rgba(245, 200, 66, 0.18);
  border-color: var(--ink);
}

.birthday-reveal {
  padding: 8px 0 2px;
}

.birthday-reveal p {
  margin-bottom: 5px;
  color: var(--muted);
}

.birthday-reveal strong {
  color: var(--coral);
  font-family: Georgia, serif;
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 1;
}

.cake-reveal {
  width: min(700px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 42px);
  margin: 16px auto 0;
  padding: 16px 24px;
  text-align: left;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 55px rgba(86, 75, 49, 0.08);
}

.cake-reveal[hidden] {
  display: none;
}

.cake-reveal.is-visible {
  animation: cakeReveal 760ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.cake-stage {
  flex: 0 0 clamp(180px, 20vw, 210px);
  line-height: 0;
}

.birthday-cake {
  width: 100%;
  overflow: visible;
}

.cake-candle {
  fill: var(--turquoise);
  transform-origin: 110px 70px;
  animation: candleIn 620ms 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.candle-stripe,
.cake-edge,
.cake-drips,
.cake-detail {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-width: 3;
}

.cake-flame {
  fill: var(--yellow);
  stroke: var(--coral);
  stroke-width: 2;
  transform-origin: 110px 38px;
  animation: flameFlicker 1.1s 800ms ease-in-out 3;
}

.cake-body {
  fill: var(--coral);
  stroke: var(--ink);
  stroke-width: 3;
  transform-origin: 110px 181px;
  animation: cakeRise 720ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.cake-frosting { fill: var(--paper); }
.cake-layer { fill: var(--pink); }
.cake-bottom { fill: var(--coral); }
.cake-plate { fill: var(--green); stroke: var(--ink); stroke-width: 3; }

.cake-copy .eyebrow {
  margin-bottom: 7px;
}

.cake-copy strong,
.cake-copy span {
  display: block;
}

.cake-copy strong {
  font-family: Georgia, serif;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-style: italic;
  line-height: 1.1;
}

.cake-copy span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-notes {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  max-width: 700px;
  margin: 18px auto 0;
  text-align: left;
  font-size: 0.82rem;
}

.hero-notes p {
  margin: 0;
}

.hero-notes strong {
  font-size: 1.15rem;
}

.hero-notes p:last-child {
  max-width: 190px;
  text-align: right;
}

.hero-orbit {
  position: absolute;
  z-index: -1;
  width: 26vw;
  min-width: 220px;
  aspect-ratio: 1;
  border: 1px solid rgba(20, 20, 17, 0.13);
  border-radius: 50%;
}

.hero-orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -5px;
  width: 10px;
  aspect-ratio: 1;
  background: var(--coral);
  border-radius: 50%;
}

.hero-orbit--one {
  top: 10%;
  left: -13vw;
}

.hero-orbit--two {
  right: -12vw;
  bottom: 8%;
  transform: scale(0.75);
}

.hero-orbit--two::after {
  background: var(--turquoise);
}

.sunflower {
  filter: saturate(0.95);
  user-select: none;
}

.hero-flower {
  position: absolute;
  top: clamp(52px, 6vw, 76px);
  right: clamp(35px, 8vw, 120px);
  font-size: clamp(2rem, 4vw, 4.2rem);
  transform: rotate(12deg);
  animation: float 5s ease-in-out infinite;
}

.secret-sparkle {
  position: absolute;
  right: max(30px, 4vw);
  bottom: 32px;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 0.85rem;
  opacity: 0.62;
  transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.secret-sparkle:hover,
.secret-sparkle:focus-visible {
  background: rgba(255, 255, 255, 0.62);
  opacity: 1;
  transform: rotate(12deg) scale(1.12);
}

.ticker-section {
  padding: 23px 0 19px;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
}

.ticker {
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: ticker 40s linear infinite;
}

.ticker-track span {
  flex: none;
  font-size: clamp(1.1rem, 2vw, 1.75rem);
  font-weight: 650;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.ticker-caption {
  width: var(--page);
  margin: 10px auto 0;
  color: #bdb9b0;
  font-family: Georgia, serif;
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
}

.aura {
  padding-top: clamp(50px, 7vw, 92px);
}

.aura-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(190px, 0.45fr);
  gap: 28px;
  padding: clamp(28px, 4vw, 52px);
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(35, 203, 187, 0.22), transparent 52%),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.aura-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: 15%;
  width: 190px;
  height: 190px;
  background: var(--yellow);
  border-radius: 50%;
  opacity: 0.72;
}

.aura-copy {
  position: relative;
  z-index: 1;
}

.aura-copy h2 {
  max-width: 810px;
  font-size: clamp(2.45rem, 5vw, 5rem);
}

.aura-copy h2 em {
  color: var(--green);
}

.aura-body {
  max-width: 590px;
  margin: clamp(24px, 3.2vw, 38px) 0 0;
  font-size: clamp(1rem, 1.5vw, 1.22rem);
}

.aura-art {
  position: relative;
  z-index: 1;
  align-self: center;
  min-height: 360px;
}

.aura-word {
  position: absolute;
  top: 5%;
  right: -10%;
  color: rgba(20, 20, 17, 0.06);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  writing-mode: vertical-rl;
}

.heel-frame {
  position: absolute;
  top: 0;
  right: 3%;
  width: min(210px, 95%);
  height: 220px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 48% 48% 18px 18px;
  box-shadow: 0 18px 45px rgba(20, 20, 17, 0.13);
  transform: rotate(5deg);
  animation: floatHeel 6s ease-in-out infinite;
}

.heel-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 44% 44% 12px 12px;
  mix-blend-mode: multiply;
}

.brain-frame {
  position: absolute;
  bottom: 0;
  left: -12%;
  width: min(205px, 95%);
  height: 160px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(20, 20, 17, 0.13);
  transform: rotate(-4deg);
  animation: floatBrain 6.8s ease-in-out -1.4s infinite;
}

.brain-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.spark-mark {
  position: absolute;
  top: 25%;
  left: 0;
  color: var(--coral);
  font-size: 3rem;
}

.distance-note {
  grid-column: 1 / -1;
  max-width: 510px;
  margin: 6px 0 0 auto;
  padding: 14px 0 0 24px;
  color: #4f4b44;
  border-top: 1px solid var(--ink);
  font-family: Georgia, serif;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-style: italic;
  line-height: 1.45;
}

.specs {
  padding-top: clamp(32px, 4vw, 54px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: clamp(30px, 4vw, 46px);
}

.section-heading h2 em {
  color: var(--coral);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.spec-card {
  position: relative;
  min-height: 152px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 19px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform 280ms ease, box-shadow 280ms ease, background-color 280ms ease;
}

.spec-card:nth-child(2),
.spec-card:nth-child(6) {
  background: #d9f4ee;
}

.spec-card:nth-child(3) {
  background: #fee2e1;
}

.spec-card:nth-child(5) {
  background: #f8df7a;
}

.spec-card:hover {
  z-index: 1;
  box-shadow: 0 18px 40px rgba(37, 33, 25, 0.1);
  transform: translateY(-7px) rotate(-0.5deg);
}

.spec-card span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.spec-card h3 {
  max-width: 280px;
  margin: 30px 28px 0 0;
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.spec-card i {
  position: absolute;
  right: 20px;
  bottom: 17px;
  font-family: Georgia, serif;
  font-size: 1.7rem;
  font-style: normal;
}

.satellite {
  width: 100%;
  padding-top: clamp(46px, 6vw, 74px);
  padding-bottom: 0;
}

.satellite-heading {
  width: var(--page);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin: 0 auto clamp(28px, 4vw, 42px);
}

.satellite-heading h2 em {
  color: var(--green);
}

.satellite-heading > p {
  margin: 0 0 5px;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  font-style: italic;
  text-align: right;
}

.satellite-frame {
  position: relative;
  width: min(800px, calc(100% - 36px));
  margin: 0 auto;
  overflow: hidden;
  background: var(--ink);
  border: 9px solid var(--ink);
  border-radius: var(--radius-lg);
}

.satellite-frame::after {
  content: "";
  position: absolute;
  inset: 0 0 52px;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 30%, transparent 75%, rgba(245, 200, 66, 0.09));
}

.satellite-frame img {
  width: 100%;
  height: 265px;
  object-fit: cover;
  object-position: center 48%;
  transform: scale(1.015);
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.satellite-frame:hover img {
  transform: scale(1.045);
}

.satellite-frame figcaption {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 18px;
  color: var(--paper);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blessing {
  width: 100%;
  margin-top: 0;
  padding-inline: max(20px, calc((100vw - 1180px) / 2));
  background: var(--yellow);
}

.blessing-card {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.blessing-card h2 {
  font-size: clamp(2.7rem, 6.2vw, 6.2rem);
}

.blessing-card h2 em {
  color: var(--coral);
}

.blessing-lines {
  max-width: 860px;
  margin: clamp(28px, 4vw, 42px) auto 0;
  font-family: Georgia, serif;
  font-size: clamp(1.2rem, 2.5vw, 2.05rem);
  line-height: 1.45;
}

.blessing-lines p {
  margin-bottom: 5px;
}

.seh-lo {
  display: inline-block;
  margin: 24px 0 0;
  padding: 9px 18px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 999px;
  font-size: 0.8rem;
  transform: rotate(-2deg);
}

.approval {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: clamp(34px, 4vw, 46px);
}

.approval strong {
  font-family: Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-style: italic;
}

.approval span {
  padding-left: 22px;
  border-left: 1px solid var(--ink);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.45;
  text-align: left;
  text-transform: uppercase;
}

.blessing-flower {
  position: absolute;
  top: 15%;
  right: -4%;
  font-size: clamp(2.5rem, 5vw, 5rem);
  transform: rotate(10deg);
}

.personal {
  padding-block: clamp(48px, 5.5vw, 72px);
}

.personal-card {
  position: relative;
  padding: clamp(28px, 4vw, 50px);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.personal-card::after {
  content: "";
  position: absolute;
  top: -170px;
  right: -130px;
  width: 380px;
  aspect-ratio: 1;
  background: rgba(243, 138, 161, 0.22);
  border: 1px solid rgba(240, 100, 105, 0.35);
  border-radius: 50%;
}

.personal-card h2 {
  position: relative;
  z-index: 1;
}

.personal-card h2 em {
  color: var(--coral);
}

.message-placeholder {
  position: relative;
  z-index: 1;
  max-width: 820px;
  min-height: 130px;
  display: flex;
  align-items: center;
  margin: clamp(30px, 4vw, 44px) 0 0;
  padding: clamp(22px, 3vw, 34px);
  color: var(--muted);
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    repeating-linear-gradient(90deg, var(--turquoise) 0 10px, transparent 10px 18px, var(--coral) 18px 28px, transparent 28px 36px) border-box;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-family: Georgia, serif;
  font-size: clamp(1.15rem, 2.1vw, 1.65rem);
  font-style: italic;
  line-height: 1.7;
}

.message-signoff {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.75rem;
}

.message-signoff i {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 1.4rem;
}

.finale {
  width: 100%;
  min-height: 480px;
  display: grid;
  place-items: center;
  padding-inline: 20px;
  text-align: center;
  background:
    radial-gradient(circle at 15% 22%, rgba(245, 200, 66, 0.55), transparent 19%),
    radial-gradient(circle at 85% 78%, rgba(35, 203, 187, 0.3), transparent 25%),
    #f9f4eb;
}

.finale-inner {
  position: relative;
  width: min(850px, 100%);
}

.finale h2 em {
  color: var(--green);
}

.finale-flower {
  position: absolute;
  top: 10%;
  right: -8%;
  font-family: Georgia, serif;
  font-size: 0.72rem;
  font-style: italic;
  transform: rotate(9deg);
}

.reveal-button {
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin-top: clamp(30px, 4vw, 44px);
  padding: 15px 18px 15px 25px;
  cursor: pointer;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  transition: color 220ms ease, background-color 220ms ease, transform 220ms ease;
}

.reveal-button span:last-child {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 50%;
  transition: transform 220ms ease;
}

.reveal-button:hover {
  color: var(--ink);
  background: transparent;
  transform: translateY(-3px);
}

.reveal-button:hover span:last-child {
  transform: translateX(3px);
}

.last-message {
  max-width: 760px;
  margin: 26px auto 0;
  padding: clamp(24px, 3vw, 34px);
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.last-message.is-visible {
  animation: messageIn 600ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.last-message p {
  margin-bottom: 16px;
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.last-message strong {
  display: block;
  color: var(--coral);
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 4.5vw, 3.5rem);
  line-height: 1.05;
}

.last-message small {
  display: block;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px max(24px, calc((100vw - 1180px) / 2));
  color: #aaa59b;
  background: var(--ink);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  width: min(360px, calc(100% - 40px));
  padding: 24px 52px 22px 24px;
  color: var(--ink);
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: 18px;
  box-shadow: 8px 8px 0 var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  transition: opacity 250ms ease, transform 250ms ease;
}

.toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast > span {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.toast p {
  margin: 10px 0 0;
  font-family: Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.4;
}

.toast-close {
  position: absolute;
  top: 10px;
  right: 11px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 1.5rem;
}

.toast-close:hover,
.toast-close:focus-visible {
  background: rgba(255, 255, 255, 0.42);
}

.confetti-layer {
  position: fixed;
  z-index: 90;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  top: -30px;
  width: 9px;
  height: 16px;
  background: var(--confetti-color);
  border-radius: 2px;
  animation: confettiFall var(--fall-time) cubic-bezier(0.2, 0.6, 0.4, 1) var(--fall-delay) forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

.stagger-group .reveal:nth-child(2) { transition-delay: 70ms; }
.stagger-group .reveal:nth-child(3) { transition-delay: 140ms; }
.stagger-group .reveal:nth-child(4) { transition-delay: 70ms; }
.stagger-group .reveal:nth-child(5) { transition-delay: 140ms; }
.stagger-group .reveal:nth-child(6) { transition-delay: 210ms; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

@keyframes heroStateChange {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  45% { opacity: 0; transform: translateY(-8px) scale(0.99); }
  55% { opacity: 0; transform: translateY(7px) scale(0.99); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cakeReveal {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cakeRise {
  from { opacity: 0; transform: translateY(22px) scaleY(0.92); }
  to { opacity: 1; transform: translateY(0) scaleY(1); }
}

@keyframes candleIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes flameFlicker {
  0%, 100% { transform: rotate(-2deg) scale(1); }
  50% { transform: rotate(3deg) scale(0.9, 1.06); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(12deg); }
  50% { transform: translateY(-10px) rotate(7deg); }
}

@keyframes floatHeel {
  0%, 100% { transform: translateY(0) rotate(5deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}

@keyframes floatBrain {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-8px) rotate(-2deg); }
}

@keyframes messageIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes confettiFall {
  0% { transform: translate3d(0, -5vh, 0) rotate(0deg); opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translate3d(var(--drift), 108vh, 0) rotate(var(--spin)); opacity: 0; }
}

@media (max-width: 800px) {
  :root {
    --page: min(100% - 28px, 680px);
  }

  .hero {
    min-height: auto;
    padding: 62px 14px 42px;
  }

  .hero::after {
    inset: 10px;
    border-radius: 22px;
  }

  .hero-flower {
    top: 44px;
    right: 30px;
  }

  .hero-meta,
  .hero-notes {
    flex-direction: column;
  }

  .hero-meta {
    gap: 2px;
  }

  .hero-notes {
    gap: 8px;
    text-align: center;
  }

  .hero-notes p:last-child {
    max-width: none;
    text-align: center;
  }

  .aura-card {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .aura-art {
    min-height: 190px;
  }

  .heel-frame {
    right: 8%;
    width: 150px;
    height: 140px;
  }

  .brain-frame {
    left: 8%;
    width: 145px;
    height: 112px;
  }

  .aura-word {
    right: 5%;
    writing-mode: horizontal-tb;
  }

  .distance-note {
    grid-column: auto;
    margin-top: 26px;
  }

  .spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .satellite-frame img {
    height: 250px;
  }
}

@media (max-width: 560px) {
  .section-pad {
    padding-block: 43px;
  }

  h2 {
    font-size: clamp(2.2rem, 10.5vw, 3.7rem);
  }

  .hero-title {
    font-size: clamp(2.5rem, 11.8vw, 3.85rem);
    line-height: 0.88;
  }

  .hero-title em {
    white-space: normal;
  }

  .hero-state-line {
    display: block;
    width: 100%;
  }

  .countdown-wrap {
    padding: 16px 10px;
  }

  .time-divider {
    padding-inline: 1px;
  }

  .ticker-section {
    padding-block: 20px 17px;
  }

  .aura-card {
    padding: 24px 20px;
  }

  .aura-copy h2 {
    font-size: clamp(2.2rem, 10.5vw, 3.7rem);
  }

  .aura-body br {
    display: none;
  }

  .aura-art {
    min-height: 170px;
  }

  .heel-frame {
    right: 5%;
    width: 128px;
    height: 120px;
  }

  .brain-frame {
    left: 5%;
    width: 124px;
    height: 98px;
  }

  .distance-note {
    padding-left: 18px;
  }

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

  .spec-card {
    min-height: 132px;
    padding: 17px;
  }

  .satellite-heading {
    align-items: start;
    flex-direction: column;
    gap: 16px;
  }

  .satellite-heading > p {
    text-align: left;
  }

  .satellite-frame {
    width: var(--page);
    border-width: 6px;
  }

  .satellite-frame img {
    height: 180px;
    object-position: center 48%;
  }

  .satellite-frame figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    min-height: 48px;
    padding: 8px 14px;
  }

  .blessing-card h2 {
    font-size: clamp(2.4rem, 11vw, 4.4rem);
  }

  .blessing {
    padding-inline: 22px;
  }

  .blessing-flower {
    top: 5%;
    right: -8px;
    font-size: 2.35rem;
  }

  .approval {
    flex-direction: column;
    gap: 14px;
  }

  .approval span {
    padding: 14px 0 0;
    border-top: 1px solid var(--ink);
    border-left: 0;
    text-align: center;
  }

  .message-placeholder {
    min-height: 138px;
    align-items: flex-start;
    font-size: clamp(1.05rem, 4.4vw, 1.35rem);
  }

  .finale {
    min-height: 460px;
  }

  .finale-flower {
    position: static;
    display: inline-block;
    margin-bottom: 14px;
  }

  .reveal-button {
    width: 100%;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
  }

  .cake-reveal {
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px 20px;
    text-align: center;
  }

  .cake-stage {
    flex-basis: auto;
    width: clamp(140px, 42vw, 170px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .ticker-track {
    width: auto;
    padding-inline: 20px;
    overflow: hidden;
  }

  .ticker-track span:nth-child(2) {
    display: none;
  }

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