@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&family=Lovers+Quarrel&family=Parisienne&family=Pinyon+Script&family=Dancing+Script:wght@400..700&family=Tangerine:wght@700&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&display=swap");

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    :root {
      --phone-width: min(100vw, 430px);
      --font-body: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
      --font-serif: "Cormorant Garamond", "Times New Roman", serif;
      --font-script: "Pinyon Script", "Great Vibes", "Parisienne", cursive;
      --font-number: "Cormorant Garamond", "Times New Roman", serif;
      --ink: #4d3130;
      --brand: #934847;
    }

    html {
      scroll-behavior: smooth;
      background: #251b1a;
    }

    body {
      width: 100%;
      min-height: 100svh;
      margin: 0;
      font-family: var(--font-body);
      background: #ffffff;
      color: var(--ink);
      overflow-x: hidden;
    }

    html.scroll-locked,
    body.scroll-locked {
      overflow: hidden;
      overscroll-behavior: none;
      touch-action: none;
    }

    body.scroll-locked {
      position: fixed;
      top: 0;
      left: 50%;
      height: 100svh;
      transform: translateX(-50%);
    }

    body::before {
      content: "";
      position: fixed;
      top: 0;
      left: 0;
      z-index: 90;
      width: 100%;
      height: env(safe-area-inset-top);
      background: #251b1a;
      pointer-events: none;
    }


    html.modal-locked,
    body.modal-locked {
      overflow: hidden;
      overscroll-behavior: none;
      touch-action: none;
    }

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

    a {
      color: inherit;
    }


    .hero {
      min-height: 100svh;
      display: flex;
      align-items: stretch;
      width: min(100vw, 430px);
      margin: 0 auto;
      box-shadow: 0 12px 42px rgba(39, 58, 51, 0.22);
    }

    .invite {
      width: 100%;
      min-height: 100svh;
      position: relative;
      overflow: hidden;
      padding: 0;
      border: 0;
      background:
        radial-gradient(circle at 21% 14%, rgba(255, 255, 255, 0.42) 0 1px, transparent 2px),
        radial-gradient(circle at 73% 18%, rgba(255, 255, 255, 0.24) 0 1px, transparent 2px),
        radial-gradient(ellipse at 50% 18%, rgba(238, 248, 241, 0.38), transparent 58%),
        linear-gradient(90deg, rgba(36, 76, 54, 0.22), transparent 20%, transparent 82%, rgba(31, 69, 50, 0.26)),
        linear-gradient(180deg, rgba(189, 216, 197, 0.96), rgba(134, 178, 149, 0.98) 50%, rgba(109, 160, 128, 0.98));
      animation: cardIn 0.8s ease both;
      isolation: isolate;
    }

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

    @keyframes musicSpin {
      to { transform: rotate(360deg); }
    }

    body::after {
      --v-a: "\004d\0061";
      --v-b: "\0064\0065\0020";
      --v-c: "\0077\0069\0074\0068\0020";
      --v-d: "\0044\0051\0079\0068";
      content: var(--v-a) var(--v-b) var(--v-c) var(--v-d);
      position: fixed;
      right: max(2px, calc((100vw - 430px) / 2 + 2px));
      bottom: 60px;
      z-index: 40;
      writing-mode: vertical-rl;
      transform: rotate(180deg);
      color: #2f2828;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.2px;
    }

    .source-signature {
      position: fixed;
      left: 0;
      bottom: 0;
      width: 1px;
      height: 1px;
      overflow: hidden;
      opacity: 0.01;
      pointer-events: none;
      user-select: none;
    }

    button {
      min-height: 48px;
      border: 0;
      border-radius: 999px;
      padding: 13px 18px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: var(--brand);
      color: white;
      font: inherit;
      font-size: 15px;
      font-weight: 800;
      text-decoration: none;
      box-shadow: 0 10px 24px rgba(147, 72, 71, 0.22);
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
    }

    .family-intro {
      position: relative;
      overflow: hidden;
      margin-top: 22px;
    }

    .family-intro,
    .venue-card-section,
    .countdown-calendar-section,
    .rsvp-feature-section,
    .wedding-album-section,
    .notebook-thanks-section {
      content-visibility: auto;
      contain-intrinsic-size: 720px;
    }

    .family-intro::before,
    .venue-card-section::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(90deg, rgba(30, 73, 49, 0.18), transparent 22%, transparent 78%, rgba(30, 73, 49, 0.18)),
        rgba(109, 151, 126, 0.2);
      pointer-events: none;
    }

    .family-intro-bar {
      position: relative;
      z-index: 2;
      display: grid;
      grid-template-columns: 1fr;
      align-items: center;
      min-height: 50px;
      padding: 6px 24px;
      background: rgba(30, 75, 48, 0.94);
      box-shadow: 0 5px 12px rgba(24, 52, 36, 0.16);
    }

    .family-intro-bar h2 {
      color: #fffaf3;
      font-family: var(--font-serif);
      font-size: 25px;
      font-weight: 400;
      line-height: 1;
      letter-spacing: 2px;
      text-align: center;
    }

    .family-layout {
      position: relative;
      z-index: 1;
      min-height: 650px;
      padding: 26px 20px 28px;
    }

    .family-person {
      position: relative;
      width: 100%;
    }

    .groom-block {
      display: grid;
      grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
      gap: 24px;
      align-items: start;
      min-height: 292px;
    }

    .bride-block {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 176px);
      gap: 24px;
      align-items: start;
      min-height: 300px;
      margin-top: 18px;
    }

    .family-details {
      position: relative;
      color: #fff;
      text-shadow: 0 1px 5px rgba(42, 80, 56, 0.18);
    }

    .groom-details {
      display: flex;
      flex-direction: column;
      width: 100%;
      min-height: 280px;
      padding-top: 10px;
    }

    .bride-details {
      display: flex;
      flex-direction: column;
      width: 100%;
      min-height: 278px;
      padding-top: 22px;
    }

    .family-photo {
      position: absolute;
      margin: 0;
      overflow: hidden;
      border: 5px solid rgba(255, 255, 255, 0.96);
      background: #fff;
      box-shadow: 0 12px 22px rgba(40, 75, 54, 0.16);
    }

    .family-photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .groom-photo {
      position: relative;
      top: auto;
      left: auto;
      width: 100%;
      aspect-ratio: 178 / 280;
      border-radius: 98px 98px 0 0;
    }

    .groom-photo img {
      object-position: center 18%;
    }

    .bride-photo {
      position: relative;
      right: auto;
      top: auto;
      width: 100%;
      aspect-ratio: 176 / 278;
      border-radius: 92px 92px 0 0;
    }

    .bride-photo img {
      object-position: center 14%;
    }

    .family-copy,
    .person-name {
      color: #fff;
      text-shadow: 0 1px 4px rgba(42, 80, 56, 0.24);
    }

    .family-copy h3 {
      margin: 0 0 36px;
      font-family: var(--font-serif);
      font-size: 31px;
      font-weight: 400;
      line-height: 0.95;
      letter-spacing: 0;
      text-align: center;
    }

    .family-copy p {
      margin: 0;
      font-family: var(--font-serif);
      font-variant-numeric: lining-nums tabular-nums;
      font-feature-settings: "lnum" 1, "tnum" 1;
      font-size: 18px;
      line-height: 1.55;
      font-weight: 600;
      letter-spacing: 0;
    }

    .groom-family {
      text-align: left;
    }

    .bride-family {
      text-align: right;
    }

    .person-signature {
      position: absolute;
      left: 0;
      right: 0;
    }

    .groom-signature {
      position: relative;
      top: auto;
      min-height: 76px;
      margin-top: auto;
    }

    .bride-signature {
      position: relative;
      top: auto;
      min-height: 76px;
      margin-top: auto;
    }

    .person-name {
      display: grid;
      gap: 4px;
      font-family: var(--font-serif);
      line-height: 1.08;
    }

    .person-name span {
      font-size: 15px;
    }

    .person-name strong {
      font-size: clamp(20px, 5.25vw, 23px);
      font-weight: 700;
      letter-spacing: 0;
      white-space: nowrap;
    }

    .groom-name {
      position: absolute;
      left: 0;
      bottom: 0;
      text-align: left;
    }

    .bride-name {
      position: absolute;
      right: 0;
      bottom: 0;
      text-align: right;
    }

    .family-character {
      position: relative;
      z-index: 2;
      margin: 0;
      pointer-events: none;
    }

    .family-character img {
      width: 100%;
      height: auto;
    }

    .groom-character {
      position: absolute;
      top: -22px;
      right: 20px;
      width: 38px;
    }

    .bride-character {
      position: absolute;
      top: 17px;
      left: 12px;
      width: 45px;
      translate: 0 -12px;
    }

    @media (max-width: 420px) {
      .family-intro {
        min-height: 698px;
      }

      .family-intro-bar {
        padding-inline: 22px;
      }

      .family-layout {
        min-height: 648px;
        padding-inline: 18px;
      }

      .groom-block {
        grid-template-columns: minmax(0, 176px) minmax(0, 1fr);
        gap: 20px;
      }

      .groom-details {
        min-height: 278px;
      }

      .bride-details {
        min-height: 276px;
      }

      .bride-block {
        grid-template-columns: minmax(0, 1fr) minmax(0, 174px);
        gap: 20px;
      }
    }

    @media (max-width: 360px) {
      .family-intro-bar {
        grid-template-columns: 1fr;
        padding-inline: 18px;
      }

      .family-intro-bar h2 {
        font-size: 22px;
        letter-spacing: 1.5px;
      }

      .family-layout {
        min-height: 612px;
        padding-inline: 14px;
      }

      .groom-block {
        grid-template-columns: minmax(0, 156px) minmax(0, 1fr);
        gap: 14px;
        min-height: 248px;
      }

      .bride-block {
        grid-template-columns: minmax(0, 1fr) minmax(0, 158px);
        gap: 14px;
        min-height: 276px;
        margin-top: 16px;
      }

      .groom-details {
        min-height: 246px;
        padding-top: 8px;
      }

      .bride-details {
        min-height: 258px;
        padding-top: 18px;
      }

      .family-copy h3 {
        font-size: 28px;
        margin-bottom: 24px;
      }

      .family-copy p {
        font-size: 15px;
      }

      .groom-signature {
        min-height: 66px;
      }

      .bride-signature {
        min-height: 66px;
      }

      .person-name span {
        font-size: 20px;
      }

      .person-name strong {
        font-size: clamp(18px, 5.2vw, 21px);
      }

      .groom-character {
        top: -19px;
        right: 6px;
        width: 32px;
      }

      .bride-character {
        top: -19px;
        left: 4px;
        width: 40px;
        translate: 0 -10px;
      }
    }

    .venue-card-section {
      position: relative;
      display: grid;
      grid-template-columns: minmax(0, 288px) 86px;
      gap: 20px;
      align-items: start;
      min-height: 365px;
      padding: 0 5px 26px;
      overflow: hidden;
    }

    .venue-card-main,
    .venue-card-side {
      position: relative;
      z-index: 2;
    }

    .venue-card-side {
      display: grid;
      justify-items: center;
      align-content: start;
      gap: 48px;
      min-height: 330px;
      padding-top: 58px;
    }

    .bride-venue {
      grid-template-columns: 86px minmax(0, 288px);
      justify-content: end;
    }

    .bride-venue .venue-card-main {
      grid-column: 2;
      grid-row: 1;
      justify-self: end;
    }

    .bride-venue .venue-card-side {
      grid-column: 1;
      grid-row: 1;
      justify-self: start;
    }

    .venue-invite-card {
      position: relative;
      z-index: 2;
      width: 100%;
      overflow: hidden;
      background: rgba(255, 251, 250, 0.98);
      box-shadow: 0 12px 22px rgba(39, 70, 52, 0.24);
      border-radius: 50% 50% 0 0 / 78px 78px 0 0;
    }

    .venue-card-cap {
      display: grid;
      place-items: center;
      min-height: 86px;
      padding-top: 18px;
      background: #fffdfb;
      box-shadow: 0 9px 18px rgba(51, 73, 58, 0.28);
    }

    .venue-card-cap h2 {
      color: #d94b54;
      font-family: var(--font-script);
      font-size: 30px;
      font-weight: 400;
      line-height: 1;
    }

    .venue-card-body {
      padding: 12px 12px 18px;
      color: #31523e;
      text-align: center;
    }

    .venue-script {
      margin: 0 0 12px;
      color: #31523e;
      font-family: var(--font-script);
      font-size: 22px;
      line-height: 1;
    }

    .venue-card-body h3 {
      margin: 0 0 8px;
      color: #31523e;
      font-family: var(--font-serif);
      font-size: 27px;
      font-weight: 700;
      line-height: 1;
    }

    .venue-address {
      width: min(230px, 100%);
      margin: 0 auto 14px;
      color: #4d4d4d;
      font-size: 12px;
      line-height: 1.32;
    }

    .venue-route {
      display: inline-grid;
      place-items: center;
      min-width: 118px;
      min-height: 38px;
      padding: 8px 18px;
      border-radius: 999px;
      background: #31583f;
      color: #fff;
      font-size: 16px;
      font-weight: 700;
      text-decoration: none;
      box-shadow: 0 6px 14px rgba(33, 69, 47, 0.32);
    }

    .venue-date-row {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      justify-content: center;
      gap: 9px;
      margin-top: 18px;
      color: #31523e;
      font-family: var(--font-number);
      font-variant-numeric: lining-nums tabular-nums;
      font-feature-settings: "lnum" 1, "tnum" 1;
      line-height: 1;
    }

    .venue-date-row span,
    .venue-date-row strong {
      position: relative;
      display: inline-flex;
      align-items: baseline;
      justify-content: center;
      min-width: 0;
      font-size: 18px;
      letter-spacing: 0;
      text-align: center;
      white-space: nowrap;
    }

    .venue-date-row strong {
      padding-inline: 5px;
      border-inline: 2px solid rgba(49, 82, 62, 0.55);
    }

    .venue-lunar {
      margin: 12px 0 0;
      color: #555;
      font-size: 12px;
    }

    .venue-couple {
      display: grid;
      justify-items: center;
      width: 86px;
      margin: 0;
    }

    .venue-couple img {
      width: 82px;
      height: auto;
    }

    .venue-gift-link {
      display: grid;
      justify-items: center;
      align-content: center;
      width: 86px;
      gap: 10px;
      color: #fff;
      font-size: 13px;
      line-height: 1.25;
      text-align: center;
      text-decoration: none;
    }

    @keyframes venueGiftPulseShake {
      0%, 100% {
        transform: scale(0.92) rotate(0deg);
      }
      18% {
        transform: scale(1.12) rotate(0deg);
      }
      26% {
        transform: scale(1.12) rotate(-6deg);
      }
      34% {
        transform: scale(1.12) rotate(6deg);
      }
      42% {
        transform: scale(1.12) rotate(-4deg);
      }
      50% {
        transform: scale(1.12) rotate(4deg);
      }
      62% {
        transform: scale(1.08) rotate(0deg);
      }
      78% {
        transform: scale(0.92) rotate(0deg);
      }
    }

    .venue-envelope {
      display: block;
      width: 82px;
      height: auto;
      object-fit: contain;
      transform-origin: center;
      animation: venueGiftPulseShake 2.8s ease-in-out infinite;
    }

    .gift-modal {
      position: fixed;
      inset: 0;
      z-index: 80;
      display: grid;
      place-items: end center;
      width: 100%;
      padding: 18px 14px max(18px, env(safe-area-inset-bottom));
    }

    .gift-modal[hidden] {
      display: none;
    }

    .gift-modal-backdrop {
      position: absolute;
      inset: 0;
      min-height: 0;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: rgba(0, 0, 0, 0.46);
      box-shadow: none;
    }

    .gift-modal-card {
      position: relative;
      z-index: 1;
      width: min(360px, calc(100vw - 28px));
      max-width: calc(var(--phone-width) - 28px);
      padding: 28px 18px 22px;
      border-radius: 22px;
      background: #fff;
      color: #050505;
      text-align: center;
      box-shadow: 0 20px 46px rgba(0, 0, 0, 0.28);
    }

    .gift-modal-close {
      position: absolute;
      top: 12px;
      right: 12px;
      display: grid;
      place-items: center;
      width: 34px;
      height: 34px;
      min-height: 34px;
      padding: 0;
      border: 0;
      border-radius: 50%;
      background: transparent;
      color: #d7d7d7;
      font-size: 42px;
      font-weight: 300;
      line-height: 34px;
      box-shadow: none;
      transform: none;
      appearance: none;
    }

    .gift-modal-close:active,
    .gift-modal-close:focus,
    .gift-modal-close:hover {
      background: transparent;
      color: #c9c9c9;
      box-shadow: none;
      transform: none;
      outline: none;
    }

    .gift-modal-title {
      margin: 0 34px 20px;
      color: #050505;
      font-family: var(--font-script);
      font-size: clamp(27px, 6.8vw, 36px);
      font-weight: 400;
      line-height: 1;
    }

    .gift-qr-panel {
      display: none;
    }

    .gift-qr-panel.is-active {
      display: grid;
      justify-items: center;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
    }

    .gift-qr-panel img {
      width: min(230px, calc(100vw - 120px));
      height: min(230px, calc(100vw - 120px));
      padding: 11px;
      border: 13px solid #9f2430;
      border-radius: 0;
      background: #fff;
      object-fit: contain;
    }

    .gift-qr-panel strong {
      margin-top: 18px;
      color: #050505;
      font-family: var(--font-body);
      max-width: 100%;
      font-size: clamp(14px, 3.6vw, 18px);
      font-weight: 900;
      line-height: 1.18;
      letter-spacing: 0;
      text-wrap: balance;
      overflow-wrap: break-word;
    }

    .gift-qr-panel span {
      display: block;
      color: #050505;
      font-family: var(--font-body);
      font-size: clamp(14px, 3.7vw, 18px);
      font-weight: 900;
      line-height: 1;
    }

    .gift-account-name {
      margin-top: 6px;
      font-size: clamp(13px, 3.4vw, 17px);
      line-height: 1.15;
    }

    .gift-account-number {
      margin-top: 7px;
      font-size: clamp(15px, 3.9vw, 19px);
      letter-spacing: 0.4px;
    }

    .gift-copy-status {
      min-height: 18px;
      margin: 12px 0 0;
      color: #9f2430;
      font-size: 11px;
      font-weight: 700;
      line-height: 1.2;
    }

    @media (max-width: 390px) {
      .venue-card-section {
        grid-template-columns: minmax(0, 1fr) 86px;
        gap: 12px;
        padding-inline: 14px;
        min-height: 365px;
      }

      .bride-venue {
        grid-template-columns: 86px minmax(0, 1fr);
        justify-content: stretch;
      }

      .venue-card-side {
        gap: 62px;
        min-height: 320px;
      }

      .venue-couple {
        width: 86px;
      }

      .venue-couple img {
        width: 78px;
      }

      .venue-gift-link {
        width: 86px;
      }
    }

    @media (max-width: 360px) {
      .venue-card-section {
        grid-template-columns: minmax(0, 1fr) 74px;
        gap: 10px;
        min-height: 350px;
        padding-inline: 14px;
      }

      .bride-venue {
        grid-template-columns: 74px minmax(0, 1fr);
      }

      .venue-card-side {
        gap: 60px;
        min-height: 304px;
        padding-top: 16px;
      }

      .venue-card-cap h2 {
        font-size: 27px;
      }

      .venue-card-body h3 {
        font-size: 24px;
      }

      .venue-date-row {
        gap: 6px;
      }

      .venue-date-row span {
        font-size: 16px;
      }

      .venue-date-row strong {
        font-size: 19px;
        padding-inline: 7px;
      }

      .venue-couple {
        width: 74px;
      }

      .venue-couple img {
        width: 70px;
      }

      .venue-gift-link {
        width: 74px;
      }

      .venue-envelope {
        width: 70px;
      }
    }

    .countdown-calendar-section {
      position: relative;
      min-height: 650px;
      overflow: hidden;
      background:
        linear-gradient(180deg, rgba(238, 246, 240, 0.08), rgba(135, 174, 151, 0.08)),
        url("assets/images/couple02.webp") center top / cover no-repeat;
      background-position: center 100%;
    }

    .countdown-calendar-section::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(90deg, rgba(77, 122, 93, 0.08), transparent 24%, transparent 76%, rgba(77, 122, 93, 0.08)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(97, 139, 111, 0.06));
      pointer-events: none;
    }

    .vertical-countdown {
      position: absolute;
      z-index: 2;
      top: 8px;
      left: 8px;
      display: grid;
      gap: 25px;
      width: 78px;
    }

    .countdown-pill {
      display: grid;
      grid-template-columns: max-content max-content;
      align-items: center;
      justify-content: center;
      gap: 4px;
      width: 100%;
      min-height: 43px;
      padding: 8px 5px;
      border-radius: 4px;
      background: #31583f;
      color: #fff;
      font-family: var(--font-body);
      font-variant-numeric: lining-nums tabular-nums;
      font-feature-settings: "lnum" 1, "tnum" 1;
      font-weight: 800;
      box-shadow: 0 7px 14px rgba(36, 77, 50, 0.2);
    }

    .countdown-pill strong,
    .countdown-pill span {
      line-height: 1;
    }

    .countdown-pill strong {
      font-size: clamp(12px, 3.5vw, 14px);
    }

    .countdown-pill span {
      font-size: clamp(11px, 3.1vw, 12px);
      font-weight: 700;
      white-space: nowrap;
    }

    wedding-calendar.calendar-glass {
      position: absolute;
      z-index: 2;
      right: 0;
      bottom: 52px;
      width: min(248px, 58%);

      --cal-bg: rgba(218, 232, 220, 0.58);
      --cal-backdrop-filter: none;
      --cal-border: rgba(49, 82, 62, 0.14);
      --cal-accent: #31523e;
      --cal-grid-color: #31523e;
      --cal-shadow: 0 8px 20px rgba(54, 88, 66, 0.14);
    }
    @media (max-width: 390px) {
      .countdown-calendar-section {
        min-height: 620px;
        background-position: center top;
      }

      wedding-calendar.calendar-glass {
        width: min(236px, 60%);
        bottom: 48px;
      }
    }

    @media (max-width: 360px) {
      .countdown-calendar-section {
        min-height: 590px;
      }

      .vertical-countdown {
        gap: 21px;
        width: 74px;
      }

      .countdown-pill {
        width: 100%;
        padding-inline: 5px;
      }

      wedding-calendar.calendar-glass {
        width: min(218px, 60%);
      }
    }

    .rsvp-feature-section {
      position: relative;
      min-height: 430px;
      padding: 8px 24px 28px;
      overflow: hidden;
    }

    .rsvp-feature-section::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(90deg, rgba(30, 73, 49, 0.18), transparent 22%, transparent 78%, rgba(30, 73, 49, 0.18)),
        rgba(109, 151, 126, 0.2);
      pointer-events: none;
    }

    .rsvp-feature-card {
      position: relative;
      z-index: 2;
      width: min(258px, 72%);
      padding: 22px 20px 20px;
      border-radius: 5px;
      background: rgba(255, 255, 255, 0.96);
      box-shadow: 0 12px 26px rgba(39, 70, 52, 0.18);
    }

    .rsvp-feature-card h2 {
      margin: 0 0 26px;
      color: #31523e;
      font-family: var(--font-serif);
      font-size: 20px;
      font-weight: 700;
      line-height: 1;
      text-align: center;
    }

    .rsvp-feature-form {
      display: grid;
      gap: 18px;
    }

    .rsvp-field {
      display: grid;
      gap: 10px;
      color: #536158;
      font-size: 12px;
      line-height: 1.25;
    }

    .rsvp-feature-form input,
    .rsvp-feature-form select {
      width: 100%;
      min-height: 39px;
      padding: 8px 9px;
      border: 1px solid #8e8e8e;
      border-radius: 4px;
      background: #fff;
      color: #39473e;
      font: inherit;
      font-size: 13px;
    }

    .rsvp-feature-form select {
      appearance: auto;
    }

    .rsvp-feature-form .attendance-options {
      display: grid;
      gap: 9px;
      margin: 0;
      padding: 0;
      border: 0;
      color: #536158;
    }

    .rsvp-feature-form .attendance-options legend {
      margin-bottom: 8px;
      padding: 0;
      font-size: 12px;
    }

    .rsvp-feature-form .attendance-option {
      display: grid;
      grid-template-columns: 22px minmax(0, 1fr);
      gap: 9px;
      align-items: start;
      color: #536158;
      font-size: 13px;
      line-height: 1.32;
    }

    .rsvp-feature-form .attendance-option input[type="radio"] {
      width: 22px;
      height: 22px;
      min-height: 0;
      margin: 0;
      padding: 0;
      accent-color: #4b9df4;
    }

    .rsvp-feature-form button {
      min-height: 44px;
      margin-top: 2px;
      border-radius: 4px;
      background: #31583f;
      font-size: 14px;
      font-weight: 700;
    }

    .rsvp-feature-couple {
      position: absolute;
      z-index: 2;
      right: 46px;
      bottom: 104px;
      width: 70px;
      margin: 0;
    }

    .rsvp-feature-couple img {
      width: 100%;
      height: auto;
    }

    @media (max-width: 390px) {
      .rsvp-feature-section {
        padding-inline: 20px;
      }

      .rsvp-feature-card {
        width: min(258px, 74%);
      }

      .rsvp-feature-couple {
        right: 26px;
      }
    }

    @media (max-width: 360px) {
      .rsvp-feature-section {
        min-height: 410px;
        padding-inline: 14px;
      }

      .rsvp-feature-card {
        width: calc(100% - 82px);
        padding-inline: 16px;
      }

      .rsvp-feature-couple {
        right: 14px;
        width: 60px;
      }
    }

    .wedding-album-section {
      position: relative;
      padding: 0 5px 34px;
      overflow: hidden;
    }

    .wedding-album-section::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(90deg, rgba(30, 73, 49, 0.18), transparent 22%, transparent 78%, rgba(30, 73, 49, 0.18)),
        rgba(109, 151, 126, 0.2);
      pointer-events: none;
    }

    .album-heading {
      position: relative;
      z-index: 2;
      display: grid;
      place-items: center;
      min-height: 58px;
      margin: 0 0 10px;
      border-radius: 5px;
      background: rgba(225, 239, 229, 0.64);
      box-shadow: 0 7px 16px rgba(42, 76, 55, 0.17);
      color: #243f30;
      font-family: var(--font-script);
      font-size: 30px;
      line-height: 1;
      text-align: center;
    }

    .album-grid {
      position: relative;
      z-index: 2;
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 5px;
    }

    .album-photo {
      min-width: 0;
      margin: 0;
      overflow: hidden;
      background: #f6faf6;
      border: 1px solid rgba(151, 189, 164, 0.78);
    }

    .album-photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .album-photo.small {
      grid-column: span 2;
      aspect-ratio: 1 / 1.38;
    }

    .album-photo.wide {
      grid-column: 1 / -1;
      aspect-ratio: 1.45 / 1;
    }

    .album-photo.bottom {
      grid-column: span 3;
      aspect-ratio: 1 / 1;
    }

    .album-photo:nth-child(1) img {
      object-position: center 32%;
    }

    .album-photo:nth-child(2) img {
      object-position: center 12%;
    }

    .album-photo:nth-child(3) img {
      object-position: center 12%;
    }

    .album-photo:nth-child(4) img {
      object-position: center 45%;
    }

    .album-photo:nth-child(5) img {
      object-position: center 38%;
    }

    .album-photo:nth-child(6) img {
      object-position: center 42%;
    }

    @media (max-width: 390px) {
      .wedding-album-section {
        padding-inline: 20px;
      }

      .album-heading {
        font-size: 28px;
      }
    }

    @media (max-width: 360px) {
      .wedding-album-section {
        padding-inline: 14px;
      }

      .album-grid {
        gap: 4px;
      }
    }

    .notebook-thanks-section {
      position: relative;
      min-height: clamp(430px, 116vw, 515px);
      overflow: hidden;
    }

    .notebook-thanks-section::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(90deg, rgba(30, 73, 49, 0.18), transparent 22%, transparent 78%, rgba(30, 73, 49, 0.18)),
        rgba(109, 151, 126, 0.2);
      pointer-events: none;
    }

    .notebook-wrap {
      position: relative;
      z-index: 2;
      width: clamp(390px, 112vw, 520px);
      margin: 0 auto;
      rotate: -8deg;
    }

    .notebook-wrap img {
      width: 100%;
      height: auto;
    }

    .notebook-wrap p {
      position: absolute;
      left: 36%;
      top: 24%;
      width: 45%;
      margin: 0;
      color: black;
      font-size: clamp(13.8px, 4.25vw, 15px);
      line-height: 1.5;
      text-align: left;
      transform: rotate(8deg);
      font-family: 'Dancing Script', cursive;
    }

    @media (max-width: 390px) {
      .notebook-thanks-section {
        padding-inline: 0;
      }
    }

    @media (max-width: 360px) {
      .notebook-wrap p {
        line-height: 1.44;
      }
    }

    .reveal-up {
      opacity: 0;
      transform: translateY(var(--reveal-distance, 80px));
      
    }

    .reveal-left {
      opacity: 0;
      transform: translateX(var(--reveal-distance, 80px));
      
    }

    .reveal-right {
      opacity: 0;
      transform: translateX(calc(var(--reveal-distance, 80px) * -1));
      
    }

    .reveal-up.is-visible {
      animation: revealUp var(--reveal-duration, 2s)
        cubic-bezier(0.16, 0.84, 0.24, 1)
        var(--reveal-delay, 0s)
        forwards;
    }

    .reveal-left.is-visible {
      animation: revealLeft var(--reveal-duration, 2s)
        cubic-bezier(0.16, 0.84, 0.24, 1)
        var(--reveal-delay, 0s)
        forwards;
    }

    .reveal-right.is-visible {
      animation: revealRight var(--reveal-duration, 2s)
        cubic-bezier(0.16, 0.84, 0.24, 1)
        var(--reveal-delay, 0s)
        forwards;
    }

    @keyframes revealUp {
      from {
        opacity: 0;
        transform: translateY(var(--reveal-distance, 80px));
      }
      55% {
        opacity: 0.72;
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes revealLeft {
      from {
        opacity: 0;
        transform: translateX(var(--reveal-distance, 80px));
      }
      55% {
        opacity: 0.72;
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    @keyframes revealRight {
      from {
        opacity: 0;
        transform: translateX(calc(var(--reveal-distance, 80px) * -1));
      }
      55% {
        opacity: 0.72;
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    .music {
      position: fixed;
      right: 8px;
      top: max(5px, env(safe-area-inset-top));
      z-index: 30;
      width: 42px;
      height: 42px;
      min-width: 42px;
      min-height: 42px;
      aspect-ratio: 1;
      padding: 0;
      border-radius: 50%;
      border: 3px solid #fff;
      background: #050506;
      color: #fff;
      font-size: 17px;
      box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
      transform-origin: center;
    }

    .music::before {
      content: "";
      position: absolute;
      inset: 4px;
      border: 1px solid rgba(255, 255, 255, 0.42);
      border-radius: 50%;
    }

    .music.playing {
      animation: musicSpin 3s linear infinite;
    }

    @media (min-width: 521px) {
      .music {
        right: max(8px, calc((100vw - 430px) / 2 + 8px));
      }
    }


    .invite::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 0;
      opacity: 0.36;
      background-image:
        linear-gradient(35deg, transparent 0 47%, rgba(255, 255, 255, 0.24) 48% 50%, transparent 51%),
        linear-gradient(125deg, transparent 0 47%, rgba(55, 84, 68, 0.16) 48% 50%, transparent 51%);
      background-size: 28px 28px, 34px 34px;
      pointer-events: none;
    }

    .invite > * {
      position: relative;
      z-index: 1;
    }

    .botanical-cover {
      position: relative;
      min-height: 100svh;
      width: 100%;
      overflow: hidden;
      padding: 6px 0px 6px;
      color: #31523e;
      background: transparent;
    }

    .cover-veil {
      position: absolute;
      inset: 0;
      z-index: 25;
      overflow: hidden;
      pointer-events: auto;
      display: block;
      width: 100%;
      min-height: 100%;
      visibility: visible;
      transition: visibility 0s linear 3.05s;
    }

    .cover-veil::before,
    .cover-veil::after {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      z-index: 0;
      width: 50%;
      background-size: auto, 210px 270px, 170px 230px, 230px 280px, auto, auto, auto;
      transition: transform 3s cubic-bezier(0.68, 0.02, 0.2, 1);
      will-change: transform;
      backface-visibility: hidden;
      transform: translate3d(0, 0, 0);
    }

    .cover-veil::before {
      left: 0;
      transform-origin: left center;
      background:
        linear-gradient(90deg,
          transparent 0 calc(100% - 16px),
          rgba(95, 68, 31, 0.26) calc(100% - 16px) calc(100% - 15px),
          rgba(230, 195, 111, 0.78) calc(100% - 15px) calc(100% - 8px),
          rgba(255, 246, 204, 0.88) calc(100% - 8px) calc(100% - 4px),
          rgba(178, 132, 57, 0.74) calc(100% - 4px) 100%),
        radial-gradient(ellipse at 28% 18%, rgba(255, 255, 255, 0.17) 0 8%, transparent 28%),
        radial-gradient(ellipse at 64% 34%, rgba(35, 84, 58, 0.13) 0 7%, transparent 25%),
        radial-gradient(ellipse at 34% 68%, rgba(255, 255, 255, 0.13) 0 9%, transparent 31%),
        linear-gradient(90deg,
          rgba(37, 73, 54, 0.92) 0%,
          rgba(68, 113, 86, 0.82) 16%,
          rgba(151, 187, 169, 0.72) 58%,
          rgba(218, 231, 222, 0.88) 100%),
        radial-gradient(ellipse at 100% 45%, rgba(255, 255, 255, 0.36), transparent 58%),
        repeating-linear-gradient(90deg,
          rgba(255, 255, 255, 0.13) 0 2px,
          rgba(49, 82, 62, 0.06) 2px 17px,
          rgba(21, 55, 38, 0.08) 17px 24px);
      background-position: center, -38px 10px, 32px 92px, -18px 210px, center, center, center;
      box-shadow:
        inset 18px 0 34px rgba(22, 51, 36, 0.36),
        inset -8px 0 22px rgba(255, 255, 255, 0.18);
    }

    .cover-veil::after {
      right: 0;
      transform-origin: right center;
      background:
        linear-gradient(90deg,
          rgba(178, 132, 57, 0.74) 0 4px,
          rgba(255, 246, 204, 0.88) 4px 8px,
          rgba(230, 195, 111, 0.78) 8px 15px,
          rgba(95, 68, 31, 0.26) 15px 16px,
          transparent 16px 100%),
        radial-gradient(ellipse at 72% 18%, rgba(255, 255, 255, 0.17) 0 8%, transparent 28%),
        radial-gradient(ellipse at 36% 34%, rgba(35, 84, 58, 0.13) 0 7%, transparent 25%),
        radial-gradient(ellipse at 66% 68%, rgba(255, 255, 255, 0.13) 0 9%, transparent 31%),
        linear-gradient(270deg,
          rgba(37, 73, 54, 0.92) 0%,
          rgba(68, 113, 86, 0.82) 16%,
          rgba(151, 187, 169, 0.72) 58%,
          rgba(218, 231, 222, 0.88) 100%),
        radial-gradient(ellipse at 0% 45%, rgba(255, 255, 255, 0.36), transparent 58%),
        repeating-linear-gradient(90deg,
          rgba(21, 55, 38, 0.08) 0 7px,
          rgba(49, 82, 62, 0.06) 7px 22px,
          rgba(255, 255, 255, 0.13) 22px 24px);
      background-position: center, calc(100% + 38px) 10px, calc(100% - 32px) 92px, calc(100% + 18px) 210px, center, center, center;
      box-shadow:
        inset -18px 0 34px rgba(22, 51, 36, 0.36),
        inset 8px 0 22px rgba(255, 255, 255, 0.18);
    }

    .cover-veil-seal {
      position: absolute;
      left: 50%;
      top: min(46svh, 390px);
      z-index: 2;
      width: 74px;
      height: 74px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: radial-gradient(circle at 38% 32%, #d8ac79 0 24%, #9a6b3e 66%, #6b472b 100%);
      box-shadow:
        0 9px 22px rgba(35, 47, 38, 0.34),
        inset 0 0 0 3px rgba(255, 229, 190, 0.26),
        inset 0 0 0 8px rgba(88, 51, 29, 0.22);
      transform: translate(-50%, -50%);
      transition:
        opacity 3s cubic-bezier(0.68, 0.02, 0.2, 1),
        transform 3s cubic-bezier(0.68, 0.02, 0.2, 1);
    }

    .cover-veil-seal img {
      width: 42px;
      height: 42px;
      object-fit: contain;
      opacity: 0.78;
      filter: sepia(0.45) saturate(0.8) brightness(0.45);
    }

    .cover-veil-hint {
      position: absolute;
      left: 50%;
      top: calc(min(46svh, 390px) + 2px);
      z-index: 2;
      width: min(310px, calc(100% - 42px));
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 104px;
      align-items: center;
      color: rgba(49, 82, 62, 0.78);
      font-family: var(--font-script);
      font-size: clamp(24px, 6.5vw, 30px);
      font-weight: 400;
      line-height: 1;
      text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.58),
        0 6px 18px rgba(27, 58, 42, 0.16);
      white-space: nowrap;
      pointer-events: none;
      transform: translate(-50%, -50%);
      transition:
        opacity 0.7s ease,
        transform 0.7s ease;
    }

    .cover-veil-hint span:first-child {
      justify-self: end;
    }

    .cover-veil-hint span:last-child {
      justify-self: start;
    }

    .botanical-cover.open .cover-veil {
      visibility: hidden;
    }

    .botanical-cover.open .cover-veil::before {
      transform: translate3d(-100%, 0, 0);
    }

    .botanical-cover.open .cover-veil::after {
      transform: translate3d(100%, 0, 0);
    }

    .botanical-cover.open .cover-veil-seal {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.08) rotate(-10deg);
    }

    .botanical-cover.open .cover-veil-hint {
      opacity: 0;
      transform: translate(-50%, -50%) translateY(10px) scale(0.94);
    }

    .cover-arch {
      position: relative;
      z-index: 2;
      width: min(82%, 352px);
      min-height: 466px;
      margin: 4px auto 0;
      padding: 43px 16px 16px;
      text-align: center;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 252, 250, 0.96));
      border-radius: 50cqw 50cqw 0 0;
      box-shadow: 0 18px 36px rgba(54, 82, 66, 0.13);
    }

    .cover-invite {
      text-transform: uppercase;
      font-size: 14px;
      line-height: 1.2;
      color: #31523e;
      font-weight: 500;
    }

    .cover-role {
      margin-top: 12px;
      font-family: var(--font-script);
      font-size: 30px;
      line-height: 1;
      color: #2e5a3d;
      font-weight: 700;
      text-shadow: 0 1px 0 #d6b66f;
    }

    .cover-ceremony {
      margin-top: 22px;
      font-size: 15px;
      line-height: 1.4;
      color: #244b3b;
    }

    .cover-couple {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      align-items: center;
      gap: 7px;
      margin-top: 25px;
      color: #31523e;
    }

    .cover-couple span {
      min-width: 0;
      font-family: var(--font-script);
      font-size: clamp(21px, 5.3vw, 24px);
      line-height: 1;
      white-space: nowrap;
      transform: scaleX(0.94);
    }

    .cover-couple-ring {
      width: 20px;
      height: 20px;
      object-fit: contain;
      align-self: center;
    }

    .cover-date-block {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: 13px;
      margin-top: 29px;
      color: #31523e;
    }

    .date-weekday,
    .date-time {
      font-family: var(--font-number);
      font-variant-numeric: lining-nums tabular-nums;
      font-feature-settings: "lnum" 1, "tnum" 1;
      font-size: 21px;
      line-height: 1.1;
      color: #6e4b27;
      white-space: nowrap;
    }

    .date-center {
      min-width: 98px;
      padding-inline: 12px;
      border-inline: 4px solid #31523e;
      display: grid;
      justify-items: center;
    }

    .date-center span {
      font-size: 21px;
      line-height: 1.1;
    }

    .date-center strong {
      font-family: var(--font-number);
      font-variant-numeric: lining-nums tabular-nums;
      font-feature-settings: "lnum" 1, "tnum" 1;
      font-size: 58px;
      line-height: 0.92;
      font-weight: 400;
    }

    .cover-mini-couple {
      width: 64px;
      height: 64px;
      margin: 10px auto 0;
      display: grid;
      place-items: center;
      overflow: hidden;
    }

    .cover-mini-couple img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .cover-script-note {
      margin-top: 8px;
      font-family: var(--font-script);
      font-size: 22px;
      line-height: 1.2;
      color: #31523e;
    }

    .cover-script-note.small {
      margin-top: 4px;
      font-size: 18px;
    }

    .cover-message {
      position: relative;
      z-index: 2;
      margin: 8px 32px 0;
      color: #fff;
      font-size: 11px;
      line-height: 1.55;
      text-align: center;
      text-shadow: 0 1px 2px rgba(45, 79, 61, 0.28);
    }

    .cover-message span {
      color: #ff6682;
      font-size: 14px;
    }

    .cover-bottom-illustration {
      position: relative;
      z-index: 2;
      width: 176px;
      height: auto;
      margin: 8px auto 0;
      overflow: visible;
    }

    .cover-bottom-illustration img {
      width: 100%;
      height: auto;
      object-fit: contain;
    }

    .cover-leaf {
      position: absolute;
      z-index: 1;
      pointer-events: none;
      opacity: 0.74;
    }

    .cover-leaf::before,
    .cover-leaf::after {
      content: "";
      position: absolute;
      border-radius: 100% 0 100% 0;
      background: linear-gradient(135deg, rgba(48, 116, 84, 0.78), rgba(162, 196, 174, 0.24));
      transform-origin: bottom left;
    }

    .leaf-top {
      top: 38px;
      right: 8px;
      width: 160px;
      height: 134px;
      transform: rotate(21deg);
    }

    .leaf-top::before {
      width: 128px;
      height: 44px;
      transform: rotate(-24deg);
    }

    .leaf-top::after {
      width: 132px;
      height: 42px;
      top: 36px;
      left: 8px;
      transform: rotate(-6deg);
    }

    .leaf-left {
      left: 14px;
      bottom: 246px;
      width: 106px;
      height: 150px;
      transform: rotate(-23deg);
    }

    .leaf-left::before {
      width: 92px;
      height: 34px;
      transform: rotate(34deg);
    }

    .leaf-left::after {
      width: 96px;
      height: 35px;
      top: 42px;
      transform: rotate(52deg);
    }

    .leaf-right {
      right: -20px;
      top: 58px;
      width: 106px;
      height: 210px;
      transform: rotate(10deg);
      opacity: 0.58;
    }

    .leaf-right::before {
      width: 116px;
      height: 32px;
      transform: rotate(82deg);
    }

    .leaf-right::after {
      width: 120px;
      height: 31px;
      top: 54px;
      transform: rotate(76deg);
    }

    .cover-lanterns {
      position: absolute;
      top: 0;
      left: -15px;
      z-index: 1;
      width: clamp(118px, 34vw, 146px);
      height: clamp(122px, 35vw, 152px);
      pointer-events: none;
      background: url("assets/images/template/bamboo01.webp") center / contain no-repeat;
    }

    .cover-lanterns span {
      display: none;
    }


    @media (max-width: 390px) {
      .botanical-cover {
        padding-inline: 14px;
      }

      .cover-arch {
        width: min(84%, 326px);
        min-height: 462px;
        padding-inline: 12px;
        border-radius: 50cqw 50cqw 0 0;
      }

      .cover-couple {
        gap: 8px;
      }

      .cover-couple span {
        font-size: clamp(20px, 5.4vw, 23px);
      }

      .cover-date-block {
        gap: 8px;
      }

      .date-weekday,
      .date-time {
        font-size: 19px;
      }

      .date-center {
        min-width: 92px;
        padding-inline: 9px;
      }

      .date-center span {
        font-size: 20px;
      }

      .date-center strong {
        font-size: 58px;
      }

      .cover-message {
        margin-inline: 30px;
        font-size: 11.5px;
        line-height: 1.9;
      }
    }

    @media (min-width: 431px) {
      .hero {
        border-inline: 1px solid rgba(255, 255, 255, 0.08);
      }
    }

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

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

    @media (max-width: 360px) {
      .hero {
        padding-inline: 0;
      }

      .invite {
        padding: 0;
        border-radius: 0;
      }

      .botanical-cover {
        padding-inline: 12px;
      }

      .cover-arch {
        width: min(86%, 306px);
      }

      .cover-message {
        margin-inline: 26px;
      }
    }

