:root {
  --ink: #0c0c0d;
  --card: #151515;
  --line: rgba(201, 163, 90, .28);
  --gold: #c9a35a;
  --gold-deep: #7d5f22;
  --paper: #f5f1e8;
  --paper-2: #ece6d8;
  --text: #17150f;
  --muted: #5d574a;
  --on-dark: #f1ece2;
  --on-dark-muted: #a8a194;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Arabic", "Segoe UI", Roboto, "Noto Sans Arabic", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.6 var(--sans);
  color: var(--text);
  background: var(--paper);
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }

/* ---------- The stage: the card on black ---------- */
.stage {
  position: relative;
  min-height: 100svh;
  padding: max(20px, env(safe-area-inset-top)) 16px 28px;
  background: radial-gradient(120% 70% at 50% 0%, #1b1a17 0%, var(--ink) 60%);
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.is-open .stage { min-height: 0; padding-bottom: 40px; }

.langs { align-self: flex-end; display: flex; gap: 4px; margin-bottom: 18px; }
.langs button {
  min-width: 44px; height: 40px; padding: 0 12px;
  border: 1px solid transparent; border-radius: 999px;
  background: none; color: var(--on-dark-muted);
  font-size: 13px; letter-spacing: .04em; cursor: pointer;
}
.langs button[aria-pressed="true"] { color: var(--on-dark); border-color: var(--line); }
[dir="rtl"] .langs { align-self: flex-start; }

.scene { width: 100%; max-width: 340px; margin: auto 0; perspective: 1400px; }
.is-open .scene { margin: 8px 0 0; }

.card {
  position: relative;
  z-index: 2;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  transition: border-radius .5s var(--ease-out);
}
.is-open .card { border-radius: 20px 20px 0 0; }

.card-photo { display: block; aspect-ratio: 624 / 600; overflow: hidden; background: #000; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }

.card-body { padding: 18px 22px 64px; }
.card-name { font: 600 28px/1.15 var(--serif); letter-spacing: -.01em; }
[lang="ar"] .card-name { font: 700 26px/1.3 var(--sans); letter-spacing: 0; }
.card-title { margin-top: 6px; font-size: 13px; color: var(--gold); letter-spacing: .02em; }
[lang="ar"] .card-title { letter-spacing: 0; font-size: 14px; }
.card-rule { display: block; width: 36px; height: 1px; background: var(--gold); opacity: .6; margin: 16px 0 12px; }

.card-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.card-lines a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  text-decoration: none; padding: 4px 0;
}
.card-lines .lbl { color: var(--on-dark-muted); font-size: 12px; }
.card-lines bdi { color: var(--on-dark); overflow-wrap: anywhere; }

.card-open {
  position: absolute; inset-inline-end: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(201, 163, 90, .08); color: var(--gold);
  font-size: 13px; cursor: pointer;
}
.card-open svg { transition: transform .45s var(--ease-out); }
.is-open .card-open svg { transform: rotate(180deg); }

/* ---------- The flap that unfolds under the card ---------- */
.flap {
  position: relative;
  z-index: 1;
  background: var(--paper);
  color: var(--text);
  border-radius: 0 0 20px 20px;
  padding: 24px 22px 24px;
  transform-origin: 50% 0;
}
.js .flap {
  display: none;
  transform: rotateX(-88deg);
  opacity: 0;
}
.js.is-open .flap { display: block; animation: unfold .7s var(--ease-out) forwards; }
@keyframes unfold {
  0%   { transform: rotateX(-88deg); opacity: 0; filter: brightness(.55); }
  15%  { opacity: 1; }
  100% { transform: rotateX(0); opacity: 1; filter: brightness(1); }
}

.headline { font: 600 21px/1.35 var(--serif); }
[lang="ar"] .headline { font: 700 20px/1.6 var(--sans); }
.line { margin-top: 12px; color: var(--muted); font-size: 15px; font-style: italic; }
[lang="ar"] .line { font-style: normal; }
.flap-actions { display: grid; gap: 10px; margin-top: 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 20px;
  border-radius: 12px; text-decoration: none; text-align: center;
  font-size: 15px; font-weight: 600; line-height: 1.3;
}
.btn-gold { background: var(--gold); color: #1b1408; }
.btn-ghost { border: 1px solid #cfc6b4; color: var(--text); }
.btn-dark { background: var(--ink); color: var(--on-dark); margin-top: 20px; }
.btn-outline { border: 1px solid var(--text); color: var(--text); margin-top: 20px; }

.hint { margin-top: 18px; font-size: 13px; color: var(--on-dark-muted); text-align: center; }
.save {
  margin-top: 10px; font-size: 13px; color: var(--gold);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.is-open .hint { display: none; }

/* ---------- The page below ---------- */
.js .more { display: none; }
.js.is-open .more { display: block; animation: rise .6s .35s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.more { max-width: 640px; margin: 0 auto; padding: 8px 16px max(40px, env(safe-area-inset-bottom)); }
.block { padding: 32px 6px; border-top: 1px solid var(--paper-2); }
.block:first-child { border-top: 0; }
.block h2 { font: 600 26px/1.2 var(--serif); margin-bottom: 14px; }
[lang="ar"] .block h2 { font: 700 24px/1.4 var(--sans); }
.block p + p { margin-top: 12px; }
.kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 8px; }
[lang="ar"] .kicker { letter-spacing: 0; font-size: 13px; }
.meta { font-weight: 600; margin-bottom: 12px; }
.note { color: var(--muted); font-size: 14px; }

.services { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.services li { position: relative; padding-inline-start: 44px; counter-increment: s; }
.services li + li { margin-top: 22px; }
.services li::before {
  content: "0" counter(s);
  position: absolute; inset-inline-start: 0; top: 2px;
  font: 600 15px/1 var(--serif); color: var(--gold-deep);
}
.services h3 { font-size: 17px; margin-bottom: 4px; }

.event { background: var(--paper-2); border-radius: 18px; border-top: 0; padding: 28px 22px; margin: 8px 0; }
.event + .block { border-top: 0; }

.contact ul { list-style: none; padding: 0; margin: 0; }
.contact li + li { border-top: 1px solid var(--paper-2); }
.contact a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; text-decoration: none; }
.contact a span { color: var(--muted); }
.contact bdi { font-weight: 600; overflow-wrap: anywhere; }
.fold-back {
  margin-top: 28px; background: none; border: 0; padding: 8px 0;
  color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

@media (min-width: 720px) {
  .scene { max-width: 380px; }
  .flap-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .js.is-open .flap, .js.is-open .more { animation: none; transform: none; opacity: 1; }
  .card, .card-open svg { transition: none; }
}
