/* =========================================================
   کارت دعوت عروسی — نسخه کامل و اصلاح‌شده
   پالت: کرم گرم + طلایی
   ========================================================= */


/* =========================================================
   FONTS
   ========================================================= */

@font-face {
  font-family: "CustomEnglish";
  src: url("../fonts/english-font.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Shekasteh";
  src: url("../fonts/Shekasteh.ttf") format("truetype");
}

@font-face {
  font-family: "dima2";
  src: url("../fonts/dima2.ttf") format("truetype");
}

@font-face {
  font-family: "Miremad";
  src: url("../fonts/Miremad.ttf") format("truetype");
}

@font-face {
  font-family: "Gulzar";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/gulzar-arabic-400.woff2") format("woff2");
  unicode-range:
    U+0600-06FF,
    U+0750-077F,
    U+FB50-FDFF,
    U+FE70-FEFC,
    U+200C-200E;
}

@font-face {
  font-family: "Gulzar";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/gulzar-latin-400.woff2") format("woff2");
  unicode-range:
    U+0000-00FF,
    U+2000-206F,
    U+20AC,
    U+2122;
}

@font-face {
  font-family: "Noto Naskh Arabic";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/noto-naskh-arabic-arabic.woff2") format("woff2");
  unicode-range:
    U+0600-06FF,
    U+0750-077F,
    U+FB50-FDFF,
    U+FE70-FEFC,
    U+200C-200E;
}

@font-face {
  font-family: "Noto Naskh Arabic";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/noto-naskh-arabic-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF,
    U+2000-206F,
    U+20AC,
    U+2122;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+2000-206F,
    U+20AC,
    U+2122;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-400.woff2") format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+2000-206F,
    U+20AC,
    U+2122;
}


/* =========================================================
   ROOT
   ========================================================= */

:root {
  --bg: #faf8f3;
  --card-bg: #faf8f3;

  --ink: #3d362a;
  --ink-2: #4c4436;

  --muted: #6f6552;
  --muted-2: #82785f;

  --accent: #a1762c;
  --accent-deep: #7d5411;
  --accent-soft: #b68235;

  --line: #d3bd93;
  --line-soft: #c9b891;

  --font-heading: "Shekasteh", serif;
  --font-body: "Noto Naskh Arabic", serif;
  --font-display: "Cormorant Garamond", serif;
}


/* =========================================================
   RESET
   ========================================================= */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  min-height: 100%;
}

body {
  width: 100%;
  min-height: 100vh;

  background: var(--bg);

  font-family: var(--font-body);
  color: var(--ink-2);

  overflow-x: hidden;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-deep);
}

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

button {
  font-family: inherit;
  cursor: pointer;
}


/* =========================================================
   APP
   ========================================================= */

#app {
  min-height: 100vh;

  display: flex;
  justify-content: center;

  background: var(--bg);
}


/* =========================================================
   COMMON
   ========================================================= */

.kicker {
  font-family: var(--font-display);
  font-weight: 400;

  letter-spacing: 0.42em;
  font-size: 13px;

  color: var(--muted);

  text-transform: uppercase;

  margin-bottom: 15px;
}

.rule {
  display: inline-block;

  width: 44px;
  height: 1px;

  background: var(--line-soft);

  vertical-align: middle;

  margin: 0 10px;
}

.rule-short {
  display: block;

  width: 26px;
  height: 1px;

  background: var(--line-soft);

  margin-bottom: 6px;
}

.hr-short {
  width: 70px;
  height: 1px;

  background: var(--line-soft);

  margin: 6px auto 0;
}

.ornament {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 4px;

  color: var(--accent);
}

.section-title {
  font-family: var(--font-heading);

  font-size: 34px;

  color: var(--ink);

  line-height: 1.6;
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes petalFall {
  0% {
    transform: translate3d(0, -6vh, 0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.7;
  }

  100% {
    transform: translate3d(-40px, 104vh, 0) rotate(320deg);
    opacity: 0;
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}


/* =========================================================
   PETALS
   ========================================================= */

.petals {
  position: absolute;

  inset: 0;

  overflow: hidden;

  pointer-events: none;
}

.petals span {
  position: absolute;

  top: 0;

  width: 12px;
  height: 15px;

  border-radius: 60% 40% 55% 45%;

  background: linear-gradient(
    135deg,
    #fbf5e8,
    #e3c795
  );

  opacity: 0;

  animation: petalFall 13s linear infinite;
}

.petals span:nth-child(1) {
  left: 10%;
  animation-duration: 12s;
}

.petals span:nth-child(2) {
  left: 34%;
  animation-duration: 14s;
  animation-delay: 3s;
}

.petals span:nth-child(3) {
  left: 62%;
  animation-duration: 10.5s;
  animation-delay: 6s;
}

.petals span:nth-child(4) {
  left: 86%;
  animation-duration: 13s;
  animation-delay: 1.5s;
}


/* =========================================================
   INTRO VIDEO
   ========================================================= */

/*
   مهم:
   این بخش کاملاً اصلاح شده است.

   در دسکتاپ کلیپ به صورت کامل با contain نمایش داده می‌شود.
   در موبایل ویدیو ۹۰ درجه ساعت‌گرد می‌چرخد و ابعاد جابه‌جا می‌شوند؛
   از fill برای نمایش تمام‌صفحه و بدون برش استفاده می‌شود؛
   تصویر برای پر کردن صفحه کشیده می‌شود و نسبت اصلی آن تغییر می‌کند.
*/


.intro-wrap {
  position: fixed !important;

  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;

  width: 100vw !important;

  height: 100vh !important;
  height: 100dvh !important;

  min-width: 100vw !important;
  min-height: 100vh !important;

  margin: 0 !important;
  padding: 0 !important;

  z-index: 99999 !important;

  display: block !important;

  background: #000 !important;

  overflow: hidden !important;

  cursor: pointer;

  opacity: 1;

  visibility: visible;

  transition:
    opacity 1s ease,
    visibility 1s ease;
}


/* VIDEO */

.intro-wrap video {
  position: absolute !important;

  top: 50% !important;
  left: 50% !important;

  width: 100vw !important;

  height: 100vh !important;
  height: 100dvh !important;

  min-width: 100vw !important;
  min-height: 100vh !important;

  max-width: none !important;
  max-height: none !important;

  margin: 0 !important;
  padding: 0 !important;

  display: block !important;

  transform: translate(-50%, -50%) !important;

  object-fit: contain !important;

  object-position: center center !important;

  background: #000;

  pointer-events: none !important;
}


/* ---------------------------------------------------------
   POEM OVERLAY
   --------------------------------------------------------- */

.intro-poem-overlay {
  position: absolute !important;

  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;

  width: 100% !important;
  height: 100% !important;

  display: flex !important;

  flex-direction: column !important;

  align-items: center !important;
  justify-content: center !important;

  text-align: center !important;

  z-index: 10 !important;

  padding: 30px;

  opacity: 0;

  visibility: hidden;

  pointer-events: none !important;

  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}


/* فعال شدن شعر */

.intro-poem-overlay.active {
  opacity: 1 !important;

  visibility: visible !important;
}


/* متن شعر */

.intro-poem-overlay p {
  font-family:
    "Shekasteh",
    var(--font-heading),
    serif;

  font-size:
    clamp(25px, 6vw, 42px);

  line-height: 2;

  font-weight: normal;

  color: #d8b168;

  text-align: center;

  margin: 5px 0;

  padding: 0;

  transform: translateY(15px);

  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.8),
    0 4px 30px rgba(0, 0, 0, 0.65);

  animation:
    poemFadeUp 1.2s
    cubic-bezier(0.25, 1, 0.35, 1)
    forwards;
}


@keyframes poemFadeUp {
  from {
    opacity: 0;

    transform:
      translateY(25px)
      scale(0.97);
  }

  to {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);
  }
}


/* ---------------------------------------------------------
   INTRO HINT
   --------------------------------------------------------- */

.intro-hint {
  position: absolute !important;

  z-index: 11 !important;

  left: 0 !important;
  right: 0 !important;

  bottom: 8% !important;

  width: 100% !important;

  display: flex !important;

  flex-direction: column !important;

  align-items: center !important;

  justify-content: center !important;

  gap: 12px;

  color: #f7e7c4;

  text-align: center;

  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.75);

  pointer-events: none !important;

  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;

  animation:
    floaty 3s ease-in-out infinite;
}

.intro-hint p {
  margin: 0;

  padding: 0;

  font-family: var(--font-heading);

  font-size: 23.8px;

  color: #f7e7c4;
}


/* فلش پایین */

.hint-icon {
  display: block;

  width: 16px;
  height: 16px;

  border-right: 2px solid #d8b168;
  border-bottom: 2px solid #d8b168;

  transform: rotate(45deg);

  margin-top: 2px;
}


/* بعد از کلیک */

.intro-wrap.playing .intro-hint {
  opacity: 0 !important;

  visibility: hidden;
}


/* پایان Intro */

.intro-wrap.ended {
  opacity: 0 !important;

  visibility: hidden !important;

  pointer-events: none !important;
}


/* جلوگیری از اسکرول صفحه هنگام نمایش Intro */

body:has(.intro-wrap:not(.ended)) {
  overflow: hidden;
}


/* =========================================================
   MAIN CARD
   ========================================================= */

.card {
  width: 100%;

  max-width: 440px;

  background: var(--card-bg);

  box-shadow:
    0 0 60px rgba(90, 75, 50, 0.25);

  overflow: hidden;
}

.section {
  position: relative;

  overflow: hidden;
}

.framebg {
  position: absolute;

  inset: 0;

  pointer-events: none;

  background-position: center;

  background-size: 100% 100%;

  opacity: 0.12;
}


/* =========================================================
   COUNTDOWN
   ========================================================= */

.countdown-section {
  padding: 64px 24px 76px;

  text-align: center;

  background: var(--bg);
}

.countdown-sub {
  display: inline-flex;

  align-items: center;

  gap: 10px;

  font-size: 12.5px;

  letter-spacing: 0.14em;

  color: var(--muted);

  margin-top: 25px;
  margin-bottom: 30px;
}

.countdown-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 8px;

  max-width: 360px;

  margin: 0 auto;
}

.cd-cell {
  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 9px;
}

.cd-ring {
  width: min(80px, 19vw);

  height: min(80px, 19vw);

  border-radius: 50%;

  padding: 4px;

  background:
    conic-gradient(
      var(--accent-soft)
      var(--pct, 0deg),
      #ece2ca 0
    );

  box-shadow:
    0 6px 16px rgba(115, 100, 75, 0.14);
}

.cd-ring-accent {
  background:
    conic-gradient(
      #c99a4b
      var(--pct, 0deg),
      #f0e6cf 0
    );

  box-shadow:
    0 6px 16px rgba(161, 118, 44, 0.22);
}

.cd-num {
  width: 100%;
  height: 100%;

  border-radius: 50%;

  background: #fffefb;

  display: flex;

  align-items: center;
  justify-content: center;

  font-family: var(--font-display);

  font-size: 29px;

  font-feature-settings: "tnum";

  color: var(--ink);
}

.cd-ring-accent .cd-num {
  color: var(--accent);
}

.cd-label {
  font-size: 11px;

  letter-spacing: 0.22em;

  color: var(--muted);
}

.countdown-section .kicker {
  display: inline-flex;

  align-items: center;

  justify-content: center;
}

.clock-icon {
  width: 15px;

  height: auto;

  margin-left: 8px;

  opacity: 0.6;
}


/* =========================================================
   COUNTDOWN PHRASE
   ========================================================= */

.countdown-phrase {
  font-family:
    "IranNastaliq",
    var(--font-display) !important;

  font-size: 20px !important;

  font-weight: normal;

  color: #d8b168;

  display: inline-block;

  margin-top: 18px;

  animation:
    gentleBreath 4s
    infinite ease-in-out;
}

@keyframes gentleBreath {
  0% {
    transform: scale(1) translateY(0);

    opacity: 0.85;
  }

  50% {
    transform:
      scale(1.03)
      translateY(-2px);

    opacity: 1;

    text-shadow:
      0 0 12px
      rgba(216, 177, 104, 0.4);
  }

  100% {
    transform: scale(1) translateY(0);

    opacity: 0.85;
  }
}


/* =========================================================
   MAP
   ========================================================= */

.map-section {
  padding: 70px 24px 80px;

  background: var(--bg);
}

.map-sub {
  font-size: 13.5px;

  color: var(--muted);

  margin: 6px 0 0;
}

.map-frame {
  border: 6px solid #fffefb;

  outline: 1px solid var(--line);

  box-shadow:
    0 10px 26px rgba(115, 100, 75, 0.14);

  height: 280px;

  overflow: hidden;
}

.map-frame iframe {
  width: 100%;
  height: 100%;

  border: 0;
}

.btn-outline {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  padding: 11px 26px;

  border: 1px solid var(--accent);

  color: var(--accent-deep);

  text-decoration: none;

  font-size: 15px;

  letter-spacing: 0.04em;

  background:
    rgba(255, 254, 250, 0.7);

  transition:
    background 0.2s ease;
}

.btn-outline:hover {
  background: #fdf6e8;
}

.map-section .framebg {
  -webkit-mask-image:
    linear-gradient(
      to bottom,
      transparent 0%,
      black 15%,
      black 85%,
      transparent 100%
    );

  mask-image:
    linear-gradient(
      to bottom,
      transparent 0%,
      black 15%,
      black 85%,
      transparent 100%
    );
}

.map-section .kicker {
  display: inline-flex;

  align-items: center;

  justify-content: center;
}

.location-icon {
  width: 15px;

  height: auto;

  margin-left: 8px;

  opacity: 0.6;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  position: relative;

  padding: 48px 24px 92px;

  text-align: center;

  overflow: hidden;

  background: var(--bg);
}

.footer-names {
  font-family: var(--font-heading);

  font-size: 32px;

  color: var(--accent-deep);

  line-height: 1.8;
}

.footer-date {
  font-size: 13px;

  color: var(--muted);
}


/* =========================================================
   DESIGNER FOOTER
   ========================================================= */

.site-footer {
  position: relative;

  text-align: center;

  padding: 20px 20px 30px;

  margin-top: 40px;

  color: #9b8b75;

  font-size: 13px;

  border-top:
    1px solid
    rgba(180, 160, 120, 0.15);

  background: #fcfaf5;
}

.site-footer span {
  color: #b08d57;

  font-weight: 700;

  letter-spacing: 1px;
}

.footer-line {
  width: 70px;

  height: 1px;

  margin: 0 auto 14px;

  background:
    linear-gradient(
      to right,
      transparent,
      #c9a96e,
      transparent
    );
}

.footer-designer-logo {
  width: 100px;

  height: 32px;

  margin: 6px auto 0;

  background-color: #d8b168;

  -webkit-mask-size: contain;
  mask-size: contain;

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  -webkit-mask-position: center;
  mask-position: center;
}

.corner-flower {
  position: absolute;

  bottom: 0;
  right: 0;

  width: 180px;

  height: auto;

  z-index: 10;

  transform-origin: bottom right;

  animation:
    cornerBreeze 5s
    ease-in-out
    infinite;
}

@keyframes cornerBreeze {
  0% {
    transform: rotate(0deg);
  }

  33% {
    transform: rotate(-5deg);
  }

  66% {
    transform: rotate(2deg);
  }

  100% {
    transform: rotate(0deg);
  }
}


/* =========================================================
   GALLERY
   ========================================================= */

.gallery-section {
  padding: 64px 24px 76px;

  background: var(--bg);
}

.gallery-grid {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 14px;

  padding: 0 16px;

  max-width: 380px;

  margin: 0 auto;
}

.gallery-item {
  position: relative;

  aspect-ratio: 1 / 1;

  border: 4px solid #fffefb;

  outline: 1px solid var(--line);

  box-shadow:
    0 6px 16px rgba(115, 100, 75, 0.12);

  overflow: hidden;

  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 0.4s ease;
}


/* =========================================================
   HERO
   ========================================================= */

.main-hero {
  position: relative;

  background: var(--bg);

  display: flex;

  flex-direction: column;

  align-items: center;

  padding-bottom: 60px;
}

.hero-img-wrap {
  position: relative;

  width: 100%;

  height: 78vh;

  max-height: 850px;
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  object-position: center 20%;
}

.hero-img-fade {
  position: absolute;

  bottom: -2px;

  left: 0;
  right: 0;

  height: 45vh;

  background:
    linear-gradient(
      to bottom,
      rgba(250, 248, 243, 0) 0%,
      rgba(250, 248, 243, 1) 100%
    );

  pointer-events: none;
}

.hero-text-box {
  position: relative;

  margin-top: -70px;

  text-align: center;

  z-index: 10;
}

.hero-elegant-names {
  font-family:
    "CustomEnglish",
    var(--font-display) !important;

  font-size:
    clamp(31px, 9.5vw, 49px);

  white-space: nowrap;

  color: var(--ink);

  margin: 0 0 12px 0;

  font-weight: 400;

  letter-spacing: 0.01em;

  padding: 0 15px;
}

.hero-elegant-names .amp {
  color: var(--accent);

  font-style: italic;

  font-size:
    clamp(30px, 8vw, 42px);

  margin: 0 10px;
}

.hero-elegant-date {
  font-family: var(--font-display);

  font-size: 16px;

  letter-spacing: 0.3em;

  color: var(--accent-deep);

  font-weight: 600;
}


/* =========================================================
   SEQUENTIAL ANIMATION
   ========================================================= */

.seq-anim {
  opacity: 0;
}

#introWrap.ended ~ .card .seq-anim {
  animation:
    softCinematicEntry
    3s
    cubic-bezier(0.25, 1, 0.35, 1)
    forwards;
}

#introWrap.ended ~ .card .anim-1 {
  animation-delay: 0.8s;
}

#introWrap.ended ~ .card .anim-2 {
  animation-delay: 2.8s;
}

#introWrap.ended ~ .card .anim-3 {
  animation-delay: 4.8s;
}

@keyframes softCinematicEntry {
  0% {
    opacity: 0;

    transform:
      translate(25px, 8px);

    filter: blur(6px);
  }

  100% {
    opacity: 1;

    transform:
      translate(0, 0);

    filter: blur(0);
  }
}


/* =========================================================
   CUSTOM POEM SECTION
   ========================================================= */

.custom-poem-section {
  position: relative;

  width: 100%;

  background: transparent !important;

  overflow: hidden;

  padding-bottom: 60px;
}

.arch-photo {
  width: 100%;

  max-width: 440px;

  height: auto;

  margin: 0 auto;

  display: block;

  mix-blend-mode: multiply;
}

.custom-poem-content {
  position: relative;

  width: 100%;

  text-align: center;

  margin-top: -200px;

  padding: 0 20px;

  z-index: 2;
}

.custom-poem-img {
  width: 100%;

  max-width: 320px;

  height: auto;

  margin: 0 auto 25px auto;

  display: block;

  opacity: 0;

  mix-blend-mode: multiply;
}

.custom-family-names {
  font-family: "dima2", sans-serif;

  font-size:
    clamp(26px, 8vw, 38px);

  color: #2b2b2b;

  margin: 0;

  opacity: 0;
}

.custom-family-names .amp {
  font-family: var(--font-heading);

  font-size:
    clamp(20px, 5vw, 28px);

  color: #d8b168;

  margin: 0 10px;
}

.reveal.in .custom-poem-img {
  animation:
    slideUpFade
    3s
    cubic-bezier(0.25, 1, 0.35, 1)
    forwards;
}

.reveal.in .custom-family-names {
  animation:
    slideUpFade
    3s
    cubic-bezier(0.25, 1, 0.35, 1)
    forwards;

  animation-delay: 1s;
}

@keyframes slideUpFade {
  0% {
    opacity: 0;

    transform: translateY(40px);

    filter: blur(12px);
  }

  100% {
    opacity: 1;

    transform: translateY(0);

    filter: blur(0);
  }
}


/* =========================================================
   LIGHTBOX
   ========================================================= */

.lightbox[hidden] {
  display: none;
}

.lightbox:not([hidden]) {
  position: fixed;

  inset: 0;

  z-index: 70;

  background:
    rgba(30, 26, 18, 0.85);

  backdrop-filter: blur(6px);

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 22px;

  cursor: zoom-out;
}

.lightbox img {
  max-width: 94%;

  max-height: 88%;

  border: 6px solid #fffefb;

  outline: 1px solid var(--line);

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;

  top: 16px;
  left: 16px;

  width: 44px;
  height: 44px;

  border-radius: 50%;

  border:
    1px solid
    rgba(255, 254, 250, 0.5);

  background:
    rgba(0, 0, 0, 0.25);

  color: #fffefb;

  font-size: 20px;
}


/* =========================================================
   MUSIC BUTTON
   ========================================================= */

.music-btn {
  position: fixed;

  bottom: 18px;
  left: 18px;

  z-index: 50;

  width: 52px;
  height: 52px;

  border-radius: 50%;

  border:
    1px solid
    var(--line);

  background: #fffefb;

  box-shadow:
    0 6px 18px
    rgba(115, 100, 75, 0.2);

  display: flex;

  align-items: center;
  justify-content: center;

  color: var(--accent);

  font-size: 20px;
}


/* =========================================================
   FOOTER NOTE
   ========================================================= */

.footer-note {
  font-size: 11.5px !important;

  color: var(--muted-2);

  margin-bottom: 14px;

  letter-spacing: 0.02em;

  font-style: italic;

  opacity: 0.85;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (min-width: 769px) {

  .intro-wrap video {
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
  }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 768px) {

  .intro-wrap {
    width: 100vw !important;

    height: 100vh !important;
    height: 100dvh !important;

    min-height: 100vh !important;
    min-height: 100dvh !important;
  }

  /* Swap the viewport axes before rotating to fill the screen without cropping. */
  .intro-wrap video {
    width: 100vh !important;
    width: 100dvh !important;
    height: 100vw !important;

    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;

    transform: translate(-50%, -50%) rotate(90deg) !important;
    transform-origin: center center !important;
    object-fit: fill !important;
    object-position: center center !important;
  }

  .intro-poem-overlay {
    padding:
      20px 18px !important;
  }

  .intro-poem-overlay p {
    font-size: 25px;

    line-height: 2.1;

    margin: 4px 0;
  }

  .intro-hint {
    bottom: 7% !important;
  }

  .intro-hint p {
    font-size: 22.4px;
  }

  .hint-icon {
    width: 15px;
    height: 15px;
  }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

  .intro-poem-overlay p {
    font-size: 22px;

    line-height: 2;
  }

  .intro-hint p {
    font-size: 19.6px;
  }

}


/* =========================================================
   LANDSCAPE MOBILE
   ========================================================= */

@media (max-height: 500px) and (orientation: landscape) {

  .intro-poem-overlay p {
    font-size: 22px;

    line-height: 1.7;

    margin: 2px 0;
  }

  .intro-hint {
    bottom: 5% !important;
  }

  .intro-hint p {
    font-size: 18.2px;
  }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .intro-wrap,
  .intro-poem-overlay,
  .intro-hint {
    transition: none !important;
  }

  .intro-hint,
  .countdown-phrase,
  .corner-flower {
    animation: none !important;
  }

}

/* Readable invitation poem over both light and dark video frames. */
#introWrap #introPoem {
  background: radial-gradient(ellipse at center,
    rgba(24, 17, 29, 0.78) 0%,
    rgba(24, 17, 29, 0.66) 32%,
    rgba(24, 17, 29, 0.28) 62%,
    rgba(24, 17, 29, 0) 85%);
}
#introWrap #introPoem p {
  color: #fff8ec;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.95),
               0 4px 14px rgba(0, 0, 0, 0.8);
}
#introWrap #introPoem p + p {
  color: #ffe0a3;
}
