/* =====================================================================
   Hive Group — main.css
   Brand: Ink #15171C · Amber #E8A013 (≤10%) · White. Chakra Petch + Changa.
   Logical properties throughout so /ar/ mirrors automatically.
   ===================================================================== */

@font-face { font-family: "Chakra Petch"; src: url("../fonts/chakra-petch-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("../fonts/chakra-petch-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Changa"; src: url("../fonts/changa-variable.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --ink: #15171C;
  --ink-800: #24262D;
  --ink-850: #1C1E24;
  --ink-700: #363941;
  --ink-600: #4F535D;
  --ink-500: #6B6F7A;
  --ink-400: #8C909B;
  --ink-300: #B4B7BF;
  --ink-200: #D3D5DA;
  --ink-100: #E9EAED;
  --ink-50: #F5F6F7;
  --white: #FFFFFF;
  --amber: #E8A013;
  --amber-400: #EFB139;
  --amber-700: #97680C;
  --amber-50: #FDF6E7;
  --danger: #E5484D;

  --f-display: "Chakra Petch", "Changa", system-ui, sans-serif;
  --f-body: "Changa", system-ui, "Segoe UI", sans-serif;
  --f-label: "Chakra Petch", "Changa", system-ui, sans-serif;

  --wrap: 1320px;
  --gutter: max(20px, 5vw);
  --sec-y: clamp(72px, 10vw, 140px);
  --cut: 16px;
  --cut-sm: 10px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 180ms;
  --t: 450ms;

  /* the 45° cut, top-right (mirrored in RTL) */
  --cut-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  --cut-path-sm: polygon(0 0, calc(100% - var(--cut-sm)) 0, 100% var(--cut-sm), 100% 100%, 0 100%);

  color-scheme: dark;
}
[dir="rtl"] {
  --f-display: "Changa", system-ui, sans-serif;
  --f-label: "Changa", system-ui, sans-serif;
  --cut-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
  --cut-path-sm: polygon(var(--cut-sm) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut-sm));
}

/* ---------- section themes ---------- */
.s-dark, .s-ink2, body {
  --bg: var(--ink); --fg: var(--white); --muted: var(--ink-300); --line: rgba(255,255,255,.12);
  --surface: var(--ink-850); --surface-2: var(--ink-800); --accent-text: var(--amber);
  --btn2-bg: var(--white); --btn2-fg: var(--ink);
}
.s-ink2 { --bg: #1A1C22; --surface: var(--ink); --surface-2: var(--ink-850); }
.s-light, .s-mist {
  --bg: var(--white); --fg: var(--ink); --muted: var(--ink-600); --line: var(--ink-200);
  --surface: var(--ink-50); --surface-2: var(--white); --accent-text: var(--amber-700);
  --btn2-bg: var(--ink); --btn2-fg: var(--white);
  color-scheme: light;
}
.s-mist { --bg: var(--ink-50); --surface: var(--white); }
.s-dark, .s-ink2, .s-light, .s-mist { background: var(--bg); color: var(--fg); }

/* ---------- reset ---------- */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--ink); color: var(--white);
  font-family: var(--f-body); font-weight: 400; font-size: clamp(17px, 1.05vw + 12px, 19px); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
[lang="ar"] body { font-size: clamp(18px, 1.1vw + 13px, 21px); line-height: 1.75; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
main:focus { outline: none; }

.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 { position: fixed; inset-inline-start: 16px; top: -100px; z-index: 200; background: var(--amber); color: var(--ink); padding: 12px 18px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--sec-y); position: relative; }
.sec-tight { padding-block: clamp(48px, 6vw, 80px); }
.center { text-align: center; display: flex; justify-content: center; }
.muted { color: var(--muted); }
.small { font-size: .875em; }

/* ---------- type ---------- */
.display, .h1, .h2, .h3, .h4, .display-2, .stat-num, .code-statement {
  font-family: var(--f-display); font-weight: 700; letter-spacing: -.01em; line-height: 1.08; text-wrap: balance;
}
[lang="ar"] :is(.display, .h1, .h2, .h3, .h4, .display-2, .stat-num, .code-statement) { font-weight: 800; letter-spacing: 0; line-height: 1.3; }
.display { font-size: clamp(40px, 5.6vw + 6px, 92px); }
.display-2 { font-size: clamp(34px, 4.4vw + 4px, 72px); }
.h1 { font-size: clamp(38px, 3.8vw + 10px, 68px); }
.h2 { font-size: clamp(30px, 2.6vw + 10px, 50px); }
.h3 { font-size: clamp(21px, 1vw + 14px, 28px); font-weight: 600; line-height: 1.2; }
.h4 { font-size: clamp(18px, .6vw + 14px, 22px); font-weight: 600; line-height: 1.3; }
[lang="ar"] .h3, [lang="ar"] .h4 { font-weight: 700; }
.lead { font-size: clamp(18px, .7vw + 14px, 23px); line-height: 1.55; color: var(--muted); max-width: 62ch; text-wrap: pretty; }
[lang="ar"] .lead { font-size: clamp(19px, .8vw + 15px, 25px); }

.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-label); font-weight: 600; font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--fg); margin-block-end: 20px;
}
[lang="ar"] .label { letter-spacing: 0; font-size: 16px; text-transform: none; }
.label-plain { color: var(--accent-text); margin-block-end: 12px; }
.label-h { margin: 0; }

.cell-sm, .cell-xs, .nav-cell, .cell { fill: var(--amber); flex: none; }
.cell-sm { width: 10px; height: 11.5px; }
.cell-xs { width: 8px; height: 9.2px; }

/* emphasis bar: one key word per headline */
.hl {
  background: linear-gradient(var(--amber), var(--amber)) no-repeat 0 100% / 100% .14em;
  padding-block-end: .04em; white-space: nowrap; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
[lang="ar"] .hl { background-size: 100% .1em; background-position: 0 96%; }
.amber { color: var(--accent-text); }

.prose p + p { margin-block-start: 1.1em; }
.prose { color: var(--muted); max-width: 64ch; }
.prose-lg { font-size: clamp(18px, .5vw + 15px, 21px); }
.prose .link-arrow { margin-block-start: 28px; }

/* ---------- icons (brand line icons as masks → take currentColor) ---------- */
.ico {
  display: inline-block; width: 1.25em; height: 1.25em; flex: none; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}
.ico-arrow { width: 1em; height: 1em; transition: transform var(--t-fast) var(--ease); }
[dir="rtl"] .ico-arrow { transform: scaleX(-1); }

/* ---------- buttons (45° cut, drawn on a pseudo so focus rings aren't clipped) ---------- */
.btn {
  --b-bg: var(--amber); --b-fg: var(--ink); --b-line: transparent;
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 12px 26px; border: 0; background: none; color: var(--b-fg);
  font-family: var(--f-label); font-weight: 600; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: color var(--t-fast) var(--ease);
}
[lang="ar"] .btn { letter-spacing: 0; font-size: 17px; text-transform: none; }
.btn::before, .btn::after { content: ""; position: absolute; z-index: -1; clip-path: var(--cut-path-sm); transition: background-color var(--t-fast) var(--ease), opacity var(--t-fast); }
.btn::before { inset: 0; background: var(--b-line); }
.btn::after { inset: 0; background: var(--b-bg); }
.btn:hover .ico-arrow { transform: translateX(4px); }
[dir="rtl"] .btn:hover .ico-arrow { transform: scaleX(-1) translateX(4px); }
.btn-primary:hover { --b-bg: var(--amber-400); }
.btn-ink { --b-bg: var(--btn2-bg); --b-fg: var(--btn2-fg); }
.btn-ink:hover { --b-bg: var(--amber); --b-fg: var(--ink); }
.btn-outline { --b-bg: var(--bg, var(--ink)); --b-fg: var(--fg); --b-line: var(--fg); }
.btn-outline::after { inset: 1.5px; }
.btn-outline:hover { --b-line: var(--amber); --b-fg: var(--fg); }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: 13px; }
[lang="ar"] .btn-sm { font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-block-start: 36px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-label); font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; font-size: 14px; color: var(--fg); text-decoration: none;
  padding-block: 10px; min-height: 44px; border-block-end: 1px solid var(--line); transition: border-color var(--t-fast);
}
[lang="ar"] .link-arrow { letter-spacing: 0; text-transform: none; font-size: 17px; }
.link-arrow .ico-arrow { color: var(--accent-text); }
.link-arrow:hover { border-color: var(--amber); }
.link-arrow:hover .ico-arrow { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover .ico-arrow { transform: scaleX(-1) translateX(4px); }

/* tags & chips */
.tag {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; padding: 6px 14px 6px 12px;
  font-family: var(--f-label); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg);
}
[lang="ar"] .tag { letter-spacing: 0; font-size: 14px; text-transform: none; }
.tag::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--surface-2); border: 1px solid var(--line); clip-path: var(--cut-path-sm); }
.s-light .tag::before, .s-mist .tag::before { background: var(--ink-100); border: 0; }
.tag-amber { color: var(--ink); }
.tag-amber::before { background: var(--amber) !important; border: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags-lg .tag { font-size: 14px; padding: 10px 18px; }
[lang="ar"] .tags-lg .tag { font-size: 17px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 36px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 18px;
  border: 1px solid var(--line); background: transparent; color: var(--fg); text-decoration: none;
  font-family: var(--f-label); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  clip-path: var(--cut-path-sm); transition: border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast);
}
[lang="ar"] .chip { letter-spacing: 0; text-transform: none; font-size: 16px; }
.chip .ico { color: var(--amber); }
.chip:hover { border-color: var(--amber); }
.chip[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--ink); }

/* divider: hairline starting with a small amber cell */
.divider { display: flex; align-items: center; gap: 10px; }
.divider span { flex: 1; height: 1px; background: var(--line); }

/* frame utility: cut-corner card with 1px line */
.frame { position: relative; isolation: isolate; }
.frame::before, .frame::after { content: ""; position: absolute; z-index: -1; clip-path: var(--cut-path); transition: background-color var(--t) var(--ease); }
.frame::before { inset: 0; background: var(--line); }
.frame::after { inset: 1px; background: var(--surface); }
.frame-cut { clip-path: var(--cut-path); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100; height: var(--header-h);
  transition: background-color var(--t) var(--ease), border-color var(--t), transform var(--t) var(--ease);
  border-block-end: 1px solid transparent;
}
.site-header.is-solid { background: rgba(21, 23, 28, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: rgba(255,255,255,.08); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: block; flex: none; padding-block: 8px; }
.brand img { height: 46px; width: auto; }
[lang="ar"] .brand img { height: 50px; }
.main-nav { margin-inline-start: auto; display: none; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; min-height: 44px;
  font-family: var(--f-label); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-200); text-decoration: none; transition: color var(--t-fast);
}
[lang="ar"] .main-nav a { font-size: 16px; letter-spacing: 0; }
.main-nav .nav-cell { width: 8px; height: 9.2px; opacity: 0; transform: scale(.4); transition: opacity var(--t-fast), transform var(--t-fast) var(--ease); }
.main-nav a:hover { color: var(--white); }
.main-nav a:hover .nav-cell { opacity: .5; transform: scale(1); }
.main-nav a[aria-current="page"] { color: var(--white); }
.main-nav a[aria-current="page"] .nav-cell { opacity: 1; transform: scale(1); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.main-nav + .header-actions { margin-inline-start: 0; }
.lang {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding-inline: 8px;
  font-family: "Changa", var(--f-label); font-weight: 600; font-size: 17px; color: var(--white); text-decoration: none;
  border: 1px solid rgba(255,255,255,.18); transition: border-color var(--t-fast), color var(--t-fast);
}
.lang:hover { border-color: var(--amber); color: var(--amber); }
.header-cta { display: none; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 12px; height: 44px; padding-inline: 14px; background: none;
  border: 1px solid rgba(255,255,255,.18); color: var(--white);
  font-family: var(--f-label); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
}
[lang="ar"] .menu-btn { font-size: 16px; letter-spacing: 0; }
.menu-btn:hover { border-color: var(--amber); }
.burger { display: grid; gap: 5px; width: 18px; }
.burger i { display: block; height: 2px; background: currentColor; transition: transform var(--t-fast) var(--ease); }
.menu-btn[aria-expanded="true"] .burger i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }
@media (min-width: 1180px) {
  .main-nav { display: block; }
}

/* full-screen menu */
.menu-panel {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--white);
  padding-block: calc(var(--header-h) + 24px) 40px; overflow-y: auto; overscroll-behavior: contain;
  --bg: var(--ink); --fg: var(--white); --line: rgba(255,255,255,.12); --muted: var(--ink-300); --surface: var(--ink-850);
}
.menu-panel[hidden] { display: none; }
.menu-tex { position: absolute; inset: 0; background: url("../img/texture/honeycomb.webp") right bottom / cover no-repeat; opacity: .9; pointer-events: none; }
[dir="rtl"] .menu-tex { transform: scaleX(-1); }
.menu-in { position: relative; display: grid; gap: 48px; }
.menu-list { counter-reset: m; }
.menu-list a {
  display: flex; align-items: baseline; gap: 18px; padding-block: 10px; text-decoration: none;
  border-block-end: 1px solid rgba(255,255,255,.08); color: var(--ink-200); transition: color var(--t-fast);
}
.menu-list .num { font-family: "Chakra Petch", sans-serif; font-weight: 600; font-size: 13px; color: var(--ink-400); min-width: 2ch; }
.menu-list .txt { font-family: var(--f-display); font-weight: 700; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.15; }
[lang="ar"] .menu-list .txt { font-weight: 800; }
.menu-list .nav-cell { width: 14px; height: 16px; margin-inline-start: auto; align-self: center; opacity: 0; transition: opacity var(--t-fast); }
.menu-list a:hover { color: var(--white); }
.menu-list a:hover .nav-cell { opacity: .4; }
.menu-list a[aria-current="page"] { color: var(--white); }
.menu-list a[aria-current="page"] .nav-cell { opacity: 1; }
.menu-side { display: grid; gap: 10px; align-content: start; color: var(--ink-300); }
.menu-side a { text-decoration: none; }
.menu-side a:hover { color: var(--amber); }
.menu-side .btn { margin-block: 18px 8px; justify-self: start; color: var(--ink); }
@media (min-width: 900px) { .menu-in { grid-template-columns: 1.6fr 1fr; align-items: start; gap: 80px; } .menu-side { padding-block-start: 16px; } }
@media (prefers-reduced-motion: no-preference) {
  .menu-panel.is-open .reveal-menu { animation: menuIn 520ms var(--ease) both; animation-delay: calc(var(--d) * 35ms); }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
body.menu-open { overflow: hidden; }

/* socials */
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a {
  display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); color: var(--fg);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.socials svg { width: 20px; height: 20px; }
.socials a:hover { border-color: var(--amber); color: var(--amber); }
.s-light .socials a:hover { color: var(--amber-700); }

/* ---------- hero (home) ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden;
  padding-block: calc(var(--header-h) + 56px) 120px;
}
.hero-tex {
  position: absolute; inset: 0; pointer-events: none;
  background: url("../img/texture/honeycomb.webp") right center / cover no-repeat;
}
[dir="rtl"] .hero-tex { transform: scaleX(-1); }
.hero-cell { position: absolute; inset-inline-end: 9vw; top: 22%; width: clamp(28px, 3vw, 46px); opacity: .95; pointer-events: none; }
.hero-in { position: relative; }
.hero .display { max-width: 17ch; }
[lang="ar"] .hero .display { max-width: 20ch; }
.hero-sub { margin-block-start: 28px; max-width: 54ch; }
.hero-slogan { display: inline-flex; align-items: center; gap: 10px; margin-block-start: 56px; font-family: var(--f-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; color: var(--ink-300); }
[lang="ar"] .hero-slogan { letter-spacing: 0; font-size: 16px; }
.scroll-cue {
  position: absolute; bottom: 28px; inset-inline-start: 50%; translate: -50% 0; display: grid; justify-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-400); text-decoration: none; padding: 8px;
}
[dir="rtl"] .scroll-cue { translate: 50% 0; }
[lang="ar"] .scroll-cue { letter-spacing: 0; font-size: 14px; }
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--amber), transparent); }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue i { animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
  .hero-cell { animation: float 7s ease-in-out infinite; }
}
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes float { 50% { transform: translateY(-14px) rotate(6deg); } }

/* page hero */
.page-hero { position: relative; padding-block: calc(var(--header-h) + clamp(64px, 9vw, 140px)) 0; overflow: hidden; }
.page-hero .h1 { max-width: 20ch; }
.page-hero .hero-sub { margin-block-start: 24px; }
.page-hero > .wrap:last-child { padding-block: clamp(56px, 7vw, 96px) 0; }
.hero-tall { min-height: 88svh; display: flex; flex-direction: column; justify-content: center; }
.hero-tall .h1 { font-size: clamp(40px, 5vw + 8px, 88px); }

/* ---------- section heads & splits ---------- */
.sec-head { margin-block-end: clamp(40px, 5vw, 64px); max-width: 860px; }
.sec-head .lead { margin-block-start: 20px; }
.split { display: grid; gap: 40px; }
.split > .sec-head { margin-block-end: 0; }
@media (min-width: 960px) {
  .split { grid-template-columns: 5fr 6fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
  .split-end { align-items: end; margin-block-end: 56px; }
  .split-end > :last-child { justify-self: end; }
  .split-sticky .sticky { position: sticky; top: calc(var(--header-h) + 40px); }
  .split-start { grid-template-columns: 1fr 1.15fr; }
}
.split-end > .sec-head { margin-block-end: 0; }
@media (max-width: 959px) { .split-end { margin-block-end: 40px; } }

/* ---------- home: intro stats ---------- */
.stats { display: grid; gap: 1px; margin-block-start: clamp(56px, 7vw, 96px); background: var(--line); border: 1px solid var(--line); }
.stat { position: relative; background: var(--bg); padding: 32px 28px; }
.stat .cell-sm { position: absolute; top: 28px; inset-inline-end: 28px; width: 14px; height: 16px; }
.stat-num { font-size: clamp(40px, 4vw + 8px, 68px); line-height: 1; }
.stat-lbl { margin-block-start: 12px; color: var(--muted); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }

/* formula line */
.formula {
  font-family: "Chakra Petch", "Changa", sans-serif; font-weight: 600; font-size: clamp(13px, 1.1vw + 6px, 20px);
  letter-spacing: .16em; color: var(--ink-300); padding-block: 22px; margin-block-end: 48px;
  border-block: 1px solid var(--line); text-wrap: balance;
}
[lang="ar"] .formula { font-family: "Changa", sans-serif; letter-spacing: 0; font-size: clamp(16px, 1.2vw + 8px, 23px); }
.formula b { color: var(--amber); margin-inline: .45em; font-weight: 700; }

/* agency cards */
.ag-grid { display: grid; gap: 20px; margin-block-end: 56px; }
@media (min-width: 760px) { .ag-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ag-grid { grid-template-columns: 1.15fr 1.15fr .8fr; } }
.ag-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 3vw, 44px); min-height: 440px; }
.ag-card p:not(.label) { color: var(--muted); }
.ag-card .link-arrow { margin-block-start: auto; align-self: flex-start; }
.ag-card-top { height: 120px; display: flex; align-items: flex-start; margin-block-end: 24px; }
.agency-logo { height: 100%; width: auto; max-width: 70%; object-fit: contain; object-position: left top; }
[dir="rtl"] .agency-logo { object-position: right top; }
.agency-logo.logo-and-q { height: 74px; }
.ag-card:hover::before { background: var(--amber); }
.ag-next { display: grid; place-content: center; justify-items: center; text-align: center; gap: 20px; border: 1px dashed rgba(255,255,255,.22); color: var(--ink-300); }
.next-cell { width: 72px; color: var(--ink-500); }
@media (prefers-reduced-motion: no-preference) {
  .ag-next .next-cell { animation: pulse 3.2s ease-in-out infinite; }
}
@keyframes pulse { 50% { color: var(--amber); transform: scale(1.06); } }

/* ticker */
.disciplines { overflow: hidden; }
.disciplines .split { margin-block-end: clamp(48px, 6vw, 88px); }
.disciplines .btn { margin-block-start: 28px; }
.ticker-wrap { overflow: hidden; direction: ltr; border-block: 1px solid var(--line); }
.ticker { display: flex; width: max-content; direction: ltr; }
.ticker-track li { direction: rtl; unicode-bidi: isolate; }
html[lang="en"] .ticker-track li { direction: ltr; }
.ticker-track { display: flex; flex: none; }
.ticker-track li {
  display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); padding-inline-end: clamp(20px, 3vw, 44px); padding-block: 26px;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 3.4vw + 6px, 60px); white-space: nowrap; color: var(--white);
}
.ticker-track li::after {
  content: ""; width: .32em; height: .37em; background: var(--amber); flex: none;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.ticker-track li:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--ink-400); }
@media (prefers-reduced-motion: no-preference) {
  .js .ticker { animation: ticker 60s linear infinite; }
  html[dir="rtl"].js .ticker { animation-name: tickerRtl; }
  .ticker:hover, .ticker:focus-within { animation-play-state: paused; }
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes tickerRtl { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .ticker { width: auto; direction: inherit; }
  .ticker-track { flex-wrap: wrap; padding-inline: var(--gutter); }
  .ticker-track[aria-hidden="true"] { display: none; }
  .ticker-track li { font-size: clamp(22px, 2.4vw, 36px); padding-block: 10px; }
}

/* why grid */
.why-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.why-item { position: relative; background: var(--bg); padding: clamp(28px, 3vw, 44px); display: grid; gap: 14px; align-content: start; }
.why-item p { color: var(--muted); }
.why-ico { color: var(--amber-700); font-size: 44px; margin-block-end: 18px; }
.s-dark .why-ico { color: var(--amber); }
.why-num { position: absolute; top: clamp(28px, 3vw, 44px); inset-inline-end: clamp(28px, 3vw, 44px); font-family: "Chakra Petch", sans-serif; font-weight: 600; font-size: 14px; color: var(--ink-400); }
@media (min-width: 860px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }

/* work tiles */
.tiles { display: grid; gap: clamp(20px, 2vw, 32px); }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { display: grid; gap: 18px; }
.tile[hidden] { display: none; }
.tile-media { position: relative; aspect-ratio: 4 / 3.2; background: var(--ink-800); display: grid; place-items: center; overflow: hidden; }
.tile-tex { position: absolute; inset: -10%; background: url("../img/texture/honeycomb.webp") center / cover no-repeat; opacity: .9; transition: transform 900ms var(--ease); }
.tile-mark { position: relative; height: 34%; width: auto; max-width: 60%; object-fit: contain; opacity: .22; transition: opacity var(--t) var(--ease); }
.tile-soon {
  position: absolute; inset-inline-start: 16px; bottom: 16px; padding: 6px 12px; background: rgba(21,23,28,.75);
  font-family: var(--f-label); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-200);
}
[lang="ar"] .tile-soon { letter-spacing: 0; font-size: 13px; }
.tile:hover .tile-tex { transform: scale(1.06); }
.tile:hover .tile-mark { opacity: .4; }
.tile-meta { display: grid; gap: 8px; }

/* clients */
.clients-strip { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1000px) { .clients-strip { grid-template-columns: 1fr 2.2fr; } }
.client-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 600px) { .client-row { grid-template-columns: repeat(3, 1fr); } }
.client-slot { background: var(--bg); min-height: 96px; display: grid; place-items: center; padding: 16px; }
.client-slot span { font-family: var(--f-label); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-400); }
[lang="ar"] .client-slot span { letter-spacing: 0; font-size: 14px; }
.client-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.client-grid .client-slot { min-height: 150px; background: var(--white); }
@media (min-width: 720px) { .client-grid { grid-template-columns: repeat(4, 1fr); } }

/* CTA band */
.cta-band { position: relative; overflow: hidden; padding-block: clamp(96px, 12vw, 180px); border-block-start: 1px solid var(--line); }
.cta-in { position: relative; max-width: 980px; text-align: center; display: grid; justify-items: center; }
.cta-in .lead { margin-block-start: 24px; }
.cta-in .btn-row { justify-content: center; }
.cta-cells { position: absolute; inset: 0; pointer-events: none; }
.cta-cells svg { position: absolute; color: rgba(255,255,255,.07); }
.cta-cells .c1 { width: 340px; inset-inline-start: -110px; top: -60px; }
.cta-cells .c2 { width: 220px; inset-inline-end: -40px; bottom: -70px; }
.cta-cells .c3 { width: 26px; inset-inline-end: 14%; top: 26%; fill: var(--amber); }

/* steps */
.steps { display: grid; gap: 28px; position: relative; }
.step { position: relative; display: grid; gap: 12px; align-content: start; }
.step p { color: var(--muted); }
.step-node { position: relative; width: 64px; height: 74px; display: grid; place-items: center; margin-block-end: 10px; }
.cell-step { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--amber); }
.step-num { position: relative; font-family: "Chakra Petch", sans-serif; font-weight: 700; font-size: 18px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(var(--n), 1fr); gap: 32px; }
  .steps::before { content: ""; position: absolute; top: 37px; inset-inline: 32px; height: 1px; background: var(--line); }
  .step-node { background: var(--bg); }
}

/* ---------- who we are ---------- */
.vm { display: grid; gap: 20px; }
@media (min-width: 900px) { .vm { grid-template-columns: 1fr 1fr; } }
.vm-card { padding: clamp(32px, 4vw, 64px); min-height: 340px; display: flex; flex-direction: column; }
.vm-text { font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 1.3vw + 14px, 32px); line-height: 1.3; margin-block-start: auto; text-wrap: pretty; }
[lang="ar"] .vm-text { font-weight: 700; line-height: 1.55; }
.vm-mission { --surface: var(--white); color: var(--ink); --fg: var(--ink); }
.vm-mission .label { color: var(--ink); }
.values { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.value { background: var(--bg); padding: clamp(28px, 3vw, 40px); display: grid; gap: 12px; align-content: start; }
.value p { color: var(--muted); }
.value-hex { position: relative; width: 56px; height: 64px; display: grid; place-items: center; margin-block-end: 12px; font-family: "Chakra Petch", sans-serif; font-weight: 700; font-size: 15px; }
.value-hex svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ink-300); }
.value:first-child .value-hex svg { color: var(--amber); }
@media (min-width: 720px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .values { grid-template-columns: repeat(5, 1fr); } }

/* ---------- hive code ---------- */
.code { position: relative; }
.code-progress {
  position: sticky; top: calc(var(--header-h) + 20px); z-index: 5; display: flex; align-items: center; gap: 12px;
  width: max-content; margin-inline-start: var(--gutter); padding: 8px 14px; background: rgba(21,23,28,.8); backdrop-filter: blur(8px);
  font-family: "Chakra Petch", sans-serif; font-weight: 600; font-size: 13px; color: var(--ink-300);
}
.code-progress .bar { width: 120px; height: 2px; background: var(--ink-700); position: relative; }
.code-progress .bar i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: var(--amber); transition: width var(--t) var(--ease); }
.code-count { color: var(--white); min-width: 2ch; }
.code-item { min-height: 72svh; display: flex; align-items: center; border-block-end: 1px solid var(--line); }
.code-in { padding-block: 64px; }
.code-num { display: flex; align-items: baseline; gap: 10px; font-family: "Chakra Petch", sans-serif; font-weight: 700; color: var(--amber); font-size: 18px; margin-block-end: 28px; }
.code-num .of { color: var(--ink-500); font-weight: 600; font-size: 14px; }
.code-statement { font-size: clamp(36px, 5vw + 8px, 96px); max-width: 16ch; }
[lang="ar"] .code-statement { max-width: 18ch; }
.code-support { margin-block-start: 28px; font-size: clamp(18px, .8vw + 14px, 24px); color: var(--ink-300); max-width: 46ch; }
@media (min-width: 960px) { .code-item { min-height: 92svh; } }
.note { max-width: 980px; }
.note-quote p { font-family: var(--f-display); font-weight: 600; font-size: clamp(24px, 1.8vw + 14px, 40px); line-height: 1.35; text-wrap: pretty; }
[lang="ar"] .note-quote p { font-weight: 700; line-height: 1.6; }
.note-quote p::before { content: "“"; color: var(--amber); }
.note-quote p::after { content: "”"; color: var(--amber); }
[lang="ar"] .note-quote p::before { content: "«"; }
[lang="ar"] .note-quote p::after { content: "»"; }
.note-quote footer { margin-block-start: 32px; display: grid; gap: 4px; }
.note-quote footer strong { font-family: var(--f-display); font-size: 20px; }
.note-quote footer span { color: var(--muted); }

/* ---------- agencies ---------- */
.ag-jumps { display: flex; flex-wrap: wrap; gap: 14px; margin-block-start: 40px; }
.ag-jump { display: grid; place-items: center; width: 200px; height: 112px; padding: 20px; }
.ag-jump img { height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.ag-jump:hover::before { background: var(--amber); }
.agency-head { display: grid; gap: 32px; align-items: center; margin-block-end: clamp(48px, 6vw, 80px); }
.agency-head .lead { margin-block-start: 16px; color: var(--fg); }
.agency-logo-box { display: grid; place-items: center; padding: 40px; aspect-ratio: 1; max-width: 340px; }
.agency-logo-lg { width: 70%; height: auto; max-height: 80%; object-fit: contain; }
.agency-logo-lg.logo-and-q { width: 86%; }
@media (min-width: 900px) { .agency-head { grid-template-columns: 340px 1fr; gap: 64px; } }
.svc-list { display: grid; gap: 0; }
.svc-list li { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding-block: 18px; border-block-end: 1px solid var(--line); }
.svc-list li:first-child { border-block-start: 1px solid var(--line); }
.svc-list .cell-sm { margin-block-start: .5em; }
.svc-list h4 { font-family: var(--f-display); font-weight: 600; font-size: 19px; line-height: 1.3; }
[lang="ar"] .svc-list h4 { font-weight: 700; font-size: 20px; }
.svc-list p { color: var(--muted); margin-block-start: 4px; }
.quote { margin-block-start: clamp(56px, 7vw, 96px); padding-inline-start: clamp(20px, 3vw, 40px); border-inline-start: 3px solid var(--amber); }
.quote p { font-family: var(--f-display); font-weight: 600; font-size: clamp(24px, 2vw + 12px, 44px); line-height: 1.25; max-width: 28ch; }
[lang="ar"] .quote p { font-weight: 700; line-height: 1.5; }
.quote figcaption { margin-block-start: 18px; color: var(--muted); }
.agency .quote + div { margin-block-start: 40px; }
.grow-in { display: grid; gap: 48px; align-items: center; }
.grow-in .lead { margin-block: 20px 32px; }
.grow-cells { position: relative; height: 240px; max-width: 280px; }
.grow-cells svg { position: absolute; }
.grow-cells .g1 { width: 96px; inset-inline-start: 0; top: 70px; }
.grow-cells .g2 { width: 96px; inset-inline-start: 86px; top: 20px; color: var(--ink-400); }
.grow-cells .g3 { width: 96px; inset-inline-start: 86px; top: 122px; color: var(--ink-300); }
@media (prefers-reduced-motion: no-preference) {
  .grow-cells .g2 { animation: pulse 3.2s ease-in-out infinite; }
  .grow-cells .g3 { animation: pulse 3.2s ease-in-out 1.6s infinite; }
}
@media (min-width: 900px) { .grow-in { grid-template-columns: 300px 1fr; gap: 80px; } }

/* ---------- power ---------- */
.comb-wrap { display: grid; place-items: center; }
.comb { width: min(420px, 100%); overflow: visible; }
.comb-c { fill: none; stroke: rgba(255,255,255,.28); stroke-width: 1.5; }
.comb-c.core { fill: var(--amber); stroke: none; }
.js .comb-c { opacity: 0; transform: scale(.6); transform-box: fill-box; transform-origin: center; transition: opacity 600ms var(--ease), transform 700ms var(--ease); transition-delay: calc(var(--d) * 110ms); }
.js .comb-wrap.in .comb-c { opacity: 1; transform: none; }
.powers { display: grid; gap: 20px; }
@media (min-width: 900px) { .powers { grid-template-columns: 1fr 1fr; } }
.power { padding: clamp(32px, 4vw, 56px); display: grid; gap: 16px; align-content: start; min-height: 380px; }
.power p:last-child { color: var(--muted); }
.power-num { font-family: "Chakra Petch", sans-serif; font-weight: 700; color: var(--ink-500); font-size: 15px; }
.power-sub { font-family: var(--f-label); font-weight: 600; letter-spacing: .16em; font-size: 13px; color: var(--ink-300); }
[lang="ar"] .power-sub { letter-spacing: 0; font-size: 16px; }
.power-sub b { color: var(--amber); margin-inline: .35em; }
.power:hover::before { background: var(--amber); }
.means { display: grid; gap: 0; }
.means li { display: flex; gap: 18px; align-items: baseline; padding-block: 22px; border-block-end: 1px solid var(--line); font-family: var(--f-display); font-weight: 600; font-size: clamp(20px, 1vw + 14px, 28px); line-height: 1.3; }
[lang="ar"] .means li { font-weight: 700; }
.means li:first-child { border-block-start: 1px solid var(--line); }
.means .cell-sm { width: 14px; height: 16px; transform: translateY(2px); }

/* ---------- services ---------- */
.svc-head { display: grid; gap: 18px; align-content: start; justify-items: start; }
@media (min-width: 960px) { .svc-head { position: sticky; top: calc(var(--header-h) + 40px); } }
.svc-ico { color: var(--amber); font-size: 56px; }
.svc-num { font-family: "Chakra Petch", sans-serif; font-weight: 600; font-size: 14px; color: var(--ink-400); }
.svc-line { color: var(--fg); }
.svc-list-lg h4 { font-size: clamp(19px, .6vw + 15px, 23px); }
.models { display: grid; gap: 20px; }
@media (min-width: 900px) { .models { grid-template-columns: repeat(3, 1fr); } }
.model { padding: clamp(28px, 3vw, 44px); display: grid; gap: 14px; align-content: start; min-height: 280px; }
.model p { color: var(--muted); }
.model-num { font-family: "Chakra Petch", sans-serif; font-weight: 700; color: var(--amber-700); }
.model:hover::before { background: var(--amber); }
.faq { border-block-start: 1px solid var(--line); }
.faq-item { border-block-end: 1px solid var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 24px; cursor: pointer; list-style: none;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(18px, .6vw + 15px, 22px); line-height: 1.35;
}
[lang="ar"] .faq-item summary { font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { position: relative; width: 16px; height: 16px; flex: none; }
.faq-item summary i::before, .faq-item summary i::after { content: ""; position: absolute; inset: 7px 0 auto; height: 2px; background: var(--amber-700); transition: transform var(--t-fast) var(--ease); }
.faq-item summary i::after { transform: rotate(90deg); }
.faq-item[open] summary i::after { transform: rotate(0); }
.faq-item summary:hover { color: var(--amber-700); }
.faq-a { padding-block-end: 24px; color: var(--muted); max-width: 62ch; }

/* ---------- forms ---------- */
.form { --surface: var(--ink-50); padding: clamp(28px, 4vw, 56px); background: var(--surface); display: grid; gap: 24px; align-content: start; color: var(--ink); }
.s-dark .form { --surface: var(--white); --line: var(--ink-200); --muted: var(--ink-600); --fg: var(--ink); }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field.full { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-weight: 500; font-size: 15px; color: var(--ink); }
[lang="ar"] .field label { font-size: 16px; }
.field .opt { color: var(--ink-500); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; background: var(--white); color: var(--ink);
  border: 1px solid var(--ink-300); border-radius: 0; font-size: 16px; transition: border-color var(--t-fast), box-shadow var(--t-fast);
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input[type="file"] { padding: 12px; font-size: 15px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-500); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(232,160,19,.45); }
.select { position: relative; }
.select::after { content: ""; position: absolute; inset-inline-end: 18px; top: 50%; width: 8px; height: 8px; border-inline-end: 2px solid var(--ink); border-block-end: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select { padding-inline-end: 44px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.err { color: #B4232A; font-size: 14px; min-height: 0; }
.err:empty { display: none; }
.err::before { content: "! "; font-weight: 700; }
.form-summary { padding: 14px 18px; border-inline-start: 3px solid var(--danger); background: #FDECEC; color: #8A1A1F; font-weight: 500; }
.form-success { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: var(--amber-50); border-inline-start: 3px solid var(--amber); }
.form-success .cell { width: 18px; height: 21px; flex: none; margin-block-start: 4px; }
.form-success:focus { outline: none; }
.form.is-done .form-grid, .form.is-done .consent, .form.is-done > .btn { display: none; }
.form-note:empty { display: none; }
.consent a { color: var(--amber-700); }
.form > .btn { justify-self: start; }

/* contact */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: start; } }
.contact-side { display: grid; gap: 28px; align-content: start; }
.direct { display: grid; }
.direct li { display: flex; gap: 16px; align-items: center; padding-block: 16px; border-block-end: 1px solid var(--line); }
.direct li:first-child { border-block-start: 1px solid var(--line); }
.direct a { text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.direct a:hover { color: var(--amber-700); text-decoration: underline; }
.d-ico { display: grid; place-items: center; width: 44px; height: 44px; flex: none; background: var(--ink); color: var(--amber); font-size: 22px; clip-path: var(--cut-path-sm); }
.d-lbl { font-size: 13px; color: var(--muted); font-family: var(--f-label); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
[lang="ar"] .d-lbl { letter-spacing: 0; font-size: 15px; }
.info-card { padding: 28px; display: grid; gap: 18px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; }
.socials-ink a { color: var(--ink); }

/* join */
.empty-roles { display: flex; gap: 20px; align-items: flex-start; padding: 28px; margin-block-end: 24px; color: var(--ink-300); }
.empty-roles .next-cell { width: 44px; flex: none; color: var(--amber); }

/* legal */
.legal { max-width: 760px; }
.legal section { margin-block-start: 40px; }
.legal h2 { margin-block-end: 10px; color: var(--ink); }

/* 404 */
.nf { position: relative; min-height: 100svh; display: flex; align-items: center; padding-block: calc(var(--header-h) + 48px) 80px; overflow: hidden; }
.nf-in { position: relative; display: grid; justify-items: start; gap: 22px; }
.nf-num { display: flex; align-items: center; gap: .08em; font-family: "Chakra Petch", sans-serif; font-weight: 700; font-size: clamp(110px, 18vw, 260px); line-height: .9; }
.nf-cell { width: .62em; color: var(--amber); }
.nf .btn-row { margin-block-start: 12px; }

/* ---------- footer ---------- */
.site-footer { padding-block: clamp(72px, 9vw, 120px) 32px; border-block-start: 1px solid var(--line); }
.foot-top { display: grid; gap: 48px; margin-block-end: 56px; }
@media (min-width: 960px) { .foot-top { grid-template-columns: 1.2fr 1fr; gap: 96px; } }
.foot-logo { height: 76px; width: auto; margin-block-end: 28px; }
.foot-statement p { font-family: var(--f-display); font-weight: 600; font-size: clamp(20px, 1vw + 14px, 28px); line-height: 1.35; max-width: 30ch; }
[lang="ar"] .foot-statement p { font-weight: 700; line-height: 1.6; }
.newsletter { display: grid; gap: 12px; align-content: start; }
.nl-row { display: flex; gap: 10px; margin-block-start: 10px; flex-wrap: wrap; }
.nl-row input { flex: 1 1 220px; min-height: 52px; padding: 12px 16px; background: transparent; border: 1px solid rgba(255,255,255,.25); color: var(--white); font-size: 16px; border-radius: 0; }
.nl-row input::placeholder { color: var(--ink-400); }
.nl-row input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(232,160,19,.3); }
.nl-msg { font-size: 15px; color: var(--amber); min-height: 1.5em; }
.nl-msg.is-error { color: #FF8A8E; }
.foot-cols { display: grid; gap: 40px; padding-block: 56px; }
@media (min-width: 640px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .foot-cols { grid-template-columns: 1.5fr 1fr 1.3fr 1fr; } }
.foot-h { font-family: var(--f-label); font-weight: 600; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-400); margin-block-end: 18px; }
[lang="ar"] .foot-h { letter-spacing: 0; font-size: 15px; }
.foot-list { display: grid; gap: 4px; }
.foot-list.cols-2 { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.foot-list a, .foot-list li { color: var(--ink-200); text-decoration: none; display: inline-block; padding-block: 6px; overflow-wrap: anywhere; }
.foot-list a:hover { color: var(--amber); }
.site-footer .socials { margin-block-end: 12px; }
.foot-bottom { padding-inline-end: 72px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding-block-start: 28px; border-block-start: 1px solid var(--line); }
.foot-bottom a { color: var(--ink-300); }
.foot-bottom a:hover { color: var(--amber); }
.signoff { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
[lang="ar"] .signoff { letter-spacing: 0; font-size: 16px; }
.to-top { text-decoration: none; padding: 10px 0; }

/* cookie + whatsapp */
.cookie {
  position: fixed; z-index: 120; inset-inline: 16px; bottom: 16px; max-width: 560px; margin-inline-start: auto;
  display: grid; gap: 14px; padding: 20px 22px; background: var(--white); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.35);
  --bg: var(--white); --fg: var(--ink); --line: var(--ink-200);
}
.cookie[hidden] { display: none; }
.cookie p { font-size: 15px; }
.cookie a { color: var(--amber-700); }
.cookie-btns { display: flex; gap: 10px; justify-content: flex-end; }
.wa-float {
  position: fixed; z-index: 80; inset-inline-end: 20px; bottom: 20px; width: 56px; height: 56px; display: grid; place-items: center;
  background: var(--amber); color: var(--ink); clip-path: var(--cut-path-sm); transition: transform var(--t-fast) var(--ease), background-color var(--t-fast);
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { background: var(--amber-400); transform: translateY(-2px); }
body.cookie-open .wa-float { bottom: calc(20px + var(--cookie-h, 0px)); }

/* ---------- reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--t) var(--ease), transform calc(var(--t) + 150ms) var(--ease); transition-delay: calc(var(--d, 0) * 60ms); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 639px) {
  :root { --header-h: 68px; --cut: 12px; }
  .brand img { height: 40px; }
  [lang="ar"] .brand img { height: 44px; }
  .menu-btn-label { display: none; }
  .menu-btn { width: 44px; justify-content: center; padding: 0; }
  .btn-row .btn { flex: 1 1 100%; }
  .hero { padding-block-end: 140px; }
  .ag-card { min-height: 0; }
  .ag-next { min-height: 240px; }
  .foot-list.cols-2 { grid-template-columns: 1fr; }
  .code-progress .bar { width: 72px; }
  .hero-tex, .menu-tex { background-size: 230% auto; background-position: 85% 100%; opacity: .7; }
}

@media print {
  .site-header, .menu-panel, .cookie, .wa-float, .scroll-cue, .hero-tex { display: none !important; }
  body { background: #fff; color: #000; }
}

/* =====================================================================
   Photos + motion layer (GSAP / Lenis)
   ===================================================================== */

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* media frame: image is taller than the frame so it can drift (parallax) */
.media { position: relative; overflow: hidden; margin: 0; background: var(--ink-800); aspect-ratio: var(--r, 4 / 3); isolation: isolate; }
.media img { position: absolute; inset-inline: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.media[data-parallax] img { top: -9%; height: 118%; will-change: transform; }
.media-wide { --r: 21 / 9; margin-block-start: clamp(56px, 7vw, 96px); }
.media-portrait { --r: 4 / 5; }
@media (max-width: 719px) { .media-wide { --r: 4 / 3; } }

/* home hero photo */
.hero-photo { position: absolute; inset: 0; overflow: hidden; }
.hero-photo .media { position: absolute; inset: 0; aspect-ratio: auto; background: var(--ink); }
.hero-photo img { transform-origin: 70% 40%; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(21,23,28,.92) 30%, rgba(21,23,28,.55) 62%, rgba(21,23,28,.35) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(21,23,28,0) 35%);
}
[dir="rtl"] .hero-shade {
  background:
    linear-gradient(270deg, var(--ink) 0%, rgba(21,23,28,.92) 30%, rgba(21,23,28,.55) 62%, rgba(21,23,28,.35) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(21,23,28,0) 35%);
}
@media (max-width: 719px) { .hero-shade, [dir="rtl"] .hero-shade { background: linear-gradient(0deg, var(--ink) 10%, rgba(21,23,28,.78) 60%, rgba(21,23,28,.6) 100%); } }
.hero .hero-tex { opacity: .55; }

/* hero strip under a page hero */
.hero-strip { padding-block-end: clamp(24px, 4vw, 48px); }
.hero-strip .media-wide { margin-block-start: 0; }

/* agency cards on home */
.ag-card-media { position: relative; margin-block-end: 20px; }
.ag-card-media .media { --r: 16 / 10; }
.ag-card-media .agency-logo { position: absolute; inset-inline-start: 18px; bottom: 16px; height: 64px; max-width: 55%; z-index: 2; filter: drop-shadow(0 2px 10px rgba(0,0,0,.4)); }
.ag-card-media .agency-logo.logo-and-q { height: 44px; }
.ag-card-media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(21,23,28,.85), rgba(21,23,28,0) 60%); clip-path: var(--cut-path); }
.ag-card .media img, .tile .media img { transition: scale 900ms var(--ease); }
.ag-card:hover .media img, .tile:hover .media img { scale: 1.05; }

/* work tiles */
.tile-media { position: relative; aspect-ratio: auto; background: none; display: block; place-items: normal; overflow: visible; }
.tile-photo { --r: 4 / 3.2; }
.tile-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(21,23,28,.75), rgba(21,23,28,0) 55%); clip-path: var(--cut-path); }
.tile-media .tile-mark { position: absolute; inset-inline-end: 18px; top: 18px; height: 34px; max-width: 40%; opacity: .9; }
.tile-soon { z-index: 2; }
.tile:hover .tile-mark { opacity: 1; }

/* who we are */
.story-photo { margin-block-start: 40px; max-width: 460px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-block-start: 56px; align-items: start; }
.pair-offset { margin-block-start: 64px; }
@media (max-width: 959px) { .story-photo { max-width: none; --r: 16 / 10; } }

/* mosaic (agencies, join) */
.mosaic { display: grid; gap: 14px; margin-block-end: clamp(48px, 6vw, 80px); grid-template-columns: 1fr 1fr; }
.mosaic .m0 { grid-column: 1 / -1; --r: 16 / 9; }
.mosaic .m1, .mosaic .m2 { --r: 1 / 1; }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; height: clamp(420px, 42vw, 620px); }
  .mosaic .m0 { grid-column: 1; grid-row: 1 / 3; aspect-ratio: auto; }
  .mosaic .m1, .mosaic .m2 { aspect-ratio: auto; }
}
.mosaic-join { margin-block: clamp(48px, 6vw, 80px) 0; }

/* services */
.svc-photo { --r: 16 / 10; width: 100%; margin-block-start: 12px; }

/* contact */
.info-photo { --r: 16 / 9; margin: -28px -28px 4px; width: calc(100% + 56px); }

/* full-bleed photo band */
.band { position: relative; min-height: clamp(460px, 80svh, 820px); display: flex; align-items: flex-end; overflow: hidden; padding-block: clamp(64px, 8vw, 120px); }
.band-media { position: absolute; inset: -12% 0; }
.band-media .media { position: absolute; inset: 0; aspect-ratio: auto; }
.band-shade { position: absolute; inset: 0; background: linear-gradient(0deg, var(--ink) 0%, rgba(21,23,28,.35) 55%, rgba(21,23,28,.2) 100%); }
.band-in { position: relative; }
.band-text { max-width: 14ch; }
.band-sub { margin-block-start: 20px; color: var(--ink-200); }

/* emphasis bar animatable via background-size */
[dir="rtl"] .hl { background-position: 100% 100%; }
[dir="rtl"][lang="ar"] .hl { background-position: 100% 96%; }

/* split words (GSAP SplitText) */
.split-word { display: inline-block; will-change: transform; }

/* magnetic buttons need transform room */
.btn.is-magnetic { will-change: transform; }

/* when GSAP drives the ticker, stop the CSS loop */
html.has-gsap .ticker { animation: none !important; }

/* photo curtain (GSAP animates --curtain 1 -> 0) */
.media::after { content: ""; position: absolute; inset: 0; z-index: 3; background: var(--bg, var(--ink)); transform-origin: 50% 0; transform: scaleY(var(--curtain, 0)); pointer-events: none; }
/* process line draws with scroll (GSAP animates --p) */
@media (min-width: 900px) {
  .steps::before { transform: scaleX(var(--p, 1)); transform-origin: 0 50%; background: linear-gradient(90deg, var(--amber), var(--line) 40%); }
  [dir="rtl"] .steps::before { transform-origin: 100% 50%; background: linear-gradient(270deg, var(--amber), var(--line) 40%); }
}
.filters { margin-block: 0 40px; }

/* ---------- brand-compliance pass ---------- */
/* Chakra Petch is for headlines/labels only: paragraph-length statements use Changa */
.note-quote p, .vm-text, .foot-statement p { font-family: var(--f-body); font-weight: 500; letter-spacing: 0; }
[lang="ar"] .note-quote p, [lang="ar"] .vm-text, [lang="ar"] .foot-statement p { font-weight: 600; }
/* WhatsApp shortcut: secondary (white) so amber stays the one main action */
.wa-float { background: var(--white); color: var(--ink); }
.wa-float:hover { background: var(--amber); }
/* agency cards: logo sits on its own row, never on a busy photo */
.ag-card-media::after { display: none; }
.ag-card-logo { height: 72px; display: flex; align-items: center; margin-block-end: 8px; }
.ag-card-logo .agency-logo { height: 100%; max-width: 60%; }
.ag-card-logo .agency-logo.logo-and-q { height: 52px; }

/* ---------- work tiles (linked) ---------- */
.tile-link { display: grid; gap: 18px; color: inherit; text-decoration: none; }
.tile-link:focus-visible { outline-offset: 6px; }
.tile-cta { margin-block-start: 6px; justify-self: start; border-block-end-color: transparent; }
.tile-link:hover .tile-cta { border-block-end-color: var(--amber); }
.tile-link:hover .tile-cta .ico-arrow { transform: translateX(4px); }
[dir="rtl"] .tile-link:hover .tile-cta .ico-arrow { transform: scaleX(-1) translateX(4px); }
.tile-link:hover .media img { scale: 1.05; }
.tile-link:hover h3 { color: var(--amber); }
.tile h3 { transition: color var(--t-fast); }
.work-empty { display: flex; align-items: center; gap: 12px; padding-block: 48px; color: var(--muted); }
.work-empty[hidden] { display: none; }

/* ---------- client logo wall ---------- */
.client-slot { min-height: 120px; }
.client-logo { height: 56px; width: auto; max-width: 70%; object-fit: contain; opacity: .8; transition: opacity var(--t-fast); }
.client-logo.logo-and-q { height: 40px; }
.client-slot:hover .client-logo { opacity: 1; }
.client-grid .client-logo { height: 72px; }
.client-grid .client-logo.logo-and-q { height: 50px; }

/* ---------- case study ---------- */
.case-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; margin: 40px 0 0; max-width: 760px; }
.case-meta div { border-block-start: 1px solid var(--line); padding-block-start: 12px; }
.case-meta dt { font-family: var(--f-label); font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-400); }
[lang="ar"] .case-meta dt { letter-spacing: 0; font-size: 14px; }
.case-meta dd { margin: 4px 0 0; font-weight: 500; }
@media (min-width: 760px) { .case-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.case-p { font-size: clamp(19px, .8vw + 14px, 24px); line-height: 1.55; color: var(--fg); max-width: 40ch; }
.stats-4 { margin-block-start: clamp(56px, 7vw, 96px); }
@media (min-width: 720px) { .stats-4 { grid-template-columns: repeat(4, 1fr); } }
.case-img { margin-block-start: clamp(40px, 5vw, 64px); }
.case-sec .split-end { margin-block-end: 0; }
.case-back { margin-block-start: 56px; }

.tile-link .tile-photo { --r: 16 / 10 !important; }
.client-row .client-logo { height: 66px; }
.client-row .client-logo.logo-and-q { height: 48px; }
.tile-link .media { outline: 1px solid var(--line); outline-offset: -1px; }
/* WhatsApp shortcut: white tile with an Ink rim, visible on dark and light sections */
.wa-float { background: var(--ink-600); color: var(--ink); isolation: isolate; }
.wa-float::before { content: ""; position: absolute; inset: 2px; z-index: -1; background: var(--white); clip-path: var(--cut-path-sm); transition: background-color var(--t-fast); }
.wa-float:hover { background: var(--amber); }
.wa-float:hover::before { background: var(--amber); }
.wa-float svg { position: relative; }
/* hero photo: keep the crew in view, mirror in Arabic so faces sit opposite the text */
.hero-photo img { object-position: 72% 40%; }
[dir="rtl"] .hero-photo .media { transform: scaleX(-1); }
@media (min-width: 900px) { .hero-photo .media { inset-inline-start: 14%; } }

/* ---------- human check ---------- */
.human { display: grid; gap: 8px; }
.human[hidden] { display: none; }
.human-box {
  display: flex; align-items: center; gap: 14px; width: 100%; max-width: 440px; min-height: 60px; padding: 12px 16px;
  background: var(--white); color: var(--ink); border: 1px solid var(--ink-300); text-align: start; cursor: pointer;
  font-weight: 500; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.human-box:hover { border-color: var(--ink-500); }
.human-box:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(232,160,19,.45); }
.human-tick { position: relative; display: grid; place-items: center; width: 26px; height: 26px; flex: none; border: 2px solid var(--ink-400); background: var(--white); transition: background-color var(--t-fast), border-color var(--t-fast); }
.human-tick svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: square; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 320ms var(--ease); }
.human-label { flex: 1; }
.human-status { font-size: 13px; color: var(--ink-600); }
.human[data-state="busy"] .human-tick { border-color: var(--amber); border-top-color: transparent; border-radius: 50%; animation: humanSpin .8s linear infinite; }
.human[data-state="ok"] .human-box { border-color: var(--ink); cursor: default; }
.human[data-state="ok"] .human-tick { background: var(--amber); border-color: var(--amber); }
.human[data-state="ok"] .human-tick svg { stroke-dashoffset: 0; }
.human[data-state="ok"] .human-status { color: var(--amber-700); font-weight: 600; }
.human[data-state="fail"] .human-status { color: #B4232A; }
.human.has-error .human-box { border-color: var(--danger); }
.human-note { display: flex; align-items: center; gap: 8px; color: var(--ink-600); }
@keyframes humanSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .human[data-state="busy"] .human-tick { animation: none; border-style: dotted; } }

/* band with the photo pushed away from the headline (subject stays clear of the text) */
@media (min-width: 900px) {
  .band-offset .band-media .media { inset-inline-start: 26%; }
  .band-offset .band-shade {
    background:
      linear-gradient(90deg, var(--ink) 0%, var(--ink) 24%, rgba(21,23,28,.55) 34%, rgba(21,23,28,0) 48%),
      linear-gradient(0deg, var(--ink) 0%, rgba(21,23,28,.3) 45%, rgba(21,23,28,0) 100%);
  }
  [dir="rtl"] .band-offset .band-shade {
    background:
      linear-gradient(270deg, var(--ink) 0%, var(--ink) 24%, rgba(21,23,28,.55) 34%, rgba(21,23,28,0) 48%),
      linear-gradient(0deg, var(--ink) 0%, rgba(21,23,28,.3) 45%, rgba(21,23,28,0) 100%);
  }
}
@media (min-width: 900px) {
  /* fade the photo's own leading edge into Ink so there is no visible seam */
  .band-offset .band-media .media {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
  }
  [dir="rtl"] .band-offset .band-media .media {
    -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 34%);
            mask-image: linear-gradient(270deg, transparent 0%, #000 34%);
  }
}

/* ---------- home hero: brand honeycomb background, one per language ---------- */
/* EN art keeps the pattern on the right, AR art on the left: text always sits on the plain side */
.hero-bg .media { inset-inline-start: 0 !important; transform: none !important; }
.hero-bg img { object-position: 78% 50%; transform-origin: 78% 48%; }
[dir="rtl"] .hero-bg img { object-position: 22% 50%; transform-origin: 22% 48%; }
.hero-bg + .hero-shade { background: linear-gradient(0deg, var(--ink) 0%, rgba(21,23,28,0) 28%); }
[dir="rtl"] .hero-bg + .hero-shade { background: linear-gradient(0deg, var(--ink) 0%, rgba(21,23,28,0) 28%); }
@media (max-width: 719px) {
  /* on phones the text covers the full width, so calm the pattern behind it */
  .hero-bg + .hero-shade, [dir="rtl"] .hero-bg + .hero-shade { background: linear-gradient(0deg, var(--ink) 15%, rgba(21,23,28,.72) 55%, rgba(21,23,28,.35) 100%); }
}
/* desktop/tablet: show the whole artwork width so the plain side stays under the text;
   top and bottom edges fade into Ink (the artwork's own background) */
@media (min-width: 720px) {
  .hero-bg img, [dir="rtl"] .hero-bg img {
    object-fit: contain; object-position: 50% 50%; transform-origin: 50% 50%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  }
  .hero-bg .media { background: var(--ink); }
}
@media (min-width: 720px) {
  .hero-bg + .hero-shade {
    background:
      linear-gradient(90deg, rgba(21,23,28,.8) 0%, rgba(21,23,28,.8) 50%, rgba(21,23,28,0) 72%),
      linear-gradient(0deg, var(--ink) 0%, rgba(21,23,28,0) 28%);
  }
  [dir="rtl"] .hero-bg + .hero-shade {
    background:
      linear-gradient(270deg, rgba(21,23,28,.8) 0%, rgba(21,23,28,.8) 50%, rgba(21,23,28,0) 72%),
      linear-gradient(0deg, var(--ink) 0%, rgba(21,23,28,0) 28%);
  }
}

/* ---------- home hero artwork (three shapes per language, picked by screen shape) ---------- */
/* The art keeps the text side plain; show it full-bleed and keep the amber dots in view when cropped. */
.hero-bg.hero-art img, [dir="rtl"] .hero-bg.hero-art img {
  object-fit: cover; -webkit-mask-image: none; mask-image: none;
}
.hero-bg.hero-art img { object-position: 79% 49%; transform-origin: 79% 49%; }
[dir="rtl"] .hero-bg.hero-art img { object-position: 21% 49%; transform-origin: 21% 49%; }
@media (min-width: 720px) {
  .hero-bg.hero-art + .hero-shade, [dir="rtl"] .hero-bg.hero-art + .hero-shade {
    background: linear-gradient(0deg, var(--ink) 0%, rgba(21,23,28,0) 22%);
  }
}
/* portrait tablets: the text spans the width, so calm the pattern behind it (phones already do) */
@media (min-width: 720px) and (orientation: portrait) {
  .hero-bg.hero-art + .hero-shade, [dir="rtl"] .hero-bg.hero-art + .hero-shade {
    background: linear-gradient(0deg, var(--ink) 15%, rgba(21,23,28,.7) 55%, rgba(21,23,28,.35) 100%);
  }
}

/* ---------- nav dropdown (e.g. Who We Are -> The Hive Code, The Power of the Hive) ---------- */
.main-nav .has-sub { position: relative; display: flex; align-items: center; }
.main-nav .has-sub > a { padding-inline-end: 4px; }
.sub-toggle {
  display: grid; place-items: center; width: 28px; height: 44px; padding: 0; background: none; border: 0;
  color: var(--ink-300); cursor: pointer; transition: color var(--t-fast);
}
.sub-toggle svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform var(--t-fast) var(--ease); }
.has-sub:hover .sub-toggle, .sub-toggle:focus-visible { color: var(--white); }
.has-sub.is-open .sub-toggle svg, .has-sub:hover .sub-toggle svg { transform: rotate(180deg); }
.main-nav .has-sub.is-active > a { color: var(--white); }
.main-nav .has-sub.is-active > a .nav-cell { opacity: 1; transform: scale(1); }
.sub-menu {
  position: absolute; top: 100%; inset-inline-start: 0; z-index: 5; min-width: 270px; padding: 8px;
  display: grid; gap: 2px; background: rgba(21, 23, 28, .98); border: 1px solid rgba(255,255,255,.12);
  clip-path: var(--cut-path-sm);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility 0s linear var(--t-fast);
}
.sub-menu::before { content: ""; position: absolute; inset-inline: 0; bottom: 100%; height: 10px; } /* hover bridge */
.has-sub:hover > .sub-menu, .has-sub.is-open > .sub-menu {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.main-nav .sub-menu a {
  display: flex; width: 100%; padding: 12px 14px; min-height: 44px; color: var(--ink-200);
  border-inline-start: 2px solid transparent; text-transform: uppercase; letter-spacing: .1em; font-size: 13px;
}
[lang="ar"] .main-nav .sub-menu a { text-transform: none; letter-spacing: 0; font-size: 16px; }
.main-nav .sub-menu a:hover { color: var(--white); background: rgba(255,255,255,.05); }
.main-nav .sub-menu a[aria-current="page"] { color: var(--white); border-inline-start-color: var(--amber); }
@media (prefers-reduced-motion: reduce) { .sub-menu { transition: none; transform: none; } }
.main-nav .sub-menu { display: grid; grid-auto-flow: row; gap: 2px; }
.main-nav .sub-menu a { white-space: nowrap; }
