/* ================================
       CLIENT THEME
       Cambia solo estas variables para adaptar colores base
    ================================ */
    :root {
      --font-body: "Cormorant Garamond", serif;
      --font-script: "Dancing Script", cursive;
      --font-display: "Great Vibes", cursive;
      --overlay-scale: 1;
      --overlay-image: none;
      --envelope-paper-image: none;
      --envelope-paper-fit: cover;
      --overlay-glass-blur: 14px;
      --overlay-glass-saturate: 118%;
      --opening-bg-a: 0.82;
      --opening-bg-strong-a: 0.9;
      --opening-photo-a: 0.2;
      --opening-glass-top-a: 0.065;
      --opening-glass-mid-a: 0.018;
      --opening-glass-bottom-a: 0.04;
      --opening-kicker: #fff4cf;
      --opening-title: #fff4cf;
      --opening-title-soft: #ffe08e;
      --opening-title-rgb: 255, 244, 207;
      --opening-accent: #f2c06f;
      --opening-accent-rgb: 242, 192, 111;
      --opening-kicker-size-scale: 1;
      --opening-title-size-scale: 1;
      --opening-caption-size-scale: 1;
      --section-blur: 18px;
      --section-fill-top: rgba(255, 255, 255, 0.09);
      --section-fill-bottom: rgba(255, 255, 255, 0.05);
      --space-section-fill-bottom: rgba(8, 20, 47, 0.42);
      --space-section-accent-a: 0.08;
      --space-section-particle-a: 0.06;
      --smart-bg-opacity: 0;
      --smart-bg-y: 0px;
      --content-gradient-start: 100vh;
      --content-gradient-12: calc(12% + 88vh);
      --content-gradient-22: calc(22% + 78vh);
      --content-gradient-52: calc(52% + 48vh);
      --content-gradient-78: calc(78% + 22vh);
      /* Fondo principal */
      --bg-glow-top: rgba(238, 180, 204, 0.22);
      --bg-glow-mid: rgba(214, 74, 105, 0.2);
      --bg-glow-bottom: rgba(255, 214, 168, 0.14);
      --bg-top: #5a132d;
      --bg-mid: #7f1f3f;
      --bg-bottom: #2a0a15;

      /* Colores base */
      --wine-950: #18060d;
      --wine-900: #2b0b18;
      --wine-800: #56162d;
      --wine-700: #8d2949;
      --rose-300: #ffd4e2;
      --gold-100: #fff4cf;
      --gold-300: #ffe08e;
      --gold-500: #f2c06f;
      --gold-700: #9e7222;
      --gold-rgb: 242, 192, 111;
      --gold-soft-rgb: 255, 244, 207;
      --section-title: #fff4cf;
      --section-title-rgb: 255, 244, 207;
      --script-color: #fff4cf;
      --script-rgb: 255, 244, 207;
      --timeline-color: #f2c06f;
      --timeline-rgb: 242, 192, 111;
      --particle-color: #fff4cf;
      --particle-rgb: 255, 244, 207;
      --button-bg: #f2c06f;
      --button-bg-rgb: 242, 192, 111;
      --button-text: #ffffff;
      --field-label: #ffe08e;
      --field-text: #ffffff;
      --closing-color: #fff4cf;
      --hero-label-color: #fff8ec;
      --hero-name-color: #fffdf8;
      --hero-date-color: #fff4cf;
      --hero-name-separator-color: #fff4cf;
      --opening-name-separator-color: #f2c06f;
      --hero-label-size-scale: 1;
      --hero-name-size-scale: 1;
      --hero-date-size-scale: 1;
      --godparent-note-scale: 1;
      --footer-bg-rgb: 223, 149, 160;
      --footer-text: #172033;
      --footer-text-rgb: 23, 32, 51;
      --text: #fffaf3;
      --muted: rgba(255, 248, 236, 0.78);
      --panel: rgba(255, 255, 255, 0.08);
      --panel-strong: rgba(255, 255, 255, 0.13);
      --line: rgba(var(--gold-rgb), 0.28);
      --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
      --radius-xl: 32px;
      --radius-lg: 24px;
      --radius-md: 18px;
      --content-width: 430px;
    }

    * {
      box-sizing: border-box;
    }

    @supports (height: 100dvh) {
      :root {
        --content-gradient-start: 100dvh;
        --content-gradient-12: calc(12% + 88dvh);
        --content-gradient-22: calc(22% + 78dvh);
        --content-gradient-52: calc(52% + 48dvh);
        --content-gradient-78: calc(78% + 22dvh);
      }
    }

    html {
      scroll-behavior: smooth;
    }

    html.preview-embed,
    html.preview-embed body {
      scrollbar-width: none;
    }

    html.preview-embed::-webkit-scrollbar,
    html.preview-embed body::-webkit-scrollbar {
      width: 0;
      height: 0;
      display: none;
    }

    html.preview-live .overlay {
      display: none !important;
    }

    html.preview-live *,
    html.preview-live *::before,
    html.preview-live *::after {
      animation-duration: 0.001s !important;
      animation-delay: 0s !important;
      transition-duration: 0.001s !important;
      transition-delay: 0s !important;
    }

    html.preview-live .section,
    html.preview-live .section h2,
    html.preview-live .section p,
    html.preview-live .section .featured-photo,
    html.preview-live .section .script-block,
    html.preview-live .section .parents-grid,
    html.preview-live .section .godparents-list,
    html.preview-live .section .event-card,
    html.preview-live .section .timeline,
    html.preview-live .section .gallery-showcase,
    html.preview-live .section .gallery,
    html.preview-live .section .rsvp-card,
    html.preview-live .section .utilities,
    html.preview-live .section .section-reveal-item,
    html.preview-live .timeline-item {
      opacity: 1 !important;
      transform: none !important;
      filter: none !important;
    }

    html.locked-scroll {
      overflow: visible;
      height: 100%;
    }

    body {
      margin: 0;
      min-height: 100vh;
      font-family: var(--font-body);
      color: var(--text);
      background:
        radial-gradient(circle at 50% var(--content-gradient-start), var(--bg-glow-top), transparent 28%),
        radial-gradient(circle at 50% var(--content-gradient-22), var(--bg-glow-mid), transparent 34%),
        radial-gradient(circle at bottom, var(--bg-glow-bottom), transparent 38%),
        linear-gradient(180deg, var(--bg-top) 0%, var(--bg-top) var(--content-gradient-start), var(--bg-mid) var(--content-gradient-52), var(--bg-bottom) 100%);
      overflow-x: hidden;
    }

    body.locked {
      overflow: hidden;
      height: 100vh;
      touch-action: none;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%),
        linear-gradient(0deg, rgba(255, 255, 255, 0.04), transparent 18%);
      pointer-events: none;
      z-index: 0;
    }

    body::after {
      content: "";
      position: fixed;
      inset: 0;
      background-image:
        linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
      background-size: 24px 24px;
      opacity: 0.14;
      pointer-events: none;
      z-index: 0;
    }

    body.ambient-tint-off {
      background: var(--bg-top);
    }

    body.ambient-tint-off::before,
    body.ambient-tint-off::after {
      display: none;
    }

    body.ambient-tint-off .smart-background::after {
      display: none;
    }

    .smart-background {
      position: fixed;
      inset: 0;
      z-index: 0;
      overflow: hidden;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.35s ease;
    }

    .smart-background.is-active {
      opacity: var(--smart-bg-opacity);
    }

    .smart-background img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      max-width: none;
      object-fit: cover;
      object-position: center top;
      transform: translate3d(0, var(--smart-bg-y), 0);
      will-change: transform;
      user-select: none;
      -webkit-user-drag: none;
    }

    .smart-background::after {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.04), transparent 28%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.14));
    }

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

    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible,
    [tabindex]:focus-visible {
      outline: 3px solid rgba(var(--gold-rgb), 0.82);
      outline-offset: 3px;
      box-shadow: 0 0 0 5px rgba(var(--gold-rgb), 0.18);
    }

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

    img.protected-media,
    .protected-media img,
    #heroImage,
    #heroVideo,
    #galleryPreviewImg,
    #galleryPreviewVideo,
    #lightboxImg,
    #lightboxVideo,
    #storyImage,
    #dressImage,
    #envelopeImage,
    #surpriseImage,
    #ceremonyImage,
    #receptionImage,
    #ceremonyPhoto,
    #receptionPhoto,
    #ceremonyVideo,
    #receptionVideo {
      -webkit-user-drag: none;
      user-select: none;
      -webkit-user-select: none;
      -webkit-touch-callout: none;
      pointer-events: auto;
    }

    .page {
      position: relative;
      z-index: 2;
      width: min(100%, var(--content-width));
      margin: 0 auto;
      padding: 0 14px 0;
    }

    .section,
    .brand-footer,
    .closing-note {
      content-visibility: auto;
      contain-intrinsic-size: 1px 520px;
    }

    #particles,
    #particlesFront {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
    }

    #particles {
      z-index: 1;
    }

    #particlesFront {
      z-index: 60;
      opacity: 1;
    }

    #heroParticles {
      position: absolute;
      inset: 0;
      z-index: 2;
      width: 100%;
      height: 100%;
      pointer-events: none;
    }

    html.particles-disabled #particles,
    html.particles-disabled #particlesFront,
    html.particles-over-sections-disabled #particlesFront,
    html.particles-disabled #heroParticles {
      display: none;
    }

    .overlay {
      position: fixed;
      inset: 0;
      z-index: 1000;
      display: block;
      padding:
        max(24px, env(safe-area-inset-top, 0px))
        max(24px, env(safe-area-inset-right, 0px))
        max(24px, env(safe-area-inset-bottom, 0px))
        max(24px, env(safe-area-inset-left, 0px));
      background:
        radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.055), transparent 22%),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.028), transparent 34%),
        linear-gradient(135deg, rgba(9, 10, 14, var(--opening-bg-a)), rgba(4, 5, 9, var(--opening-bg-strong-a)));
      transition: opacity 0.8s ease, visibility 0.8s ease;
    }

    .overlay::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(180deg, rgba(8, 9, 12, 0.26), rgba(8, 9, 12, 0.42)),
        var(--overlay-image);
      background-size: cover;
      background-position: center;
      transform: scale(1.14);
      filter: blur(40px) saturate(0.52);
      opacity: var(--opening-photo-a);
      pointer-events: none;
    }

    .overlay::after {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(180deg, rgba(255, 255, 255, var(--opening-glass-top-a)), rgba(255, 255, 255, var(--opening-glass-mid-a)) 22%, rgba(255, 255, 255, var(--opening-glass-bottom-a)) 100%),
        linear-gradient(135deg, rgba(255, 255, 255, var(--opening-glass-bottom-a)), rgba(255, 255, 255, var(--opening-glass-mid-a)) 34%, rgba(255, 255, 255, var(--opening-glass-bottom-a)) 100%);
      backdrop-filter: blur(var(--overlay-glass-blur)) saturate(var(--overlay-glass-saturate));
      -webkit-backdrop-filter: blur(var(--overlay-glass-blur)) saturate(var(--overlay-glass-saturate));
      pointer-events: none;
    }

    .overlay.hidden {
      opacity: 0;
      visibility: hidden;
    }

    .overlay.envelope-hero-reveal {
      background: transparent;
      transition: background .62s ease, opacity .5s ease .18s, visibility .5s ease .18s;
    }

    .overlay.envelope-hero-reveal::before,
    .overlay.envelope-hero-reveal::after {
      opacity: 0;
      transition: opacity .58s ease;
    }

    .overlay-card {
      position: relative;
      width: 100%;
      height: 100%;
      z-index: 1;
      text-align: center;
      overflow: visible;
      animation: overlayIn 1.1s cubic-bezier(.19,1,.22,1) both;
    }

    .overlay-scene {
      position: relative;
      width: 100%;
      height: 100%;
      transform: scale(var(--overlay-scale));
      transform-origin: center center;
      will-change: transform;
      transition: transform 0.25s ease;
    }

    .overlay-card::before {
      content: "";
      position: absolute;
      inset: 18px;
      border-radius: 30px;
      border: 1px solid rgba(var(--opening-accent-rgb), 0.1);
      box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.03),
        0 0 0 1px rgba(var(--opening-accent-rgb), 0.03);
      pointer-events: none;
    }

    .overlay-card::after {
      content: "";
      position: absolute;
      left: 50%;
      top: 17%;
      width: min(260px, 58vw);
      height: 80px;
      transform: translateX(-50%);
      background: radial-gradient(circle, rgba(var(--opening-accent-rgb), 0.2), rgba(var(--opening-accent-rgb), 0.05) 42%, transparent 72%);
      filter: blur(18px);
      opacity: 0.78;
      pointer-events: none;
    }

    .low-power .overlay::before {
      filter: blur(18px) saturate(0.8);
      opacity: 0.24;
      transform: scale(1.08);
    }

    .low-power .overlay::after {
      backdrop-filter: blur(8px) saturate(108%);
      -webkit-backdrop-filter: blur(8px) saturate(108%);
    }

    .low-power .overlay-card::before {
      opacity: 0.7;
    }

    .overlay.hidden .overlay-card {
      animation: overlayOut 0.85s cubic-bezier(.19,1,.22,1) forwards;
    }

    .overlay-kicker {
      width: fit-content;
      max-width: min(100%, calc(100vw - 48px));
      margin: 0 0 10px;
      margin-inline: auto;
      padding-top: 7vh;
      box-sizing: border-box;
      font-size: calc(0.95rem * var(--opening-kicker-size-scale, 1));
      letter-spacing: 0.35em;
      text-transform: uppercase;
      text-align: center;
      color: var(--opening-kicker);
      text-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    }

    .overlay-title {
      margin: 0 auto;
      padding: 16px clamp(24px, 7vw, 38px) 12px;
      position: relative;
      display: inline-block;
      max-width: calc(100vw - 40px);
      box-sizing: border-box;
      overflow: visible;
      font-family: var(--font-display);
      font-size: calc(clamp(3rem, 12vw, 4.8rem) * var(--opening-title-size-scale, 1));
      line-height: 1.14;
      word-spacing: 0.12em;
      letter-spacing: 0.025em;
      text-align: center;
      color: var(--opening-title);
      text-shadow: 0 8px 28px rgba(0, 0, 0, 0.34);
      background: linear-gradient(90deg, var(--opening-title), var(--opening-title-soft), var(--opening-title));
      background-size: 200% auto;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: none;
    }

    .overlay.opening .overlay-kicker,
    .overlay.opening .overlay-title,
    .overlay.opening .wax-caption {
      animation: fadeAwayLuxury 0.45s ease forwards;
    }

    .overlay-title-wrap {
      position: relative;
      display: inline-block;
      max-width: 100%;
      padding: 4px 6px;
      overflow: visible;
    }

    .overlay-title-wrap .title-glow {
      position: absolute;
      inset: 16% 10% 12%;
      background: radial-gradient(circle, rgba(var(--opening-title-rgb), 0.32), rgba(var(--opening-title-rgb), 0.12) 38%, transparent 72%);
      filter: blur(18px);
      opacity: 0.72;
      z-index: -1;
      animation: none;
    }

    .overlay-title-wrap::before,
    .overlay-title-wrap::after,
    .overlay-title::before,
    .overlay-title::after {
      content: "";
      position: absolute;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(var(--opening-title-rgb), 0.55) 45%, transparent 72%);
      box-shadow: 0 0 14px rgba(var(--opening-title-rgb), 0.4);
      opacity: 0;
      pointer-events: none;
    }

    .overlay-title-wrap::before {
      top: 12%;
      left: 6%;
      animation: none;
      opacity: 0.22;
    }

    .overlay-title-wrap::after {
      right: 8%;
      bottom: 8%;
      animation: none;
      opacity: 0.18;
    }

    .overlay-title::before {
      top: 18%;
      right: 22%;
      animation: none;
      opacity: 0.16;
    }

    .overlay-title::after {
      left: 24%;
      bottom: 10%;
      animation: none;
      opacity: 0.14;
    }

    .wax-btn {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 164px;
      height: 164px;
      margin-top: 0;
      padding: 0;
      border: 0;
      background: transparent;
      cursor: pointer;
      transform: translate(-50%, -50%);
      z-index: 2;
      filter:
        drop-shadow(0 18px 35px rgba(0, 0, 0, 0.35))
        drop-shadow(0 0 18px rgba(var(--opening-accent-rgb), 0.18));
      transition: transform 0.25s ease, filter 0.25s ease;
      animation: waxEnter 0.8s cubic-bezier(.19,1,.22,1) 0.12s both;
    }

    .opening-mode-pending .wax-btn,
    .opening-mode-pending .wax-caption {
      opacity: 0;
      animation: none;
    }

    .wax-btn img {
      position: relative;
      z-index: 2;
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
      filter:
        drop-shadow(0 20px 28px rgba(0, 0, 0, 0.24))
        drop-shadow(0 0 20px rgba(255, 255, 255, 0.06));
    }

    .wax-btn:hover {
      transform: translate(-50%, -50%) scale(1.06) rotate(-2deg);
      filter:
        drop-shadow(0 20px 38px rgba(0, 0, 0, 0.38))
        drop-shadow(0 0 24px rgba(var(--opening-accent-rgb), 0.3));
    }

    .wax-btn:active {
      transform: translate(-50%, -50%) scale(0.97);
    }

    .wax-btn::after {
      content: "";
      position: absolute;
      inset: 18% 14%;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(var(--opening-accent-rgb), 0.14), rgba(var(--opening-accent-rgb), 0.04) 34%, transparent 72%);
      filter: blur(16px);
      opacity: 0.42;
      z-index: -1;
      animation: none;
    }

    .wax-btn::before {
      content: "";
      position: absolute;
      left: 50%;
      top: 50%;
      width: 220px;
      height: 78px;
      transform: translate(-50%, -50%);
      border-radius: 999px;
      background:
        linear-gradient(90deg, transparent 0%, rgba(var(--opening-accent-rgb), 0.08) 16%, rgba(var(--opening-title-rgb), 0.42) 50%, rgba(var(--opening-accent-rgb), 0.08) 84%, transparent 100%);
      filter: blur(0.8px);
      opacity: 0.42;
      z-index: -2;
      mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.9) 35%, rgba(0,0,0,0.9) 65%, transparent 100%);
    }

    .overlay.opening .wax-btn {
      animation: waxOpenOut 0.45s ease forwards;
    }

    .wax-caption {
      position: absolute;
      left: 50%;
      top: calc(50% + 122px);
      transform: translateX(-50%);
      width: max-content;
      max-width: min(100%, calc(100vw - 48px));
      margin-top: 0;
      box-sizing: border-box;
      font-size: calc(0.88rem * var(--opening-caption-size-scale, 1));
      letter-spacing: 0.28em;
      text-transform: uppercase;
      color: var(--opening-accent);
      text-align: center;
      animation: none;
      white-space: nowrap;
    }

    .envelope-opening-scene {
      display: none;
      position: absolute;
      left: 50%;
      top: 50%;
      width: min(94vw, 450px);
      aspect-ratio: 1.44 / 1;
      transform: translate(-50%, -50%);
      perspective: 1200px;
      z-index: 1;
      pointer-events: none;
    }

    .envelope-card {
      position: relative;
      width: 100%;
      height: 100%;
      filter:
        drop-shadow(0 34px 52px rgba(0, 0, 0, 0.3))
        drop-shadow(0 0 34px rgba(var(--opening-accent-rgb), 0.18));
      transform-style: preserve-3d;
    }

    .envelope-card::before {
      content: "";
      position: absolute;
      inset: -7%;
      z-index: -1;
      border-radius: 34px;
      background:
        radial-gradient(ellipse at 50% 70%, rgba(0, 0, 0, .34), transparent 62%),
        radial-gradient(circle at 50% 46%, rgba(var(--opening-accent-rgb), .22), transparent 48%);
      filter: blur(18px);
      opacity: .72;
    }

    .envelope-back,
    .envelope-pocket,
    .envelope-side,
    .envelope-flap,
    .envelope-paper {
      position: absolute;
      inset: 0;
      border-radius: 10px;
    }

    .envelope-back {
      background:
        linear-gradient(135deg, rgba(255,255,255,.68), transparent 46%),
        linear-gradient(145deg, var(--opening-envelope-paper-soft, #fffdf8), var(--opening-envelope-paper, #f7f3ea) 54%, var(--opening-envelope-paper-deep, #ded7c8));
      box-shadow:
        inset 0 0 0 1px rgba(115, 103, 86, .08),
        0 18px 30px rgba(0, 0, 0, .14);
    }

    .envelope-back::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background: linear-gradient(180deg, rgba(255,255,255,.24), transparent 42%);
      opacity: .66;
    }

    .envelope-paper {
      left: 9%;
      right: 9%;
      top: 9%;
      bottom: 16%;
      inset: 9% 9% 16%;
      background:
        linear-gradient(180deg, rgba(255, 253, 247, .18), rgba(255, 245, 228, .08)),
        linear-gradient(180deg, #fffdf7, #fff5e4);
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      box-shadow:
        0 16px 30px rgba(54, 33, 20, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.46);
      transform: translateY(27%) scale(.95);
      opacity: .96;
      display: grid;
      place-items: center;
      align-content: center;
      gap: 6px;
      color: color-mix(in srgb, var(--opening-title) 72%, #3b2417);
      font-family: var(--font-body);
      text-align: center;
      z-index: 1;
      overflow: hidden;
    }

    .envelope-paper img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: var(--envelope-paper-fit, cover);
      object-position: center;
      opacity: 0;
      transform: scale(.985);
      transition: opacity .28s ease, transform .28s ease;
      z-index: 0;
    }

    .envelope-paper.envelope-paper--has-image img {
      opacity: 1;
      transform: scale(1);
    }

    .envelope-paper.envelope-paper--has-image {
      background: transparent;
      box-shadow: none;
      border-radius: 0;
      overflow: visible;
    }

    .envelope-paper.envelope-paper--has-image::after {
      display: none;
    }

    .envelope-paper.envelope-paper--has-image img {
      border-radius: 4px;
      filter: drop-shadow(0 16px 28px rgba(10, 8, 6, .2));
    }

    .envelope-paper.envelope-paper--has-image span,
    .envelope-paper.envelope-paper--has-image strong,
    .envelope-paper.envelope-paper--has-image small {
      opacity: 0;
    }

    .opening-mode-envelope .overlay {
      background:
        radial-gradient(circle at 50% 38%, rgba(var(--opening-accent-rgb), .18), transparent 34%),
        radial-gradient(circle at 50% 72%, rgba(255, 255, 255, .045), transparent 35%),
        linear-gradient(145deg, color-mix(in srgb, var(--opening-envelope-bg, #201b1a) 82%, #ffffff), var(--opening-envelope-bg, #201b1a) 54%, color-mix(in srgb, var(--opening-envelope-bg, #201b1a) 84%, #000000));
    }

    .opening-mode-envelope .overlay::before {
      opacity: 0;
      filter: none;
      background-image: none;
    }

    .opening-mode-envelope .overlay::after {
      background:
        radial-gradient(circle at 50% 48%, rgba(255, 255, 255, .05), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }

    .opening-mode-envelope .overlay.envelope-hero-reveal {
      background:
        radial-gradient(circle at 50% 46%, rgba(var(--opening-accent-rgb), .08), transparent 42%),
        linear-gradient(145deg, rgba(var(--opening-envelope-bg-rgb, 32, 27, 26), .48), rgba(var(--opening-envelope-bg-rgb, 32, 27, 26), .12));
      transition: background .42s ease;
    }

    .opening-mode-envelope .overlay.envelope-hero-reveal::before,
    .opening-mode-envelope .overlay.envelope-hero-reveal::after {
      opacity: 0;
    }

    .opening-mode-envelope .overlay.envelope-hero-reveal .overlay-card::before,
    .opening-mode-envelope .overlay.envelope-hero-reveal .overlay-card::after {
      opacity: 0;
      transition: opacity .42s ease;
    }

    .envelope-paper span {
      position: relative;
      width: 58px;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--opening-accent), transparent);
      opacity: .76;
      z-index: 1;
    }

    .envelope-paper strong {
      position: relative;
      font-family: var(--font-display);
      font-size: clamp(1.5rem, 6.8vw, 2.25rem);
      font-weight: 400;
      line-height: 1;
      opacity: 0;
      transform: translateY(6px);
      transition: opacity .32s ease, transform .32s ease;
      z-index: 1;
    }

    .envelope-paper small {
      position: relative;
      font-size: .68rem;
      letter-spacing: .22em;
      text-transform: uppercase;
      color: color-mix(in srgb, var(--opening-title) 58%, #5f4630);
      opacity: 0;
      transform: translateY(6px);
      transition: opacity .32s ease .08s, transform .32s ease .08s;
      z-index: 1;
    }

    .overlay.envelope-opening-active .envelope-paper strong,
    .overlay.envelope-opening-active .envelope-paper small {
      opacity: 1;
      transform: translateY(0);
    }

    .overlay.envelope-opening-active .envelope-paper.envelope-paper--has-image span,
    .overlay.envelope-opening-active .envelope-paper.envelope-paper--has-image strong,
    .overlay.envelope-opening-active .envelope-paper.envelope-paper--has-image small {
      opacity: 0;
    }

    .envelope-details {
      position: absolute;
      left: 12%;
      right: 12%;
      top: 14%;
      bottom: 10%;
      z-index: 6;
      display: block;
      color: color-mix(in srgb, var(--opening-envelope-bg, #201b1a) 78%, #000000);
      text-align: center;
      pointer-events: none;
    }

    .envelope-details span,
    .envelope-details small {
      font-family: var(--font-body);
      font-size: clamp(.58rem, 2.5vw, .72rem);
      font-weight: 700;
      letter-spacing: .22em;
      line-height: 1.1;
      text-transform: uppercase;
    }

    .envelope-details strong {
      display: block;
      max-width: 96%;
      margin: 9px auto 0;
      font-family: var(--font-display);
      font-size: clamp(1.48rem, 7.1vw, 2.52rem);
      font-weight: 400;
      line-height: .95;
      color: color-mix(in srgb, var(--opening-envelope-bg, #201b1a) 64%, #5a3521);
      text-shadow: 0 2px 9px rgba(255, 255, 255, .34);
    }

    .envelope-details::before {
      content: "";
      width: 78px;
      height: 1px;
      margin-bottom: 2px;
      background: linear-gradient(90deg, transparent, var(--opening-accent), transparent);
      opacity: .78;
    }

    .envelope-details small {
      position: absolute;
      left: 0;
      right: 0;
      bottom: -18px;
      color: color-mix(in srgb, var(--opening-envelope-bg, #201b1a) 72%, #000000);
    }

    .opening-envelope-details-off .envelope-details {
      display: none;
    }

    .opening-envelope-event-off #envelopeEventLabel,
    .opening-envelope-names-off #envelopeNames,
    .opening-envelope-date-off #envelopeDate {
      display: none;
    }

    .envelope-side {
      z-index: 3;
      border-radius: 0 0 10px 10px;
    }

    .envelope-side--left {
      clip-path: polygon(0 0, 53% 52%, 0 100%);
      background:
        linear-gradient(135deg, var(--opening-envelope-paper-soft, #fffdf8), var(--opening-envelope-paper-deep, #ded7c8));
    }

    .envelope-side--right {
      clip-path: polygon(100% 0, 47% 52%, 100% 100%);
      background:
        linear-gradient(225deg, var(--opening-envelope-paper-soft, #fffdf8), var(--opening-envelope-paper, #f7f3ea));
    }

    .envelope-pocket {
      z-index: 4;
      clip-path: polygon(0 40%, 50% 76%, 100% 40%, 100% 100%, 0 100%);
      background:
        linear-gradient(180deg, rgba(255,255,255,.42), transparent 32%),
        linear-gradient(145deg, var(--opening-envelope-paper, #f7f3ea), var(--opening-envelope-paper-deep, #ded7c8) 66%, var(--opening-envelope-paper-soft, #fffdf8));
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
    }

    .envelope-flap {
      z-index: 5;
      clip-path: polygon(0 0, 100% 0, 50% 58%);
      background:
        radial-gradient(circle at 50% 16%, rgba(255,255,255,.68), transparent 42%),
        linear-gradient(180deg, var(--opening-envelope-paper-soft, #fffdf8), var(--opening-envelope-paper-deep, #ded7c8));
      transform-origin: top center;
      box-shadow: 0 12px 18px rgba(0, 0, 0, .14), inset 0 -1px 0 rgba(115, 103, 86, .1);
    }

    html.opening-mode-envelope .overlay-card::before,
    html.opening-mode-envelope .overlay-card::after {
      display: none;
    }

    .opening-mode-envelope .overlay-kicker,
    .opening-mode-envelope .overlay-title-wrap {
      display: none;
    }

    .opening-mode-envelope .envelope-opening-scene {
      display: block;
    }

    .opening-mode-envelope .envelope-paper {
      transform: translateY(18%) scale(.94);
      opacity: 0;
    }

    .opening-mode-envelope .wax-btn {
      /* Vertice donde se cruzan solapa y bolsillo del sobre. */
      top: calc(50% + min(18.94vw, 90px));
      width: min(20vw, 82px);
      height: min(20vw, 82px);
      z-index: 7;
      animation: none;
    }

    .opening-mode-envelope .wax-btn::before {
      width: min(40vw, 148px);
      height: 46px;
      opacity: .22;
    }

    .opening-mode-envelope .wax-caption {
      top: calc(53% + min(20vw, 82px) * .86 + 102px);
      padding: 11px 20px;
      border: 1px solid rgba(var(--opening-accent-rgb), .24);
      border-radius: 999px;
      background: rgba(255, 255, 255, .055);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }

    .opening-mode-envelope .launch-status {
      display: none;
    }

    .overlay.envelope-opening-active .envelope-flap {
      animation: envelopeFlapOpen .78s cubic-bezier(.19,1,.22,1) forwards;
    }

    .overlay.envelope-opening-active .envelope-paper {
      animation: envelopePaperRise 2.08s cubic-bezier(.19,1,.22,1) .16s forwards;
    }

    .overlay.envelope-opening-active .envelope-card {
      animation: none;
    }

    .overlay.envelope-opening-active .wax-btn {
      animation: envelopeSealRelease .58s ease forwards;
    }

    .overlay.envelope-opening-active .overlay-kicker,
    .overlay.envelope-opening-active .overlay-title-wrap,
    .overlay.envelope-opening-active .envelope-details,
    .overlay.envelope-opening-active .wax-caption {
      animation: fadeAwayLuxury .58s ease .18s forwards;
    }

    html.envelope-scroll-reveal {
      --envelope-scroll-progress: 0;
      --envelope-card-y: 0px;
      --envelope-card-scale: 1;
      --envelope-piece-opacity: 1;
      --envelope-paper-y: -40%;
      --envelope-paper-scale: 1.06;
      --envelope-paper-radius: 9px;
      --envelope-paper-shadow-y: 22px;
      --envelope-paper-shadow-blur: 46px;
      --envelope-paper-shadow-alpha: .34;
      --envelope-paper-outline-alpha: .12;
      --envelope-paper-glaze-opacity: 1;
      --envelope-paper-z: 1;
    }

    .opening-mode-envelope.envelope-scroll-reveal .overlay.envelope-hero-reveal {
      pointer-events: none;
      background:
        radial-gradient(circle at 50% 38%, rgba(var(--opening-accent-rgb), .18), transparent 34%),
        radial-gradient(circle at 50% 72%, rgba(255, 255, 255, .045), transparent 35%),
        linear-gradient(145deg, color-mix(in srgb, var(--opening-envelope-bg, #201b1a) 82%, #ffffff), var(--opening-envelope-bg, #201b1a) 54%, color-mix(in srgb, var(--opening-envelope-bg, #201b1a) 84%, #000000));
    }

    .opening-mode-envelope.envelope-scroll-reveal .overlay.envelope-opening-active .envelope-card {
      transform: translateY(var(--envelope-card-y)) scale(var(--envelope-card-scale));
      transition: none;
    }

    .opening-mode-envelope.envelope-scroll-reveal .overlay.envelope-hero-reveal .envelope-card::before {
      display: none;
    }

    .opening-mode-envelope.envelope-scroll-reveal .overlay.envelope-opening-active .envelope-back,
    .opening-mode-envelope.envelope-scroll-reveal .overlay.envelope-opening-active .envelope-pocket,
    .opening-mode-envelope.envelope-scroll-reveal .overlay.envelope-opening-active .envelope-side,
    .opening-mode-envelope.envelope-scroll-reveal .overlay.envelope-opening-active .envelope-flap,
    .opening-mode-envelope.envelope-scroll-reveal .overlay.envelope-opening-active .envelope-card::before {
      opacity: var(--envelope-piece-opacity);
      transition: none;
    }

    .opening-mode-envelope.envelope-scroll-reveal .overlay.envelope-opening-active .envelope-paper {
      animation: none;
      z-index: var(--envelope-paper-z);
      border-radius: var(--envelope-paper-radius);
      opacity: 1;
      transform: translateY(var(--envelope-paper-y)) scale(var(--envelope-paper-scale));
      box-shadow:
        0 var(--envelope-paper-shadow-y) var(--envelope-paper-shadow-blur) rgba(25, 14, 10, var(--envelope-paper-shadow-alpha)),
        0 0 0 1px rgba(255, 255, 255, var(--envelope-paper-outline-alpha));
    }

    .opening-mode-envelope.envelope-scroll-reveal .overlay.envelope-opening-active .envelope-paper::after {
      opacity: var(--envelope-paper-glaze-opacity);
    }

    .opening-mode-envelope.envelope-scroll-reveal:not(.envelope-scroll-complete) .hero {
      opacity: 0;
      pointer-events: none;
    }

    .opening-mode-envelope.envelope-scroll-reveal .hero {
      transform: translateX(-50%) scale(var(--envelope-hero-scale, .91));
      filter: brightness(var(--envelope-hero-brightness, .88)) saturate(1.02);
    }

    .hero {
      position: relative;
      width: 100vw;
      margin-left: 50%;
      transform: translateX(-50%);
      --apple-hero-media-scale: 1.03;
      --apple-hero-media-y: 0px;
      --apple-hero-media-opacity: 1;
      --apple-hero-media-blur: 0px;
      --apple-hero-media-mask-start: 100%;
      --apple-hero-media-mask-end: 112%;
      --apple-hero-content-scale: 1;
      --apple-hero-content-y: 0px;
      --apple-hero-content-opacity: 1;
      --apple-hero-content-blur: 0px;
      --apple-hero-overlay-opacity: 1;
      --apple-hero-light-opacity: 0;
      --apple-hero-light-scale: 1;
      --apple-hero-light-y: 0px;
      min-height: 100vh;
      min-height: 100svh;
      min-height: 100dvh;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      padding: 30px 18px 54px;
      border-radius: 0;
      overflow: hidden;
    }

    html.envelope-hero-landing .hero {
      animation: envelopeHeroLanding .76s cubic-bezier(.19,1,.22,1) both;
    }

    html.envelope-hero-landing .hero::before {
      animation: envelopeHeroPulse .86s ease-out both;
    }

    .hero img,
    .hero video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      will-change: transform;
      transform: scale(1.03);
      animation: heroDrift 24s ease-in-out infinite alternate;
    }

	    html.apple-hero-scroll .hero img,
	    html.apple-hero-scroll .hero video {
	      animation: none;
	      opacity: var(--apple-hero-media-opacity);
	      transform: translate3d(0, var(--apple-hero-media-y), 0) scale(var(--apple-hero-media-scale));
	      transform-origin: center;
	      filter: blur(var(--apple-hero-media-blur));
      -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 var(--apple-hero-media-mask-start), transparent var(--apple-hero-media-mask-end));
      mask-image: linear-gradient(to bottom, #000 0%, #000 var(--apple-hero-media-mask-start), transparent var(--apple-hero-media-mask-end));
	      -webkit-mask-size: 100% 100%;
	      mask-size: 100% 100%;
	      backface-visibility: hidden;
	      will-change: transform, opacity, filter, -webkit-mask-image, mask-image;
	    }

    .low-power .hero img,
    .low-power .hero video {
      animation: none;
    }

    .hero::before {
      content: "";
      position: absolute;
      inset: -18% -24%;
      z-index: 2;
      pointer-events: none;
      background:
        radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.46) 20%, transparent 52%),
        radial-gradient(circle at 50% 72%, rgba(255, 246, 222, 0.44) 0%, transparent 44%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent 58%);
      opacity: 0;
      transform: translate3d(0, 0, 0) scale(1);
      mix-blend-mode: screen;
      filter: blur(20px) saturate(1.12);
      will-change: transform, opacity;
    }

    html.apple-hero-scroll .hero::before {
      opacity: var(--apple-hero-light-opacity);
      transform: translate3d(0, var(--apple-hero-light-y), 0) scale(var(--apple-hero-light-scale));
    }

    .hero::after {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.18) 24%, rgba(0, 0, 0, 0.04) 42%, rgba(0, 0, 0, 0) 58%);
      opacity: var(--apple-hero-overlay-opacity);
      z-index: 1;
    }

    .hero-content {
      position: relative;
      z-index: 4;
      width: 100%;
      max-width: 720px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 0 10px 16px;
      overflow: visible;
      top: var(--hero-group-offset-y, 0px);
      opacity: var(--apple-hero-content-opacity);
	      transform: translate3d(0, var(--apple-hero-content-y), 0) scale(var(--apple-hero-content-scale));
	      transform-origin: center bottom;
	      filter: blur(var(--apple-hero-content-blur));
	      will-change: transform, opacity, filter;
	    }

    .hero-label {
      position: relative;
      top: var(--hero-label-offset-y, 0px);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      align-self: center;
      gap: 12px;
      max-width: min(100%, calc(100vw - 28px));
      margin-bottom: 10px;
      padding: 0;
      box-sizing: border-box;
      font-size: calc(0.84rem * var(--hero-label-size-scale, 1));
      letter-spacing: 0.34em;
      text-transform: uppercase;
      text-align: center;
      white-space: nowrap;
      color: var(--hero-label-color);
      text-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
      opacity: 0;
      transform: translateY(16px);
    }

    .hero-label::before,
    .hero-label::after {
      content: "";
      width: 28px;
      min-width: 10px;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.44), transparent);
      flex: 0 1 28px;
    }

    .hero-label.animate {
      animation: fadeRise 1.2s ease forwards;
    }

    .hero-name {
      width: 100%;
      max-width: min(100%, calc(100vw - 20px));
      margin: 0 auto;
      display: block;
      padding: 0 8px 14px;
      box-sizing: border-box;
      font-family: var(--font-display);
      font-size: calc(clamp(3.75rem, 11.2vw, 6rem) * var(--hero-name-size-scale, 1));
      font-weight: 400;
      line-height: 1.1;
      white-space: nowrap;
      letter-spacing: 0.025em;
      word-spacing: 0.12em;
      color: var(--hero-name-color);
      text-shadow:
        0 0 16px rgba(var(--gold-soft-rgb), 0.16),
        0 2px 8px rgba(0, 0, 0, 0.16),
        0 12px 28px rgba(0, 0, 0, 0.2);
      opacity: 0;
      transform: translateY(22px) scale(0.96);
      filter: blur(10px);
      position: relative;
      top: var(--hero-name-offset-y, 0px);
      text-align: center;
    }

    .hero-name::before {
      content: "";
      position: absolute;
      left: 50%;
      top: 54%;
      width: 72%;
      height: 44%;
      transform: translate(-50%, -50%);
      background: radial-gradient(circle, rgba(var(--gold-rgb), 0.28), transparent 72%);
      filter: blur(18px);
      opacity: 0;
      z-index: -1;
    }

    .hero-name.animate {
      animation:
        revealName 2.4s cubic-bezier(.2, .9, .2, 1) forwards,
        nameBreath 6.5s ease-in-out 2.6s infinite;
    }

    .hero-name.animate::before {
      animation:
        heroGlowIn 1.8s ease 0.6s forwards,
        heroGlowPulse 4.8s ease-in-out 2.6s infinite;
    }

    .hero-name::after {
      content: "";
      position: absolute;
      inset: -8% -18%;
      background: linear-gradient(110deg, transparent 42%, rgba(255, 255, 255, 0.8) 50%, transparent 58%);
      mix-blend-mode: screen;
      transform: translateX(-140%) skewX(-12deg);
      opacity: 0;
      pointer-events: none;
    }

    .hero-name.animate::after {
      animation: nameShine 2.6s ease 1.35s forwards;
    }

    .hero-name.name-double {
      width: min(100%, 430px);
      white-space: normal;
      font-size: calc(clamp(2.8rem, 9vw, 5.1rem) * var(--hero-name-size-scale, 1));
      line-height: 1.06;
    }

    .hero-name.name-double.name-wedding {
      line-height: 1.18;
    }

    .hero-name.name-double.name-long {
      font-size: calc(clamp(2.55rem, 8.2vw, 4.55rem) * var(--hero-name-size-scale, 1));
    }

    .hero-name.name-double.name-very-long {
      font-size: calc(clamp(2.16rem, 7vw, 3.7rem) * var(--hero-name-size-scale, 1));
    }

    .hero-name.name-double.name-inline {
      width: fit-content;
      max-width: min(100%, 680px);
      white-space: nowrap;
      text-align: center;
      margin-left: auto;
      margin-right: auto;
      padding-left: 0;
      padding-right: 0;
      font-size: calc(clamp(3.25rem, 10.8vw, 5.7rem) * var(--hero-name-size-scale, 1));
      line-height: 1.08;
      letter-spacing: 0.01em;
      word-spacing: 0.08em;
    }

    .overlay-title.name-double {
      width: min(calc(100vw - 42px), 390px);
      padding-inline: 6px;
      white-space: normal;
      font-size: calc(clamp(2.35rem, 9.3vw, 3.72rem) * var(--opening-title-size-scale, 1));
      line-height: 0.98;
      letter-spacing: 0.01em;
      word-spacing: 0.06em;
    }

    .overlay-title.name-double.name-wedding {
      line-height: 1.16;
    }

    .overlay-title.name-double.name-long {
      font-size: calc(clamp(2.06rem, 8.3vw, 3.15rem) * var(--opening-title-size-scale, 1));
    }

    .overlay-title.name-double.name-very-long {
      font-size: calc(clamp(1.68rem, 7.1vw, 2.58rem) * var(--opening-title-size-scale, 1));
    }

    .overlay-title.name-double.name-inline {
      width: fit-content;
      max-width: min(calc(100vw - 42px), 620px);
      white-space: nowrap;
      text-align: center;
      margin-left: auto;
      margin-right: auto;
      font-size: calc(clamp(2.9rem, 11vw, 4.55rem) * var(--opening-title-size-scale, 1));
      line-height: 1.08;
      letter-spacing: 0.01em;
      word-spacing: 0.08em;
    }

    .name-duo {
      display: inline-grid;
      justify-items: center;
      gap: 0.02em;
      width: min(100%, 420px);
      white-space: normal;
      text-align: center;
    }

    .name-duo--inline {
      display: inline-flex;
      align-items: baseline;
      justify-content: center;
      gap: 0.18em;
      width: auto;
      max-width: 100%;
      white-space: nowrap;
      line-height: 1;
    }

    .name-duo__item {
      display: block;
      max-width: 100%;
      white-space: nowrap;
      overflow-wrap: normal;
      text-wrap: nowrap;
    }

    .name-duo__separator {
      display: inline-grid;
      place-items: center;
      min-width: 1.8em;
      margin: -0.1em 0 -0.06em;
      font-family: var(--font-body);
      font-size: 0.22em;
      font-weight: 700;
      line-height: 1;
      letter-spacing: 0.14em;
      color: var(--hero-date-color);
      opacity: 0.92;
      text-transform: uppercase;
    }

    .name-duo--wedding {
      display: grid;
      grid-template-columns: 1fr;
      gap: 0.22em;
      justify-items: center;
      line-height: 1.12;
    }

    .name-duo--wedding .name-duo__item {
      width: 100%;
      text-align: center;
    }

    .name-duo--wedding .name-duo__separator {
      position: relative;
      min-width: 1em;
      margin: 0.03em 0 0.01em;
      font-family: var(--font-script);
      font-size: 0.42em;
      font-weight: 400;
      letter-spacing: 0;
      line-height: 0.9;
      color: var(--hero-name-separator-color);
      text-shadow: 0 0 10px rgba(var(--gold-rgb), 0.32), 0 3px 12px rgba(0, 0, 0, 0.16);
      text-transform: none;
    }

    .name-duo--inline .name-duo__separator {
      min-width: auto;
      margin: 0;
      font-size: 0.34em;
      line-height: 1;
      transform: translateY(-0.08em);
    }

    .name-duo--inline.name-duo--wedding {
      display: inline-flex;
      grid-template-columns: none;
      gap: 0.18em;
      line-height: 1;
    }

    .name-duo--inline.name-duo--wedding .name-duo__item {
      width: auto;
    }

    .name-duo--inline.name-duo--wedding .name-duo__separator {
      font-size: 0.38em;
      margin: 0;
      transform: translateY(-0.1em);
    }

    .name-duo--inline.name-duo--wedding .name-duo__separator::before,
    .name-duo--inline.name-duo--wedding .name-duo__separator::after {
      display: none;
    }

    .name-duo--wedding .name-duo__separator::before,
    .name-duo--wedding .name-duo__separator::after {
      content: "";
      position: absolute;
      top: 50%;
      width: 0.9em;
      height: 1px;
      background: linear-gradient(90deg, transparent, currentColor, transparent);
      opacity: 0.58;
    }

    .name-duo--wedding .name-duo__separator::before {
      right: calc(100% + 0.28em);
    }

    .name-duo--wedding .name-duo__separator::after {
      left: calc(100% + 0.28em);
    }

    .overlay-title .name-duo {
      width: min(100%, 340px);
      gap: 0.01em;
    }

    .overlay-title .name-duo__separator {
      min-width: 1.72em;
      margin: -0.08em 0 -0.03em;
      font-size: 0.28em;
      color: var(--opening-name-separator-color);
    }

    .overlay-title .name-duo--wedding {
      gap: 0.2em;
    }

    .overlay-title .name-duo--wedding .name-duo__separator {
      min-width: 1em;
      margin: 0.03em 0 0.01em;
      font-size: 0.44em;
      color: var(--opening-name-separator-color);
    }

    .overlay-title .name-duo--inline,
    .overlay-title .name-duo--inline.name-duo--wedding {
      display: inline-flex;
      width: auto;
      max-width: 100%;
      gap: 0.16em;
      line-height: 1;
      white-space: nowrap;
    }

    .overlay-title .name-duo--inline .name-duo__separator,
    .overlay-title .name-duo--inline.name-duo--wedding .name-duo__separator {
      min-width: auto;
      margin: 0;
      font-size: 0.36em;
      transform: translateY(-0.1em);
    }

    @keyframes revealName {
      0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
        filter: blur(12px);
      }
      55% {
        opacity: 1;
        transform: translateY(-3px) scale(1.015);
        filter: blur(0);
      }
      100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
      }
    }

    @keyframes nameBreath {
      0%, 100% { transform: translateY(0) scale(1); }
      50% { transform: translateY(-2px) scale(1.01); }
    }

    @keyframes nameShine {
      0% {
        transform: translateX(-140%) skewX(-12deg);
        opacity: 0;
      }
      18% {
        opacity: 0.9;
      }
      100% {
        transform: translateX(140%) skewX(-12deg);
        opacity: 0;
      }
    }

    @keyframes heroGlowIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    @keyframes heroGlowPulse {
      0%, 100% {
        opacity: 0.72;
        transform: translate(-50%, -50%) scale(1);
      }
      50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.06);
      }
    }

    .hero-date {
      position: relative;
      top: var(--hero-date-offset-y, 0px);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      align-self: center;
      gap: 12px;
      max-width: min(100%, calc(100vw - 28px));
      margin-top: 8px;
      padding: 0;
      box-sizing: border-box;
      color: var(--hero-date-color);
      font-size: calc(0.86rem * var(--hero-date-size-scale, 1));
      letter-spacing: 0.28em;
      text-transform: uppercase;
      text-align: center;
      white-space: nowrap;
      text-shadow: 0 7px 18px rgba(0, 0, 0, 0.28);
      opacity: 0;
      transform: translateY(18px);
    }

    .hero-date.animate {
      animation: fadeRise 1.1s ease 0.5s forwards;
    }

    .hero-date::before,
    .hero-date::after {
      content: "";
      width: 36px;
      min-width: 10px;
      height: 1px;
      flex: 0 1 36px;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    }

    .section {
      margin-top: 18px;
      padding: 30px 22px 26px;
      border-radius: var(--radius-xl);
      background:
        linear-gradient(180deg, var(--section-fill-top), var(--section-fill-bottom));
      border: 1px solid var(--line);
      backdrop-filter: blur(var(--section-blur));
      -webkit-backdrop-filter: blur(var(--section-blur));
      box-shadow: var(--shadow);
      text-align: center;
      font-family: var(--section-text-font, var(--font-body));
      opacity: 0;
      transform: translateY(46px) scale(0.97);
      filter: blur(10px);
      transition: opacity 0.9s cubic-bezier(.19,1,.22,1), transform 0.9s cubic-bezier(.19,1,.22,1), box-shadow 0.35s ease, border-color 0.35s ease, filter 0.9s ease;
    }

    .low-power .section {
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
    }

    .mobile-optimized {
      --overlay-glass-saturate: 112%;
    }

    .mobile-optimized .overlay::before {
      filter: blur(10px) saturate(0.76);
      opacity: var(--opening-photo-a);
      transform: scale(1.03);
    }

    .mobile-optimized .overlay::after {
      backdrop-filter: blur(var(--overlay-glass-blur)) saturate(var(--overlay-glass-saturate));
      -webkit-backdrop-filter: blur(var(--overlay-glass-blur)) saturate(var(--overlay-glass-saturate));
      background:
        linear-gradient(180deg, rgba(255, 255, 255, var(--opening-glass-top-a)), rgba(255, 255, 255, var(--opening-glass-mid-a)) 22%, rgba(255, 255, 255, var(--opening-glass-bottom-a)) 100%),
        linear-gradient(135deg, rgba(255, 255, 255, var(--opening-glass-bottom-a)), rgba(255, 255, 255, var(--opening-glass-mid-a)) 34%, rgba(255, 255, 255, var(--opening-glass-bottom-a)) 100%);
    }

    .mobile-optimized .overlay-card::after {
      filter: blur(6px);
      opacity: 0.42;
    }

    .mobile-optimized .overlay-card::before {
      inset: 20px;
      border-color: rgba(var(--gold-soft-rgb), 0.08);
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    }

    .mobile-optimized .overlay-scene {
      transition: none;
      will-change: auto;
    }

    .mobile-optimized .overlay-title-wrap .title-glow {
      filter: blur(10px);
      opacity: 0.58;
    }

    .mobile-optimized .wax-btn {
      filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.24));
      transition: none;
    }

    .mobile-optimized .wax-btn img {
      filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.18));
    }

    .mobile-optimized .wax-btn::after,
    .mobile-optimized .wax-btn::before {
      display: none;
    }

    .mobile-optimized .section {
      backdrop-filter: blur(var(--section-blur));
      -webkit-backdrop-filter: blur(var(--section-blur));
      background: linear-gradient(180deg, var(--section-fill-top), var(--section-fill-bottom));
      box-shadow: 0 16px 28px rgba(0, 0, 0, 0.2);
      transition: opacity 0.55s cubic-bezier(.19,1,.22,1), transform 0.55s cubic-bezier(.19,1,.22,1);
      filter: none;
    }

    .mobile-optimized .section.show {
      animation: none;
      filter: none;
    }

    .mobile-optimized .section,
    .mobile-optimized .section .featured-photo,
    .mobile-optimized .section .script-block,
    .mobile-optimized .section .parents-grid,
    .mobile-optimized .section .godparents-list,
    .mobile-optimized .section .event-card,
    .mobile-optimized .section .timeline,
    .mobile-optimized .section .gallery-showcase,
    .mobile-optimized .section .gallery,
    .mobile-optimized .section .rsvp-card,
    .mobile-optimized .section .utilities {
      will-change: auto;
    }

    .mobile-optimized .separator::after,
    .mobile-optimized .separator::before {
      display: none;
    }

    .mobile-optimized .timeline-item::before,
    .mobile-optimized .brand-copy::before {
      animation: none;
    }

    .mobile-optimized .count-box.tick {
      animation-duration: 0.24s;
    }


    .section.show {
      opacity: 1;
      transform: translateY(0) scale(1);
      filter: blur(0);
      animation: sectionGlow 1.15s ease both;
    }

    .section h2 {
      margin: 0 0 12px;
      font-family: var(--section-heading-font, inherit);
      font-size: 2.02rem;
      font-weight: 600;
      color: var(--section-title);
      opacity: 0;
      transform: translateY(14px);
      transition: opacity 0.75s ease 0.12s, transform 0.75s ease 0.12s;
    }

    .section p {
      margin: 0;
      font-family: var(--section-text-font, inherit);
      font-size: 1.12rem;
      line-height: 1.62;
      color: var(--text);
      opacity: 0;
      transform: translateY(16px);
      transition: opacity 0.75s ease 0.2s, transform 0.75s ease 0.2s;
    }

    .section p + p {
      margin-top: 14px;
    }

    .section.show h2,
    .section.show p {
      opacity: 1;
      transform: translateY(0);
    }

    .section .featured-photo,
    .section .script-block,
    .section .parents-grid,
    .section .godparents-list,
    .section .event-card,
    .section .timeline,
    .section .gallery-showcase,
    .section .gallery,
    .section .rsvp-card,
    .section .utilities {
      opacity: 0;
      transform: translateY(18px);
      transition: opacity 0.85s ease 0.28s, transform 0.85s ease 0.28s;
    }

    .section.show .featured-photo,
    .section.show .script-block,
    .section.show .parents-grid,
    .section.show .godparents-list,
    .section.show .event-card,
    .section.show .timeline,
    .section.show .gallery-showcase,
    .section.show .gallery,
    .section.show .rsvp-card,
    .section.show .utilities {
      opacity: 1;
      transform: translateY(0);
    }

    .story-text {
      min-height: 3.3em;
    }

    .story-text.is-typing::after {
      content: "";
      display: inline-block;
      width: 1px;
      height: 0.95em;
      margin-left: 4px;
      vertical-align: -0.08em;
      background: rgba(var(--section-title-rgb), 0.88);
      animation: storyCaret 0.9s steps(1) infinite;
    }

    .separator {
      width: min(var(--separator-line-width, 138px), 100%);
      min-height: 18px;
      height: 18px;
      margin: 20px auto 8px;
      border-radius: 999px;
      background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(var(--timeline-rgb), 0.34) 14%,
        rgba(var(--timeline-rgb), 0.98) 50%,
        rgba(var(--timeline-rgb), 0.34) 86%,
        transparent 100%
      ) center / 100% 2px no-repeat;
      box-shadow: none;
      position: relative;
      overflow: hidden;
      opacity: 0.98;
      flex: 0 0 auto;
    }

    .separator::before {
      content: none;
      display: none;
    }

    .separator::after {
      content: none;
      display: none;
    }

    .featured-photo,
    .dresscode-figure,
    .gift-figure {
      margin: 18px auto 0;
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
    }

    .featured-photo img {
      width: 100%;
      height: auto;
      object-fit: contain;
      border-radius: 22px;
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
      transition: transform 0.18s ease-out, filter 0.6s ease;
    }

    .story-section .featured-photo {
      width: min(var(--story-image-width, 100%), calc(100vw - 36px));
      max-width: none;
    }

    .section.show .featured-photo img {
      transform: scale(1.03);
      filter: saturate(1.05);
    }

    .story-section .featured-photo + .story-text {
      margin-top: 22px;
    }

    .story-section.story-no-image .featured-photo {
      display: none;
    }

    .story-section.story-no-image .story-text:first-of-type {
      margin-top: 4px;
    }

    .custom-section-text {
      white-space: pre-line;
    }

    .custom-section-media {
      display: grid;
      gap: 12px;
      margin-top: 20px;
      opacity: 0;
      transform: translateY(18px);
      transition: opacity .8s ease .28s, transform .8s ease .28s;
    }

    .section.show .custom-section-media {
      opacity: 1;
      transform: translateY(0);
    }

    .custom-section-media--stack {
      grid-template-columns: minmax(0, 1fr);
    }

    .custom-section-media--grid,
    .custom-section-media--featured {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .custom-section-media--featured img:first-child {
      grid-column: 1 / -1;
      aspect-ratio: 16 / 10;
    }

    .custom-section-media img {
      display: block;
      width: 100%;
      height: auto;
      max-height: 520px;
      object-fit: contain;
      border-radius: 18px;
      box-shadow: 0 16px 34px rgba(0, 0, 0, .2);
    }

    .custom-section-media--grid img,
    .custom-section-media--featured img:not(:first-child) {
      height: 100%;
      min-height: 150px;
      max-height: 280px;
      object-fit: contain;
      background: rgba(0, 0, 0, .06);
    }

    .custom-section-media img:only-child {
      grid-column: 1 / -1;
    }

    .script-block {
      font-family: var(--font-script);
      font-size: 2.3rem;
      font-weight: 600;
      line-height: 1.12;
      letter-spacing: 0.01em;
      color: var(--script-color);
      text-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
    }

    .parents-grid,
    .godparents-list {
      width: min(100%, 440px);
      margin: 12px auto 0;
      display: grid;
      gap: 14px;
    }

    .parents-grid[hidden],
    .godparents-list[hidden],
    .grandparents-block[hidden] {
      display: none !important;
    }

    .parents-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      column-gap: 30px;
      align-items: start;
    }

    .family-group,
    .godparent-item {
      display: grid;
      gap: 10px;
      justify-items: center;
      min-width: 0;
      padding: 4px 2px;
    }

    .family-group + .family-group {
      position: relative;
    }

    .family-group + .family-group::before {
      content: "";
      position: absolute;
      left: -15px;
      top: 8%;
      bottom: 8%;
      width: 1px;
      background: linear-gradient(180deg, transparent, rgba(var(--timeline-rgb), .52), transparent);
    }

    .family-label,
    .godparent-role {
      font-size: .72rem;
      font-weight: 700;
      letter-spacing: .2em;
      text-transform: uppercase;
      color: var(--section-title);
    }

    .family-names,
    .godparent-names {
      font-family: var(--font-script);
      font-size: 2rem;
      font-weight: 600;
      line-height: 1.1;
      color: var(--script-color);
      overflow-wrap: anywhere;
    }

    .godparent-note {
      display: block;
      margin-top: -2px;
      font-size: calc(0.74rem * var(--godparent-note-scale, 1));
      font-weight: 600;
      line-height: 1.35;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--godparent-note-color, var(--timeline-color));
      opacity: 0.92;
    }

    .godparent-item--note-above .godparent-note {
      margin-top: 0;
      margin-bottom: -2px;
    }

    .godparents-list {
      gap: 12px;
    }

    .godparent-item {
      padding: 4px 0;
    }

    .grandparents-block {
      width: min(100%, 360px);
      margin: 12px auto 0;
      display: grid;
      gap: 6px;
      justify-items: center;
    }

    .grandparents-eyebrow {
      display: inline-block;
      font-size: .76rem;
      font-weight: 700;
      line-height: 1.35;
      letter-spacing: .12em;
      text-transform: none;
      color: var(--timeline-color);
    }

    .grandparents-block .family-names {
      font-size: 1.55rem;
      line-height: 1.08;
    }

    .eyebrow {
      display: inline-block;
      margin-bottom: 10px;
      font-size: 0.78rem;
      letter-spacing: 0.28em;
      text-transform: uppercase;
      color: var(--section-title);
    }

    .event-card {
      display: grid;
      gap: 12px;
      text-align: center;
      justify-items: center;
    }

    .event-media-stack {
      width: 100%;
      display: grid;
      gap: 12px;
      justify-items: center;
    }

    .event-media-stack[hidden] {
      display: none !important;
    }

    .event-time {
      font-size: 1rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--location-time-color, var(--section-title));
    }

    .event-place {
      font-size: 1.42rem;
      font-weight: 600;
      color: var(--location-place-color, var(--text));
    }

    .event-place-group {
      display: grid;
      gap: 3px;
      justify-items: center;
    }

    .event-place-detail {
      max-width: 330px;
      font-size: .94rem;
      font-weight: 500;
      line-height: 1.25;
      letter-spacing: .06em;
      color: var(--location-time-color, var(--section-title));
      overflow-wrap: anywhere;
    }

    .event-place-detail[hidden] {
      display: none !important;
    }

    .map {
      width: 100%;
      max-width: 360px;
      overflow: hidden;
      border-radius: 20px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    }

    .map iframe {
      display: block;
      width: 100%;
      height: 210px;
      border: 0;
    }

    .event-place-photo,
    .event-place-video {
      width: 100%;
      max-width: 360px;
      overflow: hidden;
      border-radius: 20px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    }

    .event-place-photo img,
    .event-place-video video {
      display: block;
      width: 100%;
      height: auto;
      object-fit: cover;
    }

    .event-place-video video {
      aspect-ratio: 16 / 10;
      background: rgba(0, 0, 0, 0.18);
    }

    .btn,
    .rsvp-buttons button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      min-height: 50px;
      padding: 0 18px;
      border-radius: 999px;
      border: 1px solid rgba(var(--button-bg-rgb), 0.55);
      background:
        linear-gradient(135deg, rgba(var(--button-bg-rgb), 0.88), rgba(var(--button-bg-rgb), 0.64)),
        var(--button-bg);
      color: var(--button-text);
      text-decoration: none;
      font-size: 0.95rem;
      font-weight: 600;
      letter-spacing: 0.05em;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 12px 24px rgba(var(--button-bg-rgb), 0.16);
      position: relative;
      overflow: hidden;
    }

    .btn::after,
    .rsvp-buttons button::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
      transform: translateX(-140%);
      transition: transform 0.7s ease;
    }

    .btn:hover,
    .rsvp-buttons button:hover {
      transform: translateY(-2px);
      border-color: rgba(var(--gold-rgb), 0.6);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 16px 30px rgba(var(--button-bg-rgb), 0.2);
    }

    .btn:hover::after,
    .rsvp-buttons button:hover::after {
      transform: translateX(140%);
    }

    .btn.btn-secondary,
    .rsvp-buttons button.btn-secondary {
      background:
        linear-gradient(135deg, rgba(var(--button-bg-rgb), 0.38), rgba(var(--button-bg-rgb), 0.18)),
        rgba(var(--button-bg-rgb), 0.18);
      color: var(--field-text);
      border-color: rgba(var(--button-bg-rgb), 0.42);
    }

    .timeline {
      position: relative;
      margin-top: 18px;
      padding-left: 34px;
      text-align: left;
      font-family: var(--timeline-font, var(--font-body));
      --timeline-image-size: calc(74px * var(--timeline-image-scale, 1));
    }

    .timeline--with-images {
      padding-left: calc(var(--timeline-image-size) + 30px);
    }

    .timeline::before {
      content: "";
      position: absolute;
      left: 9px;
      top: 4px;
      bottom: 4px;
      width: 2px;
      background: linear-gradient(180deg, transparent, var(--timeline-color), var(--timeline-color), transparent);
      box-shadow: 0 0 14px rgba(var(--timeline-rgb), 0.28);
      transform: scaleY(0);
      transform-origin: top;
    }

    .timeline--with-images::before {
      left: 38px;
      width: 3px;
      border-radius: 999px;
      background:
        linear-gradient(180deg, transparent, rgba(var(--timeline-rgb), 0.18), rgba(var(--timeline-rgb), 0.9), rgba(var(--timeline-rgb), 0.18), transparent);
      box-shadow:
        0 0 16px rgba(var(--timeline-rgb), 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    }

    .section.show .timeline::before {
      animation: timelineDraw 1.3s cubic-bezier(.19,1,.22,1) 0.2s forwards;
    }

    .timeline-item {
      position: relative;
      padding-bottom: 22px;
      opacity: 0;
      transform: translateY(22px);
      transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .timeline--with-images .timeline-item {
      min-height: 78px;
      padding-bottom: 26px;
    }

    .timeline-item:last-child {
      padding-bottom: 0;
    }

    .timeline-item.show {
      opacity: 1;
      transform: translateY(0);
    }

    .timeline-item::before {
      content: "";
      position: absolute;
      left: -30px;
      top: 6px;
      width: 14px;
      height: 14px;
      border-radius: 50%;
      border: 1px solid rgba(var(--timeline-rgb), 0.88);
      background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.72) 0 10%, var(--timeline-color) 42% 100%);
      box-shadow: 0 0 0 3px rgba(var(--timeline-rgb), 0.08), 0 0 12px rgba(var(--timeline-rgb), 0.28);
      animation: dotPulse 3s ease-in-out infinite;
    }

    .timeline--with-images .timeline-item::before {
      left: -76px;
      top: 30px;
      width: 10px;
      height: 10px;
      border-width: 1px;
      background: var(--timeline-color);
      box-shadow: 0 0 0 4px rgba(var(--timeline-rgb), 0.08), 0 0 12px rgba(var(--timeline-rgb), 0.28);
    }

    .timeline-item--image::before {
      display: none;
    }

    .timeline-image {
      position: absolute;
      left: calc((var(--timeline-image-size) + 30px) * -1);
      top: -8px;
      width: var(--timeline-image-size);
      height: var(--timeline-image-size);
      padding: 6px;
      border-radius: 50%;
      background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.44) 34%, rgba(var(--timeline-rgb), 0.08) 72%) padding-box,
        conic-gradient(from 142deg, rgba(255,255,255,.98), rgba(var(--timeline-rgb), .64), rgba(255,255,255,.54), rgba(var(--timeline-rgb), .34), rgba(255,255,255,.98)) border-box;
      border: 2px solid transparent;
      box-shadow:
        0 16px 28px rgba(0, 0, 0, 0.16),
        0 0 0 6px rgba(var(--timeline-rgb), 0.055),
        0 0 26px rgba(var(--timeline-rgb), 0.14),
        inset 0 0 0 1px rgba(255, 255, 255, 0.42);
      isolation: isolate;
      transform: scale(0.92);
      opacity: 0;
      transition: opacity 0.75s ease, transform 0.75s cubic-bezier(.19,1,.22,1);
    }

    .timeline-item.show .timeline-image {
      opacity: 1;
      transform: scale(1);
    }

    .timeline-image::before {
      content: "";
      position: absolute;
      inset: 10px;
      z-index: 1;
      border-radius: inherit;
      border: 1px solid rgba(255, 255, 255, 0.38);
      box-shadow: inset 0 0 0 1px rgba(var(--timeline-rgb), 0.1);
      pointer-events: none;
    }

    .timeline-image::after {
      content: "";
      position: absolute;
      inset: 6px;
      z-index: 2;
      border-radius: inherit;
      background:
        linear-gradient(138deg, rgba(255,255,255,.56), transparent 36%),
        radial-gradient(circle at 72% 82%, rgba(var(--timeline-rgb), .16), transparent 38%);
      pointer-events: none;
    }

    .timeline-image img {
      display: block;
      position: relative;
      z-index: 0;
      width: 100%;
      height: 100%;
      border-radius: inherit;
      object-fit: contain;
    }

    .timeline-day-separator {
      padding-top: 8px;
      padding-bottom: 24px;
    }

    .timeline-day-separator::before {
      left: -32px;
      top: 18px;
      width: 18px;
      height: 2px;
      border: 0;
      border-radius: 999px;
      background: var(--timeline-color);
      box-shadow: 0 0 12px rgba(var(--timeline-rgb), .34);
      animation: none;
    }

    .timeline--with-images .timeline-day-separator::before {
      left: -76px;
      top: 18px;
      width: 48px;
    }

    .timeline-day-label {
      display: flex;
      align-items: center;
      gap: 12px;
      color: var(--timeline-time-color, var(--section-title));
      font-family: var(--timeline-font, var(--font-body));
      font-size: .76rem;
      font-weight: 700;
      letter-spacing: .12em;
      line-height: 1.3;
      text-transform: uppercase;
    }

    .timeline-day-label::after {
      content: "";
      height: 1px;
      flex: 1;
      background: linear-gradient(90deg, rgba(var(--timeline-rgb), .48), transparent);
    }

    @keyframes timelineDraw {
      from { transform: scaleY(0); }
      to { transform: scaleY(1); }
    }

    .timeline-time {
      font-size: 0.8rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--timeline-time-color, var(--section-title));
    }

    .timeline-title {
      margin-top: 5px;
      font-size: 1.12rem;
      font-weight: 600;
      color: var(--timeline-title-color, var(--text));
    }

    .timeline-desc {
      margin-top: 4px;
      font-size: 0.96rem;
      color: var(--timeline-desc-color, var(--muted));
    }

    .timeline-note {
      position: relative;
      display: inline-block;
      max-width: 100%;
      margin-top: 8px;
      padding: 6px 0 0 18px;
      color: var(--timeline-title-color, var(--text));
      color: color-mix(in srgb, var(--timeline-title-color, var(--text)) 86%, var(--timeline-color));
      font-family: var(--timeline-font, var(--font-body));
      font-size: 0.78rem;
      font-weight: 700;
      font-style: normal;
      line-height: 1.38;
      text-wrap: balance;
      text-shadow: 0 1px 10px rgba(var(--timeline-rgb), 0.1);
    }

    .timeline-note::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0.95em;
      width: 10px;
      height: 1px;
      border-radius: 999px;
      background: linear-gradient(90deg, var(--timeline-color), rgba(var(--timeline-rgb), 0.18));
      box-shadow: 0 0 10px rgba(var(--timeline-rgb), 0.28);
    }

    .timeline-note::after {
      content: "";
      position: absolute;
      left: 12px;
      top: calc(0.95em - 2px);
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: var(--timeline-color);
      box-shadow: 0 0 8px rgba(var(--timeline-rgb), 0.38);
    }

    #ceremonyTitle,
    #receptionTitle {
      color: var(--location-title-color, var(--section-title));
    }

    #countdown {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      margin-top: 18px;
    }

    .countdown-shell {
      margin-top: 18px;
      padding: 10px 4px 2px;
      border-radius: 0;
      background: transparent;
      border: 0;
      box-shadow: none;
    }

    .count-box {
      padding: 12px 8px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.035);
      border: 1px solid rgba(255, 255, 255, 0.05);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 6px 16px rgba(0, 0, 0, 0.08);
      transition: border-color 0.25s ease, box-shadow 0.25s ease;
      animation: none;
    }

    .count-box:hover {
      transform: none;
      border-color: rgba(255, 255, 255, 0.08);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 8px 18px rgba(0, 0, 0, 0.1);
    }

    .count-box.tick {
      animation: countTick 0.38s ease;
    }

    .count-box strong {
      display: block;
      font-size: clamp(1.45rem, 4vw, 1.9rem);
      font-weight: 500;
      line-height: 1;
      color: var(--section-title);
    }

    .count-box span {
      display: block;
      margin-top: 6px;
      font-size: 0.6rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .countdown-caption {
      margin-top: 12px;
      font-size: 0.82rem;
      letter-spacing: 0.03em;
      color: rgba(255, 248, 236, 0.68);
    }

    .countdown-calendar-action {
      display: flex;
      justify-content: center;
      margin-top: 18px;
    }

    .countdown-calendar-action[hidden] {
      display: none !important;
    }

    .countdown-calendar-action .btn {
      width: min(100%, 224px);
    }

    .gallery {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      align-items: start;
      gap: 10px;
      margin-top: 18px;
    }

    .gallery-showcase {
      margin-top: 18px;
      padding: 14px;
      border-radius: 24px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
      border: 1px solid rgba(var(--gold-rgb), 0.18);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .gallery-stage {
      position: relative;
      overflow: hidden;
      border-radius: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 368px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .gallery-stage img,
    .gallery-stage video {
      width: 100%;
      height: 100%;
      object-fit: contain;
      transition: transform 0.45s ease, opacity 0.3s ease, filter 0.3s ease;
      will-change: transform, opacity;
    }

    .gallery-stage:hover img,
    .gallery-stage:hover video {
      transform: scale(1.015);
    }

    .gallery-stage-copy {
      display: none;
    }

    .gallery-stage-kicker {
      display: block;
      font-size: 0.72rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.76);
    }

    .gallery-stage-title {
      margin-top: 4px;
      font-size: 1.35rem;
      font-weight: 600;
      color: #fff;
      line-height: 1.15;
      word-break: break-word;
      text-wrap: balance;
    }

    .gallery-controls {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-top: 14px;
    }

    .gallery-nav {
      display: flex;
      gap: 8px;
    }

    .gallery-nav button {
      width: 42px;
      height: 42px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.08);
      color: var(--gallery-arrow-color, #fff);
      cursor: pointer;
      display: grid;
      place-items: center;
      font-size: 1rem;
      line-height: 1;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .gallery-nav button:hover {
      transform: translateY(-1px);
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
    }

    .gallery-meta {
      text-align: left;
      flex: 1;
      min-width: 0;
    }

    .gallery-meta strong {
      display: block;
      font-size: 1.03rem;
      color: var(--gallery-text-color, var(--text));
      line-height: 1.2;
      word-break: break-word;
    }

    .gallery-meta span {
      display: block;
      margin-top: 2px;
      font-size: 0.86rem;
      color: var(--gallery-text-color, var(--text));
      line-height: 1.35;
      word-break: break-word;
    }

    .gallery-item {
      position: relative;
      display: block;
      width: 100%;
      padding: 0;
      border: 0;
      border-radius: 18px;
      background: transparent;
      cursor: pointer;
      overflow: hidden;
      color: inherit;
      text-align: inherit;
      align-self: start;
    }

    .gallery-item.big {
      grid-column: span 2;
    }

    .gallery-item--landscape,
    .gallery-item--panorama {
      grid-column: 1 / -1;
    }

    .gallery-item--portrait {
      aspect-ratio: 3 / 4;
    }

    .gallery-item--landscape {
      aspect-ratio: 4 / 3;
    }

    .gallery-item--panorama {
      aspect-ratio: 16 / 9;
    }

    .gallery-item--square {
      aspect-ratio: 1;
    }

    .gallery-item--portrait,
    .gallery-item--landscape,
    .gallery-item--panorama,
    .gallery-item--square {
      background: rgba(0, 0, 0, 0.08);
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
    }

    .gallery-item--portrait .gallery-media,
    .gallery-item--landscape .gallery-media,
    .gallery-item--panorama .gallery-media,
    .gallery-item--square .gallery-media {
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center;
    }

    .gallery-media {
      width: 100%;
      height: auto;
      object-fit: contain;
      border-radius: 18px;
      display: block;
      transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
    }

    .gallery-item > video.gallery-media {
      pointer-events: none;
    }

    .gallery-item--video[data-gallery-layout="auto"] {
      aspect-ratio: 16 / 9;
      background: rgba(0, 0, 0, 0.12);
    }

    .gallery-item--video .gallery-media {
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center;
    }

    .gallery-video-badge,
    .thumb-video-badge {
      position: absolute;
      right: 10px;
      bottom: 10px;
      min-width: 30px;
      height: 30px;
      border-radius: 999px;
      display: grid;
      place-items: center;
      background: rgba(0, 0, 0, 0.42);
      color: #fff;
      font-size: 0.82rem;
      line-height: 1;
      box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
      pointer-events: none;
    }

    .gallery-video-badge::before,
    .gallery-video-badge::after,
    .thumb-video-badge::before,
    .thumb-video-badge::after {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      transition: opacity .2s ease, transform .2s ease;
    }

    .gallery-video-badge::before,
    .thumb-video-badge::before {
      width: 0;
      height: 0;
      border-left: 9px solid #fff;
      border-top: 6px solid transparent;
      border-bottom: 6px solid transparent;
      transform: translate(-38%, -50%);
    }

    .gallery-video-badge::after,
    .thumb-video-badge::after {
      opacity: 0;
    }

    .gallery-video-badge.is-playing::before,
    .gallery-video-badge.is-playing::after {
      width: 3px;
      height: 13px;
      border: 0;
      border-radius: 2px;
      background: #fff;
      opacity: 1;
    }

    .gallery-video-badge.is-playing::before {
      transform: translate(-5px, -50%);
    }

    .gallery-video-badge.is-playing::after {
      transform: translate(2px, -50%);
    }

    .gallery-item:hover .gallery-media {
      transform: scale(1.04) rotate(-0.4deg);
      box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
      filter: saturate(1.06) brightness(1.02);
    }

    .gallery-item.is-active .gallery-media {
      outline: 2px solid rgba(var(--gold-rgb), 0.7);
      outline-offset: 2px;
      box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
    }

    .dresscode-figure img {
      width: min(180px, 58%);
      height: auto;
      object-fit: contain;
      filter: drop-shadow(0 10px 18px rgba(var(--gold-rgb), 0.16));
    }

    .dress-code-list {
      width: min(100%, 380px);
      margin: 14px auto 0;
      padding: 0;
      display: grid;
      gap: 8px;
      list-style: none;
    }

    .dress-code-list li {
      min-height: 38px;
      padding: 8px 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      color: var(--text);
      font-size: 0.98rem;
      line-height: 1.35;
      text-align: center;
    }

    .dress-code-list li + li {
      border-top: 1px solid rgba(var(--gold-rgb), 0.12);
    }

    .dress-code-list li::before {
      content: "";
      width: 5px;
      height: 5px;
      flex: 0 0 auto;
      transform: rotate(45deg);
      background: var(--section-title);
      box-shadow: 0 0 10px rgba(var(--section-title-rgb), 0.28);
    }

    .dress-code-list[hidden] {
      display: none;
    }

    .dress-color-palette {
      width: min(100%, 420px);
      margin: 16px auto 2px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      flex-wrap: nowrap;
    }

    .dress-color-palette[hidden] {
      display: none;
    }

    .dress-color-swatch {
      --swatch-color: var(--section-title);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
    }

    .dress-color-swatch::before {
      content: "";
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background:
        radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .62), transparent 34%),
        var(--swatch-color);
      border: 1px solid rgba(255, 255, 255, .62);
      box-shadow:
        0 8px 18px rgba(0, 0, 0, .18),
        0 0 0 1px rgba(var(--gold-rgb), .12);
    }

    .gift-figure img {
      width: min(112px, 34%);
      height: auto;
      object-fit: contain;
      filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.14));
    }

    .gift-options {
      margin-top: 20px;
      display: grid;
      gap: 14px;
    }

    .gift-option-card {
      padding: 6px 8px 10px;
      border-radius: 0;
      background: transparent;
      border: 0;
      box-shadow: none;
    }

    .gift-option-card--title-above .gift-option-title {
      margin-bottom: 8px;
    }

    .gift-options.single-option {
      grid-template-columns: 1fr;
    }

    .album-card {
      margin-top: 18px;
      padding: 4px 0 0;
      border-radius: 0;
      background: transparent;
      border: 0;
      box-shadow: none;
    }

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

    .album-qr {
      width: fit-content;
      max-width: 100%;
      margin: 18px auto 2px;
      display: grid;
      justify-items: center;
      gap: 9px;
	      color: var(--text);
	      text-decoration: none;
	      cursor: default;
	    }

    .album-qr[hidden] {
      display: none;
    }

    .album-qr-shell {
      position: relative;
      width: min(190px, 58vw);
      aspect-ratio: 1;
      box-sizing: border-box;
      padding: 12px;
      display: grid;
      place-items: center;
      overflow: hidden;
      border: 1px solid rgba(var(--gold-rgb), 0.24);
      border-radius: 20px;
      background:
        linear-gradient(145deg, rgba(255, 255, 255, var(--album-qr-bg-opacity, 1)), rgba(255, 255, 255, 0.86)),
        radial-gradient(circle at 24% 16%, rgba(var(--gold-rgb), 0.22), transparent 38%);
      box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 16px 34px rgba(0, 0, 0, 0.14),
        0 0 34px rgba(var(--gold-rgb), 0.18);
    }

    .album-qr-shell::before {
      content: "";
      position: absolute;
      inset: -45% auto -45% -78%;
      width: 66%;
      transform: rotate(18deg);
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.88), rgba(var(--gold-rgb), 0.34), transparent);
      opacity: 0.68;
      animation: albumQrShine 2.9s ease-in-out infinite;
      pointer-events: none;
    }

    .album-qr-shell::after {
      content: "";
      position: absolute;
      inset: 9px;
      border-radius: 15px;
      box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), 0.14);
      pointer-events: none;
    }

    #albumQrCanvas {
      display: grid;
      place-items: center;
      width: 100%;
      min-width: 0;
      aspect-ratio: 1;
      line-height: 0;
    }

    #albumQrCanvas svg,
    #albumQrCanvas canvas {
      display: block;
      width: 100% !important;
      max-width: 100%;
      height: 100% !important;
      aspect-ratio: 1;
      overflow: visible;
    }

    .album-qr-caption {
      color: var(--text);
      font-size: 0.78rem;
      font-weight: 700;
      line-height: 1.25;
      text-align: center;
    }

    .album-card > .utilities {
      margin-top: 16px;
    }

    .gift-option-media {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 12px;
    }

    .gift-option-media img {
      height: auto;
      object-fit: contain;
      filter: drop-shadow(0 10px 18px rgba(var(--gold-rgb), 0.18));
    }

    .gift-option-media img.envelope {
      width: min(124px, 40%);
    }

    .gift-option-media img.surprise {
      width: min(98px, 32%);
    }

    .gift-option-title {
      margin: 0;
      font-size: 1.28rem;
      font-weight: 600;
      color: var(--section-title);
    }

    .gift-option-copy {
      margin-top: 8px;
      font-size: 1rem;
      line-height: 1.55;
      color: var(--muted);
    }

    .gift-links-panel {
      display: grid;
      gap: 0;
      margin-top: 18px;
    }

    .gift-links-panel[hidden] {
      display: none !important;
    }

    .gift-links-panel > .gift-option-title {
      margin-bottom: 8px;
    }

    .gift-links-panel--title-below > .gift-option-title {
      order: 3;
      margin-top: 10px;
      margin-bottom: 0;
    }

    .gift-links-panel--title-below > #giftLinksIntro {
      order: 1;
    }

    .gift-links-panel--title-below > .gift-links {
      order: 2;
    }

    .gift-links {
      margin-top: 18px;
      display: grid;
      gap: 14px;
    }

    .gift-link-card {
      width: min(100%, 320px);
      min-height: 0;
      display: grid;
      justify-self: center;
      justify-items: center;
      gap: 10px;
      padding: 0;
      text-align: center;
      color: inherit;
      text-decoration: none;
      background: transparent;
      border: 0;
      box-shadow: none;
      transform: translateZ(0);
    }

    .gift-link-card:hover {
      transform: translateY(-2px);
    }

    .gift-link-card__media {
      width: min(100%, 292px);
      aspect-ratio: 1.65 / 1;
      padding: 0;
      display: grid;
      place-items: center;
      overflow: hidden;
      position: relative;
      border: 1px solid rgba(var(--timeline-rgb), 0.34);
      border-radius: 22px;
      background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.36), transparent 28% 68%, rgba(255, 255, 255, 0.18)),
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.82), transparent 30%),
        radial-gradient(circle at 86% 78%, rgba(var(--timeline-rgb), 0.2), transparent 32%),
        linear-gradient(135deg, rgba(var(--timeline-rgb), 0.34), rgba(255, 255, 255, 0.58) 44%, rgba(var(--timeline-rgb), 0.2));
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        inset 0 -18px 28px rgba(0, 0, 0, 0.035),
        0 18px 34px rgba(0, 0, 0, 0.14);
      scale: var(--gift-link-image-scale, 1);
      transform-origin: center;
    }

    .gift-link-card__media::before {
      content: "";
      position: absolute;
      inset: -42% auto -42% -70%;
      width: 54%;
      z-index: 1;
      transform: rotate(18deg);
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), rgba(var(--timeline-rgb), 0.2), transparent);
      mix-blend-mode: screen;
      opacity: .62;
      filter: blur(0.3px);
      animation: giftMediaShine 4.8s ease-in-out infinite;
      pointer-events: none;
    }

    .gift-link-card__media::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 1;
      border-radius: inherit;
      background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.22), transparent 34% 76%, rgba(255, 255, 255, 0.12)),
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.28), transparent 34%);
      mix-blend-mode: screen;
      opacity: .68;
      pointer-events: none;
    }

    .gift-link-card__media img {
      width: 100%;
      height: 100%;
      max-width: none;
      max-height: none;
      object-fit: contain;
      object-position: center;
      display: block;
      border-radius: inherit;
      filter: saturate(0.98) contrast(1.03);
      transform: none;
    }

    .gift-link-card__button {
      width: min(100%, 230px);
      min-height: 46px;
      padding: 12px 20px;
      display: inline-grid;
      place-items: center;
      border-radius: 999px;
      font-size: .82rem;
      font-weight: 800;
      letter-spacing: .11em;
      line-height: 1.15;
      text-transform: uppercase;
      overflow-wrap: anywhere;
      color: var(--button-text);
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 46%),
        var(--button-bg);
      border: 1px solid rgba(255, 255, 255, 0.22);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 12px 22px rgba(0, 0, 0, 0.14);
    }

    .gift-link-card--secondary .gift-link-card__button {
      color: var(--button-bg);
      background: rgba(255, 255, 255, 0.74);
      border: 1px solid rgba(var(--timeline-rgb), 0.34);
      box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
    }

    .bank-transfer-card {
      width: min(100%, 360px);
      margin: 20px auto 0;
      padding: 15px;
      position: relative;
      overflow: hidden;
      border-radius: 22px;
      border: 1px solid rgba(var(--timeline-rgb), 0.28);
      background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.065)),
        radial-gradient(circle at 14% 10%, rgba(var(--timeline-rgb), 0.16), transparent 40%);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 14px 28px rgba(0, 0, 0, 0.12);
      text-align: left;
    }

    .bank-transfer-card[hidden] {
      display: none;
    }

    .bank-transfer-card::before {
      content: "";
      position: absolute;
      inset: 8px;
      border: 1px solid rgba(255, 255, 255, 0.11);
      border-radius: 17px;
      pointer-events: none;
    }

    .bank-transfer-card__visual {
      position: relative;
      z-index: 1;
      width: min(100%, calc(292px * var(--bank-transfer-image-scale, 1)));
      aspect-ratio: 1.65 / 1;
      margin: 12px auto 2px;
      padding: 0;
      display: grid;
      place-items: center;
      overflow: hidden;
      border: 1px solid rgba(var(--timeline-rgb), 0.34);
      border-radius: 22px;
      background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.36), transparent 28% 68%, rgba(255, 255, 255, 0.18)),
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.82), transparent 30%),
        radial-gradient(circle at 86% 78%, rgba(var(--timeline-rgb), 0.2), transparent 32%),
        linear-gradient(135deg, rgba(var(--timeline-rgb), 0.34), rgba(255, 255, 255, 0.58) 44%, rgba(var(--timeline-rgb), 0.2));
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        inset 0 -18px 28px rgba(0, 0, 0, 0.035),
        0 18px 34px rgba(0, 0, 0, 0.14);
    }

    .bank-transfer-card__visual::before {
      content: "";
      position: absolute;
      inset: -42% auto -42% -70%;
      width: 54%;
      z-index: 1;
      transform: rotate(18deg);
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), rgba(var(--timeline-rgb), 0.2), transparent);
      mix-blend-mode: screen;
      opacity: .62;
      filter: blur(0.3px);
      animation: giftMediaShine 4.8s ease-in-out infinite;
      pointer-events: none;
    }

    .bank-transfer-card__visual::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 1;
      border-radius: inherit;
      background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.22), transparent 34% 76%, rgba(255, 255, 255, 0.12)),
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.28), transparent 34%);
      mix-blend-mode: screen;
      opacity: .68;
      pointer-events: none;
    }

    .bank-transfer-card__visual[hidden] {
      display: none;
    }

    .bank-transfer-card__visual > img {
      display: block;
      width: 100%;
      height: 100%;
      max-width: none;
      max-height: none;
      object-fit: contain;
      object-position: center;
      border-radius: inherit;
      filter: saturate(0.98) contrast(1.03);
      transform: none;
    }

    .bank-transfer-card__overlay {
      display: none;
    }

    .bank-transfer-card__eyebrow {
      display: block;
      margin-top: 5px;
      margin-bottom: 0;
      color: var(--section-title);
      font-size: 0.72rem;
      font-weight: 800;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      text-align: center;
    }

    .bank-transfer-card h3 {
      margin: 0;
      text-align: center;
    }

    .bank-transfer-card__eyebrow:empty,
    .bank-transfer-card h3:empty,
    .bank-transfer-card > p:empty,
    .bank-transfer-note:empty {
      display: none;
    }

    .bank-transfer-card > p {
      margin: 10px 0 0;
      color: var(--muted);
      font-size: 0.92rem;
      line-height: 1.45;
      text-align: center;
    }

    .bank-transfer-details {
      margin: 14px 0 0;
      display: grid;
      gap: 7px;
    }

    .bank-transfer-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
      padding: 9px 10px;
      border: 1px solid rgba(var(--timeline-rgb), 0.13);
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.08);
    }

    .bank-transfer-row__content {
      display: grid;
      gap: 3px;
      min-width: 0;
    }

    .bank-transfer-row dt {
      color: var(--section-title);
      font-size: 0.7rem;
      font-weight: 800;
      letter-spacing: 0.13em;
      text-transform: uppercase;
    }

    .bank-transfer-row dd {
      margin: 0;
      color: var(--text);
      font-size: 0.98rem;
      font-weight: 650;
      line-height: 1.25;
      overflow-wrap: anywhere;
      min-width: 0;
    }

    .bank-transfer-row--copyable dd {
      font-family: "Courier New", "IBM Plex Mono", monospace;
      font-size: 1.02rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      font-variant-numeric: tabular-nums;
    }

    .bank-copy-btn {
      flex: 0 0 auto;
      min-height: 24px;
      padding: 5px 8px;
      border: 1px solid rgba(var(--timeline-rgb), 0.2);
      border-radius: 999px;
      color: var(--section-title);
      background: rgba(255, 255, 255, 0.1);
      font-size: 0.58rem;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      cursor: pointer;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
      transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
    }

    .bank-copy-btn:hover {
      transform: translateY(-1px);
      border-color: rgba(var(--timeline-rgb), 0.34);
      background: rgba(var(--timeline-rgb), 0.08);
    }

    .bank-transfer-note {
      padding-top: 10px;
      text-align: center;
      font-size: 0.84rem !important;
    }

    .mini-note {
      margin-top: 10px;
      font-size: 0.95rem;
      color: var(--muted);
    }

    .rsvp-card {
      margin-top: 20px;
      display: grid;
      gap: 14px;
    }

    .rsvp-card[hidden],
    .rsvp-receipt[hidden],
    .rsvp-invalid[hidden],
    .rsvp-deadline-note[hidden] {
      display: none !important;
    }

    .rsvp-deadline-note {
      width: min(100%, 360px);
      margin: 2px auto 0;
      padding-top: 14px;
      border-top: 1px solid color-mix(in srgb, var(--section-title) 32%, transparent);
      color: var(--field-text);
      font-size: 0.74rem;
      line-height: 1.65;
      text-align: center;
      opacity: 0.86;
    }

    .rsvp-deadline-note__text,
    .rsvp-deadline-note__date {
      display: block;
    }

    .rsvp-deadline-note__date {
      margin-top: 6px;
      color: var(--section-title);
      font-family: "Montserrat", "Poppins", system-ui, sans-serif;
      font-size: 0.86rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      line-height: 1.35;
      white-space: nowrap;
      font-variant-numeric: tabular-nums;
    }

    .rsvp-invalid {
      width: min(100%, 440px);
      margin: 18px auto 0;
      padding: 26px 22px;
      border: 1px solid color-mix(in srgb, var(--section-title) 42%, transparent);
      border-radius: 18px;
      background:
        linear-gradient(145deg, rgba(255,255,255,.2), rgba(255,255,255,.06)),
        color-mix(in srgb, var(--bg-bottom) 28%, transparent);
      box-shadow: 0 18px 42px rgba(0,0,0,.18);
      text-align: center;
      color: var(--text);
      backdrop-filter: blur(14px);
    }

    .rsvp-invalid span {
      display: block;
      margin-bottom: 8px;
      color: var(--section-title);
      font-size: .74rem;
      font-weight: 700;
      letter-spacing: .14em;
      text-transform: uppercase;
    }

    .rsvp-invalid strong {
      display: block;
      color: var(--section-title);
      font-family: var(--display-font);
      font-size: clamp(1.55rem, 8vw, 2.25rem);
      font-weight: 500;
      line-height: 1.02;
    }

    .rsvp-invalid p {
      margin: 12px auto 0;
      max-width: 30ch;
      color: var(--muted);
      font-size: .98rem;
      line-height: 1.45;
    }

    .rsvp-receipt {
      width: min(100%, 440px);
      margin: 20px auto 2px;
      text-align: center;
      animation: rsvpReceiptArrival .65s cubic-bezier(.2, .72, .25, 1) both;
    }

    .rsvp-receipt__eyebrow {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      color: var(--field-label);
      font-size: .69rem;
      font-weight: 700;
      letter-spacing: .15em;
      text-transform: uppercase;
    }

    .rsvp-receipt__eyebrow::before,
    .rsvp-receipt__eyebrow::after {
      content: "";
      flex: 0 1 34px;
      height: 1px;
      background: currentColor;
      opacity: .48;
    }

    .rsvp-receipt h3 {
      margin: 10px 0 6px;
      color: var(--section-title);
      font-family: var(--font-display);
      font-size: clamp(2rem, 9vw, 2.8rem);
      font-weight: 500;
      line-height: 1.08;
    }

    .rsvp-receipt > p {
      max-width: 340px;
      margin: 0 auto;
      color: var(--field-text);
      line-height: 1.5;
    }

    .rsvp-receipt__identity {
      display: grid;
      gap: 2px;
      margin: 16px auto 12px;
    }

    .rsvp-receipt__identity strong {
      color: var(--section-title);
      font-size: 1.2rem;
    }

    .rsvp-receipt__identity span,
    .rsvp-receipt__folio {
      color: var(--field-label);
      font-size: .72rem;
      font-weight: 700;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .rsvp-receipt__attendees {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 6px;
      margin: 0 auto 13px;
    }

    .rsvp-receipt__attendees[hidden] {
      display: none !important;
    }

    .rsvp-receipt__attendees span {
      padding: 5px 9px;
      border: 1px solid rgba(var(--gold-rgb), .28);
      border-radius: 999px;
      color: var(--field-text);
      font-size: .78rem;
    }

    .rsvp-receipt__qr {
      position: relative;
      display: grid;
      place-items: center;
      width: min(68vw, 218px);
      height: auto;
      aspect-ratio: 1;
      margin: 15px auto 6px;
      padding: 12px;
      overflow: hidden;
      border: 1px solid rgba(var(--gold-rgb), 0.24);
      border-radius: 20px;
      background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.86)),
        radial-gradient(circle at 24% 16%, rgba(var(--gold-rgb), 0.22), transparent 38%);
      box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 16px 34px rgba(0, 0, 0, 0.14),
        0 0 34px rgba(var(--gold-rgb), 0.18);
      box-sizing: border-box;
    }

    .rsvp-receipt__qr::before {
      content: "";
      position: absolute;
      inset: -45% auto -45% -78%;
      width: 66%;
      transform: rotate(18deg);
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.88), rgba(var(--gold-rgb), 0.34), transparent);
      opacity: 0.68;
      animation: albumQrShine 2.9s ease-in-out infinite;
      pointer-events: none;
    }

    .rsvp-receipt__qr::after {
      content: "";
      position: absolute;
      inset: 9px;
      border-radius: 15px;
      box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), 0.14);
      pointer-events: none;
    }

    .rsvp-receipt__qr > div {
      display: grid !important;
      place-items: center;
      width: var(--rsvp-qr-size, 190px) !important;
      height: var(--rsvp-qr-size, 190px) !important;
      min-width: 0 !important;
      min-height: 0 !important;
      margin: 0 !important;
      padding: 0 !important;
      overflow: visible;
      position: static !important;
      transform: none !important;
    }

    .rsvp-receipt__qr canvas,
    .rsvp-receipt__qr svg {
      display: block;
      width: var(--rsvp-qr-size, 190px) !important;
      height: var(--rsvp-qr-size, 190px) !important;
      max-width: none !important;
      max-height: none !important;
      margin: 0 !important;
      position: static !important;
      transform: none !important;
    }

    .rsvp-receipt__folio {
      display: block;
      margin-top: 6px;
      opacity: .84;
    }

    .rsvp-receipt__qr-label {
      display: block;
      color: var(--field-text);
      font-size: .68rem;
      font-weight: 600;
      opacity: .72;
    }

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

    html.theme-military .rsvp-receipt h3 {
      font-family: var(--font-body);
      font-size: clamp(1.65rem, 7vw, 2.25rem);
      font-weight: 800;
      letter-spacing: .04em;
      text-transform: uppercase;
    }

    html.theme-military .rsvp-receipt__qr,
    html.theme-military .rsvp-receipt__attendees span {
      border-radius: 4px;
    }


    .rsvp-personalization {
      position: relative;
      width: min(100%, 430px);
      margin: 18px auto 6px;
      padding: 22px 20px 18px;
      overflow: hidden;
      border: 0;
      border-radius: 0;
      background: transparent;
      color: var(--field-text);
      line-height: 1.45;
      text-align: center;
      box-shadow: none;
    }

    .rsvp-personalization__eyebrow {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      color: var(--field-label);
      font-size: .69rem;
      font-weight: 650;
      letter-spacing: .14em;
      line-height: 1.35;
      text-transform: uppercase;
    }

    .rsvp-personalization__eyebrow::before,
    .rsvp-personalization__eyebrow::after {
      content: "";
      flex: 0 1 42px;
      height: 1px;
      background: currentColor;
      opacity: .48;
    }

    .rsvp-personalization__recipient {
      display: block;
      margin: 14px auto 5px;
      color: var(--section-title);
      font-family: var(--font-display);
      font-size: clamp(2rem, 9vw, 3rem);
      font-weight: 500;
      line-height: 1.08;
      overflow-wrap: anywhere;
      text-shadow: 0 4px 18px rgba(0, 0, 0, .14);
    }

    .rsvp-personalization__divider {
      display: block;
      position: relative;
      width: 92px;
      height: 1px;
      margin: 11px auto 10px;
      background: var(--gold);
      opacity: .72;
    }

    .rsvp-personalization__divider::before,
    .rsvp-personalization__divider::after {
      content: "";
      position: absolute;
      top: 50%;
      width: 5px;
      height: 5px;
      border: 1px solid var(--gold);
      background: transparent;
      transform: translateY(-50%) rotate(45deg);
    }

    .rsvp-personalization__divider::before { left: -8px; }
    .rsvp-personalization__divider::after { right: -8px; }

    .rsvp-personalization__message {
      max-width: 330px;
      margin: 0 auto;
      color: var(--field-text);
      font-size: .98rem;
      line-height: 1.48;
    }

    .rsvp-personalization__passes {
      display: inline-grid;
      grid-template-columns: auto auto;
      align-items: center;
      gap: 9px;
      margin-top: 15px;
      padding: 7px 10px 7px 13px;
      border: 1px solid color-mix(in srgb, var(--gold), transparent 56%);
      border-radius: 999px;
      background: rgba(255, 255, 255, .07);
      box-shadow: 0 7px 18px rgba(0, 0, 0, .08);
    }

    .rsvp-personalization__passes span {
      color: var(--field-label);
      font-size: .68rem;
      font-weight: 700;
      letter-spacing: .1em;
      text-transform: uppercase;
    }

    .rsvp-personalization__passes strong {
      min-width: 64px;
      padding: 4px 8px;
      border-radius: 999px;
      background: var(--button-bg);
      color: var(--button-text);
      font-size: .82rem;
      line-height: 1.2;
    }

    .rsvp-personalization.is-dynamic {
      padding-top: 18px;
    }

    .rsvp-personalization.is-dynamic .rsvp-personalization__recipient {
      margin-top: 11px;
      color: var(--field-text);
      font-family: var(--font-body);
      font-size: clamp(.98rem, 4.7vw, 1.18rem);
      font-weight: 500;
      letter-spacing: 0;
      text-shadow: none;
    }

    .rsvp-personalization.is-dynamic .rsvp-personalization__divider {
      width: 66px;
      margin: 9px auto;
    }

    .rsvp-personalization.is-dynamic .rsvp-personalization__message {
      max-width: 280px;
      font-size: .9rem;
    }

    .rsvp-personalization.is-dynamic .rsvp-personalization__passes strong {
      min-width: 58px;
      padding-inline: 11px;
      font-family: "Bodoni Moda", "Playfair Display", Georgia, serif;
      font-size: 1.04rem;
      font-variant-numeric: tabular-nums;
      font-weight: 600;
      letter-spacing: .015em;
    }

    .rsvp-personalization[hidden] {
      display: none !important;
    }

    .section.show .rsvp-personalization {
      animation: rsvpPersonalizedArrival .7s cubic-bezier(.2, .72, .25, 1) both;
    }

    @keyframes rsvpPersonalizedArrival {
      from { opacity: 0; transform: translateY(14px) scale(.985); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    #countdown-section .countdown-date-card[hidden] {
      display: none;
    }

    #countdown-section .countdown-date-card {
      width: min(100%, 510px);
      margin: 0 auto 50px;
      --date-card-row-height: clamp(58px, 15vw, 78px);
      color: var(--countdown-date-color, var(--timeline-title-color, var(--text)));
      text-align: center;
    }

    #countdown-section .countdown-date-card__month {
      margin-bottom: 14px;
      padding-left: 0.14em;
      font-family: "Cormorant Garamond", "GFS Didot", "Bodoni Moda", serif;
      font-size: clamp(1.12rem, 4.6vw, 1.5rem);
      font-weight: 400;
      line-height: 1.05;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--countdown-date-color, var(--timeline-title-color, var(--text)));
      text-shadow: 0 4px 9px rgba(0, 0, 0, 0.045);
    }

    #countdown-section .countdown-date-card__main {
      display: grid;
      grid-template-columns: minmax(98px, 1fr) auto minmax(98px, 1fr);
      align-items: center;
      gap: clamp(14px, 4.7vw, 34px);
    }

    #countdown-section .countdown-date-card__main span {
      position: relative;
      display: grid;
      height: var(--date-card-row-height);
      place-items: center;
      padding: 0 8px;
      font-family: "Cormorant Garamond", "GFS Didot", "Bodoni Moda", serif;
      font-size: clamp(1.08rem, 4.5vw, 1.46rem);
      font-weight: 500;
      letter-spacing: 0.08em;
      line-height: 1;
      text-transform: uppercase;
      white-space: nowrap;
      color: var(--countdown-date-color, var(--timeline-title-color, var(--text)));
      text-shadow: 0 4px 9px rgba(0, 0, 0, 0.045);
    }

    #countdown-section .countdown-date-card__main span::before,
    #countdown-section .countdown-date-card__main span::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      height: 1px;
      background: currentColor;
      opacity: 0.62;
      box-shadow: none;
    }

    #countdown-section .countdown-date-card__main span::before {
      top: 0;
    }

    #countdown-section .countdown-date-card__main span::after {
      bottom: 0;
    }

    #countdown-section .countdown-date-card__main strong {
      display: flex;
      align-items: center;
      justify-content: center;
      width: clamp(96px, 22vw, 136px);
      height: var(--date-card-row-height);
      font-family: "Pinyon Script", "Italianno", "Cormorant Garamond", cursive;
      font-size: clamp(4.45rem, 18vw, 6.65rem);
      font-style: normal;
      font-weight: 400;
      line-height: 0.72;
      letter-spacing: 0;
      color: var(--countdown-date-color, var(--timeline-title-color, var(--text)));
      text-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    }

    #countdown-section.countdown-style-date-card h2 {
      font-family: var(--timeline-font, var(--font-body));
      font-size: clamp(1.16rem, 4.5vw, 1.48rem);
      font-weight: 600;
      letter-spacing: 0.28em;
      text-transform: uppercase;
      color: var(--timeline-title-color, var(--text));
    }

    #countdown-section.countdown-style-date-card #countdownIntro {
      max-width: 360px;
      margin: 10px auto 0;
      font-size: 0.9rem;
      color: var(--timeline-desc-color, var(--muted));
    }

    #countdown-section.countdown-style-date-card .countdown-shell {
      position: relative;
      margin-top: 22px;
      padding: 20px 2px 4px;
      background: transparent;
      border: 0;
      box-shadow: none;
      overflow: visible;
    }

    #countdown-section.countdown-style-date-card .countdown-shell::before,
    #countdown-section.countdown-style-date-card .countdown-shell::after {
      content: "";
      position: absolute;
      left: 8%;
      right: 8%;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--countdown-number-color, var(--timeline-title-color, var(--text))), transparent);
      opacity: 0.58;
      pointer-events: none;
    }

    #countdown-section.countdown-style-date-card .countdown-shell::before {
      top: 0;
    }

    #countdown-section.countdown-style-date-card .countdown-shell::after {
      bottom: -8px;
      opacity: 0.36;
    }

    #countdown-section.countdown-style-date-card #countdown {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 0;
      width: min(100%, 360px);
      margin-left: auto;
      margin-right: auto;
      margin-top: 0;
    }

    #countdown-section.countdown-style-date-card .count-box {
      position: relative;
      padding: 0 4px 2px;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      overflow: visible;
    }

    #countdown-section.countdown-style-date-card .count-box:not(:last-child)::after {
      content: ":";
      position: absolute;
      right: -2px;
      top: 0.14em;
      color: var(--countdown-number-color, var(--timeline-title-color, var(--text)));
      font-family: "Cormorant Garamond", "GFS Didot", var(--font-display);
      font-size: clamp(1.95rem, 7.8vw, 3.05rem);
      font-weight: 400;
      line-height: 1;
      opacity: 0.34;
    }

    #countdown-section.countdown-style-date-card .count-box strong {
      display: inline-block;
      min-width: 1.22em;
      font-family: "Cormorant Garamond", "GFS Didot", "Bodoni Moda", var(--font-display);
      font-size: clamp(2.18rem, 8.5vw, 3.42rem);
      font-weight: 400;
      line-height: 0.96;
      letter-spacing: 0.005em;
      font-variant-numeric: lining-nums tabular-nums;
      color: var(--countdown-number-color, var(--timeline-title-color, var(--text)));
      text-shadow: 0 4px 10px rgba(0, 0, 0, 0.035);
    }

    #countdown-section.countdown-style-date-card .count-box span {
      position: relative;
      margin-top: 10px;
      font-family: "Cormorant Garamond", var(--timeline-font, var(--font-body));
      font-size: clamp(0.72rem, 2.65vw, 0.84rem);
      font-weight: 500;
      letter-spacing: 0.03em;
      text-transform: none;
      color: var(--countdown-label-color, var(--timeline-desc-color, var(--muted)));
      opacity: 0.88;
    }

    #countdown-section.countdown-style-date-card .count-box span::before {
      content: none;
    }

    #countdown-section.countdown-style-date-card .countdown-caption {
      margin-top: 18px;
      color: var(--countdown-label-color, var(--timeline-desc-color, var(--muted)));
    }

    @media (max-width: 380px) {
      #countdown-section .countdown-date-card {
        --date-card-row-height: 58px;
      }

      #countdown-section .countdown-date-card__main {
        grid-template-columns: minmax(78px, 1fr) auto minmax(78px, 1fr);
        gap: 11px;
      }

      #countdown-section .countdown-date-card__main strong {
        width: 88px;
        font-size: 4.35rem;
      }

      #countdown-section .countdown-date-card__main span {
        padding: 0 3px;
        font-size: 0.98rem;
        letter-spacing: 0.055em;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .rsvp-personalization {
        animation: none;
      }
    }

    #countdown-section .countdown-date-card,
    #countdown-section .countdown-date-card__month,
    #countdown-section .countdown-date-card__main span,
    #countdown-section .countdown-date-card__main strong {
      color: var(--countdown-date-color, var(--timeline-title-color, var(--text))) !important;
    }

    #countdown-section .countdown-date-card__main span::before,
    #countdown-section .countdown-date-card__main span::after {
      background: currentColor !important;
    }

    #countdown-section h2 {
      color: var(--countdown-title-color, var(--section-title)) !important;
    }

    #countdown-section h2::before,
    #countdown-section h2::after {
      background: currentColor !important;
    }

    #countdown-section .count-box strong,
    #countdown-section .count-box:not(:last-child)::after {
      color: var(--countdown-number-color, var(--timeline-title-color, var(--text))) !important;
    }

    #countdown-section .count-box span {
      color: var(--countdown-label-color, var(--timeline-desc-color, var(--muted))) !important;
    }

    html.theme-military .rsvp-personalization {
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }

    html.theme-military .rsvp-personalization__recipient {
      font-family: var(--font-body);
      font-size: clamp(1.65rem, 7vw, 2.35rem);
      font-weight: 800;
      letter-spacing: .04em;
      text-transform: uppercase;
      text-shadow: 0 3px 12px rgba(0, 0, 0, .3);
    }

    html.theme-military .rsvp-personalization__passes,
    html.theme-military .rsvp-personalization__passes strong {
      border-radius: 4px;
    }

    .field input[readonly] {
      cursor: default;
      opacity: .9;
      border-style: dashed;
    }

    .field {
      text-align: left;
    }

    .field label {
      display: block;
      margin-bottom: 8px;
      font-size: 0.82rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--field-label);
    }

    .field input,
    .field select {
      width: 100%;
      min-height: 52px;
      padding: 0 16px;
      border-radius: 16px;
      border: 1px solid rgba(var(--button-bg-rgb), 0.34);
      background: rgba(255, 255, 255, 0.16);
      color: var(--field-text);
      outline: none;
    }

    .field input::placeholder {
      color: color-mix(in srgb, var(--field-text), transparent 44%);
    }

    .field select option {
      color: #241016;
    }

    .field input:focus,
    .field select:focus {
      border-color: rgba(var(--gold-rgb), 0.6);
      box-shadow: 0 0 0 4px rgba(var(--gold-rgb), 0.08);
    }

    .rsvp-buttons {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .family-members {
      display: grid;
      gap: 10px;
      padding: 14px;
      border: 1px solid rgba(var(--gold-rgb), .2);
      border-radius: 14px;
      background: rgba(255, 255, 255, .035);
    }

    .family-members[hidden] {
      display: none !important;
    }

    .family-members__head {
      display: grid;
      gap: 2px;
      text-align: left;
    }

    .family-members__head strong {
      color: var(--field-label);
      font-size: .94rem;
      font-weight: 600;
    }

    .family-members__head span {
      color: var(--muted);
      font-size: .82rem;
      line-height: 1.3;
    }

    .family-members__list {
      display: grid;
      gap: 8px;
    }

    .family-member-field {
      display: grid;
      grid-template-columns: minmax(82px, .38fr) minmax(0, 1fr);
      align-items: center;
      gap: 9px;
      color: var(--field-label);
      font-size: .82rem;
      text-align: left;
    }

    .family-member-field input {
      width: 100%;
      min-width: 0;
      padding: 10px 11px;
      border: 1px solid rgba(var(--gold-rgb), .24);
      border-radius: 10px;
      outline: none;
      background: rgba(255, 255, 255, .07);
      color: var(--field-text);
      font: inherit;
    }

    .family-member-field input::placeholder {
      color: var(--field-text);
      opacity: .52;
    }

    .family-member-field input:focus {
      border-color: rgba(var(--gold-rgb), .68);
      box-shadow: 0 0 0 3px rgba(var(--gold-rgb), .1);
    }

    html.theme-military .family-members {
      border: 1px dashed rgba(var(--gold-rgb), .38);
      border-radius: 7px;
      background: rgba(7, 11, 6, .28);
    }

    html.theme-military .family-member-field input {
      border-radius: 4px;
      background: rgba(7, 11, 6, .56);
    }

    #confirmNo {
      order: 1;
    }

    #confirmYes {
      order: 2;
    }

    .utilities {
      display: grid;
      gap: 12px;
      margin-top: 18px;
    }

    #agendaSectionUi .utilities {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #agendaSectionUi .btn {
      width: 100%;
    }

    .brand-footer {
      position: relative;
      width: 100vw;
      margin-top: 16px;
      margin-left: 50%;
      transform: translateX(-50%);
      padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      border-radius: 0;
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05)),
        rgba(var(--footer-bg-rgb), 0.82);
      border-top: 1px solid rgba(var(--gold-rgb), 0.18);
      box-shadow:
        0 -14px 30px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(24px) saturate(145%);
      -webkit-backdrop-filter: blur(24px) saturate(145%);
    }

    .brand-copy {
      min-width: 0;
      padding-left: max(0px, env(safe-area-inset-left, 0px));
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .brand-copy::before {
      content: "";
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255, 248, 236, 1), rgba(var(--gold-rgb), 0.72) 46%, rgba(var(--gold-rgb), 0) 70%);
      box-shadow: 0 0 8px rgba(var(--gold-rgb), 0.16);
      flex: 0 0 auto;
      animation: brandPulse 3.2s ease-in-out infinite;
    }

    .brand-caption {
      display: none;
    }

    .brand-link {
      display: block;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
      font-size: 0.88rem;
      font-weight: 500;
      letter-spacing: -0.01em;
      text-decoration: none;
      color: var(--footer-text);
      animation: none;
      text-wrap: balance;
    }

    .brand-question {
      display: none;
    }

    .closing-note {
      margin-top: 24px;
      margin-bottom: 16px;
      padding: 10px 0 6px;
      font-family: var(--font-display);
      font-size: 2.34rem;
      line-height: 1.14;
      color: var(--closing-color);
      text-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
      text-align: center;
      overflow: visible;
    }

    .brand-cta {
      margin-top: 0;
      flex: 0 0 auto;
      padding-right: max(0px, env(safe-area-inset-right, 0px));
    }

    .brand-cta a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 34px;
      padding: 0 14px;
      border-radius: 11px;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
      font-size: 0.82rem;
      font-weight: 500;
      letter-spacing: 0;
      color: var(--footer-text);
      text-decoration: none;
      white-space: nowrap;
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)),
        rgba(var(--footer-text-rgb), 0.08);
      border: 1px solid rgba(var(--gold-rgb), 0.26);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 4px 12px rgba(0, 0, 0, 0.1);
      transition: transform 0.2s ease, background 0.2s ease;
    }

    .brand-cta a:hover {
      transform: translateY(-1px);
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.1)),
        rgba(255, 255, 255, 0.1);
    }

    @keyframes brandPulse {
      0%, 100% {
        transform: scale(1);
        opacity: 0.82;
        box-shadow: 0 0 7px rgba(var(--gold-rgb), 0.14);
      }
      50% {
        transform: scale(1.16);
        opacity: 1;
        box-shadow: 0 0 10px rgba(var(--gold-rgb), 0.22);
      }
    }

    @media (max-width: 520px) {
      .brand-footer {
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
        gap: 10px;
      }

      .brand-link {
        font-size: 0.8rem;
      }

      .brand-cta a {
        min-height: 32px;
        padding: 0 13px;
        font-size: 0.76rem;
        border-radius: 10px;
      }
    }

    .floating-btn {
      position: fixed;
      bottom: calc(20px + env(safe-area-inset-bottom, 0px));
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      border: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.14);
      color: #fff;
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
      z-index: 40;
      cursor: pointer;
      opacity: 0;
      pointer-events: none;
      transform: translateY(14px);
      transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .floating-btn[hidden] {
      display: none !important;
    }

    .floating-btn.show {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
    }

    html.preview-live .floating-btn {
      bottom: 14px;
    }

    html.preview-live #toTopBtn {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
    }

    .floating-btn:hover {
      transform: translateY(-2px) scale(1.05);
    }

    #musicBtn {
      left: calc(18px + env(safe-area-inset-left, 0px));
    }

    #toTopBtn {
      right: calc(18px + env(safe-area-inset-right, 0px));
      font-size: 1.2rem;
    }

    #musicBtn::before,
    #musicBtn::after {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      width: 3px;
      height: 16px;
      border-radius: 2px;
      background: #fff;
      transition: all 0.25s ease;
    }

    #musicBtn::before {
      transform: translate(-5px, -50%);
    }

    #musicBtn::after {
      transform: translate(2px, -50%);
    }

    #musicBtn.is-paused::before {
      width: 0;
      height: 0;
      border-left: 12px solid #fff;
      border-top: 8px solid transparent;
      border-bottom: 8px solid transparent;
      background: transparent;
      transform: translate(-3px, -50%);
    }

    #musicBtn.is-paused::after {
      opacity: 0;
      transform: translate(6px, -50%);
    }

    .lightbox {
      position: fixed;
      inset: 0;
      z-index: 999;
      display: none;
      align-items: center;
      justify-content: center;
      padding:
        max(18px, env(safe-area-inset-top, 0px))
        max(18px, env(safe-area-inset-right, 0px))
        max(18px, env(safe-area-inset-bottom, 0px))
        max(18px, env(safe-area-inset-left, 0px));
      background: rgba(0, 0, 0, 0.88);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }

    .lightbox.show {
      display: flex;
    }

    .lightbox-content {
      position: relative;
      width: min(92vw, 620px);
      height: min(88vh, 780px);
      height: min(88dvh, 780px);
      max-height: calc(100dvh - max(36px, env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px)));
      display: grid;
      grid-template-rows: minmax(0, 1fr) 96px;
      gap: 0;
      padding: 16px;
      border-radius: 28px;
      background: rgba(18, 10, 14, 0.72);
      border: 1px solid rgba(255, 255, 255, 0.08);
      box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
      overflow: hidden;
    }

    .lightbox-main {
      min-height: 0;
      display: grid;
      place-items: center;
      padding: 20px 16px 18px;
      overflow: hidden;
      position: relative;
      touch-action: none;
      cursor: zoom-in;
    }

    .lightbox-img,
    .lightbox-video {
      width: 100%;
      height: 100%;
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      border-radius: 22px;
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
      transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
      transform-origin: center center;
      user-select: none;
      -webkit-user-drag: none;
      will-change: transform;
    }

    .lightbox-video {
      background: #000;
    }

    .lightbox-main.is-video {
      display: block;
      width: 100%;
      height: 100%;
      min-width: 0;
      min-height: 0;
      cursor: default;
      touch-action: auto;
    }

    .lightbox-main.is-video .lightbox-video {
      position: absolute;
      inset: 0;
      display: block;
      width: 100%;
      height: 100%;
      max-width: 100%;
      max-height: 100%;
      margin: auto;
      object-fit: contain;
      object-position: center center;
      transform: none !important;
    }

    @media (max-width: 520px) {
      .lightbox {
        padding:
          max(8px, env(safe-area-inset-top, 0px))
          max(8px, env(safe-area-inset-right, 0px))
          max(8px, env(safe-area-inset-bottom, 0px))
          max(8px, env(safe-area-inset-left, 0px));
      }

      .lightbox-content {
        width: 100%;
        height: min(94dvh, 780px);
        grid-template-rows: minmax(0, 1fr) 82px;
        padding: 10px;
        border-radius: 20px;
      }

      .lightbox-main {
        padding: 12px 8px 10px;
      }
    }

    .lightbox-main.is-zoomed {
      cursor: grab;
    }

    .lightbox-main.is-panning {
      cursor: grabbing;
    }

    .lightbox-close {
      position: absolute;
      top: max(12px, env(safe-area-inset-top, 0px));
      right: max(12px, env(safe-area-inset-right, 0px));
      width: 42px;
      height: 42px;
      border: 0;
      border-radius: 50%;
      background: rgba(10, 10, 10, 0.42);
      color: #fff;
      font-size: 1.4rem;
      cursor: pointer;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      z-index: 5;
      display: grid;
      place-items: center;
    }

    .lightbox-nav {
      position: absolute;
      top: 50%;
      z-index: 6;
      width: 42px;
      height: 52px;
      padding: 0;
      display: grid;
      place-items: center;
      border: 1px solid rgba(255, 255, 255, .14);
      border-radius: 999px;
      background: rgba(10, 10, 10, .4);
      color: #fff;
      font-family: Arial, sans-serif;
      font-size: 2rem;
      line-height: 1;
      cursor: pointer;
      transform: translateY(-50%);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
    }

    .lightbox-nav--prev {
      left: 10px;
    }

    .lightbox-nav--next {
      right: 10px;
    }

    .lightbox-nav:active {
      transform: translateY(-50%) scale(.94);
    }

    @media (max-width: 520px) {
      .lightbox-nav {
        width: 36px;
        height: 46px;
        font-size: 1.7rem;
      }

      .lightbox-nav--prev {
        left: 4px;
      }

      .lightbox-nav--next {
        right: 4px;
      }
    }

    .thumbs {
      display: flex;
      gap: 10px;
      overflow-x: auto;
      align-items: center;
      justify-content: flex-start;
      min-height: 92px;
      padding: 14px 6px 4px;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(255, 255, 255, 0.03);
      scrollbar-width: none;
    }

    .thumbs::-webkit-scrollbar {
      display: none;
    }

    .thumb-item {
      width: 56px;
      height: 56px;
      flex: 0 0 auto;
      border-radius: 12px;
      opacity: 0.55;
      cursor: pointer;
      border: 1px solid transparent;
      background: rgba(255, 255, 255, 0.04);
      position: relative;
      overflow: hidden;
      transition: transform 0.22s ease, opacity 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    }

    .thumb-item img,
    .thumb-item video {
      width: 56px;
      height: 56px;
      object-fit: contain;
      display: block;
    }

    .thumb-video-badge {
      right: 3px;
      bottom: 3px;
      min-width: 18px;
      height: 18px;
      font-size: 0.56rem;
    }

    .thumb-video-badge::before {
      border-left-width: 6px;
      border-top-width: 4px;
      border-bottom-width: 4px;
    }

    .thumb-item.active {
      opacity: 1;
      transform: translateY(-1px) scale(1.04);
      border-color: var(--gold-300);
      box-shadow: 0 0 0 1px rgba(var(--gold-rgb), 0.2), 0 10px 18px rgba(0, 0, 0, 0.14);
    }

    .viewer-counter {
      position: absolute;
      left: 16px;
      top: 16px;
      min-height: 34px;
      padding: 0 12px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      background: rgba(10, 10, 10, 0.36);
      color: #fff;
      font-size: 0.78rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      z-index: 4;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }

    .toast {
      position: fixed;
      left: 50%;
      bottom: calc(env(safe-area-inset-bottom, 0px) + 92px);
      transform: translate(-50%, 10px);
      max-width: min(86vw, 360px);
      padding: 12px 16px;
      border-radius: 18px;
      background: rgba(16, 8, 12, 0.88);
      color: #fff;
      font-size: 0.92rem;
      text-align: center;
      border: 1px solid rgba(255, 255, 255, 0.08);
      box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.22s ease, transform 0.22s ease;
      z-index: 1002;
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
    }

    .toast.show {
      opacity: 1;
      transform: translate(-50%, 0);
    }

      }
    }

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

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

    @keyframes overlayOut {
      from {
        opacity: 1;
        transform: translateY(0);
      }
      to {
        opacity: 0;
        transform: translateY(-12px);
      }
    }

    @keyframes waxEnter {
      0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.7);
      }
      70% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.06);
      }
      100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
      }
    }

    @keyframes waxOpenOut {
      0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter:
          drop-shadow(0 18px 35px rgba(0, 0, 0, 0.35))
          drop-shadow(0 0 18px rgba(var(--gold-rgb), 0.18));
      }
      100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.45) rotate(-7deg);
        filter:
          drop-shadow(0 34px 60px rgba(0, 0, 0, 0.16))
          drop-shadow(0 0 42px rgba(var(--gold-rgb), 0.52));
      }
    }

    @keyframes fadeAwayLuxury {
      0% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
      }
      100% {
        opacity: 0;
        transform: translateY(-12px) scale(0.98);
        filter: blur(6px);
      }
    }

    @keyframes envelopeFloat {
      0%, 100% {
        transform: translateY(0) rotateX(0deg);
      }
      50% {
        transform: translateY(-7px) rotateX(1.4deg);
      }
    }

    @keyframes envelopeFlapOpen {
      0% {
        transform: rotateX(0deg);
        filter: brightness(1);
      }
      62% {
        transform: rotateX(172deg);
        filter: brightness(1.08);
      }
      100% {
        transform: rotateX(180deg);
        filter: brightness(.98);
        z-index: 0;
      }
    }

    @keyframes envelopePaperRise {
      0% {
        transform: translateY(18%) scale(.94);
        opacity: .98;
      }
      36% {
        transform: translateY(-34%) scale(1.02);
        opacity: 1;
      }
      64% {
        transform: translateY(-44%) scale(1.07);
        opacity: 1;
      }
      100% {
        transform: translateY(-40%) scale(1.06);
        opacity: 1;
        border-radius: 9px;
      }
    }

    @keyframes envelopeHeroLanding {
      0% {
        transform: translateX(-50%) scale(1.045);
        filter: brightness(1.08) saturate(1.02);
      }
      48% {
        transform: translateX(-50%) scale(.992);
        filter: brightness(1.03) saturate(1.02);
      }
      100% {
        transform: translateX(-50%) scale(1);
        filter: brightness(1) saturate(1);
      }
    }

    @keyframes envelopeHeroPulse {
      0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(.92);
        filter: blur(24px) saturate(1.08);
      }
      38% {
        opacity: .54;
        transform: translate3d(0, -8px, 0) scale(1.04);
        filter: blur(18px) saturate(1.18);
      }
      100% {
        opacity: 0;
        transform: translate3d(0, -18px, 0) scale(1.16);
        filter: blur(26px) saturate(1);
      }
    }

    @keyframes envelopeOpenOut {
      0% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
      }
      62% {
        opacity: 1;
        transform: translateY(-6px) scale(1.01);
        filter: blur(0);
      }
      100% {
        opacity: 0;
        transform: translateY(18px) scale(.94);
        filter: blur(7px);
      }
    }

    @keyframes envelopeSealRelease {
      0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
      }
      44% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.12) rotate(-4deg);
      }
      100% {
        opacity: 0;
        transform: translate(-50%, -70%) scale(.62) rotate(12deg);
        filter:
          drop-shadow(0 20px 38px rgba(0, 0, 0, 0.14))
          drop-shadow(0 0 34px rgba(var(--opening-accent-rgb), .38));
      }
    }

    @keyframes heroDrift {
      0% { transform: scale(1.03) translate3d(0, 0, 0); }
      100% { transform: scale(1.08) translate3d(-8px, -6px, 0); }
    }

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

    @keyframes sectionGlow {
      0% {
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
      }
      100% {
        box-shadow: var(--shadow);
      }
    }

    @keyframes scrollSectionLift {
      from {
        opacity: 0;
        transform: translate3d(0, 34px, 0) scale(0.965);
        filter: blur(12px) saturate(0.88) brightness(1.08);
        box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
      }
      64% {
        opacity: 1;
        transform: translate3d(0, -3px, 0) scale(1.006);
        filter: blur(0) saturate(1.08) brightness(1.025);
      }
      to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0) saturate(1) brightness(1);
      }
    }

    @keyframes scrollMediaBloom {
      from {
        opacity: 0;
        transform: translate3d(0, 18px, 0) scale(0.88);
        filter: blur(14px) saturate(0.82) brightness(1.12);
      }
      68% {
        opacity: 1;
        transform: translate3d(0, -2px, 0) scale(1.025);
        filter: blur(0) saturate(1.1) brightness(1.04);
      }
      to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0) saturate(1);
      }
    }

    @keyframes scrollTextReveal {
      from {
        opacity: 0;
        transform: translate3d(0, 18px, 0) scale(0.975);
        filter: blur(7px) brightness(1.08);
      }
      to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0) brightness(1);
      }
    }

    @keyframes separatorLuxuryReveal {
      from {
        opacity: 0;
        transform: translate3d(0, 8px, 0) scaleX(0.72);
        filter: blur(4px);
      }
      70% {
        opacity: 0.88;
        transform: translate3d(0, 0, 0) scaleX(1.01);
        filter: blur(0);
      }
      to {
        opacity: 0.86;
        transform: translate3d(0, 0, 0) scaleX(1);
        filter: blur(0);
      }
    }

    @keyframes albumQrShine {
      0%, 14% {
        transform: translateX(0) rotate(18deg);
        opacity: 0;
      }
      30% {
        opacity: 0.74;
      }
      54%, 100% {
        transform: translateX(360%) rotate(18deg);
        opacity: 0;
      }
    }

    @keyframes giftMediaShine {
      0%, 22% {
        transform: translateX(0) rotate(18deg);
        opacity: 0;
      }
      38% {
        opacity: .62;
      }
      64%, 100% {
        transform: translateX(420%) rotate(18deg);
        opacity: 0;
      }
    }

    @media (prefers-reduced-motion: no-preference) {
      html.section-scroll-reveal .section.reveal-effect-enabled.show {
        animation: scrollSectionLift 0.95s cubic-bezier(.19,1,.22,1) both;
        transition: box-shadow 0.35s ease, border-color 0.35s ease;
      }

      html.section-scroll-reveal .section.reveal-effect-enabled .section-reveal-item {
        opacity: 0;
        transform: translate3d(0, 20px, 0) scale(0.985);
        filter: blur(8px) saturate(0.9) brightness(1.05);
        transition:
          opacity 0.74s cubic-bezier(.19,1,.22,1),
          transform 0.74s cubic-bezier(.19,1,.22,1),
          filter 0.74s cubic-bezier(.19,1,.22,1);
        will-change: opacity, transform, filter;
      }

      html.section-scroll-reveal .section.reveal-effect-enabled.show .section-reveal-item:not(.is-revealed) {
        opacity: 0;
        transform: translate3d(0, 20px, 0) scale(0.985);
      }

      html.section-scroll-reveal .section.reveal-effect-enabled .section-reveal-item--visual {
        position: relative;
        isolation: isolate;
        overflow: hidden;
      }

      html.section-scroll-reveal .section.reveal-effect-enabled .section-reveal-item--visual::after {
        content: none;
        display: none;
      }

      html.section-scroll-reveal .section.reveal-effect-enabled .section-reveal-item--button {
        overflow: visible;
      }

      html.section-scroll-reveal .section.reveal-effect-enabled .section-reveal-item--button::after {
        content: none;
        display: none;
      }

      html.section-scroll-reveal .section.reveal-effect-enabled.show .section-reveal-item--visual:not(.is-revealed) {
        opacity: 0;
        transform: translate3d(0, 18px, 0) scale(0.985);
        filter: blur(6px) saturate(0.92) brightness(1.06);
      }

      html.section-scroll-reveal .section.reveal-effect-enabled.show .section-reveal-item.is-revealed {
        animation: scrollTextReveal 0.82s cubic-bezier(.19,1,.22,1) var(--reveal-delay, 0ms) both;
        transition: none;
      }

      html.section-scroll-reveal .section.reveal-effect-enabled.show .section-reveal-item--visual.is-revealed,
      html.section-scroll-reveal .section.reveal-effect-enabled.show .section-reveal-item.featured-photo.is-revealed,
      html.section-scroll-reveal .section.reveal-effect-enabled.show .section-reveal-item.event-media-stack.is-revealed,
      html.section-scroll-reveal .section.reveal-effect-enabled.show .section-reveal-item.event-place-photo.is-revealed,
      html.section-scroll-reveal .section.reveal-effect-enabled.show .section-reveal-item.event-place-video.is-revealed,
      html.section-scroll-reveal .section.reveal-effect-enabled.show .section-reveal-item.custom-section-media.is-revealed,
      html.section-scroll-reveal .section.reveal-effect-enabled.show .section-reveal-item.gallery-showcase.is-revealed,
      html.section-scroll-reveal .section.reveal-effect-enabled.show .section-reveal-item.gallery.is-revealed,
      html.section-scroll-reveal .section.reveal-effect-enabled.show .section-reveal-item.gift-figure.is-revealed,
      html.section-scroll-reveal #dressSection.reveal-effect-enabled.show .section-reveal-item.dresscode-figure.is-revealed {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0) saturate(1) brightness(1);
        animation: none;
        transition:
          opacity 0.86s cubic-bezier(.19,1,.22,1) var(--reveal-delay, 0ms),
          transform 0.86s cubic-bezier(.19,1,.22,1) var(--reveal-delay, 0ms),
          filter 0.86s cubic-bezier(.19,1,.22,1) var(--reveal-delay, 0ms);
      }

      html.section-scroll-reveal .section.reveal-effect-enabled.show .section-reveal-item--visual.is-revealed::after {
        content: none;
        display: none;
      }

      html.section-scroll-reveal .section.reveal-effect-enabled .section-reveal-item:is(.event-media-stack, .dresscode-figure)::after {
        content: none;
        display: none;
      }

      html.section-scroll-reveal .section.reveal-effect-enabled.show .event-card {
        opacity: 1;
        transform: none;
      }

      html.section-scroll-reveal .separator.reveal-effect-enabled {
        opacity: 0;
        transform-origin: center;
      }

      html.section-scroll-reveal .separator.reveal-effect-enabled.show {
        animation: separatorLuxuryReveal 0.62s cubic-bezier(.19,1,.22,1) both;
      }
    }


    @keyframes storyCaret {
      0%, 50% { opacity: 1; }
      51%, 100% { opacity: 0; }
    }

    @keyframes separatorShine {
      0%, 18% {
        left: -44px;
        opacity: 0;
      }
      26% {
        opacity: 0.84;
      }
      52% {
        left: calc(100% + 26px);
        opacity: 0;
      }
      100% {
        left: calc(100% + 26px);
        opacity: 0;
      }
    }

    @keyframes dotPulse {
      0%, 100% { box-shadow: 0 0 16px rgba(var(--gold-rgb), 0.32); }
      50% { box-shadow: 0 0 24px rgba(var(--gold-rgb), 0.56); }
    }

    @keyframes countTick {
      0% { transform: translateY(0) scale(1); }
      35% { transform: translateY(-1px) scale(1.015); }
      100% { transform: translateY(0) scale(1); }
    }

    @keyframes softGlow {
      0%, 100% { text-shadow: 0 0 0 rgba(var(--gold-rgb), 0); }
      50% { text-shadow: 0 0 14px rgba(var(--gold-rgb), 0.35); }
    }

    @media (max-width: 520px) {
      .page {
        padding-bottom: 0;
      }

      .overlay-kicker {
        padding-top: 8.5vh;
      }

      .hero {
        width: 100vw;
        margin-left: 50%;
        transform: translateX(-50%);
        min-height: 100vh;
        min-height: 100svh;
        min-height: 100dvh;
        padding: 28px 14px 48px;
      }

      .hero-content {
        padding: 0 6px 14px;
      }

      .hero-label {
        margin-bottom: 9px;
        gap: 10px;
        font-size: calc(0.76rem * var(--hero-label-size-scale, 1));
        letter-spacing: 0.26em;
      }

      .hero-label::before,
      .hero-label::after {
        width: 20px;
        flex-basis: 20px;
      }

      .hero-name {
        padding: 0 4px 12px;
        font-size: calc(clamp(3.35rem, 12vw, 4.55rem) * var(--hero-name-size-scale, 1));
        letter-spacing: 0.02em;
        word-spacing: 0.1em;
      }

      .hero-name.name-double {
        width: calc(100vw - 24px);
        max-width: 390px;
        padding-inline: 2px;
        font-size: calc(clamp(2.55rem, 12vw, 4.05rem) * var(--hero-name-size-scale, 1));
        line-height: 1.04;
        letter-spacing: 0;
        word-spacing: 0.04em;
      }

      .hero-name.name-double.name-wedding {
        line-height: 1.16;
      }

      .hero-name.name-double.name-long {
        font-size: calc(clamp(2.32rem, 10.8vw, 3.55rem) * var(--hero-name-size-scale, 1));
      }

      .hero-name.name-double.name-very-long {
        font-size: calc(clamp(1.96rem, 9.3vw, 3rem) * var(--hero-name-size-scale, 1));
      }

      .hero-name.name-double.name-inline {
        width: fit-content;
        max-width: min(100%, calc(100vw - 24px));
        white-space: nowrap;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
        font-size: calc(clamp(2.88rem, 13.2vw, 4.18rem) * var(--hero-name-size-scale, 1));
        line-height: 1.08;
      }

      .overlay-title.name-double {
        width: calc(100vw - 34px);
        max-width: 380px;
        padding-inline: 2px;
        font-size: calc(clamp(2.16rem, 10.7vw, 3.32rem) * var(--opening-title-size-scale, 1));
        line-height: 0.96;
        letter-spacing: 0;
        word-spacing: 0.035em;
      }

      .overlay-title.name-double.name-wedding {
        line-height: 1.15;
      }

      .overlay-title.name-double.name-long {
        font-size: calc(clamp(1.9rem, 9.3vw, 2.82rem) * var(--opening-title-size-scale, 1));
      }

      .overlay-title.name-double.name-very-long {
        font-size: calc(clamp(1.54rem, 7.7vw, 2.28rem) * var(--opening-title-size-scale, 1));
      }

      .overlay-title.name-double.name-inline {
        width: fit-content;
        max-width: 380px;
        white-space: nowrap;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
        font-size: calc(clamp(2.55rem, 12.2vw, 3.72rem) * var(--opening-title-size-scale, 1));
        line-height: 1.08;
      }

      .name-duo {
        width: min(100%, 360px);
        gap: 0.01em;
      }

      .name-duo--inline {
        width: auto;
        max-width: 100%;
        gap: 0.15em;
      }

      .name-duo__separator {
        min-width: 1.44em;
        margin: -0.08em 0 -0.04em;
      }

      .name-duo--inline .name-duo__separator {
        min-width: auto;
        margin: 0;
      }

      .hero-date {
        gap: 10px;
        font-size: calc(0.76rem * var(--hero-date-size-scale, 1));
        letter-spacing: 0.2em;
      }

      .hero-date::before,
      .hero-date::after {
        width: 24px;
        flex-basis: 24px;
      }

      .section {
        padding: 24px 18px;
      }

      .section h2 {
        font-size: 1.8rem;
      }

      .section p {
        font-size: 1.06rem;
      }

      .script-block {
        font-size: 2.05rem;
      }

      .parents-grid {
        grid-template-columns: 1fr;
        gap: 22px;
      }

      .family-group + .family-group::before {
        left: 50%;
        top: -12px;
        bottom: auto;
        width: 136px;
        height: 1px;
        transform: translateX(-50%);
      }

      .family-names,
      .godparent-names {
        font-size: 1.86rem;
      }

      #countdown,
      .rsvp-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      #agendaSectionUi .utilities {
        grid-template-columns: 1fr;
      }

      .gallery-stage img,
      .gallery-stage video {
        width: 100%;
        height: 100%;
      }

      .gallery-stage {
        height: 292px;
      }

      .gallery-controls {
        align-items: flex-start;
        flex-direction: column;
      }

      .gallery-media {
        height: auto;
      }

      .gallery-item.big .gallery-media {
        height: auto;
      }

      .dresscode-figure img {
        width: min(168px, 62%);
      }

      .gift-figure img {
        width: min(104px, 38%);
      }
    }

    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible,
    [tabindex]:focus-visible {
      outline: 3px solid rgba(var(--gold-rgb), 0.9) !important;
      outline-offset: 3px !important;
      box-shadow: 0 0 0 5px rgba(var(--gold-rgb), 0.18) !important;
    }

    .launch-status,
    .warp-flash,
    .mission-accepted,
    .hero-hud {
      display: none;
    }

    html.theme-space-ranger body {
      background:
        radial-gradient(circle at 14% var(--content-gradient-12), rgba(var(--particle-rgb), 0.14), transparent 24%),
        radial-gradient(circle at 82% var(--content-gradient-22), rgba(var(--gold-rgb), 0.18), transparent 28%),
        radial-gradient(circle at 50% var(--content-gradient-78), rgba(var(--script-rgb), 0.16), transparent 36%),
        linear-gradient(180deg, var(--bg-top) 0%, var(--bg-top) var(--content-gradient-start), var(--bg-mid) var(--content-gradient-52), var(--bg-bottom) 100%);
    }

    html.theme-space-ranger body::before {
      background:
        radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.76) 0 1px, transparent 1.5px),
        radial-gradient(circle at 76% 24%, rgba(var(--particle-rgb), 0.72) 0 1px, transparent 1.5px),
        radial-gradient(circle at 62% 72%, rgba(255, 255, 255, 0.58) 0 1px, transparent 1.5px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%);
      background-size: 180px 180px, 240px 240px, 150px 150px, auto;
      opacity: 0.9;
    }

    html.theme-space-ranger body::after {
      opacity: 0;
    }

    html.theme-space-ranger .overlay::before {
      filter: blur(34px) saturate(0.7);
      opacity: calc(var(--opening-photo-a) + 0.08);
    }

    html.theme-space-ranger .overlay::after {
      background:
        linear-gradient(180deg, rgba(255, 255, 255, var(--opening-glass-top-a)), rgba(255, 255, 255, var(--opening-glass-mid-a)) 24%, rgba(255, 255, 255, var(--opening-glass-bottom-a)) 100%),
        radial-gradient(circle at 50% 50%, rgba(var(--gold-rgb), 0.1), transparent 32%);
    }

    html.theme-space-ranger .overlay-card::before {
      inset: 18px;
      border-color: rgba(var(--particle-rgb), 0.2);
      box-shadow:
        inset 0 0 0 1px rgba(var(--gold-rgb), 0.08),
        0 0 36px rgba(var(--gold-rgb), 0.08);
    }

    html.theme-space-ranger .overlay-card::after {
      background: radial-gradient(circle, rgba(var(--gold-rgb), 0.22), rgba(var(--particle-rgb), 0.08) 46%, transparent 74%);
    }

    html.theme-space-ranger .overlay-kicker,
    html.theme-space-ranger .hero-label,
    html.theme-space-ranger .hero-date,
    html.theme-space-ranger .eyebrow,
    html.theme-space-ranger .countdown-caption {
      font-family: var(--font-display);
      font-weight: 700;
      letter-spacing: 0.13em;
      text-transform: uppercase;
    }

    html.theme-space-ranger .overlay-title {
      max-width: min(86vw, 360px);
      font-weight: 800;
      line-height: 1.12;
      white-space: normal;
      overflow-wrap: anywhere;
      color: var(--opening-title);
      background: linear-gradient(90deg, #ffffff, var(--opening-accent), var(--particle-color), #ffffff);
      background-size: 220% auto;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      text-shadow: 0 10px 30px rgba(0, 0, 0, 0.34);
    }

    html.theme-space-ranger .wax-btn {
      filter:
        drop-shadow(0 18px 35px rgba(0, 0, 0, 0.38))
        drop-shadow(0 0 18px rgba(var(--gold-rgb), 0.22));
    }

    html.theme-space-ranger .wax-btn::before {
      width: 220px;
      height: 220px;
      border: 1px solid rgba(var(--gold-rgb), 0.28);
      border-radius: 50%;
      background:
        conic-gradient(from 0deg, transparent 0 22%, rgba(var(--gold-rgb), 0.48) 24%, transparent 28% 58%, rgba(var(--particle-rgb), 0.42) 60%, transparent 65% 100%);
      animation: spaceRadarSpin 5.6s linear infinite;
    }

    html.theme-space-ranger .wax-btn::after {
      background: radial-gradient(circle, rgba(var(--gold-rgb), 0.16), rgba(var(--gold-rgb), 0.05) 34%, transparent 72%);
      animation: spaceBeaconPulse 2.1s ease-in-out infinite;
    }

    html.theme-space-ranger .launch-status {
      position: absolute;
      left: 50%;
      top: calc(50% + 88px);
      transform: translateX(-50%);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-width: 190px;
      padding: 6px 12px;
      border: 1px solid rgba(var(--gold-rgb), 0.24);
      border-radius: 999px;
      background: rgba(8, 20, 47, 0.24);
      color: rgba(var(--particle-rgb), 0.88);
      font-family: var(--font-display);
      font-size: 0.58rem;
      font-weight: 700;
      letter-spacing: 0.11em;
      text-transform: uppercase;
      white-space: nowrap;
      animation: spaceLaunchStatus 2s ease-in-out infinite;
    }

    html.theme-space-ranger .launch-status span {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--gold-500);
      box-shadow: 0 0 12px rgba(var(--gold-rgb), 0.78);
      animation: spaceBeaconPulse 1.25s ease-in-out infinite;
    }

    html.theme-space-ranger .launch-status span:last-child {
      animation-delay: 0.35s;
    }

    html.theme-space-ranger .wax-caption {
      color: var(--opening-accent);
      font-family: var(--font-display);
      font-size: calc(0.78rem * var(--opening-caption-size-scale, 1));
      font-weight: 800;
      letter-spacing: 0.16em;
    }

    html.theme-space-ranger .overlay.opening .overlay-card {
      animation: spaceLaunchRumble 0.68s ease-in-out forwards;
    }

    html.theme-space-ranger .overlay.opening::after {
      animation: spaceLaunchScan 0.62s ease-in-out forwards;
    }

    html.theme-space-ranger .overlay.opening .overlay-kicker,
    html.theme-space-ranger .overlay.opening .overlay-title,
    html.theme-space-ranger .overlay.opening .wax-caption,
    html.theme-space-ranger .overlay.opening .launch-status {
      animation: fadeAwayLuxury 0.45s ease forwards;
    }

    html.theme-space-ranger .warp-flash {
      position: fixed;
      inset: 0;
      z-index: 1200;
      display: block;
      pointer-events: none;
      opacity: 0;
      background:
        radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.92) 0 3%, rgba(var(--gold-rgb), 0.62) 4% 12%, rgba(var(--particle-rgb), 0.3) 13% 28%, transparent 52%),
        repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, 0.42) 0deg 1.2deg, transparent 1.2deg 10deg);
      mix-blend-mode: screen;
      transform: scale(0.2);
    }

    html.theme-space-ranger .warp-flash.active {
      animation: spaceWarpLaunch 1.18s cubic-bezier(.16, 1, .3, 1) forwards;
    }

    html.theme-space-ranger .mission-accepted {
      position: fixed;
      left: 50%;
      top: max(28px, env(safe-area-inset-top, 0px));
      z-index: 900;
      display: block;
      transform: translate(-50%, -18px) scale(0.96);
      width: min(86vw, 340px);
      padding: 10px 18px;
      border: 1px solid rgba(var(--gold-rgb), 0.36);
      border-radius: 999px;
      background:
        linear-gradient(90deg, rgba(8, 20, 47, 0.2), rgba(var(--gold-rgb), 0.18), rgba(var(--particle-rgb), 0.14), rgba(8, 20, 47, 0.2));
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 0 28px rgba(var(--gold-rgb), 0.16);
      color: var(--gold-100);
      font-family: var(--font-display);
      font-size: 0.78rem;
      font-weight: 800;
      letter-spacing: 0.12em;
      text-align: center;
      text-transform: uppercase;
      text-shadow: 0 0 16px rgba(var(--gold-rgb), 0.42);
      pointer-events: none;
      opacity: 0;
    }

    html.theme-space-ranger .mission-accepted.active {
      animation: spaceMissionAccepted 1.75s cubic-bezier(.16, 1, .3, 1) forwards;
    }

    html.theme-space-ranger .hero::before {
      z-index: 2;
      background:
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 7px),
        linear-gradient(100deg, transparent 0 34%, rgba(var(--gold-rgb), 0.12) 45%, rgba(var(--particle-rgb), 0.1) 50%, transparent 62% 100%);
      opacity: 0.28;
      mix-blend-mode: screen;
      animation: spaceHeroScan 7s ease-in-out infinite;
    }

    html.theme-space-ranger.apple-hero-scroll .hero::before {
      opacity: max(0.28, var(--apple-hero-light-opacity));
    }

    html.theme-space-ranger .hero::after {
      background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.26) 23%, rgba(0, 0, 0, 0.06) 42%, rgba(0, 0, 0, 0) 58%);
    }

    html.theme-space-ranger .hero-hud {
      position: absolute;
      inset: max(20px, env(safe-area-inset-top, 0px)) 18px max(28px, env(safe-area-inset-bottom, 0px));
      z-index: 3;
      display: block;
      pointer-events: none;
      opacity: 0.78;
    }

    html.theme-space-ranger .hero-hud span {
      position: absolute;
      width: 56px;
      height: 56px;
      border-color: rgba(var(--gold-rgb), 0.72);
      filter: drop-shadow(0 0 12px rgba(var(--gold-rgb), 0.34));
      animation: spaceHudPulse 3.8s ease-in-out infinite;
    }

    html.theme-space-ranger .hero-hud span:nth-child(1) {
      left: 0;
      top: 0;
      border-left: 2px solid;
      border-top: 2px solid;
    }

    html.theme-space-ranger .hero-hud span:nth-child(2) {
      right: 0;
      top: 0;
      border-right: 2px solid;
      border-top: 2px solid;
      animation-delay: 0.3s;
    }

    html.theme-space-ranger .hero-hud span:nth-child(3) {
      left: 0;
      bottom: 0;
      border-left: 2px solid;
      border-bottom: 2px solid;
      animation-delay: 0.6s;
    }

    html.theme-space-ranger .hero-hud span:nth-child(4) {
      right: 0;
      bottom: 0;
      border-right: 2px solid;
      border-bottom: 2px solid;
      animation-delay: 0.9s;
    }

    html.theme-space-ranger .hero-name {
      max-width: min(100%, 360px);
      font-size: calc(2.7rem * var(--hero-name-size-scale, 1));
      font-weight: 800;
      line-height: 1.04;
      white-space: normal;
      overflow-wrap: anywhere;
      text-wrap: balance;
      text-shadow:
        0 0 16px rgba(var(--gold-soft-rgb), 0.16),
        0 2px 8px rgba(0, 0, 0, 0.18),
        0 12px 28px rgba(0, 0, 0, 0.22);
    }

    @media (min-width: 390px) {
      html.theme-space-ranger .hero-name {
        font-size: calc(3.05rem * var(--hero-name-size-scale, 1));
      }
    }

    html.theme-space-ranger .section {
      background:
        linear-gradient(180deg, var(--section-fill-top), var(--space-section-fill-bottom)),
        linear-gradient(135deg, rgba(var(--gold-rgb), var(--space-section-accent-a)), rgba(var(--particle-rgb), var(--space-section-particle-a)));
      border: 1px solid rgba(var(--gold-rgb), 0.32);
      box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        0 22px 52px rgba(0, 0, 0, 0.34),
        0 0 26px rgba(var(--gold-rgb), 0.08);
    }

    html.theme-space-ranger .section::after {
      box-shadow: inset 0 0 24px rgba(var(--particle-rgb), 0.05);
    }

    html.theme-space-ranger .section h2,
    html.theme-space-ranger .event-time,
    html.theme-space-ranger .timeline-time {
      font-family: var(--font-display);
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    html.theme-space-ranger .script-block,
    html.theme-space-ranger .family-names,
    html.theme-space-ranger .godparent-names {
      font-family: var(--font-body);
      color: var(--text);
    }

    html.theme-space-ranger .timeline::before {
      background: linear-gradient(180deg, transparent, rgba(var(--gold-rgb), 0.92), rgba(var(--particle-rgb), 0.48), transparent);
      box-shadow: 0 0 18px rgba(var(--gold-rgb), 0.22);
    }

    html.theme-space-ranger .timeline-dot {
      background: var(--gold-500);
      box-shadow:
        0 0 0 6px rgba(var(--gold-rgb), 0.12),
        0 0 18px rgba(var(--gold-rgb), 0.48);
    }

    html.theme-space-ranger .countdown-shell {
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(8, 20, 47, 0.34)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 18px);
      border: 1px solid rgba(var(--gold-rgb), 0.26);
      box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 0 26px rgba(var(--particle-rgb), 0.05),
        0 16px 34px rgba(0, 0, 0, 0.16);
      position: relative;
      overflow: hidden;
    }

    html.theme-space-ranger .countdown-shell::before {
      content: "STAR COMMAND // LAUNCH TIMER";
      display: block;
      margin: 0 auto 10px;
      width: fit-content;
      padding: 4px 10px;
      border-radius: 999px;
      background: rgba(var(--gold-rgb), 0.12);
      border: 1px solid rgba(var(--gold-rgb), 0.28);
      font-family: var(--font-display);
      font-size: 0.54rem;
      letter-spacing: 0.1em;
      color: var(--gold-300);
    }

    html.theme-space-ranger .countdown-shell::after {
      content: "";
      position: absolute;
      left: 12px;
      right: 12px;
      top: 11px;
      height: 3px;
      border-radius: 999px;
      background: linear-gradient(90deg, var(--particle-color), var(--gold-500), var(--script-color));
      box-shadow: 0 0 18px rgba(var(--gold-rgb), 0.34);
      animation: spaceStatusBar 2.4s ease-in-out infinite;
    }

    html.theme-space-ranger .count-box {
      position: relative;
      overflow: hidden;
      background:
        radial-gradient(circle at 50% 0%, rgba(var(--gold-rgb), 0.16), transparent 58%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
      border-color: rgba(var(--gold-rgb), 0.22);
      animation: spaceConsoleBreath 4.2s ease-in-out infinite;
    }

    html.theme-space-ranger .count-box::before {
      content: "";
      position: absolute;
      left: 8px;
      right: 8px;
      bottom: 6px;
      height: 2px;
      border-radius: 999px;
      background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), 0.72), transparent);
      opacity: 0.62;
    }

    html.theme-space-ranger .count-box::after {
      content: "";
      position: absolute;
      right: 8px;
      top: 8px;
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--gold-500);
      box-shadow: 0 0 10px rgba(var(--gold-rgb), 0.74);
      animation: spaceBeaconPulse 1.8s ease-in-out infinite;
    }

    html.theme-space-ranger .count-box em {
      display: block;
      margin-bottom: 3px;
      font-family: var(--font-display);
      font-style: normal;
      font-size: 0.52rem;
      letter-spacing: 0.08em;
      color: rgba(var(--particle-rgb), 0.74);
    }

    html.theme-space-ranger .count-box strong {
      font-family: var(--font-display);
      font-weight: 800;
      color: var(--gold-100);
      text-shadow:
        0 0 12px rgba(var(--gold-rgb), 0.34),
        0 2px 0 rgba(53, 16, 108, 0.32);
    }

    html.theme-space-ranger .btn,
    html.theme-space-ranger .rsvp-buttons button,
    html.theme-space-ranger .brand-cta a {
      font-family: var(--font-display);
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    @keyframes spaceWarpLaunch {
      0% { opacity: 0; transform: scale(0.08) rotate(0deg); filter: blur(2px); }
      16% { opacity: 0.86; transform: scale(0.54) rotate(4deg); filter: blur(0); }
      44% { opacity: 0.72; transform: scale(1.28) rotate(12deg); filter: blur(5px); }
      100% { opacity: 0; transform: scale(2.9) rotate(24deg); filter: blur(18px); }
    }

    @keyframes spaceMissionAccepted {
      0% { opacity: 0; transform: translate(-50%, -18px) scale(0.96); filter: blur(8px); }
      18%, 62% { opacity: 1; transform: translate(-50%, 0) scale(1); filter: blur(0); }
      100% { opacity: 0; transform: translate(-50%, -10px) scale(1.02); filter: blur(7px); }
    }

    @keyframes spaceLaunchRumble {
      0%, 100% { transform: translate3d(0, 0, 0); filter: saturate(1); }
      16% { transform: translate3d(-2px, 2px, 0) scale(1.004); }
      32% { transform: translate3d(2px, -1px, 0) scale(1.008); }
      48% { transform: translate3d(-1px, -2px, 0) scale(1.012); filter: saturate(1.35); }
      70% { transform: translate3d(1px, 1px, 0) scale(1.02); }
    }

    @keyframes spaceLaunchScan {
      0% { opacity: 0.32; transform: scale(1); }
      55% { opacity: 0.78; }
      100% { opacity: 0.16; transform: scale(1.08); }
    }

    @keyframes spaceLaunchStatus {
      0%, 100% { opacity: 0.72; transform: translateX(-50%) scale(0.98); }
      50% { opacity: 1; transform: translateX(-50%) scale(1); }
    }

    @keyframes spaceRadarSpin {
      to { transform: translate(-50%, -50%) rotate(360deg); }
    }

    @keyframes spaceBeaconPulse {
      0%, 100% { opacity: 0.45; transform: scale(0.96); }
      50% { opacity: 1; transform: scale(1.04); }
    }

    @keyframes spaceHeroScan {
      0%, 100% { transform: translateY(-8%); opacity: 0.18; }
      50% { transform: translateY(8%); opacity: 0.34; }
    }

    @keyframes spaceHudPulse {
      0%, 100% { opacity: 0.42; transform: scale(0.98); }
      50% { opacity: 0.86; transform: scale(1.02); }
    }

    @keyframes spaceConsoleBreath {
      0%, 100% { border-color: rgba(var(--gold-rgb), 0.18); }
      50% { border-color: rgba(var(--particle-rgb), 0.24); }
    }

    @keyframes spaceStatusBar {
      0%, 100% { transform: scaleX(0.72); opacity: 0.58; }
      50% { transform: scaleX(1); opacity: 0.95; }
    }

    #countdown-section.countdown-style-pulse .countdown-shell {
      position: relative;
      isolation: isolate;
      padding: 16px 10px 10px;
      border: 1px solid rgba(var(--timeline-rgb), 0.18);
      border-radius: 28px;
      background:
        radial-gradient(circle at 50% 0%, rgba(var(--timeline-rgb), 0.16), transparent 58%),
        rgba(255, 255, 255, 0.035);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 36px rgba(0, 0, 0, 0.12);
      overflow: hidden;
    }

    #countdown-section.countdown-style-pulse .countdown-shell::before {
      content: "";
      position: absolute;
      inset: 12px 18px auto;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(var(--timeline-rgb), 0.72), transparent);
      opacity: 0.72;
      z-index: -1;
    }

    #countdown-section.countdown-style-pulse #countdown {
      gap: 8px;
      margin-top: 10px;
    }

    #countdown-section.countdown-style-pulse .count-box {
      border-radius: 999px;
      padding: 13px 6px 12px;
      background:
        radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.12), transparent 52%),
        rgba(var(--timeline-rgb), 0.08);
      border-color: rgba(var(--timeline-rgb), 0.2);
      animation: countdownBreath 3.4s ease-in-out infinite;
    }

    #countdown-section.countdown-style-pulse .count-box:nth-child(2) { animation-delay: 0.18s; }
    #countdown-section.countdown-style-pulse .count-box:nth-child(3) { animation-delay: 0.36s; }
    #countdown-section.countdown-style-pulse .count-box:nth-child(4) { animation-delay: 0.54s; }

    #countdown-section.countdown-style-pulse .count-box.tick {
      animation: countdownHeartbeat 0.62s ease, countdownBreath 3.4s ease-in-out infinite;
    }

    #countdown-section.countdown-style-pulse .count-box strong {
      color: var(--script-color);
      text-shadow: 0 0 16px rgba(var(--timeline-rgb), 0.22);
    }

    #countdown-section.countdown-style-crystal .countdown-shell {
      position: relative;
      padding: 18px 12px 12px;
      border-radius: 22px;
      border: 1px solid rgba(255, 255, 255, 0.13);
      background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.026)),
        rgba(var(--section-title-rgb), 0.05);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 18px 40px rgba(0, 0, 0, 0.14);
      backdrop-filter: blur(10px);
      overflow: hidden;
    }

    #countdown-section.countdown-style-crystal .countdown-shell::after {
      content: "";
      position: absolute;
      inset: 0 auto 0 -48%;
      width: 42%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
      transform: skewX(-18deg);
      animation: countdownCrystalShine 5.4s ease-in-out infinite;
      pointer-events: none;
    }

    #countdown-section.countdown-style-crystal #countdown {
      gap: 9px;
      margin-top: 8px;
    }

    #countdown-section.countdown-style-crystal .count-box {
      position: relative;
      border-radius: 18px;
      padding: 13px 7px;
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035));
      border-color: rgba(255, 255, 255, 0.14);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 10px 22px rgba(0, 0, 0, 0.1);
    }

    #countdown-section.countdown-style-crystal .count-box::before {
      content: "";
      position: absolute;
      left: 10px;
      right: 10px;
      top: 7px;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.56), transparent);
    }

    #countdown-section.countdown-style-crystal .count-box.tick {
      animation: countdownGlassTick 0.48s ease;
    }

    #countdown-section.countdown-style-editorial .countdown-shell {
      padding: 4px 0 0;
      border-radius: 0;
      background: transparent;
      border-top: 1px solid rgba(var(--timeline-rgb), 0.52);
      border-bottom: 1px solid rgba(var(--timeline-rgb), 0.32);
      box-shadow: none;
    }

    #countdown-section.countdown-style-editorial #countdown {
      gap: 0;
      margin-top: 12px;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    #countdown-section.countdown-style-editorial .count-box {
      border: 0;
      border-radius: 0;
      padding: 14px 4px 12px;
      background: transparent;
      box-shadow: none;
    }

    #countdown-section.countdown-style-editorial .count-box + .count-box {
      border-left: 1px solid rgba(var(--timeline-rgb), 0.24);
    }

    #countdown-section.countdown-style-editorial .count-box strong {
      font-family: var(--font-display);
      font-size: clamp(1.7rem, 4.6vw, 2.25rem);
      font-weight: 400;
      color: var(--section-title);
    }

    #countdown-section.countdown-style-editorial .count-box span {
      margin-top: 8px;
      color: var(--muted);
    }

    #countdown-section.countdown-style-editorial .count-box.tick strong {
      animation: countdownEditorialTick 0.42s ease;
    }

    @keyframes countdownBreath {
      0%, 100% { transform: scale(1); border-color: rgba(var(--timeline-rgb), 0.16); }
      50% { transform: scale(1.018); border-color: rgba(var(--timeline-rgb), 0.32); }
    }

    @keyframes countdownHeartbeat {
      0%, 100% { transform: scale(1); }
      28% { transform: scale(1.06); }
      48% { transform: scale(0.985); }
      70% { transform: scale(1.035); }
    }

    @keyframes countdownCrystalShine {
      0%, 42% { transform: translateX(0) skewX(-18deg); opacity: 0; }
      52% { opacity: 1; }
      72%, 100% { transform: translateX(360%) skewX(-18deg); opacity: 0; }
    }

    @keyframes countdownGlassTick {
      0% { transform: translateY(0); filter: brightness(1); }
      45% { transform: translateY(-2px); filter: brightness(1.16); }
      100% { transform: translateY(0); filter: brightness(1); }
    }

    @keyframes countdownEditorialTick {
      0% { transform: translateY(0); opacity: 0.72; }
      45% { transform: translateY(-3px); opacity: 1; }
      100% { transform: translateY(0); opacity: 1; }
    }

    #countdown-section.countdown-style-classic .countdown-shell,
    #countdown-section.countdown-style-crystal .countdown-shell,
    #countdown-section.countdown-style-editorial .countdown-shell,
    #countdown-section.countdown-style-pulse .countdown-shell {
      position: relative;
      overflow: visible;
      isolation: isolate;
      background: transparent;
      backdrop-filter: none;
    }

    #countdown-section.countdown-style-classic #countdown,
    #countdown-section.countdown-style-crystal #countdown,
    #countdown-section.countdown-style-editorial #countdown,
    #countdown-section.countdown-style-pulse #countdown {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    #countdown-section.countdown-style-classic .count-box,
    #countdown-section.countdown-style-crystal .count-box,
    #countdown-section.countdown-style-editorial .count-box,
    #countdown-section.countdown-style-pulse .count-box {
      position: relative;
      overflow: hidden;
      transform-origin: center;
    }

    #countdown-section.countdown-style-classic h2 {
      font-family: var(--font-display);
      font-size: clamp(2.15rem, 9vw, 3.35rem);
      font-weight: 400;
      letter-spacing: 0;
      color: var(--section-title);
    }

    #countdown-section.countdown-style-classic #countdownIntro {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      margin-top: 8px;
      font-size: 0.72rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--muted);
    }

    #countdown-section.countdown-style-classic #countdownIntro::before,
    #countdown-section.countdown-style-classic #countdownIntro::after {
      content: "";
      width: 42px;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(var(--timeline-rgb), 0.62));
    }

    #countdown-section.countdown-style-classic #countdownIntro::after {
      background: linear-gradient(90deg, rgba(var(--timeline-rgb), 0.62), transparent);
    }

    #countdown-section.countdown-style-classic .countdown-shell {
      margin-top: 14px;
      padding: 8px 0 2px;
      border: 0;
      box-shadow: none;
    }

    #countdown-section.countdown-style-classic #countdown {
      gap: 7px;
      margin-top: 12px;
    }

    #countdown-section.countdown-style-classic .count-box {
      min-height: 104px;
      display: grid;
      align-content: center;
      padding: 14px 6px 12px;
      border-radius: 18px;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.018));
      border: 1px solid rgba(var(--timeline-rgb), 0.48);
      box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 0 0 4px rgba(var(--timeline-rgb), 0.055),
        0 10px 20px rgba(0, 0, 0, 0.09);
    }

    #countdown-section.countdown-style-classic .count-box::before,
    #countdown-section.countdown-style-classic .count-box::after {
      content: "";
      position: absolute;
      left: 50%;
      width: 34px;
      height: 1px;
      transform: translateX(-50%);
      background: linear-gradient(90deg, transparent, rgba(var(--timeline-rgb), 0.86), transparent);
    }

    #countdown-section.countdown-style-classic .count-box::before { top: 13px; }
    #countdown-section.countdown-style-classic .count-box::after { bottom: 13px; }

    #countdown-section.countdown-style-classic .count-box strong {
      font-family: var(--font-display);
      font-size: clamp(1.85rem, 6.3vw, 2.55rem);
      font-weight: 400;
      color: var(--section-title);
    }

    #countdown-section.countdown-style-classic .count-box span {
      color: var(--text);
      opacity: 0.82;
    }

    #countdown-section.countdown-style-classic .count-box.tick {
      animation: countdownOrnateTick 0.52s ease;
    }

    #countdown-section.countdown-style-crystal h2 {
      font-family: var(--font-body);
      font-size: clamp(1.15rem, 5vw, 1.75rem);
      font-weight: 500;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--text);
    }

    #countdown-section.countdown-style-crystal #countdownIntro {
      margin-top: 8px;
      font-size: 0.62rem;
      letter-spacing: 0.34em;
      text-transform: uppercase;
      color: var(--timeline-color);
    }

    #countdown-section.countdown-style-crystal .countdown-shell {
      margin-top: 16px;
      padding: 2px 0;
      border: 0;
      box-shadow: none;
    }

    #countdown-section.countdown-style-crystal .countdown-shell::after {
      display: none;
    }

    #countdown-section.countdown-style-crystal #countdown {
      gap: 9px;
      margin-top: 14px;
    }

    #countdown-section.countdown-style-crystal .count-box {
      min-height: 100px;
      display: grid;
      align-content: center;
      padding: 14px 6px 12px;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(var(--timeline-rgb), 0.22);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.09),
        0 12px 22px rgba(0, 0, 0, 0.1);
    }

    #countdown-section.countdown-style-crystal .count-box strong {
      font-family: var(--font-body);
      font-size: clamp(1.85rem, 6vw, 2.35rem);
      font-weight: 300;
      color: var(--text);
    }

    #countdown-section.countdown-style-crystal .count-box span {
      position: relative;
      padding-top: 8px;
      color: var(--muted);
    }

    #countdown-section.countdown-style-crystal .count-box span::before {
      content: "";
      position: absolute;
      left: 50%;
      top: 0;
      width: 22px;
      height: 1px;
      transform: translateX(-50%);
      background: rgba(var(--timeline-rgb), 0.56);
    }

    #countdown-section.countdown-style-crystal .count-box.tick {
      animation: countdownCleanTick 0.46s ease;
    }

    #countdown-section.countdown-style-editorial h2 {
      font-family: var(--font-display);
      font-size: clamp(2.35rem, 10vw, 3.9rem);
      font-weight: 400;
      letter-spacing: 0;
      color: var(--section-title);
      text-shadow: 0 0 18px rgba(var(--timeline-rgb), 0.2);
    }

    #countdown-section.countdown-style-editorial #countdownIntro {
      margin-top: 6px;
      color: var(--timeline-color);
      letter-spacing: 0.08em;
      text-transform: none;
    }

    #countdown-section.countdown-style-editorial .countdown-shell {
      margin-top: 14px;
      padding: 12px 2px 4px;
      border: 0;
      box-shadow: none;
    }

    #countdown-section.countdown-style-editorial #countdown {
      gap: 8px;
      margin-top: 10px;
      border: 0;
    }

    #countdown-section.countdown-style-editorial .count-box {
      min-height: 105px;
      display: grid;
      align-content: center;
      padding: 14px 5px 12px;
      border-radius: 20px;
      background:
        radial-gradient(circle at 50% 0%, rgba(var(--timeline-rgb), 0.12), transparent 52%),
        rgba(0, 0, 0, 0.18);
      border: 1px solid rgba(var(--timeline-rgb), 0.58);
      box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.035),
        0 0 20px rgba(var(--timeline-rgb), 0.1);
    }

    #countdown-section.countdown-style-editorial .count-box + .count-box {
      border-left: 1px solid rgba(var(--timeline-rgb), 0.58);
    }

    #countdown-section.countdown-style-editorial .count-box::before,
    #countdown-section.countdown-style-editorial .count-box::after {
      content: "";
      position: absolute;
      left: 11px;
      right: 11px;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(var(--timeline-rgb), 0.86), transparent);
    }

    #countdown-section.countdown-style-editorial .count-box::before { top: 11px; }
    #countdown-section.countdown-style-editorial .count-box::after { bottom: 11px; }

    #countdown-section.countdown-style-editorial .count-box strong {
      font-family: var(--font-display);
      font-size: clamp(1.95rem, 6.5vw, 2.65rem);
      font-weight: 500;
      color: var(--timeline-color);
      text-shadow: 0 0 16px rgba(var(--timeline-rgb), 0.22);
    }

    #countdown-section.countdown-style-editorial .count-box span {
      color: var(--text);
      opacity: 0.86;
    }

    #countdown-section.countdown-style-editorial .count-box.tick {
      animation: countdownGalaGlow 0.58s ease;
    }

    #countdown-section.countdown-style-editorial .count-box.tick strong {
      animation: none;
    }

    #countdown-section.countdown-style-pulse h2 {
      font-family: var(--font-display);
      font-size: clamp(1.85rem, 8vw, 3rem);
      font-weight: 400;
      line-height: 0.95;
      color: var(--section-title);
    }

    #countdown-section.countdown-style-pulse #countdownIntro {
      width: min(260px, 100%);
      margin: 12px auto 0;
      font-size: 0.66rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
    }

    #countdown-section.countdown-style-pulse .countdown-shell {
      margin-top: 16px;
      padding: 10px 0 4px;
      border: 0;
      box-shadow: none;
    }

    #countdown-section.countdown-style-pulse .countdown-shell::before {
      display: none;
    }

    #countdown-section.countdown-style-pulse #countdown {
      gap: 8px;
      margin-top: 10px;
    }

    #countdown-section.countdown-style-pulse .count-box {
      min-height: 98px;
      display: grid;
      align-content: center;
      padding: 13px 5px 11px;
      border-radius: 16px;
      background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.025));
      border: 1px solid rgba(var(--section-title-rgb), 0.26);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 0 0 1px rgba(var(--timeline-rgb), 0.06),
        0 12px 24px rgba(0, 0, 0, 0.1);
      animation: countdownMagicFloat 4.2s ease-in-out infinite;
    }

    #countdown-section.countdown-style-pulse .count-box:nth-child(2) { animation-delay: 0.2s; }
    #countdown-section.countdown-style-pulse .count-box:nth-child(3) { animation-delay: 0.4s; }
    #countdown-section.countdown-style-pulse .count-box:nth-child(4) { animation-delay: 0.6s; }

    #countdown-section.countdown-style-pulse .count-box::before {
      content: "";
      position: absolute;
      inset: 7px;
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      pointer-events: none;
    }

    #countdown-section.countdown-style-pulse .count-box::after {
      content: "";
      position: absolute;
      right: 12px;
      top: 10px;
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: var(--timeline-color);
      box-shadow: 0 0 10px rgba(var(--timeline-rgb), 0.72);
      animation: countdownTinySpark 2.6s ease-in-out infinite;
    }

    #countdown-section.countdown-style-pulse .count-box strong {
      font-family: var(--font-display);
      font-size: clamp(1.8rem, 6.2vw, 2.45rem);
      font-weight: 400;
      color: var(--section-title);
    }

    #countdown-section.countdown-style-pulse .count-box span {
      color: var(--text);
      opacity: 0.84;
    }

    #countdown-section.countdown-style-pulse .count-box.tick {
      animation: countdownMagicBeat 0.62s ease, countdownMagicFloat 4.2s ease-in-out infinite;
    }

    @keyframes countdownOrnateTick {
      0%, 100% { transform: scale(1); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), inset 0 0 0 4px rgba(var(--timeline-rgb),0.055), 0 10px 20px rgba(0,0,0,0.09); }
      45% { transform: scale(1.025); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), inset 0 0 0 4px rgba(var(--timeline-rgb),0.12), 0 12px 24px rgba(0,0,0,0.12); }
    }

    @keyframes countdownCleanTick {
      0%, 100% { transform: translateY(0); }
      45% { transform: translateY(-2px); }
    }

    @keyframes countdownGalaGlow {
      0%, 100% { transform: scale(1); filter: brightness(1); }
      45% { transform: scale(1.035); filter: brightness(1.18); }
    }

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

    @keyframes countdownTinySpark {
      0%, 100% { opacity: 0.34; transform: scale(0.88); }
      50% { opacity: 1; transform: scale(1.22); }
    }

    @keyframes countdownMagicBeat {
      0%, 100% { transform: scale(1); }
      30% { transform: scale(1.055); }
      52% { transform: scale(0.985); }
      74% { transform: scale(1.025); }
    }

    #countdown-section.countdown-style-classic h2 {
      margin: 0 0 12px;
      font-family: inherit;
      font-size: 2.02rem;
      font-weight: 600;
      line-height: normal;
      letter-spacing: 0;
      text-transform: none;
      color: var(--section-title);
      text-shadow: none;
    }

    #countdown-section.countdown-style-classic #countdownIntro {
      display: block;
      width: auto;
      margin: 0;
      font-size: 1.12rem;
      line-height: 1.62;
      letter-spacing: 0;
      text-transform: none;
      color: var(--text);
    }

    #countdown-section.countdown-style-classic #countdownIntro::before,
    #countdown-section.countdown-style-classic #countdownIntro::after,
    #countdown-section.countdown-style-classic .count-box::before,
    #countdown-section.countdown-style-classic .count-box::after {
      content: none;
      display: none;
    }

    #countdown-section.countdown-style-classic .countdown-shell {
      position: relative;
      overflow: visible;
      isolation: auto;
      margin-top: 18px;
      padding: 10px 4px 2px;
      border-radius: 0;
      background: transparent;
      border: 0;
      box-shadow: none;
      backdrop-filter: none;
    }

    #countdown-section.countdown-style-classic #countdown {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      margin-top: 18px;
    }

    #countdown-section.countdown-style-classic .count-box {
      position: static;
      overflow: visible;
      display: block;
      min-height: 0;
      padding: 12px 8px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.035);
      border: 1px solid rgba(255, 255, 255, 0.05);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 6px 16px rgba(0, 0, 0, 0.08);
      transform-origin: center;
      animation: none;
    }

    #countdown-section.countdown-style-classic .count-box strong {
      display: block;
      font-family: inherit;
      font-size: clamp(1.45rem, 4vw, 1.9rem);
      font-weight: 500;
      line-height: 1;
      color: var(--section-title);
      text-shadow: none;
    }

    #countdown-section.countdown-style-classic .count-box span {
      display: block;
      margin-top: 6px;
      padding-top: 0;
      font-size: 0.6rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--muted);
      opacity: 1;
    }

    #countdown-section.countdown-style-classic .count-box span::before {
      content: none;
      display: none;
    }

    #countdown-section.countdown-style-classic .count-box.tick {
      animation: countTick 0.38s ease;
    }

    #countdown-section.countdown-style-crystal h2 {
      font-family: var(--font-body);
      font-size: clamp(1.25rem, 5vw, 1.82rem);
      font-weight: 500;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--text);
    }

    #countdown-section.countdown-style-crystal #countdownIntro {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      width: auto;
      margin: 2px auto 0;
      font-size: 0.6rem;
      line-height: 1.4;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: var(--timeline-color);
    }

    #countdown-section.countdown-style-crystal #countdownIntro::before,
    #countdown-section.countdown-style-crystal #countdownIntro::after {
      content: "";
      width: 34px;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(var(--timeline-rgb), 0.48));
    }

    #countdown-section.countdown-style-crystal #countdownIntro::after {
      background: linear-gradient(90deg, rgba(var(--timeline-rgb), 0.48), transparent);
    }

    #countdown-section.countdown-style-crystal .countdown-shell {
      margin-top: 18px;
      padding: 2px 0 4px;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }

    #countdown-section.countdown-style-crystal #countdown {
      gap: 10px;
      margin-top: 16px;
    }

    #countdown-section.countdown-style-crystal .count-box {
      min-height: 98px;
      display: grid;
      align-content: center;
      padding: 14px 6px 12px;
      border-radius: 12px;
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018));
      border: 1px solid rgba(var(--timeline-rgb), 0.28);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 12px 22px rgba(0, 0, 0, 0.09);
    }

    #countdown-section.countdown-style-crystal .count-box strong {
      font-family: var(--font-body);
      font-size: clamp(1.9rem, 6.2vw, 2.45rem);
      font-weight: 300;
      color: var(--text);
      text-shadow: none;
    }

    #countdown-section.countdown-style-crystal .count-box.tick {
      animation: countdownReferenceLift 0.46s ease;
    }

    #countdown-section.countdown-style-editorial h2 {
      font-family: var(--font-display);
      font-size: clamp(2.7rem, 11vw, 4.35rem);
      font-weight: 400;
      line-height: 0.95;
      letter-spacing: 0;
      text-transform: none;
      color: var(--timeline-color);
      text-shadow:
        0 0 12px rgba(var(--timeline-rgb), 0.18),
        0 2px 0 rgba(0, 0, 0, 0.18);
    }

    #countdown-section.countdown-style-editorial #countdownIntro {
      display: block;
      margin: 8px auto 0;
      font-size: 0.96rem;
      line-height: 1.5;
      letter-spacing: 0.04em;
      color: var(--text);
      text-transform: none;
    }

    #countdown-section.countdown-style-editorial .countdown-shell {
      margin-top: 16px;
      padding: 12px 0 4px;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }

    #countdown-section.countdown-style-editorial #countdown {
      gap: 8px;
      margin-top: 12px;
      border: 0;
    }

    #countdown-section.countdown-style-editorial .count-box {
      min-height: 106px;
      display: grid;
      align-content: center;
      padding: 14px 5px 12px;
      border-radius: 18px;
      background:
        radial-gradient(circle at 50% 0%, rgba(var(--timeline-rgb), 0.14), transparent 54%),
        rgba(0, 0, 0, 0.2);
      border: 1px solid rgba(var(--timeline-rgb), 0.7);
      box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 0 20px rgba(var(--timeline-rgb), 0.04),
        0 0 18px rgba(var(--timeline-rgb), 0.1);
    }

    #countdown-section.countdown-style-editorial .count-box::before,
    #countdown-section.countdown-style-editorial .count-box::after {
      content: "";
      display: block;
      position: absolute;
      left: 12px;
      right: 12px;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(var(--timeline-rgb), 0.92), transparent);
    }

    #countdown-section.countdown-style-editorial .count-box::before { top: 12px; }
    #countdown-section.countdown-style-editorial .count-box::after { bottom: 12px; }

    #countdown-section.countdown-style-editorial .count-box strong {
      font-family: var(--font-display);
      font-size: clamp(2rem, 6.6vw, 2.72rem);
      font-weight: 500;
      color: var(--timeline-color);
    }

    #countdown-section.countdown-style-editorial .count-box span {
      color: var(--text);
      opacity: 0.9;
    }

    #countdown-section.countdown-style-editorial .count-box.tick {
      animation: countdownReferenceGlow 0.58s ease;
    }

    #countdown-section.countdown-style-pulse h2 {
      font-family: var(--font-display);
      font-size: clamp(2.1rem, 9vw, 3.45rem);
      font-weight: 400;
      line-height: 0.98;
      letter-spacing: 0;
      color: var(--section-title);
    }

    #countdown-section.countdown-style-pulse #countdownIntro {
      display: block;
      width: min(270px, 100%);
      margin: 10px auto 0;
      font-size: 0.66rem;
      line-height: 1.45;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
    }

    #countdown-section.countdown-style-pulse .countdown-shell {
      margin-top: 18px;
      padding: 10px 0 4px;
      border: 0;
      background: transparent;
      box-shadow: none;
    }

    #countdown-section.countdown-style-pulse #countdown {
      gap: 8px;
      margin-top: 12px;
    }

    #countdown-section.countdown-style-pulse .count-box {
      min-height: 100px;
      display: grid;
      align-content: center;
      padding: 13px 5px 11px;
      border-radius: 16px;
      background:
        radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.15), transparent 44%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.025));
      border: 1px solid rgba(var(--section-title-rgb), 0.34);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 0 0 1px rgba(var(--timeline-rgb), 0.08),
        0 12px 24px rgba(0, 0, 0, 0.1);
      animation: countdownReferenceFloat 4.2s ease-in-out infinite;
    }

    #countdown-section.countdown-style-pulse .count-box::before {
      content: "";
      display: block;
      position: absolute;
      inset: 7px;
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, 0.13);
    }

    #countdown-section.countdown-style-pulse .count-box::after {
      content: "";
      display: block;
      position: absolute;
      right: 12px;
      top: 10px;
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: var(--timeline-color);
      box-shadow: 0 0 10px rgba(var(--timeline-rgb), 0.72);
      animation: countdownTinySpark 2.6s ease-in-out infinite;
    }

    #countdown-section.countdown-style-pulse .count-box strong {
      font-family: var(--font-display);
      font-size: clamp(1.9rem, 6.3vw, 2.55rem);
      font-weight: 400;
      color: var(--section-title);
    }

    #countdown-section.countdown-style-pulse .count-box.tick {
      animation: countdownReferenceBeat 0.62s ease, countdownReferenceFloat 4.2s ease-in-out infinite;
    }

    @keyframes countdownReferenceLift {
      0%, 100% { transform: translateY(0); filter: brightness(1); }
      45% { transform: translateY(-3px); filter: brightness(1.12); }
    }

    @keyframes countdownReferenceGlow {
      0%, 100% { transform: scale(1); filter: brightness(1); }
      45% { transform: scale(1.035); filter: brightness(1.18); }
    }

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

    @keyframes countdownReferenceBeat {
      0%, 100% { transform: scale(1); }
      30% { transform: scale(1.055); }
      52% { transform: scale(0.985); }
      74% { transform: scale(1.025); }
    }

    #countdown-section.countdown-style-crystal h2 {
      font-family: var(--font-display);
      font-size: clamp(2rem, 8.8vw, 3.35rem);
      font-weight: 400;
      line-height: 1;
      letter-spacing: 0;
      text-transform: none;
      color: var(--section-title);
      text-shadow: 0 0 18px rgba(var(--timeline-rgb), 0.16);
    }

    #countdown-section.countdown-style-crystal #countdownIntro {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: 9px;
      width: min(290px, 100%);
      margin: 9px auto 0;
      font-size: 0.64rem;
      line-height: 1.45;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
    }

    #countdown-section.countdown-style-crystal #countdownIntro::before,
    #countdown-section.countdown-style-crystal #countdownIntro::after {
      content: "";
      width: auto;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(var(--timeline-rgb), 0.72));
    }

    #countdown-section.countdown-style-crystal #countdownIntro::after {
      background: linear-gradient(90deg, rgba(var(--timeline-rgb), 0.72), transparent);
    }

    #countdown-section.countdown-style-crystal .countdown-shell {
      margin-top: 18px;
      padding: 14px 2px 4px;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }

    #countdown-section.countdown-style-crystal .countdown-shell::before {
      content: "";
      display: block;
      width: 86px;
      height: 1px;
      margin: 0 auto 12px;
      background: linear-gradient(90deg, transparent, rgba(var(--timeline-rgb), 0.88), transparent);
      box-shadow: 0 0 12px rgba(var(--timeline-rgb), 0.18);
    }

    #countdown-section.countdown-style-crystal .countdown-shell::after {
      display: none;
    }

    #countdown-section.countdown-style-crystal #countdown {
      gap: 7px;
      margin-top: 0;
    }

    #countdown-section.countdown-style-crystal .count-box {
      min-height: 104px;
      display: grid;
      align-content: center;
      padding: 15px 5px 12px;
      border-radius: 999px 999px 18px 18px;
      background:
        radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.16), transparent 46%),
        linear-gradient(180deg, rgba(var(--timeline-rgb), 0.075), rgba(255, 255, 255, 0.022));
      border: 1px solid rgba(var(--timeline-rgb), 0.52);
      box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 14px 28px rgba(255, 255, 255, 0.035),
        0 10px 20px rgba(0, 0, 0, 0.1);
    }

    #countdown-section.countdown-style-crystal .count-box::before {
      content: "";
      display: block;
      position: absolute;
      left: 50%;
      top: 8px;
      width: 7px;
      height: 7px;
      transform: translateX(-50%) rotate(45deg);
      border: 1px solid rgba(var(--timeline-rgb), 0.78);
      background: rgba(var(--timeline-rgb), 0.08);
      box-shadow: 0 0 10px rgba(var(--timeline-rgb), 0.18);
    }

    #countdown-section.countdown-style-crystal .count-box::after {
      content: "";
      display: block;
      position: absolute;
      left: 50%;
      bottom: 10px;
      width: 30px;
      height: 1px;
      transform: translateX(-50%);
      background: linear-gradient(90deg, transparent, rgba(var(--timeline-rgb), 0.78), transparent);
    }

    #countdown-section.countdown-style-crystal .count-box strong {
      font-family: var(--font-display);
      font-size: clamp(1.82rem, 6.2vw, 2.48rem);
      font-weight: 400;
      line-height: 1;
      color: var(--section-title);
      text-shadow: 0 0 12px rgba(var(--timeline-rgb), 0.14);
    }

    #countdown-section.countdown-style-crystal .count-box span {
      margin-top: 8px;
      padding-top: 0;
      color: var(--text);
      opacity: 0.84;
    }

    #countdown-section.countdown-style-crystal .count-box span::before {
      content: none;
      display: none;
    }

    #countdown-section.countdown-style-crystal .count-box.tick {
      animation: countdownJewelTick 0.56s ease;
    }

    #countdown-section.countdown-style-editorial h2 {
      display: inline-grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: 12px;
      width: min(330px, 100%);
      margin-inline: auto;
      font-family: var(--font-body);
      font-size: clamp(1.05rem, 4.6vw, 1.48rem);
      font-weight: 600;
      line-height: 1.2;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--text);
      text-shadow: none;
    }

    #countdown-section.countdown-style-editorial h2::before,
    #countdown-section.countdown-style-editorial h2::after {
      content: "";
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(var(--timeline-rgb), 0.7));
    }

    #countdown-section.countdown-style-editorial h2::after {
      background: linear-gradient(90deg, rgba(var(--timeline-rgb), 0.7), transparent);
    }

    #countdown-section.countdown-style-editorial #countdownIntro {
      display: block;
      width: min(285px, 100%);
      margin: 9px auto 0;
      font-size: 0.72rem;
      line-height: 1.45;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--timeline-color);
    }

    #countdown-section.countdown-style-editorial .countdown-shell {
      margin-top: 18px;
      padding: 14px 10px 12px;
      border-radius: 24px;
      border: 1px solid rgba(var(--timeline-rgb), 0.2);
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 14px 28px rgba(0, 0, 0, 0.09);
    }

    #countdown-section.countdown-style-editorial .countdown-shell::before {
      content: "";
      display: block;
      width: 42px;
      height: 42px;
      margin: -36px auto 8px;
      border-radius: 50%;
      border: 1px solid rgba(var(--timeline-rgb), 0.42);
      background:
        radial-gradient(circle, rgba(var(--timeline-rgb), 0.16), transparent 52%);
      box-shadow:
        0 0 0 7px rgba(var(--timeline-rgb), 0.035),
        0 0 18px rgba(var(--timeline-rgb), 0.12);
    }

    #countdown-section.countdown-style-editorial #countdown {
      gap: 0;
      margin-top: 8px;
      overflow: hidden;
      border-radius: 18px;
      border: 1px solid rgba(var(--timeline-rgb), 0.24);
      background: rgba(255, 255, 255, 0.025);
    }

    #countdown-section.countdown-style-editorial .count-box {
      min-height: 96px;
      display: grid;
      align-content: center;
      padding: 14px 4px 12px;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }

    #countdown-section.countdown-style-editorial .count-box + .count-box {
      border-left: 1px solid rgba(var(--timeline-rgb), 0.2);
    }

    #countdown-section.countdown-style-editorial .count-box::before {
      content: "";
      display: block;
      position: absolute;
      left: 50%;
      top: 12px;
      width: 5px;
      height: 5px;
      transform: translateX(-50%) rotate(45deg);
      background: var(--timeline-color);
      opacity: 0.72;
      box-shadow: 0 0 8px rgba(var(--timeline-rgb), 0.28);
    }

    #countdown-section.countdown-style-editorial .count-box::after {
      content: "";
      display: block;
      position: absolute;
      left: 50%;
      bottom: 13px;
      width: 24px;
      height: 1px;
      transform: translateX(-50%);
      background: rgba(var(--timeline-rgb), 0.52);
    }

    #countdown-section.countdown-style-editorial .count-box strong {
      font-family: var(--font-body);
      font-size: clamp(1.78rem, 5.9vw, 2.36rem);
      font-weight: 300;
      line-height: 1;
      color: var(--text);
      text-shadow: none;
    }

    #countdown-section.countdown-style-editorial .count-box span {
      margin-top: 8px;
      color: var(--muted);
      opacity: 1;
    }

    #countdown-section.countdown-style-editorial .count-box.tick {
      animation: countdownSealTick 0.5s ease;
    }

    @keyframes countdownJewelTick {
      0%, 100% { transform: scale(1); filter: brightness(1); }
      42% { transform: scale(1.035); filter: brightness(1.13); }
    }

    @keyframes countdownSealTick {
      0%, 100% { transform: translateY(0); }
      44% { transform: translateY(-2px); }
    }

    html.theme-military body {
      background:
        linear-gradient(rgba(12, 18, 10, .18), rgba(8, 12, 7, .42)),
        linear-gradient(180deg, var(--bg-top) 0%, var(--bg-top) var(--content-gradient-start), var(--bg-mid) var(--content-gradient-52), var(--bg-bottom) 100%);
    }

    html.theme-military body::after {
      background-image:
        linear-gradient(rgba(222, 207, 142, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(222, 207, 142, .025) 1px, transparent 1px);
      background-size: 32px 32px;
      opacity: .34;
    }

    html.theme-military .overlay::before {
      background-image:
        linear-gradient(180deg, rgba(7, 11, 6, .38), rgba(7, 11, 6, .62)),
        url("../media/fondo-infantil-militar.png");
      background-size: cover;
      filter: saturate(.76) contrast(1.08);
      opacity: var(--opening-photo-a);
      transform: scale(1.04);
    }

    html.theme-military .overlay-card::before {
      border: 1px solid rgba(var(--gold-rgb), .46);
      border-radius: 8px;
      background:
        linear-gradient(90deg, rgba(var(--gold-rgb), .5) 0 42px, transparent 42px calc(100% - 42px), rgba(var(--gold-rgb), .5) calc(100% - 42px)) top / 100% 2px no-repeat,
        linear-gradient(90deg, rgba(var(--gold-rgb), .5) 0 42px, transparent 42px calc(100% - 42px), rgba(var(--gold-rgb), .5) calc(100% - 42px)) bottom / 100% 2px no-repeat;
      box-shadow: inset 0 0 38px rgba(0,0,0,.26);
    }

    html.theme-military .overlay-kicker,
    html.theme-military .hero-label,
    html.theme-military .hero-date,
    html.theme-military .eyebrow,
    html.theme-military .countdown-caption {
      font-family: var(--font-body);
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .12em;
    }

    html.theme-military .overlay-title,
    html.theme-military .hero-name {
      font-family: var(--font-display);
      font-weight: 800;
      text-transform: uppercase;
      text-shadow: 0 3px 0 rgba(0,0,0,.34), 0 0 22px rgba(var(--gold-rgb),.2);
    }

    html.theme-military .overlay-title {
      width: min(100%, 340px);
      margin-inline: auto;
      font-size: clamp(2rem, 8.5vw, 3.5rem);
      line-height: 1.04;
      overflow-wrap: anywhere;
      text-wrap: balance;
    }

    html.theme-military .hero-name {
      width: min(100%, 330px);
      max-width: 100%;
      padding-inline: 8px;
      font-size: 2rem;
      line-height: 1.06;
      white-space: normal;
      overflow-wrap: anywhere;
      text-wrap: balance;
    }

    @media (min-width: 390px) {
      html.theme-military .hero-name { font-size: calc(2.25rem * var(--hero-name-size-scale, 1)); }
    }

    html.theme-military .wax-btn {
      border-radius: 12px;
      border: 2px solid rgba(var(--gold-rgb), .7);
      background:
        repeating-linear-gradient(135deg, rgba(0,0,0,.14) 0 8px, transparent 8px 16px),
        rgba(65, 78, 42, .88);
      box-shadow: inset 0 0 0 4px rgba(255,255,255,.05), 0 14px 34px rgba(0,0,0,.38);
    }

    html.theme-military .wax-caption::before {
      content: "● ";
      color: var(--opening-accent);
      animation: militarySignal 1.5s ease-in-out infinite;
    }

    html.theme-military .hero-hud {
      position: absolute;
      inset: 22px 18px 28px;
      z-index: 3;
      display: block;
      pointer-events: none;
      opacity: .72;
    }

    html.theme-military .hero-hud span {
      position: absolute;
      width: 46px;
      height: 46px;
      border-color: rgba(var(--gold-rgb), .72);
    }
    html.theme-military .hero-hud span:nth-child(1) { left: 0; top: 0; border-left: 2px solid; border-top: 2px solid; }
    html.theme-military .hero-hud span:nth-child(2) { right: 0; top: 0; border-right: 2px solid; border-top: 2px solid; }
    html.theme-military .hero-hud span:nth-child(3) { left: 0; bottom: 0; border-left: 2px solid; border-bottom: 2px solid; }
    html.theme-military .hero-hud span:nth-child(4) { right: 0; bottom: 0; border-right: 2px solid; border-bottom: 2px solid; }

    html.theme-military .section {
      position: relative;
      overflow: hidden;
      border: 1px solid rgba(var(--gold-rgb), .34);
      border-radius: 6px;
      background:
        linear-gradient(180deg, rgba(22, 29, 17, .78), rgba(10, 15, 9, .66)),
        url("../media/fondo-infantil-militar.png") center / 520px auto;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), 0 18px 44px rgba(0,0,0,.28);
    }

    html.theme-military .separator {
      width: min(72%, 220px);
      height: 8px;
      border: 1px solid rgba(var(--timeline-rgb), .28);
      border-radius: 2px;
      background: repeating-linear-gradient(135deg, rgba(var(--timeline-rgb), .58) 0 8px, transparent 8px 16px);
      box-shadow: none;
      opacity: .7;
    }

    html.theme-military .separator::before,
    html.theme-military .separator::after {
      display: none;
    }

    html.theme-military .section h2,
    html.theme-military .event-time,
    html.theme-military .timeline-time {
      font-family: var(--font-display);
      text-transform: uppercase;
      letter-spacing: 0;
    }

    html.theme-military .section h2 {
      position: relative;
      width: fit-content;
      max-width: 100%;
      margin: 4px auto 18px;
      padding: 7px 12px 6px;
      border: 1px solid rgba(var(--gold-rgb), .32);
      border-radius: 3px;
      background: rgba(6, 10, 5, .38);
      font-size: clamp(1.35rem, 6vw, 1.85rem);
      overflow-wrap: anywhere;
    }

    html.theme-military .eyebrow {
      padding: 6px 10px;
      border-left: 3px solid var(--section-title);
      background: linear-gradient(90deg, rgba(var(--gold-rgb), .14), transparent);
      color: var(--section-title);
      font-weight: 800;
      letter-spacing: .1em;
    }

    html.theme-military .script-block,
    html.theme-military .family-names,
    html.theme-military .godparent-names {
      font-family: var(--font-body);
      font-weight: 700;
      font-size: 1.45rem;
      line-height: 1.3;
      text-transform: uppercase;
      letter-spacing: .03em;
    }

    html.theme-military .family-group,
    html.theme-military .godparent-item {
      padding: 12px 10px;
      border: 1px dashed rgba(var(--gold-rgb), .3);
      border-radius: 4px;
      background: rgba(0,0,0,.13);
    }

    html.theme-military .featured-photo img,
    html.theme-military .event-place-photo,
    html.theme-military .map,
    html.theme-military .dresscode-figure img {
      border-radius: 4px;
      border: 2px solid rgba(var(--gold-rgb), .3);
      outline: 1px dashed rgba(var(--gold-rgb), .24);
      outline-offset: 4px;
      filter: saturate(.86) contrast(1.04) drop-shadow(0 14px 24px rgba(0,0,0,.2));
    }

    html.theme-military .event-card {
      padding: 14px 12px;
      border: 1px dashed rgba(var(--gold-rgb), .28);
      border-radius: 4px;
      background: rgba(0,0,0,.12);
    }

    html.theme-military .event-time::before {
      content: "HORA DEL ENCUENTRO / ";
      color: var(--muted);
      font-size: .64rem;
    }

    html.theme-military .event-place {
      font-family: var(--font-body);
      font-weight: 700;
      text-transform: uppercase;
      font-size: 1.16rem;
    }

    html.theme-military .event-place-detail {
      font-family: var(--font-body);
      font-size: .82rem;
      font-weight: 600;
      letter-spacing: .07em;
      color: var(--location-time-color, var(--section-title));
    }

    html.theme-military .timeline {
      padding: 14px 10px 8px 42px;
      border: 1px dashed rgba(var(--timeline-rgb), .28);
      border-radius: 4px;
      background: rgba(0,0,0,.12);
    }

    html.theme-military .timeline::before {
      left: 18px;
      width: 1px;
      background: repeating-linear-gradient(180deg, var(--timeline-color) 0 7px, transparent 7px 12px);
      box-shadow: none;
    }

    html.theme-military .timeline-item::before {
      left: -30px;
      width: 15px;
      height: 15px;
      border: 2px solid var(--timeline-color);
      border-radius: 2px;
      background: rgba(9,14,8,.9);
      box-shadow: inset 0 0 0 3px rgba(var(--timeline-rgb), .24), 0 0 10px rgba(var(--timeline-rgb), .18);
      transform: rotate(45deg);
      animation: militarySignal 2.4s ease-in-out infinite;
    }

    html.theme-military .timeline-day-separator::before {
      top: 19px;
      height: 3px;
      border: 0;
      border-radius: 0;
      background: var(--timeline-color);
      transform: none;
      animation: none;
    }

    html.theme-military .timeline-day-label {
      font-weight: 900;
    }

    html.theme-military .timeline-time::before {
      content: "A LAS ";
      color: var(--muted);
    }

    html.theme-military .gallery-showcase {
      border-radius: 5px;
      border: 1px solid rgba(var(--gold-rgb), .34);
      background:
        repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 8px, transparent 8px 16px),
        rgba(0,0,0,.2);
    }

    html.theme-military .gallery-stage {
      border-radius: 3px;
      border: 1px solid rgba(var(--gold-rgb), .24);
      background: rgba(3,6,3,.34);
    }

    html.theme-military .gallery-meta strong::before {
      content: "ARCHIVO / ";
      color: var(--section-title);
      font-size: .68rem;
    }

    html.theme-military .gallery-nav button {
      border-radius: 4px;
      border-color: rgba(var(--gold-rgb), .4);
      background: rgba(var(--button-bg-rgb), .42);
      color: var(--button-text);
    }

    html.theme-military .gallery-item,
    html.theme-military .gallery-media {
      border-radius: 3px;
    }

    html.theme-military .gallery-item.is-active .gallery-media {
      outline-style: dashed;
      outline-color: var(--section-title);
    }

    html.theme-military #dressValue {
      display: grid;
      padding: 8px 14px;
      border: 1px dashed rgba(var(--gold-rgb), .4);
      border-radius: 3px;
      background: rgba(0,0,0,.14);
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .08em;
    }

    html.theme-military #dressValue li {
      font-weight: 800;
    }

    html.theme-military #dressValue li + li {
      border-color: rgba(var(--gold-rgb), .22);
    }

    html.theme-military #dressValue[hidden] {
      display: none;
    }

    html.theme-military .rsvp-card {
      padding: 14px;
      border: 1px dashed rgba(var(--gold-rgb), .3);
      border-radius: 4px;
      background: rgba(0,0,0,.14);
    }

    html.theme-military .field label::before {
      content: "▸ ";
      color: var(--section-title);
    }

    html.theme-military .field input,
    html.theme-military .field select {
      border-radius: 4px;
      border-color: rgba(var(--gold-rgb), .34);
      background: rgba(7,11,6,.56);
    }

    html.theme-military .album-card {
      border-radius: 4px;
      border: 1px dashed rgba(var(--gold-rgb), .32);
      background: rgba(72, 91, 52, .28);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
    }

    html.theme-military .gift-option-title {
      font-family: var(--font-body);
      text-transform: uppercase;
      letter-spacing: .04em;
    }

    html.theme-military .closing-note {
      position: relative;
      padding: 18px 16px;
      border: 1px dashed rgba(var(--gold-rgb), .4);
      border-radius: 4px;
      background: rgba(8,12,7,.52);
      font-family: var(--font-body);
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .04em;
    }

    html.theme-military .closing-note::before {
      content: "¡GRACIAS, ESCUADRÓN!";
      display: block;
      margin-bottom: 7px;
      color: var(--muted);
      font-size: .58rem;
      letter-spacing: .16em;
    }

    html.theme-military .brand-footer {
      border-top-color: rgba(var(--gold-rgb), .34);
      background:
        repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 8px, transparent 8px 16px),
        rgba(var(--footer-bg-rgb),.88);
    }

    html.theme-military .btn,
    html.theme-military .rsvp-buttons button,
    html.theme-military .brand-cta a {
      border-radius: 5px;
      border-color: rgba(var(--gold-rgb), .46);
      text-transform: uppercase;
      font-weight: 800;
      letter-spacing: .04em;
      box-shadow: inset 0 -2px 0 rgba(97,45,17,.14), 0 8px 18px rgba(var(--gold-rgb), .12);
    }

    html.theme-military #countdown-section:is(.countdown-style-military, .countdown-style-military-tags, .countdown-style-military-radar) h2 {
      max-width: 250px;
      margin-inline: auto;
      font-family: var(--font-body);
      font-size: 1.62rem;
      line-height: 1.05;
      text-transform: uppercase;
      letter-spacing: 0;
    }

    html.theme-military #countdown-section:is(.countdown-style-military, .countdown-style-military-tags, .countdown-style-military-radar) #countdownIntro {
      max-width: 255px;
      margin: 8px auto 0;
      color: var(--muted);
      font-size: .88rem;
      line-height: 1.45;
    }

    html.theme-military #countdown-section:is(.countdown-style-military, .countdown-style-military-tags, .countdown-style-military-radar) #countdown {
      position: relative;
      z-index: 2;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 9px;
      margin-top: 0;
    }

    html.theme-military #countdown-section:is(.countdown-style-military, .countdown-style-military-tags, .countdown-style-military-radar) .count-box {
      min-height: 94px;
      display: grid;
      align-content: center;
      position: relative;
      overflow: hidden;
      padding: 15px 8px 12px;
      letter-spacing: 0;
    }

    html.theme-military #countdown-section:is(.countdown-style-military, .countdown-style-military-tags, .countdown-style-military-radar) .count-box em {
      position: absolute;
      top: 7px;
      left: 8px;
      color: var(--gold-300);
      font-family: var(--font-body);
      font-size: .56rem;
      font-style: normal;
      font-weight: 800;
      line-height: 1;
    }

    html.theme-military #countdown-section:is(.countdown-style-military, .countdown-style-military-tags, .countdown-style-military-radar) .count-box strong {
      font-family: var(--font-display);
      font-size: 2rem;
      color: var(--gold-100);
      line-height: 1;
      text-shadow: 0 2px 0 rgba(0,0,0,.4);
    }

    html.theme-military #countdown-section:is(.countdown-style-military, .countdown-style-military-tags, .countdown-style-military-radar) .count-box span {
      margin-top: 7px;
      color: var(--muted);
      font-size: .6rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0;
    }

    html.theme-military #countdown-section.countdown-style-military .countdown-shell {
      position: relative;
      overflow: hidden;
      padding: 46px 12px 14px;
      border: 1px solid rgba(var(--gold-rgb), .48);
      border-radius: 6px;
      background:
        linear-gradient(90deg, transparent 49.7%, rgba(var(--gold-rgb), .08) 50%, transparent 50.3%),
        repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 9px, transparent 9px 18px),
        rgba(9, 14, 8, .78);
      box-shadow: inset 0 0 30px rgba(0,0,0,.42), 0 14px 28px rgba(0,0,0,.22);
    }

    html.theme-military #countdown-section.countdown-style-military .countdown-shell::before {
      content: "CUARTEL DE AVENTURAS // TIEMPO RESTANTE";
      position: absolute;
      top: 10px;
      left: 10px;
      right: 10px;
      padding-bottom: 7px;
      border-bottom: 1px dashed rgba(var(--gold-rgb), .38);
      color: var(--gold-300);
      font-family: var(--font-body);
      font-size: .5rem;
      font-weight: 800;
      letter-spacing: 0;
      text-align: left;
    }

    html.theme-military #countdown-section.countdown-style-military .countdown-shell::after {
      content: "";
      position: absolute;
      right: 12px;
      top: 13px;
      width: 40px;
      height: 5px;
      background: repeating-linear-gradient(90deg, var(--gold-500) 0 5px, transparent 5px 9px);
      opacity: .7;
    }

    html.theme-military #countdown-section.countdown-style-military .count-box {
      border: 1px solid rgba(var(--gold-rgb), .4);
      border-radius: 4px;
      background:
        linear-gradient(90deg, rgba(var(--gold-rgb), .06), transparent 42%),
        linear-gradient(180deg, rgba(112, 128, 70, .38), rgba(28, 38, 20, .76));
      box-shadow: inset 0 0 0 2px rgba(255,255,255,.025), 0 6px 12px rgba(0,0,0,.2);
    }

    html.theme-military #countdown-section.countdown-style-military .count-box::after {
      content: "";
      position: absolute;
      top: 6px;
      right: 6px;
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--gold-500);
      box-shadow: 0 0 8px rgba(var(--gold-rgb), .5);
      animation: militarySignal 1.8s ease-in-out infinite;
    }

    html.theme-military #countdown-section.countdown-style-military-tags .countdown-shell {
      position: relative;
      overflow: hidden;
      padding: 48px 13px 18px;
      border: 1px dashed rgba(var(--gold-rgb), .5);
      border-radius: 4px;
      background:
        linear-gradient(180deg, rgba(86, 98, 57, .28), rgba(8, 12, 7, .78)),
        rgba(9, 14, 8, .78);
      box-shadow: inset 0 0 0 4px rgba(0,0,0,.16), 0 14px 28px rgba(0,0,0,.22);
    }

    html.theme-military #countdown-section.countdown-style-military-tags .countdown-shell::before {
      content: "INSIGNIAS DEL EQUIPO // CUENTA REGRESIVA";
      position: absolute;
      top: 13px;
      left: 13px;
      right: 13px;
      padding-bottom: 8px;
      border-bottom: 1px solid rgba(var(--gold-rgb), .28);
      color: var(--gold-300);
      font-size: .52rem;
      font-weight: 800;
      text-align: left;
    }

    html.theme-military #countdown-section.countdown-style-military-tags .count-box {
      min-height: 106px;
      padding-top: 20px;
      border: 1px solid rgba(238, 225, 177, .48);
      border-radius: 12px 12px 9px 9px;
      background:
        linear-gradient(115deg, rgba(255,255,255,.11), transparent 28%),
        linear-gradient(180deg, #687052, #343b2a 72%, #242a1f);
      box-shadow: inset 0 0 0 2px rgba(0,0,0,.18), 0 8px 13px rgba(0,0,0,.28);
    }

    html.theme-military #countdown-section.countdown-style-military-tags .count-box::before {
      content: "";
      position: absolute;
      top: 7px;
      left: 50%;
      width: 7px;
      height: 7px;
      transform: translateX(-50%);
      border: 2px solid rgba(238, 225, 177, .62);
      border-radius: 50%;
      background: #252b20;
      box-shadow: inset 0 0 0 1px rgba(0,0,0,.48);
    }

    html.theme-military #countdown-section.countdown-style-military-tags .count-box:nth-child(odd) {
      transform: rotate(-1deg);
    }

    html.theme-military #countdown-section.countdown-style-military-tags .count-box:nth-child(even) {
      transform: rotate(1deg);
    }

    html.theme-military #countdown-section.countdown-style-military-tags .count-box em {
      top: 13px;
      left: 9px;
    }

    html.theme-military #countdown-section.countdown-style-military-radar .countdown-shell {
      position: relative;
      overflow: hidden;
      min-height: 318px;
      padding: 54px 16px 20px;
      border: 1px solid rgba(var(--gold-rgb), .5);
      border-radius: 50%;
      background:
        repeating-radial-gradient(circle at center, transparent 0 31px, rgba(var(--gold-rgb), .12) 32px 33px),
        linear-gradient(90deg, transparent 49.7%, rgba(var(--gold-rgb), .15) 50%, transparent 50.3%),
        linear-gradient(0deg, transparent 49.7%, rgba(var(--gold-rgb), .15) 50%, transparent 50.3%),
        rgba(7, 13, 7, .86);
      box-shadow: inset 0 0 34px rgba(0,0,0,.5), 0 14px 30px rgba(0,0,0,.24);
    }

    html.theme-military #countdown-section.countdown-style-military-radar .countdown-shell::before {
      content: "RADAR DE AVENTURA // EQUIPO EN CAMINO";
      position: absolute;
      z-index: 3;
      top: 27px;
      left: 50%;
      width: 170px;
      transform: translateX(-50%);
      color: var(--gold-300);
      font-size: .5rem;
      font-weight: 800;
      text-align: center;
    }

    html.theme-military #countdown-section.countdown-style-military-radar .countdown-shell::after {
      content: "";
      position: absolute;
      z-index: 1;
      inset: 14%;
      border-radius: 50%;
      background: conic-gradient(from 0deg, rgba(var(--gold-rgb), .3), transparent 18%, transparent 100%);
      animation: militaryRadarSweep 5.8s linear infinite;
      pointer-events: none;
    }

    html.theme-military #countdown-section.countdown-style-military-radar #countdown {
      margin-top: 8px;
      gap: 7px;
    }

    html.theme-military #countdown-section.countdown-style-military-radar .count-box {
      min-height: 90px;
      border: 1px solid rgba(var(--gold-rgb), .34);
      border-radius: 50%;
      background: rgba(16, 28, 13, .74);
      box-shadow: inset 0 0 18px rgba(var(--gold-rgb), .08), 0 6px 12px rgba(0,0,0,.22);
    }

    html.theme-military #countdown-section:is(.countdown-style-military, .countdown-style-military-tags, .countdown-style-military-radar) .count-box.tick {
      animation: militaryTick .46s ease;
    }

    @keyframes militarySignal { 0%,100% { opacity:.42; } 50% { opacity:1; } }
    @keyframes militaryTick { 0%,100% { transform:translateY(0); } 45% { transform:translateY(-3px); } }
    @keyframes militaryRadarSweep { to { transform: rotate(360deg); } }

    /* Acabado militar infantil: aventura, insignias y contraste más alegre. */
    html.theme-military body::after {
      background-image:
        radial-gradient(circle, rgba(var(--gold-rgb), .2) 0 2px, transparent 2.5px),
        repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 8px, transparent 8px 16px);
      background-size: 30px 30px, 34px 34px;
      opacity: .42;
    }

    html.theme-military .overlay::before {
      filter: saturate(1.05) contrast(1.02) brightness(1.06);
    }

    html.theme-military .overlay-card::before {
      border: 2px solid rgba(var(--gold-rgb), .7);
      background:
        linear-gradient(90deg, var(--opening-accent) 0 54px, transparent 54px calc(100% - 54px), var(--opening-accent) calc(100% - 54px)) top / 100% 4px no-repeat,
        linear-gradient(90deg, var(--opening-accent) 0 54px, transparent 54px calc(100% - 54px), var(--opening-accent) calc(100% - 54px)) bottom / 100% 4px no-repeat;
      box-shadow: inset 0 0 44px rgba(36, 53, 27, .34), 0 0 0 5px rgba(255,255,255,.035);
    }

    html.theme-military .overlay-kicker,
    html.theme-military .hero-label,
    html.theme-military .hero-date,
    html.theme-military .eyebrow,
    html.theme-military .countdown-caption {
      letter-spacing: 0;
    }

    html.theme-military .overlay-title,
    html.theme-military .hero-name {
      text-shadow: 0 4px 0 rgba(32, 48, 24, .82), 0 0 20px rgba(var(--gold-rgb), .3);
    }

    html.theme-military .overlay-kicker {
      width: fit-content;
      max-width: calc(100% - 48px);
      margin: 0 auto 14px;
      padding: 7vh 12px 7px;
      border-bottom: 3px solid var(--opening-accent);
      color: #fffbdc;
      font-family: var(--font-body);
      font-size: calc(.82rem * var(--opening-kicker-size-scale, 1));
      line-height: 1.2;
      text-wrap: balance;
    }

    html.theme-military .overlay-title-wrap {
      position: relative;
      display: block;
      width: min(calc(100% - 28px), 380px);
      margin: 10px auto 0;
      padding: 8px 12px 15px;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      isolation: isolate;
    }

    html.theme-military .overlay-title-wrap .title-glow {
      display: none;
    }

    html.theme-military .overlay-title-wrap::before {
      display: none;
    }

    html.theme-military .overlay-title-wrap::after {
      content: "";
      position: absolute;
      z-index: 1;
      left: 50%;
      bottom: 0;
      width: 92px;
      height: 3px;
      transform: translateX(-50%);
      border: 0;
      border-radius: 999px;
      background: linear-gradient(90deg, transparent, var(--opening-accent) 22% 78%, transparent);
      box-shadow: none;
      opacity: .9;
    }

    html.theme-military .overlay-title {
      position: relative;
      display: block;
      width: 100%;
      margin: 0;
      padding: 0;
      color: #ffffff;
      background: none;
      -webkit-background-clip: initial;
      -webkit-text-fill-color: currentColor;
      font-family: var(--font-display);
      font-size: calc(2.25rem * var(--opening-title-size-scale, 1));
      line-height: .98;
      letter-spacing: 0;
      word-spacing: .12em;
      overflow-wrap: break-word;
      word-break: normal;
      text-wrap: balance;
      text-shadow: 0 3px 0 rgba(24, 38, 20, .88), 0 0 16px rgba(255, 241, 168, .28);
    }

    html.theme-military .overlay-title::before,
    html.theme-military .overlay-title::after {
      display: none;
    }

    html.theme-military .overlay-title.name-long {
      font-size: calc(1.65rem * var(--opening-title-size-scale, 1));
      line-height: 1;
    }

    html.theme-military .overlay-title.name-very-long {
      font-size: calc(1.35rem * var(--opening-title-size-scale, 1));
      line-height: 1.04;
    }

    html.theme-military .overlay-title.name-double {
      width: min(calc(100vw - 34px), 380px);
      font-size: calc(clamp(2.05rem, 9.6vw, 3.02rem) * var(--opening-title-size-scale, 1));
      line-height: 0.97;
      word-spacing: 0.06em;
    }

    html.theme-military .overlay-title.name-double.name-wedding {
      line-height: 1.15;
    }

    html.theme-military .overlay-title.name-double.name-long {
      font-size: calc(clamp(1.76rem, 8.3vw, 2.55rem) * var(--opening-title-size-scale, 1));
    }

    html.theme-military .overlay-title.name-double.name-very-long {
      font-size: calc(clamp(1.46rem, 7vw, 2.08rem) * var(--opening-title-size-scale, 1));
    }

    html.theme-military .overlay-title.name-double .name-duo {
      width: min(100%, 340px);
      gap: 0.01em;
    }

    html.theme-military .overlay-title.name-double .name-duo__separator {
      font-size: 0.28em;
      color: var(--opening-accent);
    }

    html.theme-military .hero-label {
      padding: 6px 10px;
      border: 2px solid rgba(255, 221, 115, .78);
      border-radius: 7px;
      background: rgba(228, 124, 54, .9);
      color: #1b2918;
      box-shadow: 0 4px 0 rgba(30, 45, 24, .68);
    }

    html.theme-military .hero-name.name-long {
      font-size: calc(1.72rem * var(--hero-name-size-scale, 1));
    }

    html.theme-military .hero-name.name-very-long {
      font-size: calc(1.42rem * var(--hero-name-size-scale, 1));
      line-height: 1.1;
    }

    html.theme-military .hero-name.name-double {
      width: min(calc(100vw - 24px), 390px);
      font-size: calc(clamp(2.25rem, 10.7vw, 3.38rem) * var(--hero-name-size-scale, 1));
      line-height: 0.97;
      letter-spacing: 0;
    }

    html.theme-military .hero-name.name-double.name-wedding {
      line-height: 1.15;
    }

    html.theme-military .hero-name.name-double.name-long {
      font-size: calc(clamp(1.98rem, 9.5vw, 2.92rem) * var(--hero-name-size-scale, 1));
    }

    html.theme-military .hero-name.name-double.name-very-long {
      font-size: calc(clamp(1.68rem, 8.1vw, 2.45rem) * var(--hero-name-size-scale, 1));
    }

    .hero .hero-label {
      color: var(--hero-label-color);
    }

    .hero .hero-name {
      color: var(--hero-name-color);
      -webkit-text-fill-color: currentColor;
    }

    .hero .hero-date {
      color: var(--hero-date-color);
    }

    @media (max-height: 700px) {
      html.theme-military .overlay-kicker {
        padding-top: 4vh;
        margin-bottom: 10px;
      }

      html.theme-military .overlay-title-wrap {
        padding: 6px 12px 13px;
      }

      html.theme-military .overlay-title {
        font-size: calc(1.95rem * var(--opening-title-size-scale, 1));
      }

      html.theme-military .overlay-title.name-long {
        font-size: calc(1.5rem * var(--opening-title-size-scale, 1));
      }

      html.theme-military .overlay-title.name-very-long {
        font-size: calc(1.22rem * var(--opening-title-size-scale, 1));
      }
    }

    html.theme-military .wax-btn {
      top: 58%;
      width: 148px;
      height: 148px;
      border: 0;
      border-radius: 50%;
      background: transparent;
      box-shadow: none;
      filter: drop-shadow(0 14px 22px rgba(0,0,0,.34)) drop-shadow(0 0 12px rgba(var(--gold-rgb),.18));
    }

    html.theme-military .wax-btn::before,
    html.theme-military .wax-btn::after {
      display: none;
    }

    html.theme-military .wax-caption {
      top: calc(58% + 108px);
      max-width: calc(100% - 30px);
      color: var(--opening-accent);
      font-family: var(--font-body);
      font-size: calc(.72rem * var(--opening-caption-size-scale, 1));
      font-weight: 700;
      letter-spacing: 0;
      text-wrap: balance;
      white-space: normal;
    }

    html.theme-military .section {
      border: 2px solid rgba(var(--gold-rgb), .56);
      border-radius: 8px;
      background-image:
        linear-gradient(180deg, rgba(55, 73, 40, var(--military-section-shade-top, .75)), rgba(19, 31, 17, var(--military-section-shade-bottom, .72))),
        var(--military-section-texture, url("../media/fondo-infantil-militar.png"));
      background-position: center, var(--military-section-texture-position, 50% center);
      background-size: auto, var(--military-section-texture-size, 480px auto);
      background-repeat: no-repeat, var(--military-section-texture-repeat, repeat);
      box-shadow: inset 0 0 0 3px rgba(255,255,255,.035), 0 8px 0 rgba(25,38,20,.72), 0 18px 38px rgba(0,0,0,.25);
    }

    html.theme-military .separator {
      height: 10px;
      border: 2px solid rgba(36, 49, 28, .76);
      border-radius: 5px;
      background: repeating-linear-gradient(135deg, #f2c14e 0 9px, #e47c36 9px 18px, #36472d 18px 27px);
      box-shadow: 0 4px 0 rgba(21,31,17,.5);
      opacity: .92;
    }

    html.theme-military .section h2 {
      margin-top: 8px;
      padding: 8px 13px 7px;
      border: 2px solid rgba(var(--gold-rgb), .72);
      border-radius: 8px;
      background: linear-gradient(180deg, rgba(105, 127, 65, .94), rgba(64, 82, 46, .94));
      color: var(--section-title);
      font-family: var(--font-display);
      box-shadow: 0 4px 0 rgba(29,43,23,.76);
    }

    html.theme-military .eyebrow {
      border: 0;
      border-radius: 7px;
      background: linear-gradient(90deg, rgba(228,124,54,.78), rgba(var(--gold-rgb),.15));
      color: #fffbdc;
    }

    html.theme-military .family-group,
    html.theme-military .godparent-item,
    html.theme-military .event-card,
    html.theme-military .timeline,
    html.theme-military .rsvp-card,
    html.theme-military .album-card {
      border: 2px dashed rgba(var(--gold-rgb), .5);
      border-radius: 8px;
      background: rgba(72, 91, 52, .44);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
    }

    html.theme-military .timeline-item::before {
      border-radius: 50%;
      border-color: #f2c14e;
      background: #e47c36;
      box-shadow: inset 0 0 0 3px #3d522f, 0 0 0 3px rgba(242,193,78,.16);
      transform: none;
    }

    html.theme-military .featured-photo img,
    html.theme-military .event-place-photo,
    html.theme-military .map,
    html.theme-military .dresscode-figure img {
      border-radius: 8px;
      border-color: rgba(var(--gold-rgb), .62);
      outline-style: solid;
    }

    html.theme-military #ceremonyIconWrap,
    html.theme-military #receptionIconWrap {
      margin: 2px 0 0;
    }

    html.theme-military #ceremonyIconWrap .dresscode-figure,
    html.theme-military #receptionIconWrap .dresscode-figure {
      width: min(132px, 44vw);
      margin: 4px auto 0;
    }

    html.theme-military #dressSection .dresscode-figure {
      width: min(152px, 50vw);
      margin: 10px auto 4px;
    }

    html.theme-military #ceremonyImage,
    html.theme-military #receptionImage,
    html.theme-military #dressImage,
    html.theme-military #envelopeImage,
    html.theme-military #surpriseImage {
      border: 0;
      outline: 0;
      box-shadow: none;
      filter: drop-shadow(0 8px 12px rgba(var(--gold-rgb), .18));
    }

    html.theme-military #ceremonyIconWrap .dresscode-figure img,
    html.theme-military #receptionIconWrap .dresscode-figure img {
      width: min(116px, 100%);
      border-radius: 0;
    }

    html.theme-military #dressSection .dresscode-figure img {
      width: min(138px, 100%);
      border-radius: 0;
    }

    html.theme-military .gallery-showcase {
      border: 2px solid rgba(var(--gold-rgb), .52);
      border-radius: 8px;
      background: rgba(39, 57, 30, .58);
    }

    html.theme-military .btn,
    html.theme-military .rsvp-buttons button,
    html.theme-military .brand-cta a,
    html.theme-military .gallery-nav button {
      border: 2px solid rgba(255, 220, 115, .76);
      border-radius: 8px;
      background: var(--button-bg);
      color: var(--button-text);
      box-shadow: inset 0 -2px 0 rgba(97,45,17,.16), 0 8px 16px rgba(var(--gold-rgb), .13);
      letter-spacing: 0;
    }

    html.theme-military #countdown-section.countdown-style-military .countdown-shell,
    html.theme-military #countdown-section.countdown-style-military-tags .countdown-shell,
    html.theme-military #countdown-section.countdown-style-military-radar .countdown-shell {
      border-width: 2px;
      border-color: rgba(var(--gold-rgb), .68);
      background-color: rgba(34, 51, 27, .82);
      box-shadow: inset 0 0 24px rgba(0,0,0,.28), 0 6px 0 rgba(25,38,20,.68), 0 14px 24px rgba(0,0,0,.18);
    }

    html.theme-military #countdown-section.countdown-style-military .count-box {
      border-width: 2px;
      background: linear-gradient(180deg, rgba(119, 143, 73, .78), rgba(59, 78, 43, .9));
    }

    html.theme-military #countdown-section.countdown-style-military-tags .count-box {
      background: linear-gradient(180deg, #97a66f, #596b48 72%, #3f5037);
    }

    html.theme-military #countdown-section.countdown-style-military-radar .count-box {
      background: rgba(58, 85, 43, .84);
    }

    html.theme-military .closing-note {
      border: 2px dashed rgba(var(--gold-rgb), .62);
      border-radius: 8px;
      background: linear-gradient(180deg, rgba(74, 94, 49, .82), rgba(38, 56, 31, .86));
      color: var(--closing-color);
      letter-spacing: 0;
      box-shadow: 0 5px 0 rgba(25,38,20,.7);
    }

    /* Despliegue táctico infantil: rápido, legible y ligero en móvil. */
    html.theme-military .section {
      --military-entry-x: 22px;
      opacity: 0;
      transform: translate3d(var(--military-entry-x), 22px, 0) scale(.985);
      filter: brightness(.78) contrast(1.06);
      transition: box-shadow .35s ease, border-color .35s ease;
    }

    html.theme-military .section:nth-of-type(even) {
      --military-entry-x: -22px;
    }

    html.theme-military .section.show,
    html.theme-military body.mobile-optimized .section.show {
      animation: militarySectionDeploy .72s cubic-bezier(.16,.84,.24,1) both;
      filter: none;
    }

    html.theme-military .section::after {
      content: "";
      position: absolute;
      z-index: 8;
      left: 10px;
      right: 10px;
      top: 0;
      height: 2px;
      border-radius: 999px;
      background: linear-gradient(90deg, transparent, rgba(255, 226, 132, .9) 35% 65%, transparent);
      box-shadow: 0 8px 18px rgba(242, 193, 78, .2);
      opacity: 0;
      pointer-events: none;
      transform: translateY(-8px);
    }

    html.theme-military .section.show::after {
      animation: militarySectionScan .82s ease-out .06s both;
    }

    html.theme-military .section h2 {
      opacity: 0;
      transform: translateX(-12px) scale(.985);
      transition: opacity .42s ease .2s, transform .56s cubic-bezier(.16,.84,.24,1) .2s;
    }

    html.theme-military .section p {
      opacity: 0;
      transform: translateX(12px);
      transition: opacity .44s ease .28s, transform .56s cubic-bezier(.16,.84,.24,1) .28s;
    }

    html.theme-military .section.show h2,
    html.theme-military .section.show p {
      opacity: 1;
      transform: translateX(0) scale(1);
    }

    html.theme-military .section .featured-photo,
    html.theme-military .section .script-block,
    html.theme-military .section .parents-grid,
    html.theme-military .section .godparents-list,
    html.theme-military .section .event-card,
    html.theme-military .section .timeline,
    html.theme-military .section .gallery-showcase,
    html.theme-military .section .gallery,
    html.theme-military .section .rsvp-card,
    html.theme-military .section .utilities {
      transform: translateY(14px) scale(.99);
      transition: opacity .5s ease .34s, transform .64s cubic-bezier(.16,.84,.24,1) .34s;
    }

    html.theme-military .section.show .featured-photo,
    html.theme-military .section.show .script-block,
    html.theme-military .section.show .parents-grid,
    html.theme-military .section.show .godparents-list,
    html.theme-military .section.show .event-card,
    html.theme-military .section.show .timeline,
    html.theme-military .section.show .gallery-showcase,
    html.theme-military .section.show .gallery,
    html.theme-military .section.show .rsvp-card,
    html.theme-military .section.show .utilities {
      transform: translateY(0) scale(1);
    }

    @keyframes militarySectionDeploy {
      0% {
        opacity: 0;
        transform: translate3d(var(--military-entry-x), 22px, 0) scale(.985);
        filter: brightness(.78) contrast(1.06);
      }
      68% {
        opacity: 1;
        transform: translate3d(0, -2px, 0) scale(1.004);
        filter: brightness(1.08) contrast(1.02);
      }
      100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: none;
      }
    }

    @keyframes militarySectionScan {
      0% { opacity: 0; transform: translateY(-8px); }
      18% { opacity: .9; }
      78% { opacity: .35; }
      100% { opacity: 0; transform: translateY(112px); }
    }

    /* Militar infantil: apertura celebratoria y secciones sin numeración fija. */
    html.theme-military .section {
      border: 0;
      border-radius: 12px;
      box-shadow:
        inset 0 1px 0 rgba(255, 242, 181, .24),
        inset 0 -1px 0 rgba(12, 24, 11, .7),
        0 15px 32px rgba(6, 14, 7, .24);
    }

    html.theme-military .section::before,
    html.theme-military .section.show::before {
      content: none !important;
      display: none !important;
      animation: none !important;
    }

    html.theme-military .section h2,
    html.theme-military .section .eyebrow {
      display: block;
      width: fit-content;
      max-width: calc(100% - 24px);
      margin: 4px auto 22px;
      padding: 0 14px 13px;
      border: 0;
      border-radius: 0;
      background:
        linear-gradient(90deg, transparent, var(--section-title) 24% 76%, transparent)
        bottom center / 104px 3px no-repeat;
      box-shadow: none;
      color: var(--section-title);
      font-family: var(--font-display);
      font-size: clamp(1.45rem, 6.4vw, 2rem);
      font-weight: 800;
      line-height: 1.12;
      letter-spacing: 0;
      text-align: center;
      text-transform: none;
      text-shadow: 0 3px 0 rgba(19, 33, 17, .62), 0 0 16px rgba(var(--gold-rgb), .14);
      text-wrap: balance;
      overflow-wrap: anywhere;
    }

    html.theme-military .section .eyebrow {
      font-size: clamp(1.3rem, 5.8vw, 1.78rem);
      opacity: 0;
      transform: translateX(-12px) scale(.985);
      transition: opacity .42s ease .2s, transform .56s cubic-bezier(.16,.84,.24,1) .2s;
    }

    html.theme-military .section.show .eyebrow {
      opacity: 1;
      transform: translateX(0) scale(1);
    }

    html.theme-military .overlay {
      overflow: hidden;
    }

    html.theme-military .overlay::before {
      background-image:
        linear-gradient(180deg, rgba(8, 16, 8, .28), rgba(7, 14, 7, .64)),
        url("../media/fondo-infantil-militar.png");
      animation: militaryOpeningDrift 13s ease-in-out infinite alternate;
    }

    html.theme-military .overlay::after {
      background:
        radial-gradient(circle at 50% 56%, rgba(255, 220, 111, .16), transparent 23%),
        radial-gradient(ellipse at 50% 18%, rgba(255, 255, 232, .08), transparent 38%),
        linear-gradient(180deg, rgba(26, 47, 22, var(--opening-glass-top-a)), rgba(8, 17, 8, var(--opening-glass-bottom-a)));
    }

    html.theme-military .overlay-card::before {
      inset: 14px;
      border: 1px solid rgba(255, 226, 133, .5);
      border-radius: 18px;
      background:
        linear-gradient(90deg, var(--opening-accent) 0 42px, transparent 42px calc(100% - 42px), var(--opening-accent) calc(100% - 42px)) top / 100% 3px no-repeat,
        linear-gradient(90deg, var(--opening-accent) 0 42px, transparent 42px calc(100% - 42px), var(--opening-accent) calc(100% - 42px)) bottom / 100% 3px no-repeat;
      box-shadow:
        inset 0 0 0 5px rgba(255, 255, 255, .025),
        inset 0 0 46px rgba(11, 26, 11, .34);
    }

    html.theme-military .overlay-card::after {
      top: 46%;
      width: min(310px, 82vw);
      height: min(310px, 82vw);
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255, 228, 139, .16), rgba(228, 124, 54, .08) 38%, transparent 70%);
      filter: blur(8px);
      animation: militarySealAura 2.8s ease-in-out infinite;
    }

    html.theme-military .overlay-kicker {
      animation: militaryKickerIn .72s cubic-bezier(.16, .84, .24, 1) both;
    }

    html.theme-military .overlay-title-wrap {
      animation: militaryTitleIn .82s cubic-bezier(.16, .84, .24, 1) .08s both;
    }

    html.theme-military .wax-btn {
      top: 56%;
      animation: militarySealIn .9s cubic-bezier(.16, .84, .24, 1) .18s both;
    }

    html.theme-military .wax-btn::before {
      content: "";
      position: absolute;
      left: 50%;
      top: 50%;
      z-index: -2;
      display: block;
      width: 196px;
      height: 196px;
      transform: translate(-50%, -50%);
      border: 1px dashed rgba(255, 226, 132, .7);
      border-radius: 50%;
      background: conic-gradient(from 30deg, transparent 0 18%, rgba(228, 124, 54, .8) 18% 20%, transparent 20% 48%, rgba(255, 226, 132, .78) 48% 50%, transparent 50% 78%, rgba(143, 190, 94, .72) 78% 80%, transparent 80%);
      box-shadow: 0 0 26px rgba(255, 215, 103, .12);
      animation: militaryOrbit 9s linear infinite;
    }

    html.theme-military .wax-btn::after {
      content: "";
      position: absolute;
      inset: -13px;
      z-index: -1;
      display: block;
      border: 2px solid rgba(255, 231, 153, .36);
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255, 224, 128, .12), transparent 66%);
      box-shadow: inset 0 0 18px rgba(255, 234, 163, .1), 0 0 22px rgba(228, 124, 54, .12);
      animation: militarySealPulse 2.2s ease-in-out infinite;
    }

    html.theme-military .wax-caption {
      top: calc(56% + 105px);
      padding: 5px 12px;
      border-radius: 999px;
      background: rgba(10, 24, 11, .46);
      color: #ffe79b;
      box-shadow: inset 0 0 0 1px rgba(255, 229, 145, .16);
    }

    html.theme-military .launch-status {
      position: absolute;
      left: 50%;
      top: auto;
      bottom: max(30px, calc(env(safe-area-inset-bottom, 0px) + 22px));
      z-index: 5;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-width: 174px;
      padding: 7px 12px;
      transform: translateX(-50%);
      border: 1px solid rgba(255, 226, 133, .3);
      border-radius: 9px;
      background: rgba(21, 43, 20, .7);
      color: #fff3bd;
      font-family: var(--font-body);
      font-size: .62rem;
      font-weight: 800;
      text-transform: uppercase;
      white-space: nowrap;
      animation: militaryStatusIn .65s ease .52s both;
    }

    html.theme-military .launch-status span {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #9dd86d;
      box-shadow: 0 0 10px rgba(157, 216, 109, .58);
      animation: militaryStatusPulse 1.4s ease-in-out infinite;
    }

    html.theme-military .launch-status span:last-child {
      animation-delay: .28s;
    }

    html.theme-military .overlay.opening .overlay-card {
      animation: militaryOpeningDeploy .92s cubic-bezier(.2, .76, .22, 1) forwards;
    }

    html.theme-military .overlay.opening::after {
      animation: militaryOpeningSweep .9s ease-out forwards;
    }

    html.theme-military .overlay.opening .overlay-kicker,
    html.theme-military .overlay.opening .overlay-title-wrap {
      animation: militaryInterfaceAway .48s ease forwards;
    }

    html.theme-military .overlay.opening .overlay-title {
      animation: none !important;
    }

    html.theme-military .overlay.opening .wax-caption,
    html.theme-military .overlay.opening .launch-status {
      animation: militaryCenteredInterfaceAway .48s ease forwards;
    }

    html.theme-military .overlay.opening .wax-btn {
      animation: militarySealOpen .74s cubic-bezier(.2, .78, .22, 1) forwards;
    }

    html.theme-military .warp-flash {
      position: fixed;
      inset: 0;
      z-index: 1200;
      display: block;
      pointer-events: none;
      opacity: 0;
      background:
        radial-gradient(circle at 50% 56%, transparent 0 12%, rgba(255, 232, 157, .8) 12.5% 14%, rgba(228, 124, 54, .28) 15% 24%, transparent 35%),
        radial-gradient(circle at 50% 56%, rgba(255, 255, 232, .42), rgba(140, 190, 96, .12) 28%, transparent 58%);
      transform: scale(.34);
    }

    html.theme-military .warp-flash.active {
      animation: militaryCelebrationBurst 1.05s cubic-bezier(.16, 1, .3, 1) forwards;
    }

    html.theme-military .mission-accepted {
      position: fixed;
      left: 50%;
      top: max(26px, env(safe-area-inset-top, 0px));
      z-index: 900;
      display: block;
      width: min(84vw, 310px);
      padding: 10px 16px;
      transform: translate(-50%, -18px) scale(.94);
      border: 1px solid rgba(255, 225, 128, .48);
      border-radius: 10px;
      background: linear-gradient(135deg, rgba(38, 68, 31, .96), rgba(66, 91, 43, .94));
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 12px 30px rgba(5, 13, 6, .3);
      color: #fff0b5;
      font-family: var(--font-body);
      font-size: .76rem;
      font-weight: 900;
      text-align: center;
      text-transform: uppercase;
      pointer-events: none;
      opacity: 0;
    }

    html.theme-military .mission-accepted.active {
      animation: militaryAccessGranted 1.75s cubic-bezier(.16, 1, .3, 1) forwards;
    }

    @media (max-height: 700px) {
      html.theme-military .wax-btn { top: 55%; width: 132px; height: 132px; }
      html.theme-military .wax-btn::before { width: 174px; height: 174px; }
      html.theme-military .wax-caption { top: calc(55% + 90px); }
      html.theme-military .launch-status {
        bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 12px));
      }
    }

    @keyframes militaryOpeningDrift {
      from { transform: scale(1.04) translate3d(-.6%, -.4%, 0); }
      to { transform: scale(1.09) translate3d(.7%, .5%, 0); }
    }

    @keyframes militaryKickerIn {
      from { opacity: 0; transform: translateY(-12px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes militaryTitleIn {
      0% { opacity: 0; transform: translateY(16px) scale(.94); }
      72% { opacity: 1; transform: translateY(-2px) scale(1.015); }
      100% { opacity: 1; transform: translateY(0) scale(1); }
    }

    @keyframes militarySealIn {
      0% { opacity: 0; transform: translate(-50%, -50%) scale(.58) rotate(-8deg); }
      72% { opacity: 1; transform: translate(-50%, -50%) scale(1.06) rotate(2deg); }
      100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
    }

    @keyframes militarySealAura {
      0%, 100% { opacity: .55; transform: translateX(-50%) scale(.94); }
      50% { opacity: .9; transform: translateX(-50%) scale(1.04); }
    }

    @keyframes militaryOrbit {
      to { transform: translate(-50%, -50%) rotate(360deg); }
    }

    @keyframes militarySealPulse {
      0%, 100% { opacity: .58; transform: scale(.96); }
      50% { opacity: 1; transform: scale(1.04); }
    }

    @keyframes militaryStatusIn {
      from { opacity: 0; transform: translate(-50%, 8px); }
      to { opacity: 1; transform: translate(-50%, 0); }
    }

    @keyframes militaryStatusPulse {
      0%, 100% { opacity: .48; transform: scale(.82); }
      50% { opacity: 1; transform: scale(1.12); }
    }

    @keyframes militaryOpeningDeploy {
      0% { transform: scale(1); filter: none; }
      42% { transform: scale(.985); filter: brightness(1.12); }
      100% { transform: scale(1.08); filter: brightness(1.3); opacity: 0; }
    }

    @keyframes militaryOpeningSweep {
      0% { opacity: 1; transform: scaleY(1); }
      48% { opacity: .88; }
      100% { opacity: 0; transform: scaleY(1.12); }
    }

    @keyframes militaryInterfaceAway {
      to { opacity: 0; transform: translateY(-10px) scale(.97); filter: blur(4px); }
    }

    @keyframes militaryCenteredInterfaceAway {
      to { opacity: 0; transform: translate(-50%, -10px) scale(.97); filter: blur(4px); }
    }

    @keyframes militarySealOpen {
      0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
      58% { opacity: 1; transform: translate(-50%, -50%) scale(.86) rotate(-4deg); }
      100% { opacity: 0; transform: translate(-50%, -50%) scale(1.52) rotate(8deg); }
    }

    @keyframes militaryCelebrationBurst {
      0% { opacity: 0; transform: scale(.34); }
      28% { opacity: .92; }
      100% { opacity: 0; transform: scale(2.25); }
    }

    @keyframes militaryAccessGranted {
      0% { opacity: 0; transform: translate(-50%, -18px) scale(.94); }
      18%, 72% { opacity: 1; transform: translate(-50%, 0) scale(1); }
      100% { opacity: 0; transform: translate(-50%, -8px) scale(.98); }
    }

    @media (prefers-reduced-motion: reduce) {
      html.theme-military .section,
      html.theme-military .section.show,
      html.theme-military .section.show::before,
      html.theme-military .section.show::after,
      html.theme-military .overlay::before,
      html.theme-military .overlay-card::after,
      html.theme-military .overlay-kicker,
      html.theme-military .overlay-title-wrap,
      html.theme-military .wax-btn,
      html.theme-military .wax-btn::before,
      html.theme-military .wax-btn::after,
      html.theme-military .launch-status,
      html.theme-military .launch-status span,
      html.theme-military .warp-flash,
      html.theme-military .mission-accepted,
      html.theme-space-ranger .warp-flash,
      html.theme-space-ranger .mission-accepted,
      html.theme-space-ranger .launch-status,
      html.theme-space-ranger .launch-status span,
      html.theme-space-ranger .hero-hud span,
      html.theme-space-ranger .countdown-shell::after,
      html.theme-space-ranger .count-box,
      html.theme-space-ranger .count-box::after,
      html.theme-space-ranger .wax-btn::before,
      html.theme-space-ranger .wax-btn::after,
      #countdown-section.countdown-style-pulse .count-box,
      #countdown-section.countdown-style-pulse .count-box::after,
      #countdown-section.countdown-style-crystal .countdown-shell::after,
      #countdown-section.countdown-style-crystal .count-box.tick,
      #countdown-section.countdown-style-classic .count-box.tick,
      #countdown-section.countdown-style-editorial .count-box.tick,
      #countdown-section.countdown-style-editorial .count-box.tick strong,
      #countdown-section.countdown-style-military .count-box,
      #countdown-section.countdown-style-military-tags .count-box,
      #countdown-section.countdown-style-military-radar .count-box,
      #countdown-section.countdown-style-military-radar .countdown-shell::after {
        animation: none !important;
      }

      html.theme-military .section,
      html.theme-military .section::before,
      html.theme-military .section h2,
      html.theme-military .section p {
        opacity: 1;
        transform: none;
        filter: none;
      }
    }

    .overlay.elegant-opening.opening .overlay-card {
      animation: elegantOpeningRelease .94s cubic-bezier(.22, .72, .2, 1) forwards;
    }

    .overlay.elegant-opening.opening::after {
      animation: elegantGlassRelease .9s ease forwards;
    }

    .overlay.elegant-opening.opening .wax-btn {
      animation: elegantSealRelease .86s cubic-bezier(.2, .78, .2, 1) forwards;
    }

    .overlay.elegant-opening.opening .overlay-kicker,
    .overlay.elegant-opening.opening .overlay-title-wrap,
    .overlay.elegant-opening.opening .wax-caption {
      animation: elegantCopyRelease .62s cubic-bezier(.22, .72, .2, 1) forwards;
    }

    .overlay.elegant-opening.opening .overlay-title {
      animation: none;
    }

    .warp-flash.elegant {
      position: fixed;
      inset: 0;
      z-index: 1200;
      display: block;
      overflow: hidden;
      pointer-events: none;
      opacity: 0;
      background:
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, .28) 0 2%, rgba(var(--opening-accent-rgb), .18) 9%, rgba(var(--opening-title-rgb), .07) 22%, transparent 48%);
      mix-blend-mode: screen;
    }

    .warp-flash.elegant::before {
      content: "";
      position: absolute;
      inset: -24% -52%;
      opacity: 0;
      background:
        linear-gradient(106deg, transparent 42%, rgba(var(--opening-title-rgb), .05) 46%, rgba(var(--opening-accent-rgb), .28) 49%, rgba(255,255,255,.62) 50%, rgba(var(--opening-title-rgb), .14) 52%, transparent 57%);
      filter: blur(3px);
      transform: translateX(-34%) skewX(-7deg);
    }

    .warp-flash.elegant::after {
      content: "";
      position: absolute;
      left: 50%;
      top: 50%;
      width: min(76vw, 430px);
      height: 1px;
      border: 0;
      border-radius: 999px;
      background: linear-gradient(90deg, transparent, rgba(var(--opening-accent-rgb), .22), rgba(255,255,255,.82), rgba(var(--opening-title-rgb), .28), transparent);
      box-shadow: 0 0 12px rgba(var(--opening-accent-rgb), .34);
      opacity: 0;
      transform: translate(-50%, -50%) scaleX(0);
    }

    .warp-flash .elegant-spark {
      display: none;
    }

    .warp-flash.elegant .elegant-spark {
      position: absolute;
      left: 50%;
      top: 50%;
      z-index: 2;
      display: block;
      width: 3px;
      height: 3px;
      border-radius: 50%;
      background: rgba(255, 255, 255, .94);
      box-shadow: 0 0 8px rgba(var(--opening-accent-rgb), .76);
      opacity: 0;
      transform: translate(-50%, -50%) rotate(var(--spark-angle)) translateX(10px) scale(.65);
      transform-origin: center;
    }

    .warp-flash.elegant .elegant-spark::after {
      content: "";
      position: absolute;
      right: 2px;
      top: 50%;
      width: var(--spark-trail);
      height: 1px;
      transform: translateY(-50%);
      background: linear-gradient(90deg, transparent, rgba(var(--opening-accent-rgb), .68));
    }

    .warp-flash.elegant.active {
      animation: elegantLightVeil 1.16s cubic-bezier(.16, 1, .3, 1) forwards;
    }

    .warp-flash.elegant.active::before {
      animation: elegantSilkSweep .92s cubic-bezier(.16, 1, .3, 1) forwards;
    }

    .warp-flash.elegant.active::after {
      animation: elegantLightHorizon .78s cubic-bezier(.16, 1, .3, 1) forwards;
    }

    .warp-flash.elegant.active .elegant-spark {
      animation: elegantSparkTrail .86s cubic-bezier(.18, .72, .2, 1) var(--spark-delay) forwards;
    }

    @keyframes elegantOpeningRelease {
      0% { opacity: 1; transform: scale(1); filter: blur(0); }
      45% { opacity: 1; transform: scale(.996); filter: blur(0); }
      100% { opacity: 0; transform: scale(1.012); filter: blur(4px); }
    }

    @keyframes elegantGlassRelease {
      0%, 34% { opacity: 1; }
      100% { opacity: .1; }
    }

    @keyframes elegantSealRelease {
      0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
      28% { opacity: 1; transform: translate(-50%, -50%) scale(.94); }
      52% { opacity: 1; transform: translate(-50%, -50%) scale(1.025); filter: brightness(1.12); }
      100% { opacity: 0; transform: translate(-50%, -50%) scale(.9); filter: blur(4px) brightness(1.18); }
    }

    @keyframes elegantLightVeil {
      0% { opacity: 0; }
      22% { opacity: .68; }
      62% { opacity: .36; }
      100% { opacity: 0; }
    }

    @keyframes elegantCopyRelease {
      0% { opacity: 1; transform: translateY(0); filter: blur(0); }
      100% { opacity: 0; transform: translateY(-7px); filter: blur(3px); }
    }

    @keyframes elegantSilkSweep {
      0% { opacity: 0; transform: translateX(-34%) skewX(-7deg); }
      30% { opacity: .7; }
      100% { opacity: 0; transform: translateX(34%) skewX(-7deg); }
    }

    @keyframes elegantLightHorizon {
      0% { opacity: 0; transform: translate(-50%, -50%) scaleX(0); }
      35% { opacity: .84; }
      100% { opacity: 0; transform: translate(-50%, -50%) scaleX(1); }
    }

    @keyframes elegantSparkTrail {
      0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--spark-angle)) translateX(10px) scale(.65); }
      24% { opacity: .96; }
      100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--spark-angle)) translateX(var(--spark-distance)) scale(.28); }
    }

    .adult-notice-section {
      width: min(92%, 430px);
      margin: 18px auto 0;
      padding: 22px 24px 21px;
      border-color: rgba(var(--section-title-rgb), .24);
      box-shadow: 0 14px 30px rgba(0, 0, 0, .14);
    }

    .adult-notice-section h2,
    html.theme-military .adult-notice-section h2 {
      margin: 0 0 10px;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      font-family: var(--font-body);
      font-style: normal;
      font-weight: 600;
      font-size: 1.42rem;
      line-height: 1.18;
    }

    .adult-notice-section p {
      max-width: 340px;
      margin: 0 auto;
      font-size: .98rem;
      font-family: var(--font-body);
      font-style: normal;
      font-weight: 400;
      line-height: 1.5;
      white-space: pre-line;
    }

    html.theme-military .adult-notice-section {
      border: 1px solid rgba(var(--gold-rgb), .36);
      border-radius: 8px;
      background: rgba(40, 58, 31, .46);
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025), 0 12px 25px rgba(0, 0, 0, .18);
    }

    /* Contenedores y separadores configurables desde el panel. */
    html.sections-frameless .section,
    html.sections-frameless.theme-space-ranger .section,
    html.sections-frameless.theme-military .section,
    html.sections-frameless.theme-military .adult-notice-section {
      border: 0 !important;
      border-radius: 0 !important;
      background: transparent !important;
      background-image: none !important;
      box-shadow: none !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
    }

    .section.section-frame-none,
    .mobile-optimized .section.section-frame-none,
    html.theme-space-ranger .section.section-frame-none,
    html.theme-military .section.section-frame-none,
    html.theme-military .adult-notice-section.section-frame-none {
      border: 0 !important;
      border-radius: 0 !important;
      background: transparent !important;
      background-image: none !important;
      box-shadow: none !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
    }

    html.sections-frameless .section.section-frame-forced,
    html.sections-frameless.theme-space-ranger .section.section-frame-forced,
    html.sections-frameless.theme-military .section.section-frame-forced,
    html.sections-frameless.theme-military .adult-notice-section.section-frame-forced {
      border-radius: var(--radius-xl) !important;
      border: 1px solid var(--line) !important;
      background: linear-gradient(180deg, var(--section-fill-top), var(--section-fill-bottom)) !important;
      box-shadow: var(--shadow) !important;
      backdrop-filter: blur(var(--section-blur)) !important;
      -webkit-backdrop-filter: blur(var(--section-blur)) !important;
    }

    .section.section-frame-solid,
    .mobile-optimized .section.section-frame-solid,
    html.sections-frameless .section.section-frame-solid,
    html.theme-space-ranger .section.section-frame-solid,
    html.theme-military .section.section-frame-solid,
    html.sections-frameless.theme-military .adult-notice-section.section-frame-solid {
      width: calc(100% + 28px);
      margin-left: -14px;
      margin-right: -14px;
      padding-left: max(22px, env(safe-area-inset-left));
      padding-right: max(22px, env(safe-area-inset-right));
      border: 0 !important;
      border-radius: 0 !important;
      background:
        linear-gradient(
          180deg,
          rgba(var(--section-solid-bg-rgb, var(--section-title-rgb)), var(--section-solid-opacity, .92)),
          rgba(var(--section-solid-bg-rgb, var(--section-title-rgb)), var(--section-solid-opacity-bottom, .86))
        ) !important;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .18),
        inset 0 -1px 0 rgba(255, 255, 255, .10) !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
    }

    html.separator-image .separator,
    html.separator-image.theme-military .separator {
      width: min(var(--separator-image-width, 70%), 100%);
      height: 72px;
      margin-top: 18px;
      margin-bottom: -4px;
      border: 0;
      outline: 0;
      border-radius: 0;
      background-color: transparent !important;
      background-image: var(--separator-image);
      background-position: center;
      background-repeat: no-repeat;
      background-size: contain;
      box-shadow: none !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      overflow: visible;
    }

    html.separator-image .separator::before,
    html.separator-image .separator::after {
      content: none !important;
      display: none !important;
    }

    html:not(.separator-image):not(.separator-none) .separator,
    html.theme-military:not(.separator-image):not(.separator-none) .separator {
      width: min(var(--separator-line-width, 138px), 100%);
      min-height: 18px;
      height: 18px;
      border: 0 !important;
      outline: 0 !important;
      border-radius: 999px !important;
      background-color: transparent !important;
      background:
        linear-gradient(
          90deg,
          transparent 0%,
          rgba(var(--timeline-rgb), 0.34) 14%,
          rgba(var(--timeline-rgb), 0.98) 50%,
          rgba(var(--timeline-rgb), 0.34) 86%,
          transparent 100%
        ) center / 100% 2px no-repeat !important;
      box-shadow: none !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      opacity: 0.98;
      overflow: hidden;
    }

    .page > .separator {
      border: 0 !important;
      outline: 0 !important;
      background-color: transparent !important;
      box-shadow: none !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
    }

    html:not(.separator-image):not(.separator-none) .separator::before {
      content: none !important;
      display: none !important;
    }

    html:not(.separator-image):not(.separator-none) .separator::after {
      content: none !important;
      display: none !important;
    }

    html.separator-none .separator {
      display: none !important;
    }

    /* El formato elegido siempre domina al patron automatico de la galeria. */
    .gallery-item[data-gallery-layout="portrait"] {
      grid-column: span 1 !important;
      aspect-ratio: 3 / 4 !important;
    }

    .gallery-item[data-gallery-layout="square"] {
      grid-column: span 1 !important;
      aspect-ratio: 1 !important;
    }

    .gallery-item[data-gallery-layout="landscape"] {
      grid-column: 1 / -1 !important;
      aspect-ratio: 4 / 3 !important;
    }

    .gallery-item[data-gallery-layout="panorama"] {
      grid-column: 1 / -1 !important;
      aspect-ratio: 16 / 9 !important;
    }

    .gallery-item[data-gallery-layout]:not([data-gallery-layout="auto"]) .gallery-media {
      width: 100% !important;
      height: 100% !important;
      object-fit: contain !important;
      object-position: center !important;
    }

    /* Apertura sobre: pieza vertical, limpia y separada del modo clasico. */
    .opening-mode-envelope .overlay {
      background: var(--opening-envelope-bg, #201b1a) !important;
    }

    .opening-mode-envelope .envelope-opening-scene {
      width: min(78vw, 360px);
      height: min(82svh, 720px);
      aspect-ratio: 1170 / 2532;
      top: 50%;
      transform: translate(-50%, -50%);
      perspective: 1400px;
    }

    .opening-mode-envelope .envelope-card {
      height: 100%;
      filter: drop-shadow(0 24px 34px rgba(0, 0, 0, .28));
    }

    .opening-mode-envelope .envelope-card::before {
      inset: 0;
      border-radius: 0;
      background: none;
      filter: none;
      opacity: 0;
    }

    .opening-mode-envelope .envelope-back {
      border-radius: 3px;
      background: linear-gradient(135deg, var(--opening-envelope-paper-soft, #fffdf8), var(--opening-envelope-paper, #f3dec0));
      box-shadow: inset 0 0 0 1px rgba(94, 70, 44, .13);
    }

    .opening-mode-envelope .envelope-back::before {
      content: "";
      position: absolute;
      inset: 0 50%;
      width: 1px;
      background: rgba(76, 51, 29, .34);
      box-shadow: 1px 0 5px rgba(255, 255, 255, .46);
      z-index: 2;
    }

    .opening-mode-envelope .envelope-side {
      top: 0;
      bottom: 0;
      width: 50%;
      border-radius: 0;
      clip-path: none;
      transition: transform .86s cubic-bezier(.19, 1, .22, 1), opacity .58s ease;
      backface-visibility: hidden;
    }

    .opening-mode-envelope .envelope-side--left {
      left: 0;
      right: auto;
      background: linear-gradient(105deg, var(--opening-envelope-paper-soft, #fffdf8), var(--opening-envelope-paper, #f3dec0));
      border-right: 1px solid rgba(76, 51, 29, .18);
      transform-origin: left center;
    }

    .opening-mode-envelope .envelope-side--right {
      left: auto;
      right: 0;
      background: linear-gradient(255deg, var(--opening-envelope-paper-soft, #fffdf8), var(--opening-envelope-paper, #f3dec0));
      border-left: 1px solid rgba(76, 51, 29, .18);
      transform-origin: right center;
    }

    .opening-mode-envelope .envelope-pocket,
    .opening-mode-envelope .envelope-flap {
      display: none;
    }

    .opening-mode-envelope .envelope-paper {
      left: 6%;
      right: auto;
      top: 7%;
      bottom: auto;
      width: 88%;
      height: 86%;
      inset: 7% auto auto 6%;
      border-radius: 2px;
      transform: translateY(18%) scale(.86);
      background: var(--opening-envelope-paper, #f3dec0);
      box-shadow: 0 16px 30px rgba(30, 16, 9, .22);
      opacity: 0;
      transition: none;
      z-index: 1;
    }

    .opening-mode-envelope .envelope-paper img {
      object-fit: cover;
      border-radius: inherit;
    }

    .opening-mode-envelope .wax-btn {
      top: 50%;
      width: min(17vw, 68px);
      height: min(17vw, 68px);
      transform: translate(-50%, -50%);
      z-index: 8;
    }

    .opening-mode-envelope .wax-caption {
      top: calc(50% + min(17vw, 68px) * .62 + 56px);
      padding: 9px 18px;
      border: 1px solid rgba(var(--opening-accent-rgb), .24);
      background: rgba(255, 255, 255, .08);
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }

    .opening-mode-envelope .envelope-details {
      top: 18%;
      bottom: 18%;
      z-index: 6;
    }

    .opening-mode-envelope .envelope-details strong {
      font-size: clamp(1.15rem, 5.5vw, 1.9rem);
    }

    .opening-mode-envelope .envelope-details small {
      bottom: -6px;
    }

    .opening-mode-envelope .overlay.envelope-opening-active .envelope-side--left {
      transform: translateX(-104%) rotateY(-10deg);
    }

    .opening-mode-envelope .overlay.envelope-opening-active .envelope-side--right {
      transform: translateX(104%) rotateY(10deg);
    }

    .opening-mode-envelope .overlay.envelope-opening-active .envelope-paper {
      animation: envelopePostalReveal .92s cubic-bezier(.19, 1, .22, 1) .1s forwards;
    }

    .opening-mode-envelope.envelope-scroll-reveal .overlay.envelope-opening-active .envelope-card {
      transform: translateY(var(--envelope-card-y, 0px)) scale(var(--envelope-card-scale, 1));
    }

    .opening-mode-envelope.envelope-scroll-reveal .overlay.envelope-opening-active .envelope-side {
      opacity: var(--envelope-piece-opacity, 1);
    }

    .opening-mode-envelope.envelope-scroll-reveal .overlay.envelope-opening-active .envelope-paper {
      animation: none;
      opacity: 1;
      transform: translateY(var(--envelope-paper-y, 0%)) scale(var(--envelope-paper-scale, .86));
      border-radius: var(--envelope-paper-radius, 2px);
      box-shadow: 0 var(--envelope-paper-shadow-y, 18px) var(--envelope-paper-shadow-blur, 42px) rgba(25, 14, 10, var(--envelope-paper-shadow-alpha, .28));
    }

    .opening-mode-envelope.envelope-scroll-reveal .overlay.envelope-hero-reveal {
      background: var(--opening-envelope-bg, #201b1a) !important;
    }

    @keyframes envelopePostalReveal {
      from { opacity: 0; transform: translateY(18%) scale(.86); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    @media (max-width: 420px) {
      .opening-mode-envelope .envelope-opening-scene {
        width: min(82vw, 340px);
        height: min(80svh, 690px);
      }
    }

    /* El sobre ocupa toda la pantalla y termina al abrirse; no requiere scroll. */
    .opening-mode-envelope .envelope-opening-scene {
      left: 0;
      top: 0;
      width: 100vw;
      height: 100dvh;
      max-height: none;
      transform: none;
    }

    .opening-mode-envelope .envelope-card {
      width: 100%;
      height: 100%;
      filter: none;
    }

    .opening-mode-envelope .envelope-back {
      border-radius: 0;
    }

    .opening-mode-envelope .envelope-paper {
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      inset: 0;
      border-radius: 0;
      transform: scale(.9);
      box-shadow: none;
    }

    .opening-mode-envelope .envelope-paper img {
      object-fit: cover;
      object-position: center;
    }

    .opening-mode-envelope .envelope-side {
      transition: transform .86s cubic-bezier(.19, 1, .22, 1), opacity .48s ease .2s;
    }

    .opening-mode-envelope .wax-btn {
      left: 50%;
      top: 50%;
    }

    .opening-mode-envelope .wax-caption {
      top: auto;
      bottom: max(9vh, 54px);
    }

    .opening-mode-envelope .overlay.envelope-opening-active .envelope-paper {
      animation: envelopePostalRevealFullscreen .92s cubic-bezier(.19, 1, .22, 1) .08s forwards;
    }

    @keyframes envelopePostalRevealFullscreen {
      from { opacity: 0; transform: scale(.9); }
      to { opacity: 1; transform: scale(1); }
    }

    /* Final envelope pass: clean center seam, textured paper, and a true split opening. */
    .opening-mode-envelope .envelope-back::before {
      display: none;
    }

    .opening-mode-envelope .envelope-back,
    .opening-mode-envelope .envelope-side {
      background-image: var(--opening-envelope-texture, none),
        linear-gradient(135deg, var(--opening-envelope-paper-soft, #fffdf8), var(--opening-envelope-paper, #f3dec0));
      background-size: cover, auto;
      background-position: center, center;
      background-repeat: repeat, no-repeat;
      background-blend-mode: soft-light, normal;
    }

    .opening-mode-envelope .envelope-side--left,
    .opening-mode-envelope .envelope-side--right {
      border-left: 0;
      border-right: 0;
      box-shadow: 0 0 26px rgba(38, 23, 12, .12);
    }

    .opening-mode-envelope .envelope-card {
      overflow: visible;
      isolation: isolate;
    }

    .opening-mode-envelope .wax-btn {
      left: 50%;
      top: 50%;
      margin: 0;
    }

    .opening-mode-envelope .overlay.envelope-opening-active .wax-btn {
      transform: translate(-50%, -50%) scale(.86);
    }

    /* The envelope uses the classic opening axis, without the preview scale. */
    html.opening-mode-envelope .overlay-scene {
      transform: none !important;
    }

    html.opening-mode-envelope .overlay {
      padding: 0 !important;
    }

    html.opening-mode-envelope .envelope-opening-scene {
      position: absolute !important;
      left: 0 !important;
      top: 0 !important;
      width: 100vw !important;
      height: 100dvh !important;
      max-width: none !important;
      max-height: none !important;
      transform: none !important;
      margin: 0 !important;
    }

    html.opening-mode-envelope .envelope-card {
      width: 100% !important;
      height: 100% !important;
      filter: none !important;
    }

    html.opening-mode-envelope .envelope-card::before,
    html.opening-mode-envelope .envelope-back::after {
      display: none !important;
    }

    html.opening-mode-envelope .envelope-back,
    html.opening-mode-envelope .envelope-side {
      box-shadow: inset 0 0 18px rgba(54, 34, 18, .08) !important;
    }

    html.opening-mode-envelope .wax-btn {
      left: 50% !important;
      top: 50% !important;
      width: min(30vw, 150px) !important;
      height: min(30vw, 150px) !important;
      transform: translate(-50%, -50%) !important;
    }

    html.opening-mode-envelope .wax-btn img {
      width: 100% !important;
      height: 100% !important;
    }

    /* Double hinged doors: the leaves rotate from the center instead of sliding away. */
    html.opening-mode-envelope .envelope-side {
      width: 50% !important;
      transform-style: preserve-3d;
      will-change: transform;
      transition: transform .92s cubic-bezier(.65, 0, .35, 1) !important;
      backface-visibility: hidden;
      opacity: 1 !important;
    }

    html.opening-mode-envelope .envelope-side--left {
      left: 0 !important;
      right: auto !important;
      transform-origin: left center !important;
    }

    html.opening-mode-envelope .envelope-side--right {
      left: auto !important;
      right: 0 !important;
      transform-origin: right center !important;
    }

    html.opening-mode-envelope .overlay.envelope-opening-active .envelope-side--left {
      transform: translateZ(0) rotateY(-88deg) !important;
      box-shadow: 12px 0 22px rgba(38, 23, 12, .2), inset 0 0 18px rgba(54, 34, 18, .08) !important;
    }

    html.opening-mode-envelope .overlay.envelope-opening-active .envelope-side--right {
      transform: translateZ(0) rotateY(88deg) !important;
      box-shadow: -12px 0 22px rgba(38, 23, 12, .2), inset 0 0 18px rgba(54, 34, 18, .08) !important;
    }

    /* The postcard is already in place; only the doors move, so the photo never jumps. */
    html.opening-mode-envelope .envelope-paper {
      opacity: 1 !important;
      transform: none !important;
      animation: none !important;
      z-index: 0;
      will-change: auto;
      background-image: var(--envelope-paper-image, none) !important;
      background-color: transparent !important;
      background-size: contain !important;
      background-position: center !important;
      background-repeat: no-repeat !important;
      box-shadow: 0 18px 42px rgba(25, 14, 10, .24) !important;
    }

    /* Once the doors begin moving, the real hero is the continuous backdrop. */
    html.opening-mode-envelope .overlay.envelope-opening-active {
      background-image: var(--overlay-image, none) !important;
      background-position: center !important;
      background-size: cover !important;
      background-repeat: no-repeat !important;
      background-color: var(--opening-envelope-bg, #201b1a) !important;
    }

    html.opening-mode-envelope .hero {
      background: var(--opening-envelope-bg, #201b1a);
    }

    #storySection.section-font-size-heading h2,
    #parentsSection.section-font-size-heading h2,
    #godparentsSection.section-font-size-heading h2,
    #ceremonySection.section-font-size-heading h2,
    #receptionSection.section-font-size-heading h2,
    #timelineSection.section-font-size-heading h2,
    #countdown-section.section-font-size-heading h2,
    #gallerySection.section-font-size-heading h2,
    #dressSection.section-font-size-heading h2,
    #adultNoticeSection.section-font-size-heading h2,
    #rsvpSection.section-font-size-heading h2,
    #giftSection.section-font-size-heading h2,
    #agendaSectionUi.section-font-size-heading h2,
    #albumSection.section-font-size-heading h2 {
      font-size: calc(2.02rem * var(--section-font-size-heading, 1)) !important;
    }

    #storySection.section-font-size-body .story-text,
    #adultNoticeSection.section-font-size-body p,
    #albumSection.section-font-size-body #albumCopy,
    #agendaSectionUi.section-font-size-body p,
    #giftSection.section-font-size-body #giftIntro,
    #giftSection.section-font-size-body .gift-option-copy,
    #giftSection.section-font-size-body .mini-note,
    #giftSection.section-font-size-body .bank-transfer-card,
    #rsvpSection.section-font-size-body .rsvp-card,
    #rsvpSection.section-font-size-body .rsvp-invalid,
    #rsvpSection.section-font-size-body .rsvp-deadline-note {
      font-size: calc(1.12rem * var(--section-font-size-body, 1)) !important;
    }

    #parentsSection.section-font-size-eyebrow .eyebrow,
    #godparentsSection.section-font-size-eyebrow .eyebrow {
      font-size: calc(.78rem * var(--section-font-size-eyebrow, 1)) !important;
    }

    #parentsSection.section-font-size-names .family-names,
    #godparentsSection.section-font-size-names .godparent-names {
      font-size: calc(2rem * var(--section-font-size-names, 1)) !important;
    }

    #parentsSection.section-font-size-notes .grandparents-eyebrow,
    #godparentsSection.section-font-size-notes .godparent-note {
      font-size: calc(.74rem * var(--section-font-size-notes, 1)) !important;
    }

    #ceremonySection.section-font-size-time .event-time,
    #receptionSection.section-font-size-time .event-time,
    #timelineSection.section-font-size-time .timeline-time {
      font-size: calc(.8rem * var(--section-font-size-time, 1)) !important;
    }

    #ceremonySection.section-font-size-place .event-place,
    #receptionSection.section-font-size-place .event-place {
      font-size: calc(1.45rem * var(--section-font-size-place, 1)) !important;
    }

    #ceremonySection.section-font-size-detail .event-place-detail,
    #receptionSection.section-font-size-detail .event-place-detail {
      font-size: calc(.88rem * var(--section-font-size-detail, 1)) !important;
    }

    #ceremonySection.section-font-size-button .btn,
    #receptionSection.section-font-size-button .btn,
    #countdown-section.section-font-size-button .btn,
    #giftSection.section-font-size-button .btn,
    #giftSection.section-font-size-button .gift-link-card__button,
    #agendaSectionUi.section-font-size-button .btn,
    #albumSection.section-font-size-button .btn {
      font-size: calc(.82rem * var(--section-font-size-button, 1)) !important;
    }

    #timelineSection.section-font-size-title .timeline-title {
      font-size: calc(1.12rem * var(--section-font-size-title, 1)) !important;
    }

    #timelineSection.section-font-size-desc .timeline-desc {
      font-size: calc(.96rem * var(--section-font-size-desc, 1)) !important;
    }

    #timelineSection.section-font-size-note .timeline-note {
      font-size: calc(.92rem * var(--section-font-size-note, 1)) !important;
    }

    #timelineSection.section-font-size-day .timeline-day-label {
      font-size: calc(.82rem * var(--section-font-size-day, 1)) !important;
    }

    #countdown-section.section-font-size-intro #countdownIntro {
      font-size: calc(1.12rem * var(--section-font-size-intro, 1)) !important;
    }

    #countdown-section.section-font-size-date #countdownDateCard {
      font-size: calc(1rem * var(--section-font-size-date, 1)) !important;
    }

    #countdown-section.section-font-size-numbers #countdown .count-box strong {
      font-size: calc(2.72rem * var(--section-font-size-numbers, 1)) !important;
    }

    #countdown-section.section-font-size-labels #countdown .count-box span,
    #countdown-section.section-font-size-labels #countdown .count-box em {
      font-size: calc(.72rem * var(--section-font-size-labels, 1)) !important;
    }

    #countdown-section.section-font-size-caption #countdownCaption {
      font-size: calc(.88rem * var(--section-font-size-caption, 1)) !important;
    }

    #gallerySection.section-font-size-body .gallery-counter,
    #gallerySection.section-font-size-body .gallery-hint,
    #gallerySection.section-font-size-body .gallery-preview-caption {
      font-size: calc(.82rem * var(--section-font-size-body, 1)) !important;
    }

    #gallerySection.section-font-size-nav .gallery-nav {
      font-size: calc(1rem * var(--section-font-size-nav, 1)) !important;
    }

    #dressSection.section-font-size-body .dress-code-list {
      font-size: calc(1rem * var(--section-font-size-body, 1)) !important;
    }

    #dressSection.section-font-size-note .mini-note {
      font-size: calc(.94rem * var(--section-font-size-note, 1)) !important;
    }

    #rsvpSection.section-font-size-fields input,
    #rsvpSection.section-font-size-fields select,
    #rsvpSection.section-font-size-fields label {
      font-size: calc(1rem * var(--section-font-size-fields, 1)) !important;
    }

    #rsvpSection.section-font-size-buttons .rsvp-buttons button {
      font-size: calc(.82rem * var(--section-font-size-buttons, 1)) !important;
    }

    #rsvpSection.section-font-size-personalized .rsvp-personalization {
      font-size: calc(1rem * var(--section-font-size-personalized, 1)) !important;
    }

    #rsvpSection.section-font-size-receipt .rsvp-receipt {
      font-size: calc(1rem * var(--section-font-size-receipt, 1)) !important;
    }

    #giftSection.section-font-size-optionTitle .gift-option-title {
      font-size: calc(1.62rem * var(--section-font-size-optionTitle, 1)) !important;
    }

    #closingNote.section-font-size-body {
      font-size: calc(1.42rem * var(--section-font-size-body, 1)) !important;
    }

    #storySection.section-font-heading h2,
    #parentsSection.section-font-heading h2,
    #godparentsSection.section-font-heading h2,
    #ceremonySection.section-font-heading h2,
    #receptionSection.section-font-heading h2,
    #timelineSection.section-font-heading h2,
    #countdown-section.section-font-heading h2,
    #gallerySection.section-font-heading h2,
    #dressSection.section-font-heading h2,
    #adultNoticeSection.section-font-heading h2,
    #rsvpSection.section-font-heading h2,
    #giftSection.section-font-heading h2,
    #agendaSectionUi.section-font-heading h2,
    #albumSection.section-font-heading h2 {
      font-family: var(--section-font-heading) !important;
    }

    #storySection.section-font-body .story-text,
    #parentsSection.section-font-body p,
    #adultNoticeSection.section-font-body p,
    #albumSection.section-font-body #albumCopy,
    #agendaSectionUi.section-font-body p,
    #giftSection.section-font-body #giftIntro,
    #giftSection.section-font-body .gift-option-copy,
    #giftSection.section-font-body .mini-note,
    #giftSection.section-font-body .bank-transfer-card,
    #rsvpSection.section-font-body .rsvp-card,
    #rsvpSection.section-font-body .rsvp-invalid,
    #rsvpSection.section-font-body .rsvp-deadline-note {
      font-family: var(--section-font-body) !important;
    }

    #parentsSection.section-font-eyebrow .eyebrow,
    #godparentsSection.section-font-eyebrow .eyebrow {
      font-family: var(--section-font-eyebrow) !important;
    }

    #parentsSection.section-font-names > .script-block,
    #parentsSection.section-font-names .family-names,
    #godparentsSection.section-font-names > .script-block,
    #godparentsSection.section-font-names .godparent-names {
      font-family: var(--section-font-names) !important;
    }

    #parentsSection.section-font-notes .grandparents-eyebrow,
    #godparentsSection.section-font-notes .godparent-note {
      font-family: var(--section-font-notes) !important;
    }

    #ceremonySection.section-font-time .event-time,
    #receptionSection.section-font-time .event-time,
    #timelineSection.section-font-time .timeline-time {
      font-family: var(--section-font-time) !important;
    }

    #ceremonySection.section-font-place .event-place,
    #receptionSection.section-font-place .event-place {
      font-family: var(--section-font-place) !important;
    }

    #ceremonySection.section-font-detail .event-place-detail,
    #receptionSection.section-font-detail .event-place-detail {
      font-family: var(--section-font-detail) !important;
    }

    #ceremonySection.section-font-button .btn,
    #receptionSection.section-font-button .btn,
    #countdown-section.section-font-button .btn,
    #giftSection.section-font-button .btn,
    #giftSection.section-font-button .gift-link-card__button,
    #agendaSectionUi.section-font-button .btn,
    #albumSection.section-font-button .btn {
      font-family: var(--section-font-button) !important;
    }

    #timelineSection.section-font-title .timeline-title {
      font-family: var(--section-font-title) !important;
    }

    #timelineSection.section-font-desc .timeline-desc {
      font-family: var(--section-font-desc) !important;
    }

    #timelineSection.section-font-note .timeline-note {
      font-family: var(--section-font-note) !important;
    }

    #timelineSection.section-font-day .timeline-day-label {
      font-family: var(--section-font-day) !important;
    }

    #countdown-section.section-font-intro #countdownIntro {
      font-family: var(--section-font-intro) !important;
    }

    #countdown-section.section-font-date #countdownDateCard {
      font-family: var(--section-font-date) !important;
    }

    #countdown-section.section-font-numbers #countdown .count-box strong {
      font-family: var(--section-font-numbers) !important;
    }

    #countdown-section.section-font-labels #countdown .count-box span,
    #countdown-section.section-font-labels #countdown .count-box em {
      font-family: var(--section-font-labels) !important;
    }

    #countdown-section.section-font-caption #countdownCaption {
      font-family: var(--section-font-caption) !important;
    }

    #gallerySection.section-font-body .gallery-counter,
    #gallerySection.section-font-body .gallery-hint,
    #gallerySection.section-font-body .gallery-preview-caption,
    #dressSection.section-font-body .dress-code-list {
      font-family: var(--section-font-body) !important;
    }

    #gallerySection.section-font-nav .gallery-nav {
      font-family: var(--section-font-nav) !important;
    }

    #dressSection.section-font-note .mini-note {
      font-family: var(--section-font-note) !important;
    }

    #rsvpSection.section-font-fields input,
    #rsvpSection.section-font-fields select,
    #rsvpSection.section-font-fields label {
      font-family: var(--section-font-fields) !important;
    }

    #rsvpSection.section-font-buttons .rsvp-buttons button {
      font-family: var(--section-font-buttons) !important;
    }

    #rsvpSection.section-font-personalized .rsvp-personalization {
      font-family: var(--section-font-personalized) !important;
    }

    #rsvpSection.section-font-receipt .rsvp-receipt {
      font-family: var(--section-font-receipt) !important;
    }

    #giftSection.section-font-optionTitle .gift-option-title {
      font-family: var(--section-font-optionTitle) !important;
    }

    #closingNote.section-font-body {
      font-family: var(--section-font-body) !important;
    }
