/* ==========================================================================
   Dr. Mohamed Elgindi — site styles
   Palette and type come from the approved Concept 05 logo:
   charcoal #171717, muted gold #B89A5E (on dark), deep gold #7D6436
   (on light), ivory #F5F1E8; Jost (Latin) and Reem Kufi (Arabic display).
   Layout uses logical properties so one stylesheet serves RTL and LTR.
   Never letter-space Arabic: it breaks the joined script.
   ========================================================================== */

:root {
  --ink: #171717;
  --ink-deep: #101010;
  --ink-raised: #1F1F1F;
  --ink-line: #2E2E2E;
  --gold: #B89A5E;
  --gold-light: #CDB383;
  --gold-deep: #7D6436;
  --ivory: #F5F1E8;
  --paper: #FBF9F4;
  --white: #FFFFFF;
  --line: #DDD5C5;
  --line-strong: #CFC6B4;

  --text: #171717;
  --text-muted: #5E5A52;
  --text-on-dark: #F5F1E8;
  --muted-on-dark: #BDB6A8;
  --error: #9B2C2C;

  --font-en: "Jost", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Jost", system-ui, sans-serif;
  --font-ar-display: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif;
  --font-body: var(--font-ar);
  --font-display: var(--font-ar-display);

  --gutter: clamp(16px, 4vw, 40px);
  --container: 1200px;
  --header-h: 76px;
  --radius: 2px;
  --section-pad: clamp(64px, 9vw, 120px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html[lang="en"] {
  --font-body: var(--font-en);
  --font-display: var(--font-en);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang="en"] body { line-height: 1.65; }

img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
main:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Logo (Concept 05 lockup) ----------
   Sized by --logo-size = the height of "ELGINDI". Ratios follow the
   approved board: DR. MOHAMED 0.44, د. محمد 0.6, الجندي 1.2, rule 2.56. */

.logo {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-size: var(--logo-size, 24px);
  line-height: 1;
  color: var(--text-on-dark);
  white-space: nowrap;
}
.logo--header { --logo-size: 19px; }
.logo--hero { --logo-size: clamp(25px, 6vw, 54px); }
.logo--footer { --logo-size: 21px; }

.logo__en {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: "Jost", sans-serif;
  font-weight: 500;
}
.logo__en .logo__first {
  font-size: .44em;
  letter-spacing: .22em;
  margin-right: -.22em;
  line-height: 1.25;
  color: var(--gold);
}
.logo__en .logo__last {
  font-size: 1em;
  letter-spacing: .14em;
  margin-right: -.14em;
  line-height: 1.15;
}
.logo__rule {
  flex: none;
  width: max(1px, .04em);
  height: 2.56em;
  background: var(--gold);
}
.logo__ar {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: "Reem Kufi", sans-serif;
}
.logo__ar .logo__first {
  font-size: .825em;
  font-weight: 500;
  line-height: .945; /* same line height as the approved .6em at 1.3, so الجندي stays put */
  position: relative;
  top: .1em; /* sits a little lower, closer to the wordmark */
  color: var(--gold);
}
.logo__ar .logo__last {
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.1;
}

/* ---------- Small shared pieces ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--gold-deep);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.eyebrow--dark { color: var(--gold); }
html[lang="en"] .eyebrow {
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.soon-tag {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 0 6px;
  font-size: .68rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--gold);
  border: 1px solid rgba(184, 154, 94, .45);
  border-radius: var(--radius);
  vertical-align: middle;
}
.section--ivory .soon-tag,
.section--paper .soon-tag {
  color: var(--gold-deep);
  border-color: rgba(125, 100, 54, .45);
}

.placeholder-tag {
  display: inline-block;
  padding: 1px 8px;
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--gold-deep);
  border: 1px dashed currentColor;
  border-radius: var(--radius);
}
.hero .placeholder-tag,
.section--ink .placeholder-tag { color: var(--gold); }

.pending {
  color: var(--muted-on-dark);
  border-bottom: 1px dashed rgba(184, 154, 94, .5);
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  margin: 0;
  padding: 12px 26px;
  font: 500 1rem/1.3 var(--font-body);
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
html[lang="en"] .btn { letter-spacing: .02em; }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .92rem; }

.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-light); }

.btn--ghost { color: var(--ivory); border-color: rgba(245, 241, 232, .35); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); }

.btn--ink { background: var(--ink); color: var(--ivory); }
.btn--ink:hover { background: #2B2B2B; }

.btn--disabled {
  color: var(--muted-on-dark);
  border: 1px dashed #4A4A4A;
  cursor: default;
}

.link-line {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-block: 6px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--gold-deep);
  transition: color .2s;
}
.link-line:hover { color: var(--gold-deep); }
.link-line--dark { color: var(--ivory); border-color: var(--gold); }
.link-line--dark:hover { color: var(--gold-light); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--text-on-dark);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--ink-line); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}
.site-header__brand { display: flex; flex: none; text-decoration: none; }

.site-nav {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 24px;
}
/* Spread across the bar: logo at one end, menu centred, actions at the other end. */
.site-nav > nav { margin-inline: auto; }
.site-nav__list {
  display: flex;
  gap: clamp(2px, .8vw, 12px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: .95rem;
  color: var(--muted-on-dark);
  text-decoration: none;
  transition: color .2s;
}
.site-nav__link:hover,
.site-nav__link.is-active { color: var(--text-on-dark); }
.site-nav__link.is-active::after {
  content: "";
  position: absolute;
  inset-inline: 14px;
  bottom: 2px;
  height: 1px;
  background: var(--gold);
}

.site-nav__actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  padding: 6px 12px;
  font-size: .92rem;
  color: var(--text-on-dark);
  text-decoration: none;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  transition: border-color .2s;
}
.lang-switch:hover { border-color: var(--gold); }
.lang-switch[lang="ar"] { font-family: var(--font-ar); }
.lang-switch[lang="en"] { font-family: var(--font-en); }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-inline-start: auto;
  padding: 0;
  background: none;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  color: var(--ivory);
  cursor: pointer;
}
.menu-toggle__bars { display: grid; gap: 5px; }
.menu-toggle__bars span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .2s;
}
.site-header.is-open .menu-toggle__bars span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.site-header.is-open .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header.is-open .menu-toggle__bars span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav > nav { margin-inline: 0; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__link { width: 100%; padding: 12px 0; font-size: 1.05rem; }
  .site-nav__link.is-active::after { display: none; }
  .site-nav__link.is-active { color: var(--gold); }
  .site-nav__actions {
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--ink-line);
  }

  /* Without JS the menu simply sits open under the bar. */
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-bottom: 16px; }
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .site-nav { flex-basis: 100%; }

  .js .site-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 8px var(--gutter) 24px;
    background: var(--ink);
    border-top: 1px solid var(--ink-line);
    border-bottom: 1px solid var(--ink-line);
  }
  .js .site-header.is-open .site-nav { display: flex; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 8vw, 104px) clamp(64px, 9vw, 120px);
  background: var(--ink);
  color: var(--text-on-dark);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.hero__title { margin: 0 0 32px; font-weight: inherit; line-height: 1; }
.hero__lead {
  max-width: 34em;
  margin: 0 0 24px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--muted-on-dark);
}
.hero__areas {
  display: flex;
  flex-wrap: wrap;
  row-gap: 6px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ivory);
}
.hero__areas li { display: flex; align-items: center; }
.hero__areas li + li::before {
  content: "";
  width: 1px;
  height: 1.1em;
  margin-inline: 16px;
  background: var(--gold);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { margin: 0; }

/* Photo frame: a fine offset line, echoing the logo's rule. */
.frame {
  position: relative;
  margin-inline-end: 16px;
  margin-bottom: 16px;
}
.frame::before {
  content: "";
  position: absolute;
  inset-block: 16px -16px;
  inset-inline: 16px -16px;
  border: 1px solid var(--gold);
  pointer-events: none;
}
.frame--light::before { border-color: var(--gold-deep); }
.frame > img,
.frame > .photo-placeholder {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about .frame > img,
.about .frame > .photo-placeholder { aspect-ratio: 5 / 4; }

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  background: var(--ink-raised);
  border: 1px solid var(--ink-line);
  color: var(--muted-on-dark);
}
.photo-placeholder .placeholder-tag {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
}
.photo-placeholder__mark {
  font-family: "Reem Kufi", sans-serif;
  font-weight: 600;
  font-size: clamp(80px, 10vw, 136px);
  line-height: 1.1;
  color: var(--gold);
  opacity: .5;
}
.photo-placeholder__label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ivory);
}
.photo-placeholder__hint { font-size: .88rem; }
.photo-placeholder--light {
  background: var(--ivory);
  border-color: var(--line);
  color: var(--text-muted);
}
.photo-placeholder--light .photo-placeholder__label { color: var(--ink); }

/* ---------- Sections ---------- */

.section { padding-block: var(--section-pad); }
.section--ivory { background: var(--ivory); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--text-on-dark); }

.section-head { max-width: 660px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.35;
}
html[lang="en"] .section-head__title { font-weight: 500; line-height: 1.2; }
.section-head__intro { margin: 0; color: var(--text-muted); }
.section--ink .section-head__intro { color: var(--muted-on-dark); }

.section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}
.section-head--row > div { max-width: 660px; }

/* ---------- Practice areas ---------- */

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.practice-card {
  position: relative;
  padding: clamp(28px, 3vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color .25s, transform .25s var(--ease);
}
.practice-card::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline-start: -1px;
  width: 56px;
  height: 2px;
  background: var(--gold-deep);
}
.practice-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.practice-card__num {
  display: block;
  margin-bottom: 28px;
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .14em;
  color: var(--gold-deep);
}
.practice-card__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.35;
}
html[lang="en"] .practice-card__title { font-weight: 500; }
.practice-card p { margin: 0; color: var(--text-muted); }

/* Home practice areas: centred heading, two cards around a gold line. */
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow--center::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.practice-split { position: relative; max-width: 1040px; margin-inline: auto; }
.practice-grid--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 7vw, 96px); }
.practice-grid--pair .practice-card { background: var(--paper); padding: clamp(32px, 3.6vw, 52px); }
.practice-grid--pair .practice-card::before { width: clamp(56px, 6vw, 72px); height: 3px; top: -2px; }
.practice-grid--pair .practice-card:nth-child(2)::before { inset-inline-start: auto; inset-inline-end: -1px; }
.practice-split__line {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 1px;
  background: var(--gold);
  transform: translateX(-50%);
}
.practice-split__line::before,
.practice-split__line::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}
.practice-split__line::before { top: 0; }
.practice-split__line::after { top: 100%; }
@media (max-width: 640px) {
  .practice-grid--pair { gap: 20px; }
  .practice-split__line { display: none; }
}

/* ---------- About preview ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about__media { margin: 0; }
.about__lead { margin: 0 0 24px; font-size: 1.15rem; }

.placeholder-block {
  margin-bottom: 28px;
  padding: 20px 24px;
  background: var(--ivory);
  border: 1px dashed #C9BFAA;
}
.placeholder-block p { margin: 10px 0 14px; color: var(--text-muted); }

.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.credentials li {
  padding: 4px 10px;
  font-size: .85rem;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid var(--line);
}

/* ---------- Approach ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink-line);
}
.principle {
  padding: 32px 28px 8px;
  border-inline-start: 1px solid var(--ink-line);
}
.principle:first-child { padding-inline-start: 0; border-inline-start: 0; }
.principle__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ivory);
}
html[lang="en"] .principle__title { font-weight: 500; }
.principle__title::before {
  content: "";
  flex: none;
  width: 1px;
  height: 1.2em;
  background: var(--gold);
}
.principle p { margin: 0; color: var(--muted-on-dark); }

/* ---------- Case path ----------
   Four stages on a gold line (the logo's rule, laid horizontally). The line
   draws itself when the section is revealed; the final stage is emphasised. */

.case-path__track {
  --node: 44px;
  --gap: clamp(20px, 3vw, 40px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.case-path__track::before,
.case-path__track::after {
  content: "";
  position: absolute;
  top: calc(var(--node) / 2);
  /* From the first node's centre to the last node's centre. */
  inset-inline: calc(var(--node) / 2) calc((100% - 3 * var(--gap)) / 4 - var(--node) / 2);
  height: 1px;
  background: var(--line-strong);
}
.case-path__track::after {
  height: 2px;
  margin-top: -.5px;
  background: var(--gold);
  transform-origin: left center;
  transition: transform 1.4s var(--ease) .2s;
}
[dir="rtl"] .case-path__track::after { transform-origin: right center; }
.js .case-path__track::after { transform: scaleX(0); }
.js .case-path__track.is-visible::after { transform: none; }

.case-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--node) + 28px);
}
.case-stage__node {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--node);
  height: var(--node);
  font: 500 .92rem/1 "Jost", sans-serif;
  color: var(--gold-deep);
  background: var(--paper);
  border: 1px solid var(--gold-deep);
}
.case-stage--final .case-stage__node { color: var(--gold); background: var(--ink); border-color: var(--ink); }
.case-stage__step { margin: 0 0 4px; font-size: .85rem; font-weight: 500; color: var(--gold-deep); }
html[lang="en"] .case-stage__step { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
.case-stage__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.4;
}
html[lang="en"] .case-stage__title { font-weight: 500; line-height: 1.25; }
.case-stage__text { margin: 0 0 20px; color: var(--text-muted); }

.case-stage__video {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  color: var(--ink);
  text-decoration: none;
  border-top: 1px solid var(--line);
}
.case-stage__play {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--gold-deep);
  border: 1px solid var(--gold-deep);
  border-radius: 50%;
  transition: background-color .2s, color .2s;
}
.case-stage__play svg { margin-left: 2px; }
.case-stage__video:hover .case-stage__play,
.case-stage__video:focus-visible .case-stage__play { background: var(--gold-deep); color: var(--ivory); }
.case-stage__video-label { display: block; font-size: .8rem; font-weight: 500; color: var(--gold-deep); }
.case-stage__video-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: .9rem;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.case-stage__video-title[lang="ar"] { font-family: var(--font-ar); }
.case-stage__video:hover .case-stage__video-title { text-decoration: underline; text-decoration-color: var(--gold-deep); }

.case-path__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.case-path__note { max-width: 40em; margin: 0; font-size: .92rem; color: var(--text-muted); }

/* Pop-up video player */
.video-dialog {
  width: min(960px, 92vw);
  max-width: none;
  padding: 0;
  color: var(--ivory);
  background: var(--ink);
  border: 1px solid var(--ink-line);
  border-top: 2px solid var(--gold);
}
.video-dialog::backdrop { background: rgba(8, 8, 8, .85); }
.video-dialog__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 10px 10px 18px;
}
[dir="rtl"] .video-dialog__bar { padding: 10px 18px 10px 10px; }
.video-dialog__title {
  margin: 0;
  overflow: hidden;
  font-size: .95rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.video-dialog__close {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ivory);
  background: none;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  cursor: pointer;
}
.video-dialog__close:hover { border-color: var(--gold); color: var(--gold); }
.video-dialog__frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-dialog__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Videos & articles ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.video-card { background: var(--white); border: 1px solid var(--line); }
.video-card__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: var(--ink);
}
.video-card__play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 50%;
}
.video-card__play svg { margin-left: 3px; }

/* Real videos: thumbnail link, swapped for the player on click. */
.video-card__thumb { position: relative; overflow: hidden; }
a.video-card__thumb { cursor: pointer; }
.video-card__thumb img,
.video-card__thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-card__thumb img { object-fit: cover; transition: transform .4s var(--ease); }
a.video-card__thumb .video-card__play {
  position: relative;
  z-index: 1;
  background: rgba(23, 23, 23, .6);
  transition: background-color .2s, color .2s;
}
a.video-card__thumb:hover img { transform: scale(1.03); }
a.video-card__thumb:hover .video-card__play,
a.video-card__thumb:focus-visible .video-card__play { background: var(--gold); color: var(--ink); }
.video-card__desc { margin: 0 0 8px; font-size: .95rem; line-height: 1.7; color: var(--text-muted); }

.video-card { display: flex; flex-direction: column; }
.video-card__body { display: flex; flex: 1; flex-direction: column; }
.video-card__body .video-card__meta { margin-top: auto; padding-top: 8px; }
/* Video titles are long sentences: set in the text face for readability. */
.video-card .video-card__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.65;
}
html[lang="en"] .video-card .video-card__title { font-weight: 500; }
.video-card__title[lang="ar"] { font-family: var(--font-ar); }
.video-card__topic {
  margin: 0 0 6px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--gold-deep);
}
.video-card__duration {
  position: absolute;
  bottom: 10px;
  inset-inline-end: 10px;
  z-index: 1;
  padding: 2px 8px;
  font: 500 .78rem/1.5 "Jost", sans-serif;
  color: var(--ivory);
  background: rgba(16, 16, 16, .82);
  border-radius: var(--radius);
}
.video-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}
.video-card__sep {
  width: 1px;
  height: .9em;
  background: var(--line-strong);
}
.video-card__body { padding: 20px 24px 24px; }
.video-card__title {
  margin: 12px 0 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}
.video-card__meta { margin: 0; font-size: .9rem; color: var(--text-muted); }

.article-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
}
.article-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.article-card__date { font-size: .88rem; color: var(--text-muted); }
.article-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
}
.article-card p { margin: 0; color: var(--text-muted); }
html[lang="en"] .video-card__title,
html[lang="en"] .article-card__title { font-weight: 500; }

/* ---------- Consultation & contact ---------- */

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.contact__intro { margin: 0 0 28px; color: var(--muted-on-dark); }
.contact__details {
  margin: 36px 0 28px;
  border-top: 1px solid var(--ink-line);
}
.contact__details > div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink-line);
}
.contact__details dt { font-size: .92rem; color: var(--muted-on-dark); }
.contact__details dd { margin: 0; }
.contact__details a { color: var(--ivory); }

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  min-height: 140px;
  padding: 28px;
  color: var(--muted-on-dark);
  border: 1px dashed #4A4A4A;
}

.form-card {
  padding: clamp(24px, 4vw, 44px);
  background: var(--ivory);
  color: var(--text);
  border-top: 2px solid var(--gold);
}
.form-card__title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
}
html[lang="en"] .form-card__title { font-weight: 500; }

.notice {
  margin: 0 0 20px;
  padding: 12px 16px;
  font-size: .95rem;
  border: 1px solid;
}
.notice--success { background: #EEF3EC; border-color: #9DB8A1; color: #23462C; }
.notice--error { background: #F8ECEA; border-color: #D9A9A4; color: #7A2020; }

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
}
.field { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.field__label {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-size: .95rem;
  font-weight: 500;
}
.field__req { margin-inline-start: 4px; color: var(--error); }
.field__optional { font-size: .85rem; font-weight: 400; color: var(--text-muted); }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  appearance: none;
  padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237D6436' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
[dir="rtl"] .field select { background-position: left 14px center; }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(125, 100, 54, .2);
}
.field__help { margin: 6px 0 0; font-size: .84rem; line-height: 1.6; color: var(--text-muted); }
.field__error { margin: 6px 0 0; font-size: .88rem; font-weight: 500; color: var(--error); }
.field--error input,
.field--error select,
.field--error textarea { border-color: var(--error); }

.choice-group__options { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: inline-flex; cursor: pointer; }
.choice input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  font-size: .95rem;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: background-color .2s, color .2s, border-color .2s;
}
.choice:hover span { border-color: var(--gold-deep); }
.choice input:checked + span { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.field--error .choice span { border-color: var(--error); }

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .95rem;
  cursor: pointer;
}
.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 5px 0 0;
  accent-color: var(--ink);
}

/* Honeypot field. Clipped in place: an off-screen offset would widen RTL pages. */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}
.form-card__note { margin: 0; font-size: .85rem; color: var(--text-muted); }

.contact__social { margin-bottom: 28px; }
.contact__social-title { margin: 0 0 12px; font-size: .92rem; color: var(--muted-on-dark); }

/* ---------- Social links ---------- */

.social { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.social__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px;
  color: var(--ivory);
  text-decoration: none;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  transition: border-color .2s, color .2s;
}
.social__link:hover { border-color: var(--gold); color: var(--gold-light); }
.social__icon { flex: none; color: var(--gold); }

/* Footer: a plain vertical list, matching the other footer columns. */
.site-footer .social { display: grid; gap: 4px; }
.site-footer .social__link { min-height: 36px; padding: 4px 0; border: 0; color: var(--muted-on-dark); }
.site-footer .social__link:hover { color: var(--gold); }

.section-head__links { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

/* ---------- Footer ---------- */

.site-footer {
  padding-top: 72px;
  background: var(--ink-deep);
  color: var(--muted-on-dark);
  border-top: 1px solid var(--ink-line);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
.site-footer__brand p { max-width: 30em; margin: 24px 0 0; }
.site-footer__heading {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ivory);
}
html[lang="en"] .site-footer__heading {
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.site-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--muted-on-dark); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--gold); }
.site-footer__details { margin: 0; }
.site-footer__details > div { margin-bottom: 12px; }
.site-footer__details dt { font-size: .82rem; color: #8E887C; }
.site-footer__details dd { margin: 0; }
.site-footer__bottom {
  padding-block: 24px;
  font-size: .85rem;
  border-top: 1px solid var(--ink-line);
}
.site-footer__bottom p { margin: 0; }

/* ---------- Inner page header (Videos, later About / Articles) ---------- */

.page-hero {
  padding-block: clamp(56px, 8vw, 104px);
  background: var(--ink);
  color: var(--ivory);
}
.page-hero__inner { max-width: 820px; margin-inline: 0; }
.page-hero__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.3;
}
html[lang="en"] .page-hero__title { font-weight: 500; line-height: 1.15; }
.page-hero__lead { max-width: 36em; margin: 0 0 28px; font-size: 1.1rem; color: var(--muted-on-dark); }

.page-hero__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.page-hero__stat {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
}
.page-hero__stat dt { order: 2; font-size: .95rem; color: var(--muted-on-dark); }
.page-hero__stat dd {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  font: 500 clamp(2.5rem, 5vw, 3.5rem)/1 "Jost", sans-serif;
  color: var(--gold);
}
/* The logo's gold rule, separating number and label. */
.page-hero__stat dd::after {
  content: "";
  width: 1px;
  height: 1.1em;
  background: var(--gold);
}
.page-hero--with-spotlight { padding-bottom: clamp(40px, 5vw, 64px); }

/* Spotlight: the dark header runs behind the top of the card. */
.spotlight + .videos-list { padding-top: clamp(48px, 6vw, 72px); }
.spotlight {
  background: linear-gradient(var(--ink) 0 38%, var(--ivory) 38% 100%);
}
.spotlight__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
}
.spotlight__player { aspect-ratio: 16 / 9; height: 100%; min-height: 100%; }
.spotlight__play { width: 76px; height: 76px; }
.spotlight__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: clamp(28px, 4vw, 52px);
}
.spotlight__body .eyebrow { margin-bottom: 12px; }
.spotlight__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  line-height: 1.5;
}
.spotlight__desc { margin: 0 0 8px; color: var(--text-muted); }
.spotlight__body .video-card__meta { margin: 0 0 24px; font-size: .92rem; color: var(--text-muted); }

/* Topic filter */
.topic-filter { margin-bottom: 36px; }
.topic-filter ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.topic-filter__chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 18px;
  color: var(--ink);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color .2s, background-color .2s, color .2s;
}
.topic-filter__chip:hover { border-color: var(--gold-deep); }
.topic-filter__chip.is-active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.topic-filter__count {
  font: 500 .8rem/1 "Jost", sans-serif;
  color: var(--gold-deep);
}
.topic-filter__chip.is-active .topic-filter__count { color: var(--gold); }

/* Closing call to action */
.cta-band {
  padding-block: clamp(56px, 7vw, 88px);
  background: var(--ink);
  color: var(--ivory);
  border-bottom: 1px solid var(--ink-line);
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cta-band__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.4;
}
html[lang="en"] .cta-band__title,
html[lang="en"] .spotlight__title { font-weight: 500; }
.cta-band__text { margin: 0; color: var(--muted-on-dark); }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}
.pagination__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 20px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color .2s;
}
a.pagination__link:hover { border-color: var(--gold-deep); }
.pagination__link.is-disabled { color: #9A948A; border-style: dashed; }
.pagination__status { font-size: .95rem; color: var(--text-muted); }

.empty-state {
  max-width: 560px;
  padding: 40px;
  background: var(--white);
  border: 1px dashed #C9BFAA;
}
.empty-state p { margin: 0 0 16px; color: var(--text-muted); }

/* ---------- About Us: hero + gold-line timeline ----------
   The logo's gold rule becomes a vertical line down the centre of the page.
   main.js sets --p (0–1) as the visitor scrolls, so the line grows, and marks
   each diamond .is-passed once the line reaches it. Sections alternate sides. */

.logo--light { color: var(--ink); }
.logo--light .logo__first { color: var(--gold-deep); }
.logo--light .logo__rule { background: var(--gold-deep); }
.logo--sign { --logo-size: 24px; }

.btn--outline { color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { color: var(--gold-deep); border-color: var(--gold-deep); }

.btn--line { color: var(--gold); border-color: rgba(184, 154, 94, .6); }
.btn--line:hover { color: var(--gold-light); background: rgba(184, 154, 94, .08); border-color: var(--gold); }

/* Image slots: the photo, or a marked placeholder until it is supplied */
.img-slot__img,
.img-slot {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(184, 154, 94, .22);
}
.img-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  color: var(--muted-on-dark);
  background: radial-gradient(120% 90% at 30% 15%, #2A2724 0%, #161616 62%);
}
.img-slot .placeholder-tag { position: absolute; top: 12px; inset-inline-start: 12px; color: var(--gold); }
.img-slot__mark { width: 1px; height: 40px; background: var(--gold); opacity: .6; }
.img-slot__label { font-family: var(--font-display); font-size: 1.05rem; color: var(--ivory); }
.img-slot__hint { font-size: .84rem; }

/* Hero */
.about-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(78vh, 680px);
  padding-block: 88px 150px;
  overflow: hidden;
  color: var(--ivory);
  background: var(--ink);
  border-bottom: 1px solid rgba(184, 154, 94, .35);
}
.about-hero__media {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 58%;
  -webkit-mask-image: linear-gradient(to left, #000 35%, transparent 100%);
          mask-image: linear-gradient(to left, #000 35%, transparent 100%);
}
[dir="ltr"] .about-hero__media {
  -webkit-mask-image: linear-gradient(to right, #000 35%, transparent 100%);
          mask-image: linear-gradient(to right, #000 35%, transparent 100%);
}
.about-hero__media .img-slot__img,
.about-hero__media .img-slot { height: 100%; aspect-ratio: auto; border: 0; }
.about-hero__media .img-slot { justify-content: center; padding-inline: 10% 30%; }
[dir="ltr"] .about-hero__media .img-slot { padding-inline: 10% 30%; }
.about-hero__inner { position: relative; z-index: 1; display: flex; justify-content: flex-end; }
.about-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(560px, 100%);
  text-align: center;
}
.about-hero__title { margin: 0 0 26px; font-weight: inherit; line-height: 1; }
.about-hero__kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  font-size: 1.05rem;
  color: var(--gold);
}
.about-hero__kicker::before,
.about-hero__kicker::after { content: ""; width: 32px; height: 1px; background: currentColor; }
html[lang="en"] .about-hero__kicker { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; }
.about-hero__areas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.08rem;
  color: var(--muted-on-dark);
}
.about-hero__areas li { display: flex; align-items: center; }
.about-hero__areas li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-inline: 14px;
  background: var(--gold);
  transform: rotate(45deg);
}
.about-hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  color: var(--gold);
  text-decoration: none;
  transform: translateX(-50%);
}
.about-hero__mouse {
  display: flex;
  justify-content: center;
  width: 22px;
  height: 34px;
  padding-top: 6px;
  border: 1px solid var(--gold);
  border-radius: 12px;
}
.about-hero__mouse span {
  width: 2px;
  height: 6px;
  background: var(--gold);
  border-radius: 1px;
  animation: scroll-cue 1.8s ease-in-out infinite;
}
@keyframes scroll-cue {
  0% { opacity: 0; transform: translateY(-2px); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(9px); }
}

/* Timeline */
.timeline { padding-bottom: clamp(56px, 7vw, 96px); color: var(--ivory); background: var(--ink); }
.timeline__inner { --axis: 80px; --rule: rgba(184, 154, 94, .18); position: relative; }
.timeline__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  margin-left: -.5px;
  background: var(--rule);
}
.timeline__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: top center;
  transform: scaleY(var(--p, 1));
}
.js .timeline__line::after { transform: scaleY(var(--p, 0)); }

.tl-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--axis) minmax(0, 1fr);
  align-items: start;
  padding-block: clamp(48px, 6vw, 76px);
}
/* Thin dividers on both sides, interrupted at the centre line */
.tl-row + .tl-row::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(to right,
    var(--rule) 0 calc(50% - var(--axis) / 2),
    transparent calc(50% - var(--axis) / 2) calc(50% + var(--axis) / 2),
    var(--rule) calc(50% + var(--axis) / 2));
}
.tl-row__text { grid-row: 1; grid-column: 1; }
.tl-row__media { grid-row: 1; grid-column: 3; align-self: center; }
.tl-row--alt .tl-row__text { grid-column: 3; }
.tl-row--alt .tl-row__media { grid-column: 1; }

.tl-marker {
  position: relative;
  z-index: 1;
  grid-row: 1;
  grid-column: 2;
  justify-self: center;
  width: 14px;
  height: 14px;
  margin-top: 12px;
  background: var(--ink);
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  transition: box-shadow .4s;
}
.tl-marker::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--gold);
  opacity: 0;
  transition: opacity .4s;
}
.tl-marker.is-passed { box-shadow: 0 0 0 5px rgba(184, 154, 94, .12); }
.tl-marker.is-passed::after,
html:not(.js) .tl-marker::after { opacity: 1; }

.tl-head { display: flex; align-items: center; gap: 14px; margin: 0 0 10px; }
.tl-head__num { display: flex; align-items: center; gap: 14px; font: 500 .95rem/1 "Jost", sans-serif; color: var(--gold); }
.tl-head__num::after { content: ""; width: 1px; height: 1.3em; background: var(--gold); }
.tl-head__eyebrow { font-family: var(--font-display); font-size: clamp(1.35rem, 2.2vw, 1.65rem); color: var(--gold); }
html[lang="en"] .tl-head__eyebrow { font-weight: 500; }
.tl-row__title {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ivory);
}
html[lang="en"] .tl-row__title { font-weight: 500; }
.tl-row__title--cta {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.5;
}
.tl-row__body { max-width: 34em; margin: 0 0 20px; color: var(--muted-on-dark); }

.tl-pending { max-width: 34em; padding: 14px 16px; font-size: .92rem; color: var(--muted-on-dark); border: 1px dashed #484440; }
.tl-pending p { margin: 8px 0 10px; }
.tl-pending p:last-child { margin-bottom: 0; }
.tl-pending .credentials li { color: var(--muted-on-dark); background: transparent; border-color: var(--ink-line); }

.tl-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 24px;
  padding: 0;
  list-style: none;
}
.tl-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 14px;
  text-align: center;
  border: 1px solid rgba(184, 154, 94, .28);
  transition: border-color .25s, background-color .25s;
}
.tl-card:hover { background: rgba(184, 154, 94, .05); border-color: var(--gold); }
.tl-card__icon { display: grid; place-items: center; height: 40px; color: var(--gold); }
.tl-card__title { margin: 0; font-family: var(--font-body); font-weight: 600; font-size: 1rem; color: var(--ivory); }
html[lang="en"] .tl-card__title { font-weight: 500; }
.tl-card p,
.tl-value p { margin: 0; font-size: .86rem; line-height: 1.7; color: var(--muted-on-dark); }

.tl-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.tl-value {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 18px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.tl-value:nth-child(odd) { border-inline-end: 1px solid var(--rule); }

.tl-row__media--fade .img-slot__img,
.tl-row__media--fade .img-slot {
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
          mask-image: linear-gradient(to bottom, #000 60%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .about-hero__mouse span { animation: none; opacity: 1; }
}

@media (max-width: 960px) {
  .about-hero { min-height: 0; padding-block: 72px 120px; }
  .about-hero__media,
  [dir="ltr"] .about-hero__media { width: 100%; opacity: .35; -webkit-mask-image: none; mask-image: none; }
  .about-hero__media .img-slot > * { display: none; }
  .about-hero__inner { justify-content: center; }

  .timeline__line,
  .tl-marker { display: none; }
  .tl-row,
  .tl-row--alt { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tl-row__text,
  .tl-row--alt .tl-row__text { grid-row: 1; grid-column: 1; }
  .tl-row__media,
  .tl-row--alt .tl-row__media { grid-row: 2; grid-column: 1; }
  .tl-row + .tl-row::before { background: var(--rule); }
}

@media (max-width: 640px) {
  .tl-cards,
  .tl-values { grid-template-columns: minmax(0, 1fr); }
  .tl-value:nth-child(odd) { border-inline-end: 0; }
  .tl-row--cta .hero__actions .btn { width: 100%; }
}

/* ---------- Biography & credentials (home + about) ---------- */
.profile { margin-bottom: 28px; }
.profile__title { margin: 0 0 10px; font-family: var(--font-display); font-size: 1.15rem; color: var(--gold-deep); }
.profile__para { margin: 0 0 12px; color: var(--text-muted); }
.profile__facts { margin: 16px 0 0; border-top: 1px solid var(--line); }
.profile__facts > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.profile__facts dt { color: var(--gold-deep); }
.profile__facts dd { margin: 0; }
.profile__group + .profile__group { margin-top: 10px; }
.profile__group-title { margin: 0 0 2px; font-size: .82rem; letter-spacing: .04em; color: var(--text-muted); }
.profile__group-list { margin: 0; padding: 0; list-style: none; }
.profile__group-list li { padding-inline-start: 14px; position: relative; }
.profile__group-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 5px; height: 5px; background: var(--gold-deep); transform: rotate(45deg); }
.profile--dark .profile__group-title { color: var(--muted-on-dark); }
.profile--dark .profile__group-list li::before { background: var(--gold); }
.profile--dark .profile__title,
.profile--dark .profile__facts dt { color: var(--gold); }
.profile--dark .profile__para { color: var(--muted-on-dark); }
.profile--dark .profile__facts,
.profile--dark .profile__facts > div { border-color: var(--rule, var(--ink-line)); }
@media (max-width: 640px) { .profile__facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* ---------- Contact Us (light page) ----------
   Hero composed like the logo: text | gold rule | the firm's business card. */

.logo--card { --logo-size: 22px; }
.pending-light { color: var(--text-muted); border-bottom: 1px dashed #C9BFAA; }

.social--light .social__link { color: var(--ink); background: var(--white); border-color: var(--line-strong); }
.social--light .social__link:hover { color: var(--gold-deep); border-color: var(--gold-deep); }
.social--light .social__icon { color: var(--gold-deep); }

.contact-hero {
  padding-block: clamp(56px, 8vw, 104px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.contact-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 440px);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.contact-hero__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.3;
}
html[lang="en"] .contact-hero__title { font-weight: 500; line-height: 1.12; }
.contact-hero__lead { max-width: 30em; margin: 0; font-size: 1.15rem; color: var(--text-muted); }
.contact-hero__rule { align-self: stretch; width: 2px; min-height: 220px; background: var(--gold-deep); }

/* The business card */
.biz-card {
  margin: 0;
  padding: 28px 30px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(23, 23, 23, .35);
}
.biz-card__top { padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.biz-card__rows { margin: 0; }
.biz-card__rows > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #EFEAE0;
}
.biz-card__rows > div:last-child { border-bottom: 0; }
.biz-card__rows dt { font-size: .86rem; color: var(--gold-deep); }
.biz-card__rows dd { margin: 0; font-size: .96rem; overflow-wrap: anywhere; }
.biz-card__rows a { color: var(--ink); text-decoration: none; }
.biz-card__rows a:hover { color: var(--gold-deep); }

/* Routes */
.routes__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.route {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color .25s, transform .25s var(--ease);
}
.route::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline: -1px;
  height: 2px;
  background: var(--gold-deep);
  transform: scaleX(.18);
  transform-origin: right center;
  transition: transform .4s var(--ease);
}
[dir="ltr"] .route::before { transform-origin: left center; }
.route:hover { border-color: var(--gold); transform: translateY(-3px); }
.route:hover::before { transform: none; }
.route--urgent::before { background: var(--ink); }
.route__num { margin-bottom: 22px; font: 500 .95rem/1 "Jost", sans-serif; letter-spacing: .14em; color: var(--gold-deep); }
.route__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.4;
}
html[lang="en"] .route__title { font-weight: 500; line-height: 1.25; }
.route__text { margin: 0 0 24px; color: var(--text-muted); }
.route__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.route__pending { margin: 0; font-size: .9rem; color: var(--text-muted); }

/* Form section */
.contact-form__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.contact-form__aside { position: sticky; top: calc(var(--header-h) + 32px); }
.next-steps { position: relative; margin: 8px 0 28px; padding: 0; list-style: none; }
.next-steps::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  inset-inline-start: 17px;
  width: 1px;
  background: var(--gold-deep);
  opacity: .5;
}
.next-steps li { position: relative; display: flex; align-items: center; gap: 18px; padding: 10px 0; font-size: 1.05rem; }
.next-steps__num {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  font: 500 .9rem/1 "Jost", sans-serif;
  color: var(--gold-deep);
  background: var(--paper);
  border: 1px solid var(--gold-deep);
}
.contact-form__note {
  max-width: 30em;
  margin: 0;
  padding: 14px 16px;
  font-size: .92rem;
  color: var(--text-muted);
  background: var(--ivory);
  border: 1px dashed #C9BFAA;
}
#consultation .form-card { background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--gold); }

/* Visit */
.visit__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: stretch;
}
.visit__list { margin: 0 0 28px; border-top: 1px solid var(--line); }
.visit__list > div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.visit__list dt { color: var(--gold-deep); }
.visit__list dd { margin: 0; }
.visit__social-title { margin: 0 0 12px; font-size: .92rem; color: var(--text-muted); }

.map-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 300px;
  padding: 32px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
}
.map-card__grid { position: absolute; inset: 0; width: 100%; height: 100%; color: #ECE6DA; }
.map-card__pin {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  color: var(--gold-deep);
  background: var(--white);
  border: 1px solid var(--gold-deep);
  border-radius: 50%;
}
.map-card__btn,
.map-card__pending { position: relative; }
.map-card__pending {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 16px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, .9);
}

@media (max-width: 960px) {
  .contact-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .contact-hero__rule { width: 72px; height: 2px; min-height: 0; align-self: auto; }
  .biz-card { max-width: 480px; }
  .routes__grid { grid-template-columns: minmax(0, 1fr); }
  .contact-form__grid,
  .visit__grid { grid-template-columns: minmax(0, 1fr); }
  .contact-form__aside { position: static; }
}

@media (max-width: 640px) {
  .biz-card { padding: 22px 18px 18px; }
  .biz-card__rows > div,
  .visit__list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .route__actions .btn { flex: 1 1 auto; }
}

/* ---------- Articles: the law library ---------- */
.library-hero { padding-block: clamp(48px, 7vw, 88px) 32px; color: var(--ivory); background: #121110; }
.library-hero__grid { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.library-hero__title { margin: 0 0 8px; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.3; }
html[lang="en"] .library-hero__title { font-weight: 500; line-height: 1.12; }
.library-hero__lead { max-width: 34em; margin: 0; font-size: 1.1rem; color: var(--muted-on-dark); }
.library-search { display: flex; width: min(380px, 100%); border: 1px solid #3a352c; }
.library-search input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; font: inherit; color: var(--ivory); background: transparent; border: 0; }
.library-search input::placeholder { color: #8E887C; }
.library-search input:focus { outline: none; }
.library-search:focus-within { border-color: var(--gold); }
.library-search button { padding: 0 18px; font: 500 .95rem var(--font-body); color: var(--ink); background: var(--gold); border: 0; cursor: pointer; }

.library { padding-bottom: clamp(56px, 7vw, 96px); color: var(--ivory); background: #121110; }
.library__results { margin: 0 0 16px; color: var(--muted-on-dark); }
.library__results a { color: var(--gold); }
.library__room {
  padding: 36px clamp(16px, 3vw, 40px) 8px;
  background: radial-gradient(120% 80% at 50% 0%, #2a2018 0%, #16110d 70%);
  border: 1px solid #3a2d20;
}
.shelf { position: relative; margin-bottom: 44px; }
.shelf__label { display: flex; align-items: center; gap: 12px; margin: 0 6px 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--gold); }
html[lang="en"] .shelf__label { font-weight: 500; }
.shelf__label span { font: 500 .85rem "Jost", sans-serif; color: #8E887C; }
.shelf__books { display: flex; align-items: flex-end; gap: 8px; min-height: 300px; margin: 0; padding: 0 10px; list-style: none; }
.shelf__board { height: 18px; background: linear-gradient(#5a4128, #3a2919 60%, #24190f); box-shadow: 0 10px 18px rgba(0, 0, 0, .6); }
.shelf__bookend { width: 24px; height: 120px; margin-inline-start: auto; background: linear-gradient(#3a2b1c, #24190f); }

.book { position: relative; flex: none; }
.book__spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 72px;
  height: 280px;
  padding: 16px 0;
  color: var(--ivory);
  text-decoration: none;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, .45), rgba(255, 255, 255, .06) 30%, rgba(0, 0, 0, .25) 70%, rgba(0, 0, 0, .55));
  box-shadow: inset 0 0 0 1px rgba(184, 154, 94, .2);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.book--c1 .book__spine { background-color: #1d1c1b; height: 284px; }
.book--c2 .book__spine { background-color: #2b1d14; height: 268px; width: 66px; }
.book__band { width: 70%; height: 2px; background: var(--gold); box-shadow: 0 5px 0 var(--gold); }
.book__title { max-height: 200px; overflow: hidden; font-size: .98rem; font-weight: 600; line-height: 1.45; writing-mode: vertical-rl; }
.book__no { font: 500 .78rem "Jost", sans-serif; color: var(--gold); }
a.book__spine:hover,
a.book__spine:focus-visible { transform: translateY(-26px); box-shadow: 0 18px 30px -10px rgba(0, 0, 0, .8), inset 0 0 0 1px var(--gold); }
.book--soon .book__spine { width: 58px; height: 246px; background-color: #211a1a; opacity: .7; }
.book--soon .book__title { font-weight: 400; color: var(--muted-on-dark); }
.book--lean .book__spine { transform: rotate(-7deg); transform-origin: bottom right; margin-inline-start: 12px; }
[dir="ltr"] .book--lean .book__spine { transform: rotate(7deg); transform-origin: bottom left; }

/* Preview card: appears above the pulled-out book */
.book__card {
  position: absolute;
  bottom: calc(100% + 12px);
  inset-inline-start: -8px;
  z-index: 5;
  width: 320px;
  padding: 22px 24px;
  color: var(--ink);
  background: var(--ivory);
  border-top: 3px solid var(--gold);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s, visibility .25s;
  pointer-events: none;
}
.book:hover .book__card,
.book:focus-within .book__card { opacity: 1; visibility: visible; transform: none; }
.book__cat { margin: 0 0 4px; font-size: .82rem; font-weight: 500; color: var(--gold-deep); }
.book__card-title { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.5; }
.book__card[lang="en"] .book__card-title { font-family: var(--font-en); font-weight: 500; }
.book__excerpt { margin: 0 0 10px; font-size: .9rem; line-height: 1.75; color: var(--text-muted); }
.book__meta { margin: 0 0 14px; font-size: .78rem; color: var(--text-muted); }
.book__read { display: inline-block; padding: 8px 16px; font-size: .88rem; color: var(--ivory); background: var(--ink); }

/* Article reading page */
.reading__narrow { max-width: calc(760px + 2 * var(--gutter)); }
.reading__head { padding-block: clamp(48px, 7vw, 88px) 40px; color: var(--ivory); background: var(--ink); }
.reading__back { display: inline-block; margin-bottom: 24px; font-size: .9rem; color: var(--gold); text-decoration: none; }
.reading__back:hover { color: var(--gold-light); }
.reading__title { margin: 0 0 14px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.45; }
.reading[lang="en"] .reading__title { font-family: var(--font-en); font-weight: 500; line-height: 1.2; }
.reading__meta { margin: 0; font-size: .92rem; color: var(--muted-on-dark); }
.reading__body { padding-block: 44px clamp(56px, 7vw, 88px); font-size: 1.12rem; line-height: 2; }
.reading[lang="ar"] .reading__body { font-family: var(--font-ar); }
.reading[lang="en"] .reading__body { font-family: var(--font-en); line-height: 1.8; }
.reading__body > p { margin: 0 0 1.2em; }
.reading__excerpt { padding: 18px 22px; font-size: 1.05rem; color: var(--gold-deep); background: var(--ivory); border-inline-start: 3px solid var(--gold-deep); }
.reading__cta { margin-top: 48px; padding: 28px; background: var(--ivory); border-top: 2px solid var(--gold); font-size: 1rem; line-height: 1.8; }
.reading__cta-title { margin: 0 0 6px; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.reading__cta p { margin: 0 0 16px; color: var(--text-muted); }
.article-card__title a { color: inherit; text-decoration: none; }
.article-card__title a:hover { color: var(--gold-deep); }

@media (max-width: 960px) {
  /* Shelves scroll sideways; the preview card is skipped (tap opens the article). */
  .shelf__books { overflow-x: auto; overflow-y: hidden; padding-top: 30px; scroll-snap-type: x proximity; }
  .book { scroll-snap-align: start; }
  .book__card { display: none; }
}

/* ---------- "In preparation" page ---------- */

.pending-page {
  min-height: 62vh;
  padding-block: clamp(80px, 14vw, 180px);
  background: var(--ink);
  color: var(--ivory);
}
.pending-page__inner { max-width: 760px; margin-inline: 0; }
.pending-page__name {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold);
}
.pending-page__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.3;
}
html[lang="en"] .pending-page__title { font-weight: 500; }
.pending-page__text { max-width: 34em; margin: 0 0 32px; font-size: 1.1rem; color: var(--muted-on-dark); }

/* ---------- Reveal on scroll (only when JS runs) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero__grid,
  .about,
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__media { max-width: 420px; }
  .about__media { max-width: 560px; }
  .practice-grid,
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principle:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }

  /* Case path becomes a vertical timeline */
  .case-path__track { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .case-path__track::before,
  .case-path__track::after {
    top: calc(var(--node) / 2);
    bottom: 0;
    inset-inline: calc(var(--node) / 2 - .5px) auto;
    width: 1px;
    height: auto;
    margin-top: 0;
  }
  .case-path__track::after { width: 2px; transform-origin: center top; }
  [dir="rtl"] .case-path__track::after { transform-origin: center top; }
  .js .case-path__track::after { transform: scaleY(0); }
  .case-stage { padding-top: 0; padding-inline-start: calc(var(--node) + 24px); }
  /* End the line at the final stage (cassation) instead of running past it. */
  .case-stage--final::after {
    content: "";
    position: absolute;
    top: var(--node);
    bottom: 0;
    inset-inline-start: 0;
    z-index: 1;
    width: var(--node);
    background: var(--paper);
  }
  .case-stage__step { padding-top: 10px; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spotlight__grid { grid-template-columns: minmax(0, 1fr); }
  .spotlight__player { height: auto; }
  .spotlight { background: linear-gradient(var(--ink) 0 22%, var(--ivory) 22% 100%); }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .logo--header { --logo-size: 16px; }
  .practice-grid,
  .card-grid,
  .principles,
  .form-row,
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .principle {
    padding: 24px 0;
    border-inline-start: 0;
    border-bottom: 1px solid var(--ink-line);
  }
  .contact__details > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hero__areas { flex-direction: column; gap: 8px; }
  .hero__areas li::before,
  .hero__areas li + li::before {
    content: "";
    width: 18px;
    height: 1px;
    margin-inline: 0 12px;
    background: var(--gold);
  }
  .hero__actions .btn { width: 100%; }
  .hero__media { max-width: none; }
  .form-card__footer .btn { width: 100%; }
}
.reading__h2 { margin: 1.8em 0 .6em; font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; line-height: 1.5; }
.reading[lang="en"] .reading__h2 { font-family: var(--font-en); font-weight: 500; }
.reading__list { margin: 0 0 1.2em; padding-inline-start: 1.4em; }
.reading__list li { margin-bottom: .4em; }
.reading__list li::marker { color: var(--gold-deep); }
.reading__body a { color: var(--gold-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.map-card--live { padding: 0; justify-content: flex-end; min-height: 360px; }
.map-card__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) sepia(.12); }
.map-card--live .map-card__btn { margin: 0 0 18px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }

/* ---------- Share buttons, floating WhatsApp, legal links ---------- */
.share { margin-top: 48px; text-align: center; }
.share__divider { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.share__divider::before,
.share__divider::after { content: ""; flex: 1; height: 1px; background: var(--gold); opacity: .6; }
.share__divider span { width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px rgba(184, 154, 94, .5); }
.share__title { margin: 0 0 22px; font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; line-height: 1.4; color: var(--gold-deep); }
html[lang="en"] .share__title { font-weight: 500; }
.share__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0; padding: 0; list-style: none; }
.share__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-width: 170px; min-height: 56px; padding: 10px 24px;
  font: 500 1.02rem var(--font-body); color: var(--ink); text-decoration: none; cursor: pointer;
  background: var(--white); border: 1px solid rgba(184, 154, 94, .7); border-radius: 10px;
  transition: border-color .2s, background-color .2s, color .2s, transform .2s;
}
.share__btn:hover { border-color: var(--gold-deep); background: var(--ivory); transform: translateY(-1px); }
.share__btn.is-copied { border-color: var(--gold-deep); background: var(--ivory); }
.reading__body a.share__btn { color: var(--ink); text-decoration: none; }
.share__icon { flex: none; width: 26px; height: 26px; color: var(--gold-deep); }
.share__copied { min-height: 1.6em; margin: 12px 0 0; font-size: .92rem; color: var(--gold-deep); }
@media (max-width: 640px) {
  .share__list { flex-direction: column; align-items: stretch; }
  .share__btn { min-width: 0; width: 100%; }
}
.wa-float {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 60;
  display: grid; place-items: center; width: 58px; height: 58px;
  color: var(--ink); background: var(--gold); border-radius: 50%;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .55), 0 0 0 4px rgba(184, 154, 94, .18);
  transition: transform .2s, background-color .2s;
}
.wa-float:hover { transform: translateY(-2px); background: var(--gold-light); }
@media (max-width: 640px) { .wa-float { width: 52px; height: 52px; bottom: 16px; inset-inline-end: 16px; } }

.form-card__privacy { margin: -8px 0 16px; font-size: .84rem; color: var(--text-muted); }
.form-card__privacy a { color: var(--gold-deep); }
.site-footer__legal { margin: 6px 0 0 !important; }
.visit__google { margin: 0 0 24px; }
.privacy__draft { margin: 0 0 20px; font-size: .95rem; color: var(--text-muted); }
.reading__body a.btn { color: var(--ivory); text-decoration: none; }
