/* =================================================================
   TENARO — Engine Liner Mapping · One-Page styles
   Mobile-first. No framework. CI: #1D809F (petrol) / #ecb807 (amber)
   ================================================================= */

/* ---- Bahnschrift (CI font) --------------------------------------
   Drop the licensed web font here and it takes over automatically.
   Until then the site renders in Barlow Semi Condensed (very close,
   DIN-style condensed). Supported formats: woff2 (preferred), woff.
------------------------------------------------------------------ */
/* To enable the licensed Bahnschrift web font: create assets/fonts/, drop in
   bahnschrift.woff2 (+ .woff), and uncomment the @font-face below. Until then the
   site renders in Barlow Semi Condensed (see --font-head) — no broken font requests.
@font-face {
    font-family: "Bahnschrift";
    src: url("../fonts/bahnschrift.woff2") format("woff2"),
         url("../fonts/bahnschrift.woff") format("woff");
    font-weight: 100 900;
    font-display: swap;
}
*/

/* ---- Design tokens ---------------------------------------------- */
:root {
    --primary: #1D809F;         /* Tenaro blue — brand / structure */
    --primary-dark: #145f77;    /* darker Tenaro blue — dark sections instead of black */
    --secondary: #CC8A0A;       /* Tenaro accent — dark warm amber (Birk: darker, less loud) */
    --secondary-hover: #b0760a; /* darker amber for button hover */
    --secondary-soft: #E8B84D;  /* lighter amber — accents/text on blue or dark backgrounds */
    --dark: #14181b;            /* near-black — TEXT only (CI has no black backgrounds) */
    --dark-2: #1d2429;
    --light: #f5f6f7;
    --muted: #6c757d;
    --white: #ffffff;

    --font-head: "Bahnschrift", "Barlow Semi Condensed", "DIN Alternate", system-ui, sans-serif;
    --font-body: "Barlow", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

    --maxw: 1180px;
    --radius: 14px;
    --pad-section: clamp(3.5rem, 8vw, 7rem);
    --shadow: 0 10px 30px rgba(0, 0, 0, .12);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, .22);
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---- Reset / base ----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--font-body);
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.01em;
    text-transform: uppercase;
}
h1 { font-size: clamp(2.8rem, 9vw, 6rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 3rem); }
h3 { font-size: 1.4rem; }
p  { font-size: clamp(1rem, 1.4vw, 1.12rem); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.2rem, 5vw, 2.5rem); }
.section { padding-block: var(--pad-section); }

/* ---- Section colour rhythm: Tenaro blue <-> darker blue (white blocks removed) ----
   Image sections (hero, bow band, contact) act as breaks between the blue tones. */
.about, .onsite, .presence { background: var(--primary); color: #fff; }
.service { background: var(--primary-dark); color: #fff; }
.about .eyebrow, .service .eyebrow, .onsite .eyebrow, .presence .eyebrow { color: var(--secondary-soft); }

.eyebrow {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 700;
    font-size: .85rem;
    color: var(--primary);
    margin-bottom: .8rem;
}
.eyebrow.light { color: var(--secondary-soft); }

.section-head { max-width: 720px; margin-bottom: 2.8rem; }
/* Intro line under a section heading (light sections only) */
.section-head .lead { margin-top: 1rem; margin-bottom: 0; color: rgba(255,255,255,.82); font-size: clamp(1rem, 1.4vw, 1.12rem); }

/* ---- Buttons ---------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--font-head); text-transform: uppercase;
    font-weight: 700; letter-spacing: .04em;
    padding: .85rem 1.6rem; border-radius: 100px;
    border: 2px solid transparent; cursor: pointer;
    transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
    white-space: nowrap;
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--secondary); color: var(--dark); }
.btn-primary:hover { background: var(--secondary-hover); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
/* Outline button for use on blue / dark backgrounds */
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: rgba(255,255,255,.14); }
.btn-sm { padding: .55rem 1.1rem; font-size: .85rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ---- Header / nav ----------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--primary);
    border-bottom: 3px solid var(--secondary);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand-logo { height: 38px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a {
    color: #e7eaec; font-family: var(--font-head); text-transform: uppercase;
    font-weight: 600; font-size: .95rem; letter-spacing: .03em;
    transition: color .2s;
}
.main-nav a:hover { color: #fff; text-decoration: underline; }
.main-nav .nav-work {
    border: 1.5px solid rgba(255,255,255,.55); border-radius: 100px; padding: .5rem 1.1rem;
}
.main-nav .nav-work:hover { background: rgba(255,255,255,.14); text-decoration: none; }
.main-nav .nav-cta { color: #fff; }
.main-nav .nav-cta:hover { color: #fff; text-decoration: none; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: #fff; transition: transform .3s, opacity .3s; }

/* ---- Hero ------------------------------------------------------- */
.hero {
    position: relative; min-height: 100svh;
    display: flex; align-items: center;
    color: #fff; overflow: hidden;
    background-color: #0b2630;
    background-image:
        radial-gradient(120% 90% at 70% 10%, rgba(29,128,159,.45), transparent 55%),
        url("../img/engine_grey.jpg");
    background-repeat: no-repeat;
    background-size: cover, cover;
    background-position: center, center;
    /* background-attachment: fixed is intentionally NOT used — janky/unsupported on iOS */
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
/* Dark overlay for text legibility. Desktop: darker on the left (text side). */
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(90deg, rgba(8,32,41,.92) 0%, rgba(8,32,41,.6) 45%, rgba(8,32,41,.22) 100%),
        linear-gradient(180deg, rgba(8,32,41,.3) 0%, transparent 30%, rgba(8,32,41,.55) 100%);
}
.hero-content { position: relative; z-index: 2; padding-block: 6rem; }
.hero .eyebrow { color: var(--secondary-soft); }
.hero h1 { margin-bottom: 1.2rem; }
.hero-sub {
    font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em;
    font-size: clamp(1rem, 2.2vw, 1.4rem); color: #cfd6d9; margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.scroll-hint {
    position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    z-index: 2; color: #fff; font-size: 1.6rem; opacity: .7;
    animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ---- About ------------------------------------------------------ */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.about-text p { color: rgba(255,255,255,.88); margin-bottom: 1.1rem; max-width: 56ch; }
.about-text h2 { margin-bottom: 1.4rem; }
.about-text .btn { margin-top: .8rem; }
.about-visual {
    position: relative;
    min-height: clamp(400px, 48vw, 620px);
    overflow: visible;
    border-radius: 12px;
    background: transparent;
}
.about-visual::after {
    content: "";
    position: absolute;
    left: 9%;
    top: 18%;
    width: 68%;
    height: 64%;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(8,32,41,.15), rgba(8,32,41,.48));
    pointer-events: none;
    z-index: 1;
}
.about-visual-bg {
    position: absolute;
    left: 9%;
    top: 18%;
    width: 68%;
    height: 64%;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    opacity: .9;
    filter: saturate(.85) contrast(1.05);
    box-shadow: var(--shadow-lg);
}
.about-visual-model {
    position: absolute;
    z-index: 2;
    right: -1%;
    top: -7%;
    width: min(60%, 340px);
    height: 118%;
    object-fit: contain;
    filter: drop-shadow(0 22px 34px rgba(0,0,0,.34));
}

/* ---- Service cards ---------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.service-card {
    position: relative; border-radius: var(--radius); overflow: hidden;
    min-height: 320px; display: flex; align-items: flex-end;
    box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s;
    background: var(--primary-dark); cursor: zoom-in;
}
.service-card:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; }
.zoom-icon {
    position: absolute; top: .9rem; right: .9rem; z-index: 3;
    width: 38px; height: 38px; display: grid; place-items: center;
    border-radius: 50%; background: rgba(20,24,27,.55); color: #fff; font-size: 1.1rem;
    opacity: 0; transform: scale(.8); transition: opacity .3s var(--ease), transform .3s var(--ease);
    pointer-events: none;
}
.service-card:hover .zoom-icon,
.service-card:focus-visible .zoom-icon { opacity: 1; transform: scale(1); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card-img {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    transition: transform .5s var(--ease); z-index: 0;
}
.service-card:hover .service-card-img { transform: scale(1.06); }
.service-card::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(0deg, rgba(8,32,41,.94) 10%, rgba(8,32,41,.35) 60%, transparent 100%);
}
.service-card-body { position: relative; z-index: 2; padding: 1.6rem; color: #fff; }
.service-card-body h3 { color: var(--secondary); margin-bottom: .5rem; }
.service-card-body p { font-size: .98rem; color: #dfe4e6; }

/* ---- Numbers (dark section) ------------------------------------- */
.numbers { background: var(--primary-dark); color: #fff; }
.numbers .section-head h2 { color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; padding: 1.5rem 1rem; border-radius: var(--radius); background: rgba(255,255,255,.07); }
.stat-num {
    display: block; font-family: var(--font-head); font-weight: 800;
    font-size: clamp(2.6rem, 5vw, 3.6rem); color: var(--secondary-soft); line-height: 1;
}
.stat-label { display: block; margin-top: .6rem; color: #b9c1c4; font-size: .95rem; }

/* Why flex numbers — individual cards using the SAME translucent frame and amber
   accent as the why-list rows, just smaller (per Birk: color like the list, clearly smaller). */
.why-stats {
    display: grid; gap: .9rem; margin-top: .9rem; max-width: 760px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.why-stat { background: rgba(255,255,255,.1); border-radius: 10px; padding: 1rem 1.2rem; }
.why-stat .stat-num { color: var(--secondary-soft); font-size: clamp(1.5rem, 2.6vw, 2rem); }
.why-stat .stat-label { color: rgba(255,255,255,.82); font-size: .9rem; margin-top: .3rem; }

/* ---- On-site ---------------------------------------------------- */
.onsite-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.onsite-item {
    padding: 1.6rem; border-radius: var(--radius); background: rgba(255,255,255,.1);
    border-left: 4px solid var(--secondary);
}
.onsite-item h4 { color: var(--secondary-soft); margin-bottom: .5rem; }
.onsite-item p { font-size: .98rem; color: rgba(255,255,255,.82); }
/* Operational numbers as individual cards (same white frame as the prep cards).
   Number sized like the card titles above; the 3 cards are centred as a group. */
.onsite-stats {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 1.5rem; margin-top: 1.5rem;
}
.stat-card { flex: 0 1 260px; }
.stat-card .stat-num { color: var(--secondary-soft); font-size: 1rem; margin-bottom: .35rem; }
.stat-card .stat-label { color: rgba(255,255,255,.82); font-size: .95rem; }

/* ---- Why (petrol section) --------------------------------------- */
.why { background: var(--primary-dark); color: #fff; position: relative; overflow: hidden; }
.why-inner { position: relative; z-index: 1; }
/* Off-center liner accent (recognition motif) — sits behind the section content */
.deco-liner {
    position: absolute; z-index: 0; pointer-events: none; user-select: none;
    right: -3%; top: 50%; transform: translateY(-50%);
    height: 128%; width: auto; opacity: .55;
}
@media (max-width: 900px) { .deco-liner { display: none; } }
.why .section-head h2 { color: #fff; }
.why-list { list-style: none; display: grid; gap: .9rem; max-width: 760px; }
.why-list li {
    padding: 1rem 1.2rem; background: rgba(255,255,255,.1); border-radius: 10px;
    font-size: 1.05rem;
}
.why-list li strong { color: var(--secondary-soft); }

/* ---- Full-width image band -------------------------------------- */
.band {
    position: relative; min-height: 48vh;
    display: flex; align-items: center; justify-content: center; text-align: center;
    background: url("../img/band-bow.jpg") center/cover no-repeat;
    color: #fff;
}
.band::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 65% 75% at 50% 50%, rgba(8,32,41,.62) 0%, transparent 72%),
        linear-gradient(rgba(8,32,41,.5), rgba(8,32,41,.5));
}
.band-inner { position: relative; z-index: 1; padding: 2rem; }
.band .eyebrow { color: var(--secondary-soft); text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.band h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); text-shadow: 0 2px 16px rgba(0,0,0,.55); }

/* ---- Presence --------------------------------------------------- */
.presence-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: clamp(1.4rem, 4vw, 3rem);
    align-items: center;
}
.presence-globes {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: .8rem;
    align-items: stretch;
}
.globe-card {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 180px;
    overflow: hidden;
    border-radius: 12px;
    cursor: zoom-in;
    background:
        radial-gradient(circle at 50% 40%, rgba(111,211,233,.18), transparent 56%),
        linear-gradient(135deg, rgba(8,32,41,.5), rgba(255,255,255,.06));
    border: 1px solid rgba(255,255,255,.16);
    transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.globe-card::after {
    content: "⤢";
    position: absolute;
    top: .7rem;
    right: .7rem;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(8,32,41,.72);
    color: #fff;
    font-size: 1rem;
    opacity: 0;
    transform: scale(.85);
    transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.globe-card:hover,
.globe-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(232,184,77,.7);
    box-shadow: 0 14px 30px rgba(0,0,0,.18);
    outline: none;
}
.globe-card:hover::after,
.globe-card:focus-visible::after {
    opacity: 1;
    transform: scale(1);
}
.globe-card-main {
    grid-row: span 2;
    min-height: 370px;
}
.globe-card img {
    width: 116%;
    max-width: none;
    margin: -10% -8%;
    filter: saturate(.96) contrast(.98);
}
.globe-card-main img {
    width: 112%;
}
.presence-panel {
    display: grid;
    gap: 1rem;
}
.presence-group {
    padding: .95rem 1rem;
    border-radius: 10px;
    background: rgba(255,255,255,.1);
    border-left: 4px solid var(--secondary);
}
.presence-list {
    list-style: none;
    display: grid;
    gap: .45rem;
}
.presence-list li {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: .65rem;
    color: rgba(255,255,255,.88);
    font-size: .94rem;
    text-align: left;
}
.presence-list li::before {
    content: "";
    width: .48rem;
    height: .48rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--secondary-soft);
    box-shadow: 0 0 0 4px rgba(232,184,77,.12);
}
.presence-list li span {
    color: rgba(255,255,255,.62);
    font-size: .82rem;
    margin-left: auto;
}
.presence-list.muted li::before {
    background: rgba(255,255,255,.72);
    box-shadow: 0 0 0 4px rgba(255,255,255,.08);
}
.presence-flags { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; }
.flag-item {
    font-family: var(--font-head); text-transform: uppercase; font-weight: 600; letter-spacing: .03em;
    padding: .7rem 1.2rem; border: 2px solid #e3e6e8; border-radius: 100px; font-size: 1rem;
}
.presence-note { color: rgba(255,255,255,.72); font-style: italic; margin-top: 1.6rem; }
.presence-kicker {
    font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em;
    font-weight: 700; font-size: .8rem; color: var(--secondary-soft); margin: 0 0 .8rem;
}
/* Blue = our own local stations · muted grey = clustered service reach */
.flag-item.is-station { border-color: var(--primary); color: var(--primary); }
.flag-item.is-reach { border-color: #dfe3e5; color: #8a9296; }

/* ---- Contact ---------------------------------------------------- */
.contact {
    position: relative;
    background: linear-gradient(rgba(8,32,41,.82), rgba(8,32,41,.9)), url("../img/contact-bg.jpg") center/cover no-repeat;
    color: #fff; text-align: center;
}
.contact h2 { color: #fff; margin-bottom: 1rem; }
.contact p { color: #d3dbde; max-width: 46ch; margin-inline: auto; }
.contact-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 2.5rem; }
.contact-details { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; }
.contact-details a { color: var(--secondary-soft); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; }
.contact-details a:hover { color: #fff; }

/* ---- Footer ----------------------------------------------------- */
.site-footer { background: var(--primary); color: rgba(255,255,255,.85); padding-block: 2.4rem; font-size: .9rem; }
.footer-contact {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem;
    padding-bottom: 1.2rem; margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,.2);
}
.footer-contact a {
    display: inline-flex; align-items: center; gap: .5rem; color: #fff;
    font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; font-weight: 600;
    padding: .5rem .9rem; border: 1.5px solid rgba(255,255,255,.35); border-radius: 100px;
    transition: background .2s, border-color .2s;
}
.footer-contact a:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.7); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

/* ---- Back to top ------------------------------------------------ */
.to-top {
    position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
    width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff;
    display: grid; place-items: center; font-size: 1.2rem;
    opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
    box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* ---- Lightbox --------------------------------------------------- */
.lightbox {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center;
    padding: clamp(1rem, 4vw, 3rem);
    background: rgba(8, 11, 13, .92); backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
    cursor: zoom-out;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-figure {
    margin: 0; max-width: 1100px; max-height: 100%;
    transform: scale(.94); transition: transform .3s var(--ease); cursor: default;
}
.lightbox.open .lightbox-figure { transform: scale(1); }
.lightbox-figure img {
    max-width: 100%; max-height: 82vh; width: auto; height: auto;
    border-radius: 10px; box-shadow: var(--shadow-lg);
}
.lightbox-figure figcaption {
    margin-top: .9rem; text-align: center; color: #e7eaec;
    font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
}
.lightbox-close {
    position: absolute; top: 1rem; right: 1.2rem; z-index: 2;
    width: 46px; height: 46px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.1); color: #fff; font-size: 1.8rem; line-height: 1;
    cursor: pointer; transition: background .2s, transform .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.22); transform: rotate(90deg); }

/* ---- Scroll reveal ---------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ================================================================= */
/* RESPONSIVE                                                        */
/* ================================================================= */
@media (max-width: 900px) {
    .about-grid, .card-grid, .stat-grid, .onsite-grid { grid-template-columns: 1fr 1fr; }
    .presence-layout { grid-template-columns: 1fr; }
    .presence-globes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .presence-panel { grid-template-columns: repeat(2, minmax(210px, 260px)); justify-content: end; }
    .about-grid { grid-template-columns: 1fr; }
    .about-visual { min-height: 460px; }

    .nav-toggle { display: flex; }
    .main-nav {
        /* absolute (not fixed): fixed inside a sticky header is unreliable on iOS Safari
           and caused the dropdown background to paint transparently. */
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: flex-start; gap: 0;
        background: var(--primary-dark); padding: 1rem 1.5rem 1.5rem;
        transform: translateY(-120%); transition: transform .35s var(--ease), visibility .35s;
        border-bottom: 1px solid rgba(255,255,255,.1);
        visibility: hidden;
    }
    .main-nav.open { visibility: visible; }
    .main-nav.open { transform: translateY(0); }
    .main-nav a { width: 100%; padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }
    .main-nav .nav-cta { margin-top: .8rem; width: max-content; }
}
@media (max-width: 560px) {
    .card-grid, .stat-grid, .onsite-grid { grid-template-columns: 1fr; }
    .about-visual { min-height: 390px; overflow: hidden; }
    .about-visual::after,
    .about-visual-bg {
        left: 0;
        top: 30%;
        width: 76%;
        height: 56%;
    }
    .about-visual-model {
        right: 0;
        top: 0;
        width: min(60%, 240px);
        height: 108%;
    }
    .presence-globes { grid-template-columns: 1fr; }
    .globe-card,
    .globe-card-main { min-height: 250px; }
    .globe-card-main { grid-row: auto; }
    .presence-panel { grid-template-columns: 1fr; }
    .hero-actions .btn, .contact-actions .btn { width: 100%; justify-content: center; }

    /* Mobile hero: text sits over the busy image, so darken more evenly (bottom-heavy). */
    .hero { background-position: 65% center, 65% center; }
    .hero-overlay {
        background: linear-gradient(180deg,
            rgba(8,32,41,.6) 0%,
            rgba(8,32,41,.45) 35%,
            rgba(8,32,41,.82) 100%);
    }
}

/* ================================================================= */
/* SUB-PAGES (forms + legal)                                         */
/* ================================================================= */
.page-hero {
    background:
        linear-gradient(90deg, rgba(8,32,41,.55) 0%, transparent 100%),
        var(--primary);
    color: #fff; padding: 7rem 0 3rem;
    border-bottom: 3px solid var(--secondary);
}
.page-hero .eyebrow { color: var(--secondary-soft); }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.page-hero p { color: #b9c1c4; margin-top: .8rem; max-width: 60ch; }

.subpage { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

/* ---- Forms ------------------------------------------------------ */
.form {
    max-width: 760px;
    background: var(--white); border: 1px solid #e6e9eb; border-radius: var(--radius);
    padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.col-2 { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; color: #2a3136; }
.field label .req { color: var(--primary); }
.field input,
.field textarea {
    font-family: var(--font-body); font-size: 1rem; color: var(--dark);
    padding: .75rem .9rem; border: 1.5px solid #d3d8db; border-radius: 9px;
    background: #fbfcfc; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field input:focus,
.field textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(29,128,159,.15);
}
.field textarea { resize: vertical; min-height: 96px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-check { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: .6rem; font-size: .95rem; }
.form-check input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--primary); flex: 0 0 auto; }
.form-check a { color: var(--primary); text-decoration: underline; }

.form-actions { grid-column: 1 / -1; display: flex; gap: .8rem; flex-wrap: wrap; margin-top: .4rem; }
.form-note { margin-top: 1.2rem; color: var(--muted); font-size: .92rem; }
.cf-turnstile { grid-column: 1 / -1; }

.form-lead { max-width: 760px; margin-bottom: 1.6rem; color: #444; }

/* ---- Legal / prose ---------------------------------------------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.9rem; margin: 2rem 0 .8rem; }
.prose h3, .prose h4 { font-family: var(--font-head); text-transform: uppercase; margin: 1.6rem 0 .5rem; color: var(--primary); }
.prose h4 { font-size: 1.15rem; }
.prose p { margin-bottom: .9rem; color: #3a4045; font-size: 1rem; }
.prose ul { margin: 0 0 .9rem 1.2rem; color: #3a4045; }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--primary); text-decoration: underline; word-break: break-word; }

@media (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-actions .btn { width: 100%; justify-content: center; }
}

/* ---- Reduced motion --------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}
