/* ============================================================
   North Africa Holding — corporate website design prototype
   Modern Lighthouse Technology · MLT-PRO-2026-001

   Every value below is derived from the 2026 Brand Guideline:
     · palette      #f4f2ef / #0544cb / #111110 (p.14)
     · typography   Inter ExtraBold / Medium / Light (p.12)
     · Arabic       Lama Sans (p.13) — Plex Arabic stands in here
     · pattern      the repeating N route line (p.17)
     · don'ts (p.9) no gradients, no shadows, no outlines
   ============================================================ */

/* ---------- 1. Tokens ------------------------------------- */

:root {
  /* Primary palette — straight from the guideline */
  --paper:        #f4f2ef;
  --ink:          #111110;
  --blue:         #0544cb;

  /* Tints, sampled from the guideline's own colour strips */
  --stone:        #e4e2de;
  --stone-deep:   #d8d5d0;
  --blue-pale:    #ccd9f5;
  --blue-mid:     #4670da;
  --grey:         #6f6f6a;
  --grey-soft:    #9a9a94;

  /* Structural hairlines — the primary layout device */
  --line:         rgba(17, 17, 16, .14);
  --line-firm:    rgba(17, 17, 16, .28);
  --line-invert:  rgba(244, 242, 239, .22);

  /* Type */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --arabic: "IBM Plex Sans Arabic", "Lama Sans", "Noto Kufi Arabic", var(--sans);

  /* Rhythm */
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --section: clamp(4.5rem, 8vw, 8.5rem);
  --measure: 62ch;

  /* Motion */
  --ease: cubic-bezier(.22, .68, .16, 1);
}

/* ---------- 2. Reset -------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1rem, .38vw + .92rem, 1.0625rem);
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

/* Nothing in this identity is round or shadowed. */
* { border-radius: 0 !important; box-shadow: none !important; }

/* `hidden` must beat any component's own display value. */
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.only-sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 50%; top: 0; z-index: 200;
  transform: translate(-50%, -110%);
  background: var(--blue); color: var(--paper);
  padding: .75rem 1.5rem; font-weight: 500;
}
.skip:focus { transform: translate(-50%, 0); }

/* ---------- 3. Type scale --------------------------------- */

.d1, .d2, .d3, .h2, .h3, .h4 {
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: .94;
  text-wrap: balance;
}

.d1 { font-size: clamp(2.75rem, 6.4vw, 6.75rem); letter-spacing: -.045em; }
.d2 { font-size: clamp(2.4rem, 5.6vw, 5rem); letter-spacing: -.04em; }
.d3 { font-size: clamp(2rem, 4.2vw, 3.6rem); }
.h2 { font-size: clamp(1.75rem, 3.2vw, 2.85rem); line-height: 1; }
.h3 { font-size: clamp(1.25rem, 1.6vw, 1.55rem); line-height: 1.12; letter-spacing: -.025em; }
.h4 { font-size: 1.0625rem; line-height: 1.25; letter-spacing: -.015em; font-weight: 700; }

/* Sub role — Inter Medium, per the guideline pairing */
.sub {
  font-weight: 500;
  letter-spacing: -.012em;
  line-height: 1.4;
  font-size: clamp(1.0625rem, 1.1vw, 1.25rem);
}

.lead {
  font-weight: 300;
  font-size: clamp(1.125rem, 1.35vw, 1.5rem);
  line-height: 1.5;
  letter-spacing: -.015em;
  max-width: 34ch;
}

.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1.15em; }
.prose strong { font-weight: 600; }

/* The guideline sets every section name in italic. So do we. */
.eyebrow {
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.0625rem, 1.2vw, 1.375rem);
  letter-spacing: -.02em;
  color: var(--blue);
}

/* The "_01" and "2026" markers from the guideline's page furniture */
.label {
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey);
  font-feature-settings: "tnum" 1;
}
.label--blue { color: var(--blue); }
.label--pale { color: rgba(244, 242, 239, .6); }

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.muted { color: var(--grey); }
.blue  { color: var(--blue); }

/* ---------- 4. Layout ------------------------------------- */

.wrap {
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 5vw, 5rem); }

.rule { border: 0; border-top: 1px solid var(--line); }

.block--ink   { background: var(--ink);   color: var(--paper); }
.block--blue  { background: var(--blue);  color: var(--paper); }
.block--stone { background: var(--stone); }
.block--ink .label,
.block--blue .label { color: rgba(244, 242, 239, .58); }
.block--ink .eyebrow,
.block--blue .eyebrow { color: var(--paper); }
.block--ink .muted,
.block--blue .muted { color: rgba(244, 242, 239, .66); }
.block--ink .rule,
.block--blue .rule { border-top-color: var(--line-invert); }

/* Section head: italic eyebrow left, heading below, meta right.
   The note column is dropped below the heading before it can start
   squeezing it — a supporting note must never narrow a title. */
.shead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  align-items: end;
  gap: 1.5rem 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
@media (max-width: 62rem) {
  .shead { grid-template-columns: 1fr; align-items: start; }
  .shead p { max-width: 52ch; }
}
.block--ink .shead, .block--blue .shead { border-bottom-color: var(--line-invert); }
.shead .eyebrow { display: block; margin-bottom: .75rem; }
.shead p { max-width: 46ch; }

.cols {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.cols--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }

/* Split: label column + content column, the guideline's own layout.
   Two variants, because which side carries the weight differs:
   --lead  puts the reading matter first (prose, then a facts panel)
   --aside puts a narrow sidebar beside a long article */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.split--lead { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split--aside { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
@media (max-width: 60rem) {
  .split, .split--lead, .split--aside { grid-template-columns: 1fr; }
}

/* ---------- 5. Buttons ------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .95rem 1.6rem;
  font-weight: 500;
  font-size: .9375rem;
  letter-spacing: -.01em;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background .28s var(--ease), color .28s var(--ease), border-color .28s var(--ease);
}
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(.35rem); }

.btn--blue { background: var(--blue); border-color: var(--blue); color: var(--paper); }
.btn--blue:hover { background: var(--ink); border-color: var(--ink); }

.btn--ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--blue); border-color: var(--blue); }

.btn--line:hover { background: var(--ink); color: var(--paper); }

.btn--pale { border-color: rgba(244,242,239,.5); color: var(--paper); }
.btn--pale:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.btn--sm { padding: .6rem 1.1rem; font-size: .8125rem; }

/* Text link with a rule that grows */
.tlink {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 500; font-size: .9375rem;
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--line-firm);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.tlink:hover { border-bottom-color: var(--blue); color: var(--blue); }
.tlink svg { transition: transform .35s var(--ease); }
.tlink:hover svg { transform: translateX(.3rem); }

/* ---------- 6. Masthead ----------------------------------- */

.site-head {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-head.is-stuck { border-bottom-color: var(--line); }

.head-in {
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem);
  height: 5.25rem;
}

.brand { display: flex; align-items: center; gap: .8rem; flex: 0 0 auto; }
.brand .mark { width: 3.4rem; height: auto; color: var(--blue); }
.brand-txt { display: grid; line-height: 1; }
.brand-txt b { font-weight: 800; font-size: 1.0625rem; letter-spacing: -.035em; }
.brand-txt span { font-weight: 300; font-size: .8125rem; letter-spacing: .02em; color: var(--grey); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.1rem); margin-inline-start: auto; }
.nav a {
  font-size: .9375rem; font-weight: 500; letter-spacing: -.01em;
  padding: .4rem 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform .32s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--blue); }

.head-end { display: flex; align-items: center; gap: .9rem; flex: 0 0 auto; }
.lang {
  font-size: .875rem; font-weight: 500;
  padding: .45rem .7rem; border: 1px solid var(--line-firm);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.lang:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.burger { display: none; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line-firm); background: none; cursor: pointer; align-items: center; justify-content: center; }
.burger span { display: block; width: 1.1rem; height: 1px; background: var(--ink); position: relative; transition: background .2s; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1px; background: var(--ink);
  transition: transform .3s var(--ease);
}
.burger span::before { top: -.35rem; }
.burger span::after  { top: .35rem; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(.35rem) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-.35rem) rotate(-45deg); }

.mnav { display: none; border-top: 1px solid var(--line); }
.mnav.is-open { display: block; }
.mnav a {
  display: block; padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500; font-size: 1.125rem; letter-spacing: -.02em;
}

@media (max-width: 64rem) {
  .nav { display: none; }
  .burger { display: flex; }
  .head-in { height: 4.5rem; }
  /* With the nav hidden, nothing was pushing the controls outward,
     so they sat against the wordmark. Anchor them to the edge. */
  .head-end { margin-inline-start: auto; }
}
/* At phone widths the masthead carries the brand, the language
   switch and the menu. "Enquire" lives inside the menu instead. */
@media (max-width: 34rem) {
  .head-in { gap: .75rem; }
  .head-end { gap: .5rem; }
  .head-end .btn--sm { display: none; }
  .brand .mark { width: 2.75rem; }
  .brand-txt b { font-size: .9375rem; }
  .brand-txt span { display: none; }
  .lang { padding: .4rem .55rem; font-size: .8125rem; }
  .hero-copy .btn { width: 100%; justify-content: center; }
}

/* ---------- 7. Hero --------------------------------------- */
/* A hard vertical colour split with the N mass cutting through
   it — the guideline cover, rebuilt as a page header.          */

.hero { border-bottom: 1px solid var(--line); }

.hero-stage { position: relative; overflow: clip; }

.hero-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-art .band {
  position: absolute; inset-block: 0;
  inset-inline-end: 0; width: 44%;
  background: var(--blue);
  overflow: hidden;
}
/* One N, oversized and cropped by the band — the guideline cover
   treatment. Aspect ratio is preserved; the frame does the cutting. */
.hero-art .mass {
  position: absolute; top: 50%;
  inset-inline-start: 10%;
  transform: translateY(-50%);
  width: 108%;
  color: var(--ink);
}
.hero-art .mass svg { width: 100%; height: auto; }

.hero-in {
  position: relative; z-index: 1;
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  display: grid;
  align-content: center;
  min-height: min(72vh, 42rem);
}
.hero-copy {
  max-width: min(50%, 42rem);
  display: grid;
  gap: clamp(1.6rem, 2.8vw, 2.5rem);
}

.hero h1 { max-width: 14ch; }
.hero h1 .ln { display: block; }
.hero .lead { max-width: 38ch; }

@media (max-width: 64rem) {
  .hero-stage { display: flex; flex-direction: column; }
  .hero-art { position: relative; order: 2; height: clamp(7rem, 22vw, 11rem); }
  .hero-art .band { width: 100%; }
  .hero-art .mass { width: auto; height: 190%; inset-inline-start: auto; inset-inline-end: 6%; }
  .hero-art .mass svg { width: auto; height: 100%; }
  .hero-in { min-height: 0; padding-block: clamp(2.5rem, 8vw, 4rem); }
  .hero-copy { max-width: none; }
}

.hero-foot {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
}

/* Register strip — the group's scale, set as a ledger row
   rather than four boxes. Tabular figures, hairline dividers. */
.reg { display: grid; grid-template-columns: repeat(4, 1fr); }
.reg > div {
  padding: clamp(1.25rem, 2.2vw, 2rem) 0;
  padding-inline-end: 1rem;
  border-inline-start: 1px solid var(--line);
  padding-inline-start: clamp(1rem, 2vw, 1.75rem);
}
.reg > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.reg b {
  display: block; font-weight: 800; letter-spacing: -.045em;
  font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.reg span { display: block; margin-top: .55rem; }
@media (max-width: 46rem) {
  .reg { grid-template-columns: repeat(2, 1fr); }
  .reg > div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .reg > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Page header for interior templates */
.phead { border-bottom: 1px solid var(--line); }
.phead-in {
  padding-block: clamp(3rem, 6vw, 6rem) clamp(2rem, 3.5vw, 3.25rem);
  display: grid; gap: 1.75rem;
}
.phead h1 { max-width: 18ch; }
.crumb { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.crumb a:hover { color: var(--blue); }
.crumb .sep { color: var(--grey-soft); }

/* ---------- 8. The route line ----------------------------- */
/* The brand's repeating N (guideline p.17) drawn as one stroke.
   It carries the group's timeline: each vertex is a year.      */

.route { position: relative; }
.route svg { width: 100%; height: auto; overflow: visible; }
.route .track { stroke: var(--line-firm); }
.route .draw {
  stroke: var(--blue);
  stroke-dasharray: var(--len, 4000);
  stroke-dashoffset: var(--len, 4000);
}
.route.in .draw {
  animation: draw 2.6s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.route .node { fill: var(--paper); stroke: var(--blue); stroke-width: 3; }
.route .cap  { fill: var(--blue); }

/* Timeline entries pinned to the route's vertices */
.stops {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}
.stops li {
  padding: 1.25rem clamp(.75rem, 1.5vw, 1.5rem) 0 0;
  border-inline-start: 1px solid var(--line);
  padding-inline-start: clamp(.75rem, 1.5vw, 1.25rem);
}
.stops li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stops b { display: block; font-weight: 800; font-size: 1.5rem; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stops span { display: block; margin-top: .3rem; font-size: .9375rem; }
.stops small { display: block; margin-top: .35rem; color: var(--grey); font-size: .8125rem; }

/* The rail: the same N unit rotated a quarter turn, one segment per
   stop, stretched to whatever height that stop needs. Only shown
   once the horizontal run stops fitting. */
.rail { display: none; }

@media (max-width: 54rem) {
  .route-wide { display: none; }

  .stops {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    border-top: 0;
    margin-top: 1.25rem;
  }
  /* :first-child is repeated so this beats the desktop rule that
     zeroes the first item's inline padding. */
  .stops li,
  .stops li:first-child {
    position: relative;
    border-inline-start: 0;
    border-bottom: 0;
    padding: 0 0 clamp(1.75rem, 5vw, 2.5rem);
    padding-inline-start: 4.25rem;
  }
  .stops li:last-child { padding-bottom: 0; }

  /* Scoped to .stops so it outranks `.route svg { width: 100% }`,
     which otherwise stretches the rail across the whole row. */
  /* An <svg> is a replaced element: with height:auto its intrinsic
     viewBox ratio wins and `bottom` is ignored, which left the rail
     a fixed 100px and broke the joint between stops. Height is
     therefore stated, and overshoots by .4rem so each segment meets
     the next node. */
  .stops .rail {
    display: block;
    position: absolute;
    top: 1rem;
    bottom: auto;
    inset-inline-start: 0;
    width: 3.5rem;
    height: calc(100% - 0.6rem);
    overflow: visible;
  }

  /* Node, sitting where this stop's segment begins and the previous
     one ended, so the line reads as continuous. */
  .stops li::before {
    content: "";
    position: absolute;
    top: .15rem;
    inset-inline-start: 2.62rem;
    width: .75rem;
    height: .75rem;
    background: var(--blue);
    border-radius: 999px !important;
  }

  .stops b { font-size: 1.75rem; }
  .stops span { margin-top: .15rem; }
}

[dir="rtl"] .rail { transform: scaleX(-1); }

/* ---------- 9. Sector manifest ---------------------------- */
/* Nine rows, not nine cards. Hovering sweeps a blue field in
   with its leading edge cut at the angle of the N.             */

.manifest { border-top: 1px solid var(--line); }

.mrow {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 20rem) 3rem;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  padding: clamp(1.4rem, 2.4vw, 2.1rem) 0;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  transition: color .34s var(--ease);
}
.mrow::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: calc(var(--gutter) * -1);
  width: calc(100% + var(--gutter) * 2);
  background: var(--blue);
  z-index: -1;
  clip-path: polygon(0 0, 100% 0, calc(100% - 3.5rem) 100%, 0 100%);
  transform: translateX(-101%);
  transition: transform .55s var(--ease);
}
.mrow:hover, .mrow:focus-visible { color: var(--paper); }
.mrow:hover::before, .mrow:focus-visible::before { transform: translateX(0); }
.mrow:hover .mnum, .mrow:hover .mmeta,
.mrow:focus-visible .mnum, .mrow:focus-visible .mmeta { color: rgba(244,242,239,.85); }
.mrow:hover .marrow, .mrow:focus-visible .marrow { transform: translateX(.4rem); opacity: 1; }

/* The sectors index adds a company count column. */
.manifest--count .mrow {
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 16rem) 7.5rem 3rem;
}
.mcount { font-size: .875rem; font-weight: 500; transition: color .34s var(--ease); }
.mrow:hover .mcount, .mrow:focus-visible .mcount { color: var(--paper); }

.mnum { font-size: .8125rem; font-weight: 500; letter-spacing: .12em; color: var(--grey); font-variant-numeric: tabular-nums; transition: color .34s var(--ease); }
.mname { font-weight: 800; font-size: clamp(1.3rem, 2.6vw, 2.35rem); letter-spacing: -.035em; line-height: 1.05; }
.mmeta { color: var(--grey); font-size: .9375rem; line-height: 1.45; transition: color .34s var(--ease); }
.marrow { opacity: .4; transition: transform .4s var(--ease), opacity .3s var(--ease); justify-self: end; }

/* Two columns on narrow screens: the index number, then the name
   and its detail stacked. The arrow is decorative — the whole row
   is the link — so it is dropped rather than wrapped onto its own line. */
@media (max-width: 62rem) {
  .mrow {
    grid-template-columns: 2.75rem minmax(0, 1fr);
    align-items: start;
    gap: .4rem 1.25rem;
  }
  .manifest--count .mrow { grid-template-columns: 2.75rem minmax(0, 1fr); }
  .mnum { grid-row: 1; }
  .mname, .mmeta, .mcount { grid-column: 2; }
  .mcount { color: var(--blue); }
  .marrow { display: none; }
  .mrow::before { clip-path: polygon(0 0, 100% 0, calc(100% - 2rem) 100%, 0 100%); }
}

/* ---------- 10. Cards & lists ----------------------------- */

.card {
  display: flex; flex-direction: column; gap: .8rem;
  padding: clamp(1.5rem, 2.2vw, 2rem);
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.card:hover { border-color: var(--ink); }
a.card:hover { background: var(--ink); color: var(--paper); }
a.card:hover .muted, a.card:hover .label { color: rgba(244,242,239,.66); }
.card .h3 { margin-block: .15rem; }
.card-foot { margin-top: auto; padding-top: 1rem; }

/* Compact card for sidebars: the related panel on an article is a
   signpost, not a second story. */
.card--tight {
  padding: 1rem 1.1rem;
  gap: .35rem;
}
.card--tight .h3 { font-size: 1.0625rem; letter-spacing: -.02em; margin: 0; }
.card--tight p { font-size: .875rem; line-height: 1.45; }
.card--tight .label { font-size: .625rem; }

/* Company card: the mark sits as a quiet monogram */
.co-mark {
  width: 2.6rem; color: var(--blue);
  transition: color .3s var(--ease);
}
a.card:hover .co-mark { color: var(--paper); }

/* Definition rows — used for addresses, specs, facts */
.dl { border-top: 1px solid var(--line); }
.dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 1rem 2rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}
.dl dt { font-weight: 500; font-size: .9375rem; }
.dl dd { margin: 0; }
.block--ink .dl, .block--ink .dl > div { border-color: var(--line-invert); }
@media (max-width: 40rem) { .dl > div { grid-template-columns: 1fr; gap: .25rem; } }

/* Numbered stack — only where order genuinely carries meaning */
.steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps li {
  display: grid; grid-template-columns: 3.5rem 1fr; gap: 1.5rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line);
}
.steps .label { padding-top: .35rem; }

/* News list */
.nlist { border-top: 1px solid var(--line); }
.nlist a {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) 11rem 2rem;
  gap: clamp(1rem, 2vw, 2rem); align-items: baseline;
  padding: clamp(1.25rem, 2vw, 1.75rem) 0;
  border-bottom: 1px solid var(--line);
  transition: color .28s var(--ease);
}
.nlist a:hover { color: var(--blue); }
.nlist a:hover .ntag { border-color: var(--blue); }
.ntitle { font-weight: 500; font-size: clamp(1.0625rem, 1.5vw, 1.35rem); letter-spacing: -.022em; line-height: 1.25; }
.ntag { display: inline-block; border: 1px solid var(--line-firm); padding: .2rem .6rem; font-size: .75rem; transition: border-color .28s var(--ease); }
@media (max-width: 58rem) {
  .nlist a { grid-template-columns: 1fr auto; gap: .5rem 1rem; }
  .nlist .ntitle { grid-column: 1 / -1; order: 2; }
  .nlist .ntag { order: 3; justify-self: start; }
  .nlist .narrow { display: none; }
}

/* Pull quote — the chairman's voice, set large and light */
.pull {
  font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  line-height: 1.24;
  letter-spacing: -.03em;
  max-width: 24ch;
  text-wrap: balance;
}
.pull em { font-style: italic; color: var(--blue); }

/* Filter chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  border: 1px solid var(--line-firm); background: none;
  padding: .5rem 1rem; font-size: .875rem; font-weight: 500; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- 11. Organisation chart ------------------------ */
/* Built from data, drawn with rules — not an exported image.  */

.org { display: grid; gap: 0; }
.org-tier { border-top: 1px solid var(--line); padding-block: 1.5rem; }
.org-tier:first-child { border-top: 0; }
.org-tier > .label { display: block; margin-bottom: 1rem; }
.org-set { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.org-node {
  border: 1px solid var(--line-firm);
  padding: .9rem 1rem;
  display: grid; gap: .2rem;
}
.org-node b { font-weight: 600; font-size: .9375rem; letter-spacing: -.015em; }
.org-node span { font-size: .8125rem; color: var(--grey); }
.org-node--lead { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.org-node--lead span { color: rgba(244,242,239,.66); }
.org-node--sector { border-color: var(--blue); color: var(--blue); }

/* ---------- 12. Forms ------------------------------------- */

.form { display: grid; gap: 1.5rem; }
.field { display: grid; gap: .45rem; }
.field > label { font-size: .875rem; font-weight: 500; }
.field .hint { font-size: .8125rem; color: var(--grey); }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 300;
  padding: .85rem 1rem;
  border: 1px solid var(--line-firm);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
  transition: border-color .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue); outline: none;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field-row { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }

.routed {
  border: 1px solid var(--blue);
  padding: 1rem 1.15rem;
  display: grid; gap: .3rem;
  background: rgba(5, 68, 203, .05);
}
.routed b { font-weight: 600; font-size: .9375rem; }

/* ---------- 13. Footer ------------------------------------ */

.site-foot { background: var(--ink); color: var(--paper); }

/* The N pattern as a repeating hairline band (guideline p.17) */
.pattern-band {
  height: clamp(4rem, 7vw, 6.5rem);
  border-bottom: 1px solid var(--line-invert);
  overflow: hidden;
}
.pattern-band svg { width: 100%; height: 100%; }

/* Explicit tracks at every width. `auto-fit` with a mixed first
   column collapsed the brand block to a one-word column on phones. */
.foot-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  padding-block: clamp(3rem, 5vw, 4.5rem);
}
@media (max-width: 64rem) {
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1.5rem; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-brand p { max-width: none; }
}
.foot-grid h2 { font-size: .6875rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: rgba(244,242,239,.5); margin-bottom: 1.1rem; }
.foot-grid li + li { margin-top: .6rem; }
.foot-grid a { font-size: .9375rem; color: rgba(244,242,239,.82); transition: color .25s var(--ease); }
.foot-grid a:hover { color: var(--paper); }
.foot-brand .mark { width: 4.5rem; color: var(--paper); margin-bottom: 1.2rem; }
.foot-brand p { color: rgba(244,242,239,.66); font-size: .9375rem; max-width: 32ch; }

.foot-end {
  border-top: 1px solid var(--line-invert);
  padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between;
  font-size: .8125rem; color: rgba(244,242,239,.5);
}
.foot-end a:hover { color: var(--paper); }

/* Prototype notice — honest about placeholder content */
.proto-note {
  border: 1px dashed rgba(244,242,239,.3);
  padding: .7rem 1rem;
  font-size: .75rem;
  color: rgba(244,242,239,.6);
  max-width: 44ch;
}

/* ---------- 14. Scroll reveal ----------------------------- */

.rise { opacity: 0; transform: translateY(1.35rem); }
.rise.in {
  opacity: 1; transform: none;
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.rise.in.lag1 { transition-delay: .08s; }
.rise.in.lag2 { transition-delay: .16s; }
.rise.in.lag3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .rise { opacity: 1; transform: none; }
  .route .draw { stroke-dashoffset: 0; }
}

/* ---------- 15. Arabic / RTL ------------------------------ */
/* Direction-aware from the ground up: every rule above uses
   logical properties, so this block only swaps the typeface
   and the few places where Latin metrics do not carry over.   */

[lang="ar"], [dir="rtl"] { font-family: var(--arabic); }
[dir="rtl"] body, [dir="rtl"] { line-height: 1.85; }
[dir="rtl"] .d1, [dir="rtl"] .d2, [dir="rtl"] .d3,
[dir="rtl"] .h2, [dir="rtl"] .h3, [dir="rtl"] .mname {
  letter-spacing: 0;
  line-height: 1.22;
  font-weight: 700;
}
[dir="rtl"] .lead, [dir="rtl"] .pull { letter-spacing: 0; line-height: 1.7; }
[dir="rtl"] .eyebrow { font-style: normal; }
[dir="rtl"] .label { letter-spacing: 0; }
/* The mark is never mirrored (guideline p.13 sets it above Arabic
   text unflipped) — only its position in the frame changes. */
[dir="rtl"] .hero-art .mass { inset-inline-start: auto; inset-inline-end: 10%; }
[dir="rtl"] .nav a::after { transform-origin: right; }
[dir="rtl"] .btn:hover svg, [dir="rtl"] .tlink:hover svg { transform: translateX(-.35rem); }
[dir="rtl"] .arrow-e { transform: scaleX(-1); }

/* Directional motion has to reverse with the text, or the page
   reads as though it were animating backwards. */

/* The manifest wipe enters from the right, and its leading edge
   (now the left one) leans the opposite way. */
[dir="rtl"] .mrow::before {
  clip-path: polygon(3.5rem 0, 100% 0, 100% 100%, 0 100%);
  transform: translateX(101%);
}
[dir="rtl"] .mrow:hover::before,
[dir="rtl"] .mrow:focus-visible::before { transform: translateX(0); }
[dir="rtl"] .mrow:hover .marrow,
[dir="rtl"] .mrow:focus-visible .marrow { transform: translateX(-.4rem) scaleX(-1); }
@media (max-width: 62rem) {
  [dir="rtl"] .mrow::before { clip-path: polygon(2rem 0, 100% 0, 100% 100%, 0 100%); }
}

/* The route reverses as a whole: the timeline must start at the
   right, where 2006 sits, and draw towards the left. Mirroring the
   diagram also keeps every node above its own year. */
[dir="rtl"] .route svg { transform: scaleX(-1); }

/* ---------- 16. Imagery ----------------------------------- */

.fig { overflow: hidden; background: var(--stone); }
.fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fig--wide { aspect-ratio: 16 / 9; }
.fig--4x3 { aspect-ratio: 4 / 3; }
.fig--3x2 { aspect-ratio: 3 / 2; }
.fig--3x4 { aspect-ratio: 3 / 4; }
.fig--tall { aspect-ratio: 4 / 5; }
.figcap { display: block; margin-top: .8rem; }

/* Full-bleed band. Hard-edged, never rounded, never overlaid
   with text — the type keeps its own ground. */
.imgband { height: clamp(16rem, 40vw, 32rem); overflow: hidden; background: var(--stone); }
.imgband img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Image sitting inside a card, bleeding to its border */
.card-img {
  margin: calc(clamp(1.5rem, 2.2vw, 2rem) * -1);
  margin-bottom: .9rem;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--stone);
}
.card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .7s var(--ease), opacity .3s var(--ease);
}
a.card:hover .card-img img { transform: scale(1.045); }

/* Page-header image for sector and company templates */
.phead--img .phead-in { padding-bottom: clamp(2rem, 4vw, 3rem); }

/* ---------- 17. Style guide page -------------------------- */

.swatch { display: grid; gap: .75rem; }
.swatch .chip-lg { aspect-ratio: 3 / 2; border: 1px solid var(--line); }
.swatch code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8125rem; }
.spec { border-top: 1px solid var(--line); padding-top: 1rem; }
.spec + .spec { margin-top: 2.5rem; }
