/* ==========================================================================
   EL Petro Energy Lines — site.css
   One stylesheet for /index.html (en, ltr) and /ar/index.html (ar, rtl).
   Logical properties only; direction-specific rules live in the reserved
   block at the end of this file.
   Palette and contrast pairs: el-petro/brand/brief.md §1 (computed table).
   ========================================================================== */

/* ---------- Fonts (self-hosted Latin subsets, OFL — see assets/fonts/*.txt) */
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("../fonts/barlow-semi-condensed-500-latin.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("../fonts/barlow-semi-condensed-600-latin.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-var-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens */
:root {
  --deep-hull: #0B1D2E;
  --fathom: #16344D;
  --sea-lane: #8FB3C7;
  --mist: #C9D3DB;
  --chart-paper: #F4F2ED;
  --sounding: #5A6B7B;
  --load-line: #E0662B;
  --white: #FFFFFF;

  --font-display: "Barlow Semi Condensed", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-text: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-display-xl: clamp(2.75rem, 6.5vw, 6rem);
  --fs-display-l: clamp(2rem, 4vw, 3.5rem);
  --fs-numeral: clamp(4.5rem, 14vw, 11rem);
  --fs-h3: 1.5rem;
  --fs-eyebrow: 0.8125rem;
  --fs-body: 1.0625rem;
  --fs-lead: 1.1875rem;
  --fs-data: 0.875rem;
  --fs-small: 0.8125rem;

  --lh-body: 1.6;
  --tracking-eyebrow: 0.2em;

  --page-pad: clamp(20px, 5vw, 64px);
  --gutter: clamp(16px, 3vw, 32px);
  --wrap: 1280px;
  --section-pad: clamp(72px, 10vw, 144px);
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --rule-dark: rgb(143 179 199 / .2);
  --rule-paper: rgb(244 242 237 / .12);
}

/* ---------- Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-block-start: calc(var(--header-h) + 1px);
  background: var(--deep-hull);
}
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--deep-hull);
  background: var(--chart-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-inline-size: 100%; }
img { block-size: auto; }
h1, h2, h3, p, dl, dd, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.tnum { font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute !important; inline-size: 1px; block-size: 1px;
  margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0);
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
/* Illustrations depict real geometry (a bow pointing ahead): never mirrored. */
.illus { direction: ltr; }

/* Colour themes per block: text pairs are from the brief's AA table. */
.on-dark   { background: var(--deep-hull);  color: var(--mist); --focus: var(--load-line); --heading: var(--chart-paper); --quiet: var(--sea-lane); --rule: var(--rule-dark); }
.on-fathom { background: var(--fathom);     color: var(--mist); --focus: var(--chart-paper); --heading: var(--chart-paper); --quiet: var(--sea-lane); --rule: rgb(143 179 199 / .28); }
.on-light  { background: var(--chart-paper); color: var(--deep-hull); --focus: var(--deep-hull); --heading: var(--deep-hull); --quiet: var(--sounding); --rule: var(--mist); }

:focus-visible {
  outline: 2px solid var(--focus, var(--load-line));
  outline-offset: 2px;
}

.skip-link {
  position: absolute; inset-inline-start: 16px; inset-block-start: -100px; z-index: 100;
  padding: 12px 18px; background: var(--chart-paper); color: var(--deep-hull);
  font-weight: 600; font-size: var(--fs-data); text-decoration: none;
  --focus: var(--load-line);
}
.skip-link:focus { inset-block-start: 12px; }

/* ---------- Layout */
.wrap {
  inline-size: min(100% - 2 * var(--page-pad), var(--wrap));
  margin-inline: auto;
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}
.section { padding-block: var(--section-pad); position: relative; }

/* Section headings receive focus after a mobile-menu jump (site.js); they are not controls. */
h2[tabindex="-1"]:focus { outline: none; }

/* ---------- Type primitives */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.3;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--quiet);
}
.label { display: flex; align-items: center; }
.label .num {
  display: inline-flex; align-items: center;
  font-variant-numeric: tabular-nums;
  color: var(--heading);
}
.label .num::after {
  content: ""; display: inline-block;
  inline-size: 28px; block-size: 1px; margin-inline: 12px;
  background: currentColor; opacity: .5;
}
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-display-l);
  line-height: 1.05;
  letter-spacing: 0;
  color: var(--heading);
  text-wrap: balance;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  max-inline-size: 36em;
  text-wrap: pretty;
}
.on-light .lead { color: var(--fathom); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  min-block-size: 44px;
  font-weight: 500; font-size: 0.9375rem;
  color: var(--heading);
  text-decoration: none;
  border-block-end: 1px solid transparent;
}
.link-arrow > span, .link-arrow { text-underline-offset: 6px; }
.link-arrow:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.arrow {
  inline-size: 16px; block-size: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square;
  transition: transform .3s var(--ease);
}
.link-arrow:hover .arrow { transform: translateX(3px); }

/* ==========================================================================
   Header (Mobbin ref 1 — Linear)
   ========================================================================== */
.site-header {
  position: sticky; inset-block-start: 0; z-index: 50;
  background: var(--deep-hull);
  color: var(--mist);
  border-block-end: 1px solid var(--rule-paper);
  transition: border-color .3s ease;
  --focus: var(--load-line);
}
html.reveal-ready .site-header:not(.is-scrolled) { border-block-end-color: transparent; }
.header-bar {
  display: flex; align-items: center; gap: 8px;
  block-size: var(--header-h);
}
/* Header lockup: exactly 30px high, 7px clear space (brand/final/README) */
.brand { display: block; margin-inline-end: auto; padding: 7px; margin-inline-start: -7px; }
.brand img { inline-size: 225px; block-size: 30px; }
.nav ul { display: flex; gap: 4px; }
.nav a, .lang-switch--bar a {
  display: inline-flex; align-items: center;
  min-block-size: 44px; padding-inline: 12px;
  font-size: var(--fs-data); font-weight: 500; line-height: 1;
  color: var(--mist); text-decoration: none;
  position: relative;
  transition: color .2s ease;
}
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="true"] { color: var(--chart-paper); }
.nav a::after {
  content: ""; position: absolute; inset-inline: 12px; inset-block-end: 10px;
  block-size: 1px; background: var(--sea-lane);
  transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav a[aria-current="true"]::after { transform: scaleX(1); }

.lang-switch { display: flex; align-items: center; }
.lang-switch li + li { border-inline-start: 1px solid var(--rule-dark); }
.lang-switch a { color: var(--sea-lane); }
.lang-switch a[aria-current="true"] { color: var(--chart-paper); }
.lang-switch a:hover { color: var(--chart-paper); }
.lang-switch--bar { margin-inline: 12px 16px; padding-inline-start: 16px; border-inline-start: 1px solid var(--rule-dark); }
.lang-switch--bar a { font-size: 0.8125rem; }
/* Arabic label fonts: see the reserved Arabic block at the end of this file. */

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  min-block-size: 44px; padding-inline: 20px;
  border: 1px solid var(--chart-paper);
  color: var(--chart-paper); text-decoration: none;
  font-size: var(--fs-data); font-weight: 500; line-height: 1;
  transition: background-color .2s ease, color .2s ease;
}
.btn-outline:hover { background: var(--chart-paper); color: var(--deep-hull); }
.btn-outline { gap: 10px; }
.btn-outline .arrow { inline-size: 14px; block-size: 14px; }

/* Mobile menu: <details> disclosure, works without JS */
.menu { display: none; }
.menu summary {
  display: flex; align-items: center; gap: 10px;
  min-block-size: 44px; padding-inline: 14px;
  border: 1px solid rgb(244 242 237 / .35);
  color: var(--chart-paper);
  font-size: var(--fs-data); font-weight: 500;
  list-style: none; cursor: pointer; user-select: none;
}
.menu summary::-webkit-details-marker { display: none; }
.menu-icon { position: relative; inline-size: 16px; block-size: 9px; }
.menu-icon::before, .menu-icon::after {
  content: ""; position: absolute; inset-inline: 0; block-size: 1.5px; background: currentColor;
  transition: transform .25s var(--ease), inset-block-start .25s var(--ease);
}
.menu-icon::before { inset-block-start: 0; }
.menu-icon::after { inset-block-start: 7.5px; inset-inline-end: 4px; }
.menu[open] .menu-icon::before { inset-block-start: 3.75px; transform: rotate(45deg); }
.menu[open] .menu-icon::after { inset-block-start: 3.75px; inset-inline-end: 0; transform: rotate(-45deg); }
.menu-panel {
  position: absolute; inset-inline: 0; inset-block-start: var(--header-h);
  background: var(--deep-hull);
  border-block: 1px solid var(--rule-paper);
  padding: 8px var(--page-pad) 28px;
  /* full-screen sheet: the page never shows through beneath the menu */
  block-size: calc(100svh - var(--header-h)); overflow-y: auto;
  display: flex; flex-direction: column;
}
.menu-panel .dash-band--menu { margin-block-start: auto; padding-block: 40px 0; }
.menu-panel .menu-legal { margin-block-start: 0; padding-block-start: 20px; }
.menu-links a {
  display: flex; align-items: baseline; gap: 16px;
  padding-block: 16px;
  border-block-end: 1px solid var(--rule-dark);
  font-family: var(--font-display); font-weight: 600; font-size: 1.875rem; line-height: 1.1;
  color: var(--chart-paper); text-decoration: none;
}
.menu-num {
  font-family: var(--font-display); font-weight: 500; font-size: 0.875rem;
  letter-spacing: .1em; color: var(--sea-lane); font-variant-numeric: tabular-nums;
  inline-size: 2em;
}
.lang-switch--panel { margin-block-start: 20px; }
.lang-switch--panel a {
  display: inline-flex; align-items: center; min-block-size: 44px; padding-inline: 16px;
  font-size: 0.9375rem; text-decoration: none;
}
.lang-switch--panel li:first-child a { padding-inline-start: 0; }
.menu-legal { margin-block-start: 12px; font-size: var(--fs-small); color: var(--sea-lane); }

@media (max-width: 960px) {
  .nav, .lang-nav--bar, .site-header .btn-outline { display: none; }
  .menu { display: block; }
  html:has(.menu[open]) { overflow: hidden; }
}

/* ==========================================================================
   Hero (Mobbin refs 2, 3 — typographic hero + hairline field)
   ========================================================================== */
.hero {
  min-block-size: calc(88svh - var(--header-h) * .25);
  display: flex; flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
.hero-inner { padding-block: clamp(56px, 11vh, 128px) clamp(40px, 6vh, 72px); }
.hero-eyebrow { display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; }
.hero-eyebrow .sep {
  display: inline-block; inline-size: 5px; block-size: 5px; margin-inline: 14px;
  background: var(--sea-lane); opacity: .6;
}
.hero h1 {
  margin-block-start: clamp(20px, 3vw, 32px);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-display-xl);
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--chart-paper);
  max-inline-size: 12.5em;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--load-line); }
.hero-foot {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: end;
  margin-block-start: clamp(36px, 5vw, 64px);
}
.hero-lead { grid-column: 1 / span 6; }
.hero-lead p { font-size: 1.125rem; line-height: 1.6; max-inline-size: 52ch; color: var(--mist); }
.hero-links { display: flex; flex-wrap: wrap; column-gap: 32px; margin-block-start: 20px; }
.hero-meta { grid-column: 9 / -1; }
.hero-meta div, .facts div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-block: 12px;
  border-block-start: 1px solid var(--rule);
}
.hero-meta div:last-child { border-block-end: 1px solid var(--rule); }
.hero-meta dt, .facts dt {
  font-family: var(--font-display); font-weight: 500;
  font-size: 0.875rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--quiet);
  flex: none;
}
.hero-meta dd { font-size: 0.9375rem; color: var(--chart-paper); text-align: end; }
/* Registration figures read as signage: display face, tabular */
.hero-meta dd.tnum {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.25rem; line-height: 1; letter-spacing: .02em;
}

.lanes {
  margin-block-start: auto;
  block-size: clamp(180px, 22vw, 320px);
  position: relative;
}
.lanes svg { inline-size: 100%; block-size: 100%; }
.lanes .load-line, .lanes .course, .lanes .hull-glyph path { vector-effect: non-scaling-stroke; }

/* ==========================================================================
   Section grid (Mobbin ref 4 — label cols 1–3, content cols 4–12)
   ========================================================================== */
.section > .grid > .label { grid-column: 1 / span 3; align-self: start; padding-block-start: .9em; }
.section > .grid > .head { grid-column: 4 / span 8; }
.section .head .lead { margin-block-start: 24px; }

/* ==========================================================================
   Activity (Mobbin refs 5, 6 — giant numeral, hairline list)
   ========================================================================== */
.code-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: end;
  margin-block-start: clamp(56px, 8vw, 112px);
  padding-block-end: clamp(20px, 2.5vw, 32px);
  border-block-end: 1px solid var(--deep-hull);
}
.code-row { grid-template-rows: 1fr auto; row-gap: 10px; }
.code-label { grid-column: 9 / -1; grid-row: 1; }
.code-caption {
  grid-column: 9 / -1; grid-row: 2;
  max-inline-size: 30ch;
  font-size: var(--fs-data); line-height: 1.5; color: var(--sounding);
}
.numeral-value {
  grid-column: 1 / span 8; grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-numeral);
  line-height: .9;
  letter-spacing: -0.01em;
  color: var(--deep-hull);
  margin-block-end: -0.04em;
  margin-inline-start: -0.04em;
}

.hull-drawing {
  grid-column: 1 / -1;
  margin-block-start: clamp(40px, 6vw, 80px);
  display: flex; justify-content: flex-end;
  overflow: hidden;
}
.hull-drawing svg { inline-size: 100%; block-size: auto; flex: none; overflow: hidden; }
.hull-drawing svg * { vector-effect: non-scaling-stroke; }

.rows {
  grid-column: 1 / -1;
  margin-block-start: clamp(40px, 6vw, 80px);
  border-block-start: 1px solid var(--deep-hull);
}
.row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: baseline;
  padding-block: 26px;
  border-block-end: 1px solid var(--mist);
}
.row dt { grid-column: 1 / span 3; }
.row dt, .panel-kicker, .f-label, .c-row dt {
  font-family: var(--font-display); font-weight: 500;
  font-size: 0.875rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--quiet);
}
.row-name {
  grid-column: 4 / span 5;
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-h3); line-height: 1.2; letter-spacing: .01em;
  color: var(--deep-hull);
}
.row-desc { grid-column: 9 / -1; color: var(--sounding); max-inline-size: 40ch; }

/* ==========================================================================
   Company (Mobbin refs 3, 7 — split, two-tone stacked headline)
   ========================================================================== */
.company { overflow: hidden; isolation: isolate; }
.graticule {
  position: absolute; inset: 0; z-index: -1;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 30%, #000 70%, transparent 100%);
}
.graticule svg { inline-size: 100%; block-size: 100%; }
.stack-head {
  grid-column: 4 / -1;
  font-size: clamp(2.5rem, 5.6vw, 5.25rem);
  line-height: .98;
  letter-spacing: .005em;
  text-transform: uppercase;
}
.stack-head span { display: block; }
.stack-head .muted { color: var(--sea-lane); }
.company-body {
  grid-column: 4 / -1;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  column-gap: var(--gutter);
  margin-block-start: clamp(48px, 6vw, 88px);
}
.company-body .lead { grid-column: 1 / span 4; color: var(--mist); }
.facts { grid-column: 6 / -1; font-size: 0.9375rem; }
.facts div { flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 4px; padding-block: 14px 16px; }
.facts div:last-child { border-block-end: 1px solid var(--rule); }
.facts dd { color: var(--chart-paper); }

/* ==========================================================================
   Licence register (Mobbin ref 7 — SIGMA corporate data table)
   ========================================================================== */
.licence-head { text-align: center; max-inline-size: 40rem; margin-inline: auto; }
.licence-head .label { justify-content: center; }
/* Number rule only ("— 03 —"): the title below names the section */
.label--rule .num::before {
  content: ""; display: inline-block;
  inline-size: 28px; block-size: 1px; margin-inline: 12px;
  background: currentColor; opacity: .5;
}
/* SIGMA: a centred, small, sober small-caps title; the panel carries the section */
.licence-head h2 {
  margin-block-start: 18px;
  font-weight: 500;
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.licence-head .lead { margin: 16px auto 0; color: var(--sounding); font-size: var(--fs-body); }

.panel {
  position: relative;
  max-inline-size: 880px;
  margin: clamp(40px, 6vw, 72px) auto 0;
  background: var(--white);
  border: 1px solid var(--deep-hull);
  padding-block-end: 44px;
}
/* The one orange line in this composition: a load line under the document */
.panel::after {
  content: ""; position: absolute;
  inset-inline: clamp(20px, 4.5vw, 40px); inset-block-end: 20px;
  block-size: 2px; background: var(--load-line);
}
.panel-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  padding: clamp(24px, 4vw, 36px) clamp(20px, 4.5vw, 40px);
  border-block-end: 1px solid var(--deep-hull);
}
.panel-title {
  margin-block-start: 10px;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1;
  color: var(--deep-hull);
}
.panel-sub { margin-block-start: 6px; font-size: var(--fs-data); color: var(--sounding); }
.seal { inline-size: clamp(64px, 9vw, 88px); flex: none; }

.register { inline-size: 100%; border-collapse: collapse; font-size: 1rem; }
.register th, .register td {
  text-align: start; vertical-align: baseline;
  padding-block: 15px;
  border-block-end: 1px solid var(--mist);
}
.register th {
  inline-size: 32%;
  padding-inline: clamp(20px, 4.5vw, 40px) 24px;
  font-weight: 500; font-size: var(--fs-data); color: var(--sounding);
}
.register td { padding-inline-end: clamp(20px, 4.5vw, 40px); color: var(--deep-hull); }
.register .val { font-variant-numeric: tabular-nums; }
.register .val-orig { display: block; margin-block-start: 4px; font-size: var(--fs-data); line-height: 1.5; color: var(--sounding); }
.copy {
  float: inline-end;
  display: inline-flex; align-items: center; justify-content: center;
  min-block-size: 44px; min-inline-size: 44px; margin-block: -11px; margin-inline-start: 16px;
  padding-inline: 10px;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 500; font-size: 0.8125rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--sounding);
}
.copy .copy-label { border-block-end: 1px solid var(--mist); padding-block-end: 1px; }
.copy:hover { color: var(--deep-hull); }
.copy:hover .copy-label { border-block-end-color: var(--deep-hull); }
.copy.is-done { color: var(--deep-hull); }
.panel-foot {
  padding: 18px clamp(20px, 4.5vw, 40px) 0;
  font-size: var(--fs-data); color: var(--sounding);
}

/* ==========================================================================
   Contact (Mobbin ref 8 — Kinfolk rows with heavy top rule)
   ========================================================================== */
.contact { padding-block-end: clamp(48px, 6vw, 80px); }
.c-rows { grid-column: 1 / -1; margin-block-start: clamp(48px, 7vw, 96px); }
.c-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: baseline;
  padding-block: 22px clamp(36px, 4vw, 56px);
  border-block-start: 2px solid var(--chart-paper);
}
.c-row:last-child { padding-block-end: 0; }
.c-row dt { grid-column: 1 / span 3; color: var(--sea-lane); }
.c-value {
  grid-column: 4 / -1;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.625rem, 3.2vw, 2.75rem); line-height: 1.12;
  color: var(--chart-paper);
}
.c-value address > span { display: block; }
.c-action { grid-column: 4 / -1; justify-self: start; margin-block-start: 32px; }

/* ==========================================================================
   Footer (Mobbin refs 9, 10 — regulatory footer, dashed band)
   ========================================================================== */
.site-footer {
  background: var(--deep-hull);
  color: var(--mist);
  font-size: var(--fs-data);
  --focus: var(--load-line); --quiet: var(--sea-lane);
}
.dash-band {
  display: grid; row-gap: 11px;
  padding-block: 8px 56px;
  overflow: hidden;
}
.dash-band span {
  display: block; block-size: 1px;
  background: repeating-linear-gradient(90deg, var(--sea-lane) 0 var(--d, 24px), transparent var(--d, 24px) calc(var(--d, 24px) + var(--g, 12px)));
  opacity: var(--o, .3);
  inline-size: var(--w, 70%);
  margin-inline-start: var(--s, 0%);
}
.dash-band span:nth-child(1) { --d: 2px;  --g: 8px;  --w: 100%; --o: .28; }
.dash-band span:nth-child(2) { --d: 48px; --g: 16px; --w: 62%;  --s: 4%;  --o: .32; }
.dash-band span:nth-child(3) { --d: 12px; --g: 10px; --w: 84%;  --s: 16%; --o: .24; }
.dash-band span:nth-child(4) { --d: 120px; --g: 24px; --w: 58%; --s: 0%;  --o: .38; position: relative; }
.dash-band span:nth-child(5) { --d: 6px;  --g: 6px;  --w: 44%;  --s: 38%; --o: .26; }
.dash-band span:nth-child(6) { --d: 32px; --g: 8px;  --w: 76%;  --s: 10%; --o: .22; }
.dash-band span:nth-child(7) { --d: 2px;  --g: 14px; --w: 100%; --o: .2; }
/* the single orange segment */
.dash-band span:nth-child(4)::after {
  content: ""; position: absolute; inset-inline-end: -104px; inset-block-start: -0.5px;
  inline-size: 88px; block-size: 2px; background: var(--load-line);
}
.dash-band span:nth-child(4) { opacity: 1; background: repeating-linear-gradient(90deg, rgb(143 179 199 / .38) 0 120px, transparent 120px 144px); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter); row-gap: 40px;
  padding-block: 8px 64px;
}
/* Keyed to the section axes above: label cols 1–3, content col 4, detail col 9 */
.f-brand { grid-column: 1 / span 3; }
/* Pixel-hinted lockup at exactly 30px high, 7px clear space (brand/final/README) */
.f-brand img { inline-size: 225px; block-size: 30px; margin-block-end: 20px; }
.f-brand p { max-inline-size: 34ch; color: var(--mist); }
.f-col:nth-of-type(2) { grid-column: 4 / span 5; }
.f-col:nth-of-type(3) { grid-column: 9 / -1; }
@media (max-width: 1180px) {
  .f-brand { grid-column: 1 / -1; }
}
.f-label { margin-block-end: 12px; font-size: 0.8125rem; }
.f-col address, .f-col p:not(.f-label) { color: var(--mist); line-height: 1.7; }
.footer-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px;
  padding-block: 12px;
  border-block-start: 1px solid var(--rule-paper);
  font-size: var(--fs-small); color: var(--sea-lane);
}
/* the legal name never breaks across lines (it wraps as one unit in the Arabic bar) */
.footer-bar [lang="en"] { white-space: nowrap; }
.to-top {
  display: inline-flex; align-items: center; gap: 8px; min-block-size: 44px;
  color: var(--sea-lane); text-decoration: none;
}
.to-top:hover { color: var(--chart-paper); }
.to-top .arrow { inline-size: 14px; block-size: 14px; }

/* ==========================================================================
   Motion (brief §4.9) — all off under prefers-reduced-motion
   ========================================================================== */
@keyframes draw-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes drift { to { transform: translateX(-120px); } }

.lanes .load-line {
  transform-box: fill-box; transform-origin: 0 50%;
  animation: draw-line 1.2s var(--ease) .25s both;
}
.lanes .hull-glyph, .lanes .course { animation: fade-in .8s ease 1.25s both; }
.lanes .drift { animation: drift 120s linear 1 both; }
.hero.is-offscreen .lanes .drift { animation-play-state: paused; }

/* Hiding is switched on by site.js itself (html.reveal-ready), so the content
   only hides when the script that reveals it is actually running. */
/* The transition sits on the revealed state only: hiding is instant, revealing fades. */
html.reveal-ready .reveal { opacity: 0; transform: translateY(8px); }
html.reveal-ready .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
html.reveal-ready .panel .register tr { opacity: 0; }
html.reveal-ready .panel.is-in .register tr { opacity: 1; transition: opacity .5s ease; }

/* Smooth only for user-initiated anchor jumps (focus is inside the page), never for scripted scrolls */
@media (prefers-reduced-motion: no-preference) {
  html:focus-within { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.reveal-ready .reveal, html.reveal-ready .panel .register tr { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-lead { grid-column: 1 / span 7; }
  .hero-meta { grid-column: 8 / -1; }
  .company-body .lead { grid-column: 1 / -1; }
  .facts { grid-column: 1 / -1; margin-block-start: 40px; }
  .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
  .facts div:nth-last-child(2) { border-block-end: 1px solid var(--rule); }
  .code-row .numeral-value { grid-column: 1 / span 7; }
  .code-label, .code-caption { grid-column: 8 / -1; }
  .row { row-gap: 8px; }
  .row-name { grid-column: 4 / -1; }
  .row-desc { grid-column: 4 / -1; max-inline-size: 52ch; }
}

/* Tablet and below: the hero foot and the code row stack to one column */
@media (max-width: 960px) {
  .hero-foot, .code-row { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .hero-foot > *, .code-row > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .hero-meta { margin-block-start: 40px; }
  .code-row { row-gap: 8px; }
  .code-caption { max-inline-size: 44ch; }
  /* label and caption first, then the numeral standing on the Deep Hull rule */
  .code-row .numeral-value { order: 1; margin-block-start: 24px; }
}

@media (max-width: 720px) {
  :root { --section-pad: 72px; }
  .grid, .row, .c-row, .footer-grid, .company-body { grid-template-columns: minmax(0, 1fr); }
  .grid > *, .row > *, .c-row > *, .footer-grid > *, .company-body > * { grid-column: 1 / -1 !important; }

  /* Hero: statement, links, then the sea lanes on the first screen; the
     registration figures follow under the lanes as the hero's data strip. */
  .hero {
    min-block-size: 0;
    display: grid;
    grid-template-columns: var(--page-pad) minmax(0, 1fr) var(--page-pad);
    align-content: start;
  }
  .hero-inner, .hero-foot { display: contents; }
  .hero-inner > *, .hero-foot > * { grid-column: 2 !important; }
  .hero-eyebrow { margin-block-start: 32px; font-size: 0.75rem; letter-spacing: .16em; }
  .hero-eyebrow .sep { display: none; }
  .hero-eyebrow span { inline-size: 100%; }
  .hero h1 { font-size: clamp(2.625rem, 11.6vw, 3.25rem); line-height: 1.02; }
  .hero-lead { margin-block-start: 24px; }
  .hero-lead p { font-size: 1.0625rem; }
  .hero-links { flex-direction: row; flex-wrap: nowrap; column-gap: 24px; margin-block-start: 8px; }
  .lanes { grid-column: 1 / -1; margin-block-start: 20px; block-size: 184px; }
  .lanes .drift path { stroke-width: 1.8; }
  .hero-meta { order: 1; margin-block: 4px 44px; }

  .section > .grid > .label { padding-block-start: 0; margin-block-end: 28px; }

  .code-row { margin-block-start: 56px; }
  .numeral-value { font-size: clamp(4.5rem, 24vw, 6.5rem); }

  /* Plan-view hull: the bow half at a readable scale, bleeding off the left edge (never mirrored) */
  .hull-drawing { margin-inline-start: calc(-1 * var(--page-pad)); }
  .hull-drawing svg { inline-size: 100%; block-size: 168px; }
  .row { row-gap: 6px; padding-block: 22px; }
  .row-name { font-size: 1.375rem; }

  .stack-head { font-size: clamp(2.25rem, 11vw, 3rem); }
  .company-body { margin-block-start: 36px; }
  .facts { display: block; margin-block-start: 36px; }
  .facts div:nth-last-child(2) { border-block-end: 0; }

  .panel-head { padding: 22px 18px; }
  .register, .register tbody, .register tr { display: block; }
  .register tr { padding: 14px 18px; border-block-end: 1px solid var(--mist); }
  .register th, .register td { display: block; inline-size: auto; padding: 0; border: 0; }
  .register th { font-size: 0.8125rem; margin-block-end: 2px; }
  .register td { display: flex; align-items: baseline; }
  .register td .copy { margin-inline-start: auto; }
  .register td.td-stack { flex-direction: column; align-items: stretch; }
  .panel::after { inset-inline: 18px; }
  .panel-foot { padding-inline: 18px; }

  .c-row { row-gap: 10px; padding-block: 16px 36px; }
  .c-value { font-size: 1.625rem; }
  .c-action { margin-block-start: 20px; }

  .dash-band { padding-block-end: 40px; }
  .dash-band span:nth-child(4)::after { inline-size: 56px; inset-inline-end: -64px; }
  .menu-panel .dash-band--menu { padding-block-end: 0; }
  .footer-grid { padding-block-end: 48px; }
  .footer-bar { flex-direction: column; align-items: flex-start; gap: 0; padding-block: 16px 8px; }
}

/* ==========================================================================
   RESERVED — Arabic / RTL rules (:lang(ar), [dir="rtl"])
   ar/index.html shares this stylesheet. Add Arabic @font-face blocks
   (Noto Kufi Arabic for display/labels, Noto Sans Arabic for body) and all
   Arabic-specific overrides below this line, and nowhere else.
   Rules already in place:
   - Directional glyphs (arrows) mirror in RTL; the "back to top" arrow does not.
   - Logos, the house flag and .illus illustrations never mirror.
   - Arabic text: no letter-spacing, no uppercase (they break letter joining).
   ========================================================================== */
[dir="rtl"] .arrow:not(.arrow--up) { transform: scaleX(-1); }
[dir="rtl"] .link-arrow:hover .arrow:not(.arrow--up) { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .brand img, [dir="rtl"] .seal, [dir="rtl"] .f-brand img { transform: none; }

:lang(ar) .eyebrow, :lang(ar) .hero-meta dt, :lang(ar) .facts dt,
:lang(ar) .row dt, :lang(ar) .panel-kicker, :lang(ar) .f-label, :lang(ar) .c-row dt,
:lang(ar) .copy, :lang(ar) .stack-head, :lang(ar) .licence-head h2, :lang(ar) .menu-num {
  letter-spacing: 0;
  text-transform: none;
}
/* ---------- Arabic fonts (OFL — assets/fonts/OFL-Noto*.txt)
   Noto Kufi Arabic (wght 500–600) for display and labels, Noto Sans Arabic
   (wght 400–600, wdth pinned to 100) for text. unicode-range = Arabic only, so
   the English page never downloads them. */
@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("../fonts/noto-kufi-arabic-var-arabic.woff2") format("woff2");
  font-weight: 500 600; font-style: normal; font-display: swap;
  unicode-range: U+0020-0040, U+00A0, U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+2010-2011, U+204F, U+2E41;
}
@font-face {
  font-family: "Noto Sans Arabic";
  src: url("../fonts/noto-sans-arabic-var-arabic.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
  unicode-range: U+0020-0040, U+00A0, U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+2010-2011, U+204F, U+2E41;
}
/* The English page shows one Arabic word ("العربية" in the switcher): a 5 KB
   subset of Noto Sans Arabic with just those letters, under its own family name
   so it never mixes with the full face inside an Arabic word. */
@font-face {
  font-family: "Noto Sans Arabic Label";
  src: url("../fonts/noto-sans-arabic-label.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
  unicode-range: U+0627-0629, U+0631, U+0639, U+0644, U+064A;
}
html:lang(en) .lang-switch a:lang(ar) { font-family: "Noto Sans Arabic Label", "Geeza Pro", "Noto Sans Arabic", Tahoma, var(--font-text); }

/* ---------- Arabic tokens
   Latin faces stay first in each stack: their unicode-range excludes Arabic, so
   Arabic letters fall through to the Noto faces while digits, codes and the Latin
   legal name keep the brand's Barlow / Public Sans shapes, exactly as on /. */
html:lang(ar) {
  --font-display: "Barlow Semi Condensed", "Noto Kufi Arabic", "Geeza Pro", "Noto Sans Arabic", Tahoma, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-text: "Public Sans", "Noto Sans Arabic", "Geeza Pro", Tahoma, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-display-xl: clamp(2.375rem, 5.2vw, 4.75rem);
  --fs-display-l: clamp(1.75rem, 3.3vw, 2.875rem);
  --fs-h3: 1.375rem;
  --fs-body: 1.125rem;   /* 18px, 1.06× the Latin 17px */
  --fs-lead: 1.3125rem;  /* 21px, 1.1× */
  --fs-data: 0.9375rem;  /* 15px, 1.07× */
  --fs-small: 0.875rem;
  --lh-body: 1.85;
}

/* No tracking and no case transforms on Arabic text: they break letter joining.
   Latin spans inside (lang="en") keep the English treatment. */
:lang(ar) { letter-spacing: 0 !important; text-transform: none !important; }

/* Comfortable Arabic line-heights (Kufi has tall ascenders and deep descenders) */
:lang(ar) h2 { line-height: 1.45; }
:lang(ar) .lead { line-height: 1.8; }
:lang(ar) .eyebrow { font-size: 0.9375rem; line-height: 1.6; }
:lang(ar) .hero-meta dt, :lang(ar) .facts dt,
:lang(ar) .row dt, :lang(ar) .panel-kicker, :lang(ar) .f-label, :lang(ar) .c-row dt { font-size: 0.9375rem; line-height: 1.6; }
:lang(ar) .hero-meta dd, :lang(ar) .facts dd { line-height: 1.7; }

/* Header and menu */
:lang(ar) .nav a, :lang(ar) .btn-outline, :lang(ar) .menu summary { font-size: 0.9375rem; }
:lang(ar) .lang-switch--bar a { font-size: 0.875rem; }
:lang(ar) .menu-links a { font-size: 1.75rem; line-height: 1.5; padding-block: 12px; }

/* Hero */
:lang(ar) .hero h1 { line-height: 1.3; max-inline-size: 13em; }
:lang(ar) .hero-lead p { font-size: 1.1875rem; line-height: 1.85; max-inline-size: 46ch; }
:lang(ar) .link-arrow { font-size: 1rem; }

/* Activity */
:lang(ar) .code-caption { font-size: 0.9375rem; line-height: 1.8; }
:lang(ar) .row-name { line-height: 1.5; }
:lang(ar) .row-desc { line-height: 1.8; }

/* Company: the two-tone stacked headline, sized for Kufi */
:lang(ar) .stack-head { font-size: clamp(2.125rem, 4.6vw, 4rem); line-height: 1.3; }
:lang(ar) .company-body .lead { font-size: 1.25rem; }

/* Licence */
:lang(ar) .licence-head h2 { margin-block-start: 14px; font-size: clamp(1.375rem, 1.9vw, 1.625rem); line-height: 1.6; }
:lang(ar) .panel-title { line-height: 1.2; }
:lang(ar) .register { font-size: 1.0625rem; line-height: 1.75; }
:lang(ar) .register th { font-size: 0.9375rem; }
:lang(ar) .copy { font-size: 0.875rem; }

/* Contact and footer */
:lang(ar) .c-value { font-size: clamp(1.5rem, 2.8vw, 2.375rem); line-height: 1.6; }
:lang(ar) .register .val-orig { font-size: 0.875rem; line-height: 1.6; }
:lang(ar) .f-brand p { max-inline-size: 36ch; }
:lang(ar) .f-col address, :lang(ar) .f-col p:not(.f-label) { line-height: 1.85; }

/* Tablet: the Arabic jurisdiction value is longer than the Latin one; stack
   label over value instead of letting it break mid-name. */
@media (max-width: 1100px) and (min-width: 721px) {
  :lang(ar) .hero-meta div:last-child {
    flex-direction: column; align-items: flex-start; gap: 2px;
  }
}

@media (max-width: 720px) {
  :lang(ar) .hero h1 { font-size: clamp(2.125rem, 9.4vw, 2.625rem); line-height: 1.35; }
  :lang(ar) .hero-lead p { font-size: 1.125rem; }
  :lang(ar) .eyebrow.hero-eyebrow { font-size: 0.875rem; }
  :lang(ar) .stack-head { font-size: clamp(2rem, 9.4vw, 2.5rem); line-height: 1.35; }
  :lang(ar) .row-name { font-size: 1.25rem; }
  :lang(ar) .c-value { font-size: 1.4375rem; }
  /* Kufi runs wider: let the Arabic address flow as one paragraph instead of three set lines */
  :lang(ar) .c-value address > span { display: inline; }
  :lang(ar) .menu-links a { font-size: 1.5rem; }
}
