/* ============================================================
   NASEROUN — naseroun.com
   Deep ink canvas · sacred emerald · divine gold · bone text
   ============================================================ */

:root {
  --ink:        #0b0f0d;
  --ink-soft:   #101613;
  --bone:       #eae3d3;
  --bone-dim:   rgba(234, 227, 211, 0.64);
  --bone-faint: rgba(234, 227, 211, 0.52);
  --emerald:       #2f8b66;
  --emerald-deep:  #1c5c44;
  --emerald-glow:  rgba(47, 139, 102, 0.35);
  --gold:       #c9a45c;
  --gold-soft:  rgba(201, 164, 92, 0.55);
  --gold-faint: rgba(201, 164, 92, 0.16);
  --serif:  "Cormorant Garamond", "Georgia", serif;
  --sans:   "Inter", "Segoe UI", sans-serif;
  --arabic: "Amiri", "Traditional Arabic", "Scheherazade New", serif;
  --ease-slow: cubic-bezier(0.22, 0.08, 0.14, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
  overflow-x: clip;
}

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--emerald-deep); color: var(--bone); }

/* ---------- ambient: grain + vignette ---------- */

.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 70;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 9s steps(6) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-1.5%, 1%); }
  50%  { transform: translate(1%, -1.5%); }
  75%  { transform: translate(-1%, -0.5%); }
  100% { transform: translate(0, 0); }
}

.vignette {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 69;
  background: radial-gradient(ellipse 120% 90% at 50% 45%,
              transparent 55%, rgba(4, 6, 5, 0.55) 100%);
}

/* ---------- header ---------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.4rem clamp(1.2rem, 4vw, 3rem);
  transition: background 1s var(--ease-slow), backdrop-filter 1s;
}
.site-header.is-scrolled {
  background: linear-gradient(to bottom, rgba(8, 11, 10, 0.82), rgba(8, 11, 10, 0));
  backdrop-filter: blur(2px);
}

.brand { text-decoration: none; color: var(--bone); display: flex; align-items: baseline; gap: 1rem; }
.brand-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.22em;
  padding-left: 0.22em; /* optically recenter tracked caps */
}
.brand-motto {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

.lang { display: flex; align-items: baseline; gap: 0.6rem; font-size: 0.8rem; }
.lang-link {
  color: var(--bone-faint);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.6s;
}
.lang-link:hover { color: var(--gold); }
.lang-link.is-current { color: var(--bone); border-bottom: 1px solid var(--gold-soft); padding-bottom: 2px; }
.lang-sep { color: var(--bone-faint); }
.lang-link[lang="fa"], .lang-link[lang="ar"] { font-family: var(--arabic); font-size: 0.95rem; }

/* ---------- vertical progress ---------- */

.progress {
  position: fixed;
  right: clamp(0.9rem, 2.5vw, 2.2rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  gap: 0.9rem;
}
.progress-line {
  width: 1px;
  background: rgba(234, 227, 211, 0.14);
  position: relative;
  order: 2;
}
.progress-fill {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 0%;
  background: linear-gradient(to bottom, var(--gold-soft), var(--emerald));
  transition: height 0.4s linear;
}
.progress ol { list-style: none; display: flex; flex-direction: column; gap: 2.1rem; text-align: right; }
.progress a {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.55rem;
  color: var(--bone-faint);
  transition: color 0.8s;
}
.progress .p-num {
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}
.progress .p-name {
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.8s var(--ease-slow), transform 0.8s var(--ease-slow);
}
.progress a:hover .p-name { opacity: 0.7; transform: none; }
.progress a.is-active { color: var(--gold); }
.progress a.is-active .p-name { opacity: 1; transform: none; color: var(--bone-dim); }

/* ---------- scrub steps (pinned media + phased overlay) ---------- */

.step-scrub {
  position: relative;
  height: var(--pin-h, 400vh);
}

.media {
  position: sticky;
  top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 46%, var(--gold-faint), transparent 72%),
    var(--ink);
}
.media .poster,
.media .scrub-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.media .scrub-video {
  opacity: 0;
  transition: opacity 2.4s var(--ease-slow);
}
.media.video-ready .scrub-video { opacity: 1; }

/* darkening veils so bone text stays legible over each scene */
.media-veil { position: absolute; inset: 0; pointer-events: none; }
.veil-cry {
  background:
    radial-gradient(64% 54% at 50% 46%, rgba(11, 15, 13, 0.48), transparent 80%),
    linear-gradient(to bottom, rgba(11, 15, 13, 0.6) 0%, rgba(11, 15, 13, 0.24) 34%,
                    rgba(11, 15, 13, 0.34) 66%, rgba(11, 15, 13, 0.82) 100%),
    radial-gradient(90% 70% at 50% 52%, rgba(11, 15, 13, 0.14), rgba(11, 15, 13, 0.55) 100%);
}
.veil-pledge {
  background:
    radial-gradient(58% 62% at 46% 50%, rgba(11, 15, 13, 0.52), transparent 78%),
    linear-gradient(to bottom, rgba(11, 15, 13, 0.5) 0%, rgba(11, 15, 13, 0.2) 40%,
                    rgba(11, 15, 13, 0.38) 72%, rgba(11, 15, 13, 0.8) 100%),
    linear-gradient(to right, rgba(11, 15, 13, 0.46), transparent 48%);
}
.veil-call {
  background:
    linear-gradient(to bottom, rgba(11, 15, 13, 0.55) 0%, rgba(11, 15, 13, 0.22) 38%,
                    rgba(11, 15, 13, 0.5) 74%, rgba(11, 15, 13, 0.85) 100%);
}

/* the overlay pins itself over the sticky media for the whole section */
.overlay {
  position: sticky;
  top: 0;
  height: 100vh; height: 100svh;
  margin-top: -100vh; margin-top: -100svh;
  pointer-events: none;
  z-index: 2;
}

.phase {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.2rem, 4vw, 4rem);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.6s var(--ease-slow), transform 1.9s var(--ease-slow);
  will-change: opacity, transform;
}
.phase.on {
  opacity: 1;
  transform: none;
}
.phase-form.on { pointer-events: auto; }

/* ---------- shared type ---------- */

.kicker {
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
  text-shadow: 0 1px 14px rgba(4, 6, 5, 0.85);
}

.hon { font-size: 0.6em; vertical-align: 0.25em; letter-spacing: 0.05em; color: var(--bone-dim); }

/* step 1 — hero */
.site-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 7.4vw, 5.2rem);
  letter-spacing: 0.24em;
  padding-left: 0.24em;
  line-height: 1.1;
  text-shadow: 0 0 60px rgba(201, 164, 92, 0.25);
}
.motto {
  margin-top: 1.4rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  color: var(--bone);
  letter-spacing: 0.06em;
  text-shadow: 0 1px 18px rgba(4, 6, 5, 0.9);
}
.scroll-hint {
  position: absolute;
  bottom: clamp(1.6rem, 5vh, 3rem);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.hint-line {
  display: block;
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--gold-soft), transparent);
  animation: hint-drift 3.6s var(--ease-slow) infinite;
}
@keyframes hint-drift {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50%      { transform: translateY(8px); opacity: 0.4; }
}

.context {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.8vw, 1.8rem);
  line-height: 1.85;
  color: var(--bone);
  max-width: 44ch;
  text-shadow: 0 1px 20px rgba(4, 6, 5, 0.95), 0 0 50px rgba(4, 6, 5, 0.75);
}

/* the intro + the calls (Arabic with Persian translation) */
.intro-ar {
  margin-top: 1.4rem;
  font-family: var(--arabic);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  line-height: 2;
  color: var(--bone-dim);
  max-width: 40ch;
  text-shadow: 0 1px 16px rgba(4, 6, 5, 0.95);
}
.nida-ar {
  font-family: var(--arabic);
  font-size: clamp(1.9rem, 5.4vw, 3.4rem);
  line-height: 2;
  color: var(--bone);
  max-width: 24ch;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.6);
  unicode-bidi: isolate;
}
.nida-en {
  margin-top: 1.8rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  color: var(--bone);
  max-width: 52ch;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 18px rgba(4, 6, 5, 0.95), 0 0 46px rgba(4, 6, 5, 0.8);
}
.citation {
  justify-content: flex-end;
  padding-bottom: clamp(1.4rem, 4vh, 2.6rem);
  align-items: center;
}
.citation span {
  display: inline;
  max-width: 60ch;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--bone-dim);
  text-shadow: 0 1px 12px rgba(4, 6, 5, 0.95);
  transform: none;
  transition: opacity 2s var(--ease-slow);
}
.citation em { font-style: italic; color: var(--bone); }

/* step 2 — pledge */
.lead-line {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4.4vw, 3rem);
  line-height: 1.65;
  max-width: 30ch;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.55);
}
.lead-line em {
  font-style: italic;
  color: var(--gold);
}
.duty-num {
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 1.1rem;
  text-shadow: 0 1px 14px rgba(4, 6, 5, 0.9);
}
.nida-label { text-shadow: 0 1px 14px rgba(4, 6, 5, 0.85); }
.duty-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  letter-spacing: 0.04em;
  margin-bottom: 1.6rem;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.55);
}
.duty-body {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  line-height: 1.95;
  color: var(--bone);
  max-width: 56ch;
  text-shadow: 0 1px 22px rgba(4, 6, 5, 0.9), 0 0 60px rgba(4, 6, 5, 0.7);
}

/* on wide screens the pledge text lives in the darkened left column,
   leaving the rider unobscured */
@media (min-width: 861px) {
  #pledge .phase {
    align-items: flex-start;
    text-align: left;
    padding-left: clamp(3rem, 9vw, 10rem);
    padding-right: 44vw;
  }
  #pledge .lead-line { max-width: 20ch; font-size: clamp(1.6rem, 3.6vw, 2.6rem); }
  #pledge .duty-body { max-width: 40ch; }
}

/* step 3 — the call + form */
.call-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5.8vw, 3.8rem);
  line-height: 1.4;
  max-width: 22ch;
  text-shadow: 0 2px 44px rgba(0, 0, 0, 0.65);
}

.phase-form { justify-content: center; }

.form-card {
  width: min(94vw, 460px);
  max-height: 92svh;
  overflow-y: auto;
  background: rgba(10, 14, 12, 0.72);
  border: 1px solid rgba(201, 164, 92, 0.18);
  border-radius: 4px;
  padding: clamp(1.2rem, 2.6vw, 1.8rem) clamp(1.1rem, 2.6vw, 1.7rem);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 120px rgba(201, 164, 92, 0.07);
  text-align: left;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 164, 92, 0.25) transparent;
}
.form-card::-webkit-scrollbar { width: 4px; }
.form-card::-webkit-scrollbar-track { background: transparent; }
.form-card::-webkit-scrollbar-thumb { background: rgba(201, 164, 92, 0.25); border-radius: 2px; }

.form-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.form-sub {
  font-size: 0.8rem;
  color: var(--bone-dim);
  margin-bottom: 1.15rem;
  line-height: 1.6;
}

.field { margin-bottom: 0.85rem; }
.field-row { display: flex; gap: 0.9rem; }
.field-row .field { flex: 1; min-width: 0; }

.field label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-faint);
  margin-bottom: 0.3rem;
}
.field .opt { text-transform: none; letter-spacing: 0.04em; opacity: 0.7; }

.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(234, 227, 211, 0.04);
  border: 1px solid rgba(234, 227, 211, 0.16);
  border-radius: 2px;
  color: var(--bone);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.6rem 0.8rem;
  outline: none;
  transition: border-color 0.6s, background 0.6s, box-shadow 0.6s;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23c9a45c' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
}
.field select option { background: var(--ink-soft); color: var(--bone); }
.field textarea { resize: vertical; min-height: 96px; line-height: 1.7; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--emerald);
  background: rgba(47, 139, 102, 0.05);
  box-shadow: 0 0 0 3px rgba(47, 139, 102, 0.12);
}

.field-error {
  display: none;
  font-size: 0.72rem;
  color: #d9a05e;
  margin-top: 0.4rem;
  letter-spacing: 0.03em;
}
.field.has-error input,
.field.has-error textarea { border-color: rgba(217, 160, 94, 0.6); }
.field.has-error .field-error { display: block; }

.btn {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.85rem 1rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone);
  background: linear-gradient(to bottom, rgba(47, 139, 102, 0.32), rgba(28, 92, 68, 0.32));
  border: 1px solid rgba(47, 139, 102, 0.55);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.8s, border-color 0.8s, box-shadow 0.8s;
}
.btn:hover, .btn:focus-visible {
  background: linear-gradient(to bottom, rgba(47, 139, 102, 0.5), rgba(28, 92, 68, 0.5));
  border-color: var(--emerald);
  box-shadow: 0 0 40px rgba(47, 139, 102, 0.18);
  outline: none;
}

.privacy {
  margin-top: 0.85rem;
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--bone-faint);
  text-align: center;
  letter-spacing: 0.03em;
}

/* short viewports: the whole join card must fit on screen, no inner scroll */
@media (max-height: 720px) {
  .phase-form .form-sub { display: none; }
  .phase-form .form-title { font-size: 1.3rem; margin-bottom: 0.7rem; }
  .phase-form .field { margin-bottom: 0.6rem; }
  .phase-form .field input,
  .phase-form .field select { padding: 0.5rem 0.75rem; }
  .phase-form .btn { padding: 0.7rem 1rem; }
  .phase-form .privacy { margin-top: 0.6rem; font-size: 0.64rem; }
  .phase-form .privacy .br-wide { display: none; }
}

.form-success {
  text-align: center;
  padding: 1.6rem 0.4rem;
  animation: success-in 1.6s var(--ease-slow);
}
@keyframes success-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.success-mark {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
  text-shadow: 0 0 30px rgba(201, 164, 92, 0.5);
}
.success-body {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--bone-dim);
  line-height: 1.85;
}

/* ---------- interludes (flow sections between the pinned scenes) ---------- */

.interlude {
  position: relative;
  display: flex;
  justify-content: center;
  padding: clamp(6rem, 18vh, 12rem) 1.6rem;
  background:
    radial-gradient(58% 44% at 50% 50%, rgba(201, 164, 92, 0.07), transparent 72%),
    linear-gradient(to bottom, #080b0a, #0d1210 50%, #080b0a);
}
.interlude-inner {
  width: min(94vw, 680px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.seam {
  display: block;
  width: 1px;
  height: clamp(2.4rem, 7vh, 4.5rem);
  background: linear-gradient(to bottom, transparent, var(--gold-soft), transparent);
}
.interlude .kicker { margin-top: 2.2rem; }
.interlude-statement {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.8vw, 2.4rem);
  line-height: 1.7;
  color: var(--bone);
  margin: 2.4rem 0 2.6rem;
  max-width: 26ch;
}
.interlude-q {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  color: var(--bone-dim);
}
.interlude-q.q-gold {
  font-size: clamp(1.4rem, 3.6vw, 2.2rem);
  color: var(--gold);
  margin: 1.1rem 0 2.4rem;
}
.interlude-lead {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.8vw, 1.7rem);
  line-height: 1.85;
  color: var(--bone);
  max-width: 40ch;
  margin-bottom: 3.2rem;
}
.interlude-lead em { font-style: italic; color: var(--gold); }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
  width: 100%;
  text-align: center;
}
.pillar {
  padding: 1.8rem 1.2rem 1.4rem;
  border-top: 1px solid rgba(47, 139, 102, 0.45);
  background: linear-gradient(to bottom, rgba(47, 139, 102, 0.06), transparent 65%);
}
.pillar h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.7rem;
  color: var(--bone);
}
.pillar p {
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--bone-dim);
}

/* ---------- step 4 — ask (normal flow) ---------- */

.step-flow {
  position: relative;
  padding: clamp(6rem, 16vh, 11rem) 1.4rem clamp(5rem, 12vh, 9rem);
  background:
    radial-gradient(70% 46% at 50% 0%, rgba(201, 164, 92, 0.07), transparent 70%),
    linear-gradient(to bottom, #0a0e0c, #0c1210 55%, #0a0e0c);
  display: flex;
  justify-content: center;
}
.ask-inner {
  width: min(94vw, 560px);
  text-align: center;
}
.ask-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.8vw, 2.4rem);
  line-height: 1.55;
  margin-bottom: 1.1rem;
}
.ask-sub {
  font-size: 0.84rem;
  color: var(--bone-dim);
  margin-bottom: 2.6rem;
  letter-spacing: 0.03em;
}
#askCard { width: 100%; max-height: none; margin: 0 auto; }

/* gentle reveal for flow sections */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.8s var(--ease-slow), transform 2s var(--ease-slow);
}
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid rgba(201, 164, 92, 0.14);
  background: #080b0a;
  display: flex;
  justify-content: center;
  padding: clamp(3.5rem, 9vh, 6rem) 1.4rem clamp(2.6rem, 7vh, 4.5rem);
}
.footer-inner { width: min(94vw, 620px); text-align: center; }
.footer-brand {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.24em;
  padding-left: 0.24em;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.footer-mission {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--bone-dim);
  margin-bottom: 1.3rem;
}
.footer-promise {
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--bone-faint);
  margin-bottom: 2rem;
  letter-spacing: 0.03em;
}
.footer-lang { display: flex; justify-content: center; gap: 0.7rem; font-size: 0.8rem; margin-bottom: 1.8rem; color: var(--bone-faint); }
.footer-lang a { color: var(--bone-faint); text-decoration: none; transition: color 0.6s; }
.footer-lang a:hover { color: var(--gold); }
.footer-lang a.is-current { color: var(--bone-dim); }
.footer-lang a[lang="fa"], .footer-lang a[lang="ar"] { font-family: var(--arabic); font-size: 0.95rem; }
.footer-fine {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(234, 227, 211, 0.42);
}

/* ---------- language stub pages ---------- */

.stub-page {
  min-height: 100vh; min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.4rem;
  background:
    radial-gradient(60% 42% at 50% 30%, rgba(201, 164, 92, 0.09), transparent 70%),
    var(--ink);
}
.stub-brand {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2rem;
  letter-spacing: 0.5em;
  padding-left: 0.5em;
  margin-bottom: 2.2rem;
  color: var(--bone);
}
.stub-title {
  font-family: var(--arabic);
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  line-height: 2;
  margin-bottom: 1rem;
  color: var(--bone);
}
.stub-body {
  font-family: var(--arabic);
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  line-height: 2.2;
  color: var(--bone-dim);
  max-width: 42ch;
  margin-bottom: 2.6rem;
}
.stub-back {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid rgba(201, 164, 92, 0.4);
  border-radius: 2px;
  padding: 0.8rem 1.8rem;
  transition: background 0.8s, box-shadow 0.8s;
}
.stub-back:hover { background: rgba(201, 164, 92, 0.1); box-shadow: 0 0 40px rgba(201, 164, 92, 0.15); }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .brand-motto { display: none; }
  .progress { right: 0.7rem; }
  .progress ol { gap: 1.6rem; }
  .progress .p-name { display: none; }
  .field-row { flex-direction: column; gap: 0; }
  .br-wide { display: none; }
  .pillars { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .phase { padding-left: 2rem; padding-right: 2rem; }
  /* rail becomes quiet dots on phones — no collision with wide Arabic lines */
  .progress { right: 0.55rem; }
  .progress-line { display: none; }
  .progress .p-num { display: none; }
  .progress ol { gap: 1.15rem; }
  .progress a {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(234, 227, 211, 0.28);
    transition: background 0.8s, box-shadow 0.8s;
  }
  .progress a.is-active {
    background: var(--gold);
    box-shadow: 0 0 10px rgba(201, 164, 92, 0.7);
  }
  .nida-ar { font-size: clamp(1.5rem, 8vw, 2rem); }
  .form-card { padding: 1.3rem 1.1rem; }
  .site-header { padding: 1.1rem 1.2rem; }
  /* comfortable tap targets (≥44px) */
  .field input,
  .field select,
  .field textarea { padding: 0.85rem 0.9rem; }
}

/* ---------- RTL localized pages (fa / ar) ---------- */
/* Arabic script must not carry Latin letter-spacing (it breaks glyph joining),
   and display text switches from the Latin serif to the naskh face. */

html[dir="rtl"] body { font-family: var(--arabic); }

html[dir="rtl"] .motto,
html[dir="rtl"] .context,
html[dir="rtl"] .nida-en,
html[dir="rtl"] .lead-line,
html[dir="rtl"] .duty-title,
html[dir="rtl"] .duty-body,
html[dir="rtl"] .call-headline,
html[dir="rtl"] .interlude-statement,
html[dir="rtl"] .interlude-q,
html[dir="rtl"] .form-title,
html[dir="rtl"] .ask-headline,
html[dir="rtl"] .footer-mission,
html[dir="rtl"] .pillar h3,
html[dir="rtl"] .citation em {
  font-family: var(--arabic);
  font-style: normal;
  letter-spacing: 0;
}

html[dir="rtl"] .kicker,
html[dir="rtl"] .brand-motto,
html[dir="rtl"] .duty-num,
html[dir="rtl"] .field label,
html[dir="rtl"] .btn,
html[dir="rtl"] .privacy,
html[dir="rtl"] .form-sub,
html[dir="rtl"] .field-error,
html[dir="rtl"] .success-body,
html[dir="rtl"] .pillar p,
html[dir="rtl"] .ask-sub,
html[dir="rtl"] .footer-promise,
html[dir="rtl"] .footer-fine,
html[dir="rtl"] .scroll-hint,
html[dir="rtl"] .progress .p-name {
  font-family: var(--arabic);
  letter-spacing: 0;
}

html[dir="rtl"] .site-title {
  font-family: var(--arabic);
  font-weight: 700;
  letter-spacing: 0;
  padding-left: 0;
}

html[dir="rtl"] .context { line-height: 2.05; }
html[dir="rtl"] .duty-body { line-height: 2.05; }
html[dir="rtl"] .interlude-statement { line-height: 2; }
html[dir="rtl"] .form-card { text-align: right; }
html[dir="rtl"] .field select { background-position: left 0.8rem center; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .hint-line { animation: none; }
  .phase, .reveal, .media .scrub-video { transition: none; }
}
