/* ==========================================================================
   SAAD LACHHAB — "Flight Recorder"
   ========================================================================== */

:root {
  --ink: #08090b;
  --ink-1: #0c0d10;
  --ink-2: #121418;
  --ink-3: #1a1d22;
  --line: rgba(237, 233, 225, .09);
  --line-2: rgba(237, 233, 225, .16);
  --bone: #ede9e1;
  --bone-2: #c9c5bd;
  --mute: #8a877f;
  --mute-2: #5d5b56;
  --signal: #ff5b14;
  --signal-2: #ff8a52;
  --signal-glow: rgba(255, 91, 20, .35);
  --live: #5ef0a8;

  --f-display: "Big Shoulders Display", "Noto Kufi Arabic", Impact, sans-serif;
  --f-serif: "Fraunces", Georgia, serif;
  --f-sans: "Geist", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1720px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --header-h: 72px;
  color-scheme: dark;
}

html[lang="ar"] {
  --f-display: "Noto Kufi Arabic", "Big Shoulders Display", sans-serif;
  --f-serif: "Noto Kufi Arabic", "Fraunces", serif;
  --f-sans: "IBM Plex Sans Arabic", "Geist", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
body.is-loading { overflow: hidden; height: 100vh; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
.layer:focus-visible, .btn:focus-visible { outline-offset: 4px; }
::selection { background: var(--signal); color: var(--ink); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
html[lang="ar"] .mono { letter-spacing: 0; text-transform: none; font-family: var(--f-sans); font-size: 13px; }
.mute { color: var(--mute); }
.sig { color: var(--signal); }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 300; letter-spacing: -.01em; }
html[lang="ar"] .serif { font-style: normal; font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.split-line { overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }

/* grain + vignette ---------------------------------------------------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); }
}

/* cursor ---------------------------------------------------------------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 120; pointer-events: none; mix-blend-mode: difference; display: none; }
.cursor__dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--bone); }
.cursor__ring {
  position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  border: 1px solid rgba(237, 233, 225, .6); transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s;
}
.cursor__label {
  position: absolute; transform: translate(-50%, -50%); font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .25s; white-space: nowrap;
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--bone); }
.cursor.is-view { mix-blend-mode: normal; }
.cursor.is-view .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--signal); border-color: var(--signal); }
.cursor.is-view .cursor__label { opacity: 1; }
.cursor.is-view .cursor__dot { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
}

/* boot preloader -------------------------------------------------------- */
.boot {
  position: fixed; inset: 0; z-index: 200; background: var(--ink); display: grid; place-items: center;
  padding: var(--gutter);
}
.boot__inner { width: min(560px, 100%); }
.boot__log { font-family: var(--f-mono); font-size: 12px; line-height: 1.9; color: var(--mute); min-height: 11.5em; direction: ltr; text-align: left; }
.boot__log .ok { color: var(--live); }
.boot__log .hl { color: var(--bone); }
.boot__bar { position: relative; height: 1px; background: var(--line-2); margin-top: 22px; overflow: hidden; }
.boot__bar i { position: absolute; inset: 0; background: var(--signal); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px var(--signal); }
.boot__meta { display: flex; justify-content: space-between; margin-top: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--mute-2); direction: ltr; }
.boot__count { font-family: var(--f-display); font-weight: 800; font-size: clamp(64px, 12vw, 132px); line-height: .8; color: var(--bone); text-align: right; margin-top: 18px; font-variant-numeric: tabular-nums; direction: ltr; }
.boot__count span { color: var(--signal); }

/* curtain (language switch) */
.curtain { position: fixed; inset: 0; z-index: 180; pointer-events: none; display: grid; grid-template-columns: repeat(5, 1fr); }
.curtain i { background: var(--signal); transform: scaleY(0); transform-origin: 50% 100%; }

/* header ---------------------------------------------------------------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-inline: var(--gutter);
  transition: transform .5s var(--ease), background .4s;
}
.hdr::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: linear-gradient(to bottom, rgba(8, 9, 11, .92), rgba(8, 9, 11, .72)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr.is-scrolled::before { opacity: 1; }
.hdr.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand__name { font-family: "Big Shoulders Display", sans-serif; font-weight: 800; font-size: 19px; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.brand__name small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 9.5px; letter-spacing: .16em; color: var(--mute); margin-top: 4px; }
html[lang="ar"] .brand__name small { letter-spacing: 0; font-family: var(--f-sans); font-size: 11px; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { position: relative; padding: 8px 12px; font-size: 13.5px; color: var(--bone-2); transition: color .25s; }
.nav a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 4px; height: 1px; background: var(--signal); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover { color: var(--bone); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav a .n { font-family: var(--f-mono); font-size: 10px; color: var(--signal); margin-inline-end: 6px; }
.hdr__right { display: flex; align-items: center; gap: 10px; }
.clock { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: var(--mute); white-space: nowrap; direction: ltr; }
.clock b { color: var(--bone); font-weight: 400; }
.langs { display: flex; border: 1px solid var(--line-2); border-radius: 99px; padding: 3px; position: relative; }
.langs button { position: relative; z-index: 1; min-width: 34px; height: 28px; padding: 0 9px; border-radius: 99px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--mute); transition: color .3s; }
.langs button[data-lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 13px; letter-spacing: 0; }
.langs button.is-active { color: var(--ink); }
.langs__pill { position: absolute; top: 3px; height: 28px; border-radius: 99px; background: var(--bone); transition: left .45s var(--ease), width .45s var(--ease); left: 3px; width: 34px; }
.kbtn { direction: ltr; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 99px; font-family: var(--f-mono); font-size: 11px; color: var(--bone-2); transition: border-color .3s, color .3s; }
.kbtn:hover { border-color: var(--signal); color: var(--bone); }
.kbtn kbd { font-family: inherit; padding: 1px 6px; border-radius: 5px; background: var(--ink-3); color: var(--mute); font-size: 10px; }
.burger { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.burger i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--bone); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger i:nth-child(1) { top: 16px; } .burger i:nth-child(2) { top: 23px; }
.menu-open .burger i:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-open .burger i:nth-child(2) { top: 19px; transform: rotate(-45deg); }

.mnav { position: fixed; inset: 0; z-index: 95; background: var(--ink); padding: calc(var(--header-h) + 24px) var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-io); visibility: hidden; }
.menu-open .mnav { clip-path: inset(0 0 0 0); visibility: visible; }
.mnav a { display: flex; align-items: baseline; gap: 14px; font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 12vw, 64px); line-height: 1.08; text-transform: uppercase; border-bottom: 1px solid var(--line); padding: 8px 0; }
.mnav a span { font-family: var(--f-mono); font-size: 11px; color: var(--signal); font-weight: 400; }
.mnav__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* buttons ------------------------------------------------------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 26px; border-radius: 99px;
  font-size: 14.5px; font-weight: 500; overflow: hidden; isolation: isolate; white-space: nowrap;
  border: 1px solid var(--line-2); transition: border-color .4s, color .4s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bone); border-radius: inherit; transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover { color: var(--ink); border-color: var(--bone); }
.btn:hover::before { transform: translateY(0); }
.btn--sig { background: var(--signal); border-color: var(--signal); color: #120600; }
.btn--sig::before { background: var(--bone); }
.btn .arr { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.btn:hover .arr { transform: translateX(4px) rotate(-45deg); }
html[dir="rtl"] .btn .arr { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(4px) rotate(-45deg); }

/* section scaffolding ------------------------------------------------ */
section { position: relative; }
.sec { padding-block: clamp(96px, 14vw, 200px); }
.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); }
.eyebrow .idx { color: var(--signal); }
.eyebrow .rule { flex: 1; height: 1px; background: var(--line-2); transform-origin: left; }
html[dir="rtl"] .eyebrow .rule { transform-origin: right; }
.h-xl {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase; line-height: .86; letter-spacing: -.005em;
  font-size: clamp(56px, 10.5vw, 176px); margin: 0;
}
.h-lg { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; line-height: .9; font-size: clamp(44px, 7vw, 112px); margin: 0; }
.h-md { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; line-height: .95; font-size: clamp(30px, 3.6vw, 54px); margin: 0; }
html[lang="ar"] .h-xl { font-size: clamp(42px, 8vw, 132px); line-height: 1.12; font-weight: 800; }
html[lang="ar"] .h-lg { font-size: clamp(34px, 5.4vw, 86px); line-height: 1.2; }
html[lang="ar"] .h-md { font-size: clamp(24px, 2.8vw, 42px); line-height: 1.3; }
.h-xl .serif, .h-lg .serif, .h-md .serif { text-transform: none; font-weight: 300; letter-spacing: -.02em; }
.lede { font-size: clamp(18px, 1.6vw, 23px); line-height: 1.5; color: var(--bone-2); max-width: 46ch; }

/* HERO ================================================================ */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: var(--header-h); overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 12) 25%;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 75%);
}
.hero__glow { position: absolute; width: 60vw; height: 60vw; left: 50%; top: 55%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255, 91, 20, .13), transparent 60%); filter: blur(20px); pointer-events: none; }
.hero__top { position: absolute; top: calc(var(--header-h) + 18px); inset-inline: var(--gutter); display: flex; justify-content: space-between; gap: 20px; z-index: 2; }
.hero__top .mono { color: var(--mute); }
.hero__inner { position: relative; z-index: 2; padding-bottom: clamp(28px, 4vw, 48px); }
.hero__kicker { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(18px, 2.4vw, 30px); color: var(--bone-2); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(94, 240, 168, .6); animation: ping 2s infinite; flex: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(94, 240, 168, .55); } 70% { box-shadow: 0 0 0 10px rgba(94, 240, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 240, 168, 0); } }
.hero__title { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; line-height: .82; font-size: clamp(64px, 14.2vw, 248px); letter-spacing: -.01em; margin: 0; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .02em; }
.hero__title .line:last-child { padding-bottom: .26em; margin-bottom: -.24em; }
.hero__title .line > span { display: inline-block; }
.hero__title .serif { color: var(--signal); font-weight: 300; text-transform: none; letter-spacing: -.035em; padding-inline-end: .04em; }
html[lang="ar"] .hero__title { font-size: clamp(50px, 10.5vw, 176px); line-height: 1.12; font-weight: 800; }
html[lang="fr"] .hero__title { font-size: clamp(54px, 12.2vw, 212px); }
.hero__bottom { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: clamp(20px, 4vw, 64px); align-items: end; margin-top: clamp(28px, 4vw, 56px); padding-top: 22px; border-top: 1px solid var(--line-2); }
.hero__bottom p { margin: 0; color: var(--bone-2); font-size: clamp(15px, 1.15vw, 17px); max-width: 44ch; }
.hero__bottom p b { color: var(--bone); font-weight: 500; }
.hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.scrollcue { display: flex; align-items: center; gap: 12px; color: var(--mute); }
.scrollcue svg { width: 44px; height: 18px; }
.scrollcue path { stroke: var(--signal); stroke-dasharray: 6 4; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }

/* MARQUEE ============================================================= */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--ink-1); direction: ltr; }
.ticker__track { display: flex; width: max-content; animation: tick 48s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: flex; align-items: center; gap: 28px; padding-inline-end: 28px; font-family: "Big Shoulders Display", sans-serif; font-weight: 700; font-size: clamp(20px, 2vw, 28px); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.ticker__item i { width: 7px; height: 7px; background: var(--signal); transform: rotate(45deg); flex: none; }
@keyframes tick { to { transform: translateX(-50%); } }

/* MANIFESTO ============================================================ */
.manifesto { padding-block: clamp(110px, 16vw, 240px); }
.manifesto__text { font-family: var(--f-sans); font-weight: 400; font-size: clamp(28px, 4.1vw, 66px); line-height: 1.12; letter-spacing: -.025em; margin: 0; max-width: 21ch; }
html[lang="ar"] .manifesto__text { letter-spacing: 0; line-height: 1.5; font-size: clamp(24px, 3.4vw, 54px); max-width: 24ch; }
.manifesto__text .w { color: rgba(237, 233, 225, .14); transition: none; }
.manifesto__text .serif { font-weight: 300; }
.manifesto__text em.sig { font-style: normal; }
.manifesto__aside { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(56px, 8vw, 110px); }
.manifesto__aside div { border-top: 1px solid var(--line-2); padding-top: 16px; }
.manifesto__aside b { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 2.4vw, 36px); text-transform: uppercase; line-height: 1; margin-bottom: 8px; }
.manifesto__aside p { margin: 0; color: var(--mute); font-size: 14.5px; max-width: 34ch; }


.manifesto__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 6vw, 120px); align-items: start; }
.manifesto__grid .scope { order: 2; position: sticky; top: calc(var(--header-h) + 40px); }
.scope { border: 1px solid var(--line-2); border-radius: 14px; background: var(--ink-1); padding: 14px; }
.scope__head, .scope__foot { display: flex; justify-content: space-between; color: var(--mute); font-size: 10.5px; }
.scope__foot b { color: var(--bone); font-weight: 400; font-variant-numeric: tabular-nums; }
.scope canvas { display: block; width: 100%; height: 170px; margin: 12px 0; border-radius: 8px; background:
  linear-gradient(rgba(237,233,225,.05) 1px, transparent 1px) 0 0 / 100% 25%, linear-gradient(90deg, rgba(237,233,225,.05) 1px, transparent 1px) 0 0 / 12.5% 100%, #0a0b0d; }
#scopeState { color: var(--signal); }
@media (max-width: 960px) { .manifesto__grid { grid-template-columns: 1fr; } .manifesto__grid .scope { position: relative; top: 0; order: 0; max-width: 420px; } .traj__head { margin-bottom: 32px !important; } }

/* IMPACT =============================================================== */
.impact__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); border-inline-start: 1px solid var(--line); }
.metric { position: relative; padding: clamp(22px, 2.6vw, 36px); border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: clamp(220px, 21vw, 300px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; transition: background .5s; }
.metric:hover { background: var(--ink-1); }
.metric__top { display: flex; justify-content: space-between; color: var(--mute); }
.metric__num { font-family: "Big Shoulders Display", sans-serif; font-weight: 800; font-size: clamp(64px, 7.4vw, 124px); line-height: .85; letter-spacing: -.01em; font-variant-numeric: tabular-nums; direction: ltr; display: flex; align-items: baseline; }
html[dir="rtl"] .metric__num { justify-content: flex-end; }
.metric__num sup, .metric__num small { font-size: .42em; color: var(--signal); margin-inline-start: .05em; font-weight: 700; vertical-align: baseline; }
.metric__num .pre { font-size: .5em; color: var(--signal); margin-inline-end: .04em; }
.metric__label { font-size: 14.5px; color: var(--bone-2); max-width: 26ch; margin-top: 10px; }
.metric__label small { display: block; color: var(--mute); font-size: 12.5px; margin-top: 4px; }
.metric svg.spark { position: absolute; inset-inline-end: 18px; top: 50%; width: 42%; height: 40px; opacity: .55; }
.metric svg.spark path { fill: none; stroke: var(--signal); stroke-width: 1.4; }
html[dir="rtl"] .metric svg.spark { transform: scaleX(-1); }

/* TRAJECTORY (flight log) ============================================= */
.traj { padding-top: clamp(96px, 14vw, 200px); overflow: hidden; }
.traj__pin { position: relative; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.traj__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(24px, 4vh, 48px); }
.traj__track { position: relative; display: flex; gap: clamp(16px, 2vw, 28px); padding-inline: var(--gutter); width: max-content; will-change: transform; }
.traj__path { position: absolute; left: 0; top: -104px; height: 84px; width: 100%; pointer-events: none; overflow: visible; }
.traj__head { margin-bottom: clamp(110px, 15vh, 150px) !important; }
.leg[data-iata]::before { content: attr(data-iata); position: absolute; inset-inline-end: -6px; bottom: 52px; font-family: "Big Shoulders Display", sans-serif; font-weight: 900; font-size: 150px; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(237, 233, 225, .07); pointer-events: none; letter-spacing: -.02em; transition: -webkit-text-stroke-color .5s; }
.leg[data-iata]:hover::before { -webkit-text-stroke-color: rgba(255, 91, 20, .35); }
.leg--now[data-iata]::before { -webkit-text-stroke-color: rgba(255, 91, 20, .3); }
.leg > div { position: relative; }
.traj__path path.base { stroke: var(--line-2); stroke-width: 1; fill: none; stroke-dasharray: 3 6; }
.traj__path path.fly { stroke: var(--signal); stroke-width: 2; fill: none; filter: drop-shadow(0 0 6px var(--signal-glow)); }
.leg {
  position: relative; flex: none; width: clamp(290px, 27vw, 390px); min-height: clamp(380px, 52vh, 470px); padding: 26px; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, var(--ink-1), var(--ink)); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; transition: border-color .4s;
}
.leg:hover { border-color: var(--line-2); }
.leg::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 80%; aspect-ratio: 1; background: radial-gradient(circle, rgba(255, 91, 20, .12), transparent 60%); opacity: 0; transition: opacity .6s; pointer-events: none; }
.leg:hover::after { opacity: 1; }
.leg__top { display: flex; justify-content: space-between; align-items: center; color: var(--mute); }
.leg__alt { display: flex; align-items: center; gap: 6px; }
.leg__alt i { display: inline-block; width: 4px; background: var(--signal); border-radius: 1px; }
.leg__year { font-family: "Big Shoulders Display", sans-serif; font-weight: 800; font-size: clamp(54px, 5vw, 76px); line-height: .9; color: var(--bone); margin: 18px 0 6px; direction: ltr; text-align: start; }
html[dir="rtl"] .leg__year { text-align: right; }
.leg__role { font-family: var(--f-display); font-weight: 700; font-size: 26px; line-height: 1.02; text-transform: uppercase; margin: 0; }
html[lang="ar"] .leg__role { font-size: 21px; line-height: 1.4; }
.leg__co { color: var(--signal); margin-top: 6px; }
.leg__dur { color: var(--mute); margin-top: 6px; font-size: 10.5px; }
.leg__dur b { color: var(--bone); font-weight: 400; }
.leg__body { color: var(--bone-2); font-size: 14.5px; margin: 16px 0 0; }
.leg__kpi { display: flex; gap: 18px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.leg__kpi div { font-size: 12px; color: var(--mute); line-height: 1.3; }
.leg__kpi b { display: block; font-family: "Big Shoulders Display", sans-serif; font-size: 28px; font-weight: 800; color: var(--bone); line-height: 1; direction: ltr; }
.leg--now { border-color: rgba(255, 91, 20, .45); background: linear-gradient(180deg, rgba(255, 91, 20, .09), var(--ink)); }
.leg--end { justify-content: center; align-items: flex-start; border-style: dashed; background: transparent; }
.leg--end .h-md { margin-bottom: 18px; }

/* WORK ================================================================= */
.work__intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(56px, 8vw, 120px); }
.case { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 88px); padding-block: clamp(56px, 8vw, 120px); border-top: 1px solid var(--line); }
.case:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.case:nth-child(even) .case__media { order: -1; }
.case__info { align-self: start; position: sticky; top: calc(var(--header-h) + 32px); }
.case__meta { display: flex; justify-content: space-between; gap: 12px; color: var(--mute); margin-bottom: 26px; }
.case__meta .idx { color: var(--signal); }
.case__title { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; line-height: .9; font-size: clamp(40px, 4.6vw, 76px); margin: 0 0 10px; }
html[lang="ar"] .case__title { line-height: 1.25; font-size: clamp(30px, 3.4vw, 56px); }
.case__client { color: var(--bone-2); margin-bottom: 28px; font-size: 15px; }
.case__client b { color: var(--signal); font-weight: 500; }
.case__block { margin-bottom: 22px; }
.case__block h4 { margin: 0 0 6px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 400; }
html[lang="ar"] .case__block h4 { letter-spacing: 0; font-family: var(--f-sans); font-size: 13px; }
.case__block p { margin: 0; color: var(--bone-2); font-size: 15.5px; max-width: 52ch; }
.case__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 28px 0; }
.case__kpis div { background: var(--ink); padding: 16px; }
.case__kpis b { display: block; font-family: "Big Shoulders Display", sans-serif; font-weight: 800; font-size: clamp(30px, 2.8vw, 42px); line-height: 1; color: var(--bone); direction: ltr; text-align: start; }
html[dir="rtl"] .case__kpis b { text-align: right; }
.case__kpis span { display: block; font-size: 12px; color: var(--mute); margin-top: 6px; line-height: 1.35; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--f-mono); font-size: 11px; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--bone-2); direction: ltr; }
.case__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--bone); font-size: 14px; border-bottom: 1px solid var(--signal); padding-bottom: 3px; }
.case__link:hover { color: var(--signal); }
.conf { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 7px 12px; border-radius: 8px; background: rgba(255, 91, 20, .08); border: 1px solid rgba(255, 91, 20, .25); color: var(--signal-2); font-size: 12.5px; }

.case__media { display: flex; flex-direction: column; gap: clamp(18px, 2vw, 28px); min-width: 0; }
.shot { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: var(--ink-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .5); transform-style: preserve-3d; will-change: transform; }
.shot__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #15171b; border-bottom: 1px solid var(--line); direction: ltr; }
.shot__bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a2d33; }
.shot__bar span { margin-inline: auto; font-family: var(--f-mono); font-size: 10.5px; color: var(--mute-2); padding: 3px 14px; background: #0f1114; border-radius: 6px; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot__img { position: relative; overflow: hidden; }
.shot__img img { width: 100%; height: auto; transform-origin: 50% 0; }
.shot__cap { position: absolute; inset-inline-start: 14px; bottom: 14px; padding: 6px 10px; border-radius: 8px; background: rgba(8, 9, 11, .82); backdrop-filter: blur(8px); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--bone-2); border: 1px solid var(--line); }
.shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.6vw, 22px); }

/* architecture diagrams */
.arch { position: relative; border: 1px solid var(--line-2); border-radius: 14px; background:
  radial-gradient(circle at 1px 1px, rgba(237, 233, 225, .07) 1px, transparent 0) 0 0 / 22px 22px, var(--ink-1); padding: clamp(14px, 2vw, 26px); overflow: hidden; }
.arch__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--mute); }
.arch__head .sig { display: inline-flex; align-items: center; gap: 8px; }
.arch svg { width: 100%; height: auto; display: block; direction: ltr; overflow: visible; }
.arch .node rect { fill: var(--ink-2); stroke: var(--line-2); stroke-width: 1; }
.arch .node.hot rect { stroke: var(--signal); fill: rgba(255, 91, 20, .07); }
.arch .node.ok rect { stroke: rgba(94, 240, 168, .55); fill: rgba(94, 240, 168, .06); }
.arch .node.warn rect { stroke: rgba(255, 196, 92, .6); fill: rgba(255, 196, 92, .06); }
.arch .node text { fill: var(--bone); font-family: "Geist", sans-serif; font-size: 12.5px; font-weight: 500; }
.arch .node text.s { fill: var(--mute); font-family: "Geist Mono", monospace; font-size: 9.5px; font-weight: 400; letter-spacing: .04em; }
.arch .wire { fill: none; stroke: var(--line-2); stroke-width: 1.2; }
.arch .wire.sig { stroke: var(--signal); }
.arch .flow { fill: none; stroke: var(--signal); stroke-width: 1.6; stroke-dasharray: 2 10; stroke-linecap: round; animation: flow 1.1s linear infinite; }
.arch .flow.g { stroke: var(--live); }
.arch .lbl { fill: var(--mute); font-family: "Geist Mono", monospace; font-size: 9.5px; letter-spacing: .06em; }
.arch .zone { fill: none; stroke: var(--line-2); stroke-dasharray: 4 5; }
.arch .zone-lbl { fill: var(--signal); font-family: "Geist Mono", monospace; font-size: 9.5px; letter-spacing: .12em; }
.arch .pulse { fill: var(--signal); }
@keyframes flow { to { stroke-dashoffset: -24; } }

/* MORE SYSTEMS ======================================================= */
.more__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.mcard { position: relative; background: var(--ink); padding: clamp(20px, 2vw, 28px); display: flex; flex-direction: column; gap: 12px; min-height: 360px; transition: background .5s; }
.mcard:hover { background: var(--ink-1); }
.mcard::after { content: ""; position: absolute; inset-inline-start: 0; top: 0; height: 2px; width: 100%; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
html[dir="rtl"] .mcard::after { transform-origin: right; }
.mcard:hover::after { transform: scaleX(1); }
.mcard__top { display: flex; justify-content: space-between; color: var(--mute); font-size: 10.5px; }
.mcard h3 { margin: 6px 0 0; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(24px, 2vw, 30px); line-height: .95; }
.mcard p { margin: 0; color: var(--bone-2); font-size: 14px; line-height: 1.55; flex: 1; }
.mcard__foot { display: flex; align-items: baseline; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.mcard__big { font-family: "Big Shoulders Display", sans-serif; font-weight: 800; font-size: 30px; line-height: 1; color: var(--bone); white-space: nowrap; direction: ltr; }
.mcard__foot span { font-size: 12px; color: var(--mute); line-height: 1.3; }
.mcard .chips .chip { font-size: 10px; padding: 4px 8px; }
@media (max-width: 1180px) { .more__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .more__grid { grid-template-columns: 1fr; } .mcard { min-height: 0; } }

/* ARSENAL (gallery wall) ============================================== */
.arsenal { padding-block: clamp(96px, 14vw, 200px) clamp(60px, 8vw, 120px); overflow: hidden; }
.arsenal__head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.wall { perspective: 1400px; direction: ltr; }
.wall__plane { transform: rotateX(18deg) rotateZ(-6deg) scale(1.08); transform-origin: 50% 50%; display: flex; flex-direction: column; gap: clamp(14px, 1.6vw, 22px); }
.wall__row { display: flex; gap: clamp(14px, 1.6vw, 22px); width: max-content; will-change: transform; }
.tile { position: relative; flex: none; width: clamp(260px, 28vw, 460px); aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: var(--ink-2); }
.tile img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 1s var(--ease), filter .6s; filter: saturate(.85) brightness(.85); }
.tile:hover img { transform: scale(1.05); filter: none; }
.tile figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; background: linear-gradient(to top, rgba(8, 9, 11, .95), transparent); display: flex; justify-content: space-between; align-items: end; gap: 10px; transform: translateY(8px); opacity: 0; transition: .5s var(--ease); }
.tile:hover figcaption { opacity: 1; transform: none; }
.tile figcaption b { font-family: "Big Shoulders Display", sans-serif; font-size: 22px; font-weight: 800; text-transform: uppercase; line-height: 1; }
.tile figcaption span { font-family: var(--f-mono); font-size: 10px; color: var(--signal); letter-spacing: .08em; text-transform: uppercase; text-align: right; }

/* STACK (how I build) ================================================= */
.stack__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 100px); align-items: start; }
.layers { display: flex; flex-direction: column; gap: 10px; perspective: 1200px; }
.layer { position: relative; display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 18px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--ink-1); cursor: pointer; transition: border-color .4s, background .4s, transform .6s var(--ease); text-align: start; width: 100%; }
.layer:hover, .layer.is-on { border-color: rgba(255, 91, 20, .55); background: linear-gradient(90deg, rgba(255, 91, 20, .08), var(--ink-1) 70%); }
html[dir="rtl"] .layer:hover, html[dir="rtl"] .layer.is-on { background: linear-gradient(-90deg, rgba(255, 91, 20, .08), var(--ink-1) 70%); }
.layer .n { font-family: var(--f-mono); font-size: 11px; color: var(--signal); }
.layer h3 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2vw, 30px); text-transform: uppercase; line-height: 1; }
html[lang="ar"] .layer h3 { line-height: 1.4; }
.layer p { margin: 4px 0 0; font-size: 13.5px; color: var(--mute); }
.layer .plus { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: transform .5s var(--ease), border-color .4s; }
.layer .plus::before, .layer .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1px; background: var(--bone); transform: translate(-50%, -50%); }
.layer .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .5s var(--ease); }
.layer.is-on .plus { border-color: var(--signal); transform: rotate(180deg); }
.layer.is-on .plus::after { transform: translate(-50%, -50%) rotate(0); }
.stack__panel { position: sticky; top: calc(var(--header-h) + 32px); border: 1px solid var(--line-2); border-radius: 18px; background: var(--ink-1); padding: clamp(22px, 3vw, 40px); min-height: 460px; overflow: hidden; }
.stack__panel h3 { margin: 0 0 12px; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(34px, 3.4vw, 54px); line-height: .92; }
html[lang="ar"] .stack__panel h3 { line-height: 1.3; }
.stack__panel p { color: var(--bone-2); font-size: 15.5px; margin: 0 0 24px; max-width: 52ch; }
.stack__panel ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.stack__panel li { display: flex; gap: 10px; font-size: 14px; color: var(--bone-2); line-height: 1.4; }
.stack__panel li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .5em; background: var(--signal); transform: rotate(45deg); }
.stack__panel .term { font-family: var(--f-mono); font-size: 12px; line-height: 1.8; color: var(--mute); background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; direction: ltr; text-align: left; white-space: pre-wrap; }
.stack__panel .term .k { color: var(--signal); } .stack__panel .term .g { color: var(--live); } .stack__panel .term .b { color: var(--bone); }

/* LEADERSHIP ========================================================= */
.lead__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin-top: clamp(48px, 6vw, 80px); }
.lcard { background: var(--ink); padding: clamp(24px, 3vw, 40px); min-height: 330px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.lcard::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 91, 20, .1), transparent 45%); opacity: 0; transition: opacity .5s; pointer-events: none; }
.lcard:hover::before { opacity: 1; }
.lcard .mono { color: var(--signal); }
.lcard h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(28px, 2.6vw, 40px); line-height: .95; margin: 24px 0 12px; }
html[lang="ar"] .lcard h3 { line-height: 1.35; }
.lcard p { color: var(--bone-2); font-size: 15px; margin: 0; }
.lcard .big { margin-top: 36px; padding-top: .12em; font-family: "Big Shoulders Display", sans-serif; font-weight: 800; font-size: clamp(56px, 5vw, 84px); line-height: .85; color: var(--bone); direction: ltr; text-align: start; }
html[dir="rtl"] .lcard .big { text-align: right; }
.lcard .big small { color: var(--signal); font-size: .45em; }
.clients { margin-top: clamp(56px, 7vw, 100px); }
.clients__label { display: flex; justify-content: space-between; color: var(--mute); margin-bottom: 18px; }
.clients__rail { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); direction: ltr; }
.clients__track { display: flex; width: max-content; animation: tick 60s linear infinite; }
.clients__track.rev { animation-direction: reverse; animation-duration: 70s; margin-top: 10px; }
.cl { display: flex; align-items: center; gap: 10px; padding: 14px 26px; margin-inline-end: 10px; border: 1px solid var(--line); border-radius: 99px; white-space: nowrap; font-size: 15px; color: var(--bone-2); }
.cl small { font-family: var(--f-mono); font-size: 10px; color: var(--mute-2); letter-spacing: .08em; text-transform: uppercase; }

/* HONORS ============================================================== */
.honors__list { border-top: 1px solid var(--line-2); }
.honor { position: relative; display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 24px; padding: clamp(22px, 3vw, 36px) 0; border-bottom: 1px solid var(--line-2); overflow: hidden; }
.honor::before { content: ""; position: absolute; inset: 0; background: var(--signal); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); z-index: -1; }
.honor:hover::before { transform: scaleY(1); }
.honor:hover, .honor:hover .mute, .honor:hover .sig, .honor:hover .what, .honor:hover .yr { color: #120600; }
.honor { isolation: isolate; transition: color .4s, padding .6s var(--ease); }
.honor:hover { padding-inline: 18px; }
.honor .yr { font-family: var(--f-mono); font-size: 13px; color: var(--mute); direction: ltr; }
.honor h3 { margin: 0; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 3.4vw, 54px); line-height: .95; }
html[lang="ar"] .honor h3 { line-height: 1.35; }
.honor .what { text-align: end; color: var(--bone-2); font-size: 14px; max-width: 32ch; }

/* ABOUT ================================================================ */
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 100px); align-items: center; }
.portrait { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 4.6; background: #111; border: 1px solid var(--line-2); }
.portrait img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 20%; filter: grayscale(1) contrast(1.08); transition: filter 1s; }
.portrait:hover img { filter: grayscale(0) contrast(1.02); }
.portrait__scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; pointer-events: none; }
.portrait__hud { position: absolute; inset: 14px; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; color: var(--bone-2); direction: ltr; }
.portrait__hud > div { display: flex; justify-content: space-between; }
.portrait__hud .c { width: 18px; height: 18px; border: 1px solid var(--signal); }
.portrait__hud .tl { border-right: 0; border-bottom: 0; } .portrait__hud .tr { border-left: 0; border-bottom: 0; }
.portrait__hud .bl { border-right: 0; border-top: 0; } .portrait__hud .br { border-left: 0; border-top: 0; }
.about__text p { font-size: clamp(17px, 1.35vw, 20px); color: var(--bone-2); line-height: 1.6; margin: 0 0 18px; max-width: 56ch; }
.about__text p b { color: var(--bone); font-weight: 500; }
.edu { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.edu div { border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.edu b { display: block; font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.edu span { color: var(--mute); font-size: 13px; }

/* CONTACT ============================================================ */
.contact { padding-block: clamp(110px, 16vw, 220px) 40px; overflow: hidden; }
.contact__big { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(64px, 15vw, 260px); line-height: .82; margin: 0; letter-spacing: -.01em; }
html[lang="ar"] .contact__big { font-size: clamp(52px, 11vw, 190px); line-height: 1.15; }
.contact__big .serif { color: var(--signal); text-transform: none; font-weight: 300; letter-spacing: -.04em; }
.contact__row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; margin-top: clamp(40px, 6vw, 80px); }
.mail { display: inline-flex; align-items: center; gap: 16px; font-size: clamp(22px, 3vw, 44px); font-weight: 400; letter-spacing: -.02em; border-bottom: 1px solid var(--line-2); padding-bottom: 10px; transition: border-color .4s, color .4s; direction: ltr; }
.mail:hover { border-color: var(--signal); color: var(--signal); }
.mail .copied { font-family: var(--f-mono); font-size: 11px; color: var(--live); letter-spacing: .1em; opacity: 0; transition: opacity .3s; }
.mail.is-copied .copied { opacity: 1; }
.contact__links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: clamp(80px, 10vw, 140px); padding-top: 24px; border-top: 1px solid var(--line); color: var(--mute-2); }
.foot a:hover { color: var(--bone); }

/* LIGHTBOX ========================================================== */
.lb { position: fixed; inset: 0; z-index: 160; visibility: hidden; }
.lb.is-open { visibility: visible; }
.lb__bg { position: absolute; inset: 0; background: rgba(4, 4, 6, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; cursor: zoom-out; }
.lb__img { position: fixed; left: 0; top: 0; max-width: none; border-radius: 14px; box-shadow: 0 60px 140px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(237, 233, 225, .12); will-change: transform; background: var(--ink-2); user-select: none; -webkit-user-drag: none; }
.lb__bar { position: fixed; inset: auto var(--gutter) 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; opacity: 0; direction: ltr; }
.lb__count { color: var(--signal); min-width: 64px; }
.lb__cap { color: var(--bone-2); text-align: center; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb__nav { display: flex; gap: 8px; }
.lb__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--bone); background: rgba(18, 20, 24, .7); font-size: 16px; transition: border-color .3s, background .3s, color .3s; }
.lb__btn:hover { border-color: var(--signal); background: var(--signal); color: #120600; }
.shot, .tile { cursor: zoom-in; }
@media (max-width: 640px) { .lb__cap { display: none; } .lb__bar { bottom: 16px; } }

/* TERMINAL ========================================================== */
.term-overlay { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: var(--gutter); background: rgba(4, 4, 6, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.term-overlay.is-open { opacity: 1; visibility: visible; }
.term-win { width: min(760px, 100%); height: min(520px, 76vh); border-radius: 14px; background: #0b0c0f; border: 1px solid var(--line-2); box-shadow: 0 50px 120px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 91, 20, .08); display: flex; flex-direction: column; overflow: hidden; transform: translateY(20px) scale(.97); transition: transform .5s var(--ease); direction: ltr; text-align: left; }
.term-overlay.is-open .term-win { transform: none; }
.term-win__bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #111317; }
.term-win__bar i { width: 11px; height: 11px; border-radius: 50%; background: #2b2e34; }
.term-win__bar i:first-child { background: var(--signal); cursor: pointer; }
.term-win__bar span { margin-inline: auto; font-family: var(--f-mono); font-size: 11px; color: var(--mute); }
.term-out { flex: 1; overflow-y: auto; padding: 16px 18px; font-family: var(--f-mono); font-size: 13px; line-height: 1.7; color: var(--bone-2); white-space: pre-wrap; word-break: break-word; overscroll-behavior: contain; }
.term-out .p { color: var(--signal); } .term-out .g { color: var(--live); } .term-out .m { color: var(--mute); } .term-out .b { color: var(--bone); } .term-out a { color: var(--signal-2); text-decoration: underline; }
.term-in { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 13px; }
.term-in span { color: var(--signal); white-space: nowrap; }
.term-in input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--bone); font: inherit; caret-color: var(--signal); }

/* reveal defaults (JS enhances) */
.js [data-reveal] { opacity: 0; }
.no-js [data-reveal], .reduced [data-reveal] { opacity: 1 !important; transform: none !important; }

/* RESPONSIVE ========================================================== */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: block; }
  .clock { display: none; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero__bottom { grid-template-columns: 1fr; gap: 22px; }
  .scrollcue { display: none; }
  .impact__head, .work__intro, .arsenal__head, .contact__row { grid-template-columns: 1fr; gap: 20px; }
  .contact__links { justify-content: flex-start; }
  .case, .case:nth-child(even) { grid-template-columns: 1fr; }
  .case:nth-child(even) .case__media { order: 0; }
  .case__info { position: static; }
  .stack__grid, .about__grid { grid-template-columns: 1fr; }
  .stack__panel { position: relative; top: 0; min-height: 0; }
  .lead__grid { grid-template-columns: 1fr; }
  .lcard { min-height: 0; gap: 18px; }
  .manifesto__aside { grid-template-columns: 1fr; }
  .portrait { max-width: 460px; }
  /* trajectory becomes a vertical log on small screens */
  .traj__pin { height: auto; display: block; }
  .traj__track { flex-direction: column; width: auto; padding-inline: var(--gutter); }
  .traj__path { display: none; }
  .leg { width: 100%; min-height: 0; }
  .leg__body { margin-bottom: 4px; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .hdr .kbtn { display: none; }
  .brand__name small { display: none; }
  .hero__top { display: none; }
  .hero__ctas .btn { flex: 1; justify-content: center; }
  .metrics { grid-template-columns: 1fr; }
  .metric { min-height: 180px; }
  .case__kpis { grid-template-columns: 1fr 1fr 1fr; }
  .case__kpis div { padding: 12px 10px; }
  .shot-pair { grid-template-columns: 1fr; }
  .shot__bar { height: 24px; } .shot__bar span { font-size: 9px; }
  .honor { grid-template-columns: 1fr; gap: 8px; }
  .honor .what { text-align: start; }
  .stack__panel ul { grid-template-columns: 1fr; }
  .edu { grid-template-columns: 1fr; }
  .layer { grid-template-columns: 40px 1fr auto; padding: 16px; gap: 12px; }
  .wall__plane { transform: rotateX(14deg) rotateZ(-5deg) scale(1.1); }
  .btn { height: 50px; padding: 0 20px; }
  .mail { font-size: 21px; }
}

@media (max-width: 640px) {
  .arch { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .arch svg { min-width: 640px; }
  .arch.kg canvas { min-width: 0; }
  .arch__head > span:last-child { display: none; }
  .arch::after { content: "← swipe →"; display: block; margin-top: 8px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; color: var(--mute-2); text-align: center; }
  .arch.kg::after { display: none; }
  .metric svg.spark { top: 54px; height: 30px; width: 40%; }
  #footTerm { display: none; }
}
@media (hover: none) { #footTerm { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
}
