/* Nawa Consultancy theme. Components reference tokens only. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/_theme/5/assets/fonts/schibsted-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/_theme/5/assets/fonts/schibsted-latin-ext.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Alexandria";
  src: url("/_theme/5/assets/fonts/alexandria-arabic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* ---------- Tokens ---------- */
:root {
  --brand: #7861FF;
  --surface: #F2F2F2;
  --surface-raised: #FFFFFF;
  --surface-raised-2: #FFFFFF;
  --surface-sunken: #E8E7EC;
  --text: #121019;
  --text-muted: #57536A;
  --accent: #7861FF;
  --accent-text: #5135E6;
  --accent-strong: #6A50F7;
  --accent-strong-hover: #5A3FEA;
  --on-accent: #FFFFFF;
  --border: #D9D7E0;
  --border-input: #8B87A0;
  --focus: #5135E6;
  --danger: #B42318;
  --danger-surface: #FDECEA;
  --success: #067647;
  --whatsapp: #0B7A3B;
  --shadow-raised: 0 1px 2px rgb(18 16 25 / 0.06), 0 8px 24px -12px rgb(18 16 25 / 0.18);
  --shadow-float: 0 12px 40px -12px rgb(18 16 25 / .35);
  --shadow-hover: 0 2px 4px rgb(18 16 25 / 0.06), 0 24px 48px -20px rgb(18 16 25 / 0.28);
  --capsule-from: #7861FF;
  --capsule-mid: #A797FF;
  --capsule-to: #F2F2F2;
  --glow: rgb(120 97 255 / 0.28);
  --selection: rgb(120 97 255 / 0.22);
  --image-veil: linear-gradient(transparent, transparent);
  color-scheme: light;

  --font: "Schibsted Grotesk", "Alexandria", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --radius-card: 28px;
  --radius-field: 14px;
  --radius-pill: 999px;
  --gutter: 20px;
  --max: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 68px;
  --measure: 44rem;
  interpolate-size: allow-keywords;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #000000;
    --surface-raised: #17151F;
    --surface-raised-2: #221F2D;
    --surface-sunken: #0B0A10;
    --text: #F4F3F8;
    --text-muted: #A9A5BA;
    --accent: #7861FF;
    --accent-text: #A797FF;
    --accent-strong: #6A50F7;
    --accent-strong-hover: #5A3FEA;
    --border: #3A3549;
    --border-input: #726C88;
    --focus: #A797FF;
    --danger: #FF8A8A;
    --danger-surface: #2A1416;
    --success: #5FD39A;
    --whatsapp: #3DDC84;
    --shadow-raised: none;
    --shadow-float: 0 0 0 1px var(--border);
    --shadow-hover: 0 0 0 1px var(--border-input);
    --capsule-from: #7861FF;
    --capsule-mid: #4A3BA8;
    --capsule-to: #000000;
    --glow: rgb(120 97 255 / 0.45);
    --selection: rgb(167 151 255 / 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --surface: #000000;
  --surface-raised: #17151F;
  --surface-raised-2: #221F2D;
  --surface-sunken: #0B0A10;
  --text: #F4F3F8;
  --text-muted: #A9A5BA;
  --accent: #7861FF;
  --accent-text: #A797FF;
  --accent-strong: #6A50F7;
  --accent-strong-hover: #5A3FEA;
  --border: #3A3549;
  --border-input: #726C88;
  --focus: #A797FF;
  --danger: #FF8A8A;
  --danger-surface: #2A1416;
  --success: #5FD39A;
  --whatsapp: #3DDC84;
  --shadow-raised: none;
  --shadow-float: 0 0 0 1px var(--border);
  --shadow-hover: 0 0 0 1px var(--border-input);
  --capsule-from: #7861FF;
  --capsule-mid: #4A3BA8;
  --capsule-to: #000000;
  --glow: rgb(120 97 255 / 0.45);
  --selection: rgb(167 151 255 / 0.35);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  accent-color: var(--accent-strong);
  caret-color: var(--accent);
  overflow-x: clip;
}
html[lang="ar"] body { font-size: 1.125rem; line-height: 1.85; }
::selection { background: var(--selection); color: var(--text); }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
h3, h4 { line-height: 1.25; }
html[lang="ar"] :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.35; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr-only { 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: 12px; top: -120px; z-index: 100; background: var(--accent-strong); color: var(--on-accent); padding: 10px 16px; border-radius: var(--radius-pill); text-decoration: none; font-weight: 600; transition: top .2s var(--ease); }
.skip-link:focus { top: 12px; }
html { scrollbar-color: var(--border-input) var(--surface); }
.num { font-variant-numeric: tabular-nums; }
.token { unicode-bidi: isolate; background: color-mix(in oklab, var(--accent) 16%, transparent); color: var(--text); border-radius: 6px; padding: 0 .3em; font-size: .9em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 40px; } }

/* ---------- Icons ---------- */
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }
[dir="rtl"] .icon-dir { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 1.4em; border-radius: var(--radius-pill);
  font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
html[lang="ar"] .btn { font-weight: 600; font-size: 1.0625rem; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: .08s; }
.btn-primary { background: var(--accent-strong); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong-hover); box-shadow: 0 14px 28px -14px rgb(18 16 25 / .45); }
.btn-outline { border-color: var(--border-input); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--text); }
.btn-whatsapp { border-color: var(--border-input); color: var(--text); background: transparent; }
.btn-whatsapp .icon { color: var(--whatsapp); }
.btn-whatsapp:hover { border-color: var(--whatsapp); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .btn-row .btn { flex: 0 0 auto; } }

.pill { display: inline-flex; align-items: center; gap: .4em; border: 1px solid var(--border-input); border-radius: var(--radius-pill); padding: .2em .8em; font-size: .875rem; font-weight: 600; color: var(--text-muted); line-height: 1.6; }
html[lang="ar"] .pill { font-size: .9375rem; }

.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 650; color: var(--accent-text); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-block-end: 1px solid transparent; transition: border-color .2s var(--ease), box-shadow .3s var(--ease); }
.site-header.is-scrolled { border-block-end-color: var(--border); box-shadow: 0 8px 24px -20px rgb(18 16 25 / .4); }
.header-bar { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; margin-inline-end: auto; }
.brand img { height: 34px; width: auto; }
.logo-on-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-on-light { display: none; } :root:not([data-theme="light"]) .logo-on-dark { display: block; } }
:root[data-theme="dark"] .logo-on-light { display: none; }
:root[data-theme="dark"] .logo-on-dark { display: block; }

.main-nav { display: none; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.main-nav a { display: inline-flex; align-items: center; gap: .3em; padding: 8px 12px; border-radius: var(--radius-pill); color: var(--text); text-decoration: none; font-weight: 550; font-size: .975rem; }
html[lang="ar"] .main-nav a { font-size: 1rem; font-weight: 500; }
.main-nav a { transition: background-color .2s var(--ease), color .2s var(--ease); }
.main-nav a:hover { background: var(--surface-sunken); }
.main-nav li.active > a { color: var(--accent-text); }
.main-nav .has-sub { position: relative; }
.main-nav .sub {
  position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 280px; list-style: none;
  background: var(--surface-raised-2); border: 1px solid var(--border); border-radius: 20px; padding: 8px;
  box-shadow: var(--shadow-raised); opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.main-nav .sub a { display: flex; padding: 10px 14px; border-radius: 12px; font-weight: 500; }
.main-nav .has-sub:hover .sub, .main-nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.main-nav .caret { width: .9em; height: .9em; }

.header-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-pill); border: 1px solid transparent; background: transparent; color: var(--text); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--surface-sunken); }
.lang-link { width: auto; padding: 0 12px; font-weight: 600; font-size: .95rem; gap: 6px; display: inline-flex; align-items: center; }
.lang-link[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; } :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; } }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.header-cta { display: none; min-height: 44px; padding-inline: 1.1em; }
.menu-btn { display: inline-grid; }

@media (min-width: 1080px) {
  .main-nav { display: block; }
  .menu-btn { display: none; }
  .header-cta { display: inline-flex; }
  .brand { margin-inline-end: 24px; }
  .main-nav { margin-inline-end: auto; }
}

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 60; display: none; }
.mobile-menu.is-open { display: block; }
.mobile-menu-backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / 0.5); }
.mobile-menu-panel {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: min(420px, 100%);
  background: var(--surface); padding: 16px var(--gutter) 32px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 20px;
  animation: panel-in .35s var(--ease);
}
[dir="rtl"] .mobile-menu-panel { animation-name: panel-in-rtl; }
@keyframes panel-in { from { transform: translateX(24px); opacity: 0; } }
@keyframes panel-in-rtl { from { transform: translateX(-24px); opacity: 0; } }
.mobile-menu-head { display: flex; justify-content: space-between; align-items: center; height: 52px; }
.mobile-menu nav ul { list-style: none; }
.mobile-menu nav > ul > li { border-block-end: 1px solid var(--border); }
.mobile-menu nav a { display: flex; padding: 14px 0; color: var(--text); text-decoration: none; font-size: 1.125rem; font-weight: 600; }
.mobile-menu nav .sub { padding-block-end: 10px; }
.mobile-menu nav .sub a { padding: 9px 0; font-size: 1rem; font-weight: 500; color: var(--text-muted); padding-inline-start: 12px; }
.mobile-menu nav .caret { display: none; }
.mobile-menu nav > ul > li, .mobile-menu .btn-row { animation: rise-in .5s var(--ease) both; }
.mobile-menu nav > ul > li:nth-child(2) { animation-delay: .04s; }
.mobile-menu nav > ul > li:nth-child(3) { animation-delay: .08s; }
.mobile-menu nav > ul > li:nth-child(4) { animation-delay: .12s; }
.mobile-menu nav > ul > li:nth-child(5) { animation-delay: .16s; }
.mobile-menu nav > ul > li:nth-child(6) { animation-delay: .2s; }
.mobile-menu .btn-row { animation-delay: .24s; }

/* ---------- Capsules & motifs ---------- */
.motif { position: relative; color: var(--accent); }
.motif svg { width: 100%; height: 100%; overflow: visible; }
[dir="rtl"] .motif-mirror { transform: scaleX(-1); }
.capsule-stop-from { stop-color: var(--capsule-from); }
.capsule-stop-mid { stop-color: var(--capsule-mid); }
.capsule-stop-to { stop-color: var(--capsule-to); }
.capsule-outline { fill: none; stroke: var(--accent); stroke-opacity: .55; stroke-width: 1.25; }
.core-dot { fill: var(--accent); }

/* ---------- Home hero ---------- */
.hero { position: relative; padding-block: 20px 32px; overflow: clip; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(2.35rem, 7.6vw, 5.25rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; max-width: 14ch; }
html[lang="ar"] .hero h1 { font-size: clamp(2.1rem, 6.6vw, 4.5rem); font-weight: 700; line-height: 1.3; letter-spacing: 0; max-width: 16ch; }
.hero-lede { margin-top: 18px; font-size: 1.1875rem; color: var(--text-muted); max-width: 34rem; }
html[lang="ar"] .hero-lede { font-size: 1.25rem; }
.hero .btn-row { margin-top: 28px; }
.availability { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 22px; color: var(--text-muted); font-size: .9375rem; }
.availability .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); flex: none; }
.availability[data-state="open"] .dot { background: var(--success); box-shadow: 0 0 0 4px color-mix(in oklab, var(--success) 22%, transparent); }
.availability .clock { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
.hero-visual { position: relative; aspect-ratio: 4 / 4.2; max-height: 62vh; width: 100%; justify-self: center; }
.hero-visual .hero-texture { position: absolute; inset: -10% -20%; z-index: 0; opacity: .9; -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent 100%); mask-image: radial-gradient(closest-side, #000 40%, transparent 100%); }
.hero-visual .hero-texture img { width: 100%; height: 100%; object-fit: cover; }
/* The hero still is a dark photo: show it on the dark theme only; light keeps the coded motif. */
.hero-visual .hero-texture { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-visual .hero-texture { display: block; } }
:root[data-theme="dark"] .hero-visual .hero-texture { display: block; }
.hero-visual .hero-texture picture { display: block; width: 100%; height: 100%; }
.hero-visual .motif { position: absolute; inset: 0; z-index: 1; }
@media (min-width: 900px) {
  .hero { padding-block: 40px 64px; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 48px; }
  .hero-visual { aspect-ratio: 1 / 1.05; max-height: 640px; }
}
@media (max-width: 899px) { .hero-visual { max-height: 380px; aspect-ratio: 5 / 4; order: -1; margin-block-end: -12px; } }

/* ---------- Page hero ---------- */
.page-hero { padding-block: 20px 48px; position: relative; overflow: clip; }
.page-hero-grid { display: grid; gap: 24px; align-items: end; }
.page-hero h1 { font-size: clamp(2.1rem, 6vw, 4.25rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.04; max-width: 18ch; margin-top: 16px; }
html[lang="ar"] .page-hero h1 { font-size: clamp(1.95rem, 5.4vw, 3.6rem); font-weight: 700; letter-spacing: 0; line-height: 1.32; }
.page-hero .lede { margin-top: 16px; font-size: 1.1875rem; color: var(--text-muted); max-width: 40rem; }
html[lang="ar"] .page-hero .lede { font-size: 1.25rem; }
.page-hero .btn-row { margin-top: 24px; }
.page-hero .motif { height: 200px; }
@media (min-width: 900px) {
  .page-hero { padding-block: 32px 72px; }
  .page-hero-grid { grid-template-columns: 1.6fr 1fr; gap: 48px; }
  .page-hero .motif { height: 340px; }
}
.capsule-frame { position: relative; border-radius: var(--radius-pill); overflow: hidden; background: #000; }
.capsule-frame picture { display: block; width: 100%; height: 100%; }
.capsule-frame img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.capsule-frame.is-portrait { aspect-ratio: 3 / 4.4; max-width: 300px; width: 100%; justify-self: end; }
.capsule-frame:hover img { scale: 1.05; }

/* Breadcrumb */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: .9rem; color: var(--text-muted); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: ""; width: 6px; height: 6px; border-inline-end: 1.5px solid currentColor; border-block-start: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; }
[dir="rtl"] .breadcrumb li + li::before { transform: rotate(-135deg); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding-block: 56px; }
.section + .section { border-block-start: 1px solid var(--border); }
.section.is-tight { padding-block: 40px; }
@media (min-width: 900px) { .section { padding-block: 80px; } }
.section.is-flush { border: 0; padding-top: 8px; }
.section-head { display: grid; gap: 12px; justify-items: center; margin-inline: auto; margin-block-end: 40px; max-width: 46rem; text-align: center; }
.section-head h2, .section > .wrap > h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 700; letter-spacing: -0.025em; }
html[lang="ar"] .section-head h2, html[lang="ar"] .section > .wrap > h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: 0; font-weight: 600; }
.section-head p { color: var(--text-muted); font-size: 1.125rem; max-width: 40rem; }
.section-note { margin-top: 32px; text-align: center; color: var(--text-muted); }
.section > .wrap > :is(.prose, .legal-body, .faq) { margin-inline: auto; }
.section > .wrap > .prose > h2:first-child { text-align: center; }

.prose { max-width: 68ch; display: grid; gap: 1em; }
html[lang="ar"] .prose { max-width: 58ch; }
.prose h2 { margin-block-end: .2em; }
.prose strong { font-weight: 650; color: var(--text); }

.two-col { display: grid; gap: 32px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 64px; } .two-col.is-wide-start { grid-template-columns: 1.4fr 1fr; } }

.aside-card { background: var(--surface-raised); border-radius: var(--radius-card); padding: 28px; box-shadow: var(--shadow-raised); align-self: start; }
.aside-card h3 { font-size: 1.125rem; margin-block-end: 14px; }
.aside-card ul { list-style: none; display: grid; gap: 12px; }
.aside-card li { display: flex; gap: 12px; align-items: baseline; }
.aside-card li::before { content: ""; width: 8px; height: 14px; border-radius: 99px; background: var(--accent); flex: none; transform: translateY(2px); }

/* Item list: rows, not identical cards */
.item-list { list-style: none; display: grid; border-block-start: 1px solid var(--border); }
.item-list > li { display: grid; gap: 6px; padding-block: 22px; border-block-end: 1px solid var(--border); }
.item-list h3 { font-size: 1.1875rem; font-weight: 650; }
html[lang="ar"] .item-list h3 { font-size: 1.1875rem; font-weight: 600; }
.item-list p { color: var(--text-muted); max-width: 62ch; }
@media (min-width: 900px) {
  .item-list > li { grid-template-columns: minmax(220px, 1fr) 2fr; gap: 32px; padding-block: 26px; }
}
.item-list.is-numbered { counter-reset: item; }
.item-list.is-numbered h3::before { counter-increment: item; content: counter(item, decimal-leading-zero); display: inline-block; min-width: 2.2em; color: var(--accent-text); font-variant-numeric: tabular-nums; font-weight: 600; }

/* Link rows (hubs, services) */
.link-rows { list-style: none; display: grid; gap: 12px; }
.link-row { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: var(--surface-raised); border-radius: var(--radius-card); padding: 20px 22px; box-shadow: var(--shadow-raised); transition: background-color .2s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.link-row:hover { background: var(--surface-raised-2); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.link-row .mini-capsule { transition: scale .4s var(--ease); transform-origin: 50% 100%; }
.link-row:hover .mini-capsule { scale: 1 1.15; }
.link-row .mini-capsule { width: 22px; height: 56px; border-radius: 99px; background: linear-gradient(to top, var(--capsule-from), var(--capsule-to)); flex: none; }
.link-row:nth-child(2n) .mini-capsule { background: linear-gradient(to bottom, var(--capsule-from), var(--capsule-to)); }
.link-row :is(h2,h3) { font-size: 1.25rem; }
.link-row :is(h2,h3) a { color: var(--text); text-decoration: none; }
.link-row :is(h2,h3) a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.link-row p { color: var(--text-muted); margin-top: 4px; font-size: 1rem; }
.link-row .arrow { color: var(--accent-text); transition: transform .25s var(--ease); }
.link-row:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .link-row:hover .arrow { transform: scaleX(-1) translateX(4px); }
.link-row:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.link-row :is(h2,h3) a:focus-visible { outline: none; }
@media (min-width: 900px) { .link-rows.is-grid { grid-template-columns: 1fr 1fr; } }

/* Problems (home) */
.problems { list-style: none; display: grid; gap: 0; border-block-start: 1px solid var(--border); }
.problems li { border-block-end: 1px solid var(--border); }
.problems a { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 20px 16px; margin-inline: -16px; border-radius: 18px; color: var(--text); text-decoration: none; }
.problems a::before { content: ""; position: absolute; inset: 4px 0; z-index: -1; border-radius: inherit; background: var(--surface-raised); box-shadow: var(--shadow-raised); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
[dir="rtl"] .problems a::before { transform-origin: right; }
.problems a:hover::before { transform: none; }
.problems .p-title { transition: color .2s var(--ease); }
.problems .arrow { transition: transform .35s var(--ease); }
.problems a:hover .arrow { transform: translateX(6px); }
[dir="rtl"] .problems a:hover .arrow { transform: translateX(-6px); }
.problems .p-title { font-size: clamp(1.25rem, 2.6vw, 1.75rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
html[lang="ar"] .problems .p-title { letter-spacing: 0; line-height: 1.5; }
.problems .p-service { display: block; margin-top: 4px; font-size: .9375rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0; }
.problems a:hover .p-title { color: var(--accent-text); }
.problems .arrow { color: var(--accent-text); }

/* Services showcase (home) */
.service-showcase { display: grid; gap: 14px; list-style: none; }
.service-card { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.service-card .motif { transition: scale .5s var(--ease); }
.service-card:hover .motif { scale: 1.06; }
.service-card { position: relative; display: grid; gap: 12px; background: var(--surface-raised); border-radius: var(--radius-card); padding: 148px 24px 26px; box-shadow: var(--shadow-raised); overflow: hidden; align-content: end; }
.service-card .motif { position: absolute; inset-block-start: 20px; inset-inline-start: 20px; width: 110px; height: 112px; }
.service-card h3 { font-size: 1.5rem; max-width: 14ch; }
.service-card h3 a { color: var(--text); text-decoration: none; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; }
.service-card p { color: var(--text-muted); max-width: 40ch; }
.service-card:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.service-card h3 a:focus-visible { outline: none; }
.service-card .text-link { position: relative; }
@media (min-width: 720px) { .service-showcase { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) {
  .service-showcase { gap: 20px; }
  .service-card { min-height: 320px; padding: 32px; padding-inline-end: 200px; }
  .service-card .motif { inset-block-start: 50%; inset-inline-start: auto; inset-inline-end: 32px; width: 150px; height: 170px; translate: 0 -50%; }
}

/* Stages */
.stages { list-style: none; display: grid; gap: 0; counter-reset: stage; position: relative; }
.stage { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 0 18px; padding-block-end: 28px; }
.stage::before { counter-increment: stage; content: counter(stage); grid-row: 1 / span 3; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-raised); border: 1.5px solid var(--accent); color: var(--accent-text); font-weight: 700; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.stage::after { content: ""; position: absolute; inset-inline-start: 21px; top: 44px; bottom: 0; width: 2px; background: linear-gradient(var(--accent), var(--border)); }
.stage:last-child::after { display: none; }
.stage h3 { font-size: 1.375rem; padding-top: 6px; }
.stage p { color: var(--text-muted); margin-top: 6px; max-width: 60ch; }
.stage .receive { margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface-raised); box-shadow: var(--shadow-raised); max-width: 60ch; font-size: 1rem; }
.stage .receive strong { display: block; font-size: .9rem; color: var(--accent-text); font-weight: 650; margin-bottom: 2px; }
@media (min-width: 1080px) {
  .stages.is-horizontal { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .stages.is-horizontal .stage { grid-template-columns: 1fr; gap: 12px; padding: 0; align-content: start; }
  .stages.is-horizontal .stage::before { grid-row: auto; }
  .stages.is-horizontal .stage::after { top: 21px; bottom: auto; inset-inline-start: 52px; inset-inline-end: -20px; width: auto; height: 2px; }
  .stages.is-horizontal .stage h3 { padding-top: 4px; }
}
/* Scroll-filled stage capsule on approach */
.stage-track { display: none; }
@media (min-width: 1080px) {
  .approach-layout { display: grid; grid-template-columns: 1fr 260px; gap: 64px; }
  .stage-track { display: block; position: sticky; top: calc(var(--header-h) + 40px); height: 70vh; max-height: 560px; }
  .stage-track .track { position: absolute; inset: 0; border-radius: 999px; border: 1.25px solid color-mix(in oklab, var(--accent) 55%, transparent); overflow: hidden; }
  .stage-track .fill { position: absolute; inset-inline: 0; bottom: 0; height: calc(var(--progress, 0.2) * 100%); background: linear-gradient(to top, var(--capsule-from), var(--capsule-to)); transition: height .5s var(--ease); }
  .stage-track .label { position: absolute; inset-inline: 0; bottom: 24px; text-align: center; font-weight: 700; color: var(--on-accent); font-size: 1.125rem; }
}

/* FAQ */
.faq { display: grid; border-block-start: 1px solid var(--border); max-width: 52rem; }
.faq details { border-block-end: 1px solid var(--border); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-block: 20px; cursor: pointer; font-weight: 600; font-size: 1.125rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--border-input); display: grid; place-items: center; transition: transform .25s var(--ease), border-color .2s; }
.faq details[open] summary .plus { transform: rotate(45deg); border-color: var(--accent); }
.faq .answer { padding-block-end: 22px; color: var(--text-muted); max-width: 64ch; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-card); padding: 32px 24px; display: grid; gap: 20px;
  background: var(--accent-strong-hover); color: #fff; box-shadow: var(--shadow-raised);
  --capsule-from: #FFFFFF; --capsule-mid: #CFC5FF; --capsule-to: #5A3FEA; --accent: #FFFFFF;
}
.cta-band .btn-primary { background: #fff; color: #3B22C9; }
.cta-band .btn-primary:hover { background: #F0EDFF; box-shadow: 0 14px 28px -14px rgb(18 16 25 / .5); }
.cta-band .btn-whatsapp { border-color: rgb(255 255 255 / .6); color: #fff; }
.cta-band .btn-whatsapp .icon { color: #fff; }
.cta-band .btn-whatsapp:hover { border-color: #fff; background: rgb(255 255 255 / .1); }
.cta-band a:not(.btn) { color: #fff; }
.cta-band :focus-visible { outline-color: #fff; }
.cta-band h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); max-width: 18ch; position: relative; z-index: 1; }
.cta-band p { color: rgb(255 255 255 / .86); max-width: 44ch; position: relative; z-index: 1; }
.cta-band .btn-row { position: relative; z-index: 1; }
.cta-band .motif { position: absolute; inset-block: -20px; inset-inline-end: -10px; width: 46%; max-width: 360px; opacity: .9; }
@media (max-width: 719px) { .cta-band .motif { display: none; } }
@media (min-width: 900px) { .cta-band { padding: 56px; } }

/* Booking band (home + contact) */
.booking { display: grid; gap: 32px; }
@media (min-width: 1000px) { .booking { grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; } }
.booking-copy h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
.booking-copy p { color: var(--text-muted); margin-top: 14px; max-width: 42ch; }
.contact-lines { list-style: none; display: grid; gap: 14px; margin-top: 28px; }
.contact-lines li { display: flex; gap: 12px; align-items: center; }
.contact-lines .icon { color: var(--accent-text); }
.contact-lines a { color: var(--text); font-weight: 600; text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }
.zones { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; max-width: 420px; }
.zone { border: 1px solid var(--border); border-radius: 18px; padding: 14px 16px; }
.zone .z-name { font-size: .875rem; color: var(--text-muted); }
.zone .z-time { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.zone .z-week { font-size: .8125rem; color: var(--text-muted); }

/* Form */
.form-card { background: var(--surface-raised); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-raised); }
@media (min-width: 900px) { .form-card { padding: 36px; } }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: .9375rem; }
.field .hint { font-size: .875rem; color: var(--text-muted); }
.field .optional { font-weight: 400; color: var(--text-muted); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius-field);
  background: var(--surface); border: 1.5px solid var(--border-input); color: var(--text);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 40px; }
[dir="rtl"] .select { background-position: 20px 50%, 15px 50%; }
.input::placeholder, .textarea::placeholder { color: var(--text-muted); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in oklab, var(--focus) 30%, transparent); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field .error { display: none; color: var(--danger); font-size: .875rem; font-weight: 500; }
.field.has-error .error { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; color: var(--text-muted); }
.field label.check { font-weight: 400; font-size: .9375rem; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; }
.check a { color: var(--accent-text); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.form-status { font-size: .9375rem; }
.form-status[data-state="error"] { color: var(--danger); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.hp { position: absolute; inset-inline-start: -9999px; }

/* Founders / clients / cases placeholders */
.founders { list-style: none; display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .founders { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.founder { display: grid; gap: 12px; }
.founder .portrait { aspect-ratio: 3 / 3.6; border-radius: 999px; background: linear-gradient(to top, color-mix(in oklab, var(--accent) 34%, var(--surface-raised)), var(--surface-raised)); border: 1px solid var(--border); overflow: hidden; display: grid; place-items: end center; }
.founder .portrait svg { width: 60%; height: auto; opacity: .55; color: var(--accent); }
.founder .portrait img { width: 100%; height: 100%; object-fit: cover; }
.founder h3 { font-size: 1.125rem; }
.founder p { color: var(--text-muted); font-size: .9375rem; }
.founder .token { font-size: .8rem; }
/* Clients: two rows of logos drifting in opposite directions */
.section.clients { padding-block: 40px 56px; }
.section > .wrap > .clients-title { text-align: center; font-size: 1.0625rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0; margin-block-end: 32px; }
.marquee { --gap: clamp(44px, 6vw, 88px); display: grid; gap: 36px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.marquee-row { display: flex; width: max-content; animation: marquee 60s linear infinite; will-change: transform; }
.marquee.is-offscreen .marquee-row { animation-play-state: paused; }
.marquee-row + .marquee-row { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee-row, .clients.is-paused .marquee-row { animation-play-state: paused; }
.marquee-toggle { display: grid; margin: 28px auto 0; border-color: var(--border); }
.marquee-toggle .icon-play, .clients.is-paused .marquee-toggle .icon-pause { display: none; }
.clients.is-paused .marquee-toggle .icon-play { display: block; }
.marquee ul { display: flex; align-items: center; gap: var(--gap); padding-inline-end: var(--gap); list-style: none; }
.marquee li { flex: none; }
.marquee img { max-width: none; opacity: .58; transition: opacity .3s var(--ease), scale .3s var(--ease); }
.marquee li:hover img { opacity: 1; scale: 1.06; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .marquee img { filter: invert(1); } }
:root[data-theme="dark"] .marquee img { filter: invert(1); }
@media (max-width: 719px) { .marquee { zoom: .72; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
[dir="rtl"] .marquee-row { animation-name: marquee-rtl; }
.case-grid { list-style: none; display: grid; gap: 14px; }
@media (min-width: 900px) { .case-grid { grid-template-columns: repeat(3, 1fr); } }
.case-card { background: var(--surface-raised); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-raised); display: grid; gap: 10px; align-content: start; min-height: 220px; }
.case-card ol { list-style: none; display: grid; gap: 6px; color: var(--text-muted); font-size: .9375rem; }
.case-card ol li strong { color: var(--text); font-weight: 600; }

/* Articles */
.post-list { list-style: none; display: grid; gap: 14px; }
@media (min-width: 900px) { .post-list { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.post-card, .case-card { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.post-card { position: relative; display: grid; gap: 10px; align-content: start; background: var(--surface-raised); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-raised); }
.post-card h3 { font-size: 1.25rem; line-height: 1.3; }
html[lang="ar"] .post-card h3 { line-height: 1.55; }
.post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-card:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.post-card h3 a:focus-visible { outline: none; }
.post-card .meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; color: var(--text-muted); font-size: .875rem; }
.post-card p { color: var(--text-muted); font-size: 1rem; }
.post-card .post-motif { height: 72px; width: 100%; }

/* Article body */
.article { padding-block: 8px 64px; }
.article .breadcrumb, .article-head, .article-body, .sources { max-width: var(--measure); margin-inline: auto; }
.article-head h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.08; margin-top: 16px; }
html[lang="ar"] .article-head h1 { font-size: clamp(1.85rem, 4.6vw, 3rem); font-weight: 700; letter-spacing: 0; line-height: 1.4; }
.article-head .meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 18px; color: var(--text-muted); font-size: .9375rem; }
.article-head .excerpt { margin-top: 16px; font-size: 1.1875rem; color: var(--text-muted); }
.article-body { margin-top: 40px; display: grid; gap: 1.05em; font-size: 1.125rem; }
html[lang="ar"] .article-body { font-size: 1.1875rem; }
.article-body h2 { font-size: 1.75rem; margin-top: 1.2em; }
html[lang="ar"] .article-body h2 { font-size: 1.6rem; }
.article-body h3 { font-size: 1.3rem; margin-top: .8em; }
.article-body ul, .article-body ol { padding-inline-start: 1.3em; display: grid; gap: .45em; }
.article-body li::marker { color: var(--accent-text); }
.article-body .note { border-radius: 18px; padding: 16px 18px; background: var(--surface-raised); box-shadow: var(--shadow-raised); font-size: 1rem; color: var(--text-muted); }
.article-body .note strong { color: var(--text); }
.sources { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); font-size: .9375rem; color: var(--text-muted); }
.sources h2 { font-size: 1.125rem; margin-bottom: 10px; color: var(--text); }
.sources ul { padding-inline-start: 1.2em; display: grid; gap: 6px; }
.sources a { word-break: break-word; }

/* Legal */
.legal-body { max-width: 68ch; display: grid; gap: 1em; }
.legal-body h2 { font-size: 1.5rem; margin-top: 1.1em; }
.legal-body h3 { font-size: 1.2rem; margin-top: .6em; }
.legal-body ul { padding-inline-start: 1.3em; display: grid; gap: .4em; }

/* Related */
.related { list-style: none; display: grid; gap: 12px; }
@media (min-width: 900px) { .related { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }

/* 404 */
.notfound { min-height: 60vh; display: grid; align-content: center; gap: 18px; padding-block: 48px 72px; }
.notfound .motif { width: 140px; height: 180px; }
.notfound h1 { font-size: clamp(2.25rem, 6vw, 4rem); }
.notfound .alt-lang { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.notfound .alt-lang > p { margin-block: 12px 16px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 24px; padding-block: 56px 32px; background: var(--surface-sunken); }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; } }
.footer-brand img { height: 38px; width: auto; }
.footer-brand p { margin-top: 16px; color: var(--text-muted); max-width: 32ch; }
.footer-brand .tagline { color: var(--text); font-weight: 600; font-size: 1.125rem; margin-top: 18px; }
.site-footer h2 { font-size: 1rem; font-weight: 650; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer nav a, .footer-contact a { color: var(--text-muted); text-decoration: none; }
.site-footer nav a:hover, .footer-contact a:hover { color: var(--text); text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: center; color: var(--text-muted); }
.footer-contact .icon { color: var(--accent-text); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .9rem; }
.footer-bottom a { color: var(--text-muted); }
.footer-bottom button { background: none; border: 0; padding: 0; color: var(--text-muted); text-decoration: underline; cursor: pointer; font-size: inherit; }

/* ---------- Consent banner ---------- */
.consent { position: fixed; z-index: 70; inset-inline: 12px; bottom: 12px; max-width: 560px; margin-inline: auto; background: var(--surface-raised-2); color: var(--text); border-radius: 24px; padding: 20px; box-shadow: var(--shadow-float); display: none; }
.consent.is-visible { display: block; animation: rise .4s var(--ease); }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
.consent h2 { font-size: 1.0625rem; margin-bottom: 6px; }
.consent p { font-size: .9375rem; color: var(--text-muted); }
.consent .btn-row { margin-top: 14px; }
.consent .btn { min-height: 46px; flex: 1 1 0; }

/* ---------- Motion ---------- */
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes cap-in { from { opacity: 0; scale: .55; } }
@keyframes dot-in { from { scale: 0; } }
@keyframes drift { 50% { translate: 0 -10px; } }

/* Page openings: headline, lede, actions arrive in sequence */
:is(.hero, .page-hero) h1, .hero-lede, .page-hero .lede, :is(.hero, .page-hero) .btn-row, .availability, .article-head > * { animation: rise-in .9s var(--ease) both; }
.hero-lede, .page-hero .lede, .article-head > :nth-child(2) { animation-delay: .08s; }
:is(.hero, .page-hero) .btn-row, .article-head > :nth-child(3) { animation-delay: .16s; }
.availability { animation-delay: .24s; }

/* Capsule motifs grow from the core on page load only: SVG shape animation can't run on the
   compositor, so animating motifs that arrive mid-scroll costs layout + paint on every frame */
.motif .capsule, .motif .capsule-outline, .motif .core-dot, .motif .core-halo { transform-box: fill-box; transform-origin: 50% 50%; }
.motif .capsule[data-i="1"], .motif .capsule-outline[data-i="1"] { --d: 1; }
.motif .capsule[data-i="2"], .motif .capsule-outline[data-i="2"] { --d: 2; }
.motif .capsule-outline[data-i="3"] { --d: 3; }
:is(.page-hero, .notfound) .motif :is(.capsule, .capsule-outline) { animation: cap-in 1.1s var(--ease) both; animation-delay: calc(var(--d, 0) * .11s + .1s); }
:is(.page-hero, .notfound) .motif .core-dot { animation: dot-in .6s var(--ease) .55s both; }
:is(.page-hero, .cta-band) .motif svg { animation: drift 9s ease-in-out infinite; will-change: translate; }

/* Scroll reveal (app.js adds .reveal only to content below the fold) */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.stage.reveal::after { transform: scaleY(0); transform-origin: top; }
.stage.reveal.is-in::after { transform: none; transition: transform .9s var(--ease) calc(var(--i, 0) * 90ms + .3s); }
@media (min-width: 1080px) {
  .stages.is-horizontal .stage.reveal::after { transform: scaleX(0); transform-origin: left; }
  [dir="rtl"] .stages.is-horizontal .stage.reveal::after { transform-origin: right; }
}
@media print { .reveal { opacity: 1 !important; transform: none !important; } }

@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-row { animation: none; width: auto; justify-content: center; }
  .marquee-toggle { display: none; }
  .marquee ul { flex-wrap: wrap; justify-content: center; row-gap: 28px; padding-inline: var(--gutter); }
  .marquee ul[aria-hidden="true"], .marquee-row + .marquee-row ul[aria-hidden="true"] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Touch targets: every standalone link and control reaches 44px on touch screens */
.brand, .footer-brand a, .contact-lines a, .footer-contact a, .footer-bottom a, .footer-bottom button, .breadcrumb a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-brand a { display: inline-flex; }
