/* Layout concept: an editorial portfolio. White pages, real photographs as chapter breaks,
   the Signal Blue "forward frame" line opening every section. Deliberately light-only,
   following the Living Brand System (no dark tech look). */
:root {
  color-scheme: light;
  --ink: #07111F;        /* Deep Intelligence: text, monogram */
  --blue: #1473E6;       /* Signal Blue: accent, links, actions */
  --cyan: #42D6FF;       /* Future Cyan: the 2% spark */
  --steel: #A8B3C2;      /* Steel: quiet text on dark */
  --mist: #EEF3F8;       /* Mist: alternate section ground */
  --paper: #FFFFFF;      /* Human White */
  --muted: #4B5768;      /* blue-biased neutral for secondary text */
  --line: #DCE3EC;
  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  --radius: 18px;
  --wrap: 1200px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
.site[lang="ar"], html[lang="ar"] { --display: "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif; --body: "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }
.site { font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; background: var(--paper); color: var(--ink); overflow-x: clip; }
.site[lang="ar"] { font-size: 18px; line-height: 1.85; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
.site[lang="ar"] h1, .site[lang="ar"] h2, .site[lang="ar"] h3 { letter-spacing: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip: auto; inset-inline-start: 16px; top: 12px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }

.label, .mono-label { font: 500 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.site[lang="ar"] .label { font-family: var(--body); font-size: 14px; letter-spacing: 0; font-weight: 600; text-transform: none; }
.mono-label { color: var(--blue); font-variant-numeric: tabular-nums; }
.label.sp { margin-top: 28px; }
.lead { font-size: 1.16rem; color: var(--muted); max-width: 62ch; }
.lead.wide { max-width: 70ch; margin-bottom: 40px; }
.muted { color: var(--muted); }

/* Header */
.site-header { position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,0.9); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--ink); font-size: 15px; font-weight: 500; }
.nav a[aria-current="page"] { color: var(--blue); }
.nav .lang { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; }
.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 10px 8px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .2s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Forward Frame: the blue line entering from the reading start */
.frame { display: block; width: 72px; height: 3px; background: var(--blue); margin: 0 0 22px; position: relative; }
.frame::after { content: ""; position: absolute; inset-inline-end: -10px; top: 0; width: 6px; height: 3px; background: var(--cyan); }

/* Photos */
.pic { margin: 0; min-width: 0; }
.pic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); background: var(--mist); }
.pic figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.45; }

/* Sections */
.sec { padding-block: 88px; }
.sec.tint { background: var(--mist); }
.sec.tight { padding-block: 56px; }
.sec-head { margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.15; font-weight: 600; }
.sec-head .lead { margin-top: 14px; }

/* Full-bleed photo band with quote */
.band { position: relative; isolation: isolate; color: var(--paper); }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,17,31,0.88) 0%, rgba(7,17,31,0.62) 48%, rgba(7,17,31,0.15) 100%); }
.site[dir="rtl"] .band::before { background: linear-gradient(270deg, rgba(7,17,31,0.88) 0%, rgba(7,17,31,0.62) 48%, rgba(7,17,31,0.15) 100%); }
.band-inner { padding-block: 120px; }
.band .quote { max-width: 760px; }
.band .quote blockquote { color: var(--paper); }
.band .quote figcaption { color: var(--steel); }

/* Feature: big image + list */
.feature { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: start; }
.feature-pic img { aspect-ratio: 16/9; }
.feature-side { min-width: 0; }

/* Galleries */
.gallery { display: grid; gap: 20px; margin-bottom: 40px; }
.gallery:last-child { margin-bottom: 0; }
.gallery.g3 { grid-template-columns: repeat(3, 1fr); }
.gallery.g4 { grid-template-columns: repeat(4, 1fr); }
.gallery .pic img { aspect-ratio: 4/5; }
.gallery.mosaic { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 200px; }
.gallery.mosaic .pic { display: flex; flex-direction: column; }
.gallery.mosaic .pic img { aspect-ratio: auto; flex: 1; min-height: 0; }
.gallery.mosaic .pic:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.gallery.mosaic .pic:nth-child(2) { grid-column: span 2; grid-row: span 2; }
.gallery.mosaic .pic:nth-child(3) { grid-column: span 2; grid-row: span 2; }
.gallery.mosaic .pic:nth-child(4) { grid-column: span 2; grid-row: span 2; }
.gallery.mosaic .pic:nth-child(5) { grid-column: span 2; grid-row: span 2; }

/* Cards and lists */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 0; min-width: 0; }
.tint .card { border-color: transparent; }
.card h3 { font-size: 1.2rem; margin-bottom: 6px; line-height: 1.3; }
.card p:last-child { margin-bottom: 0; }
.org { color: var(--ink); font-weight: 500; font-size: 15px; margin-bottom: 10px; }
.more { display: inline-flex; gap: 6px; font-weight: 600; font-size: 15px; margin-top: 8px; }

.timeline, .rows, .media-list, .plain { list-style: none; margin: 0; padding: 0; }
.timeline li, .rows li { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding-block: 28px; border-top: 1px solid var(--line); }
.tl-body { min-width: 0; }
.timeline h3, .rows h3 { font-size: 1.2rem; margin-bottom: 4px; }
.timeline .muted, .rows .muted { max-width: 70ch; margin-bottom: 0; }
.rows .mono-label, .timeline .mono-label { padding-top: 5px; margin: 0; }
.media-list li { padding-block: 22px; border-top: 1px solid var(--line); }
.media-list li:first-child { border-top: 0; padding-top: 0; }
.media-list h3 { font-size: 1.12rem; line-height: 1.4; margin-bottom: 6px; }
.media-list .muted { margin-bottom: 0; font-size: 15px; }
.press h3 a { color: var(--ink); }
.press h3 a:hover { color: var(--blue); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 9px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 15px; font-weight: 500; color: var(--ink); }

.quote { margin: 0; }
.quote blockquote { margin: 0 0 14px; font: 600 1.35rem/1.4 var(--display); color: var(--ink); }
.quote.big blockquote { font-size: clamp(1.7rem, 4vw, 2.8rem); line-height: 1.22; }
.quote blockquote::before { content: ""; display: block; width: 40px; height: 3px; background: var(--cyan); margin-bottom: 20px; }
.quote figcaption { color: var(--muted); font-size: 15px; }
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 56px; }

.testimonial blockquote { margin: 0 0 18px; color: var(--ink); }
.testimonial figcaption { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); }
.testimonial figcaption strong { color: var(--ink); font-size: 15px; }

.prose-col { max-width: 70ch; }
.prose { font-size: 1.1rem; }

.cta-band { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; padding: 40px; border-radius: 28px; background: var(--mist); }
.cta-pic img { aspect-ratio: 4/5; max-height: 420px; object-position: 50% 15%; }
.cta-text { min-width: 0; }
.cta-text h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: 12px; }
.cta-text .lead { margin-bottom: 24px; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.big-link { font: 600 1.25rem/1.3 var(--display); overflow-wrap: anywhere; }
.plain li { padding-block: 4px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 28px; }
.foot { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.sig { color: var(--muted); margin-top: 14px; }
.foot-links { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-links a { display: block; color: var(--ink); padding-block: 3px; font-size: 15px; }
.foot-links p { color: var(--muted); font-size: 15px; max-width: 30ch; }
.legal { margin-top: 40px; color: var(--muted); font-size: 13px; }

/* Responsive */
@media (max-width: 1000px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: calc(68px + env(safe-area-inset-top, 0px)) 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--paper); padding: 8px var(--gutter-r) 24px var(--gutter); border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .25s; visibility: hidden; }
  .nav.open { transform: none; visibility: visible; }
  .nav a { width: 100%; padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .lang { width: auto; margin-top: 16px; border: 1px solid var(--line); padding: 8px 16px; }
  .hero-grid, .ph-grid, .feature, .cta-band { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .hero-visual { max-width: 520px; }
  .cred { inset-inline-start: 16px; }
  .ph-pic img { max-height: 360px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .pillars, .quotes, .contact-grid { grid-template-columns: 1fr; }
  .gallery.g4 { grid-template-columns: repeat(2, 1fr); }
  .gallery.mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery.mosaic .pic:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery.mosaic .pic:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .cta-band { padding: 28px; gap: 28px; }
  .cta-pic img { max-height: 360px; }
}
@media (max-width: 640px) {
  .hero { padding-block: 40px 32px; }
  .sec { padding-block: 64px; }
  .page-hero { padding-block: 40px 8px; }
  .band-inner { padding-block: 80px; }
  .band::before, .site[dir="rtl"] .band::before { background: rgba(7,17,31,0.72); }
  .timeline li, .rows li { grid-template-columns: 1fr; gap: 4px; }
  .gallery.g3 { grid-template-columns: 1fr 1fr; }
  .gallery.g3 .pic:first-child { grid-column: span 2; }
  .gallery.g3 .pic:first-child img { aspect-ratio: 4/3; }
  .gallery.mosaic .pic figcaption { display: none; }
  .foot-links { gap: 32px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ===== Wordmark: the name is the identity ===== */
.wordmark { display: inline-flex; align-items: baseline; gap: 0.32em; font-family: var(--display); font-size: 21px; line-height: 1; letter-spacing: -0.015em; color: var(--ink); white-space: nowrap; }
.wordmark:hover { text-decoration: none; }
.wm-a { font-weight: 700; }
.wm-b { font-weight: 400; }
.site[lang="ar"] .wordmark { font-size: 22px; letter-spacing: 0; }

/* ===== Header over the photo stage ===== */
.site-header { transition: background-color .3s, border-color .3s, color .3s; }
.site-header.over { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.over .wordmark, .site-header.over .nav a { color: var(--paper); }
.site-header.over .nav .lang { border-color: rgba(255,255,255,0.35); }
.site-header.over .menu-btn span { background: var(--paper); }
.site-header.over.scrolled, .site-header.over.menu-open { background: rgba(255,255,255,0.92); border-bottom-color: var(--line); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); }
.site-header.scrolled .wordmark, .site-header.scrolled .nav a, .site-header.menu-open .wordmark { color: var(--ink); }
.site-header.scrolled .nav a[aria-current="page"] { color: var(--blue); }
.site-header.scrolled .nav .lang { border-color: var(--line); }
.site-header.scrolled .menu-btn span, .site-header.menu-open .menu-btn span { background: var(--ink); }
.site-header.over:not(.scrolled) .nav a[aria-current="page"] { color: var(--cyan); }

/* ===== Immersive stage ===== */
.immersive { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--paper); display: flex; align-items: flex-end; }
.immersive.home { min-height: clamp(640px, 100svh, 980px); }
.immersive.sub { min-height: clamp(460px, 72svh, 680px); }
.stage { position: absolute; inset: 0; z-index: -2; }
.stage-media { position: absolute; inset: 0; transform: scale(1.04); will-change: transform; }
.stage-media > img { width: 100%; height: 100%; object-fit: cover; }
.net { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.im-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.home .im-shade { background:
  linear-gradient(180deg, rgba(7,17,31,0.55) 0%, rgba(7,17,31,0) 22%),
  linear-gradient(270deg, rgba(7,17,31,0.94) 0%, rgba(7,17,31,0.78) 34%, rgba(7,17,31,0.15) 62%, rgba(7,17,31,0) 80%),
  linear-gradient(0deg, rgba(7,17,31,0.6) 0%, rgba(7,17,31,0) 30%); }
.sub .im-shade { background: linear-gradient(180deg, rgba(7,17,31,0.6) 0%, rgba(7,17,31,0.1) 30%, rgba(7,17,31,0.35) 55%, rgba(7,17,31,0.92) 100%); }
.im-content { position: relative; width: 100%; padding-block: 140px 72px; }
.home .im-text { width: min(620px, 100%); margin-left: auto; }
.eyebrow { font: 500 12px/1.5 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 18px; }
.site[lang="ar"] .eyebrow { font-family: var(--body); font-size: 14px; letter-spacing: 0; font-weight: 600; text-transform: none; }
.immersive h1 { color: var(--paper); font-weight: 700; letter-spacing: -0.035em; }
.site[lang="ar"] .immersive h1 { letter-spacing: 0; }
.home h1 { font-size: clamp(3.4rem, 8vw, 6.6rem); line-height: 0.95; margin-bottom: 20px; }
.sub h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.02; margin-bottom: 16px; max-width: 16ch; }
.promise { font: 600 clamp(1.35rem, 2.6vw, 1.9rem)/1.25 var(--display); color: var(--cyan); margin-bottom: 16px; }
.im-lead { font-size: 1.12rem; color: rgba(255,255,255,0.82); max-width: 52ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 16px; border: 1px solid var(--line); color: var(--ink); background: var(--paper); transition: transform .15s, box-shadow .15s, background-color .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(7,17,31,0.18); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: var(--paper); }
.btn.ghost { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.35); color: var(--paper); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn.ghost:hover { background: rgba(255,255,255,0.16); }

/* AR frame that locks onto the face */
.hud { position: absolute; pointer-events: none; transition: transform .35s ease; }
.hud .c { position: absolute; width: 22px; height: 22px; border: 2px solid var(--cyan); transition: all .35s ease; }
.hud .tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hud .tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hud .bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hud .br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hud .scan { position: absolute; left: 6%; right: 6%; height: 1px; top: 0; background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: 0.8; animation: scan 3.2s ease-in-out infinite; }
.hud-label { position: absolute; left: 0; top: calc(100% + 10px); white-space: nowrap; font: 500 11px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper); background: rgba(7,17,31,0.72); padding: 6px 10px; border-radius: 6px; border-left: 2px solid var(--cyan); }
.site[lang="ar"] .hud-label { font-family: var(--body); letter-spacing: 0; text-transform: none; font-size: 13px; }
.hud.lock { transform: scale(0.92); }
.hud.lock .c { width: 30px; height: 30px; border-color: var(--paper); }
@keyframes scan { 0%, 100% { top: 4%; } 50% { top: 96%; } }
.signal { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--paper); background: rgba(7,17,31,0.55); border: 1px solid rgba(66,214,255,0.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); white-space: nowrap; cursor: default; opacity: 0; transition: opacity .6s ease, border-color .2s, background-color .2s; }
.stage.live .signal { opacity: 1; }
.stage.live .signal[data-i="1"] { transition-delay: .15s; }
.stage.live .signal[data-i="2"] { transition-delay: .3s; }
.stage.live .signal[data-i="3"] { transition-delay: .45s; }
.signal i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(66,214,255,0.2); }
.signal:hover { border-color: var(--cyan); background: rgba(20,115,230,0.55); }

/* Organization ticker */
.ticker { background: var(--ink); color: var(--steel); overflow: hidden; border-top: 1px solid rgba(255,255,255,0.08); padding-block: 18px; }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: tick 60s linear infinite; }
.site[dir="rtl"] .ticker-track { animation-name: tick-rtl; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { font: 500 14px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.ticker span::after { content: "·"; margin-inline-start: 48px; color: var(--blue); }
@keyframes tick { to { transform: translateX(-50%); } }
@keyframes tick-rtl { to { transform: translateX(50%); } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; }
.stats div { border-inline-start: 2px solid var(--blue); padding-inline-start: 18px; }

/* Pillars: immersive photo cards */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { position: relative; display: block; aspect-ratio: 3/4; max-width: 100%; border-radius: 22px; overflow: hidden; color: var(--paper); isolation: isolate; }
.pillar:hover { text-decoration: none; }
.pillar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.pillar:hover img { transform: scale(1.06); }
.pillar-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,17,31,0) 35%, rgba(7,17,31,0.88) 100%); transition: background .3s; }
.pillar:hover .pillar-shade { background: linear-gradient(180deg, rgba(7,17,31,0.1) 20%, rgba(7,17,31,0.92) 100%); }
.pillar-body { position: absolute; inset: auto 0 0 0; padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.pillar-t { font: 600 1.45rem/1.2 var(--display); }
.pillar-d { color: rgba(255,255,255,0.82); font-size: 15px; }
.pillar .more { color: var(--cyan); }

/* 404 fallback */
.page-hero { padding-block: 160px 80px; background: var(--ink); color: var(--paper); }
.page-hero h1 { color: var(--paper); font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 16px; }
.page-hero .lead { color: rgba(255,255,255,0.8); }


/* ===== Utilities ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow.dark { color: var(--blue); }
.nav .nav-cta { padding: 8px 16px; border-radius: 999px; background: var(--blue); color: var(--paper) !important; font-weight: 600; }
.nav .nav-cta:hover { text-decoration: none; filter: brightness(1.08); }

/* ===== Hero slider ===== */
.slider { display: block; }
.slide { position: absolute; inset: 0; display: flex; align-items: flex-end; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; z-index: 1; }
.slide .im-content { padding-block: 140px 150px; }
.slide.is-active .im-text > * { animation: rise .8s ease both; }
.slide.is-active .im-text > :nth-child(2) { animation-delay: .08s; }
.slide.is-active .im-text > :nth-child(3) { animation-delay: .16s; }
.slide.is-active .im-text > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
.side-left .im-text { margin-left: 0; margin-right: auto; }
.side-right .im-text { margin-left: auto; margin-right: 0; }
.home .side-left .im-shade { background:
  linear-gradient(180deg, rgba(7,17,31,0.55) 0%, rgba(7,17,31,0) 22%),
  linear-gradient(90deg, rgba(7,17,31,0.94) 0%, rgba(7,17,31,0.78) 30%, rgba(7,17,31,0.2) 55%, rgba(7,17,31,0) 75%),
  linear-gradient(0deg, rgba(7,17,31,0.75) 0%, rgba(7,17,31,0) 32%); }
.slide-title { font: 700 clamp(2.4rem, 4.6vw, 4.2rem)/1.02 var(--display); letter-spacing: -0.03em; color: var(--paper); margin-bottom: 18px; text-wrap: balance; }
.site[lang="ar"] .slide-title { letter-spacing: 0; line-height: 1.2; }
.slider-ui { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 5; display: flex; align-items: flex-end; gap: 16px; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; flex: 1; min-width: 0; }
.tab { all: unset; cursor: pointer; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 10px; color: rgba(255,255,255,0.62); font-size: 14px; font-weight: 600; min-width: 0; }
.tab:focus-visible { outline: 2px solid var(--cyan); outline-offset: 6px; border-radius: 4px; }
.tab.is-active, .tab:hover { color: var(--paper); }
.tab-n { font: 500 12px/1.4 var(--mono); color: var(--cyan); }
.tab-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab-bar { grid-column: 1 / -1; height: 2px; background: rgba(255,255,255,0.22); overflow: hidden; border-radius: 2px; }
.tab-bar i { display: block; height: 100%; background: var(--cyan); transform: scaleX(0); transform-origin: left; }
.site[dir="rtl"] .tab-bar i { transform-origin: right; }
.tab.is-active .tab-bar i { background: var(--cyan); }
.play-btn { all: unset; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.35); display: grid; place-items: center; flex: none; }
.play-btn span { width: 10px; height: 12px; border-left: 3px solid var(--paper); border-right: 3px solid var(--paper); box-sizing: border-box; }
.play-btn.is-paused span { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--paper); margin-left: 3px; }
.play-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ===== Speaking band (home) ===== */
.speak-band { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.sb-pic img { aspect-ratio: 4/5; max-height: 560px; object-position: 50% 20%; border-radius: 26px; }
.sb-text { min-width: 0; }
.sb-text h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin-bottom: 14px; }
.topic-chips { list-style: none; padding: 0; margin: 22px 0 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chips li { font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }

/* ===== Projects ===== */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.project { display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); min-width: 0; transition: border-color .2s, transform .2s, box-shadow .2s; }
.project:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(7,17,31,0.08); }
.project.flagship { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.project.flagship h3 { color: var(--paper); }
.project.flagship .muted { color: rgba(255,255,255,0.75); }
.project.flagship .status { background: var(--blue); color: var(--paper); }
.project.flagship .more { color: var(--cyan); }
.project.flagship .join-btn { background: transparent; color: var(--paper); border-color: rgba(255,255,255,0.35); }
.pj-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pj-top h3 { font-size: 1.25rem; }
.status { font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: var(--mist); color: var(--blue); white-space: nowrap; }
.site[lang="ar"] .status { font-family: var(--body); letter-spacing: 0; text-transform: none; font-size: 12px; }
.project .muted { flex: 1; margin: 0; }
.pj-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.join-btn { padding: 10px 18px; font-size: 14px; cursor: pointer; }
.pj-actions .more { margin: 0; }
.bd-note { padding: 36px; border-radius: 24px; background: var(--paper); border-inline-start: 4px solid var(--blue); margin-bottom: 8px; }
.bd-note h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.3; margin-bottom: 20px; max-width: 36ch; }

/* ===== Speaking page ===== */
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.topic { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); min-width: 0; }
.topic h3 { font-size: 1.2rem; margin: 6px 0 8px; }
.topic .muted { margin: 0; }
.spk-meta { display: flex; gap: 48px; flex-wrap: wrap; margin-top: 36px; }
.invite { background: var(--ink); color: var(--paper); scroll-margin-top: 70px; }
.invite-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 56px; align-items: start; }
.inv-pic img { aspect-ratio: 3/4; object-position: 50% 25%; border-radius: 24px; }
.inv-main { min-width: 0; }
.invite .sec-head h2 { color: var(--paper); }
.invite .lead { color: rgba(255,255,255,0.75); }

/* ===== Forms ===== */
.rq-form { display: grid; gap: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fld { display: grid; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.fld input, .fld select, .fld textarea { font: 400 16px/1.4 var(--body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; min-width: 0; }
.fld textarea { resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.invite .fld span { color: rgba(255,255,255,0.85); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-note { margin: 0; font-size: 13px; color: var(--muted); }
.invite .form-note { color: var(--steel); }
.form-status { margin: 0; font-weight: 600; font-size: 15px; }
.form-status:empty { display: none; }
.form-status.ok { color: #0F8A5F; }
.invite .form-status.ok { color: var(--cyan); }
.form-status.err { color: #C2410C; }
.invite .form-status.err { color: #FDBA74; }
.btn:disabled { opacity: .6; cursor: progress; }

/* Join dialog */
.join-dialog { width: min(600px, calc(100% - 32px)); border: 0; border-radius: 24px; padding: 28px; color: var(--ink); background: var(--paper); box-shadow: 0 30px 80px rgba(7,17,31,0.35); }
.join-dialog::backdrop { background: rgba(7,17,31,0.6); backdrop-filter: blur(4px); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dlg-head h2 { font-size: 1.5rem; }
.dlg-close { all: unset; cursor: pointer; font-size: 28px; line-height: 1; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.dlg-close:hover, .dlg-close:focus-visible { background: var(--mist); }

/* Email reveal */
.reveal { display: inline-flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.reveal-out { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.reveal-out[hidden] { display: none; }
.addr { font: 600 1.1rem/1.3 var(--display); color: var(--ink); overflow-wrap: anywhere; user-select: all; }
.link-btn { all: unset; cursor: pointer; color: var(--blue); font-weight: 600; font-size: 14px; }
.link-btn:hover { text-decoration: underline; }
.foot-reveal .btn { padding: 8px 14px; font-size: 14px; }
.foot-reveal .addr { font-size: 15px; }
.btn.ghost-dark { background: var(--paper); color: var(--ink); }

/* Contact */
.intents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px; }
.intent { padding: 26px; border-radius: var(--radius); background: var(--mist); min-width: 0; }
.intent h3 { font-size: 1.2rem; margin-bottom: 8px; }
.intent .muted { margin: 0; }
.contact-form-wrap { max-width: 760px; margin-bottom: 48px; }
.contact-actions, .contact-meta { display: flex; gap: 48px; flex-wrap: wrap; padding-top: 32px; border-top: 1px solid var(--line); margin-top: 8px; }
.contact-meta { margin-top: 32px; }
.contact-meta .chips a { color: var(--ink); }

/* Testimonials row */
.t-row { display: grid; grid-auto-flow: column; grid-auto-columns: min(380px, 85%); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.t-row > * { scroll-snap-align: start; }

/* Beliefs */
.beliefs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.belief { background: var(--paper); padding: 30px; min-width: 0; }
.belief h3 { font-size: 1.3rem; line-height: 1.3; margin: 4px 0 12px; }
.belief .muted { margin: 0; }

/* An-Nahar columns */
.columns { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.columns li { padding-block: 18px; border-top: 1px solid #D3DCE7; min-width: 0; }
.columns .mono-label { margin-bottom: 6px; }
.ar-title { display: block; font: 600 1.12rem/1.6 "IBM Plex Sans Arabic", var(--body); color: var(--ink); text-align: start; }
.ar-title:hover { color: var(--blue); }
.en-gloss { margin: 4px 0 0; font-size: 14px; }
.more-cols { margin-top: 8px; }
.more-cols summary { cursor: pointer; font-weight: 600; color: var(--blue); padding-block: 14px; }
.on-request { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 32px; padding: 22px 26px; border-radius: 18px; background: var(--paper); }
.on-request p { margin: 0; font-weight: 600; }

/* Videos */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.video { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--radius); background: var(--ink); color: var(--paper); min-height: 180px; }
.video:hover { text-decoration: none; background: #0D1E35; }
.video .play { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); position: relative; margin-bottom: auto; }
.video .play::after { content: ""; position: absolute; left: 17px; top: 13px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent var(--paper); }
.video .mono-label { color: var(--cyan); margin: 0; }
.v-title { font: 600 1.05rem/1.35 var(--display); }

@media (max-width: 1000px) {
  .site-header.over .nav a { color: var(--ink); }
  .home .im-shade { background: linear-gradient(180deg, rgba(7,17,31,0.5) 0%, rgba(7,17,31,0) 25%, rgba(7,17,31,0.25) 45%, rgba(7,17,31,0.95) 78%); }
  .home .im-text { margin-left: 0; }
  .im-content { padding-block: 120px 48px; }
  .immersive.home { min-height: clamp(720px, 100svh, 900px); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .pillar { aspect-ratio: 4/3; }
  .signal { display: none; }
  .speak-band, .invite-grid { grid-template-columns: 1fr; }
  .sb-pic img, .inv-pic img { max-height: 380px; aspect-ratio: 4/3; }
  .projects, .topics, .intents, .beliefs, .videos { grid-template-columns: 1fr 1fr; }
  .slide .im-content { padding-block: 120px 140px; }
  .tab-t { font-size: 13px; }
  .nav .nav-cta { width: auto; margin-top: 16px; padding: 10px 18px; border-bottom: 0; }
}
@media (max-width: 640px) {
  .home h1 { font-size: clamp(2.8rem, 13vw, 3.6rem); }
  .wordmark { font-size: 19px; }
  .projects, .topics, .intents, .beliefs, .videos, .columns, .grid2 { grid-template-columns: 1fr; }
  .tabs { gap: 10px; }
  .tab-t { display: none; }
  .slide-title { font-size: clamp(2.1rem, 10vw, 2.8rem); }
  .bd-note { padding: 24px; }
}
/* ===== Writing ===== */
.art-feature { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.art-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); color: var(--ink); min-width: 0; transition: transform .15s, box-shadow .15s; }
.art-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(7,17,31,0.10); }
.art-card .art-t { font: 600 1.25rem/1.35 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
.art-card .muted { font-size: 15px; flex: 1; }
.art-card .mono-label { margin: 0; }
.art-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { font: 500 14px/1 var(--body); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.art-list h3 a { color: var(--ink); }
.art-list h3 a:hover { color: var(--blue); }
.art-item[hidden] { display: none; }
.post-hero { padding-block: 150px 64px; }
.post-hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.12; max-width: 22ch; }
.post-hero .mono-label { color: var(--cyan); }
.post-hero .lead { max-width: 60ch; }
.post-hero .back { display: inline-block; color: var(--steel); font-size: 15px; margin-bottom: 28px; }
.post-hero .byline { margin: 28px 0 0; font: 600 15px/1 var(--display); color: var(--paper); }
.post-hero .byline .wm-b { color: var(--cyan); }
.post-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; padding-block: 64px 88px; align-items: start; }
.post-text { font-size: 1.12rem; line-height: 1.75; }
.post-text h2 { font-size: 1.55rem; margin: 2.2em 0 0.6em; }
.post-text h3 { font-size: 1.2rem; margin: 1.8em 0 0.5em; }
.post-text p, .post-text ul, .post-text ol { margin: 0 0 1.15em; }
.post-text li { margin-bottom: 0.5em; }
.post-text blockquote { margin: 1.6em 0; padding-inline-start: 22px; border-inline-start: 3px solid var(--cyan); font: 600 1.25rem/1.5 var(--display); }
.post-text a { text-decoration: underline; text-underline-offset: 3px; }
.post-aside { position: sticky; top: 100px; min-width: 0; }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 500; }
.share a:hover { text-decoration: none; border-color: var(--blue); color: var(--blue); }
.cite { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.aside-cta { margin-top: 28px; padding: 22px; border-radius: var(--radius); background: var(--mist); }
.aside-cta p { font-size: 15px; color: var(--muted); margin: 0 0 14px; }
.aside-cta .btn { font-size: 15px; padding: 12px 18px; }
@media (max-width: 1000px) { .post-body { grid-template-columns: 1fr; gap: 40px; } .post-aside { position: static; } }
@media (max-width: 640px) { .post-hero { padding-block: 112px 40px; } .post-body { padding-block: 40px 56px; } .post-text { font-size: 1.05rem; } }

@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; flex-wrap: wrap; width: auto; } .hud .scan { animation: none; } }
.site[lang="ar"] .mono-label, .post[lang="ar"] .mono-label, .site[lang="ar"] .label { letter-spacing: 0; }
