/* Beauty Expo Maroc
   Palette: cool monochrome + one deep-rose accent. Radius rule: interactive = pill, surfaces/images = 20px.
   Z-index scale: header 40, mobile nav 39, skip link 50. */
:root {
  --bg: #F6F5F8;
  --surface: #FFFFFF;
  --soft: #EEECF1;
  --ink: #141317;
  --muted: #57535E;
  --line: #DEDAE3;
  --accent: #B8174F;
  --accent-hover: #9C1243;
  --on-accent: #FFF6F9;
  --tint: #F8E3EB;
  --tint-2: #E9E4F2;
  --dark-panel: #1A181E;
  --on-dark: #F4F1F5;
  --on-dark-muted: #B9B3BF;
  --shadow: 0 18px 50px -24px rgb(60 20 40 / .28);
  --r: 20px;
  --font-display: "Syne", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121115; --surface: #1A191E; --soft: #1E1C22; --ink: #F2EFF4; --muted: #ADA7B3; --line: #2E2B33;
    --accent: #F2679A; --accent-hover: #F78AB2; --on-accent: #1C0A12; --tint: #2A1720; --tint-2: #201C2A;
    --dark-panel: #1F1D24; --shadow: 0 18px 50px -24px rgb(0 0 0 / .6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121115; --surface: #1A191E; --soft: #1E1C22; --ink: #F2EFF4; --muted: #ADA7B3; --line: #2E2B33;
  --accent: #F2679A; --accent-hover: #F78AB2; --on-accent: #1C0A12; --tint: #2A1720; --tint-2: #201C2A;
  --dark-panel: #1F1D24; --shadow: 0 18px 50px -24px rgb(0 0 0 / .6); color-scheme: dark;
}
html[lang="ar"] { --font-display: "Readex Pro", system-ui, sans-serif; --font-body: "Readex Pro", system-ui, sans-serif; }
html[lang="zh-Hans"] { --font-display: "Syne", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Manrope", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2, html[lang="zh-Hans"] h3 { letter-spacing: 0; line-height: 1.3; }
p { margin: 0 0 1em; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
[dir="rtl"] .ic-arrow { transform: scaleX(-1); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 58ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--accent); margin-bottom: 18px; }
.sec-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); max-width: 22ch; }
section { padding-block: clamp(56px, 8vw, 104px); }
section.soft { background: var(--soft); }

/* Buttons */
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; white-space: nowrap; transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s; border: 1.5px solid transparent; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn .ic-arrow { transition: transform .25s var(--ease); }
.btn:hover .ic-arrow { transform: translateX(3px); }
[dir="rtl"] .btn:hover .ic-arrow { transform: scaleX(-1) translateX(3px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.more { margin-top: 32px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 50% 50% 50% 8px; background: var(--accent); position: relative; }
.logo-mark::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--bg); }
.logo-word { font-family: "Syne", sans-serif; font-weight: 600; font-size: 1.12rem; letter-spacing: .02em; line-height: 1; display: grid; grid-template-columns: auto auto; column-gap: 4px; }
.logo-word b { font-weight: 800; }
.logo-word small { grid-column: 1 / -1; font-size: .58rem; letter-spacing: .42em; color: var(--muted); font-weight: 600; margin-top: 4px; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--muted); white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--soft); }
.nav .nav-contact { display: none; }
.bar-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--soft); }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}
.menu-btn { display: none; }
.menu-btn .i-close { display: none; }
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 700; font-size: .85rem; }
.lang summary::-webkit-details-marker { display: none; }
.lang .ic-caret { width: .9em; height: .9em; transition: transform .2s; }
.lang[open] .ic-caret { transform: rotate(180deg); }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 6px; min-width: 170px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.lang a { display: block; padding: 9px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.lang a:hover { background: var(--soft); }
.lang a[aria-current] { color: var(--accent); }

@media (max-width: 1080px) {
  .menu-btn { display: inline-grid; }
  .bar-cta { display: none; }
  .nav { position: fixed; inset: 72px 0 auto 0; z-index: 39; flex-direction: column; gap: 0; padding: 12px 16px 24px; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; max-height: calc(100dvh - 72px); overflow-y: auto; }
  .nav a { padding: 14px 8px; font-size: 1.15rem; border-radius: 12px; color: var(--ink); }
  .nav .nav-contact { display: block; }
  body.nav-open .nav { display: flex; }
  body.nav-open .menu-btn .i-open { display: none; }
  body.nav-open .menu-btn .i-close { display: block; }
  .bar-tools { margin-inline-start: auto; }
}

/* Hero */
.hero { padding-block: clamp(32px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; min-height: min(640px, calc(100dvh - 160px)); }
.hero h1 { font-size: clamp(2.3rem, 4.3vw, 4.1rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; }
.h1-l2 { display: block; color: var(--accent); }
html[lang="ar"] .hero h1, html[lang="zh-Hans"] .hero h1 { letter-spacing: 0; line-height: 1.2; }
.hero-text { animation: rise .9s var(--ease) both; }
.hero-media { position: relative; animation: rise 1.1s .1s var(--ease) both; }
.hero-main { width: 100%; aspect-ratio: 1 / 1; max-height: 68vh; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); }
.hero-inset { position: absolute; width: 40%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); inset-inline-start: -10%; bottom: -8%;
  border: 6px solid var(--bg); box-shadow: var(--shadow); }
@keyframes rise { from { transform: translateY(24px); } to { transform: none; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-main { aspect-ratio: 4 / 3; }
  .hero-inset { width: 34%; inset-inline-start: auto; inset-inline-end: 12px; bottom: -12%; }
}

/* Audiences */
.aud-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; margin-top: 12px; }
.aud { border-radius: var(--r); padding: clamp(28px, 4vw, 48px); }
.aud h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.aud h3 { font-size: 1.5rem; }
.aud-pro { background: var(--dark-panel); color: var(--on-dark); }
.aud-pro p { color: var(--on-dark-muted); }
.aud-pro .checks .ic { color: #F2679A; }
.aud-public { background: var(--tint); }
.aud-public p { color: var(--muted); }
.aud-ic { width: 40px; height: 40px; margin-bottom: 24px; color: var(--accent); }
.aud-pro .aud-ic { color: #F2679A; }
.visit-col h3, .aud h2 + h3, .aud p + h3 { font-family: var(--font-body); font-size: .95rem; font-weight: 700; margin-top: 24px; letter-spacing: 0; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.checks .ic { color: var(--accent); margin-top: .3em; }
.checks-2 { grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: .95rem; }
@media (max-width: 900px) { .aud-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .checks-2 { grid-template-columns: 1fr; } }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(220px, auto); grid-auto-flow: dense; gap: 16px; margin-top: 12px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r); text-decoration: none; display: flex; align-items: flex-end; padding: 22px; isolation: isolate; min-height: 220px; }
.tile.wide { grid-column: span 2; }
.tile.tall { grid-row: span 2; }
.tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.tile.has-img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(14 10 14 / .82), rgb(14 10 14 / .1) 62%); }
.tile.has-img { color: #FAF7FA; }
.tile:hover .tile-img { transform: scale(1.05); }
.tile-body { display: grid; gap: 6px; }
.tile-body b { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.1; }
.tile-body span { font-size: .93rem; opacity: .9; max-width: 36ch; }
.tint { background: var(--tint); color: var(--ink); }
.tint-aesthetic { background: var(--tint-2); }
.tint.tile::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; inset-inline-end: -50px; top: -50px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%); z-index: -1; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } .tile.tall { grid-row: span 1; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .tile.wide { grid-column: auto; } }

/* Origins */
.origins-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.origins-media { position: sticky; top: 104px; }
.origins-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.origin { padding-block: 24px; border-top: 1px solid var(--line); }
.origin h3 { font-size: 1.45rem; }
.origin p { color: var(--muted); margin: 0; max-width: 60ch; }
@media (max-width: 900px) { .origins-grid { grid-template-columns: 1fr; } .origins-media { position: static; } .origins-media img { aspect-ratio: 16 / 10; } }

/* Targets */
.targets { border-block: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 24px; }
.stat b { display: block; font-family: "Syne", sans-serif; font-weight: 800; font-size: clamp(2.2rem, 3.9vw, 3.5rem); line-height: 1; letter-spacing: -.03em; color: var(--accent); white-space: nowrap; }
.stat span { display: block; margin-top: 10px; font-weight: 600; color: var(--muted); }
.note { margin-top: 28px; font-size: .92rem; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; gap: 32px 16px; } }

/* Formats scroller */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 12px; margin-top: 8px; scrollbar-width: thin; }
.fmt { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.fmt h3 { font-size: 1.3rem; margin-top: 18px; }
.fmt p { color: var(--muted); margin: 0; font-size: .97rem; }
.fmt-ic { width: 34px; height: 34px; color: var(--accent); }
@media (max-width: 1080px) { .scroller { grid-auto-columns: minmax(250px, 72%); } }

/* FAQ */
.faq-list { margin: 16px 0 0; display: grid; gap: 0; }
.qa { padding-block: 26px; border-top: 1px solid var(--line); }
.qa dt { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.3; margin-bottom: 8px; }
.qa dd { margin: 0; color: var(--muted); max-width: 70ch; }
.faq-2 { grid-template-columns: 1fr 1fr; column-gap: 48px; }
@media (max-width: 760px) { .faq-2 { grid-template-columns: 1fr; } }

/* Final band */
.final { padding-top: 0; }
.final-card { position: relative; overflow: hidden; border-radius: var(--r); isolation: isolate; min-height: 420px; display: flex; align-items: flex-end; }
.final-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.final-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(16 10 14 / .88), rgb(16 10 14 / .35)); }
[dir="rtl"] .final-card::after { background: linear-gradient(-90deg, rgb(16 10 14 / .88), rgb(16 10 14 / .35)); }
.final-body { padding: clamp(28px, 5vw, 64px); color: #FAF7FA; max-width: 640px; }
.final-body h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.final-body p { color: #E4DDE3; font-size: 1.1rem; }
.final .btn-primary { background: #F2679A; color: #1C0A12; }
.final .btn-primary:hover { background: #F78AB2; }

/* Inner pages */
.page-hero { padding-block: clamp(32px, 5vw, 64px); }
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); font-weight: 800; letter-spacing: -.03em; max-width: 18ch; }
.ph-grid { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
.has-media .ph-grid { grid-template-columns: 1.2fr 1fr; }
.ph-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r); }
@media (max-width: 900px) { .has-media .ph-grid { grid-template-columns: 1fr; } .ph-media img { aspect-ratio: 16 / 10; } }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 20px; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.why { padding-block: 28px; border-top: 1px solid var(--line); }
.why h3 { font-size: 1.35rem; }
.why p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; } }
.pills { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { padding: 12px 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.rows { display: grid; }
.row-item { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 24px; padding-block: 32px; border-top: 1px solid var(--line); align-items: baseline; }
.row-item h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0; }
.row-item p { color: var(--muted); margin: 0; max-width: 62ch; }
.row-item.with-ic { grid-template-columns: 48px 1fr; align-items: start; }
.row-item.with-ic h3 { margin-bottom: 8px; }
@media (max-width: 700px) { .row-item { grid-template-columns: 1fr; gap: 8px; } }
.steps { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--tint); color: var(--accent); font-weight: 800; margin-bottom: 18px; }
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--muted); margin: 0; font-size: .97rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.prac-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.prac { padding-top: 24px; border-top: 2px solid var(--ink); }
.prac .ic { width: 28px; height: 28px; color: var(--accent); }
.prac h3 { font-size: 1.25rem; margin-top: 14px; }
.prac p { color: var(--muted); }
@media (max-width: 760px) { .prac-grid { grid-template-columns: 1fr; gap: 24px; } }

.sc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
.sc { scroll-margin-top: 96px; }
.sc-media { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; position: relative; }
.sc-media img { width: 100%; height: 100%; object-fit: cover; }
.sc-media.tint::before { content: ""; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; inset-inline-end: -10%; top: -20%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%); }
.sc-body { padding-top: 22px; }
.sc-body h2 { font-size: 1.7rem; }
.sc-body p { color: var(--muted); }
@media (max-width: 760px) { .sc-grid { grid-template-columns: 1fr; } }

.callout { background: var(--tint); border-radius: var(--r); padding: clamp(28px, 5vw, 56px); }
.callout h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.callout p { max-width: 58ch; color: var(--muted); }

.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin-top: 1.6em; }
.prose p { color: var(--muted); }
.facts { padding-inline-start: 1.1em; color: var(--muted); display: grid; gap: 10px; }
.facts li::marker { color: var(--accent); }
.sister { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sister a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.sister a:hover { border-color: var(--accent); color: var(--accent); }
.credits { padding-inline-start: 1.1em; color: var(--muted); display: grid; gap: 8px; font-size: .95rem; }

.ccards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ccard { display: block; padding: 32px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .25s, transform .25s var(--ease); }
.ccard:hover { border-color: var(--accent); transform: translateY(-2px); }
.ccard > .ic { width: 32px; height: 32px; color: var(--accent); }
.ccard h2 { font-size: 1.5rem; margin-top: 18px; }
.ccard p { color: var(--muted); }
.ccard:nth-child(1) { background: var(--tint); border-color: transparent; }
@media (max-width: 700px) { .ccards { grid-template-columns: 1fr; } }
.direct { margin-top: 56px; }
.direct h2 { font-size: 1.6rem; }
.direct dl { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 16px 56px; margin: 0; }
.direct dt { font-size: .85rem; color: var(--muted); font-weight: 600; }
.direct dd { margin: 4px 0 0; font-weight: 700; font-size: 1.1rem; }
.direct a { text-decoration: none; }
.direct a:hover { color: var(--accent); }
@media (max-width: 700px) { .direct dl { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 28px; margin-top: 24px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-brand p { color: var(--muted); max-width: 40ch; margin-top: 18px; }
.foot-org a { color: var(--ink); font-weight: 700; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.foot-links a { text-decoration: none; color: var(--muted); font-weight: 600; }
.foot-links a:hover { color: var(--accent); }
.foot-contact { display: grid; gap: 12px; align-content: start; }
.foot-contact a { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-weight: 700; }
.foot-contact a:hover { color: var(--accent); }
.foot-contact p { color: var(--muted); font-size: .93rem; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.foot-base p { margin: 0; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; } }

/* Language gate */
.gate-main { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: 32px; padding-block: 48px; }
.lang-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.lang-tile { display: grid; gap: 6px; padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.lang-tile:hover { border-color: var(--accent); }
.lang-tile b { font-size: 1.3rem; }
.lang-tile span { color: var(--muted); font-size: .92rem; }
.lang-tile[lang="ar"] { font-family: "Readex Pro", sans-serif; }

/* Reveal on scroll (JS adds .js to <html>) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Small phones: keep logo + language + theme + menu on one 343px row */
@media (max-width: 480px) {
  .bar { gap: 10px; height: 64px; }
  .nav { inset-block-start: 64px; max-height: calc(100dvh - 64px); }
  .logo { gap: 8px; }
  .logo-mark { width: 26px; height: 26px; }
  .logo-mark::after { inset: 8px; }
  .logo-word { font-size: .98rem; }
  .bar-tools { gap: 6px; }
  .icon-btn { width: 38px; height: 38px; }
  .lang summary { height: 38px; padding: 0 10px; }
  .lang .ic-caret { display: none; }
}
