/* ============ language switch ============ */
.nav__right { display: flex; align-items: center; gap: 8px; }
.lang { height: 42px; min-width: 52px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(17,17,17,.14); background: rgba(255,255,255,.5); font: 600 14px "Cairo", var(--ff); transition: background .3s, border-color .3s; }
.lang:hover { background: #fff; border-color: rgba(17,17,17,.3); }
html[lang="ar"] .lang { font-family: var(--ff); }
@media (max-width: 640px) { .nav .btn--sm { padding: 0 14px; } .lang { height: 38px; min-width: 44px; padding: 0 10px; } }
@media (max-width: 380px) { .nav .btn--sm .dot { display: none; } }

/* ============ results story ============ */
.results { padding: var(--sec) 0 0; }
.story { position: relative; overflow: hidden; display: grid; gap: 28px; padding: clamp(26px, 3.6vw, 52px); border-radius: 28px; background: var(--night); color: var(--cream);
  box-shadow: 0 40px 80px -40px rgba(17,17,17,.6); }
.story::before { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(181,224,90,.22), transparent 65%); pointer-events: none; }
.story__num { position: relative; }
.story__big { display: block; font-weight: 300; font-size: clamp(84px, 13vw, 200px); line-height: .85; letter-spacing: -.06em; color: var(--lime); direction: ltr; unicode-bidi: isolate; }
.story__num p { margin-top: 16px; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.3; color: #d9d4cb; }
.story__chart { position: relative; align-self: end; }
.story__chart svg { width: 100%; height: clamp(120px, 14vw, 190px); overflow: visible; }
.story__line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.story.is-in .story__line { animation: draw 2.2s cubic-bezier(.65,0,.35,1) .2s forwards; }
.story__area { opacity: 0; transition: opacity 1.4s 1s; }
.story.is-in .story__area { opacity: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.story__months { display: flex; justify-content: space-between; margin-top: 10px; font: 11px var(--mono); color: #77736c; }
html[lang="ar"] .story__months { font-family: "Cairo", sans-serif; font-size: 12px; }
.story__client { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid #222; }
.story__logo { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #EDE1CF; }
.story__logo .lg-mark { width: 38px; height: 38px; }
.story__client b { display: block; font-size: 18px; font-weight: 600; }
.story__client small { color: #9a958c; font-size: 14px; }
.story__link { margin-inline-start: auto; padding: 10px 18px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 600; font-size: 14px; }
@media (min-width: 900px) {
  .story { grid-template-columns: 1fr 1.15fr; align-items: end; }
  .story__client { grid-column: 1 / -1; }
}

.quotes { display: grid; gap: 14px; margin-top: 14px; }
.quote { padding: 28px; border-radius: 22px; background: var(--paper); border: 1px solid rgba(17,17,17,.07); }
.quote p { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; font-weight: 300; }
.quote footer { margin-top: 18px; display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; }
.quote footer b { color: var(--ink); }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }

.results__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 22px 26px; border-radius: 22px; background: var(--paper); border: 1px solid rgba(17,17,17,.07); }
.results__cta p { font-size: clamp(18px, 1.6vw, 22px); font-weight: 400; letter-spacing: -.01em; }

/* ============ FAQ ============ */
.faq { padding: var(--sec) 0; }
.faq__grid { display: grid; gap: 10px; }
.faq__grid .head { margin-bottom: 30px; }
.faq__list { display: grid; gap: 10px; }
.qa { border-radius: 20px; background: var(--paper); border: 1px solid rgba(17,17,17,.07); transition: background .4s, border-color .4s; }
.qa[open] { background: #fff; border-color: rgba(17,17,17,.12); }
.qa summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; cursor: pointer; font-size: clamp(17px, 1.4vw, 20px); font-weight: 500; letter-spacing: -.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--cream); transition: background .3s, transform .5s var(--ease); }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; margin: -.8px 0 0 -6px; background: var(--ink); transition: transform .5s var(--ease); }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i { background: var(--lime); transform: rotate(180deg); }
.qa[open] summary i::after { transform: rotate(0deg); }
.qa__a { padding: 0 24px 24px; }
.qa__a p { max-width: 640px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.qa[open] .qa__a { animation: qa .6s var(--ease); }
@keyframes qa { from { opacity: 0; transform: translateY(-6px); } }
@media (min-width: 1000px) { .faq__grid { grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; } .faq__grid .head { position: sticky; top: 110px; } }

/* ============ Arabic (RTL) ============ */
html[lang="ar"] body { font-family: "Cairo", var(--ff); }
html[lang="ar"] .mono:not([dir="ltr"] *) { font-family: "Cairo", sans-serif; font-size: 13px; letter-spacing: 0; }
html[lang="ar"] :is(.hero__copy, .head, .step, .persp, .faq, .start__panel, .results, .nav, .foot, .case__meta, .case__id, .story) :not(.mono) { letter-spacing: 0; }
html[lang="ar"] .hero__title { font-weight: 400; font-size: clamp(52px, 6.4vw, 108px); line-height: 1.12; }
html[lang="ar"] .h2 { font-weight: 400; line-height: 1.2; }
html[lang="ar"] .hl::before { bottom: .12em; height: .36em; }
html[lang="ar"] .hero__ar { text-align: right; }
html[lang="ar"] .hero__sub, html[lang="ar"] .lead, html[lang="ar"] .qa__a p { line-height: 1.85; }
html[lang="ar"] .arr { transform: none; }
html[lang="ar"] .persp__lbl { text-transform: none; }
html[lang="ar"] .story__big { letter-spacing: -.04em; }
html[lang="ar"] .case__name h3, html[lang="ar"] .story__client b { font-family: var(--ff); }
[dir="ltr"] { text-align: left; }
html[lang="ar"] .case__screen, html[lang="ar"] .case__board, html[lang="ar"] .case__id .case__pal { direction: ltr; }
html[lang="ar"] .builder .btn--lime { justify-self: start; }

body.lang-fade main, body.lang-fade .foot { opacity: .2; transition: opacity .18s; }
main, .foot { transition: opacity .3s; }

/* brand names always read left to right */
.case__name h3, .story__client b, .g-brand, .case__result b { direction: ltr; unicode-bidi: isolate; }
/* tag pills: inner language spans are plain text */
.case__tags span span { padding: 0; border: 0; background: none; border-radius: 0; font: inherit; }
.case__tags .case__result { display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--ink); border-color: var(--ink); color: var(--cream); font-size: 13px; }
.case__tags .case__result b { color: var(--lime); font-size: 17px; font-weight: 600; }
.case__tags .tag-real { background: var(--lime); color: var(--ink); border-color: var(--lime); font-weight: 700; }
@media (max-width: 640px) {
  .case__tags span:not(.tag-concept):not(:first-child) { display: inline-flex; }
  .case__tags > span:not(.tag-concept):not(.tag-real):not(.case__result):not(:first-child) { display: none; }
  .case--real .case__tags > span:nth-child(2) { display: none; }
}

html[lang="ar"] .globe__hint { direction: rtl; font-family: "Cairo", sans-serif; font-size: 13px; }
