@font-face {
  font-family: "Allura";
  src: url("res/fonts/allura-latin-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("res/fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("res/fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("res/fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("res/fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("res/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("res/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("res/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("res/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "B Fantezy";
  src: url("res/Font/33-B-Fantezy.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #f8f1ea;
  --bg-deep: #efe2d7;
  --surface: rgba(255, 250, 245, 0.78);
  --surface-strong: rgba(255, 252, 248, 0.92);
  --surface-soft: rgba(255, 247, 240, 0.66);
  --text: #2f2926;
  --muted: #70625a;
  --line: rgba(105, 82, 67, 0.14);
  --line-strong: rgba(105, 82, 67, 0.22);
  --accent: #bb9571;
  --accent-deep: #8f6b54;
  --shadow-xl: 0 36px 90px rgba(68, 49, 38, 0.15);
  --shadow-lg: 0 24px 56px rgba(74, 54, 43, 0.14);
  --shadow-md: 0 18px 38px rgba(77, 59, 48, 0.12);
  --shadow-card: 0 18px 32px rgba(84, 61, 46, 0.11);
  --radius-xl: 38px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --panel-padding: clamp(1.75rem, 4vw, 2.55rem);
  --panel-radius: 40px;
  --panel-shadow: 0 28px 64px rgba(73, 54, 43, 0.13);
  --content-width: 76rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --ease: 700ms cubic-bezier(0.22, 1, 0.36, 1);
  --font-script: "Allura", cursive;
  --font-couple: "B Fantezy", "Allura", cursive;
  --font-heading: "Cormorant Garamond", "Palatino Linotype", "Book Antiqua",
    Baskerville, Georgia, serif;
  --font-body: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body-ar: Tahoma, "Segoe UI", Arial, sans-serif;
}

html {
  box-sizing: border-box;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at top, rgba(240, 224, 210, 0.9), transparent 26%),
    linear-gradient(180deg, #fbf5ef 0%, #f8f1ea 48%, #f1e6dc 100%);
}

html[lang="ar"] body {
  font-family: var(--font-body-ar);
}

html.intro-active,
body.intro-active {
  overflow: hidden;
  overscroll-behavior: none;
}

body.intro-active {
  position: fixed;
  inset: 0;
  width: 100%;
  touch-action: none;
  padding-right: var(--scrollbar-compensation, 0px);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 54%),
    radial-gradient(
      circle at 20% 18%,
      rgba(255, 255, 255, 0.36),
      transparent 20%
    );
  opacity: 0.55;
}

img,
picture {
  display: block;
  max-inline-size: 100%;
}

button,
a {
  min-inline-size: 0;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

a {
  text-decoration: none;
}

main,
section,
div,
figure,
aside,
article {
  max-inline-size: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  position: relative;
  overflow-x: clip;
  padding-block:
    calc(env(safe-area-inset-top, 0px) + clamp(4.4rem, 6.6vw, 5.3rem))
    clamp(2.6rem, 5.4vw, 4.4rem);
}

.page-shell::before {
  content: "";
  position: absolute;
  top: 9rem;
  left: 50%;
  z-index: -1;
  width: min(70rem, 92%);
  height: 28rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(240, 225, 213, 0.75), transparent 68%);
  filter: blur(24px);
}

.section {
  position: relative;
  padding-block: clamp(2rem, 4.8vw, 3.8rem);
}

.section__inner {
  width: min(var(--content-width), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section,
#when-card,
#where-card {
  scroll-margin-top: 7.2rem;
}

.section-heading {
  display: grid;
  gap: clamp(0.32rem, 1vw, 0.55rem);
  max-inline-size: 42rem;
  margin-bottom: clamp(1.2rem, 3vw, 1.9rem);
}

.section-heading--center {
  gap: clamp(0.75rem, 1.8vw, 1rem);
  margin-inline: auto;
  text-align: center;
}

.section-header {
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.35rem);
}

.section-header > .section-divider,
.section-header > .section-heading {
  margin-bottom: 0;
}

.section-copy {
  max-inline-size: 30rem;
  color: var(--muted);
}

.section-copy--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  color: var(--accent-deep);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
}

html[lang="ar"] .eyebrow {
  letter-spacing: 0.04em;
  text-transform: none;
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(3.5rem, 10.5vw, 6.9rem);
}

h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

p {
  margin: 0;
  line-height: 1.75;
}

.lead {
  max-inline-size: 34rem;
  font-size: clamp(1.05rem, 2.6vw, 1.18rem);
  color: var(--muted);
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  height: 100dvh;
  overflow: hidden;
  background: #17120f;
  transition:
    opacity var(--ease),
    visibility var(--ease);
}

.intro-overlay[hidden] {
  display: none;
}

.intro-overlay.is-opening {
  pointer-events: none;
}

.intro-overlay.is-opening .intro-media img {
  transform: scale(1.07);
  filter: blur(10px);
}

.intro-overlay.is-opening .intro-overlay__shade {
  opacity: 0.18;
}

.intro-overlay.is-opening .hero-title-block {
  opacity: 0;
  transform: translateY(-0.5rem);
}

.intro-overlay.is-opening .hero-cta {
  opacity: 0;
  transform: translateY(12px);
}

.intro-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.intro-media,
.intro-media img,
.intro-overlay__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro-media img {
  object-fit: cover;
  object-position: var(--hero-position-mobile, 50% 36%);
  transition:
    transform 1100ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 1100ms cubic-bezier(0.22, 1, 0.36, 1);
}

.intro-overlay__shade {
  background:
    linear-gradient(180deg, rgba(20, 15, 12, 0.18), rgba(20, 15, 12, 0.62)),
    radial-gradient(circle at 50% 24%, rgba(245, 230, 215, 0.1), transparent 32%);
  transition: opacity 900ms ease;
}

.intro-overlay__content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.language-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  width: 100%;
  padding:
    calc(env(safe-area-inset-top, 0px) + clamp(0.45rem, 1.4vw, 0.75rem))
    var(--gutter)
    0;
  pointer-events: none;
}

.language-switcher {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  width: min(16.5rem, 100%);
  padding: 0.26rem;
  border-radius: 999px;
  border: 1px solid rgba(143, 107, 84, 0.18);
  background: rgba(255, 250, 245, 0.82);
  color: var(--accent-deep);
  box-shadow: 0 16px 32px rgba(84, 61, 46, 0.12);
  backdrop-filter: blur(14px);
}

.language-switcher__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-inline-size: 2.75rem;
  min-block-size: 2.25rem;
  padding: 0.5rem 0.78rem;
  border-radius: 999px;
  color: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.78;
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease,
    opacity 220ms ease;
}

.language-switcher__button.is-active {
  opacity: 1;
  background: linear-gradient(135deg, #a97f5b, #c9a585);
  color: #fffaf7;
  box-shadow: 0 10px 22px rgba(126, 92, 64, 0.2);
}

.hero-cta {
  position: absolute;
  inset-inline: var(--gutter);
  bottom: clamp(4.4rem, 10svh, 7rem);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  width: auto;
  z-index: 2;
  transition:
    opacity 250ms ease,
    transform 250ms ease;
}

.hero-title-block {
  position: absolute;
  inset-inline: var(--gutter);
  top: calc(env(safe-area-inset-top, 0px) + clamp(4.8rem, 16svh, 10rem));
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  width: auto;
  color: #fff8f2;
  text-align: center;
  z-index: 2;
  transition:
    opacity 320ms ease,
    transform 320ms ease;
}

.hero-title {
  margin: 0;
  font-family: var(--font-couple);
  font-size: clamp(3.35rem, 10vw, 6rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0.015em;
  text-shadow: 0 8px 24px rgba(17, 12, 9, 0.22);
}

.hero-title__char {
  display: inline-block;
  opacity: 0;
  transform: translateX(-0.6rem);
  filter: blur(4px);
  will-change: transform, opacity, filter;
}

.hero-date {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.14rem, 3vw, 1.7rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 247, 239, 0.92);
}

.hero-open-button {
  margin-top: 8px;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: min(11.5rem, 100%);
  max-inline-size: min(100%, 13rem);
  min-block-size: 3.25rem;
  padding: 0.95rem 1.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 247, 239, 0.5);
  background: rgba(255, 248, 240, 0.82);
  color: #49392f;
  box-shadow: 0 20px 40px rgba(22, 16, 13, 0.2);
  backdrop-filter: blur(14px);
  white-space: nowrap;
  transition:
    transform 250ms ease,
    box-shadow 250ms ease,
    background-color 250ms ease,
    border-color 250ms ease,
    opacity 250ms ease;
}

.hero-open-button:focus-visible {
  outline: 2px solid rgba(255, 248, 240, 0.7);
  outline-offset: 4px;
}

.hero-open-button:active {
  transform: translateY(0);
}

.hero-open-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  min-block-size: 1.9rem;
}

.hero-open-cue__chevron {
  width: 0.85rem;
  height: 0.85rem;
  border-right: 1.5px solid rgba(255, 247, 239, 0.82);
  border-bottom: 1.5px solid rgba(255, 247, 239, 0.82);
  transform: rotate(45deg);
  opacity: 0.7;
  filter: drop-shadow(0 6px 18px rgba(20, 15, 12, 0.22));
}

.hero-open-cue__chevron:nth-child(2) {
  margin-top: -0.3rem;
  opacity: 0.48;
}

@keyframes heroCueFloat {
  0%,
  100% {
    transform: translateY(0) rotate(45deg);
    opacity: 0.45;
  }
  50% {
    transform: translateY(0.28rem) rotate(45deg);
    opacity: 0.82;
  }
}

.hero-open-cue__chevron {
  animation: heroCueFloat 2.1s ease-in-out infinite;
}

.hero-open-cue__chevron:nth-child(2) {
  animation-delay: 180ms;
}

.invitation-intro {
  padding-top: clamp(1.4rem, 3.5vw, 2.3rem);
}

.invitation-intro__grid {
  display: block;
}

.editorial-copy {
  display: grid;
  gap: 2rem;
  min-inline-size: 0;
  position: relative;
  padding-block: 0.7rem 1rem;
  line-height: 1.7;
}

.editorial-copy .eyebrow,
.editorial-copy .intro-copy {
  margin: 0;
}

.editorial-title {
  max-inline-size: 10ch;
  text-wrap: balance;
}

.couple-names {
  font-family: var(--font-couple);
  font-size: clamp(4rem, 13vw, 7rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0.02em;
  color: #7f5d46;
  text-shadow: 0 8px 22px rgba(255, 255, 255, 0.38);
}

html[lang="ar"] .hero-title,
html[lang="ar"] .couple-names {
  font-family: var(--font-couple);
  white-space: pre-line;
}

@media (min-width: 721px) {
  html[lang="ar"] .invitation-intro .editorial-title {
    max-inline-size: none;
  }
}

html[lang="ar"] .section-heading__accent {
  font-family: var(--font-couple);
  line-height: 0.95;
  letter-spacing: 0;
}

html[lang="ar"] .section-heading__title-group {
  grid-template-areas: none;
  align-items: center;
  justify-items: center;
  gap: clamp(0.45rem, 1.4vw, 0.7rem);
  width: fit-content;
  max-inline-size: min(100%, 24rem);
  margin-top: 0;
  margin-inline: auto;
  text-align: center;
}

html[lang="ar"] .section-heading__accent {
  grid-area: auto;
  justify-self: center;
  align-self: center;
  margin-inline-start: 0;
  transform: none;
  white-space: normal;
}

html[lang="ar"] .section-heading__title-group h2 {
  grid-area: auto;
  margin-top: 0;
  padding-top: 0;
}

html[lang="ar"] h1,
html[lang="ar"] .detail-line,
html[lang="ar"] .section-copy {
  font-family: var(--font-body-ar);
  letter-spacing: 0;
}

html[lang="ar"] h2 {
  font-family: var(--font-heading);
  letter-spacing: 0;
}

.editorial-copy::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: clamp(4.5rem, 16vw, 8rem);
  height: 1px;
  background: linear-gradient(90deg, rgba(143, 107, 84, 0.55), transparent);
}

.details-stack {
  display: grid;
  gap: 1.15rem;
  width: min(100%, 31rem);
  margin-inline: auto;
}

.details-panel .section__inner {
  display: flex;
  justify-content: center;
}

.info-card,
.panel-card,
.story-frame {
  border: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    rgba(255, 251, 246, 0.8),
    rgba(255, 246, 239, 0.65)
  );
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(16px);
}

.panel-card {
  position: relative;
  padding: var(--panel-padding);
  border-radius: var(--panel-radius);
  box-shadow: var(--panel-shadow);
}

.info-card {
  position: relative;
  display: block;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-xl);
  color: var(--text);
  text-align: left;
  box-shadow: 0 28px 56px rgba(88, 64, 47, 0.16);
  transform: translateY(0);
  transition:
    transform 240ms ease,
    box-shadow 240ms ease,
    border-color 240ms ease,
    background-color 240ms ease;
}

.info-card--calendar {
  cursor: default;
}

.info-card--action {
  cursor: pointer;
}

.info-card:focus-visible,
.info-card:focus-within,
.info-card:active {
  border-color: rgba(143, 107, 84, 0.26);
  box-shadow: 0 34px 64px rgba(84, 61, 46, 0.18);
}

.info-card:focus-visible,
.info-card:focus-within {
  outline: 2px solid rgba(187, 149, 113, 0.35);
  outline-offset: 3px;
}

.info-card:active {
  transform: translateY(-2px) scale(0.995);
}

.info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 38%),
    radial-gradient(
      circle at top right,
      rgba(255, 255, 255, 0.28),
      transparent 28%
    );
  pointer-events: none;
}

.card-shell {
  position: relative;
  z-index: 1;
  display: grid;
}

.detail-label {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  margin-bottom: 0.3rem;
  color: var(--accent-deep);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 900;
}

.detail-label__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  color: rgba(143, 107, 84, 0.82);
}

.detail-label__icon svg,
.card-action__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-line {
  display: block;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: clamp(1.12rem, 2.4vw, 1.34rem);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: 0.01rem;
  text-transform: none;
}

.detail-line--single {
  font-size: clamp(0.98rem, 2.3vw, 1.16rem);
  overflow-wrap: anywhere;
}

.detail-separator {
  color: rgba(143, 107, 84, 0.62);
  font-family: var(--font-body);
  font-size: 0.98rem;
}

html[lang="ar"] .detail-separator,
html[lang="ar"] .countdown__label,
html[lang="ar"] .language-switcher__button {
  letter-spacing: 0.05em;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.card-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-block-size: 3.2rem;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(143, 107, 84, 0.18);
  background: rgba(255, 250, 245, 0.84);
  box-shadow: 0 10px 24px rgba(84, 61, 46, 0.1);
  backdrop-filter: blur(12px);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.card-action:focus-visible {
  outline: 2px solid rgba(187, 149, 113, 0.35);
  outline-offset: 3px;
}

.card-action:active {
  transform: translateY(0) scale(0.99);
}

.card-action__content {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-width: 0;
}

.card-action__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.card-action__icon {
  width: 1rem;
  height: 1rem;
}

.card-action__label {
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.card-action--primary {
  flex: 1 1 15rem;
  border-color: rgba(162, 127, 99, 0.22);
  background: linear-gradient(135deg, #a97f5b, #c9a585);
  color: #fffaf7;
  box-shadow: 0 18px 32px rgba(126, 92, 64, 0.18);
}

.section-divider {
  display: grid;
  grid-template-columns: minmax(2.75rem, 1fr) auto minmax(2.75rem, 1fr);
  align-items: center;
  gap: 0.9rem;
  width: min(100%, clamp(14rem, 34vw, 18rem));
  margin: 0 auto clamp(1.1rem, 2vw, 1.55rem);
  color: var(--accent-deep);
  opacity: 0.8;
}

.section-divider--center {
  justify-items: stretch;
}

.section-divider__line {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(143, 107, 84, 0.46),
    transparent
  );
}

.section-divider__mark {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.section-heading__title-group {
  display: grid;
  grid-template-areas: "stack";
  align-items: end;
  width: fit-content;
  max-inline-size: 100%;
  margin-top: 0.05rem;
}

.section-heading__title-group--center {
  margin-inline: auto;
}

.section-heading__accent {
  grid-area: stack;
  justify-self: start;
  align-self: start;
  margin-inline-start: clamp(0.2rem, 0.7vw, 0.45rem);
  z-index: 0;
  font-family: var(--font-script);
  font-size: clamp(1.95rem, 5vw, 3.1rem);
  font-weight: 400;
  line-height: 0.72;
  color: rgba(161, 120, 91, 0.74);
  pointer-events: none;
  white-space: nowrap;
  transform: translateY(-0.35rem);
}

.section-heading__title-group h2 {
  grid-area: stack;
  position: relative;
  z-index: 1;
  margin-top: clamp(0.45rem, 1vw, 0.65rem);
  padding-top: clamp(1rem, 2vw, 1.25rem);
  text-wrap: balance;
}

.section-heading--center .section-heading__accent,
.section-heading__title-group--center .section-heading__accent {
  justify-self: center;
  margin-inline-start: 0;
  transform: translateY(-0.38rem);
}

html[dir="rtl"] .editorial-copy,
html[dir="rtl"] .section-copy,
html[dir="rtl"] .info-card {
  text-align: right;
}

html[dir="rtl"] .editorial-copy::after {
  inset: auto 0 0 auto;
  background: linear-gradient(270deg, rgba(143, 107, 84, 0.55), transparent);
}

html[dir="rtl"] .detail-label {
  display: flex;
  width: 100%;
  justify-content: flex-start;
}

html[dir="rtl"] .card-action__content {
  flex-direction: row-reverse;
}

.visual-story::before,
.countdown::before,
.moments::before,
.rsvp::before {
  content: "";
  position: absolute;
  left: 50%;
  z-index: -1;
  width: min(calc(100% - 1.25rem), 74rem);
  border-radius: 42px;
  transform: translateX(-50%);
  pointer-events: none;
}

.visual-story::before {
  top: 2.1rem;
  bottom: 1.4rem;
  background:
    linear-gradient(180deg, rgba(255, 251, 247, 0.45), rgba(244, 233, 223, 0.48)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.32), transparent 28%);
}

.countdown::before {
  top: 1.4rem;
  bottom: 1.2rem;
  background:
    linear-gradient(180deg, rgba(251, 245, 239, 0.7), rgba(241, 229, 219, 0.54)),
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.28), transparent 25%);
}

.moments::before {
  top: 1.4rem;
  bottom: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 248, 242, 0.4), rgba(244, 233, 224, 0.34)),
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.26), transparent 25%);
}

.rsvp::before {
  top: 1.3rem;
  bottom: 1rem;
  background:
    linear-gradient(180deg, rgba(251, 245, 239, 0.6), rgba(241, 229, 219, 0.46)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.3), transparent 28%);
}

.story-frame {
  position: relative;
  padding: clamp(0.7rem, 2vw, 1rem);
  border-radius: calc(var(--radius-xl) + 2px);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.34);
}

.story-frame::before {
  display: none;
}

.slider {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: clamp(19rem, 64vw, 40rem);
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 4px);
  background: rgba(255, 255, 255, 0.44);
}

.slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity 900ms ease,
    transform 5200ms ease;
}

.slider__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

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

.slider__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 16, 13, 0.04),
    rgba(20, 16, 13, 0.18)
  );
}

.slider__indicators {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  gap: 0.5rem;
  transform: translateX(-50%);
}

.slider__dot {
  width: 0.68rem;
  height: 0.68rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  transition:
    width 250ms ease,
    background-color 250ms ease,
    border-color 250ms ease,
    transform 250ms ease;
}

.slider__dot:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
}

.slider__dot.is-active {
  width: 1.85rem;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.96);
}

.countdown-panel {
  text-align: center;
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1rem);
  max-inline-size: 56rem;
  margin-inline: auto;
}

.countdown__item {
  position: relative;
  padding: clamp(1.25rem, 3vw, 1.75rem) 0.8rem;
  border: 1px solid rgba(123, 97, 78, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow-md);
}

.countdown__number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5.8vw, 4.5rem);
  line-height: 1;
}

.countdown__label {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

.countdown__message {
  margin-top: 1.2rem;
  color: var(--muted);
}

.moments {
  overflow: hidden;
}

.moments-stage {
  position: relative;
  padding-top: 0.1rem;
}

.moments-collage {
  position: relative;
  min-height: clamp(32rem, 72vw, 49rem);
  padding: 0.8rem 0.6rem 0.4rem;
  overflow: hidden;
}

.moment-card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(111, 85, 68, 0.12);
  background: var(--surface-strong);
  box-shadow: 0 24px 54px rgba(73, 53, 42, 0.16);
  transform: translate3d(0, 0, 0);
  transition:
    transform 450ms ease,
    box-shadow 450ms ease;
}

.moment-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.moment-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(180deg, transparent, rgba(26, 20, 16, 0.12));
}

.moment-card:hover,
.moment-card:focus-within {
  animation-play-state: paused;
  transform: translateY(-8px) rotate(var(--rotation));
  box-shadow: 0 26px 52px rgba(66, 47, 37, 0.16);
}

.moment-card.is-floating {
  animation: drift var(--duration, 10s) ease-in-out infinite;
}

.rsvp-card {
  width: min(100%, 46rem);
  margin-inline: auto;
  text-align: center;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-inline-size: 100%;
  min-block-size: 3.2rem;
  margin-top: 1.85rem;
  padding: 0.98rem 1.7rem;
  border-radius: 999px;
  border: 1px solid rgba(162, 127, 99, 0.22);
  background: linear-gradient(135deg, #a97f5b, #c9a585);
  color: #fffaf7;
  box-shadow: 0 18px 32px rgba(126, 92, 64, 0.22);
  white-space: nowrap;
  animation: ctaGlowBreath 3.8s ease-in-out infinite;
  transition:
    transform 250ms ease,
    box-shadow 250ms ease,
    filter 250ms ease;
}

.section-header + .story-frame,
.section-header + .countdown__grid,
.section-header + .moments-stage,
.section-header + .section-copy {
  margin-top: clamp(1.2rem, 2.8vw, 1.75rem);
}

.cta-button:focus-visible {
  outline: 2px solid rgba(187, 149, 113, 0.4);
  outline-offset: 4px;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(var(--rotation));
  }
  50% {
    transform: translate3d(0, -9px, 0) rotate(calc(var(--rotation) + 1deg));
  }
}

@keyframes ctaGlowBreath {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 18px 32px rgba(126, 92, 64, 0.22);
  }
  50% {
    transform: translateY(-1px);
    box-shadow: 0 22px 38px rgba(126, 92, 64, 0.28);
  }
}

@media (hover: hover) {
  .language-switcher__button:hover,
  .language-switcher__button:focus-visible {
    opacity: 1;
    transform: translateY(-1px);
  }

  .hero-open-button:hover,
  .hero-open-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 24px 44px rgba(23, 17, 13, 0.22);
    background: rgba(255, 250, 244, 0.92);
  }

  .info-card:hover {
    transform: translateY(-4px);
    border-color: rgba(143, 107, 84, 0.26);
    box-shadow: 0 34px 64px rgba(84, 61, 46, 0.18);
  }

  .card-action:hover {
    transform: translateY(-2px);
    border-color: rgba(143, 107, 84, 0.24);
    box-shadow: 0 16px 28px rgba(84, 61, 46, 0.16);
  }

  .info-card--location:hover .card-action--primary {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(84, 61, 46, 0.16);
  }

  .slider__dot:hover {
    transform: scale(1.06);
  }

  .cta-button:hover,
  .cta-button:focus-visible {
    animation-play-state: paused;
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(126, 92, 64, 0.28);
    filter: saturate(1.04);
  }
}

@media (min-width: 768px) {
  .intro-media img {
    object-position: var(--hero-position-desktop, 50% 42%);
  }

  .hero-title-block {
    top: calc(env(safe-area-inset-top, 0px) + clamp(6rem, 18svh, 12rem));
  }

  .hero-date {
    font-size: clamp(1.55rem, 2.5vw, 2.3rem);
    letter-spacing: 0.34em;
  }
}

@media (min-width: 821px) {
  .moments {
    padding-bottom: clamp(0.35rem, 1vw, 0.9rem);
  }

  .rsvp {
    padding-top: clamp(0.4rem, 1.2vw, 0.95rem);
  }

  .rsvp::before {
    top: 0.35rem;
  }
}

@media (min-width: 981px) {
  .page-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
    column-gap: clamp(1.4rem, 4vw, 4rem);
    width: min(100%, 80rem);
    margin-inline: auto;
    padding-inline: var(--gutter);
  }

  .page-shell > .section {
    width: 100%;
  }

  .page-shell > .section > .section__inner {
    width: 100%;
    padding-inline: 0;
  }

  .page-shell > .invitation-intro {
    grid-column: 1;
    grid-row: 1;
  }

  .page-shell > .details-panel {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .page-shell > .visual-story,
  .page-shell > .countdown,
  .page-shell > .moments,
  .page-shell > .rsvp {
    grid-column: 1 / -1;
  }

  .details-panel {
    padding-top: clamp(1.2rem, 3vw, 2.2rem);
  }

  .details-panel .section__inner {
    justify-content: flex-end;
  }
}

@media (max-width: 980px) {
  .visual-story .section__inner {
    padding-top: 0.6rem;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding-block:
      calc(env(safe-area-inset-top, 0px) + 3rem)
      3rem;
  }

  .section {
    padding-block: 1.8rem 2.4rem; 
  }

  .section-heading__accent {
    font-size: clamp(2.5rem, 5vw, 2.35rem);
    transform: translateY(-0.28rem);
  }

  .editorial-copy {
    text-align: center;
  }

  .editorial-title,
  .intro-copy {
    margin-inline: auto;
  }

  .invitation-intro {
    padding-bottom: 0.7rem;
  }

  .visual-story {
    padding-top: 0.9rem;
  }

  .editorial-copy::after {
    left: 50%;
    transform: translateX(-50%);
  }

  html[lang="ar"] .invitation-intro .editorial-copy {
    justify-items: center;
    text-align: center;
  }

  html[lang="ar"] .invitation-intro .editorial-title,
  html[lang="ar"] .invitation-intro .intro-copy,
  html[lang="ar"] .invitation-intro .eyebrow {
    margin-inline: auto;
  }

  html[lang="ar"] .invitation-intro .editorial-copy::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    background: linear-gradient(
      90deg,
      transparent,
      rgba(143, 107, 84, 0.55),
      transparent
    );
  }

  .details-panel {
    padding-top: 1rem;
  }

  .story-card {
    padding-top: 1.55rem;
  }

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

  .moments-collage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem;
    min-height: auto;
    padding: 0;
    overflow: visible;
  }

  .moment-card {
    position: relative;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1.04 !important;
    transform: rotate(var(--rotation));
  }

  .moment-card:nth-child(2),
  .moment-card:nth-child(5) {
    aspect-ratio: 0.88 !important;
  }

  .moment-card:nth-child(3),
  .moment-card:nth-child(6) {
    aspect-ratio: 1.18 !important;
  }

  .moment-card:nth-child(odd) {
    margin-top: 0.28rem;
  }

  .moment-card:hover,
  .moment-card:focus-within {
    transform: translateY(-4px) rotate(var(--rotation));
  }
}

@media (max-width: 620px) {
  .card-action__label {
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .eyebrow {
    font-size: 1.2rem;
    letter-spacing: 0.22em;
  }

  .editorial-title {
    max-inline-size: 100%;
  }

  .intro-overlay__content {
    height: 100%;
  }

  .hero-open-button,
  .cta-button {
    max-inline-size: 100%;
  }

  .language-switcher__button {
    min-inline-size: 2.45rem;
    padding-inline: 0.7rem;
  }

  .hero-title-block {
    top: calc(env(safe-area-inset-top, 0px) + clamp(4.8rem, 14svh, 8.4rem));
  }

  .hero-cta {
    bottom: clamp(3.5rem, 10svh, 5rem);
  }

  .hero-title {
    font-size: clamp(2.58rem, 10.4vw, 3.95rem);
    letter-spacing: 0.008em;
    white-space: nowrap;
  }

  html[lang="ar"] .hero-title {
    white-space: pre-line;
  }

  .hero-date {
    font-size: clamp(0.98rem, 3.9vw, 1.2rem);
    letter-spacing: 0.24em;
  }

  .hero-open-cue {
    gap: 0.22rem;
    min-block-size: 1.55rem;
  }

  .hero-open-cue__chevron {
    width: 0.72rem;
    height: 0.72rem;
  }

  .info-card,
  .panel-card {
    border-radius: 30px;
  }

  .info-card {
    padding: 1.35rem 1.2rem;
  }

  .slider {
    min-height: clamp(16rem, 80vw, 23rem);
  }

  .moments-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem;
  }

  .moment-card {
    aspect-ratio: 1.08 !important;
  }

  .moment-card:nth-child(2),
  .moment-card:nth-child(5) {
    aspect-ratio: 0.9 !important;
  }

  .moment-card:nth-child(3),
  .moment-card:nth-child(6) {
    aspect-ratio: 1.2 !important;
  }

  .moment-card:nth-child(odd) {
    margin-top: 0.22rem;
  }
}

@media (max-width: 412px) {
  .section__inner {
    padding-inline: 1rem;
  }

  .hero-title {
    font-size: clamp(2.18rem, 9.2vw, 3rem);
    letter-spacing: 0;
  }

  .couple-names {
    font-size: clamp(3.45rem, 15vw, 4.9rem);
  }
}

@media (max-height: 740px) {
  .hero-title-block {
    top: calc(env(safe-area-inset-top, 0px) + clamp(4.4rem, 13svh, 7rem));
  }

  .hero-cta {
    bottom: clamp(3rem, 8svh, 4.4rem);
  }
}

@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;
    scroll-behavior: auto !important;
  }

  .reveal,
  .slider__slide,
  .intro-media img,
  .hero-open-button,
  .hero-title,
  .hero-date {
    transform: none !important;
    filter: none !important;
  }

  .hero-title,
  .hero-date {
    opacity: 1 !important;
  }

  .hero-title__char {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .hero-open-cue__chevron,
  .cta-button,
  .moment-card.is-floating {
    animation: none !important;
  }
}
