/* ==========================================================================
   Homaay — public site stylesheet (hand-written, no build step)
   --------------------------------------------------------------------------
   1. Tokens            6. Header & mobile menu     11. Pages: venues / vendor
   2. Reset & base      7. Footer                   12. Pages: forms / gallery
   3. Typography        8. Components               13. Invitations (5 families)
   4. Layout            9. Motion primitives        14. Errors / misc
   5. Buttons & forms  10. Home page                15. Reduced motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --teal: #0E2A2E;
  --teal-2: #143439;
  --teal-3: #1E4248;
  --teal-line: #2A4A4F;
  --gold: #C9A96E;
  --gold-soft: #DCC293;
  --gold-hi: #F3E2BC;
  --gold-ink: #7A5D28;          /* gold text on light grounds (5.4:1 on ivory) */
  --ivory: #F7F1E6;
  --paper: #FFFDF8;
  --sand: #EFE7D9;
  --line: #E4DACA;
  --line-strong: #D9CDB8;
  --wine: #6B1E2E;
  --wine-2: #561724;
  --blush: #E8C9C1;
  --blush-2: #F6E6E1;
  --olive: #5B6B3A;
  --ink: #1C1B1A;
  --muted: #5E5A52;             /* 6.1:1 on ivory */
  --on-dark: #F7F1E6;
  --on-dark-muted: #C9C2B4;     /* 8.5:1 on teal */
  --on-dark-soft: #A9B8B9;      /* 7.3:1 on teal */
  --success: #2F6B4F;
  --danger: #8E1B2C;

  --f-ui: "Vazirmatn", Tahoma, "Segoe UI", "Noto Sans Arabic", sans-serif;
  --f-nastaliq: "Noto Nastaliq Urdu", "Vazirmatn", "Iranian Sans", serif;
  --f-latin: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --header-h: 80px;

  --r-xs: 8px;
  --r-s: 12px;
  --r-m: 20px;
  --r-l: 28px;
  --r-xl: 36px;
  --r-pill: 999px;

  --shadow-s: 0 1px 2px rgba(28, 27, 26, .06), 0 4px 14px rgba(28, 27, 26, .05);
  --shadow-m: 0 2px 6px rgba(28, 27, 26, .06), 0 18px 40px -12px rgba(14, 42, 46, .22);
  --shadow-l: 0 30px 80px -20px rgba(14, 42, 46, .45);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --focus: var(--gold-ink);
}

/* 2. Reset & base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.9;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: .3em; }
a:hover { color: var(--wine); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.on-dark, .site-header, .site-footer, .menu-panel { --focus: var(--gold); }
::selection { background: var(--gold); color: var(--teal); }
[hidden] { display: none !important; }
hr { border: 0; height: 1px; background: var(--line); margin: 32px 0; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; inset-inline-start: 16px; top: 12px; z-index: 200;
  background: var(--gold); color: var(--teal); padding: 10px 18px; border-radius: var(--r-pill);
  font-weight: 700; text-decoration: none; transform: translateY(-160%); transition: transform .25s var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* 3. Typography ------------------------------------------------------------ */
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.5; letter-spacing: 0; }
p { margin: 0; }
.nastaliq { font-family: var(--f-nastaliq); font-weight: 700; line-height: 2.05; letter-spacing: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-latin); font-style: italic; font-weight: 500;
  font-size: clamp(17px, 1.6vw, 20px); color: var(--gold-ink); line-height: 1.4; letter-spacing: .02em;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--center::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.on-dark .eyebrow { color: var(--gold); }
.kicker { font-size: 13px; letter-spacing: .2em; color: var(--gold); font-weight: 500; }
.h-display { font-family: var(--f-nastaliq); font-weight: 700; font-size: clamp(36px, 5.4vw, 66px); line-height: 2; }
.h-section { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.55; font-weight: 700; }
.h-section--nastaliq { font-family: var(--f-nastaliq); font-size: clamp(28px, 3.6vw, 44px); line-height: 2.1; }
.h-card { font-size: 19px; font-weight: 700; line-height: 1.6; }
.lead { font-size: clamp(16px, 1.4vw, 18px); line-height: 2.05; color: var(--muted); max-width: 60ch; }
.on-dark .lead { color: var(--on-dark-muted); }
.muted { color: var(--muted); }
.on-dark .muted { color: var(--on-dark-soft); }
.latin { font-family: var(--f-latin); font-style: italic; direction: ltr; unicode-bidi: isolate; }
.num { font-feature-settings: "tnum"; }

/* Gold shimmer sweep (text). Padding keeps tall Nastaliq glyphs inside the painted box. */
.shimmer {
  background: linear-gradient(105deg, var(--gold) 0%, var(--gold) 38%, var(--gold-hi) 48%, #FFF7E4 50%, var(--gold-hi) 52%, var(--gold) 62%, var(--gold) 100%);
  background-size: 260% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
  padding: .35em .12em; margin: -.35em -.12em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  animation: shimmer 7s var(--ease-in-out) 1.6s infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 38%, 100% { background-position: -60% 0; } }

/* 4. Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 880px; }
.container--wide { max-width: 1440px; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 7vw, 80px); }
.section--dark { background: var(--teal); color: var(--on-dark); }
.section--sand { background: var(--sand); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head__text { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.section-head--center { justify-content: center; text-align: center; }
.section-head--center .section-head__text { align-items: center; }
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--lg { gap: 28px; }
.cluster { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
main { display: block; }
body:not(.has-hero) main { padding-top: var(--header-h); }

/* 5. Buttons & forms ------------------------------------------------------- */
.btn {
  --btn-bg: var(--teal); --btn-fg: var(--on-dark); --btn-bd: transparent;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  font-weight: 700; font-size: 15px; line-height: 1.4; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, color .25s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 247, 228, .38) 50%, transparent 70%);
  transform: translateX(110%); transition: transform .8s var(--ease-expo);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(14, 42, 46, .5); }
.btn:hover::after { transform: translateX(-110%); }
.btn:active { transform: translateY(0); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--teal); }
.btn--wine { --btn-bg: var(--wine); --btn-fg: var(--ivory); }
.btn--ivory { --btn-bg: var(--ivory); --btn-fg: var(--teal); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--teal); --btn-bd: var(--teal); }
.btn--outline:hover { --btn-bg: var(--teal); --btn-fg: var(--ivory); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--on-dark); --btn-bd: rgba(247, 241, 230, .45); }
.btn--ghost:hover { --btn-bd: var(--gold); --btn-fg: var(--gold); }
.btn--sm { min-height: 42px; padding: 9px 18px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 14px 34px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .7; pointer-events: none; }
.btn.is-busy::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--wine); text-decoration: none; }
.link-arrow svg { transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(-5px); }
.on-dark .link-arrow { color: var(--gold); }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field__label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field__label small { font-weight: 400; color: var(--muted); }
.field__hint { font-size: 13px; color: var(--muted); line-height: 1.8; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r-s);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  appearance: none; -webkit-appearance: none;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.9; }
.select {
  padding-inline-end: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237A5D28' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 18px center;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--gold); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible {
  outline: none; border-color: var(--gold-ink); box-shadow: 0 0 0 4px rgba(201, 169, 110, .28); background: #fff;
}
.input::placeholder, .textarea::placeholder { color: #8C867B; }
.input[type="number"] { -moz-appearance: textfield; }
.input[dir="ltr"] { text-align: right; }
.field--error .input, .field--error .select, .field--error .textarea { border-color: var(--danger); background: #FFF8F6; }
.field__error { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: var(--danger); line-height: 1.8; }
.field__error::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .75em; border-radius: 50%; background: currentColor; }
.form-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; font-size: 14px; font-weight: 500; margin-bottom: 10px; }

.choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.choice {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px;
  padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-s);
  background: var(--paper); cursor: pointer; font-size: 15px; line-height: 1.6;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.choice input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--wine); }
.choice:hover { border-color: var(--gold); }
.choice:has(input:checked) { border-color: var(--wine); background: #FFF8F6; box-shadow: inset 0 0 0 1px var(--wine); }
.choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.choice__sub { display: block; font-size: 12px; color: var(--muted); }

.alert {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: var(--r-m);
  border: 1px solid var(--line); background: var(--paper); line-height: 1.9; font-size: 15px;
}
.alert__icon { flex: none; width: 22px; height: 22px; margin-top: 3px; }
.alert--success { border-color: #BCD3C4; background: #F2F8F3; color: #1F4D37; }
.alert--error { border-color: #E6C3C3; background: #FFF6F5; color: var(--danger); }
.alert--info { border-color: var(--line-strong); background: var(--paper); color: var(--ink); }
.alert ul { margin: 6px 0 0; padding-inline-start: 18px; }

/* Global flash toast */
.flash {
  position: fixed; z-index: 120; inset-inline: 16px; bottom: 20px; margin-inline: auto; max-width: 560px;
  box-shadow: var(--shadow-l); animation: toast-in .7s var(--ease-expo) both;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(24px); } }
.flash__close { margin-inline-start: auto; background: none; border: 0; padding: 4px; color: inherit; opacity: .7; min-width: 32px; min-height: 32px; }
.flash__close:hover { opacity: 1; }

/* 6. Header & mobile menu -------------------------------------------------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  color: var(--on-dark);
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease), backdrop-filter .5s, -webkit-backdrop-filter .5s;
}
.site-header::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 110, .55), transparent);
  opacity: 0; transition: opacity .5s var(--ease);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); transition: height .45s var(--ease); }
body:not(.has-hero) .site-header,
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(14, 42, 46, .86);
  -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px);
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .55);
}
body:not(.has-hero) .site-header { background: var(--teal); }
.site-header.is-scrolled::after, body:not(.has-hero) .site-header::after { opacity: 1; }
.site-header.is-scrolled .site-header__inner { height: 68px; }
.has-hero .site-header:not(.is-scrolled):not(.is-open) { background: linear-gradient(to bottom, rgba(6, 18, 20, .55), rgba(6, 18, 20, 0)); }

.brand { display: inline-flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--on-dark); flex: none; }
.brand:hover { color: var(--on-dark); }
.brand__fa { font-family: var(--f-nastaliq); font-weight: 700; font-size: 30px; line-height: 1.5; padding-block: 4px; }
.brand__en { font-family: var(--f-latin); font-size: 13px; letter-spacing: .34em; color: var(--on-dark-muted); direction: ltr; }

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); font-size: 15px; }
.nav a { position: relative; color: var(--on-dark); text-decoration: none; padding: 10px 2px; }
.nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 4px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-expo);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .login { color: var(--on-dark); text-decoration: none; font-size: 15px; padding: 10px 8px; }
.header-actions .login:hover { color: var(--gold); }

.menu-toggle {
  display: none; position: relative; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(247, 241, 230, .3); background: transparent; color: var(--on-dark);
}
.menu-toggle span {
  position: absolute; inset-inline-start: 14px; width: 20px; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .45s var(--ease-expo), opacity .3s;
}
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 23.5px; width: 14px; }
.menu-toggle span:nth-child(3) { top: 29px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.menu-panel {
  position: fixed; inset: 0; z-index: 90; background: var(--teal); color: var(--on-dark);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 28px; overflow-y: auto;
  clip-path: circle(0% at 40px 40px); visibility: hidden;
  transition: clip-path .8s var(--ease-expo), visibility 0s .8s;
}
[dir="rtl"] .menu-panel { clip-path: circle(0% at calc(100% - 40px) 40px); }
.menu-panel.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; transition: clip-path .9s var(--ease-expo), visibility 0s; }
.menu-panel__links { display: flex; flex-direction: column; }
.menu-panel__links a {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 0;
  font-size: 22px; font-weight: 500; color: var(--on-dark); text-decoration: none; border-bottom: 1px solid var(--teal-line);
  opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .6s var(--ease-expo), color .2s;
}
.menu-panel__links a:hover { color: var(--gold); }
.menu-panel.is-open .menu-panel__links a { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i, 0) * 60ms); }
.menu-panel__foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.menu-panel__mark { font-family: var(--f-nastaliq); color: var(--gold); font-size: 44px; line-height: 2; opacity: .9; }

@media (max-width: 1080px) {
  .nav, .header-actions .login, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-block; }
  :root { --header-h: 68px; }
  .brand__fa { font-size: 26px; }
}
body.menu-open { overflow: hidden; }

/* 7. Footer ---------------------------------------------------------------- */
.site-footer { position: relative; background: var(--teal); color: var(--on-dark-muted); font-size: 14px; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .6; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 72px 48px; }
.site-footer__brand .brand__fa { font-size: 40px; color: var(--gold); }
.site-footer h2 { font-size: 15px; color: var(--on-dark); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--gold); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; border-top: 1px solid var(--teal-line); font-size: 13px; color: var(--on-dark-soft); }
.site-footer__watermark {
  position: absolute; inset-inline-start: -2vw; bottom: -6vw; pointer-events: none;
  font-family: var(--f-nastaliq); font-size: 22vw; line-height: 1.6; color: rgba(201, 169, 110, .05); white-space: nowrap;
}
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
.site-footer--minimal { text-align: center; padding-block: 28px; }

/* 8. Components ------------------------------------------------------------ */
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 500; line-height: 1.6; white-space: nowrap;
  background: var(--teal); color: var(--gold);
}
.tag--sample { background: rgba(247, 241, 230, .92); color: var(--wine); border: 1px solid rgba(107, 30, 46, .25); }
.tag--light { background: var(--sand); color: var(--muted); }
.tag--wine { background: var(--wine); color: var(--ivory); }
.chip { display: inline-flex; padding: 6px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--paper); font-size: 13px; }

.frame { position: relative; overflow: hidden; border-radius: var(--r-l); background: var(--teal-3); isolation: isolate; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame::after {
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(201, 169, 110, .55); border-radius: calc(var(--r-l) - 8px);
  pointer-events: none; z-index: 2;
}
.frame--arch { border-radius: 999px 999px var(--r-l) var(--r-l); }
.frame--arch::after { border-radius: 999px 999px calc(var(--r-l) - 8px) calc(var(--r-l) - 8px); }

/* Card with lift, zoom and gold hairline */
.card {
  position: relative; display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; isolation: isolate;
  transition: transform .6s var(--ease-expo), box-shadow .6s var(--ease-expo);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid var(--gold);
  opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; z-index: 3;
}
.card:hover, .card:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-m); }
.card:hover::after, .card:focus-within::after { opacity: 1; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform 1.4s var(--ease-expo); }
.card:hover .card__media img { transform: scale(1.07); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 42, 46, .35), transparent 45%); pointer-events: none; }
.card__badges { position: absolute; inset-inline: 16px; top: 16px; display: flex; justify-content: space-between; gap: 8px; z-index: 2; }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 24px; flex: 1; }
.card__meta { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.card__meta span + span::before { content: "·"; margin-inline-end: 10px; color: var(--gold-ink); }
.card__actions { display: flex; gap: 10px; margin-top: auto; padding-top: 12px; }
.card__actions .btn { flex: 1; }
.card__actions .btn--outline { flex: none; }
.card__title-link { color: inherit; text-decoration: none; }
.card__title-link::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__actions { position: relative; z-index: 2; }

/* Marquee */
.marquee { position: relative; overflow: hidden; padding-block: 22px; border-block: 1px solid rgba(201, 169, 110, .28); background: var(--teal); color: var(--on-dark); }
.marquee--light { background: var(--ivory); color: var(--teal); border-color: var(--line); }
.marquee__track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item { display: inline-flex; align-items: center; gap: 36px; padding-inline-end: 36px; font-family: var(--f-nastaliq); font-size: clamp(20px, 2.2vw, 28px); line-height: 2; white-space: nowrap; }
.marquee__item::after { content: ""; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); flex: none; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 2; pointer-events: none; }
.marquee::before { right: 0; background: linear-gradient(to left, var(--teal), transparent); }
.marquee::after { left: 0; background: linear-gradient(to right, var(--teal), transparent); }
.marquee--light::before { background: linear-gradient(to left, var(--ivory), transparent); }
.marquee--light::after { background: linear-gradient(to right, var(--ivory), transparent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* Stars rating */
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 16px; height: 16px; }
.stars .is-off { color: var(--line-strong); }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px;
  border-radius: var(--r-pill); border: 1px solid var(--line-strong); text-decoration: none; color: var(--teal); background: var(--paper);
}
.pagination a:hover { border-color: var(--gold); }
.pagination [aria-current="page"] span, .pagination .is-current { background: var(--teal); color: var(--gold); border-color: var(--teal); }
.pagination .is-disabled { opacity: .45; }

/* Empty state */
.empty {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
  padding: clamp(40px, 7vw, 80px) 24px; border: 1px dashed var(--line-strong); border-radius: var(--r-l); background: var(--paper);
}
.empty__mark { width: 84px; height: 84px; color: var(--gold-ink); }
.empty .nastaliq { font-size: clamp(24px, 3vw, 32px); color: var(--teal); }

/* Page hero (inner pages) */
.page-hero { position: relative; isolation: isolate; color: var(--on-dark); background: var(--teal); overflow: hidden; }
.page-hero__media { position: absolute; inset: -10% 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, rgba(14, 42, 46, .94), rgba(14, 42, 46, .72) 55%, rgba(14, 42, 46, .5)), linear-gradient(to top, rgba(14, 42, 46, .9), transparent 50%); }
.page-hero__inner { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px)); padding-bottom: clamp(48px, 7vw, 88px); display: flex; flex-direction: column; gap: 16px; }
.page-hero h1 { font-family: var(--f-nastaliq); font-size: clamp(34px, 5vw, 58px); line-height: 2; font-weight: 700; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--on-dark-soft); list-style: none; margin: 0; padding: 0; }
.breadcrumb a { color: var(--on-dark-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 8px; opacity: .6; }

/* 9. Motion primitives ----------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1.1s var(--ease-expo), transform 1.2s var(--ease-expo); transition-delay: calc(var(--i, 0) * 110ms); will-change: opacity, transform; }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(.96); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal].is-done { will-change: auto; }
[data-parallax] { will-change: transform; }

.kenburns { animation: kenburns 28s var(--ease-in-out) infinite alternate; transform-origin: 60% 40%; }
@keyframes kenburns { from { transform: scale(1.06) translate3d(0, 0, 0); } to { transform: scale(1.18) translate3d(-2%, -1.5%, 0); } }

/* Page-load curtain */
.curtain {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: var(--teal);
  pointer-events: none; opacity: 0; visibility: hidden;
}
.js .curtain { opacity: 1; visibility: visible; animation: curtain-safety .01s 3s forwards; }
.js.no-curtain .curtain { display: none; }
.curtain__mark { font-family: var(--f-nastaliq); font-size: clamp(48px, 9vw, 88px); line-height: 2; color: var(--gold); opacity: 0; transform: translateY(12px); animation: curtain-mark 1s var(--ease-expo) .1s forwards; }
.curtain__line { position: absolute; bottom: 38%; width: 120px; height: 1px; background: var(--gold); transform: scaleX(0); animation: curtain-line 1.2s var(--ease-expo) .25s forwards; }
.is-ready .curtain { opacity: 0; visibility: hidden; transition: opacity .9s var(--ease) .15s, visibility 0s 1.1s; }
@keyframes curtain-mark { to { opacity: 1; transform: none; } }
@keyframes curtain-line { to { transform: scaleX(1); } }
@keyframes curtain-safety { to { opacity: 0; visibility: hidden; } }

/* 10. Home page ------------------------------------------------------------ */
.hero { position: relative; isolation: isolate; min-height: max(640px, 100svh); color: var(--on-dark); background: var(--teal); overflow: hidden; display: flex; align-items: center; }
.hero__media { position: absolute; inset: -10% 0; z-index: -3; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(to left, rgba(14, 42, 46, .95) 0%, rgba(14, 42, 46, .78) 38%, rgba(14, 42, 46, .35) 72%, rgba(14, 42, 46, .25) 100%),
    linear-gradient(to top, var(--teal) 0%, rgba(14, 42, 46, 0) 30%);
}
.hero__grain { position: absolute; inset: 0; z-index: -1; opacity: .18; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); }
.hero__inner { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: calc(var(--header-h) + 48px); padding-bottom: 140px; }
.hero__text { display: flex; flex-direction: column; gap: 26px; }
.hero__title { font-family: var(--f-nastaliq); font-weight: 700; font-size: clamp(38px, 5.2vw, 64px); line-height: 2.05; color: var(--on-dark); }
.hero__title .line { display: block; }
.hero__lead { font-size: clamp(16px, 1.45vw, 18px); line-height: 2.05; color: var(--on-dark-muted); max-width: 520px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Staggered hero reveal (runs once the curtain lifts) */
.js .hero [data-hero] { opacity: 0; transform: translate3d(0, 34px, 0); filter: blur(6px); }
.is-ready .hero [data-hero] { opacity: 1; transform: none; filter: blur(0); transition: opacity 1.2s var(--ease-expo), transform 1.4s var(--ease-expo), filter 1.2s var(--ease-expo); transition-delay: calc(.45s + var(--d, 0) * 140ms); }

.hero-search {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: stretch; gap: 4px;
  padding: 8px; border-radius: var(--r-m); background: rgba(247, 241, 230, .97); color: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); max-width: 640px;
}
.hero-search label { display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; font-size: 12px; color: var(--muted); min-width: 0; }
.hero-search label + label { border-inline-start: 1px solid var(--line); }
.hero-search input, .hero-search select { border: 0; background: transparent; padding: 0; font-size: 15px; color: var(--ink); min-height: 30px; width: 100%; appearance: none; -webkit-appearance: none; }
.hero-search input:focus-visible, .hero-search select:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
.hero-search .btn { border-radius: 14px; min-height: 58px; }

.hero__collage { position: relative; height: min(600px, 62vh); min-height: 460px; }
.hero__collage .frame { position: absolute; box-shadow: var(--shadow-l); }
.hero__collage .c1 { inset-inline-start: 6%; top: 0; width: 52%; height: 100%; }
.hero__collage .c2 { inset-inline-end: 0; top: 8%; width: 42%; aspect-ratio: 1 / 1.05; }
.hero__collage .c3 { inset-inline-end: 8%; bottom: 4%; width: 40%; aspect-ratio: 4 / 3.2; }
.hero__collage .seal {
  position: absolute; inset-inline-start: -4%; bottom: 12%; z-index: 3; width: 112px; height: 112px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wine); color: var(--ivory); text-align: center;
  box-shadow: var(--shadow-l); font-size: 12px; line-height: 1.7;
}
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 40s linear infinite; }
.seal svg text { direction: ltr; unicode-bidi: plaintext; fill: var(--gold); font-family: var(--f-latin); font-size: 11.5px; letter-spacing: 3.2px; }
.seal__core { font-family: var(--f-nastaliq); font-size: 22px; line-height: 1.8; color: var(--gold); }

.scroll-cue { position: absolute; inset-inline: 0; bottom: 104px; margin-inline: auto; width: 26px; height: 42px; border: 1.5px solid rgba(247, 241, 230, .5); border-radius: 14px; }
.scroll-cue::after { content: ""; position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; padding-bottom: 120px; }
  .hero__collage { display: none; }
  .hero::before { background: linear-gradient(to top, var(--teal) 0%, rgba(14, 42, 46, .82) 40%, rgba(14, 42, 46, .6) 100%); }
}
@media (max-width: 640px) {
  .hero-search { grid-template-columns: 1fr 1fr; }
  .hero-search label:nth-of-type(3) { grid-column: 1 / -1; border-inline-start: 0; border-top: 1px solid var(--line); }
  .hero-search label + label { border-inline-start: 1px solid var(--line); }
  .hero-search .btn { grid-column: 1 / -1; }
  .scroll-cue { display: none; }
}

/* Anchor brands (overlaps hero) */
.anchors { position: relative; z-index: 2; margin-top: -72px; }
.anchors__panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 3.5vw, 44px); box-shadow: var(--shadow-m); }
.anchors__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 28px; }
.anchors__head h2 { font-size: clamp(20px, 2vw, 24px); }
.anchors__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .anchors__grid { grid-template-columns: 1fr; } }
.brand-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--r-m);
  border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--paper); overflow: hidden; isolation: isolate;
  transition: transform .6s var(--ease-expo), box-shadow .6s var(--ease-expo), border-color .4s;
}
.brand-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 100% 0%, rgba(201, 169, 110, .16), transparent 60%); opacity: 0; transition: opacity .6s; }
.brand-card:hover { color: var(--ink); transform: translateY(-5px); box-shadow: var(--shadow-m); border-color: var(--gold); }
.brand-card:hover::before { opacity: 1; }
.brand-card__logo { width: 68px; height: 68px; border-radius: 50%; box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--line); transition: transform .8s var(--ease-expo); }
.brand-card:hover .brand-card__logo { transform: rotate(-8deg) scale(1.04); }
.brand-card__name { font-size: 20px; font-weight: 700; }
.brand-card__desc { font-size: 14px; color: var(--muted); line-height: 1.9; }
.brand-card__more { margin-top: auto; font-size: 14px; font-weight: 500; color: var(--wine); display: inline-flex; align-items: center; gap: 8px; }
.brand-card__more svg { transition: transform .4s var(--ease); }
.brand-card:hover .brand-card__more svg { transform: translateX(-5px); }

/* Journey */
.journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); counter-reset: step; }
.journey__step { position: relative; display: flex; flex-direction: column; gap: 10px; padding-top: 22px; }
.journey__step::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 2px; background: var(--teal); transform-origin: right; transform: scaleX(1); }
.js .journey__step::before { transform: scaleX(0); transition: transform 1.2s var(--ease-expo); transition-delay: calc(.2s + var(--i, 0) * 160ms); }
.js .journey__step.is-in::before { transform: scaleX(1); }
.journey__step:last-child::before { background: var(--gold); }
.journey__num { font-family: var(--f-latin); font-size: 44px; line-height: 1.2; color: var(--gold-ink); }
.journey__title { font-size: 19px; font-weight: 700; }
.journey__text { font-size: 15px; line-height: 2; color: var(--muted); }
@media (max-width: 900px) { .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .journey { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 72px); border-block: 1px solid var(--line); }
.stat { padding: 28px 12px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat__value { font-size: clamp(34px, 4vw, 48px); font-weight: 300; color: var(--teal); line-height: 1.4; }
.stat__label { font-size: 14px; color: var(--muted); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:nth-child(3) { border-inline-start: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Services grid */
.services { position: relative; overflow: hidden; }
.services__glow { position: absolute; width: 60vw; height: 60vw; inset-inline-start: -20vw; top: -30vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(201, 169, 110, .12), transparent); pointer-events: none; }
.services__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--teal-line); border: 1px solid var(--teal-line); border-radius: var(--r-l); overflow: hidden; }
.service {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 34px 28px 30px; min-height: 210px;
  background: var(--teal); color: var(--on-dark); text-decoration: none; overflow: hidden; isolation: isolate;
  transition: background-color .5s var(--ease);
}
.service::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease-expo); }
.service::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 80% at 100% 0%, rgba(201, 169, 110, .14), transparent 70%); opacity: 0; transition: opacity .6s; }
.service:hover { color: var(--on-dark); background: var(--teal-2); }
.service:hover::before { transform: scaleX(1); }
.service:hover::after { opacity: 1; }
.service__icon { width: 36px; height: 36px; color: var(--gold); margin-bottom: 8px; transition: transform .7s var(--ease-expo); }
.service:hover .service__icon { transform: translateY(-4px); }
.service__title { font-size: 19px; font-weight: 700; }
.service__sub { font-size: 14px; color: var(--on-dark-soft); line-height: 1.9; }
.service__arrow { margin-top: auto; align-self: flex-end; color: var(--gold); opacity: 0; transform: translateX(10px); transition: opacity .4s, transform .6s var(--ease-expo); }
.service:hover .service__arrow { opacity: 1; transform: none; }
@media (max-width: 1000px) { .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .service { padding: 24px 18px; min-height: 0; } .service__title { font-size: 16px; } .service__sub { font-size: 13px; } }

/* Editorial feature band */
.feature { position: relative; isolation: isolate; min-height: clamp(420px, 70vh, 640px); display: flex; align-items: center; color: var(--on-dark); overflow: hidden; background: var(--teal); }
.feature__media { position: absolute; inset: -12% 0; z-index: -2; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 50% 50%, rgba(14, 42, 46, .35), rgba(14, 42, 46, .85)); }
.feature__inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; padding-block: 80px; }
.feature__quote { font-family: var(--f-nastaliq); font-weight: 700; font-size: clamp(30px, 4.6vw, 58px); line-height: 2.1; max-width: 18ch; }
.feature__cite { font-size: 14px; color: var(--on-dark-muted); letter-spacing: .1em; }

/* Invitations showcase */
.invites { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.invites__text { display: flex; flex-direction: column; gap: 20px; }
.invites__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; font-size: 15px; }
.invites__list li { display: flex; gap: 10px; align-items: center; }
.invites__list li::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); flex: none; }
.invites__stage { position: relative; overflow-x: clip; overflow-y: visible; padding-block: 24px; display: flex; justify-content: center; align-items: flex-end; gap: 18px; min-height: 460px; perspective: 1200px; }
.inv-mini {
  position: relative; flex: none; width: 200px; height: 320px; border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 22px 16px;
  box-shadow: 0 30px 60px -28px rgba(14, 42, 46, .55); transition: transform .8s var(--ease-expo);
}
.inv-mini:nth-child(1) { transform: rotate(4deg) translateY(10px); }
.inv-mini:nth-child(2) { width: 232px; height: 400px; z-index: 2; }
.inv-mini:nth-child(3) { transform: rotate(-4deg) translateY(10px); }
.invites__stage:hover .inv-mini:nth-child(1) { transform: rotate(7deg) translate(14px, 0); }
.invites__stage:hover .inv-mini:nth-child(2) { transform: translateY(-14px); }
.invites__stage:hover .inv-mini:nth-child(3) { transform: rotate(-7deg) translate(-14px, 0); }
.inv-mini__names { font-family: var(--f-nastaliq); font-size: 22px; line-height: 2.1; }
.inv-mini__label { font-size: 11px; letter-spacing: .2em; }
.inv-mini--night { background: radial-gradient(120% 80% at 50% 0%, #1E4248, var(--teal) 60%); color: var(--on-dark); border: 1px solid var(--gold); overflow: hidden; }
.inv-mini--night .inv-mini__names { color: var(--gold); }
.inv-mini--night .inv-mini__label { color: var(--on-dark-muted); }
.inv-mini--night::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 40% 70%, #F3E2BC, transparent), radial-gradient(1px 1px at 85% 60%, #fff, transparent), radial-gradient(1px 1px at 12% 85%, #fff, transparent), radial-gradient(1.2px 1.2px at 60% 45%, #fff, transparent); opacity: .8; animation: twinkle 4s ease-in-out infinite alternate; }
.inv-mini--classic { background: var(--paper); border: 1px solid var(--gold); outline: 1px solid var(--gold); outline-offset: -10px; }
.inv-mini--classic .inv-mini__names { font-size: 26px; color: var(--teal); }
.inv-mini--classic .inv-mini__label { color: var(--gold-ink); }
.inv-mini--floral { background: var(--blush); border-radius: 110px 110px 16px 16px; overflow: hidden; }
.inv-mini--floral img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; }
.inv-mini--floral .inv-mini__names, .inv-mini--floral .inv-mini__label { color: var(--wine); }
@keyframes twinkle { from { opacity: .35; } to { opacity: .95; } }
@media (max-width: 980px) { .invites { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .invites__stage { min-height: 340px; gap: 0; }
  .inv-mini { width: 128px; height: 220px; margin-inline: -14px; padding: 16px 10px; }
  .inv-mini:nth-child(2) { width: 152px; height: 270px; }
  .inv-mini__names { font-size: 17px; }
  .inv-mini--classic .inv-mini__names { font-size: 20px; }
  .inv-mini--floral img { width: 76px; height: 76px; }
  .invites__list { grid-template-columns: 1fr; }
}

/* Private gallery promo */
.promo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: var(--r-xl); overflow: hidden; background: var(--wine); color: var(--ivory); }
.promo__text { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.promo__text p { color: #EAD3D1; line-height: 2.1; }
.promo__features { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.promo__features li { display: flex; gap: 12px; align-items: center; }
.promo__features svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.promo__media { position: relative; min-height: 360px; overflow: hidden; }
.promo__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-expo); }
.promo:hover .promo__media img { transform: scale(1.05); }
.promo__play { position: absolute; inset: 0; margin: auto; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; background: rgba(247, 241, 230, .14); border: 1px solid rgba(247, 241, 230, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--ivory); }
.promo__play::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(201, 169, 110, .6); animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
@media (max-width: 860px) { .promo { grid-template-columns: 1fr; } .promo__media { min-height: 260px; order: -1; } }

/* Vendor CTA band */
.cta-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 40px; padding-block: clamp(48px, 7vw, 80px); border-top: 1px solid var(--line); }
.cta-band__text { display: flex; flex-direction: column; gap: 10px; max-width: 680px; }

/* 11. Venues / vendor pages ----------------------------------------------- */
.filters {
  position: relative; z-index: 3; margin-top: -40px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 14px; align-items: end;
  padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-m);
}
.filters__actions { display: flex; gap: 8px; }
@media (max-width: 860px) { .filters { grid-template-columns: 1fr 1fr; } .filters__actions { grid-column: 1 / -1; } .filters__actions .btn { flex: 1; } }
@media (max-width: 480px) { .filters { grid-template-columns: 1fr; } }
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-block: 36px 24px; font-size: 14px; color: var(--muted); }

.venue-hero { min-height: min(78vh, 720px); display: flex; align-items: flex-end; }
.venue-hero .page-hero__inner { padding-bottom: clamp(40px, 6vw, 72px); }
.venue-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; color: var(--on-dark-muted); }
.venue-facts span { display: inline-flex; align-items: center; gap: 8px; }
.venue-facts svg { width: 18px; height: 18px; color: var(--gold); }

.venue-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.venue-aside { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: var(--r-l); background: var(--teal); color: var(--on-dark); box-shadow: var(--shadow-m); }
.venue-aside .nastaliq { font-size: 26px; color: var(--gold); }
.venue-aside dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14px; }
.venue-aside dt { color: var(--on-dark-soft); }
.venue-aside dd { margin: 0; text-align: left; }
@media (max-width: 980px) { .venue-layout { grid-template-columns: 1fr; } .venue-aside { position: static; } }
.venue-section + .venue-section { margin-top: clamp(48px, 6vw, 72px); }
.venue-section > h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 20px; }

.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 180px; gap: 12px; }
.mosaic a, .mosaic figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-m); display: block; background: var(--sand); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-expo); }
.mosaic a:hover img { transform: scale(1.06); }
.mosaic > :first-child { grid-row: span 2; }
@media (max-width: 640px) { .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; } .mosaic > :first-child { grid-column: 1 / -1; } }

.tour-block { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-l); min-height: 320px; display: grid; place-items: center; text-align: center; color: var(--on-dark); background: var(--teal); }
.tour-block img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: blur(2px) saturate(.9); transform: scale(1.06); }
.tour-block::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(14, 42, 46, .62); }
.tour-block__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 32px; }
.tour-block__orbit { width: 88px; height: 88px; color: var(--gold); }
.tour-block__orbit .orbit { transform-origin: 50% 50%; animation: spin 14s linear infinite; }

.halls { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--paper); border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line); }
.halls th, .halls td { padding: 16px 20px; text-align: right; border-bottom: 1px solid var(--line); }
.halls th { font-size: 13px; font-weight: 500; color: var(--muted); background: var(--sand); }
.halls tr:last-child td { border-bottom: 0; }

.map-block { position: relative; overflow: hidden; border-radius: var(--r-l); min-height: 280px; border: 1px solid var(--line);
  background:
    linear-gradient(rgba(14, 42, 46, .06) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(14, 42, 46, .06) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(60% 60% at 50% 50%, #F3EBDD, var(--sand));
  display: grid; place-items: center; text-align: center; padding: 32px; }
.map-block__pin { width: 46px; height: 46px; color: var(--wine); animation: bob 2.4s var(--ease-in-out) infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.vendor-hero { min-height: min(86vh, 760px); display: flex; align-items: flex-end; }
.vendor-hero__id { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.vendor-hero__logo { width: 96px; height: 96px; border-radius: 50%; box-shadow: 0 0 0 1px var(--gold), 0 0 0 6px rgba(14, 42, 46, .6); }
.vendor-hero--compact { min-height: 0; }
.vendor-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
@media (max-width: 900px) { .vendor-body { grid-template-columns: 1fr; } }
.prose { font-size: 17px; line-height: 2.15; color: var(--ink); }
.prose p + p { margin-top: 1em; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.contact-list li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact-list li span:first-child { color: var(--muted); }
.review { padding: 24px; border-radius: var(--r-m); background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.review blockquote { margin: 0; font-size: 15px; line-height: 2; }
.review__reply { font-size: 14px; color: var(--muted); padding-inline-start: 16px; border-inline-start: 2px solid var(--gold); }

/* 12. Forms pages / gallery ------------------------------------------------ */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-height: calc(100svh - var(--header-h)); }
.split__media { position: relative; overflow: hidden; color: var(--on-dark); background: var(--teal); isolation: isolate; }
.split__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.split__media::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(14, 42, 46, .95), rgba(14, 42, 46, .4) 60%, rgba(14, 42, 46, .55)); }
.split__media-inner { position: sticky; top: var(--header-h); min-height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding: clamp(28px, 4vw, 56px); }
.split__media .nastaliq { font-size: clamp(30px, 3.6vw, 46px); }
.split__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--on-dark-muted); counter-reset: s; }
.split__steps li { display: flex; gap: 14px; align-items: baseline; }
.split__steps li::before { counter-increment: s; content: "0" counter(s); font-family: var(--f-latin); font-size: 20px; color: var(--gold); }
.split__form { padding: clamp(32px, 5vw, 72px) clamp(16px, 5vw, 72px); display: flex; flex-direction: column; gap: 28px; }
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .split__media-inner { position: relative; top: 0; min-height: 340px; }
}

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-s); }
.form-section-title { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 700; color: var(--teal); }
.form-section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.success-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: clamp(32px, 6vw, 72px) 16px; }
.success-state .nastaliq { font-size: clamp(28px, 4vw, 40px); color: var(--teal); }
.check-mark { width: 92px; height: 92px; }
.check-mark circle { stroke: var(--gold); stroke-dasharray: 280; stroke-dashoffset: 280; animation: draw 1.2s var(--ease-expo) .2s forwards; }
.check-mark path { stroke: var(--teal); stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .8s var(--ease-expo) .9s forwards; }
.check-mark--fail path { stroke: var(--wine); }
@keyframes draw { to { stroke-dashoffset: 0; } }

.center-page { min-height: calc(100svh - var(--header-h)); display: grid; place-items: center; padding: 48px var(--gutter); background: radial-gradient(80% 60% at 50% 0%, var(--paper), var(--ivory)); }
.center-card { width: 100%; max-width: 520px; }

/* Dark cinematic gallery */
.theme-dark { background: #0A1214; color: var(--on-dark); --focus: var(--gold); }
.theme-dark .site-footer { background: #071012; }
.gallery-login { position: relative; isolation: isolate; min-height: 100svh; display: grid; place-items: center; padding: calc(var(--header-h) + 32px) var(--gutter) 48px; overflow: hidden; }
.gallery-login > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.gallery-login::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 50% 50%, rgba(10, 18, 20, .35), rgba(10, 18, 20, .92)); }
.glass {
  width: 100%; max-width: 460px; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-l);
  background: rgba(14, 42, 46, .55); border: 1px solid rgba(201, 169, 110, .35);
  -webkit-backdrop-filter: blur(18px) saturate(130%); backdrop-filter: blur(18px) saturate(130%);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); display: flex; flex-direction: column; gap: 22px;
}
.glass .field__label { color: var(--on-dark-muted); }
.glass .input { background: rgba(247, 241, 230, .06); border-color: rgba(247, 241, 230, .2); color: var(--on-dark); }
.glass .input:focus-visible { background: rgba(247, 241, 230, .1); border-color: var(--gold); }
.glass .field--error .input { border-color: #E58C9A; background: rgba(142, 27, 44, .15); }
.glass .field__error { color: #F2B3BD; }
.glass .alert--info { background: rgba(247, 241, 230, .06); border-color: rgba(201, 169, 110, .35); color: var(--on-dark); }
.lock-icon { width: 54px; height: 54px; color: var(--gold); }

.gallery-head { padding-top: calc(var(--header-h) + 56px); padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.gallery-head h1 { font-family: var(--f-nastaliq); font-size: clamp(32px, 4.4vw, 54px); line-height: 2.05; }
.expiry { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 18px; border-radius: var(--r-pill); border: 1px solid rgba(201, 169, 110, .4); background: rgba(201, 169, 110, .08); font-size: 14px; color: var(--on-dark-muted); }
.expiry strong { color: var(--gold); font-weight: 500; }
.expiry__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(201, 169, 110, .7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(201, 169, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 169, 110, 0); } }
.film { display: grid; gap: 24px; }
.film__item { border-radius: var(--r-m); overflow: hidden; background: #000; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); border: 1px solid rgba(201, 169, 110, .2); }
.film__item video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.film__caption { padding: 14px 18px; font-size: 14px; color: var(--on-dark-muted); background: #0E1719; }
.photo-grid { columns: 3 280px; column-gap: 14px; }
.photo-grid button { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; background: #111; border-radius: var(--r-s); overflow: hidden; break-inside: avoid; cursor: zoom-in; }
.photo-grid img { width: 100%; transition: transform 1.2s var(--ease-expo), opacity .6s; }
.photo-grid button:hover img { transform: scale(1.04); }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(5, 9, 10, .94); }
.lightbox__inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 56px 16px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-xs); }
.lightbox__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(247, 241, 230, .3); background: rgba(14, 42, 46, .6); color: var(--ivory); display: grid; place-items: center; }
.lightbox__btn:hover { border-color: var(--gold); color: var(--gold); }
.lightbox__close { top: 16px; inset-inline-end: 16px; }
.lightbox__prev { inset-inline-start: 16px; top: 50%; margin-top: -24px; }
.lightbox__next { inset-inline-end: 16px; top: 50%; margin-top: -24px; }
.gallery-empty { border-color: rgba(201, 169, 110, .3); background: rgba(247, 241, 230, .03); color: var(--on-dark-muted); }
.gallery-empty .nastaliq { color: var(--gold); }

/* Payment result */
.result-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.result-card .nastaliq { font-size: clamp(28px, 4vw, 38px); }
.result-amount { font-size: clamp(28px, 4vw, 38px); font-weight: 300; color: var(--teal); }
.receipt { width: 100%; margin: 8px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; padding: 18px 20px; border-radius: var(--r-m); background: var(--sand); font-size: 14px; text-align: right; }
.receipt dt { color: var(--muted); }
.receipt dd { margin: 0; text-align: left; font-weight: 500; }

/* 13. Invitations (five families) ----------------------------------------- */
.inv-page { --inv-primary: var(--teal); --inv-secondary: var(--ivory); --inv-accent: var(--gold); min-height: 100svh; padding: clamp(24px, 6vw, 72px) 16px 48px; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.inv-card { position: relative; width: 100%; max-width: 560px; text-align: center; isolation: isolate; }
.inv-card__greet { font-size: 14px; letter-spacing: .04em; }
.inv-names { font-family: var(--f-nastaliq); font-weight: 700; line-height: 2.1; font-size: clamp(36px, 9vw, 58px); }
.inv-names .amp { display: block; font-size: .5em; line-height: 1.6; opacity: .85; }
.inv-meta { display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 2; }
.inv-message { font-size: 15px; line-height: 2.2; max-width: 40ch; margin-inline: auto; }
.inv-verse { font-family: var(--f-nastaliq); font-size: 20px; line-height: 2.3; }
.inv-countdown { display: flex; justify-content: center; gap: 10px; }
.inv-countdown div { min-width: 64px; padding: 10px 6px; border-radius: 12px; display: flex; flex-direction: column; gap: 0; }
.inv-countdown b { font-size: 24px; font-weight: 500; line-height: 1.5; }
.inv-countdown small { font-size: 11px; opacity: .8; }
.inv-map { display: inline-flex; gap: 8px; align-items: center; }
.inv-rsvp { width: 100%; max-width: 560px; }
.inv-footer { font-size: 12px; opacity: .75; }
.inv-footer a { color: inherit; }

/* family: classic-persian */
.inv--classic-persian { background: radial-gradient(90% 60% at 50% 0%, #fff, var(--inv-secondary)); color: var(--ink); }
.inv--classic-persian .inv-card { background: var(--paper); padding: 14px; border-radius: 6px; box-shadow: var(--shadow-l); }
.inv--classic-persian .inv-frame { position: relative; border: 1.5px solid var(--inv-accent); padding: 8px; border-radius: 4px; }
.inv--classic-persian .inv-frame__in { border: .5px solid var(--inv-accent); padding: clamp(32px, 7vw, 56px) clamp(18px, 5vw, 44px); display: flex; flex-direction: column; align-items: center; gap: 20px; background:
  radial-gradient(circle at 0 0, color-mix(in srgb, var(--inv-accent) 22%, transparent) 0 22px, transparent 23px),
  radial-gradient(circle at 100% 0, color-mix(in srgb, var(--inv-accent) 22%, transparent) 0 22px, transparent 23px),
  radial-gradient(circle at 0 100%, color-mix(in srgb, var(--inv-accent) 22%, transparent) 0 22px, transparent 23px),
  radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--inv-accent) 22%, transparent) 0 22px, transparent 23px); }
.inv--classic-persian .inv-names { color: var(--inv-primary); }
.inv--classic-persian .inv-basmala { font-size: 13px; color: var(--gold-ink); letter-spacing: .1em; }
.inv--classic-persian .inv-rule { width: 64px; height: 1px; background: var(--inv-accent); position: relative; }
.inv--classic-persian .inv-rule::after { content: ""; position: absolute; left: 50%; top: -4px; width: 8px; height: 8px; margin-left: -4px; background: var(--inv-accent); transform: rotate(45deg); }
.inv--classic-persian .inv-ornament { width: 120px; color: var(--inv-accent); }
.inv--classic-persian .inv-verse { color: var(--inv-primary); }
.inv--classic-persian .inv-countdown div { background: color-mix(in srgb, var(--inv-primary) 8%, transparent); color: var(--inv-primary); }

/* family: night-stars */
.inv--night-stars { background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--inv-primary) 70%, #2a3e66), var(--inv-primary) 55%, #03060c); color: var(--inv-secondary); position: relative; overflow: hidden; }
.inv-sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.inv-sky i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: .7; animation: twinkle var(--t, 3s) ease-in-out infinite alternate; animation-delay: var(--dl, 0s); }
.inv-moon { position: absolute; top: 6vh; inset-inline-start: 10vw; width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #FFF7DE, var(--inv-accent)); box-shadow: 0 0 60px 10px color-mix(in srgb, var(--inv-accent) 35%, transparent); }
.inv-moon--crescent { background: transparent; box-shadow: inset -16px 8px 0 0 var(--inv-accent); filter: drop-shadow(0 0 18px color-mix(in srgb, var(--inv-accent) 55%, transparent)); }
.inv--night-stars .inv-card, .inv--night-stars .inv-rsvp { z-index: 1; }
.inv--night-stars .inv-card { padding: clamp(36px, 7vw, 60px) clamp(18px, 5vw, 40px); display: flex; flex-direction: column; align-items: center; gap: 22px; }
.inv--night-stars .inv-names { color: var(--inv-secondary); text-shadow: 0 0 40px color-mix(in srgb, var(--inv-accent) 40%, transparent); }
.inv--night-stars .inv-sparkle { color: var(--inv-accent); letter-spacing: .6em; font-size: 14px; }
.inv--night-stars .inv-pill { border: 1px solid var(--inv-accent); border-radius: var(--r-pill); padding: 10px 22px; font-size: 14px; }
.inv--night-stars .inv-countdown div { background: rgba(255, 255, 255, .06); border: 1px solid color-mix(in srgb, var(--inv-accent) 40%, transparent); }
.inv--night-stars .latin { color: var(--inv-accent); font-size: 20px; }

/* family: garden-floral */
.inv--garden-floral { background: linear-gradient(to bottom, var(--inv-secondary), color-mix(in srgb, var(--inv-primary) 12%, var(--inv-secondary))); color: #4A3B36; }
.inv--garden-floral .inv-card { background: color-mix(in srgb, var(--inv-primary) 10%, #fff); border-radius: 280px 280px 24px 24px; padding: 48px clamp(18px, 5vw, 44px) 40px; display: flex; flex-direction: column; align-items: center; gap: 20px; box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--inv-primary) 60%, transparent); }
.inv--garden-floral .inv-bloom { width: min(220px, 50vw); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 8px rgba(255, 255, 255, .6); }
.inv--garden-floral .inv-bloom img { width: 100%; height: 100%; object-fit: cover; }
.inv--garden-floral .inv-names { color: var(--inv-primary); }
.inv--garden-floral .inv-leaf { color: var(--inv-accent); font-weight: 500; }
.inv--garden-floral .inv-countdown div { background: rgba(255, 255, 255, .6); color: var(--inv-primary); }

/* family: minimal-modern */
.inv--minimal-modern { background: var(--inv-secondary); color: var(--inv-primary); }
.inv--minimal-modern .inv-card { text-align: right; background: #fff; padding: clamp(32px, 7vw, 64px) clamp(22px, 6vw, 56px); display: flex; flex-direction: column; gap: 28px; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 30px 60px -40px rgba(0, 0, 0, .35); }
.inv--minimal-modern .inv-label { font-size: 12px; letter-spacing: .35em; color: #5E5A52; }
.inv--minimal-modern .inv-big { display: flex; flex-direction: column; gap: 0; }
.inv--minimal-modern .inv-big b { font-size: clamp(44px, 12vw, 76px); font-weight: 700; line-height: 1.2; }
.inv--minimal-modern .inv-big span { font-size: clamp(22px, 5vw, 30px); font-weight: 300; color: var(--inv-accent); line-height: 1.4; }
.inv--minimal-modern .inv-details { border-top: 1.5px solid currentColor; padding-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 14px; }
.inv--minimal-modern .inv-details dt { font-size: 12px; color: #5E5A52; }
.inv--minimal-modern .inv-details dd { margin: 0; font-weight: 500; }
.inv--minimal-modern .inv-message, .inv--minimal-modern .inv-countdown { margin-inline: 0; justify-content: flex-start; }
.inv--minimal-modern .inv-countdown div { border: 1px solid currentColor; }

/* family: art-deco */
.inv--art-deco { background: var(--inv-primary); color: var(--inv-secondary);
  background-image: repeating-conic-gradient(from 0deg at 50% 110%, color-mix(in srgb, var(--inv-accent) 10%, transparent) 0 2deg, transparent 2deg 9deg); }
.inv--art-deco .inv-card { background: var(--inv-primary); padding: 16px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.inv--art-deco .inv-frame { border: 1px solid var(--inv-accent); padding: clamp(32px, 7vw, 56px) clamp(18px, 5vw, 40px); display: flex; flex-direction: column; align-items: center; gap: 22px; position: relative; }
.inv--art-deco .inv-frame::before, .inv--art-deco .inv-frame::after { content: ""; position: absolute; inset: 6px; border: 1px solid color-mix(in srgb, var(--inv-accent) 45%, transparent); pointer-events: none;
  clip-path: polygon(0 0, 22% 0, 22% 1px, 78% 1px, 78% 0, 100% 0, 100% 100%, 78% 100%, 78% calc(100% - 1px), 22% calc(100% - 1px), 22% 100%, 0 100%); }
.inv--art-deco .inv-fan { width: 120px; height: 60px; color: var(--inv-accent); }
.inv--art-deco .inv-fan--down { transform: rotate(180deg); }
.inv--art-deco .inv-the { font-family: var(--f-latin); letter-spacing: .45em; font-size: 14px; color: var(--inv-accent); direction: ltr; }
.inv--art-deco .inv-names { color: var(--inv-secondary); }
.inv--art-deco .inv-countdown div { border: 1px solid var(--inv-accent); color: var(--inv-accent); }

/* RSVP panel adapts to family through custom properties */
.rsvp { background: var(--paper); color: var(--ink); border-radius: var(--r-l); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-m); display: flex; flex-direction: column; gap: 20px; text-align: right; }
.rsvp h2 { font-size: 20px; }
.rsvp-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rsvp-options .choice { justify-content: center; text-align: center; }
@media (max-width: 420px) { .rsvp-options { grid-template-columns: 1fr; } }
.rsvp .btn { --btn-bg: var(--inv-primary, var(--teal)); --btn-fg: var(--inv-secondary, var(--ivory)); }
.rsvp-status { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }

/* 14. Errors / misc -------------------------------------------------------- */
.error-page { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 48px 16px; position: relative; overflow: hidden; isolation: isolate; background: var(--teal); color: var(--on-dark); }
.error-page > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; }
.error-page::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 60% at 50% 50%, rgba(14, 42, 46, .55), rgba(14, 42, 46, .95)); }
.error-page__code { font-family: var(--f-latin); font-style: italic; font-size: clamp(96px, 18vw, 200px); line-height: 1; color: var(--gold); opacity: .9; letter-spacing: .02em; }
.error-page__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 560px; }
.error-page .nastaliq { font-size: clamp(28px, 4vw, 40px); }

/* 15. Reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .kenburns, .marquee__track, .seal svg, .shimmer, .inv-sky i { animation: none !important; }
  .js [data-reveal], .js .hero [data-hero] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js .journey__step::before { transform: scaleX(1); }
  [data-parallax] { transform: none !important; }
  .js .curtain { display: none; }
  .marquee__track { flex-wrap: wrap; width: auto; }
  .marquee__group[aria-hidden="true"] { display: none; }
}

@media print {
  .site-header, .site-footer, .curtain, .menu-panel, .flash { display: none !important; }
  body { background: #fff; }
  main { padding-top: 0 !important; }
}

/* Minimal chrome (invitations): no fixed header, so no offset. */
body.chrome-minimal main { padding-top: 0; }
.inv--minimal-modern .inv-card .stack { align-items: flex-start !important; }
.inv--minimal-modern .inv-countdown { justify-content: flex-start; }
.inv--night-stars .inv-pill { border: 1px solid var(--inv-accent); border-radius: var(--r-pill); padding: 10px 22px; font-size: 14px; }
