/* ============================================================
   Baby Shower Marco — Invita Kairós
   Color palette: steel blue + baby blue + white
   Teddy bear theme with argyle diamond pattern
   ============================================================ */

:root {
  --blue: #7B9CB7;
  --blue-dark: #5F839E;
  --blue-deep: #4A6E89;
  --blue-light: #B8D4E8;
  --blue-pale: #D6E8F4;
  --white: #FFFFFF;
  --cream: #F8FBFD;
  --paper: #FAFCFE;
  --ink: #2C3E50;
  --ink-soft: #5A7A94;
  --navy: #1E3A5F;
  --shadow: 0 18px 48px rgba(90, 122, 148, 0.18);
  --shadow-soft: 0 6px 18px rgba(90, 122, 148, 0.12);

  --f-sans: 'Nunito Sans', 'Segoe UI', sans-serif;
  --f-cursive: 'Dancing Script', 'Brush Script MT', cursive;
  --f-display: 'Montserrat', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
}
html { background-color: var(--cream); }
body { background-color: var(--cream); }

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

/* ============================================================
   DEMO BANNER
   ============================================================ */
.demo-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: linear-gradient(135deg, #1E3A5F 0%, #2C3E50 100%);
  color: #F8FBFD;
  text-align: center;
  padding: 8px 16px;
  font-family: var(--f-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.demo-banner strong {
  color: var(--blue-light);
}
.demo-banner a {
  color: var(--blue-light);
  text-decoration: underline;
  margin-left: 4px;
}
.demo-banner a:hover {
  color: #fff;
}

/* ============================================================
   INTRO · ENVELOPE
   ============================================================ */

.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #E8F1F8 0%, #D6E8F4 50%, #B8D4E8 100%);
  max-width: none;
  width: 100vw;
  margin: 0;
  padding: 0;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.intro.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/texture.jpg');
  background-size: 300px;
  opacity: 0.08;
  pointer-events: none;
}

.intro-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 24px;
}

.envelope {
  position: relative;
  width: min(520px, 86vw);
  aspect-ratio: 3 / 2;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  perspective: 1400px;
  filter:
    drop-shadow(0 24px 32px rgba(90, 122, 148, 0.32))
    drop-shadow(0 8px 14px rgba(90, 122, 148, 0.22))
    drop-shadow(0 2px 3px rgba(90, 122, 148, 0.18));
  transition: transform 0.4s ease, filter 0.4s ease;
}
.envelope:hover {
  transform: translateY(-3px);
  filter:
    drop-shadow(0 32px 40px rgba(90, 122, 148, 0.38))
    drop-shadow(0 10px 16px rgba(90, 122, 148, 0.24))
    drop-shadow(0 2px 4px rgba(90, 122, 148, 0.2));
}

.envelope.is-opening {
  transform: translateY(13vh);
  transition: transform 1.6s cubic-bezier(.3,.8,.3,1) 0.6s, filter 0.4s ease;
}

.envelope-back,
.envelope-front,
.envelope-flap {
  position: absolute;
  border-radius: 6px;
}

/* Body of the envelope — light blue */
.envelope-back {
  inset: 0;
  background:
    linear-gradient(180deg, #D6E8F4 0%, #B8D4E8 100%);
  z-index: 1;
  box-shadow: inset 0 0 30px rgba(90, 130, 170, 0.15);
  border-radius: 6px;
}
.envelope-back::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(123, 156, 183, 0.08) 20px,
    rgba(123, 156, 183, 0.08) 21px
  );
  border-radius: 6px;
  pointer-events: none;
}

/* Front face — V-pocket */
.envelope-front {
  inset: 0;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 200' preserveAspectRatio='none'><defs><linearGradient id='g' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23B8D4E8'/><stop offset='1' stop-color='%23A0C4DC'/></linearGradient><linearGradient id='shB' x1='0.5' y1='1' x2='0.5' y2='0'><stop offset='0' stop-color='%23000' stop-opacity='0.12'/><stop offset='1' stop-color='%23000' stop-opacity='0'/></linearGradient></defs><rect width='300' height='200' fill='url(%23g)'/><polygon points='0,200 300,200 150,100' fill='url(%23shB)'/><line x1='0' y1='200' x2='150' y2='100' stroke='%23728fa6' stroke-width='0.5' stroke-opacity='0.4'/><line x1='300' y1='200' x2='150' y2='100' stroke='%23728fa6' stroke-width='0.5' stroke-opacity='0.4'/></svg>") center / 100% 100% no-repeat;
  clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%);
  z-index: 4;
}

/* Top flap */
.envelope-flap {
  inset: 0;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 200' preserveAspectRatio='none'><defs><linearGradient id='g' x1='0' y1='0' x2='0.5' y2='1'><stop offset='0' stop-color='%23CFDFED'/><stop offset='1' stop-color='%23B0CBE0'/></linearGradient></defs><rect width='300' height='200' fill='url(%23g)'/><line x1='0' y1='0' x2='150' y2='120' stroke='%23728fa6' stroke-width='0.6' stroke-opacity='0.3'/><line x1='300' y1='0' x2='150' y2='120' stroke='%23728fa6' stroke-width='0.6' stroke-opacity='0.3'/></svg>") center / 100% 100% no-repeat;
  transform-origin: top center;
  clip-path: polygon(0 0, 100% 0, 50% 60%);
  z-index: 7;
  transition: transform 1.4s cubic-bezier(.55,-0.05,.55,1.1) 0.4s;
}

/* Flap shadow */
.envelope-flap-shadow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 200' preserveAspectRatio='none'><defs><linearGradient id='sh' x1='0.5' y1='0' x2='0.5' y2='1'><stop offset='0' stop-color='%23000' stop-opacity='0.2'/><stop offset='0.6' stop-color='%23000' stop-opacity='0.06'/><stop offset='1' stop-color='%23000' stop-opacity='0'/></linearGradient></defs><polygon points='0,0 0,8 150,63 300,8 300,0 150,55' fill='url(%23sh)'/></svg>") center / 100% 100% no-repeat;
  opacity: 1;
  transition: opacity 0.6s ease;
}
.envelope.is-opening .envelope-flap-shadow { opacity: 0; transition-delay: 0.3s; }

/* Photo card inside envelope */
.envelope-photo {
  position: absolute;
  left: 50%;
  top: 8%;
  transform: translateX(-50%);
  width: 44%;
  background: #fff;
  padding: 8px 8px 22px;
  box-shadow: 0 14px 28px rgba(0,0,0,.2);
  z-index: 3;
  border-radius: 8px;
  transition:
    top 1.3s cubic-bezier(.34, 1.25, 0.64, 1),
    transform 1.3s cubic-bezier(.34, 1.25, 0.64, 1),
    box-shadow 0.4s ease;
}

.envelope.flap-opened .envelope-flap { z-index: 2; }

.envelope.photo-emerged .envelope-photo {
  box-shadow: 0 24px 52px rgba(0,0,0,.35), 0 10px 20px rgba(0,0,0,.2);
  animation: photo-pop-forward 0.45s cubic-bezier(.34, 1.6, 0.64, 1);
}
@keyframes photo-pop-forward {
  0%   { filter: brightness(1)    drop-shadow(0 0 0 rgba(255,255,255,0)); }
  50%  { filter: brightness(1.06) drop-shadow(0 0 12px rgba(184,212,232,0.5)); }
  100% { filter: brightness(1)    drop-shadow(0 0 0 rgba(255,255,255,0)); }
}

.envelope-photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: contain;
  display: block;
  background: #fff;
}

/* Baby seal — round blue circle with baby icon */
.envelope-seal {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%,
      #A8CBE0 0%,
      #7B9CB7 40%,
      #5F839E 70%,
      #4A6E89 100%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 8;
  display: grid;
  place-items: center;
  box-shadow:
    0 10px 20px rgba(74, 110, 137, 0.45),
    0 4px 8px rgba(74, 110, 137, 0.35),
    inset 0 2px 4px rgba(255, 255, 255, 0.35),
    inset 0 -3px 8px rgba(0, 0, 0, 0.2);
  transition: transform .9s ease, opacity .6s ease;
}
.envelope-seal::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.35);
}
.seal-icon {
  font-size: 28px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.envelope-cta {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  color: var(--blue-dark);
  font-family: var(--f-sans);
  font-style: italic;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 15px;
  z-index: 9;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
  animation: pulse 2.4s ease-in-out infinite;
  white-space: nowrap;
}
.envelope-cta::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 9px solid var(--white);
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.08));
}

@keyframes pulse {
  0%,100% { transform: translateX(-50%) scale(1); }
  50%     { transform: translateX(-50%) scale(1.06); }
}

.intro-tag {
  position: relative;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-sans);
  font-style: italic;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.85);
  padding: 7px 10px 7px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.03em;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: z-index 0s 0.3s, opacity 0.6s ease, transform 0.6s ease;
}
.envelope.is-opening ~ .intro-tag {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
  transition: opacity 0.45s ease, transform 0.5s ease;
}
.intro-tag-brand {
  display: inline-block;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 1.15em;
  color: #FBEFE9;
  background: linear-gradient(135deg, #7B9CB7 0%, #5F839E 100%);
  padding: 5px 16px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(90, 130, 170, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  text-shadow: 0 1px 1px rgba(30, 58, 95, 0.25);
}

/* Envelope opening animation */
.envelope.is-opening .envelope-flap { transform: rotateX(180deg); }
.envelope.is-opening .envelope-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(.4) rotate(15deg);
  transition: transform .9s cubic-bezier(.4,.1,.6,1) .55s, opacity .9s ease .55s;
}
.envelope.photo-emerging .envelope-photo {
  top: -75%;
  transform: translateX(-50%) scale(1.4) rotate(-2deg);
  box-shadow: 0 28px 60px rgba(0,0,0,.35), 0 10px 22px rgba(0,0,0,.2);
}
.envelope.is-opening .envelope-cta { opacity: 0; }

/* Seal burst */
.seal-burst {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(184, 212, 232, 0.95) 0%,
    rgba(123, 156, 183, 0.6) 25%,
    rgba(95, 131, 158, 0.3) 50%,
    transparent 75%);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5);
  z-index: 1;
  mix-blend-mode: screen;
}
.envelope.is-opening .seal-burst {
  animation: sealBurst 1.2s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes sealBurst {
  0%   { transform: scale(0.5); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: scale(6);   opacity: 0; }
}

/* Seal particles */
.seal-particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 6px;
  background: radial-gradient(ellipse at 30% 30%, #B8D4E8, #5F839E 80%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9;
  transform: translate(-50%, -50%);
  opacity: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  animation: sealParticleFly 1.3s cubic-bezier(.2,.5,.4,1) forwards;
  animation-delay: 0.5s;
}
@keyframes sealParticleFly {
  0%   { transform: translate(-50%, -50%) rotate(0deg) scale(1);   opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(0.25); opacity: 0; }
}

/* Bubbles instead of petals */
.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 55;
  overflow: hidden;
}
.petal {
  position: absolute;
  top: -40px;
  opacity: 0;
  will-change: transform, opacity;
  animation: petalFall linear forwards;
}
.petal-mag {
  width: 18px;
  height: 18px;
  background: radial-gradient(circle at 35% 35%, rgba(184,212,232,0.7) 0%, rgba(123,156,183,0.3) 100%);
  border-radius: 50%;
  border: 1px solid rgba(184,212,232,0.5);
}
.petal-leaf {
  width: 12px;
  height: 12px;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.8) 0%, rgba(184,212,232,0.4) 100%);
  border-radius: 50%;
  border: 1px solid rgba(184,212,232,0.3);
}
@keyframes petalFall {
  0%   { transform: translate3d(0, 0, 0)             rotate(0deg);             opacity: 0; }
  8%   { opacity: 0.8; }
  100% { transform: translate3d(var(--drift), 100vh, 0) rotate(var(--rot-end)); opacity: 0; }
}

body.is-locked { overflow: hidden; height: 100vh; }

/* ============================================================
   INVITATION
   ============================================================ */

.invitation {
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.9s ease 0.3s;
}
.invitation.is-visible { opacity: 1; }

section {
  position: relative;
  padding: clamp(56px, 9vw, 110px) clamp(20px, 5vw, 60px);
  max-width: 1100px;
  margin: 0 auto;
}

/* Section types */
.section-blue-solid {
  background: var(--blue);
  color: #fff;
  max-width: none;
  margin: 0;
  position: relative;
  text-align: center;
}

.section-pattern {
  background-color: var(--cream);
  background-image: url('../img/texture.jpg');
  background-size: 300px;
  max-width: none;
  margin: 0;
  position: relative;
  text-align: center;
}
.section-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(248, 251, 253, 0.82);
  pointer-events: none;
}
.section-pattern > * {
  position: relative;
  z-index: 1;
}

.section-blue {
  background: var(--blue);
  color: #fff;
  max-width: none;
  margin: 0;
  text-align: center;
}

/* Cursive titles */
.cursive {
  font-family: var(--f-cursive);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--blue);
  margin: 0 0 0.4em;
  text-align: center;
  letter-spacing: 0.5px;
}
.cursive.on-white { color: #fff; }

.section-title { color: var(--blue); margin-bottom: 0.6em; }

.section-heading {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  text-align: center;
  color: #fff;
  margin: 0 0 1em;
}
.heading-script {
  font-family: var(--f-cursive);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 1.6em;
}

/* ============================================================
   HERO — Baby Shower portada
   ============================================================ */
.hero {
  padding: clamp(60px, 10vw, 120px) 20px;
  max-width: none;
  margin: 0;
  margin-top: 32px;
  background-color: var(--cream);
  background-image: url('../img/texture.jpg');
  background-size: 300px;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(248, 251, 253, 0.78);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-frame {
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid var(--blue-light);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  padding: clamp(40px, 8vw, 80px) clamp(30px, 6vw, 60px);
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow:
    0 20px 60px rgba(90, 122, 148, 0.15),
    inset 0 0 0 8px rgba(255, 255, 255, 0.5),
    inset 0 0 0 9px rgba(184, 212, 232, 0.3);
}
.hero-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: inherit;
  border: 1px solid rgba(184, 212, 232, 0.4);
  pointer-events: none;
}
.hero-eyebrow {
  font-family: var(--f-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 1.2em;
  display: inline-block;
}
.hero-bear {
  width: clamp(120px, 30vw, 200px);
  margin: 0 auto 16px;
}
.hero-bear img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(90, 122, 148, 0.2));
}
.hero-name {
  font-size: clamp(3.2rem, 8vw, 5rem) !important;
  color: var(--blue) !important;
  margin: 0 !important;
  text-shadow: 0 2px 8px rgba(90, 122, 148, 0.15);
}

/* ============================================================
   DATE SECTION
   ============================================================ */
.date-section {
  padding: clamp(40px, 6vw, 70px) 20px;
}
.date-script {
  color: #fff !important;
  font-size: clamp(2.2rem, 5vw, 3.2rem) !important;
  margin-bottom: 0.3em !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.date-text {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: 0.35em;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: #fff;
  margin: 0;
  text-transform: uppercase;
}
.date-time {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: 0.25em;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  margin: 0.5em 0 0;
}

/* ============================================================
   COUNTDOWN
   ============================================================ */
.countdown-section {
  padding: clamp(40px, 6vw, 70px) 20px;
  max-width: none;
  margin: 0;
  background: var(--cream);
}
.countdown-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 5vw, 50px);
}
.countdown > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--blue);
  border-radius: 12px;
  padding: clamp(14px, 3vw, 22px) clamp(16px, 3vw, 28px);
  min-width: 60px;
  box-shadow: 0 6px 20px rgba(90, 122, 148, 0.2);
}
.countdown strong {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  color: #fff;
}
.countdown span {
  font-family: var(--f-display);
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 4px;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
}

/* Calendar */
.cal-wrap {
  position: relative;
  display: inline-block;
}
.btn-cal {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--f-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  padding: 11px 22px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.btn-cal svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-cal:hover { background: var(--blue); color: #fff; transform: translateY(-1px); }

.cal-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  border: 1px solid rgba(90,122,148,.12);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  min-width: 210px;
  overflow: hidden;
  z-index: 20;
  animation: calFadeIn 0.18s ease;
}
@keyframes calFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.cal-opt {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 18px;
  font-family: var(--f-display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--blue-dark);
  background: none;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease;
  text-align: left;
  line-height: 1;
  box-sizing: border-box;
}
.cal-opt svg { width: 16px; height: 16px; flex-shrink: 0; }
.cal-opt:hover { background: var(--blue-pale); }
.cal-opt + .cal-opt { border-top: 1px solid rgba(90,122,148,.08); }

/* ============================================================
   PARENTS
   ============================================================ */
.parents-section {
  padding: clamp(50px, 7vw, 80px) 20px;
}
.parents-bow {
  width: clamp(80px, 16vw, 120px);
  margin: 0 auto 20px;
}
.parents-bow img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}
.parents-names {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}
.parents-names p {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #fff;
  margin: 0.2em 0;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
}
.parents-amp {
  font-family: var(--f-cursive);
  font-size: 2rem !important;
  color: rgba(255,255,255,0.8) !important;
  margin: 0.1em 0 !important;
}

/* ============================================================
   VENUE
   ============================================================ */
.venue-section {
  padding: clamp(60px, 9vw, 100px) 20px;
}
.venue-card-frame {
  background: rgba(255, 255, 255, 0.75);
  border: 2px solid var(--blue-light);
  border-radius: 16px;
  padding: clamp(32px, 5vw, 50px) clamp(24px, 4vw, 40px);
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  box-shadow:
    0 16px 40px rgba(90, 122, 148, 0.12),
    inset 0 0 0 6px rgba(255, 255, 255, 0.5),
    inset 0 0 0 7px rgba(184, 212, 232, 0.25);
}
.venue-card-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(184, 212, 232, 0.35);
  border-radius: 10px;
  pointer-events: none;
}
.venue-name {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--blue-dark);
  margin: 0 0 0.6em;
  text-transform: uppercase;
}
.venue-address {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0 0 1.5em;
  line-height: 1.6;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--blue);
  color: #fff;
  border: 2px solid var(--blue);
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(90, 122, 148, 0.25);
}
.btn:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(90, 122, 148, 0.3);
}

.btn-venue .ico-tap {
  width: 16px; height: 16px;
  flex-shrink: 0;
  animation: tap-pulse 1.8s ease-in-out infinite;
  transform-origin: 50% 70%;
}
@keyframes tap-pulse {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50%      { transform: translateY(-3px) rotate(-2deg); }
}

.venue-bear {
  width: clamp(140px, 30vw, 220px);
  margin: 30px auto 0;
}
.venue-bear img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(90, 122, 148, 0.18));
}

/* ============================================================
   MESA DE REGALOS
   ============================================================ */
.gifts-section {
  padding: clamp(50px, 7vw, 80px) 20px;
}
.gifts-text {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
  margin: 0 auto 1.8em;
  max-width: 420px;
  line-height: 1.7;
  text-transform: uppercase;
}
.btn-gifts {
  background: #fff;
  color: var(--blue-dark);
  border-color: #fff;
}
.btn-gifts:hover {
  background: var(--blue-pale);
  border-color: var(--blue-pale);
  color: var(--blue-deep);
}
.gifts-bear {
  width: clamp(120px, 25vw, 180px);
  margin: 30px auto 0;
}
.gifts-bear img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.12));
}

/* ============================================================
   LLUVIA DE SOBRES
   ============================================================ */
.sobres-section {
  padding: clamp(50px, 7vw, 80px) 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.sobres-section .section-title {
  color: #fff;
  margin-bottom: 0.8em;
}
.sobres-icon {
  width: clamp(100px, 22vw, 160px);
  margin: 0 auto 20px;
}
.sobres-icon img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.12));
}
.sobres-text {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.88);
  margin: 0 auto;
  max-width: 420px;
  line-height: 1.7;
  text-transform: uppercase;
}

/* ============================================================
   RSVP
   ============================================================ */
.rsvp { text-align: center; padding: clamp(50px, 8vw, 90px) 20px; }
.rsvp-container {
  max-width: 560px;
  margin: 0 auto;
}
.rsvp-card-frame {
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid var(--blue-light);
  border-radius: 16px;
  padding: clamp(36px, 6vw, 60px) clamp(24px, 4vw, 40px);
  position: relative;
  box-shadow:
    0 16px 40px rgba(90, 122, 148, 0.12),
    inset 0 0 0 6px rgba(255, 255, 255, 0.5),
    inset 0 0 0 7px rgba(184, 212, 232, 0.25);
}
.rsvp-card-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(184, 212, 232, 0.35);
  border-radius: 10px;
  pointer-events: none;
}
.rsvp-card-frame > * { position: relative; z-index: 1; }

.rsvp-name {
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  margin: 0.4em 0 1em;
  letter-spacing: 0.04em;
  color: var(--blue-dark);
  font-weight: 500;
}

.rsvp-form {
  margin-top: 0.8em;
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  text-align: left;
}
.rsvp-field { display: flex; flex-direction: column; gap: 6px; }
.rsvp-allotted {
  font-family: var(--f-sans);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
  text-align: center;
}
.rsvp-field-label {
  font-family: var(--f-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  margin: 0;
}
.rsvp-input {
  -webkit-appearance: none;
  appearance: none;
  background: #fff;
  border: 1.5px solid var(--blue-light);
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 0.95rem;
  padding: 11px 14px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.rsvp-input::placeholder {
  color: rgba(44, 62, 80, 0.38);
  font-style: italic;
}
.rsvp-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(123, 156, 183, 0.2);
}
.rsvp-error {
  font-family: var(--f-sans);
  font-style: italic;
  color: #c0392b;
  font-size: 0.88rem;
  text-align: center;
  margin: 0;
}
.rsvp-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
  margin-top: 0.4em;
  font-size: 0.88rem;
  padding: 14px 28px;
}
.rsvp-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}
.rsvp-success { text-align: center; padding: 0.8em 0 0.4em; }
.rsvp-success-icon { font-size: 2.6rem; margin-bottom: 0.5em; }
.rsvp-success-title {
  font-family: var(--f-cursive);
  font-size: 2rem;
  color: var(--blue);
  margin: 0 0 0.4em;
}
.rsvp-success-msg {
  font-family: var(--f-sans);
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.7;
}
.rsvp-legal {
  margin-top: 0.6em;
  text-align: center;
  font-size: 0.72rem;
  font-style: italic;
  color: rgba(44, 62, 80, 0.4);
  letter-spacing: 0.02em;
}

/* Attend buttons */
.attend-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.attend-btn {
  flex: 1 1 140px;
  min-width: 140px;
  padding: 11px 16px;
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue-light);
  border-radius: 999px;
  font-family: var(--f-sans);
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.attend-btn:hover {
  background: rgba(123, 156, 183, 0.08);
  border-color: var(--blue);
}
.attend-btn.is-active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  font-weight: 600;
}

/* Opt-in */
.rsvp-optin { margin-top: 0.4em; padding: 0.6em 0; }
.optin-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  color: var(--ink-soft);
  font-family: var(--f-sans);
  font-size: 0.84rem;
  line-height: 1.5;
}
.optin-row input[type="checkbox"] {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
  flex-shrink: 0;
}
.optin-row span strong { color: var(--blue-dark); font-weight: 600; }

/* Guest rows */
.guests-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.guest-row {
  display: grid;
  grid-template-areas: "label label" "name age";
  grid-template-columns: 1fr 80px;
  gap: 6px 10px;
  animation: guestIn 0.3s ease forwards;
}
@keyframes guestIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.guest-row-label {
  grid-area: label;
  font-family: var(--f-cursive);
  font-size: 1.3rem;
  color: var(--blue);
  margin: 0;
}
.guest-name-wrap { grid-area: name; display: flex; flex-direction: column; gap: 4px; }
.guest-age-wrap  { grid-area: age;  display: flex; flex-direction: column; gap: 4px; }
.guest-sub-label {
  font-family: var(--f-display);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.guests-list-hint {
  margin: 1em 0 0.5em;
  font-family: var(--f-sans);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.rsvp-cantidad {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 600;
  font-family: var(--f-display);
  letter-spacing: 0.05em;
  max-width: 160px;
  margin: 0.4em auto 0;
  padding: 12px 14px;
}
.rsvp-cantidad::-webkit-outer-spin-button,
.rsvp-cantidad::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.rsvp-cantidad { -moz-appearance: textfield; }

.rsvp-bear {
  width: clamp(120px, 28vw, 180px);
  margin: 30px auto 0;
}
.rsvp-bear img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(90, 122, 148, 0.18));
}

/* ============================================================
   BRAND FOOTER · Invita Kairós
   ============================================================ */
.brand-footer {
  position: relative;
  background:
    radial-gradient(ellipse at top, rgba(184, 212, 232, 0.3) 0%, transparent 60%),
    linear-gradient(135deg, #7B9CB7 0%, #5F839E 50%, #4A6E89 100%);
  padding: clamp(60px, 9vw, 90px) 20px clamp(90px, 12vw, 130px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  max-width: none;
  width: 100%;
  margin: 0;
}
.brand-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.12 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}
.brand-footer-inner {
  position: relative;
  z-index: 2;
  max-width: 480px;
  margin: 0 auto;
}
.brand-orbits {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  pointer-events: none;
  z-index: -1;
}
.brand-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.brand-orbit-1 { animation: brandOrbitPulse 3.5s ease-in-out infinite; }
.brand-orbit-2 { inset: 18px; animation: brandOrbitPulse 3.5s ease-in-out infinite 0.4s; }
@keyframes brandOrbitPulse {
  0%, 100% { transform: scale(1);   opacity: 0.55; }
  50%      { transform: scale(1.15); opacity: 0.1;  }
}
.brand-logo {
  width: clamp(140px, 26vw, 180px);
  height: auto;
  display: block;
  margin: 0 auto 14px;
  filter: drop-shadow(0 4px 10px rgba(30, 58, 95, 0.3)) brightness(0) invert(1) opacity(0.95);
}
.brand-eyebrow {
  font-family: var(--f-sans);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 6px 0 4px;
  letter-spacing: 0.04em;
}
.brand-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 2.6rem);
  color: #fff;
  margin: 0;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 4px rgba(30, 58, 95, 0.3);
}
.brand-tagline {
  font-family: var(--f-sans);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 2px 0 26px;
  letter-spacing: 0.08em;
}
.brand-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--blue-dark);
  font-family: var(--f-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(30, 58, 95, 0.3), 0 0 0 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.25s ease, box-shadow 0.3s ease, background 0.25s ease, color 0.25s ease;
  animation: brandPulse 2.4s ease-in-out infinite;
  position: relative;
}
.brand-cta svg { width: 18px; height: 18px; flex-shrink: 0; }
.brand-cta:hover {
  transform: translateY(-2px);
  background: var(--blue-deep);
  color: #fff;
  animation-play-state: paused;
  box-shadow: 0 10px 24px rgba(30, 58, 95, 0.4);
}
@keyframes brandPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(30, 58, 95, 0.3), 0 0 0 0    rgba(255, 255, 255, 0.5); }
  50%      { box-shadow: 0 6px 20px rgba(30, 58, 95, 0.3), 0 0 0 18px rgba(255, 255, 255, 0); }
}
.brand-copy {
  margin: 36px 0 0;
  font-family: var(--f-sans);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.05em;
  line-height: 1.6;
}

/* ============================================================
   FLOATING CONTROLS
   ============================================================ */
.music-btn, .up-btn, .menu-btn {
  position: fixed;
  bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  cursor: pointer;
  z-index: 60;
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
  transition: transform .25s ease, opacity .25s ease, background .2s ease;
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
}
.music-btn { right: 18px; }
.menu-btn  { right: 72px; }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn[aria-expanded="true"] { background: var(--blue-dark); }

.autoscroll-wrap {
  position: fixed;
  left: 18px;
  bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}
.autoscroll-wrap.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.autoscroll-wrap.is-hiding {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .55s ease, transform .55s ease;
}
.autoscroll-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
  transition: transform .25s ease, background .2s ease;
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
}
.autoscroll-btn:hover { background: var(--blue-dark); transform: translateY(-2px); }
.autoscroll-btn svg { width: 20px; height: 20px; }
.music-btn:hover, .menu-btn:hover { background: var(--blue-dark); transform: translateY(-2px); }
.music-btn svg { width: 20px; height: 20px; }
.music-btn.is-playing { animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.music-btn:hover.is-playing { animation-play-state: paused; }

body.is-locked .music-btn,
body.is-locked .menu-btn,
body.is-locked .autoscroll-wrap {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.85);
}

/* ============================================================
   NAVIGATION MENU
   ============================================================ */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(44, 62, 80, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

.nav-menu {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%) scale(0.95);
  width: min(420px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #FAFCFE 0%, #E8F1F8 100%);
  border: 1px solid rgba(184, 212, 232, 0.5);
  border-radius: 14px;
  padding: clamp(32px, 5vw, 48px) clamp(28px, 5vw, 44px);
  box-shadow:
    0 24px 60px rgba(44, 62, 80, 0.35),
    0 8px 20px rgba(44, 62, 80, 0.15),
    inset 0 0 0 6px rgba(255, 255, 255, 0.5),
    inset 0 0 0 7px rgba(184, 212, 232, 0.3);
  z-index: 75;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(.2,.8,.2,1.1);
  text-align: center;
}
.nav-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.nav-close {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--blue-dark);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
  transition: color 0.2s, transform 0.2s;
}
.nav-close:hover { color: var(--blue); transform: rotate(90deg); }

.nav-eyebrow {
  font-family: var(--f-display);
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 0.4em;
  font-weight: 600;
}
.nav-title {
  font-size: clamp(2.4rem, 6vw, 3.2rem) !important;
  margin-bottom: 1em !important;
  color: var(--blue) !important;
}
.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-list li { border-top: 1px solid rgba(184, 212, 232, 0.35); }
.nav-list li:last-child { border-bottom: 1px solid rgba(184, 212, 232, 0.35); }
.nav-list a {
  display: block;
  padding: 14px 8px;
  font-family: var(--f-display);
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.22s ease, color 0.22s ease, letter-spacing 0.22s ease;
}
.nav-list a:hover {
  background: rgba(184, 212, 232, 0.15);
  letter-spacing: 0.2em;
  color: var(--blue);
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.is-revealed { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 760px) {
  .intro {
    height: 100svh;
    min-height: -webkit-fill-available;
    cursor: pointer;
    touch-action: manipulation;
  }
  .intro-stage { padding: 16px; width: 100%; max-width: 100%; }
  .envelope {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: transform 1.4s cubic-bezier(.3,.8,.3,1) .55s, filter 0.4s ease;
  }
  .envelope.is-opening { transform: translateY(20vh); }
  .envelope.photo-emerging .envelope-photo {
    top: -65%;
    transform: translateX(-50%) scale(1.3) rotate(-2deg);
  }
  section { padding: clamp(44px, 8vw, 80px) clamp(16px, 4vw, 36px); }
  .hero-frame { padding: 36px 24px; }
  .countdown { gap: 12px; }
  .countdown > div { min-width: 54px; padding: 12px 14px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .cursive { font-size: clamp(2rem, 8vw, 2.6rem); }
  section { padding: 38px 14px; }
  .hero-name { font-size: clamp(2.8rem, 10vw, 3.6rem) !important; }
  .countdown { gap: 8px; }
  .countdown strong { font-size: 1.8rem; }
  .countdown > div { min-width: 48px; padding: 10px 12px; }
  .brand-footer { padding: 50px 16px 100px; }
  .brand-logo { width: 130px; }
  .brand-name { font-size: 2rem; }
  .brand-eyebrow, .brand-tagline { font-size: 0.88rem; }
  .brand-cta { font-size: 0.74rem; padding: 13px 20px; letter-spacing: 0.1em; max-width: 100%; }
  .brand-cta svg { width: 16px; height: 16px; }
  .brand-copy { font-size: 0.72rem; margin-top: 22px; }
  .brand-orbits { width: 160px; height: 160px; top: -10px; }
  .demo-banner { font-size: 0.68rem; padding: 6px 12px; }
}

@media (max-width: 360px) {
  body { font-size: 15px; }
  .hero-name { font-size: 2.4rem !important; }
  .hero-frame { padding: 28px 18px; }
  .countdown strong { font-size: 1.6rem; }
  .countdown { gap: 6px; }
  .countdown > div { min-width: 44px; padding: 8px 10px; }
  .brand-logo { width: 120px; }
  .brand-name { font-size: 1.8rem; }
  .brand-cta { font-size: 0.68rem; padding: 12px 16px; letter-spacing: 0.08em; }
  .brand-cta svg { width: 14px; height: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
