/* ==========================================================================
   emirandleen.com · stylesheet
   Palette: İznik cobalt and turquoise, warm ivory paper, a touch of brass and
   İznik red (the "bole" used for tulips on the tiles). No purple, no gradients
   on black, no tracked-out capitals.
   ========================================================================== */

/* ---------- Fonts (self-hosted, subset) ---------- */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/fraunces-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/fraunces-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 100 900; font-display: swap; src: url('../fonts/fraunces-latin-italic.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 100 900; font-display: swap; src: url('../fonts/fraunces-latin-ext-italic.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../fonts/manrope-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../fonts/manrope-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Amiri'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/amiri-arabic-400.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Amiri'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/amiri-arabic-700.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Noto Naskh Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/noto-naskh-arabic-400.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Noto Naskh Arabic'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/noto-naskh-arabic-600.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

/* ---------- Tokens ---------- */
:root {
  --paper: #F4F1EA;
  --paper-2: #ECE7DB;
  --white: #FCFAF5;
  --ink: #15223D;
  --ink-soft: #46536E;
  --ink-mute: #6F7A90;
  --cobalt: #1B3C8C;
  --cobalt-deep: #132D6B;
  --cobalt-night: #0C1C44;
  --turq: #2BA5A8;
  --turq-deep: #1B7C7F;
  --turq-light: #9EDDE0;
  --turq-pale: #E6F3F2;
  --bole: #C44A3C;
  --bole-deep: #9E3429;
  --brass: #B8933F;
  --brass-light: #E6D39B;
  --line: rgba(27, 60, 140, 0.16);
  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(12, 28, 68, 0.10);
  --shadow-lg: 0 30px 60px rgba(12, 28, 68, 0.22);
  --topbar: 60px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
html[lang='ar'] {
  --font-display: 'Amiri', 'Noto Naskh Arabic', 'Geeza Pro', serif;
  --font-body: 'Noto Naskh Arabic', 'Amiri', 'Geeza Pro', 'Segeo UI', serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.6;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-width: 320px;
}
html[lang='ar'] body { font-size: 1.125rem; line-height: 1.9; font-weight: 400; }
html[lang='ar'] h1, html[lang='ar'] h2, html[lang='ar'] h3, html[lang='ar'] h4, html[lang='ar'] h5 { line-height: 1.4; }
html[lang='ar'] b, html[lang='ar'] strong { font-weight: 600; }
h1, h2, h3, h4, h5 { font-weight: 500; margin: 0; }
p { margin: 0 0 0.6em; }
img, svg, picture { display: block; max-width: 100%; }
a { color: var(--cobalt); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
::selection { background: var(--turq-light); color: var(--cobalt-night); }
:focus-visible { outline: 3px solid var(--turq); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; z-index: 3000; background: #fff; color: var(--cobalt); padding: 12px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { inset-inline-start: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; background: none; line-height: 1.2;
  transition: transform .15s var(--ease), background .2s, box-shadow .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--cobalt); color: #fff; box-shadow: 0 8px 22px rgba(27, 60, 140, 0.28); }
.btn--primary:hover { background: var(--cobalt-deep); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { background: transparent; border-color: rgba(27, 60, 140, 0.35); color: var(--cobalt); }
.btn--ghost:hover { background: rgba(27, 60, 140, 0.06); }
.btn--light { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn--light:hover { background: rgba(255, 255, 255, 0.2); }
.btn--linkl { color: rgba(255, 255, 255, 0.85); text-decoration: underline; padding-inline: 10px; }
.btn--disabled { background: var(--paper-2); color: var(--ink-mute); cursor: default; box-shadow: none; }
.btn--wide { width: 100%; }
.section--cobalt .btn--primary { background: var(--paper); color: var(--cobalt-deep); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25); }
.section--cobalt .btn--primary:hover { background: #fff; }
.section--cobalt .btn--ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.linkbtn { background: none; border: 0; padding: 6px 2px; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }

/* ---------- Ornaments ---------- */
.orn--tulip { width: 26px; height: 34px; margin: 0 auto 10px; color: var(--turq); }
.rule { display: flex; align-items: center; gap: 10px; justify-content: center; color: var(--brass); margin: 14px auto; max-width: 260px; }
.rule span { flex: 1; height: 1px; background: currentColor; opacity: 0.6; }
.corner { position: absolute; width: 34px; height: 34px; color: var(--cobalt); opacity: 0.75; pointer-events: none; }
.corner:nth-of-type(1) { top: 10px; left: 10px; }
.corner:nth-of-type(2) { top: 10px; right: 10px; transform: rotate(90deg); }
.corner:nth-of-type(3) { bottom: 10px; right: 10px; transform: rotate(180deg); }
.corner:nth-of-type(4) { bottom: 10px; left: 10px; transform: rotate(270deg); }

/* ==========================================================================
   Opening moment: the sealed envelope on Tarabya Bay at dusk
   ========================================================================== */
.opening { display: none; }
html.has-opening .opening { display: block; }
html.has-opening body { overflow: hidden; height: 100vh; }
.opening {
  position: fixed; inset: 0; z-index: 1000; overflow: hidden;
  background: var(--cobalt-night); color: var(--paper);
  transition: opacity .55s var(--ease);
}
.opening.is-leaving { opacity: 0; pointer-events: none; }
.opening__sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #081538 0%, #10276A 28%, #1B3C8C 46%, #3B7FA6 57%, #D9B88F 63.5%, #2E6D86 64.5%, #184660 80%, #0E2F45 100%);
}
.opening__glow {
  position: absolute; left: 50%; top: 63%; width: 140vw; max-width: 1100px; height: 40vh;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(255, 214, 160, 0.55), rgba(255, 190, 120, 0.12) 40%, transparent 70%);
  pointer-events: none;
}
.opening__hills {
  position: absolute; left: 0; right: 0; top: 56%; height: 10%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 160' preserveAspectRatio='none'%3E%3Cpath d='M0 160V95c60-10 120-40 200-38s120 30 200 22 140-60 220-55 120 55 200 50 150-70 240-62 150 60 230 48 170-40 310-20V160z' fill='%230F2E4A' opacity='.9'/%3E%3Cpath d='M0 160v-30c90-18 180-30 280-22s170 45 260 40 170-50 260-42 180 48 270 42 170-45 290-38 160 30 240 22V160z' fill='%230A2338'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}
.opening__water { position: absolute; left: 0; right: 0; top: 64%; bottom: 0; overflow: hidden; }
.opening__shimmer {
  position: absolute; top: 0; bottom: 0; left: -50%; width: 200%;
  background:
    radial-gradient(ellipse 70px 1.6px at 50% 50%, rgba(255, 226, 170, 0.32), transparent 70%) 0 0 / 230px 34px,
    radial-gradient(ellipse 40px 1.2px at 50% 50%, rgba(255, 236, 200, 0.22), transparent 70%) 95px 15px / 170px 46px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.35) 45%, transparent 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.35) 45%, transparent 100%);
  animation: shimmer 14s linear infinite;
  will-change: transform;
}
@keyframes shimmer { from { transform: translateX(0); } to { transform: translateX(-12%); } }
[dir='rtl'] .opening__shimmer { animation-direction: reverse; }

.opening__top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) 16px 0;
}
.opening__skip {
  background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px; min-height: 44px; padding: 8px 18px; font-weight: 700; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.opening__skip:hover { background: rgba(255, 255, 255, 0.22); }
.opening__scene {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 20px 40px;
}
.opening__hint { pointer-events: none; margin: 44px 0 0; font-weight: 600; color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4); transition: opacity .3s; animation: hintPulse 2.4s ease-in-out infinite; }
@keyframes hintPulse { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
.envelope.is-open ~ .opening__hint { opacity: 0; animation: none; }

/* The envelope itself */
.envelope {
  position: relative; width: min(86vw, 420px); aspect-ratio: 1.45 / 1; perspective: 1400px;
  margin-top: 10vh; /* leaves room above for the card to rise */
  animation: envFloat 5s ease-in-out infinite;
}
@keyframes envFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.envelope.is-open { animation: none; }
.envelope__back {
  position: absolute; inset: 0; z-index: 1; border-radius: 8px;
  background: #EEE8DB; box-shadow: 0 40px 70px rgba(0, 0, 0, 0.45), 0 2px 0 rgba(255, 255, 255, 0.35) inset;
}
.envelope__liner {
  position: absolute; inset: 0; z-index: 2; border-radius: 8px 8px 0 0;
  clip-path: polygon(0 0, 100% 0, 50% 62%);
  background: var(--turq-pale) url('../img/ebru.webp') center / cover;
}
.envelope__pocket {
  position: absolute; inset: 0; z-index: 4; border-radius: 8px;
  background: linear-gradient(180deg, #F6F2E9 0%, #EBE5D8 100%);
  clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%);
  box-shadow: 0 -2px 0 rgba(0, 0, 0, 0.06) inset;
}
.envelope__pocket::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 49.5%, rgba(0, 0, 0, 0.06) 50%, transparent 50.5%), linear-gradient(-115deg, transparent 49.5%, rgba(0, 0, 0, 0.06) 50%, transparent 50.5%);
}
.envelope__flap {
  position: absolute; left: 0; top: 0; width: 100%; height: 60%; z-index: 6;
  transform-origin: 50% 0; transform-style: preserve-3d;
  transition: transform .85s cubic-bezier(0.65, 0, 0.3, 1) .18s, z-index 0s .62s;
}
.envelope__flap-front, .envelope__flap-back {
  position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 50% 100%);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.envelope__flap-front { background: linear-gradient(180deg, #F8F4EC 0%, #ECE6D9 100%); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); }
.envelope__flap-back { background: var(--turq-pale) url('../img/ebru.webp') center / cover; transform: rotateX(180deg); }
.envelope.is-open .envelope__flap { transform: rotateX(-180deg); z-index: 1; }

.seal {
  position: absolute; left: 50%; top: 58%; z-index: 7; width: 84px; height: 84px; padding: 6px;
  transform: translate(-50%, -50%); border: 0; background: none; cursor: pointer; border-radius: 50%;
  transition: transform .35s var(--ease), opacity .3s;
  -webkit-tap-highlight-color: transparent;
}
.seal__wax {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%;
  background: radial-gradient(circle at 35% 30%, #DC6B5C 0%, var(--bole) 45%, var(--bole-deep) 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 -3px 6px rgba(0, 0, 0, 0.25) inset;
  color: #F8E6D6; transition: transform .25s var(--ease);
}
.seal:hover .seal__wax, .seal:focus-visible .seal__wax { transform: scale(1.06); }
.seal__mono { font-family: 'Fraunces', Georgia, serif; font-size: 1.5rem; font-weight: 500; letter-spacing: 0; display: inline-flex; align-items: baseline; gap: 2px; }
.seal__mono i { font-style: italic; font-size: 0.8em; opacity: 0.85; }
.envelope.is-open .seal { transform: translate(-50%, -50%) scale(0); opacity: 0; pointer-events: none; }

/* The card inside */
.card {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  width: 100%;
  transform: translate(-50%, -50%) scale(0.5);
  background: #FBF8F1; color: var(--ink); border-radius: 6px; padding: 5px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}
.card__inner {
  position: relative; border: 1px solid rgba(27, 60, 140, 0.4); border-radius: 3px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 26px 18px; gap: 4px;
}
.card .corner { width: 26px; height: 26px; }
.card .corner:nth-of-type(1) { top: 6px; left: 6px; }
.card .corner:nth-of-type(2) { top: 6px; right: 6px; }
.card .corner:nth-of-type(3) { bottom: 6px; right: 6px; }
.card .corner:nth-of-type(4) { bottom: 6px; left: 6px; }
.card__orn .orn--tulip { width: 22px; height: 28px; margin-bottom: 6px; }
.card__families { font-family: var(--font-display); font-size: 1rem; color: var(--cobalt); margin: 0; font-weight: 500; }
.card__invite { font-size: 0.95rem; color: var(--ink-soft); margin: 0 0 4px; max-width: 26ch; }
.card__names { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 9vw, 2.6rem); line-height: 1.05; color: var(--cobalt-deep); margin: 2px 0 6px; display: flex; flex-direction: column; align-items: center; }
html[lang='ar'] .card__names { line-height: 1.35; }
.card__amp { font-size: 0.5em; color: var(--brass); font-style: italic; line-height: 1.2; }
html[lang='ar'] .card__amp { font-style: normal; }
.card__date { font-family: var(--font-display); font-size: 1.05rem; margin: 0; color: var(--ink); }
.card__place { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }
.card__enter { margin-top: 14px; opacity: 0; transform: translateY(8px); pointer-events: none; }
.envelope.is-open .card { animation: cardRise 1.6s cubic-bezier(0.5, 0, 0.15, 1) 0.55s forwards; }
.envelope.is-open .card__enter { animation: fadeUp .5s var(--ease-out) 2.05s forwards; pointer-events: auto; }
.envelope.is-open .envelope__back, .envelope.is-open .envelope__pocket, .envelope.is-open .envelope__liner, .envelope.is-open .envelope__flap { animation: envAway .8s var(--ease) 1.15s forwards; }
@keyframes cardRise {
  0% { transform: translate(-50%, -50%) scale(0.5); z-index: 3; }
  45% { transform: translate(-50%, -92%) scale(0.62); z-index: 3; }
  52% { z-index: 8; }
  100% { transform: translate(-50%, -50%) scale(1); z-index: 8; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45); }
}
@keyframes envAway { to { opacity: 0; transform: translateY(90px); } }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* Static version for people who prefer less motion, and for the "skip" state. */
@media (prefers-reduced-motion: reduce) {
  .envelope, .opening__shimmer, .opening__hint { animation: none !important; }
  .envelope.is-open .card { animation: none; transform: translate(-50%, -50%) scale(1); z-index: 8; }
  .envelope.is-open .card__enter { animation: none; opacity: 1; transform: none; pointer-events: auto; }
  .envelope.is-open .envelope__back, .envelope.is-open .envelope__pocket, .envelope.is-open .envelope__liner, .envelope.is-open .envelope__flap { animation: none; opacity: 0; }
  .envelope.is-open .envelope__flap { transition: none; }
  .opening { transition: none; }
}
@media (max-height: 640px) {
  .envelope { width: min(80vw, 340px); }
  .card__inner { padding: 16px 14px; }
  .card__names { font-size: 1.9rem; }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500; height: var(--topbar);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 16px; padding-top: env(safe-area-inset-top);
  background: rgba(244, 241, 234, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27, 60, 140, 0.08);
  transition: transform .35s var(--ease), box-shadow .3s;
}
.topbar.is-hidden { transform: translateY(-110%); }
.topbar.is-scrolled { box-shadow: 0 6px 20px rgba(12, 28, 68, 0.06); }
.topbar__mono { font-family: 'Fraunces', Georgia, serif; direction: ltr; font-size: 1.5rem; color: var(--cobalt-deep); text-decoration: none; display: inline-flex; gap: 3px; min-height: 44px; align-items: center; }
.topbar__mono span { color: var(--brass); font-style: italic; font-size: 0.8em; }
.topbar__nav { display: none; gap: 2px; }
.topbar__nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; transition: color .2s, background .2s; }
.topbar__nav a:hover { color: var(--cobalt); }
.topbar__nav a.is-active { color: var(--cobalt); background: rgba(27, 60, 140, 0.08); }
@media (min-width: 960px) { .topbar__nav { display: flex; } }

.langpills { display: inline-flex; gap: 2px; background: rgba(27, 60, 140, 0.08); border-radius: 999px; padding: 3px; }
.langpills a { padding: 6px 12px; min-height: 38px; border-radius: 999px; display: inline-flex; align-items: center; font-weight: 700; font-size: 0.95rem; color: var(--cobalt); text-decoration: none; transition: background .2s, color .2s; }
.langpills a[aria-current] { background: var(--cobalt); color: #fff; }
.opening .langpills { background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.opening .langpills a { color: #fff; }
.opening .langpills a[aria-current] { background: var(--paper); color: var(--cobalt); }
.langpills--footer { background: rgba(255, 255, 255, 0.1); margin: 22px auto 10px; }
.langpills--footer a { color: #fff; }
.langpills--footer a[aria-current] { background: var(--paper); color: var(--cobalt-deep); }

.dock {
  position: fixed; bottom: calc(12px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 500;
  display: flex; gap: 2px; padding: 5px; border-radius: 999px;
  background: rgba(252, 250, 245, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(12, 28, 68, 0.22), 0 0 0 1px rgba(27, 60, 140, 0.1);
  transition: transform .35s var(--ease), opacity .3s;
}
.dock.is-hidden { transform: translate(-50%, 140%); opacity: 0; }
.dock a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 60px; min-height: 52px; padding: 6px 8px; border-radius: 999px;
  color: var(--ink-mute); text-decoration: none; font-size: 0.75rem; font-weight: 700; line-height: 1.1;
  transition: color .2s, background .2s;
}
.dock a svg { width: 22px; height: 22px; }
.dock a.is-active { color: var(--cobalt); background: rgba(27, 60, 140, 0.1); }
.dock a[data-nav='rsvp'] { color: #fff; background: var(--cobalt); }
.dock a[data-nav='rsvp'].is-active { background: var(--cobalt-deep); }
@media (min-width: 960px) { .dock { display: none; } }
@media (max-width: 359px) { .dock a { min-width: 52px; font-size: 0.7rem; } }

/* ==========================================================================
   Layout
   ========================================================================== */
.main { padding-top: var(--topbar); }
.section { padding: 72px 20px; position: relative; }
@media (min-width: 760px) { .section { padding: 96px 32px; } }
.section--cobalt { background: var(--cobalt-deep); color: var(--paper); }
.section--cobalt::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 10% 0%, rgba(43, 165, 168, 0.22), transparent 70%), radial-gradient(ellipse 50% 40% at 95% 100%, rgba(255, 255, 255, 0.06), transparent 70%);
}
.section--cobalt > * { position: relative; }
.section--pale { background: var(--turq-pale); }
.wrap { max-width: 1080px; margin: 0 auto; }
.wrap--narrow { max-width: 760px; }
.section__head { text-align: center; margin-bottom: 36px; }
.section__head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.1; margin: 0.1em 0 0.35em; color: var(--cobalt-deep); }
.section--cobalt .section__head h2 { color: var(--paper); }
.section--cobalt .orn--tulip { color: var(--turq-light); }
.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 60ch; margin: 0 auto; }
.lead--left { margin: 0 0 18px; }
.section--cobalt .lead { color: rgba(244, 241, 234, 0.82); }
.eyebrow { font-weight: 700; color: var(--turq-deep); margin: 0 0 6px; font-size: 0.95rem; }
.subhead { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; margin: 48px 0 8px; color: var(--cobalt-deep); }
.note { color: var(--ink-soft); font-size: 1rem; margin-top: 22px; text-align: center; }
.note--draft { color: var(--bole-deep); background: rgba(196, 74, 60, 0.08); border-radius: 10px; padding: 8px 14px; display: table; margin: 28px auto 0; }
.small { font-size: 0.95rem; color: var(--ink-soft); }
.tag { display: inline-flex; align-items: center; font-size: 0.8rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--turq-pale); color: var(--turq-deep); white-space: nowrap; }
.tag--rec { background: var(--turq); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: calc(100svh - var(--topbar)); display: flex; flex-direction: column; align-items: center;
  text-align: center; overflow: hidden; padding: 28px 20px 0;
}
.hero__paper {
  position: absolute; inset: -10% 0 0; pointer-events: none; opacity: 0.055;
  background: url('../img/ebru.webp') center top / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 5%, transparent 48%);
  mask-image: linear-gradient(180deg, #000 5%, transparent 48%);
  will-change: transform;
}
.hero__frame { position: relative; width: 100%; max-width: 720px; padding: 40px 22px 30px; margin: auto 0; }
.hero__eyebrow { color: var(--cobalt); font-weight: 700; margin: 0; }
.hero__names {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(3.4rem, 13vw, 6.6rem); line-height: 0.98;
  margin: 0.18em 0 0.12em; color: var(--cobalt-deep); display: flex; flex-direction: column; align-items: center;
}
html[lang='ar'] .hero__names { font-weight: 400; line-height: 1.25; }
.hero__name { display: inline-block; }
.hero__amp { font-size: 0.42em; color: var(--brass); font-style: italic; line-height: 1; margin: 0.12em 0; }
html[lang='ar'] .hero__amp { font-style: normal; }
.hero__intro { font-size: 1.1rem; color: var(--ink-soft); margin: 0; }
.hero__date { font-family: var(--font-display); font-size: clamp(1.45rem, 4.6vw, 1.95rem); color: var(--ink); margin: 0 0 0.1em; }
.hero__place { color: var(--ink-soft); margin: 0; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.countdown { display: flex; gap: 22px; justify-content: center; margin: 30px auto 0; }
.countdown__unit { min-width: 64px; }
.countdown__unit b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 2.1rem; line-height: 1; color: var(--cobalt); font-variant-numeric: tabular-nums; }
.countdown__unit span { display: block; font-size: 0.9rem; color: var(--ink-mute); margin-top: 4px; }
.countdown__msg { font-family: var(--font-display); font-size: 1.3rem; color: var(--cobalt); margin: 0; }
.hero__art { position: relative; width: 100%; max-width: 1400px; margin-top: 28px; aspect-ratio: 16 / 6.5; min-height: 180px; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; border-radius: var(--radius) var(--radius) 0 0; }
.hero__art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--paper) 0%, transparent 18%); border-radius: var(--radius) var(--radius) 0 0; }
.scrollcue { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); width: 44px; height: 44px; display: grid; place-items: center; color: #fff; opacity: 0.8; border-radius: 50%; background: rgba(0, 0, 0, 0.2); animation: cue 2.2s ease-in-out infinite; }
.scrollcue svg { width: 22px; height: 22px; }
@keyframes cue { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 5px); } }
@media (min-width: 760px) { .hero__frame { padding: 56px 40px 40px; } }

/* Names reveal (once, after the envelope) */
.js .hero__name { clip-path: inset(0 100% 0 0); }
[dir='rtl'].js .hero__name { clip-path: inset(0 0 0 100%); }
.js .hero.is-revealed .hero__name { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease-out); }
.js .hero.is-revealed .hero__name:nth-of-type(2) { transition-delay: 0.25s; }
.js .hero__amp { opacity: 0; }
.js .hero.is-revealed .hero__amp { opacity: 1; transition: opacity .6s ease .6s; }

/* ---------- Celebration ---------- */
.facts { display: grid; gap: 18px; }
@media (min-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }
.fact { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius); padding: 26px 24px; }
.fact__label { color: var(--turq-light); font-weight: 700; margin: 0 0 6px; }
.fact__big { font-family: var(--font-display); font-size: 1.65rem; line-height: 1.2; margin: 0 0 8px; }
.fact__line { margin: 0 0 6px; color: rgba(244, 241, 234, 0.92); }
.fact__note { color: rgba(244, 241, 234, 0.7); font-size: 0.95rem; margin: 0 0 16px; }
.fact__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.fact .btn svg { width: 18px; height: 18px; }
.venue { margin: 26px 0 0; }
.venue img { width: 100%; height: auto; border-radius: var(--radius); }
.venue figcaption { margin-top: 12px; color: rgba(244, 241, 234, 0.8); font-size: 1rem; }
.venue figcaption a { color: #fff; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 0; padding-inline-start: 30px; position: relative; }
.timeline::before { content: ''; position: absolute; inset-inline-start: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--turq-light); transform-origin: top; }
.js .timeline::before { transform: scaleY(0); transition: transform 1.2s var(--ease-out); }
.js .timeline.is-in::before { transform: scaleY(1); }
.timeline__item { position: relative; padding-bottom: 30px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot { position: absolute; inset-inline-start: -30px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--turq); box-shadow: 0 0 0 4px var(--paper); }
.js .timeline__dot { transform: scale(0); transition: transform .4s var(--ease-out); }
.js .timeline.is-in .timeline__dot { transform: scale(1); }
.timeline__time { font-weight: 800; color: var(--cobalt); margin: 0; font-size: 0.95rem; }
.timeline h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; margin: 0.1em 0 0.25em; }
.timeline p { color: var(--ink-soft); margin: 0; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 18px; }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.cards + .cards { margin-top: 18px; }
.cardx { background: #fff; border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.cardx h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; margin: 0 0 0.4em; color: var(--cobalt-deep); }
.cardx p { color: var(--ink-soft); margin: 0; }
.cardx--plain { background: var(--white); box-shadow: none; border: 1px solid var(--line); }
.dress__code { font-family: var(--font-display); font-size: clamp(2rem, 7vw, 2.8rem); color: var(--cobalt); margin: 0 0 0.3em; font-weight: 500; }

/* ---------- Stay ---------- */
.mainhotel { display: grid; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
@media (min-width: 860px) { .mainhotel { grid-template-columns: 3fr 2fr; } }
.mainhotel__body { padding: 30px 26px; }
.mainhotel__body h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.8rem; margin: 0 0 0.3em; color: var(--cobalt-deep); }
.mainhotel__body > p { color: var(--ink-soft); }
.mainhotel__art { min-height: 200px; background: var(--turq-pale) url('../img/ebru.webp') center / cover; position: relative; order: -1; }
@media (min-width: 860px) { .mainhotel__art { order: 0; } }
.mainhotel__art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19, 45, 107, 0.0), rgba(19, 45, 107, 0.25)); }
.mainhotel__actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 10px; }
.code { display: inline-flex; align-items: center; gap: 12px; border: 1.5px dashed var(--cobalt); border-radius: 12px; padding: 8px 8px 8px 14px; margin: 10px 0; max-width: 100%; }
.code__label { font-weight: 700; color: var(--cobalt); }
.code__value { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.05rem; background: var(--turq-pale); border: 0; border-radius: 8px; padding: 8px 12px; min-height: 40px; cursor: pointer; color: var(--ink); }
.code__value--tbd { font-family: inherit; color: var(--ink-mute); cursor: default; }
.hotelgroup { margin-top: 26px; }
.hotelgroup h4 { font-weight: 800; color: var(--cobalt); font-size: 1rem; margin: 0 0 12px; }
.hotels { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.hotel { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 14px; display: flex; flex-direction: column; }
.hotel__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.hotel h5 { font-size: 1.1rem; font-weight: 700; margin: 0; }
.hotel p { color: var(--ink-soft); margin: 0 0 10px; font-size: 1rem; }
.hotel__meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; font-size: 0.95rem; color: var(--ink-mute); }
.hotel__meta a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; min-height: 44px; }
.hotel__meta a svg { width: 16px; height: 16px; }

/* ---------- Travel ---------- */
.airport { position: relative; }
.airport > svg { width: 28px; height: 28px; color: var(--turq); margin-bottom: 8px; }
.airport--rec { outline: 2px solid var(--turq); outline-offset: 0; }
.airport__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.airport__head h3 { margin: 0; }
.airport__head small { font-weight: 700; color: var(--ink-mute); font-size: 0.8em; font-family: var(--font-body); }

/* ---------- Explore ---------- */
.scroller { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 20px 26px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.scroller::after { content: ''; flex: 0 0 4px; }
.place { flex: 0 0 min(78vw, 320px); scroll-snap-align: start; background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); position: relative; }
.place__num { position: absolute; top: 16px; inset-inline-end: 18px; font-family: var(--font-display); font-size: 1.6rem; color: var(--turq-light); }
.place h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; margin: 0 2.2em 0.1em 0; color: var(--cobalt-deep); }
[dir='rtl'] .place h3 { margin: 0 0 0.1em 2.2em; }
.place__area { color: var(--turq-deep); font-weight: 700; font-size: 0.95rem; margin: 0 0 8px; }
.place p { color: var(--ink-soft); margin: 0; }
@media (min-width: 1100px) { .scroller { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1120px; margin: 0 auto; overflow: visible; padding-bottom: 0; } .scroller::after { display: none; } .place { flex: none; } }

/* ---------- RSVP ---------- */
.rsvp__card { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 26px 20px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35); }
.rsvp__card .btn--primary { background: var(--cobalt); color: #fff; box-shadow: 0 8px 22px rgba(27, 60, 140, 0.28); }
.rsvp__card .btn--primary:hover { background: var(--cobalt-deep); }
.rsvp__card .btn--ghost { color: var(--cobalt); border-color: rgba(27, 60, 140, 0.35); }
.rsvp__card .lead { color: var(--ink-soft); }
@media (min-width: 600px) { .rsvp__card { padding: 34px 32px; } }
.fields { display: grid; gap: 14px; }
@media (min-width: 560px) { .fields { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: inherit; padding: 12px 14px; min-height: 50px; border: 1.5px solid rgba(27, 60, 140, 0.3); border-radius: 12px; background: #fff; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(27, 60, 140, 0.15); }
.field textarea { min-height: 110px; resize: vertical; }
.hint { color: var(--ink-mute); font-size: 0.95rem; margin: 10px 0 14px; }
.form-error { color: var(--bole-deep); background: rgba(196, 74, 60, 0.1); border-radius: 10px; padding: 10px 14px; font-weight: 600; margin: 0 0 14px; }
.rsvp-lookup .btn { margin-top: 4px; }
.rsvp-closed { text-align: center; }
.rsvp-closed h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; margin: 0 0 0.4em; }
.rsvp-closed p { color: var(--ink-soft); max-width: 48ch; margin: 0 auto 18px; }
.rsvp__title { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; margin: 0 0 0.3em; color: var(--cobalt-deep); }
.rsvp__sub { color: var(--ink-soft); margin: 0 0 16px; }
.rsvp__party { font-family: var(--font-display); font-size: 1.9rem; margin: 0 0 12px; color: var(--cobalt-deep); line-height: 1.15; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--turq-pale); color: var(--cobalt-deep); font-weight: 700; }
.chip small { font-weight: 600; color: var(--turq-deep); font-size: 0.8em; }
.chip.is-matched { box-shadow: 0 0 0 2px var(--turq); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.actions .btn { flex: 1 1 auto; }
.who { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.who label { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 50px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-weight: 600; }
.who input { width: 22px; height: 22px; accent-color: var(--cobalt); flex: none; margin: 0; }
.who small { color: var(--ink-mute); font-weight: 500; }
.gblock { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-top: 12px; background: #fff; }
.gblock__name { font-weight: 800; font-size: 1.1rem; margin: 0 0 10px; }
.gblock__name small { color: var(--ink-mute); font-weight: 600; font-size: 0.85em; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg label { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 50px; padding: 8px 10px; border: 1.5px solid rgba(27, 60, 140, 0.25); border-radius: 12px; cursor: pointer; font-weight: 700; color: var(--ink-soft); background: var(--paper); transition: background .15s, color .15s, border-color .15s; }
.seg input:focus-visible + label { outline: 3px solid var(--turq); outline-offset: 2px; }
.seg input:checked + label { background: var(--cobalt); color: #fff; border-color: var(--cobalt); }
.seg input[value='no']:checked + label, .seg input[value='false']:checked + label { background: var(--ink-soft); border-color: var(--ink-soft); }
.gblock .field { margin-top: 12px; }
.gblock .field label { font-weight: 600; font-size: 1rem; }
.gblock .hint { margin: 4px 0 0; font-size: 0.9rem; }
.subq { margin-top: 12px; }
.subq > p { font-weight: 600; margin: 0 0 8px; }
.contactbox { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.contactbox h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; margin: 0 0 4px; }
.contactbox .fields { margin-top: 12px; }
.prev { background: var(--turq-pale); color: var(--turq-deep); border-radius: 10px; padding: 10px 14px; font-weight: 600; margin: 0 0 16px; font-size: 0.98rem; }
.done { text-align: center; }
.done .orn--tulip { width: 34px; height: 44px; }
.done h3 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; margin: 0 0 0.3em; color: var(--cobalt-deep); }
.done > p { color: var(--ink-soft); max-width: 44ch; margin: 0 auto 18px; }
.summary { list-style: none; padding: 0; margin: 0 auto 22px; max-width: 420px; text-align: start; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.summary li { display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
.summary li:first-child { border-top: 0; }
.summary b { font-weight: 700; }
.summary .yes { color: var(--turq-deep); font-weight: 800; }
.summary .no { color: var(--ink-mute); font-weight: 800; }
.done .actions { justify-content: center; }
.done .actions .btn { flex: 0 1 auto; }
.js .rsvp__card { transition: opacity .3s; }
.rsvp__card.is-busy { opacity: 0.6; pointer-events: none; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 4px; font-weight: 700; font-size: 1.05rem; cursor: pointer; list-style: none; min-height: 52px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { width: 22px; height: 22px; flex: none; color: var(--turq-deep); transition: transform .25s var(--ease); }
.faq__item[open] summary svg { transform: rotate(180deg); }
.faq__a { padding: 0 4px 18px; color: var(--ink-soft); }
.faq__a p { margin: 0; }

/* ---------- Memories ---------- */
.memories__teaser { position: relative; height: 200px; max-width: 520px; margin: 0 auto; display: grid; place-items: center; }
.memories__mono { font-family: var(--font-display); font-size: 3rem; color: var(--cobalt); opacity: 0.6; }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; aspect-ratio: 3 / 2; }

/* ---------- Footer ---------- */
.footer { background: var(--cobalt-night); color: var(--paper); text-align: center; padding: 64px 20px calc(110px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { .footer { padding-bottom: 64px; } }
.footer .orn--tulip { color: var(--turq-light); }
.footer__closing { font-family: var(--font-display); font-size: clamp(1.4rem, 4.5vw, 1.9rem); line-height: 1.3; max-width: 30ch; margin: 0 auto 10px; }
.footer__names { font-family: var(--font-display); font-size: 1.3rem; color: var(--brass-light); margin: 0; }
.footer__date { color: rgba(244, 241, 234, 0.75); margin: 2px 0 22px; }
.footer__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.footer .btn--primary { background: var(--paper); color: var(--cobalt-deep); }
.footer .btn--ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.footer .btn--disabled { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.6); }
.footer__small { color: rgba(244, 241, 234, 0.6); font-size: 0.95rem; margin: 6px 0 0; }
.footer__small .linkbtn { color: rgba(244, 241, 234, 0.8); }

/* ---------- Scroll reveals (a few considered moments, not every element) ---------- */
.js .section__head { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .section__head.is-in { opacity: 1; transform: none; }
.js .section__head .orn--tulip { transform: scale(0.4) rotate(-20deg); transition: transform .8s var(--ease-out) .15s; }
.js .section__head.is-in .orn--tulip { transform: none; }
.js .mainhotel, .js .rsvp__card, .js .venue { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .mainhotel.is-in, .js .rsvp__card.is-in, .js .venue.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .section__head, .js .mainhotel, .js .rsvp__card, .js .venue, .js .timeline__dot, .js .hero__amp { opacity: 1; transform: none; transition: none; }
  .js .section__head .orn--tulip { transform: none; }
  .js .timeline::before { transform: none; }
  .js .hero__name { clip-path: none; transition: none; }
  .scrollcue, .envelope { animation: none; }
}

/* Toast for "copied" */
.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 900; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 960px) { .toast { bottom: 28px; } }

/* RTL details */
[dir='rtl'] .icon-arrow { transform: scaleX(-1); }
[dir='rtl'] .corner:nth-of-type(1) { left: auto; right: 10px; transform: rotate(90deg); }
[dir='rtl'] .corner:nth-of-type(2) { right: auto; left: 10px; transform: rotate(0deg); }
[dir='rtl'] .corner:nth-of-type(3) { right: auto; left: 10px; transform: rotate(270deg); }
[dir='rtl'] .corner:nth-of-type(4) { left: auto; right: 10px; transform: rotate(180deg); }
