/* iMTED Services one-pager.
   Design tokens, type scale, colours and component shapes are taken from the main site
   (default-website/css/header.css + main.css) so both sites read as one brand. */

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    /* Self-hosted (Latin subset, incl. German umlauts): no request to Google, so no
       visitor IP is passed to a third party. */
    src: url("../fonts/montserrat-latin.woff2") format("woff2");
}

:root {
    --header-height: 65px;

    --ink: #0b2239;
    --gray-700: #333333;
    --navy-950: #0b2239;
    --navy-900: #0f2c47;
    --navy-800: #143a5c;
    --navy-750: #184568;
    --navy-700: #1d5078;
    --text-muted: #4a6378;
    --blue-600: #1b6c93;
    --blue-500: #2a82ae;
    --sky-500: #5bb8de;
    --sky: #87ceea;
    --border: #cbe2ee;
    --border-soft: #ddedf5;
    --surface-page: #f1f8fc;
    --surface-tint: #eaf7fd;
    --on-dark: #f3fafe;
    --white: #ffffff;

    --fs-sm: 14px;
    --fs-base: 16px;
    --fs-md: 18px;
    --fs-lg: 20px;
    --fs-xl: 24px;
    --fs-h2: clamp(30px, 3.5vw, 46px);
    --fs-h1: clamp(30px, 3.4vw, 48px);

    --radius-pill: 999px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 14px;

    --shadow-card: 0 10px 22px rgba(11, 34, 57, 0.1);
    --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 12px);
}

html,
body {
    overflow-x: hidden;
}

body {
    margin: 0;
    padding-top: var(--header-height);
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.55;
    color: var(--ink);
    background: var(--surface-page);
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--navy-950);
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 10px;
}

:focus-visible {
    outline: 2px solid var(--sky-500);
    outline-offset: 2px;
}

/* ======================== BUTTONS ======================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius-pill);
    padding: 15px 30px;
    font-size: var(--fs-md);
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Hero CTA, as .vision-cta on the main site. */
.btn-dark {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
    box-shadow: 0 10px 22px rgba(31, 40, 45, 0.22);
}

.btn-dark:hover {
    background: #1d5078;
    border-color: #1d5078;
    box-shadow: 0 14px 26px rgba(31, 40, 45, 0.28);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(236, 250, 255, 0.7);
    color: var(--surface-tint);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* Primary button: brand sky with navy text (9.3:1 contrast). White text on the sky would
   only reach 1.7:1, so the sky is always a fill, never a text colour on white. */
.btn-primary,
.btn-small {
    background: var(--sky);
    border-color: var(--sky);
    color: var(--navy-950);
    box-shadow: 0 6px 16px rgba(135, 206, 234, 0.45);
}

.btn-primary:hover,
.btn-small:hover {
    background: var(--navy-950);
    border-color: var(--navy-950);
    color: var(--white);
    box-shadow: 0 8px 18px rgba(11, 34, 57, 0.3);
}

.btn-small {
    padding: 9px 18px;
    font-size: var(--fs-base);
    font-weight: 600;
}

/* ======================== HEADER ======================== */
/* Frosted white bar with a thin sky line along the bottom. */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 6px 24px rgba(11, 34, 57, 0.06);
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sky) 20%, var(--sky) 80%, transparent);
    opacity: 0.8;
}

.header-inner {
    width: min(1280px, 92%);
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* ---- Wordmark: "enlight" bold navy, "24" blue with a sky light-ray, "-ai" light ---- */
.wordmark {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    flex: 0 0 auto;
    font-size: 26px;
    line-height: 1;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--navy-950);
}

.wm-word {
    font-weight: 800;
}

.wm-num {
    position: relative;
    margin-left: 1px;
    font-weight: 800;
    color: var(--blue-600);
}

/* The "light": a short sky beam under the 24 that fades out to the right. */
.wm-num::after {
    content: "";
    position: absolute;
    left: 0;
    right: -14px;
    bottom: -6px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--sky), rgba(135, 206, 234, 0));
}

.wm-ai {
    font-weight: 500;
    color: var(--text-muted);
}

.wordmark:hover .wm-num::after {
    right: -28px;
    transition: right 0.3s ease;
}

.wordmark .flag-round {
    align-self: center;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
    background: radial-gradient(circle at 46% 50%, #f42a41 0 30%, #006a4e 31%);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-nav > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Top-level entries only (the dropdown's own links are styled under .mega-menu). */
.site-nav > ul > li > a:not(.btn),
.menu-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border: 0;
    background: none;
    color: var(--gray-700);
    font-size: var(--fs-md);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
}

/* Underline grows from the centre, as on the main site. */
.site-nav > ul > li > a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 2px;
    height: 2px;
    background: var(--sky-500);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.site-nav > ul > li > a:not(.btn):hover,
.menu-btn:hover,
.menu-btn[aria-expanded="true"] {
    color: var(--blue-500);
}

.site-nav > ul > li > a:not(.btn):hover::after {
    transform: scaleX(1);
}

/* ---- Services dropdown (two-column panel: bold title + one-line description) ---- */
.has-menu {
    position: relative;
}

.menu-btn[aria-expanded="true"] {
    background: rgba(44, 122, 165, 0.1);
    border-radius: var(--radius-md);
}

.chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.menu-btn[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

.mega-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: -20px;
    z-index: 1100;
    width: min(640px, calc(100vw - 40px));
    padding: 14px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 20px 44px rgba(15, 30, 40, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

/* Invisible bridge over the gap, so moving the mouse down does not close the panel. */
.mega-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -16px;
    height: 16px;
}

.has-menu.is-open .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

/* Hover opens it too on mouse devices (and is the fallback without JS). */
@media (hover: hover) and (min-width: 861px) {
    .has-menu:not(.no-hover):hover .mega-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity 0.18s ease, transform 0.18s ease;
    }
}

.mega-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 8px;
}

.mega-menu a {
    display: block;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background 0.15s ease;
}

.mega-menu a:hover,
.mega-menu a:focus-visible {
    background: var(--surface-page);
}

.mega-menu strong {
    display: block;
    margin-bottom: 3px;
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
}

.mega-menu a:hover strong {
    color: var(--blue-500);
}

.mega-menu span {
    display: block;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-muted);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px 9px;
    border: 0;
    background: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
}

.nav-toggle span {
    display: block;
    height: 2.5px;
    border-radius: 2px;
    background: var(--navy-950);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.25px) rotate(-45deg); }

/* ======================== HERO ======================== */
/* Deep navy with two soft sky glows and a faint dot grid: no photo, so nothing to license
   and nothing to load before the headline. */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: calc(92vh - var(--header-height));
    padding: 64px 20px 72px;
    color: var(--white);
    background:
      radial-gradient(ellipse 60% 55% at 78% 40%, rgba(135, 206, 234, 0.28) 0%, rgba(135, 206, 234, 0) 70%),
      radial-gradient(ellipse 45% 45% at 8% 95%, rgba(135, 206, 234, 0.16) 0%, rgba(135, 206, 234, 0) 70%),
      linear-gradient(160deg, #10365a 0%, var(--navy-950) 55%, #081a2c 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(135, 206, 234, 0.22) 1px, transparent 1.5px);
    background-size: 26px 26px;
    /* Fade the grid out towards the text side so it never competes with the headline. */
    -webkit-mask-image: linear-gradient(100deg, transparent 15%, #000 60%);
    mask-image: linear-gradient(100deg, transparent 15%, #000 60%);
    pointer-events: none;
}

.hero-inner {
    width: min(1280px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 80px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    padding: 7px 16px 7px 12px;
    border-radius: var(--radius-pill);
    background: rgba(135, 206, 234, 0.12);
    border: 1px solid rgba(135, 206, 234, 0.35);
    color: var(--sky);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Small pulsing "live" dot in front of the eyebrow. */
.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sky);
    box-shadow: 0 0 0 4px rgba(135, 206, 234, 0.2);
}

.hero h1 {
    margin: 0 0 20px;
    font-size: clamp(34px, 4.4vw, 60px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--white);
    text-wrap: balance;
}

.hero-subtitle {
    margin: 0 0 22px;
    max-width: 560px;
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.55;
    font-weight: 500;
    color: #c9e6f3;
}

.hero-points {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: grid;
    gap: 10px;
}

.hero-points li {
    position: relative;
    padding-left: 30px;
    font-size: var(--fs-base);
    font-weight: 600;
    line-height: 1.4;
    color: var(--on-dark);
}

/* Tick in a small sky circle. */
.hero-points li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(135, 206, 234, 0.18);
    color: var(--sky);
    font-size: 12px;
    font-weight: 800;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero .btn-ghost {
    border-color: rgba(135, 206, 234, 0.45);
    color: var(--white);
}

.hero .btn-ghost:hover {
    background: rgba(135, 206, 234, 0.12);
}

/* Three honest facts in a row, separated by thin sky lines. */
.hero-facts {
    list-style: none;
    margin: 40px 0 0;
    padding: 22px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 18px 32px;
    border-top: 1px solid rgba(135, 206, 234, 0.2);
}

.hero-facts li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 180px;
}

.hero-facts strong {
    font-size: 22px;
    font-weight: 800;
    color: var(--sky);
}

.hero-facts span {
    font-size: 13px;
    line-height: 1.4;
    color: #a9c9da;
}

/* ---- Hero visual: code editor + floating status cards (HTML/CSS, no image) ---- */
.hero-visual {
    position: relative;
    min-width: 0;
    padding: 48px 40px 56px 28px;
}

.hv-editor {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 16px;
    background: #0d2740;
    border: 1px solid rgba(135, 206, 234, 0.22);
    box-shadow:
        0 30px 60px rgba(3, 12, 22, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.hv-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(135, 206, 234, 0.14);
}

.hv-bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(135, 206, 234, 0.25);
}

.hv-bar span:first-child { background: #ff6b5f; }
.hv-bar span:nth-child(2) { background: #ffc14d; }
.hv-bar span:nth-child(3) { background: #3ecf8e; }

.hv-bar em {
    margin-left: 10px;
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 12px;
    font-style: normal;
    color: #8fb3c7;
}

.hv-code {
    margin: 0;
    padding: 22px 24px 26px;
    overflow: hidden;
    font-family: ui-monospace, "Cascadia Code", Consolas, "Courier New", monospace;
    font-size: clamp(11.5px, 1vw, 14px);
    line-height: 1.8;
    color: #d6ebf5;
    white-space: pre;
}

/* Syntax colours: sky family plus one warm accent for strings. */
.c-k { color: #87ceea; font-weight: 700; }
.c-f { color: #b6e3ff; }
.c-d { color: #9ad0ff; }
.c-s { color: #ffd38a; }
.c-t { color: #7fe0c2; }
.c-n { color: #f7a8c4; }
.c-c { color: #6f8fa3; font-style: italic; }

.hv-caret {
    display: inline-block;
    width: 8px;
    height: 1.1em;
    margin-left: 3px;
    vertical-align: -0.2em;
    background: var(--sky);
    animation: caret 1.1s steps(1) infinite;
}

@keyframes caret {
    50% { opacity: 0; }
}

/* Floating cards: white glass, placed around the editor. */
.hv-card {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--navy-950);
    box-shadow: 0 18px 40px rgba(3, 12, 22, 0.4);
    font-size: 13px;
    white-space: nowrap;
}

.hv-card strong {
    display: block;
    font-size: 14px;
}

.hv-card small {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
}

.hv-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hv-deploy {
    top: 8px;
    right: 0;
}

.hv-ok {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e3f6ec;
    color: #1f6f4e;
    font-weight: 800;
}

.hv-sprint {
    left: -6px;
    bottom: -8px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 210px;
}

.hv-progress {
    display: block;
    height: 8px;
    border-radius: 4px;
    background: var(--surface-page);
    overflow: hidden;
}

.hv-progress i {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--sky), var(--blue-500));
}

.hv-uptime {
    right: -4px;
    bottom: 36px;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 150px;
}

.hv-uptime strong {
    font-size: 20px;
}

.hv-uptime svg {
    width: 100%;
    height: 30px;
    margin-top: 4px;
}

.hv-uptime path {
    fill: none;
    stroke: var(--blue-500);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

/* Flags drawn in CSS: Windows has no flag emoji, and this avoids image requests. */
.flag {
    flex: 0 0 auto;
    display: inline-block;
    width: 24px;
    height: 16px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.flag-bd {
    /* The red disc sits slightly towards the hoist (45% across), as on the real flag. */
    background: radial-gradient(circle at 45% 50%, #f42a41 0 26%, #006a4e 27%);
}

/* ======================== SECTIONS ======================== */
.section {
    padding: 64px 20px;
}

.section-inner {
    width: min(1200px, 100%);
    margin: 0 auto;
}

/* Section header: small sky label ("kicker"), heading, one supporting line. */
.kicker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue-600);
}

/* Short sky dashes either side of the label. */
.kicker::before,
.kicker::after {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--sky);
}

.section-dark .kicker {
    color: var(--sky);
}

.section-title {
    margin: 0 auto 14px;
    text-align: center;
    font-size: var(--fs-h2);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--navy-950);
    text-wrap: balance;
}

/* Short sky underline under section headings. */
.section-title::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    margin: 16px auto 0;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--sky), var(--blue-500));
}

.section-subtitle {
    max-width: 640px;
    margin: 0 auto 36px;
    text-align: center;
    font-size: var(--fs-md);
    color: var(--text-muted);
}

.section-title + .faq-list {
    margin-top: 36px;
}

/* ---- Services: intro + one alternating row per service ---- */
.services-intro {
    padding-bottom: 8px;
}

.services-intro .section-subtitle {
    margin-bottom: 0;
}

.service-row {
    padding: 64px 20px;
    background: var(--white);
}

.service-row.is-flipped {
    background: var(--surface-page);
}

/* First row sits on the intro's tint, so it starts white like the reference layout. */
.services-intro + .service-row {
    margin-top: 40px;
}

.service-row-inner {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 6vw, 88px);
}

/* Flipped rows: visual on the left, text on the right. `order` keeps the DOM (and so the
   reading order for screen readers) text-first in every row. */
.service-row.is-flipped .service-visual {
    order: -1;
}

/* Soft sky glow behind each mockup, so the window floats off the page. */
.service-visual {
    position: relative;
}

.service-visual::before {
    content: "";
    position: absolute;
    inset: -12% -8%;
    z-index: 0;
    background: radial-gradient(closest-side, rgba(135, 206, 234, 0.45), rgba(135, 206, 234, 0));
    pointer-events: none;
}

.service-visual .mock {
    position: relative;
    z-index: 1;
}

.service-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

/* Navy tile, sky line icon. */
.service-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: var(--navy-950);
    color: var(--sky);
    box-shadow: 0 8px 18px rgba(11, 34, 57, 0.22);
}

.service-num {
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 14px;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.service-copy h3 {
    margin: 0 0 12px;
    font-size: clamp(28px, 2.8vw, 40px);
    line-height: 1.15;
    font-weight: 800;
    color: var(--navy-950);
}

.service-lead {
    margin: 0 0 20px;
    font-size: var(--fs-md);
    color: var(--text-muted);
}

.service-tags {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tags li {
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--navy-800);
    font-size: 13px;
    font-weight: 600;
}

.service-points {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}

.service-points li {
    position: relative;
    margin: 9px 0;
    padding-left: 26px;
    font-size: 15px;
    line-height: 1.5;
}

.service-points li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--sky-500);
    font-weight: 800;
}

.service-cta {
    padding: 13px 26px;
    font-size: var(--fs-base);
}

/* ---- Mock app windows (includes/mockups.php) ---- */
.mock {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 18px 40px rgba(18, 42, 58, 0.14);
    font-size: 13px;
    color: var(--ink);
}

.mock-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-soft);
    background: #f6f9fa;
}

.mock-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d5dfe3;
}

.mock-bar em {
    margin-left: 8px;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
    font-style: normal;
    color: var(--text-muted);
}

.mock-body {
    padding: 18px;
}

.mock-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 15px;
}

.mock-btn {
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--blue-500);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
}

.mock-table {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.mock-tr {
    display: grid;
    /* Fixed last column: each row is its own grid, so `auto` would size it per row and
       the columns would not line up. */
    grid-template-columns: 1.2fr 1fr 104px;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-top: 1px solid var(--border-soft);
}

.mock-tr:first-child {
    border-top: 0;
}

.mock-tr > :last-child {
    justify-self: end;
}

.mock-th {
    background: #f6f9fa;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Status colours stay semantic (green = OK), independent of the brand palette. */
.pill-ok { background: #e3f6ec; color: #1f6f4e; }
.pill-wait { background: #fff4dc; color: #a26a00; }
.pill-open { background: #eef1f4; color: #5b6770; }

.mock-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.mock-kpis div {
    padding: 10px 12px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    background: #f9fcfc;
}

.mock-kpis small {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
}

.mock-kpis b {
    font-size: 18px;
    color: var(--navy-950);
}

.mock-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 110px;
    padding: 0 4px;
    border-bottom: 1px solid var(--border);
}

.mock-bars i {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, var(--sky-500), var(--blue-500));
}

.mock-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
    color: var(--text-muted);
}

.mock-wire {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.mock-wire i {
    height: 12px;
    border-radius: 4px;
    background: #e6edef;
}

.mock-wire .w-hero {
    height: 64px;
    background: linear-gradient(135deg, #dceaef, #eef5f6);
}

.mock-wire .w-short {
    width: 60%;
}

.mock-checks {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mock-checks li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid var(--border-soft);
}

.mock-checks li::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-radius: 4px;
}

.mock-checks li.done::before {
    content: "\2713";
    display: grid;
    place-items: center;
    border-color: var(--sky-500);
    background: var(--sky-500);
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
}

.mock-checks small {
    margin-left: auto;
    color: var(--text-muted);
}

.mock-pipeline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.mock-pipeline span {
    flex: 1;
    padding: 9px 0;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 700;
    font-size: 12px;
}

.mock-pipeline .done { background: #e3f6ec; color: #1f6f4e; }
.mock-pipeline .run { background: #fff4dc; color: #a26a00; }

.mock-legend {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
}

.mock-legend i {
    display: inline-block;
    width: 14px;
    height: 3px;
    margin-left: 6px;
    border-radius: 2px;
}

.mock-legend .l-actual { background: var(--blue-500); }
.mock-legend .l-fc { background: repeating-linear-gradient(90deg, #2c7be5 0 4px, transparent 4px 7px); }
.mock-legend .l-anom { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; }

.mock-chart {
    display: block;
    width: 100%;
    height: 170px;
}

.mock-chart path {
    fill: none;
    vector-effect: non-scaling-stroke;
}

.mock-chart .grid { stroke: #e3eaec; stroke-width: 1; }
.mock-chart .actual { stroke: var(--blue-500); stroke-width: 2.5; }
.mock-chart .fc { stroke: #2c7be5; stroke-width: 2.5; stroke-dasharray: 6 5; }
.mock-chart .anom { fill: #e5484d; stroke: var(--white); stroke-width: 2; }

.icon {
    width: 28px;
    height: 28px;
}

/* ---- Shared: navy bands (industries) ---- */
.section-dark {
    background:
      radial-gradient(circle at 10% 20%, rgba(170, 215, 240, 0.2) 0%, rgba(170, 215, 240, 0) 40%),
      linear-gradient(140deg, var(--navy-700) 0%, var(--navy-950) 100%);
}

.section-dark .section-title {
    color: var(--surface-tint);
}

.section-subtitle-dark {
    color: #cfe3ee;
}

/* Left-aligned heading variant, underline starts at the left too. */
.section-title-left,
.section-subtitle-left {
    margin-left: 0;
    text-align: left;
}

.section-title-left::after {
    margin-left: 0;
}

/* On navy bands the usual navy hover would vanish into the background: go white instead. */
.section-dark .btn-primary:hover,
.hero .btn-primary:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--navy-950);
}

/* ---- Why us? (light: four white cards with a large faint number) ---- */
.why-section {
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.why-item {
    position: relative;
    overflow: hidden;
    padding: 30px 24px 28px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--white);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Sky bar grows along the top edge on hover. */
.why-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--sky), var(--blue-500));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.why-item:hover {
    transform: translateY(-4px);
    border-color: var(--sky);
    box-shadow: 0 16px 34px rgba(11, 34, 57, 0.1);
}

.why-item:hover::before {
    transform: scaleX(1);
}

.why-num {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    color: var(--surface-tint);
    -webkit-text-stroke: 1px var(--border);
}

.why-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: var(--navy-950);
    color: var(--sky);
}

.why-item h3 {
    margin: 0 0 8px;
    font-size: var(--fs-lg);
    line-height: 1.3;
    color: var(--navy-950);
}

.why-item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ---- Technologies (pale sky band, one card per group with chips) ---- */
.tech-section {
    background:
      radial-gradient(ellipse 50% 60% at 100% 0%, rgba(135, 206, 234, 0.25), rgba(135, 206, 234, 0) 70%),
      var(--surface-page);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.tech-group {
    padding: 24px 22px 26px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--white);
}

.tech-group h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    font-size: 17px;
    color: var(--navy-950);
}

.tech-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(135, 206, 234, 0.25);
    color: var(--blue-600);
}

.tech-icon .icon {
    width: 22px;
    height: 22px;
}

.tech-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-group li {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface-page);
    color: var(--navy-800);
    font-size: 13.5px;
    font-weight: 600;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.tech-group li:hover {
    background: var(--sky);
    border-color: var(--sky);
    color: var(--navy-950);
}

/* ---- Industries (navy band: header left, bullet list right) ---- */
.industries-split {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: clamp(32px, 6vw, 96px);
}

.kicker-left {
    justify-content: flex-start;
}

.kicker-left::after {
    display: none;
}

.industries-head .section-subtitle {
    margin-bottom: 28px;
}

.industry-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 36px;
}

/* One bullet: sky icon ring, bold name, one line. Thin sky divider on top of each. */
.industry-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 0;
    border-top: 1px solid rgba(135, 206, 234, 0.2);
}

.industry-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(135, 206, 234, 0.45);
    background: rgba(135, 206, 234, 0.1);
    color: var(--sky);
    transition: background 0.2s ease, color 0.2s ease;
}

.industry-icon .icon {
    width: 22px;
    height: 22px;
}

.industry-list li:hover .industry-icon {
    background: var(--sky);
    color: var(--navy-950);
}

.industry-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.industry-text strong {
    font-size: 17px;
    color: var(--white);
}

.industry-text span {
    font-size: 14.5px;
    line-height: 1.5;
    color: #b9d7e6;
}

/* ---- FAQ (white band between the pale technologies band and the sky enquiry band) ---- */
.faq-section {
    background: var(--white);
}

.faq-card {
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 40px 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background:
      linear-gradient(120deg, rgba(122, 182, 214, 0.14), rgba(122, 182, 214, 0) 35%),
      linear-gradient(150deg, var(--white) 0%, var(--surface-page) 58%);
    box-shadow: var(--shadow-card);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover,
.faq-item[open] {
    border-color: var(--blue-500);
}

.faq-item[open] {
    box-shadow: 0 2px 12px rgba(18, 41, 59, 0.08);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
    font-size: clamp(16px, 1.6vw, 18px);
    font-weight: 600;
    line-height: 1.45;
    color: var(--navy-950);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    color: var(--blue-500);
}

.faq-item summary:focus-visible {
    outline: 3px solid var(--sky-500);
    outline-offset: -3px;
    border-radius: var(--radius-md);
}

/* Plus/minus drawn in CSS. */
.faq-icon {
    position: relative;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 2px;
    background: var(--blue-500);
    transform: translate(-50%, -50%);
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.faq-icon::before { width: 16px; height: 2.5px; }
.faq-icon::after { width: 2.5px; height: 16px; }

.faq-item[open] .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.faq-item p {
    margin: 0;
    padding: 0 22px 20px;
    line-height: 1.7;
}

/* ---- Enquiry (its own band on the brand sky colour; navy text reaches 9.3:1) ---- */
.enquiry {
    position: relative;
    overflow: hidden;
    padding: 88px 20px;
    background:
      radial-gradient(circle at 0% 100%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 40%),
      linear-gradient(160deg, #a3daf0 0%, var(--sky) 55%, #74c3e3 100%);
    color: var(--navy-950);
}

/* Big soft rings in the corner: the "light" in enlight, drawn in CSS. */
.enquiry::before,
.enquiry::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.45);
    pointer-events: none;
}

.enquiry::before {
    width: 520px;
    height: 520px;
    right: -160px;
    top: -220px;
}

.enquiry::after {
    width: 320px;
    height: 320px;
    right: -60px;
    top: -120px;
}

.enquiry-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(32px, 6vw, 88px);
}

.enquiry .kicker {
    color: var(--navy-800);
}

.enquiry .kicker::before {
    background: var(--navy-950);
}

.enquiry-intro h2 {
    margin: 0 0 16px;
    font-size: clamp(32px, 3.6vw, 48px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--navy-950);
}

.enquiry-lead {
    margin: 0 0 30px;
    font-size: var(--fs-lg);
    line-height: 1.5;
    color: var(--navy-800);
}

.enquiry-include-title {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy-800);
}

.enquiry-include {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.enquiry-include li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--navy-950);
}

.enquiry-include li::before {
    content: "\2713";
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--navy-950);
    color: var(--sky);
    font-size: 13px;
    font-weight: 800;
}

.enquiry-card {
    padding: clamp(24px, 3vw, 40px);
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 30px 60px rgba(11, 34, 57, 0.18);
}

.icon-sm {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.field label {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy-900);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-page);
    color: var(--navy-950);
    font-size: var(--fs-base);
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
    min-height: 130px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--blue-500);
    background: var(--white);
    outline: none;
    box-shadow: 0 0 0 4px rgba(135, 206, 234, 0.45);
}

.field [aria-invalid="true"] {
    border-color: #c0392b;
    background: #fffafa;
}

.consent {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-muted);
}

.consent input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--blue-600);
}

.contact-form .btn-primary {
    align-self: flex-start;
    margin-top: 4px;
    padding: 14px 34px;
}

/* On the white card the sky button needs its navy hover (the default), so nothing extra. */

.form-status {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-weight: 600;
    line-height: 1.4;
}

.form-status p {
    margin: 0;
}

.form-status p + p {
    margin-top: 4px;
}

.form-status-success {
    color: #1f6f4e;
    background: #e3f6ec;
    border-color: #a8dcc0;
}

.form-status-error {
    color: #8b1f1f;
    background: #fdecec;
    border-color: #f1b5b5;
}

/* ======================== FOOTER ======================== */
.site-footer {
    background: var(--navy-950);
    color: #b9d7e6;
}

.footer-inner {
    width: min(1180px, 92%);
    margin: 0 auto;
    padding: 48px 0 36px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}

.footer-brand p {
    margin: 14px 0 0;
    font-size: 15px;
}

/* Wordmark on navy: white word, sky "24", light "-ai". */
.wordmark-light {
    color: var(--white);
}

.wordmark-light .wm-num {
    color: var(--sky);
}

.wordmark-light .wm-ai {
    color: #9fc3d6;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
}

.footer-nav a {
    color: #d6ebf5;
    font-weight: 600;
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--sky);
}

.footer-bottom {
    width: min(1180px, 92%);
    margin: 0 auto;
    padding: 18px 0 24px;
    border-top: 1px solid rgba(135, 206, 234, 0.18);
    font-size: 14px;
}

/* ======================== SCROLL ANIMATIONS ========================
   Content is hidden only while JS is running (html.js) AND motion is allowed, so with
   JS off or reduced motion on, nothing is ever hidden. main.js marks elements .reveal
   with a data-reveal direction, adds .is-visible on scroll, and removes all of it once the
   element has arrived (so hover effects keep their own quick transitions). */
@media (prefers-reduced-motion: no-preference) {
    .js .reveal {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
        transition:
            opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
            transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
        will-change: opacity, transform;
    }

    .js .reveal[data-reveal="left"]  { transform: translate3d(-64px, 0, 0); }
    .js .reveal[data-reveal="right"] { transform: translate3d(64px, 0, 0); }
    .js .reveal[data-reveal="zoom"]  { transform: translate3d(0, 30px, 0) scale(0.92); }
    .js .reveal[data-reveal="pop"]   { transform: translate3d(0, 16px, 0) scale(0.85); }

    .js .reveal.is-visible {
        opacity: 1;
        transform: none;
    }

    /* Section underline grows from the centre as the heading arrives, like the main site. */
    .js .section-title.reveal::after {
        transform: scaleX(0);
        transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s;
    }

    .js .section-title.reveal.is-visible::after {
        transform: scaleX(1);
    }

    /* Floating: gentle, slow bob on the hero editor/cards and the mock app windows. Each
       gets a different rhythm so they never move in lockstep. The scroll parallax in main.js
       uses the separate `translate` property and adds to this. */
    .hv-editor,
    .hv-card,
    .mock {
        animation: float 7s ease-in-out infinite;
    }

    .hv-deploy { animation-duration: 6s;  animation-delay: -1s; }
    .hv-sprint { animation-duration: 8s;  animation-delay: -3s; }
    .hv-uptime { animation-duration: 5.5s; animation-delay: -2s; }

    .service-row:nth-of-type(odd) .mock  { animation-duration: 8s; animation-delay: -2s; }
    .service-row:nth-of-type(3n) .mock   { animation-duration: 9s; animation-delay: -4s; }

    @keyframes float {
        0%, 100% { transform: translate3d(0, 0, 0); }
        50%      { transform: translate3d(0, -10px, 0); }
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

@media print {
    .js .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1100px) {
    .why-grid,
    .tech-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-nav > ul > li > a:not(.btn),
    .menu-btn {
        padding: 5px 6px;
        font-size: var(--fs-base);
    }
}

@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 0;
    }

    .hero-visual {
        width: min(620px, 100%);
        margin: 0 auto;
    }

    /* Rows stack: text first, then the visual, in every row (flipped ones too). */
    .service-row-inner {
        grid-template-columns: 1fr;
    }

    .service-row.is-flipped .service-visual {
        order: 0;
    }

    .service-visual {
        max-width: 560px;
    }

    .industries-split,
    .enquiry-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: flex;
    }

    /* The menu drops down under the header bar. Hidden with display:none (not just
       off-screen) so closed links are not reachable by Tab. */
    .site-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        padding: 12px 20px 20px;
        background: var(--white);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav > ul {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .site-nav > ul > li > a:not(.btn),
    .menu-btn {
        display: flex;
        width: 100%;
        padding: 12px 6px;
        font-size: var(--fs-md);
        border-bottom: 1px solid var(--border-soft);
    }

    .menu-btn {
        justify-content: space-between;
    }

    .menu-btn[aria-expanded="true"] {
        background: none;
        border-radius: 0;
    }

    .site-nav > ul > li > a:not(.btn)::after {
        display: none;
    }

    /* In the mobile menu the services panel expands inline, one column. */
    .mega-menu {
        position: static;
        display: none;
        width: auto;
        padding: 4px 0 8px;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }

    .mega-menu::before {
        display: none;
    }

    .has-menu.is-open .mega-menu {
        display: block;
    }

    .mega-menu ul {
        grid-template-columns: 1fr;
    }

    .mega-menu a {
        padding: 10px 12px;
    }

    .mega-menu strong {
        font-size: var(--fs-base);
    }

    .site-nav .btn-small {
        width: 100%;
        margin-top: 10px;
        padding: 12px 18px;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 48px 16px;
    }

    .hero {
        padding: 36px 16px 44px;
    }

    .eyebrow {
        font-size: 11px;
        letter-spacing: 0.04em;
    }

    /* On phones the floating cards tuck in closer and shrink, so nothing leaves the screen. */
    .hero-visual {
        padding: 36px 8px 48px;
    }

    .hv-card {
        padding: 9px 12px;
        font-size: 12px;
    }

    .hv-sprint {
        width: 170px;
        left: 0;
    }

    .hv-uptime {
        width: 120px;
        right: 0;
    }

    .hv-code {
        padding: 16px;
    }

    .wordmark {
        font-size: 22px;
    }

    .hero-actions .btn {
        flex: 1 1 100%;
    }

    .service-row {
        padding: 48px 16px;
    }

    .service-cta {
        width: 100%;
    }

    .mock-tr {
        grid-template-columns: 1fr 104px;
    }

    .mock-tr > span:nth-child(2) {
        display: none;
    }

    .industry-list,
    .why-grid,
    .tech-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .faq-card {
        padding: 26px 16px 20px;
    }

    .faq-item summary {
        padding: 16px 18px;
    }

    .faq-item p {
        padding: 0 18px 18px;
    }

    .enquiry {
        padding: 56px 16px;
    }

    .contact-form .btn-primary {
        align-self: stretch;
    }

    .footer-inner {
        flex-direction: column;
    }
}
