/* Self-hosted fonts: Archivo, IBM Plex Mono, IBM Plex Sans Arabic (SIL Open Font License). */
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/assets/fonts/archivo-300-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-arabic-400-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-arabic-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-arabic-600-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-arabic-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Al Hoot Alazraq: Ships & Marine Services
   Paper, ink and the logo's cobalt. Archivo for everything, IBM Plex Sans Arabic for Arabic.
   ========================================================================== */

:root {
  --paper: #f2f0eb;
  --paper-2: #e9e6df;
  --paper-3: #dedad1;
  --ink: #101317;
  --ink-2: #2a2f36;
  --muted: #5d636a;
  --rule: rgba(16, 19, 23, .13);
  --rule-strong: rgba(16, 19, 23, .3);
  --cobalt: #1556a4;
  --cobalt-deep: #0d3c78;
  --cobalt-light: #8db0e0;

  --d-text: #eceae4;
  --d-muted: rgba(236, 234, 228, .66);
  --d-rule: rgba(236, 234, 228, .16);

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;

  --ease: cubic-bezier(.2, .75, .15, 1);
  --gutter: max(clamp(16px, 4vw, 64px), calc(env(safe-area-inset-left) + 12px), calc(env(safe-area-inset-right) + 12px));
  --edge: max(var(--gutter), calc((100vw - 1440px) / 2));
  --section: clamp(72px, 8.5vw, 136px);
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--paper); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
@supports not (overflow: clip) { body { overflow-x: hidden; } }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--cobalt); color: var(--paper); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: min(1440px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }
.nw { white-space: nowrap; }

/* ---------- Type ---------- */
.display {
  font-family: var(--sans);
  font-weight: 500;
  font-stretch: 92%;
  font-size: clamp(42px, 5.8vw, 104px);
  line-height: .95;
  letter-spacing: -.038em;
}
.lede { font-size: clamp(16.5px, 1.25vw, 19.5px); line-height: 1.6; max-width: 540px; color: var(--muted); }

/* split helpers */
.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line > span { display: inline-block; will-change: transform; }

.link-arrow { display: inline-flex; gap: 10px; align-items: center; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 4px; white-space: nowrap; transition: color .3s, border-color .3s, gap .4s var(--ease); }
.link-arrow:hover { color: var(--cobalt); gap: 16px; }

.sec-head { display: grid; gap: 24px; margin-bottom: clamp(44px, 6vw, 88px); }
.sec-head--center { justify-items: center; text-align: center; }
.sec-head--center .lede { max-width: 560px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 52px; padding: 0 22px; border-radius: 2px;
  font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: .005em; white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.arrow { display: inline-block; transition: transform .45s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--cobalt); }
.btn-line { border: 1px solid var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: var(--cobalt); color: var(--paper); }
.btn-line-light { border: 1px solid rgba(236, 234, 228, .45); color: var(--d-text); }
.btn-line-light:hover { background: var(--d-text); color: var(--ink); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Plates (photographs) ---------- */
.plate { position: relative; }
.plate-clip { position: relative; overflow: hidden; background: var(--paper-3); }
.plate-clip img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 500;
  background: rgba(242, 240, 235, .92);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rule);
  transition: transform .55s var(--ease);
}
.site-header.is-hidden { transform: translateY(-100%); }
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none; }
.read-progress i { display: block; height: 100%; background: var(--cobalt); transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .read-progress i { transform-origin: right; }
.header-inner { height: var(--header-h); width: min(1440px, 100% - 2 * var(--gutter)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: none; transition: color .3s; }
.brand:hover .brand-mark { color: var(--cobalt); }
.brand-text { display: grid; line-height: 1.15; }
.brand-name { font-size: 17px; font-weight: 640; font-stretch: 94%; letter-spacing: -.02em; }
.brand-sub { font-size: 12.5px; color: var(--muted); }
.nav { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.nav a { position: relative; font-size: 15px; font-weight: 500; padding-block: 6px; transition: color .3s; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover, .nav a.is-current { color: var(--cobalt); }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
[dir="rtl"] .nav a::after { transform-origin: left; }
[dir="rtl"] .nav a:hover::after, [dir="rtl"] .nav a.is-current::after { transform-origin: right; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--rule-strong); border-radius: 2px; font-size: 13px; font-weight: 500; transition: border-color .3s; }
.lang-toggle:hover { border-color: var(--ink); }
.lang-toggle > span { color: var(--muted); }
.lang-ar { font-family: var(--ar); font-size: 13.5px; }
/* English pages: the one Arabic word in the switch uses the device's Arabic font, so no Arabic web font loads up front */
html[lang="en"] .lang-ar { font-family: "Segoe UI", Tahoma, "Geeza Pro", system-ui, sans-serif; }
html[lang="en"] .lang-en, html[lang="ar"] .lang-ar { color: var(--ink); }
.burger { display: none; position: relative; width: 40px; height: 40px; border: 1px solid var(--rule-strong); border-radius: 2px; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }
.menu-open .burger span:first-child { top: 19px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 19px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 450; visibility: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 32px) var(--gutter) 32px;
  background: var(--paper);
  clip-path: inset(0 0 100% 0); overflow-y: auto; overscroll-behavior: contain;
  transition: clip-path .7s var(--ease), visibility 0s linear .7s;
}
.menu-open .menu { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .7s var(--ease), visibility 0s; }
.menu-links { display: grid; }
.menu-links a { padding-block: 10px; border-bottom: 1px solid var(--rule); font-size: clamp(34px, 8vw, 56px); font-weight: 500; font-stretch: 92%; letter-spacing: -.035em; line-height: 1.1; opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .7s var(--ease), color .3s; }
.menu-links a:hover { color: var(--cobalt); }
.menu-open .menu-links a { opacity: 1; transform: none; }
.menu-open .menu-links a:nth-child(2) { transition-delay: .05s; }
.menu-open .menu-links a:nth-child(3) { transition-delay: .1s; }
.menu-open .menu-links a:nth-child(4) { transition-delay: .15s; }
.menu-open .menu-links a:nth-child(5) { transition-delay: .2s; }
.menu-foot { display: grid; gap: 6px; color: var(--muted); font-size: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(28px, 6vh, 76px)); }
.hero-h1 { font-weight: inherit; }
.hero-title {
  display: block;
  font-size: clamp(60px, min(12.6vw, 21vh), 232px); font-weight: 500; font-stretch: 86%;
  line-height: .84; letter-spacing: -.052em; word-spacing: .08em;
}
.hero-title .line:nth-child(2) { padding-inline-start: calc(100% / 12 * 3); }
.hero-sub {
  display: block; margin-top: clamp(22px, 4vh, 44px); max-width: 24ch;
  font-size: clamp(22px, 2.3vw, 38px); font-weight: 450; font-stretch: 95%; line-height: 1.12; letter-spacing: -.022em;
}
.hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 48px; margin-top: clamp(14px, 2.4vh, 26px); }
.hero-lede { max-width: 440px; font-size: clamp(16.5px, 1.2vw, 18.5px); color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-media { position: relative; margin-top: clamp(32px, 5.5vh, 64px); }
.hero-clip {
  --inset: max(var(--gutter), calc((100% - 1440px) / 2));
  height: min(88vh, 56vw); height: min(88svh, 56vw); overflow: hidden; background: var(--paper-3);
  clip-path: inset(0 var(--inset) 0 var(--inset));
  will-change: clip-path;
}
.hero-clip img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%; transform: scale(1.1); will-change: transform; }

/* grid children never force horizontal overflow */
[class*="-grid"] > *, [class*="-row"] > *, .svc-layout > *, .sec-head > * { min-width: 0; }

/* ---------- About ---------- */
.about { padding-block: var(--section); }
.about-statement { max-width: 26ch; font-size: clamp(30px, 4.1vw, 68px); font-weight: 450; font-stretch: 94%; line-height: 1.06; letter-spacing: -.032em; }
.about-row { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(36px, 6vw, 110px); margin-top: clamp(48px, 7vw, 112px); align-items: start; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 3vw, 44px) clamp(20px, 3vw, 48px); }
.facts > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding-top: 18px; border-top: 1px solid var(--ink); }
.facts dd { font-size: clamp(30px, 3.4vw, 54px); font-weight: 500; font-stretch: 90%; letter-spacing: -.04em; line-height: 1; }
.facts dt { font-size: 15px; color: var(--muted); }
.about-side { display: grid; gap: 18px; color: var(--muted); font-size: 17px; }

/* ---------- Services ---------- */
.services { padding-bottom: var(--section); }
.anatomy { margin: 0 0 clamp(80px, 10vw, 150px); }
.ana-canvas {
  position: relative; border: 1px solid var(--rule);
  background-color: #f5f3ee;
  background-image:
    linear-gradient(rgba(21, 86, 164, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 86, 164, .07) 1px, transparent 1px),
    linear-gradient(rgba(21, 86, 164, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 86, 164, .035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}
.ana-drawing { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: contain; }
.ana-pins { position: absolute; inset: 0; }
.ana-pin { position: absolute; left: var(--x); top: var(--y); width: 34px; height: 34px; transform: translate(-50%, -50%); }
[dir="rtl"] .ana-pin { left: auto; right: calc(100% - var(--x)); transform: translate(50%, -50%); }
.ana-pin span {
  position: relative; width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--cobalt); color: var(--cobalt);
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background-color .3s, color .3s, box-shadow .4s var(--ease);
}
.ana-pin span::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid var(--cobalt); opacity: 0; transform: scale(.7); transition: opacity .4s, transform .5s var(--ease); }
.ana-pin:hover span, .ana-pin.is-on span { background: var(--cobalt); color: #fff; }
.ana-pin.is-on span::after { opacity: .5; transform: scale(1); }
.ana-tip {
  position: absolute; z-index: 3; left: 0; top: 0; pointer-events: none;
  padding: 8px 13px; background: var(--ink); color: var(--paper); white-space: nowrap; font-size: 14px; font-weight: 500;
  opacity: 0; transform: translate(-50%, calc(-100% - 26px)); transition: opacity .25s;
}
.ana-tip.is-visible { opacity: 1; }
.ana-tip b { color: var(--cobalt-light); font-weight: 600; margin-inline-end: 8px; font-variant-numeric: tabular-nums; }
.ana-legend { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 24px; margin-top: 28px; }
.ana-legend li { display: flex; gap: 12px; align-items: baseline; padding-block: 12px; border-bottom: 1px solid var(--rule); cursor: pointer; font-size: 15px; font-weight: 500; transition: color .25s; }
.ana-legend b { color: var(--cobalt); font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.ana-legend li:hover, .ana-legend li.is-on { color: var(--cobalt); }

.svc-layout { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 120px); align-items: start; }
.svc-stage { position: sticky; top: calc(var(--header-h) + 28px); }
.svc-frame { position: relative; height: calc(100vh - var(--header-h) - 80px); height: calc(100svh - var(--header-h) - 80px); max-height: 800px; overflow: hidden; background: var(--paper-3); }
.svc-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(100% 0 0 0); transform: scale(1.12); z-index: 1;
  transition: clip-path 1s cubic-bezier(.7, 0, .2, 1), transform 1.5s var(--ease);
}
.svc-frame img.is-prev { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 2; transition: none; }
.svc-frame img.is-active { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 3; }
.svc { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; padding-block: clamp(26px, 3vw, 40px); border-top: 1px solid var(--rule); }
.svc:last-child { border-bottom: 1px solid var(--rule); }
.svc-num { padding-top: .8em; color: var(--muted); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; transition: color .4s; }
.svc-title { font-size: clamp(28px, 2.8vw, 46px); font-weight: 500; font-stretch: 92%; line-height: 1.02; letter-spacing: -.03em; color: var(--muted); transition: color .5s var(--ease); }
.svc-desc { margin-top: 12px; max-width: 540px; color: var(--muted); font-size: 17px; }
.svc.is-active .svc-num { color: var(--cobalt); }
.svc.is-active .svc-title { color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; margin-top: 14px; color: var(--ink-2); font-size: 14.5px; }
.tags span + span::before { content: "·"; color: var(--muted); padding-inline: 9px; }
.svc-thumb { display: none; }
.svc-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 15px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 3px; transition: color .3s, gap .4s var(--ease); }
.svc-link:hover { color: var(--cobalt); gap: 14px; }

/* ---------- Waterline ---------- */
.waterline { position: relative; background: var(--ink); color: var(--d-text); }
.wl-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.wl-media { position: absolute; inset: 0; overflow: hidden; clip-path: inset(10% 12% 10% 12%); will-change: clip-path; }
.wl-img { position: absolute; left: 50%; top: 0; width: max(100%, 128vh); transform: translateX(-50%); will-change: transform; }
.wl-img img { width: 100%; height: auto; }
.wl-mark { position: absolute; left: 0; right: 0; top: 50%; height: 1px; transform: translateY(-50%); }
.wl-mark i { display: block; height: 1px; background: repeating-linear-gradient(90deg, rgba(236, 234, 228, .7) 0 8px, transparent 8px 14px); }
.wl-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(16, 19, 23, .74) 0%, rgba(16, 19, 23, .22) 48%, rgba(16, 19, 23, 0) 68%); }
[dir="rtl"] .wl-shade { background: linear-gradient(270deg, rgba(16, 19, 23, .74) 0%, rgba(16, 19, 23, .22) 48%, rgba(16, 19, 23, 0) 68%); }
.wl-shade--below, [dir="rtl"] .wl-shade--below { opacity: 0; background: linear-gradient(270deg, rgba(10, 22, 30, .78) 0%, rgba(10, 22, 30, .3) 44%, rgba(10, 22, 30, 0) 66%); }
[dir="rtl"] .wl-shade--below { background: linear-gradient(90deg, rgba(10, 22, 30, .78) 0%, rgba(10, 22, 30, .3) 44%, rgba(10, 22, 30, 0) 66%); }
.wl-copy { position: absolute; z-index: 3; inset-inline-start: var(--gutter); top: 0; bottom: 0; width: min(580px, 100% - 2 * var(--gutter)); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 26px; pointer-events: none; }
.wl-below { inset-inline-start: auto; inset-inline-end: calc(var(--gutter) + 150px); width: min(520px, 100% - 2 * var(--gutter)); opacity: 0; }
.wl-copy .display { font-size: clamp(42px, 5.2vw, 92px); }
.wl-list { display: grid; border-top: 1px solid var(--d-rule); width: 100%; max-width: 440px; }
.wl-list li { padding-block: 11px; border-bottom: 1px solid var(--d-rule); font-size: clamp(15.5px, 1.1vw, 17.5px); }
.wl-gauge { position: absolute; z-index: 3; inset-inline-end: var(--gutter); top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 8px; text-align: end; }
.wl-gauge small { font-size: 13.5px; color: var(--d-muted); }
.wl-down { display: none; }
.wl-gauge.is-below .wl-up { display: none; }
.wl-gauge.is-below .wl-down { display: inline; }
.wl-depth { font-weight: 400; font-stretch: 90%; font-size: clamp(28px, 2.6vw, 42px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.wl-ruler {
  position: relative; width: 26px; height: 34vh; margin-top: 12px;
  background:
    repeating-linear-gradient(180deg, rgba(236, 234, 228, .5) 0 1px, transparent 1px 12px) right / 10px 100% no-repeat,
    repeating-linear-gradient(180deg, rgba(236, 234, 228, .9) 0 1px, transparent 1px 60px) right / 22px 100% no-repeat;
}
.wl-needle { position: absolute; right: 0; top: 0; width: 36px; height: 2px; background: var(--cobalt-light); }
[dir="rtl"] .wl-ruler { background-position: left, left; }
[dir="rtl"] .wl-needle { right: auto; left: 0; }

/* ---------- Boat building: full-bleed photograph, title set over it ---------- */
.build { background: var(--paper-2); padding-bottom: var(--section); }
.build-hero { position: relative; height: min(94vh, 64vw); min-height: 520px; overflow: hidden; background: var(--ink); color: var(--d-text); }
.build-media { position: absolute; inset: 0; }
.build-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; transform: scale(1.08); will-change: transform; }
.build-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(16, 19, 23, 0) 30%, rgba(16, 19, 23, .5) 62%, rgba(16, 19, 23, .86) 100%), linear-gradient(90deg, rgba(16, 19, 23, .35) 0%, rgba(16, 19, 23, 0) 55%); }
.build-copy { position: absolute; z-index: 1; left: 0; right: 0; bottom: clamp(32px, 6vw, 84px); display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 24px 64px; }
.build-copy .lede { color: rgba(236, 234, 228, .86); justify-self: end; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(20px, 2.4vw, 40px); padding-top: clamp(56px, 7vw, 104px); }
.step { padding-top: 18px; border-top: 1px solid var(--ink); }
.step-num { display: block; font-size: clamp(44px, 4.4vw, 72px); font-weight: 300; font-stretch: 88%; line-height: .9; letter-spacing: -.04em; color: var(--cobalt); font-variant-numeric: tabular-nums; }
.step h3 { font-size: clamp(22px, 1.9vw, 30px); font-weight: 500; font-stretch: 92%; letter-spacing: -.025em; margin: 22px 0 8px; line-height: 1.1; }
.step p { font-size: 15.5px; color: var(--muted); }

/* ---------- Selected work: a sideways strip ---------- */
.work { padding-block: var(--section); overflow: hidden; }
.work-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(32px, 4.4vw, 60px); }
.work-nav { display: flex; align-items: center; gap: 10px; }
.work-nav .link-arrow { margin-inline-start: 18px; }
.strip-btn, .v-btn { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid var(--rule-strong); border-radius: 50%; font-size: 17px; transition: background-color .3s, color .3s, border-color .3s, opacity .3s; }
.strip-btn:hover, .v-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.strip-btn:disabled { opacity: .3; pointer-events: none; }
[dir="rtl"] .strip-btn span, [dir="rtl"] .v-btn span { display: inline-block; transform: scaleX(-1); }
.strip {
  --h: clamp(320px, 64vh, 660px);
  display: flex; gap: clamp(14px, 1.6vw, 24px); align-items: flex-start;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: var(--edge); scroll-padding-inline: var(--edge);
}
.strip::-webkit-scrollbar { display: none; }
.strip.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.strip.is-dragging .wk-open { pointer-events: none; }
.strip .wk { flex: none; scroll-snap-align: start; }
.strip .wk-open { height: var(--h); }
.strip .wk--p .wk-open { width: calc(var(--h) * .8); }
.strip .wk--l .wk-open { width: min(calc(var(--h) * 1.5), 86vw); }
.strip .wk-open img { width: 100%; height: 100%; object-fit: cover; }
.strip .wk figcaption { margin-top: 14px; max-width: 34ch; font-size: 15px; color: var(--ink-2); }
.strip-end { flex: none; align-self: stretch; display: grid; place-content: center; gap: 10px; width: clamp(220px, 22vw, 320px); height: var(--h); padding: 24px; border: 1px solid var(--rule-strong); font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; text-align: center; transition: background-color .35s var(--ease), color .35s var(--ease); scroll-snap-align: end; }
.strip-end:hover { background: var(--ink); color: var(--paper); }
.strip::after { content: ""; flex: none; width: 1px; }

.wk-open { display: block; width: 100%; overflow: hidden; background: var(--paper-3); cursor: zoom-in; }
.wk-open img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.wk-open:hover img { transform: scale(1.035); }

/* full work page */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 4vw, 48px); }
.filters button { height: 40px; padding: 0 16px; border: 1px solid var(--rule-strong); border-radius: 999px; font-size: 14.5px; font-weight: 500; transition: background-color .3s, color .3s, border-color .3s; }
.filters button:hover { border-color: var(--ink); }
.filters button.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.work-grid { columns: 3; column-gap: clamp(16px, 2vw, 28px); transition: opacity .22s ease; }
.work-grid.is-filtering { opacity: 0; }
.work-grid .wk { break-inside: avoid; margin-bottom: clamp(28px, 3vw, 44px); }
.work-grid .wk.is-hidden { display: none; }
.work-grid .wk figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.work-grid .wk figcaption small { color: var(--muted); font-size: 13.5px; white-space: nowrap; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 800; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; background: rgba(16, 19, 23, .96); color: var(--d-text); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease), visibility 0s; }
.lb-figure { display: grid; justify-items: center; gap: 14px; padding: 48px 0; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; }
.lb-figure figcaption { color: var(--d-muted); font-size: 15px; }
.lb-close { position: absolute; top: 18px; inset-inline-end: 22px; width: 44px; height: 44px; font-size: 18px; color: var(--d-text); }
.lb-nav { height: 64px; font-size: 22px; color: var(--d-text); opacity: .7; transition: opacity .3s; }
.lb-nav:hover, .lb-close:hover { opacity: 1; color: var(--cobalt-light); }
[dir="rtl"] .lb-nav span { display: inline-block; transform: scaleX(-1); }

/* ---------- Testimonials: one quote, centre stage ---------- */
.voices { padding-block: var(--section); background: var(--paper-2); }
.voices-inner { max-width: 1120px; display: grid; justify-items: center; text-align: center; }
.voices-inner::before { content: "“"; display: block; height: .5em; margin-bottom: clamp(18px, 2.4vw, 30px); font-size: clamp(88px, 9vw, 150px); font-weight: 500; line-height: .9; color: var(--cobalt); }
[dir="rtl"] .voices-inner::before { content: "”"; }
.v-stage { display: grid; width: 100%; }
.v-quote { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .6s var(--ease), transform .9s var(--ease), visibility 0s .6s; }
.v-quote.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .7s var(--ease) .15s, transform .9s var(--ease) .15s, visibility 0s; }
.v-text { font-size: clamp(28px, 3.5vw, 56px); font-weight: 400; font-stretch: 95%; line-height: 1.12; letter-spacing: -.026em; text-wrap: balance; }
.v-quote footer { display: grid; gap: 4px; justify-items: center; margin-top: clamp(26px, 3vw, 40px); }
.v-who { font-size: 16.5px; font-weight: 500; }
.v-svc { font-size: 15px; color: var(--cobalt); }
.v-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(8px, 1.2vw, 16px); margin-top: clamp(36px, 4.4vw, 60px); }
.v-count { min-width: 48px; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.v-count b { color: var(--ink); font-weight: 600; }
.v-dots { display: flex; align-items: center; justify-content: center; gap: 2px; }
.v-dot { width: 24px; height: 32px; display: grid; place-items: center; border-radius: 2px; }
.v-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); transition: background-color .3s, transform .3s; }
.v-dot.is-active::before { background: var(--cobalt); transform: scale(1.5); }
.v-dot:hover::before { background: var(--cobalt); }
.v-dot:focus-visible, .v-btn:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.v-toggle { width: 44px; height: 44px; }
.v-toggle .v-play-icon, .v-toggle.is-paused .v-pause-icon { display: none; }
.v-toggle.is-paused .v-play-icon { display: block; }
[dir="rtl"] .v-prev span, [dir="rtl"] .v-next span { transform: scaleX(-1); }
@media (max-width: 640px) { .v-dots { order: 1; flex-basis: 100%; } }
.v-progress { width: clamp(120px, 14vw, 200px); height: 2px; background: var(--rule-strong); overflow: hidden; }
.v-progress i { display: block; height: 100%; background: var(--cobalt); transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .v-progress i { transform-origin: right; }

/* ---------- Yard: full-bleed photograph with the details over it ---------- */
.yard { position: relative; display: grid; align-items: end; min-height: min(100vh, 940px); min-height: min(100svh, 940px); overflow: hidden; background: var(--ink); color: var(--d-text); }
.yard-media { position: absolute; inset: 0; }
.yard-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.06); will-change: transform; }
.yard-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 19, 23, .9) 0%, rgba(16, 19, 23, .74) 34%, rgba(16, 19, 23, .12) 68%, rgba(16, 19, 23, 0) 100%), linear-gradient(0deg, rgba(16, 19, 23, .5) 0%, rgba(16, 19, 23, 0) 40%); }
[dir="rtl"] .yard-media::after { background: linear-gradient(270deg, rgba(16, 19, 23, .9) 0%, rgba(16, 19, 23, .74) 34%, rgba(16, 19, 23, .12) 68%, rgba(16, 19, 23, 0) 100%), linear-gradient(0deg, rgba(16, 19, 23, .5) 0%, rgba(16, 19, 23, 0) 40%); }
.yard-inner { position: relative; z-index: 1; padding-block: var(--section); }
.yard-copy { display: grid; gap: 26px; max-width: 560px; }
.yard .lede { color: var(--d-muted); }
.datasheet { display: grid; border-top: 1px solid var(--rule-strong); }
.datasheet > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--rule); align-items: baseline; }
.datasheet dt { font-size: 14px; color: var(--muted); }
.datasheet dd { font-size: 17px; }
.datasheet dd a { border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; }
.datasheet dd a:hover { color: var(--cobalt); border-color: currentColor; }
.datasheet .sep { color: var(--muted); padding-inline-end: 6px; }
.yard .datasheet { border-top-color: rgba(236, 234, 228, .4); }
.yard .datasheet > div { border-bottom-color: var(--d-rule); }
.yard .datasheet dt { color: var(--d-muted); }
.yard-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- FAQ: one reading column ---------- */
.faq { padding-block: var(--section); }
.faq-grid { display: grid; gap: clamp(32px, 4vw, 56px); max-width: 940px; margin-inline: auto; }
.faq-grid .display { font-size: clamp(40px, 4.8vw, 84px); }
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 24px; cursor: pointer; list-style: none; font-size: clamp(19px, 1.6vw, 24px); font-weight: 500; font-stretch: 95%; letter-spacing: -.015em; line-height: 1.25; transition: color .3s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--cobalt); }
.faq-icon { position: relative; flex: none; width: 14px; height: 14px; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-a { padding-bottom: 26px; max-width: 700px; color: var(--muted); font-size: 17px; }

/* ---------- Contact ---------- */
.contact { padding-block: var(--section); border-top: 1px solid var(--rule); }
.contact-title { font-size: clamp(52px, 8.6vw, 156px); line-height: .9; letter-spacing: -.045em; margin-bottom: clamp(40px, 5.6vw, 84px); }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.contact-copy { display: grid; gap: 30px; }
.contact-list dd { font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; letter-spacing: -.01em; }
.form { position: relative; background: var(--paper-2); padding: clamp(22px, 3vw, 44px); }
.form-fields { display: grid; gap: 24px; transition: opacity .4s var(--ease); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > span, .chips legend { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 4px;
  font-size: 17px; color: var(--ink); transition: border-color .3s; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 80px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(16, 19, 23, .34); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--cobalt); outline-offset: 2px; border-color: var(--cobalt); }
.field.is-invalid input { border-color: #b3261e; }
.field--select { position: relative; }
.field--select:not(.is-enhanced)::after { content: ""; position: absolute; inset-inline-end: 16px; bottom: 20px; width: 7px; height: 7px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.vessel-trigger { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 12px 14px; text-align: start; font-size: 17px; color: var(--ink); background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 4px; cursor: pointer; }
.vessel-trigger::after { content: ""; flex-shrink: 0; width: 7px; height: 7px; margin-inline-end: 2px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.vessel-trigger[aria-expanded="true"]::after { transform: rotate(225deg); }
.vessel-trigger:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.vessel-options { position: absolute; z-index: 5; inset-inline: 0; top: calc(100% + 6px); padding: 6px; background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 6px; box-shadow: 0 12px 30px rgba(16,19,23,.12); }
.vessel-options[hidden] { display: none; }
.vessel-options button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: start; padding: 11px 10px; font-size: 16px; border-radius: 3px; cursor: pointer; }
.vessel-options button:hover, .vessel-options .is-active { background: var(--paper-2); }
.vessel-options [aria-selected="true"] { color: var(--cobalt); }
.vessel-options [aria-selected="true"]::after { content: "✓"; }
.chips { border: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips legend { margin-bottom: 10px; float: left; width: 100%; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips input:checked + span::before { content: "✓"; }
.chips span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid var(--rule-strong); border-radius: 999px; font-size: 14px; transition: background-color .25s, color .25s, border-color .25s; }
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.form-error { display: none; color: #b3261e; font-size: 14.5px; }
.form.has-error .form-error { display: block; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-verification:empty { display: none; }
.form.is-submitting button[type="submit"] { opacity: .65; cursor: wait; }
.form-success:focus { outline: none; }
.form-fallback { display: none; font-size: 14.5px; }
.form-fallback a { text-decoration: underline; text-underline-offset: 4px; }
.form.has-delivery-error .form-fallback { display: block; }
.form-success { position: absolute; inset: 0; display: grid; align-content: center; gap: 14px; padding: clamp(24px, 4vw, 56px); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; }
.form-success h3 { font-size: clamp(30px, 3vw, 46px); font-weight: 500; font-stretch: 92%; letter-spacing: -.03em; line-height: 1.05; }
.form-success p { color: var(--muted); max-width: 420px; }
.form.is-sent .form-fields { opacity: 0; pointer-events: none; }
.form.is-sent .form-success { opacity: 1; visibility: visible; transition: opacity .5s var(--ease) .15s, visibility 0s; }

/* ---------- Inner pages ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: clamp(24px, 3vw, 40px); }
.crumbs a:hover { color: var(--cobalt); }
.crumbs [aria-current] { color: var(--ink); }
.page-hero, .sp-hero { padding-top: calc(var(--header-h) + clamp(24px, 4vh, 44px)); padding-bottom: var(--section); }
.page-hero .display { font-size: clamp(52px, 8vw, 140px); }
.page-hero .lede { margin-top: clamp(20px, 2.4vw, 32px); }
.page-hero .filters { margin-top: clamp(32px, 4vw, 56px); }

/* service pages */
.sp-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(36px, 5vw, 96px); align-items: start; }
.sp-copy { display: grid; gap: 26px; align-content: start; }
.sp-copy h1 { font-size: clamp(40px, 5vw, 88px); text-wrap: balance; }
.sp-plate .plate-clip { aspect-ratio: 4 / 5; max-height: 78vh; }
.sp-section { padding-bottom: var(--section); }
.sp-article { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(36px, 6vw, 120px); align-items: start; }
.sp-h2 { font-size: clamp(30px, 3vw, 50px); font-weight: 500; font-stretch: 92%; letter-spacing: -.03em; line-height: 1.04; margin: 0 0 clamp(24px, 3vw, 40px); max-width: 22ch; text-wrap: balance; }
.prose { display: grid; gap: 20px; font-size: clamp(18px, 1.4vw, 21px); line-height: 1.6; color: var(--ink-2); }
.prose .answer { color: var(--ink); font-weight: 500; }
.hub-prose { max-width: 68ch; }
.facts-card { position: sticky; top: calc(var(--header-h) + 28px); padding: clamp(22px, 2.4vw, 32px); background: var(--paper-2); }
.facts-card h2 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 14px; }
.facts-card .datasheet > div { grid-template-columns: 1fr; gap: 2px; }
.facts-card .datasheet dd { font-size: 16px; }
.includes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(20px, 2.4vw, 40px); }
.includes li { padding: 22px 0 30px; border-top: 1px solid var(--ink); }
.includes h3 { margin-bottom: 8px; font-size: clamp(21px, 1.7vw, 26px); font-weight: 500; font-stretch: 95%; letter-spacing: -.02em; line-height: 1.15; }
.includes p { color: var(--muted); font-size: 16px; }
.sp-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.sp-gallery .wk-open { aspect-ratio: 4 / 5; }
.sp-gallery .wk-open img { height: 100%; object-fit: cover; }
.sp-gallery figcaption { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.sp-cta { padding-block: var(--section); background: var(--ink); color: var(--d-text); }
.sp-cta .lede { color: var(--d-muted); }
.sp-cta-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 110px); align-items: end; }
.sp-cta-copy { display: grid; gap: 24px; }
.sp-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.related-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; margin-bottom: clamp(28px, 3.6vw, 48px); }
.related-head .sp-h2 { margin: 0; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.rel-card { display: grid; gap: 14px; align-content: start; }
.rel-card .plate-clip { aspect-ratio: 4 / 3; }
.rel-card .plate-clip img { transition: transform 1.2s var(--ease); }
.rel-card:hover .plate-clip img { transform: scale(1.04); }
.rel-card h3 { font-size: clamp(20px, 1.7vw, 26px); font-weight: 500; font-stretch: 95%; letter-spacing: -.02em; line-height: 1.15; transition: color .3s; }
.rel-card:hover h3 { color: var(--cobalt); }
.rel-card p { color: var(--muted); font-size: 16px; }
.hub-grid { row-gap: clamp(40px, 5vw, 72px); }
.nf { min-height: 80vh; display: grid; align-content: center; padding-top: var(--header-h); }
.nf .display { font-size: clamp(64px, 12vw, 200px); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--d-text); padding-top: var(--section); overflow: hidden; }
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; padding-bottom: clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--d-rule); }
.footer-line { font-size: clamp(22px, 2.2vw, 34px); font-weight: 450; letter-spacing: -.02em; color: var(--d-muted); }
.footer-mail { font-size: clamp(26px, 3.6vw, 60px); font-weight: 500; font-stretch: 92%; letter-spacing: -.035em; line-height: 1.1; border-bottom: 1px solid var(--d-rule); transition: color .3s, border-color .3s; }
.footer-mail:hover { color: var(--cobalt-light); border-color: var(--cobalt-light); }
.footer-cols { display: grid; grid-template-columns: 1.15fr 1.15fr .8fr 1fr; gap: 32px; padding-block: clamp(36px, 4vw, 56px); }
.footer-cols > div { display: grid; gap: 9px; align-content: start; }
.footer-cols h4 { font-weight: 500; font-size: 14px; color: var(--cobalt-light); margin-bottom: 6px; }
.footer-cols a, .footer-cols span { justify-self: start; color: var(--d-muted); font-size: 15.5px; transition: color .3s; }
.footer-cols a:hover { color: var(--d-text); }
.footer-brand { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: .14em; padding-top: clamp(24px, 4vw, 56px); color: var(--d-text); font-size: clamp(40px, 13.4vw, 222px); }
.fb-mark { width: .72em; height: .72em; margin-bottom: .04em; color: var(--cobalt-light); }
.fb-name { font-size: 1em; font-weight: 600; font-stretch: 88%; line-height: .82; letter-spacing: -.055em; white-space: nowrap; }
.fb-alt { grid-column: 2; justify-self: end; margin-top: clamp(10px, 1.4vw, 20px); font-family: var(--ar); font-size: clamp(18px, 2.2vw, 36px); font-weight: 600; color: var(--d-muted); line-height: 1.2; }
html[lang="ar"] .fb-alt { font-family: var(--sans); font-weight: 500; letter-spacing: -.02em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(28px, 3.6vw, 48px); padding-block: 22px calc(30px + env(safe-area-inset-bottom)); border-top: 1px solid var(--d-rule); color: var(--d-muted); font-size: 14px; }
.to-top:hover { color: var(--d-text); }

/* WhatsApp */
.wa-fab { position: fixed; z-index: 400; inset-inline-end: calc(20px + env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--cobalt); color: #fff; box-shadow: 0 10px 28px -10px rgba(13, 60, 120, .7); transform: scale(0); transition: transform .5s var(--ease), background-color .3s; }
.wa-fab.is-visible { transform: scale(1); }
.wa-fab:hover { background: var(--cobalt-deep); }

/* ==========================================================================
   Arabic / RTL
   ========================================================================== */
html[lang="ar"] body { font-family: var(--ar); }
html[lang="ar"] .display, html[lang="ar"] .hero-title, html[lang="ar"] .hero-sub, html[lang="ar"] .about-statement, html[lang="ar"] .svc-title,
html[lang="ar"] .step h3, html[lang="ar"] .facts dd, html[lang="ar"] .menu-links a, html[lang="ar"] .form-success h3, html[lang="ar"] .v-text,
html[lang="ar"] .brand-name, html[lang="ar"] .btn, html[lang="ar"] .nav a, html[lang="ar"] .sp-h2, html[lang="ar"] .includes h3,
html[lang="ar"] .rel-card h3, html[lang="ar"] .faq-item summary, html[lang="ar"] .strip-end, html[lang="ar"] .fb-name, html[lang="ar"] .footer-line {
  font-family: var(--ar); letter-spacing: 0; font-stretch: 100%;
}
html[lang="ar"] .display { font-weight: 600; line-height: 1.2; font-size: clamp(38px, 5vw, 92px); }
html[lang="ar"] .hero-title { font-weight: 600; line-height: 1.2; font-size: clamp(48px, min(9.6vw, 16vh), 176px); }
html[lang="ar"] .hero-sub { line-height: 1.45; font-weight: 500; }
html[lang="ar"] .about-statement { line-height: 1.5; font-weight: 500; }
html[lang="ar"] .svc-title { line-height: 1.3; font-weight: 600; }
html[lang="ar"] .v-text { line-height: 1.55; font-size: clamp(24px, 2.8vw, 44px); }
html[lang="ar"] .contact-title { line-height: 1.2; }
html[lang="ar"] .fb-name { font-weight: 600; line-height: 1.1; font-size: .92em; }
html[lang="ar"] .line { padding-bottom: .18em; margin-bottom: -.18em; }
html[lang="ar"] .brand-name { font-size: 18px; font-weight: 600; }
html[lang="ar"] .footer-mail { font-family: var(--sans); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: block; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .hero-title { font-size: clamp(54px, 15.5vw, 140px); letter-spacing: -.04em; word-spacing: .1em; }
  .hero-title .line:nth-child(2) { padding-inline-start: calc(100% / 12 * 1.5); }
  .hero-clip { height: min(70vh, 100vw); }
  .about-row, .contact-grid, .sp-grid, .sp-article, .sp-cta-grid, .build-copy { grid-template-columns: 1fr; }
  .build-copy .lede { justify-self: start; }
  .facts-card { position: static; }
  .includes, .related, .hub-grid, .sp-gallery { grid-template-columns: 1fr 1fr; }

  /* services become compact cards */
  .ana-legend { display: none; }
  .svc-layout { display: block; }
  .svc-stage { display: none; }
  .svc-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .svc, .svc:last-child { position: relative; grid-template-columns: 104px 1fr; grid-template-rows: auto 1fr; column-gap: 18px; padding-block: 16px; border-top: 1px solid var(--rule); border-bottom: 0; align-items: start; }
  .svc-thumb { display: block; grid-row: 1 / span 2; width: 104px; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--paper-3); }
  .svc-num { grid-column: 2; padding-top: 2px; color: var(--cobalt); font-size: 13px; }
  .svc-body { grid-column: 2; }
  .svc-title { color: var(--ink); font-size: clamp(19px, 2.4vw, 23px); line-height: 1.15; letter-spacing: -.02em; padding-inline-end: 22px; }
  .svc-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; font-size: 15px; line-height: 1.5; }
  .tags { display: none; }
  .svc-link { position: absolute; inset: 0; margin: 0; border: 0; padding: 0; font-size: 0; }
  .svc-link .arrow { position: absolute; top: 18px; inset-inline-end: 0; font-size: 17px; color: var(--cobalt); }
  [dir="rtl"] .svc-link .arrow { transform: scaleX(-1); }

  .steps { grid-template-columns: 1fr 1fr; }
  .work-grid { columns: 2; }
  .ana-pin { width: 26px; height: 26px; }
  .ana-pin span { font-size: 10.5px; }
  .wl-gauge { display: none; }
  .wl-shade, [dir="rtl"] .wl-shade { background: linear-gradient(180deg, rgba(16, 19, 23, .74) 0%, rgba(16, 19, 23, .32) 38%, rgba(16, 19, 23, .32) 62%, rgba(16, 19, 23, .76) 100%); }
  .wl-shade--below, [dir="rtl"] .wl-shade--below { display: none; }
  .wl-above { justify-content: flex-start; padding-top: 13vh; }
  .wl-below { inset-inline-start: var(--gutter); inset-inline-end: auto; justify-content: flex-end; padding-bottom: 9vh; }
  .yard { display: block; min-height: 0; }
  .yard-media { position: relative; aspect-ratio: 4 / 3; }
  .yard-media::after, [dir="rtl"] .yard-media::after { background: linear-gradient(0deg, rgba(16, 19, 23, 1) 0%, rgba(16, 19, 23, 0) 45%); }
  .yard-inner { padding-top: 8px; }
  .lightbox { grid-template-columns: 44px 1fr 44px; }
}

@media (max-width: 640px) {
  .header-cta, .brand-sub { display: none; }
  .brand-mark { width: 30px; height: 30px; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .hero-sub { max-width: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .svc-list { grid-template-columns: 1fr; }
  .svc, .svc:last-child { grid-template-columns: 84px 1fr; }
  .svc-thumb { width: 84px; }
  .svc-desc { -webkit-line-clamp: 2; font-size: 14.5px; }
  .ana-scroll { margin-inline: calc(-1 * var(--gutter)); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .ana-scroll::-webkit-scrollbar { display: none; }
  .ana-canvas { width: 720px; margin-inline: var(--gutter); }
  .work-head { align-items: flex-start; }
  .work-nav .strip-btn { display: none; }
  .work-nav .link-arrow { margin-inline-start: 0; }
  .strip { --h: min(62vh, 112vw); }
  .strip .wk--p .wk-open { width: min(calc(var(--h) * .8), 78vw); }
  .strip { align-items: flex-end; }
  .strip .wk--l .wk-open { width: 88vw; height: calc(88vw * 2 / 3); }
  .form-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; padding-top: 40px; }
  .step { display: grid; grid-template-columns: 64px 1fr; column-gap: 12px; padding-block: 18px; }
  .step-num { grid-row: 1 / span 2; font-size: 44px; }
  .step h3 { margin: 2px 0 4px; }
  .work-grid { columns: 1; }
  .includes, .related, .hub-grid, .sp-gallery { grid-template-columns: 1fr; }
  .datasheet > div { grid-template-columns: 1fr; gap: 2px; }
  .footer-cols { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .footer-cols > div:nth-child(2) h4 { display: none; }
  .fb-alt { grid-column: 1 / -1; justify-self: start; }
  .footer-bottom { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .v-progress { width: 72px; }
}

@media (max-width: 380px) {
  .header-inner { gap: 10px; }
  .header-actions { gap: 6px; }
  .brand { gap: 8px; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-name { font-size: 15px; }
  .lang-toggle { padding: 0 9px; }
  html[lang="en"] .lang-en, html[lang="en"] .lang-sep, html[lang="ar"] .lang-ar, html[lang="ar"] .lang-sep { display: none; }
  .svc, .svc:last-child { grid-template-columns: 72px 1fr; column-gap: 14px; }
  .svc-thumb { width: 72px; }
}

/* ---------- Rendering cost: skip layout of far-away sections until they approach ---------- */
.about, .anatomy, .svc-layout, .build, .work, .voices, .yard, .contact, .faq, .footer, .sp-section, .sp-cta {
  content-visibility: auto;
  contain-intrinsic-size: auto 1100px;
}
.svc-layout { contain-intrinsic-size: auto 3600px; }
.anatomy { contain-intrinsic-size: auto 760px; }
.about { contain-intrinsic-size: auto 900px; }
.build { contain-intrinsic-size: auto 1500px; }
@media (max-width: 960px) {
  .svc-layout { contain-intrinsic-size: auto 1400px; }
  .anatomy { contain-intrinsic-size: auto 420px; }
}

/* ---------- First-paint intro (pure CSS: nothing waits for JavaScript) ---------- */
@keyframes rise { from { transform: translateY(104%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }
@keyframes lift { from { transform: translateY(36px); } }
.crumbs { animation: fade-up .9s var(--ease) backwards; }
.hero-title .line > span, .sp-hero h1 .line > span, .page-hero h1 .line > span { animation: rise 1.4s cubic-bezier(.16, 1, .3, 1) .08s backwards; }
.hero-title .line:nth-child(2) > span, .sp-hero h1 .line:nth-child(2) > span, .page-hero h1 .line:nth-child(2) > span { animation-delay: .18s; }
.hero-sub { animation: fade-up 1.1s var(--ease) .35s backwards; }
.hero-lede, .sp-hero .lede, .page-hero .lede { animation: fade-up 1.1s var(--ease) .45s backwards; }
.hero-ctas { animation: fade-up 1.1s var(--ease) .55s backwards; }
.hero-media, .sp-plate { animation: lift 1.6s var(--ease) .1s backwards; }

@keyframes vbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.v-progress i.run { animation: vbar var(--review-interval, 7000ms) linear forwards; }

/* ---------- Touch devices ---------- */
@media (pointer: coarse) {
  .filters button { height: 44px; }
  .chips span { padding: 11px 15px; }
  .lang-toggle, .burger, .btn-sm { min-height: 44px; }
  .burger { width: 44px; height: 44px; }
  .ana-pin { width: 40px; height: 40px; }
  .ana-pin span { width: 28px; height: 28px; margin: 6px; }
  .faq-item summary { padding-block: 24px; }
}

/* ---------- Landscape phones (short screens) ---------- */
@media (orientation: landscape) and (max-height: 540px) {
  :root { --header-h: 58px; --section: clamp(56px, 14vh, 96px); }
  .hero-title { font-size: clamp(40px, min(9vw, 19vh), 96px); }
  .hero-sub { margin-top: 12px; font-size: 20px; }
  .hero-row { margin-top: 10px; }
  .hero-clip { height: 78vh; height: 78svh; }
  .display { font-size: clamp(34px, min(6vw, 13vh), 72px); }
  .contact-title { font-size: clamp(40px, 8vw, 80px); }
  .build-hero { height: 100vh; min-height: 0; }
  .wl-copy { gap: 12px; }
  .wl-copy .display { font-size: clamp(30px, 11vh, 56px); }
  .wl-list li { padding-block: 6px; font-size: 14px; }
  .wl-above { padding-top: 10vh; }
  .wl-below { padding-bottom: 6vh; }
  .strip { --h: 70vh; }
  .menu { padding-top: calc(var(--header-h) + 16px); }
  .menu-links a { font-size: 26px; padding-block: 6px; }
  .lb-figure img { max-height: calc(100vh - 90px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .wl-below { opacity: 1; }
}
html.no-motion .wl-pin { height: auto; min-height: 100vh; }
html.no-motion .wl-media { clip-path: none; }
html.no-motion .wl-img { position: relative; }
html.no-motion .wl-copy { position: relative; inset: auto; width: auto; padding: 12vh var(--gutter); }
