/* Niyayesh — shared styles. Logical properties throughout so RTL mirrors. */

:root {
  --bg: #14110d;
  --bg-glow: #2a2116;
  --bg-raised: #1c1812;
  --ink: #efe6d6;
  --muted: #c4b79e;
  --gold: #c9a45c;
  --gold-soft: rgba(201, 164, 92, 0.14);
  --line: rgba(201, 164, 92, 0.35);
  --field: rgba(201, 164, 92, 0.6);
  --danger: #e2a08a;
  --max: 1280px;
  --text: 40rem;
  --gutter: 16px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Vazirmatn", system-ui, sans-serif;
  color-scheme: dark;
}
@media (min-width: 760px) { :root { --gutter: 40px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse 70% 42% at 50% 18%, var(--bg-glow) 0%, transparent 70%) no-repeat,
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 2;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="en"] body { font-family: var(--serif); font-size: 21px; line-height: 1.6; font-weight: 500; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] .hero-title { font-weight: 400; }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-weight: 400; line-height: 1.25; margin: 0 0 0.6em; }
html[lang="fa"] h1, html[lang="fa"] h2, html[lang="fa"] h3 { font-weight: 300; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

/* Language blocks */
[data-lang] { display: none; }
html[lang="en"] [data-lang="en"], html[lang="fa"] [data-lang="fa"] { display: revert; }

/* Top bar. The language switch is pinned to the physical right in both
   languages so it never moves when the language changes; the bar reserves
   room for it with a physical right padding. */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  height: 64px; line-height: 1.5;
  padding-left: var(--gutter);
  padding-right: calc(var(--gutter) + 104px);
  background: rgba(20, 17, 13, 0.9);
  backdrop-filter: blur(8px);
  border-block-end: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 20px; }
.emblem { width: 28px; height: 28px; color: var(--gold); flex: none; }
.nav-links { display: none; gap: 28px; margin-inline-start: auto; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.topbar > .btn { margin-inline-start: auto; padding: 6px 16px; font-size: 15px; }
@media (min-width: 760px) {
  .nav-links { display: flex; }
  .topbar > .btn { margin-inline-start: 0; }
}
@media (max-width: 420px) { .brand-name { display: none; } }

.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; direction: ltr; }
.topbar .lang { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); }
.lang button {
  appearance: none; background: transparent; border: 0; cursor: pointer;
  width: 44px; color: var(--muted); padding: 4px 0; font-size: 14px; line-height: 1.6;
}
.lang button:first-child { font-family: var(--serif); font-size: 16px; }
.lang button:last-child { font-family: var(--sans); }
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--bg); }

/* Buttons */
.btn {
  display: inline-block; border-radius: 999px; padding: 10px 26px;
  text-decoration: none; font: inherit; font-size: 17px; line-height: 1.5;
  border: 1px solid var(--gold); cursor: pointer; transition: background 0.2s, color 0.2s;
}
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: #d8b673; }
.btn-ghost { background: transparent; color: var(--gold); }
.btn-ghost:hover { background: var(--gold-soft); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Hero: typographic, on the dark glow, as on the original page. */
.hero { min-height: calc(92svh - 64px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 64px var(--gutter) 72px; }
.hero-emblem { width: 84px; height: 84px; color: var(--gold); margin-bottom: 32px; }
.hero-title { margin: 0; line-height: 1.1; color: var(--ink); }
html[lang="fa"] .hero-title { font-weight: 300; font-size: clamp(64px, 14vw, 128px); }
html[lang="en"] .hero-title { font-size: clamp(56px, 12vw, 112px); letter-spacing: 0.06em; }
.hero-sub { margin: 12px 0 0; color: var(--gold); }
html[lang="fa"] .hero-sub { font-family: var(--serif); font-style: italic; font-size: 22px; letter-spacing: 0.08em; }
html[lang="en"] .hero-sub { font-family: var(--sans); font-size: 20px; }
.divider { display: flex; align-items: center; gap: 14px; width: min(280px, 70vw); margin: 32px auto; color: var(--gold); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to right, transparent, var(--line)); }
.divider::after { background: linear-gradient(to left, transparent, var(--line)); }
.hero-credit { margin: 0 0 12px; letter-spacing: 0.03em; }
.hero-lead { color: var(--muted); max-width: 32em; margin: 0 auto 32px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* One orchestrated entrance, for the hero only. */
.hero > * { animation: rise 1.2s ease-out both; }
.hero > :nth-child(2) { animation-delay: 0.15s; }
.hero > :nth-child(3) { animation-delay: 0.3s; }
.hero > :nth-child(4) { animation-delay: 0.4s; }
.hero > :nth-child(n+5) { animation-delay: 0.5s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Wide photographs between sections: uncropped, aligned to the text column. */
.band { width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto; }
.band img { width: 100%; }

/* Sections */
.section { max-width: var(--max); margin-inline: auto; padding: 96px var(--gutter); }
.section-narrow { max-width: calc(var(--text) + 2 * var(--gutter)); }
@media (min-width: 760px) { .section { padding-block: 112px; } }
/* Consecutive sections share one gap instead of stacking two. */
.section + .section { padding-top: 0; }
.section h2 { font-size: clamp(32px, 4.6vw, 46px); }
.section-head { margin-bottom: 48px; max-width: 36em; }
.section-head.centered { text-align: center; margin-inline: auto; }
.section-head p { color: var(--muted); }
.muted, .note { color: var(--muted); }
.panel { background: var(--bg-raised); border: 1px solid var(--line); padding: 32px 28px; }
@media (min-width: 760px) { .panel { padding: 40px 40px; } }
.note { font-size: 0.85em; }

/* Split layouts: a heading column beside the text, or text beside a portrait crop. */
.split { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
  .split.reverse { grid-template-columns: 7fr 5fr; }
}
.stat { margin: 16px 0 0; }
.stat strong { display: block; font-size: clamp(56px, 8vw, 80px); line-height: 1; color: var(--gold); font-weight: 400; }
.stat span { color: var(--muted); }
.portrait { margin: 0; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.portrait-daf img { object-position: 30% 50%; }
.portrait-duo img { object-position: 78% 50%; }

/* Works */
.works { list-style: none; padding: 0; margin: 0 0 24px; }
.work { padding: 18px 0; border-block-end: 1px solid var(--line); }
.work:first-child { border-block-start: 1px solid var(--line); }
.work h3 { margin: 0; font-size: 30px; }
.work p { margin: 2px 0 0; color: var(--muted); }

/* Invitation: a quiet closing moment, no box. */
.invite { text-align: center; padding: 112px var(--gutter) 128px; max-width: calc(36em + 2 * var(--gutter)); margin: 0 auto; }
.invite h2 { font-size: clamp(32px, 5vw, 46px); }
.invite p { color: var(--muted); margin: 0 auto 32px; }

/* Partnership intro */
.intro h1 { font-size: clamp(42px, 6.4vw, 68px); line-height: 1.1; }
.intro p { color: var(--muted); font-size: 1.1em; }

/* Reasons: three columns, separated by space, not boxes. */
.pillars { display: grid; gap: 40px; }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.pillar { background: var(--bg-raised); border: 1px solid var(--line); padding: 32px 28px; }
.pillar h3 { color: var(--gold); font-size: 26px; margin-bottom: 8px; }
.pillar p { margin: 0; color: var(--muted); }

/* Reach figures, unboxed. */
.figures { display: grid; gap: 40px 32px; grid-template-columns: repeat(2, 1fr); margin: 0 0 40px; }
.panel .figures:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .figures { grid-template-columns: repeat(4, 1fr); } .figures.two { grid-template-columns: repeat(4, 1fr); } }
.figure strong { display: block; color: var(--gold); font-size: clamp(36px, 5vw, 52px); font-weight: 400; line-height: 1.1; }
.figure span { color: var(--muted); }
.subhead { font-size: 24px; margin: 0 0 24px; padding-top: 32px; border-block-start: 1px solid var(--line); }

/* Release campaign: a real sequence, so it is numbered. */
.timeline { list-style: none; padding: 0; margin: 40px 0; display: grid; counter-reset: step; }
.timeline li { counter-increment: step; position: relative; padding: 0 0 24px; padding-inline-start: 40px; }
.timeline li::before { content: counter(step); position: absolute; inset-inline-start: 0; top: 0; width: 24px; text-align: center; color: var(--gold); }
html[lang="fa"] .timeline li::before { content: counter(step, persian); }
.timeline li::after { content: ""; position: absolute; inset-inline-start: 12px; top: 2em; bottom: 6px; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
  .timeline li { padding: 14px 0 0; border-block-start: 1px solid var(--line); }
  .timeline li::before { position: static; display: block; width: auto; text-align: start; }
  .timeline li::after { display: none; }
}

/* Tiers: only the Exclusive level is framed. */
/* Tiers: three equal panels; the Exclusive level leads by order and price only. */
.tiers { display: grid; gap: 24px; align-items: stretch; }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { background: var(--bg-raised); border: 1px solid var(--line); padding: 32px 28px; }
.tier h3 { font-size: 28px; margin-bottom: 2px; }
.tier-alt { color: var(--muted); font-size: 0.9em; margin-bottom: 18px; }
.tier-price { color: var(--gold); font-size: 42px; line-height: 1.2; margin: 0; direction: ltr; unicode-bidi: isolate; }
html[lang="fa"] .tier-price { text-align: right; }
.tier-places { color: var(--muted); margin-bottom: 20px; }
.patrons { margin-top: 64px; max-width: 40em; }
.patrons h3 { color: var(--gold); font-size: 26px; }
.patrons p { margin: 0; color: var(--muted); }

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-inline-start: 1.6em; margin-bottom: 0.7em; break-inside: avoid; }
.ticks li::before { content: "✦"; position: absolute; inset-inline-start: 0; color: var(--gold); font-size: 0.8em; top: 0.25em; }
.ticks.columns { columns: 2 22em; column-gap: 56px; }

.principle { border-inline-start: 2px solid var(--gold); padding-inline-start: 28px; margin-top: 64px; max-width: 44em; }
.principle h3 { color: var(--gold); font-size: 26px; }

.two-col { display: grid; gap: 56px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 80px; } }
.two-col h2 { font-size: clamp(28px, 4vw, 38px); }

/* Contact */
/* Contact: the form and the WhatsApp option are two matching panels, top-aligned. */
.contact { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: 3fr 2fr; } .whatsapp { position: sticky; top: 96px; } }
.form { display: grid; gap: 22px; }
html:not(.js) #contact-form { display: none; }
.field label, .choices legend { display: block; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  background: var(--bg-raised); border: 1px solid var(--field); border-radius: 4px; padding: 10px 12px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--gold); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-size: 0.85em; margin: 6px 0 0; overflow-wrap: anywhere; }
.choices { border: 0; padding: 0; margin: 0; }
.choices label { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; }
.choices input { accent-color: var(--gold); width: 18px; height: 18px; }
.trap { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border: 1px solid var(--danger); color: var(--ink); }
.form-status .btn { margin-top: 12px; }
.form-success { padding: 40px 28px; border: 1px solid var(--gold); background: var(--bg-raised); text-align: center; }
.form-success h3 { color: var(--gold); font-size: 30px; }
.privacy { color: var(--muted); font-size: 0.85em; margin: 0; }
.whatsapp p { margin-bottom: 24px; }
.whatsapp h3 { color: var(--gold); font-size: 26px; }
.whatsapp p { color: var(--muted); }

/* Footer */
.footer { border-block-start: 1px solid var(--line); padding: 32px var(--gutter); text-align: center; color: var(--muted); font-size: 0.85em; }
.footer p { margin: 0.2em 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero > * { animation: none; }
}
.panel + .note { margin-top: 20px; }
.section + .invite { padding-top: 0; }
