/* Veldharma — custom layer on top of Tailwind (tokens from DESIGN.md) */
:root {
  --navy: #061A37;
  --corp-blue: #0878C9;
  --bright-blue: #2D91E8;
  --orange: #FF6A00;
  --header-h: 72px;
}

/* Sharp, architectural geometry everywhere: no rounded corners or pills */
*, *::before, *::after { border-radius: 0 !important; }

html { scroll-padding-top: var(--header-h); scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
body { background: #F5F7FA; }
/* Text cursor and blinking caret only where you can type */
body { cursor: default; }
:where(body *):not(input):not(textarea):not(select):not([contenteditable]) { caret-color: transparent; }
input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]), textarea, [contenteditable] { cursor: text; caret-color: auto; }
a, button, label, select, summary, [role="button"], input[type="radio"], input[type="checkbox"] { cursor: pointer; }
button:disabled { cursor: wait; }

/* Lenis smooth scroll (from lenis.css, minus its iframe rule so the map stays interactive) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

:focus-visible { outline: 2px solid var(--corp-blue); outline-offset: 2px; }
html.dark :focus-visible { outline-color: var(--bright-blue); }
[tabindex="-1"]:focus { outline: none; } /* sections focused by in-page links */

/* Icons: Phosphor duotone symbols from assets/img/icons.svg, sized by font-size like a glyph (text-[22px] etc.) */
.ph { display: inline-block; width: 1em; height: 1em; flex: none; fill: currentColor; vertical-align: -.125em; }
:where(.ph) { font-size: 24px; }

/* ---------- Cards (DESIGN.md elevation levels) ---------- */
.card {
  background: #fff;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 3px 0 rgba(6, 26, 55, .04), 0 4px 12px 0 rgba(6, 26, 55, .03);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.card-interactive:hover {
  border-color: var(--bright-blue);
  box-shadow: 0 8px 24px -4px rgba(6, 26, 55, .08), 0 2px 6px -1px rgba(6, 26, 55, .04);
  transform: translateY(-3px);
}
.shadow-l3 { box-shadow: 0 20px 32px -8px rgba(6, 26, 55, .14), 0 8px 16px -4px rgba(6, 26, 55, .06); }

/* Form fields per DESIGN.md */
.field {
  width: 100%; min-height: 44px; padding: 0 1rem;
  border: 1px solid #E2E8F0; background: #fff;
  font: 400 15px/24px Montserrat, sans-serif; color: #1E293B;
  transition: border-color .15s, box-shadow .15s;
}
textarea.field { padding: .75rem 1rem; }
.phone-field { display: flex; gap: 8px; }
.phone-field .phone-code { width: 116px; flex: 0 0 116px; padding-left: 10px; padding-right: 4px; }
.phone-field .phone-number { flex: 1; min-width: 0; }
/* Contact form uses slightly smaller type */
#contact .field, .quote-popup .field { font-size: 14px; line-height: 22px; min-height: 42px; }
#contact .field-error, .quote-popup .field-error { font-size: 12px; }
.field:focus { outline: none; border-color: var(--corp-blue); box-shadow: 0 0 0 1px var(--corp-blue), 0 0 0 4px rgba(8, 120, 201, .15); }
.field:user-invalid, .field[aria-invalid="true"] { border-color: #DC2626; }
/* Spam trap: invisible to people, filled in by bots */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Scroll reveal ---------- */
/* Arriving at a section from another page: the page stays hidden until site.js has positioned it.
   The delayed animation is a safety net so content always shows even if the script fails. */
html.arriving body { opacity: 0; animation: arrive-fallback 0s 2.5s forwards; }
@keyframes arrive-fallback { to { opacity: 1; } }
body { transition: opacity .3s ease; }

/* Blocks fade up as they scroll into view (site.js adds .is-visible; --d staggers neighbours).
   An animation on `translate`, not a transition on `transform`, so it never fights the cards' own
   hover tilt, stacking scale or transitions. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal]:not(.is-visible) { opacity: 0; }
  .js [data-reveal].is-visible { animation: reveal-up .8s cubic-bezier(.16, 1, .3, 1) var(--d, 0s) both; }
}
@keyframes reveal-up { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: none; } }

/* ---------- Header ---------- */
.site-header { transition: box-shadow .3s ease; }
.site-header.is-scrolled { box-shadow: 0 1px 3px 0 rgba(6,26,55,.04), 0 4px 12px 0 rgba(6,26,55,.03); }
.nav-link { position: relative; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--corp-blue); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--corp-blue); }
/* visibility keeps closed menu links out of the Tab order */
.dropdown { opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
#services-wrap:hover .dropdown, .dropdown.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
#services-wrap:hover .chev, #services-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.chev { transition: transform .2s ease; }

/* ---------- Services index ---------- */
.svc-row { position: relative; transition: background-color .25s ease, transform .1s ease; }
.svc-row::before {
  content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 3px;
  background: var(--corp-blue); transform: scaleY(0); transform-origin: top; transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.svc-row:hover::before, .svc-row:focus-visible::before { transform: scaleY(1); }
.svc-arrow { transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.svc-row:hover .svc-arrow, .svc-row:focus-visible .svc-arrow { transform: translate(4px, -4px); }
.svc-row:hover .svc-num { color: var(--corp-blue); }
.svc-row:active, .btn-press:active { transform: translateY(1px); }
.svc-num { font-variant-numeric: tabular-nums; transition: color .25s ease; }
html.dark .svc-row::before { background: var(--bright-blue); }
html.dark .svc-row:hover .svc-num { color: var(--bright-blue); }

/* ---------- Services bento ---------- */
.bento-cell { transition: background-color .25s ease, transform .1s ease; }
.bento-cell:active { transform: translateY(1px); }
.bento-arrow { transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.bento-cell:hover .bento-arrow, .bento-cell:focus-visible .bento-arrow { transform: translate(4px, -4px); }
.bento-img { transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
.bento-cell:hover .bento-img { transform: scale(1.04); }
.bento-cell:focus-visible { outline-offset: -4px; }
@media (prefers-reduced-motion: reduce) { .bento-img, .bento-arrow { transition: none; } }
/* 3D tilt: site.js sets --rx/--ry (tilt), --px/--py (-1..1, pointer offset) and --gx/--gy (glare spot).
   Layers move by different amounts so the card reads as depth: icons nearest, text middle, photo furthest. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .bento-cell, .bento-cell:active { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--s, 1));
    transition: background-color .25s ease, transform .6s cubic-bezier(.16, 1, .3, 1), box-shadow .6s ease; }
  .bento-cell.is-tilting { --s: 1.02; z-index: 2; box-shadow: 0 28px 50px -22px rgba(6, 26, 55, .45);
    transition: background-color .25s ease, transform .15s ease-out, box-shadow .6s ease; }
  .bento-cell.is-tilting:active { --s: 1.005; }
  .bento-near, .bento-mid { transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
  .bento-cell.is-tilting .bento-near { transform: translate(calc(var(--px, 0) * 7px), calc(var(--py, 0) * 7px)); transition-duration: .15s; }
  .bento-cell.is-tilting .bento-mid { transform: translate(calc(var(--px, 0) * 3px), calc(var(--py, 0) * 3px)); transition-duration: .15s; }
  .bento-cell.is-tilting .bento-img { transform: scale(1.08) translate(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -10px)); }
  .bento-cell::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s ease;
    background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .16), transparent 55%); }
  .bento-cell.is-tilting::after { opacity: 1; }
  html.dark .bento-cell.is-tilting { box-shadow: 0 28px 50px -22px rgba(0, 0, 0, .7); }
}
/* Short laptop screens (e.g. 1366x768): keep the whole grid in one view */
@media (min-width: 1024px) and (max-height: 899px) {
  #services { padding-top: 2.5rem; padding-bottom: 3.5rem; }
  #services .bento-cell { min-height: 0; padding-top: 1.25rem; padding-bottom: 1.25rem; }
  #services .bento-cell:not(.bento-feature) .bento-desc { display: none; }
}

/* ---------- Text links with arrow, industry panels ---------- */
.link-arrow .ph { transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.link-arrow:hover .ph { transform: translate(3px, -3px); }


/* ---------- WhatsApp bubble ---------- */
.wa-bubble {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 40;
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff; box-shadow: 0 10px 24px -6px rgba(6, 26, 55, .35);
  border-radius: 50% !important; /* the one round element: overrides the site-wide square corners */
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), background-color .2s ease;
}
.wa-bubble:hover { transform: translateY(-3px); background: #1ebe5b; }
.wa-bubble:active { transform: translateY(0); }
.wa-bubble:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
html.dark .wa-bubble:focus-visible { outline-color: #fff; }
@media (min-width: 1024px) { .wa-bubble { right: 2rem; bottom: 2rem; } }
@media print { .wa-bubble { display: none; } }

/* ---------- Footer reveal: page content slides up off a footer pinned to the bottom ---------- */
@media (min-width: 1024px) and (min-height: 700px) {
  main { position: relative; z-index: 1; background: #F5F7FA; box-shadow: 0 24px 48px -24px rgba(6, 26, 55, .35); }
  html.dark main { background: #050d1c; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .8); }
  .site-footer { position: sticky; bottom: 0; z-index: 0; }
}

/* ---------- Phones ---------- */
@media (max-width: 639px) {
  /* Services: compact 2-up tiles, title only (the service page has the detail) */
  #services .bento-cell { min-height: 0; padding: 1rem; gap: 1.25rem; }
  #services .bento-feature { min-height: 240px; }
  #services .bento-cell:not(.bento-feature) .bento-desc { display: none; }
  #services .bento-cell:not(.bento-feature) .font-display { font-size: 17px; line-height: 1.3; }
  /* Footer links get comfortable tap height */
  .site-footer li a { display: inline-block; padding: .35rem 0; }
}

/* ---------- Map: page scroll passes over it until the visitor clicks to use it ---------- */
.map-wrap iframe { pointer-events: none; }
.map-wrap.is-active iframe { pointer-events: auto; }
.map-shield {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 1rem; background: transparent; border: 0; cursor: pointer;
}
.map-shield span {
  padding: .5rem .9rem; background: rgba(6, 26, 55, .85); color: #fff;
  font: 600 13px Montserrat, sans-serif; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s;
}
.map-shield:hover span, .map-shield:focus-visible span { opacity: 1; transform: none; }
.map-wrap.is-active .map-shield { display: none; }
@media (hover: none) { .map-shield span { opacity: 1; transform: none; } }

/* ---------- Hero: background video ---------- */
.hero { position: relative; background: var(--navy); }
.hero-sticky { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; }
.hero-video { position: absolute; inset: 0; }
.hero-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 26, 55, .92) 0%, rgba(6, 26, 55, .78) 30%, rgba(6, 26, 55, .25) 60%, rgba(6, 26, 55, 0) 80%),
    linear-gradient(180deg, rgba(6, 26, 55, .45) 0%, transparent 28%, transparent 72%, rgba(6, 26, 55, .75) 100%);
}
.hero-content { position: relative; z-index: 2; }


@media (max-width: 767px) {
  .hero-shade { background: linear-gradient(180deg, rgba(6, 26, 55, .88) 0%, rgba(6, 26, 55, .7) 55%, rgba(6, 26, 55, .35) 80%, rgba(6, 26, 55, .8) 100%); }
}

/* ---------- Dark theme ---------- */
html.dark { color-scheme: dark; }
html.dark body { background: #050d1c; color: #e2e8f0; }
html.dark .card { background: #0c1c36; border-color: rgba(255, 255, 255, .08); box-shadow: none; }
html.dark .card-interactive:hover { border-color: var(--bright-blue); box-shadow: 0 8px 24px -4px rgba(0, 0, 0, .45); }
html.dark .shadow-l3 { box-shadow: 0 20px 32px -8px rgba(0, 0, 0, .5); }
html.dark .field { background: #08152a; border-color: rgba(255, 255, 255, .12); color: #e2e8f0; }
html.dark .field::placeholder { color: #64748B; }
html.dark .site-header.is-scrolled { box-shadow: 0 4px 12px 0 rgba(0, 0, 0, .4); }
html.dark .nav-link.is-active { color: var(--bright-blue); }
html.dark .nav-link::after { background: var(--bright-blue); }
/* Navy blocks get an edge so they separate from the dark page */
html.dark .bg-navy { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }


@media (prefers-reduced-motion: reduce) {
  .card-interactive:hover { transform: none; }
}


/* ---------- About: "How we work" video scrubbed by scroll, steps as stops on a route ---------- */
.hww-grid { display: grid; gap: 16px; grid-template-areas: "label" "media" "route"; }
.hww-label { grid-area: label; display: flex; align-items: center; gap: 12px; color: #061A37; }
.hww-label::before { content: ''; inline-size: 32px; block-size: 2px; background: #0878C9; }
html.dark .hww-label { color: #fff; }
html.dark .hww-label::before { background: #2D91E8; }
.hww-media { grid-area: media; }
.hww-route { grid-area: route; position: relative; }
@media (min-width: 1024px) {
  /* Video on the left; the label sits above the route on the right */
  .hww-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); grid-template-areas: "media label" "media route";
    column-gap: 48px; row-gap: 20px; align-content: center; }
  .hww-media { align-self: center; }
  .hww-label { align-self: end; }
}
.hww-map { position: absolute; left: 0; top: 0; width: 60px; height: 100%; overflow: visible; }
.hww-road { fill: none; stroke: #CBD5E1; stroke-width: 2; stroke-dasharray: 6 7; vector-effect: non-scaling-stroke; }
.hww-done { fill: none; stroke: #0878C9; stroke-width: 3; vector-effect: non-scaling-stroke; }
html.dark .hww-road { stroke: rgba(255, 255, 255, .22); }
html.dark .hww-done { stroke: #2D91E8; }
.hww-steps { display: grid; grid-auto-rows: minmax(84px, auto); }
@media (min-width: 1024px) { .hww-steps { grid-template-rows: repeat(4, 1fr); height: 440px; } }
.hww-step { position: relative; display: flex; align-items: center; padding: 8px 0 8px 64px; }
.hww-stop { position: absolute; left: 23px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: #0878C9; border: 2px solid #0878C9;
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease; }
html.dark .hww-stop { background: #2D91E8; border-color: #2D91E8; }
.hww-num { display: block; color: #0878C9; }
html.dark .hww-num { color: #2D91E8; }
.hww-title { color: #061A37; margin-top: 2px; transition: color .3s ease; }
html.dark .hww-title { color: #fff; }
.hww-desc { margin-top: 4px; transition: opacity .3s ease; }
.hww-truck { display: none; }
/* Scrub mode (JS on, motion allowed): the section pins while the video and the truck follow the scroll */
.hww.is-scrub { height: 320vh; }
.hww.is-scrub .hww-sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); display: flex; align-items: center; }
.hww.is-scrub .hww-step:not(.is-active):not(.is-done) .hww-stop { background: #fff; border-color: #CBD5E1; }
html.dark .hww.is-scrub .hww-step:not(.is-active):not(.is-done) .hww-stop { background: #050d1c; border-color: rgba(255, 255, 255, .3); }
.hww.is-scrub .hww-step.is-active .hww-stop { box-shadow: 0 0 0 6px rgba(8, 120, 201, .18); }
.hww.is-scrub .hww-step:not(.is-active) .hww-title { color: #5B6A82; }
html.dark .hww.is-scrub .hww-step:not(.is-active) .hww-title { color: #94a3b8; }
.hww.is-scrub .hww-step:not(.is-active) .hww-desc { opacity: .55; }
.hww.is-scrub .hww-truck { display: flex; position: absolute; left: 0; top: 0; z-index: 1; width: 32px; height: 32px; align-items: center; justify-content: center;
  background: #FF6A00; color: #fff; box-shadow: 0 8px 18px -6px rgba(6, 26, 55, .45); will-change: transform; }
.hww-truck .ph { font-size: 20px; }
/* ---------- Industries: stacking cards. Each card sticks a little lower than the last, so they pile up like a dealt deck;
   site.js shrinks and dims the cards underneath (--s, --dim) as later ones slide over them. ---------- */
.ind-stack { display: flex; flex-direction: column; gap: 24px; }
.ind-card { position: sticky; top: calc(var(--header-h) + 16px + var(--i) * 10px); background: #fff; border: 1px solid #E2E8F0; border-top: 3px solid #0878C9;
  box-shadow: 0 -18px 40px -30px rgba(6, 26, 55, .4); transform-origin: 50% 0; transform: scale(var(--s, 1)); display: flex; flex-direction: column; }
.ind-card > div { flex: 1; }
@media (min-width: 1024px) {
  .ind-card { top: calc(var(--header-h) + 32px + var(--i) * 16px); min-height: 340px; }
  .ind-card .ind-num { top: auto; right: auto; bottom: 22px; left: 36px; } /* empty corner under the description */
}
html.dark .ind-card { background: #08152a; border-color: rgba(255, 255, 255, .1); border-top-color: #2D91E8; box-shadow: 0 -18px 40px -26px rgba(0, 0, 0, .8); }
.ind-card::after { content: ''; position: absolute; inset: 0; background: #061A37; opacity: var(--dim, 0); pointer-events: none; }
.ind-num { position: absolute; top: 18px; right: 24px; font-family: Montserrat, Arial, sans-serif; font-weight: 800; font-size: clamp(52px, 6vw, 104px);
  line-height: 1; letter-spacing: -.04em; color: #EEF2F7; pointer-events: none; }
html.dark .ind-num { color: rgba(255, 255, 255, .05); }
/* Industry illustrations (tools/build_illustrations.py): flat isometric blocks, faces coloured per theme */
.ind-art { align-self: flex-end; width: min(100%, 230px); }
.ind-art .iso { display: block; width: 100%; height: auto; max-height: 170px; }
.iso .gt { fill: #EEF2F7; } .iso .gl { fill: #E2E8F0; } .iso .gr { fill: #D5DDE8; }
.iso .bt { fill: #CFE3FA; } .iso .bl { fill: #2D91E8; } .iso .br { fill: #0878C9; }
.iso .nt { fill: #1E3A5F; } .iso .nl { fill: #0B2447; } .iso .nr { fill: #061A37; }
.iso .ot { fill: #FFB27A; } .iso .ol { fill: #FF8A33; } .iso .or { fill: #FF6A00; }
.iso .wt { fill: #FFFFFF; } .iso .wl { fill: #DCE6F3; } .iso .wr { fill: #BFD0E6; }
.iso .at { fill: #8EC5F2; } .iso .al { fill: #5AA8EE; } .iso .ar { fill: #2D91E8; }
.iso .wn { fill: #2D91E8; } .iso .wb { fill: rgba(255, 255, 255, .55); }
html.dark .iso .gt { fill: #10233f; } html.dark .iso .gl { fill: #0c1c36; } html.dark .iso .gr { fill: #0a1830; }
html.dark .iso .nt { fill: #2a4a75; } html.dark .iso .nl { fill: #163256; } html.dark .iso .nr { fill: #0f2442; }
html.dark .iso .wt { fill: #c8d6ea; } html.dark .iso .wl { fill: #9fb3cf; } html.dark .iso .wr { fill: #7f95b5; }
/* Privacy policy text */
.prose-legal a { color: #0878C9; text-decoration: underline; text-underline-offset: 3px; }
.prose-legal strong { color: #061A37; font-weight: 600; }
html.dark .prose-legal a { color: #2D91E8; }
html.dark .prose-legal strong { color: #fff; }
/* Quote popup (<dialog>, opened by site.js): centred card on wide screens, bottom sheet on phones */
.quote-popup { width: min(680px, calc(100% - 32px)); max-width: none; max-height: min(88vh, 900px); margin: auto; padding: 0; border: 0;
  background: #fff; color: inherit; overflow-y: auto; overscroll-behavior: contain; contain: paint; box-shadow: 0 24px 48px -16px rgba(6, 26, 55, .5); }
html.dark .quote-popup { background: #08152a; box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.quote-popup::backdrop { background: rgba(6, 26, 55, .62); } /* no blur: blurring the video behind re-renders every frame */
@media (max-width: 639px) { .quote-popup { width: 100%; max-height: 92svh; margin: auto 0 0; } }
@media (prefers-reduced-motion: no-preference) {
  .quote-popup[open] { animation: popup-in .32s cubic-bezier(.16, 1, .3, 1); }
  .quote-popup[open]::backdrop { animation: popup-fade .2s ease; }
}
@keyframes popup-in { from { opacity: 0; translate: 0 32px; } }
@keyframes popup-fade { from { opacity: 0; } }
/* Mobile menu: side drawer (<dialog>) sliding in from the right; white in light mode, ink in dark mode */
.menu-drawer { margin: 0 0 0 auto; padding: 0; border: 0; width: min(380px, 88vw); max-width: none; height: 100vh; height: 100dvh; max-height: none;
  background: #fff; color: #061A37; overflow-y: auto; overscroll-behavior: contain; box-shadow: -24px 0 48px -24px rgba(6, 26, 55, .35); }
html.dark .menu-drawer { background: #08152a; color: #fff; box-shadow: inset 1px 0 0 rgba(255, 255, 255, .08); }
.menu-drawer::backdrop { background: rgba(6, 26, 55, .55); }
@media (prefers-reduced-motion: no-preference) {
  .menu-drawer[open] { animation: drawer-in .35s cubic-bezier(.16, 1, .3, 1); }
  .menu-drawer[open]::backdrop { animation: popup-fade .25s ease; }
}
@keyframes drawer-in { from { translate: 100% 0; } }
.menu-link { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 15px 0; cursor: pointer; list-style: none;
  font: 600 20px/1.3 Montserrat, Arial, sans-serif; color: #061A37; border-bottom: 1px solid #E2E8F0; transition: color .2s ease; }
.menu-link:hover, .menu-link:focus-visible { color: #0878C9; }
html.dark .menu-link { color: #fff; border-bottom-color: rgba(255, 255, 255, .1); }
html.dark .menu-link:hover, html.dark .menu-link:focus-visible { color: #2D91E8; }
button.menu-link { text-align: left; }
.menu-group .ph { transition: rotate .35s cubic-bezier(.16, 1, .3, 1); }
.menu-group.is-open .ph { rotate: 180deg; }
/* Services list opens by growing its grid row from 0 to its natural height, so it animates both ways */
.menu-sub-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.16, 1, .3, 1); }
.menu-group.is-open .menu-sub-wrap { grid-template-rows: 1fr; }
.menu-sub-list { overflow: hidden; min-height: 0; }
.menu-group.is-open .menu-sub-list { border-bottom: 1px solid #E2E8F0; padding-bottom: 12px; }
html.dark .menu-group.is-open .menu-sub-list { border-bottom-color: rgba(255, 255, 255, .1); }
.menu-group.is-open > .menu-link { border-bottom-color: transparent; }
.menu-sub-list li { opacity: 0; translate: 0 -6px; transition: opacity .25s ease, translate .35s cubic-bezier(.16, 1, .3, 1); }
.menu-group.is-open .menu-sub-list li { opacity: 1; translate: none; transition-delay: calc(var(--i, 0) * 30ms + 60ms); }
@media (prefers-reduced-motion: reduce) { .menu-sub-wrap, .menu-sub-list li, .menu-group .ph { transition: none; } }
.menu-sub { display: block; padding: 9px 0 9px 14px; font: 500 15px/1.4 Montserrat, Arial, sans-serif; color: #5B6A82; transition: color .2s ease; }
.menu-sub:hover, .menu-sub:focus-visible { color: #061A37; }
.menu-sub-all { color: #0878C9; }
html.dark .menu-sub { color: rgba(255, 255, 255, .78); }
html.dark .menu-sub:hover, html.dark .menu-sub:focus-visible { color: #fff; }
html.dark .menu-sub-all { color: #2D91E8; }
/* Closing: site.js adds .is-closing, waits for this animation, then closes the dialog */
@media (prefers-reduced-motion: no-preference) {
  .menu-drawer.is-closing { animation: drawer-out .28s cubic-bezier(.4, 0, 1, 1) forwards; }
  .quote-popup.is-closing { animation: popup-out .22s cubic-bezier(.4, 0, 1, 1) forwards; }
  .menu-drawer.is-closing::backdrop, .quote-popup.is-closing::backdrop { animation: backdrop-out .25s ease forwards; }
}
@keyframes drawer-out { to { translate: 100% 0; } }
@keyframes popup-out { to { opacity: 0; translate: 0 24px; } }
@keyframes backdrop-out { to { opacity: 0; } }
/* ---------- Service pages ---------- */
/* Hero photo: assets/img/services/<slug>.webp, the skyline photo until one is added */
.svc-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #061A37; border: 1px solid #E2E8F0; }
.svc-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 26, 55, .35), transparent 45%); pointer-events: none; }
html.dark .svc-photo { border-color: rgba(255, 255, 255, .1); }
.svc-art-badge { position: absolute; z-index: 1; top: 16px; left: 16px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: #0878C9; color: #fff; }
html.dark .svc-art-badge { background: #2D91E8; }
/* Product group tiles and other-service cards share the grid-with-hairlines look of the home page services */
.svc-item, .svc-card { background: #fff; transition: background-color .25s ease; }
.svc-item { padding: 20px; min-height: 160px; }
.svc-card { display: flex; flex-direction: column; justify-content: space-between; height: 100%; min-height: 150px; padding: 20px; }
@media (min-width: 768px) { .svc-item { padding: 28px; } .svc-card { padding: 24px; } }
.svc-item:hover, .svc-card:hover { background: #F5F7FA; }
html.dark .svc-item, html.dark .svc-card { background: #08152a; }
html.dark .svc-item:hover, html.dark .svc-card:hover { background: #0c1c36; }
.svc-card:hover .svc-arrow, .svc-card:focus-visible .svc-arrow { transform: translate(4px, -4px); }
.svc-card-cta, html.dark .svc-card-cta { background: #0878C9; color: #fff; }
.svc-card-cta:hover, html.dark .svc-card-cta:hover { background: #0662A6; }
/* Process: four stops on a dashed route, vertical on phones, horizontal from tablets up */
.svc-route { position: relative; display: grid; gap: 28px; padding-left: 30px; }
.svc-route::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; border-left: 2px dashed #CBD5E1; }
.svc-stop { position: relative; }
.svc-stop-mark { position: absolute; left: -30px; top: 1px; width: 14px; height: 14px; background: #0878C9; box-shadow: 0 0 0 5px rgba(8, 120, 201, .15); }
@media (min-width: 768px) {
  .svc-route { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 38px 0 0; }
  .svc-route::before { left: 0; right: 0; top: 6px; bottom: auto; border-left: 0; border-top: 2px dashed #CBD5E1; }
  .svc-stop-mark { left: 0; top: -38px; }
}
html.dark .svc-route::before { border-color: rgba(255, 255, 255, .2); }
html.dark .svc-stop-mark { background: #2D91E8; box-shadow: 0 0 0 5px rgba(45, 145, 232, .2); }
/* Dot pattern on light sections (the look of the DotPattern component, in plain CSS). It sits behind
   the content, so it only shows in empty space around the opaque cards, and fades out at the top and
   bottom so neighbouring sections still flow into each other. */
.dot-bg { position: relative; isolation: isolate; }
.dot-bg::before, .dot-bg::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-size: 24px 24px; }
.dot-bg::before {
  background-image: radial-gradient(circle, rgba(91, 106, 130, .2) 1px, transparent 1.5px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent); }
html.dark .dot-bg::before { background-image: radial-gradient(circle, rgba(255, 255, 255, .06) 1px, transparent 1.5px); }
/* Under the mouse the dots light up blue in a soft circle that follows the cursor (site.js sets --mx/--my) */
.dot-bg::after {
  background-image: radial-gradient(circle, rgba(8, 120, 201, .75) 1.3px, transparent 1.8px);
  -webkit-mask-image: radial-gradient(170px circle at var(--mx, -999px) var(--my, -999px), #000, transparent);
  mask-image: radial-gradient(170px circle at var(--mx, -999px) var(--my, -999px), #000, transparent);
  opacity: 0; transition: opacity .4s ease; }
.dot-bg.is-lit::after { opacity: 1; }
html.dark .dot-bg::after { background-image: radial-gradient(circle, rgba(45, 145, 232, .8) 1.3px, transparent 1.8px); }
