/* ------------------------------------------------------------ tokens
   Brand identity 2026-10 (client's palette PDF + Brand Guideline Samples.ai):
   ivory and sand lead, dark burgundy is the brand ground, burgundy the accent,
   gold for ornaments, rules and the accent on dark grounds; taupe only for the
   logo's English lines. Dark green stays in the palette but is not used as a ground.
   See context/brand-guidelines.md. */
:root {
  color-scheme: light;     /* light only: no automatic dark version */
  /* brand palette */
  --ivory: #FFF4E7;
  --sand: #F3E8D3;
  --taupe: #8F8374;          /* logo English lines; decorative only on ivory (3.4:1) */
  --gold: #C09558;           /* guideline ornament colour: decorative on ivory (2.5:1), text-safe on dark burgundy (5.0:1) */
  --green-dark: #153F37;
  --green-light: #2C5C52;
  --burgundy: #601632;
  --burgundy-dark: #4C1E31;
  --cream: #FFEECB;          /* logo English lines and buttons on dark grounds */

  /* roles */
  --bg: var(--ivory);
  --band: var(--sand);               /* light alternate sections (.ground-sand) */
  --surface: #FFFAF3;
  --ink: #2B2326;
  --heading: var(--burgundy-dark);
  --ink-soft: #5C564D;       /* taupe deepened to 6.7:1 on ivory */
  --line: rgb(76 30 49 / 0.13);
  --line-strong: rgb(76 30 49 / 0.25);
  --accent: var(--burgundy);         /* marks, rules, focus */
  --accent-text: var(--burgundy);    /* eyebrows, labels, links on light */
  --accent-tint: rgb(96 22 50 / 0.08);
  --ground: var(--burgundy-dark);    /* brand ground (.ground-dark) */
  --ground-2: var(--burgundy);
  --on-ground: var(--ivory);
  --on-ground-soft: #E2D2CC;
  --accent-on-ground: var(--gold);
  --ground-line: rgb(255 244 231 / 0.15);
  --ground-line-strong: rgb(255 244 231 / 0.32);
  --ground-accent-line: rgb(192 149 88 / 0.45);
  --btn-bg: var(--burgundy); --btn-ink: var(--ivory); --btn-hover: var(--burgundy-dark);
  --logo-main: var(--burgundy-dark); --logo-accent: var(--taupe); --logo-en: var(--taupe);
  --err: #A4271C;
  --shadow: 0 1px 2px rgb(76 30 49 / 0.08), 0 12px 32px -14px rgb(76 30 49 / 0.28);
  --f-display: "Alexandria", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --f-text: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --gutter: max(16px, 4.5vw);
  --t-xs: 0.8rem; --t-sm: 0.9rem; --t-base: 1.02rem; --t-lg: 1.18rem; --t-xl: 1.45rem; --t-2xl: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); --t-3xl: clamp(2.1rem, 1.3rem + 3vw, 3.6rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(88px + env(safe-area-inset-top, 0px)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--bg); color: var(--ink); font-family: var(--f-text); font-size: var(--t-base); line-height: 1.85; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { color: var(--heading); font-family: var(--f-display); font-weight: 600; line-height: 1.4; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.eyebrow, .section-head .eyebrow { font-family: var(--f-display); font-size: var(--t-sm); font-weight: 500; color: var(--accent-text); display: flex; align-items: center; gap: 0.6rem; }
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--gold); }
.section { padding-block: clamp(2.8rem, 5.5vw, 4.8rem); }
.section-head { display: grid; gap: 0.9rem; max-width: 44rem; }
.section-head h2 { font-size: var(--t-2xl); }
.section-head p { color: var(--ink-soft); font-size: var(--t-lg); line-height: 1.8; }
.section-head { gap: 0.7rem; }

/* green grounds carry the profile's star lattice */
.ground-dark { background-color: var(--ground); color: var(--on-ground); position: relative; isolation: isolate; }
.ground-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23C09558' stroke-width='1.2'%3E%3Crect x='28' y='28' width='40' height='40'/%3E%3Crect x='28' y='28' width='40' height='40' transform='rotate(45 48 48)'/%3E%3Cpath d='M0 48h8M88 48h8M48 0v8M48 88v8'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 96px 96px;
}
/* on dark burgundy, accents switch from burgundy to the guideline's gold */
.ground-dark, .plan-entry, .receipt, .contact-cta, .portrait__frame { --heading: var(--on-ground); --accent: var(--gold); --accent-text: var(--gold); --accent-tint: rgb(192 149 88 / 0.14); }
/* light sections: the same components (practice cards, why-us, services, values) re-tokened onto sand */
.ground-sand { background: var(--band); color: var(--ink); --ground: var(--surface); --on-ground: var(--ink); --on-ground-soft: var(--ink-soft); --accent-on-ground: var(--accent-text); --ground-line: var(--line); --ground-line-strong: var(--line-strong); --ground-accent-line: rgb(96 22 50 / 0.35); }
.ground-dark .eyebrow, .ground-dark .section-head .eyebrow { color: var(--accent-on-ground); }
.ground-dark .section-head p { color: var(--on-ground-soft); }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; font-family: var(--f-display); font-weight: 600; font-size: var(--t-base); line-height: 1.4; padding: 0.85rem 1.45rem; border-radius: 6px; border: 1.5px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color 160ms ease, border-color 160ms ease, transform 120ms ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-hover); }
.ground-dark .btn-primary, .plan-entry .btn-primary, .receipt .btn-primary, .contact-cta .btn-primary { background: var(--cream); color: var(--burgundy-dark); }
.ground-dark .btn-primary:hover, .plan-entry .btn-primary:hover, .receipt .btn-primary:hover, .contact-cta .btn-primary:hover { background: var(--ivory); }
.btn-line { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--accent); }
.ground-dark .btn-line { border-color: var(--ground-line-strong); color: var(--on-ground); }
.ground-dark .btn-line:hover { border-color: var(--accent-on-ground); }
.btn svg { width: 1.1em; height: 1.1em; }

/* ------------------------------------------------------------ nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in oklab, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; min-width: 0; }
/* logo: inline SVG coloured per ground (see algaidy_logo()) */
.logo { display: block; height: auto; max-width: 100%; }
.logo .lg-m { fill: var(--logo-main); }
.logo .lg-a { fill: var(--logo-accent); }
.logo .lg-en { fill: var(--logo-en); }
.logo .lg-d { fill: none; stroke: var(--logo-en); stroke-width: 1px; opacity: 0.55; vector-effect: non-scaling-stroke; }
.logo .lg-s { fill: none; stroke: var(--logo-accent); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.ground-dark .logo { --logo-main: #FFFFFF; --logo-accent: var(--gold); --logo-en: var(--cream); }
.nav .logo { width: 210px; }
dialog.menu .logo { width: 210px; }
.site-footer .logo--full { width: min(380px, 100%); }
.nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; font-size: var(--t-sm); font-weight: 500; }
.nav ul a { text-decoration: none; padding-block: 0.4rem; border-bottom: 1.5px solid transparent; }
.nav ul a:hover { border-bottom-color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 0.8rem; }
.nav .btn { padding: 0.6rem 1.1rem; font-size: var(--t-sm); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); background: transparent; border-radius: 6px; cursor: pointer; color: var(--ink); }
.menu-btn i { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 4px auto; }
dialog.menu { margin: 0; margin-inline-start: auto; width: min(22rem, 100vw); height: 100dvh; max-height: none; border: 0; padding: 1.2rem var(--gutter) 2rem; background: var(--bg); color: var(--ink); }
dialog.menu::backdrop { background: rgb(76 30 49 / 0.45); }
dialog.menu ol { list-style: none; margin: 1.5rem 0; padding: 0; }
dialog.menu li a { display: block; padding: 0.9rem 0; border-top: 1px solid var(--line); text-decoration: none; font-family: var(--f-display); font-size: 1.15rem; }
.menu-head { display: flex; justify-content: space-between; align-items: center; }
.close-btn { width: 44px; height: 44px; background: none; border: 0; cursor: pointer; font-size: 1.6rem; color: var(--ink); }

/* ------------------------------------------------------------ hero */
.hero { padding-block: clamp(4rem, 8vw, 7rem) clamp(3.5rem, 6vw, 5rem); overflow: clip; }
.hero .wrap { perspective: 1400px; }
.hero-bg { position: absolute; inset: -8% 0 -8% 0; z-index: -2; will-change: transform; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 20% 55%; filter: saturate(0.85); }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to left, rgb(76 30 49 / 0.96) 0%, rgb(76 30 49 / 0.86) 40%, rgb(76 30 49 / 0.45) 72%, rgb(76 30 49 / 0.6) 100%),
              linear-gradient(to top, rgb(76 30 49 / 0.95), rgb(76 30 49 / 0) 34%); }
.hero-copy { will-change: transform; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.15rem); font-weight: 700; line-height: 1.3; margin-top: 1.2rem; }
.hero h1 span { color: var(--accent-on-ground); display: block; }
.hero .lede { margin-top: 1.4rem; font-size: var(--t-lg); line-height: 1.9; color: var(--on-ground-soft); max-width: 42rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.creds { margin: 2.6rem 0 0; padding: 1.4rem 0 0; border-top: 1px solid var(--ground-line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; list-style: none; }
.creds b { display: block; font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; color: var(--accent-on-ground); line-height: 1.3; }
.creds span { display: block; font-size: var(--t-xs); color: var(--on-ground-soft); line-height: 1.6; margin-top: 0.3rem; }

/* hero photo: arched frame (the column icon's capital), gold inner rule, floating consult chip */
.hero-shot { position: relative; z-index: 2; margin: 0; justify-self: end; width: min(100%, 27rem); will-change: transform; transform-style: preserve-3d; }
.hero-shot__frame { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 6px 6px; overflow: hidden; background: var(--burgundy); box-shadow: 0 2px 3px rgb(0 0 0 / 0.25), 0 40px 70px -28px rgb(0 0 0 / 0.6); }
.hero-shot__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: saturate(0.85) contrast(1.03); }
.hero-shot__frame::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgb(192 149 88 / 0.75); border-radius: 999px 999px 3px 3px; pointer-events: none; }
.hero-shot::before { content: ""; position: absolute; inset: -18px -18px 18px 18px; border: 1px solid var(--ground-accent-line); border-radius: 999px 999px 6px 6px; z-index: -1; }
.hero-shot__chip { position: absolute; inset-inline-end: -1.6rem; bottom: -1.4rem; display: grid; gap: 0.55rem; background: var(--surface); color: var(--ink); padding: 1rem 1.2rem 1.05rem 1.4rem; border-radius: 6px; border-inline-start: 3px solid var(--gold); box-shadow: 0 18px 40px -16px rgb(0 0 0 / 0.55); max-width: 17.5rem; }
.hero-shot__chip b { display: flex; align-items: center; gap: 0.45rem; font-family: var(--f-display); font-size: 0.98rem; color: var(--burgundy-dark); }
.hero-shot__chip b svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.hero-shot__chip ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.hero-shot__chip li { display: flex; align-items: center; gap: 0.45rem; font-size: var(--t-xs); color: var(--ink-soft); line-height: 1.6; }
.hero-shot__chip li svg { width: 14px; height: 14px; color: var(--accent); flex: none; }

/* ------------------------------------------------------------ institutions */
.inst { padding-block: 2.4rem 2.6rem; border-bottom: 1px solid var(--line); overflow: clip; }
.inst-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 1.2rem; }
.inst h2 { font-size: var(--t-base); font-weight: 600; }
.inst-head p { font-size: var(--t-sm); color: var(--ink-soft); margin: 0; }
.marquee { display: flex; margin-top: 1.6rem; background: var(--bg); -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; flex: none; min-inline-size: 100%; background: var(--bg); align-items: center; justify-content: space-between; gap: clamp(2.5rem, 5vw, 4.5rem); padding-inline-start: 0; padding-inline-end: clamp(2.5rem, 5vw, 4.5rem); margin: 0; list-style: none; animation: var(--marquee-animation, marquee) 48s linear infinite; }
html[dir="ltr"] .marquee__track { --marquee-animation: marquee-ltr; }
@media (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
.marquee__track li { flex: none; height: 56px; display: flex; align-items: center; }
.marquee__track img { height: 100%; width: auto; max-width: 190px; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.15); opacity: 0.72; transition: filter 300ms ease, opacity 300ms ease; }
.marquee__track li:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(100%); } }
@keyframes marquee-ltr { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; flex: 1; flex-wrap: wrap; justify-content: center; row-gap: 1.4rem; padding: 0; }
  .marquee__track[aria-hidden] { display: none; }
}

/* ------------------------------------------------------------ who */

/* ------------------------------------------------------------ consultations */
.consult { background: var(--surface); border-block: 1px solid var(--line); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; margin-top: 2.2rem; }
.plan-entry { margin-top: 2.2rem; display: grid; grid-template-columns: 1.15fr 1fr 0.9fr; gap: 1.4rem 2.4rem; align-items: center; background: var(--ground); color: var(--on-ground); border-radius: 8px; padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.plan-entry .tag { display: inline-block; font-size: var(--t-xs); font-weight: 600; padding: 0.2rem 0.65rem; border-radius: 999px; background: var(--gold); color: var(--burgundy-dark); }
.plan-entry h3 { font-size: var(--t-xl); margin-top: 0.7rem; }
.plan-entry .desc { color: var(--on-ground-soft); font-size: var(--t-sm); line-height: 1.8; margin-top: 0.5rem; }
.plan-entry__note { display: block; margin-top: 0.6rem; font-size: var(--t-xs); color: var(--accent-on-ground); }
.plan-entry ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: var(--t-sm); line-height: 1.7; }
.plan-entry li { display: grid; grid-template-columns: 1rem 1fr; gap: 0.5rem; }
.plan-entry li::before { content: ""; width: 7px; height: 7px; margin-top: 0.62rem; background: var(--gold); rotate: 45deg; }
.plan-entry__cta { display: grid; gap: 0.7rem; }
.plan-entry__cta small { font-size: var(--t-xs); color: var(--on-ground-soft); line-height: 1.6; }
.plan-entry + .plans { margin-top: 1.1rem; }
.wrap > .plan-entry:first-child { margin-top: 0; }
.plan { display: flex; flex-direction: column; gap: 1rem; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 1.6rem 1.4rem 1.4rem; }
.plan .tag { align-self: start; font-size: var(--t-xs); font-weight: 600; padding: 0.2rem 0.65rem; border-radius: 999px; background: var(--accent-tint); color: var(--accent-text); }
.plan h3 { font-size: 1.22rem; }
.plan .desc { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.8; }
.plan .fee { font-size: var(--t-xs); color: var(--ink-soft); line-height: 1.6; padding-top: 0.9rem; border-top: 1px solid var(--line); margin: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; align-content: start; font-size: var(--t-sm); line-height: 1.7; flex: 1; }
.plan li { display: grid; grid-template-columns: 1rem 1fr; gap: 0.5rem; }
.plan li::before { content: ""; width: 7px; height: 7px; margin-top: 0.62rem; background: var(--accent); rotate: 45deg; }
.plan .btn { width: 100%; }
.plan .btn { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.plan .btn:hover { border-color: var(--accent); }
.pay-note { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; font-size: var(--t-sm); color: var(--ink-soft); }
.pay-note span { display: inline-flex; align-items: center; gap: 0.45rem; }
.pay-note svg { width: 16px; height: 16px; color: var(--accent-text); }

/* ------------------------------------------------------------ practices */
.post:hover .ph img { scale: 1.06; }
.post .ph { max-width: none; }

/* ------------------------------------------------------------ team (lead + members) */
.team-grid { display: grid; gap: 1.2rem; margin-top: 3rem; }
.lead-card { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.2rem); align-items: center; padding: clamp(1.2rem, 3vw, 2rem); background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: 10px; box-shadow: var(--shadow); }
.lead-card .portrait { margin: 0; }
.portrait__frame { aspect-ratio: 4 / 5; max-width: 100%; border-radius: 999px 999px 6px 6px; background: var(--ground); position: relative; overflow: hidden; display: grid; place-items: center; }
.portrait__frame svg { width: 46%; color: var(--accent-on-ground); opacity: 0.9; }
.portrait__frame::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--ground-accent-line); border-radius: 999px 999px 3px 3px; }
.portrait figcaption { font-size: var(--t-xs); color: var(--ink-soft); margin-top: 0.6rem; text-align: center; }
.lead-card .role, .member .role { font-size: var(--t-xs); font-weight: 600; color: var(--accent-text); }
.lead-card h3 { font-size: var(--t-2xl); margin-top: 0.4rem; }
.lead-card .en { font-family: var(--f-display); font-size: var(--t-xs); letter-spacing: 0.06em; color: var(--ink-soft); margin-top: 0.2rem; direction: ltr; text-align: end; }
.lead-card .bio { margin-top: 1.1rem; display: grid; gap: 0.9rem; color: var(--ink-soft); max-width: 44rem; }
.lead-card .bio p:first-child { color: var(--ink); font-size: var(--t-lg); line-height: 1.85; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.6rem; max-width: 36rem; }
.fact { border-top: 2px solid var(--accent); padding-top: 0.8rem; }
.fact b { display: block; font-family: var(--f-display); font-size: 1.4rem; font-weight: 600; line-height: 1.3; }
.fact span { display: block; font-size: var(--t-xs); color: var(--ink-soft); margin-top: 0.3rem; line-height: 1.6; }
.members { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.member { display: grid; gap: 0.45rem; align-content: start; padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; transition: border-color 200ms ease, translate 300ms ease; }
.member:hover { border-color: var(--line-strong); translate: 0 -3px; }
.member { padding: 0.75rem 0.75rem 1.3rem; }
.member > :not(.member__photo) { margin-inline: 0.65rem; }
.member__photo { position: relative; margin: 0 0 0.7rem; aspect-ratio: 4 / 5; border-radius: 999px 999px 8px 8px; overflow: hidden; background: var(--burgundy-dark); display: grid; place-items: end center; }
.member__photo::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgb(192 149 88 / 0.55); border-radius: 999px 999px 4px 4px; pointer-events: none; }
.member__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.member__ph { width: 72%; color: var(--gold); opacity: 0.75; }
.member h3 { font-size: 1.1rem; }
.member p { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.85; }
.team-block .more-link { margin-top: 2rem; }

/* selected work */
.record-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.record { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.record li { display: grid; grid-template-columns: 10rem 1fr; gap: 0.3rem 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line-strong); }
.record b { font-family: var(--f-display); font-weight: 600; font-size: 1rem; line-height: 1.6; color: var(--heading); }
.record p { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.85; }
.record strong { color: var(--ink); font-weight: 600; }

/* why */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; margin: 3rem 0 0; padding: 0; list-style: none; }
.why li { display: grid; gap: 0.5rem; align-content: start; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: 6px; padding: 1.5rem 1.4rem 1.6rem; }
.why__n { font-family: var(--f-display); font-size: 1.7rem; font-weight: 600; color: var(--gold); line-height: 1; }
.why h3 { font-size: 1.12rem; margin-top: 0.6rem; }
.why p { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.85; margin: 0; }
.gains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin: 3rem 0 0; padding: 0; list-style: none; }
.gains li { display: grid; grid-template-rows: auto auto 1fr auto; gap: 0.6rem; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: 6px; padding: 1.5rem 1.4rem 1.3rem; }
.gains li > svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); }
.gains h3 { font-size: 1.15rem; margin-top: 0.3rem; }
.gains p { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.85; margin: 0; }
.gains__why { margin-top: 0.4rem; padding-top: 0.8rem; border-top: 1px dashed var(--line-strong); font-size: var(--t-xs); color: var(--accent-text); font-weight: 500; line-height: 1.6; }
.gains__why::before { content: "لأن: "; color: var(--ink-soft); font-weight: 400; }

/* need -> solution rows (practice-areas page) */
.need-rows { display: grid; gap: clamp(2.2rem, 4vw, 3rem); }
.need-row + .need-row { padding-top: clamp(2.2rem, 4vw, 3rem); border-top: 1px solid var(--line-strong); }
.need-row { display: grid; grid-template-columns: minmax(0, 0.8fr) auto minmax(0, 1.4fr); gap: clamp(1rem, 2.5vw, 2rem); align-items: center; scroll-margin-top: 90px; }
.need-row__need { display: grid; gap: 0.8rem; align-content: start; }
.need-row__tag { margin: 0; display: flex; align-items: center; gap: 0.6rem; font-size: var(--t-sm); font-weight: 600; color: var(--ink-soft); }
.need-row__need h2 { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem); line-height: 1.6; }
.need-row__sub { margin: 0.4rem 0 0; font-size: var(--t-xs); color: var(--ink-soft); }
.need-row__need ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.need-row__need li { position: relative; padding-inline-start: 1rem; font-size: var(--t-sm); line-height: 1.8; color: var(--ink-soft); }
.need-row__need li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.75em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.need-row__arrow { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font-size: 1.2rem; background: var(--surface); }
.need-row__fix { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); background: var(--ground); color: var(--on-ground); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.need-row__fix .ph { border-radius: 0; min-height: 100%; }
.need-row__fix .needs__body h3 { font-size: 1.15rem; }

/* need -> solution tabs (homepage) */
.needs { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 3rem; align-items: start; }
.needs__list { display: grid; gap: 0.7rem; }
.needs__list button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 2.4rem 1fr 2rem; gap: 0.8rem; align-items: center; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 1px 2px rgba(43, 35, 38, 0.06); transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease; }
.needs__list button::after { content: "\2190"; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--accent); font-size: 1.05rem; line-height: 1; transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease; }
.needs__list button:hover { border-color: var(--gold); box-shadow: 0 6px 18px rgba(76, 30, 49, 0.12); transform: translateY(-2px); }
.needs__list button:hover::after { background: var(--gold); border-color: var(--gold); color: #fff; transform: translateX(-3px); }
.needs__list button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.needs__list button[aria-selected="true"] { background: var(--ground); border-color: var(--ground); box-shadow: 0 8px 22px rgba(76, 30, 49, 0.22); transform: none; }
.needs__list button[aria-selected="true"]::after { background: var(--gold); border-color: var(--gold); color: var(--ground); transform: none; }
.needs__list button[aria-selected="true"] .needs__q { color: var(--on-ground); }
.needs__n { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; color: var(--gold); line-height: 1.7; }
.needs__q { font-family: var(--f-display); font-size: 1.02rem; font-weight: 500; line-height: 1.75; color: var(--ink); }
.needs.is-closed { grid-template-columns: minmax(0, 1fr); }
.needs.is-closed .needs__panels { display: none; }
.needs__panels { position: sticky; top: 100px; display: grid; gap: 1.2rem; }
.needs__panel { scroll-margin-top: 90px; background: var(--ground); color: var(--on-ground); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.needs__panel:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.needs__panel[hidden] { display: none; }
.needs__panel .ph { aspect-ratio: 16 / 7; border-radius: 0; }
.needs__body { padding: 1.6rem 1.8rem 1.9rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
.needs__label { margin: 0; font-size: var(--t-sm); font-weight: 600; color: var(--accent-on-ground); }
.needs__body h3 { font-size: 1.3rem; line-height: 1.6; color: var(--on-ground); }
.needs__body ul { list-style: none; margin: 0; padding: 0.9rem 0 0.3rem; border-top: 1px solid var(--ground-line); display: grid; gap: 0.5rem; }
.needs__body li { display: grid; grid-template-columns: 16px 1fr; gap: 0.6rem; font-size: var(--t-sm); line-height: 1.75; color: var(--on-ground-soft); }
.needs__body li svg { width: 16px; height: 16px; margin-top: 0.3rem; color: var(--accent-on-ground); }
.needs__body .btn { justify-self: start; max-width: 100%; white-space: normal; text-align: center; margin-top: 0.3rem; border-color: var(--ground-line-strong); color: var(--on-ground); }
.needs__body .btn:hover { border-color: var(--accent-on-ground); }
.fx .needs__panel.swap { animation: rise 500ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }


/* ------------------------------------------------------------ insights (blog) */
.insights-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.2rem; }
.filters button, .filters a { font-family: var(--f-text); font-size: var(--t-sm); font-weight: 500; padding: 0.4rem 0.95rem; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"], .filters a[aria-current] { background: var(--ground); color: var(--on-ground); border-color: var(--ground); }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin-top: 1.6rem; }
.post { display: flex; flex-direction: column; gap: 0.75rem; padding: 0 1.5rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.post .ph { margin-inline: -1.5rem; margin-bottom: 0.4rem; aspect-ratio: 16 / 9; border-radius: 0; }
.post .meta { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--t-xs); color: var(--ink-soft); }
.post .cat { color: var(--accent-text); font-weight: 600; }
.post h3 { font-size: 1.12rem; line-height: 1.6; }
.post p { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.85; flex: 1; }
.post .for { font-size: var(--t-xs); color: var(--ink-soft); padding-top: 0.8rem; border-top: 1px solid var(--line); }
.post .for b { color: var(--ink); font-weight: 600; }
.post .soon { align-self: start; font-size: 0.72rem; font-weight: 600; padding: 0.1rem 0.55rem; border-radius: 999px; border: 1px dashed var(--line-strong); color: var(--ink-soft); }

/* ------------------------------------------------------------ faq
   Heading + help box pinned on the start side (kept together, never stretched to the list's
   height); questions as cards with a round +/- toggle; the open card is marked in gold. */
.faq .wrap { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 58rem; gap: 1.6rem; align-items: start; }
.faq-aside { display: contents; }
.faq-aside .section-head { order: 0; }
.faq-list { order: 1; }
.faq-help { order: 2; }
.faq-help { display: grid; gap: 0.5rem; padding: 1.3rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: 10px; }
.faq-help b { font-family: var(--f-display); font-size: 1.08rem; color: var(--heading); }
.faq-help p { font-size: var(--t-sm); color: var(--ink-soft); }
.faq-help__ctas { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.5rem; }
.faq-help__ctas .btn { padding: 0.65rem 1.1rem; font-size: var(--t-sm); }
.faq-help__ctas .btn svg { color: #1F7A4D; }
.faq-list { display: grid; gap: 0.7rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; transition: border-color 200ms ease, box-shadow 300ms ease; }
.faq details:hover { border-color: var(--line-strong); }
.faq details[open] { border-color: rgb(192 149 88 / 0.7); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem 1.3rem; font-family: var(--f-display); font-weight: 500; font-size: 1.05rem; line-height: 1.6; color: var(--heading); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
.faq-x { position: relative; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent-tint); transition: background-color 200ms ease, rotate 250ms ease; }
.faq-x::before, .faq-x::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 11px; height: 1.6px; margin: -0.8px 0 0 -5.5px; background: var(--accent-text); border-radius: 2px; transition: rotate 250ms ease, background-color 200ms ease; }
.faq-x::after { rotate: 90deg; }
.faq details[open] .faq-x { background: var(--burgundy-dark); }
.faq details[open] .faq-x::before, .faq details[open] .faq-x::after { background: var(--gold); }
.faq details[open] .faq-x::after { rotate: 0deg; }
.faq .faq-a { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); font-size: var(--t-sm); line-height: 1.95; }
.faq .faq-a p + p { margin-top: 0.6rem; }
@media (prefers-reduced-motion: reduce) { .faq-x, .faq-x::before, .faq-x::after { transition: none; } }

/* ------------------------------------------------------------ booking */
.book { background: var(--surface); border-top: 1px solid var(--line); }
.book .wrap { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.book-aside { display: grid; gap: 1.2rem; position: sticky; top: 100px; }
.book-aside .summary, .area-aside .summary, .article-aside .summary { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 1.2rem 1.3rem; display: grid; gap: 0.4rem; font-size: var(--t-sm); }
.book-aside .summary b, .area-aside .summary b, .article-aside .summary b { font-family: var(--f-display); font-size: 1.08rem; }
.book-aside .summary span, .area-aside .summary span, .article-aside .summary span { color: var(--ink-soft); }
.book-aside .alt, .area-aside .alt, .article-aside .alt { font-size: var(--t-sm); color: var(--ink-soft); }
.book-aside .alt a, .area-aside .alt a, .article-aside .alt a { color: var(--ink); font-weight: 600; text-decoration-color: var(--accent); text-underline-offset: 0.3em; }
form.booking { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend, .field-label { font-size: var(--t-sm); font-weight: 600; padding: 0; }
.field label small, .field legend small, .field-label small { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea { font: inherit; font-size: var(--t-base); color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 6px; padding: 0.7rem 0.85rem; width: 100%; min-width: 0; }
.field textarea { min-height: 8.5rem; resize: vertical; line-height: 1.8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(96 22 50 / 0.18); }
.field [aria-invalid="true"] { border-color: var(--err); }
.field input[type="tel"], .field input[type="email"] { direction: ltr; text-align: right; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.modes { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.modes label { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.95rem; border: 1px solid var(--line-strong); border-radius: 6px; cursor: pointer; font-weight: 500; }
.modes input { accent-color: #601632; width: 16px; height: 16px; }
.modes label:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.drop { border: 1.5px dashed var(--line-strong); border-radius: 6px; padding: 1rem 1.1rem; display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; align-items: center; font-size: var(--t-sm); }
.drop.is-over { border-color: var(--accent); background: var(--accent-tint); }
.drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop label.pick { cursor: pointer; font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.3em; }
.drop input:focus-visible + label.pick { outline: 2px solid var(--accent); outline-offset: 3px; }
.drop small { color: var(--ink-soft); width: 100%; }
.files { list-style: none; margin: 0.4rem 0 0; padding: 0; font-size: var(--t-sm); }
.files li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; border-top: 1px solid var(--line); }
.files li.bad { color: var(--err); }
.files button { background: none; border: 0; color: var(--ink-soft); cursor: pointer; font: inherit; }
.consent { grid-column: 1 / -1; display: flex; gap: 0.7rem; align-items: start; font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.8; }
.consent input { width: 18px; height: 18px; margin-top: 0.35rem; flex: none; accent-color: #601632; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.error { grid-column: 1 / -1; color: var(--err); font-size: var(--t-sm); }
.error:empty { display: none; }
.receipt { scroll-margin-top: 90px; margin-top: 1.6rem; background: var(--ground); color: var(--on-ground); border-radius: 8px; padding: clamp(1.3rem, 3.5vw, 2rem); }
.receipt h2, .receipt h3 { font-size: 1.3rem; }
.receipt dl { display: grid; grid-template-columns: 8rem 1fr; gap: 0.3rem 1rem; margin: 1rem 0; font-size: var(--t-sm); }
.receipt dt { color: var(--on-ground-soft); }
.receipt dd { margin: 0; }
.receipt__cta { margin: 1.2rem 0 0.8rem; }
.receipt__cta .btn { white-space: normal; }
.receipt ol { margin: 0; padding-inline-start: 1.2rem; font-size: var(--t-sm); line-height: 1.9; color: var(--on-ground); }
.receipt .note { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--ground-line); font-size: var(--t-xs); color: var(--on-ground-soft); }

/* ------------------------------------------------------------ footer */
footer { padding-block: clamp(3.5rem, 7vw, 5rem) 2.2rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.35fr) minmax(0, 0.6fr); gap: clamp(2rem, 5vw, 4.5rem); }
.foot-brand { display: grid; justify-items: start; align-content: start; gap: 1.5rem; }
.foot-brand .brand { display: block; }
.foot-brand .brand::after { content: ""; display: block; width: 56px; height: 1.5px; background: var(--gold); margin-top: 1.3rem; }
.foot-brand .tagline { color: var(--on-ground-soft); font-size: var(--t-sm); line-height: 2.05; max-width: 25rem; }
.btn-gold { background: var(--gold); color: var(--burgundy-dark); }
.btn-gold:hover { background: #CFA66B; }
.foot-h { font-size: 1.12rem; color: var(--gold); margin-bottom: 1.8rem; }
.foot-h::after { content: ""; display: block; width: 2.2rem; height: 1.5px; background: var(--gold); margin-top: 0.7rem; }
.fc { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.15rem; }
.fc__row { display: grid; grid-template-columns: 2.9rem minmax(0, 1fr) auto; gap: 0.6rem 1rem; align-items: center; }
.fc__row--addr { grid-template-columns: 2.9rem minmax(0, 1fr); align-items: start; }
.fc__icon { width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 1px solid var(--ground-accent-line); color: var(--gold); display: grid; place-items: center; }
.fc__icon svg { width: 1.1rem; height: 1.1rem; }
.fc__row--cont { margin-top: -0.4rem; }
.fc__row--cont .fc__icon { border: 0; }
.fc__text { display: grid; gap: 0.15rem; min-width: 0; }
.fc__text small { font-size: var(--t-xs); color: var(--on-ground-soft); }
.fc__val { justify-self: start; font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; color: var(--on-ground); text-decoration: none; overflow-wrap: anywhere; }
.fc__val:hover, .fc__addr:hover { color: var(--gold); }
.fc__addr { color: var(--on-ground); text-decoration: none; font-weight: 500; line-height: 1.95; margin-top: 0.2rem; }
.fc__addr-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.4rem; margin-top: 0.9rem; }
.icon-btn { flex: none; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink-soft); cursor: pointer; padding: 0; transition: color 160ms ease, border-color 160ms ease; }
.icon-btn:hover { color: var(--accent-text); border-color: var(--accent); }
.ground-dark .icon-btn { border-color: var(--ground-line-strong); color: var(--on-ground-soft); }
.ground-dark .icon-btn:hover { color: var(--gold); border-color: var(--gold); }
.icon-btn svg { width: 1.05rem; height: 1.05rem; }
.copy svg + svg, .copy.is-done svg:first-child { display: none; }
.copy.is-done svg + svg { display: block; color: var(--gold); }
.chip { display: inline-flex; align-items: center; gap: 0.7rem; border: 1px solid var(--ground-line-strong); border-radius: 8px; padding: 0.3rem; padding-inline: 0.9rem; min-height: 2.6rem; }
.chip small { font-size: var(--t-xs); color: var(--on-ground-soft); }
.chip b { font-family: var(--f-display); font-weight: 600; color: var(--on-ground); letter-spacing: 0.04em; }
.chip .icon-btn { width: 2rem; height: 2rem; border: 0; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; font-size: var(--t-sm); }
.foot-links a { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--on-ground); text-decoration: none; font-weight: 500; }
.foot-links a::before { content: ""; width: 6px; height: 6px; border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); rotate: 45deg; transition: translate 200ms ease; }
.foot-links a:hover { color: var(--gold); }
.foot-links a:hover::before { translate: -3px 0; }
.foot-legal { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.6rem; border-top: 1px solid var(--ground-line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem 2rem; }
.foot-legal__main { display: grid; gap: 0.5rem; }
.foot-legal__main .num { font-size: var(--t-sm); color: var(--on-ground); }
.foot-legal__note { display: flex; align-items: center; gap: 0.5rem; font-size: var(--t-xs); color: var(--on-ground-soft); }
.foot-legal__note svg { width: 14px; height: 14px; flex: none; }
.foot-legal__links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; font-size: var(--t-sm); }
.foot-legal__links li + li::before { content: ""; display: inline-block; width: 1px; height: 1em; background: var(--ground-line-strong); margin-inline: 1.1rem; vertical-align: middle; }
.foot-legal__links a { color: var(--on-ground); text-decoration: none; }
.foot-legal__links a:hover { color: var(--gold); }

.wa { position: fixed; z-index: 40; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); inset-inline-start: 18px; display: flex; align-items: center; gap: 0.5rem; background: #1F7A4D; color: #fff; text-decoration: none; padding: 0.7rem 1rem; border-radius: 999px; font-size: var(--t-sm); font-weight: 600; box-shadow: 0 8px 24px -8px rgb(0 0 0 / 0.45); }
.wa svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------ imagery */
.ph { position: relative; overflow: hidden; border-radius: 6px; background: var(--ground); margin: 0; max-width: 100%; }
.ph img { position: absolute; inset: -9% 0; width: 100%; height: 118%; object-fit: cover; filter: saturate(0.78) contrast(1.03); will-change: transform; transition: scale 900ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.ph.tint::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(76 30 49 / 0.5), rgb(76 30 49 / 0) 55%); pointer-events: none; }
.ph figcaption { position: absolute; z-index: 1; inset-inline-start: 1rem; bottom: 0.8rem; font-size: var(--t-xs); color: #FFF4E7; }
.consult-head { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: end; }
.consult-head .ph { aspect-ratio: 16 / 10; }
.work-photo { aspect-ratio: 21 / 9; margin-top: 3rem; }

/* the peak: a full-bleed Riyadh skyline that settles as you pass it */
.band { position: relative; overflow: clip; min-height: clamp(20rem, 56vh, 32rem); display: grid; align-items: start; background: #F3E8D3; isolation: isolate; }
.band__img { position: absolute; inset: 0; z-index: -1; will-change: transform; }
.band__img img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 70%; }
.band__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgb(243 232 211 / 0.72) 0%, rgb(243 232 211 / 0.35) 34%, rgb(243 232 211 / 0) 55%), linear-gradient(to bottom, rgb(243 232 211 / 0.4), rgb(243 232 211 / 0) 50%); }
.band__copy { padding-block: clamp(2.8rem, 6vw, 4.5rem); display: grid; gap: 1.6rem; justify-items: start; will-change: transform; }
.band__inner { width: min(28rem, 32vw); display: grid; gap: 1.6rem; justify-items: start; }
.band__copy p { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.8rem, 1rem + 2vw, 2.9rem); line-height: 1.35; color: var(--burgundy-dark); }
.band__copy .btn-primary { background: var(--burgundy-dark); color: var(--ivory); }
.band__copy .btn-primary:hover { background: var(--burgundy); }

/* ------------------------------------------------------------ motion (only when allowed) */
.progress { position: fixed; z-index: 61; top: env(safe-area-inset-top, 0px); inset-inline: 0; height: 2px; background: var(--accent); transform-origin: 100% 50%; transform: scaleX(0); pointer-events: none; }
.nav { transition: box-shadow 240ms ease; }
.nav.scrolled { box-shadow: 0 10px 30px -22px rgb(76 30 49 / 0.6); }
.fx [data-reveal] { opacity: 0.3; transform: translateY(26px); transition: opacity 800ms ease, transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: var(--d, 0ms); }
.fx [data-reveal].in { opacity: 1; transform: none; }
.fx [data-wipe] { clip-path: inset(12% 6% 12% 6% round 6px); transition: clip-path 1200ms cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: var(--d, 0ms); }
.fx [data-wipe].in { clip-path: inset(0 0 0 0 round 0); }
.fx .hero-copy > * { animation: rise 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.fx .hero-copy > :nth-child(2) { animation-delay: 90ms; }
.fx .hero-copy > :nth-child(3) { animation-delay: 180ms; }
.fx .hero-copy > :nth-child(4) { animation-delay: 270ms; }
.fx .hero-copy > :nth-child(5) { animation-delay: 360ms; }
.fx .hero-shot__frame { animation: memo-in 1100ms cubic-bezier(0.2, 0.8, 0.2, 1) 150ms both; }
.fx .hero-shot__chip { animation: memo-in 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 650ms both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes memo-in { from { opacity: 0; translate: 0 60px; } to { opacity: 1; translate: 0 0; } }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .nav ul { display: none; }
  .menu-btn { display: block; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-entry { grid-template-columns: minmax(0, 1fr); }
  .members, .why, .gains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .need-row__fix { grid-template-columns: minmax(0, 1fr); }
  .need-row__fix .ph { aspect-ratio: 16 / 7; min-height: 0; }
}
@media (max-width: 820px) {
  .hero .wrap, .faq .wrap, .book .wrap, .record-wrap, .lead-card, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .lead-card .portrait { max-width: 15rem; }
  .visit { position: static; }
  .hero-shot { justify-self: center; width: min(88%, 20rem); margin-top: 1.5rem; }
  .needs { grid-template-columns: minmax(0, 1fr); }
  .need-row { grid-template-columns: minmax(0, 1fr); }
  .need-row__arrow { transform: rotate(-90deg); justify-self: center; }
  .needs__panels { position: static; }
  .needs__list .needs__panel { margin: 0.2rem 0 1.2rem; }
  .needs__list button[aria-expanded="true"] { background: var(--ground); border-color: var(--ground); }
  .needs__list button[aria-expanded="true"] .needs__q { color: var(--on-ground); }
  .needs__list button::after { transform: rotate(-90deg); }
  .needs__list button[aria-expanded="true"]::after { transform: rotate(90deg); background: var(--gold); border-color: var(--gold); color: var(--ground); }
  .hero-shot__chip { position: relative; inset: auto; margin: -1.6rem 0.8rem 0; max-width: none; }
  .hero-shot::before { inset: -10px -10px 10px 10px; }
  .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .consult-head { grid-template-columns: minmax(0, 1fr); }
  .work-photo { aspect-ratio: 16 / 9; }
  .band__img img { object-position: 66% 70%; }
  .band__inner { width: auto; }
  .band__copy p { max-width: 12ch; }
  .book-aside { position: static; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .record li { grid-template-columns: minmax(0, 1fr); }
  .foot-legal { flex-direction: column; }
}
@media (max-width: 600px) {
  .nav .btn { display: none; }
  .nav .logo { width: 180px; }
  .nav .wrap { min-height: 72px; }
  .plans, .posts, .members, .why, .gains { grid-template-columns: minmax(0, 1fr); }
  .channel { grid-template-columns: 3rem minmax(0, 1fr); }
  .channel__btn { grid-column: 1 / -1; }
  .scheduler__frame { height: 900px; }
  .fc__row { grid-template-columns: 2.6rem minmax(0, 1fr) auto; gap: 0.6rem 0.8rem; }
  .fc__row--addr { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .fc__icon { width: 2.6rem; height: 2.6rem; }
  form.booking { grid-template-columns: minmax(0, 1fr); }
  .wa span { display: none; }
  .wa { padding: 0.8rem; }
  .receipt dl { grid-template-columns: 6rem 1fr; }
  .marquee__track li { height: 44px; }
}

/* ============================================================ WordPress build: multi-page additions */

.skip-link:focus { position: fixed; z-index: 100; top: 8px; inset-inline-start: 8px; width: auto; height: auto; clip: auto; padding: 0.6rem 1rem; background: var(--accent); color: var(--btn-ink); border-radius: 6px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav ul a[aria-current] { border-bottom-color: var(--accent); }
dialog.menu li a[aria-current] { color: var(--accent-text); }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.more-link { margin-top: 2.2rem; }
.more-link a:not(.btn) { font-weight: 600; color: var(--accent-text); text-decoration: none; border-bottom: 1px solid currentColor; padding-block: 0.2rem; }
.form-foot small { color: var(--ink-soft); }
.empty { color: var(--ink-soft); margin-top: 2rem; }

/* whole cards are clickable through their title link */
.post { position: relative; }
.post h3 a { color: inherit; text-decoration: none; font: inherit; border: 0; padding: 0; }
.post h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post:hover h3 { color: var(--accent-text); }
.post:has(h3 a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ------------------------------------------------------------ inner page header */
.page-hero { position: relative; isolation: isolate; padding-block: clamp(2rem, 4.5vw, 3.4rem) clamp(2.2rem, 4.5vw, 3.4rem); overflow: clip; border-bottom: 1px solid var(--line); }
/* a sand section straight after the (sand) page header switches to ivory so the two read apart */
.page-hero + .ground-sand, .page-hero + * > .ground-sand:first-child { background: var(--bg); }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; filter: saturate(0.6); }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgb(243 232 211 / 0.97) 0%, rgb(243 232 211 / 0.88) 45%, rgb(243 232 211 / 0.4) 100%); }
.page-hero__copy { max-width: 46rem; margin-top: 1rem; }
.page-hero h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); font-weight: 700; line-height: 1.3; margin-top: 0.8rem; }
.page-hero .lede { margin-top: 0.9rem; font-size: var(--t-lg); line-height: 1.9; color: var(--on-ground-soft); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 0.6rem; font-size: var(--t-xs); color: var(--on-ground-soft); }
.crumbs li + li::before { content: "/"; margin-inline-end: 0.6rem; opacity: 0.5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent-on-ground); }
.crumbs [aria-current] { color: var(--on-ground); }

/* ------------------------------------------------------------ practice-area page */
.area-intro .wrap { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.prose-lg { display: grid; gap: 1.1rem; max-width: 44rem; }
.prose-lg p { font-size: var(--t-lg); line-height: 1.95; color: var(--ink-soft); }
.prose-lg p:first-child { color: var(--ink); }
.area-sub { font-size: 1.2rem; margin-top: 3rem; }
.situations { list-style: none; margin: 1.2rem 0 0; padding: 0; border-top: 1px solid var(--line-strong); }
.situations li { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.6rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-size: 1.05rem; line-height: 1.75; }
.situations li::before { content: ""; width: 9px; height: 9px; margin-top: 0.7rem; background: var(--accent); rotate: 45deg; }
.area-aside { display: grid; gap: 1rem; position: sticky; top: 100px; }
.area-aside .summary .btn, .article-aside .summary .btn { margin-top: 0.8rem; white-space: normal; text-align: center; }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 3rem; padding: 1px 0 0 1px; }
.service { border: 1px solid var(--ground-line); margin: -1px 0 0 -1px; padding: 1.7rem 1.6rem; display: grid; gap: 0.7rem; align-content: start; }
.service h3 { font-size: 1.15rem; color: var(--on-ground); }
.service h3::before { content: ""; display: block; width: 10px; height: 10px; background: var(--accent); rotate: 45deg; margin-bottom: 0.9rem; }
.service p { font-size: var(--t-sm); color: var(--on-ground-soft); line-height: 1.85; }
.service ul { list-style: none; margin: 0.3rem 0 0; padding: 0.8rem 0 0; border-top: 1px solid var(--ground-line); display: grid; gap: 0.3rem; font-size: var(--t-sm); line-height: 1.75; color: var(--on-ground); }
.service li::before { content: "·"; color: var(--accent-on-ground); font-weight: 700; margin-inline-end: 0.5rem; }
.area-others { padding-block: 0 clamp(4rem, 8vw, 6rem); }
.area-others .area-sub { margin-top: 0; }
.area-links { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2rem; border-top: 1px solid var(--line-strong); }
.area-links a { display: flex; justify-content: space-between; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--f-display); font-weight: 500; font-size: 1.05rem; }
.area-links a span { color: var(--accent-text); transition: translate 200ms ease; }
.area-links a:hover { color: var(--accent-text); }
.area-links a:hover span { translate: -4px 0; }

/* ------------------------------------------------------------ about */
.portrait__frame.has-photo::before { z-index: 1; border-color: rgb(192 149 88 / 0.7); }
.portrait__frame.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.vm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); }
.vm__text { font-family: var(--f-display); font-size: var(--t-xl); line-height: 1.7; margin-top: 1rem; color: var(--on-ground); }
.values-h { font-size: var(--t-2xl); margin-top: clamp(3.5rem, 7vw, 5rem); }
.why.values { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.6rem; }

/* ------------------------------------------------------------ contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.channels__h { font-size: var(--t-xl); margin-bottom: 1.4rem; }
.channels__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.channel { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) 9.5rem; align-items: center; gap: 1.2rem; padding: 1.3rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; transition: border-color 200ms ease; }
.channel:hover { border-color: var(--line-strong); }
.channel__icon { width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--accent-tint); color: var(--accent-text); display: grid; place-items: center; flex: none; }
.channel__icon svg { width: 1.3rem; height: 1.3rem; }
.channel__icon--wa { background: rgb(31 122 77 / 0.1); color: #1F7A4D; }
.channel__text { display: grid; gap: 0.15rem; min-width: 0; }
.channel__text h3 { font-size: 1.1rem; }
.channel__text p { font-size: var(--t-sm); color: var(--ink-soft); }
.channel__vals { display: flex; flex-wrap: wrap; gap: 0.1rem 1.4rem; }
.channel__val { justify-self: start; margin-top: 0.3rem; font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
a.channel__val:hover { color: var(--accent-text); }
.copy-row { display: inline-flex; align-items: center; gap: 0.6rem; }
.copy-row .icon-btn { width: 2.1rem; height: 2.1rem; }
.channel__btn { width: 100%; }
.contact-cta { margin-top: 1.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.2rem 1.5rem; padding: clamp(1.4rem, 3vw, 2rem); background: var(--ground); color: var(--on-ground); border-radius: 10px; }
.contact-cta h2 { font-size: var(--t-xl); }
.contact-cta p { color: var(--on-ground-soft); margin-top: 0.4rem; max-width: 30rem; font-size: var(--t-sm); }
.visit { position: sticky; top: 100px; display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.visit__map { aspect-ratio: 4 / 3; background: var(--sand); }
.visit__map iframe { display: block; width: 100%; height: 100%; border: 0; filter: saturate(0.8); }
.visit__body { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 1rem; padding: 1.4rem 1.4rem 0; }
.visit__body h2 { font-size: 1.15rem; }
.visit__addr { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.9; margin: 0.3rem 0 0.9rem; }
.chip--light { border-color: var(--line-strong); }
.chip--light small { color: var(--ink-soft); }
.chip--light b { color: var(--ink); }
.visit__btn { margin: 1.2rem 1.4rem 1.4rem; }

/* booking scheduler (after the request is sent) */
.scheduler { margin-top: 1.4rem; padding: clamp(1.2rem, 3vw, 1.6rem); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.scheduler__head { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.scheduler__head h2 { font-size: 1.25rem; }
.scheduler__head p { font-size: var(--t-sm); color: var(--ink-soft); margin-top: 0.3rem; }
.scheduler__frame { display: block; width: 100%; height: 760px; border: 0; margin-top: 1.2rem; border-radius: 8px; background: var(--surface); }
.scheduler__alt { margin-top: 0.8rem; font-size: var(--t-xs); color: var(--ink-soft); }
.scheduler__alt a { color: var(--accent-text); font-weight: 600; }

/* ------------------------------------------------------------ booking page */
.book { border-top: 0; }
.mini-steps { list-style: none; margin: 0; padding: 0; counter-reset: m; display: grid; }
.mini-steps li { counter-increment: m; position: relative; display: grid; gap: 0.2rem; padding-inline-start: 2.6rem; padding-bottom: 1.3rem; font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.75; }
.mini-steps li::before { content: counter(m); position: absolute; inset-inline-start: 0; top: 0; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 50%; background: var(--burgundy-dark); color: var(--gold); font-family: var(--f-display); font-size: 0.8rem; font-weight: 600; }
.mini-steps li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: calc(0.9rem - 0.75px); top: 2.1rem; bottom: 0.3rem; width: 1.5px; background: linear-gradient(var(--gold), rgb(192 149 88 / 0.25)); }
.mini-steps b { color: var(--heading); font-family: var(--f-display); font-weight: 600; font-size: 1rem; }
.mini-steps__meta { justify-self: start; font-size: 0.72rem; font-weight: 600; padding: 0.05rem 0.55rem; border-radius: 999px; background: var(--accent-tint); color: var(--accent-text); }
.receipt { margin-top: 0; }
.receipt p { font-size: var(--t-sm); color: var(--on-ground-soft); margin-top: 0.8rem; }

/* ------------------------------------------------------------ insights + articles */
.insights-list .filters { margin-top: 0; }
.filters a { text-decoration: none; display: inline-block; }
.post h3 { margin-top: 0; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 2.5rem; }
.nav-links .page-numbers { min-width: 2.4rem; padding: 0.4rem 0.8rem; border: 1px solid var(--line-strong); border-radius: 6px; text-decoration: none; text-align: center; font-size: var(--t-sm); }
.nav-links .current { background: var(--ground); color: var(--on-ground); border-color: var(--ground); }
.article-head { border-bottom: 1px solid var(--line); padding-block: clamp(3rem, 7vw, 5rem) clamp(2.5rem, 5vw, 3.5rem); }
.article-head .crumbs { margin-bottom: 1.4rem; }
.article-head h1 { font-size: var(--t-2xl); font-weight: 700; line-height: 1.45; margin-top: 0.9rem; max-width: 48rem; }
.article-head .lede { margin-top: 1rem; font-size: var(--t-lg); color: var(--on-ground-soft); max-width: 44rem; line-height: 1.9; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; margin-top: 1.6rem; font-size: var(--t-xs); color: var(--on-ground-soft); }
.article-meta b { color: var(--on-ground); font-weight: 600; }
.article-photo { aspect-ratio: 21 / 9; margin-top: 2.5rem; }
.article-photo img { position: static; height: 100%; inset: auto; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(2.5rem, 6vw, 4rem); align-items: start; }
.article-aside { display: grid; gap: 1rem; position: sticky; top: 100px; }
.disclaimer { font-size: var(--t-xs); color: var(--ink-soft); padding: 1rem 1.2rem; border: 1px dashed var(--line-strong); border-radius: 6px; margin-bottom: clamp(3rem, 6vw, 4rem); max-width: 44rem; }
.disclaimer a { color: var(--ink); font-weight: 600; }

/* long-form text from the block editor */
.prose { max-width: 44rem; font-size: 1.08rem; line-height: 2; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font-size: var(--t-xl); margin-top: 2.2em; }
.prose h3 { font-size: var(--t-lg); margin-top: 1.8em; }
.prose a { color: var(--accent-text); text-underline-offset: 0.3em; }
.prose ul, .prose ol { padding-inline-start: 1.4rem; }
.prose li + li { margin-top: 0.4em; }
.prose .draft-note { padding: 1rem 1.2rem; border: 1px dashed var(--accent); border-radius: 6px; background: var(--accent-tint); font-size: var(--t-sm); }
.prose blockquote { margin-inline: 0; padding: 0.4rem 1.2rem; border-inline-start: 3px solid var(--accent); color: var(--ink-soft); font-family: var(--f-display); }
.prose img { height: auto; border-radius: 6px; }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: var(--t-xs); color: var(--ink-soft); margin-top: 0.5rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 0.6rem 0.4rem; text-align: start; }
.prose em { color: var(--ink-soft); }

/* ------------------------------------------------------------ responsive (additions) */
@media (max-width: 1080px) {
  .services, .area-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why.values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .area-intro .wrap, .article-grid, .vm, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .visit { position: static; }
  .area-aside, .article-aside { position: static; }
  .article-photo { aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
  .services, .area-links, .why.values { grid-template-columns: minmax(0, 1fr); }
  .contact-cta .btn { width: 100%; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; }
  .fact b { font-size: 1.15rem; }
}

/* ------------------------------------------------------------ booking steps: scroll-drawn track
   A gold thread links the four step nodes and draws itself as the section crosses the viewport;
   each step lights as the thread reaches it. Four across on desktop, a short vertical timeline on
   phones: the motion adds no scroll length. main.js adds .is-live and sets --f per step (0..1);
   without it (no JS, reduced motion) every step shows complete. */
.journey { border-top: 1px solid var(--line); }
.journey__grid { margin-top: clamp(2rem, 4vw, 3rem); }
.journey__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.journey__step { --f: 1; position: relative; display: grid; grid-template-rows: auto 1fr; gap: 1.1rem; }
/* thread: from this node to the next one */
.journey__step:not(:last-child)::before, .journey__step:not(:last-child)::after { content: ""; position: absolute; top: calc(1.45rem - 1px); inset-inline-start: 3.4rem; inset-inline-end: -1.2rem; height: 2px; border-radius: 2px; background: var(--line-strong); }
.journey__step:not(:last-child)::after { background: var(--gold); transform-origin: 100% 50%; transform: scaleX(var(--f)); }
.journey__node { position: relative; z-index: 1; width: 2.9rem; height: 2.9rem; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--gold); background: var(--burgundy-dark); color: var(--gold); font-family: var(--f-display); font-weight: 600; font-size: 0.95rem; transition: background-color 400ms ease, color 400ms ease, border-color 400ms ease, box-shadow 400ms ease, scale 400ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.journey__card { display: grid; gap: 0.5rem; align-content: start; padding: 1.3rem 1.3rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; transition: opacity 500ms ease, border-color 500ms ease, box-shadow 500ms ease, translate 600ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.journey__meta { justify-self: start; display: inline-flex; align-items: center; font-size: var(--t-xs); font-weight: 600; padding: 0.1rem 0.65rem; border-radius: 999px; background: var(--accent-tint); color: var(--accent-text); }
.journey__card h3 { font-size: 1.15rem; }
.journey__card > p { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.85; }
.journey__gets { margin-top: auto; padding-top: 0.6rem; border-top: 1px dashed var(--line-strong); font-size: var(--t-xs) !important; color: var(--ink) !important; line-height: 1.7 !important; }
.journey__gets span { color: var(--accent-text); font-weight: 600; }
.journey__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; margin-top: 1.8rem; }
.journey__cta small { font-size: var(--t-sm); color: var(--ink-soft); }

/* live: steps ahead are quiet, reached steps lit, the current one lifted */
.journey.is-live .journey__step { --f: 0; }
.journey.is-live .journey__step:not(.is-on):not(.is-past) .journey__card { opacity: 0.45; }
.journey.is-live .journey__step:not(.is-on):not(.is-past) .journey__node { background: var(--bg); color: var(--ink-soft); border-color: var(--line-strong); }
.journey__step.is-on .journey__node { scale: 1.1; box-shadow: 0 0 0 6px rgb(192 149 88 / 0.2); }
.journey__step.is-on .journey__card { border-color: rgb(192 149 88 / 0.6); box-shadow: var(--shadow); translate: 0 -4px; }

@media (max-width: 1080px) {
  /* vertical timeline: node column + card, thread runs down between nodes */
  .journey__steps { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 40rem; }
  .journey__step { grid-template-columns: 2.9rem minmax(0, 1fr); grid-template-rows: none; gap: 1rem; padding-bottom: 0.9rem; }
  .journey__step:not(:last-child)::before, .journey__step:not(:last-child)::after { top: 3.2rem; bottom: 0.3rem; inset-inline-start: calc(1.45rem - 1px); inset-inline-end: auto; width: 2px; height: auto; }
  .journey__step:not(:last-child)::after { transform-origin: 50% 0; transform: scaleY(var(--f)); }
  .journey__card { padding: 1rem 1.1rem; }
  .journey__step.is-on .journey__card { translate: none; }
}
@media (prefers-reduced-motion: reduce) {
  .journey__node, .journey__card { transition: none; }
}

/* ------------------------------------------------------------ consultations page: offer in the hero */
.cons-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.cons-hero__trust { list-style: none; margin: 1.3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-size: var(--t-sm); color: var(--ink); }
.cons-hero__trust li { display: inline-flex; align-items: center; gap: 0.45rem; }
.cons-hero__trust svg { width: 16px; height: 16px; color: var(--accent-text); }
.plan-entry.cons-hero__card { --ground: var(--burgundy-dark); --on-ground: var(--ivory); --on-ground-soft: #E2D2CC; --accent-on-ground: var(--gold); --ground-line: rgb(255 244 231 / 0.15); background: var(--burgundy-dark); color: var(--ivory); margin: 1rem 0 0; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; padding: clamp(1.3rem, 3vw, 1.8rem); border-top: 2px solid var(--gold); }
.cons-hero__card h2 { font-size: var(--t-xl); margin-top: 0.6rem; }
.plan-entry__note { display: inline-flex !important; align-items: center; gap: 0.4rem; }
.plan-entry__note svg { width: 15px; height: 15px; }
.cons-hero__card .plan-entry__cta { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.6rem 1rem; }
.journey__more { font-size: var(--t-sm); font-weight: 600; color: var(--accent-text); text-decoration: none; border-bottom: 1px solid currentColor; padding-block: 0.15rem; }

/* ------------------------------------------------------------ shorter pages
   Card grids become one swipeable row on phones instead of a long stack, so a section costs one
   card's height. The next card peeks in so the row reads as scrollable. */
@media (max-width: 600px) {
  .gains, .plans, .members, .posts, .services, .why.values {
    display: flex; gap: 0.9rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 0.3rem var(--gutter) 1rem; scroll-padding-inline: var(--gutter);
  }
  .gains::-webkit-scrollbar, .plans::-webkit-scrollbar, .members::-webkit-scrollbar, .posts::-webkit-scrollbar, .services::-webkit-scrollbar, .why.values::-webkit-scrollbar { display: none; }
  .gains > *, .plans > *, .members > *, .posts > *, .services > *, .why.values > * { flex: 0 0 84%; scroll-snap-align: start; }
  .services > .service { margin: 0; border: 1px solid var(--ground-line); border-radius: 10px; background: var(--ground); }
  .why.values > div { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1.2rem; }
  .consult-head .ph { display: none; }
  .need-row__fix .ph { display: none; }
  .section-head p { font-size: var(--t-base); }
  .cons-hero__card .plan-entry__cta { grid-template-columns: minmax(0, 1fr); }
  .lead-card .portrait { max-width: 11rem; }
}
@media (max-width: 820px) {
  .cons-hero__grid { grid-template-columns: minmax(0, 1fr); }
}

/* homepage: packages as a compact strip, full detail lives on the consultations page */
.plans--compact .plan { gap: 0.6rem; padding: 1.3rem 1.3rem 1.1rem; }
.plans--compact .plan .desc { flex: 1; }
.plan__more { align-self: start; font-size: var(--t-sm); font-weight: 600; color: var(--accent-text); text-decoration: none; }
.plan__more::after { content: ""; position: absolute; inset: 0; }
.plans--compact .plan { position: relative; transition: border-color 200ms ease, translate 300ms ease; }
.plans--compact .plan:hover { border-color: var(--accent); translate: 0 -3px; }
.plans--compact + .pay-note { display: none; }

/* phones: same content, less scrolling */
@media (max-width: 600px) {
  .hero { padding-block: 2.4rem 2.6rem; }
  .hero .lede { font-size: var(--t-base); line-height: 1.85; }
  .hero-shot { width: min(68%, 15rem); }
  .hero-shot__chip { display: none; }
  .needs__panel .ph { display: none; }
  .journey .section-head > p:not(.eyebrow) { display: none; }
  .journey__gets { display: none; }
  .journey__card { gap: 0.35rem; padding: 0.85rem 1rem; }
  .journey__card > p { font-size: var(--t-xs); line-height: 1.8; }
  .journey__cta .btn { width: 100%; }
  .lead-card { padding: 1.1rem; gap: 1.1rem; }
  .lead-card .portrait { max-width: 8.5rem; }
  .lead-card h3 { font-size: var(--t-xl); }
  .lead-card .bio p:first-child { font-size: var(--t-base); }
  .site-footer .logo--full { width: min(300px, 100%); }
  .foot-grid { gap: 2.2rem; }
  .foot-brand { gap: 1.1rem; }
  .foot-brand .tagline { line-height: 1.9; }
  .foot-h { margin-bottom: 1.1rem; }
  .foot-links { display: flex; flex-wrap: wrap; gap: 0.7rem 1.4rem; }
  .foot-legal__main .num { font-size: var(--t-xs); }
  .faq summary { padding: 0.9rem 1rem; font-size: 1rem; }
  .faq .faq-a { padding: 0 1rem 1rem; }
  .faq-help__ctas .btn { flex: 1; }
}

/* consultations page: packages as full-width rows (number · what it is · what's included · fee + action)
   instead of four tall columns. Phones keep the swipe row. */
@media (min-width: 821px) {
  .plans:not(.plans--compact) { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; counter-reset: pk; }
  .plans:not(.plans--compact) .plan {
    counter-increment: pk; display: grid; align-items: start;
    grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1.15fr) 12.5rem;
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "num tag list ." "num title list fee" "num desc list btn";
    column-gap: clamp(1.2rem, 2.5vw, 2.2rem); row-gap: 0.4rem; padding: 1.5rem 1.7rem;
    transition: border-color 200ms ease, box-shadow 300ms ease;
  }
  .plans:not(.plans--compact) .plan:hover { border-color: rgb(192 149 88 / 0.7); box-shadow: var(--shadow); }
  .plans:not(.plans--compact) .plan::before { content: counter(pk, decimal-leading-zero); grid-area: num; font-family: var(--f-display); font-size: 1.9rem; font-weight: 700; line-height: 1; color: var(--gold); padding-top: 0.15rem; }
  .plans:not(.plans--compact) .plan .tag { grid-area: tag; }
  .plans:not(.plans--compact) .plan h3 { grid-area: title; font-size: 1.3rem; }
  .plans:not(.plans--compact) .plan .desc { grid-area: desc; }
  .plans:not(.plans--compact) .plan ul { grid-area: list; align-self: stretch; align-content: center; padding-inline-start: clamp(1.2rem, 2.5vw, 2.2rem); border-inline-start: 1px solid var(--line); }
  .plans:not(.plans--compact) .plan .fee { grid-area: fee; align-self: end; padding: 0; border: 0; }
  .plans:not(.plans--compact) .plan .btn { grid-area: btn; align-self: start; margin-top: 0.3rem; }
}
@media (min-width: 821px) and (max-width: 1080px) {
  .plans:not(.plans--compact) .plan { grid-template-columns: 2.6rem minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "num tag list" "num title list" "num desc list" "num fee btn"; }
  .plans:not(.plans--compact) .plan .fee { align-self: center; }
}
@media (max-width: 820px) {
  /* phones/tablets: heading, then the questions, then the help box */
  .faq .wrap { gap: 1.6rem; }
  .faq-aside { display: contents; }
  .faq-aside .section-head { order: 0; }
  .faq-list { order: 1; }
  .faq-help { order: 2; }
}

/* team members on phones: compact horizontal cards (small arched portrait + text), stacked under the lead card */
/* Inline editor wrappers must retain the heading's original colour. */
.hero h1 > .elementor-inline-editing { color: inherit; }

@media (max-width: 600px) {
  .members { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.8rem; overflow: visible; margin-inline: 0; padding: 0; scroll-snap-type: none; }
  .members > .member { flex: none; display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); grid-template-areas: "photo role" "photo name" "photo bio"; column-gap: 1rem; row-gap: 0.15rem; align-content: center; align-items: start; padding: 0.8rem; }
  .member > :not(.member__photo) { margin-inline: 0; }
  .member__photo { grid-area: photo; align-self: start; margin: 0; }
  .member__photo::after { inset: 5px; }
  .member .role { grid-area: role; margin-top: 0.2rem; }
  .member h3 { grid-area: name; font-size: 1.05rem; }
  .member p { grid-area: bio; font-size: var(--t-xs); line-height: 1.8; margin-top: 0.15rem; }
}

/* contact channel cards on phones: tighter, number never wraps, slimmer action button */
@media (max-width: 600px) {
  .channel { grid-template-columns: 2.8rem minmax(0, 1fr); gap: 0.9rem 0.9rem; padding: 1rem 1.1rem; align-items: start; }
  .channel__icon { width: 2.8rem; height: 2.8rem; }
  .channel__text h3 { font-size: 1.05rem; }
  .channel__text p { font-size: var(--t-xs); line-height: 1.7; }
  .channel__vals { flex-direction: column; align-items: flex-start; gap: 0.1rem; }
  .channel__val.copy-row { display: flex; flex-wrap: nowrap; align-items: center; gap: 0.4rem; font-size: 0.86rem; }
  .channel__val.copy-row .icon-btn { width: 2rem; height: 2rem; flex: none; }
  .channel__val.copy-row .copy-src { white-space: nowrap; }
  .channel__val { font-size: 1rem; white-space: nowrap; overflow-wrap: normal; letter-spacing: 0; }
  .channel__btn { min-height: 2.75rem; padding-block: 0.55rem; }
}

/* Bilingual navigation and English typography. Logical spacing follows document direction. */
.language-switch { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem .65rem; font-size: .85rem; font-weight: 600; color: var(--accent-text); text-decoration: none; border: 1px solid var(--line-strong); border-radius: 6px; flex-shrink: 0; }
.language-switch:hover { border-color: var(--accent); background: var(--accent-tint); }
html[lang="en-US"] { --f-display: 'Alexandria', Arial, sans-serif; --f-text: 'IBM Plex Sans Arabic', Arial, sans-serif; }
[dir="ltr"] body { font-family: var(--f-text); line-height: 1.65; }
[dir="ltr"] .nav .logo { width: 210px; }
[dir="ltr"] .hero h1 { font-size: clamp(2rem, 4.1vw, 3.8rem); line-height: 1.2; letter-spacing: -.035em; }
[dir="ltr"] .section-head h2, [dir="ltr"] .page-head h1 { line-height: 1.3; letter-spacing: -.025em; }
[dir="ltr"] .journey__step:not(:last-child)::after { transform-origin: 0 50%; }
[dir="ltr"] .btn { white-space: normal; text-align: center; }
[dir="ltr"] .lead-card .en { display: none; }
[dir="ltr"] .summary b, [dir="ltr"] .fact span { overflow-wrap: anywhere; }
[dir="ltr"] .prose { line-height: 1.8; }
[dir="ltr"] .wa { right: 20px; left: auto; }
@media (max-width: 1200px) {
  [dir="ltr"] .nav nav { display: none; }
  [dir="ltr"] .menu-btn { display: block; }
}
@media (max-width: 1080px) { [dir="ltr"] .journey__step:not(:last-child)::after { transform-origin: 50% 0; } }
@media (max-width: 600px) {
  .nav .wrap { gap: .55rem; }
  .nav-actions { gap: .4rem; }
  .language-switch { padding-inline: .45rem; font-size: .75rem; }
  [dir="ltr"] .nav .logo { width: 140px; }
  [dir="ltr"] .nav-actions > .btn { display: none; }
  [dir="ltr"] .hero h1 { font-size: clamp(1.9rem, 7.8vw, 2.7rem); }
  [dir="ltr"] .fact b { font-size: 1.2rem; }
  [dir="ltr"] .fact span { font-size: .68rem; line-height: 1.5; }
  [dir="ltr"] .foot-contact .fc__val { font-size: .85rem; }
  [dir="ltr"] .channel__val { font-size: .9rem; }
}

[dir="ltr"] .field input[type="tel"], [dir="ltr"] .field input[type="email"] { text-align: left; }
[dir="ltr"] .foot-links a::before { rotate: 225deg; }
[dir="ltr"] .hero-bg::after { background: linear-gradient(to right, rgb(76 30 49 / .96), rgb(76 30 49 / .86) 40%, rgb(76 30 49 / .45) 72%, rgb(76 30 49 / .6)), linear-gradient(to top, rgb(76 30 49 / .95), transparent 34%); }
[dir="ltr"] .page-hero__bg::after { background: linear-gradient(to right, rgb(243 232 211 / .97), rgb(243 232 211 / .88) 45%, rgb(243 232 211 / .4)); }
[dir="ltr"] .band__img::after { background: linear-gradient(to right, rgb(243 232 211 / .72), rgb(243 232 211 / .35) 34%, transparent 55%), linear-gradient(to bottom, rgb(243 232 211 / .4), transparent 50%); }
@media (max-width: 820px) { [dir="ltr"] .need-row__arrow { transform: rotate(90deg); } }
[dir="ltr"] .gains__why::before { content: "Because: "; }
[dir="ltr"] .needs__list button::after { content: "\2192"; }
[dir="ltr"] .needs__list button:hover::after { transform: translateX(3px); }
@media (max-width: 820px) {
  [dir="ltr"] .needs__list button::after { transform: rotate(90deg); }
  [dir="ltr"] .needs__list button[aria-expanded="true"]::after { transform: rotate(-90deg); }
}
