/* mlat.uk site frame: header, navigation and footer. The pages are built from the .t-* blocks below; the older app pages (telemetry, feeder, guide) still carry their own .mlat-* styles. */
:root {
    --accent: #0A74C4;
    --accent-light: #0D93F5;
    --accent-dark: #0A5FA0;
    --bg: #ffffff;
    --bg-alt: #F5F7FA;
    --text: #14181D;
    --text-soft: #5B6772;
    --border: #D6DEE6;
    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-blur: 14px;
    --header-h: 64px;
    --frame-w: 1120px;
    --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
.sr-only {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 12px; top: -48px; z-index: 200; padding: 8px 14px;
    background: var(--accent-dark); color: #fff; border-radius: 8px; text-decoration: none; font-size: 15px;
}
.skip-link:focus { top: 10px; }

/* ---------- header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--glass-bg);
    -webkit-backdrop-filter: saturate(180%) blur(var(--glass-blur));
    backdrop-filter: saturate(180%) blur(var(--glass-blur));
    border-bottom: 0.5px solid var(--border);
}
.site-header-inner {
    max-width: calc(var(--frame-w) + 40px); margin: 0 auto; padding: 0 20px;
    height: var(--header-h); display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.brand img { display: block; height: 36px; width: auto; }
.site-footer .brand img { height: 32px; }
.site-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; min-width: 0; }
.site-nav ul { display: flex; flex-wrap: nowrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav li a {
    display: block; padding: 8px 11px; border-radius: 999px; text-decoration: none; white-space: nowrap;
    font-size: 15px; font-weight: 500; color: var(--text-soft);
}
.site-nav li a:hover { color: var(--accent-dark); background: var(--bg-alt); }
.site-nav li a[aria-current="page"] { color: var(--accent-dark); background: rgba(10, 116, 196, 0.1); font-weight: 600; }
.nav-cta {
    flex: none; display: inline-block; padding: 8px 16px; border-radius: 999px; text-decoration: none; white-space: nowrap;
    background: var(--accent-dark); color: #fff; font-size: 15px; font-weight: 600; border: 2px solid var(--accent-dark);
}
.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
    .nav-toggle {
        display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto;
        width: 44px; height: 44px; padding: 0 11px; background: transparent; border: 0; border-radius: 10px; cursor: pointer;
    }
    .nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform .18s, opacity .18s; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .site-nav {
        display: none; position: absolute; left: 0; right: 0; top: var(--header-h); margin: 0;
        flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 20px 18px;
        background: var(--bg);
        border-bottom: 0.5px solid var(--border); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
    }
    .site-nav.open { display: flex; }
    .site-nav ul { flex-direction: column; gap: 0; }
    .site-nav li a { padding: 12px 8px; border-radius: 10px; font-size: 17px; }
    .nav-cta { text-align: center; padding: 12px 16px; font-size: 16px; }
}

/* ---------- main ---------- */
.site-main { flex: 1 0 auto; width: 100%; }
.t-legacy { padding-bottom: 40px; }
@media (max-width: 600px) { .t-legacy { padding-left: 14px; padding-right: 14px; } }

/* ---------- footer ---------- */
.site-footer { flex: none; background: var(--bg-alt); border-top: 1px solid var(--border); color: var(--text-soft); }
.site-footer-inner {
    max-width: calc(var(--frame-w) + 40px); margin: 0 auto; padding: 36px 20px 34px;
    display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; font-size: 15px;
}
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.footer-brand p { margin: 0; max-width: 460px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--text); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.footer-small { margin: 0; font-size: 13.5px; line-height: 1.6; }
.footer-small a { color: var(--accent-dark); font-weight: 600; text-underline-offset: 3px; }
.footer-legal { max-width: 820px; margin: 0; font-size: 12.5px; line-height: 1.6; }
.footer-legal a { color: var(--accent-dark); text-underline-offset: 3px; }
@media print { .site-header, .site-footer, .skip-link { display: none; } }

/* ---------- page content ---------- */
:root { --radius: 16px; --shadow: 0 1px 2px rgba(10, 30, 55, 0.06), 0 8px 24px rgba(10, 30, 55, 0.06); --ink: #0d2740; }
.t-wrap { max-width: calc(var(--frame-w) + 40px); margin: 0 auto; padding: 0 20px; }
.t-section { padding: 76px 0; }
.t-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.t-head { max-width: 640px; margin: 0 0 36px; }
.t-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.t-eyebrow { display: block; margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.site-main h1, .site-main h2, .site-main h3 { color: var(--ink); letter-spacing: -0.015em; }
.site-main h2 { margin: 0 0 12px; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem); line-height: 1.15; font-weight: 750; }
.site-main h3 { margin: 0 0 6px; font-size: 1.1rem; line-height: 1.3; font-weight: 650; }
.t-head p, .t-lead { margin: 0; font-size: 1.08rem; line-height: 1.6; color: var(--text-soft); }
.site-main p { margin: 0 0 12px; }
.site-main em { font-style: normal; color: var(--accent); }

/* hero */
.t-hero {
    position: relative; overflow: hidden; padding: 84px 0 76px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, #ffffff 100%) no-repeat 0 0 / 100% 100%,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800' fill='none' stroke='%230A74C4' stroke-width='3'%3E%3Ccircle cx='400' cy='400' r='110' opacity='0.22'/%3E%3Ccircle cx='400' cy='400' r='200' opacity='0.17'/%3E%3Ccircle cx='400' cy='400' r='290' opacity='0.12'/%3E%3Ccircle cx='400' cy='400' r='380' opacity='0.08'/%3E%3Cpath d='M400 400L400 20' opacity='.2' stroke-width='2'/%3E%3Ccircle cx='400' cy='400' r='8' fill='%230A74C4' stroke='none' opacity='.5'/%3E%3Cg stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M23.7 452.9A380 380 0 0 1 29.7 314.5' stroke-dasharray='2 6' opacity='.35'/%3E%3Cpath d='M266.2 548.6A200 200 0 0 1 221.8 490.8' stroke-dasharray='2 6' opacity='.35'/%3E%3Cpath d='M154.1 246.3A290 290 0 0 1 225.5 168.4' stroke-dasharray='2 6' opacity='.35'/%3E%3C/g%3E%3Cg transform='translate(42.9 270.0) rotate(40) scale(2.4) translate(-12 -12)' stroke='%230A74C4' stroke-width='1.1' stroke-linejoin='round' stroke-linecap='round' fill='none' opacity='0.42'%3E%3Crect x='9' y='9' width='6' height='6' rx='.6'/%3E%3Crect x='1.5' y='10' width='5.5' height='4'/%3E%3Crect x='17' y='10' width='5.5' height='4'/%3E%3Cpath d='M7 12H9M15 12H17M12 9V6'/%3E%3Ccircle cx='12' cy='5' r='1'/%3E%3C/g%3E%3Cg transform='translate(212.1 468.4) rotate(-20) scale(2.4) translate(-12 -12)' stroke='%230A74C4' stroke-width='1.1' stroke-linejoin='round' stroke-linecap='round' fill='none' opacity='0.42'%3E%3Cpath d='M12 2C15 6 16 10 16 14L16 21 8 21 8 14C8 10 9 6 12 2Z'/%3E%3Cpath d='M8 17H16M12 8V12'/%3E%3C/g%3E%3Cg transform='translate(255.0 148.9) rotate(60) scale(2.4) translate(-12 -12)' stroke='%230A74C4' stroke-width='1.1' stroke-linejoin='round' stroke-linecap='round' fill='none' opacity='0.42'%3E%3Cpath d='M12 2 13.2 9 21 13 21 15 13.2 13 12.8 19 15 20.5 15 22 12 21 9 22 9 20.5 11.2 19 10.8 13 3 15 3 13 10.8 9Z'/%3E%3C/g%3E%3C/svg%3E") no-repeat right -160px top -120px / 760px auto,
        linear-gradient(180deg, #eef5fb 0%, #ffffff 100%);
}
.t-hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.t-hero h1 { margin: 0 0 18px; font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.6rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.022em; }
.t-hero .t-lead { max-width: 560px; font-size: 1.15rem; color: var(--text); }
.t-hero.small { padding: 64px 0 52px; }
.t-hero.small h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.t-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.t-chips li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px 6px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--accent-dark); }
.t-chips .t-i { width: 16px; height: 16px; }
.t-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.t-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; border: 2px solid var(--accent-dark); background: var(--accent-dark); color: #fff; font-weight: 650; font-size: 16px; text-decoration: none; transition: background .15s, border-color .15s, transform .15s; }
.t-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.t-btn .t-i { width: 18px; height: 18px; }
.t-btn-alt { background: transparent; color: var(--accent-dark); }
.t-btn-alt:hover { background: #fff; color: var(--accent-dark); border-color: var(--accent-dark); }
.t-btn-light { background: #fff; border-color: #fff; color: var(--accent-dark); }
.t-btn-light:hover { background: var(--bg-alt); border-color: var(--bg-alt); color: var(--accent-dark); }
.t-btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.t-btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }

/* profile card (hero side) */
.t-profile { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.t-profile .t-name { margin: 0; font-size: 1.35rem; font-weight: 750; color: var(--ink); letter-spacing: -0.01em; }
.t-profile .t-role { margin: 2px 0 18px; color: var(--text-soft); font-size: 15px; }
.t-profile .t-badges { display: flex; gap: 8px; margin: 0 0 18px; }
.t-badge { padding: 4px 12px; border-radius: 8px; background: rgba(10, 116, 196, 0.1); color: var(--accent-dark); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; }
.t-facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.t-facts li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--text); }
.t-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.t-facts .t-i { flex: none; width: 20px; height: 20px; color: var(--accent); }
.t-open { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 14px; font-weight: 600; color: #1f7a4d; }
.t-open::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #2fb36d; box-shadow: 0 0 0 4px rgba(47, 179, 109, 0.2); }

/* stats band */
.t-band { background: linear-gradient(135deg, var(--accent-dark), #073f6e); color: #fff; }
.t-stats { display: grid; grid-template-columns: repeat(6, 1fr); }
.t-stat { padding: 30px 14px; text-align: left; }
.t-stat + .t-stat { border-left: 1px solid rgba(255, 255, 255, 0.16); padding-left: 22px; }
.t-stat b { display: block; white-space: nowrap; font-size: clamp(1.4rem, 1.1rem + 0.7vw, 1.75rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.t-stat span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.4; color: rgba(255, 255, 255, 0.78); }

/* cards and grids */
.t-grid { display: grid; gap: 20px; }
.t-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.t-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.t-g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.t-card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: box-shadow .18s, transform .18s, border-color .18s; }
.t-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #c4d3e2; }
.t-card p { margin: 0; color: var(--text-soft); font-size: 15.5px; line-height: 1.55; }
.t-card .t-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 650; font-size: 15px; color: var(--accent-dark); text-decoration: none; }
.t-card .t-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.t-card .t-more .t-i { width: 16px; height: 16px; }
.t-i { width: 24px; height: 24px; display: inline-block; vertical-align: middle; }
.t-ico { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 12px; background: rgba(10, 116, 196, 0.1); color: var(--accent); }
.t-ico .t-i { width: 24px; height: 24px; }
.t-num { display: block; margin-bottom: 14px; font-size: 14px; font-weight: 800; letter-spacing: 0.1em; color: var(--accent-light); }

/* result cards (home) */
.t-result b { display: block; margin-bottom: 4px; font-size: 2.6rem; line-height: 1; font-weight: 800; letter-spacing: -0.03em; color: var(--accent); }
.t-result .t-tag { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); }

/* case studies (work) */
.t-case { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 0; margin: 0 0 22px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.t-case-side { padding: 28px 26px; background: linear-gradient(160deg, #eef5fb, #e1eef9); border-right: 1px solid var(--border); }
.t-case-side .t-tag { display: block; margin-bottom: 18px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.t-case-side b { display: block; font-size: 2.5rem; line-height: 1; font-weight: 800; letter-spacing: -0.03em; color: var(--accent-dark); }
.t-case-side span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--text-soft); }
.t-case-body { padding: 28px 30px; }
.t-case-body h3 { font-size: 1.3rem; margin-bottom: 14px; }
.t-case-body dl { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px 20px; margin: 0; }
.t-case-body dt { padding-top: 2px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.t-case-body dd { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--text-soft); }
.t-case-body dd.t-win { color: var(--text); font-weight: 550; }

/* services */
.t-service { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
.t-service > div:first-child { max-width: 640px; }
.t-service .t-ico { width: 56px; height: 56px; }
.t-service .t-ico .t-i { width: 28px; height: 28px; }
.t-service h2 { margin-bottom: 8px; }
.t-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.t-cols .t-card { padding: 22px; }
.t-cols h3 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.t-list { list-style: none; margin: 0; padding: 0; }
.t-list li { position: relative; padding: 0 0 10px 24px; font-size: 15px; line-height: 1.5; color: var(--text-soft); }
.t-list li:last-child { padding-bottom: 0; }
.t-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: rgba(10, 116, 196, 0.14); }
.t-list li::after { content: ""; position: absolute; left: 4.5px; top: 7.5px; width: 3px; height: 6px; border: solid var(--accent); border-width: 0 1.8px 1.8px 0; transform: rotate(40deg) scale(.9); }

/* steps and timeline */
.t-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.t-step { position: relative; padding: 4px 0 0 0; }
.t-step::before { counter-increment: s; content: counter(s); display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 50%; background: var(--accent-dark); color: #fff; font-weight: 750; }
.t-step p { margin: 0; color: var(--text-soft); font-size: 15.5px; }
.t-steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.t-timeline { position: relative; max-width: 820px; margin: 0; padding: 0 0 0 34px; }
.t-timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent-light), var(--border)); }
.t-job { position: relative; padding: 0 0 30px; }
.t-job:last-child { padding-bottom: 0; }
.t-job::before { content: ""; position: absolute; left: -34px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.t-job.now::before { background: var(--accent); box-shadow: 0 0 0 5px rgba(10, 116, 196, 0.18); }
.t-when { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.t-job h3 { margin-bottom: 6px; }
.t-job p { margin: 0; font-size: 15.5px; color: var(--text-soft); }

/* two-column text blocks */
.t-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.t-split.wide { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
.t-prose p { font-size: 1.08rem; line-height: 1.7; color: var(--text-soft); }
.t-prose p strong { color: var(--ink); }

/* map frame (showcase) */
.t-browser { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 2px 4px rgba(10, 30, 55, 0.06), 0 24px 60px rgba(10, 30, 55, 0.14); }
.t-browser-bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.t-browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d3dade; }
.t-browser-bar span { margin-left: 10px; font-size: 13px; color: var(--text-soft); }
.t-browser iframe { display: block; width: 100%; height: 560px; border: 0; pointer-events: none; background: var(--bg-alt); }
.t-caption { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--text-soft); }

/* call to action band */
.t-cta { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--accent-dark), #073f6e); color: #fff; }
.t-cta .t-wrap { padding-top: 68px; padding-bottom: 68px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.t-cta h2 { color: #fff; margin-bottom: 8px; }
.t-cta p { margin: 0; max-width: 560px; color: rgba(255, 255, 255, 0.82); font-size: 1.08rem; }
.t-cta .t-actions { margin: 0; }
.t-cta a:focus-visible, .t-band a:focus-visible { outline-color: #fff; }

/* contact */
.t-mail { display: inline-flex; align-items: center; gap: 12px; margin-top: 8px; padding: 16px 28px; border-radius: 999px; background: var(--accent-dark); color: #fff; font-size: clamp(1rem, 0.8rem + 1vw, 1.3rem); font-weight: 650; text-decoration: none; transition: background .15s; }
.t-mail:hover { background: var(--accent); color: #fff; }
.t-mail .t-i { width: 22px; height: 22px; }
.site-main .t-note { margin: 22px 0 0; font-size: 14px; color: var(--text-soft); }

.t-fine { margin: 0; padding: 26px 0 0; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-soft); }
a:focus-visible, .t-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@keyframes t-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.t-hero .t-hero-grid > * { animation: t-rise .6s ease both; }
.t-hero .t-hero-grid > *:nth-child(2) { animation-delay: .12s; }
@media (prefers-reduced-motion: reduce) { .t-hero .t-hero-grid > * { animation: none; } .t-card, .t-btn { transition: none; } }

@media (max-width: 980px) {
    .t-hero-grid, .t-split, .t-split.wide, .t-service { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .t-g3, .t-g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .t-stats { grid-template-columns: repeat(3, 1fr); }
    .t-stat:nth-child(4) { border-left: 0; padding-left: 14px; }
    .t-stat:nth-child(n+4) { border-top: 1px solid rgba(255, 255, 255, 0.16); }
    .t-stat:nth-child(1), .t-stat:nth-child(4) { padding-left: 14px; }
    .t-cols { grid-template-columns: minmax(0, 1fr); }
    .t-steps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .t-cta .t-wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 700px) {
    .t-section { padding: 52px 0; }
    .t-hero { padding: 52px 0 48px; background-position: 0 0, right -380px top -160px, 0 0; }
    .t-g2, .t-g3, .t-g4, .t-steps { grid-template-columns: minmax(0, 1fr); }
    .t-stats { grid-template-columns: repeat(2, 1fr); }
    .t-stat, .t-stat + .t-stat { border-left: 0; padding: 22px 14px; }
    .t-stat:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, 0.16); padding-left: 20px; }
    .t-stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.16); }
    .t-case { grid-template-columns: minmax(0, 1fr); }
    .t-case-side { border-right: 0; border-bottom: 1px solid var(--border); padding: 20px 22px; }
    .t-case-side b { font-size: 2rem; }
    .t-case-body { padding: 22px; }
    .t-case-body dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .t-case-body dd { margin-bottom: 12px; }
    .t-browser iframe { height: 380px; }
    .t-actions .t-btn { flex: 1 1 auto; justify-content: center; }
}
@media print { .t-hero, .t-band, .t-cta { background: none; color: inherit; } }

/* ---------- map pages: the map is the page ---------- */
.m-bar { position: relative; z-index: 5; background: var(--glass-bg); -webkit-backdrop-filter: saturate(180%) blur(var(--glass-blur)); backdrop-filter: saturate(180%) blur(var(--glass-blur)); border-bottom: 0.5px solid var(--border); }
.m-bar-inner { display: flex; align-items: center; gap: 16px; max-width: calc(var(--frame-w) + 40px); margin: 0 auto; padding: 0 20px; min-height: 52px; }
.m-bar h1 { margin: 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.m-bar .t-chips { margin: 0; flex-wrap: nowrap; }
.m-bar .t-chips li { padding: 4px 11px 4px 9px; font-size: 13px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); }
.m-bar-desc { margin: 0; flex: 1 1 auto; min-width: 0; font-size: 14px; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-bar-link { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--accent-dark); color: var(--accent-dark); font-size: 14px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.m-bar-link:hover { background: var(--accent-dark); color: #fff; }
.m-bar-link .t-i { width: 15px; height: 15px; }
.m-map { position: relative; width: 100%; height: calc(100vh - var(--header-h) - 53px); height: calc(100dvh - var(--header-h) - 53px); min-height: 460px; background: #d4dadc; overflow: hidden; }
.m-map::before { content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 3px solid rgba(10, 116, 196, 0.2); border-top-color: var(--accent); animation: m-spin .9s linear infinite; }
.m-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }
.m-map.short { height: clamp(460px, 72vh, 760px); }
.m-glass { position: absolute; z-index: 2; background: var(--glass-bg); -webkit-backdrop-filter: saturate(180%) blur(var(--glass-blur)); backdrop-filter: saturate(180%) blur(var(--glass-blur)); border: 0.5px solid rgba(255, 255, 255, 0.7); border-radius: 18px; box-shadow: 0 10px 40px rgba(10, 30, 55, 0.22); }
.m-legend { left: 20px; bottom: 28px; width: min(320px, calc(100% - 40px)); padding: 16px 18px; }
.m-legend h2 { margin: 0 0 8px; font-size: 1rem; }
.m-legend p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: var(--text-soft); }
.m-ramp { height: 10px; border-radius: 6px; background: linear-gradient(90deg, #0b1a6e, #1f78ff, #1fd1c8, #6fe24a, #ffe03a, #ff8a1f, #f02424); }
.m-ramp-l { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--text-soft); }
@keyframes m-spin { to { transform: rotate(360deg); } }

/* home: live map behind the headline */
.m-hero { position: relative; overflow: hidden; min-height: 640px; display: flex; align-items: center; background: #d4dadc; }
.m-hero .m-map-bg { position: absolute; inset: 0; }
.m-hero .m-map-bg::before { content: ""; position: absolute; left: 62%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 3px solid rgba(10, 116, 196, 0.2); border-top-color: var(--accent); animation: m-spin .9s linear infinite; }
.m-hero .m-map-bg iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.m-hero .t-wrap { position: relative; z-index: 2; width: 100%; padding-top: 64px; padding-bottom: 64px; pointer-events: none; }
.m-hero-card { max-width: 520px; padding: 34px 34px 30px; pointer-events: auto; position: relative; }
.m-hero-card h1 { margin: 0 0 16px; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); line-height: 1.06; font-weight: 800; letter-spacing: -0.025em; }
.m-hero-card h1 b { color: var(--accent); font-weight: 800; }
.m-hero-card .t-lead { font-size: 1.08rem; color: var(--text); }
.m-hero-card .t-actions { margin-top: 24px; }
.m-live { position: absolute; z-index: 3; right: 20px; top: 24px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; max-width: calc(100% - 40px); }
.m-live .m-glass { position: static; display: flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: 14px; box-shadow: 0 6px 24px rgba(10, 30, 55, 0.2); }
.m-live b { font-size: 1.35rem; line-height: 1; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.m-live span { font-size: 13px; font-weight: 600; color: var(--text-soft); }
.m-live .m-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fb36d; box-shadow: 0 0 0 4px rgba(47, 179, 109, 0.22); align-self: center; animation: m-pulse 2s ease infinite; }
@keyframes m-pulse { 50% { box-shadow: 0 0 0 7px rgba(47, 179, 109, 0); } }

.t-card .t-eyebrow { margin-bottom: 4px; }
.t-g2.tight { gap: 18px; }
.t-note-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); }

.t-coffee { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; background: #fff; color: var(--accent-dark); border: 1px solid var(--border); font-weight: 650; font-size: 14.5px; text-decoration: none; }
.t-coffee:hover { border-color: var(--accent); }

@media (max-width: 980px) {
    .m-bar-desc { display: none; }
    .m-hero { min-height: 0; flex-direction: column; align-items: stretch; background: var(--bg-alt); }
    .m-hero .m-map-bg { position: relative; inset: auto; order: 2; height: 380px; }
    .m-hero .m-map-bg::before { left: 50%; }
    .m-hero .t-wrap { padding-top: 40px; padding-bottom: 34px; }
    .m-hero-card { max-width: none; background: none; box-shadow: none; border: 0; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .m-live { position: static; order: 3; justify-content: flex-start; padding: 16px 20px 22px; max-width: none; background: var(--bg-alt); }
    .m-live .m-glass { background: #fff; }
}
@media (max-width: 700px) {
    .m-bar-inner { padding: 0 14px; gap: 10px; min-height: 48px; }
    .m-bar .t-chips { display: none; }
    .m-map { height: calc(100dvh - var(--header-h) - 49px); min-height: 420px; }
    .m-legend { left: 12px; bottom: 16px; }
    .m-live .m-glass { padding: 8px 12px; }
}
a.t-link { display: block; color: inherit; text-decoration: none; }
a.t-link h3 { color: var(--ink); }
a.t-link:hover h3 { color: var(--accent-dark); }
.t-fine a { color: var(--accent-dark); }

/* ---------- technical page: how it works ---------- */
.m-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px; margin: 0; padding: 0; list-style: none; counter-reset: f; }
.m-stage { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 18px 18px; }
.m-stage + .m-stage::before { content: ""; position: absolute; left: -23px; top: 34px; width: 16px; height: 2px; background: var(--accent-light); }
.m-stage + .m-stage::after { content: ""; position: absolute; left: -12px; top: 28.5px; width: 8px; height: 8px; border: solid var(--accent-light); border-width: 2px 2px 0 0; transform: rotate(45deg); }
.m-stage::marker { content: none; }
.m-stage .m-n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-bottom: 10px; border-radius: 50%; background: var(--accent-dark); color: #fff; font-size: 13px; font-weight: 750; }
.m-stage h3 { font-size: 1.02rem; margin-bottom: 8px; }
.m-stage ul { margin: 0; padding: 0; list-style: none; }
.m-stage li { padding: 4px 0; font-size: 14px; line-height: 1.4; color: var(--text-soft); border-top: 1px solid var(--border); }
.m-stage li:first-child { border-top: 0; }
.m-stage li b { color: var(--ink); font-weight: 650; }
.m-prose p { font-size: 1.04rem; line-height: 1.7; color: var(--text-soft); }
.m-prose p strong, .m-prose li strong { color: var(--ink); }
.m-prose ul { margin: 0 0 14px; padding-left: 20px; color: var(--text-soft); line-height: 1.65; }
.m-prose a { color: var(--accent-dark); text-underline-offset: 3px; }
.m-prose code, .m-spec code, .m-table code { padding: 1px 6px; border-radius: 6px; background: rgba(10, 116, 196, 0.08); color: var(--accent-dark); font-size: 0.88em; }
.m-spec { margin: 0; }
.m-spec div { display: grid; grid-template-columns: 38% 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 14.5px; line-height: 1.5; }
.m-spec div:first-child { border-top: 0; padding-top: 0; }
.m-spec dt { font-weight: 650; color: var(--ink); }
.m-spec dd { margin: 0; color: var(--text-soft); }
.m-card-h { margin: 0 0 14px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
pre.m-code { margin: 0 0 16px; padding: 16px 18px; border-radius: 12px; background: #0d2740; color: #dbe8f5; font: 13.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; text-align: left; }
pre.m-code .c { color: #7f9bb8; }
pre.m-code .k { color: #7cc4ff; }
.m-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.m-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.m-table th { padding: 12px 16px; text-align: left; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); background: var(--bg-alt); border-bottom: 1px solid var(--border); white-space: nowrap; }
.m-table td { padding: 12px 16px; vertical-align: top; color: var(--text-soft); border-top: 1px solid var(--border); }
.m-table tr:first-child td { border-top: 0; }
.m-table td:first-child { color: var(--ink); font-weight: 650; white-space: nowrap; }
.m-table a { color: var(--accent-dark); font-weight: 600; text-underline-offset: 3px; }
.m-lic { display: inline-block; padding: 2px 8px; border-radius: 6px; background: rgba(10, 116, 196, 0.1); color: var(--accent-dark); font-size: 12px; font-weight: 700; white-space: nowrap; }
.m-sub { margin: 28px 0 10px; font-size: 1.05rem; }
@media (max-width: 1000px) {
    .m-flow { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .m-stage + .m-stage::before { left: 34px; top: -21px; width: 2px; height: 16px; }
    .m-stage + .m-stage::after { left: 30.5px; top: -12px; transform: rotate(135deg); }
}
@media (max-width: 700px) {
    .m-spec div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .m-table td:first-child { white-space: normal; }
}

/* block diagram */
.m-diagram { position: relative; overflow-x: auto; padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); }
.m-svg { display: block; width: 100%; min-width: 980px; height: auto; font-family: var(--font); }
.m-svg .bt { font-size: 14px; font-weight: 650; fill: var(--ink); }
.m-svg .bs { font-size: 11.5px; fill: var(--text-soft); }
.m-svg .col { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; fill: var(--text-soft); }
.m-svg .lane { font-size: 11.5px; font-weight: 750; letter-spacing: 0.1em; }
.m-svg .bn { font-size: 11px; font-weight: 750; fill: #fff; text-anchor: middle; }
.m-svg .rd { font-size: 15px; font-weight: 700; fill: #fff; letter-spacing: 0.04em; }
.m-svg .rs { font-size: 11.5px; fill: #cfe0f1; letter-spacing: 0.06em; }
.m-diagram-hint { display: none; margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--text-soft); }
.m-key-dots { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin: 18px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 600; }
.m-key-dots li { display: inline-flex; align-items: center; gap: 8px; color: var(--text-soft); }
.m-key-dots i { width: 22px; height: 4px; border-radius: 2px; }
.m-key-dots i.dash { background: repeating-linear-gradient(90deg, var(--k) 0 6px, transparent 6px 10px); }
.m-flows { columns: 2; column-gap: 40px; margin: 26px 0 0; padding: 0; list-style: none; counter-reset: fl; }
.m-flows li { position: relative; break-inside: avoid; padding: 0 0 12px 38px; font-size: 14.5px; line-height: 1.5; color: var(--text-soft); }
.m-flows li::before { counter-increment: fl; content: counter(fl); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-dark); color: #fff; font-size: 12px; font-weight: 750; display: flex; align-items: center; justify-content: center; }
.m-flows li strong { color: var(--ink); }
.m-flows li code { padding: 1px 6px; border-radius: 6px; background: rgba(10, 116, 196, 0.08); color: var(--accent-dark); font-size: 0.88em; }
@media (max-width: 1000px) { .m-diagram-hint { display: block; } .m-flows { columns: 1; } }
.m-svg .cf { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; fill: #6b7c8f; }
.site-main .m-card-h { margin: 0 0 14px; }
.m-prose em { color: inherit; font-style: italic; }
.t-stats.t-s4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .t-stats.t-s4 { grid-template-columns: repeat(2, 1fr); } .t-s4 .t-stat:nth-child(3) { border-left: 0; padding-left: 14px; } .t-s4 .t-stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.16); } .t-s4 .t-stat:nth-child(4) { border-left: 1px solid rgba(255, 255, 255, 0.16); padding-left: 22px; } }
.t-live li b { font-variant-numeric: tabular-nums; color: var(--ink); }
.t-eyebrow a { color: inherit; text-decoration: none; }
.t-eyebrow a:hover { text-decoration: underline; text-underline-offset: 3px; }
