/* Alpha Algorithms — Direction A · Vault (hi-fi)
   Tone: stately tech-luxury. Cream paper, brand navy, gold rule.
   ────────────────────────────────────────────────────────────── */

@font-face {
  font-family: "CS Harping";
  src: url("../assets/fonts/CSHarping-Regular.woff2") format("woff2"),
       url("../assets/fonts/CSHarping-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CS Harping";
  src: url("../assets/fonts/CSHarping-Italic.woff2") format("woff2"),
       url("../assets/fonts/CSHarping-Italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "CS Harping Reverse";
  src: url("../assets/fonts/CSHarping-ReverseItalic.woff2") format("woff2"),
       url("../assets/fonts/CSHarping-ReverseItalic.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* brand */
  --brand-navy: #003B73;
  --brand-navy-deep: #00264C;
  --brand-gold: #E0A22B;
  --brand-gold-soft: #C28818;

  /* paper */
  --cream: #F7F2E6;
  --cream-2: #EFE8D6;
  --cream-3: #E6DEC8;

  /* ink */
  --ink: #0E1A2B;
  --ink-2: #2C3A4F;
  --ink-3: #5C6B82;
  --ink-4: #8A95A8;

  /* rules */
  --rule: rgba(14, 26, 43, 0.14);
  --rule-strong: rgba(14, 26, 43, 0.32);
  --rule-gold: rgba(224, 162, 43, 0.5);

  /* tweak-driven */
  --accent-r: 224;
  --accent-g: 162;
  --accent-b: 43;
  --bg-r: 247;
  --bg-g: 242;
  --bg-b: 230;
  --motion-on: 1;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: rgb(var(--bg-r), var(--bg-g), var(--bg-b));
  color: var(--ink);
  font-family: "Inter Tight", "Inter", system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { overflow-x: hidden; }
img { display: block; max-width: 100%; }

::selection { background: var(--brand-navy); color: var(--cream); }

/* Type roles ─────────────────────────────────────────────────────── */
.display {
  font-family: "CS Harping", "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.96;
}
.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--brand-navy);
}
.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.eyebrow .sep { color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 1); margin: 0 8px; }

/* Layout ─────────────────────────────────────────────────────────── */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 36px; }
.wrap-narrow { max-width: 980px; margin: 0 auto; padding: 0 36px; }
.wrap-wide { max-width: 1480px; margin: 0 auto; padding: 0 36px; }

.gold-rule {
  width: 56px; height: 1.5px;
  background: rgb(var(--accent-r), var(--accent-g), var(--accent-b));
  display: block;
}

/* Reveal-on-scroll ───────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(calc(28px * var(--motion-on)));
  transition:
    opacity 1.1s cubic-bezier(.2,.6,.2,1),
    transform 1.1s cubic-bezier(.2,.6,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* NAV ─────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 28px;
  padding: 18px 36px;
  color: var(--cream);
  transition: background .4s ease, color .4s ease, padding .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(247, 242, 230, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: var(--ink);
  padding: 12px 36px;
  border-bottom-color: var(--rule);
}
.nav .brand { display: flex; align-items: center; gap: 12px; }
.nav .brand img { width: 32px; height: 32px; object-fit: contain; }
.nav .brand .word {
  font-family: "CS Harping", serif;
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.02em;
}
.nav .links {
  display: flex; gap: 32px;
  font-size: 13px;
  letter-spacing: 0.01em;
  justify-self: center;
}
.nav .links a {
  color: inherit;
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  opacity: 0.85;
}
.nav .links a:hover { opacity: 1; }
.nav .links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: rgb(var(--accent-r), var(--accent-g), var(--accent-b));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.nav .links a:hover::after { transform: scaleX(1); }
.nav .right {
  display: flex; align-items: center; gap: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.nav .right .lang { opacity: 0.7; }
.nav .right .cta {
  color: inherit;
  text-decoration: none;
  border: 1px solid currentColor;
  padding: 7px 14px;
  border-radius: 1px;
  transition: background .25s ease, color .25s ease;
}
.nav.scrolled .right .cta:hover {
  background: var(--brand-navy);
  color: var(--cream);
  border-color: var(--brand-navy);
}
.nav:not(.scrolled) .right .cta:hover {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

/* HERO ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  color: var(--cream);
  background: var(--brand-navy-deep);
}
.hero .stage {
  position: absolute; inset: 0;
}
.hero .stage .frame {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1.6s cubic-bezier(.4,.0,.2,1);
  transform: scale(1.06);
  animation: kenburns 16s ease-in-out infinite alternate;
}
.hero .stage .frame.active { opacity: 1; }
.hero .stage::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,38,76,0.45) 0%, rgba(0,38,76,0.15) 30%, rgba(0,38,76,0.05) 50%, rgba(0,38,76,0.55) 88%, rgba(0,30,60,0.85) 100%),
    linear-gradient(105deg, rgba(0,38,76,0.55) 0%, transparent 60%);
  pointer-events: none;
}
@keyframes kenburns {
  0%   { transform: scale(1.06) translate(0, 0); }
  100% { transform: scale(1.14) translate(-2%, -1.5%); }
}
.hero .grain {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1.5px);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
  opacity: 0.6;
  pointer-events: none;
}
.hero .play-mark {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 88px; height: 88px;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.85);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  background: rgba(0,0,0,0.18);
  cursor: pointer;
  transition: transform .35s ease, background .35s ease;
  pointer-events: auto;
}
.hero .play-mark:hover { transform: translate(-50%, -50%) scale(1.06); background: rgba(0,0,0,0.32); }
.hero .play-mark .triangle {
  width: 0; height: 0; margin-left: 4px;
  border-left: 14px solid currentColor;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

.hero .copy {
  position: absolute; left: 0; right: 0; bottom: 9vh;
  padding: 0 56px;
  z-index: 4;
}
.hero .copy .index {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(247,242,230,0.7);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 14px;
}
.hero .copy .index .num { color: var(--cream); }
.hero .copy .index .bar {
  flex: 0 0 220px; height: 1px;
  background: rgba(247,242,230,0.25);
  position: relative;
  overflow: hidden;
}
.hero .copy .index .bar::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--prog, 0%);
  background: rgb(var(--accent-r), var(--accent-g), var(--accent-b));
  transition: width .25s linear;
}
.hero .copy h1 {
  font-family: "CS Harping", serif;
  font-weight: 280;
  
  font-size: clamp(48px, 6.6vw, 108px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 12ch;
  color: var(--cream);
}
.hero .copy h1 em {
  font-style: italic;
  color: rgb(var(--accent-r), var(--accent-g), var(--accent-b));
  font-weight: 320;
}
.hero .copy h1 .crossfade {
  display: inline-block;
  transition: opacity .55s cubic-bezier(.4,0,.2,1), transform .55s cubic-bezier(.4,0,.2,1);
}
.hero .copy h1 .crossfade.out {
  opacity: 0;
  transform: translateY(-16px);
}
.hero .copy .more {
  margin-top: 32px;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(247,242,230,0.5);
  transition: border-color .3s ease, gap .3s ease;
}
.hero .copy .more:hover { border-color: rgb(var(--accent-r), var(--accent-g), var(--accent-b)); gap: 18px; }

.hero .scroll-cue {
  position: absolute;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(247,242,230,0.7);
  z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero .scroll-cue .stick {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, transparent, rgba(247,242,230,0.6));
  position: relative;
  overflow: hidden;
}
.hero .scroll-cue .stick::after {
  content: ""; position: absolute; top: -36px; left: 0; right: 0;
  height: 12px;
  background: rgb(var(--accent-r), var(--accent-g), var(--accent-b));
  animation: scrollcue 2.4s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes scrollcue {
  0%   { top: -12px; }
  100% { top: 36px; }
}

.hero .ticker {
  position: absolute; left: 0; right: 0; top: 84px;
  z-index: 3;
  border-top: 1px solid rgba(247,242,230,0.15);
  border-bottom: 1px solid rgba(247,242,230,0.15);
  padding: 12px 56px;
  display: flex; justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247,242,230,0.7);
}

/* WHO WE ARE ─────────────────────────────────────────────────────── */
.who {
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
}
.who .grid {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 64px;
  align-items: start;
}
.who .label-col { position: sticky; top: 110px; }
.who .label-col .gold-rule { margin-bottom: 18px; }
.who .label-col .meta {
  margin-top: 22px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ink-3);
  display: grid; gap: 8px;
}
.who h2 {
  font-family: "CS Harping", serif;
  font-weight: 300;
  
  font-size: clamp(38px, 4.8vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 36px;
  max-width: 18ch;
}
.who h2 em {
  font-style: italic;
  color: var(--brand-navy);
}
.who .body p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 60ch;
  margin: 0 0 18px;
}
.who .body p .drop {
  font-family: "CS Harping", serif;
  font-size: 1.6em;
  line-height: 0.9;
  float: left;
  margin: 4px 8px 0 0;
  color: var(--brand-navy);
}
.who .stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid var(--rule);
}
.who .stats .stat {
  padding: 28px 24px 28px 0;
  border-right: 1px solid var(--rule);
}
.who .stats .stat:last-child { border-right: none; }
.who .stats .stat .n {
  font-family: "CS Harping", serif;
  font-weight: 300;
  font-size: 56px;
  line-height: 1;
  color: var(--brand-navy);
  letter-spacing: -0.02em;
}
.who .stats .stat .l {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 10px;
}

/* What we do — header ─────────────────────────────────────────────── */
.wwd-header {
  padding: clamp(80px, 10vw, 140px) 0 clamp(40px, 5vw, 60px);
  border-top: 1px solid var(--rule);
}
.wwd-header .row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: end;
}
.wwd-header h2 {
  font-family: "CS Harping", serif;
  font-weight: 300;
  
  font-size: clamp(40px, 5.5vw, 84px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 14px 0 0;
}
.wwd-header h2 em { font-style: italic; color: var(--brand-navy); }
.wwd-header .lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 56ch;
}

/* Sector chapter ─────────────────────────────────────────────────── */
.chapter {
  padding: clamp(70px, 9vw, 130px) 0;
  border-top: 1px solid var(--rule);
  position: relative;
}
.chapter .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.chapter.flip .grid > .image-col { order: 2; }
.chapter .image-col {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.chapter .image-col .img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: translateY(0);
  will-change: transform;
}
.chapter .image-col .ovr {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,38,76,0.05) 0%, rgba(0,38,76,0.0) 30%, rgba(0,38,76,0.35) 100%);
}
.chapter .image-col .corner {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  display: flex; justify-content: space-between; align-items: end;
  color: rgba(247,242,230,0.85);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.chapter .copy-col .division {
  display: flex; align-items: center; gap: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgb(var(--accent-r), var(--accent-g), var(--accent-b));
  margin-bottom: 24px;
}
.chapter .copy-col .division .num {
  font-family: "CS Harping", serif;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: var(--brand-navy);
  font-style: italic;
}
.chapter .copy-col h3 {
  font-family: "CS Harping", serif;
  font-weight: 300;
  
  font-size: clamp(40px, 5.6vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
}
.chapter .copy-col .lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 50ch;
  margin: 0 0 28px;
}
.chapter .copy-col .pillars {
  display: grid; gap: 14px;
  margin: 28px 0;
  border-top: 1px solid var(--rule);
}
.chapter .copy-col .pillars .row {
  display: grid; grid-template-columns: 36px 1fr;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  gap: 18px;
}
.chapter .copy-col .pillars .row .k {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ink-4);
}
.chapter .copy-col .pillars .row .v {
  font-family: "CS Harping", serif;
  font-size: 19px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.chapter .copy-col .actions {
  display: flex; align-items: center; gap: 28px;
  margin-top: 32px;
}
.btn-line {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-navy);
  text-decoration: none;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--brand-navy);
  transition: gap .3s ease, border-color .3s ease;
}
.btn-line:hover { gap: 18px; border-color: rgb(var(--accent-r), var(--accent-g), var(--accent-b)); }
.btn-line .arrow { font-family: "CS Harping", serif; font-size: 14px; letter-spacing: 0; }
.chapter .copy-col .actions .opco {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}
.chapter .copy-col .actions .opco .name { color: var(--brand-navy); font-family: "CS Harping", serif; font-style: italic; font-size: 14px; letter-spacing: -0.005em; }

/* TIMELINE ──────────────────────────────────────────────────────── */
.journey {
  background: var(--brand-navy-deep);
  color: var(--cream);
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
  overflow: hidden;
}
.journey::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(224,162,43,0.08), transparent 40%),
    radial-gradient(circle at 96% 88%, rgba(0,59,115,0.5), transparent 50%);
  pointer-events: none;
}
.journey .head {
  display: grid; grid-template-columns: 1fr auto; align-items: end;
  margin-bottom: 56px; gap: 40px;
}
.journey .head h2 {
  font-family: "CS Harping", serif;
  font-weight: 300;
  
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 1; letter-spacing: -0.03em;
  margin: 14px 0 0;
}
.journey .head h2 em { font-style: italic; color: var(--brand-gold); }
.journey .nav-buttons { display: flex; gap: 8px; }
.journey .nav-buttons button {
  width: 42px; height: 42px;
  border: 1px solid rgba(247,242,230,0.4);
  background: transparent;
  color: var(--cream);
  border-radius: 50%;
  font-family: "CS Harping", serif;
  font-size: 18px;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease;
}
.journey .nav-buttons button:hover {
  background: var(--brand-gold);
  border-color: var(--brand-gold);
  color: var(--brand-navy-deep);
}
.journey .track-wrap {
  position: relative;
  overflow: hidden;
  margin: 0 -36px;
  padding: 0 36px;
}
.journey .track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 320px);
  gap: 28px;
  transition: transform .8s cubic-bezier(.2,.6,.2,1);
}
.journey .step { padding-top: 50px; position: relative; }
.journey .step::before {
  content: ""; position: absolute; left: 0; top: 22px; right: -28px;
  height: 1px; background: rgba(247,242,230,0.2);
}
.journey .step:last-child::before { right: 0; }
.journey .step .dot {
  position: absolute; top: 16px; left: 0;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(224,162,43,0.18);
}
.journey .step .year {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--brand-gold);
}
.journey .step h4 {
  font-family: "CS Harping", serif;
  font-weight: 320;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 8px 0 12px;
}
.journey .step p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(247,242,230,0.75);
  margin: 0;
}

/* OPERATING COMPANIES ───────────────────────────────────────────── */
.portfolio {
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--rule);
}
.portfolio .head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end;
  margin-bottom: 56px;
}
.portfolio .head h2 {
  font-family: "CS Harping", serif;
  font-weight: 300;
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 1; letter-spacing: -0.03em;
  margin: 14px 0 0;
}
.portfolio .head h2 em { font-style: italic; color: var(--brand-navy); }
.portfolio .head .lede { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 50ch; }

.portfolio .cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.opcard {
  background: var(--cream);
  border: 1px solid var(--rule);
  display: grid; grid-template-rows: auto auto auto;
  text-decoration: none; color: inherit;
  transition: transform .4s cubic-bezier(.2,.6,.2,1), border-color .3s ease;
  overflow: hidden;
  position: relative;
}
.opcard:hover { transform: translateY(-4px); border-color: var(--rule-strong); }
.opcard .cover {
  aspect-ratio: 16 / 10;
  background-size: cover; background-position: center;
  position: relative;
}
.opcard .cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,38,76,0.0) 50%, rgba(0,38,76,0.5) 100%);
}
.opcard .meta {
  padding: 28px 28px 0;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 14px;
}
.opcard .meta .logo {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand-navy);
  color: var(--cream);
  display: grid; place-items: center;
  font-family: "CS Harping", serif;
  font-size: 19px;
  font-style: italic;
}
.opcard .meta .name {
  font-family: "CS Harping", serif;
  font-size: 26px;
  letter-spacing: -0.01em;
}
.opcard .meta .sector {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}
.opcard .body {
  padding: 16px 28px 28px;
  display: flex; justify-content: space-between; align-items: end;
  gap: 24px;
}
.opcard .body p {
  margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2);
  max-width: 40ch;
}
.opcard .body .visit {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-navy);
  white-space: nowrap;
}

/* NEWSROOM ───────────────────────────────────────────────────────── */
.newsroom {
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--rule);
}
.newsroom .head {
  display: grid; grid-template-columns: 1fr auto; align-items: end;
  margin-bottom: 48px;
}
.newsroom .head h2 {
  font-family: "CS Harping", serif;
  font-weight: 300;
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 1; letter-spacing: -0.03em;
  margin: 14px 0 0;
}
.newsroom .head h2 em { font-style: italic; color: var(--brand-navy); }
.newsroom .grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.news {
  text-decoration: none; color: inherit;
  display: grid; grid-template-rows: auto auto auto auto;
  gap: 14px;
}
.news .cover {
  aspect-ratio: 4 / 3;
  background-size: cover; background-position: center;
  overflow: hidden;
  position: relative;
}
.news .cover .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,38,76,0) 60%, rgba(0,38,76,0.35) 100%);
}
.news .cover .img-inner {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.0);
  transition: transform 1.2s cubic-bezier(.2,.6,.2,1);
}
.news:hover .cover .img-inner { transform: scale(1.05); }
.news .meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.18em; color: var(--ink-3);
  display: flex; gap: 18px; align-items: center;
  margin-top: 6px;
}
.news .meta .tag {
  color: rgb(var(--accent-r), var(--accent-g), var(--accent-b));
}
.news h4 {
  font-family: "CS Harping", serif;
  font-weight: 320;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: pretty;
}

/* FOOTER ─────────────────────────────────────────────────────────── */
.foot {
  background: var(--brand-navy-deep);
  color: var(--cream);
  padding: clamp(80px, 10vw, 140px) 0 28px;
}
.foot .top {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 36px;
}
.foot h5 {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin: 0 0 18px;
  font-weight: 500;
}
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot ul a { color: rgba(247,242,230,0.8); text-decoration: none; font-size: 14px; }
.foot ul a:hover { color: var(--cream); }
.foot .brand-block .word {
  font-family: "CS Harping", serif;
  font-weight: 300;
  font-size: 32px;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.foot .brand-block p { font-size: 14px; line-height: 1.6; color: rgba(247,242,230,0.7); max-width: 36ch; }
.foot .brand-block .img-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.foot .brand-block .img-row img { width: 40px; height: 40px; }
.foot .contact .row {
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(247,242,230,0.85);
}
.foot .contact .row .lab {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(247,242,230,0.55);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.foot .legal {
  margin-top: 64px;
  padding-top: 22px;
  border-top: 1px solid rgba(247,242,230,0.15);
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 24px; align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(247,242,230,0.55);
}
.foot .legal .center { text-align: center; }
.foot .legal .right { text-align: right; }
.foot .legal a { color: inherit; text-decoration: none; margin-left: 18px; }
.foot .legal a:hover { color: var(--cream); }

/* RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .nav .links { display: none; }
  .who .grid { grid-template-columns: 1fr; gap: 32px; }
  .who .label-col { position: static; }
  .who .stats { grid-template-columns: repeat(2, 1fr); }
  .who .stats .stat { border-bottom: 1px solid var(--rule); }
  .wwd-header .row { grid-template-columns: 1fr; gap: 24px; }
  .chapter .grid { grid-template-columns: 1fr; gap: 36px; }
  .chapter.flip .grid > .image-col { order: 0; }
  .chapter .image-col { aspect-ratio: 4 / 3; }
  .portfolio .head, .newsroom .head { grid-template-columns: 1fr; gap: 18px; }
  .portfolio .cards { grid-template-columns: 1fr; }
  .newsroom .grid { grid-template-columns: 1fr; gap: 32px; }
  .foot .top { grid-template-columns: 1fr 1fr; }
  .hero .copy { padding: 0 28px; bottom: 7vh; }
  .hero .ticker { display: none; }
}


/* DARK THEME ─────────────────────────────────────────────────────── */
:root[data-theme="dark"] {
  --cream: #0E1A2B;
  --cream-2: #15243A;
  --cream-3: #1B2C44;

  --ink: #ECE6D6;
  --ink-2: #C7C0AE;
  --ink-3: #8E96A8;
  --ink-4: #5C6680;

  --rule: rgba(236, 230, 214, 0.10);
  --rule-strong: rgba(236, 230, 214, 0.22);
  --rule-gold: rgba(224, 162, 43, 0.55);

  --brand-navy: #6A9DD8;
  --brand-navy-deep: #050B16;

  --bg-r: 7;
  --bg-g: 12;
  --bg-b: 22;
}
:root[data-theme="dark"] body { background: rgb(var(--bg-r), var(--bg-g), var(--bg-b)); color: var(--ink); }
:root[data-theme="dark"] ::selection { background: rgb(var(--accent-r), var(--accent-g), var(--accent-b)); color: #0E1A2B; }

/* Dark theme overrides for specific surfaces ─────────────────────── */
:root[data-theme="dark"] .display em { color: rgb(var(--accent-r), var(--accent-g), var(--accent-b)); }

:root[data-theme="dark"] .nav.scrolled {
  background: rgba(7, 12, 22, 0.85);
  border-bottom-color: var(--rule);
  color: var(--ink);
}
:root[data-theme="dark"] .nav.scrolled .right .cta:hover {
  background: rgb(var(--accent-r), var(--accent-g), var(--accent-b));
  color: #0E1A2B;
  border-color: rgb(var(--accent-r), var(--accent-g), var(--accent-b));
}

:root[data-theme="dark"] .who { background: rgb(var(--bg-r), var(--bg-g), var(--bg-b)); }
:root[data-theme="dark"] .who .body p,
:root[data-theme="dark"] .body p { color: var(--ink-2); }
:root[data-theme="dark"] .lede { color: var(--ink-2); }
:root[data-theme="dark"] .stat .n { color: var(--ink); }
:root[data-theme="dark"] .stat .l { color: var(--ink-3); }

:root[data-theme="dark"] .wwd-header { background: rgb(var(--bg-r), var(--bg-g), var(--bg-b)); border-color: var(--rule); }

:root[data-theme="dark"] .chapter { background: rgb(var(--bg-r), var(--bg-g), var(--bg-b)); }
:root[data-theme="dark"] .chapter .copy-col { color: var(--ink); }
:root[data-theme="dark"] .pillars .row { border-color: var(--rule); }
:root[data-theme="dark"] .pillars .k { color: var(--ink-3); }
:root[data-theme="dark"] .pillars .v { color: var(--ink); }
:root[data-theme="dark"] .division { color: var(--ink-3); }
:root[data-theme="dark"] .division .num { color: rgb(var(--accent-r), var(--accent-g), var(--accent-b)); }

:root[data-theme="dark"] .btn-line { color: var(--ink); border-color: var(--rule-strong); }
:root[data-theme="dark"] .btn-line:hover { background: rgb(var(--accent-r), var(--accent-g), var(--accent-b)); color: #0E1A2B; border-color: rgb(var(--accent-r), var(--accent-g), var(--accent-b)); }

:root[data-theme="dark"] .opco { color: var(--ink-3); }
:root[data-theme="dark"] .opco .name { color: var(--ink); }

:root[data-theme="dark"] .journey { background: #050B16; }

:root[data-theme="dark"] .portfolio { background: rgb(var(--bg-r), var(--bg-g), var(--bg-b)); }
:root[data-theme="dark"] .opcard { background: var(--cream-2); border-color: var(--rule); color: var(--ink); }
:root[data-theme="dark"] .opcard .name { color: var(--ink); }
:root[data-theme="dark"] .opcard .sector { color: var(--ink-3); }
:root[data-theme="dark"] .opcard .body p { color: var(--ink-2); }
:root[data-theme="dark"] .opcard .visit { color: rgb(var(--accent-r), var(--accent-g), var(--accent-b)); }
:root[data-theme="dark"] .opcard .logo { background: var(--cream-3); color: var(--ink); }

:root[data-theme="dark"] .newsroom { background: rgb(var(--bg-r), var(--bg-g), var(--bg-b)); border-color: var(--rule); }
:root[data-theme="dark"] .news { color: var(--ink); }
:root[data-theme="dark"] .news .meta { color: var(--ink-3); }
:root[data-theme="dark"] .news h4 { color: var(--ink); }
:root[data-theme="dark"] .news .tag { background: var(--cream-2); color: var(--ink-2); border-color: var(--rule); }

:root[data-theme="dark"] .foot { background: #050B16; color: var(--ink); border-color: var(--rule); }
:root[data-theme="dark"] .foot h5 { color: var(--ink-3); }
:root[data-theme="dark"] .foot a { color: var(--ink); }
:root[data-theme="dark"] .foot p { color: var(--ink-2); }
:root[data-theme="dark"] .foot .legal { color: var(--ink-3); border-color: var(--rule); }
:root[data-theme="dark"] .foot .contact .lab { color: var(--ink-3); }

:root[data-theme="dark"] .gold-rule { background: rgb(var(--accent-r), var(--accent-g), var(--accent-b)); }


/* CONTACT MODAL ──────────────────────────────────────────────────── */
.contact-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 14, 26, 0.55);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  display: grid; place-items: center;
  padding: 32px;
  animation: cm-fade .35s cubic-bezier(.2,.6,.2,1);
}
@keyframes cm-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.contact-card {
  position: relative;
  width: min(720px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: rgb(var(--bg-r), var(--bg-g), var(--bg-b));
  color: var(--ink);
  border: 1px solid var(--rule);
  box-shadow: 0 40px 120px rgba(0, 25, 60, 0.35);
  padding: 48px 56px 40px;
  animation: cm-rise .55s cubic-bezier(.2,.6,.2,1);
}
@keyframes cm-rise {
  from { opacity: 0; transform: translateY(24px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}
.contact-card .close {
  position: absolute; top: 16px; right: 18px;
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  font-size: 22px; line-height: 1;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.contact-card .close:hover {
  background: var(--brand-navy); color: var(--cream); border-color: var(--brand-navy);
}
.contact-head .eyebrow { margin-top: 12px; }
.contact-head .display {
  font-size: clamp(28px, 3.4vw, 44px);
  margin: 14px 0 8px;
}
.contact-head .lede {
  color: var(--ink-3);
  max-width: 56ch;
  margin: 4px 0 28px;
}
.contact-form { display: grid; gap: 18px; margin-top: 8px; }
.cf-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
@media (max-width: 640px) { .cf-grid { grid-template-columns: 1fr; } }

.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field > span {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3);
}
.field > span em { color: rgb(var(--accent-r), var(--accent-g), var(--accent-b)); font-style: normal; margin-left: 4px; }
.field > span .opt { font-size: 9.5px; letter-spacing: 0.12em; color: var(--ink-4); margin-left: 6px; text-transform: none; }
.field input, .field select, .field textarea {
  font: inherit;
  font-family: "Inter Tight", "Inter", system-ui, sans-serif;
  font-size: 15px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  padding: 12px 14px;
  border-radius: 1px;
  outline: none;
  transition: border-color .25s ease, background .25s ease;
  width: 100%;
}
.field textarea { resize: vertical; line-height: 1.5; min-height: 110px; font-size: 14.5px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand-navy);
  background: rgba(0, 59, 115, 0.04);
}
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: #B23A3A;
}
.field small {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #B23A3A;
}

.captcha {
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  display: grid; gap: 8px;
}
.captcha .cap-q {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.captcha .lab {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3);
}
.captcha .sum {
  font-family: "CS Harping", serif;
  font-size: 22px; color: var(--ink);
  letter-spacing: 0.04em;
  padding: 6px 14px;
  background: rgba(0, 59, 115, 0.06);
  border: 1px dashed var(--rule-strong);
  user-select: none;
}
.captcha input {
  font: inherit;
  font-family: "Inter Tight", sans-serif;
  width: 80px;
  padding: 10px 12px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  text-align: center;
  font-size: 16px;
  border-radius: 1px;
  outline: none;
}
.captcha input:focus { border-color: var(--brand-navy); }
.captcha .refresh {
  background: transparent; border: 1px solid var(--rule-strong);
  width: 36px; height: 36px;
  color: var(--ink-3);
  cursor: pointer;
  font-size: 16px;
  transition: color .25s ease, border-color .25s ease, transform .4s ease;
}
.captcha .refresh:hover { color: var(--brand-navy); border-color: var(--brand-navy); transform: rotate(180deg); }
.captcha.has-error input { border-color: #B23A3A; }
.captcha small {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #B23A3A;
}

.cf-actions {
  display: flex; justify-content: flex-end; gap: 12px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.btn-ghost, .btn-solid {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 14px 22px;
  border-radius: 1px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--rule-strong);
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }
.btn-solid {
  background: var(--brand-navy);
  color: var(--cream);
  border: 1px solid var(--brand-navy);
}
.btn-solid:hover {
  background: rgb(var(--accent-r), var(--accent-g), var(--accent-b));
  color: var(--brand-navy-deep);
  border-color: rgb(var(--accent-r), var(--accent-g), var(--accent-b));
}

.thanks { text-align: left; padding: 16px 0; }
.thanks .gold-rule { margin-bottom: 18px; }
.thanks .display {
  font-size: clamp(32px, 3.6vw, 48px);
  margin: 10px 0 14px;
}
.thanks p { color: var(--ink-3); max-width: 48ch; }

/* Dark theme tweaks for modal ────────────────────────────────────── */
:root[data-theme="dark"] .contact-card { background: #0E1A2B; color: var(--ink); border-color: var(--rule); }
:root[data-theme="dark"] .field input:focus, :root[data-theme="dark"] .field select:focus, :root[data-theme="dark"] .field textarea:focus { background: rgba(106,157,216,0.06); border-color: var(--brand-navy); }
:root[data-theme="dark"] .captcha .sum { background: rgba(106,157,216,0.08); }
:root[data-theme="dark"] .field select { background: #15243A; }
:root[data-theme="dark"] .field select option { background: #15243A; color: var(--ink); }


/* ── ARABIC + RTL ──────────────────────────────────────────────── */
:root[lang="ar"] body,
:root[lang="ar"] .body,
:root[lang="ar"] p,
:root[lang="ar"] .lede,
:root[lang="ar"] .sh-lede,
:root[lang="ar"] .page-lede,
:root[lang="ar"] .prose p,
:root[lang="ar"] .prose ul li,
:root[lang="ar"] .stat .l,
:root[lang="ar"] .stat-l,
:root[lang="ar"] .person-bio,
:root[lang="ar"] .card-body,
:root[lang="ar"] .tcl-v,
:root[lang="ar"] .nr-title p {
  font-family: "Noto Sans Arabic", "Inter Tight", system-ui, sans-serif;
}
:root[lang="ar"] .display,
:root[lang="ar"] h1, :root[lang="ar"] h2, :root[lang="ar"] h3, :root[lang="ar"] h4,
:root[lang="ar"] .sh-title, :root[lang="ar"] .page-title,
:root[lang="ar"] .nav .brand .word,
:root[lang="ar"] .foot .brand-block .word,
:root[lang="ar"] .person-name,
:root[lang="ar"] .nr-title h3,
:root[lang="ar"] .role-title,
:root[lang="ar"] .stat-n,
:root[lang="ar"] .stat .n {
  font-family: "Noto Naskh Arabic", "CS Harping", "Times New Roman", serif;
}
:root[lang="ar"] .display em,
:root[lang="ar"] h1 em, :root[lang="ar"] h2 em, :root[lang="ar"] h3 em,
:root[lang="ar"] .sh-title em, :root[lang="ar"] .page-title em {
  font-style: normal; /* Arabic doesn't italicise; rely on color for emphasis */
}
:root[lang="ar"] .eyebrow,
:root[lang="ar"] .mono,
:root[lang="ar"] .crumbs,
:root[lang="ar"] .nav-toggle,
:root[lang="ar"] .nr-date, :root[lang="ar"] .nr-tag,
:root[lang="ar"] .role-team, :root[lang="ar"] .role-loc, :root[lang="ar"] .role-type, :root[lang="ar"] .role-arrow {
  font-family: "Noto Sans Arabic", "JetBrains Mono", monospace;
  letter-spacing: 0; /* arabic doesn't tolerate wide tracking */
}

/* RTL layout flips ────────────────────────────────────────────── */
[dir="rtl"] .gold-rule {
  /* no flip needed, but keep at the start of text */
}
[dir="rtl"] .hero .copy { text-align: right; }
[dir="rtl"] .hero .scroll-cue { left: auto; right: 50%; transform: translateX(50%); }
[dir="rtl"] .hero .copy .more span { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .chapter.flip .grid > .image-col { order: 0; }
[dir="rtl"] .chapter .grid > .image-col { order: 2; }
[dir="rtl"] .chapter.flip .grid > .copy-col { order: 2; }
[dir="rtl"] .news-row { direction: rtl; }
[dir="rtl"] .news-row .nr-arrow,
[dir="rtl"] .role-row .role-arrow,
[dir="rtl"] .btn-line .arrow {
  transform: scaleX(-1);
}
[dir="rtl"] .nav .right { flex-direction: row-reverse; }
[dir="rtl"] .nav-buttons button:first-child,
[dir="rtl"] .nav-buttons button:last-child {
  /* keep visual order — arrows symbolise time, not direction */
}
[dir="rtl"] .crumbs { direction: rtl; }
[dir="rtl"] .ticker { direction: rtl; }
[dir="rtl"] .opcard .body .visit,
[dir="rtl"] .news .meta {
  /* unicode handles fine */
}
[dir="rtl"] .pillars .row { grid-template-columns: 1fr 36px; }
[dir="rtl"] .pillars .row .k { order: 2; text-align: left; }
[dir="rtl"] .pillars .row .v { order: 1; text-align: right; }
[dir="rtl"] .field > span em { margin-left: 0; margin-right: 4px; }
[dir="rtl"] .legal { direction: rtl; }
[dir="rtl"] .legal .right { text-align: left; }
[dir="rtl"] .legal .right a { margin-left: 0; margin-right: 18px; }

/* Language toggle button ──────────────────────────────────────── */
.lang-switch {
  appearance: none; background: transparent; border: 0;
  color: inherit; cursor: pointer;
  font-family: inherit;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0;
  display: inline-flex; align-items: center; gap: 6px;
}
.lang-switch .seg {
  opacity: 0.5; transition: opacity .25s ease;
  padding: 2px 4px;
}
.lang-switch .seg.active { opacity: 1; }
.lang-switch .div { opacity: 0.4; }
:root[lang="ar"] .lang-switch { letter-spacing: 0; }
