/* Aswan wedding invitation — calm Nubian pastels, soft Nile greens, and ivory light */
:root {
  color-scheme: light;
  --ink: #435857;
  --deep: #f8f3eb;
  --nile: #86aaa4;
  --nile-light: #c8ded9;
  --sun: #c99356;
  --sand: #a96f63;
  --paper: #fffaf2;
  --terracotta: #cf968c;
  --coral: #dfb1a4;
  --cream: #435857;
  --muted: rgba(67, 88, 87, 0.68);
  --line: rgba(91, 119, 116, 0.22);
  --display: "Aref Ruqaa", "Traditional Arabic", serif;
  --body: "Tajawal", "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .8, .25, 1);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  background: var(--deep);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--deep);
  color: var(--cream);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 4px;
}

.texture {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .18;
  mix-blend-mode: soft-light;
  background-image:
    radial-gradient(circle at 20% 30%, #fff 0 .7px, transparent .8px),
    radial-gradient(circle at 70% 60%, #000 0 .7px, transparent .8px);
  background-size: 7px 7px, 9px 9px;
}

.texture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.03), transparent);
}

.aswan-scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  transition: filter 1.2s ease, transform 1.2s var(--ease);
}

.scene-sun {
  transform-origin: 255px 265px;
  animation: sunPulse 6s ease-in-out infinite;
}

.water-shimmer {
  stroke-dasharray: 180 55;
  animation: shimmer 9s linear infinite;
}

.palm {
  transform-origin: bottom center;
  animation: palmSway 7s ease-in-out infinite alternate;
}

.palm--left {
  animation-delay: -2.5s;
}

body[data-active-slide="1"] .aswan-scene,
body[data-active-slide="2"] .aswan-scene,
body[data-active-slide="3"] .aswan-scene {
  filter: saturate(.82) brightness(.7);
  transform: scale(1.025);
}

body[data-active-slide="4"] .aswan-scene {
  filter: saturate(.75) brightness(.56);
  transform: scale(1.06);
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  padding: clamp(18px, 3.2vw, 38px) clamp(22px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: ltr;
  pointer-events: none;
}

.monogram {
  width: 50px;
  height: 50px;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  justify-items: center;
  border: 1px solid rgba(255, 246, 223, .5);
  border-radius: 50%;
  background: rgba(8, 45, 51, .1);
  color: var(--cream);
  text-decoration: none;
  font-family: var(--display);
  font-size: 19px;
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.monogram i {
  width: 1px;
  height: 18px;
  background: rgba(255, 246, 223, .45);
  transform: rotate(20deg);
}

.topbar__date {
  margin: 0;
  display: flex;
  gap: 7px;
  direction: rtl;
  color: rgba(255, 246, 223, .78);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .13em;
}

.invitation {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: clamp(88px, 11vh, 124px) clamp(24px, 7vw, 108px) clamp(95px, 12vh, 126px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8%) scale(.985);
  transition:
    opacity .55s ease,
    transform .8s var(--ease),
    visibility .8s;
  pointer-events: none;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .13;
  background:
    linear-gradient(135deg, transparent 48%, var(--sun) 49% 51%, transparent 52%) 0 0 / 42px 42px,
    linear-gradient(45deg, transparent 48%, var(--sun) 49% 51%, transparent 52%) 0 0 / 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 20%, transparent 80%, black);
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.slide.is-before {
  transform: translateY(-7%) scale(.985);
}

.slide__content {
  width: min(1180px, 100%);
  min-width: 0;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .8s var(--ease);
}

.is-active .reveal {
  opacity: 1;
  transform: none;
}

.is-active .reveal--1 { transition-delay: .12s; }
.is-active .reveal--2 { transition-delay: .22s; }
.is-active .reveal--3 { transition-delay: .34s; }
.is-active .reveal--4 { transition-delay: .46s; }
.is-active .reveal--5 { transition-delay: .58s; }

.eyebrow,
.kicker,
.section-number {
  margin: 0;
  color: var(--sand);
  font-size: clamp(10px, 1.1vw, 13px);
  font-weight: 500;
  letter-spacing: .14em;
}

.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sun-seal {
  position: relative;
  width: clamp(74px, 9vw, 108px);
  height: clamp(74px, 9vw, 108px);
  margin: clamp(13px, 2vh, 20px) 0 4px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--deep);
  background: var(--sun);
  box-shadow: 0 0 0 10px rgba(245, 197, 104, .08), 0 0 70px rgba(245, 197, 104, .28);
}

.sun-seal::before,
.sun-seal::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 1px;
  top: 50%;
  background: var(--sand);
}

.sun-seal::before { right: calc(100% + 16px); }
.sun-seal::after { left: calc(100% + 16px); }

.sun-seal__ring {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(8, 45, 51, .45);
  border-radius: inherit;
}

.sun-seal__birds {
  font-family: serif;
  font-size: 34px;
  transform: rotate(-10deg) translateY(-3px);
}

.kicker {
  margin-top: 12px;
  color: rgba(255, 246, 223, .65);
  letter-spacing: .06em;
}

.couple-names {
  margin: clamp(5px, 1.1vh, 12px) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 42px);
  font-family: var(--display);
  font-size: clamp(58px, 9.5vw, 132px);
  line-height: .98;
  font-weight: 700;
  text-shadow: 0 7px 30px rgba(0, 0, 0, .18);
}

.couple-names span:first-child { color: var(--cream); }
.couple-names span:last-child { color: var(--sand); }

.ampersand {
  position: relative;
  color: var(--sun);
  font-size: .38em;
  font-weight: 400;
}

.ampersand::before,
.ampersand::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  height: 23px;
  background: rgba(245, 197, 104, .65);
}

.ampersand::before { bottom: 100%; margin-bottom: 7px; }
.ampersand::after { top: 100%; margin-top: 7px; }

.invitation-line {
  margin: clamp(14px, 2vh, 22px) 0 0;
  color: rgba(255, 246, 223, .8);
  font-size: clamp(15px, 1.5vw, 19px);
}

.explore-button,
.map-button,
.replay-button {
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.explore-button {
  margin-top: clamp(20px, 3.8vh, 39px);
  min-width: 172px;
  height: 50px;
  padding: 0 24px;
  border: 1px solid rgba(255, 246, 223, .52);
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(8, 45, 51, .12);
  backdrop-filter: blur(8px);
  transition: background .3s ease, color .3s ease, transform .3s ease;
}

.explore-button:hover {
  color: var(--deep);
  background: var(--sun);
  border-color: var(--sun);
  transform: translateY(-3px);
}

.explore-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  animation: nudgeDown 1.8s ease-in-out infinite;
}

.section-number {
  color: var(--sun);
}

.section-title {
  margin: 15px 0 28px;
  font-family: var(--display);
  font-size: clamp(48px, 6.5vw, 91px);
  line-height: 1.03;
  font-weight: 400;
}

.section-title em {
  color: var(--sand);
  font-style: normal;
}

.story-layout,
.place-layout {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(360px, 1fr);
  gap: clamp(58px, 10vw, 150px);
  align-items: center;
}

.nubian-window {
  position: relative;
  width: min(390px, 100%);
  aspect-ratio: .73;
  justify-self: end;
  overflow: hidden;
  border: 10px solid rgba(242, 213, 160, .75);
  border-bottom-width: 18px;
  border-radius: 48% 48% 7px 7px / 30% 30% 7px 7px;
  background: linear-gradient(#e68c5d 0 49%, #d9a465 49% 58%, #266269 58%);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .22), inset 0 0 0 2px var(--deep);
}

.nubian-window::before {
  content: "";
  position: absolute;
  z-index: 5;
  inset: -4px;
  border: 2px solid var(--deep);
  border-radius: inherit;
}

.nubian-window::after {
  content: "◆ ◆ ◆ ◆ ◆ ◆ ◆";
  position: absolute;
  z-index: 6;
  bottom: 4px;
  inset-inline: 0;
  color: var(--terracotta);
  font-size: 14px;
  text-align: center;
  letter-spacing: .28em;
}

.nubian-window__sun {
  position: absolute;
  top: 20%;
  right: 18%;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 40px rgba(245, 197, 104, .45);
}

.nubian-window__river {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 66%;
  height: 40%;
  border-radius: 50% 45% 0 0;
  background: #17545d;
  transform: rotate(-4deg);
}

.felucca {
  position: absolute;
  z-index: 3;
  left: 28%;
  top: 43%;
  width: 46%;
  height: 35%;
}

.felucca__sail {
  position: absolute;
  left: 27%;
  top: 0;
  width: 55%;
  height: 72%;
  background: var(--cream);
  clip-path: polygon(5% 0, 100% 88%, 0 100%);
  filter: drop-shadow(0 7px 8px rgba(0, 0, 0, .12));
}

.felucca__boat {
  position: absolute;
  bottom: 18%;
  left: 8%;
  width: 85%;
  height: 14%;
  border-radius: 3px 3px 80% 20%;
  background: var(--ink);
  transform: rotate(-2deg);
}

.story-copy {
  text-align: right;
}

.story-names {
  width: min(490px, 100%);
  padding: 21px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.story-names div {
  display: flex;
  flex-direction: column;
}

.story-names small {
  margin-bottom: 4px;
  color: rgba(255, 246, 223, .55);
  font-size: 11px;
}

.story-names strong {
  color: var(--sand);
  font-family: var(--display);
  font-size: clamp(30px, 3.3vw, 46px);
  font-weight: 400;
}

.story-names__mark {
  color: var(--sun);
  font-size: 18px;
}

.story-copy blockquote {
  margin: 27px 0 0;
  color: rgba(255, 246, 223, .68);
  font-family: var(--display);
  font-size: clamp(18px, 1.9vw, 25px);
  line-height: 1.7;
}

.slide--date {
  background: linear-gradient(110deg, rgba(8, 45, 51, .5), rgba(17, 47, 53, .86));
}

.date-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(55px, 8vw, 120px);
  align-items: center;
}

.date-copy {
  text-align: right;
}

.date-lockup {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  direction: rtl;
}

.date-lockup > strong {
  color: var(--sun);
  font-family: var(--display);
  font-size: clamp(90px, 11vw, 154px);
  line-height: .8;
  font-weight: 400;
}

.date-lockup > div {
  min-height: 82px;
  padding-right: 22px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  font-size: clamp(18px, 2vw, 26px);
}

.date-lockup > div span:last-child {
  color: rgba(255, 246, 223, .55);
  font-size: .7em;
  letter-spacing: .12em;
}

.time-line {
  margin: 30px 0 0;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--sand);
  font-size: 17px;
}

.time-line svg {
  width: 22px;
  fill: none;
  stroke: var(--sun);
  stroke-width: 1.5;
}

.countdown-panel {
  min-width: 0;
  max-width: 100%;
  padding: clamp(30px, 4.5vw, 62px);
  border: 1px solid rgba(242, 213, 160, .4);
  background: rgba(10, 53, 59, .55);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .2);
  backdrop-filter: blur(13px);
}

.countdown-panel > p {
  margin: 0 0 28px;
  color: rgba(255, 246, 223, .58);
  text-align: center;
  font-size: 13px;
  letter-spacing: .1em;
}

.countdown {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 1px minmax(0, 1fr) 1px minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: center;
  direction: rtl;
}

.countdown div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.countdown strong {
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(29px, 4vw, 53px);
  font-weight: 400;
  line-height: 1;
}

.countdown span {
  color: rgba(255, 246, 223, .5);
  font-size: 10px;
}

.countdown i {
  width: 1px;
  height: 48px;
  background: var(--line);
}

.calendar-strip {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  direction: rtl;
}

.calendar-strip span,
.calendar-strip b {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(255, 246, 223, .35);
  font-size: 8px;
  font-weight: 400;
}

.calendar-strip span {
  color: var(--sand);
}

.calendar-strip .is-wedding-day {
  color: var(--ink);
  background: var(--sun);
  font-size: 11px;
  box-shadow: 0 0 0 4px rgba(245, 197, 104, .12);
}

.slide--place {
  background: linear-gradient(90deg, rgba(8, 45, 51, .12), rgba(8, 45, 51, .82));
}

.place-layout {
  grid-template-columns: minmax(320px, 1fr) minmax(340px, .85fr);
}

.venue-illustration {
  position: relative;
  height: min(52vh, 480px);
  overflow: hidden;
  justify-self: stretch;
  border: 1px solid rgba(242, 213, 160, .45);
  border-radius: 50% 50% 5px 5px / 35% 35% 5px 5px;
  background: linear-gradient(#c96e4d, #e69d66 67%, #b25b42 67%);
  box-shadow: 0 30px 70px rgba(0,0,0,.22);
}

.venue-sun {
  position: absolute;
  top: 15%;
  left: 15%;
  width: 21%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 45px rgba(245, 197, 104, .34);
}

.venue-building {
  position: absolute;
  z-index: 2;
  left: 10%;
  right: 10%;
  bottom: 12%;
  height: 45%;
  background: #f0d19d;
  box-shadow: inset 0 -14px 0 #d8aa75;
}

.venue-building::before,
.venue-building::after {
  content: "";
  position: absolute;
  bottom: 100%;
  width: 31%;
  height: 42%;
  background: #f0d19d;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.venue-building::before { right: 7%; }
.venue-building::after { left: 7%; }

.venue-building i {
  position: absolute;
  bottom: 0;
  width: 18%;
  height: 64%;
  border-radius: 50% 50% 0 0;
  background: var(--ink);
}

.venue-building i:nth-child(1) { right: 12%; }
.venue-building i:nth-child(2) { right: 41%; }
.venue-building i:nth-child(3) { left: 12%; }

.venue-building span {
  position: relative;
  z-index: 3;
  top: 12px;
  display: inline-block;
  width: 9px;
  height: 9px;
  margin: 0 9px;
  transform: rotate(45deg);
  background: var(--terracotta);
}

.venue-ground {
  position: absolute;
  z-index: 1;
  left: -10%;
  right: -10%;
  bottom: -7%;
  height: 26%;
  border-radius: 50% 50% 0 0;
  background: #8e4739;
}

.place-copy {
  text-align: right;
}

.place-description {
  margin: 0 0 28px;
  color: rgba(255, 246, 223, .65);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.8;
}

.map-button {
  min-height: 54px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 100px;
  color: var(--ink);
  background: var(--sun);
  font-size: 14px;
  font-weight: 700;
  transition: transform .3s ease, box-shadow .3s ease;
}

.map-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
}

.map-button svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.slide--final {
  background: radial-gradient(circle at 50% 42%, rgba(33, 98, 99, .54), rgba(5, 31, 35, .9) 67%);
}

.final-card {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-arch {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(520px, 86vw);
  height: min(670px, 76vh);
  border: 1px solid rgba(242, 213, 160, .31);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 34% 34% 0 0;
  transform: translate(-50%, -48%);
}

.final-arch::before,
.final-arch::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(242, 213, 160, .13);
  border-bottom: 0;
  border-radius: inherit;
}

.final-arch::after {
  inset: -16px;
  border-style: dashed;
}

.final-arch__star {
  position: absolute;
  top: 25px;
  left: 50%;
  color: var(--sun);
  transform: translateX(-50%);
}

.final-arch__palm {
  position: absolute;
  bottom: 10px;
  right: -22px;
  color: rgba(242, 213, 160, .35);
  font-size: 70px;
  transform: rotate(-18deg);
}

.final-title {
  margin: clamp(18px, 2.5vh, 28px) 0 0;
  font-family: var(--display);
  font-size: clamp(55px, 8vw, 104px);
  font-weight: 400;
  line-height: 1.02;
}

.final-title em {
  color: var(--sand);
  font-style: normal;
}

.final-divider {
  width: min(260px, 60vw);
  margin: clamp(17px, 2.4vh, 26px) 0;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--sun);
}

.final-divider i {
  height: 1px;
  flex: 1;
  background: var(--line);
}

.final-names {
  margin: 0;
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 38px);
}

.final-names span {
  margin: 0 8px;
  color: var(--sun);
  font-size: .7em;
}

.final-details {
  margin: 12px 0 0;
  color: rgba(255, 246, 223, .6);
  font-size: 13px;
  line-height: 1.9;
}

.replay-button {
  margin-top: clamp(18px, 3vh, 30px);
  padding: 8px 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 246, 223, .38);
  background: transparent;
  font-size: 12px;
}

.replay-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.slide-progress {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: rgba(255,255,255,.06);
}

.slide-progress span {
  display: block;
  width: 20%;
  height: 100%;
  background: var(--sun);
  transition: width .7s var(--ease);
  box-shadow: 0 0 14px rgba(245, 197, 104, .4);
}

.slide-dots {
  position: fixed;
  z-index: 20;
  top: 50%;
  right: clamp(18px, 3.5vw, 52px);
  display: flex;
  flex-direction: column;
  gap: 15px;
  transform: translateY(-50%);
}

.slide-dots button {
  position: relative;
  width: 7px;
  height: 7px;
  padding: 0;
  border: 1px solid rgba(255, 246, 223, .65);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}

.slide-dots button::after {
  content: "";
  position: absolute;
  inset: -7px;
}

.slide-dots button.is-active {
  background: var(--sun);
  border-color: var(--sun);
  transform: scale(1.55);
}

.slide-controls {
  position: fixed;
  z-index: 20;
  left: clamp(22px, 5vw, 76px);
  bottom: clamp(20px, 3.6vw, 42px);
  display: flex;
  align-items: center;
  direction: ltr;
}

.slide-controls button {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 246, 223, .27);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(8, 45, 51, .12);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: border-color .25s, background .25s;
}

.slide-controls button:hover {
  border-color: var(--sun);
  background: rgba(245, 197, 104, .12);
}

.slide-controls button:disabled {
  opacity: .3;
  cursor: default;
}

.slide-controls svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.slide-controls p {
  width: 76px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: rgba(255, 246, 223, .45);
  direction: ltr;
  font-size: 11px;
}

.slide-controls p span:first-child {
  color: var(--cream);
}

.slide-controls p i {
  width: 18px;
  height: 1px;
  background: rgba(255, 246, 223, .28);
}

.swipe-hint {
  position: fixed;
  z-index: 20;
  right: clamp(22px, 5vw, 76px);
  bottom: clamp(26px, 4vw, 50px);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 246, 223, .42);
  font-size: 10px;
  letter-spacing: .05em;
}

.swipe-hint span {
  position: relative;
  width: 18px;
  height: 28px;
  border: 1px solid rgba(255, 246, 223, .38);
  border-radius: 10px;
}

.swipe-hint span::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  width: 2px;
  height: 5px;
  border-radius: 2px;
  background: var(--sand);
  transform: translateX(-50%);
  animation: scrollDot 1.9s ease infinite;
}

.noscript {
  position: fixed;
  z-index: 100;
  inset: auto 15px 15px;
  margin: 0;
  padding: 12px;
  border-radius: 4px;
  color: var(--deep);
  background: var(--sun);
  text-align: center;
}

@keyframes sunPulse {
  50% { transform: scale(1.045); }
}

@keyframes shimmer {
  to { stroke-dashoffset: -470; }
}

@keyframes palmSway {
  to { transform: rotate(1.5deg); }
}

@keyframes nudgeDown {
  50% { transform: translateY(4px); }
}

@keyframes scrollDot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  35% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translate(-50%, 9px); }
}

@media (max-width: 900px) {
  .slide {
    padding-inline: clamp(24px, 8vw, 62px);
  }

  .story-layout,
  .place-layout,
  .date-layout {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .section-title {
    font-size: clamp(42px, 7vw, 64px);
  }

  .countdown-panel {
    padding: 30px 22px;
  }

  .slide-dots {
    right: 18px;
  }

  .swipe-hint {
    display: none;
  }
}

@media (max-width: 680px) {
  .topbar {
    padding: 18px 20px;
  }

  .monogram {
    width: 43px;
    height: 43px;
    font-size: 16px;
  }

  .slide {
    padding: 78px 27px 92px;
  }

  .slide::before {
    opacity: .08;
  }

  .aswan-scene {
    width: 145%;
    max-width: none;
    right: -25%;
  }

  .couple-names {
    flex-direction: column;
    gap: 0;
    font-size: clamp(58px, 19vw, 88px);
    line-height: .82;
  }

  .ampersand {
    margin: 13px 0;
    font-size: .3em;
  }

  .ampersand::before,
  .ampersand::after {
    width: 20px;
    height: 1px;
    top: 50%;
    bottom: auto;
    margin: 0;
  }

  .ampersand::before { left: calc(100% + 9px); }
  .ampersand::after { right: calc(100% + 9px); left: auto; }

  .sun-seal {
    width: 66px;
    height: 66px;
  }

  .sun-seal__birds { font-size: 26px; }

  .story-layout,
  .place-layout,
  .date-layout {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }

  .story-layout {
    flex-direction: column-reverse;
  }

  .story-copy,
  .place-copy,
  .date-copy {
    width: 100%;
    text-align: center;
  }

  .section-title {
    margin: 8px 0 17px;
    font-size: clamp(40px, 13vw, 61px);
  }

  .nubian-window {
    width: min(190px, 55vw);
    border-width: 6px;
    border-bottom-width: 11px;
  }

  .nubian-window::after {
    bottom: 2px;
    font-size: 7px;
  }

  .story-names {
    padding: 11px 0;
    gap: 13px;
  }

  .story-names strong {
    font-size: 26px;
  }

  .story-copy blockquote {
    margin-top: 14px;
    font-size: 16px;
  }

  .date-layout {
    width: calc(100vw - 54px);
    min-width: 0;
    max-width: calc(100vw - 54px);
    align-self: center;
    gap: 21px;
  }

  .date-copy .section-title {
    display: none;
  }

  .date-lockup {
    justify-content: center;
  }

  .date-lockup > strong {
    font-size: 76px;
  }

  .date-lockup > div {
    min-height: 58px;
    font-size: 18px;
  }

  .time-line {
    margin-top: 14px;
    justify-content: center;
    font-size: 14px;
  }

  .countdown-panel {
    width: calc(100vw - 54px);
    min-width: 0;
    max-width: calc(100vw - 54px);
    align-self: center;
    overflow: hidden;
    padding: 20px 12px 17px;
  }

  .countdown-panel > p {
    margin-bottom: 17px;
  }

  .countdown strong {
    font-size: 27px;
  }

  .countdown i {
    height: 34px;
  }

  .calendar-strip {
    display: none;
  }

  .place-layout {
    flex-direction: column-reverse;
  }

  .venue-illustration {
    width: min(340px, 94%);
    height: 185px;
    flex: none;
  }

  .place-description {
    margin-bottom: 17px;
    font-size: 14px;
  }

  .map-button {
    min-height: 49px;
  }

  .final-arch {
    height: min(570px, 72vh);
  }

  .final-title {
    font-size: clamp(51px, 15vw, 72px);
  }

  .final-details {
    font-size: 12px;
  }

  .slide-dots {
    top: auto;
    right: 50%;
    bottom: 28px;
    flex-direction: row;
    transform: translateX(50%);
  }

  .slide-controls {
    left: 19px;
    bottom: 16px;
  }

  .slide-controls p {
    display: none;
  }

  .slide-controls button {
    width: 35px;
    height: 35px;
  }
}

@media (max-height: 680px) and (min-width: 681px) {
  .slide {
    padding-top: 72px;
    padding-bottom: 75px;
  }

  .sun-seal {
    width: 58px;
    height: 58px;
    margin-top: 7px;
  }

  .couple-names {
    font-size: clamp(58px, 12vh, 92px);
  }

  .explore-button {
    margin-top: 16px;
  }

  .nubian-window,
  .venue-illustration {
    max-height: 430px;
  }

  .section-title {
    margin-block: 8px 15px;
    font-size: clamp(43px, 9vh, 68px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Light and calm palette refinements */
.texture {
  opacity: .1;
  mix-blend-mode: multiply;
}

.texture::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
}

.aswan-scene {
  filter: saturate(.78) brightness(1.03);
}

body[data-active-slide="1"] .aswan-scene,
body[data-active-slide="2"] .aswan-scene,
body[data-active-slide="3"] .aswan-scene {
  filter: saturate(.68) brightness(.98);
}

body[data-active-slide="4"] .aswan-scene {
  filter: saturate(.62) brightness(.94);
}

.monogram {
  border-color: rgba(67, 88, 87, .34);
  background: rgba(255, 250, 242, .58);
  color: var(--ink);
  box-shadow: 0 8px 28px rgba(85, 112, 108, .08);
}

.monogram i {
  background: rgba(67, 88, 87, .38);
}

.topbar__date {
  color: rgba(67, 88, 87, .7);
}

.slide::before {
  opacity: .07;
}

.sun-seal {
  color: var(--ink);
  background: #e6c485;
  box-shadow: 0 0 0 10px rgba(201, 147, 86, .08), 0 0 70px rgba(201, 147, 86, .16);
}

.sun-seal::before,
.sun-seal::after {
  background: rgba(67, 88, 87, .32);
}

.sun-seal__ring {
  border-color: rgba(67, 88, 87, .32);
}

.kicker,
.invitation-line,
.story-names small,
.story-copy blockquote,
.date-lockup > div span:last-child,
.countdown-panel > p,
.countdown span,
.place-description,
.final-details,
.slide-controls p,
.swipe-hint {
  color: var(--muted);
}

.couple-names {
  text-shadow: 0 8px 35px rgba(94, 119, 115, .12);
}

.couple-names span:first-child {
  color: var(--ink);
}

.couple-names span:last-child,
.story-names strong,
.section-title em,
.final-title em {
  color: var(--sand);
}

.ampersand,
.section-number,
.story-names__mark,
.final-divider,
.final-arch__star {
  color: var(--sun);
}

.ampersand::before,
.ampersand::after {
  background: rgba(201, 147, 86, .48);
}

.explore-button {
  border-color: rgba(67, 88, 87, .36);
  background: rgba(255, 250, 242, .56);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(88, 115, 111, .08);
}

.explore-button:hover {
  border-color: var(--nile);
  background: var(--nile);
  color: #fffdf8;
}

.nubian-window {
  border-color: rgba(255, 250, 242, .92);
  background: linear-gradient(#e8c7bd 0 49%, #eadbc3 49% 58%, #aacbc7 58%);
  box-shadow: 0 28px 70px rgba(86, 111, 107, .16), inset 0 0 0 2px rgba(67, 88, 87, .48);
}

.nubian-window::before {
  border-color: rgba(67, 88, 87, .48);
}

.nubian-window::after {
  color: #b87f74;
}

.nubian-window__sun {
  background: #e8c98c;
  box-shadow: 0 0 40px rgba(201, 147, 86, .2);
}

.nubian-window__river {
  background: #9ec4c1;
}

.felucca__sail {
  background: #fffaf2;
}

.felucca__boat {
  background: #526c6a;
}

.slide--date {
  background: linear-gradient(110deg, rgba(248, 243, 235, .26), rgba(239, 244, 239, .86));
}

.countdown-panel {
  border-color: rgba(105, 137, 132, .26);
  background: rgba(255, 252, 247, .72);
  box-shadow: 0 26px 70px rgba(83, 109, 105, .12);
}

.countdown strong {
  color: var(--ink);
}

.countdown i,
.calendar-strip,
.story-names,
.date-lockup > div,
.final-divider i {
  border-color: var(--line);
}

.countdown i,
.final-divider i,
.slide-controls p i {
  background: var(--line);
}

.calendar-strip span {
  color: #a77768;
}

.calendar-strip b {
  color: rgba(67, 88, 87, .34);
}

.calendar-strip .is-wedding-day {
  color: #fffdf8;
  background: var(--sun);
  box-shadow: 0 0 0 4px rgba(201, 147, 86, .1);
}

.slide--place {
  background: linear-gradient(90deg, rgba(248, 243, 235, .08), rgba(245, 239, 231, .8));
}

.venue-illustration {
  border-color: rgba(105, 137, 132, .28);
  background: linear-gradient(#e6c1b8, #efd7c5 67%, #d5aa9e 67%);
  box-shadow: 0 26px 65px rgba(83, 109, 105, .14);
}

.venue-sun {
  background: #e8c98c;
  box-shadow: 0 0 45px rgba(201, 147, 86, .2);
}

.venue-building,
.venue-building::before,
.venue-building::after {
  background: #f8edda;
}

.venue-building {
  box-shadow: inset 0 -14px 0 #dec4aa;
}

.venue-building i {
  background: #6e8f8b;
}

.venue-building span {
  background: #c58d82;
}

.venue-ground {
  background: #c99489;
}

.map-button {
  color: #fffdf8;
  background: #7faaa4;
  box-shadow: 0 12px 30px rgba(87, 120, 115, .12);
}

.slide--final {
  background: radial-gradient(circle at 50% 42%, rgba(255, 252, 247, .88), rgba(229, 239, 234, .8) 67%);
}

.final-arch {
  border-color: rgba(125, 157, 151, .3);
}

.final-arch::before {
  border-color: rgba(125, 157, 151, .16);
}

.final-arch::after {
  border-color: rgba(169, 111, 99, .2);
}

.final-arch__palm {
  color: rgba(111, 146, 140, .3);
}

.replay-button {
  border-bottom-color: rgba(67, 88, 87, .32);
  color: var(--ink);
}

.slide-progress {
  background: rgba(90, 119, 115, .08);
}

.slide-progress span {
  background: #c99356;
  box-shadow: 0 0 14px rgba(201, 147, 86, .24);
}

.slide-dots button {
  border-color: rgba(67, 88, 87, .48);
}

.slide-dots button.is-active {
  border-color: var(--sun);
  background: var(--sun);
}

.slide-controls button {
  border-color: rgba(67, 88, 87, .24);
  background: rgba(255, 250, 242, .5);
  color: var(--ink);
}

.slide-controls button:hover {
  border-color: var(--nile);
  background: rgba(134, 170, 164, .15);
}

.swipe-hint span {
  border-color: rgba(67, 88, 87, .3);
}

.swipe-hint span::after {
  background: var(--sand);
}

/* Ambient music control */
.music-toggle {
  position: absolute;
  left: 50%;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(67, 88, 87, .26);
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: rgba(255, 250, 242, .62);
  color: var(--ink);
  box-shadow: 0 8px 26px rgba(85, 112, 108, .08);
  backdrop-filter: blur(10px);
  pointer-events: auto;
  cursor: pointer;
  transform: translateX(-50%);
  transition: color .3s ease, background .3s ease, border-color .3s ease, transform .3s ease;
}

.music-toggle:hover {
  border-color: var(--nile);
  background: rgba(255, 252, 247, .9);
  transform: translate(-50%, -2px);
}

.music-toggle:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: translateX(-50%);
}

.music-toggle.is-playing {
  border-color: rgba(127, 170, 164, .52);
  background: rgba(200, 222, 217, .72);
}

.music-toggle > span:last-child {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.music-toggle__bars {
  width: 18px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  direction: ltr;
}

.music-toggle__bars i {
  width: 2px;
  height: 5px;
  border-radius: 2px;
  background: var(--sand);
  transform-origin: center;
  animation: musicWave .8s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.music-toggle__bars i:nth-child(2) {
  height: 11px;
  animation-delay: -.3s;
}

.music-toggle__bars i:nth-child(3) {
  height: 8px;
  animation-delay: -.55s;
}

.music-toggle__bars i:nth-child(4) {
  height: 13px;
  animation-delay: -.18s;
}

.music-toggle.is-playing .music-toggle__bars i {
  animation-play-state: running;
}

@keyframes musicWave {
  from { transform: scaleY(.45); opacity: .58; }
  to { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 430px) {
  .music-toggle {
    min-height: 38px;
    padding-inline: 11px;
    gap: 7px;
  }

  .music-toggle > span:last-child {
    font-size: 9px;
  }
}

@media (max-width: 350px) {
  .music-toggle > span:last-child {
    display: none;
  }

  .music-toggle {
    width: 38px;
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .music-toggle__bars i {
    animation: none !important;
  }
}
