/* Elprom-ILEP: the test bench's oscilloscope in the ink of the ILEP logo.
   Screen night and logo ultramarine for the header, the hero, the history and the call band; lab paper for
   reading; phosphor amber for traces and actions. Exo 2 (display) + Inter (text). */

@font-face {
    font-family: "Exo 2";
    src: url("/fonts/exo2.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/fonts/inter.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --night: #060a24;
    --night-2: #0b1238;
    --night-3: #16205a;
    --blue: #000099;
    --blue-lit: #3b45e0;
    --blue-soft: #a9aeff;
    --amber: #ffb627;
    --amber-hot: #ffcb62;
    --paper: #f1f2f6;
    --sheet: #ffffff;
    --ink: #0c1030;
    --ink-2: #444a68;
    --line: #d9dbe6;
    --on-night: #eceeff;
    --on-night-2: #b4b9dd;
    --ch1: #ffb627;
    --ch2: #4fd8ff;
    --ch3: #ff7ab4;
    --ch4: #7be38a;
    --ch5: #a9aeff;
    --focus: #3b45e0;
    --radius: 18px;
    --display: "Exo 2", "Segoe UI", system-ui, sans-serif;
    --text: "Inter", "Segoe UI", system-ui, sans-serif;
    --wrap: 1200px;
    --lb-bg: rgba(4, 7, 26, 0.96);
    --lb-text: #eceeff;
    --lb-accent: #ffb627;
    --lb-accent-soft: rgba(255, 182, 39, 0.22);
    color-scheme: light;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 1.0625rem/1.65 var(--text);
    overflow-x: hidden;
}

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

a {
    color: var(--blue);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--blue-lit);
}

h1,
h2,
h3 {
    font-family: var(--display);
    line-height: 1.08;
    letter-spacing: -0.015em;
    margin: 0 0 0.5em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.15rem, 5.6vw, 4.4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.75rem);
    font-weight: 800;
}

h3,
.h3 {
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    font-weight: 700;
    letter-spacing: -0.005em;
}

p {
    margin: 0 0 1em;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    border-radius: 4px;
}

.top,
.hero,
.page-hero,
.night,
.cta,
.foot {
    --focus: #ffb627;
}

.wrap {
    width: min(100% - 32px, var(--wrap));
    margin-inline: auto;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--amber);
    color: var(--ink);
    font-weight: 700;
    border-radius: 8px;
}

.skip:focus {
    top: 12px;
}

/* ---- buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    min-height: 48px;
    padding: 12px 22px;
    border: 2px solid var(--blue);
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font: 700 1rem/1.2 var(--display);
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
    color: #fff;
    background: var(--blue-lit);
    border-color: var(--blue-lit);
    transform: translateY(-2px);
}

.btn-amber,
.btn-amber:hover {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--ink);
}

.btn-amber:hover {
    background: var(--amber-hot);
    border-color: var(--amber-hot);
    box-shadow: 0 10px 30px -10px rgba(255, 182, 39, 0.7);
}

.btn-ghost,
.btn-ghost:hover {
    background: transparent;
    border-color: rgba(236, 238, 255, 0.45);
    color: var(--on-night);
}

.btn-ghost:hover {
    border-color: var(--on-night);
    background: rgba(236, 238, 255, 0.08);
}

/* ---- header ---- */

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(6, 10, 36, 0.9);
    color: var(--on-night);
    border-bottom: 1px solid rgba(169, 174, 255, 0.16);
}

@supports (backdrop-filter: blur(1px)) {
    .top {
        background: rgba(6, 10, 36, 0.78);
        backdrop-filter: blur(14px) saturate(1.3);
    }
}

.top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    min-height: 68px;
    padding-block: 8px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--on-night);
    text-decoration: none;
    margin-right: auto;
}

.brand:hover {
    color: #fff;
}

.brand img {
    width: 38px;
    height: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-text strong {
    font: 800 1.2rem/1 var(--display);
    letter-spacing: 0.01em;
}

.brand-text small {
    font: 600 0.72rem/1.3 var(--display);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--on-night-2);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    order: 2;
}

.nav a {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--on-night);
    font: 600 0.98rem/1.2 var(--display);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.nav a:hover {
    background: rgba(169, 174, 255, 0.14);
    color: #fff;
}

.nav a[aria-current] {
    background: #1c2250;
    color: var(--amber);
    box-shadow: inset 0 0 0 1px rgba(255, 182, 39, 0.6);
}

.call {
    order: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--amber);
    color: var(--ink);
    font: 700 0.98rem/1 var(--display);
    text-decoration: none;
    white-space: nowrap;
}

.call:hover {
    color: var(--ink);
    background: var(--amber-hot);
}

.lang {
    order: 4;
    display: flex;
    gap: 2px;
    font: 700 0.85rem/1 var(--display);
}

.lang a,
.lang span {
    padding: 8px 8px;
    border-radius: 8px;
    color: var(--on-night-2);
    text-decoration: none;
}

.lang a:hover {
    color: #fff;
}

.lang span[aria-current] {
    color: var(--on-night);
    box-shadow: inset 0 -2px 0 var(--amber);
    border-radius: 0;
}

.menu-btn {
    order: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid rgba(236, 238, 255, 0.35);
    border-radius: 999px;
    background: transparent;
    color: var(--on-night);
    font: 700 0.92rem/1 var(--display);
    cursor: pointer;
}

.menu-btn[hidden] {
    display: none;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s ease;
}

.menu-bars {
    position: relative;
}

.menu-bars::before,
.menu-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-bars::before {
    top: -5px;
}

.menu-bars::after {
    top: 5px;
}

.menu-open .menu-bars {
    background: transparent;
}

.menu-open .menu-bars::before {
    transform: translateY(5px) rotate(45deg);
}

.menu-open .menu-bars::after {
    transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 959px) {
    .nav {
        order: 10;
        flex-basis: 100%;
        padding-bottom: 6px;
    }

    .js-menu .nav {
        display: none;
    }

    .js-menu .menu-open .nav {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 8px 0 14px;
    }

    .js-menu .menu-open .nav a {
        padding: 12px 14px;
        font-size: 1.1rem;
    }
}

@media (min-width: 960px) {
    .menu-btn {
        display: none !important;
    }

    .nav {
        order: 1;
        margin-right: 8px;
    }
}

@media (max-width: 520px) {
    .brand-text small {
        display: none;
    }

    .call {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .top-row {
        gap: 8px 10px;
    }
}

@media (max-width: 520px) {
    .menu-btn {
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
    }

    .menu-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .lang a,
    .lang span {
        padding: 8px 6px;
    }
}

@media (max-width: 400px) {
    .brand-text {
        display: none;
    }
}

a[href^="tel:"] {
    white-space: nowrap;
}

/* ---- hero with the oscilloscope ---- */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(60% 70% at 85% 20%, rgba(59, 69, 224, 0.42), transparent 70%),
        radial-gradient(50% 60% at 0% 100%, rgba(0, 0, 153, 0.55), transparent 70%),
        var(--night);
    color: var(--on-night);
    padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 100px);
}

.hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(169, 174, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(169, 174, 255, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, #000 30%, transparent);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

@media (min-width: 1000px) {
    .hero-grid {
        grid-template-columns: 1fr 1.08fr;
    }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 600 0.82rem/1.35 var(--display);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 1.1em;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    flex: none;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.hero h1 {
    color: #fff;
}

.lead {
    font-size: clamp(1.08rem, 1.6vw, 1.25rem);
    line-height: 1.6;
    max-width: 62ch;
}

.hero .lead,
.page-hero .lead {
    color: var(--on-night-2);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.scope {
    margin: 0;
    padding: clamp(10px, 1.6vw, 18px);
    border-radius: 26px;
    background: linear-gradient(160deg, #1d2450, #0a0f2c 60%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 40px 80px -30px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(169, 174, 255, 0.14);
}

.scope-screen {
    border-radius: 14px;
    overflow: hidden;
    background: radial-gradient(90% 90% at 50% 50%, #0b1440, #030617);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(169, 174, 255, 0.2);
}

.scope-svg {
    display: block;
    width: 100%;
    height: auto;
}

.scope-svg .grid {
    fill: none;
    stroke: rgba(169, 174, 255, 0.2);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.scope-svg .ticks {
    fill: none;
    stroke: rgba(169, 174, 255, 0.42);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.scope-svg .trace {
    fill: none;
    stroke-width: 2.5;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 1 1;
    stroke-dashoffset: 0;
}

.scope-svg .ch1 { stroke: var(--ch1); filter: drop-shadow(0 0 4px var(--ch1)); }
.scope-svg .ch2 { stroke: var(--ch2); filter: drop-shadow(0 0 4px var(--ch2)); }
.scope-svg .ch3 { stroke: var(--ch3); filter: drop-shadow(0 0 4px var(--ch3)); }
.scope-svg .ch4 { stroke: var(--ch4); filter: drop-shadow(0 0 4px var(--ch4)); }
.scope-svg .ch5 { stroke: var(--ch5); filter: drop-shadow(0 0 4px var(--ch5)); }

.scope-svg .ch-tag {
    font: 700 20px var(--display);
    letter-spacing: 0.08em;
    stroke: none;
    filter: none;
}

.scope-svg text.ch1 { fill: var(--ch1); }
.scope-svg text.ch2 { fill: var(--ch2); }
.scope-svg text.ch3 { fill: var(--ch3); }
.scope-svg text.ch4 { fill: var(--ch4); }
.scope-svg text.ch5 { fill: var(--ch5); }

.scope-svg .beam {
    fill: rgba(236, 238, 255, 0.7);
    opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
    .scope-svg .trace {
        animation: draw 1.7s cubic-bezier(0.55, 0.1, 0.3, 1) both;
    }

    .scope-svg .trace.ch2 { animation-delay: 0.3s; }
    .scope-svg .trace.ch3 { animation-delay: 0.6s; }
    .scope-svg .trace.ch4 { animation-delay: 0.9s; }
    .scope-svg .trace.ch5 { animation-delay: 1.2s; }

    .scope-svg .beam {
        animation: sweep 2.9s cubic-bezier(0.55, 0.1, 0.3, 1) 0.1s both;
    }

    .scope-legend li {
        animation: fade-in 0.6s ease both;
    }

    .scope-legend li:nth-child(2) { animation-delay: 0.3s; }
    .scope-legend li:nth-child(3) { animation-delay: 0.6s; }
    .scope-legend li:nth-child(4) { animation-delay: 0.9s; }
    .scope-legend li:nth-child(5) { animation-delay: 1.2s; }

    .hero-text > * {
        animation: rise-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    .hero-text > :nth-child(2) { animation-delay: 0.08s; }
    .hero-text > :nth-child(3) { animation-delay: 0.16s; }
    .hero-text > :nth-child(4) { animation-delay: 0.24s; }
}

@keyframes draw {
    from { stroke-dashoffset: 1; }
    to { stroke-dashoffset: 0; }
}

@keyframes sweep {
    0% { transform: translateX(0); opacity: 0; }
    8% { opacity: 0.8; }
    85% { opacity: 0.5; }
    100% { transform: translateX(1000px); opacity: 0; }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes rise-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

.scope figcaption {
    padding: 14px 6px 4px;
}

.scope-legend {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: grid;
    gap: 6px 18px;
    font-size: 0.92rem;
    line-height: 1.35;
    color: var(--on-night);
}

@media (min-width: 640px) {
    .scope-legend {
        grid-template-columns: 1fr 1fr;
    }
}

.scope-legend li {
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.scope-legend b {
    flex: none;
    font: 700 0.78rem/1 var(--display);
    letter-spacing: 0.08em;
    padding: 4px 7px;
    border-radius: 6px;
    color: var(--night);
}

.scope-legend .ch1 b { background: var(--ch1); }
.scope-legend .ch2 b { background: var(--ch2); }
.scope-legend .ch3 b { background: var(--ch3); }
.scope-legend .ch4 b { background: var(--ch4); }
.scope-legend .ch5 b { background: var(--ch5); }

.readouts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.readouts div {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(3, 6, 23, 0.7);
    box-shadow: inset 0 0 0 1px rgba(169, 174, 255, 0.18);
}

.readouts dt {
    font: 600 0.7rem/1.2 var(--display);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--on-night-2);
}

.readouts dd {
    margin: 4px 0 0;
    font: 700 clamp(1rem, 2vw, 1.25rem)/1.1 var(--display);
    color: var(--amber);
    font-variant-numeric: tabular-nums;
}

/* ---- page hero (inner pages) ---- */

.page-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(55% 90% at 100% 0%, rgba(59, 69, 224, 0.45), transparent 70%),
        var(--night);
    color: var(--on-night);
    padding: clamp(40px, 6vw, 84px) 0 clamp(84px, 9vw, 120px);
}

.page-hero .wrap {
    position: relative;
}

.page-hero h1 {
    color: #fff;
    max-width: 22ch;
}

.page-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    height: 44px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 Q25 0 50 30 T100 30 T150 30 T200 30' fill='none' stroke='%23ffb627' stroke-width='1.5' vector-effect='non-scaling-stroke' opacity='.55'/%3E%3C/svg%3E") repeat-x left center / 300px 44px;
    pointer-events: none;
}

.crumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 18px;
    padding: 0;
    font: 600 0.9rem/1.4 var(--display);
    color: var(--on-night-2);
}

.crumbs li + li::before {
    content: "/";
    margin-right: 6px;
    color: rgba(180, 185, 221, 0.6);
}

.crumbs a {
    color: var(--on-night);
}

.crumbs a:hover {
    color: var(--amber);
}

.crumbs [aria-current] {
    color: var(--amber);
}

/* ---- bands ---- */

.band {
    padding: clamp(56px, 8vw, 112px) 0;
}

.paper {
    background: var(--paper);
}

.sheet {
    background: var(--sheet);
}

.night {
    background: linear-gradient(180deg, var(--night-2), var(--night));
    color: var(--on-night);
}

.night h2,
.night h3 {
    color: #fff;
}

.kicker {
    font: 700 0.85rem/1.4 var(--display);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.8em;
}

.section-head {
    display: grid;
    gap: 8px 48px;
    margin-bottom: clamp(28px, 4vw, 48px);
}

@media (min-width: 900px) {
    .section-head {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
        align-items: end;
    }

    .section-head p {
        margin-bottom: 0.6em;
    }
}

.section-head p {
    color: var(--ink-2);
    font-size: 1.1rem;
}

.h-small {
    font: 700 0.9rem/1.3 var(--display);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-top: 2.4em;
}

/* ---- numbered trail ---- */

.trail {
    list-style: none;
    margin: clamp(24px, 4vw, 44px) 0 0;
    padding: 0;
    display: grid;
    gap: 18px;
    counter-reset: trail;
}

@media (min-width: 860px) {
    .trail {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }
}

.trail li {
    position: relative;
    padding: 26px 24px 22px;
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px -30px rgba(12, 16, 48, 0.45);
}

.trail li::before {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    top: 0;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, var(--blue), var(--blue-lit) 60%, var(--amber));
}

.trail-n {
    display: block;
    font: 800 clamp(2.4rem, 4vw, 3.2rem)/1 var(--display);
    color: var(--blue);
    letter-spacing: -0.03em;
    margin-bottom: 14px;
    font-variant-numeric: tabular-nums;
}

.trail h3 {
    margin-bottom: 0.4em;
}

.trail p {
    color: var(--ink-2);
    margin: 0;
}

.trail-long {
    grid-template-columns: none;
}

@media (min-width: 760px) {
    .trail-long {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1080px) {
    .trail-long {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.trail-long p {
    color: var(--ink);
}

/* ---- bento of the test fields ---- */

.bento {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

@media (min-width: 680px) {
    .bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tile-safety {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1040px) {
    .bento {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .tile-safety {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }

    .tile-energy {
        grid-column: 3;
        grid-row: 1 / 3;
    }

    .tile-ip {
        grid-column: 4;
        grid-row: 1;
    }

    .tile-insulation {
        grid-column: 4;
        grid-row: 2;
    }

    .tile-electrostatic {
        grid-column: 1;
        grid-row: 3;
    }

    .tile-client-support {
        grid-column: 2 / 5;
        grid-row: 3;
    }
}

.tile a {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tile a:hover {
    color: var(--ink);
    transform: translateY(-4px);
    border-color: var(--blue-lit);
    box-shadow: 0 24px 48px -28px rgba(0, 0, 153, 0.55);
}

.tile img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    flex: 1 1 auto;
    min-height: 0;
}

.tile-energy img {
    aspect-ratio: 3 / 4;
}

@media (min-width: 1040px) {
    .tile-safety img {
        aspect-ratio: auto;
        height: 100%;
        max-height: 420px;
    }

    .tile-energy img {
        aspect-ratio: auto;
        height: 100%;
        max-height: 420px;
    }

    .tile-insulation img {
        aspect-ratio: 16 / 9;
    }
}

.tile-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 54px 20px 20px;
}

.tile-body strong {
    font: 700 1.2rem/1.2 var(--display);
}

.tile-body span {
    font-size: 0.96rem;
    line-height: 1.5;
    color: var(--ink-2);
}

.tile-arrow {
    position: absolute;
    right: 16px;
    bottom: 18px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.tile a:hover .tile-arrow {
    transform: translateX(3px);
    background: var(--blue-lit);
}

.tile-safety a,
.tile-client-support a {
    background: var(--night-2);
    border-color: var(--night-3);
    color: var(--on-night);
    --focus: #ffb627;
}

.tile-safety a:hover,
.tile-client-support a:hover {
    color: var(--on-night);
    border-color: var(--amber);
}

.tile-safety .tile-body span,
.tile-client-support .tile-body span {
    color: var(--on-night-2);
}

.tile-safety .tile-arrow,
.tile-client-support .tile-arrow {
    background: var(--amber);
    color: var(--ink);
}

.tile-safety .tile-body strong {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.tile-client-support a {
    background:
        radial-gradient(80% 140% at 100% 0%, rgba(59, 69, 224, 0.5), transparent 70%),
        var(--night-2);
}

.tile-client-support .tile-body {
    padding-block: 26px;
}

.tile-figure {
    display: grid;
    place-items: center;
    padding: 26px 16px 4px;
    font: 800 clamp(2.6rem, 5vw, 3.6rem)/1 var(--display);
    letter-spacing: -0.02em;
    color: var(--blue);
}

/* ---- history: large years ---- */

.years {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

@media (min-width: 760px) {
    .years {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }
}

.year {
    position: relative;
    padding: 26px 26px 22px;
    border-radius: var(--radius);
    background: rgba(169, 174, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(169, 174, 255, 0.16);
}

.year-n {
    font: 800 clamp(3.6rem, 9vw, 6.4rem)/0.9 var(--display);
    letter-spacing: -0.04em;
    color: var(--amber);
    margin-bottom: 14px;
    text-shadow: 0 0 30px rgba(255, 182, 39, 0.35);
    font-variant-numeric: tabular-nums;
}

.year p:last-child {
    margin: 0;
    color: var(--on-night-2);
}

.countries {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 28px;
    padding: 0;
}

.countries li {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(169, 174, 255, 0.35);
    font: 600 0.98rem/1.2 var(--display);
    color: var(--on-night);
}

.countries-ink li {
    border-color: var(--line);
    background: var(--paper);
    color: var(--ink);
}

.link-light {
    color: var(--amber);
    font: 700 1.05rem/1.4 var(--display);
}

.link-light:hover {
    color: var(--amber-hot);
}

/* ---- partner nameplates ---- */

.plates {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

@media (min-width: 620px) {
    .plates {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 980px) {
    .plates {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .plates-tight {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.plates li {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 20px 18px 26px;
    border-radius: 14px;
    background: var(--sheet);
    border: 1px solid var(--line);
    overflow: hidden;
}

.plates li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, var(--blue), var(--blue-lit));
}

.plates li::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 14px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--paper);
    box-shadow: inset 0 0 0 2px var(--line);
}

.plates strong {
    font: 700 1.15rem/1.25 var(--display);
}

.plates span {
    font: 600 0.88rem/1.3 var(--display);
    letter-spacing: 0.04em;
    color: var(--ink-2);
}

/* ---- photo strip ---- */

.strip-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 24px;
    margin-bottom: 24px;
}

.strip-head h2 {
    margin: 0;
}

.strip-head a {
    font: 700 1.05rem/1.4 var(--display);
}

.strip {
    list-style: none;
    margin: 0;
    padding: 4px max(16px, (100% - var(--wrap)) / 2) 18px;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(16px, (100% - var(--wrap)) / 2);
    scrollbar-color: var(--blue-lit) transparent;
}

.strip li {
    flex: 0 0 min(78vw, 320px);
    scroll-snap-align: start;
}

.strip figure {
    margin: 0;
}

.strip img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.3s ease;
}

.strip a:hover img {
    transform: scale(1.02);
}

.strip figcaption {
    margin-top: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--ink-2);
}

/* ---- services list ---- */

.svc-list {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.svc {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 22px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
}

@media (min-width: 820px) {
    .svc {
        grid-template-columns: 80px minmax(0, 1fr) 260px;
        align-items: center;
        padding: 26px 30px;
    }
}

.svc-n {
    font: 800 clamp(2.2rem, 4vw, 3rem)/1 var(--display);
    color: var(--blue);
    letter-spacing: -0.03em;
}

.svc-body h3 a {
    color: inherit;
    text-decoration: none;
}

.svc-body h3 a:hover {
    color: var(--blue-lit);
}

.svc-body p {
    color: var(--ink-2);
    margin-bottom: 0.4em;
}

.svc-body .more {
    font: 700 1rem/1.4 var(--display);
}

.svc-photo,
.svc-figure {
    grid-column: 1 / -1;
    margin: 12px 0 0;
}

@media (min-width: 820px) {
    .svc-photo,
    .svc-figure {
        grid-column: 3;
        margin: 0;
    }
}

.svc-photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.svc-figure {
    font: 800 clamp(2.4rem, 5vw, 3.4rem)/1 var(--display);
    color: var(--blue);
    text-align: center;
    letter-spacing: -0.02em;
}

.svc-page {
    border-color: var(--blue-lit);
    box-shadow: 0 18px 40px -32px rgba(0, 0, 153, 0.7);
}

/* ---- product groups of the safety page ---- */

.groups {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    counter-reset: g;
    columns: 1;
    column-gap: 40px;
}

@media (min-width: 820px) {
    .groups {
        columns: 2;
    }
}

.groups li {
    counter-increment: g;
    break-inside: avoid;
    position: relative;
    padding: 12px 0 12px 52px;
    border-top: 1px solid var(--line);
    line-height: 1.5;
}

.groups li::before {
    content: counter(g, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 12px;
    font: 700 0.95rem/1.5 var(--display);
    color: var(--blue);
    font-variant-numeric: tabular-nums;
}

/* ---- gallery ---- */

.gal-group + .gal-group {
    margin-top: clamp(40px, 5vw, 64px);
}

.gal-title {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    max-width: 60ch;
    margin: 28px 0 16px;
}

.gal-title small {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--night-2);
    color: var(--on-night);
    font: 600 0.78rem/1.6 var(--display);
    letter-spacing: 0.04em;
    vertical-align: middle;
}

.gal {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 12px;
}

.gal figure {
    margin: 0;
}

.gal img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gal a:hover img {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px -20px rgba(12, 16, 48, 0.7);
}

/* ---- chips ---- */

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

.chips a {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font: 600 0.95rem/1.3 var(--display);
    text-decoration: none;
}

.chips a:hover {
    border-color: var(--blue-lit);
    color: var(--blue);
}

.chips-dark {
    margin-top: 26px;
}

.chips-dark a {
    background: rgba(169, 174, 255, 0.08);
    border-color: rgba(169, 174, 255, 0.3);
    color: var(--on-night);
}

.chips-dark a:hover {
    color: var(--amber);
    border-color: var(--amber);
}

.band-others {
    padding-block: clamp(40px, 5vw, 64px);
}

/* ---- about ---- */

.duo {
    display: grid;
    gap: 28px 56px;
}

@media (min-width: 900px) {
    .duo {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.prose {
    max-width: 68ch;
}

.big-quote {
    font: 700 clamp(1.35rem, 2.6vw, 1.9rem)/1.3 var(--display);
    letter-spacing: -0.01em;
    color: var(--blue);
    padding-left: 22px;
    border-left: 4px solid var(--amber);
}

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

.law li {
    display: grid;
    gap: 6px 24px;
    padding: 18px 22px;
    border-radius: 14px;
    background: var(--sheet);
    border: 1px solid var(--line);
}

@media (min-width: 820px) {
    .law li {
        grid-template-columns: 300px minmax(0, 1fr);
        align-items: center;
    }
}

.law-d {
    font: 700 1rem/1.35 var(--display);
    color: var(--blue);
}

/* ---- contact ---- */

.duo-contact {
    align-items: start;
}

.contact-card,
.form-card {
    padding: clamp(22px, 3vw, 36px);
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
}

.contact-card {
    position: relative;
}

.contact-logo {
    width: 92px;
    margin-top: 18px;
}

.cta-label {
    font: 700 0.8rem/1.3 var(--display);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin-bottom: 6px;
}

.big-phone {
    font: 800 clamp(1.7rem, 4vw, 2.5rem)/1.1 var(--display);
    letter-spacing: -0.01em;
    color: var(--blue);
    text-decoration: none;
}

.big-phone:hover {
    color: var(--blue-lit);
}

.contact-list {
    margin: 22px 0 0;
    display: grid;
    gap: 16px;
}

.contact-list dt {
    font: 700 0.8rem/1.3 var(--display);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.contact-list dd {
    margin: 4px 0 0;
}

.form-note {
    color: var(--ink-2);
    font-size: 0.95rem;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    font: 600 0.95rem/1.3 var(--display);
}

.contact-form label.required::after {
    content: " *";
    color: #b3261e;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #a9adc4;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
    outline: 3px solid var(--blue-lit);
    outline-offset: 1px;
    border-color: var(--blue-lit);
}

.contact-form ul {
    margin: 6px 0 0;
    padding-left: 18px;
    color: #b3261e;
    font-size: 0.92rem;
}

.contact-form .btn {
    justify-self: start;
}

.form-hint {
    font-size: 0.88rem;
    color: var(--ink-2);
    margin: 0;
}

.contact-sent {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #e7f6ea;
    border: 1px solid #8ccf99;
    color: #12361b;
}

.contact-sent strong {
    display: block;
}

/* ---- call band ---- */

.cta {
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 8vw, 104px) 0;
    background:
        radial-gradient(60% 120% at 100% 100%, rgba(255, 182, 39, 0.16), transparent 60%),
        radial-gradient(60% 120% at 0% 0%, rgba(59, 69, 224, 0.5), transparent 60%),
        var(--night-2);
    color: var(--on-night);
}

.cta-grid {
    display: grid;
    gap: 32px 64px;
    align-items: center;
}

@media (min-width: 900px) {
    .cta-grid {
        grid-template-columns: 1.2fr 1fr;
    }
}

.cta h2 {
    color: #fff;
}

.cta p {
    color: var(--on-night-2);
    max-width: 52ch;
}

.cta .cta-label {
    color: var(--on-night-2);
}

.cta-phones {
    padding: 26px;
    border-radius: var(--radius);
    background: rgba(3, 6, 23, 0.55);
    box-shadow: inset 0 0 0 1px rgba(169, 174, 255, 0.2);
}

.cta-phone {
    display: inline-block;
    font: 800 clamp(1.8rem, 4.4vw, 2.7rem)/1.1 var(--display);
    color: var(--amber);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.cta-phone:hover {
    color: var(--amber-hot);
}

.cta-phones ul {
    list-style: none;
    margin: 16px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid rgba(169, 174, 255, 0.2);
    display: grid;
    gap: 8px;
}

.cta-phones li span {
    display: block;
    font-size: 0.85rem;
    color: var(--on-night-2);
}

.cta-phones li a {
    color: var(--on-night);
    font: 700 1.08rem/1.3 var(--display);
}

.cta-phones li a:hover {
    color: var(--amber);
}

/* ---- footer ---- */

.foot {
    position: relative;
    background: var(--night);
    color: var(--on-night-2);
    padding: 0 0 28px;
    font-size: 0.96rem;
}

.foot-scope {
    height: 6px;
    background: linear-gradient(90deg, var(--ch1), var(--ch2), var(--ch3), var(--ch4), var(--ch5));
    opacity: 0.85;
}

.foot-grid {
    display: grid;
    gap: 32px;
    padding: 56px 0 36px;
}

@media (min-width: 700px) {
    .foot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1080px) {
    .foot-grid {
        grid-template-columns: 1.3fr 1fr 1.2fr 1fr;
    }
}

.foot h2 {
    font: 700 0.82rem/1.3 var(--display);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--on-night);
    margin-bottom: 14px;
}

.foot a {
    color: var(--on-night);
}

.foot a:hover {
    color: var(--amber);
}

.foot p {
    margin-bottom: 0.6em;
}

.foot address {
    font-style: normal;
    line-height: 1.7;
}

.foot-id {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.foot-logo {
    width: 64px;
    flex: none;
}

.foot-name {
    font: 800 1.2rem/1.2 var(--display);
    color: #fff;
}

.foot-phone {
    font: 700 1.1rem/1.3 var(--display);
}

.foot-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.foot-bottom {
    padding-top: 22px;
    border-top: 1px solid rgba(169, 174, 255, 0.16);
    font-size: 0.88rem;
}

.foot-bottom p {
    margin: 0;
}

/* ---- scroll reveal ---- */

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .reveal {
            animation: reveal linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 45%;
        }
    }
}

@keyframes reveal {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ---- 404 ---- */

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 16px;
    background:
        radial-gradient(60% 60% at 80% 10%, rgba(59, 69, 224, 0.4), transparent 70%),
        var(--night);
    color: var(--on-night);
    text-align: center;
    --focus: #ffb627;
}

.not-found > div {
    max-width: 560px;
}

.not-found img {
    width: 92px;
    margin: 0 auto 24px;
}

.not-found h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    color: #fff;
}

.not-found h2 {
    font-size: 1.4rem;
    color: #fff;
    margin-top: 2em;
}

.not-found p {
    color: var(--on-night-2);
}

.not-found a:not(.btn) {
    color: var(--amber);
}

/* ---- lightbox: /js/lightbox.js opens a linked image enlarged over the page, in a <dialog> ----
   Paste this block into the site's css/site.css. The overlay is dark in every theme and brings its own
   colours and box sizing, so it does not depend on the rest of the stylesheet. To recolour it to the
   site, set these on .lightbox (or on :root): --lb-bg, --lb-text, --lb-accent (focus ring),
   --lb-accent-soft (hover). */

[data-lightbox] {
    cursor: zoom-in;
}

.lightbox,
.lightbox * {
    box-sizing: border-box;
}

html:has(.lightbox[open]) {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 68px 12px 14px;
    border: 0;
    background: var(--lb-bg, rgba(12, 14, 16, 0.95));
    color: var(--lb-text, #f2f2f2);
    color-scheme: dark;
    overscroll-behavior: contain;
}

.lightbox[open] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
}

.lightbox::backdrop {
    background: none;
}

.lightbox-stage {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.lightbox-stage img {
    display: block;
    max-width: none;
    border-radius: 4px;
    background: #fff;
}

.lightbox-caption {
    display: grid;
    place-items: center;
    min-height: 44px;
    max-width: none;
    margin: 0;
    padding: 0 56px;
    color: var(--lb-text, #f2f2f2);
    font-size: 0.92rem;
    line-height: 1.35;
    text-align: center;
}

.lightbox-button {
    position: absolute;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lightbox-button:hover {
    border-color: #ffffff;
    background-color: var(--lb-accent-soft, rgba(255, 255, 255, 0.16));
}

.lightbox-button:focus-visible {
    outline: 3px solid var(--lb-accent, #ffffff);
    outline-offset: 3px;
    border-radius: 50%;
}

.lightbox-button[hidden] {
    display: none;
}

.lightbox-close {
    top: 12px;
    right: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

.lightbox-prev,
.lightbox-next {
    bottom: 14px;
}

.lightbox-prev {
    left: 12px;
    rotate: 180deg;
}

.lightbox-next {
    right: 12px;
}

@media (min-width: 760px) {
    .lightbox {
        padding: 24px 84px 18px;
    }

    .lightbox-caption {
        padding: 0;
    }

    .lightbox-prev,
    .lightbox-next {
        top: calc(50% - 22px);
        bottom: auto;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next,
    .lightbox-close {
        right: 20px;
    }

    .lightbox-close {
        top: 20px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .lightbox[open] {
        animation: lightbox-in 0.2s ease;
    }
}

@keyframes lightbox-in {
    from {
        opacity: 0;
    }
}
