/* ==========================================================================
   hoeit.com 2026 — "Cross-section" design system, web edition
   Same tokens as the 2026 company profile (profile/styles.css).
   Display: Michroma (OFL; web stand-in for the brand's Microgramma, whose
   desktop licence does not cover web embedding). Text: Archivo.
   Arabic: Reem Kufi (display), IBM Plex Sans Arabic (text).
   Layout uses logical properties throughout so /ar/ mirrors with dir="rtl".
   ========================================================================== */

@font-face { font-family: "Michroma"; src: url("/fonts/michroma.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("/fonts/plex-arabic-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("/fonts/plex-arabic-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("/fonts/plex-arabic-semibold.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Noto Kufi Arabic"; src: url("/fonts/noto-kufi-arabic.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --red: #B62025;
  --red-bright: #D0262C;
  --red-deep: #8F1519;
  --oxblood: #5C0E12;
  --graphite: #1B2226;
  --graphite-2: #222B30;
  --graphite-3: #2E383E;
  --steel: #8C939A;
  --steel-light: #B9C0C6;
  --alloy: #D5DADE;
  --mist: #EEF1F3;
  --mist-2: #E2E7EA;
  --ink: #1E2428;
  --ink-2: #4B545B;
  --paper: #FFFFFF;
  --on-dark: #E6EAED;
  --on-dark-2: #A9B1B8;

  --font-display: "Michroma", "Microgramma D Extended", "Eurostile Extended", "Arial Black", sans-serif;
  --font-text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-num: "Michroma", "Archivo", sans-serif;

  --gutter: clamp(16px, 4vw, 64px);
  --maxw: 1360px;
  --hair: 1px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-o5: cubic-bezier(.22, 1, .36, 1); /* out-quint: the film's line rise */
  --hdr-h: 72px;

  --fs-hero: clamp(24px, 1.55vw + 14px, 40px);
  --fs-h2: clamp(23px, 1.2vw + 14px, 34px);
  --fs-h3: 19px;
  --fs-body: 17px;
  --fs-lead: clamp(18px, .4vw + 15.5px, 21px);
  --fs-small: 14px;
  --fs-cap: 13px;
  color-scheme: light;
}
:root[lang="ar"] {
  --font-display: "Noto Kufi Arabic", "Plex Arabic", sans-serif;
  --font-text: "Plex Arabic", "Archivo", Tahoma, sans-serif;
  --fs-hero: clamp(28px, 1.9vw + 16px, 50px);
  --fs-h2: clamp(26px, 1.4vw + 16px, 40px);
  --fs-body: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-text); font-size: var(--fs-body); line-height: 1.62;
  font-variant-numeric: lining-nums; font-kerning: normal; text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
:root[lang="ar"] body { line-height: 1.85; }
img, svg, video { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
bdi.ltr, .ltr { direction: ltr; unicode-bidi: isolate; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }

/* ---------- Type ---------- */
h1, h2, .display { font-family: var(--font-display); font-weight: 400; letter-spacing: -.012em; line-height: 1.24; margin: 0; text-wrap: balance; }
:root[lang="ar"] h1, :root[lang="ar"] h2, :root[lang="ar"] .display { font-weight: 500; letter-spacing: 0; line-height: 1.6; }
h2 { font-size: var(--fs-h2); }
h3 { font-family: var(--font-text); font-weight: 600; font-stretch: 112.5%; font-size: var(--fs-h3); line-height: 1.35; margin: 0 0 8px; letter-spacing: .002em; }
:root[lang="ar"] h3 { font-stretch: 100%; font-size: 20px; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink); max-width: 56ch; }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-small); line-height: 1.55; }
.cap { font-size: var(--fs-cap); line-height: 1.5; color: var(--ink-2); }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.tnum { font-variant-numeric: tabular-nums lining-nums; }

/* Sections */
.sec { padding-block: clamp(72px, 9vw, 136px); position: relative; }
.sec.dark { background: var(--graphite); color: var(--on-dark); }
.sec.dark .muted, .sec.dark .cap { color: var(--on-dark-2); }
.sec.dark .lead { color: var(--on-dark); }
.sec.mist { background: var(--mist); }
.sec.oxblood { background: var(--oxblood); color: #fff; }
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 20px; margin-bottom: clamp(40px, 5vw, 72px); align-items: end; }
.sec-head > h2, .sec-head > div:first-child { grid-column: 1 / span 6; }
.sec-head .lead { grid-column: 8 / span 5; margin: 0; }
.sec-head .lead + .lead { grid-column: 8 / span 5; }
@media (max-width: 960px) { .sec-head > h2, .sec-head > div:first-child, .sec-head .lead { grid-column: 1 / -1; } }

/* The red rule: one short accent, used at the head of a section */
.rule-red { display: block; width: 44px; height: 3px; background: var(--red); margin-bottom: 22px; transform-origin: 0 50%; }
:root[dir="rtl"] .rule-red { transform-origin: 100% 50%; }
.sec.dark .rule-red, .hero .rule-red { background: var(--red-bright); }

/* Lists with the red "sphere" marker from the wordmark's O */
.list { list-style: none; margin: 0; padding: 0; }
.list li { position: relative; padding-inline-start: 20px; margin: 0 0 7px; }
.list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .66em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.sec.dark .list li::before { background: var(--red-bright); }
.list.ruled li { padding-block: 11px; margin: 0; border-top: var(--hair) solid var(--alloy); }
.list.ruled li::before { top: calc(11px + .66em); }
.list.ruled li:last-child { border-bottom: var(--hair) solid var(--alloy); }
.sec.dark .list.ruled li { border-color: rgba(255,255,255,.12); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  font-family: var(--font-text); font-weight: 600; font-size: 15px; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: 2px; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-line { border-color: rgba(255,255,255,.34); color: #fff; background: transparent; }
.btn-line:hover { border-color: #fff; }
.btn-ink { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ink:hover { background: var(--ink); color: #fff; }
/* play triangles always point right, in every language (media controls are not mirrored); in Arabic they sit on the
   left of the label */
.btn .play { width: 0; height: 0; border-block: 6px solid transparent; border-left: 10px solid currentColor; }
:root[dir="rtl"] .btn .play, :root[dir="rtl"] .film-frame .film-play .play { order: 1; }

/* Copy chips: vendor IDs, 9COM codes, phones, emails */
.copy { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border: 1px solid var(--alloy); border-radius: 2px;
  background: transparent; color: var(--ink-2); font: 600 12px/1 var(--font-text); letter-spacing: .04em; cursor: pointer; vertical-align: middle;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease); }
.copy svg { width: 13px; height: 13px; flex: none; }
.copy:hover { color: var(--ink); border-color: var(--ink-2); }
.copy.done { color: #fff; background: var(--ink); border-color: var(--ink); }
.dark .copy, .hero .copy, .copy.on-dark { border-color: rgba(255,255,255,.22); color: var(--on-dark-2); }
.dark .copy:hover, .hero .copy:hover, .copy.on-dark:hover { color: #fff; border-color: rgba(255,255,255,.6); }
.dark .copy.done, .hero .copy.done, .copy.on-dark.done { background: #fff; color: var(--graphite); border-color: #fff; }
:root[lang="ar"] .copy { font-size: 13px; letter-spacing: 0; }

/* ---------- Pipe-marking strip ---------- */
.marking { position: relative; display: flex; align-items: center; gap: 0; white-space: nowrap; overflow: hidden;
  font-family: "Michroma", sans-serif; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--steel-light); line-height: 1; }
.marking::before { content: ""; order: 1; flex: 1 1 24px; min-width: 24px; height: 0; margin-inline: 22px; border-top: 1px solid rgba(255,255,255,.16); transform-origin: 0 50%; }
:root[dir="rtl"] .marking::before { transform-origin: 100% 50%; }
.marking > * { position: relative; }
.marking > *:first-child { order: 0; }
.marking > *:last-child { order: 2; }
.marking .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red-bright); margin-inline: 10px 12px; vertical-align: middle; position: relative; top: -1px; }
:root[lang="ar"] .marking { letter-spacing: .02em; font-size: 12.5px; font-family: "Plex Arabic", sans-serif; font-weight: 500; text-transform: none; }
:root[lang="ar"] .marking .num { font-family: "Michroma", sans-serif; letter-spacing: .14em; font-size: 10.5px; }

/* ---------- Header ---------- */
.hdr { position: fixed; inset-inline: 0; top: 0; z-index: 50; height: var(--hdr-h); color: #fff;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease); }
.hdr .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.hdr.solid { background: rgba(27,34,38,.94); box-shadow: 0 1px 0 rgba(255,255,255,.08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hdr .brand { display: block; flex: none; text-decoration: none; }
.hdr .brand img { height: 28px; width: auto; }
/* the wordmark's orb: the official artwork at rest; during a turn a 3D frame strip fades in over it, then hands back.
   28 px tall (was 22) in the unchanged 72 px bar (Tariq, 2026-10-04: same bar, bigger logo): 22 px clear above and below.
   The orb and its strip are placed in percentages of the wordmark, so they scale with it; the strip's 112 px frames
   still give a phone's 3x screen more pixels than it shows. */
.hdr .brand .wm { position: relative; display: block; height: 28px; aspect-ratio: 742.58 / 159; }
.hdr .brand .wm > img { display: block; height: 100%; width: auto; }
.hdr .brand .orb, .hero-logo .orb { position: absolute; left: 25.977%; top: -0.314%; width: 21.35%; height: 100.63%; }
.hdr .brand .orb img, .hero-logo .orb img { display: block; width: 100%; height: 100%; }
.hdr .brand .orb .turn, .hero-logo .orb .turn { position: absolute; inset: 0; background-repeat: no-repeat; opacity: 0; } /* site.js fades it (no CSS transition) */
.hdr nav { margin-inline-start: auto; }
.hdr nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.hdr nav a { font-size: 14.5px; font-weight: 500; text-decoration: none; color: rgba(255,255,255,.82); padding-block: 8px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease), color .2s; }
:root[dir="rtl"] .hdr nav a { background-position: 100% 100%; }
.hdr nav a:hover, .hdr nav a[aria-current="true"] { color: #fff; background-size: 100% 1px; }
.hdr .lang { font-size: 14.5px; text-decoration: none; color: rgba(255,255,255,.82); padding: 6px 2px; }
.hdr .lang:hover { color: #fff; }
.hdr .lang[lang="ar"] { font-family: "Noto Kufi Arabic", "Plex Arabic", sans-serif; font-size: 15px; font-weight: 500; }
.hdr .lang[lang="en"] { font-family: "Archivo", sans-serif; }
.hdr .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.hdr .menu-btn { display: none; margin-inline-start: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0; position: relative; }
.hdr .menu-btn span { position: absolute; inset-inline-start: 11px; width: 22px; height: 1.5px; background: #fff; transition: transform .3s var(--ease), opacity .2s; }
.hdr .menu-btn span:nth-child(1) { top: 16px; } .hdr .menu-btn span:nth-child(2) { top: 21.5px; } .hdr .menu-btn span:nth-child(3) { top: 27px; }
.menu-open .hdr .menu-btn span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-open .hdr .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .hdr .menu-btn span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
@media (max-width: 1080px) {
  .hdr nav, .hdr .hdr-cta { display: none; }
  .hdr .wrap { gap: 8px; }
  .hdr .menu-btn { display: block; margin-inline-start: 0; margin-inline-end: -8px; }
  .hdr .lang { margin-inline-start: auto; display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 2px; font-size: 14px; line-height: 1; }
  .hdr .lang .long { display: none; }
}
@media (min-width: 1081px) { .hdr .lang .short { display: none; } }
.drawer .lang-full { align-self: flex-start; padding: 10px 0; color: var(--on-dark-2); text-decoration: none; font-size: 16px; }
.drawer .lang-full[lang="ar"] { font-family: "Noto Kufi Arabic", "Plex Arabic", sans-serif; font-size: 18px; font-weight: 500; }
.drawer { position: fixed; inset: 0; z-index: 45; background: var(--graphite); color: #fff; padding: calc(var(--hdr-h) + 4px) var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 28px; visibility: hidden; opacity: 0; transition: opacity .3s var(--ease), visibility 0s .3s; }
.menu-open .drawer { visibility: visible; opacity: 1; transition: opacity .3s var(--ease); }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer li { border-top: 1px solid rgba(255,255,255,.1); }
.drawer li:first-child { border-top: 0; } /* the header already draws a line above the first link */
.drawer li:last-child { border-bottom: 1px solid rgba(255,255,255,.1); }
.drawer li a { display: block; padding: 16px 0; font-family: var(--font-display); font-size: 20px; text-decoration: none; }
.drawer .btn { align-self: flex-start; min-height: 52px; padding-inline: 26px; font-size: 16px; }
.drawer .marking { margin-top: auto; white-space: normal; }

/* ---------- Hero: the bore ---------- */
.hero { position: relative; background: var(--graphite); color: #fff; overflow: hidden;
  min-height: max(660px, min(100svh, 1040px)); display: flex; flex-direction: column; padding-top: var(--hdr-h); }
.hero::before { /* faint concentric field: the plate the medallions are engraved into */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 62% at 50% 34%, rgba(140,147,154,.11), rgba(140,147,154,0) 72%); }
.hero-stage { --d: clamp(260px, min(46vw, 52svh), 600px); --m: clamp(130px, 16.5vw, 280px); --pt: clamp(20px, 3.5vh, 44px); --pb: clamp(10px, 2vh, 28px);
  position: relative; flex: 1 1 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-items: center;
  column-gap: clamp(16px, 5vw, 96px); padding-block: var(--pt) var(--pb); direction: ltr; }
.bore { position: relative; width: var(--d); height: var(--d); container-type: inline-size; }
/* the beam: a brushed-steel ledge across the page just below the medallions, passing behind the bore.
   Lit top face and edge crease, fine horizontal grain, a slow sheen along its length, bolt heads on the front face,
   a catch-light on the lower chamfer and a soft shadow; it fades out before the screen edges */
.hero-stage .beam { --bh: max(14px, calc(var(--m) * .17)); --tf: max(3px, calc(var(--bh) * .22)); --bolt: 210px;
  position: absolute; inset-inline: 0; top: calc(var(--pt) + (100% - var(--pt) - var(--pb)) / 2 + var(--m) * .56); height: var(--bh); pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, #b3bcc1 0 1.2px, #6f797e 2px, #2b3337 3.1px, rgba(0,0,0,.45) 3.7px, transparent 4.4px) 50% var(--tf) / var(--bolt) calc(100% - var(--tf)) repeat-x,
    linear-gradient(180deg, rgba(255,255,255,.62) 0, rgba(255,255,255,.2) 1px, rgba(255,255,255,.09) calc(var(--tf) - 1px), rgba(0,0,0,.6) var(--tf), rgba(0,0,0,0) calc(var(--tf) + 2px)),
    repeating-linear-gradient(180deg, rgba(255,255,255,.035) 0 1px, rgba(0,0,0,.05) 1px 2px, rgba(0,0,0,0) 2px 3px),
    linear-gradient(90deg, rgba(255,255,255,0) 8%, rgba(255,255,255,.07) 26%, rgba(255,255,255,0) 44%, rgba(255,255,255,.05) 68%, rgba(255,255,255,0) 86%),
    linear-gradient(180deg, #4a5459 0, #343c40 var(--tf), #283034 45%, #1b2225 100%);
  box-shadow: 0 calc(var(--bh) * .85) calc(var(--bh) * 1.7) rgba(0,0,0,.55);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); }
.hero-stage .beam::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: rgba(255,255,255,.14); }
@media (max-width: 760px) { .hero-stage .beam { --bolt: 128px; --bh: max(20px, calc(var(--m) * .3)); } }
.bore-clip { position: absolute; inset: 0.1%; border-radius: 50%; overflow: hidden; background: #10161a; clip-path: circle(50% at 50% 50%); }
.bore-clip video, .bore-clip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* the still is the hero until the footage is really playing (iOS Low Power Mode, reduced motion or a slow line keep the still) */
.bore-clip video { opacity: 0; transition: opacity .8s var(--ease); }
.bore-clip video.playing { opacity: 1; }
/* background footage never shows a browser's own play button */
.bore-clip video::-webkit-media-controls, .opener > video::-webkit-media-controls, .inds .vignette::-webkit-media-controls { display: none !important; }
.bore-clip video::-webkit-media-controls-start-playback-button, .opener > video::-webkit-media-controls-start-playback-button, .inds .vignette::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.bore-clip::after { /* lens falloff at the pipe wall */ content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(27,34,38,0) 56%, rgba(27,34,38,.35) 82%, rgba(27,34,38,.75) 100%); }
.bore-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: translateZ(0); /* own layer above the video (iOS) */ }
.bore-rings circle.ring { fill: none; stroke: rgba(255,255,255,.72); stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.bore-rings circle.ring.outer { stroke: rgba(255,255,255,.5); }
.bore-rings .node { fill: rgba(255,255,255,.92); }
.bore-rings .node.red { fill: var(--red-bright); }
/* The company lockup at the centre of the bore (the wordmark over the Arabic and English names, as in
   brand/hoeit-lockup; the bore's rings stand in for the symbol), on a soft shade so it reads over the footage. It sits
   over the rings. Its orb turns now and then. Where the bore is small (phones) the names run nearly edge to edge and
   the wordmark gives them room. */
.hero-logo { position: absolute; inset: 0; display: grid; place-items: center; direction: ltr; pointer-events: none; }
.hero-logo::before { content: ""; position: absolute; left: 50%; top: 50%; width: 100%; height: 62%; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10,14,17,.78), rgba(10,14,17,.56) 55%, rgba(10,14,17,0)); }
.hero-logo .lockup { position: relative; display: flex; flex-direction: column; align-items: center; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.8)) drop-shadow(0 2px 14px rgba(0,0,0,.5)); }
.hero-logo .wm { position: relative; display: block; width: 62cqi; aspect-ratio: 742.58 / 159; pointer-events: auto; }
.hero-logo .wm > img { display: block; width: 100%; height: 100%; }
/* the full name: the official artwork on two lines, in red, in the page's language (built by build.mjs), with a dark
   halo of its own so the red holds over the brighter footage. The lockup sits a touch right of centre (the rings are
   offset left) so the ends of the name stay clear of the rings' tangents and of the white node. */
.hero-logo .nm { display: block; width: 72cqi; height: auto; filter: drop-shadow(0 0 2px rgba(10,14,17,.85)) drop-shadow(0 0 7px rgba(10,14,17,.6)); }
.hero-logo .nm-ar { width: 74cqi; }
.hero-logo .wm + .nm { margin-top: 4cqi; }
.hero-logo .lockup { translate: 1cqi 0; }
:root[lang="ar"] .hero-logo .lockup { translate: 1cqi -2cqi; }
@container (max-width: 340px) {
  .hero-logo .wm { width: 52cqi; }
  .hero-logo .nm, .hero-logo .nm-ar { width: 76cqi; }
  .hero-logo .wm + .nm { margin-top: 3.2cqi; }
  .hero-logo .lockup, :root[lang="ar"] .hero-logo .lockup { translate: 2cqi -7cqi; }
}

.medallion { position: relative; width: var(--m, clamp(120px, 15vw, 248px)); aspect-ratio: 1; color: var(--steel-light); }
.medallion svg { width: 100%; height: 100%; overflow: visible; }
.medallion .trace path { fill: none; stroke: #DCE1E5; stroke-width: .07; stroke-linejoin: miter; }
.medallion .sheen-band { mix-blend-mode: screen; }

.hero-copy { position: relative; text-align: center; padding-bottom: clamp(26px, 4vh, 48px); }
.hero h1 { font-size: var(--fs-hero); max-width: 30ch; margin-inline: auto; color: #fff; }
:root[lang="ar"] .hero h1 { max-width: 26ch; }
.hero .sub { margin: 18px auto 0; max-width: 60ch; color: var(--on-dark-2); font-size: clamp(16px, .3vw + 14.5px, 18.5px); line-height: 1.6; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.hero .marking { padding-block: 0 26px; }
.hero .marking .vendor { display: inline-flex; align-items: center; gap: 12px; }
.hero .marking .copy { letter-spacing: .04em; text-transform: none; font-family: var(--font-text); }
.nw { white-space: nowrap; }

@media (max-width: 760px) {
  /* the medallions keep their desktop relationship: one on each side of the bore, fully visible, never touching it */
  .hero-stage { grid-template-columns: 1fr auto 1fr; column-gap: 3vw; padding-inline: 10px; }
  .hero-stage { --d: min(58vw, 40svh); --m: min(16vw, 84px); --pt: 22px; --pb: 8px; }
  .medallion { justify-self: center; }
  .hero-copy { padding-top: 10px; } /* centred like desktop, under the symmetrical stage */
  .hero .marking .brandline { display: none; }
  .hero .marking { flex-wrap: wrap; row-gap: 14px; white-space: normal; }
  .hero .marking::before { display: none; }
  .hero .marking > * { padding-inline: 0; background: none; }
  .hero .marking > *:last-child { margin-inline-start: 0; width: 100%; justify-content: space-between; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.16); }
  .hero .marking { letter-spacing: .1em; font-size: 10px; }
  .hero .marking .vendor { gap: 10px; flex-wrap: wrap; row-gap: 10px; }
  .hero .marking .vendor > .vl { white-space: nowrap; }
}
/* under 360 px the English vendor line with its Copy button is wider than the column (326 px at 10 px lettering): set it a
   size tighter so the three still share one line at 320 px (if they ever cannot, the button wraps under them: never cut) */
@media (max-width: 359px) {
  .hero .marking { letter-spacing: .04em; font-size: 9px; }
  .hero .marking .vendor { gap: 8px; }
}
/* and just above the phone layout (761 to 771 px, a tablet upright) the English line is up to 10 px wider than the column,
   which cut the end of the Copy button: the hairline gives up some of its margin there */
@media (min-width: 761px) and (max-width: 800px) { .hero .marking::before { margin-inline: 14px; } }

/* Intro (load moment). Only applied when JS runs and motion is allowed. */
.intro .bore-clip { clip-path: circle(0% at 50% 50%); }
.intro .hero-stage .beam { transform: scaleX(0); opacity: 0; }
.intro .bore-rings .ring { stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro .bore-rings .node { opacity: 0; }
.intro .hero-logo { opacity: 0; }
.intro .medallion .face, .intro .medallion .engrave { opacity: 0; }
.intro .medallion .trace path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro .hero-copy > *, .intro .hero .marking > * { opacity: 0; }
.intro .hero .marking::before { transform: scaleX(0); }

/* Scroll reveals: restrained, once. */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
/* Reveals never clip or collapse the observed element itself (that hides it from IntersectionObserver and lazy-loading):
   the rule grows inside its own box, and the wipe is a cover panel that slides off the photo. */
.js [data-reveal="rule"] { opacity: 1; transform: none; background: transparent; position: relative; }
.js [data-reveal="rule"]::after { content: ""; position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: inherit; transition: transform 1s var(--ease-io); }
.sec.dark .js [data-reveal="rule"]::after, .js .sec.dark [data-reveal="rule"]::after, .js .opener [data-reveal="rule"]::after { background: var(--red-bright); }
.js [data-reveal="rule"].in::after { transform: scaleX(1); }
/* Photographs: no panels or wipes. The picture comes up from dim, as if the lights were coming on, and settles
   from a touch larger to its true size; the caption follows. The figure itself stays put (observer, lazy-loading). */
.js [data-reveal="wipe"] { opacity: 1; transform: none; }
.js [data-reveal="wipe"] img { opacity: 0; transform: scale(1.06); filter: brightness(.6) saturate(.8);
  transition: opacity 1.6s var(--ease), transform 2.6s cubic-bezier(.16, 1, .3, 1), filter 2.2s var(--ease); }
.js [data-reveal="wipe"].in img { opacity: 1; transform: none; filter: none; }
.js [data-reveal="wipe"] figcaption { opacity: 0; transition: opacity .9s var(--ease) 1.1s; }
.js [data-reveal="wipe"].in figcaption { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal="rule"], .js [data-reveal="wipe"] { opacity: 1; transform: none; clip-path: none; transition: none; }
  .js [data-reveal="rule"]::after { transform: none; transition: none; }
  .js [data-reveal="wipe"] img, .js [data-reveal="wipe"] figcaption { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ---------- Credentials ---------- */
.creds .vendor-block { grid-column: 1 / span 7; container-type: inline-size; }
.creds .vendor-fig { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; }
.creds .vendor-fig .num { font-size: clamp(30px, 11.2vw, 112px); font-size: min(112px, 12.9cqi); line-height: 1; letter-spacing: -.01em; color: var(--ink); }
.creds .vendor-label { margin: 18px 0 0; color: var(--ink-2); font-size: var(--fs-small); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.creds .side { grid-column: 9 / span 4; align-self: end; }
.figs { list-style: none; margin: clamp(48px, 6vw, 88px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.figs li { padding: 22px clamp(12px, 2vw, 28px) 0 0; border-inline-end: 1px solid var(--alloy); padding-inline-start: clamp(12px, 2vw, 28px); }
.figs li:first-child { padding-inline-start: 0; }
.figs li:last-child { border-inline-end: 0; }
.figs .num { display: block; font-size: clamp(40px, 4.4vw, 68px); line-height: 1; color: var(--ink); }
.figs .num sup { font-size: .42em; vertical-align: top; position: relative; top: .1em; color: var(--red); }
.figs p { margin: 14px 0 0; font-size: var(--fs-small); color: var(--ink-2); max-width: 32ch; text-wrap: balance; }
.figs .fig { display: block; }
.figs a { color: inherit; text-decoration: none; }
.figs a:hover .num { color: var(--red); }
/* the client logos in the same grid as the figures above: three equal cells under the three figures, hairline dividers,
   each logo sized for equal visual weight (--lh = 1 / sqrt(aspect), set per logo), in its own colours (Adel, 2026-10-21;
   three since the second round, a little larger in their wider cells). Three across at every width: on phones the
   logos are scaled down together (--k) so the widest, Saudi Aramco, still fits its cell with room to spare, and the
   three stay evenly weighted. */
.clients { margin-top: clamp(48px, 6vw, 80px); --k: clamp(60px, 6.25vw, 92px); }
.clients .cap { margin: 0 0 16px; }
.clients-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--alloy); position: relative; overflow-x: clip; --sw: 90deg; }
.clients-strip li { display: grid; place-items: center; min-height: calc(var(--k) * .8 + 52px); padding: 26px 14px; border-inline-end: 1px solid var(--alloy); }
.clients-strip li:last-child { border-inline-end: 0; }
.clients-strip img { grid-area: 1 / 1; height: calc(var(--k) * var(--lh)); width: auto; max-width: 100%; object-fit: contain; }
/* The light sweep (site.js clientSweep; option D of the logo mockups). Only when the script is going to play it does it
   lay the steel copy (.st) under each logo and a white copy (.gl) over it, and arm the strip: the colour is masked away,
   leaving the steel. A line of light then crosses the strip once, from the side reading starts on: behind it the colour,
   at its front a narrow white glint on the logo, and a red bead running along the strip's top rule. --p is the light's
   place across the strip (0 to 1), --lp its place across each logo (a share of the logo's width); the bead is clipped
   to the strip. When it has passed, the copies are taken out and the logos are as the page has them. */
:root[dir="rtl"] .clients-strip { --sw: 270deg; }
.clients-strip .st { opacity: .9; }
.clients-strip .gl { display: none; }
[data-sweep="armed"] .c {
  -webkit-mask-image: linear-gradient(var(--sw), #000 calc(var(--lp, -100%) - 22%), transparent calc(var(--lp, -100%) + 22%));
  mask-image: linear-gradient(var(--sw), #000 calc(var(--lp, -100%) - 22%), transparent calc(var(--lp, -100%) + 22%)); }
[data-sweep="armed"] .gl { display: block; opacity: .85; filter: brightness(0) invert(1);
  -webkit-mask-image: linear-gradient(var(--sw), transparent calc(var(--lp, -100%) - 9%), #000 var(--lp, -100%), transparent calc(var(--lp, -100%) + 9%));
  mask-image: linear-gradient(var(--sw), transparent calc(var(--lp, -100%) - 9%), #000 var(--lp, -100%), transparent calc(var(--lp, -100%) + 9%)); }
[data-sweep="armed"]::before { content: ""; position: absolute; top: -2px; inset-inline-start: calc(var(--p, -.25) * 100% - 60px); width: 120px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--red), transparent); opacity: var(--bead, 0); pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .clients-strip .st, .clients-strip .gl, [data-sweep="armed"]::before { display: none; }
  [data-sweep="armed"] .c { -webkit-mask-image: none; mask-image: none; }
}
/* a browser without overflow: clip (Safari before 16) would let the bead run past the strip's end and scroll the page
   sideways for a moment: there the light crosses without its bead */
@supports not (overflow: clip) { [data-sweep="armed"]::before { display: none; } }
/* printed before the light has passed: the logos in colour, as the page has them */
@media print {
  [data-sweep="armed"] .c { -webkit-mask-image: none; mask-image: none; }
  .clients-strip .st, .clients-strip .gl, [data-sweep]::before { display: none; }
}
/* The other organisations, opened under the three (a native <details>: no script needed): first the Saudi Water
   Authority (we supply its projects but hold no vendor ID with it, so its name alone, centred under its logo as the
   others' name and ID are), then the companies we are registered with as a vendor. The button says what it opens; the
   plus turns to a minus when open. Opened, the wall comes in under it, so nothing above moves. Its logos are fetched
   quietly once the page has loaded (site.js clientWall), so they are usually in before it is opened; a logo still on its
   way holds its place with a soft block (a gentle pulse; still with reduced motion) and fades in when it arrives, its
   name and ID shown all along. Five across (three full rows), three on tablets, two on phones. */
.clients-more { margin-top: 20px; }
/* the button's box is on a span inside the summary: older Safari will not make a <summary> a flex box */
.clients-more > summary { display: block; width: fit-content; max-width: 100%; margin-inline: auto; list-style: none; cursor: pointer; border-radius: 2px; }
.clients-more > summary::-webkit-details-marker { display: none; }
.clients-more .sm { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--alloy); border-radius: 2px;
  font-size: var(--fs-small); font-weight: 600; line-height: 1.35; color: var(--ink); background: var(--paper); transition: border-color .2s var(--ease); }
.clients-more > summary:hover .sm { border-color: var(--ink-2); }
/* both labels share one cell, so the button keeps the width of the longer one in both states */
.clients-more .lbl { display: grid; text-align: center; }
.clients-more .lbl > span { grid-area: 1 / 1; transition: opacity .2s var(--ease), visibility .2s; }
.clients-more[open] > summary .when-shut, .clients-more:not([open]) > summary .when-open { opacity: 0; visibility: hidden; }
.clients-more .pm { position: relative; flex: none; width: 12px; height: 12px; color: var(--red); }
.clients-more .pm::before, .clients-more .pm::after { content: ""; position: absolute; inset-inline: 0; top: 5px; height: 2px; background: currentColor; }
.clients-more .pm::after { rotate: 90deg; transition: rotate .3s var(--ease); }
.clients-more[open] .pm::after { rotate: 0deg; }
.clients-more > .cap { margin: 28px auto 14px; text-align: center; }
.clients-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--alloy); --k: clamp(52px, 4.4vw, 64px); }
.clients-wall li { display: grid; grid-template-rows: var(--k) auto; justify-items: center; align-items: center; row-gap: 14px; min-width: 0; padding: 24px 12px 20px;
  border-bottom: 1px solid var(--alloy); border-inline-end: 1px solid var(--alloy); text-align: center; }
.clients-wall li:nth-child(5n) { border-inline-end: 0; }
.clients-wall img { grid-area: 1 / 1; height: calc(var(--k) * var(--lh)); width: auto; max-width: 100%; object-fit: contain; transition: filter .4s var(--ease); }
/* names sit at the top of their space, so every name in a row is on one line even where a neighbour's name wraps or a
   cell has no vendor ID (Saudi Water Authority) */
.clients-wall .who { grid-area: 2 / 1; align-self: start; }
.clients-wall li::before { content: ""; grid-area: 1 / 1; width: min(100%, calc(var(--k) * 1.6)); height: calc(var(--k) * .62); border-radius: 4px;
  background: var(--mist); opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; }
.clients-wall li.wait::before { opacity: 1; animation: logo-wait 1.1s ease-in-out infinite alternate; }
.clients-wall li.wait img { filter: opacity(0); }
@keyframes logo-wait { to { background-color: var(--mist-2); } }
.clients-wall .who { display: grid; gap: 3px; font-size: 13.5px; line-height: 1.35; }
.clients-wall .co { font-weight: 600; color: var(--ink); }
.clients-wall .num { font-size: 11px; letter-spacing: .06em; color: var(--ink-2); }
.clients-more[open] .clients-wall li > * { animation: wall-in .45s var(--ease) both; animation-delay: calc(var(--d, 0) * 22ms); }
@keyframes wall-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .clients-more[open] .clients-wall li > *, .clients-wall li.wait::before { animation: none; }
  .clients-more .pm::after, .clients-more .lbl > span, .clients-wall img, .clients-wall li::before { transition: none; }
}
@media (max-width: 960px) {
  .creds .vendor-block, .creds .side { grid-column: 1 / -1; }
  .creds .side { margin-top: 28px; }
  .figs li { padding-bottom: 26px; }
  .clients-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .clients-wall li:nth-child(5n) { border-inline-end: 1px solid var(--alloy); }
  .clients-wall li:nth-child(3n) { border-inline-end: 0; }
}
@media (max-width: 560px) {
  .clients { --k: min(60px, 13.2vw); }
  .clients-strip li { padding: 22px 6px; }
  .clients-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients-wall li:nth-child(3n) { border-inline-end: 1px solid var(--alloy); }
  .clients-wall li:nth-child(2n) { border-inline-end: 0; }
  .clients-wall li { padding: 20px 10px 16px; }
  /* an odd count (15) leaves the last logo alone in its row: it takes the whole row, centred, with no divider beside it */
  .clients-wall li:last-child:nth-child(odd) { grid-column: 1 / -1; border-inline-end: 0; }
}
/* phones: the three figures as rows, number then label, the numbers in one column */
@media (max-width: 640px) {
  .figs { grid-template-columns: 1fr; }
  .figs li, .figs li:first-child { padding: 16px 0; border-inline-end: 0; border-bottom: 1px solid var(--alloy); }
  .figs .fig { display: flex; align-items: center; gap: 18px; }
  .figs .num { flex: none; width: calc(4ch + .12em); }
  .figs p { margin: 0; max-width: none; }
}

/* ---------- Principals ---------- */
.principal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center;
  padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid rgba(255,255,255,.12); }
.principal:last-of-type { border-bottom: 1px solid rgba(255,255,255,.12); }
.principal .media { grid-column: 1 / span 6; position: relative; aspect-ratio: 4 / 3; background: #10161a; overflow: hidden; }
.principal .media img { width: 100%; height: 100%; object-fit: cover; }
.principal .media.mist { background: var(--mist); }
.principal .media.mist img { object-fit: contain; padding: 6%; }
.principal .body { grid-column: 8 / span 5; }
.principal:nth-of-type(even) .media { grid-column: 7 / span 6; order: 2; }
.principal:nth-of-type(even) .body { grid-column: 1 / span 5; order: 1; }
.principal .logo { height: 30px; width: auto; opacity: .96; }
.principal .logo.rma { height: 46px; }
.p-hero .head .t .logo.rma { height: 58px; }
/* a principal's logo, then its partners' (Calder / IDROJET), on one line with a hairline between */
.logos { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; width: fit-content; }
.principal .logos { margin-bottom: 22px; }
.logo-sep { width: 1px; height: 26px; background: rgba(255,255,255,.32); }
.principal .logo.idrojet { height: 28px; }
.principal .family { font-family: var(--font-display); font-size: clamp(22px, 1vw + 15px, 30px); color: #fff; margin: 0 0 4px; line-height: 1.25; }
.principal .origin { color: var(--on-dark-2); font-size: var(--fs-small); margin: 0 0 22px; }
.principal .proof { font-size: var(--fs-lead); line-height: 1.5; color: #fff; padding-inline-start: 18px; border-inline-start: 3px solid var(--red-bright); margin: 0 0 24px; }
.principal .list { columns: 2; column-gap: 28px; font-size: 15.5px; color: var(--on-dark); }
.principal .list li { break-inside: avoid; }
.principal .more { margin-top: 26px; display: inline-flex; }
.principal figcaption { position: absolute; inset-inline-start: 0; bottom: 0; padding: 10px 14px; font-size: 12px; color: var(--on-dark-2); background: rgba(27,34,38,.82); }
.principal .media.mist figcaption { color: var(--ink-2); background: rgba(238,241,243,.9); }
@media (max-width: 960px) {
  .principal .media, .principal:nth-of-type(even) .media { grid-column: 1 / -1; order: 1; }
  .principal .body, .principal:nth-of-type(even) .body { grid-column: 1 / -1; order: 2; margin-top: 28px; }
  .principal .list { columns: 1; }
}

/* ---------- Film ---------- */
.film { background: #12181b; color: var(--on-dark); }
.film-frame { position: relative; aspect-ratio: 16 / 9; background: #0b0f11; overflow: hidden; }
.film-frame video, .film-frame img { width: 100%; height: 100%; object-fit: cover; }
.film-frame .film-play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: rgba(18,24,27,.18); cursor: pointer; }
.film-frame .film-play span { display: inline-flex; align-items: center; gap: 14px; padding: 16px 24px; background: rgba(18,24,27,.72); color: #fff; font-weight: 600; font-size: 15px; border: 1px solid rgba(255,255,255,.28); }
.film-frame .film-play:hover span { background: var(--red); border-color: var(--red); }
.film-frame .pending { position: absolute; inset-inline-start: 0; bottom: 0; margin: 0; padding: 12px 16px; background: rgba(18,24,27,.8); font-size: 13px; color: var(--on-dark-2); }
.film-meta { display: flex; gap: 20px 40px; flex-wrap: wrap; justify-content: space-between; align-items: end; margin-bottom: 28px; }
.film-meta h2 { color: #fff; }
.film-meta p { margin: 0; color: var(--on-dark-2); }

/* ---------- Approvals: 9COM ---------- */
.ncom-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 18px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--alloy); }
.ncom-search { flex: 1 1 320px; position: relative; }
.ncom-search input { width: 100%; height: 48px; padding-inline: 44px 14px; border: 1px solid var(--alloy); border-radius: 2px; background: #fff; font: 16px var(--font-text); color: var(--ink); }
.ncom-search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.ncom-search svg { position: absolute; inset-inline-start: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--ink-2); }
.ncom-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 38px; padding: 0 14px; border: 1px solid var(--alloy); background: #fff; border-radius: 2px; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip:not([aria-pressed="true"]):hover { border-color: var(--ink-2); color: var(--ink); }
.ncom-count { margin-inline-start: auto; font-size: var(--fs-small); color: var(--ink-2); }
.ncom-group { margin-top: 34px; }
.ncom-group[hidden] { display: none; }
.ncom-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 10px; }
.ncom-group-head h3 { margin: 0; }
.ncom-group-head p { margin: 0; font-size: var(--fs-small); color: var(--ink-2); }
.ncom-group-head a { color: var(--ink-2); }
.ncom-table { width: 100%; border-collapse: collapse; }
.ncom-table th { text-align: start; font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 0 12px 8px 0; border-bottom: 1px solid var(--ink); }
.ncom-table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--alloy); vertical-align: middle; }
:root[dir="rtl"] .ncom-table th, :root[dir="rtl"] .ncom-table td { padding-inline: 0 12px; }
.ncom-table td.code { width: 220px; }
.ncom-table td.code .num { font-size: 16px; letter-spacing: .06em; }
.ncom-table td.act { width: 1%; min-width: max-content; text-align: end; white-space: nowrap; } /* min-width: Safari sized the cell 13 px short, so the Copy button overhung the row */
.ncom-table tr[hidden] { display: none; }
.ncom-table mark { background: rgba(182,32,37,.14); color: inherit; padding: 0 1px; }
.ncom-empty { padding: 28px 0; color: var(--ink-2); }
.ncom-foot { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; margin-top: 26px; }
.ncom-foot p { margin: 0; font-size: var(--fs-cap); color: var(--ink-2); max-width: 70ch; }
@media (max-width: 640px) {
  .ncom-table thead { display: none; }
  .ncom-table tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 0; border-bottom: 1px solid var(--alloy); }
  .ncom-table td { border: 0; padding: 0; }
  .ncom-table td.code { width: auto; }
  .ncom-table td.desc { grid-column: 1 / -1; order: 3; padding-top: 6px; color: var(--ink-2); font-size: 15px; }
  .ncom-count { margin-inline-start: 0; width: 100%; }
}

.regs { margin-top: clamp(64px, 8vw, 112px); }
.regs-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 28px; margin-bottom: 18px; }
.regs-head h3 { font-size: clamp(20px, .6vw + 16px, 24px); margin: 0; }
.regs-head p { margin: 0; color: var(--ink-2); font-size: var(--fs-small); }
.regs-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 4vw, 56px); border-top: 1px solid var(--ink); }
.regs-list li { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--alloy); min-width: 0; }
.regs-list .co { flex: 1; min-width: 0; font-size: 15.5px; line-height: 1.4; }
.regs-list .num { font-size: 13.5px; letter-spacing: .06em; color: var(--ink); }
.regs-list .copy { min-height: 28px; padding: 0 8px; }
@media (max-width: 800px) { .regs-list { grid-template-columns: 1fr; } }

/* ---------- Piping range ---------- */
.range-dl { margin: 0; border-top: 1px solid var(--ink); }
.range-dl > div { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr) minmax(0, 2fr); column-gap: clamp(16px, 2vw, 32px); border-bottom: 1px solid var(--alloy); }
.range-dl dt, .range-dl dd { margin: 0; padding: 16px 0; }
.range-dl dt { font-weight: 600; font-stretch: 112.5%; padding-inline-end: 20px; }
:root[lang="ar"] .range-dl dt { font-stretch: 100%; }
.range-dl dd { max-width: 70ch; }
.range-aside { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); margin-top: clamp(40px, 5vw, 64px); }
.range-aside > div:first-child { grid-column: 1 / span 6; }
.range-aside > div:last-child { grid-column: 8 / span 5; }
.stamps { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 14px; padding: 0; }
.stamps li { font-family: "Michroma", sans-serif; font-size: 13px; letter-spacing: .12em; padding: 9px 12px 8px; border: 1px solid var(--ink); background: #fff; }
@media (max-width: 800px) {
  .range-dl > div { grid-template-columns: 1fr; }
  .range-dl dt { padding-bottom: 2px; }
  .range-dl dd { padding-top: 0; }
  .range-aside > div:first-child, .range-aside > div:last-child { grid-column: 1 / -1; }
  .range-aside > div:last-child { margin-top: 28px; }
}

/* ---------- Industries ---------- */
.inds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 32px); }
.inds li { min-width: 0; }
.inds .ph { aspect-ratio: 3 / 2; overflow: hidden; background: var(--mist); margin-bottom: 16px; }
.inds .ph img { width: 100%; height: 100%; object-fit: cover; }
.inds h3 { margin-bottom: 6px; }
.inds p { margin: 0; font-size: 15.5px; color: var(--ink-2); max-width: 40ch; }
@media (max-width: 900px) { .inds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .inds { grid-template-columns: 1fr; } }

/* ---------- About, message, values ---------- */
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 40px; }
.about-grid .story { grid-column: 1 / span 7; }
.about-grid .how { grid-column: 9 / span 4; display: grid; gap: 36px; align-content: start; }
.about-grid .how h3 { font-size: 16px; margin-bottom: 12px; }
@media (max-width: 960px) { .about-grid .story, .about-grid .how { grid-column: 1 / -1; } }

.message { overflow: hidden; }
/* the rings sit in their own columns beside the words, never behind them */
.message .emblem { grid-column: 9 / span 4; grid-row: 1 / span 2; align-self: center; color: rgba(255,255,255,.2); }
.message .emblem svg { display: block; width: 100%; height: auto; overflow: visible; }
.message .grid { position: relative; }
.message .motto { grid-row: 1; grid-column: 1 / span 7; font-family: var(--font-display); font-size: clamp(22px, 1.3vw + 14px, 34px); line-height: 1.38; margin: 0 0 clamp(40px, 5vw, 64px); text-wrap: balance; max-width: none; }
:root[lang="ar"] .message .motto { line-height: 1.7; }
.message .paras { grid-row: 2; grid-column: 1 / span 7; color: rgba(255,255,255,.86); }
.message .paras p { max-width: 64ch; }
.message .paras p:last-child { margin-bottom: 0; }
@media (max-width: 960px) { .message .motto, .message .paras { grid-column: 1 / -1; } .message .emblem { display: none; } }

.pvm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); border-top: 1px solid var(--ink); margin-bottom: clamp(48px, 6vw, 80px); }
.pvm div { padding-top: 18px; }
.pvm h3 { font-size: 15px; color: var(--ink-2); font-weight: 600; margin-bottom: 8px; }
.pvm p { font-size: var(--fs-lead); line-height: 1.45; margin: 0; max-width: 30ch; }
.vals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.vals li { padding: 18px 0; border-top: 1px solid var(--alloy); }
.vals strong { display: block; font-weight: 600; font-stretch: 112.5%; margin-bottom: 4px; }
:root[lang="ar"] .vals strong { font-stretch: 100%; }
.vals span { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 860px) { .pvm, .vals { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact .grid { row-gap: 48px; }
.contact .intro { grid-column: 1 / -1; }
.contact .intro h2 { color: #fff; margin-bottom: 22px; }
.contact .intro .btn { margin-top: 18px; }
/* the email button ("Click here to email info@hoeit.com"): where the screen is too narrow for one line, it breaks between
   the words and the address, each kept whole (build.mjs, contact) */
.contact .mail-cta { white-space: normal; flex-wrap: wrap; column-gap: .3em; row-gap: 0; padding-block: 10px; line-height: 1.35; text-align: center; max-width: 100%; }
/* the line under it: what a click does, and a Copy address button for a visitor with no mail app (webmail) */
.contact .mail-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 14px 0 0; font-size: 14px; color: var(--on-dark-2); }
/* The cards in two groups, two side by side in each: the places (head office, warehouse), then Tel / Fax and Email. Each
   place is a subgrid of five rows (heading, address, code, coordinates, map), so the two cards' codes, coordinates and
   maps sit level whatever their addresses' lengths. Up to 1247 px the intro sits above the cards (one column of them up
   to 560 px); wider, the places sit beside the intro and Tel / Fax and Email under it, so the two columns end about
   level. There each of the four cards spans three of the page's twelve columns, at the page's own gap, so they share one
   width: the maps are at least 260 px wide (their road names show) and every Copy button keeps its label. */
.contact .cards { grid-column: 1 / -1; }
.contact .places, .contact .reach { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(16px, 3vw, 40px); align-items: start; }
.contact .places > .card { display: grid; grid-row: span 5; grid-template-rows: subgrid; }
@media (min-width: 1248px) {
  .contact .cards { display: contents; }
  .contact .intro { grid-column: 1 / span 5; grid-row: 1; }
  .contact .places { grid-column: 7 / span 6; grid-row: 1 / span 2; align-self: start; }
  .contact .reach { grid-column: 1 / span 6; grid-row: 2; align-self: start; }
  .contact .places, .contact .reach { column-gap: clamp(16px, 2vw, 32px); }
}
@media (max-width: 560px) { .contact .places, .contact .reach { grid-template-columns: 1fr; } }
.contact .card { padding: 20px 0 26px; border-top: 1px solid rgba(255,255,255,.14); min-width: 0; }
.contact .card h3 { font-size: 14px; color: var(--on-dark-2); font-weight: 600; margin-bottom: 10px; }
.contact address { font-style: normal; line-height: 1.6; }
/* one address line per block: a line too long for a narrow card wraps with its continuation indented, so it does not read
   as a line of its own */
.contact address > span { display: block; padding-inline-start: .8em; text-indent: -.8em; }
.contact address br { display: none; }
.contact .coords { display: block; margin-top: 10px; font-family: var(--font-text); font-size: 14px; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--steel-light); }
.contact .coords a { text-decoration: none; }
.contact .coords a:hover { color: #fff; text-decoration: underline; }
.contact .line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.contact .line a { text-decoration: none; font-size: 17px; color: #fff; }
.contact .line a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact .line .nr { font-size: 17px; color: #fff; }
.contact .line a, .contact .line .nr { white-space: nowrap; }
/* a card narrower than its widest line (the head office's short address) with the button reading "Copied" / «تم النسخ»
   shows the icon alone, all four cards alike, so no line wraps or shifts while a label is changed (the line is the
   container: a place card is a subgrid, which a size container cannot be) */
.contact .line { container-type: inline-size; }
@container (max-width: 265px) { .contact .card .copy span { display: none; } .contact .card .copy { width: 34px; padding: 0; justify-content: center; } }
.contact .card h3.sub { margin-top: 12px; }
/* the head office's short address (Saudi National Address: the code Google Maps finds), or for the warehouse, which has
   none, its plus code; copyable like the numbers, the code never broken */
.contact .sa { margin-top: 8px; font-size: 14px; color: var(--steel-light); }
.contact .sa .ltr { color: #fff; font-weight: 600; letter-spacing: .06em; white-space: nowrap; }
/* Each place's own map (tools/map.mjs): an inline drawing the width of the card, never mirrored, the whole box a link to
   the place in Google Maps. Its words are in the map's own units (400 across) and stepped by the box's width, so they
   stay readable while the drawing scales: smaller boxes get larger words, and the road's name gives way below 260 px. */
.contact .map { display: block; margin-top: 16px; color: var(--on-dark-2); text-decoration: none; }
.contact .map-box { display: block; container-type: inline-size; direction: ltr; border: 1px solid rgba(255,255,255,.14); background: #20292E; transition: border-color .3s var(--ease); }
.contact .map-svg { width: 100%; height: auto; aspect-ratio: 400 / 260; }
/* the pin's halo pulses: it grows out from the pin's disc and fades, two copies half a beat apart, like a slow ping */
.contact .map-halo { transform-box: fill-box; transform-origin: center; animation: map-pulse 3s cubic-bezier(.25, .6, .35, 1) infinite; }
.contact .map-halo.b { animation-delay: -1.5s; }
@keyframes map-pulse { 0% { transform: scale(.56); opacity: 1; } 65% { opacity: .35; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .contact .map-halo { animation: none; opacity: .6; } .contact .map-halo.b { display: none; } }
.contact .map-cap { display: block; margin-top: 8px; font-size: 13px; transition: color .3s var(--ease); }
.contact .map:hover .map-box { border-color: rgba(255,255,255,.34); }
.contact .map:hover .map-cap { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
/* the attributes are the sizes for a box 260 to 340 px wide (the desktop card), the Latin road name in Archivo's condensed
   width so it can be set larger in the same length; phones (340 to 400 px) a step smaller, wider boxes the prototype's
   own wide capitals */
@container (max-width: 259.98px) { .map-road { display: none; } .map-pin { font-size: 16px; } .map-credit { font-size: 16px; transform: translateY(-2px); } }
@container (min-width: 340px) and (max-width: 399.98px) { .map-road { font-size: 11.5px; } .map-road.ar { font-size: 12.5px; } .map-credit { font-size: 10.5px; } }
@container (min-width: 400px) { .map-road { font-size: 9.5px; font-stretch: 100%; letter-spacing: .08em; } .map-road.ar { font-size: 11px; letter-spacing: 0; } .map-pin { font-size: 11px; } .map-credit { font-size: 8.5px; } }

/* ---------- Footer ---------- */
.ftr { background: var(--graphite); color: var(--on-dark-2); padding-block: 0 40px; }
/* the stencil line closes the footer: city, then the vendor ID (the lockup above carries the name) */
.ftr .marking { margin-top: 40px; }
/* (the strip's clip is there for its width; at line-height 1 it also shaved the tops of the tall Arabic letters) */
@supports (overflow: clip) { .ftr .marking { overflow-x: clip; overflow-y: visible; } }
/* phones: only the vendor ID, set as the hero's marking is there: the rule becomes a hairline the full width, with the
   lettering under it from the start edge, tighter, so the whole line fits at 320 px (if it ever cannot, it wraps: never cut) */
@media (max-width: 640px) {
  .ftr .marking { display: block; overflow: visible; white-space: normal; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.16); letter-spacing: .1em; font-size: 10px; line-height: 1.5; }
  .ftr .marking::before, .ftr .marking .city { display: none; }
  .ftr .marking .num { white-space: nowrap; }
}
.ftr-row { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: flex-start; padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid rgba(255,255,255,.1); }
.p-next-sec { padding-block: clamp(40px, 5vw, 72px) 0; }
.ftr-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ftr-brand img.wm { height: 22px; width: auto; }
/* from tablets up the wordmark matches the header's (28 px), so it still leads the two lines of names under it */
@media (min-width: 761px) { .ftr-brand img.wm { height: 28px; } }
/* the lockup: the wordmark over the company's English and Arabic names (Adel, 2026-10-04: the English was missing), English
   first on both languages, as one logo; the official name artwork, both lines the same width as in the master lockup */
.ftr-brand .names { --w: min(360px, calc(100vw - 2 * var(--gutter))); display: flex; flex-direction: column; gap: 8px; width: var(--w); opacity: .85; }
.ftr-brand .names img { width: 100%; height: auto; }
/* Safari draws an SVG image into a box of whole pixels: in a box 11.94 px high the English line came out 28 px narrower
   than its box, no longer in line with the wordmark and the Arabic. So each line's box is rounded up to a whole pixel; the
   artwork keeps its proportions inside it (29.955 and 18.469 = the two files' width / height) */
.ftr-brand .names img.en { height: round(up, calc(var(--w) / 29.955), 1px); }
.ftr-brand .names img.ar { height: round(up, calc(var(--w) / 18.469), 1px); }
.ftr-links { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 0; padding: 0; font-size: var(--fs-small); }
.ftr-links a { text-decoration: none; color: var(--on-dark); }
.ftr-links a:hover { text-decoration: underline; }
.ftr .legal { margin-top: 20px; font-size: 12.5px; line-height: 1.6; max-width: 92ch; }

/* ---------- Principal pages ---------- */
.p-hero { background: var(--graphite); color: #fff; padding-top: calc(var(--hdr-h) + clamp(28px, 4vw, 56px)); }
.p-hero .crumbs { font-size: var(--fs-small); color: var(--on-dark-2); margin-bottom: 26px; }
.p-hero .crumbs a { color: var(--on-dark); }
.p-hero .head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 24px; align-items: end; padding-bottom: clamp(36px, 4vw, 56px); }
.p-hero .head .t { grid-column: 1 / span 7; }
.p-hero .head .t .logo { height: 40px; width: auto; }
.p-hero .head .t .logos { margin-bottom: 26px; gap: 14px 26px; }
.p-hero .logo-sep { height: 34px; }
.p-hero .head .t .logo.idrojet { height: 38px; }
/* a principal's own page: its logo(s) in the makers' own colours, exactly as drawn (Adel, 2026-10-04), straight on the
   graphite with no plate behind them (Tariq, 2026-10-04), at the sizes and in the places the white ones had; RMA's is its
   dark-ground file. Phones: a pair (Calder / IDROJET) stays on one line down to 320 px, its logos shrunk only as far as
   that needs. 6.9 = the two logos' widths in logo heights (3.91 + .95 x 3.12) and a little slack; 53px = the two gaps
   and the hairline. */
@media (max-width: 560px) {
  .p-hero .head .t .logos.pair { --lh: min(40px, calc((100vw - 2 * var(--gutter) - 53px) / 6.9)); }
  .p-hero .head .t .logos.pair .logo { height: var(--lh); }
  .p-hero .head .t .logos.pair .logo.idrojet { height: calc(var(--lh) * .95); }
  .p-hero .logos.pair .logo-sep { height: calc(var(--lh) * .85); }
}
.p-hero .head .t .kicker { color: var(--on-dark-2); margin: 0 0 10px; font-size: var(--fs-small); }
.p-hero h1 { font-size: clamp(28px, 2vw + 16px, 50px); color: #fff; }
.p-hero .head .side { grid-column: 8 / span 5; }
.p-hero .head .lead { color: var(--on-dark); margin: 0; }
/* the principal's own website(s), under the lead (the partners asked to be reached from their page; Tariq, 2026-10-13):
   quiet, in the lead's column, its last line on the headline's foot. The domain is white on a hairline underline and
   never breaks; after it, the site's mark for a link that leaves it, the contact map links' text arrow (→, ← on Arabic
   pages: it points the way the page reads; build.mjs, outArrow), which steps that way on hover. */
.p-hero .visit { margin: 18px 0 0; font-size: 15px; line-height: 1.6; color: var(--on-dark-2); max-width: none; }
:root[lang="ar"] .p-hero .visit { font-size: 16px; line-height: 1.8; }
.p-hero .visit a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
/* two sites in one line: a little room either side of each link, so its focus ring clears the words beside it */
.p-hero .visit.pair a { margin-inline: 3px; }
.p-hero .visit a:focus-visible { outline-offset: 2px; }
.p-hero .visit .d { white-space: nowrap; color: #fff; }
.p-hero .visit .u { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,.38); transition: text-decoration-color .2s var(--ease); }
/* (an inline block so it can move; line-height 1 keeps it inside the text's own height, so a focus ring stays square) */
.p-hero .visit .ext { display: inline-block; line-height: 1; transition: transform .2s var(--ease); }
.p-hero .visit a:hover { color: var(--on-dark); }
.p-hero .visit a:hover .u { text-decoration-color: #fff; }
.p-hero .visit a:hover .ext { transform: translateX(3px); }
:root[dir="rtl"] .p-hero .visit a:hover .ext { transform: translateX(-3px); }
.mosaic { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; height: clamp(300px, 46vw, 640px); }
.mosaic figure { margin: 0; position: relative; overflow: hidden; background: #10161a; }
.mosaic figure:first-child { grid-row: 1 / span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.mosaic figure.mist { background: var(--mist); }
.mosaic figure.mist img { object-fit: contain; padding: 5%; }
.mosaic figcaption { position: absolute; inset-inline-start: 0; bottom: 0; padding: 8px 12px; font-size: 12px; color: var(--on-dark-2); background: rgba(27,34,38,.82); }
.mosaic figure.mist figcaption { color: var(--ink-2); background: rgba(238,241,243,.92); }
@media (max-width: 760px) {
  .p-hero .head .t, .p-hero .head .side { grid-column: 1 / -1; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 1.4fr 1fr; height: 120vw; }
  .mosaic figure:first-child { grid-row: auto; grid-column: 1 / -1; }
}
/* The hero's entrance: one load moment, under a second, in the film's hand (Tariq, 2026-10-04). The breadcrumb and the
   logo come up, then the origin line; the headline rises line by line from behind a mask (out-quint, as the film's
   titles); the lead fades in, then the principal's website line under it; each photograph comes up on its ground and
   settles, from a touch larger, into its frame. Everything starts within the first 0.22 s, top to bottom, so nothing
   waits long to be seen.
   The <head> arms it (class "enter": build.mjs, headScript) and these animations play it. Each one only says where an
   element comes FROM and ends on the page's own styles, so no hidden state can outlive its animation; they move and
   fade only (nothing changes size or place); and without the class the hero is simply there, as before. site.js
   (entrance) adds the headline's lines (without it the heading rises as one), and the page's own script (build.mjs,
   HOLD) holds a photograph that has not arrived by its moment on its ground until it lands.
   The fades start at 1 %, not 0. Chrome times a page's largest paint (LCP) by when an element is first drawn visibly;
   one that fades in from exactly 0 is not drawn again while the compositor fades it, and is only counted when its fade
   has ENDED, which reported the lead and the main photograph 0.6 s late. At 1 % the eye sees nothing, and the element
   is counted when it is first drawn, as it was before the entrance. */
@keyframes enter-up { from { opacity: .01; transform: translateY(10px); } }
@keyframes enter-fade { from { opacity: .01; } }
@keyframes enter-line { from { opacity: .01; transform: translateY(var(--rise)); } 30% { opacity: 1; } }
@keyframes enter-settle { from { transform: scale(1.045); } }
.enter .p-hero .crumbs { animation: enter-up .5s var(--ease-o5) backwards; }
.enter .p-hero .head .logos { animation: enter-up .55s var(--ease-o5) 30ms backwards; }
.enter .p-hero .head .kicker { animation: enter-up .5s var(--ease-o5) 60ms backwards; }
.enter .p-hero h1 { animation: enter-up .62s var(--ease-o5) 90ms backwards; }
.enter .p-hero .head .lead { animation: enter-fade .6s var(--ease) 110ms backwards; }
.enter .p-hero .head .visit { animation: enter-fade .6s var(--ease) 150ms backwards; }
.enter .mosaic img { animation: enter-fade .5s var(--ease) 100ms backwards, enter-settle .7s var(--ease-o5) 100ms backwards; }
.enter .mosaic figure:nth-child(2) img { animation-delay: 160ms; }
.enter .mosaic figure:nth-child(3) img { animation-delay: 220ms; }
/* a cut-out on the mist ground only fades in: its frame crops nothing, so a settle would show the part itself shrink */
.enter .mosaic figure.mist img { animation-name: enter-fade; }
.enter .mosaic figcaption { animation: enter-fade .45s var(--ease) .5s backwards; }
/* the headline's lines rise one after another (site.js): the heading's own text, set one line to a row (.ln, a window
   cut at the foot of its letters) exactly where the browser broke it, rising inside its row. Nothing is swapped when
   the rise ends: copies laid over the text and swapped for it at the end showed a blank or a doubled frame in Safari. */
.p-hero h1 .ln, .p-hero h1 .ln > span { display: block; white-space: nowrap; }
.p-hero h1.lines .ln > span { animation: enter-line .62s var(--ease-o5) var(--at, 0ms) backwards; }
.p-body .grid { row-gap: 48px; }
.p-body .facts { grid-column: 1 / span 4; }
.p-body .main { grid-column: 6 / span 7; }
.facts-dl { margin: 0; border-top: 1px solid var(--ink); }
.facts-dl div { display: grid; grid-template-columns: minmax(84px, 2fr) 5fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--alloy); }
.facts-dl dt { color: var(--ink-2); font-size: 14px; }
.facts-dl dd { margin: 0; font-size: 15.5px; line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }
/* one label over several values (RMA's two Aramco IDs, JIULI's three plant IDs): each value on its own line beside it */
.facts-dl dd { grid-column: 2; }
.facts-dl div { row-gap: 6px; }
.p-body .pull { font-family: var(--font-display); font-size: clamp(20px, .9vw + 14px, 28px); line-height: 1.4; padding-inline-start: 22px; border-inline-start: 3px solid var(--red); margin: 0 0 32px; max-width: 34ch; }
:root[lang="ar"] .p-body .pull { line-height: 1.7; }
.p-body .quote { margin: 0 0 32px; padding-inline-start: 22px; border-inline-start: 3px solid var(--red); }
.p-body .quote p { font-family: var(--font-display); font-size: clamp(20px, .9vw + 14px, 28px); line-height: 1.4; margin: 0 0 10px; max-width: 34ch; }
.p-body .quote cite { font-style: normal; font-size: var(--fs-small); color: var(--ink-2); }
.p-body h3.range-h { margin-top: 36px; }
.p-body .list.ruled { margin-bottom: 24px; }
.p-body .note { font-size: var(--fs-small); color: var(--ink-2); max-width: 70ch; }
.p-ncom { margin-top: 40px; }
/* the product type of a 9COM class on its principal's page (JIULI: "Seamless and welded" / "Seamless"): a quiet tag
   after the description, on the mist of the site's chips but with no border, so it never reads as a button. The 8 px
   before it is .ptype-gap's padding, glued to the description's last word, so a tag that wraps onto its own line starts
   flush with the text above it (a margin on the tag went with it and set it 8 px in). */
.ptype-gap { padding-inline-end: 8px; }
.ptype { display: inline-block; padding: 1px 8px; background: var(--mist); border-radius: 2px;
  font-size: 12.5px; font-weight: 500; line-height: 1.6; color: var(--ink-2); white-space: nowrap; vertical-align: 1px; }
:root[lang="ar"] .ptype { font-size: 13px; line-height: 1.7; }
.p-ncom-src { margin: 16px 0 0; }
.p-ncom-src a { color: inherit; }

/* ---------- A principal's brochures and documents (JIULI): small covers in ruled rows, three to a row on a wide screen,
   two on a tablet, one on a phone. Each row is one link to its PDF (the document viewer opens it). The cover keeps its
   own shape inside a fixed slot, framed by a hairline as a sheet of paper; the title takes the link's underline. ---------- */
.p-docs { padding-block: clamp(56px, 6vw, 96px); }
.p-docs .sec-head { margin-bottom: clamp(28px, 3.4vw, 48px); }
.docs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 48px); border-top: 1px solid var(--ink); }
.docs li { min-width: 0; border-bottom: 1px solid var(--steel-light); }
.doc { display: flex; align-items: center; gap: 18px; height: 100%; padding: 20px 0; color: inherit; text-decoration: none; }
/* (a flex box, not a one-cell grid: a grid row would size to the cover and the cover's max-height would never hold it in
   the slot, so a tall cover ran out of it at the bottom) */
.doc .th { flex: none; display: flex; align-items: center; justify-content: center; width: 84px; height: 112px; }
.doc .th img { width: auto; height: auto; max-width: 100%; max-height: 100%; background: #fff; outline: 1px solid rgba(30,36,40,.14); transition: outline-color .2s var(--ease), translate .3s var(--ease); }
.doc .t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.doc .k { font-size: var(--fs-cap); line-height: 1.4; color: var(--ink-2); }
.doc .n { font-weight: 600; font-size: 16px; line-height: 1.35; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(30,36,40,.28); transition: text-decoration-color .2s var(--ease), color .2s var(--ease); }
/* language, pages and size, a dot between them; where the line wraps, the dot before the first item of the new line falls
   outside the line's start and is cut off, so no line begins with a dot */
.doc .m { display: flex; flex-wrap: wrap; column-gap: 15px; overflow: hidden; font-size: var(--fs-cap); line-height: 1.5; color: var(--ink-2); }
.doc .m > span { position: relative; white-space: nowrap; }
.doc .m > span + span::before { content: "·"; position: absolute; inset-inline-start: -10px; }
.doc:hover .n { color: var(--red); text-decoration-color: currentColor; }
.doc:hover .th img { outline-color: rgba(30,36,40,.4); translate: 0 -2px; }
:root[lang="ar"] .doc .n { font-size: 17px; }
:root[lang="ar"] .doc .k, :root[lang="ar"] .doc .m { font-size: 13.5px; }
@media (max-width: 1100px) { .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .docs { grid-template-columns: 1fr; }
  .doc { gap: 16px; padding: 16px 0; }
  .doc .th { width: 66px; height: 88px; }
}
/* A list in groups (Calder's 26 documents, in Calder's two groups): each group's heading, its count beside it in the
   quiet caption style, over its own ruled list. From a laptop's width those lists go three to a row, and four on a wide
   screen, the covers a little smaller and the rows a little tighter, so the long list stays short; below that, as above
   (one to a row on a phone). */
.docs-group + .docs-group { margin-top: clamp(40px, 4.4vw, 64px); }
.docs-h { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 2px; margin: 0 0 14px; }
.docs-h .c { font-weight: 400; font-stretch: 100%; font-size: var(--fs-cap); line-height: 1.4; letter-spacing: 0; color: var(--ink-2); }
:root[lang="ar"] .docs-h .c { font-size: 13.5px; }
@media (min-width: 960px) {
  .docs-dense { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 2.4vw, 40px); }
  .docs-dense .doc { gap: 16px; padding: 16px 0; }
  .docs-dense .doc .th { width: 72px; height: 96px; }
}
@media (min-width: 1280px) { .docs-dense { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .doc .th img { transition: none; } .doc:hover .th img { translate: none; } }
.range-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 40px); }
@media (max-width: 640px) { .range-pair { grid-template-columns: 1fr; } .range-pair > div + div h3.range-h { margin-top: 12px; } }
/* a partner on its principal's page (IDROJET on /calder/) */
.p-partner .head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 24px; align-items: end; margin-bottom: clamp(36px, 4vw, 56px); }
.p-partner .head .t { grid-column: 1 / span 7; }
.p-partner .head .lead { grid-column: 8 / span 5; margin: 0; }
.p-partner .head .logos { margin-bottom: 24px; }
.p-partner .head .logo { height: 40px; width: auto; }
.p-partner .kicker { color: var(--ink-2); margin: 0 0 10px; font-size: var(--fs-small); }
.p-partner h2 { font-size: clamp(24px, 1.5vw + 15px, 40px); }
.p-partner .grid { row-gap: 40px; align-items: start; }
.p-partner figure { grid-column: 1 / span 5; position: relative; aspect-ratio: 1; background: #10161a; overflow: hidden; }
.p-partner figure img { width: 100%; height: 100%; object-fit: cover; }
.p-partner figure.mist { background: var(--paper); }
.p-partner figure.mist img { object-fit: contain; padding: 6%; }
.p-partner figcaption { position: absolute; inset-inline-start: 0; bottom: 0; padding: 8px 12px; font-size: 12px; color: var(--ink-2); background: rgba(255,255,255,.92); }
.p-partner .main { grid-column: 7 / span 6; }
.p-partner .main h3.range-h:first-child { margin-top: 0; }
.p-partner .list.ruled { margin-bottom: 18px; }
.p-partner .list.ruled li { border-color: var(--alloy); }
.p-partner .facts-dl { margin-top: 32px; }
@media (max-width: 900px) { .p-partner .head .t, .p-partner .head .lead, .p-partner figure, .p-partner .main { grid-column: 1 / -1; } }
.p-next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.p-next a { display: block; padding: 26px 0; border-top: 1px solid rgba(255,255,255,.16); text-decoration: none; }
.p-next a span { display: block; color: var(--on-dark-2); font-size: var(--fs-small); margin-bottom: 8px; }
.p-next a strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(20px, 1vw + 14px, 28px); color: #fff; }
.p-next a:hover strong { color: var(--red-bright); }
@media (max-width: 900px) { .p-body .facts, .p-body .main { grid-column: 1 / -1; } }
@media (max-width: 560px) { .p-next { grid-template-columns: 1fr; } }

/* Toast for copy feedback (screen readers get it via aria-live). Its width is its text's, up to the screen less 16 px a
   side: set from the middle of the screen, it was otherwise held to the half on its side and broke onto two lines on a
   320 px phone (review of 2026-10-18). */
.toast { position: fixed; inset-inline-start: 50%; bottom: 24px; translate: -50% 20px; z-index: 60; inline-size: max-content; max-inline-size: calc(100vw - 32px); padding: 12px 18px; background: var(--ink); color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), translate .25s var(--ease); }
:root[dir="rtl"] .toast { translate: 50% 20px; }
.toast.show { opacity: 1; translate: -50% 0; }
:root[dir="rtl"] .toast.show { translate: 50% 0; }

/* ---------- Footage, used sparingly. Every clip sits on a still that works alone. ---------- */
.inds .ph { position: relative; }
.inds .ph .vignette { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease); }
.inds .ph .vignette.playing { opacity: 1; }

.opener { position: relative; background: #0d1215; color: #fff; overflow: hidden; height: clamp(520px, 82svh, 860px); }
.opener-still img, .opener > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.opener > video { opacity: 0; transition: opacity .6s var(--ease); }
.opener > video.playing { opacity: 1; }
.opener::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(13,18,21,.92) 0%, rgba(13,18,21,.55) 34%, rgba(13,18,21,0) 62%); }
.opener-copy { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; padding-bottom: clamp(36px, 5vw, 72px); }
.opener-copy .sec-head { margin-bottom: 0; }
.opener-copy h2 { color: #fff; }
.opener-copy .lead { color: rgba(255,255,255,.86); }
.opener-copy .rule-red { background: var(--red-bright); }
.sec.after-opener { padding-top: clamp(40px, 5vw, 64px); }
@media (max-width: 400px) {
  .hero .marking .copy span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ncom.has3d .ncom-table td.code .num { font-size: 15px; }
  .hero .marking .copy { padding: 0 8px; }
}

@media (max-width: 700px) and (orientation: portrait) {
  .film-frame { aspect-ratio: 9 / 16; max-height: 82svh; margin-inline: auto; }
}
.film-frame picture, .film-frame picture img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Original old-site medallion artwork in the engraved-steel finish (public previews) */
/* the shadow sits on the parent of the masked layers (a filter and a mask on one element is unstable in Safari) */
.medallion.orig { position: relative; filter: drop-shadow(0 -1px 0 rgba(17,23,26,.6)); }
.medallion.orig .steel, .medallion.orig .sheen { position: absolute; inset: 0; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
/* Pearl white: Adel chose option E of the colour review (2026-10-18); it was brushed steel. */
.medallion.orig .steel { background: linear-gradient(135deg, #FFFFFF 0%, #E6EAED 34%, #FFFFFF 52%, #C3CAD0 80%, #F2F4F6 100%); }
.medallion.orig .sheen { background: linear-gradient(105deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 65%) no-repeat; background-size: 300% 100%; background-position: 120% 0; opacity: 0; }
.intro .medallion.orig .steel { opacity: 0; }

.principal .proof .cite { display: block; margin-top: 8px; font-size: var(--fs-small); color: var(--on-dark-2); }

/* Hero headline in two levels: the three families (display), then the rest of the sentence (text face) */
.hero h1 { max-width: none; }
.hero h1 .h1-main { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 0; row-gap: 4px; font-size: clamp(26px, 2.2vw + 10px, 46px); line-height: 1.2; }
.hero h1 .h1-main .dot { display: inline-block; width: .26em; height: .26em; border-radius: 50%; background: var(--red-bright); margin-inline: .55em; }
.hero h1 .h1-rest { display: block; margin-top: 14px; font-family: var(--font-text); font-weight: 400; font-size: clamp(18px, .5vw + 15px, 23px); line-height: 1.45; letter-spacing: 0; color: rgba(255,255,255,.86); }
:root[lang="ar"] .hero h1 .h1-main { font-size: clamp(26px, 1.9vw + 10px, 42px); line-height: 1.5; flex-wrap: nowrap; }
@media (max-width: 760px) {
  /* the three families stacked and centred, short-long-short, the line breaks doing the dots' job (a dot on one line
     and not the next looks unbalanced); sized so the longest fits the column (11.8 em in Michroma, 9.7 em in Noto Kufi) */
  .hero h1 .h1-main { flex-direction: column; row-gap: 0; line-height: 1.18; font-size: min(30px, calc((100vw - 2 * var(--gutter)) / 12)); }
  :root[lang="ar"] .hero h1 .h1-main { font-size: min(34px, calc((100vw - 2 * var(--gutter)) / 9.9)); line-height: 1.4; }
  .hero h1 .h1-main > span { white-space: nowrap; }
  .hero h1 .h1-main .dot { display: none; }
  .hero h1 .h1-rest { margin-top: 12px; }
}
@media (min-width: 761px) { .hero h1 .h1-main > span { white-space: nowrap; } }
:root[lang="ar"] .hero h1 { max-width: none; }
.hero h1 .h1-main .dot { flex: none; }

/* ---------- 3D parts: a drawing-office stage (mist, corner ticks) over a title block like a drawing's ---------- */
.p3d { min-width: 0; }
.p3d-view { position: relative; background: var(--mist); aspect-ratio: 4 / 3; overflow: hidden; }
.p3d-canvas { position: absolute; inset: 0; }
.p3d-canvas img { width: 100%; height: 100%; object-fit: contain; }
.p3d-ticks { position: absolute; inset: 12px; pointer-events: none; --tk: linear-gradient(rgba(75,84,91,.55), rgba(75,84,91,.55)); }
.p3d-ticks::after { content: ""; position: absolute; inset: 0; opacity: 0; --tk: linear-gradient(var(--red), var(--red)); }
.p3d-ticks, .p3d-ticks::after {
  background: var(--tk) top left / 14px 1px no-repeat, var(--tk) top left / 1px 14px no-repeat,
    var(--tk) top right / 14px 1px no-repeat, var(--tk) top right / 1px 14px no-repeat,
    var(--tk) bottom left / 14px 1px no-repeat, var(--tk) bottom left / 1px 14px no-repeat,
    var(--tk) bottom right / 14px 1px no-repeat, var(--tk) bottom right / 1px 14px no-repeat; }
.p3d-hint { position: absolute; inset-inline-end: 62px; bottom: 26px; margin: 0; display: flex; align-items: center; gap: 8px; font-size: 12.5px; line-height: 1; color: var(--ink-2); pointer-events: none; transition: opacity .8s var(--ease); }
.p3d-hint.used { opacity: 0; }
/* loading: a small ring while a model downloads and builds, shown only after 0.45 s (longer than the viewer's own
   0.29 s fade between models) so quick swaps never flash it; centred in the empty frame on a swap, in the corner over the still on the first load */
.p3d-load { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  border: 2px solid rgba(27,34,38,.14); border-top-color: var(--red); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .15s var(--ease), visibility 0s .15s; }
.p3d.loading .p3d-load { opacity: 1; visibility: visible; transition: opacity .3s var(--ease) .45s, visibility 0s .45s; animation: p3d-spin .8s linear infinite; }
.p3d.loading.init .p3d-load { left: auto; top: auto; inset-inline-end: 24px; bottom: 18px; margin: 0; width: 20px; height: 20px; }
@keyframes p3d-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .p3d.loading .p3d-load { animation: p3d-breathe 1.6s ease-in-out infinite; } }
@keyframes p3d-breathe { 50% { opacity: .35; } }
.p3d-hint[hidden], .p3d-toggle[hidden], .p3d-note[hidden] { display: none; }
.p3d-note { transition: opacity .7s var(--ease), translate .7s var(--ease); }
.p3d-note.gone { opacity: 0; translate: 0 -6px; pointer-events: none; }
.p3d-note { position: absolute; inset-inline-start: 22px; top: 22px; margin: 0; max-width: calc(100% - 44px); padding: 6px 10px; background: rgba(255,255,255,.82); border: 1px solid var(--alloy); font-size: 12.5px; line-height: 1.35; color: var(--ink-2); }
/* a click on a class that shares the shown model: the frame answers instead */
.p3d-view.pulse .p3d-ticks::after { animation: p3d-tick .9s var(--ease); }
.p3d-view.pulse .p3d-note { animation: p3d-note .9s var(--ease); }
@keyframes p3d-tick { 0%, 35% { opacity: 1; } 100% { opacity: 0; } }
@keyframes p3d-note { 0%, 35% { border-color: var(--red); color: var(--ink); } 100% { border-color: var(--alloy); color: var(--ink-2); } }
.p3d-toggle { position: absolute; inset-inline-start: 22px; top: 22px; display: flex; border: 1px solid var(--ink); background: rgba(255,255,255,.72); }
.p3d-toggle button { min-height: 32px; padding: 0 13px; border: 0; background: transparent; font-size: 13px; color: var(--ink); cursor: pointer; }
.p3d-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.p3d-tb { display: flex; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); border-top: 0; }
.tb-cell { display: flex; flex-direction: column; gap: 3px; padding: 11px 14px 12px; min-width: 0; }
.tb-cell[hidden] { display: none; }
.tb-cell + .tb-cell { border-inline-start: 1px solid var(--alloy); }
.tb-code { flex: none; }
.tb-part { flex: 1 1 auto; }
.tb-basis { flex: 0 1 15.5em; }
.tb-l { font-size: 11.5px; line-height: 1.3; color: var(--ink-2); }
.tb-code .tb-v { font-size: 12.5px; letter-spacing: .06em; line-height: 1.55; }
.tb-name { font-weight: 600; font-size: 15px; line-height: 1.35; }
.tb-size { font-size: 13.5px; line-height: 1.4; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tb-v { font-size: 13.5px; line-height: 1.4; }
.tb-v.maker { color: var(--red); }
.tb-mm { font-size: 11.5px; line-height: 1.3; color: var(--ink-2); }
:root[lang="ar"] .tb-name { font-size: 16px; }

/* 9COM table + stage: rows select the part; on wide screens the stage stays beside the table */
.v3d { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; margin-inline-end: 8px; border: 1px solid var(--alloy); border-radius: 2px; background: transparent; font-family: var(--font-num); font-size: 11px; letter-spacing: .1em; color: var(--ink-2); cursor: pointer; vertical-align: middle; }
.v3d:hover { border-color: var(--ink-2); color: var(--ink); }
.v3d[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.ncom.has3d .ncom-table th:first-child, .ncom.has3d .ncom-table td:first-child { padding-inline-start: 14px; }
.ncom-table tr.has3d { cursor: pointer; }
.ncom-table tr.has3d:hover td { background: rgba(238,241,243,.55); }
.ncom-table tr.on td, .ncom-table tr.on:hover td { background: var(--mist); }
.ncom-table tr.on td:first-child { box-shadow: inset 3px 0 0 var(--red); }
:root[dir="rtl"] .ncom-table tr.on td:first-child { box-shadow: inset -3px 0 0 var(--red); }
@media (min-width: 1180px) {
  .ncom.has3d { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); column-gap: clamp(32px, 3.5vw, 56px); grid-template-areas: "tools tools" "list stage" "foot stage"; align-items: start; }
  .ncom.has3d > .ncom-tools { grid-area: tools; }
  .ncom.has3d > .ncom-list { grid-area: list; }
  .ncom.has3d > .ncom-foot { grid-area: foot; }
  .ncom.has3d > .p3d { grid-area: stage; position: sticky; top: calc(var(--hdr-h) + 28px); margin-top: 34px; }
  .ncom.has3d .ncom-table td.code { width: 180px; }
}
/* phones and tablets: the stage rides along above the table, and can be folded away to a slim bar */
.p3d-hide, .p3d-bar { display: none; }
@media (max-width: 1179px) {
  .ncom.has3d > .p3d { position: sticky; top: var(--hdr-h); z-index: 5; background: var(--paper); padding-block: 12px; margin-top: 6px; }
  .ncom.has3d .p3d-view { aspect-ratio: 16 / 10; max-height: 38svh; }
  .ncom.has3d .p3d-hide { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border: 1px solid var(--alloy); border-radius: 2px; background: rgba(255,255,255,.88); font-size: 13px; color: var(--ink); cursor: pointer; }
  .ncom.has3d .p3d-hide svg { transform: rotate(180deg); }
  .ncom.has3d .p3d-top { inset-inline-end: 10px; top: 10px; }
  .ncom.has3d > .p3d.collapsed { position: static; padding-block: 10px 0; }
  .ncom.has3d .p3d.collapsed .p3d-view, .ncom.has3d .p3d.collapsed .p3d-tb { display: none; }
  .ncom.has3d .p3d.collapsed .p3d-bar { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 2px; background: var(--mist); font-size: 14.5px; color: var(--ink); text-align: start; cursor: pointer; }
  .p3d-bar .cube { font-family: var(--font-num); font-size: 11px; letter-spacing: .1em; padding: 4px 7px; background: var(--red); color: #fff; border-radius: 2px; }
  .p3d-bar svg { margin-inline-start: auto; }
}
@media (max-width: 640px) {
  .ncom.has3d .ncom-table tr { padding-inline: 12px; }
  .ncom.has3d .ncom-table td:first-child { padding-inline-start: 0; }
  .ncom-table tr.on { background: var(--mist); box-shadow: inset 3px 0 0 var(--red); }
  :root[dir="rtl"] .ncom-table tr.on { box-shadow: inset -3px 0 0 var(--red); }
  .ncom-table tr.on td:first-child, :root[dir="rtl"] .ncom-table tr.on td:first-child { box-shadow: none; }
  .p3d-tb { flex-wrap: wrap; }
  .tb-code { flex: 0 0 auto; }
  .tb-part { flex: 1 1 0; }
  .tb-basis { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; column-gap: 10px; align-items: baseline; border-top: 1px solid var(--alloy); border-inline-start: 0 !important; padding-block: 6px 7px; }
  .tb-cell { padding: 8px 12px 9px; row-gap: 1px; }
  .tb-code .tb-v { font-size: 11.5px; }
  .tb-name { font-size: 14px; line-height: 1.3; }
  .tb-size, .tb-v { font-size: 12.5px; }
}
/* Principal pages: the title block keeps one size whatever part or mode is shown (Tariq, 2026-10-14: it grew when Photo
   was chosen). build.mjs (stage3d, fixed) lays under the row it shows one unseen row (.tb-ghost) for every state of the
   stage, all in one grid area, so the block is as tall as its tallest real state from the first layout and at any width.
   The columns have set widths, so an unseen row wraps as it would shown: 9COM as wide as a class number (it stays for every
   part on the stage, an empty field showing a short rule; phones leave an empty one out), the last column (Basis in 3D, the caption and credit in Photo) a
   set share of the bar, the part's column the rest. Each column's lines start at the top, the last column's footnote
   ("Dimensions in mm", "Photograph: ...") right under its value, so what a shorter state leaves free lies at the bar's
   foot. The 9COM column has one set width (calc(10ch + .8em): ten zeros and their spacing, and room for wider digits:
   in this face 4, 7 and 9 are wider than 0), so its rule never moves between parts. */
.tb-fixed { display: grid; grid-template-columns: minmax(0, 1fr); }
.tb-fixed > .tb-row { grid-area: 1 / 1; display: flex; min-width: 0; }
.tb-fixed > .tb-ghost { visibility: hidden; pointer-events: none; -webkit-user-select: none; user-select: none; }
.tb-fixed .tb-code { flex: 0 0 auto; }
.tb-fixed .tb-code .tb-v { width: calc(10ch + .8em); }
.tb-fixed .tb-part { flex: 1 1 0; }
.tb-fixed .tb-basis { flex: 0 0 var(--tb-last, 38%); }
/* (a cell after a 9COM cell that is not shown draws no rule of its own at the block's edge) */
.tb-fixed .tb-code[hidden] + .tb-cell { border-inline-start: 0; }
.tb-fixed .tb-code[data-none] .tb-v::before { content: ""; display: block; width: 18px; height: 1px; margin-block: .75em; background: var(--ink-2); opacity: .55; }
@media (max-width: 640px) {
  .tb-fixed > .tb-row { flex-wrap: wrap; align-content: flex-start; }
  .tb-fixed .tb-code[data-none] { display: none; }
  .tb-fixed .tb-code[data-none] + .tb-cell { border-inline-start: 0; }
  .tb-fixed .tb-basis { flex: 1 1 100%; }
}

/* Principal pages: the range in 3D (graphite, continuing the photo hero) */
.p3d-sec { padding-top: 0; }
.p3d-strip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: start; border-top: 1px solid rgba(255,255,255,.16); padding-top: clamp(48px, 6vw, 88px); }
.p3d-side { grid-column: 1 / span 4; }
.p3d-side h2 { color: #fff; }
.p3d-side .lead { color: var(--on-dark); font-size: 17px; margin: 18px 0 30px; }
.p3d-strip > .p3d { grid-column: 5 / span 8; position: sticky; top: calc(var(--hdr-h) + 28px); }
.p3d-strip .p3d-view { aspect-ratio: 3 / 2; }
.p3d-strip .p3d-tb { border-color: var(--paper); }
.p3d-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.16); }
.p3d-list button { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; align-items: center; width: 100%; padding: 8px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.12); background: none; color: var(--on-dark); text-align: start; cursor: pointer; transition: padding .3s var(--ease), box-shadow .3s var(--ease); }
.p3d-list .th { display: block; aspect-ratio: 4 / 3; background: var(--mist); }
.p3d-list .th img { width: 100%; height: 100%; object-fit: contain; }
.p3d-list .n { font-weight: 600; font-size: 15px; line-height: 1.35; }
.p3d-list button:hover .n, .p3d-list button[aria-pressed="true"] .n { color: #fff; }
.p3d-list button[aria-pressed="true"] { box-shadow: inset 3px 0 0 var(--red-bright); padding-inline-start: 14px; }
:root[dir="rtl"] .p3d-list button[aria-pressed="true"] { box-shadow: inset -3px 0 0 var(--red-bright); }
@media (max-width: 960px) {
  .p3d-strip { display: flex; flex-direction: column; align-items: stretch; }
  .p3d-side { display: contents; }
  .p3d-side .lead { margin-bottom: 24px; }
  .p3d-strip > .p3d { order: 2; position: static; }
  .p3d-strip .p3d-view { aspect-ratio: 4 / 3; }
  .p3d-list { order: 3; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; border: 0; margin: 16px calc(-1 * var(--gutter)) 0; padding: 4px var(--gutter) 6px; }
  .p3d-list::-webkit-scrollbar { display: none; }
  .p3d-list li { flex: 0 0 136px; scroll-snap-align: start; }
  .p3d-list button, .p3d-list button[aria-pressed="true"] { grid-template-columns: 1fr; row-gap: 8px; padding: 0; border: 0; box-shadow: none; align-items: start; }
  .p3d-list .th { outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .3s var(--ease); }
  .p3d-list button[aria-pressed="true"] .th { outline-color: var(--red-bright); }
  .p3d-list .n { font-size: 13.5px; font-weight: 500; }
}

/* Industries and About are both white: one section gap between them, not two (the red rule marks the change) */
#industries + #about { padding-top: 0; }

/* Contact (graphite) runs straight into the graphite footer: one gap, marked by the footer's hairline */
.sec.contact { padding-bottom: clamp(8px, 3vw, 48px); }

/* phones: in the 9COM rows the copy button is the icon alone (its aria-label names the code; the toast confirms) */
@media (max-width: 480px) {
  .ncom.has3d .ncom-table .copy span { display: none; }
  .ncom.has3d .ncom-table .copy { width: 34px; padding: 0; justify-content: center; }
}
/* rows slide under the riding stage through a short fade instead of a hard cut */
@media (max-width: 1179px) {
  .ncom.has3d > .p3d::after { content: ""; position: absolute; inset-inline: 0; top: 100%; height: 22px; background: linear-gradient(var(--paper), rgba(255,255,255,0)); pointer-events: none; }
  .ncom.has3d > .p3d.collapsed::after { display: none; }
}
/* stepping through the parts: previous, count, next (bottom corner of the stage) */
.p3d-step { position: absolute; inset-inline-start: 14px; bottom: 14px; z-index: 2; display: flex; align-items: center; gap: 2px; }
.p3d-step button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--alloy); border-radius: 2px; background: rgba(255,255,255,.88); color: var(--ink); cursor: pointer; }
.p3d-step button:hover { border-color: var(--ink-2); }
.p3d-step button[data-p3d-step="-1"] svg, :root[dir="rtl"] .p3d-step button[data-p3d-step="1"] svg { transform: scaleX(-1); }
:root[dir="rtl"] .p3d-step button[data-p3d-step="-1"] svg { transform: none; }
/* The count (Tariq, 2026-10-14: over a photo it touched the edges of its white box) is a box of its own on every stage,
   as tall as previous and next, 12 px clear of its sides, and the same in 3D and in Photo. Under the count lie, unseen,
   all the counts the stage can show (build.mjs), so the box keeps the widest one's width and next never moves. */
.p3d-step .n { text-align: center; font-family: var(--font-num); font-size: 11px; letter-spacing: .08em; color: var(--ink); font-variant-numeric: tabular-nums; }
.p3d-step .n-box { box-sizing: border-box; display: grid; height: 36px; padding: 0 12px; border: 1px solid var(--alloy); border-radius: 2px; background: rgba(255,255,255,.88); }
.p3d-step .n-box > .n { grid-area: 1 / 1; display: grid; place-items: center; line-height: 1; }
.p3d-step .n-ghost { visibility: hidden; }
/* and the stage's corner ticks (12 px in, arms of 14 px) frame its controls instead of touching them: the controls stand
   22 px in, as the note and Outside | Section do; on phones the photo and full-screen buttons above the row step in too
   (the home page's tablet and phone layout keeps "Hide 3D" and the switch in its top corner, as it was) */
@media (min-width: 761px) {
  .p3d .p3d-step { inset-inline-start: 22px; bottom: 22px; }
  .p3d .p3d-phctl, .p3d .p3d-full { inset-inline-end: 22px; bottom: 22px; }
  .p3d .p3d-top { inset-inline-end: 22px; top: 22px; }
  .p3d .p3d-hint { inset-inline-end: 70px; bottom: 34px; }
  .p3d.loading.init .p3d-view .p3d-load { inset-inline-end: 30px; bottom: 30px; }
}
@media (max-width: 760px) {
  .js .p3d .p3d-phctl, .js .p3d .p3d-full { inset-inline-end: 22px; bottom: calc(var(--bar) + 22px); }
  .js .p3d.loading.init .p3d-view .p3d-load { inset-inline-end: 30px; bottom: calc(var(--bar) + 30px); }
  .p3d .p3d-note, .p3d .p3d-toggle { top: 22px; }
  .p3d .p3d-note { max-width: calc(100% - 44px); }
}

/* Principals on the home page: the photo, the logo, the family name and the button all lead to the principal's page */
.principal .cover { position: absolute; inset: 0; z-index: 1; }
.js .principal [data-reveal="wipe"].in img { transition: opacity 1.6s var(--ease), transform 1.8s cubic-bezier(.16, 1, .3, 1), filter 2.2s var(--ease); }
.principal:has(.cover:hover) .media img, .principal:has(.family a:hover) .media img, .principal:has(.more:hover) .media img { transform: scale(1.025); }
.principal .family a { color: inherit; text-decoration: none; }
.principal .family a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.principal .more svg { flex: none; transition: translate .3s var(--ease); }
.principal .more:hover svg, .principal:has(.cover:hover) .more svg { translate: 4px 0; }
:root[dir="rtl"] .principal .more svg { transform: scaleX(-1); }
:root[dir="rtl"] .principal .more:hover svg, :root[dir="rtl"] .principal:has(.cover:hover) .more svg { translate: -4px 0; }
.principal:has(.cover:hover) .more { border-color: #fff; }
/* The makers' colours on hover (Tariq, 2026-10-04). At rest the home page's principal logos stay white (Adel). While a
   card is under the pointer, or its link has the keyboard's focus, each logo fills with its maker's own colours: the
   colour twin (build.mjs, logos) is swept in from the side reading starts on, like a line being charged, and the white
   logo is clipped away in step, so the two never show through each other; it runs back out on leaving. A second logo
   (IDROJET beside Calder) follows a beat after the first, and empties a beat before it. One number drives it all,
   --fill (0 white, 1 colour). The twin lies over the white logo's own box, so nothing changes size or place. A touch
   screen has no hover: there the fill follows the scroll (below); without the script the logos stay white there, and
   take the colour only while a link in the card is pressed. Reduced motion: the same swap, at once. A twin still on
   its way (it marks itself "in" when it lands, which takes the script: hence .js) or one that failed (it takes itself
   out) leaves the white logo whole, never an empty box. */
.logo-fill { position: relative; display: block; --fill: 0; --i: 0; --j: 0; }
.logo-fill:not(:first-child) { --i: 1; }
.logo-fill:not(:last-child) { --j: 1; }
/* the two clips meet on one line, which runs from 1 px before the logo's box to 1 px past it: at rest and when full
   they cut nothing at all, so the logo's edge pixels are drawn exactly as without a clip */
.logo-fill .logo-c { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; clip-path: inset(-1px calc((1 - var(--fill)) * (100% + 2px) - 1px) -1px -1px); }
.logo-fill .logo-c + .logo { clip-path: inset(-1px -1px -1px calc(var(--fill) * (100% + 2px) - 1px)); }
:root[dir="rtl"] .logo-fill .logo-c { clip-path: inset(-1px -1px -1px calc((1 - var(--fill)) * (100% + 2px) - 1px)); }
:root[dir="rtl"] .logo-fill .logo-c + .logo { clip-path: inset(-1px calc(var(--fill) * (100% + 2px) - 1px) -1px -1px); }
.js .logo-fill .logo-c:not(.in) + .logo { clip-path: none; }
.logo-fill .logo-c, .logo-fill .logo-c + .logo { transition: clip-path .5s var(--ease) calc((var(--fill) * var(--i) + (1 - var(--fill)) * var(--j)) * .12s); }
@media (hover: hover) { .principal:hover .logo-fill { --fill: 1; } }
.principal:has(a:focus-visible) .logo-fill, .principal:has(a:active) .logo-fill { --fill: 1; }
@media (prefers-reduced-motion: reduce) { .logo-fill .logo-c, .logo-fill .logo-c + .logo { transition: none; } }
/* on a touch screen (no hover) the script ties --fill to the scroll position (site.js logoFill): the sweep tracks the
   finger, so the half-second transition gives way to a short one that only smooths the steps */
.fill-scroll .logo-fill .logo-c, .fill-scroll .logo-fill .logo-c + .logo { transition: clip-path .12s linear; }
@media (prefers-reduced-motion: reduce) { .fill-scroll .logo-fill .logo-c, .fill-scroll .logo-fill .logo-c + .logo { transition: none; } }
/* and there the logo is no part of its card's reveal: it is on the page, white, when it scrolls in, so the sweep is
   seen from its start and not under the card's 0.9 s fade. The rest of the card (.txt) comes up as before; its
   transition is named on the revealed state only, so nothing fades out when the script takes the reveal over. */
.fill-scroll .principal .body[data-reveal] { opacity: 1; transform: none; transition: none; }
.fill-scroll .principal .body[data-reveal]:not(.in) .txt { opacity: 0; transform: translateY(18px); }
.fill-scroll .principal .body[data-reveal].in .txt { transition: opacity .9s var(--ease), transform .9s var(--ease); }

/* Motto: the rings draw in when the section arrives, then turn very slowly (one turn every two minutes) */
.js [data-reveal="draw"] { opacity: 1; transform: none; }
.js [data-reveal="draw"] circle.r { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease-io); }
.js [data-reveal="draw"] circle.r:nth-of-type(2) { transition-delay: .25s; }
.js [data-reveal="draw"] circle.r:nth-of-type(3) { transition-delay: .5s; }
.js [data-reveal="draw"] circle.node { opacity: 0; transition: opacity 1s var(--ease) 2.2s; }
.js [data-reveal="draw"].in circle.r { stroke-dashoffset: 0; }
.js [data-reveal="draw"].in circle.node { opacity: 1; }
.message .orbit { animation: hoeit-orbit 120s linear infinite; }
@keyframes hoeit-orbit { to { transform: rotate(360deg); } }
/* The live 3D symbol (js/emblem3d.js) takes the SVG's place once drawn; its canvas overhangs the box by 10% a side so
   a turn is never clipped. It can be taken in hand (drag, flick, tap); a finger that moves vertically still scrolls
   the page and two fingers still zoom (pan-y pinch-zoom). Phones: a compact symbol above the motto. */
.message .emblem { position: relative; }
.message .emblem .e3d { position: absolute; inset: -10%; width: 120%; height: 120%; display: block; pointer-events: none; opacity: 0; transition: opacity 1.1s var(--ease); }
.message .emblem.e3d-in .e3d { opacity: 1; }
.message .emblem.live .orbit { opacity: 0; visibility: hidden; animation-play-state: paused; transition: opacity .6s var(--ease), visibility 0s .6s; }
.message .emblem.live { cursor: grab; touch-action: pan-y; touch-action: pan-y pinch-zoom; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.message .emblem.live.grabbing { cursor: grabbing; }
@media (max-width: 960px) {
  .message .emblem { display: block; grid-row: 1; grid-column: 1 / -1; justify-self: start; align-self: start; width: clamp(112px, 32vw, 160px); margin-bottom: clamp(24px, 6vw, 36px); color: rgba(255,255,255,.42); }
  .message .emblem svg circle.r { stroke-width: 1.5px; } /* the small line-art fallback (no WebGL, Save-Data) stays legible */
  .message .motto { grid-row: 2; } .message .paras { grid-row: 3; }
}
@media (prefers-reduced-motion: reduce) {
  .message .orbit { animation: none; }
  .message .emblem .e3d, .message .emblem.live .orbit { transition: none; }
  .js [data-reveal="draw"] circle.r { stroke-dashoffset: 0; transition: none; }
  .js [data-reveal="draw"] circle.node { opacity: 1; transition: none; }
}

/* ---------- 3D | Photo: the part's real photographs on the stage, and a full-screen viewer ---------- */
/* the switch sits top-end with the stage's other controls (beside "Hide 3D" on the home page's phone layout) */
.p3d-top { position: absolute; inset-inline-end: 14px; top: 14px; z-index: 3; display: flex; align-items: center; gap: 8px; }
.p3d-mode { display: flex; border: 1px solid var(--ink); border-radius: 2px; background: rgba(255,255,255,.88); }
.p3d-mode[hidden] { display: none; }
.p3d-mode button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 0; background: transparent; font-size: 13px; line-height: 1; color: var(--ink); cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.p3d-mode button + button { border-inline-start: 1px solid var(--ink); }
.p3d-mode button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.p3d-mode button[aria-disabled="true"] { color: #9AA1A7; cursor: not-allowed; }
:root[lang="ar"] .p3d-mode button { font-size: 13.5px; padding: 0 11px; }
.p3d-note { max-width: calc(100% - 44px - 15em); }
/* phones: the stage is narrow, so its controls leave the picture. The part steps and 3D | Photo share one row along the
   bottom of the stage, on its own mist and without a rule, so the part and its dimension labels keep the whole frame
   above it (the frame ticks mark it). "Hide 3D" (home page) stays in the top corner; "Drag to turn" is left out (the
   section's lead says it). The canvas keeps its own aspect ratio: the row is added below it. */
@media (max-width: 760px) {
  .js .p3d-view { --bar: 48px; box-sizing: content-box; padding-bottom: var(--bar); }
  .js .ncom.has3d .p3d-view { max-height: calc(38svh - var(--bar)); }
  .js .p3d-canvas, .js .p3d-photo { bottom: var(--bar); }
  .js .p3d-ticks { bottom: calc(var(--bar) + 12px); }
  .js .p3d-load { top: calc((100% - var(--bar)) / 2); }
  .js .p3d.loading.init .p3d-load { bottom: calc(var(--bar) + 14px); }
  .p3d-step { inset-inline-start: 8px; bottom: 6px; }
  .p3d-top { display: contents; }
  .p3d-mode { position: absolute; inset-inline-end: 8px; bottom: 6px; z-index: 3; }
  .p3d-mode button { min-height: 34px; }
  .ncom.has3d .p3d-hide { position: absolute; inset-inline-end: 10px; top: 10px; z-index: 3; }
  .js .p3d-phctl { inset-inline-end: 10px; bottom: calc(var(--bar) + 10px); } /* on the photo, above the row */
  .p3d-hint { display: none; }
  .p3d-note { top: 14px; max-width: calc(100% - 28px); }
  .ncom.has3d .p3d-note { top: 58px; }
  .p3d-toggle { top: 14px; }
}
/* narrow phones (under 360 px): the steps and 3D | Photo share the row with 8 px or more between them (in Arabic the
   switch's words are longer, and the boxed count "11 / 11" is wide); the count keeps its 12 px each side */
@media (max-width: 359px) {
  .p3d-step { inset-inline-start: 6px; }
  .p3d-mode { inset-inline-end: 6px; }
  .p3d-step button { width: 32px; }
  .p3d-step .n { letter-spacing: .02em; }
  .p3d-mode button, :root[lang="ar"] .p3d-mode button { padding: 0 8px; }
}
/* the photo layer covers the 3D (which is set aside, so its render loop pauses); the frame keeps the photo's own
   aspect ratio: 'cover' fills the stage around a focus point, 'cutout' and 'contain' show the whole photo */
.p3d-photo { position: absolute; inset: 0; container-type: size; overflow: hidden; opacity: 0; transition: opacity .35s var(--ease); }
.p3d-photo[hidden] { display: none; }
.p3d.photo .p3d-photo { opacity: 1; }
.p3d.photo .p3d-hint, .p3d.photo .p3d-toggle, .p3d.photo.loading.init .p3d-load { display: none; }
.p3d.photo .p3d-load { z-index: 2; }
.ph { position: absolute; inset: 0; margin: 0; background: var(--bg, var(--mist)); cursor: zoom-in; transition: opacity .35s var(--ease); }
.ph.wait { opacity: 0; }
.ph figcaption { display: none; }
.ph-frame { position: absolute; --w: min(100cqw * var(--s), 100cqh * var(--s) * var(--a)); --h: calc(var(--w) / var(--a)); width: var(--w); height: var(--h); left: calc(50cqw - var(--w) / 2); top: calc(50cqh - var(--h) / 2); background: var(--bg, var(--mist)); }
.ph-cover .ph-frame { --w: max(100cqw, 100cqh * var(--a)); left: clamp(100cqw - var(--w), 50cqw - var(--w) * var(--fx), 0px); top: clamp(100cqh - var(--h), 50cqh - var(--h) * var(--fy), 0px); }
.ph-frame img { display: block; width: 100%; height: 100%; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
/* a cut-out's edges fade into the mist, so where the source photo crops the part or its shadow there is no hard line */
.ph-cutout .ph-frame, .pv .pv-frame.cut {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent), linear-gradient(to bottom, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent), linear-gradient(to bottom, transparent, #000 3%, #000 97%, transparent);
  mask-composite: intersect; }
/* a wide photo shown whole on the mist (photos3d.json ground "mist"): its top and bottom edges fade into it */
.ph-soft .ph-frame {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent); }
/* a part in a group shot: red corner ticks, as on the stage's drawing frame */
.ph-mark { position: absolute; pointer-events: none; --tk: linear-gradient(var(--red-bright), var(--red-bright));
  background: var(--tk) top left / 22px 2px no-repeat, var(--tk) top left / 2px 22px no-repeat,
    var(--tk) top right / 22px 2px no-repeat, var(--tk) top right / 2px 22px no-repeat,
    var(--tk) bottom left / 22px 2px no-repeat, var(--tk) bottom left / 2px 22px no-repeat,
    var(--tk) bottom right / 22px 2px no-repeat, var(--tk) bottom right / 2px 22px no-repeat;
  filter: drop-shadow(0 0 1px rgba(255,255,255,.7)); }
/* photo controls, bottom-end: dots when a part has more than one photo, and the full-screen button */
.p3d-phctl { position: absolute; inset-inline-end: 14px; bottom: 14px; z-index: 2; display: flex; align-items: center; gap: 6px; }
.p3d-phctl[hidden], .p3d-dots[hidden] { display: none; }
.p3d-dots { display: flex; align-items: center; height: 36px; padding: 0 4px; border: 1px solid var(--alloy); border-radius: 2px; background: rgba(255,255,255,.88); }
.p3d-dots button { display: grid; place-items: center; width: 26px; height: 34px; padding: 0; border: 0; background: none; cursor: pointer; }
.p3d-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ink-2); transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.p3d-dots button[aria-pressed="true"]::before { background: var(--red); border-color: var(--red); }
.p3d-dots button:hover::before { border-color: var(--ink); }
.p3d-open { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--alloy); border-radius: 2px; background: rgba(255,255,255,.88); color: var(--ink); cursor: pointer; }
.p3d-open:hover { border-color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .p3d-photo, .ph, .p3d-mode button { transition: none; } }
/* without JavaScript the stage is its still: no controls that would do nothing */
:root:not(.js) .p3d-step, :root:not(.js) .p3d-hide { display: none; }

/* the viewer: full screen, the photo on its own ground (mist for cut-outs, graphite for scenes) */
.pv { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: #0E1316; color: #fff; --pv-line: rgba(255,255,255,.3); --pv-fill: rgba(14,19,22,.62); }
.pv[data-tone="light"] { background: var(--mist); color: var(--ink); --pv-line: var(--alloy); --pv-fill: rgba(255,255,255,.88); }
.pv::backdrop { background: rgba(14,19,22,.6); }
html.pv-open { overflow: hidden; }
.pv:focus { outline: none; } /* focused itself only when opened by a tap or click (parts3d.js): no ring around the screen */
.pv-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; }
.pv-stage.drag { cursor: grabbing; }
.pv .pv-frame { position: absolute; left: 0; top: 0; transform-origin: 50% 50%; background: var(--bg, transparent); will-change: transform; }
.pv .pv-frame.anim { transition: transform .3s var(--ease); }
.pv .pv-frame img { display: block; width: 100%; height: 100%; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.pv-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--pv-line); border-radius: 2px; background: var(--pv-fill); color: inherit; cursor: pointer; }
.pv-btn:hover { border-color: currentColor; }
.pv-btn[aria-disabled="true"] { opacity: .4; cursor: default; }
.pv-top { position: absolute; z-index: 2; inset-inline: 0; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(12px, env(safe-area-inset-top)) 14px 0; pointer-events: none; }
.pv-top > * { pointer-events: auto; }
.pv-n { min-width: 4em; font-family: var(--font-num); font-size: 11px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.pv-step { position: absolute; z-index: 2; top: 50%; translate: 0 -50%; }
.pv-prev { inset-inline-start: 14px; }
.pv-next { inset-inline-end: 14px; }
.pv-step[hidden] { display: none; }
.pv-prev svg, :root[dir="rtl"] .pv-next svg { transform: scaleX(-1); }
:root[dir="rtl"] .pv-prev svg { transform: none; }
.pv-bar { position: absolute; inset-inline: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 28px 14px max(14px, env(safe-area-inset-bottom)); background: linear-gradient(rgba(14,19,22,0), rgba(14,19,22,.72)); pointer-events: none; }
.pv[data-tone="light"] .pv-bar { background: linear-gradient(rgba(238,241,243,0), rgba(238,241,243,.94)); }
.pv-bar > * { pointer-events: auto; }
.pv-cap { margin: 0; max-width: 62ch; font-size: 14px; line-height: 1.45; }
.pv-cap .ph-by { opacity: .78; }
.pv-zoom { flex: none; display: flex; align-items: center; gap: 6px; }
.pv-hint { margin: 0 8px 0 0; font-size: 12.5px; opacity: .78; transition: opacity .8s var(--ease); }
:root[dir="rtl"] .pv-hint { margin: 0 0 0 8px; }
.pv-hint.gone { opacity: 0; }
@media (max-width: 760px) {
  .pv-step { top: auto; bottom: max(14px, env(safe-area-inset-bottom)); translate: none; }
  .pv-bar { flex-direction: column; align-items: stretch; padding-bottom: calc(max(14px, env(safe-area-inset-bottom)) + 56px); }
  .pv-zoom { position: absolute; inset-inline-start: 50%; bottom: max(14px, env(safe-area-inset-bottom)); translate: -50% 0; }
  :root[dir="rtl"] .pv-zoom { translate: 50% 0; }
  .pv-hint { display: none; }
  .pv-cap { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { .pv .pv-frame.anim { transition: none; } .pv-hint { transition: none; } }

/* ---------- Full-screen 3D: the stage's live viewer moved into a modal over the whole page (and back on close), with the
   zoom and pan the stage leaves out. The drawing fills the screen down to a white bar like the stage's title block, whose
   ink rule frames its lower edge (the other edges are the screen's, so a zoomed part is never cut along an unmarked line).
   The bar holds the part steps at its start, the part's name and size line, and the zoom buttons at its end, as the stage
   has its steps bottom-start. Close sits top-end over the drawing, where the stage keeps 3D | Photo; a short hint over
   the drawing's foot fades after a few seconds. The dimension labels keep clear of both. ---------- */
/* the button: bottom-end of the drawing, where photo mode keeps its own full-screen button ("Drag to turn" moves inward);
   phones: above the row of controls, as the photo controls */
.p3d-full { position: absolute; inset-inline-end: 14px; bottom: 14px; z-index: 2; }
.p3d-full[hidden], .p3d.photo .p3d-full { display: none; }
@media (max-width: 760px) { .js .p3d-full { inset-inline-end: 10px; bottom: calc(var(--bar) + 10px); } }
.p3d-fs { height: 100dvh; }
.p3d-fs[open] { display: grid; grid-template: minmax(0, 1fr) auto / minmax(0, 1fr); touch-action: none; overscroll-behavior: contain; }
/* the drawing runs under a notched phone's side strips; its marks and controls stay inside them */
.p3d-fs-stage { position: relative; min-height: 0; -webkit-user-select: none; user-select: none;
  --s-top: max(12px, env(safe-area-inset-top)); --s-start: max(12px, env(safe-area-inset-left)); --s-end: max(12px, env(safe-area-inset-right)); }
:root[dir="rtl"] .p3d-fs-stage { --s-start: max(12px, env(safe-area-inset-right)); --s-end: max(12px, env(safe-area-inset-left)); }
.js .p3d-fs-stage .p3d-canvas { inset: 0; }
.js .p3d-fs-stage .p3d-ticks { inset-block: var(--s-top) 12px; inset-inline: var(--s-start) var(--s-end); }
.js .p3d-fs-stage .p3d-load { top: 50%; }
.p3d-fs-close { position: absolute; z-index: 3; top: var(--s-top); inset-inline-end: var(--s-end); }
.p3d-fs .p3d-fs-stage .p3d-toggle, .p3d-fs .p3d-fs-stage .p3d-note { top: calc(var(--s-top) + 10px); inset-inline-start: calc(var(--s-start) + 10px); }
.p3d-fs .p3d-fs-stage .p3d-note { max-width: min(36em, calc(100% - var(--s-start) - var(--s-end) - 76px)); }
.p3d-fs-hint { position: absolute; z-index: 2; left: 50%; bottom: 14px; translate: -50% 0; width: max-content; max-width: calc(100% - var(--s-start) - var(--s-end) - 20px);
  margin: 0; padding: 6px 10px; background: rgba(255,255,255,.82); border: 1px solid var(--alloy); font-size: 12.5px; line-height: 1.35; color: var(--ink-2); text-align: center;
  pointer-events: none; transition: opacity .8s var(--ease); }
.p3d-fs-hint.gone { opacity: 0; }
.p3d-fs-hint .t { display: none; }
@media (hover: none) and (pointer: coarse) { .p3d-fs-hint .m { display: none; } .p3d-fs-hint .t { display: inline; } }
.p3d-fs.loading .p3d-load { opacity: 1; visibility: visible; transition: opacity .3s var(--ease) .45s, visibility 0s .45s; animation: p3d-spin .8s linear infinite; }
.p3d-fs-stage.pulse .p3d-ticks::after { animation: p3d-tick .9s var(--ease); }
.p3d-fs-stage.pulse .p3d-note { animation: p3d-note .9s var(--ease); }
.p3d-fs-bar { display: flex; align-items: center; gap: 16px; padding: 12px max(14px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); background: var(--paper); border-top: 1px solid var(--ink); }
.p3d-fs-steps { flex: none; display: flex; align-items: center; gap: 2px; }
.p3d-fs-steps .pv-n { min-width: 4.4em; padding-inline: 6px; text-align: center; color: var(--ink-2); }
.p3d-fs-steps [data-p3d-fs-step="-1"] svg, :root[dir="rtl"] .p3d-fs-steps [data-p3d-fs-step="1"] svg { transform: scaleX(-1); }
:root[dir="rtl"] .p3d-fs-steps [data-p3d-fs-step="-1"] svg { transform: none; }
.p3d-fs-cap { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; max-width: 96ch; margin: 0; }
.p3d-fs-cap > * { text-wrap: pretty; }
.p3d-fs-zoom { flex: none; display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
/* phones: the name and size line take the bar's width, and the steps and zoom buttons share a row under the thumb */
@media (max-width: 760px) {
  .p3d-fs-bar { flex-wrap: wrap; row-gap: 10px; }
  .p3d-fs-cap { order: -1; flex-basis: 100%; max-width: none; }
}
/* a phone on its side: one row, the name and size line cut to a line each, so the drawing keeps most of the height */
@media (max-height: 500px) {
  .p3d-fs-bar { flex-wrap: nowrap; gap: 12px; padding-top: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .p3d-fs-cap { order: 0; flex-basis: auto; gap: 0; }
  .p3d-fs-cap > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .p3d-fs-hint { bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { .p3d-fs.loading .p3d-load { animation: p3d-breathe 1.6s ease-in-out infinite; } .p3d-fs-hint { transition: none; } }

/* ---------- The document viewer (the company profile on every page; JIULI's documents on the JIULI page): the PDF's
   pages in one column on the photo viewer's dark ground, white sheets as in a PDF reader, under a bar with the title at
   the start, the page count between previous / next and zoom in the middle, Download PDF and Close at the end. Phones:
   the count and zoom move to a bar under the thumb; Download and Close stay on top. A phone held sideways is too short
   for two bars, so it keeps one row, as the 3D viewer does. Only the column scrolls: one finger scrolls it as any page,
   two fingers zoom it (site.js), so the browser never zooms the screen. The insets keep the bars clear of a notch and
   the home bar; the pages run edge to edge. ---------- */
.pf { height: 100dvh; background: var(--graphite); --pf-l: max(14px, env(safe-area-inset-left)); --pf-r: max(14px, env(safe-area-inset-right)); }
/* the two outer columns share the width equally, so the tools sit in the middle; the end column (plain 1fr) never gets
   narrower than Download and Close, so where the bar is tight the title gives way. (Not minmax(max-content, 1fr): the
   page column spans that track too and would push its full width into it.) */
.pf[open] { display: grid; grid-template: "title tools end" auto "scroll scroll scroll" minmax(0, 1fr) / minmax(0, 1fr) auto 1fr;
  align-items: center; column-gap: 12px; padding: env(safe-area-inset-top) var(--pf-r) env(safe-area-inset-bottom) var(--pf-l); touch-action: none; overscroll-behavior: contain; }
.pf > :not(.pf-scroll) { margin-block: 10px; }
.pf-title { grid-area: title; min-width: 0; max-width: none; margin: 0; font-size: 14px; line-height: 1.3; color: var(--on-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-tools { grid-area: tools; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pf-steps, .pf-zoom { display: flex; align-items: center; gap: 4px; }
.pf-steps .pv-n { min-width: 5.4em; text-align: center; color: var(--on-dark); }
/* the column runs top to bottom, so the steps point up and down, in both languages */
.pf-steps [data-pf-step="-1"] svg { transform: rotate(180deg); }
.pf-end { grid-area: end; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.pf-dl { min-height: 44px; padding: 0 16px; gap: 8px; font-size: 14px; }
/* (the reset's max-width: 100% would let the icon count as 0 wide when the bar works out the end column's least width) */
.pf-dl svg { flex: none; max-width: none; }
.pf-dl .pf-size { font-weight: 400; font-size: 12.5px; opacity: .8; }
.pf-scroll { grid-area: scroll; height: 100%; min-height: 0; margin-left: calc(-1 * var(--pf-l)); margin-right: calc(-1 * var(--pf-r)); overflow: auto;
  overscroll-behavior: contain; touch-action: pan-x pan-y; background: #0E1316; border-top: 1px solid rgba(255,255,255,.1); }
.pf-scroll:focus-visible { outline-offset: -3px; }
/* --pw (page width), --pad and --gap are set by site.js for the zoom; a page's height follows the PDF's own proportions.
   A page of another size or shape than the column's (an A4 cover among Calder's A3 spreads) has its own: --page-r from the
   build, its height for its width, and --page-k from site.js, its width beside the column's usual page. Each page's picture
   is fitted to its box, so a page that differs from the column's shape by less than the build tells apart (0.5 %) is
   never stretched. */
.pf-pages { display: flex; flex-direction: column; align-items: center; gap: var(--gap, 16px); width: max-content; min-width: 100%; padding: var(--pad, 20px); }
.pf-page { flex: none; width: calc(var(--pw, 880px) * var(--page-k, 1)); height: calc(var(--pw, 880px) * var(--page-k, 1) * var(--page-r, var(--ratio))); background: #fff; }
.pf-page img { display: block; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .3s var(--ease); -webkit-user-drag: none; }
.pf-page img.in { opacity: 1; }
@media (max-width: 760px) {
  .pf-title { display: none; }
}
@media (max-width: 760px) and (min-height: 501px) {
  .pf[open] { grid-template: "end" auto "scroll" minmax(0, 1fr) "tools" auto / minmax(0, 1fr); }
  .pf-end { justify-content: space-between; }
  .pf-scroll { border-bottom: 1px solid rgba(255,255,255,.1); }
}
@media (max-width: 760px) and (max-height: 500px) {
  .pf[open] { grid-template: "tools end" auto "scroll scroll" minmax(0, 1fr) / minmax(0, 1fr) auto; }
  .pf-tools { justify-self: start; }
}
@media (max-width: 380px) { .pf-dl .pf-size { display: none; } }
@media (prefers-reduced-motion: reduce) { .pf-page img { transition: none; } }
