/* SIDQ v2 — Gulf night, holding grade. Tokens first. */
:root {
  --night: #0A0E14;
  --night-2: #101721;
  --night-3: #17202C;
  --line: rgba(236, 240, 244, .14);
  --line-2: rgba(236, 240, 244, .28);
  --white: #F1F3F4;
  --mute: #A9B3BE;
  --sand: #CFA968;
  --red: #C8102E;
  --red-deep: #A00C24;
  --bracket: #9AA0A6;
  --concrete: #E8E2D6;
  --concrete-2: #DAD3C5;
  --ink: #0B1017;
  --ink-2: #4A5664;
  --paper: #FFFFFF;
  --scroll: #3A4654;
  --error: #FF8A98;
  --faint: #7F8B98;

  --f-lat-d: "Unbounded", "Segoe UI", sans-serif;
  --f-ar-d: "Noto Kufi Arabic", "Readex Pro", sans-serif;
  --f-lat: "Onest", "Segoe UI", sans-serif;
  --f-ar: "Readex Pro", "Onest", sans-serif;
  --f-num: "Onest", "Segoe UI", sans-serif;

  --pad: clamp(20px, 4vw, 64px);
  --max: 1440px;
  --hdr: 76px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 8px); overflow-x: hidden; }
body {
  overflow-x: clip;
  margin: 0; background: var(--night); color: var(--white);
  font-family: var(--f-lat); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html[lang="ar"] body { font-family: var(--f-ar); font-size: 17.5px; line-height: 1.85; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }
html { scrollbar-color: var(--scroll) var(--night); }
::-webkit-scrollbar { width: 11px; } ::-webkit-scrollbar-track { background: var(--night); } ::-webkit-scrollbar-thumb { background: var(--scroll); border: 3px solid var(--night); }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
p { margin: 0 0 14px; }
input, textarea, button { font: inherit; color: inherit; caret-color: var(--sand); }
.num { font-family: var(--f-num); font-variant-numeric: tabular-nums lining-nums; direction: ltr; unicode-bidi: isolate; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
html[dir="rtl"] .ico.flip { transform: scaleX(-1); }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.skip { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 99; background: var(--white); color: var(--night); padding: 10px 14px; }
.skip:focus { top: 12px; }

/* script switch for the wordmark */
html[lang="ar"] .wm-lat, html[lang="en"] .wm-ar { display: none; }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset-inline: 0; top: 0; z-index: 40; height: var(--hdr);
  display: flex; align-items: center; gap: 28px; padding-inline: var(--pad);
  transition: background-color .5s var(--ease), border-color .5s var(--ease), backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
.hdr.solid { background: color-mix(in srgb, var(--night) 78%, transparent); backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo { width: 54px; height: auto; display: block; }
.brand-t { font-weight: 600; font-size: 14px; line-height: 1.2; max-width: 15ch; }
html[lang="ar"] .brand-t { font-family: var(--f-ar-d); font-size: 13px; line-height: 1.45; }
.nav { display: flex; gap: 2px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-size: 14.5px; padding: 8px 12px; color: color-mix(in srgb, var(--white) 78%, transparent); position: relative; transition: color .3s; }
.nav a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: var(--o, left); transition: transform .45s var(--ease); }
html[dir="rtl"] .nav a::after { --o: right; }
.nav a:hover { color: var(--white); } .nav a:hover::after { transform: scaleX(1); }
.hdr-act { display: flex; align-items: center; gap: 10px; }
.concept-tag {
  font-size: 11.5px; letter-spacing: .06em; padding: 5px 10px; border: 1px solid var(--line-2); color: var(--mute); white-space: nowrap;
}
html[lang="ar"] .concept-tag { letter-spacing: 0; font-size: 12.5px; }
.lang { height: 40px; min-width: 48px; padding: 0 12px; background: transparent; border: 1px solid var(--line-2); cursor: pointer; font-weight: 600; font-size: 14px; transition: background-color .3s, color .3s; }
.lang:hover { background: var(--white); color: var(--night); }
html[lang="en"] .lang { font-family: var(--f-ar-d); }
.menu-btn { display: none; width: 44px; height: 40px; background: transparent; border: 1px solid var(--line-2); cursor: pointer; place-items: center; }
.menu-ico, .menu-ico::before, .menu-ico::after { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .35s var(--ease), opacity .2s; }
.menu-ico::before, .menu-ico::after { content: ""; position: absolute; inset-inline-start: 0; }
.menu-ico::before { top: -6px; } .menu-ico::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-ico { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-ico::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-ico::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; text-decoration: none; cursor: pointer; white-space: nowrap;
  font-weight: 600; font-size: 15.5px; border: 1px solid transparent;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-deep); transform: translateY(-1px); }
.btn-glass { background: color-mix(in srgb, var(--white) 8%, transparent); border-color: color-mix(in srgb, var(--white) 35%, transparent); color: var(--white); backdrop-filter: blur(10px); }
.btn-glass:hover { background: var(--white); color: var(--night); }
.btn-line { background: transparent; border-color: var(--line-2); color: var(--white); }
.btn-line:hover { background: var(--white); color: var(--night); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--red); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- brackets (the SIDQ logo corners) ---------- */
.brackets, .card-br { position: absolute; pointer-events: none; }
.brackets i, .card-br i { position: absolute; width: var(--bw, 64px); height: var(--bw, 64px); border-color: var(--bc, var(--bracket)); border-style: solid; border-width: 0; transition: transform .7s var(--ease); }
.brackets i:nth-child(1), .card-br i:nth-child(1) { top: 0; left: 0; border-top-width: var(--bt, 3px); border-left-width: var(--bt, 3px); }
.brackets i:nth-child(2), .card-br i:nth-child(2) { top: 0; right: 0; border-top-width: var(--bt, 3px); border-right-width: var(--bt, 3px); }
.brackets i:nth-child(3), .card-br i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: var(--bt, 3px); border-left-width: var(--bt, 3px); }
.brackets i:nth-child(4), .card-br i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: var(--bt, 3px); border-right-width: var(--bt, 3px); }

/* ---------- HERO ---------- */
.hero { position: relative; height: 175svh; }
.hero-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; --p: 0; --o: 1; }
.film {
  position: absolute; inset: 0; background: var(--night);
  transform: scale(calc(1 - var(--p) * .12));
  transition: transform 1.4s var(--ease), opacity 1.1s var(--ease);
}
.js .hero-pin:not(.opened) .film { transform: scale(.94); opacity: 0; }
.hero-pin.settled .film, .hero-pin.settled .brackets { transition: none; }
.hero-pin.settled .hero-copy > *, .hero-pin.settled .wordmark { animation: none !important; }
.hero-pin.settled .hero-copy > * { opacity: 1; }
.film-poster, .film-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-video { opacity: 0; transition: opacity 1.2s var(--ease); }
.film-video.on { opacity: 1; }
.film-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--night) 55%, transparent) 0%, color-mix(in srgb, var(--night) 0%, transparent) 22%, color-mix(in srgb, var(--night) 0%, transparent) 48%, color-mix(in srgb, var(--night) 82%, transparent) 100%),
    linear-gradient(var(--shade-dir, 90deg), color-mix(in srgb, var(--night) 55%, transparent) 0%, color-mix(in srgb, var(--night) 0%, transparent) 55%);
}
html[dir="rtl"] .film-shade { --shade-dir: 270deg; }
.brackets {
  --bw: clamp(34px, 5vw, 76px); --bt: 3px;
  inset: calc(var(--hdr) + 10px) 18px 18px;
  transform: scale(calc(1 - var(--p) * .12));
  transition: transform 1.4s var(--ease), opacity 1s var(--ease);
}
.js .hero-pin:not(.opened) .brackets { transform: scale(.3); opacity: 0; }
.hero-copy {
  position: absolute; z-index: 2; inset-inline-start: var(--pad); top: calc(var(--hdr) + 7svh);
  max-width: min(640px, 48vw); opacity: var(--o);
}
.hero-place { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--white) 80%, transparent); margin: 22px 0 0; }
html[lang="ar"] .hero-place { letter-spacing: 0; text-transform: none; font-size: 14.5px; }
.hero-h {
  font-family: var(--f-lat-d); font-weight: 400; font-size: clamp(2rem, 3.4vw, 3.4rem); line-height: 1.12; letter-spacing: -.02em;
  margin: 0 0 32px; text-wrap: balance;
}
html[lang="ar"] .hero-h { font-family: var(--f-ar-d); font-weight: 600; letter-spacing: 0; line-height: 1.5; font-size: clamp(1.9rem, 3.1vw, 3.1rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.wordmark {
  position: absolute; z-index: 1; inset-inline: 0; bottom: 0; margin: 0; text-align: center; pointer-events: none;
  line-height: 1; color: var(--white); bottom: clamp(26px, 4.5svh, 56px); transform: translateY(calc(var(--p) * 40%)); opacity: calc(1 - var(--p) * 2.6);
}
.wordmark span { display: inline-block; white-space: nowrap; }
.wordmark .wm-lat { font-family: var(--f-lat-d); font-weight: 600; font-size: var(--wm, 22vw); letter-spacing: -.04em; line-height: .78; }
.wordmark .wm-ar { font-family: var(--f-ar-d); font-weight: 800; font-size: var(--wm, 17vw); line-height: 1.05; }
html[lang="en"] .wordmark .wm-ar, html[lang="ar"] .wordmark .wm-lat { display: none; }
.hero-scroll {
  position: absolute; z-index: 2; right: var(--pad); top: 50%; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--white) 75%, transparent); writing-mode: vertical-rl; opacity: var(--o);
}
html[lang="ar"] .hero-scroll { letter-spacing: 0; font-size: 13px; }
html[dir="rtl"] .hero-scroll { right: auto; left: var(--pad); }
.hero-scroll i { width: 1px; height: 64px; background: linear-gradient(var(--white), transparent); }
@media (prefers-reduced-motion: no-preference) {
  .hero-scroll i { animation: drip 2.4s var(--ease-io) infinite; transform-origin: top; }
  @keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
  .js .hero-pin:not(.opened) .hero-copy > *, .js .hero-pin:not(.opened) .wordmark { opacity: 0; }
  .hero-pin.opened .hero-copy > * { animation: rise 1.1s var(--ease) both; }
  .hero-pin.opened .hero-copy > :nth-child(1) { animation-delay: .7s; }
  .hero-pin.opened .hero-copy > :nth-child(2) { animation-delay: .82s; }
  .hero-pin.opened .hero-copy > :nth-child(3) { animation-delay: .96s; }
  .hero-pin.opened .hero-copy > :nth-child(4) { animation-delay: 1.08s; }
  .hero-pin.opened .wordmark { animation: wm 1.6s var(--ease) .45s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes wm { from { opacity: 0; transform: translateY(12%); } to { opacity: 1; transform: none; } }
}

/* ---------- statement ---------- */
.statement { position: relative; padding: clamp(80px, 13vw, 200px) 0 clamp(70px, 10vw, 150px); }
.say {
  font-family: var(--f-lat-d); font-weight: 300; font-size: clamp(1.7rem, 3.5vw, 3.6rem); line-height: 1.22; letter-spacing: -.02em;
  margin: 0 0 clamp(48px, 7vw, 96px); max-width: 26ch; text-wrap: balance;
}
html[lang="ar"] .say { font-family: var(--f-ar-d); font-weight: 400; letter-spacing: 0; line-height: 1.6; max-width: 30ch; font-size: clamp(1.6rem, 3.1vw, 3.1rem); }
.say .w { opacity: var(--wo, 1); transition: opacity .5s var(--ease); }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 72px); max-width: 1000px; margin-inline-start: auto; color: var(--mute); }
.about-cols p { margin: 0; }

/* ---------- three lines: sticky stack ---------- */
.lines { padding-bottom: clamp(60px, 8vw, 120px); }
.lines-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.h2 { font-family: var(--f-lat-d); font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 3.3rem); line-height: 1.1; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
html[lang="ar"] .h2 { font-family: var(--f-ar-d); font-weight: 700; letter-spacing: 0; line-height: 1.45; font-size: clamp(1.7rem, 3vw, 3rem); }
.lines-sub { color: var(--mute); margin: 0; max-width: 46ch; }
.stack { padding-inline: clamp(12px, 2.4vw, 36px); }
.card {
  position: sticky; top: calc(var(--hdr) + 12px + var(--i) * 26px);
  height: calc(100svh - var(--hdr) - 40px - var(--i) * 26px); min-height: 520px;
  margin-bottom: 7svh; overflow: hidden; background: var(--night-2);
  transform-origin: 50% 0; transform: scale(var(--s, 1));
  will-change: transform;
}
.card:last-child { margin-bottom: 0; }
.card::before { content: ""; position: absolute; inset: 0; z-index: 4; background: var(--night); opacity: var(--dim, 0); pointer-events: none; }
.card-media, .card-media picture, .card-media img, .card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media video { opacity: 0; transition: opacity 1s var(--ease); }
.card-media video.on { opacity: 1; }
.card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(var(--cd, 90deg), color-mix(in srgb, var(--night) 90%, transparent) 0%, color-mix(in srgb, var(--night) 55%, transparent) 38%, color-mix(in srgb, var(--night) 0%, transparent) 68%), linear-gradient(0deg, color-mix(in srgb, var(--night) 60%, transparent), transparent 40%);
}
html[dir="rtl"] .card-media::after { --cd: 270deg; }
.card-body { position: absolute; z-index: 2; inset-inline-start: clamp(24px, 4.5vw, 72px); bottom: clamp(28px, 5vw, 72px); max-width: min(560px, 80%); }
.card-h { font-family: var(--f-lat-d); font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.9rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 16px; }
html[lang="ar"] .card-h { font-family: var(--f-ar-d); font-weight: 700; letter-spacing: 0; line-height: 1.45; }
.card-p { color: color-mix(in srgb, var(--white) 86%, transparent); max-width: 50ch; }
.card-li { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.card-li li { font-size: 13px; padding: 6px 12px; border: 1px solid color-mix(in srgb, var(--white) 30%, transparent); background: color-mix(in srgb, var(--night) 35%, transparent); backdrop-filter: blur(6px); }
.card-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--sand); padding-bottom: 4px; }
.card-link:hover { color: var(--sand); }
.card-br { inset: clamp(14px, 2vw, 26px); --bw: 40px; --bt: 2px; --bc: color-mix(in srgb, var(--white) 70%, transparent); z-index: 2; }
.card:hover .card-br i:nth-child(1) { transform: translate(8px, 8px); }
.card:hover .card-br i:nth-child(2) { transform: translate(-8px, 8px); }
.card:hover .card-br i:nth-child(3) { transform: translate(8px, -8px); }
.card:hover .card-br i:nth-child(4) { transform: translate(-8px, -8px); }

/* ---------- systems: daylight concrete ---------- */
.systems { background: var(--concrete); color: var(--ink); padding: clamp(80px, 10vw, 150px) 0; color-scheme: light; }
.systems ::selection { background: var(--ink); color: var(--white); }
.sys-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sys-head p { margin: 0; color: var(--ink-2); }
.sys-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.sys-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.sys-btn {
  width: 100%; display: grid; grid-template-columns: 3.4em 1fr 28px; align-items: center; gap: 14px; text-align: start;
  padding: 14px 4px; background: transparent; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); cursor: pointer; color: var(--ink);
  transition: color .3s, background-color .3s;
}
.sys-btn .num { font-size: 12.5px; color: var(--ink-2); text-align: start; }
.sys-btn .nm { font-size: 17px; font-weight: 500; line-height: 1.35; }
html[lang="ar"] .sys-btn .nm { line-height: 1.6; }
.sys-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .45; transition: opacity .3s; }
.sys-btn > * { transition: transform .45s var(--ease), opacity .3s; }
.sys-btn:hover > *, .sys-btn[aria-pressed="true"] > * { transform: translateX(calc(12px * var(--dir, 1))); }
html[dir="rtl"] { --dir: -1; }
.sys-btn[aria-pressed="true"] { color: var(--red-deep); }
.sys-btn[aria-pressed="true"] svg, .sys-btn:hover svg { opacity: 1; }
.sys-btn[aria-pressed="true"] .num { color: var(--red-deep); }
.sys-btn:focus-visible { outline-color: var(--red); }
.sys-panel { position: sticky; top: calc(var(--hdr) + 28px); }
.sys-sym { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--paper); margin-bottom: 26px; }
.sys-sym svg { width: 42%; height: 56%; fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.card-br.dark { --bc: var(--ink); --bw: 30px; --bt: 2px; inset: 16px; }
.sys-name { font-family: var(--f-lat-d); font-weight: 500; font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 14px; display: flex; align-items: flex-start; gap: 14px; }
html[lang="ar"] .sys-name { font-family: var(--f-ar-d); font-weight: 700; letter-spacing: 0; line-height: 1.5; }
.tag { flex: none; font-size: 12px; font-weight: 600; border: 1px solid currentColor; padding: 3px 8px; margin-top: .3em; color: var(--red-deep); }
.sys-panel p { color: var(--ink-2); }
.sys-where span:first-child { color: var(--ink); font-weight: 600; }
.sys-panel .btn { margin-top: 10px; }
@media (prefers-reduced-motion: no-preference) { .sys-panel.swap > * { animation: rise .55s var(--ease) both; } .sys-panel.swap > :nth-child(2) { animation-delay: .05s; } .sys-panel.swap > :nth-child(3) { animation-delay: .1s; } }

/* ---------- partners ---------- */
.partners { padding: clamp(80px, 11vw, 160px) 0 clamp(60px, 8vw, 110px); overflow: hidden; }
.pt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); margin: clamp(36px, 5vw, 64px) 0 36px; border-top: 1px solid var(--line); }
.pt { padding-top: 28px; }
.pt-name { font-family: var(--f-lat-d); font-weight: 500; font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -.03em; margin: 0 0 12px; unicode-bidi: isolate; }
.pt-c { color: var(--sand); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
html[lang="ar"] .pt-c { letter-spacing: 0; text-transform: none; font-size: 14.5px; font-weight: 600; }
.pt p:last-child { color: var(--mute); max-width: 44ch; }
.hold { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; color: var(--mute); font-size: 14.5px; position: relative; padding: 14px 18px; max-width: 760px; }
.hold::before { content: ""; position: absolute; inset: 0; border: 1px dashed color-mix(in srgb, var(--sand) 55%, transparent); pointer-events: none; }
.hold-tag { background: var(--sand); color: var(--night); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; padding: 2px 8px; text-transform: uppercase; }
html[lang="ar"] .hold-tag { letter-spacing: 0; font-size: 12.5px; }
.reel { margin-top: clamp(48px, 6vw, 80px); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.reel-track { display: flex; gap: 14px; width: max-content; }
.reel figure { margin: 0; width: clamp(240px, 26vw, 400px); aspect-ratio: 4 / 3; overflow: hidden; background: var(--night-3); flex: none; }
.reel img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.85) contrast(1.05); transition: filter .6s var(--ease), transform 1.2s var(--ease); }
.reel img.on-light { object-fit: contain; background: var(--paper); }
.reel figure:hover img { filter: none; transform: scale(1.04); }
@media (prefers-reduced-motion: no-preference) {
  .reel-track { animation: reel 60s linear infinite; }
  html[dir="rtl"] .reel-track { animation-name: reel-rtl; }
  .reel:hover .reel-track { animation-play-state: paused; }
  @keyframes reel { to { transform: translateX(-50%); } }
  @keyframes reel-rtl { to { transform: translateX(50%); } }
}

/* ---------- vision ---------- */
.vision { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.vision-media { position: absolute; inset: 0; }
.vision-media img { width: 100%; height: 100%; object-fit: cover; }
.vision-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--night) 25%, transparent) 0%, color-mix(in srgb, var(--night) 35%, transparent) 35%, color-mix(in srgb, var(--night) 92%, transparent) 72%, var(--night) 100%);
}
.vision-media::before {
  content: ""; position: absolute; inset: 40% 0 0; z-index: 1;
  backdrop-filter: blur(18px); -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%); mask-image: linear-gradient(180deg, transparent, #000 45%);
}
.vision-in { position: relative; z-index: 2; width: 100%; padding-top: 34svh; padding-bottom: clamp(60px, 8vw, 120px); }
.goals { list-style: none; margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.goals li { border-top: 1px solid var(--line-2); padding-top: 22px; }
.goals h3 { font-size: 19px; font-weight: 600; margin: 0 0 8px; line-height: 1.35; }
html[lang="ar"] .goals h3 { font-family: var(--f-ar-d); font-weight: 600; line-height: 1.6; }
.goals p { color: var(--mute); font-size: 15.5px; margin: 0; }

/* ---------- record ---------- */
.record { padding: clamp(70px, 9vw, 130px) 0; border-top: 1px solid var(--line); }
.rc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); }
.rc-list { margin: 0; border-top: 1px solid var(--line-2); }
.rc-list > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rc-list dt { color: var(--mute); font-size: 14.5px; }
.rc-list dd { margin: 0; font-weight: 500; }
html[dir="rtl"] .rc-list dd.num { text-align: right; }
.holds { grid-column: 2; list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.holds .hold { max-width: none; }

/* ---------- contact ---------- */
.contact { padding: clamp(80px, 10vw, 150px) 0; background: var(--night-2); }
.ct { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); }
.ct-intro > p { color: var(--mute); margin: 22px 0 0; max-width: 42ch; }
.direct { margin: 36px 0 0; border-top: 1px solid var(--line-2); }
.direct > div { display: grid; grid-template-columns: 8em 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.direct dt { color: var(--mute); font-size: 14px; }
.direct dd { margin: 0; font-weight: 600; }
.direct a { text-decoration: none; } .direct a:hover { color: var(--sand); }
.contact { overflow: hidden; }
.rfq-frame { position: relative; padding: clamp(22px, 3vw, 40px); }
.rfq-br { inset: 0; --bw: 46px; --bt: 2px; --bc: var(--bracket); }
.rfq-frame:not(.in) .rfq-br i:nth-child(1) { transform: translate(-36px, -36px); }
.rfq-frame:not(.in) .rfq-br i:nth-child(2) { transform: translate(36px, -36px); }
.rfq-frame:not(.in) .rfq-br i:nth-child(3) { transform: translate(-36px, 36px); }
.rfq-frame:not(.in) .rfq-br i:nth-child(4) { transform: translate(36px, 36px); }
.rfq-br i { transition-duration: 1.2s; }
.rfq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.rfq-line { grid-column: 1 / -1; border: 0; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rfq-line legend { padding: 0; margin-bottom: 10px; color: var(--mute); font-size: 13px; float: inline-start; width: 100%; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; transition: background-color .3s, color .3s, border-color .3s; }
.chip:hover span { border-color: var(--white); }
.chip input:checked + span { background: var(--white); color: var(--night); border-color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--sand); outline-offset: 2px; }
.fld { display: flex; flex-direction: column; padding: 16px 0 0; }
.fld-2 { grid-column: 1 / -1; }
.fld > span { font-size: 13px; color: var(--mute); }
.fld input, .fld textarea { background: transparent; border: 0; border-bottom: 1px solid var(--line-2); padding: 8px 0 10px; font-size: 16.5px; outline: none; resize: vertical; transition: border-color .3s; }
html[dir="rtl"] .fld input[dir="ltr"] { text-align: right; }
.fld input::placeholder, .fld textarea::placeholder { color: var(--faint); }
.fld:focus-within input, .fld:focus-within textarea { border-bottom-color: var(--sand); }
.fld.bad > span { color: var(--error); }
.fld.bad input { border-bottom-color: var(--error); }
.rfq-err { grid-column: 1 / -1; margin: 16px 0 0; color: var(--error); font-weight: 600; }
.rfq-act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }
.rfq-note { flex-basis: 100%; margin: 6px 0 0; font-size: 13px; color: var(--mute); }

/* ---------- footer ---------- */
.ft { position: relative; overflow: hidden; padding-top: clamp(40px, 6vw, 80px); }
.ft-wm { margin: 0; text-align: center; line-height: .78; color: var(--night-3); pointer-events: none; }
.ft-wm { display: flex; justify-content: center; align-items: baseline; gap: 3vw; }
.ft-lat { font-family: var(--f-lat-d); font-weight: 600; font-size: 19vw; letter-spacing: -.04em; line-height: .8; }
.ft-ar { font-family: var(--f-ar-d); font-weight: 800; font-size: 16vw; line-height: 1; }
.ft-in { position: relative; display: grid; grid-template-columns: 1.2fr 2fr 1.6fr; gap: 20px; padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); margin-top: -4vw; background: var(--night); }
.ft-in p { margin: 0; }
.ft-name { color: var(--white); font-weight: 600; }
html[lang="ar"] .ft-name { font-family: var(--f-ar-d); }
.ft-in a { text-decoration: none; } .ft-in a:hover { color: var(--white); }
.ft-demo { grid-column: 1 / -1; font-size: 12.5px; color: var(--faint); padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .hdr-act { margin-inline-start: auto; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; inset-inline: 0; gap: 0;
    background: color-mix(in srgb, var(--night) 97%, transparent); backdrop-filter: blur(14px); padding: 8px var(--pad) 22px; border-bottom: 1px solid var(--line);
  }
  .nav.open a { font-size: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--white); }
  .nav.open a::after { display: none; }
}
@media (max-width: 900px) {
  .hero-copy { max-width: none; inset-inline-end: var(--pad); }
  .about-cols, .lines-head, .sys-head, .sys-grid, .pt-grid, .rc, .ct { grid-template-columns: minmax(0, 1fr); }
  .holds { grid-column: 1; }
  .sys-panel { position: static; margin: 14px 0 22px; }
  .sys-panel .sys-sym { aspect-ratio: 16 / 9; }
  .goals { grid-template-columns: minmax(0, 1fr); }
  .ft-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --hdr: 64px; }
  body { font-size: 16px; } html[lang="ar"] body { font-size: 16.5px; }
  .brand-t, .concept-tag { display: none; }
  .hdr-act .btn-sm { padding: 0 12px; }
  .hero { height: 100svh; }
  .hero-pin { position: relative; }
  .hero-copy { top: auto; bottom: 24svh; }
  .hero-h { font-size: 1.85rem; } html[lang="ar"] .hero-h { font-size: 1.7rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-scroll { display: none; }
  .card { min-height: 560px; height: calc(100svh - var(--hdr) - 24px - var(--i) * 18px); top: calc(var(--hdr) + 8px + var(--i) * 18px); }
  .card-body { max-width: none; inset-inline-end: 22px; bottom: 26px; }
  .card-media::after { background: linear-gradient(0deg, color-mix(in srgb, var(--night) 95%, transparent) 0%, color-mix(in srgb, var(--night) 70%, transparent) 45%, color-mix(in srgb, var(--night) 10%, transparent) 75%); }
  .card-p { font-size: 15.5px; }
  .card-li li { font-size: 12.5px; }
  .rfq { grid-template-columns: minmax(0, 1fr); }
  .direct > div, .rc-list > div { grid-template-columns: 1fr; gap: 2px; }
  .rfq-act .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .say .w { opacity: 1 !important; }
}

/* ---------- v3: representation ---------- */
.hero-lead { font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: color-mix(in srgb, var(--white) 88%, transparent); max-width: 46ch; margin: -14px 0 28px; }
.represent { padding: clamp(80px, 10vw, 150px) 0 clamp(60px, 8vw, 110px); overflow: hidden; border-top: 1px solid var(--line); }
.rep-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.rep-head p { color: var(--mute); margin: 0; max-width: 46ch; }
.rep-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.rep { display: flex; flex-direction: column; background: var(--night-2); border: 1px solid var(--line); padding: clamp(18px, 2vw, 28px); }
.rep-mark { position: relative; aspect-ratio: 16 / 7; display: grid; place-items: center; background: var(--night-3); margin-bottom: 22px; overflow: hidden; }
.rep-mark img { max-width: 62%; max-height: 58%; object-fit: contain; }
.rep-word { font-family: var(--f-lat-d); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.6rem); letter-spacing: -.02em; color: var(--white); text-align: center; padding: 0 12%; line-height: 1.1; }
.rep-mark .card-br { inset: 14px; --bw: 28px; --bt: 2px; --bc: color-mix(in srgb, var(--white) 55%, transparent); }
.rep:hover .rep-mark .card-br i:nth-child(1) { transform: translate(6px, 6px); }
.rep:hover .rep-mark .card-br i:nth-child(2) { transform: translate(-6px, 6px); }
.rep:hover .rep-mark .card-br i:nth-child(3) { transform: translate(6px, -6px); }
.rep:hover .rep-mark .card-br i:nth-child(4) { transform: translate(-6px, -6px); }
.rep-name { font-family: var(--f-lat-d); font-weight: 500; font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.2; margin: 0 0 6px; }
html[lang="ar"] .rep-name { font-family: var(--f-ar-d); font-weight: 700; line-height: 1.5; }
.rep-country { color: var(--sand); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
html[lang="ar"] .rep-country { letter-spacing: 0; text-transform: none; font-size: 14.5px; font-weight: 600; }
.rep-desc { color: var(--mute); margin: 0 0 18px; flex: 1; }
.rep-link { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--sand); padding-bottom: 3px; }
.rep-link:hover { color: var(--sand); }

.meetings { padding: clamp(70px, 9vw, 130px) 0; background: var(--night-2); }
.meetings .h2 { margin-bottom: clamp(32px, 4vw, 56px); }
.meet-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(14px, 2vw, 24px); }
.mt { margin: 0; }
.mt-img { position: relative; overflow: hidden; background: var(--night-3); }
.mt-img img { width: 100%; height: 100%; object-fit: cover; }
.mt-a .mt-img, .mt-b .mt-img { aspect-ratio: 4 / 3; }
.mt-c { grid-column: 1 / -1; }
.mt-c .mt-img { aspect-ratio: 21 / 9; }
.mt-c .mt-img img { object-position: 50% 72%; }
.mt-img .card-br { inset: 16px; --bw: 34px; --bt: 2px; --bc: color-mix(in srgb, var(--white) 70%, transparent); }
.mt figcaption { margin-top: 12px; color: var(--mute); font-size: 14px; line-height: 1.6; max-width: 70ch; }

.ct-card { display: grid; gap: 22px; }
.btn-wa { justify-self: start; min-height: 60px; padding: 0 30px; font-size: 16.5px; }
.ct-card .direct { margin: 0; }
.ct-pdf { display: inline-flex; align-items: center; gap: 10px; color: var(--mute); text-decoration: none; font-size: 14.5px; justify-self: start; }
.ct-pdf:hover { color: var(--white); }

@media (max-width: 900px) {
  .rep-head, .meet-grid { grid-template-columns: minmax(0, 1fr); }
  .mt-c .mt-img { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .rep-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-lead { margin: -12px 0 22px; font-size: 1rem; }
  .btn-wa { justify-self: stretch; }
  /* phones: no running animations behind content */
  .reel-track { animation-duration: 90s; }
}

/* represented companies with an official logo: a light plate keeps colour logos legible */
.rep-mark.has-logo { background: var(--paper); }
.rep-mark.has-logo img { max-width: 64%; max-height: 52%; }
.rep-mark.has-logo .card-br { --bc: color-mix(in srgb, var(--ink) 30%, transparent); }

/* phones: long button labels wrap instead of widening their column (WhatsApp button pushed the contact card off-centre) */
.ct > *, .rfq-frame, .ct-card, .rep, .hero-copy { min-width: 0; }
@media (max-width: 640px) {
  .btn { white-space: normal; text-align: center; line-height: 1.35; padding-block: 12px; }
  .btn-wa { padding-inline: 20px; }
  .rfq-frame { padding: 22px 18px; }
}

/* ---------- route: globe with an arc from each manufacturer to Al-Khobar ---------- */
.route { padding: clamp(70px, 9vw, 140px) 0; border-top: 1px solid var(--line); overflow: hidden; }
.route-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.route-p { color: var(--mute); margin: 18px 0 clamp(28px, 3.5vw, 44px); max-width: 46ch; }
.route-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.route-list li { border-bottom: 1px solid var(--line); }
.route-row {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center;
  width: 100%; padding: 18px 4px; background: none; border: 0; color: var(--white); font: inherit; text-align: start; cursor: pointer;
}
.rr-n { color: var(--faint); font-size: 13px; letter-spacing: .06em; }
.rr-main { display: grid; gap: 3px; min-width: 0; }
.rr-name { font-weight: 600; font-size: 17px; }
.rr-place { color: var(--mute); font-size: 13px; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.rr-km { color: var(--mute); font-size: 13px; white-space: nowrap; }
.rr-km .num { color: var(--white); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.route-row .rr-name, .route-row .rr-n { transition: color .3s var(--ease); }
.route-row[aria-pressed="true"] .rr-n { color: var(--red); }
.route-row:not([aria-pressed="true"]) .rr-name { color: color-mix(in srgb, var(--white) 72%, transparent); }
.route-row:hover .rr-name { color: var(--white); }
.route-row:focus-visible { outline: 2px solid var(--white); outline-offset: -2px; }
.rr-bar { position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; }
html[dir="rtl"] .rr-bar { transform-origin: right; }
.route-row[aria-pressed="true"] .rr-bar { transform: scaleX(1); }
.route-list.auto .route-row[aria-pressed="true"] .rr-bar { animation: rr-fill 5.2s linear both; }
@keyframes rr-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.route-globe { position: relative; width: 100%; max-width: 640px; justify-self: center; padding: clamp(14px, 2vw, 26px); }
.route-globe > .card-br { inset: 0; --bw: 40px; --bt: 2px; --bc: var(--bracket); }
.globe-box { position: relative; aspect-ratio: 1; }
.globe-box canvas { width: 100%; height: 100%; display: block; contain: layout paint size; }
.g-vis { position: absolute; left: 0; top: 0; transition: opacity .35s var(--ease); }
.g-lab {
  position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 12px));
  padding: 4px 9px; white-space: nowrap; font-size: 12px; font-weight: 600; letter-spacing: .02em;
  background: color-mix(in srgb, var(--night) 82%, transparent); border: 1px solid var(--line-2); color: var(--white);
  opacity: 0; transition: opacity .35s var(--ease);
}
.g-lab.on { opacity: 1; }
.g-lab.home { border-color: var(--red); transform: translate(-50%, 14px); }

@media (max-width: 900px) {
  .route-grid { grid-template-columns: minmax(0, 1fr); }
  .route-globe { order: -1; max-width: 520px; }
}
@media (max-width: 640px) {
  .route-row { gap: 12px; padding: 15px 2px; }
  .rr-name { font-size: 16px; }
  .rr-place { white-space: normal; }
}

/* ---------- aperture: the signing photo opens out of the headline ---------- */
.aperture { position: relative; height: 250vh; }
.ap-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.ap-photo { position: absolute; inset: 0; margin: 0; clip-path: var(--clip, inset(50% 50% 50% 50% round 999px)); will-change: clip-path; }
.ap-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(var(--zoom, 1.16)); }
.ap-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 14, 20, .82), rgba(10, 14, 20, 0) 48%); opacity: calc(1 - var(--wf, 1)); }
.ap-h {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: .32em; margin: 0; padding-inline: var(--pad);
  font-family: var(--f-lat-d); font-weight: 500; font-size: clamp(2.2rem, 5vw, 5.4rem); line-height: 1; letter-spacing: -.03em; white-space: nowrap;
}
html[lang="ar"] .ap-h { font-family: var(--f-ar-d); font-weight: 700; letter-spacing: 0; line-height: 1.3; font-size: clamp(2.2rem, 5.6vw, 5.8rem); }
.ap-a, .ap-b { display: block; opacity: var(--wf, 1); will-change: transform; }
.ap-a { transform: translate(var(--ax, 0px), var(--ay, 0px)); }
.ap-b { transform: translate(calc(-1 * var(--ax, 0px)), calc(-1 * var(--ay, 0px))); }
.ap-gap { display: block; flex: none; width: 1.9em; height: .82em; border-radius: 999px; }
.ap-cap {
  position: absolute; z-index: 1; inset-inline: var(--pad); bottom: clamp(28px, 6vh, 64px); margin: 0; max-width: 62ch;
  font-size: clamp(15px, 1.25vw, 19px); line-height: 1.55; color: var(--white);
}
.ap-cap .w { opacity: var(--wo, 0); transition: opacity .45s var(--ease); }
.ap-br { inset: clamp(14px, 2.4vw, 32px); --bw: 46px; --bt: 2px; --bc: color-mix(in srgb, var(--white) 75%, transparent); opacity: 0; transition: opacity .5s var(--ease); }
.ap-br i { transition: transform .7s var(--ease); }
.ap-stage:not(.lock) .ap-br i:nth-child(1) { transform: translate(-30px, -30px); }
.ap-stage:not(.lock) .ap-br i:nth-child(2) { transform: translate(30px, -30px); }
.ap-stage:not(.lock) .ap-br i:nth-child(3) { transform: translate(-30px, 30px); }
.ap-stage:not(.lock) .ap-br i:nth-child(4) { transform: translate(30px, 30px); }
.ap-stage.lock .ap-br { opacity: 1; }
.meetings > .wrap { padding-top: clamp(28px, 4vw, 56px); }
@media (min-width: 901px) { .meet-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.mt-b .mt-img { aspect-ratio: 20 / 21; }
.mt-c { grid-column: auto; }
.mt-c .mt-img { aspect-ratio: 4 / 3; }
@media (max-width: 900px) { .mt-b .mt-img, .mt-c .mt-img { aspect-ratio: 4 / 3; } }

@media (max-width: 760px) {
  .aperture { height: 210svh; }
  /* "and agreements" is ~9.7em wide: 9vw keeps it inside the gutters down to 320px */
  .ap-h { flex-direction: column; gap: .2em; font-size: min(9vw, 3.6rem); }
  html[lang="ar"] .ap-h { font-size: clamp(2.3rem, 11vw, 3.4rem); }
  .ap-gap { width: 62vw; height: 34vw; border-radius: 999px; }
  .ap-cap { font-size: 15px; }
  .ap-photo img { object-position: 43% 40%; }
  .mt-b .mt-img, .mt-c .mt-img { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  .aperture { height: auto; }
  .ap-stage { position: relative; height: 82vh; }
  .ap-cap .w { opacity: 1; }
}
