/* ==========================================================================
   AlMadhoob Holding W.L.L — website prototype, v4
   Design system: "Night teal, warm cream, gold glow" (inspired by wearestokt.com)
   - Dark sections with a warm gold radial glow; warm cream content sections
   - Floating glass header, bracketed mono tags, small mono buttons with a triangle
   - Rounded dark cards, bento grid, sticky stacking sector cards, milestone table
   - Logical properties throughout, so one file serves LTR and RTL
   ========================================================================== */

@font-face {
  font-family: "HT Moshreq";
  src: url("../fonts/ht-moshreq-pro-vf.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Colour */
  --night: #0B1A1E;          /* near-black brand teal: dark sections */
  --night-2: #112529;        /* dark cards */
  --night-3: #1A3237;        /* dark hover */
  --teal: #133E4A;           /* brand teal */
  --cream: #F4F0E8;          /* warm cream page */
  --cream-2: #E8E2D6;        /* cream borders, quiet fills */
  --paper: #FFFFFF;
  --gold: #99893F;           /* brand gold: accents, large type */
  --gold-ink: #6E6128;       /* gold for small text on cream (AA) */
  --gold-light: #CDBD78;     /* gold on dark (AA) */
  --on-dark: #EEEBE4;
  --on-dark-mute: #A3B0B1;   /* AA on --night */
  --ink: #0B1A1E;
  --ink-mute: #56615F;       /* AA on --cream */
  --line: rgba(11, 26, 30, .12);
  --line-dark: rgba(255, 255, 255, .1);
  --error: #B42318;

  /* Type */
  --font-sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-label: var(--font-mono);
  --fs-mono: .75rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.0625rem, 1.25vw, 1.1875rem);
  --fs-h3: clamp(1.375rem, 2vw, 1.875rem);
  --fs-h2: clamp(2rem, 4.2vw, 3.75rem);
  --fs-hero: clamp(2.75rem, 7vw, 6.75rem);
  --track: -.035em;

  /* Shape + layout */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --wrap: 1440px;
  --gutter: clamp(16px, 2.6vw, 40px);
  --section: clamp(80px, 10vw, 144px);
  --header-top: clamp(10px, 1.4vw, 18px);
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

html[lang="ar"] {
  --font-sans: "HT Moshreq", "Geeza Pro", "Noto Sans Arabic", sans-serif;
  --font-label: "HT Moshreq", "Geeza Pro", sans-serif;
  --fs-mono: .875rem;
  --track: 0;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--header-top) + 24px); overflow-x: clip; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-sans); font-size: var(--fs-body); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
html[lang="ar"] body { line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, fieldset, legend { margin: 0; padding: 0; }
h1, h2, h3 { font-weight: 400; letter-spacing: var(--track); }
html[lang="ar"] :is(h1, h2, h3) { font-weight: 600; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }
p { max-width: 68ch; }
::selection { background: var(--gold-light); color: var(--night); }

:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .dark-glow :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .card-dark :focus-visible, .ticker-band :focus-visible { outline-color: var(--gold-light); }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -80px; z-index: 100; background: var(--night); color: var(--on-dark); padding: 12px 18px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type helpers ---------- */
.mono { font-family: var(--font-label); font-size: var(--fs-mono); letter-spacing: -.01em; text-transform: uppercase; line-height: 1.5; }
html[lang="ar"] .mono { text-transform: none; letter-spacing: 0; font-weight: 500; }
.muted { color: var(--ink-mute); }
.dark .muted, .dark-glow .muted, .card-dark .muted, .site-footer .muted { color: var(--on-dark-mute); }
.h2 { font-size: var(--fs-h2); line-height: 1.04; max-width: 20ch; }
.h3 { font-size: var(--fs-h3); line-height: 1.15; }
html[lang="ar"] .h2 { line-height: 1.3; }
.ast { color: var(--gold); margin-inline-start: .04em; }
.dark .ast, .dark-glow .ast, .ticker-band .ast { color: var(--gold-light); }
.ast-note { color: var(--gold-ink); margin-block-start: 10px; }
.intro { font-size: var(--fs-lead); color: var(--ink-mute); max-width: 52ch; margin-block-start: 24px; }
.dark .intro { color: var(--on-dark-mute); }
.lead { font-size: var(--fs-lead); color: var(--on-dark-mute); max-width: 44ch; }

/* Bracketed tag: ( OUR SECTORS ) with a small down arrow */
.tag { display: inline-flex; align-items: center; gap: 10px; margin-block-end: 18px; font-family: var(--font-label); font-size: var(--fs-mono); text-transform: uppercase; color: var(--ink-mute); line-height: 1.5; max-width: none; }
html[lang="ar"] .tag { text-transform: none; font-weight: 500; }
.tag span::before { content: "( "; }
.tag span::after { content: " )"; }
.tag-arrow { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; order: 2; }
.dark .tag, .dark-glow .tag, .card-dark .tag, .ticker-band .tag { color: var(--on-dark-mute); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: var(--r-sm);
  font-family: var(--font-label); font-size: var(--fs-mono); text-transform: uppercase; letter-spacing: -.01em; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s, transform .3s var(--ease);
}
html[lang="ar"] .btn { text-transform: none; font-weight: 500; }
.tri { width: 8px; height: 8px; fill: currentColor; flex: none; transition: transform .3s var(--ease); }
[dir="rtl"] .tri:not(.up) { transform: scaleX(-1); }
.btn:hover .tri:not(.up) { transform: translateX(3px); }
[dir="rtl"] .btn:hover .tri:not(.up) { transform: scaleX(-1) translateX(3px); }
.btn-light { background: var(--on-dark); color: var(--night); }
.btn-light:hover { background: var(--gold-light); }
.btn-dark { background: var(--night); color: var(--on-dark); }
.btn-dark:hover { background: var(--teal); }
.btn-ghost { border-color: var(--line-dark); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--on-dark); }
.btn-ghost-dark { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost-dark:hover { border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 32px; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 10px; border-radius: var(--r-sm); border: 1px solid var(--line-dark); font-size: .875rem; text-decoration: none; }
.chip-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.chip-btn:hover { border-color: var(--on-dark); }
html[lang="en"] .lang-switch { font-family: "HT Moshreq", sans-serif; }
html[lang="ar"] .lang-switch { font-family: "Inter Tight", sans-serif; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink);
  font-size: .9375rem; text-decoration: none; transition: background-color .25s, color .25s, border-color .25s;
}
.pill:hover { border-color: var(--ink); }
.pill[aria-pressed="true"], .pill[aria-current], .pill-check:has(input:checked) { background: var(--night); color: var(--on-dark); border-color: var(--night); }
.pill-check { cursor: pointer; user-select: none; }
.pill-check input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pill-check svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; transition: transform .3s var(--ease); }
.pill-check:has(input:checked) svg { transform: rotate(45deg); }
.pill-check:has(input:focus-visible) { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.mini-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; background: rgba(255, 255, 255, .12); color: var(--on-dark); font-size: .8125rem; text-decoration: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.mini-tag span { color: var(--on-dark-mute); font-family: var(--font-mono); font-size: .75rem; }
a.mini-tag:hover { background: rgba(255, 255, 255, .24); }

/* ---------- Surfaces ---------- */
.section { padding-block: var(--section); }
.dark { background: var(--night); color: var(--on-dark); }
.dark-glow {
  position: relative; isolation: isolate; overflow: hidden; color: var(--on-dark);
  background:
    radial-gradient(70% 80% at 78% 105%, rgba(205, 189, 120, .55) 0%, rgba(138, 90, 34, .35) 30%, rgba(11, 26, 30, 0) 65%),
    radial-gradient(60% 60% at 15% 0%, rgba(19, 62, 74, .7) 0%, rgba(11, 26, 30, 0) 70%),
    var(--night);
}
[dir="rtl"] .dark-glow {
  background:
    radial-gradient(70% 80% at 22% 105%, rgba(205, 189, 120, .55) 0%, rgba(138, 90, 34, .35) 30%, rgba(11, 26, 30, 0) 65%),
    radial-gradient(60% 60% at 85% 0%, rgba(19, 62, 74, .7) 0%, rgba(11, 26, 30, 0) 70%),
    var(--night);
}
.dark-glow::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .25; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); mix-blend-mode: overlay; }
.card-dark { background: var(--night-2); color: var(--on-dark); border: 1px solid var(--line-dark); border-radius: var(--r); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-block-end: clamp(32px, 5vw, 64px); }
.center-head { display: grid; justify-items: center; text-align: center; margin-block-end: clamp(32px, 5vw, 64px); }
.center-head .h2, .center-head .intro { margin-inline: auto; }
.center-foot { display: flex; justify-content: center; max-width: none; margin-block-start: 40px; }
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.split .intro { margin: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.card-grid { display: grid; gap: 12px; margin-block-start: clamp(32px, 5vw, 64px); }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .card-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .card-grid.four, .card-grid.two { grid-template-columns: 1fr; } }

/* ---------- Floating header ---------- */
.site-header { position: fixed; inset-block-start: var(--header-top); inset-inline: var(--gutter); z-index: 60; }
.header-bar {
  height: var(--header-h); display: flex; align-items: center; gap: 20px; padding-inline: 18px 10px;
  background: rgba(11, 26, 30, .72); color: var(--on-dark); border: 1px solid var(--line-dark); border-radius: var(--r);
  backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px);
  transition: transform .5s var(--ease);
}
.site-header.is-hidden .header-bar { transform: translateY(calc(-100% - var(--header-top) - 4px)); }
.brand { flex: none; }
.brand img { width: clamp(140px, 12vw, 172px); }
.main-nav { margin-inline: auto; }
.main-nav ul { display: flex; gap: clamp(14px, 2vw, 30px); }
.main-nav a { position: relative; display: inline-block; padding: 10px 2px; font-family: var(--font-label); font-size: var(--fs-mono); text-transform: uppercase; text-decoration: none; color: var(--on-dark-mute); transition: color .25s; }
html[lang="ar"] .main-nav a { text-transform: none; font-size: .9375rem; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--on-dark); }
.main-nav a[aria-current]::before { content: ""; position: absolute; inset-inline-start: -10px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--gold-light); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.main-nav + .header-actions { margin-inline-start: 0; }
.header-cta { min-height: 38px; padding-block: 8px; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; place-items: center; background: none; border: 0; color: var(--on-dark); }
.burger { display: grid; gap: 6px; width: 26px; }
.burger i { display: block; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.menu-toggle[aria-expanded="true"] .burger i:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.site-menu {
  margin-block-start: 8px; max-height: calc(100dvh - var(--header-h) - var(--header-top) * 2 - 8px); overflow-y: auto;
  padding: 12px; background: rgba(11, 26, 30, .95); color: var(--on-dark); border: 1px solid var(--line-dark); border-radius: var(--r);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); animation: drop .4s var(--ease) both;
}
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.menu-links li { animation: rise-in .5s calc(.05s + var(--i) * .04s) var(--ease) both; }
.menu-links a { display: flex; align-items: baseline; gap: 14px; padding: 12px 10px; border-radius: var(--r-sm); font-size: clamp(1.5rem, 6vw, 2rem); letter-spacing: var(--track); text-decoration: none; }
.menu-links a .mono { color: var(--on-dark-mute); }
.menu-links a:hover, .menu-links a[aria-current] { background: var(--night-3); }
.menu-links a[aria-current] { color: var(--gold-light); }
.menu-meta { padding: 16px 10px 6px; color: var(--on-dark-mute); text-transform: none; }
@media (max-width: 1080px) { .main-nav { display: none; } .menu-toggle { display: grid; } }
@media (max-width: 560px) { :root { --header-h: 58px; } .header-cta { display: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Hero (home) ---------- */
.hero { min-height: max(100svh, 640px); display: grid; grid-template-rows: 1fr auto; padding-block-start: calc(var(--header-h) + var(--header-top) + 40px); }
.hero-copy { align-self: center; position: relative; z-index: 2; }
.hero-title { font-size: var(--fs-hero); line-height: .98; text-transform: uppercase; max-width: 12ch; margin-block-end: 28px; }
html[lang="ar"] .hero-title { text-transform: none; line-height: 1.25; }
.hero-foot { display: flex; justify-content: space-between; gap: 16px; padding-block: 24px; color: var(--on-dark-mute); position: relative; z-index: 2; }
.hero-foot a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.hero-foot span { align-self: center; }
.hero-foot a:hover { color: var(--on-dark); }
.hero-object {
  position: absolute; z-index: 1; inset-block-start: 50%; inset-inline-end: clamp(-200px, -8vw, -40px);
  width: min(56vw, 780px); aspect-ratio: 1; transform: translateY(-46%) perspective(1200px) rotateX(var(--rx, 8deg)) rotateY(var(--ry, -18deg));
  transform-style: preserve-3d; transition: transform 1.2s var(--ease); pointer-events: none;
}
.emblem-layer { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-width: 1.15; stroke-linejoin: round; transform: translateZ(calc(var(--z) * -14px)); }
.emblem-layer:first-child { stroke: url(#gold-grad); stroke-width: 1.5; filter: drop-shadow(0 0 18px rgba(205, 189, 120, .3)); }
.emblem-layer:not(:first-child) { stroke: rgba(205, 189, 120, calc(.5 - var(--z) * .09)); }
@media (prefers-reduced-motion: no-preference) {
  .hero-object { animation: float 9s ease-in-out infinite alternate; }
  .emblem-layer:first-child { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3s .2s var(--ease) forwards; }
}
@keyframes float { from { translate: 0 0; } to { translate: 0 -18px; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (max-width: 900px) { .hero-object { width: 110vw; inset-inline-end: -45vw; inset-block-start: 62%; opacity: .22; } }

/* ---------- Company logos marquee ---------- */
.logos-band { padding-block: clamp(48px, 6vw, 80px) 24px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
.marquee-list { display: flex; align-items: center; }
.logo-marquee li a { display: grid; place-items: center; width: clamp(150px, 15vw, 210px); height: 96px; padding-inline: 24px; }
.logo-marquee img { max-height: 58px; max-width: 100%; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .7; transition: filter .4s, opacity .4s; }
.logo-marquee a:hover img, .logo-marquee a:focus-visible img { filter: none; opacity: 1; }
.marquee-foot { display: flex; justify-content: center; margin-block-start: 12px; }
.marquee-pause { min-height: 44px; }

/* ---------- Sector stack ---------- */
.sectors { padding-block-start: clamp(56px, 7vw, 96px); }
.stack { display: grid; gap: 24px; }
.stack-card {
  position: sticky; top: calc(var(--header-h) + var(--header-top) + 16px + var(--i) * 14px);
  height: clamp(440px, 74vh, 760px); border-radius: var(--r-lg); overflow: hidden; background: var(--night);
  transform: scale(var(--shrink, 1)); transform-origin: 50% 0;
  box-shadow: 0 -20px 60px -30px rgba(11, 26, 30, .45);
}
.stack-card img { width: 100%; height: 100%; object-fit: cover; }
.stack-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 26, 30, .9) 0%, rgba(11, 26, 30, .4) 45%, rgba(11, 26, 30, 0) 72%); }
.stack-info { position: absolute; z-index: 1; inset-inline: 0; inset-block-end: 0; display: grid; gap: 10px; padding: clamp(20px, 3vw, 40px); color: var(--on-dark); }
.stack-num { color: var(--on-dark-mute); }
.stack-info h3 { font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: 1.05; }
.stack-info p { color: rgba(238, 235, 228, .85); max-width: 52ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 6px; }
@media (max-width: 640px) { .stack-card { position: relative; top: 0; height: 540px; } }

/* ---------- Value chain cards ---------- */
.chain-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-block-start: clamp(36px, 5vw, 64px); }
.chain-card { display: grid; align-content: start; gap: 10px; padding: 12px 12px 22px; }
.chain-visual { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: calc(var(--r) - 4px); overflow: hidden; background: radial-gradient(80% 70% at 50% 110%, rgba(205, 189, 120, .35), rgba(17, 37, 41, 0) 70%), var(--night); margin-block-end: 10px; }
.chain-emblem { width: 62%; fill: none; stroke: var(--gold-light); stroke-width: 1.6; opacity: .9; transition: transform 1s var(--ease); }
.chain-card:hover .chain-emblem { transform: rotate(90deg) scale(1.05); }
.chain-num { position: absolute; inset-block-start: 12px; inset-inline-start: 14px; font-family: var(--font-mono); font-size: .75rem; color: var(--on-dark-mute); }
.chain-card h3 { display: grid; gap: 2px; font-size: 1.25rem; line-height: 1.2; padding-inline: 6px; }
.chain-verb { font-family: var(--font-label); font-size: var(--fs-mono); text-transform: uppercase; color: var(--gold-light); letter-spacing: 0; }
.chain-card p { color: var(--on-dark-mute); font-size: .9375rem; padding-inline: 6px; }
@media (max-width: 1100px) { .chain-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .chain-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- About bento ---------- */
.about-bento { padding-block-start: 0; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(150px, auto); gap: 12px; }
.bento .stat { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 6px; padding: 24px; }
.bento .stat:nth-child(1) { grid-column: 1 / span 3; grid-row: 1; }
.bento .stat:nth-child(2) { grid-column: 1 / span 3; grid-row: 2; }
.bento .stat:nth-child(3) { grid-column: 1 / span 3; grid-row: 3; }
.stat-num { font-size: clamp(2.5rem, 4.4vw, 3.5rem); line-height: 1; letter-spacing: -.04em; font-weight: 500; font-variant-numeric: tabular-nums; font-family: "Inter Tight", sans-serif; }
.bento .stat .mono { color: var(--on-dark-mute); }
.bento-mark { grid-column: 4 / span 3; grid-row: 1 / span 3; display: grid; grid-template-rows: 1fr auto; padding: 24px; text-decoration: none; transition: border-color .3s; }
.bento-emblem { width: 72%; margin: auto; fill: none; stroke: var(--gold-light); stroke-width: 1.2; transition: transform 1.2s var(--ease); }
.bento-mark:hover { border-color: var(--gold-light); }
.bento-mark:hover .bento-emblem { transform: rotate(-90deg); }
.bento-mark > span { display: grid; gap: 4px; }
.bento-mark strong { font-weight: 500; }
.bento-mark .mono { color: var(--on-dark-mute); display: inline-flex; align-items: center; gap: 8px; }
.bento-map { grid-column: 7 / span 6; grid-row: 1 / span 3; position: relative; overflow: hidden; display: grid; justify-items: center; align-content: start; padding: 28px 24px; text-align: center; }
.map-title { font-size: clamp(1.25rem, 2vw, 1.625rem); }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-light); margin-block-start: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 0 0 rgba(205, 189, 120, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(205, 189, 120, 0); } 100% { box-shadow: 0 0 0 0 rgba(205, 189, 120, 0); } }
.dot-globe { width: min(100%, 440px); margin-block: 18px -120px; }
.globe-edge { fill: none; stroke: var(--line-dark); }
.globe-dots { fill: rgba(238, 235, 228, .32); }
.pin { fill: var(--gold-light); }
.pin.is-home { fill: var(--on-dark); stroke: var(--gold-light); stroke-width: 3; }
.market-tags { position: absolute; inset-inline: 16px; inset-block-end: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.bento-ceo { grid-column: 1 / span 8; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(20px, 3vw, 40px); padding: 12px; align-items: center; }
.bento-ceo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 8%; border-radius: calc(var(--r) - 4px); background: radial-gradient(80% 70% at 50% 100%, rgba(205, 189, 120, .45), var(--teal)); }
.bento-ceo > div { padding-block: 12px; padding-inline: 0 clamp(8px, 2vw, 24px); display: grid; gap: 14px; justify-items: start; }
.bento-ceo h3 { font-size: var(--fs-h3); }
.quote { font-size: clamp(1.375rem, 2.2vw, 1.875rem); line-height: 1.2; color: var(--gold-light); letter-spacing: var(--track); }
.signature { display: grid; gap: 2px; }
.signature .mono { color: var(--on-dark-mute); }
.bento-photo { grid-column: 9 / span 4; overflow: hidden; padding: 0; }
.bento-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bento .stat:nth-child(n) { grid-column: span 2; grid-row: auto; }
  .bento-mark { grid-column: 1 / span 2; grid-row: auto; min-height: 320px; }
  .bento-map { grid-column: 3 / span 4; grid-row: auto; min-height: 420px; }
  .bento-ceo { grid-column: 1 / -1; }
  .bento-photo { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento .stat:nth-child(n) { grid-column: span 1; }
  .bento .stat:nth-child(3) { grid-column: 1 / -1; }
  .bento-mark, .bento-map { grid-column: 1 / -1; }
  .bento-ceo { grid-template-columns: 1fr; }
  .bento-ceo > div { padding: 4px 8px 16px; }
}

/* ---------- Milestone table ---------- */
.ms-table { border-block-start: 1px solid var(--line); }
.ms-table tr { border-block-end: 1px solid var(--line); transition: background-color .25s; }
.ms-table tr:hover { background: var(--cream-2); }
.ms-table th, .ms-table td { padding: 14px 10px; text-align: start; vertical-align: baseline; font-weight: 400; }
.ms-table th { width: 32%; font-size: 1rem; }
.ms-table td { color: var(--ink-mute); font-size: .9688rem; }
.ms-table .ms-year { width: 1%; white-space: nowrap; text-align: end; font-family: var(--font-mono); font-size: .875rem; color: var(--ink); }
@media (max-width: 640px) {
  .ms-table tr { display: grid; grid-template-columns: 1fr auto; padding-block: 12px; }
  .ms-table th, .ms-table td { padding: 2px 4px; width: auto; }
  .ms-table td:not(.ms-year) { grid-column: 1 / -1; grid-row: 2; }
  .ms-table .ms-year { grid-row: 1; grid-column: 2; }
}

/* ---------- CTA + footer ---------- */
.cta-final { padding-block: var(--section) clamp(56px, 7vw, 96px); }
.mega { font-size: clamp(3rem, 10vw, 10rem); line-height: .92; text-transform: uppercase; letter-spacing: -.045em; }
html[lang="ar"] .mega { text-transform: none; line-height: 1.25; letter-spacing: 0; }
.cta-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin-block-start: clamp(28px, 4vw, 48px); }
.cta-row p { color: var(--on-dark-mute); max-width: 44ch; font-size: var(--fs-lead); }
.cta-row .btn-row { margin: 0; }
.mono-mail { text-transform: none; }

.site-footer { position: relative; overflow: hidden; background: var(--night); color: var(--on-dark); padding-block: clamp(48px, 6vw, 80px) 24px; border-block-start: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; position: relative; z-index: 1; }
.footer-name { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: var(--track); line-height: 1.1; margin-block-end: 10px; }
.site-footer h2 { color: var(--on-dark-mute); margin-block-end: 14px; font-weight: 400; }
.site-footer ul { display: grid; gap: 2px; }
.site-footer li a { display: inline-block; padding: 6px 0; text-decoration: none; }
.site-footer li a:hover { color: var(--gold-light); }
.footer-brand a { text-decoration: none; }
.footer-bottom { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-block-start: clamp(48px, 8vw, 120px); padding-block-start: 20px; border-block-start: 1px solid var(--line-dark); position: relative; z-index: 1; }
.footer-bottom .mono { color: var(--on-dark-mute); margin-inline-end: auto; }
.footer-emblem { position: absolute; inset-inline-end: -8%; inset-block-end: -38%; width: min(60vw, 720px); fill: none; stroke: rgba(205, 189, 120, .12); stroke-width: .8; pointer-events: none; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: calc(var(--header-h) + var(--header-top) + clamp(56px, 8vw, 120px)) clamp(56px, 7vw, 104px); }
.page-hero .hero-title { font-size: clamp(2.5rem, 6vw, 5.75rem); max-width: 16ch; }
.page-emblem { position: absolute; z-index: -1; inset-inline-end: -6%; inset-block-start: 50%; translate: 0 -40%; width: min(56vw, 640px); fill: none; stroke: rgba(205, 189, 120, .28); stroke-width: 1; pointer-events: none; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 28px; color: var(--on-dark-mute); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--on-dark); }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; opacity: .6; }

/* ---------- About ---------- */
.photo-wide { margin-block: clamp(40px, 6vw, 72px) 12px; }
.photo-wide img { width: 100%; height: clamp(300px, 64vh, 680px); object-fit: cover; border-radius: var(--r-lg); }
.kb { animation: kenburns 28s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.photo-wide { overflow: hidden; border-radius: var(--r-lg); padding-inline: 0; width: calc(100% - var(--gutter) * 2); }
.story-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.story-card { display: grid; align-content: start; gap: 14px; padding: 24px; min-height: 280px; }
.story-card .mono { color: var(--on-dark-mute); }
.story-card .stat-num { color: var(--gold-light); padding-block-start: 32px; }
.story-card p { color: var(--on-dark-mute); font-size: .9688rem; }
.story-card strong { color: var(--on-dark); font-weight: 500; }
@media (max-width: 1000px) { .story-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .story-cards { grid-template-columns: 1fr; } }
.principle { display: grid; align-content: start; gap: 12px; padding: 24px; min-height: 260px; }
.principle .mono { color: var(--gold-light); }
.principle h3 { font-size: 1.375rem; line-height: 1.2; padding-block-start: 48px; }
.principle p { color: var(--on-dark-mute); font-size: .9688rem; }
.statement { max-width: 18ch; }
.card-link { position: relative; display: grid; gap: 8px; padding: 28px; min-height: 240px; align-content: end; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: background-color .35s var(--ease), color .35s; }
.card-link h3 { font-size: var(--fs-h3); }
.card-link p { color: var(--ink-mute); }
.card-link .mono { position: absolute; inset-block-start: 24px; inset-inline-start: 28px; color: var(--ink-mute); }
.card-link .circle { position: absolute; inset-block-start: 20px; inset-inline-end: 20px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 50%; transition: transform .4s var(--ease), background-color .3s; }
.circle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .circle svg { transform: scaleX(-1); }
.card-link:hover { background: var(--night); color: var(--on-dark); }
.card-link:hover p, .card-link:hover .mono { color: var(--on-dark-mute); }
.card-link:hover .circle { background: var(--gold-light); color: var(--night); border-color: var(--gold-light); transform: rotate(-45deg); }
[dir="rtl"] .card-link:hover .circle { transform: rotate(45deg); }

/* ---------- Journey ---------- */
.eras { display: grid; gap: clamp(64px, 9vw, 120px); }
.era { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.era-head { position: sticky; top: calc(var(--header-h) + var(--header-top) + 32px); display: grid; gap: 12px; justify-items: start; }
.era-head .tag { margin: 0; }
.era-year { font-family: "Inter Tight", sans-serif; font-size: clamp(4rem, 9vw, 8rem); line-height: .9; letter-spacing: -.05em; color: var(--gold); font-variant-numeric: tabular-nums; }
.era-year.is-tick { animation: tick .45s var(--ease); }
@keyframes tick { from { opacity: .2; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.era .ms-table tr { transition: background-color .25s, opacity .5s; }
.js .era .ms-table tr:not(.is-past) { opacity: .45; }
@media (max-width: 900px) { .era { grid-template-columns: 1fr; } .era-head { position: static; } .era-year { font-size: 4.5rem; } }

/* ---------- CEO page ---------- */
.ceo-page { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 7vw, 112px); align-items: start; }
.ceo-portrait { position: sticky; top: calc(var(--header-h) + var(--header-top) + 24px); padding: 10px; }
.ceo-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 8%; border-radius: calc(var(--r) - 4px); background: radial-gradient(80% 70% at 50% 100%, rgba(205, 189, 120, .45), var(--teal)); }
.ceo-portrait figcaption { display: grid; gap: 2px; padding: 14px 8px 6px; }
.ceo-portrait figcaption .mono { color: var(--on-dark-mute); }
.ceo-letter { display: grid; gap: 22px; font-size: 1.125rem; }
.ceo-letter .tag { margin: 0; }
.ceo-letter > p:not(.pull):not(.signature):not(.tag) { color: var(--ink-mute); max-width: 60ch; }
.ceo-letter .pull { font-size: clamp(1.875rem, 4vw, 3.25rem); line-height: 1.08; letter-spacing: var(--track); max-width: 18ch; padding-block: clamp(20px, 3vw, 36px); border-block: 1px solid var(--line); }
.ceo-letter .signature .mono { color: var(--ink-mute); }
@media (max-width: 900px) { .ceo-page { grid-template-columns: 1fr; } .ceo-portrait { position: static; max-width: 420px; } }

/* ---------- Companies ---------- */
.filter-row { display: grid; gap: 12px; margin-block-end: 32px; }
.field-label { color: var(--ink-mute); }
.result-count { margin: 0; }
.company-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.company-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .3s, transform .5s var(--ease), box-shadow .5s var(--ease); }
.company-card:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: 0 30px 50px -36px rgba(11, 26, 30, .5); }
.cc-open { flex: 1; display: grid; align-content: start; width: 100%; padding: 10px; text-align: start; background: none; border: 0; }
.cc-logo { display: grid; place-items: center; height: clamp(160px, 15vw, 210px); background: var(--cream); border-radius: calc(var(--r) - 4px); }
.cc-logo img { max-width: min(58%, 220px); max-height: 92px; object-fit: contain; transition: transform .6s var(--ease); }
.cc-open:hover .cc-logo img { transform: scale(1.06); }
.cc-body { display: grid; gap: 6px; padding: 18px 10px 8px; }
.cc-meta { color: var(--gold-ink); }
.cc-name { font-size: 1.5rem; line-height: 1.15; letter-spacing: var(--track); }
html[lang="ar"] .cc-name { font-weight: 600; }
.cc-tag { color: var(--ink-mute); font-size: .9688rem; }
.cc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 4px 20px; border-block-start: 1px solid var(--line); }
.cc-site { display: inline-flex; align-items: center; gap: 6px; text-transform: none; text-decoration: none; color: var(--ink); min-height: 44px; }
.cc-site:hover { color: var(--gold-ink); }
.cc-more { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-mute); }
.ext { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .ext { transform: scaleX(-1); }
@media (max-width: 1000px) { .company-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .company-grid { grid-template-columns: 1fr; } }

.company-dialog { width: min(980px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--cream); color: var(--ink); }
.company-dialog::backdrop { background: rgba(11, 26, 30, .75); backdrop-filter: blur(6px); }
.dialog-close { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--night); color: var(--on-dark); }
.dialog-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.dialog-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.dialog-logo { display: grid; place-items: center; min-height: 300px; margin: 10px; padding: 32px; background: var(--paper); border-radius: var(--r); }
.dialog-logo img { max-width: 70%; max-height: 150px; object-fit: contain; }
.dialog-body { display: grid; gap: 16px; align-content: start; padding: clamp(28px, 4vw, 48px); padding-block-start: clamp(48px, 5vw, 64px); }
.dialog-body .tag { margin: 0; }
.dialog-body .desc { color: var(--ink-mute); }
.dialog-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dialog-facts > div { padding: 14px 16px; background: var(--paper); border-radius: var(--r-sm); display: grid; gap: 4px; }
.dialog-facts dt { color: var(--ink-mute); }
.dialog-facts dd { font-weight: 500; }
.dialog-body .btn { justify-self: start; white-space: normal; text-align: start; }
.host { text-transform: none; opacity: .8; }
@media (max-width: 700px) { .dialog-grid { grid-template-columns: 1fr; } .dialog-logo { min-height: 180px; } }

/* ---------- Forms ---------- */
.form-card { display: grid; gap: 24px; padding: clamp(20px, 3vw, 40px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.form-card .tag { margin: 0; }
.subject-row { display: grid; gap: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.field { display: grid; gap: 8px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field input:not([type="checkbox"]):not([type="file"]), .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid transparent; border-radius: var(--r-sm); background: var(--cream); color: var(--ink);
  font: inherit; font-size: 1rem; transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; -webkit-appearance: none; padding-inline-end: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none' stroke='%230B1A1E' stroke-width='1.6'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 12px; background-position: right 16px center; }
[dir="rtl"] .field select { background-position: left 16px center; }
[dir="rtl"] .field input[type="tel"], [dir="rtl"] .field input[type="email"] { direction: ltr; text-align: right; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); opacity: .8; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--line); }
.field :is(input, textarea, select):focus-visible { outline: none; border-color: var(--gold-ink); background: var(--paper); box-shadow: 0 0 0 3px rgba(153, 137, 63, .25); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field.is-invalid .pills .pill { border-color: var(--error); }
.req { color: var(--gold-ink); margin-inline-start: 2px; }
.error { color: var(--error); font-size: .875rem; font-weight: 500; }
.hint { color: var(--ink-mute); font-size: .875rem; }
.file-drop { display: grid; gap: 8px; padding: 18px; border: 1px dashed rgba(11, 26, 30, .3); border-radius: var(--r-sm); background: var(--cream); }
.file-drop input { font: inherit; font-size: .9375rem; color: var(--ink-mute); max-width: 100%; }
.file-drop input::file-selector-button { margin-inline-end: 12px; min-height: 44px; padding: 8px 14px; border: 0; border-radius: var(--r-sm); background: var(--night); color: var(--on-dark); font: inherit; font-size: .875rem; cursor: pointer; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block-start: 16px; border-block-start: 1px solid var(--line); }
.form-foot p { font-size: .875rem; }
.form-status { padding: 14px 16px; border-radius: var(--r-sm); background: var(--cream); font-weight: 500; max-width: none; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } .form-foot .btn { width: 100%; } }

.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; align-items: start; }
.contact-side { display: grid; gap: 12px; position: sticky; top: calc(var(--header-h) + var(--header-top) + 24px); }
.detail-card { display: grid; gap: 20px; justify-items: start; padding: clamp(20px, 3vw, 32px); }
.detail-card .tag { margin: 0; }
.detail-list { display: grid; gap: 18px; }
.detail-list div { display: grid; gap: 4px; }
.detail-list dt { color: var(--on-dark-mute); }
.detail-list a { text-decoration: underline; text-decoration-color: var(--gold-light); text-underline-offset: 5px; overflow-wrap: anywhere; }
.map-card { overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); height: 300px; }
.map-card iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.5); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } .contact-side { position: static; } }

.apply-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.apply-head { position: sticky; top: calc(var(--header-h) + var(--header-top) + 32px); }
@media (max-width: 900px) { .apply-wrap { grid-template-columns: minmax(0, 1fr); } .apply-head { position: static; } }

/* ---------- What's next ---------- */
.whats-next { padding-block-start: 0; }
.next-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.next-media { aspect-ratio: 1; overflow: hidden; border-radius: var(--r-lg); background: var(--cream-2); }
.next-media img { width: 100%; height: 100%; object-fit: cover; }
.next-steps { margin-block-start: clamp(24px, 4vw, 40px); border-block-start: 1px solid var(--line); }
.next-steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: baseline; padding-block: 20px; border-block-end: 1px solid var(--line); }
.next-steps .mono { color: var(--gold-ink); }
.next-steps h3 { font-size: 1.125rem; font-weight: 500; letter-spacing: 0; }
.next-steps p { color: var(--ink-mute); }
@media (max-width: 900px) { .next-grid { grid-template-columns: 1fr; } .next-media { aspect-ratio: 16 / 10; } }

/* ---------- Careers ticker ---------- */
.ticker-band { background: var(--night); color: var(--on-dark); padding-block: clamp(28px, 4vw, 48px) 16px; overflow: hidden; border-block-start: 1px solid var(--line-dark); }
.ticker li { display: inline-flex; align-items: center; gap: clamp(16px, 2vw, 28px); padding-inline-end: clamp(16px, 2vw, 28px); font-size: clamp(2rem, 5vw, 4.5rem); letter-spacing: -.04em; white-space: nowrap; line-height: 1.15; }
.ticker li:nth-child(even) { color: var(--on-dark-mute); }
.ticker .marquee-track { animation-duration: 70s; }
.ticker-band .marquee-pause { color: var(--on-dark); border-color: var(--line-dark); }

/* ---------- Word-by-word reveal ---------- */
.w { display: inline-block; transition: color .4s var(--ease), opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-words].is-split .w { color: var(--cream-2); }
.js [data-words].is-split .w.on { color: inherit; }
.js [data-words-load].is-split .w { opacity: 0; transform: translateY(40%); }
.js [data-words-load].is-live .w { opacity: 1; transform: none; transition-delay: calc(.1s + var(--i) * .08s); }

/* ---------- Scroll reveals (JS only, motion allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--rv-delay, 0s); }
  .js .rv.is-in { opacity: 1; transform: none; }
  .js [data-chain] > li { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i) * .1s); }
  .js [data-chain].is-in > li { opacity: 1; transform: none; }
  .page-hero .crumbs, .page-hero .lead, .hero-copy .tag, .hero-copy .lead, .hero-copy .btn-row, .hero-foot { animation: rise-in .9s var(--ease) both; }
  .hero-copy .lead, .page-hero .lead { animation-delay: .45s; }
  .hero-copy .btn-row { animation-delay: .6s; }
  .hero-foot { animation-delay: .9s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .marquee-track, .kb, .hero-object { animation: none !important; }
  .emblem-layer:first-child { stroke-dashoffset: 0 !important; }
  .marquee { overflow-x: auto; }
  .marquee-list[aria-hidden="true"], .marquee-pause { display: none; }
  .stack-card { --shrink: 1 !important; }
}
.form-card, .field { min-width: 0; }
.field select { max-width: 100%; text-overflow: ellipsis; }

/* ---------- WordPress additions ---------- */
.admin-bar .site-header { inset-block-start: calc(var(--header-top) + 32px); }
@media (max-width: 782px) { .admin-bar .site-header { inset-block-start: calc(var(--header-top) + 46px); } }
.form-status.is-error { background: #FDECEA; color: var(--error); }
.form-status { max-width: none; }
.entry-content { max-width: 760px; display: grid; gap: 1em; font-size: 1.0625rem; }
.entry-content :is(h2, h3) { margin-block-start: 1em; letter-spacing: var(--track); }
.entry-content a { text-decoration-color: var(--gold); text-underline-offset: 4px; }
.entry-content ul { list-style: disc; padding-inline-start: 1.25em; }
.ceo-letter > :is(h2, h3, ul, ol) { color: var(--ink); }
.ceo-letter > blockquote p { font-size: clamp(1.875rem, 4vw, 3.25rem); line-height: 1.08; letter-spacing: var(--track); color: var(--ink); padding-block: clamp(20px, 3vw, 36px); border-block: 1px solid var(--line); }
.nav-links { display: flex; gap: 8px; margin-block-start: 32px; }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; }
.nav-links .current { background: var(--night); color: var(--on-dark); }
