/* ==========================================================================
   OMLY Accounting & Bookkeeping — main stylesheet
   Works for English (LTR) and Arabic (RTL) pages.
   ========================================================================== */

:root {
  --white: #FFFFFF;
  --linen: #FBF7F4;
  --sand: #F3E9E2;
  --blush: #F8F2EE;
  --chip: #F5ECE6;
  --bronze: #9A7455;
  --bronze-dark: #82603F;
  --walnut: #70553F;
  --accent: #8C6A4F;
  --espresso: #2B2420;
  --ink: #3A332E;
  --body: #5E5650;
  --muted: #6B625B;
  --faint: #8A817A;
  --line: #EFE4DB;
  --line-soft: #F1E8E1;
  --line-strong: #E6D6C9;

  --font-head: 'Alata', 'Segoe UI', sans-serif;
  --font-body: 'Jost', 'Segoe UI', sans-serif;

  --radius-card: 24px;
  --radius-media: 28px;
  --shadow-card: 0 24px 48px rgba(112, 85, 63, .10);
  --container: 1240px;
}

html[lang="ar"] {
  --font-head: 'Tajawal', 'Segoe UI', sans-serif;
  --font-body: 'Tajawal', 'Segoe UI', sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-size: 18px; line-height: 1.85; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: var(--walnut); }
a:hover { color: #4E3A2A; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, .head {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--espresso);
  line-height: 1.15;
}
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] .head {
  font-weight: 700;
  line-height: 1.45;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--bronze); color: #fff; padding: 10px 18px; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--walnut);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 15px; font-weight: 500; }

.h1 { font-size: clamp(38px, 5vw, 66px); line-height: 1.1; }
.h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.18; }
html[lang="ar"] .h1 { font-size: clamp(36px, 4.8vw, 62px); line-height: 1.35; }
html[lang="ar"] .h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.45; }
.lead { font-size: 19px; line-height: 1.75; color: var(--body); }
html[lang="ar"] .lead { font-size: 20px; line-height: 1.9; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--font-body); font-weight: 400; font-size: 16px; text-decoration: none;
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s;
}
html[lang="ar"] .btn { font-weight: 500; font-size: 17px; }
.btn-primary { background: var(--bronze); color: #fff; }
.btn-primary:hover { background: var(--bronze-dark); color: #fff; box-shadow: 0 10px 24px rgba(130, 96, 63, .28); }
.btn-ghost { background: transparent; border: 1px solid #D9C8BA; color: var(--ink); }
.btn-ghost:hover { border-color: var(--bronze); color: var(--walnut); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { color: var(--walnut); box-shadow: 0 10px 24px rgba(0, 0, 0, .10); }
.btn-sm { min-height: 46px; padding: 0 26px; }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn svg { flex: none; }
html[dir="rtl"] .flip { transform: scaleX(-1); }

.more { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 400; color: var(--walnut); text-decoration: none; }
html[lang="ar"] .more { font-size: 16px; font-weight: 500; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--blush); font-size: 14px; color: var(--muted); }
.topbar .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 24px; min-height: 42px; }
.topbar__links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.topbar a { color: var(--muted); text-decoration: none; }
.topbar a:hover { color: var(--walnut); }
@media (max-width: 720px) { .topbar__tagline { display: none; } .topbar .container { justify-content: center; } }

.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line-soft); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.logo img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 40px; }
.nav__list { display: flex; align-items: center; gap: 36px; }
.nav__list a { color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 400; padding: 10px 0; transition: color .2s; }
html[lang="ar"] .nav__list a { font-size: 17px; }
.nav__list a:hover, .nav__list a[aria-current="page"] { color: var(--accent); }
.nav__list a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--line-strong); }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav__cta-mobile { display: none; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .header__cta { display: none; }
  .nav {
    position: absolute; top: 100%; inset-inline: 0; background: #fff; border-bottom: 1px solid var(--line-soft);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 24px;
    display: none; box-shadow: 0 20px 30px rgba(58, 51, 46, .08);
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a { display: block; padding: 16px 4px; border-bottom: 1px solid var(--line-soft); }
  .nav__list a[aria-current="page"] { box-shadow: none; }
  .nav__cta-mobile { display: inline-flex; margin-top: 18px; }
}

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section--tight { padding: 88px 0; }
.section--linen { background: var(--linen); }
.section--flush-top { padding-top: 0; }
@media (max-width: 720px) { .section { padding: 80px 0; } .section--tight { padding: 64px 0; } }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 64px; margin-bottom: 56px; }
.section-head__main { flex: 1 1 520px; display: flex; flex-direction: column; gap: 18px; }
.section-head__side { flex: 0 1 380px; display: flex; flex-direction: column; gap: 18px; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.section-head--center .h2 { max-width: 760px; }

/* ---------- Media with faceted light overlay ---------- */
.media { position: relative; border-radius: var(--radius-media); overflow: hidden; background: var(--sand); }
.media > img { width: 100%; height: 100%; object-fit: cover; }
.media--veil::after { content: ""; position: absolute; inset: 0; background: rgba(242, 228, 228, .24); }
.facets { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
html[dir="rtl"] .facets { transform: scaleX(-1); }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 104px; }
.hero .container { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.hero__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__text .lead { max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 15px; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__visual { flex: 1 1 520px; min-width: 0; position: relative; }
.hero__visual .media { height: clamp(380px, 40vw, 580px); }
.badge-card {
  position: absolute; inset-inline-start: -28px; bottom: 40px; z-index: 2; max-width: 330px;
  display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 20px;
  background: #fff; box-shadow: 0 24px 50px rgba(58, 51, 46, .14); color: var(--ink); text-decoration: none;
}
.badge-card:hover { color: var(--ink); box-shadow: 0 28px 56px rgba(58, 51, 46, .18); }
.badge-card small { display: block; font-size: 13px; color: var(--walnut); }
.badge-card strong { display: block; font-size: 16px; font-weight: 400; }
html[lang="ar"] .badge-card strong { font-weight: 500; font-size: 17px; }
@media (max-width: 720px) { .badge-card { inset-inline-start: 16px; inset-inline-end: 16px; bottom: 16px; } }

.icon-circle { flex: none; width: 56px; height: 56px; border-radius: 999px; background: var(--chip); display: inline-flex; align-items: center; justify-content: center; color: var(--accent); }
.icon-circle--sm { width: 44px; height: 44px; background: var(--sand); }
.badge-card .icon-circle { width: 48px; height: 48px; background: #F7EFEA; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pillar { padding: 56px 32px; display: flex; flex-direction: column; gap: 14px; border-inline-end: 1px solid var(--line); }
.pillar:last-child { border-inline-end: 0; }
.pillar__num { font-family: var(--font-head); font-size: 14px; color: var(--accent); }
.pillar h3 { font-size: 22px; }
.pillar p { font-size: 16px; line-height: 1.7; color: var(--muted); }
@media (max-width: 1060px) { .pillar { border-inline-end: 0; border-bottom: 1px solid var(--line); } }

/* ---------- Split (image + text) ---------- */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 88px; }
.split__media { flex: 1 1 460px; min-width: 0; height: clamp(340px, 34vw, 500px); }
.split__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.split__text p { font-size: 18px; line-height: 1.8; color: var(--body); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.fact { display: flex; flex-direction: column; gap: 4px; padding-inline-start: 18px; border-inline-start: 2px solid var(--line-strong); }
.fact strong { font-family: var(--font-head); font-weight: 400; font-size: 18px; color: var(--espresso); }
html[lang="ar"] .fact strong { font-weight: 700; }
.fact span { font-size: 15px; color: var(--muted); }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column; gap: 18px; padding: 36px;
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-card);
  color: inherit; text-decoration: none; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--line-strong); color: inherit; }
.card h3 { font-size: 21px; }
.card p { font-size: 16px; line-height: 1.7; color: var(--muted); flex: 1; }

/* ---------- Steps ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 40px 32px; }
.steps::before { content: ""; position: absolute; top: 32px; left: 12%; right: 12%; height: 1px; background: var(--line-strong); }
@media (max-width: 1060px) { .steps::before { display: none; } }
.step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.step__num { width: 64px; height: 64px; border-radius: 999px; background: #fff; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 20px; color: var(--accent); }
.step--last .step__num { background: var(--bronze); border-color: var(--bronze); color: #fff; }
.step h3 { font-size: 20px; }
.step p { font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 250px; }

/* ---------- E-invoicing panel ---------- */
.panel { background: var(--linen); border-radius: 32px; padding: clamp(32px, 5vw, 72px); display: flex; flex-wrap: wrap; align-items: center; gap: 56px 72px; }
.panel__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.panel__text > p { font-size: 18px; line-height: 1.8; color: var(--body); }
.panel__media { flex: 1 1 400px; min-width: 0; height: clamp(360px, 34vw, 500px); }
.timeline { background: #fff; border-radius: 20px; padding: 8px 24px; }
.timeline li { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; color: var(--body); }
.timeline li:last-child { border-bottom: 0; }
.timeline time { flex: 0 0 120px; font-family: var(--font-head); color: var(--accent); }
html[lang="ar"] .timeline time { font-weight: 700; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 980px; margin: 0 auto; }
.chip { display: inline-flex; align-items: center; padding: 14px 22px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 16px; font-weight: 400; color: var(--ink); text-decoration: none; transition: border-color .2s; }
a.chip { min-height: 44px; padding: 0 20px; font-size: 15px; }
a.chip:hover { border-color: var(--bronze); color: var(--walnut); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.person { background: #fff; border-radius: var(--radius-card); padding: 36px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.person img { width: 140px; height: 140px; border-radius: 999px; object-fit: cover; margin-bottom: 10px; }
.person h3 { font-size: 19px; }
.person .eyebrow { font-size: 11px; }
html[lang="ar"] .person .eyebrow { font-size: 14px; }
.person p { font-size: 15px; line-height: 1.7; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-wrap: wrap; gap: 48px 88px; }
.faq__intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.faq__list { flex: 2 1 560px; min-width: 0; }
.faq details { border-top: 1px solid var(--line); padding: 24px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; font-family: var(--font-head); font-size: 19px; color: var(--espresso); }
html[lang="ar"] .faq summary { font-weight: 700; font-size: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 26px; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-top: 14px; font-size: 16px; line-height: 1.75; color: var(--body); }

/* ---------- CTA banner ---------- */
.cta-banner { position: relative; min-height: 420px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-media); overflow: hidden; }
.cta-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-banner::before { content: ""; position: absolute; inset: 0; background: rgba(250, 244, 241, .85); z-index: 1; }
.cta-banner .facets { z-index: 1; }
.cta-banner__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; padding: 64px 32px; max-width: 760px; }
.cta-banner__content .h2 { font-size: clamp(32px, 4vw, 54px); }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 88px 0 64px; }
.page-hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 80px; }
.page-hero__title { flex: 1 1 560px; display: flex; flex-direction: column; gap: 22px; }
.page-hero__row > p { flex: 0 1 400px; }
.page-hero--center { text-align: center; }
.page-hero--center .container { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.page-hero--center .h1 { max-width: 900px; }
.page-hero--center .lead { max-width: 740px; }
.anchors { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 48px; }
.wide-media { height: clamp(320px, 38vw, 520px); margin-top: 64px; }

/* ---------- Service blocks ---------- */
.service-list { display: flex; flex-direction: column; gap: 24px; }
.service { display: flex; flex-wrap: wrap; gap: 40px 64px; padding: 48px; background: var(--linen); border-radius: var(--radius-media); scroll-margin-top: 110px; }
.service--featured { background: var(--sand); }
.service__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.service__text h2 { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.2; }
html[lang="ar"] .service__text h2 { line-height: 1.45; }
.service__text p { font-size: 17px; line-height: 1.8; color: var(--body); }
.service__num { font-family: var(--font-head); font-size: 14px; color: var(--accent); }
.tag { display: inline-block; font-size: 13px; font-weight: 400; color: #fff; background: var(--bronze); padding: 5px 12px; border-radius: 999px; }
.checklist { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; background: #fff; border-radius: 20px; padding: 28px 32px; align-self: flex-start; }
.checklist li { display: flex; gap: 12px; font-size: 16px; line-height: 1.6; color: var(--body); }
.checklist svg { flex: 0 0 18px; margin-top: 4px; color: var(--accent); }
@media (max-width: 720px) { .service { padding: 28px; } }
.note { font-size: 14px; line-height: 1.7; color: var(--faint); padding: 16px 8px 0; }

/* ---------- About ---------- */
.mv { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.mv__item { background: var(--linen); border-radius: var(--radius-media); padding: 48px; display: flex; flex-direction: column; gap: 18px; }
.mv__item p { font-family: var(--font-head); font-size: 26px; line-height: 1.4; color: var(--espresso); }
html[lang="ar"] .mv__item p { font-weight: 700; line-height: 1.6; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value { padding: 44px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; border-inline-end: 1px solid var(--line); }
.value:last-child { border-inline-end: 0; }
.value h3 { font-size: 22px; }
.value p { font-size: 16px; color: var(--muted); }
@media (max-width: 900px) { .value { border-inline-end: 0; border-bottom: 1px solid var(--line); } .value:last-child { border-bottom: 0; } }

/* ---------- Contact ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-start; }
.contact__main { flex: 3 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.contact__aside { flex: 2 1 360px; min-width: 0; background: var(--linen); border-radius: var(--radius-media); padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.contact__aside h2 { font-size: 26px; padding-bottom: 8px; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full, .form__footer, .form-status { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 400; color: var(--ink); }
html[lang="ar"] .field label { font-weight: 500; font-size: 16px; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border: 1px solid #E6D9CF; border-radius: 14px;
  background: #fff; font: inherit; font-weight: 300; font-size: 16px; color: var(--espresso);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(154, 116, 85, .18); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #B4533C; }
.form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__footer span { font-size: 15px; color: var(--muted); }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.form-status { display: none; padding: 16px 20px; border-radius: 14px; font-size: 16px; }
.form-status.is-success { display: block; background: #EEF5EC; color: #2F5A2A; }
.form-status.is-error { display: block; background: #FBEDEA; color: #8A2F1E; }
.cc { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; background: #fff; border-radius: 20px; color: var(--ink); text-decoration: none; transition: box-shadow .25s; }
a.cc:hover { box-shadow: 0 14px 30px rgba(112, 85, 63, .10); color: var(--ink); }
.cc strong { display: block; font-family: var(--font-head); font-weight: 400; font-size: 17px; }
html[lang="ar"] .cc strong { font-weight: 700; font-size: 18px; }
.cc span span { display: block; font-size: 15px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--linen); padding: 80px 0 32px; font-size: 16px; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 56px; }
.footer__brand img { height: 56px; width: auto; margin-bottom: 18px; }
.footer__brand p { font-size: 15px; color: var(--muted); max-width: 270px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col .eyebrow { font-size: 12px; padding-bottom: 6px; }
html[lang="ar"] .footer__col .eyebrow { font-size: 15px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--walnut); }
.socials { display: flex; gap: 10px; padding-top: 6px; }
.socials a { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 60; width: 58px; height: 58px; border-radius: 999px;
  background: var(--bronze); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px rgba(130, 96, 63, .35); transition: transform .2s, background .2s;
}
.wa-float:hover { transform: scale(1.06); background: var(--bronze-dark); color: #fff; }

/* ---------- Helpers ---------- */
[dir="ltr"] { direction: ltr; unicode-bidi: isolate; }
.ltr-num { direction: ltr; unicode-bidi: isolate; display: inline-block; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.timeline__key { flex: 0 0 130px; font-family: var(--font-head); font-weight: 400; color: var(--accent); }
html[lang="ar"] .timeline__key { font-weight: 700; }

/* ---------- Brand visual (replaces people photos) ---------- */
.brand-visual { background: var(--sand); display: flex; align-items: center; justify-content: center; }
.brand-visual .facets { z-index: 0; }
.brand-chart { position: relative; z-index: 1; width: min(62%, 420px); height: auto; }
.hero__visual .brand-visual { height: clamp(380px, 40vw, 580px); }
.brand-visual--alt { background: var(--linen); }
.brand-visual--alt .brand-chart { width: min(56%, 360px); }
.brand-visual--wide .brand-chart { width: min(34%, 380px); }
html[dir="rtl"] .brand-chart { transform: none; }
.cta-banner--plain { background: var(--sand); }
.cta-banner--plain::before { background: transparent; }

/* ---------- Animated background canvas ---------- */
.bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; }

/* ---------- Animated illustrations (hero + about) ---------- */
.viz { position: relative; overflow: hidden; }
.viz-card {
  position: absolute; z-index: 2; background: #fff; border-radius: 20px;
  box-shadow: 0 24px 50px rgba(112, 85, 63, .14); padding: 22px 24px;
}
.viz-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.viz-title { font-family: var(--font-head); font-size: 16px; color: var(--espresso); }
html[lang="ar"] .viz-title { font-weight: 700; }
.viz-title--sm { font-size: 13px; color: var(--muted); display: block; margin-bottom: 6px; }
.viz-pill { font-size: 12px; color: var(--walnut); background: var(--chip); border-radius: 999px; padding: 4px 12px; }
.viz-pill--ok { background: #EAF2E6; color: #3F6B36; }

/* main report card */
.viz-main { width: 60%; top: 16%; inset-inline-start: 9%; animation: vizFloat 7s ease-in-out infinite; }
.viz-chart { position: relative; height: 150px; }
.viz-bars { direction: ltr; position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 7%; padding: 0 2%; border-bottom: 1px solid var(--line); }
.viz-bar { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #BA977B, #9A7455); transform-origin: bottom; animation: vizGrow 6s cubic-bezier(.2, .8, .2, 1) var(--d) infinite; }
.viz-bar:nth-child(odd) { background: linear-gradient(180deg, #E3D2C3, #CDB39C); }
.viz-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.viz-line path { fill: none; stroke: #70553F; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: vizDraw 6s ease-in-out .4s infinite; }
.viz-legend { display: flex; gap: 18px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.viz-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; }
.dot--a { background: #9A7455; } .dot--b { background: #CDB39C; }

/* donut card */
.viz-donut { width: 28%; max-width: 165px; top: 7%; inset-inline-end: 7%; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px; animation: vizFloat 8s ease-in-out -2s infinite; }
.viz-donut svg { width: 100%; transform: rotate(-90deg); }
.viz-donut circle { fill: none; stroke-width: 6; }
.d-bg { stroke: var(--chip); }
.d-a { stroke: #9A7455; stroke-dasharray: 0 100; animation: vizDonutA 6s ease-in-out infinite; }
.d-b { stroke: #D9C3AF; stroke-dasharray: 0 100; stroke-dashoffset: -62; animation: vizDonutB 6s ease-in-out infinite; }
.viz-mini { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.viz-mini i { display: block; height: 6px; border-radius: 6px; background: var(--chip); }
.viz-mini i:first-child { width: 80%; background: #E3D2C3; } .viz-mini i:last-child { width: 55%; }

/* chips */
.viz-chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 999px; padding: 10px 18px 10px 10px; font-size: 14px; font-weight: 400; color: var(--ink);
  box-shadow: 0 16px 34px rgba(112, 85, 63, .14); white-space: nowrap;
}
html[dir="rtl"] .viz-chip { padding: 10px 10px 10px 18px; }
.viz-ok { width: 28px; height: 28px; border-radius: 999px; background: #EAF2E6; color: #3F6B36; display: inline-flex; align-items: center; justify-content: center; animation: vizPop 6s ease-in-out infinite; }
.viz-chip--a { bottom: 18%; inset-inline-start: 5%; animation: vizFloat 6s ease-in-out -1s infinite; }
.viz-chip--b { bottom: 6%; inset-inline-end: 6%; animation: vizFloat 7.5s ease-in-out -3s infinite; }
.viz-progress { width: 60px; height: 6px; border-radius: 6px; background: var(--chip); overflow: hidden; }
.viz-progress i { display: block; height: 100%; width: 100%; background: #9A7455; transform-origin: left; animation: vizFill 6s ease-in-out infinite; }
html[dir="rtl"] .viz-progress i { transform-origin: right; }

/* ledger illustration */
.viz-ledger { width: 62%; top: 12%; inset-inline-start: 10%; animation: vizFloat 7s ease-in-out infinite; }
.viz-rows { display: flex; flex-direction: column; gap: 14px; }
.viz-rows li { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.r-line { height: 8px; width: var(--w); border-radius: 6px; background: #E8DACE; flex: none; max-width: 60%; }
.r-amt { flex: 1; height: 8px; border-radius: 6px; background: var(--chip); max-width: 22%; margin-inline-start: auto; }
.r-ok { width: 22px; height: 22px; border-radius: 999px; background: #EAF2E6; color: #3F6B36; display: inline-flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.4); animation: vizCheck 6s ease-out var(--d) infinite; }
.r-ok svg { width: 11px; height: 11px; }
.viz-total { display: flex; justify-content: space-between; padding-top: 14px; }
.viz-total span { height: 10px; border-radius: 6px; background: #CDB39C; width: 30%; }
.viz-total span:last-child { background: #9A7455; width: 22%; }
.viz-cash { width: 40%; max-width: 230px; bottom: 9%; inset-inline-end: 7%; padding: 16px 18px; animation: vizFloat 8s ease-in-out -2s infinite; }
.viz-cash svg { width: 100%; height: 56px; display: block; }
.cash-area { fill: rgba(186, 151, 123, .18); }
.cash-line { fill: none; stroke: #9A7455; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: vizDraw 6s ease-in-out .6s infinite; }
.viz-chip--c { top: 7%; inset-inline-end: 8%; animation: vizFloat 6.5s ease-in-out -1.5s infinite; }
.viz-chip--d { bottom: 12%; inset-inline-start: 6%; animation: vizFloat 7s ease-in-out -4s infinite; }
.viz-cal { width: 28px; height: 28px; border-radius: 8px; background: var(--chip); position: relative; }
.viz-cal::before { content: ""; position: absolute; inset: 8px 6px 6px; border: 1.6px solid #9A7455; border-radius: 3px; }
.viz-cal::after { content: ""; position: absolute; left: 9px; right: 9px; top: 6px; height: 4px; border-left: 1.6px solid #9A7455; border-right: 1.6px solid #9A7455; }

@keyframes vizFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes vizGrow { 0% { transform: scaleY(.08); } 22%, 82% { transform: scaleY(1); } 100% { transform: scaleY(.08); } }
@keyframes vizDraw { 0% { stroke-dashoffset: 1; } 35%, 82% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes vizDonutA { 0% { stroke-dasharray: 0 100; } 30%, 82% { stroke-dasharray: 62 100; } 100% { stroke-dasharray: 0 100; } }
@keyframes vizDonutB { 0%, 12% { stroke-dasharray: 0 100; } 40%, 82% { stroke-dasharray: 26 100; } 100% { stroke-dasharray: 0 100; } }
@keyframes vizFill { 0% { transform: scaleX(0); } 45%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes vizPop { 0%, 30% { transform: scale(.6); opacity: .4; } 40% { transform: scale(1.15); opacity: 1; } 48%, 90% { transform: scale(1); opacity: 1; } 100% { transform: scale(.6); opacity: .4; } }
@keyframes vizCheck { 0% { opacity: 0; transform: scale(.4); } 10% { opacity: 1; transform: scale(1.15); } 16%, 70% { opacity: 1; transform: scale(1); } 85%, 100% { opacity: 0; transform: scale(.4); } }

@media (max-width: 720px) {
  .viz-main, .viz-ledger { width: 80%; inset-inline-start: 6%; top: 10%; padding: 16px; }
  .viz-chart { height: 110px; }
  .viz-donut { display: none; }
  .viz-chip { font-size: 12px; padding: 8px 14px 8px 8px; }
  .viz-chip--b .viz-progress { display: none; }
  .viz-cash { width: 48%; }
}
.viz-chart, .viz-cash svg { direction: ltr; }

/* monthly close illustration */
.viz--close { min-height: 420px; }
.viz-tasks { width: 66%; top: 15%; inset-inline-start: 10%; animation: vizFloat 7s ease-in-out infinite; }
.viz-ring { width: 40px; height: 40px; transform: rotate(-90deg); }
.viz-ring circle { fill: none; stroke-width: 4; }
.ring-bg { stroke: var(--chip); }
.ring-fg { stroke: #9A7455; stroke-linecap: round; stroke-dasharray: 0 100; animation: vizRing 6s ease-in-out infinite; }
.viz-checklist { display: flex; flex-direction: column; gap: 12px; }
.viz-checklist li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink); padding: 10px 12px; border-radius: 12px; background: var(--linen); }
.t-box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #D9C3AF; color: transparent; display: inline-flex; align-items: center; justify-content: center; animation: vizTick 6s ease-out var(--d) infinite; }
.viz-chip--e { bottom: 9%; inset-inline-end: 7%; animation: vizFloat 6.5s ease-in-out -2s infinite; }
.viz-chip--f { top: 6%; inset-inline-end: 6%; animation: vizFloat 7.5s ease-in-out -1s infinite; }
.viz-cloud { width: 28px; height: 28px; border-radius: 999px; background: var(--chip); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }

/* network map illustration */
.viz-mapcard { width: 74%; top: 13%; inset-inline-start: 13%; animation: vizFloat 7s ease-in-out infinite; }
.viz-map { width: 100%; height: auto; display: block; direction: ltr; }
.map-link { fill: none; stroke: #9A7455; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: vizDraw 6s ease-in-out .3s infinite; }
.map-link--far { stroke: #CDB39C; stroke-width: 1.5; animation-delay: .9s; }
.map-node { fill: #9A7455; stroke: #fff; stroke-width: 2.5; }
.map-far { fill: #fff; stroke: #CDB39C; stroke-width: 2; }
.map-pulse { fill: rgba(154, 116, 85, .25); transform-box: fill-box; transform-origin: center; animation: vizPulse 2.4s ease-out infinite; }
.map-pulse--2 { animation-delay: 1.2s; }
.viz-chip--g { bottom: 8%; inset-inline-end: 8%; animation: vizFloat 6.5s ease-in-out -2s infinite; }
.viz-ok--pin { background: var(--chip); color: var(--accent); animation: none; }

@keyframes vizRing { 0%, 8% { stroke-dasharray: 0 100; } 60%, 85% { stroke-dasharray: 100 100; } 100% { stroke-dasharray: 0 100; } }
@keyframes vizTick { 0% { background: transparent; border-color: #D9C3AF; color: transparent; } 8%, 75% { background: #9A7455; border-color: #9A7455; color: #fff; } 90%, 100% { background: transparent; border-color: #D9C3AF; color: transparent; } }
@keyframes vizPulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }

@media (max-width: 720px) {
  .viz-tasks, .viz-mapcard { width: 84%; inset-inline-start: 8%; padding: 16px; }
  .viz-checklist li { font-size: 13px; padding: 8px 10px; }
  .viz-chip--f { display: none; }
}

/* ---------- Custom scrollbar ---------- */
html { scrollbar-width: thin; scrollbar-color: #B08D6E #F6EFEA; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #F6EFEA; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #C4A388, #9A7455); border-radius: 999px; border: 3px solid #F6EFEA; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #B08D6E, #82603F); }
::selection { background: #E8D6C6; color: #2B2420; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; background: linear-gradient(90deg, #C9AE97, #9A7455); transform-origin: left; transform: scaleX(0); pointer-events: none; }
html[dir="rtl"] .scroll-progress { transform-origin: right; }

/* ---------- Custom cursor ---------- */
html.has-cursor, html.has-cursor * { cursor: none; }
html.has-cursor input, html.has-cursor textarea { cursor: text; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; border-radius: 999px; will-change: transform; }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: #9A7455; }
.cursor-ring { width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1.5px solid rgba(154, 116, 85, .55); }
.cursor-ring::after { content: ""; position: absolute; inset: -1.5px; border-radius: inherit; background: rgba(186, 151, 123, .18); transform: scale(0); transition: transform .25s ease; }
.cursor-ring.is-hover::after { transform: scale(1.7); }
.cursor-ring.is-hover { border-color: transparent; }
.cursor-ring.is-down::after { transform: scale(1.2); background: rgba(154, 116, 85, .28); }
html.cursor-hidden .cursor-dot, html.cursor-hidden .cursor-ring,
html.cursor-text .cursor-dot, html.cursor-text .cursor-ring { opacity: 0; }

/* ---------- Slide-in on scroll ---------- */
.reveal { opacity: 0; transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .2, 1) !important; transition-delay: var(--rd, 0s) !important; }
.reveal--up { transform: translateY(40px); }
.reveal--start { transform: translateX(-56px); }
.reveal--end { transform: translateX(56px); }
html[dir="rtl"] .reveal--start { transform: translateX(56px); }
html[dir="rtl"] .reveal--end { transform: translateX(-56px); }
.reveal--zoom { transform: scale(.92); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Mobile refinements
   ========================================================================== */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .section--tight { padding: 48px 0; }
  .hero { padding: 40px 0 56px; }
  .hero .container { gap: 40px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .section-head { margin-bottom: 32px; }
  .lead { font-size: 17px; }
  html[lang="ar"] .lead { font-size: 18px; }
  .btn { min-height: 50px; padding: 0 24px; }

  /* pillars & steps: 2 × 2 */
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar { padding: 28px 16px; gap: 8px; border-bottom: 1px solid var(--line); }
  .pillar:nth-child(odd) { border-inline-end: 1px solid var(--line); }
  .pillar h3 { font-size: 17px; }
  .pillar p { font-size: 14px; line-height: 1.6; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .step { gap: 10px; }
  .step__num { width: 52px; height: 52px; font-size: 18px; }
  .step h3 { font-size: 17px; }
  .step p { font-size: 14px; }

  /* service cards: swipeable slider */
  .cards {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -20px; padding: 4px 20px 18px; scrollbar-width: none;
  }
  .cards::-webkit-scrollbar { display: none; }
  .cards .card { flex: 0 0 82%; scroll-snap-align: center; padding: 26px; }
  .cards-dots { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }

  /* split + panel */
  .split { gap: 32px; }
  .split__media { height: 360px; }
  .split__text p { font-size: 16px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 14px; }
  .panel { padding: 24px; border-radius: 24px; gap: 32px; }
  .panel__text > p { font-size: 16px; }
  .panel__media { height: 380px; flex-basis: 100%; }
  .timeline { padding: 4px 16px; }
  .timeline li { flex-direction: column; gap: 2px; padding: 14px 0; font-size: 15px; }
  .timeline__key, .timeline time { flex: none; }

  /* team: 2 columns */
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .person { padding: 22px 12px; gap: 6px; }
  .person img { width: 92px; height: 92px; margin-bottom: 6px; }
  .person h3 { font-size: 15px; }
  .person .eyebrow { font-size: 10px; letter-spacing: .14em; }
  html[lang="ar"] .person .eyebrow { font-size: 13px; }
  .person p { font-size: 13px; }

  /* faq, cta, services page */
  .faq { gap: 24px; }
  .faq summary { font-size: 17px; }
  .cta-banner { min-height: 0; border-radius: 24px; }
  .cta-banner__content { padding: 48px 20px; }
  .cta-banner__content .btn { flex: 1 1 100%; }
  .page-hero { padding: 48px 0 32px; }
  .anchors { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 32px 20px 4px; scrollbar-width: none; }
  .anchors::-webkit-scrollbar { display: none; }
  .anchors .chip { flex: none; }
  .mv__item { padding: 28px; }
  .mv__item p { font-size: 21px; }
  .value { padding: 28px 16px; }
  .contact__aside { padding: 24px; }

  /* footer: 2 columns */
  .footer { padding: 56px 0 28px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; margin-bottom: 36px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; gap: 6px; }

  /* floating button */
  .wa-float { width: 52px; height: 52px; bottom: 16px; inset-inline-end: 16px; }
}
@media (min-width: 721px) { .cards-dots { display: none; } }
.cards-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line-strong); transition: width .25s, background .25s; }
.cards-dots button.is-active { width: 22px; background: var(--bronze); }
@media (max-width: 340px) {
  .pillars, .steps { grid-template-columns: 1fr; }
  .pillar:nth-child(odd) { border-inline-end: 0; }
}

@media (max-width: 720px) {
  .header .container { min-height: 68px; }
  .logo img { height: 46px; width: auto; }
  .nav-toggle { width: 44px; height: 44px; }
}
@media (max-width: 720px) {
  .viz-chip--c { display: none; }
  .viz-ledger { top: 7%; }
  .viz-rows { gap: 10px; }
  .viz-rows li { padding-bottom: 9px; }
  .viz-cash { bottom: 5%; width: 46%; padding: 12px 14px; }
  .viz-chip--d { bottom: 6%; }
}

/* ---------- Mobile v2: single-column, compact rows (overrides 2-column grids) ---------- */
@media (max-width: 720px) {
  /* pillars: clean stacked list */
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar:nth-child(odd) { border-inline-end: 0; }
  .pillar { display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; row-gap: 4px; padding: 22px 0; border-bottom: 1px solid var(--line); }
  .pillar:last-child { border-bottom: 0; }
  .pillar__num { grid-row: 1 / span 2; padding-top: 3px; }
  .pillar h3 { font-size: 18px; }
  .pillar p { font-size: 15px; }

  /* steps: vertical timeline */
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; row-gap: 2px; align-items: start; text-align: start; padding-bottom: 26px; position: relative; }
  .step:not(:last-child)::after { content: ""; position: absolute; top: 52px; bottom: 0; inset-inline-start: 25px; width: 1px; background: var(--line-strong); }
  .step__num { grid-row: 1 / span 2; }
  .step h3 { font-size: 18px; padding-top: 12px; }
  .step p { max-width: none; font-size: 15px; }

  /* team: one compact row per person */
  .team { grid-template-columns: 1fr; gap: 12px; }
  .person { flex-direction: row; align-items: center; text-align: start; gap: 16px; padding: 14px 16px; border-radius: 20px; flex-wrap: wrap; }
  .person img { width: 68px; height: 68px; margin: 0; flex: none; }
  .person h3 { font-size: 17px; }
  .person .eyebrow { font-size: 11px; letter-spacing: .2em; }
  html[lang="ar"] .person .eyebrow { font-size: 14px; letter-spacing: 0; }
  .person > h3, .person > .eyebrow { flex: 1 1 calc(100% - 100px); }
  .person > h3 { align-self: flex-end; }
  .person p { flex: 1 1 100%; font-size: 14px; padding-top: 4px; }

  /* facts: stacked */
  .facts { grid-template-columns: 1fr; gap: 14px; }

  /* footer: stacked, tidy */
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__brand img { height: 48px; }
}
.person__info { display: flex; flex-direction: column; align-items: center; gap: 8px; }
@media (max-width: 720px) {
  .person__info { align-items: flex-start; gap: 4px; flex: 1; min-width: 0; }
  .person > h3, .person > .eyebrow { flex: none; }
}

/* ---------- Mobile v3: team as a swipeable slider of full cards ---------- */
@media (max-width: 720px) {
  .team {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -20px; padding: 6px 20px 18px; scrollbar-width: none; grid-template-columns: none;
  }
  .team::-webkit-scrollbar { display: none; }
  .person {
    flex: 0 0 72%; scroll-snap-align: center; flex-direction: column; flex-wrap: nowrap; align-items: center; text-align: center;
    gap: 8px; padding: 30px 20px 28px; border-radius: 24px; box-shadow: 0 14px 30px rgba(112, 85, 63, .08);
  }
  .person img { width: 128px; height: 128px; margin: 0 0 10px; border: 5px solid var(--linen); }
  .person__info { align-items: center; gap: 6px; flex: none; }
  .person h3 { font-size: 18px; }
  .person .eyebrow { font-size: 11px; letter-spacing: .22em; }
  .person p { flex: none; font-size: 14px; padding-top: 6px; }
}

/* phones with "reduce motion" on: keep the animations, just gentler */
@media (prefers-reduced-motion: reduce) {
  .reveal--up { transform: translateY(16px); }
  .reveal--start, html[dir="rtl"] .reveal--end { transform: translateX(-20px); }
  .reveal--end, html[dir="rtl"] .reveal--start { transform: translateX(20px); }
}
