/* Scroll experience. White and cool backgrounds, terracotta action colour, painted art as the only warm element. */
:root {
  --ink: #1b1f45;
  --muted: #515675;
  --terra: #b24227;
  --terra-d: #963620;
  --sage: #e6f0ea;
  --tint: #f0f5f2;
  --line: #d5dfda;
  --mustard: #f4c55a;
  --dusk: #1b1f45;
  --wa: #12843f;
  --display: Fraunces, Georgia, "Times New Roman", serif;
  --ui: Lexend, system-ui, sans-serif;
  --body: "Source Sans 3", system-ui, sans-serif;
  --dirx: -1;
  --pad: clamp(20px, 6vw, 96px);
}
:lang(fa) {
  --display: Vazirmatn, system-ui, sans-serif;
  --ui: Vazirmatn, system-ui, sans-serif;
  --body: Vazirmatn, system-ui, sans-serif;
}
[dir="rtl"] { --dirx: 1; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 clamp(1rem, 1.1vw, 1.15rem) / 1.65 var(--body); overflow-x: hidden; }
img { max-width: 100%; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 6px; }
.x-skip { position: absolute; left: 12px; top: -60px; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.x-skip:focus { top: 12px; }

/* shared type */
.x-kicker { font: 600 0.78rem/1.4 var(--ui); letter-spacing: 0.16em; text-transform: uppercase; color: var(--terra); margin-bottom: 18px; }
:lang(fa) .x-kicker, :lang(fa) .x-eyebrow { letter-spacing: 0; text-transform: none; font-size: 0.95rem; }
.x-sub { color: var(--muted); font-size: clamp(1.05rem, 1.3vw, 1.3rem); max-width: 34em; margin-top: 18px; }
h2 { font: 500 clamp(2.2rem, 4.6vw, 4.4rem) / 1.05 var(--display); letter-spacing: -0.02em; }
:lang(fa) h2 { font-weight: 700; line-height: 1.35; letter-spacing: 0; }
.rv { opacity: 0; transform: translateY(32px); transition: opacity 0.9s ease var(--d, 0s), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.x-pcard.rv.in:hover { transform: translateY(-8px); }
.x-ccard.rv.in:hover { transform: translateY(-6px); }

/* buttons */
.x-btn, .x-cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--terra); color: #fff; text-decoration: none; font: 600 1rem/1.2 var(--ui); padding: 15px 28px; border-radius: 999px; box-shadow: 0 10px 26px rgba(178, 66, 39, 0.32); transition: transform 0.25s, box-shadow 0.25s, background 0.25s; border: 0; cursor: pointer; }
.x-btn:hover, .x-cta:hover { background: var(--terra-d); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(178, 66, 39, 0.4); }
.x-btn-lg { padding: 18px 34px; font-size: 1.05rem; }
.x-btn-wa { background: var(--wa); box-shadow: 0 10px 26px rgba(18, 132, 63, 0.34); }
.x-btn-wa:hover { background: #0e6b33; }
.x-link { color: inherit; text-decoration: none; font: 500 1rem var(--ui); border-bottom: 1px solid currentColor; padding-bottom: 2px; opacity: 0.9; }
.x-link:hover { opacity: 1; }

/* header */
.x-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: transparent; }
.x-progress i { display: block; height: 100%; width: 100%; background: var(--terra); transform-origin: left; transform: scaleX(var(--sp, 0)); }
[dir="rtl"] .x-progress i { transform-origin: right; }
.x-head { position: fixed; inset: 3px 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px var(--pad); color: #fff; transition: background 0.35s, color 0.35s, box-shadow 0.35s, padding 0.35s; }
.x-head.scrolled { background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); color: var(--ink); box-shadow: 0 1px 0 var(--line); padding-block: 8px; }
.x-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.15rem var(--ui); text-shadow: 0 1px 14px rgba(10, 12, 40, 0.55); }
.x-head.scrolled .x-brand { text-shadow: none; }
.x-brand img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25)); }
.x-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); font: 500 0.95rem var(--ui); margin-inline-start: auto; padding: 10px 26px; border-radius: 999px; background: rgba(20, 24, 62, 0.62); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); color: #fff; transition: background 0.35s, border-color 0.35s, color 0.35s; }
.x-head.scrolled .x-nav { background: rgba(27, 31, 69, 0.06); border-color: transparent; color: var(--ink); }
.x-nav a { text-decoration: none; opacity: 1; }
.x-nav a:hover { opacity: 1; }
.x-cta { padding: 11px 22px; font-size: 0.92rem; box-shadow: none; }

/* hero */
.x-hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: radial-gradient(120% 90% at 20% 80%, #2b3167 0%, #1b1f45 60%, #14183b 100%); color: #fff; }
.x-hero-media { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(70%, 1300px); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.03) 1.5%, rgba(0,0,0,0.1) 4%, rgba(0,0,0,0.22) 6.5%, rgba(0,0,0,0.4) 9%, rgba(0,0,0,0.6) 11.5%, rgba(0,0,0,0.78) 14%, rgba(0,0,0,0.92) 16.5%, rgba(0,0,0,1) 19%); mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.03) 1.5%, rgba(0,0,0,0.1) 4%, rgba(0,0,0,0.22) 6.5%, rgba(0,0,0,0.4) 9%, rgba(0,0,0,0.6) 11.5%, rgba(0,0,0,0.78) 14%, rgba(0,0,0,0.92) 16.5%, rgba(0,0,0,1) 19%); }
[dir="rtl"] .x-hero-media { -webkit-mask-image: linear-gradient(270deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.03) 1.5%, rgba(0,0,0,0.1) 4%, rgba(0,0,0,0.22) 6.5%, rgba(0,0,0,0.4) 9%, rgba(0,0,0,0.6) 11.5%, rgba(0,0,0,0.78) 14%, rgba(0,0,0,0.92) 16.5%, rgba(0,0,0,1) 19%); mask-image: linear-gradient(270deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.03) 1.5%, rgba(0,0,0,0.1) 4%, rgba(0,0,0,0.22) 6.5%, rgba(0,0,0,0.4) 9%, rgba(0,0,0,0.6) 11.5%, rgba(0,0,0,0.78) 14%, rgba(0,0,0,0.92) 16.5%, rgba(0,0,0,1) 19%); }
.x-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 40%; transform: scale(calc(1.02 + var(--hp, 0) * 0.14)) translateY(calc(var(--hp, 0) * 7vh)); animation: heroIn 2.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; transform-origin: 50% 40%; }
@keyframes heroIn { from { transform: scale(1.18); filter: blur(6px); opacity: 0.6; } to { filter: none; opacity: 1; } }
.x-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 24, 62, 0.3) 0%, rgba(20, 24, 62, 0) 36%), linear-gradient(0deg, rgba(20, 24, 62, 0.4) 0%, rgba(20, 24, 62, 0) 28%); pointer-events: none; }
[dir="rtl"] .x-hero-shade { background: linear-gradient(270deg, rgba(20, 24, 62, 0.3) 0%, rgba(20, 24, 62, 0) 36%), linear-gradient(0deg, rgba(20, 24, 62, 0.4) 0%, rgba(20, 24, 62, 0) 28%); }
.x-hero-copy { position: absolute; inset-inline-start: var(--pad); bottom: clamp(48px, 11vh, 120px); max-width: min(520px, 88vw); transform: translateY(calc(var(--hp, 0) * -6vh)); opacity: calc(1 - var(--hp, 0) * 1.25); }
.x-eyebrow { display: inline-block; font: 600 0.8rem var(--ui); letter-spacing: 0.16em; text-transform: uppercase; padding: 8px 16px; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 999px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(6px); margin-bottom: 26px; animation: rise 1s 0.5s both; }
.x-hero h1 { font: 600 clamp(2.6rem, 4.4vw, 5.6rem) / 1 var(--display); letter-spacing: -0.035em; text-shadow: 0 6px 40px rgba(0, 0, 0, 0.35); animation: rise 1.1s 0.65s both; }
:lang(fa) .x-hero h1 { font-weight: 700; font-size: clamp(2.4rem, 4.2vw, 5rem); line-height: 1.3; letter-spacing: 0; }
.x-lead { font-size: clamp(1.1rem, 1.7vw, 1.55rem); max-width: 26em; margin-top: 26px; color: rgba(255, 255, 255, 0.94); animation: rise 1s 0.85s both; }
.x-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 30px; margin-top: 34px; animation: rise 1s 1s both; }
.x-note { margin-top: 20px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.8); animation: rise 1s 1.15s both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.x-cue { position: absolute; bottom: 24px; inset-inline-end: var(--pad); width: 28px; height: 46px; border: 1.5px solid rgba(255, 255, 255, 0.7); border-radius: 16px; display: grid; justify-items: center; padding-top: 8px; opacity: calc(1 - var(--hp, 0) * 3); }
.x-cue span { width: 4px; height: 9px; border-radius: 4px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* pins: only when JS says there is room (html.pin) */
.x-pin { position: relative; }
html.pin .x-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }

/* statement */
.x-statement { background: #fff; position: relative; }
.x-statement .x-pin { display: grid; align-items: center; padding: 14vh var(--pad); }
html:not(.pin) .x-statement .x-pin { padding-block: 16vh; }
html.pin .x-statement { height: 280vh; }
.x-statement-inner { position: relative; z-index: 1; max-width: min(62vw, 980px); }
.x-words { font: 500 clamp(2.1rem, 4.9vw, 4.7rem) / 1.14 var(--display); letter-spacing: -0.02em; }
:lang(fa) .x-words { font-weight: 600; line-height: 1.6; letter-spacing: 0; font-size: clamp(1.9rem, 4.2vw, 3.9rem); }
.x-words .w { opacity: 0.13; transition: opacity 0.5s; }
.x-words .w.on { opacity: 1; }
.x-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 7vh; padding-top: 28px; border-top: 1px solid var(--line); }
.x-facts strong { display: block; font: 600 1.05rem var(--ui); }
.x-facts span { color: var(--muted); font-size: 0.98rem; }
html.pin .x-facts { opacity: 0; transform: translateY(20px); transition: opacity 0.8s, transform 0.8s; }
html.pin .x-statement.done .x-facts { opacity: 1; transform: none; }
.x-alfi { position: absolute; inset-inline-end: 4vw; bottom: 5vh; width: clamp(200px, 27vw, 430px); aspect-ratio: 1; display: grid; place-items: center; transform: translateY(calc(var(--p, 0) * -9vh)); }
.x-alfi img { position: relative; width: 82%; height: auto; animation: float 5.5s ease-in-out infinite; filter: drop-shadow(0 22px 28px rgba(27, 31, 69, 0.22)); }
.x-halo { position: absolute; inset: 4%; border-radius: 50%; background: var(--sage); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }

/* classes: all three together */
.x-classes { background: var(--tint); padding: 12vh var(--pad) 10vh; }
.x-classes-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 48px; max-width: 1320px; margin: 0 auto 6vh; }
.x-offer { font-size: 0.98rem; max-width: 30em; color: var(--muted); }
.x-offer b { display: inline-block; background: var(--mustard); color: var(--ink); border-radius: 999px; padding: 2px 12px; font: 700 0.78rem var(--ui); margin-inline-end: 8px; }
.x-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 36px); max-width: 1320px; margin: 0 auto; align-items: stretch; }
.x-pcard { display: flex; flex-direction: column; background: #fff; border-radius: 32px; overflow: hidden; box-shadow: 0 24px 60px rgba(27, 31, 69, 0.12); transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.5s, opacity 0.9s; }
.x-pcard:hover { transform: translateY(-8px); box-shadow: 0 34px 80px rgba(27, 31, 69, 0.2); }
.x-pcard-art { overflow: hidden; aspect-ratio: 8 / 5; }
.x-pcard-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.x-pcard:hover .x-pcard-art img { transform: scale(1.06); }
.x-pcard-body { display: flex; flex-direction: column; flex: 1; padding: clamp(22px, 2.4vw, 34px); }
.x-pill { align-self: flex-start; display: inline-block; background: var(--mustard); color: var(--ink); font: 700 0.82rem var(--ui); border-radius: 999px; padding: 4px 14px; }
.x-pcard h3 { font: 500 clamp(2rem, 2.8vw, 2.7rem) / 1.05 var(--display); letter-spacing: -0.02em; margin-top: 14px; }
:lang(fa) .x-pcard h3 { font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.x-meta { color: var(--terra); font: 600 0.92rem var(--ui); margin-top: 8px; }
.x-desc { margin-top: 12px; color: var(--muted); font-size: 1.02rem; flex: 1; }
.x-price { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 12px; }
.x-amount { font: 500 clamp(2.4rem, 3.2vw, 3.2rem) / 1 var(--display); }
.x-price s { color: var(--muted); }
.x-per { color: var(--muted); font-size: 0.92rem; margin: 6px 0 22px; }
.x-pcard .x-btn { width: 100%; }
.x-after-classes { max-width: 1320px; margin: 6vh auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 40px; color: var(--muted); font-size: 0.98rem; }
.x-after-classes a { color: var(--ink); font-weight: 600; }
.soon-pill { display: inline-block; background: var(--mustard); color: var(--ink); border-radius: 999px; padding: 2px 12px; font: 700 0.78rem var(--ui); margin-inline-end: 8px; }
.x-soon { color: var(--ink); }

/* rhythm */
.x-rhythm { background: #fff; }
html.pin .x-rhythm { height: 320vh; }
.x-rhythm .x-pin { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 6vw, 100px); padding: 12vh var(--pad) 8vh; }
html:not(.pin) .x-rhythm .x-pin { padding-block: 14vh; }
.x-rhythm-stage { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin: auto; display: grid; place-items: center; }
.x-stage-img { position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: contain; opacity: 0; transform: scale(0.82) rotate(-4deg); transition: opacity 0.6s, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.x-stage-img.on { opacity: 1; transform: none; animation: float 5s ease-in-out infinite; }
html:not(.pin) .x-stage-img { position: static; opacity: 1; transform: none; width: 44%; height: auto; }
html:not(.pin) .x-rhythm-stage { display: flex; flex-wrap: wrap; justify-content: center; aspect-ratio: auto; }
html:not(.pin) .x-rhythm-stage .x-halo { display: none; }
.x-rhythm-copy h3 { font: 600 1.05rem var(--ui); margin: 34px 0 14px; }
.x-steps li { padding: 12px 0; padding-inline-start: 22px; border-inline-start: 3px solid var(--line); transition: opacity 0.5s, border-color 0.5s; }
html.pin .x-steps li { opacity: 0.32; }
html.pin .x-steps li.on { opacity: 1; border-color: var(--terra); }
.x-steps h4 { font: 600 1.25rem var(--ui); }
.x-steps p { color: var(--muted); }
.x-goal { margin-top: 26px; font-size: 0.98rem; color: var(--muted); }
.x-goal strong { color: var(--teal, #12706b); }

/* two learners */
.x-paths { background: #fff; padding: 9vh var(--pad) 3vh; }
.x-paths-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 44px); max-width: 1180px; margin: auto; }
.x-paths article { display: flex; align-items: center; gap: 24px; background: var(--tint); border-radius: 30px; padding: 30px; box-shadow: none; }
.x-paths img { width: clamp(110px, 12vw, 170px); flex: none; }
.x-paths h3 { font: 600 1.35rem/1.25 var(--ui); margin-bottom: 8px; }
.x-paths p { color: var(--muted); }

/* family and culture, compact */
.x-more { background: var(--tint); padding: 11vh var(--pad) 10vh; }
.x-family-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(30px, 6vw, 90px); align-items: center; max-width: 1180px; margin: auto; }
.x-family-art { position: relative; justify-self: center; width: min(100%, 560px); border-radius: 30px; box-shadow: 0 30px 70px rgba(27, 31, 69, 0.2); transform: rotate(1deg); }
.x-family-art img { display: block; width: 100%; height: auto; border-radius: 30px; }
.x-family-art figcaption { position: absolute; inset-inline: 0; bottom: -38px; text-align: center; color: var(--muted); font-size: 0.92rem; }
.x-say { position: absolute; font: 600 clamp(0.78rem, 1.3vw, 1.1rem) / 1.5 Vazirmatn, system-ui, sans-serif; text-align: center; border: 2px solid var(--ink); border-radius: 20px; padding: 5px 12px 7px; background: #fff; opacity: 0; transform: translateY(14px) scale(0.92); transition: opacity 0.7s, transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.3); isolation: isolate; }
.x-say::after { content: ""; position: absolute; top: 100%; width: 14px; height: 14px; background: inherit; border-inline-end: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-8px) rotate(45deg); z-index: -1; }
.x-say-child { left: 3%; top: 3%; background: #dff3ed; transition-delay: 0.5s; }
.x-say-child::after { left: 64%; }
.x-say-grandma { right: 3%; top: 2%; transition-delay: 1.3s; }
.x-say-grandma::after { left: 18%; }
.x-family-art.in .x-say { opacity: 1; transform: none; }
.x-culture { max-width: 1180px; margin: 11vh auto 0; }
.x-culture-title { font: 500 clamp(1.4rem, 2vw, 1.9rem) / 1.2 var(--display); text-align: center; margin-bottom: 28px; }
:lang(fa) .x-culture-title { font-weight: 700; }
.x-cgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 26px); }
.x-ccard { background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 14px 36px rgba(27, 31, 69, 0.1); padding-bottom: 18px; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.5s, opacity 0.9s; }
.x-ccard:hover { box-shadow: 0 24px 50px rgba(27, 31, 69, 0.16); }
.x-ccard img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.x-ccard h3 { font: 600 1.15rem var(--ui); margin: 14px 18px 4px; }
.x-ccard p { color: var(--muted); font-size: 0.92rem; margin: 0 18px; line-height: 1.5; }

/* details */
.x-details { background: #fff; padding: 11vh var(--pad) 9vh; }
.x-details-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(30px, 6vw, 100px); max-width: 1220px; margin: auto; align-items: start; }
.x-details dl { margin-top: 36px; border-top: 1px solid var(--line); }
.x-details dl div { display: grid; grid-template-columns: 9em 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.x-details dt { font: 600 0.95rem var(--ui); }
.x-details dd { color: var(--muted); }
.x-trial { background: var(--sage); border-radius: 32px; padding: clamp(26px, 3vw, 44px); }
.x-trial h3 { font: 500 clamp(1.6rem, 2.4vw, 2.2rem) / 1.2 var(--display); margin-bottom: 18px; }
:lang(fa) .x-trial h3 { font-weight: 700; }
.x-trial ol { counter-reset: s; display: grid; gap: 16px; margin-bottom: 28px; }
.x-trial li { position: relative; padding-inline-start: 46px; counter-increment: s; }
.x-trial li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 2px; width: 32px; height: 32px; border-radius: 50%; background: var(--mustard); display: grid; place-items: center; font: 700 0.9rem var(--ui); }
:lang(fa) .x-trial li::before { content: counter(s, persian); }
.x-trial h4 { font: 600 1.05rem var(--ui); }
.x-trial p { color: var(--muted); font-size: 0.98rem; }
.x-faq { max-width: 1220px; margin: 9vh auto 0; display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.x-faq h2 { font-size: clamp(1.9rem, 3.2vw, 3rem); position: sticky; top: 110px; }
.x-faq details { border-top: 1px solid var(--line); }
.x-faq details:last-child { border-bottom: 1px solid var(--line); }
.x-faq summary { cursor: pointer; list-style: none; padding: 22px 0; font: 500 clamp(1.1rem, 1.5vw, 1.4rem) / 1.4 var(--ui); display: flex; justify-content: space-between; gap: 20px; }
.x-faq summary::-webkit-details-marker { display: none; }
.x-faq summary::after { content: "+"; font: 400 1.8rem/1 var(--ui); color: var(--terra); transition: transform 0.3s; }
.x-faq details[open] summary::after { transform: rotate(45deg); }
.x-faq details p { padding: 0 0 24px; color: var(--muted); max-width: 44em; }

/* closing dusk */
.x-close { position: relative; min-height: 100svh; background: linear-gradient(160deg, #161a3d 0%, #232a63 55%, #34397d 100%); color: #fff; display: grid; align-items: center; padding: 14vh var(--pad) 12vh; overflow: hidden; }
.x-stars { position: absolute; inset: 0; background-image: radial-gradient(2px 2px at 12% 22%, #fff, transparent 60%), radial-gradient(2px 2px at 28% 68%, #fff, transparent 60%), radial-gradient(1.5px 1.5px at 44% 14%, #fff, transparent 60%), radial-gradient(2px 2px at 62% 78%, #fff, transparent 60%), radial-gradient(1.5px 1.5px at 78% 30%, #fff, transparent 60%), radial-gradient(2px 2px at 90% 58%, #fff, transparent 60%), radial-gradient(1.5px 1.5px at 6% 84%, #fff, transparent 60%), radial-gradient(2px 2px at 52% 46%, #fff, transparent 60%); opacity: 0.7; animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: 0.35; } to { opacity: 0.85; } }
.x-close-copy { position: relative; z-index: 1; max-width: min(720px, 90vw); }
.x-close h2 { color: #fff; font-size: clamp(2.6rem, 6.4vw, 6rem); }
:lang(fa) .x-close h2 { font-size: clamp(2.3rem, 5.4vw, 5rem); }
.x-close .x-kicker { color: var(--mustard); }
.x-close .x-sub { color: rgba(255, 255, 255, 0.85); }
.x-pending { margin-top: 28px; font: 500 1.1rem var(--ui); padding: 16px 22px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 18px; background: rgba(255, 255, 255, 0.07); display: inline-block; }
.x-methods { display: flex; flex-wrap: wrap; gap: 16px 22px; align-items: center; margin-top: 30px; }
.x-methods[hidden], [hidden] { display: none !important; }
.x-close .x-note { margin-top: 24px; color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }
.x-alfi-close { inset-inline-end: 6vw; bottom: 8vh; width: clamp(220px, 30vw, 460px); z-index: 1; transform: none; }
.x-alfi-close img { width: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.4)); }
.x-foot { position: absolute; inset-inline: var(--pad); bottom: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 0.88rem; color: rgba(255, 255, 255, 0.6); z-index: 1; }

/* sticky mobile button */
.x-sticky { display: none; }

@media (max-width: 860px) {
  .x-nav { display: none; }
  .x-cta { display: none; }
  .x-nav { margin-inline-start: auto; }
  .x-hero-shade, [dir="rtl"] .x-hero-shade { background: linear-gradient(0deg, rgba(20, 24, 62, 0.92) 0%, rgba(20, 24, 62, 0.5) 52%, rgba(20, 24, 62, 0.08) 100%); }
  .x-hero-media, [dir="rtl"] .x-hero-media { inset-block: 0 auto; inset-inline: 0; width: 100%; height: 62%; -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 100%); mask-image: linear-gradient(180deg, #000 58%, transparent 100%); }
  .x-hero-media img { object-position: 36% 45%; }
  .x-hero-copy { bottom: 6vh; }
  .x-hero h1 { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  :lang(fa) .x-hero h1 { font-size: clamp(2.3rem, 10.5vw, 3.2rem); }
  .x-eyebrow { font-size: 0.7rem; padding: 6px 12px; margin-bottom: 16px; }
  .x-lead { font-size: 1.05rem; margin-top: 16px; }
  .x-hero-actions { margin-top: 22px; gap: 16px 22px; }
  .x-cue { display: none; }
  .x-statement-inner { max-width: 100%; }
  .x-alfi { position: relative; inset: auto; margin: 24px auto 0; width: 62vw; transform: none; }
  .x-facts { grid-template-columns: 1fr; gap: 14px; }
  .x-rhythm .x-pin, .x-family-grid, .x-details-grid, .x-faq, .x-cards, .x-after-classes { grid-template-columns: 1fr; }
  .x-cgrid { grid-template-columns: repeat(2, 1fr); }
  .x-faq h2 { position: static; }
  .x-nav { padding: 8px 14px; }
  .x-paths-grid { grid-template-columns: 1fr; }
  .x-paths article { flex-direction: column; align-items: flex-start; }
  .x-details dl div { grid-template-columns: 1fr; gap: 4px; }
  .x-family-art figcaption { position: static; margin-top: 14px; }
  .x-alfi-close { position: relative; inset: auto; margin: 36px auto 0; width: 56vw; }
  .x-close { align-content: start; padding-top: 18vh; }
  .x-foot { position: static; margin-top: 40px; }
  .x-sticky { display: flex; position: fixed; z-index: 45; inset-inline: 16px; bottom: calc(12px + env(safe-area-inset-bottom)); align-items: center; justify-content: center; gap: 10px; background: var(--terra); color: #fff; text-decoration: none; font: 600 0.95rem var(--ui); padding: 15px 22px; border-radius: 999px; box-shadow: 0 10px 30px rgba(27, 31, 69, 0.35); opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity 0.25s, transform 0.25s, visibility 0.25s; }
  .x-sticky.show { opacity: 1; visibility: visible; transform: none; }
  .x-sticky.wa { background: var(--wa); }
  .x-sticky svg { width: 22px; height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, .x-say { opacity: 1; transform: none; }
  .x-words .w { opacity: 1; }
}

/* language switch */
.x-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; direction: ltr; padding: 4px; border-radius: 999px; background: rgba(20, 24, 62, 0.62); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); color: #fff; font: 600 0.86rem/1.3 "Source Sans 3", system-ui, sans-serif; transition: background 0.35s, border-color 0.35s; }
.x-switch a { position: relative; z-index: 1; padding: 7px 14px; min-width: 4.5em; text-align: center; text-decoration: none; color: rgba(255, 255, 255, 0.85); transition: color 0.3s; }
.x-switch a[lang="fa"] { font-family: Vazirmatn, system-ui, sans-serif; font-weight: 600; }
.x-switch i { position: absolute; inset-block: 4px; inset-inline-start: 4px; width: calc(50% - 4px); border-radius: 999px; background: #fff; transition: transform 0.35s cubic-bezier(0.3, 0.8, 0.3, 1), background 0.35s; }
.x-switch.fa i, .x-switch.to-fa i { transform: translateX(100%); }
.x-switch.to-en i { transform: none; }
.x-switch a.on, .x-switch.to-fa a[lang="fa"], .x-switch.to-en a[lang="en"] { color: var(--ink); }
.x-switch.to-fa a[lang="en"], .x-switch.to-en a[lang="fa"] { color: rgba(255, 255, 255, 0.85); }
.x-head.scrolled .x-switch { background: rgba(27, 31, 69, 0.08); border-color: transparent; color: var(--ink); }
.x-head.scrolled .x-switch a { color: var(--muted); }
.x-head.scrolled .x-switch i { background: var(--ink); }
.x-head.scrolled .x-switch a.on, .x-head.scrolled .x-switch.to-fa a[lang="fa"], .x-head.scrolled .x-switch.to-en a[lang="en"] { color: #fff; }
.x-head.scrolled .x-switch.to-fa a[lang="en"], .x-head.scrolled .x-switch.to-en a[lang="fa"] { color: var(--muted); }
.x-head .x-switch { margin-inline-start: 4px; }
@media (max-width: 860px) { .x-head .x-switch { margin-inline-start: auto; } }

/* images with width/height attributes must keep their own aspect ratio */
.x-ccard img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.x-paths img { height: auto; }
.x-family-art img, .x-alfi img, .x-stage-img { max-width: 100%; }
:lang(fa) .x-lead { max-width: 21em; }
.x-lead { max-width: 19em; } :lang(fa) .x-lead { max-width: 19em; }
[dir="rtl"] .x-hero-media { width: min(68%, 1300px); }
