:root {
  /* brand palette, Figma "PROACTIVE" sage variant (docs/design-system.md) */
  --linen: #f4eee6;
  --mist: #e9e8e3;
  --sage: #d1cdbc;
  --sage-deep: #bcb8a9;
  --olive: #5e5b51;
  --pewter: #696554;
  --graphite: #2f2f2f;
  --ink: #000;
  --white: #fff;
  /* roles; the old names stay so the rules below keep working */
  --plum: var(--olive);
  --plum-deep: var(--graphite);
  --cream: var(--linen);
  --cream-2: var(--mist);
  --taupe: var(--pewter);
  --taupe-light: var(--sage);
  --text: var(--ink);
  --muted: var(--olive);
  --on-plum: var(--linen);
  --on-plum-muted: rgba(244, 238, 230, .86);
  --line: rgba(0, 0, 0, .12);
  --line-d: rgba(209, 205, 188, .32);
  --serif: "Literata", Georgia, serif;
  --sans: "Outfit", "Manrope", system-ui, -apple-system, sans-serif;
  --caps: "Unbounded", "Outfit", system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 80px);
  --max: 1160px;
  --dark: var(--olive);
  --on-dark-muted: rgba(244, 238, 230, .86);
  /* motion: strong ease-out for UI, longer for marketing entrances */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}
html[lang="ar"] {
  --serif: "Noto Naskh Arabic", "Literata", serif;
  --sans: "IBM Plex Sans Arabic", "Outfit", system-ui, sans-serif;
  --caps: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--cream); color: var(--text); font: 400 18px/1.65 var(--sans); letter-spacing: .01em; -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure, fieldset { margin: 0; }
ol, ul { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--taupe); outline-offset: 3px; }
::selection { background: var(--taupe-light); color: var(--ink); }
html { accent-color: var(--plum); caret-color: var(--plum); scrollbar-color: var(--taupe) var(--cream); }
p, li, dd { text-wrap: pretty; }
a { text-underline-offset: 4px; }

/* ---------- type ---------- */
h1, h2 { font-family: var(--serif); font-weight: 300; font-optical-sizing: auto; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.06; letter-spacing: -.025em; max-width: 16em; margin-bottom: 24px; text-wrap: balance; }
h3 { font: 400 22px/1.25 var(--serif); color: var(--ink); }
.acc { color: var(--taupe); }
html[lang="ar"] h1, html[lang="ar"] h2 { letter-spacing: 0; line-height: 1.35; }
.eyebrow { font: 500 12px/1.5 var(--caps); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; }
.lead { font-size: clamp(19px, 1.5vw, 21px); line-height: 1.6; max-width: 36em; }
.note { margin-top: 18px; max-width: 36em; color: var(--muted); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; border: 1.5px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--white); font: 500 12px/1.2 var(--caps); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .16s var(--ease-out); }
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--plum); border-color: var(--plum); }
}
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(244, 238, 230, .6); }
.btn-outline { background: transparent; color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn-light:hover { background: var(--cream-2); border-color: var(--cream-2); }
  .btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
  .btn-outline:hover { background: var(--cream-2); }
}
.btn-small { min-height: 40px; padding: 0 20px; font-size: 11px; }
.btn-wide { width: 100%; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-row { align-items: center; gap: 12px 22px; }
.hero-trust { margin-top: 26px; font-size: 15px; color: rgba(244, 238, 230, .86); }
.hero-trust b { font-weight: 600; color: var(--white); }
.hero-launch { font: 500 15px/1.3 var(--sans); color: rgba(244, 238, 230, .86); padding-inline-start: 22px; border-inline-start: 1px solid rgba(244, 238, 230, .45); }

/* ---------- logo ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; direction: ltr; }
.logo svg { width: 100px; height: 26px; fill: currentColor; }
.logo span { font: 500 12px/1 var(--caps); letter-spacing: .5em; padding-inline-start: .5em; }
.logo.tiny { flex-direction: row; gap: 7px; }
.logo.tiny svg { width: 40px; height: 11px; }
.logo.tiny span { font-size: 10px; letter-spacing: .3em; }
.logo.inline { flex-direction: row-reverse; gap: .5em; vertical-align: baseline; }
.logo.inline svg { width: 2.6em; height: .68em; }
.logo.inline span { font: 500 .62em/1 var(--caps); letter-spacing: .32em; }

/* ---------- top bar ---------- */
.topbar { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px var(--pad); color: var(--white); transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; }
.topbar.solid { background: var(--cream); color: var(--ink); box-shadow: 0 8px 24px -20px rgba(94, 91, 81, .5); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; direction: ltr; }
.brand-mark { width: 54px; height: 14px; fill: currentColor; }
.brand-word { font: 500 11px/1 var(--caps); letter-spacing: .42em; }
.topnav { display: flex; gap: 26px; font-size: 15px; }
.topnav a { text-decoration: none; }
.topnav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.topbar-end { display: flex; align-items: center; gap: 12px; }
.topbar:not(.solid) .btn-small { background: var(--white); color: var(--ink); border-color: var(--white); }
.lang { display: flex; border: 1px solid currentColor; overflow: hidden; direction: ltr; }
.lang button { min-width: 38px; min-height: 34px; padding: 0 8px; border: 0; background: none; color: inherit; font: 500 13px/1 var(--sans); cursor: pointer; }
.topbar:not(.solid) .lang button[aria-pressed="true"] { background: var(--white); color: var(--ink); }
.topbar.solid .lang button[aria-pressed="true"] { background: var(--ink); color: var(--white); }

/* ---------- layout ---------- */
.section { padding: clamp(80px, 10vw, 152px) var(--pad); }
.wrap { max-width: var(--max); margin-inline: auto; }
.wrap.narrow { max-width: 780px; }
.two { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.plum { background: var(--plum); color: var(--on-plum); }
.plum h2, .plum h3 { color: var(--white); }
.plum .eyebrow { color: var(--white); }
.cream-2 { background: var(--cream-2); }
img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* hero */
.hero { position: relative; min-height: min(92svh, 800px); display: flex; align-items: flex-end; padding: 100px var(--pad) clamp(48px, 7vw, 88px); color: var(--white); background: #120d0b; overflow: hidden; }
.hero .cover { object-position: 30% 50%; }
/* one neutral scrim under the text, nothing else on the photo */
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,13,11,.38), rgba(18,13,11,0) 26%, rgba(18,13,11,.2) 52%, rgba(18,13,11,.78)); }
.hero .cover { animation: hero-drift 2.4s var(--ease-out) both; }
@keyframes hero-drift { from { transform: scale(1.08); } }
.hero-copy { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin-inline: auto; }
/* the first screen's text is never hidden: it only travels into place */
.hero-copy > * { animation: settle 1s var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
@keyframes settle { from { transform: translateY(28px); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.hero h1 { color: var(--white); font-size: clamp(48px, 7.6vw, 116px); line-height: .98; letter-spacing: -.035em; margin: 0 0 28px; max-width: 9.5em; text-wrap: balance; }
.hero-sub { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; max-width: 30em; margin-bottom: 36px; }

/* about */
details summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--taupe); }
details[open] summary::after { content: "–"; }
.grade { justify-self: start; padding: 5px 10px; font: 500 10px/1.4 var(--caps); letter-spacing: .06em; text-transform: uppercase; }
/* four steps of one scale: filled linen, filled sage, sage outline, dashed outline */
.g-established { background: var(--linen); color: var(--ink); }
.g-promising { background: var(--sage); color: var(--ink); }
.g-selective { background: transparent; color: var(--sage); box-shadow: inset 0 0 0 1px var(--sage); }
.g-experimental { background: transparent; color: var(--on-dark-muted); outline: 1px dashed var(--sage-deep); outline-offset: -1px; }

/* gain */
.gain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; margin-top: 28px; }
.gain-grid li { padding-top: 20px; border-top: 1px solid var(--line-d); }
.gain-grid h3 { font: 400 clamp(22px, 1.9vw, 26px)/1.25 var(--serif); margin-bottom: 8px; }
.gain-grid p { color: var(--on-plum-muted); font-size: 17px; }

/* how */
.how-grid { display: grid; grid-template-columns: 1.3fr auto; gap: clamp(36px, 6vw, 88px); align-items: start; margin-top: 16px; }
.steps { display: grid; gap: 26px; }
.steps li, .join-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.sn { width: 40px; height: 40px; display: grid; place-items: center; background: var(--plum); color: var(--white); font: 600 17px/1 var(--sans); }
.steps h3 { font-size: 20px; margin: 6px 0 4px; }
.steps p { color: var(--muted); max-width: 34em; }
.how .muted-lead { margin-bottom: 0; }
.steps.big { gap: 0; border-top: 1px solid var(--line); align-self: center; }
.steps.big li { position: relative; padding: 26px 0; border-bottom: 1px solid var(--line); }
.steps.big li:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 19.5px; top: 70px; bottom: -28px; width: 1px; background: var(--taupe-light); }
.steps.big .sn { position: relative; z-index: 1; }
.steps.big h3 { font: 400 clamp(22px, 2vw, 26px)/1.25 var(--serif); margin: 4px 0 8px; }
.rhythm { margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, 1fr); background: var(--cream-2); border-top: 1.5px solid var(--ink); }
.rhythm div { padding: 22px 24px 24px; border-inline-end: 1px solid var(--line); }
.rhythm div:last-child { border-inline-end: 0; }
.rhythm dt { font: 500 11px/1.5 var(--caps); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
html[lang="ar"] .rhythm dt { letter-spacing: 0; font-size: 14px; }
.rhythm dd { font: 400 clamp(19px, 1.6vw, 21px)/1.35 var(--serif); color: var(--ink); }

/* a week with PROACTIVE (deck, slide 5) */
.week { padding-bottom: 0; }
.week-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .35em; max-width: none; }
.week .muted-lead { max-width: 40em; }
.cal-lbl { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 14px; color: var(--muted); font-size: 16px; }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); border-inline-start: 1px solid var(--line); border-top: 1.5px solid var(--ink); }
.cal-days li { display: grid; grid-template-rows: auto repeat(3, minmax(64px, auto)); padding: 14px 12px 10px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal-days h4 { margin: 0 0 6px; font: 600 15px/1.2 var(--sans); color: var(--ink); }
.ev { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; align-self: center; font-size: 15px; line-height: 1.3; color: var(--text); }
.ev svg { width: 16px; height: 16px; margin-top: 1px; fill: var(--plum); }
.ev.at1 { grid-row: 2; } .ev.at2 { grid-row: 3; } .ev.at3 { grid-row: 4; }
.backstage { margin: 0 calc(-1 * var(--pad)); padding: clamp(32px, 4vw, 48px) var(--pad); background: var(--plum); color: var(--on-plum); }
.backstage > .wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px 48px; }
.backstage .tag { background: var(--taupe-light); color: var(--ink); }
.backstage .cal-lbl { margin-bottom: 14px; }
.week + .dark { box-shadow: inset 0 1px 0 var(--line-d); }
.bk-t { font: 400 clamp(20px, 1.8vw, 24px)/1.3 var(--serif); color: var(--white); }
.backstage ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; align-content: start; }
.backstage li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; font-size: 15px; line-height: 1.4; color: var(--on-plum-muted); }
.backstage li svg { width: 12px; height: 12px; margin-top: 5px; fill: var(--taupe-light); }

/* focus areas: nine goals on a ruled grid */
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 36px; border-top: 1.5px solid var(--ink); border-inline-start: 1px solid var(--line); }
.focus-grid li { padding: 24px 24px 28px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.focus-n { display: block; font: 500 11px/1 var(--caps); letter-spacing: .08em; color: var(--taupe); margin-bottom: 14px; }
.focus-grid h3 { font: 400 clamp(21px, 1.8vw, 24px)/1.25 var(--serif); margin-bottom: 8px; }
.focus-grid p { color: var(--muted); font-size: 16px; line-height: 1.5; }
.focus-closing { margin-top: 26px; font: italic 400 clamp(20px, 1.8vw, 23px)/1.35 var(--serif); color: var(--ink); }
html[lang="ar"] .focus-closing { font-style: normal; }

/* phone */
.phone-fig { display: grid; justify-items: center; gap: 12px; }
.example-tag { padding: 4px 10px; border: 1px solid var(--line); font: 500 10px/1.4 var(--caps); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .example-tag { letter-spacing: 0; font-size: 13px; }
.phone-img { width: 340px; height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .14)); }
.phone-fig figcaption { font-size: 15px; color: var(--muted); text-align: center; max-width: 20em; }

/* included */
.ticks li { position: relative; padding: 9px 0 9px 30px; }
html[dir="rtl"] .ticks li { padding: 9px 30px 9px 0; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 17px; width: 10px; height: 10px; background: var(--taupe); transform: rotate(45deg); }
.plum .ticks li::before { background: var(--taupe-light); }
.areas { margin-top: clamp(48px, 6vw, 72px); align-items: start; }
.area-list { border-bottom: 1px solid var(--line); }
.areas h3 { margin-bottom: 14px; }
.area-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.area-list li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 17px; }
.extra { padding: 24px; border: 1px solid var(--line); border-top: 1.5px solid var(--ink); }
.extra p { color: var(--muted); font-size: 17px; margin-top: 6px; }
.extra-note { margin-top: 28px; color: var(--muted); font-size: 16px; }
.extra-note b { color: var(--ink); font-weight: 600; }

/* team */
.team-top { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(36px, 6vw, 88px); align-items: end; }
.team-top h2 { margin-bottom: 0; }
.team-photo { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 28%; }
.join-photo { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 45%; margin-top: 8px; clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%); }
html[dir="rtl"] .join-photo { clip-path: polygon(12% 0, 100% 0, 100% 100%, 12% 100%, 0 50%); }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 40px; margin-top: 36px; }
.people li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; }
.people li { grid-template-columns: 80px 1fr; }
.face { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; background: var(--plum); color: var(--taupe-light); display: grid; place-items: center; font: 300 24px/1 var(--serif); }
.people h3 { font: 400 22px/1.2 var(--serif); }
.role { font: 500 10px/1.5 var(--caps); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 3px 0 6px; }
.people p:last-child { color: var(--muted); font-size: 16px; line-height: 1.5; }
.team-foot { display: flex; gap: 40px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); }
.stats { display: flex; gap: 40px; }
.stats p { color: var(--muted); }
.stats b { font: 400 42px/1 var(--serif); color: var(--ink); margin-inline-end: 6px; }
.clinic { display: flex; gap: 16px; align-items: center; max-width: 34em; }
.clinic img { width: 72px; height: auto; flex: none; }
.clinic p { color: var(--muted); font-size: 16px; }
.clinic b { color: var(--ink); }

/* join */
.join .lead { color: var(--on-plum-muted); margin-bottom: 32px; }
.join-steps { display: grid; gap: 20px; }
.join .sn { background: var(--taupe-light); color: var(--ink); }
.join-steps b { display: block; color: var(--white); margin-top: 6px; }
.join-steps span:not(.sn) { color: var(--on-plum-muted); font-size: 17px; }
.perks-card { background: rgba(244, 238, 230, .07); border: 1px solid var(--line-d); border-top: 1.5px solid var(--taupe-light); padding: clamp(26px, 3.5vw, 40px); display: grid; gap: 18px; }
.perks-card h3 { font: 400 26px/1.2 var(--serif); }
.perks-card .btn { margin-top: 8px; }

/* faq */
.faq-list { margin-top: 12px; border-bottom: 1px solid var(--line); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; width: 100%; gap: 20px; margin: 0; padding: 22px 0; font: 500 19px/1.4 var(--sans); }
.faq-list details p { padding: 0 0 22px; color: var(--muted); max-width: 40em; }

/* final */
.final { position: relative; display: flex; align-items: center; min-height: min(92svh, 760px); padding: clamp(80px, 10vw, 128px) var(--pad); background: #8a5a26; color: var(--white); overflow: hidden; }
.final .cover { object-position: 62% 62%; }
.final::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(74, 40, 12, .62), rgba(74, 40, 12, .28) 60%, rgba(74, 40, 12, .1)); }
html[dir="rtl"] .final::after { background: linear-gradient(270deg, rgba(74, 40, 12, .62), rgba(74, 40, 12, .28) 60%, rgba(74, 40, 12, .1)); }
.final-copy { position: relative; z-index: 1; display: grid; gap: 18px; justify-items: start; width: 100%; max-width: var(--max); margin-inline: auto; }
.final h2 { margin: 0; max-width: 12em; color: var(--white); font-size: clamp(40px, 5.4vw, 76px); line-height: 1.04; }
.final .lead { max-width: 30em; color: rgba(255, 255, 255, .9); }

/* footer */
.footer { padding: 48px var(--pad); background: var(--plum-deep); color: var(--on-plum-muted); display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; font-size: 15px; }
.footer-brand { display: flex; gap: 22px; align-items: center; color: var(--white); }
.footer-brand p { color: var(--on-plum-muted); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.footer-links a { text-decoration: none; } .footer-links a:hover { color: var(--white); }
.footer .fine { grid-column: 1 / -1; font-size: 14px; }

/* modal + form */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(94, 91, 81, .6); }
.modal-card { position: relative; width: min(640px, 100%); max-height: calc(100svh - 32px); overflow: auto; background: var(--cream); padding: clamp(24px, 4vw, 40px); box-shadow: 0 30px 80px -30px rgba(18, 13, 11, .55); }
.modal:not([hidden]) .modal-backdrop { animation: fade .24s ease-out both; }
.modal:not([hidden]) .modal-card { animation: pop .28s var(--ease-out) both; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.modal-x { position: absolute; top: 10px; inset-inline-end: 12px; width: 44px; height: 44px; border: 0; background: none; font-size: 30px; line-height: 1; color: var(--ink); cursor: pointer; }
.modal-card h2 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 6px; padding-inline-end: 36px; }
.form-intro { color: var(--muted); margin-bottom: 24px; }
#apply-form { display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 15px; font-weight: 500; color: var(--ink); }
.field small, legend small { font-weight: 400; color: var(--muted); }
input, textarea { width: 100%; padding: 13px 14px; border: 1px solid rgba(35,31,30,.25); border-radius: 0; background: #fff; color: var(--ink); font: 400 17px/1.4 var(--sans); }
input:focus, textarea:focus { outline: 2px solid var(--plum); outline-offset: -1px; }
[aria-invalid="true"] { border-color: #a4553f; }
textarea { resize: vertical; }
legend { font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 10px; }
.opt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid rgba(35,31,30,.22); background: #fff; font-size: 15px; }
.opt span::before { content: ""; flex: none; width: 16px; height: 16px; border: 1.5px solid var(--ink); background: #fff; }
.opt input:checked + span::before { background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5 6.5 12 13 4.5' fill='none' stroke='%235e5b51' stroke-width='2.2'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--white); }
.opt input:checked + span { background: var(--plum); color: var(--white); border-color: var(--plum); }
.opt input:focus-visible + span { outline: 2px solid var(--taupe); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; padding: 0; flex: none; accent-color: var(--plum); }
.form-plan { margin: -12px 0 20px; font-size: 15px; color: var(--muted); }
.form-plan b { color: var(--ink); }
.more-q > summary { margin: 0; font-size: 15px; }
.more-q[open] > summary { margin-bottom: 14px; }
#apply-form[aria-busy="true"] { opacity: .75; }
.form-msg { font-size: 15px; font-weight: 500; color: #9a4b35; }
.form-msg:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.done { display: grid; gap: 14px; justify-items: start; padding: 8px 0; }
.done p { color: var(--muted); }
.done-mark { width: 40px; height: 40px; fill: var(--plum); }


/* our approach (v3 ruled rows) */
.approach .two { align-items: start; }
.approach h2 { max-width: 14em; }
.approach-lead { font: 400 clamp(22px, 2vw, 28px)/1.3 var(--serif); color: var(--white); margin: 6px 0 14px; }
.approach-closing { margin-top: 22px; font-weight: 600; color: var(--white); }
.grades { border-top: 1px solid var(--line-d); margin-top: 8px; }
.grades li { border-bottom: 1px solid var(--line-d); color: var(--on-plum); font-size: 17px; }
.grades summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; margin: 0; padding: 18px 0; font-weight: 400; color: var(--on-plum); }
.grades summary::after, .grades details[open] summary::after { content: none; }
.grades summary > span:first-child::after { content: " +"; color: var(--taupe-light); }
.grades details[open] summary > span:first-child::after { content: " –"; }
.grades details p { padding: 0 0 18px; color: var(--on-dark-muted); font-size: 16px; max-width: 34em; }
.grades-hint { margin-top: 12px; font-size: 14px; color: var(--on-dark-muted); }
.grades .grade { flex: none; }

/* community track */
.how-grid.reverse { grid-template-columns: auto 1.3fr; align-items: center; }
.muted-lead { color: var(--muted); margin-bottom: 30px; }

/* about: the team photo of the deck (slide 3) */
.about .lead + .lead { margin-top: 14px; }
.closing { margin-top: 22px; font: italic 400 clamp(21px, 1.9vw, 25px)/1.35 var(--serif); color: var(--ink); max-width: 30em; }
html[lang="ar"] .closing { font-style: normal; }
.about-photo { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; clip-path: polygon(22% 0, 100% 0, 100% 100%, 22% 100%, 0 50%); }
html[dir="rtl"] .about-photo { clip-path: polygon(0 0, 78% 0, 100% 50%, 78% 100%, 0 100%); }


/* pillars: five photos cut to the pillar shapes (deck, slide 7); a click drops down what is included */
.pillars { --mh: clamp(150px, 14vw, 190px); position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 20px; margin-top: 44px; }
.pillars::before { content: ""; position: absolute; inset-inline: calc(-1 * var(--pad)); top: calc(var(--mh) / 2); height: 1px; background: var(--line); }
.pillar { grid-row: 1; position: relative; display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto auto 1fr auto; grid-template-areas: "m" "n" "name" "tag" "more"; padding: 0 0 24px; border: 0; background: none; color: var(--ink); text-align: start; font: inherit; cursor: pointer; scroll-margin-top: 90px; }
.pillar::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.pillar[aria-expanded="true"]::after { transform: none; }
.pl-media { grid-area: m; justify-self: start; display: block; height: var(--mh); aspect-ratio: 1; max-width: 100%; margin-bottom: 26px; overflow: hidden; transition: transform .25s; }
.pl-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.pl-media.s-diamond { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.pl-media.s-diamond img { object-position: 50% 12%; }
.pl-media.s-hex img { object-position: 74% 50%; }
.pl-media.s-hex { aspect-ratio: 1.1; clip-path: polygon(0 50%, 25% 8%, 82% 4%, 100% 50%, 82% 96%, 25% 92%); }
.pl-media.s-tri { aspect-ratio: .85; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.pl-media.s-half-r, .pl-media.s-half-l { aspect-ratio: .5; }
.pl-media.s-half-r { border-radius: 0 100% 100% 0 / 0 50% 50% 0; }
.pl-media.s-half-l { border-radius: 100% 0 0 100% / 50% 0 0 50%; }
.pl-media { transition: transform .35s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .pillar:hover .pl-media { transform: translateY(-6px); }
  .pillar:hover .pl-more { color: var(--taupe); }
}
.pl-panel:not([hidden]) { animation: rise .45s var(--ease-out) both; }
.pl-n { grid-area: n; align-self: center; font: 500 12px/1 var(--caps); letter-spacing: .08em; color: var(--taupe); }
.pl-more { grid-area: more; justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding-bottom: 2px; border-bottom: 1px solid currentColor; font: 600 13px/1.3 var(--sans); letter-spacing: .02em; color: var(--ink); }
.pl-more::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.pillar[aria-expanded="true"] .pl-more::after { transform: translateY(1px) rotate(-135deg); }
.pl-close, .pillar[aria-expanded="true"] .pl-open { display: none; }
.pillar[aria-expanded="true"] .pl-close { display: inline; }
.pl-name { grid-area: name; margin-top: 12px; font: 400 clamp(21px, 1.9vw, 26px)/1.2 var(--serif); }
.pl-tag { grid-area: tag; align-self: start; margin-top: 8px; color: var(--muted); font-size: 16px; line-height: 1.45; }
.pl-panel { grid-row: 2; grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 2fr; gap: 20px 48px; padding: 30px clamp(20px, 3vw, 36px); background: var(--cream-2); border-top: 1.5px solid var(--ink); }
.pp-head { display: flex; gap: 14px; align-items: flex-start; }
.pp-head svg { width: 22px; height: 22px; fill: var(--ink); margin-top: 4px; flex: none; }
.pp-head .eyebrow { margin-bottom: 6px; }
.pp-head h3 { font: 400 clamp(24px, 2.2vw, 30px)/1.2 var(--serif); }
.pl-panel .ticks li { border-bottom: 1px solid var(--line); }

/* membership: three plans, Circle leads (v3) */
.dark { background: var(--dark); color: var(--on-plum); }
.dark h2, .dark h3 { color: var(--white); }
.dark .eyebrow { color: var(--white); }
.dark .muted-lead { color: var(--on-dark-muted); }
.plans { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 20px; margin-top: 44px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 30px 26px 26px; border: 1px solid var(--line-d); color: var(--on-dark-muted); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-top .eyebrow { margin: 0; }
.plan h3 { font: 400 26px/1.15 var(--serif); margin-top: 18px; }
.plan .for { margin-top: 10px; font-size: 16px; }
.plan ul { margin: 22px 0 28px; border-top: 1px solid var(--line-d); flex: 1; }
.plan li { padding: 11px 0; border-bottom: 1px solid var(--line-d); font-size: 16px; line-height: 1.5; }
.plan.main { background: var(--cream); color: var(--text); border-color: var(--cream); }
.plan.main h3 { color: var(--ink); }
.plan.main .eyebrow { color: var(--ink); }
.plan.main .for { color: var(--muted); }
.plan.main ul, .plan.main li { border-color: var(--line); }
.tag { padding: 5px 9px; background: var(--plum); color: var(--white); font: 500 10px/1.3 var(--caps); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.tag-soon { background: transparent; color: var(--taupe-light); border: 1px solid var(--line-d); }
html[lang="ar"] .tag { letter-spacing: 0; font-size: 12px; }
.plans-sec .note { color: var(--on-dark-muted); font-size: 15px; }

.link-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.link-btn:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }

/* scroll reveal: content is visible by default; app.js adds .motion only when it can reveal */
.motion .rv { opacity: 0; transform: translateY(24px); }
.motion .rv.in { opacity: 1; transform: none; transition: opacity .7s var(--ease-out) var(--d, 0ms), transform .9s var(--ease-out) var(--d, 0ms); }
.faq-list details[open] p { animation: rise .35s var(--ease-out) both; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .topnav { display: none; }
  .gain-grid { grid-template-columns: 1fr 1fr; }
  .people { grid-template-columns: 1fr 1fr; }
  .how-grid, .how-grid.reverse { grid-template-columns: 1fr; }
  .how-grid.reverse .phone-fig { order: 2; }
  .pillars { --mh: 130px; gap: 0 14px; }
  .pl-panel { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 560px; }
  .plan.main { order: -1; }
  .focus-grid { grid-template-columns: 1fr 1fr; }
  .cal-days { grid-template-columns: repeat(4, 1fr); }
  .backstage > .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .two { grid-template-columns: 1fr; }
  .rhythm { grid-template-columns: 1fr; }
  .focus-grid { grid-template-columns: 1fr; }
  .cal-days { grid-template-columns: 1fr; }
  .cal-days li { grid-template-columns: 110px 1fr; grid-template-rows: none; gap: 6px 12px; padding: 12px; }
  .cal-days h4 { grid-row: 1 / span 3; margin: 0; }
  .ev.at1, .ev.at2, .ev.at3 { grid-row: auto; grid-column: 2; }
  .backstage ul { grid-template-columns: 1fr; }
  .grades li { flex-direction: column; align-items: flex-start; gap: 8px; }
  .area-list { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr; }
  .stats { gap: 28px; }
  .phone-img { width: min(300px, 82vw); }
  .pillars { --mh: 92px; grid-template-columns: 1fr; margin-top: 28px; border-top: 1.5px solid var(--ink); }
  .pillars::before { content: none; }
  .pillar, .pl-panel { grid-row: auto; grid-column: auto; }
  .pillar { grid-template-columns: 96px 1fr; grid-template-rows: none; grid-template-areas: "m n" "m name" "m tag" "m more"; column-gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .pillar::after { content: none; }
  .pl-media { justify-self: center; margin: 0; }
  .pl-n { align-self: end; }
  .pl-more { margin-top: 8px; }
  .pl-name { margin-top: 4px; font-size: 22px; }
  .pl-tag { margin-top: 2px; font-size: 15px; }
  .pl-panel { padding: 20px 16px 22px; border-top: 0; }
  .pp-head { display: none; }
  .people li { grid-template-columns: 64px 1fr; }
  .face { width: 64px; height: 64px; }
  .row2 { grid-template-columns: 1fr; }
  .rhythm div { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .about-photo { max-width: 460px; }
  .team-top { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .footer-brand { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .brand-word { display: none; }
  .topbar { padding: 10px 16px; gap: 10px; }
  .lang button { min-width: 32px; padding: 0 6px; }
  .btn-small { padding: 0 14px; }
  .gain-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .hero-launch { padding-inline-start: 0; border-inline-start: 0; }
  .lang button { min-height: 44px; }
  .btn-small { min-height: 44px; }
  .plan { padding: 26px 20px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-property: opacity, color, background-color, border-color !important; }
  *, *::before, *::after { animation-name: fade !important; }
  .btn:active { transform: none; }
}
