/* ==========================================================================
   Hamdaz Technologies. First section: a 3D AI chip on a circuit board, on the logo navy.
   Content: a light editorial sheet in ink navy, with cyan and pink accents.
   ========================================================================== */

:root {
  --bg: #061423;
  --bg-2: #0a1d30;
  --navy: #174663;
  --pink: #fb4994;
  --violet: #6b50f6;
  --violet-soft: #a594ff;
  --surface: #0e2639;
  --surface-2: #133049;
  --line: rgba(238, 246, 251, 0.12);
  --line-2: rgba(238, 246, 251, 0.22);
  --fg: #eef6fb;
  --fg-2: rgba(238, 246, 251, 0.72);
  --fg-3: rgba(238, 246, 251, 0.5);
  --accent: #30c1f8;
  --light: #f2f6fa;
  --wa: #25d366;

  --display: 'Archivo', 'Inter', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

  --pad: clamp(20px, 3.4vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 88px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, ol, ul, dl, dd, address { margin: 0; }
ol, ul { padding: 0; list-style: none; }
address { font-style: normal; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.i { width: 18px; height: 18px; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 400; padding: 10px 16px; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 600; }
.skip:focus { top: 16px; }

/* the normal mouse pointer stays; the custom circle (main.js) only adds a highlight where it helps */

/* ---------- Type ---------- */
.display {
  font-family: var(--display);
  font-weight: 600;
  font-stretch: 118%;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.88;
  font-size: clamp(34px, 3.6vw, 64px);
}
.display--hero { font-size: clamp(48px, 8.1vw, 150px); }
@media (min-width: 761px) { .display--hero .line { white-space: nowrap; } }
.display--md { font-size: clamp(26px, 2.3vw, 38px); }
.display .line { display: block; }
.h2 {
  font-family: var(--display);
  font-weight: 600;
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.92;
  font-size: clamp(30px, 3.4vw, 60px);
  text-wrap: balance;
}
.h3 { font-family: var(--display); font-weight: 600; font-stretch: 106%; font-size: clamp(22px, 1.9vw, 30px); line-height: 1.08; letter-spacing: -0.01em; }
.mega {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 122%;
  text-transform: uppercase;
  letter-spacing: -0.045em;
  line-height: 0.86;
  font-size: clamp(42px, 6.4vw, 120px);
  text-wrap: balance;
}
.mono { font-family: var(--mono); font-size: 12px; line-height: 1.5; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2); }
.lead { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; color: var(--fg-2); max-width: 38rem; }
.dim { color: var(--fg-3); }

/* split words, set up by main.js */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w > span { display: inline-block; }
html.anim [data-split]:not(.is-split) { opacity: 0; }
html.anim [data-reveal] { opacity: 0; transform: translateY(40px); }
html.anim [data-intro] { opacity: 0; }

/* rolling-text hover: two copies stacked */
[data-hover] { display: inline-flex; flex-direction: column; height: 1.25em; overflow: hidden; line-height: 1.25; vertical-align: top; }
[data-hover] > span { display: block; transition: transform 0.6s var(--ease); }
[data-hover]:hover > span, [data-hover]:focus-visible > span { transform: translateY(-100%); }
.link { font-weight: 500; color: var(--fg); }
.link > span { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }

/* ---------- Buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--fg); color: var(--bg);
  font: 500 14px/1 var(--sans); letter-spacing: 0.01em; white-space: nowrap;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.pill .i { width: 16px; height: 16px; transition: transform 0.5s var(--ease); }
.pill:hover { background: var(--accent); }
.pill:hover .i { transform: rotate(45deg); }
.pill--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.pill--ghost:hover { background: var(--fg); color: var(--bg); }
.pill--dark { background: var(--bg); color: var(--fg); }
.pill--dark:hover { background: var(--fg); color: var(--bg); }

.round-btn {
  position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  width: clamp(140px, 13vw, 200px); aspect-ratio: 1; border-radius: 50%;
  background: var(--bg); color: var(--fg);
  font: 600 15px/1 var(--display); font-stretch: 112%; text-transform: uppercase; letter-spacing: 0.02em;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
.round-btn .i { width: 22px; height: 22px; transition: transform 0.5s var(--ease); }
.round-btn:hover { background: var(--accent); color: var(--bg); }
.round-btn:hover .i { transform: rotate(45deg); }
.round-btn--sm { width: 72px; background: var(--bg); color: var(--fg); }

/* ---------- Loader, curtain, cursor ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300; display: none;
  grid-template-rows: auto 1fr auto; padding: 24px var(--pad);
  background: var(--bg); color: var(--fg);
}
html.js .loader { display: grid; }
html.from-nav .loader, html.reduce .loader { display: none; }
.loader-row { display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2); }
.loader-count { align-self: end; justify-self: end; overflow: hidden; font-family: var(--display); font-weight: 700; font-stretch: 125%; font-size: clamp(96px, 22vw, 380px); line-height: 0.8; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.loader-count span { display: block; }
.loader-foot { display: grid; gap: 16px; margin-top: 24px; }
.loader-bar { height: 1px; background: var(--line); }
.loader-bar i { display: block; height: 100%; width: 100%; background: var(--fg); transform: scaleX(0); transform-origin: left; }

/* Page switches (main.js): a parallax wipe. A colour band, then a navy panel with the page name, sweep up
   over the page; the next page opens covered and the panel lifts away as the page glides up behind it. */
.curtain { position: fixed; inset: 0; z-index: 290; pointer-events: none; visibility: hidden; }
.curtain-accent, .curtain-main { position: absolute; inset: 0; transform: translateY(100%); }
.curtain-accent { will-change: transform; }
.curtain-accent { background: linear-gradient(120deg, #30c1f8 0%, #6b50f6 50%, #eb4b96 100%); }
.curtain-main { display: grid; place-items: center; overflow: hidden; will-change: transform; background: radial-gradient(55% 55% at 50% 45%, rgba(48, 193, 248, 0.14), transparent 70%), #081a2c; }
.curtain-inner { display: grid; justify-items: center; gap: 22px; padding: 0 var(--pad); }
.curtain-logo { width: auto; height: 56px; }
.curtain-label { overflow: hidden; padding-bottom: 0.06em; font-family: var(--display); font-weight: 600; font-stretch: 118%; text-transform: uppercase; letter-spacing: -0.035em; line-height: 0.95; font-size: clamp(40px, 7vw, 120px); text-align: center; color: #eef6fb; }
.curtain-label span { display: block; }
.curtain-line { display: block; width: min(260px, 50vw); height: 2px; overflow: hidden; background: rgba(255, 255, 255, 0.12); }
.curtain-line i { display: block; height: 100%; background: linear-gradient(90deg, #30c1f8, #eb4b96); transform: scaleX(0); transform-origin: left; }
/* arriving from another page: start fully covered */
html.from-nav .curtain { visibility: visible; }
html.from-nav .curtain-accent, html.from-nav .curtain-main, html.from-nav .curtain-line i { transform: none; }
.earth { transition: opacity 0.9s var(--ease); }
.cursor { position: fixed; inset: 0 auto auto 0; z-index: 350; pointer-events: none; display: none; }
html.has-cursor .cursor { display: block; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; pointer-events: none; }
.cursor-dot { display: none; }
/* the circle only shows in two places: as the "Drag" label on the marquees,
   and as a lens over the hero's glass object; everywhere else it is just the normal pointer */
.cursor-ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55); opacity: 0;
  transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease), background-color 0.3s, border-color 0.3s, opacity 0.25s;
}
.cursor.is-label .cursor-ring, html:has(.earth.is-hover) .cursor-ring { opacity: 1; }
.cursor-ring span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bg); opacity: 0; transition: opacity 0.2s; }
.cursor.is-hover .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: #fff; }
.cursor.is-label .cursor-ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--accent); border-color: var(--accent); }
.cursor.on-light .cursor-dot { background: var(--bg); }
.cursor.on-light .cursor-ring { border-color: rgba(6, 20, 35, 0.5); }
.cursor.is-label .cursor-ring span { opacity: 1; }
.cursor.is-label .cursor-dot { opacity: 0; }

/* ---------- Header & menu ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: flex; align-items: center; gap: 32px; height: var(--header-h); padding: 0 var(--pad);
  transition: transform 0.6s var(--ease), background-color 0.4s, box-shadow 0.4s; will-change: transform;
}
.header.is-scrolled { background: rgba(6, 20, 35, 0.72); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); }
.header.is-hidden { transform: translateY(-100%); }
.menu-open .header { background: transparent; box-shadow: none; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; position: relative; z-index: 2; }
.brand img { height: 42px; width: auto; }
.brand span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2); }
/* the links: plain text in the middle of the header; a thin line draws in under the one you point at and
   stays under the current page */
.nav { position: absolute; left: 50%; transform: translateX(-50%); }
.nav ul { display: flex; gap: clamp(28px, 3vw, 48px); }
.nav a { position: relative; display: inline-flex; padding: 10px 0; font-size: 14.5px; font-weight: 500; color: var(--fg-2); white-space: nowrap; transition: color 0.35s; }
/* small desktops: five links between the logo and the button, so a little closer together */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav ul { gap: 22px; }
  .nav a { font-size: 14px; }
  .nav-long { display: none; }
  .brand span { display: none; }
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform 0.55s var(--ease);
}
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { color: var(--fg); }
.nav a:hover::after, .nav a:focus-visible::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-end { display: flex; align-items: center; gap: 12px; margin-left: auto; position: relative; z-index: 2; }
/* "What We Do" opens a mega menu of every service area (main.js); the caret is its keyboard control */
.nav-mega { display: flex; align-items: center; gap: 2px; }
.nav-caret { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 50%; background: none; color: var(--fg-2); cursor: pointer; transition: color 0.3s, background-color 0.3s; }
.nav-caret .i { width: 15px; height: 15px; transition: transform 0.35s var(--ease); }
.nav-caret:hover, .nav-caret:focus-visible, .nav-caret[aria-expanded="true"] { color: var(--fg); background: rgba(238, 246, 251, 0.08); }
.nav-caret[aria-expanded="true"] .i { transform: rotate(180deg); }
.header.is-light .nav-caret { color: #4a5663; }
.megamenu {
  position: fixed; z-index: 199; left: 0; right: 0; top: calc(var(--header-h) - 8px); padding: 0 var(--pad);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.25s var(--ease), transform 0.35s var(--ease), visibility 0s 0.35s;
}
.megamenu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s var(--ease), transform 0.35s var(--ease), visibility 0s; }
.mega-in {
  display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 22px; max-width: 1180px; margin: 0 auto; padding: 20px 20px 20px 24px;
  border-radius: 18px; border: 1px solid rgba(11, 27, 43, 0.08); background: #f7f8fa;
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.08);
  max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; color: #0b1b2b;
}
/* the areas flow into four columns, so short and long lists pack together (a light panel, easy to read
   over the dark hero and the light pages alike) */
.mega-grid { columns: 4 190px; column-gap: 22px; }
.mega-col { break-inside: avoid; margin-bottom: 16px; }
.mega-cat { display: flex; align-items: center; gap: 8px; padding-bottom: 7px; margin-bottom: 4px; border-bottom: 1px solid rgba(11, 27, 43, 0.1); font-weight: 600; font-size: 13px; color: #0b1b2b; transition: color 0.3s; }
.mega-cat .i { width: 24px; height: 24px; padding: 5px; border-radius: 7px; background: #e3f4fc; color: #0479a8; flex: none; }
.mega-cat:hover, .mega-cat:focus-visible { color: #0479a8; }
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li a { display: block; padding: 3px 0; font-size: 12.5px; line-height: 1.4; color: #4a5663; transition: color 0.25s, transform 0.3s var(--ease); }
.mega-col li a:hover, .mega-col li a:focus-visible { color: #0b1b2b; transform: translateX(3px); }
.mega-side { display: grid; align-content: start; gap: 11px; padding: 18px; border-radius: 14px; background: #0b1b2b; color: #fff; }
.mega-side .mono { color: var(--pink); font-size: 10.5px; }
.mega-side-title { font-family: var(--display); font-weight: 600; font-stretch: 112%; font-size: 17px; line-height: 1.2; }
.mega-side .pill { justify-self: start; height: 38px; padding: 0 16px; font-size: 13px; background: #fff; color: #0b1b2b; }
.mega-all { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, 0.72); }
.mega-all:hover { color: #fff; }
.mega-all .i, .mega-contact .i { width: 14px; height: 14px; }
.mega-certs { list-style: none; margin: 4px 0 0; padding: 11px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.14); display: grid; gap: 5px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.03em; color: rgba(255, 255, 255, 0.72); }
.mega-certs li::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: 2px; }
.mega-contact { display: grid; gap: 5px; font-size: 12.5px; }
.mega-contact a { display: inline-flex; align-items: center; gap: 7px; color: #fff; }
@media (max-width: 1100px) { .megamenu { display: none; } .nav-caret { display: none; } }
.header-end .pill { height: 48px; }
.header-end .pill[aria-current="page"] { box-shadow: 0 0 0 3px rgba(48, 193, 248, 0.35); }
.menu-btn { display: none; align-items: center; gap: 12px; height: 44px; padding: 0 6px 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font: 500 13px/1 var(--sans); }
.menu-btn-lines { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--fg); }
.menu-btn-lines i { position: absolute; width: 12px; height: 1.5px; background: var(--bg); transition: transform 0.5s var(--ease); }
.menu-btn-lines i:first-child { transform: translateY(-3px); }
.menu-btn-lines i:last-child { transform: translateY(3px); }
.menu-btn[aria-expanded="true"] .menu-btn-lines i:first-child { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-lines i:last-child { transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: calc(var(--header-h) + 24px) var(--pad) 32px;
  background: var(--bg);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 0.9s var(--ease), visibility 0s linear 0.9s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition-delay: 0s; }
.menu-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.menu-links a {
  display: flex; align-items: flex-start; gap: 16px; padding: 4px 0;
  font-family: var(--display); font-weight: 600; font-stretch: 118%; text-transform: uppercase; letter-spacing: -0.035em;
  font-size: clamp(40px, 8vw, 104px); line-height: 0.95; color: var(--fg-3); transition: color 0.4s;
}
.menu-links a:hover, .menu-links a[aria-current="page"] { color: var(--fg); }
.menu-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; margin-top: 0.9em; color: var(--accent); }
.menu-side { display: grid; align-content: start; gap: 12px; }
.menu-services { display: grid; gap: 4px; margin-bottom: 20px; }
.menu-services a { font-size: 15px; color: var(--fg-2); }
.menu-services a:hover { color: var(--fg); }
.menu-foot { display: flex; flex-wrap: wrap; gap: 12px 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--fg-2); }

/* ---------- First-section 3D scene (AI chip; class names kept from the old Earth) ---------- */
.earth { position: absolute; inset: 0; overflow: hidden; }
.earth canvas { width: 100%; height: 100%; opacity: 0; transition: opacity 2s var(--ease); }
.earth.is-ready canvas { opacity: 1; }
.no-webgl .earth {
  background:
    radial-gradient(40% 50% at 68% 52%, rgba(48, 193, 248, 0.28) 0%, rgba(48, 193, 248, 0.06) 45%, transparent 70%),
    repeating-linear-gradient(90deg, rgba(48, 193, 248, 0.07) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(48, 193, 248, 0.07) 0 1px, transparent 1px 48px);
}
.earth-label {
  position: absolute; top: 0; left: 0; z-index: 3; opacity: 0; pointer-events: none;
  display: grid; gap: 2px; padding: 0 0 0 14px; margin: -8px 0 0 24px;
  border-left: 1px solid var(--accent);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  will-change: transform, opacity;
}
.earth-label > span:first-of-type { color: var(--fg); font-weight: 500; }
.earth-label .tag, .earth-label .clock { color: var(--accent); }

/* ---------- Home hero ---------- */
.hero { position: relative; height: 230vh; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(6, 20, 35, 0.92) 0%, rgba(6, 20, 35, 0.5) 30%, rgba(6, 20, 35, 0) 58%),
    linear-gradient(180deg, rgba(6, 20, 35, 0.7) 0%, rgba(6, 20, 35, 0) 22%);
}
.hero-a { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(28px, 5vh, 56px); z-index: 2; }
.hero-a-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: clamp(20px, 3vh, 36px); }
.hero-sub { max-width: 34ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; color: var(--fg); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ticker { position: absolute; z-index: 2; right: var(--pad); top: calc(var(--header-h) + 32px); width: min(320px, 32vw); display: grid; gap: 12px; }
.hero-ticker-items { position: relative; min-height: 88px; }
.hero-ticker-item { position: absolute; inset: 0; display: grid; gap: 6px; opacity: 0; transform: translateY(12px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.hero-ticker-item.is-active { opacity: 1; transform: none; }
.hero-ticker-item strong { font-family: var(--display); font-weight: 600; font-stretch: 112%; text-transform: uppercase; font-size: 18px; letter-spacing: -0.01em; }
.hero-ticker-item span { font-size: 14px; color: var(--fg-2); line-height: 1.45; }
.hero-ticker-bar { height: 1px; background: var(--line-2); }
.hero-ticker-bar i { display: block; height: 100%; background: var(--fg); transform-origin: left; transform: scaleX(0); }
.hero-ticker.is-running .hero-ticker-bar i { animation: tick 5s linear infinite; }
@keyframes tick { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-scroll { position: absolute; z-index: 2; left: var(--pad); top: calc(var(--header-h) + 32px); display: flex; gap: 10px; }
.hero-scroll span { display: inline-block; animation: nudge 2s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(5px); } }
.hero-b { position: absolute; z-index: 2; left: var(--pad); top: 50%; width: min(560px, 42vw); translate: 0 -50%; display: grid; gap: 20px; opacity: 0; visibility: hidden; }
.hero-b .lead { font-size: 17px; }
.hero-offices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.hero-office-city { font-family: var(--display); font-weight: 600; font-stretch: 112%; text-transform: uppercase; font-size: 28px; letter-spacing: -0.02em; line-height: 1.1; margin-top: 6px; }
.hero-offices .dim { font-family: var(--mono); font-size: 12px; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(5px); } }
.eyebrow, .hero-b .eyebrow { color: var(--pink); }
.clock { white-space: nowrap; }
/* ---------- Home: one 3D story behind the page (stage.js) ---------- */
.page-home .stage { position: fixed; inset: 0; z-index: 0; }
/* the scan horizon hero (assets/js/scan.js): the artwork fills the hero; the headline sits on its dark side,
   and what falls on its light side (the highlights, the buttons, the header's button) turns dark */
.hero-scan { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-scan .scan-pulse { animation: scan-pulse 3.2s ease-in-out infinite; transform-box: view-box; }
.hero-scan .scan-sweep { animation: scan-sweep 9s linear infinite; transform-box: view-box; }
.hero-scan .scan-float { animation: scan-float 6s ease-in-out infinite; }
@keyframes scan-pulse { 0%, 100% { opacity: 0.85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes scan-sweep { to { transform: rotate(360deg); } }
@keyframes scan-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hero--scan .hero-shade { background: linear-gradient(90deg, rgba(3,6,12,0.55) 0%, rgba(3,6,12,0) 45%); }
.hero--scan .display--hero { font-size: clamp(44px, 6.2vw, 118px); }
.hero--scan .hero-ticker { color: #0b1b2b; }
.hero--scan .hero-ticker .mono, .hero--scan .hero-ticker-item span { color: #4a5663; }
.hero--scan .hero-ticker-bar { background: rgba(11,27,43,0.15); }
.hero--scan .hero-ticker-bar i { background: #0b1b2b; }
.hero--scan .hero-actions .pill { background: #061423; color: #fff; }
.hero--scan .hero-actions .pill--ghost { background: transparent; color: #061423; box-shadow: inset 0 0 0 1px rgba(6,20,35,0.35); }
html.hero-scan-top .header:not(.is-scrolled):not(.is-light) .header-end .pill { background: #061423; color: #fff; }
@media (max-width: 760px) { .hero--scan .hero-actions .pill { background: #fff; color: #061423; } .hero--scan .hero-actions .pill--ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4); } }

/* the glass hero (stage.js, heroes/glass.js): one screen that plays its frames on its own (the headline,
   then a service area each), so the content is one scroll away */
.hero.hero--glass { height: 100vh; height: 100svh; min-height: 620px; }
.hero--glass .hero-b { display: none; }
/* one clear layout: the words in a left column (vertically centred, buttons right under the line they
   belong to), the object in its own space on the right, a frame rail at the right edge */
.hero--glass .hero-a { top: 50%; bottom: auto; right: auto; width: min(660px, 46vw); translate: 0 -50%; display: grid; gap: 22px; will-change: opacity, transform; }
.hero--glass .display--hero { font-size: clamp(34px, 3.2vw, 56px); line-height: 0.95; }
.hero--glass .hero-a-foot { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 28px; margin-top: 4px; }
.hero--glass .hero-sub { max-width: 40ch; color: var(--fg-2); font-size: clamp(16px, 1.15vw, 18px); }
.hero-eyebrow { color: var(--accent); letter-spacing: 0.14em; }
/* credentials under the buttons: who trusts Hamdaz, and its certifications */
.hero-trust { list-style: none; margin: 4px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(238, 246, 251, 0.12); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 11px; color: var(--fg-2); }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin-right: 14px; }
.hero-trust strong { font-family: var(--display); font-weight: 700; font-stretch: 112%; font-size: 15px; letter-spacing: 0.04em; color: var(--fg); }
@media (max-width: 760px) { .hero-trust { gap: 6px 14px; padding-top: 12px; } .hero-trust li + li::before { margin-right: 6px; } }
.hero--glass .hero-scroll { top: auto; bottom: clamp(24px, 4vh, 40px); cursor: pointer; }
.hero--glass .hero-shade {
  background:
    linear-gradient(90deg, rgba(6, 20, 35, 0.88) 0%, rgba(6, 20, 35, 0.66) 30%, rgba(6, 20, 35, 0.14) 54%, rgba(6, 20, 35, 0) 66%),
    linear-gradient(0deg, rgba(6, 20, 35, 0.7) 0%, rgba(6, 20, 35, 0) 30%),
    linear-gradient(180deg, rgba(6, 20, 35, 0.65) 0%, rgba(6, 20, 35, 0) 22%);
}
/* the frame rail: where the film is (the line fills while a frame plays), jump to any frame, pause */
.hero-rail { position: absolute; z-index: 3; right: var(--pad); top: 50%; translate: 0 -50%; display: grid; gap: 4px; justify-items: end; }
.hero-rail-item {
  --prog: 0;
  position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  min-height: 24px; min-width: 24px; padding: 6px 0; background: none; border: 0; color: var(--fg-2); cursor: pointer; font: inherit; text-align: right;
}
.hero-rail-item .mono { font-size: 10.5px; opacity: 0.7; }
.hero-rail-item b { position: absolute; right: 64px; white-space: nowrap; font-weight: 500; font-size: 13px; opacity: 0; transform: translateX(6px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.hero-rail-item i { position: relative; display: block; height: 2px; width: 14px; margin-left: 14px; border-radius: 2px; background: rgba(238, 246, 251, 0.3); overflow: hidden; transition: width 0.45s var(--ease), margin 0.45s var(--ease); }
.hero-rail-item i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--prog)); opacity: 0; transition: opacity 0.3s; }
.hero-rail-item:hover, .hero-rail-item:focus-visible, .hero-rail-item.is-on { color: var(--fg); }
.hero-rail-item:hover b, .hero-rail-item:focus-visible b, .hero-rail-item.is-on b { opacity: 1; transform: none; }
.hero-rail-item.is-on i { width: 28px; margin-left: 0; }
.hero-rail-item.is-on i::after { opacity: 1; }
.hero-rail-item:focus-visible, .hero-rail-play:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
/* gallery controls: previous, play / pause, next */
.hero-rail-ctrl { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.hero-rail-ctrl .hero-rail-play { margin: 0; }
.hero-rail-step { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(238, 246, 251, 0.3); background: none; color: var(--fg); display: grid; place-items: center; cursor: pointer; transition: border-color 0.3s, background-color 0.3s, transform 0.3s var(--ease); }
.hero-rail-step .i { width: 14px; height: 14px; }
.hero-rail-step--prev .i { transform: rotate(180deg); }
.hero-rail-step:hover { border-color: var(--fg); background: rgba(238, 246, 251, 0.1); transform: scale(1.08); }
.hero-rail-step:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
/* the hero takes sideways drags and swipes (frames) and leaves up and down scrolling to the page */
.hero--glass .hero-stage { touch-action: pan-y; }
.hero-rail-play { width: 30px; height: 30px; margin-top: 10px; border-radius: 50%; border: 1px solid rgba(238, 246, 251, 0.3); background: none; color: var(--fg); display: grid; place-items: center; cursor: pointer; transition: border-color 0.3s, background-color 0.3s; }
.hero-rail-play:hover { border-color: var(--fg); background: rgba(238, 246, 251, 0.08); }
.hero-rail-play i { width: 8px; height: 10px; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
.hero-rail-play.is-paused i { width: 0; height: 0; border: 0; border-left: 9px solid currentColor; border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; margin-left: 3px; }
/* each frame's service details, beside the object; stage.js sets --v (0 hidden .. 1 shown) and --d (where
   the frame is: -0.5 arriving .. 0.5 leaving), so they glide in step with the film */
.hero-frames { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-frame {
  --v: 0; --d: 0;
  position: absolute; left: var(--pad); top: 50%; width: min(600px, 44vw); display: grid; gap: 18px; justify-items: start;
  opacity: var(--v); visibility: hidden; transform: translate3d(calc(var(--d) * -60px), -50%, 0); will-change: transform, opacity;
}
.hero-frame.is-on { visibility: visible; pointer-events: auto; }
.hf-idx { color: var(--accent); display: flex; gap: 8px; letter-spacing: 0.14em; }
.hf-idx span { color: var(--fg); }
.hf-title { font-family: var(--display); font-weight: 600; font-stretch: 112%; text-transform: uppercase; font-size: clamp(28px, 2.6vw, 44px); line-height: 0.95; letter-spacing: -0.02em; overflow-wrap: anywhere; text-wrap: balance; }
.hf-text { color: var(--fg-2); max-width: 44ch; font-size: clamp(15.5px, 1.1vw, 17px); }
.hf-tags { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 560px; }
.hf-tags li {
  padding: 9px 15px; border-radius: 99px; font-size: 14px; color: var(--fg);
  border: 1px solid rgba(238, 246, 251, 0.16); background: rgba(6, 20, 35, 0.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: calc(var(--v) * 1.5 - var(--i) * 0.14);
  transform: translate3d(0, calc((1 - var(--v)) * (12px + var(--i) * 8px)), 0);
  transition: border-color 0.3s, background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.hf-tags li:hover { border-color: var(--accent); background: rgba(48, 193, 248, 0.14); box-shadow: 0 0 0 4px rgba(48, 193, 248, 0.08); }
.hf-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--fg); font-weight: 500; font-size: 14.5px; border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: border-color 0.3s, gap 0.3s var(--ease); }
.hf-go:hover { border-color: var(--accent); gap: 12px; }
.hf-go .i { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .hero--glass .hero-a { top: auto; bottom: 96px; right: var(--pad); width: auto; translate: none; gap: 16px; }
  .hero--glass .display--hero { font-size: clamp(32px, 9vw, 40px); }
  .hero--glass .hero-scroll { display: none; }
  .hero-rail { top: auto; bottom: 28px; right: auto; left: var(--pad); translate: none; grid-auto-flow: column; align-items: center; gap: 8px; }
  .hero-rail-item { padding: 8px 0; }
  .hero-rail-item .mono, .hero-rail-item b { display: none; }
  .hero-rail-item i, .hero-rail-item.is-on i { margin: 0; }
  .hero-rail-play { margin: 0 0 0 4px; width: 28px; height: 28px; }
  .hero-frame { top: auto; bottom: 96px; right: var(--pad); width: auto; gap: 12px; transform: translate3d(calc(var(--d) * -40px), 0, 0); }
  .hf-title { font-size: clamp(26px, 7.4vw, 34px); }
  .hf-text { display: none; }
  .hf-tags li { padding: 7px 12px; font-size: 13px; }
}
/* hovering the glass object: the cursor ring opens into a soft lens */
html:has(.earth.is-hover) .cursor-ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; border-color: rgba(255, 255, 255, 0.7); background: radial-gradient(circle, rgba(48, 193, 248, 0.16), rgba(48, 193, 248, 0) 70%); }
html:has(.earth.is-hover) .cursor-dot { opacity: 0; }
/* the AI-scan annotations over the hero's flower (stage.js, heroes/bloom.js) */
.stage-hud { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.page-home .hero { z-index: 1; }
.page-home .footer { z-index: 2; }
/* the clear layer above the page where the particles fly and the network sits (stage.js) */
.stage-light { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.stage-light canvas { width: 100%; height: 100%; display: block; opacity: 0; }
.stage-light canvas.is-on { opacity: 1; }
/* the dark section before Contact: the galaxy on the right, a short line on the left */
.galaxy-sec { position: relative; z-index: 1; display: grid; align-items: center; min-height: 600px; height: 100vh; height: 100svh; padding: 64px var(--pad); }
.galaxy-in { display: grid; gap: 16px; max-width: 460px; }
.galaxy-sec .display--md { font-size: clamp(26px, 2.3vw, 38px); }
.galaxy-sec .lead { font-size: 15.5px; color: var(--fg-2); }
@media (max-width: 760px) { .galaxy-sec { align-items: start; padding-top: 96px; } }
/* Who we are: text and figures on the left, the people network on the right */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.intro-grid .sh-main { grid-template-columns: 1fr; gap: 20px; }
.intro-grid .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.intro-grid .facts .fact--text { grid-column: 1 / -1; gap: 18px; min-height: 0; margin-top: 8px; padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--rule); }
.intro-art { width: 100%; aspect-ratio: 1; max-height: 620px; }
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-art { aspect-ratio: auto; height: 360px; order: -1; }
}

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--header-h) + 64px) var(--pad) 32px; overflow: hidden; }
.page-hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 20, 35, 0.92) 0%, rgba(6, 20, 35, 0.55) 45%, rgba(6, 20, 35, 0) 75%),
    linear-gradient(0deg, var(--bg) 0%, rgba(6, 20, 35, 0) 40%);
}
.page-hero-inner { position: relative; z-index: 2; display: grid; gap: 24px; max-width: 1180px; }
.page-hero .display { font-size: clamp(34px, 3.6vw, 64px); }
.crumbs a { color: var(--fg-2); transition: color 0.3s; }
.crumbs a:hover { color: var(--fg); }
.page-hero-foot { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(40px, 8vh, 80px); padding-top: 16px; border-top: 1px solid var(--line); }

/* Kept first-section accents */
.display--hero .line:last-child { color: var(--accent); }
.eyebrow { color: var(--pink); }
.menu-num { color: var(--pink); }
.loader-bar i { background: linear-gradient(90deg, var(--accent), var(--violet), var(--pink)); }
.hero-a, .hero-b { will-change: transform, opacity; }
.hero-b { width: min(620px, 46vw); }
.earth-label[data-side="left"] { translate: -100% -100%; margin: -10px 0 0 -24px; padding: 0 14px 0 0; border-left: 0; border-right: 1px solid var(--accent); text-align: right; }


/* ==========================================================================
   Light editorial content: everything after the first section.
   Ink navy on paper, hairline rules, numbered sections. Cyan and pink are
   used only as small accents; one navy panel per page for contrast.
   ========================================================================== */
.content, .modal {
  --paper: #f2f1ed;
  --paper-2: #e8e7e1;
  --ink: #0b1b2b;
  --ink-2: #4a5663;
  --ink-3: #5f6873;
  --rule: rgba(11, 27, 43, 0.12);
  --rule-2: rgba(11, 27, 43, 0.28);
  --cyan-ink: #036f9b;
  --pink-ink: #d0216f;
  --deep: #0c2a46;
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --fg-3: var(--ink-3);
  --line: var(--rule);
  --line-2: var(--rule-2);
  --gap: clamp(80px, 11vh, 136px);
  color: var(--ink);
}
.content {
  position: relative; z-index: 5;
  margin: -32px 0 -32px;
  background: var(--paper);
  border-radius: 28px;
}
.content > :last-child { padding-bottom: calc(clamp(72px, 10vh, 120px) + 32px); }
/* the glass hero fills the whole first screen: the sheet starts right below it instead of overlapping */
.hero.hero--glass + .content { margin-top: 0; }
.content ::selection, .modal ::selection { background: var(--ink); color: #fff; }
.content :focus-visible, .modal :focus-visible { outline-color: var(--cyan-ink); }
.page-hero { padding-bottom: 72px; }
.wrap { width: min(100%, 1320px); margin-inline: auto; }
.sec { position: relative; padding: var(--gap) var(--pad) 0; }

/* ---------- Section head ---------- */
.sh-bar {
  display: flex; align-items: center; gap: 14px;
  padding-top: 16px; border-top: 1px solid var(--rule-2);
  font-family: var(--mono); font-size: 11.5px; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
}
.sh-idx { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.sh-idx::before { content: ""; width: 7px; height: 7px; background: #30c1f8; }
.sh-meta { margin-left: auto; color: var(--ink-3); text-transform: none; letter-spacing: 0.02em; }
.sh-meta a:hover { color: var(--ink); }
.sh-main { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; margin: clamp(24px, 3.5vh, 36px) 0 clamp(40px, 6vh, 64px); }
.sh-main--solo { grid-template-columns: 1fr; }
.sh-title { max-width: 16em; font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.1vw, 34px); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.sh-side { display: grid; justify-items: start; gap: 24px; padding-bottom: 4px; }
.sh-side p { max-width: 30rem; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  height: 54px; padding: 0 7px 0 24px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font: 500 15px/1 var(--sans); white-space: nowrap;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.btn-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink); transition: background-color 0.4s var(--ease), color 0.4s var(--ease); }
.btn-ic .i { width: 16px; height: 16px; transition: transform 0.5s var(--ease); }
.btn:hover { background: var(--cyan-ink); }
.btn:hover .i-arrow-up-right { transform: rotate(45deg); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-2); }
.btn--ghost .btn-ic { background: var(--ink); color: #fff; }
.btn--ghost:hover { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.btn--ghost:hover .btn-ic { background: #fff; color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light .btn-ic { background: var(--ink); color: #fff; }
.btn--light:hover { background: #30c1f8; }
.btn--ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.btn--ghost-light .btn-ic { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--ink); box-shadow: none; }
.btn--ghost-light:hover .btn-ic { background: var(--ink); color: #fff; }

.tlink {
  display: inline-flex; align-items: center; gap: 8px; padding-bottom: 4px;
  font-weight: 500; font-size: 15px; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: color 0.3s;
}
.tlink .i { width: 16px; height: 16px; transition: transform 0.5s var(--ease); }
.tlink:hover { color: var(--cyan-ink); }
.tlink:hover .i { transform: translateX(4px); }

.ix-go {
  display: grid; place-items: center; flex: none; justify-self: end;
  width: 44px; height: 44px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--rule-2); color: var(--ink);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.6s var(--ease);
}
.ix-go .i { width: 16px; height: 16px; }

/* ---------- Photos: shown in their own colour (no tint), a slow zoom on hover ---------- */
.tone { position: relative; display: block; overflow: hidden; border-radius: 6px; background: var(--deep); isolation: isolate; }
.tone img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
a:hover .tone img, .feat:hover .tone img, .about-media:hover .tone img { transform: scale(1.035); }

/* ---------- Statement + facts ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr); border-top: 1px solid var(--rule); }
.fact { display: grid; align-content: space-between; gap: 32px; min-height: 148px; padding: 18px 24px 0; border-left: 1px solid var(--rule); }
.fact:first-child { padding-left: 0; border-left: 0; }
.fact-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.fact-num { font-family: var(--display); font-weight: 500; font-size: clamp(32px, 2.7vw, 44px); line-height: 0.9; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.fact--text { justify-items: start; padding-right: 0; }
.fact--text p { max-width: 26rem; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* ---------- Index list (services) ---------- */
.index { border-top: 1px solid var(--rule-2); }
.index > li { border-bottom: 1px solid var(--rule); scroll-margin-top: 120px; }
.ix {
  position: relative; display: grid; grid-template-columns: 80px minmax(0, 1.25fr) minmax(0, 1fr) 52px; align-items: center; gap: 24px;
  width: 100%; padding: 22px 0; text-align: left;
}
.ix-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-3); transition: color 0.3s; }
.ix-title { font-family: var(--display); font-weight: 500; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.2; letter-spacing: -0.02em; transition: transform 0.7s var(--ease); }
.ix-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.index--compact .ix { grid-template-columns: 80px minmax(0, 1fr) 52px; }
.index--compact .ix-text { display: none; }
.ix:hover .ix-title, .ix:focus-visible .ix-title { transform: translateX(14px); }
.ix:hover .ix-num { color: var(--cyan-ink); }
.ix:hover .ix-go, .ix:focus-visible .ix-go { background: var(--ink); color: #fff; box-shadow: none; transform: rotate(45deg); }
.ix--more .ix-num { color: var(--cyan-ink); }
.index--full .ix { padding: 20px 0; }
.svc-row.is-target .ix-num { color: var(--cyan-ink); }

/* ---------- Services as cards (What We Do, area pages, related services): the photo fills the left of the
   card and fades into the white under the text; on a phone the card stacks and the photo fades downwards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
/* services page: quick links to each service area, then one section per area */
.cat-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cat-nav a {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; padding: 14px 18px 14px 14px;
  border: 1px solid var(--rule); border-radius: 16px; background: #fff; color: var(--ink); font-weight: 500; font-size: 15.5px;
  transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.cat-nav a .i { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--paper); color: var(--deep); transition: background-color 0.3s, color 0.3s; }
.cat-nav a b { font-family: var(--mono); font-weight: 500; font-size: 12px; color: #6b7785; }
.cat-nav a:hover, .cat-nav a:focus-visible { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(11, 27, 43, 0.35); }
.cat-nav a:hover .i, .cat-nav a:focus-visible .i { background: var(--ink); color: #fff; }
.cat-sec { scroll-margin-top: 84px; }
.cat-sec + .cat-sec { padding-top: 0; }
@media (max-width: 1024px) { .cat-nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cat-nav ul { grid-template-columns: 1fr; } }
.svc-grid > li { display: flex; scroll-margin-top: 120px; }
.svc-card { text-align: left; }
.svc-row.is-target .svc-card { border-color: var(--cyan-ink); }
.svc-card {
  position: relative; display: block; width: 100%; overflow: hidden; isolation: isolate;
  border: 1px solid var(--rule); border-radius: 20px; background: #fff;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.4s;
}
.svc-card:hover, .svc-card:focus-visible { transform: translateY(-5px); border-color: transparent; box-shadow: 0 30px 64px -32px rgba(6, 20, 35, 0.42); }
.svc-media {
  position: absolute; z-index: -1; inset: 0 auto 0 0; width: 62%; display: block;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 28%, rgba(0, 0, 0, 0.55) 50%, rgba(0, 0, 0, 0.22) 68%, rgba(0, 0, 0, 0.07) 84%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 28%, rgba(0, 0, 0, 0.55) 50%, rgba(0, 0, 0, 0.22) 68%, rgba(0, 0, 0, 0.07) 84%, transparent 100%);
}
.svc-media .tone { position: absolute; inset: 0; border-radius: 0; background: transparent; }
.svc-card:hover .tone img, .svc-card:focus-visible .tone img { transform: scale(1.06); }
.svc-body { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 300px; margin-left: 48%; padding: 26px 24px 22px 0; }
.svc-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: #5d6976; }
.svc-title { font-family: var(--display); font-weight: 500; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.2; letter-spacing: -0.02em; }
.svc-text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.svc-tag { padding: 5px 10px; border-radius: 99px; border: 1px solid var(--rule-2); background: rgba(255, 255, 255, 0.6); font-size: 12px; line-height: 1.2; color: var(--ink-2); }
.svc-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 500; }
.svc-card:hover .ix-go, .svc-card:focus-visible .ix-go { background: var(--ink); color: #fff; box-shadow: none; transform: rotate(45deg); }
@media (max-width: 1024px) { .svc-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .svc-media {
    inset: 0 0 auto 0; width: auto; height: 240px;
    -webkit-mask-image: linear-gradient(180deg, #000 32%, rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0.18) 75%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 32%, rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0.18) 75%, transparent 100%);
  }
  .svc-body { min-height: 0; margin: 196px 0 0; padding: 0 20px 20px; }
}

/* ---------- Home: our managed services, a list with a detail panel (main.js switches it) ---------- */
.svx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.svx-list { border-top: 1px solid var(--rule-2); }
.svx-list > li { border-bottom: 1px solid var(--rule); }
.svx-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 40px; align-items: center; gap: 16px; padding: 20px 0; }
.svx-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-3); transition: color 0.3s; }
.svx-name { display: grid; gap: 6px; min-width: 0; }
.svx-title {
  font-family: var(--display); font-weight: 500; font-size: clamp(18px, 1.55vw, 23px); line-height: 1.2; letter-spacing: -0.02em;
  color: var(--ink-3); transition: color 0.35s, transform 0.6s var(--ease);
}
.svx-text { display: none; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.svx-go {
  display: grid; place-items: center; justify-self: end; width: 36px; height: 36px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--rule-2); color: var(--ink);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.6s var(--ease);
}
.svx-go .i { width: 15px; height: 15px; }
.svx-row.is-on .svx-num, .svx-row--more .svx-num { color: var(--cyan-ink); }
.svx-row.is-on .svx-title, .svx-row--more .svx-title, .svx-row:focus-visible .svx-title { color: var(--ink); }
.svx-row.is-on .svx-title { transform: translateX(10px); }
.svx-row.is-on .svx-go, .svx-row--more:hover .svx-go { background: var(--ink); color: #fff; box-shadow: none; }
.svx-panels { position: sticky; top: 112px; display: grid; }
.svx-panel {
  grid-area: 1 / 1; overflow: hidden; border: 1px solid var(--rule); border-radius: 16px; background: #fff;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease), visibility 0s linear 0.45s;
}
.svx-panel.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.svx-media { aspect-ratio: 16 / 8; }
.svx-media .tone { height: 100%; border-radius: 0; }
/* the live pictures (cards.js): drawn on one fixed layer over the page, under the header and menus; the card
   keeps the navy behind it, and its corners and fade come from the card itself */
.cards-gl { position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; }
.svx-media { border-radius: 15px 15px 0 0; }
.is-3d, .is-3d .tone { background: #061423; }
.svx-body { display: grid; gap: 10px; padding: 24px 26px 26px; }
.svx-p-title { font-family: var(--display); font-weight: 500; font-size: clamp(21px, 1.8vw, 26px); line-height: 1.2; letter-spacing: -0.02em; }
.svx-p-text { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.svx-p-label { margin-top: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan-ink); }
.svx-p-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; font-size: 14px; line-height: 1.4; }
.svx-p-list li { position: relative; padding-left: 14px; }
.svx-p-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan-ink); }
@media (max-width: 900px) {
  .svx { grid-template-columns: minmax(0, 1fr); }
  .svx-panels { display: none; }
  .svx-row { grid-template-columns: 44px minmax(0, 1fr) 36px; align-items: start; padding: 18px 0; }
  .svx-title { color: var(--ink); }
  .svx-row.is-on .svx-title { transform: none; }
  .svx-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* floating image that follows the cursor over an index list */
.preview {
  position: fixed; left: 0; top: 0; z-index: 60;
  width: clamp(240px, 21vw, 320px); aspect-ratio: 4 / 3;
  overflow: hidden; border-radius: 6px; pointer-events: none;
  opacity: 0; visibility: hidden; background: #0c2a46;
}
.preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s; }
.preview img.is-on { opacity: 1; }

/* ---------- AI products grid ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(44px, 7vh, 72px) clamp(16px, 2vw, 28px); }
.prod { display: grid; align-content: start; gap: 14px; }
.prod .tone { aspect-ratio: 4 / 3; }
.prod-meta { display: flex; align-items: baseline; gap: 14px; margin-top: 6px; }
.prod-num { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.prod-title { font-family: var(--display); font-weight: 500; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.25; letter-spacing: -0.015em; transition: color 0.3s; }
.prod:hover .prod-title { color: var(--cyan-ink); }
.prod--cta {
  position: relative; isolation: isolate; overflow: hidden; align-content: space-between; gap: 24px;
  aspect-ratio: 4 / 3; padding: clamp(22px, 2.4vw, 32px); border-radius: 6px; background: var(--deep); color: #fff;
}
.prod--cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url('../img/earth/earth-night.jpg') 64% 34% / 320% auto no-repeat; opacity: 0.5; transition: transform 1.4s var(--ease), opacity 0.6s; }
.prod--cta:hover::before { transform: scale(1.06); opacity: 0.7; }
.prod--cta .prod-num { color: rgba(255, 255, 255, 0.6); }
.prod-cta-title { max-width: 10em; font-family: var(--display); font-weight: 500; font-size: clamp(22px, 1.9vw, 30px); line-height: 1.08; letter-spacing: -0.03em; }
.prod--cta .ix-go { justify-self: start; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); color: #fff; }
.prod--cta:hover .ix-go { background: #fff; color: var(--ink); box-shadow: none; transform: rotate(45deg); }

/* ---------- Custom ChatGPT: navy panel ---------- */
.gpt {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px);
  padding: clamp(28px, 5vw, 80px); border-radius: 10px; background: var(--deep); color: #fff;
}
.gpt::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 50% at 100% 0%, rgba(48, 193, 248, 0.16), transparent 70%), radial-gradient(45% 45% at 0% 100%, rgba(224, 48, 127, 0.12), transparent 70%); }
.gpt .sh-bar { border-color: rgba(255, 255, 255, 0.22); color: rgba(255, 255, 255, 0.66); }
.gpt .sh-idx { color: #fff; }
.gpt .sh-meta { color: rgba(255, 255, 255, 0.5); }
.gpt-title { margin-top: clamp(24px, 3.5vh, 36px); font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.1vw, 34px); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.gpt-title .c { color: #30c1f8; }
.gpt-text { margin-top: 16px; max-width: 28rem; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.72); }
.gpt-main > div[data-reveal] { margin-top: 28px; }
.gpt-side { display: grid; align-content: start; }
.gpt-sub { margin-bottom: 16px; font-family: var(--mono); font-weight: 400; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.steps { border-top: 1px solid rgba(255, 255, 255, 0.22); }
.steps > li { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.gpt--home { align-items: start; row-gap: clamp(48px, 8vh, 80px); }
.gpt--home .chat { margin-top: 0; }
.steps--row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; border-top: 0; }
.steps--row > li { display: grid; align-content: start; gap: 10px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.22); border-bottom: 0; }
.steps--row .st-num { padding-top: 0; }
.st-num { padding-top: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: #30c1f8; }
.st-title { font-family: var(--display); font-weight: 500; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.25; letter-spacing: -0.015em; }
.steps p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.66); }
.steps--full summary { display: grid; grid-template-columns: 56px minmax(0, 1fr) 24px; align-items: center; gap: 12px; padding: 22px 0; cursor: pointer; list-style: none; }
.steps--full summary::-webkit-details-marker { display: none; }
.steps--full .st-num { padding-top: 0; }
.steps--full details p { margin: -6px 0 0; padding: 0 36px 24px 68px; }
.st-plus { position: relative; width: 16px; height: 16px; }
.st-plus::before, .st-plus::after { content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease); }
.st-plus::after { transform: rotate(90deg); }
details[open] .st-plus::after { transform: rotate(0deg); }
.gpt-closing { display: grid; justify-items: start; gap: 14px; margin-top: 40px; }
.gpt-closing h3 { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2vw, 30px); line-height: 1.12; letter-spacing: -0.03em; }
.gpt-closing p { font-size: 15.5px; line-height: 1.65; color: rgba(255, 255, 255, 0.7); }
.gpt-closing .btn { margin-top: 10px; }

.chat { margin-top: clamp(36px, 5vh, 56px); overflow: hidden; border-radius: 10px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.chat-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: #30c1f8; color: var(--ink); font: 700 15px/1 var(--display); }
.chat-title { font-size: 14px; font-weight: 600; }
.chat-sub { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, 0.55); }
.chat-sub i { width: 6px; height: 6px; border-radius: 50%; background: #3ad07a; }
.chat-note { margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.45); }
.chat-body { display: grid; align-content: start; gap: 10px; min-height: 19rem; padding: 18px; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.msg--you { justify-self: end; background: #fff; color: var(--ink); border-bottom-right-radius: 3px; }
.msg--bot { justify-self: start; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.88); border-bottom-left-radius: 3px; }
.msg-src { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: #30c1f8; }
.msg-src .i { width: 13px; height: 13px; }
.typing { display: inline-flex; gap: 5px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); animation: typing 1.1s infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-input { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 18px 18px; padding: 6px 6px 6px 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); font-size: 13.5px; color: rgba(255, 255, 255, 0.5); }
.chat-send { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--ink); }
.chat-send .i { width: 15px; height: 15px; }

/* ---------- Home: find the right service (navy panel) ---------- */
.finder { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.finder-title { margin-top: clamp(24px, 3.5vh, 36px); font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.1vw, 34px); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.finder-title .c { color: #30c1f8; }
.finder-text { margin-top: 14px; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.72); }
.needs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 28px; }
.need {
  display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 12px 16px; border-radius: 10px;
  text-align: left; font-size: 14.5px; font-weight: 500; line-height: 1.3; color: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.need-num { flex: none; font-family: var(--mono); font-size: 11px; color: rgba(255, 255, 255, 0.45); transition: color 0.35s; }
.need:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.need[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: none; }
.need[aria-selected="true"] .need-num { color: var(--cyan-ink); }
.need:focus-visible { outline: 2px solid #30c1f8; outline-offset: 2px; }
.finder-panels { min-height: 30rem; }
.np:not([hidden]) { animation: np-in 0.6s var(--ease); }
@keyframes np-in { from { opacity: 0; transform: translateY(14px); } }
html.reduce .np:not([hidden]) { animation: none; }
.np-label { padding: 16px 0 14px; border-top: 1px solid rgba(255, 255, 255, 0.22); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.6); }
.np-list a { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 6px 24px; padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.np-title { grid-column: 1; font-family: var(--display); font-weight: 500; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.2; letter-spacing: -0.02em; transition: color 0.3s; }
.np-text { grid-column: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.66); }
.np-list .ix-go { grid-column: 2; grid-row: 1 / span 2; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); color: #fff; }
.np-list a:hover .np-title { color: #30c1f8; }
.np-list a:hover .ix-go, .np-list a:focus-visible .ix-go { background: #fff; color: var(--ink); box-shadow: none; transform: rotate(45deg); }
.np-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Technologies marquee: two rows, opposite directions ---------- */
.tech { margin-top: var(--gap); padding: clamp(20px, 3vh, 32px) 0 clamp(18px, 2.6vh, 28px); border-block: 1px solid var(--rule); overflow: hidden; }
.tech-head { display: flex; align-items: center; gap: 16px 24px; margin-bottom: clamp(12px, 2vh, 24px); padding: 0 var(--pad); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.tech-meta { margin-left: auto; color: var(--ink-3); }
.mq-toggle { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule-2); font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--ink-2); transition: background-color 0.3s, color 0.3s, box-shadow 0.3s; }
.mq-toggle:hover { background: var(--ink); color: #fff; box-shadow: none; }
.mq-toggle-icon { position: relative; width: 8px; height: 9px; }
.mq-toggle-icon::before, .mq-toggle-icon::after { content: ""; position: absolute; top: 0; width: 2.5px; height: 9px; background: currentColor; }
.mq-toggle-icon::before { left: 0; }
.mq-toggle-icon::after { right: 0; }
.mq-toggle[aria-pressed="true"] .mq-toggle-icon::before { width: 0; height: 0; background: none; border-style: solid; border-width: 4.5px 0 4.5px 8px; border-color: transparent transparent transparent currentColor; }
.mq-toggle[aria-pressed="true"] .mq-toggle-icon::after { display: none; }
.mq { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
/* the rows can be dragged, swiped or scrolled sideways (main.js); up and down still scroll the page */
.mq.is-js { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.mq.is-js { cursor: grab; }
.mq.is-dragging { cursor: grabbing; }
.mq-track { display: flex; flex: none; animation: marquee 50s linear infinite; }
.mq.is-js .mq-track { animation: none; will-change: transform; }
.mq ul { display: flex; flex: none; align-items: center; }
.mq li {
  display: flex; align-items: center; gap: 0.5em; padding-right: 1.5em;
  font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2.1vw, 32px); line-height: 1.4; letter-spacing: -0.025em;
  color: var(--ink); white-space: nowrap; transition: color 0.3s;
}
.mq-ic { width: 0.95em; height: 0.95em; flex: none; color: var(--ink-2); transition: color 0.3s; }
.mq li:hover, .mq li:hover .mq-ic { color: var(--cyan-ink); }
@keyframes marquee { to { transform: translateX(-50%); } }
/* clients and partners (home): a large row of client names, then two smaller rows of partner brands */
.cp-rows { display: grid; gap: clamp(10px, 1.6vh, 16px); margin-top: clamp(8px, 2vh, 20px); padding-block: clamp(18px, 3vh, 28px); border-block: 1px solid var(--rule); overflow: hidden; }
.cp-head { display: flex; align-items: center; gap: 16px; padding: 0 var(--pad); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.cp-head .mq-toggle { margin-left: auto; }
.cp-head:not(:first-child) { margin-top: clamp(10px, 2vh, 22px); }
.mq--clients li { font-weight: 600; font-stretch: 112%; font-size: clamp(26px, 3vw, 46px); text-transform: uppercase; letter-spacing: -0.02em; padding-right: 0; }
.mq--clients li::after { content: ""; width: 9px; height: 9px; margin: 0 0.9em; border-radius: 50%; background: var(--cyan-ink); flex: none; }
.mq--partners li { font-size: clamp(17px, 1.5vw, 24px); color: var(--ink-2); padding-right: 0; }
.mq--partners li::after { content: "/"; margin: 0 0.8em; color: var(--rule-2); }
/* partner logos: one ink colour, all about equally heavy (sizes in components.mjs), full colour on hover;
   a partner without a logo yet shows its name in the same ink */
.mq--logos li { height: 64px; padding: 0 clamp(22px, 2.6vw, 40px); }
.mq--logos li::after { content: none; }
.mq--logos img { display: block; width: auto; max-width: none; pointer-events: none; }
.mq-logo--mark { gap: 10px; }
.mq-logo--mark span, .mq--logos .mq-name { font-family: var(--display); font-weight: 600; font-size: clamp(17px, 1.4vw, 21px); letter-spacing: -0.02em; color: var(--ink); opacity: 0.62; transition: opacity 0.4s, color 0.3s; }
.mq--logos li:hover span, .mq--logos .mq-name:hover { opacity: 1; color: var(--ink); }
@media (max-width: 760px) { .mq--logos li { height: 52px; } .mq--logos img { transform: scale(0.82); } }
/* Reduced motion: drifts slowly (main.js); CSS fallback is slower too */
html.reduce .mq-track { animation-duration: 140s; }

/* ---------- Closing call to action ---------- */
.cta-title { margin-top: clamp(24px, 3.5vh, 36px); font-family: var(--display); font-weight: 500; font-size: clamp(28px, 2.8vw, 46px); line-height: 1; letter-spacing: -0.045em; }
.cta-title .c { color: var(--cyan-ink); }
.cta-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px 64px; margin-top: clamp(32px, 5vh, 56px); }
.cta-text { max-width: 30rem; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(48px, 7vh, 80px); }
.cta-col { display: grid; align-content: start; gap: 10px; padding-top: 18px; border-top: 1px solid var(--rule-2); scroll-margin-top: 120px; }
.cta-label { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.cta-label .clock { color: var(--cyan-ink); }
.cta-city { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.15; letter-spacing: -0.025em; }
.cta-sub { font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.cta-sub a:not(.tlink):hover { color: var(--ink); }

/* ---------- Footer (navy, under the sheet) ---------- */
.footer { position: relative; isolation: isolate; overflow: hidden; padding: calc(80px + 32px) var(--pad) 28px; background: radial-gradient(60% 80% at 100% 0%, rgba(48, 193, 248, 0.12), transparent 60%), linear-gradient(180deg, #0d2d4c 0%, #0a2440 100%); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1.2fr) minmax(0, 1.4fr); gap: 48px; }
.footer-about { display: grid; gap: 20px; align-content: start; }
.footer-about img { width: auto; height: 56px; }
.footer-about p { max-width: 38ch; font-size: 14.5px; line-height: 1.65; color: var(--fg-2); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.footer-social a:hover { background: #fff; border-color: #fff; color: var(--bg); }
.footer-col h2 { margin-bottom: 16px; font-family: var(--mono); font-weight: 400; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 14.5px; color: var(--fg-2); transition: color 0.3s; }
.footer-col a:hover { color: #fff; }
.footer-office { display: grid; gap: 4px; margin-bottom: 16px; font-size: 14px; line-height: 1.6; color: var(--fg-2); }
.footer-office-head { display: flex; align-items: baseline; gap: 10px; }
.footer-office-head strong { font-size: 14px; color: var(--fg); }
.footer-office-head .clock { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 64px; padding: 22px 72px 0 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--fg-3); }
.footer-base a:hover { color: var(--fg); }
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45); transition: transform 0.5s var(--ease); }
.wa .i { width: 24px; height: 24px; }
.wa:hover { transform: scale(1.08); }
.menu-open .wa { opacity: 0; pointer-events: none; }

/* ---------- Header over the light sheet ---------- */
.header.is-light { background: rgba(242, 241, 237, 0.94); box-shadow: 0 1px 0 rgba(11, 27, 43, 0.1); }
.header.is-light .nav a { color: #4a5663; }
.header.is-light .nav a:hover, .header.is-light .nav a:focus-visible, .header.is-light .nav a[aria-current="page"] { color: #0b1b2b; }
.header.is-light .nav a::after { background: #0479a8; }
.header.is-light .brand span { color: #4a5663; }
.header.is-light .pill { background: #0b1b2b; color: #fff; }
.header.is-light .pill:hover { background: #0479a8; }
.header.is-light .menu-btn { color: #0b1b2b; box-shadow: inset 0 0 0 1px rgba(11, 27, 43, 0.2); }
.header.is-light .menu-btn-lines { background: #0b1b2b; }
.header.is-light .menu-btn-lines i { background: #fff; }

/* ---------- Service details popup ---------- */
.modal { width: 100%; max-width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; background: transparent; overflow: visible; }
.modal::backdrop { background: rgba(6, 20, 35, 0.62); }
.modal[open] { animation: modal-in 0.5s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px); } }
.modal-panel { position: relative; max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain; border-radius: 10px; background: var(--paper); }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); transition: background-color 0.3s, color 0.3s; }
.modal-close:hover { background: var(--ink); color: #fff; }
.modal-media { aspect-ratio: 21 / 8; overflow: hidden; background: var(--deep); }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: clamp(24px, 4vw, 48px); }
.modal-num { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--ink-3); }
.modal-title { margin-top: 10px; font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.08; letter-spacing: -0.03em; }
.modal-intro { margin-top: 14px; max-width: 42rem; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.modal-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin-top: 28px; border-top: 1px solid var(--rule-2); }
.modal-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.ml-num { padding-top: 3px; font-family: var(--mono); font-size: 11.5px; color: var(--cyan-ink); }
.modal-list strong { display: block; font-weight: 600; font-size: 15.5px; }
.modal-list p { margin-top: 4px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.modal-cta { margin-top: 22px; font-size: 15px; font-weight: 600; line-height: 1.5; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Products page ---------- */
.feats { border-top: 1px solid var(--rule-2); }
.feat { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); align-items: center; padding: clamp(32px, 5vh, 56px) 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 90px; }
.feat--flip .feat-media { order: 2; }
.feat .tone { aspect-ratio: 4 / 3; }
.feat-copy { display: grid; justify-items: start; gap: 18px; }
.feat-num { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--ink-3); }
.feat-title { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.feat-text { max-width: 30rem; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* ---------- About page ---------- */
.about-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 112px); align-items: center; }
.about-media .tone { aspect-ratio: 4 / 3; }
.about-copy { display: grid; gap: 18px; }
.about-copy > p { max-width: 30rem; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.about-copy .about-strong { color: var(--ink); font-weight: 500; }
.about-copy .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; }
.about-copy .fact { min-height: 128px; }
.about-copy .fact-num { font-size: clamp(32px, 2.7vw, 44px); }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.value { display: grid; align-content: start; gap: 14px; padding-top: 18px; border-top: 1px solid var(--rule-2); }
.value-num { font-family: var(--mono); font-size: 12px; color: var(--cyan-ink); }
.value h3 { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.15; letter-spacing: -0.025em; }
.value p:last-child { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }

/* ---------- Contact page ---------- */
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 72px); }
.office { display: grid; align-content: start; gap: 12px; padding-top: 18px; border-top: 1px solid var(--rule-2); }
.office-bar { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.office-time { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan-ink); }
.office-time .i { width: 14px; height: 14px; }
.office-city { margin-top: 10px; font-family: var(--display); font-weight: 500; font-size: clamp(28px, 2.8vw, 42px); line-height: 1; letter-spacing: -0.035em; }
.office-entity { margin-top: 12px; font-weight: 600; font-size: 13.5px; letter-spacing: 0.03em; }
.office address { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.office-links { margin-top: 12px; border-top: 1px solid var(--rule); }
.office-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; transition: color 0.3s; }
.office-links a > span { display: inline-flex; align-items: center; gap: 12px; transition: transform 0.6s var(--ease); }
.office-links a:hover { color: var(--cyan-ink); }
.office-links a:hover > span { transform: translateX(8px); }
.office-links .i { width: 16px; height: 16px; color: var(--ink-3); }
.form-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.form-intro { max-width: 30rem; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.direct { margin-top: 32px; border-top: 1px solid var(--rule-2); }
.direct a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.direct small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.direct strong { grid-column: 1; font-family: var(--display); font-weight: 500; font-size: clamp(17px, 1.4vw, 20px); letter-spacing: -0.015em; overflow-wrap: anywhere; }
.direct .ix-go { grid-column: 2; grid-row: 1 / span 2; width: 44px; height: 44px; }
.direct a:hover .ix-go { background: var(--ink); color: #fff; box-shadow: none; transform: rotate(45deg); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.full { grid-column: 1 / -1; }
.field { display: grid; gap: 4px; }
.field label, .topics-set legend { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; height: 48px; padding: 0; border: 0; border-bottom: 1px solid var(--rule-2); border-radius: 0;
  background: transparent; color: var(--ink); font: 400 18px/1.5 var(--sans); transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { height: auto; min-height: 120px; padding: 10px 0; resize: vertical; }
.field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #c81f3d; }
.error, .hint.is-error { font-size: 13px; color: #c81f3d; }
.hint { font-size: 13px; color: var(--ink-3); }
.form > #f-reach { margin-top: -20px; }
.topics-set { margin: 0; padding: 0; border: 0; }
.topics-set legend { margin-bottom: 14px; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topic { position: relative; }
.topic input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.topic span { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule-2); font-size: 14px; color: var(--ink-2); transition: background-color 0.3s, color 0.3s, box-shadow 0.3s; }
.topic input:hover + span { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-3); }
.topic input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.topic input:focus-visible + span { outline: 2px solid var(--cyan-ink); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.status:empty { display: none; }
.status { padding: 14px 18px; border-radius: 6px; background: #e3f1f8; font-size: 14px; }
.status.is-error { background: #fbe8ee; }
.status a, .form .hint a { text-decoration: underline; text-underline-offset: 3px; }
.form[hidden] { display: none; }
.form .btn:disabled { opacity: 0.6; cursor: progress; }
/* the honeypot: out of sight and out of the tab order, so only bots fill it in */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Cookie choice (assets/js/track.js; only when a Google tag is set up) ---------- */
.consent {
  position: fixed; left: 20px; bottom: 20px; z-index: 90; display: grid; gap: 14px; width: min(400px, calc(100vw - 100px));
  padding: 18px 20px; border-radius: 14px; background: #0b1b2b; color: #eef6fb; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55);
  font-size: 14px; line-height: 1.55; opacity: 0; transform: translateY(12px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.consent.is-in { opacity: 1; transform: none; }
.consent a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.consent-row { display: flex; gap: 8px; justify-content: flex-end; }
.consent-btn { height: 38px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(238, 246, 251, 0.3); color: #eef6fb; font: 500 14px var(--sans); transition: background-color 0.3s, color 0.3s; }
.consent-btn:hover { background: rgba(238, 246, 251, 0.12); }
.consent-btn.is-main { background: #fff; color: #0b1b2b; box-shadow: none; }
.consent-btn.is-main:hover { background: var(--accent); }
.consent-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* the privacy policy (privacy.html), on the guide layout */
.legal ul + p { margin-top: 1em; }
.legal a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
.legal a:hover { text-decoration-color: var(--cyan-ink); }
.footer-legal { display: flex; gap: 18px; }
.footer-legal button { color: inherit; font: inherit; }
.footer-legal button:hover { color: var(--fg); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts .fact--text { grid-column: 1 / -1; gap: 18px; min-height: 0; margin-top: 8px; padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--rule); }
  .ix { grid-template-columns: 56px minmax(0, 1fr) 48px; }
  .ix-text { display: none; }
  .ix-go { width: 48px; height: 48px; }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  :root { --header-h: 76px; }
  .nav, .header-end .pill { display: none; }
  .header-end { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .menu-inner { grid-template-columns: 1fr; }
  .menu-side { display: none; }
  .hero-ticker { display: none; }
  .hero-b { top: calc(var(--header-h) + 24px); translate: none; width: auto; right: var(--pad); }
  .hero-b .display--md { font-size: clamp(36px, 9vw, 64px); }
  .hero-b .lead { font-size: 15px; }

  .sh-main, .gpt, .feat, .about-split, .form-grid, .cta-row { grid-template-columns: 1fr; }
  .steps--row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
  .sh-main { align-items: start; }
  .feat--flip .feat-media { order: 0; }
  .about-media .tone { aspect-ratio: 16 / 10; }
  .values, .offices { grid-template-columns: 1fr; }
  .cta-cols { grid-template-columns: 1fr 1fr; }
  .cta-cols .cta-col:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .brand span { display: none; }
  .hero { height: 200vh; }
  .hero-a-foot { flex-direction: column; align-items: flex-start; }
  .hero-scroll { display: none; }
  .hero-offices { gap: 16px; }
  .hero-office-city { font-size: 22px; }
  .page-hero-foot span:last-child { display: none; }
  .earth-label .dim { display: none; }
  .earth-label { font-size: 10px; }

  .content { --gap: 80px; margin-top: -24px; border-radius: 20px; }
  .sh-meta { display: none; }
  .fact { min-height: 128px; gap: 28px; padding: 16px 12px 0; }
  .fact-num { font-size: 32px; }
  .fact-label { font-size: 10px; }
  .ix { grid-template-columns: 36px minmax(0, 1fr) 40px; gap: 12px; padding: 22px 0; }
  .ix-go { width: 40px; height: 40px; }
  .ix:hover .ix-title { transform: none; }
  .prod-grid { grid-template-columns: 1fr; }
  .gpt { padding: 28px 20px; }
  .needs { gap: 6px; }
  .need { min-height: 50px; padding: 10px 12px; font-size: 13.5px; }
  .finder-panels { min-height: 0; }
  .np-actions .btn { flex: 1 1 auto; justify-content: space-between; }
  .steps--row { grid-template-columns: 1fr; }
  .chat-note { display: none; }
  .steps--full details p { padding: 0 0 22px 0; margin-top: 0; }
  .tech-meta { display: none; }
  .mq-toggle { margin-left: auto; }
  .cta-cols { grid-template-columns: 1fr; }
  .form, .modal-list, .footer-top { grid-template-columns: 1fr; }
  .modal-media { aspect-ratio: 16 / 9; }
  .footer-base { padding: 22px 0 72px; }
  .wa { right: 14px; bottom: 14px; width: 48px; height: 48px; }
}

/* ---------- Credentials under the home facts ---------- */
.fact-certs { font-family: var(--mono); font-size: 11.5px !important; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink) !important; max-width: none !important; }
.fact-certs span { color: var(--cyan-ink); margin: 0 4px; }

/* ---------- Service, area, project and insight pages (src/pages/service.mjs, area.mjs, projects.mjs, insights.mjs) ---------- */
.page-detail .page-hero { min-height: 78vh; min-height: 78svh; }
/* the headline stays in the left half, clear of the 3D element on the right */
.page-detail .page-hero .display { font-size: clamp(30px, 2.8vw, 46px); max-width: min(14em, 58vw); }
.page-article .page-hero .display { font-size: clamp(24px, 2.1vw, 34px); max-width: min(20em, 60vw); }
@media (max-width: 760px) {
  .page-detail .page-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .page-detail .page-hero .display { max-width: none; font-size: clamp(28px, 8.2vw, 40px); overflow-wrap: break-word; hyphens: auto; }
}
.crumbs span[aria-current] { color: var(--fg-3); }

.sp-ov { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
/* service overview: a large lead, the text at a comfortable width, the rest behind "Read more" */
.sp-lead { margin: 0 0 26px; font-family: var(--display); font-weight: 400; font-size: clamp(21px, 1.9vw, 27px); line-height: 1.4; letter-spacing: -0.012em; color: var(--ink); max-width: 34ch; }
.sp-ov-text .sp-prose p { max-width: 62ch; }
.sp-more { margin-top: 16px; }
.sp-more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--ink); font-size: 15px; font-weight: 500; color: var(--ink); }
.sp-more summary::-webkit-details-marker { display: none; }
.sp-more summary .i { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.sp-more[open] summary .i { transform: rotate(180deg); }
.sp-more .sp-prose { margin-top: 18px; }
/* beside it: the photo and the three "Why Hamdaz" points, kept in view while the text scrolls */
.sp-side { position: sticky; top: 104px; }
.sp-side .sp-media { margin-bottom: 26px; }
.sp-kh { margin: 0 0 4px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #5d6976; }
.sp-points { list-style: none; margin: 0; padding: 0; }
.sp-points li { padding: 14px 0; border-top: 1px solid var(--rule); }
.sp-points h3 { font-family: var(--display); font-weight: 500; font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; }
.sp-points p { margin-top: 4px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 1024px) { .sp-side { position: static; } .sp-lead { max-width: none; } }
.sp-ov--text { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.sp-prose p { font-size: clamp(16px, 1.15vw, 18px); line-height: 1.7; color: var(--ink-2); max-width: 40rem; }
.sp-prose p + p { margin-top: 1.1em; }
.sp-media { margin: 0; }
/* the same photo as the service's card, fading in from its left edge towards the text */
.sp-media .tone {
  display: block; aspect-ratio: 3 / 2; border-radius: 18px; overflow: hidden; background: transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.6) 18%, #000 42%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.6) 18%, #000 42%);
}
@media (max-width: 1024px) {
  .sp-media .tone { -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 60%, transparent 100%); }
}
.sp-media .tone img { width: 100%; height: 100%; object-fit: cover; }
.sp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.sp-aside { display: grid; justify-items: start; gap: 28px; }

.sp-benefits { list-style: none; margin: clamp(48px, 7vw, 88px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.sp-benefits li { padding: 22px 28px 0; border-left: 1px solid var(--rule); }
.sp-benefits li:first-child { padding-left: 0; border-left: 0; }
.sp-benefits h3 { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 1.6vw, 24px); line-height: 1.2; letter-spacing: -0.02em; }
.sp-benefits p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

.sp-list, .sp-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.sp-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 4vw, 64px); }
.sp-list li, .sp-steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; padding: 24px 0; border-top: 1px solid var(--rule); }
.sp-num { padding-top: 4px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--cyan-ink); }
.sp-list h3, .sp-steps h3 { font-family: var(--display); font-weight: 500; font-size: 20px; line-height: 1.25; letter-spacing: -0.015em; }
.sp-list p, .sp-steps p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 34rem; }
.sp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; }
.sp-steps li { grid-template-columns: 1fr; gap: 14px; padding: 22px 22px 26px; border: 1px solid var(--rule); border-radius: 16px; background: #fff; margin-bottom: 20px; }
.sp-steps .sp-num { padding: 0; }

.sp-two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.sp-label { margin: 0 0 16px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.sp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sp-chips li { padding: 9px 15px; border: 1px solid var(--rule-2); border-radius: 99px; background: #fff; font-size: 14px; line-height: 1.2; color: var(--ink); }
.sp-chips li a { color: inherit; }
.sp-chips li:has(a):hover { border-color: var(--ink); }
.sp-trust { list-style: none; margin: clamp(40px, 5vw, 56px) 0 0; padding: 20px 0 0; display: flex; flex-wrap: wrap; gap: 12px 32px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); }
.sp-trust li { display: inline-flex; align-items: center; gap: 10px; }
.sp-trust .i { width: 18px; height: 18px; color: var(--cyan-ink); }
.sp-aside .sp-trust { margin: 0; padding: 0; border: 0; display: grid; gap: 14px; }

.sp-read { display: grid; gap: 10px; margin-top: 40px; }
.sp-read a { display: flex; align-items: baseline; gap: 14px; padding: 18px 22px; border: 1px solid var(--rule); border-radius: 14px; background: #fff; font-family: var(--display); font-weight: 500; font-size: 18px; line-height: 1.3; transition: border-color 0.3s, transform 0.4s var(--ease); }
.sp-read a .mono { flex: none; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan-ink); }
.sp-read a:hover { border-color: var(--ink); transform: translateY(-2px); }

/* questions and answers */
.faq { border-bottom: 1px solid var(--rule); max-width: 980px; }
.faq details { border-top: 1px solid var(--rule); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq-q { font-family: var(--display); font-weight: 500; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.3; letter-spacing: -0.015em; }
.faq-plus { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--rule-2); transition: background-color 0.3s, border-color 0.3s; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: var(--ink); transition: transform 0.4s var(--ease), background-color 0.3s; }
.faq-plus::after { transform: rotate(90deg); }
.faq details[open] .faq-plus { background: var(--ink); border-color: var(--ink); }
.faq details[open] .faq-plus::before, .faq details[open] .faq-plus::after { background: #fff; }
.faq details[open] .faq-plus::after { transform: rotate(0); }
.faq summary:hover .faq-plus { border-color: var(--ink); }
.faq details p { max-width: 46rem; padding: 0 60px 26px 0; font-size: 16px; line-height: 1.7; color: var(--ink-2); }

/* selected projects */
.pj-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pj-list li { display: grid; align-content: start; gap: 10px; padding: 24px; border: 1px solid var(--rule); border-radius: 16px; background: #fff; }
.pj-client { font-family: var(--display); font-weight: 500; font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; }
.pj-scope { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.pj-where { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.pj-areas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pj-areas a { padding: 5px 10px; border-radius: 99px; border: 1px solid var(--rule-2); font-size: 12px; color: var(--ink-2); transition: border-color 0.3s, color 0.3s; }
.pj-areas a:hover { border-color: var(--ink); color: var(--ink); }

/* insights */
.ins-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ins-grid > li { display: flex; }
.ins-card { display: flex; flex-direction: column; gap: 14px; width: 100%; padding: 26px; border: 1px solid var(--rule); border-radius: 16px; background: #fff; transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.4s; }
.ins-card:hover, .ins-card:focus-visible { transform: translateY(-6px); border-color: transparent; box-shadow: 0 28px 60px -28px rgba(6, 20, 35, 0.38); }
.ins-meta { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan-ink); }
.ins-title { font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.22; letter-spacing: -0.02em; }
.ins-text { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.ins-go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; font-weight: 500; font-size: 14px; }
.ins-go .i { width: 16px; height: 16px; transition: transform 0.5s var(--ease); }
.ins-card:hover .ins-go .i { transform: translateX(4px); }

/* an article */
.art { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 720px); gap: clamp(40px, 6vw, 96px); }
.art-side { position: sticky; top: 112px; align-self: start; display: grid; gap: 18px; padding-top: 16px; border-top: 1px solid var(--rule-2); }
.art-side .mono { font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.art-by { font-size: 14px; color: var(--ink-2); }
.art-side ol { margin: 0; padding: 0 0 0 18px; display: grid; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.art-side a:hover { color: var(--ink); }
.art-body { font-size: 17.5px; line-height: 1.75; color: var(--ink-2); }
.art-lead { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.6; color: var(--ink); }
.art-body h2 { margin: 2.2em 0 0.6em; scroll-margin-top: 110px; font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.2; letter-spacing: -0.025em; color: var(--ink); }
.art-body p + p { margin-top: 1em; }
.art-body ul:not(.sp-chips) { margin: 1em 0 0; padding-left: 1.2em; display: grid; gap: 0.5em; list-style: disc; }
.art-body .sp-chips li { font-size: 14px; line-height: 1.2; }
.art-body li::marker { color: var(--cyan-ink); }
.art-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 56px 0 40px; padding: 28px; border-radius: 18px; background: #fff; border: 1px solid var(--rule); }
.art-cta p { flex: 1 1 100%; margin-bottom: 8px; font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.3; color: var(--ink); }

@media (max-width: 1024px) {
  .sp-ov, .sp-ov--text, .sp-two { grid-template-columns: 1fr; }
  .sp-steps, .pj-list, .ins-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art { grid-template-columns: 1fr; }
  .art-side { position: static; }
}
@media (max-width: 640px) {
  .sp-benefits, .sp-list, .sp-steps, .pj-list, .ins-grid { grid-template-columns: 1fr; }
  .sp-benefits li { padding: 20px 0 0; border-left: 0; }
  .sp-benefits li + li { margin-top: 20px; border-top: 1px solid var(--rule); }
  .faq details p { padding-right: 0; }
  .art-body { font-size: 16.5px; }
}

/* ---------- Careers (careers.html, job.html; filled from the ERP by assets/js/careers.js) ---------- */
/* open roles: the index rows, with the role's department, place and type under its title */
.job-head { display: grid; gap: 6px; min-width: 0; }
.job-meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.job-meta:empty { display: none; }
.ix.job-row .ix-text { -webkit-line-clamp: 3; }
.jobs-list:not([hidden]) { animation: job-in 0.9s var(--ease) both; }
.jobs-state { display: grid; justify-items: start; gap: 18px; padding: 28px 0; border-top: 1px solid var(--rule-2); }
.jobs[data-state="ready"] .jobs-state { padding: 0; border: 0; }
.jobs[data-state="ready"] .jobs-msg { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jobs-msg { max-width: 36rem; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.jobs[data-state="loading"] .jobs-msg, .job-sec:not(.is-in) .jobs-msg { animation: job-pulse 1.6s ease-in-out infinite; }
.jobs-alt { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.jobs-alt[hidden] { display: none; }
button.tlink[hidden] { display: none; }
button.tlink { border: 0; padding: 0 0 4px; border-radius: 0; font: inherit; font-weight: 500; font-size: 15px; cursor: pointer; }
@keyframes job-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes job-pulse { 50% { opacity: 0.45; } }

/* one role: its title in the hero, facts beside the advert */
.job-title { opacity: 0; transition: opacity 0.6s var(--ease); }
.job-title.is-in, html:not(.js) .job-title { opacity: 1; }
.job-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(32px, 6vw, 112px); align-items: start; margin-top: clamp(24px, 3.5vh, 36px); }
.job-sec.is-in .job-grid { animation: job-in 0.9s var(--ease) both; }
.job-facts { margin: 0; border-top: 1px solid var(--rule-2); }
.job-facts[hidden] { display: none; }
.job-fact { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.job-fact dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.job-fact dd { margin: 0; font-family: var(--display); font-weight: 500; font-size: 18px; line-height: 1.35; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.job-body { display: grid; gap: 36px; grid-column: 2; }
.job-facts[hidden] + .job-body { grid-column: 1 / -1; }
.job-block-title { margin-bottom: 12px; font-family: var(--display); font-weight: 500; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.2; letter-spacing: -0.02em; }
.job-text { max-width: 42rem; white-space: pre-line; overflow-wrap: anywhere; font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }

/* the application form: the ERP's questions, in its sections */
.apply-side { display: grid; gap: 14px; }
.apply-for { display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--rule-2); }
.apply-for small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.apply-for strong { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2vw, 30px); line-height: 1.15; letter-spacing: -0.025em; }
.apply-for span { font-size: 14.5px; color: var(--ink-2); }
.apply-side .hint a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.apply-form { display: grid; gap: 40px; }
.apply-form[hidden] { display: none; }
.apply-fields { display: grid; gap: 48px; }
.apply-set { min-width: 0; margin: 0; padding: 0; border: 0; }
.apply-legend { display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 26px; padding-bottom: 12px; border-bottom: 1px solid var(--rule-2); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.apply-legend::before { content: ""; width: 7px; height: 7px; background: #30c1f8; }
.apply-help { margin: -12px 0 24px; }
.apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.apply-grid .field { align-content: start; }
@media (min-width: 1024px) { .apply-side { position: sticky; top: calc(var(--header-h) + 24px); } }
.field .req { color: #c81f3d; }
.field select {
  width: 100%; height: 48px; padding: 0 28px 0 0; border: 0; border-bottom: 1px solid var(--rule-2); border-radius: 0; appearance: none; cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23061423' stroke-width='1.6'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E") right 4px center no-repeat;
  color: var(--ink); font: 400 18px/1.5 var(--sans); transition: border-color 0.3s, box-shadow 0.3s;
}
.field select:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.field.is-invalid select { border-bottom-color: #c81f3d; }
.field--file input[type="file"] { height: auto; padding: 12px 0; border-bottom-style: dashed; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.field--file input[type="file"]::file-selector-button { margin-right: 16px; height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 500 14px/1 var(--sans); cursor: pointer; transition: background-color 0.3s; }
.field--file input[type="file"]:hover::file-selector-button { background: var(--cyan-ink); }
.field--check .check { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.5; color: var(--ink); text-transform: none; letter-spacing: 0; font-family: var(--sans); cursor: pointer; }
.field--check input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); cursor: pointer; }
.field--check.is-invalid .check { color: #c81f3d; }
.apply-form .btn[disabled] { opacity: 0.6; cursor: progress; }
.apply-form .status a { text-decoration: underline; text-underline-offset: 3px; }
.apply-done { display: grid; justify-items: start; gap: 16px; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--rule); border-radius: 16px; background: #fff; }
.apply-done[hidden] { display: none; }
.apply-done:focus { outline: none; }
.apply-done p { max-width: 34rem; font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }
.apply-done-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; }
.apply-done-mark .i { width: 20px; height: 20px; }
.apply-done-title { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; letter-spacing: -0.03em; }

@media (max-width: 1023px) {
  .job-grid { grid-template-columns: 1fr; }
  .job-body { grid-column: auto; }
  .job-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
}
@media (max-width: 760px) {
  .apply-grid { grid-template-columns: 1fr; }
  .job-facts { grid-template-columns: 1fr; }
  .field select { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .jobs-list:not([hidden]), .job-sec.is-in .job-grid { animation: none; }
  .jobs-msg { animation: none !important; }
}

/* ---------- Partners & Clients (partners.html): logo walls ---------- */
.lw-group + .lw-group { margin-top: clamp(48px, 7vh, 72px); }
.lw-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.lw-head::before { content: ""; width: 7px; height: 7px; background: #30c1f8; }
.lw-count { margin-left: auto; color: var(--ink-3); }
.lw-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); border-top: 1px solid var(--rule-2); border-left: 1px solid var(--rule); }
.lw-tile { display: grid; grid-template-rows: 1fr auto; align-items: center; justify-items: center; gap: 14px; min-height: 164px; padding: 24px 20px 16px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: transparent; transition: background-color 0.4s var(--ease); }
.lw-tile:hover { background: #fff; }
.lw-logo { display: grid; place-items: center; width: 100%; height: 72px; }
.lw-logo img { display: block; width: auto; height: auto; max-width: 90%; transition: transform 0.6s var(--ease); }
.lw-tile:hover .lw-logo img { transform: scale(1.04); }
.lw-name { font-family: var(--mono); font-size: 10.5px; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; text-align: center; color: var(--ink-3); transition: color 0.3s; }
.lw-tile:hover .lw-name { color: var(--ink); }
.lw-tile--name { grid-template-rows: 1fr; }
.lw-word { font-family: var(--display); font-weight: 600; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.2; letter-spacing: -0.02em; text-align: center; text-wrap: balance; color: var(--ink); opacity: 0.7; transition: opacity 0.3s; }
.lw-tile--name:hover .lw-word { opacity: 1; }
@media (max-width: 760px) {
  .lw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lw-tile { min-height: 132px; padding: 18px 12px 12px; gap: 10px; }
  .lw-logo { height: 56px; }
  .lw-logo img { transform: scale(0.82); }
}
/* a client whose only logo is white sits on navy */
.lw-tile--dark, .lw-tile--dark:hover { background: var(--deep); }
.lw-tile--dark .lw-name, .lw-tile--dark:hover .lw-name { color: rgba(255, 255, 255, 0.72); }
/* home: the clients row, as logos (a little taller than the partner rows); a white logo sits on navy */
.mq--client-logos li { height: 80px; }
.mq--logos .mq-logo--dark { height: auto; margin: 0 clamp(10px, 1.2vw, 18px); padding: 12px 18px; border-radius: 10px; background: var(--deep); }
@media (max-width: 760px) { .mq--client-logos li { height: 64px; } }

/* ---------- Quality & QHSE (quality.html) ---------- */
.qh-policy { max-width: 46rem; font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.1vw, 32px); line-height: 1.3; letter-spacing: -0.02em; text-wrap: pretty; color: var(--ink); }
.qh-ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-2); }
.qh-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 4fr) minmax(0, 2fr); gap: 16px 40px; align-items: start; padding: 32px 0; border-bottom: 1px solid var(--rule); }
.qh-num { font-family: var(--display); font-weight: 500; font-size: clamp(32px, 2.7vw, 44px); line-height: 0.9; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.qh-num span { display: block; margin-top: 12px; font-family: var(--mono); font-weight: 400; font-size: 11.5px; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.qh-copy h3 { margin-bottom: 6px; font-size: 17px; font-weight: 600; color: var(--ink); }
.qh-copy p { max-width: 34rem; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.qh-meta { font-family: var(--mono); font-size: 11px; line-height: 1.7; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }
/* each standard's certificate: a small preview with its number and validity, opening the PDF */
.qh-cert { justify-self: end; display: grid; grid-template-columns: 96px auto; gap: 6px 18px; align-items: start; color: var(--ink); }
.qh-cert img { grid-row: span 2; width: 96px; height: auto; border-radius: 4px; background: #fff; box-shadow: 0 0 0 1px var(--rule), 0 14px 28px -18px rgba(11, 27, 43, 0.45); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.qh-go { align-self: end; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; transition: color 0.3s, gap 0.3s var(--ease); }
.qh-go .i { width: 14px; height: 14px; }
.qh-cert:hover img { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--rule-2), 0 22px 36px -18px rgba(11, 27, 43, 0.5); }
.qh-cert:hover .qh-go { color: var(--cyan-ink); gap: 9px; }
.qh-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--rule-2); }
.qh-list li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.qh-list li span { flex: none; padding-top: 3px; font-family: var(--mono); font-size: 12px; color: var(--cyan-ink); }
@media (max-width: 860px) {
  .qh-row { grid-template-columns: 1fr; gap: 14px; }
  .qh-cert { justify-self: start; grid-template-columns: 72px auto; }
  .qh-cert img { width: 72px; }
  .qh-list { grid-template-columns: 1fr; }
}
/* the ISO credentials lines link to quality.html */
.sp-trust a { display: inline-flex; align-items: center; gap: 10px; transition: color 0.3s; }
.sp-trust a:hover, .fact-certs a:hover { color: var(--cyan-ink); }
.fact-certs a { transition: color 0.3s; }

/* ---------- Certifications (certifications.html, the home page's certificates row) ---------- */
/* one ISO certificate: its preview opens the PDF */
.cert-card { display: grid; align-content: start; gap: 6px; color: var(--ink); }
.cert-img { display: block; margin-bottom: 14px; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--rule), 0 18px 36px -24px rgba(11, 27, 43, 0.5); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.cert-img img { display: block; width: 100%; height: auto; }
.cert-card:hover .cert-img { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--rule-2), 0 28px 44px -24px rgba(11, 27, 43, 0.55); }
.cert-std { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan-ink); }
.cert-name { font-size: 17px; font-weight: 600; line-height: 1.3; }
.cert-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }
.cert-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; font-weight: 500; transition: color 0.3s, gap 0.3s var(--ease); }
.cert-go .i { width: 14px; height: 14px; }
.cert-card:hover .cert-go { color: var(--cyan-ink); gap: 9px; }
.cert-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.cert-scope { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px clamp(24px, 4vw, 64px); margin-top: clamp(40px, 6vh, 64px); padding-top: 24px; border-top: 1px solid var(--rule); }
.cert-scope-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.cert-scope p:last-child { max-width: 52rem; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
/* the approved ICV and ADNOC lockup (ADNOC ICV guidelines 2026): blue artwork on white, at least 120px tall, with
   clear space around it equal to the height of the falcon (about 54px at this size) */
.icv-lockup { display: grid; place-items: center; padding: 56px; border-radius: 10px; background: #fff; }
.icv-lockup img { width: auto; height: 120px; max-width: none; }
.cert-icv { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px clamp(40px, 6vw, 96px); align-items: center; }
.cert-icv-copy { display: grid; gap: 16px; }
.cert-icv-copy p { max-width: 34rem; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.cert-icv-copy .sp-trust { margin-top: 12px; }
/* home: three certificates and the ICV lockup in one row */
@media (max-width: 1023px) {
  .cert-icv, .cert-scope { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cert-grid { grid-template-columns: 1fr; max-width: 360px; }
  .icv-lockup { padding: 48px 12px; }
}

/* home: the certificates as one stack that fans out, beside a quiet band of the standards' numbers and the ICV
   lockup; pointing at a number lifts its paper out of the stack */
.cx-links { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.cx { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px clamp(48px, 6vw, 96px); align-items: center; }
.cx-stack { position: relative; height: 460px; }
.cx-paper { position: absolute; left: 50%; top: 50%; width: 220px; margin: -156px 0 0 -110px; border-radius: 5px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--rule), 0 30px 50px -28px rgba(11, 27, 43, 0.55); transition: transform 0.8s var(--ease), box-shadow 0.8s var(--ease); }
.cx-paper img { display: block; width: 100%; height: auto; }
.cx-paper[data-i="0"] { transform: translateX(-100px) rotate(-7deg); }
.cx-paper[data-i="1"] { z-index: 2; transform: translateY(-10px); }
.cx-paper[data-i="2"] { transform: translateX(100px) rotate(7deg); }
.cx-stack:hover .cx-paper[data-i="0"] { transform: translateX(-150px) rotate(-4deg); }
.cx-stack:hover .cx-paper[data-i="2"] { transform: translateX(150px) rotate(4deg); }
.cx-paper:hover { z-index: 3; box-shadow: 0 0 0 1px var(--rule-2), 0 40px 60px -26px rgba(11, 27, 43, 0.6); }
.cx:has(.cx-item[data-i="0"]:hover) .cx-paper[data-i="0"] { z-index: 3; transform: translate(-120px, -28px) rotate(-3deg) scale(1.05); }
.cx:has(.cx-item[data-i="1"]:hover) .cx-paper[data-i="1"] { z-index: 3; transform: translateY(-36px) scale(1.05); }
.cx:has(.cx-item[data-i="2"]:hover) .cx-paper[data-i="2"] { z-index: 3; transform: translate(120px, -28px) rotate(3deg) scale(1.05); }
.cx:has(.cx-item:hover) .cx-paper { box-shadow: 0 0 0 1px var(--rule), 0 24px 40px -28px rgba(11, 27, 43, 0.4); }
.cx-band { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule); }
.cx-band li + li { border-left: 1px solid var(--rule); }
.cx-item { display: grid; align-content: space-between; gap: 10px; height: 100%; min-height: 220px; padding: 22px 24px 20px; color: var(--ink); transition: background-color 0.4s; }
.cx-band li:first-child .cx-item { padding-left: 0; }
.cx-std { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan-ink); }
.cx-num { margin-top: 22px; font-family: var(--display); font-weight: 500; font-size: clamp(32px, 2.7vw, 44px); line-height: 0.9; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.cx-name { font-size: 15px; color: var(--ink-2); }
.cx-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; font-weight: 500; transition: color 0.3s, gap 0.3s var(--ease); }
.cx-go .i { width: 14px; height: 14px; }
.cx-item:hover .cx-go, .cx-item:focus-visible .cx-go { color: var(--cyan-ink); gap: 9px; }
/* the ICV and ADNOC lockup: the blue artwork on white (its ADNOC mark has white knockouts, so it sits on a white
   panel rather than the paper), 120px tall, with nothing within the falcon's height (about 54px) of it */
.cx-icv { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 56px; margin-top: 40px; padding: 32px 40px; border-radius: 10px; background: #fff; }
.cx-icv img { display: block; width: auto; height: 120px; max-width: none; }
.cx-icv p { max-width: 20rem; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 900px) {
  .cx { grid-template-columns: 1fr; gap: 24px; }
  .cx-stack { height: 330px; }
  .cx-paper { width: 160px; margin: -113px 0 0 -80px; }
  .cx-paper[data-i="0"], .cx-stack:hover .cx-paper[data-i="0"] { transform: translateX(-80px) rotate(-6deg); }
  .cx-paper[data-i="2"], .cx-stack:hover .cx-paper[data-i="2"] { transform: translateX(80px) rotate(6deg); }
  .cx-item { min-height: 0; padding: 16px 12px 16px; }
  .cx-num { margin-top: 14px; font-size: 32px; }
  .cx-std { font-size: 9.5px; letter-spacing: 0.03em; }
  .cx-name { font-size: 13px; }
  .cx-go { font-size: 12.5px; }
  .cx-icv { margin-top: 32px; padding: 28px 20px; flex-direction: column; align-items: flex-start; }
}

/* careers: the line under the open roles that points to the LinkedIn job listings */
.jobs-li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--ink-2); }
.jobs-li > .i { width: 20px; height: 20px; color: #0a66c2; }
.jobs-li > span { margin-right: auto; }

/* ---------- Home: latest from LinkedIn. A featured story with a collage of its photos, and beside it every other
   post as a headline; the headlines drift slowly upwards in a loop and pause while pointed at ---------- */
.news-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(32px, 4vw, 64px); align-items: start; }
.news-feature { display: grid; gap: 16px; color: var(--ink); }
.news-collage { display: grid; gap: 8px; }
.news-collage > span { overflow: hidden; border-radius: 8px; background: var(--deep); }
.news-collage img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.news-feature:hover .news-collage img { transform: scale(1.03); }
.news-collage--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(4, clamp(64px, 6.6vw, 100px)); }
.news-collage--5 > :nth-child(1) { grid-column: 1 / 4; grid-row: 1 / 5; }
.news-collage--5 > :nth-child(2) { grid-column: 4 / 6; grid-row: 1 / 3; }
.news-collage--5 > :nth-child(3) { grid-column: 6 / 7; grid-row: 1 / 3; }
.news-collage--5 > :nth-child(4) { grid-column: 4 / 5; grid-row: 3 / 5; }
.news-collage--5 > :nth-child(5) { grid-column: 5 / 7; grid-row: 3 / 5; }
.news-collage--1 > span { aspect-ratio: 16 / 10; }
.news-kicker { margin-top: 6px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan-ink); }
.news-title { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2vw, 32px); line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.news-text { max-width: 40rem; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.news-go { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; transition: color 0.3s, gap 0.3s var(--ease); }
.news-go .i { width: 15px; height: 15px; }
.news-feature:hover .news-go { color: var(--cyan-ink); gap: 11px; }
.nw-list { border-top: 1px solid var(--rule-2); }
.nw-list--loop { position: relative; height: clamp(440px, 40vw, 600px); overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 90%, transparent); mask-image: linear-gradient(180deg, transparent, #000 8%, #000 90%, transparent); }
.nw-list--loop .nw-track { animation: nw-up 60s linear infinite; }
.nw-list--loop:hover .nw-track, .nw-list--loop:focus-within .nw-track { animation-play-state: paused; }
html.reduce .nw-list--loop .nw-track { animation-duration: 120s; }
@keyframes nw-up { to { transform: translateY(-50%); } }
.nw-item { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--rule); color: var(--ink); }
.nw-img { display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--deep); color: #fff; }
.nw-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.nw-item:hover .nw-img img { transform: scale(1.05); }
.nw-body { display: grid; gap: 6px; }
.nw-date { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.nw-title { font-size: 15.5px; font-weight: 600; line-height: 1.3; transition: color 0.3s; }
.nw-item:hover .nw-title, .nw-item:focus-visible .nw-title { color: var(--cyan-ink); }
.nw-text { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1023px) { .news-grid { grid-template-columns: 1fr; } .nw-list--loop { height: 420px; } }
@media (max-width: 640px) { .news-collage--5 { grid-template-rows: repeat(4, 64px); } .nw-item { grid-template-columns: 84px minmax(0, 1fr); } }
/* the post shown in full on the left (news.js) */
.news-feature { transition: opacity 0.16s ease; }
.news-feature.is-swapping { opacity: 0; }
.news-collage { color: inherit; }
.news-text p + p, .news-text p + .news-tags { margin-top: 12px; }
.news-text--full { max-width: 44rem; }
.news-text a { color: var(--cyan-ink); text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
.news-tags { font-size: 13.5px; color: var(--cyan-ink); }
.news-title { margin: 0; }
.news-kicker { margin: 6px 0 0; }
.nw-item.is-on { background: linear-gradient(90deg, rgba(4, 121, 168, 0.06), transparent 70%); }
.nw-item.is-on .nw-title { color: var(--cyan-ink); }
.nw-item.is-on .nw-img { box-shadow: 0 0 0 2px var(--cyan-ink); }
.news-single { display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: var(--deep); }
.news-single img { display: block; width: auto; max-width: 100%; height: auto; max-height: 440px; }
/* desktop: the moving list is exactly as tall as the post beside it */
.nw-col { position: relative; min-height: 440px; }
.nw-col .nw-list--loop { position: absolute; inset: 0; height: auto; }
@media (max-width: 1023px) {
  .nw-col { min-height: 0; }
  .nw-col .nw-list--loop { position: relative; inset: auto; height: 420px; }
}
/* the post on the left has a fixed height: the picture, date and title stay, and a long text scrolls inside it */
.news-grid { align-items: stretch; }
.news-feature { display: flex; flex-direction: column; gap: 16px; height: clamp(600px, 49vw, 700px); }
.news-feature > * { flex: none; }
.news-feature > .news-text { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 12px; scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent; }
.news-feature > .news-text::-webkit-scrollbar { width: 6px; }
.news-feature > .news-text::-webkit-scrollbar-thumb { border-radius: 3px; background: var(--rule-2); }
.news-single img { max-height: 320px; }
.nw-col { align-self: stretch; }
@media (max-width: 1023px) { .news-feature { height: 640px; } }
/* a hint that a long post carries on: its last lines fade out until it is scrolled to the end (news.js) */
.news-text--full.is-more { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 48px), transparent); }
