/* ==========================================================================
   ASP Otomasyon — site styles (2026 redesign)
   Brand: #398CD3 blue family · Barlow + Barlow Condensed + JetBrains Mono (self-hosted)
   Design language: editorial, industrial-calm, hairline structure.
   ========================================================================== */

:root {
    --primary: #398cd3;
    --primary-dark: #2f7ab8;
    --primary-darker: #285f8e;
    --primary-deep: #0c2a48; /* dark brand surfaces */
    --primary-deep-2: #081f38;
    --primary-soft: #e7f2fb;
    --accent-soft: #7fb4e4; /* light accent on dark */

    --text: #243240;
    --muted: #5c6b7a;
    --bg: #ffffff;
    --bg-alt: #f5f8fc;
    --line: #e4eaf1;
    --line-strong: #d3dde7;

    --success: #1f8a4c;
    --warning: #b7791f;
    --danger: #b43a3a;

    --radius: 10px;
    --radius-sm: 7px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(15, 35, 60, 0.05);
    --shadow-md: 0 8px 24px rgba(15, 35, 60, 0.1);
    --shadow-lg: 0 20px 48px rgba(15, 35, 60, 0.16);

    --font:
        "Barlow", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue",
        Arial, sans-serif;
    /* Barlow Condensed: labels, numerals, tag-style captions (panel lettering) */
    --label:
        "Barlow Condensed", "Barlow", "Arial Narrow", system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --sans: var(--font); /* legacy alias */

    --container: 1160px;
    --header-h: 74px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* anchored sections keep clear of the fixed/sticky header */
[id] {
    scroll-margin-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: var(--primary-darker);
    text-decoration: none;
}
a:hover {
    color: var(--primary-dark);
}

h1,
h2,
h3,
h4 {
    overflow-wrap: break-word; /* long Turkish compounds on narrow phones */
    line-height: 1.22;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.006em;
}
h1 {
    font-size: clamp(2.2rem, 4.4vw, 3.3rem);
    letter-spacing: -0.008em;
}
h2 {
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    letter-spacing: -0.007em;
}
h3 {
    font-size: 1.22rem;
}
h4 {
    font-size: 1rem;
}

::selection {
    background: var(--primary);
    color: #fff;
}

.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 300;
    background: var(--primary-darker);
    color: #fff;
    padding: 10px 16px;
    border-radius: 0 0 8px 0;
}
.skip-link:focus {
    left: 0;
}

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

/* -------------------------------------------------------------- buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font: 600 0.96rem / 1 var(--font);
    cursor: pointer;
    text-decoration: none !important;
    letter-spacing: 0.01em;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.12s ease;
}
.btn:active {
    transform: translateY(1px) scale(0.995);
}

.btn-primary {
    background: var(--primary-dark);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-darker);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--primary-darker);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary-soft);
    color: var(--primary-darker);
}

/* light button for dark surfaces */
.btn-light {
    background: #fff;
    color: var(--primary-deep);
}
.btn-light:hover {
    background: var(--primary-soft);
    color: var(--primary-deep);
}

/* ghost button for dark surfaces */
.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.85);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.86rem;
}
.btn-block {
    width: 100%;
}

.link-arrow {
    font-weight: 600;
    color: var(--primary-darker);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.link-arrow::after {
    content: "→";
    transition: transform 0.18s ease;
}
.link-arrow:hover {
    color: var(--primary-dark);
}
.link-arrow:hover::after {
    transform: translateX(3px);
}
a.link-arrow {
    text-decoration: none;
}
.link-arrow--ext::after {
    content: "↗";
}

/* ----------------------------------------------------------------- header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 150;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
}
.site-header.is-stuck {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
    gap: 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
}
.brand img {
    height: 44px;
    width: auto;
}
.brand:hover {
    opacity: 0.9;
}

/* language switch: both languages visible, current one marked */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    margin-left: 6px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
}
.lang-link {
    font: 600 0.95rem / 1 var(--label);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 7px 11px;
    border-radius: 999px;
    transition:
        color 0.15s ease,
        background 0.15s ease;
}
a.lang-link:hover {
    color: var(--primary-darker);
    background: var(--bg-alt);
    text-decoration: none;
}
.lang-link.is-current {
    background: var(--primary-deep);
    color: #fff;
}

.site-header--home .lang-switch {
    border-color: rgba(255, 255, 255, 0.3);
}
.site-header--home .lang-link {
    color: rgba(255, 255, 255, 0.88);
}
.site-header--home a.lang-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}
.site-header--home .lang-link.is-current {
    background: #fff;
    color: var(--primary-deep);
}

/* drawer is dark on every page: keep the switch legible above it */
.site-header.nav-open .lang-link {
    color: #fff;
}
.site-header.nav-open .lang-link:hover {
    background: rgba(255, 255, 255, 0.12);
}

.site-nav .nav-list {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    list-style: none;
}
.site-nav .nav-list > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.93rem;
    line-height: 1.3;
    white-space: nowrap; /* never wrap nav labels to two lines */
    color: var(--text);
}
.site-nav .nav-list > li > a:hover {
    background: var(--primary-soft);
    color: var(--primary-darker);
    text-decoration: none;
}
.site-nav .nav-list > li > a[aria-current="page"] {
    color: var(--primary-darker);
}

.caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
}

.has-dropdown {
    position: relative;
}
.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 250px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    list-style: none;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition:
        opacity 0.16s ease,
        transform 0.16s ease,
        visibility 0.16s;
    z-index: 200;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.dropdown a {
    display: block;
    padding: 8px 12px;
    border-radius: 7px;
    font-size: 0.92rem;
    color: var(--text);
}
.dropdown a:hover {
    background: var(--primary-soft);
    color: var(--primary-darker);
    text-decoration: none;
}

.nav-cta {
    background: var(--primary-dark);
    color: #fff !important;
}
.nav-cta:hover {
    background: var(--primary-darker);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 10px;
    cursor: pointer;
}
.nav-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition:
        transform 0.2s,
        opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* --- home header: transparent over the video hero ------------------------ */
.site-header--home {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    background: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
}
.site-header--home .site-nav .nav-list > li > a {
    color: rgba(255, 255, 255, 0.93);
}
.site-header--home .site-nav .nav-list > li > a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.site-header--home .site-nav .nav-list > li > a[aria-current="page"] {
    color: #fff;
}
.site-header--home .nav-toggle span {
    background: #fff;
}
.site-header--home .dropdown {
    background: var(--primary-deep-2);
    border-color: rgba(255, 255, 255, 0.14);
}
.site-header--home .dropdown a {
    color: rgba(255, 255, 255, 0.9);
}
.site-header--home .dropdown a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.site-header--home.is-stuck {
    position: fixed;
    background: rgba(9, 26, 44, 0.97);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}
/* keep the toggle reachable while the drawer is open over the hero */
.site-header--home.nav-open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

/* -------------------------------------------------------------------- hero */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: min(900px, 100svh);
    overflow: hidden;
    isolation: isolate;
    background: var(--primary-deep-2);
    color: #fff;
}
.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url("/media/hero/asp-hero-poster.jpg") center / cover;
}
.hero-media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.92) saturate(1);
}
/* no-JS: only the first clip (poster included) is shown */
.hero-media video:not(:first-child) {
    display: none;
}
html.js .hero-media video:not(:first-child) {
    display: block;
}
html.js .hero-media video {
    opacity: 0;
    transition: opacity 1.2s ease;
}
html.js .hero-media video.ready.active {
    opacity: 1;
}
/* Scrim: strong on the copy side, nearly clear on the right so the footage
   stays visible; a bottom fade seats the client band. */
.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(0deg, rgba(5, 19, 34, 0.9) 0%, rgba(5, 19, 34, 0) 36%),
        linear-gradient(
            96deg,
            rgba(5, 19, 34, 0.9) 0%,
            rgba(5, 19, 34, 0.74) 42%,
            rgba(5, 19, 34, 0.28) 78%,
            rgba(5, 19, 34, 0.18) 100%
        );
}
.hero-grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.7fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: center;
    padding-top: 150px;
    padding-bottom: 48px;
}
.hero-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--label);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--accent-soft);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 20px;
}
.hero-kicker::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--accent-soft);
}
.hero h1 {
    color: #fff;
    font-size: clamp(2.7rem, 5.8vw, 4.9rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.01em;
    max-width: 13ch;
    margin-bottom: 26px;
    text-wrap: balance;
}
.hero-sub {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(232, 242, 250, 0.92);
    max-width: 46ch;
}
.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, auto));
    justify-content: start;
    gap: 0;
    margin-top: 44px;
    max-width: 720px;
}
.hero-proof > div {
    padding: 2px 26px 2px 0;
    margin-right: 26px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 260px;
}
.hero-proof > div:last-child {
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
}
.hero-proof dt {
    font-family: var(--label);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.01em;
    color: #fff;
}
.hero-proof dd {
    margin-top: 4px;
    font-size: 0.86rem;
    line-height: 1.45;
    color: rgba(214, 228, 240, 0.78);
}

/* Control-loop strip chart: the process-control motif drawn from the subject itself, as a paper chart with an
   ink trace. Values and trend are illustrative (labelled as such). */
.loop-card {
    justify-self: end;
    width: 100%;
    max-width: 372px;
    padding: 22px 24px 0;
    overflow: hidden;
    color: var(--primary-deep);
    background: var(--bg-alt);
    border-radius: 6px;
    box-shadow: 0 22px 50px rgba(2, 10, 20, 0.4);
}
.loop-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
}
.loop-id {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0;
}
.loop-id strong {
    font-size: 1rem;
    font-weight: 600;
}
.loop-tag {
    font: 500 0.78rem var(--mono);
    color: var(--primary-darker);
}
.loop-mode {
    font: 600 0.76rem var(--label);
    letter-spacing: 0.14em;
    color: var(--muted);
}
.loop-reading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 20px 0 14px;
}
.loop-value {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin: 0;
    line-height: 1;
}
.loop-value b {
    font: 600 3.4rem var(--label);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}
.loop-value em {
    font-style: normal;
    font-size: 0.92rem;
    color: var(--muted);
}
.loop-aux {
    display: grid;
    gap: 3px;
    margin: 0 0 4px;
    font: 500 0.92rem var(--label);
    font-variant-numeric: tabular-nums;
    color: var(--muted);
}
.loop-aux div {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.loop-aux dt {
    letter-spacing: 0.12em;
}
.loop-aux dd {
    min-width: 3.3em;
    margin: 0;
    text-align: right;
    color: var(--primary-deep);
}
.loop-trend {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}
.loop-grid path {
    stroke: var(--line);
    stroke-width: 1;
    fill: none;
}
.loop-band {
    fill: rgba(57, 140, 211, 0.1);
}
.loop-setpoint {
    stroke: var(--primary-deep);
    stroke-opacity: 0.45;
    stroke-width: 1;
    stroke-dasharray: 5 4;
    fill: none;
}
.loop-trace {
    stroke: var(--primary-dark);
    stroke-width: 2.25;
    stroke-linejoin: round;
    stroke-linecap: round;
    fill: none;
}
.loop-pen {
    fill: var(--primary-dark);
    stroke: var(--bg-alt);
    stroke-width: 2;
}
.loop-note {
    margin: 12px 0 18px;
    font-size: 0.8rem;
    color: var(--muted);
}
.loop-links {
    display: grid;
    margin: 0 -24px;
}
.loop-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    color: var(--primary-deep);
    font-size: 0.97rem;
    font-weight: 600;
    border-top: 1px solid var(--line-strong);
    transition: background-color 0.15s ease;
}
.loop-links a:hover,
.loop-links a:focus-visible {
    background: var(--primary-soft);
}
.loop-links a:focus-visible {
    outline: 2px solid var(--primary-darker);
    outline-offset: -2px;
}
.loop-links b {
    font-weight: 400;
    color: var(--primary-darker);
    transition: transform 0.15s ease;
}
.loop-links a:hover b {
    transform: translate(2px, -2px);
}

/* client wall: sits on a quiet band so logos stay legible */
.hero-bar {
    background: rgba(4, 16, 29, 0.72);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 16px 0 20px;
}
.hero-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
}
.hero-clients-label {
    font: 600 0.98rem var(--label);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(214, 228, 240, 0.7);
}
.hero-motion {
    color: rgba(214, 228, 240, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: none;
    font: 600 0.82rem var(--label);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    min-height: 32px;
    cursor: pointer;
}
.hero-motion:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}
.clients-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.clients-track {
    display: flex;
    width: max-content;
    animation: clients-slide 56s linear infinite;
}
.clients-list {
    display: flex;
    align-items: center;
    gap: 56px;
    list-style: none;
    padding-right: 56px;
}
.clients-list li {
    display: inline-flex;
    align-items: center;
    height: 34px;
    white-space: nowrap;
}
.clients-list li img {
    height: 28px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    object-position: center;
    /* monochrome treatment: logos read as a cohesive wall on the dark band */
    filter: brightness(0) invert(1);
    opacity: 0.82;
}
.clients-list li.client-wordmark {
    font: 600 1.15rem var(--label);
    letter-spacing: 0.08em;
    color: rgba(232, 242, 250, 0.75);
}
@keyframes clients-slide {
    to {
        transform: translateX(-50%);
    }
}
.clients-marquee:hover .clients-track {
    animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
    html.js .hero-media video {
        transition: none;
    }
    .clients-track {
        animation: none;
        flex-wrap: wrap;
        width: auto;
    }
    .clients-list[aria-hidden="true"] {
        display: none;
    }
    .clients-list {
        padding-right: 0;
        row-gap: 10px;
    }
}
@media (max-width: 1000px) {
    .hero-grid {
        grid-template-columns: 1fr;
        padding-top: 132px;
    }
    .loop-card {
        justify-self: start;
        max-width: 480px;
    }
}
@media (max-width: 640px) {
    .hero {
        min-height: 0;
    }
    .hero-grid {
        padding-top: 112px;
        padding-bottom: 32px;
        gap: 36px;
    }
    .hero h1 {
        font-size: clamp(2.35rem, 11vw, 3rem);
    }
    .hero-sub {
        font-size: 1.06rem;
    }
    .hero-actions .btn {
        flex: 1 1 100%;
    }
    .hero-proof {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 32px;
    }
    .hero-proof > div {
        border-right: 0;
        margin-right: 0;
        padding: 0 0 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
        max-width: none;
    }
    .hero-proof > div:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }
    .hero-bar-inner {
        margin-bottom: 8px;
    }
}

/* -------------------------------------------------------------- sections */
.section {
    padding: 92px 0;
}
.section-alt {
    background: var(--bg-alt);
    border-block: 1px solid var(--line);
}

.sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 44px;
}
.sec-kicker {
    font-family: var(--label);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-darker);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 10px;
}
.sec-head h2 {
    max-width: 24ch;
}
.sec-link {
    white-space: nowrap;
    margin-bottom: 4px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

/* node connection diagram (home) */
.node-flow-scroll {
    overflow-x: auto;
    scrollbar-width: thin;
}
.node-flow {
    display: block;
    width: 100%;
    min-width: 720px;
    height: auto;
}
.flow-path {
    fill: none;
    stroke: #398cd3;
    stroke-width: 2;
    stroke-dasharray: 9 7;
    animation: flow-dash 1.4s linear infinite;
}
@keyframes flow-dash {
    to {
        stroke-dashoffset: -32;
    }
}
.flow-node {
    fill: #fff;
    stroke: #3076b2;
    stroke-width: 2;
}
.node-core {
    fill: #398cd3;
    animation: node-pulse 2.6s ease-in-out infinite;
}
@keyframes node-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}
.flow-hub {
    fill: #0c2a48;
}
.flow-hub-text {
    fill: #fff;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
}
.flow-col-label {
    fill: var(--muted);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.flow-node-label {
    fill: var(--text);
    font-family: var(--mono);
    font-size: 16px;
    font-weight: 600;
    /* halo: connector lines pass behind the label text (see .flow-path) */
    paint-order: stroke;
    stroke: var(--bg-alt);
    stroke-width: 7px;
    stroke-linejoin: round;
}
.flow-desc {
    max-width: 46ch;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.94rem;
}
@media (max-width: 640px) {
    .node-flow-section .sec-head {
        flex-direction: column;
        align-items: flex-start;
    }
}
@media (prefers-reduced-motion: reduce) {
    .flow-path,
    .node-core {
        animation: none;
    }
}

/* ------------------------------------------------------- services (rows) */
.service-rows {
    display: grid;
}
.service-row {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 26px;
    align-items: baseline;
    padding: 28px 4px;
    border-top: 1px solid var(--line);
    color: var(--text);
    transition: background 0.15s ease;
}
.service-row:last-child {
    border-bottom: 1px solid var(--line);
}
.service-row:hover {
    background: var(--bg-alt);
}
.svc-num {
    font: 600 1rem var(--label);
    color: var(--primary-dark);
    padding-top: 6px;
}
.service-row h3 {
    font-size: 1.22rem;
    transition: color 0.15s ease;
}
.service-row:hover h3 {
    color: var(--primary-darker);
}
.service-row p {
    color: var(--muted);
    font-size: 0.94rem;
    margin-top: 7px;
    max-width: 62ch;
}
.svc-arrow {
    color: var(--primary-darker);
    font-weight: 600;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-top: 8px;
}
.svc-arrow::after {
    content: "→";
    transition: transform 0.18s ease;
}
.service-row:hover .svc-arrow::after {
    transform: translateX(4px);
}

/* ---------------------------------------------- navigation hub pages */
.hub-list {
    display: grid;
}
.hub-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 26px;
    align-items: center;
    padding: 26px 4px;
    border-top: 1px solid var(--line);
    color: var(--text);
    transition: background 0.15s ease;
}
.hub-row:last-child {
    border-bottom: 1px solid var(--line);
}
.hub-row:hover {
    background: var(--bg-alt);
}
.hub-row h2 {
    font-size: 1.22rem;
    transition: color 0.15s ease;
}
.hub-row:hover h2 {
    color: var(--primary-darker);
}
.hub-row p {
    color: var(--muted);
    font-size: 0.94rem;
    margin-top: 7px;
    max-width: 62ch;
}

/* -------------------------------------------------------- sectors (dark) */
.sectors-band {
    background: linear-gradient(
        155deg,
        var(--primary-deep) 0%,
        var(--primary-deep-2) 100%
    );
    color: #fff;
}
.sectors-band .sec-kicker {
    color: var(--accent-soft);
}
.sectors-band h2 {
    color: #fff;
}
.sector-grid {
    display: grid;
    list-style: none;
    /* fixed counts (not auto-fill): 7 items, equal cells on every row — no
       stray gaps or stretched last-row cells */
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius);
    overflow: hidden;
}
.sector-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 20px;
    min-height: 68px;
    background: rgba(8, 31, 56, 0.72);
    color: #fff;
    transition: background 0.15s ease;
}
.sector-item:hover {
    background: rgba(57, 140, 211, 0.2);
}
.sector-item img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}
.sector-item span {
    font-weight: 600;
    font-size: 0.93rem;
}

/* -------------------------------------------------------- products cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-strong);
}
.product-card img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    width: 100%;
}
.product-card .card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.product-card p {
    color: var(--muted);
    font-size: 0.94rem;
    flex: 1;
}

/* -------------------------------------------------------------- news rows */
.news-rows {
    display: grid;
}
.news-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 30px;
    padding: 30px 4px;
    border-top: 1px solid var(--line);
}
.news-row:last-child {
    border-bottom: 1px solid var(--line);
}
.news-date {
    font: 500 0.98rem var(--label);
    color: var(--muted);
    padding-top: 5px;
}
.news-row h3 {
    font-size: 1.16rem;
    margin-bottom: 7px;
}
.news-row h3 a {
    color: var(--text);
}
.news-row h3 a:hover {
    color: var(--primary-darker);
}
.news-meta {
    font-size: 0.92rem;
    color: var(--muted);
    font-family: var(--label);
}
.news-row p {
    color: var(--muted);
    font-size: 0.94rem;
    margin-top: 8px;
    max-width: 66ch;
}

/* ---------------------------------------------------------------- cta band */
.cta-band {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        150deg,
        var(--primary-deep) 0%,
        #0a2442 55%,
        var(--primary-deep-2) 100%
    );
    color: #fff;
}
.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        42% 60% at 88% 12%,
        rgba(57, 140, 211, 0.28) 0%,
        transparent 70%
    );
}
.cta-band .container {
    position: relative;
}
.cta-band h2 {
    color: #fff;
}
.cta-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: center;
}
.cta-copy p {
    margin-top: 16px;
    color: #c9e1f5;
    max-width: 32em;
}

.check-list {
    list-style: none;
    margin-top: 28px;
    display: grid;
    gap: 12px;
}
.check-list li {
    padding-left: 32px;
    position: relative;
    color: #e4f0fa;
}
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #fff;
    color: var(--primary-deep);
    font-size: 0.8rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.cta-form {
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.cta-form h3 {
    margin-bottom: 20px;
}
.cta-form .form-note {
    color: var(--muted);
}

/* ------------------------------------------------------------------ forms */
.form-row {
    margin-bottom: 15px;
}
.form-row label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 7px;
    color: var(--text);
}
.form-row input,
.form-row textarea,
.form-row select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-sm);
    font: 400 0.95rem var(--font);
    color: var(--text);
    background: #fff;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(57, 140, 211, 0.16);
}
.form-row textarea {
    resize: vertical;
}
.form-note {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 12px;
}

/* honeypot anti-spam: invisible to humans, filled only by naive bots */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}
.hp-field label,
.hp-field input {
    font-size: 0 !important;
}

.form-errors {
    background: #fbeded;
    border: 1px solid #e8b4b4;
    color: var(--danger);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 22px;
    font-size: 0.92rem;
}
.form-errors:focus {
    outline: none;
} /* non-interactive focus target for SR/keyboard */

/* ------------------------------------------------------------------- page */
.page-hero {
    background:
        radial-gradient(
            85% 150% at 0% 0%,
            rgba(57, 140, 211, 0.1),
            transparent 55%
        ),
        linear-gradient(180deg, #fbfdff 0%, var(--bg-alt) 100%);
    border-bottom: 1px solid var(--line);
    padding: 64px 0 56px;
}
.page-kicker {
    font-family: var(--label);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-darker);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 12px;
}
.page-hero h1 {
    max-width: 22ch;
    font-size: clamp(2.15rem, 4vw, 3rem);
}
.page-hero-narrow .container {
    max-width: 860px;
    margin-inline: auto;
}
.page-lead {
    margin-top: 14px;
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 44em;
}
.section-title-sm {
    margin-bottom: 26px;
}

.page-body {
    /* block padding only: .container.page-body keeps the container's side gutter */
    padding-block: 56px;
    display: flow-root;
    overflow-wrap: break-word;
}
.page-body h2 {
    margin: 38px 0 16px;
}
.page-body h3 {
    margin: 30px 0 12px;
}
.page-body p {
    margin-bottom: 18px;
    max-width: 72ch;
}
.page-body ul,
.page-body ol {
    margin: 0 0 20px 24px;
}
.page-body li {
    margin-bottom: 7px;
    max-width: 70ch;
}
.page-body img {
    border-radius: var(--radius);
}
.page-body blockquote {
    margin: 28px 0;
    padding: 4px 26px;
    border-left: 3px solid var(--primary);
    color: var(--muted);
    font-style: italic;
}

/* FAQ page — accessible disclosure list (details/summary) */
.page-faq {
    max-width: 72ch;
    border-top: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
}
.page-faq details {
    border-bottom: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
}
.page-faq summary {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 4px;
    cursor: pointer;
    font: 600 1.02rem var(--sans);
    color: var(--text);
}
.page-faq summary::before {
    content: "+";
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font: 700 0.95rem var(--sans);
    line-height: 1;
}
.page-faq details[open] summary::before {
    content: "\2013";
}
.page-faq summary:hover {
    color: var(--primary-dark);
}
.page-faq summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 6px;
}
.page-faq details > *:not(summary) {
    padding: 0 4px 16px 42px;
    color: var(--muted);
}
.page-faq details a {
    font-weight: 600;
}
@media (prefers-reduced-motion: no-preference) {
    .page-faq details {
        animation: none;
    }
}
.page-body code {
    font-family: var(--mono);
    font-size: 0.88em;
    background: var(--bg-alt);
    padding: 2px 6px;
    border-radius: 5px;
}
.page-body pre {
    margin: 0 0 20px;
    padding: 18px 20px;
    background: var(--primary-deep-2);
    color: #d9e9f7;
    border-radius: var(--radius);
    overflow-x: auto;
    font: 400 0.9rem / 1.65 var(--mono);
}
.page-body pre code {
    background: none;
    padding: 0;
}
.page-body hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 34px 0;
}

.page-body table {
    border-collapse: collapse;
    width: 100%;
    margin: 0 0 20px;
    font-size: 0.95rem;
}
.page-body th,
.page-body td {
    border: 1px solid var(--line);
    padding: 9px 13px;
    text-align: left;
    vertical-align: top;
}
.page-body th {
    background: var(--bg-alt);
    font-weight: 700;
}
.page-body tr:nth-child(even) td {
    background: #fafbfd;
}
@media (max-width: 640px) {
    .table-wrap {
        overflow-x: auto;
    }
    .page-body table {
        min-width: 520px;
    }
}

.page-figure {
    margin: 0 0 34px;
}
.page-figure img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
/* small legacy photos (service/sector pages): keep them near native size and
   let the copy flow beside them instead of a stray thumbnail in a wide column */
.page-figure--thumb {
    max-width: 280px;
}
.page-figure--thumb img {
    width: 100%;
    height: auto;
}
@media (min-width: 761px) {
    .page-figure--thumb {
        float: left;
        margin: 4px 30px 14px 0;
    }
}
@media (max-width: 760px) {
    .page-figure--thumb {
        margin-inline: auto;
        margin-bottom: 28px;
    }
}

.page-gallery {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 18px;
    padding-bottom: 56px;
}
.page-gallery img {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.page-footer-nav {
    padding-bottom: 64px;
}

/* ----------------------------------------------------------------- contact */
.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 48px;
    align-items: start;
}
.contact-panel {
    background: linear-gradient(
        160deg,
        var(--primary-deep) 0%,
        var(--primary-deep-2) 100%
    );
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 34px;
}
.contact-panel h2 {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 20px;
}
.contact-list {
    list-style: none;
    display: grid;
    gap: 18px;
    margin-bottom: 30px;
}
.contact-list div {
    display: grid;
    gap: 3px;
}
.contact-list dt {
    font: 600 1rem var(--label);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-soft);
}
.contact-list dd {
    font-size: 0.96rem;
    color: #e6f0fa;
}
.contact-list a {
    color: #e6f0fa;
}
.contact-list a:hover {
    color: #fff;
}
.contact-panel h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 14px;
}
.link-list {
    list-style: none;
}
.link-list li {
    margin-bottom: 9px;
}
.link-list a {
    color: #c9e1f5;
    font-size: 0.94rem;
}
.link-list a:hover {
    color: #fff;
}

/* ------------------------------------------------------------------- blog */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}
.blog-main {
    min-width: 0;
}
.blog-side {
    position: sticky;
    top: 96px;
    align-self: start;
}
.blog-search {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}
.blog-search input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-sm);
    font: 400 0.95rem var(--font);
}
.blog-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(57, 140, 211, 0.16);
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.card-body {
    padding: 22px;
}

.card-post {
    display: flex;
    flex-direction: column;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}
.card-post:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-strong);
}
.card-post img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
/* cards without a featured image get a branded fallback so the grid stays aligned */
.post-thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    width: 100%;
    background:
        radial-gradient(
            130% 95% at 88% -12%,
            rgba(255, 255, 255, 0.16),
            transparent 52%
        ),
        linear-gradient(
            135deg,
            var(--primary-deep-2) 0%,
            var(--primary-deep) 52%,
            var(--primary) 135%
        );
}
.post-thumb-fallback span {
    font: 600 0.94rem var(--label);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.78);
}
.card-post .card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.post-meta {
    font-size: 0.95rem;
    color: var(--muted);
    font-family: var(--label);
}
.post-meta a {
    color: var(--primary-dark);
}
.card-post h2,
.card-post h3 {
    font-size: 1.1rem;
}
.card-title a {
    color: var(--text);
}
.card-title a:hover {
    color: var(--primary-darker);
}
.card-post p {
    color: var(--muted);
    font-size: 0.93rem;
    flex: 1;
}

.side-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}
.side-card h2 {
    font-size: 1rem;
    margin-bottom: 14px;
}
.category-list {
    list-style: none;
}
.category-list li {
    border-bottom: 1px solid var(--line);
}
.category-list li:last-child {
    border-bottom: 0;
}
.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 2px;
    color: var(--text);
    font-size: 0.93rem;
}
.category-list a:hover {
    color: var(--primary-darker);
    text-decoration: none;
}
.category-list a[aria-current="page"] {
    color: var(--primary-darker);
    font-weight: 700;
}
.category-list .count {
    font-family: var(--label);
    font-size: 0.92rem;
    color: var(--muted);
}

.pagination {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 44px;
    justify-content: center;
}
.pagination-info {
    font-family: var(--label);
    color: var(--muted);
    font-size: 0.95rem;
}

.empty-state {
    color: var(--muted);
    padding: 40px 0;
}

.article-body {
    max-width: 820px;
}
.article-body .page-figure {
    margin-top: 0;
}
.back-link {
    margin-top: 40px;
}

/* ------------------------------------------------------------ downloads */
.download-list {
    display: grid;
    gap: 16px;
}
.card-download {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}
.card-download:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-sm);
}
.download-icon {
    color: var(--primary-darker);
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    background: var(--primary-soft);
    border-radius: 50%;
}
.download-info h2 {
    font-size: 1.08rem;
    margin-bottom: 6px;
}
.download-info p {
    color: var(--muted);
    font-size: 0.93rem;
}
.download-meta {
    font-size: 0.95rem;
    color: var(--muted);
    font-family: var(--label);
    margin-top: 8px;
}

.gate-card {
    max-width: 600px;
    margin-inline: auto;
    text-align: center;
    padding: 8px 0 48px;
}
.gate-icon {
    color: var(--primary-darker);
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    background: var(--primary-soft);
    border-radius: 50%;
}
.gate-card > p {
    margin: 12px auto 28px;
    max-width: 42em;
    color: var(--muted);
}
.gate-form {
    text-align: left;
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------- flashes */
.flash-stack {
    padding-top: 22px;
    display: grid;
    gap: 10px;
}
.flash {
    padding: 13px 17px;
    border-radius: var(--radius);
    border: 1px solid;
    font-size: 0.93rem;
}
.flash-success {
    background: #eaf6ee;
    border-color: #bfe3cb;
    color: var(--success);
}
.flash-error {
    background: #fbeded;
    border-color: #e8b4b4;
    color: var(--danger);
}
.flash-dev_link {
    background: #fdf6e7;
    border-color: #e8d5a2;
    color: #7a5a12;
    font-family: var(--mono);
    font-size: 0.85rem;
    word-break: break-all;
}

/* ---------------------------------------------------------------- footer */
.site-footer {
    background: #fff;
    border-top: 1px solid var(--line);
}

/* sister-site band: routes visitors to opcturkey.com */
.sister-band {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
}
.sister-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
}
.sister-text {
    color: var(--muted);
    font-size: 0.92rem;
}
.sister-link {
    color: var(--primary-darker);
    font-weight: 600;
    font-size: 0.93rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.sister-link::after {
    content: "↗";
    color: var(--primary);
}
.sister-link:hover {
    color: var(--primary);
}

.footer-sister {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.footer-sister a {
    font-weight: 600;
}
.footer-cols {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding: 60px 24px 48px;
}
.footer-brand img {
    width: 150px;
    margin-bottom: 18px;
}
.footer-brand p {
    color: var(--muted);
    font-size: 0.82rem;
    max-width: 34em;
}
.footer-partners {
    font-family: var(--label);
    font-size: 0.92rem;
    color: var(--primary-dark);
    margin-top: 14px;
}
.footer-social {
    list-style: none;
    display: flex;
    gap: 22px;
    margin-top: 20px;
}
.footer-social a {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}
.footer-social a:hover {
    color: var(--primary-darker);
}

.site-footer h3,
.site-footer .footer-heading {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}
.site-footer ul {
    list-style: none;
}
.site-footer li {
    margin-bottom: 10px;
}
.site-footer a {
    color: #3e4d5c;
    font-size: 0.92rem;
}
.site-footer a:hover {
    color: var(--primary-darker);
}
.site-footer address {
    font-style: normal;
}
.site-footer address p {
    margin-bottom: 10px;
    font-size: 0.92rem;
    color: #3e4d5c;
}
.site-footer address a {
    font-size: 0.92rem;
}

.footer-bottom {
    border-top: 1px solid var(--line);
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-block: 20px;
    font-size: 0.82rem;
    color: var(--muted);
}
.footer-links {
    display: flex;
    gap: 20px;
}
.footer-links a {
    color: var(--muted);
}
.footer-links a:hover {
    color: var(--primary-darker);
}

/* ----------------------------------------------------------- error page */
.error-page {
    padding: 110px 24px;
    text-align: center;
}
.error-code {
    font-family: var(--mono);
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.error-page h1 {
    margin: 14px 0;
}
.error-page p {
    color: var(--muted);
    margin-bottom: 30px;
}

/* -------------------------------------------------- reveal (progressive) */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.55s ease,
        transform 0.55s ease;
}
.js .reveal.in-view {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1024px) {
    .footer-cols {
        grid-template-columns: 1.6fr 1fr 1fr;
    }
    .hero {
        align-items: flex-end;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cta-grid {
        gap: 44px;
    }
}

/* narrower desktop: keep the nav on one row without squeezing labels */
@media (min-width: 901px) and (max-width: 1100px) {
    .site-nav .nav-list {
        gap: 4px;
    }
    .site-nav .nav-list > li > a {
        padding: 10px 10px;
        font-size: 0.9rem;
    }
    .site-nav .nav-list > li:has(> .nav-sister) {
        display: none;
    } /* still present in drawer + footer */
}

@media (max-width: 900px) {
    /* mobile navigation: full-height drawer */
    .nav-toggle {
        display: flex;
    }
    .brand {
        order: 1;
    }
    .lang-switch {
        order: 2;
    }
    .nav-toggle {
        order: 3;
    }
    .site-nav {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(420px, 100%);
        background: var(--primary-deep-2);
        padding: 96px 26px 40px;
        overflow-y: auto;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.28s ease, visibility 0s linear 0.28s, box-shadow 0.28s ease;
        z-index: 250;
        box-shadow: none;
    }
    .site-nav.open {
        transform: none;
        visibility: visible;
        box-shadow: -24px 0 60px rgba(5, 16, 28, 0.35);
        transition: transform 0.28s ease, visibility 0s, box-shadow 0.28s ease;
    }
    .site-nav .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }
    .site-nav .nav-list > li > a {
        width: 100%;
        justify-content: space-between;
        padding: 14px 6px;
        color: rgba(255, 255, 255, 0.92);
        font-size: 1.02rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .site-nav .nav-list > li > a:hover,
    .site-nav .nav-list > li > a[aria-current="page"] {
        background: transparent;
        color: #fff;
    }
    .site-nav .nav-list > li:last-child > a {
        border-bottom: 0;
    }
    .has-dropdown .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: 0;
        box-shadow: none;
        margin: 0 0 6px 14px;
        padding: 0;
        min-width: 0;
    }
    .has-dropdown .dropdown a {
        color: rgba(232, 242, 250, 0.72);
        padding: 9px 8px;
    }
    .has-dropdown .dropdown a:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }
    .nav-cta {
        background: var(--primary);
    }
    .nav-sister {
        color: var(--accent-soft) !important;
        font-size: 0.92rem !important;
    }
    .nav-cta:hover {
        background: var(--primary-dark);
    }
    /* drawer contact button: a real button, not a full-width bar */
    .site-nav .nav-list .nav-cta {
        margin: 16px 0 8px;
        padding: 13px 20px;
        border-radius: 999px;
        background: var(--primary);
        justify-content: center;
        border-bottom: 0;
        font-size: 1.02rem;
    }
    .site-nav .nav-list .nav-cta:hover {
        background: var(--primary-dark);
        color: #fff;
    }
    .nav-toggle {
        z-index: 260;
        position: relative;
    }
    body.nav-locked {
        overflow: hidden;
    }
    /* drawer open: toggle, logo and language switch sit on the dark drawer */
    .site-header.nav-open .nav-toggle span {
        background: #fff;
    }
    .site-header.nav-open .lang-switch {
        border-color: rgba(255, 255, 255, 0.3);
    }
    .site-header.nav-open .lang-link.is-current {
        background: #fff;
        color: var(--primary-deep);
    }
    .lang-switch {
        margin-left: auto;
        border-left: 0;
        padding-left: 0;
        position: relative;
        z-index: 260;
    }

    .site-header--home {
        position: absolute;
    }
    .site-header--home.is-stuck {
        position: fixed;
    }

    .section {
        padding: 72px 0;
    }
    .grid-2,
    .grid-3,
    .products-grid {
        grid-template-columns: 1fr;
    }
    .cta-grid,
    .contact-grid,
    .blog-layout {
        grid-template-columns: 1fr;
    }
    .blog-side {
        position: static;
    }
    .cta-band .cta-copy {
        order: 2;
    }
    .card-download {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .download-icon {
        margin-inline: auto;
    }
    .news-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .news-date {
        padding-top: 0;
    }
    .service-row {
        grid-template-columns: 52px 1fr auto;
        gap: 16px;
    }
    /* keep the row tappable-affordance on touch: chevron only, no label */
    .svc-arrow {
        font-size: 1.1rem;
        padding-top: 0;
        align-self: center;
    }
    .svc-arrow-label {
        display: none;
    }
}

@media (max-width: 1100px) {
    .sector-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 760px) {
    .sector-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 520px) {
    .sector-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .footer-cols {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .section {
        padding: 60px 0;
    }
    .hero {
        min-height: 560px;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .cta-form {
        padding: 24px;
    }
    .contact-list > div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .footer-bottom-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .sister-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ASP refinement: retain the brand, improve hierarchy and task flow. */
:root { --primary-dark: #286ca3; }
.btn { min-height: 46px; }
.btn-quiet { background: transparent; color: var(--primary-darker); border: 1px solid transparent; }
.journey-section { padding-top: 84px; }
.journey-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-block: 1px solid var(--line-strong); }
.journey-item { padding: 34px 30px 32px 0; color: var(--text); }
.journey-item + .journey-item { padding-left: 30px; border-left: 1px solid var(--line); }
.journey-icon { display: block; color: var(--primary-darker); font-size: 2rem; font-weight: 300; line-height: 1; margin-bottom: 28px; }
.journey-item h3 { font-size: 1.25rem; margin-bottom: 12px; letter-spacing: -0.01em; }
.journey-item p { color: var(--muted); font-size: .95rem; margin-bottom: 22px; line-height: 1.7; }
.journey-item:hover h3 { color: var(--primary-darker); }
.sec-head h2 { max-width: 23ch; letter-spacing: -0.014em; }
.process-steps { list-style: none; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 32px; }
.process-steps li { border-top: 1px solid var(--line-strong); padding-top: 26px; }
.step-number { display: block; font: .94rem var(--label); color: var(--primary-darker); margin-bottom: 24px; }
.process-steps h3 { font-size: 1.05rem; margin-bottom: 12px; }
.process-steps p { font-size: .92rem; line-height: 1.7; color: var(--muted); }
.knowledge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.knowledge-grid h2 { font-size: clamp(2rem,3.6vw,3rem); letter-spacing: -0.016em; line-height: 1.15; max-width: 17ch; }
.knowledge-intro { margin: 24px 0 30px; color: var(--muted); max-width: 47ch; }
.knowledge-links > a { display: grid; grid-template-columns: 1fr 24px; gap: 10px; border-bottom: 1px solid var(--line-strong); padding: 28px 0; }
.knowledge-links > a:first-child { border-top: 1px solid var(--line-strong); }
.knowledge-links span { grid-column: 1 / -1; font: .86rem var(--label); color: var(--muted); }
.knowledge-links strong { font-size: 1.2rem; font-weight: 550; letter-spacing: -0.01em; color: var(--primary-deep); }
.knowledge-links b { font-weight: 400; }
.resource-hero h1 { max-width: 20ch; }
.resource-search { display: flex; gap: 10px; max-width: 700px; margin-top: 32px; }
.resource-search input { min-width: 0; flex: 1; background: #fff; padding: 15px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit; }
.resource-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 40px; border-bottom: 1px solid var(--line-strong); }
.resource-filters { display: flex; flex-wrap: wrap; gap: 26px; }
.resource-filters a { padding: 14px 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: .9rem; }
.resource-filters a[aria-current] { color: var(--primary-darker); border-color: var(--primary-darker); font-weight: 600; }
.resource-total { font: .86rem var(--label); color: var(--muted); }
.resource-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 38px 28px; }
.resource-card { border-bottom: 1px solid var(--line-strong); min-width: 0; display: flex; flex-direction: column; position: relative; }
.resource-art { height: 195px; background: var(--primary-deep); color: #fff; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.resource-art:has(img) { padding: 0; }
.resource-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.resource-card--pdf .resource-art { background: #e7f0f8; color: var(--primary-deep); }
.resource-card--tool .resource-art { background: #f1f5f8; color: var(--primary-darker); }
.resource-art-type { font: .82rem var(--label); letter-spacing: .12em; }
.resource-art-symbol { font-size: 3.8rem; font-weight: 350; letter-spacing: -0.018em; line-height: 1; }
.resource-card-body { padding: 24px 0; flex: 1; display: flex; flex-direction: column; }
.resource-card-body .sec-kicker { font-size: 0.8rem; margin-bottom: 12px; }
.resource-card h2 { font-size: 1.18rem; line-height: 1.4; letter-spacing: -0.01em; margin-bottom: 12px; }
.resource-card h2 a { color: var(--primary-deep); }
.resource-card h2 a::after { content: ''; position: absolute; inset: 0; }
.resource-card h2 a:hover { color: var(--primary-dark); }
.resource-card-body > p:not(.sec-kicker) { color: var(--muted); font-size: .88rem; line-height: 1.75; margin-bottom: 24px; }
.resource-card-foot { margin-top: auto; display: flex; justify-content: space-between; font: .86rem var(--label); color: var(--primary-darker); }
.resource-card:focus-within { outline: 2px solid var(--primary); outline-offset: 6px; }
.tool-directory-row { display: grid; grid-template-columns: 100px 1fr 48px; gap: 32px; padding: 38px 0; border-top: 1px solid var(--line-strong); color: var(--text); align-items: center; }
.tool-directory-row:last-child { border-bottom: 1px solid var(--line-strong); }
.tool-symbol { font-size: 3.7rem; font-weight: 300; color: var(--primary-darker); }
.tool-directory-row h2 { font-size: 1.7rem; margin-bottom: 12px; letter-spacing: -0.012em; }
.tool-directory-row p:not(.sec-kicker) { max-width: 67ch; color: var(--muted); }
.tool-arrow { font-size: 2rem; color: var(--primary-darker); }
.tool-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px; align-items: start; }
.tool-form { min-width: 0; }
.choice-group { border: 0; margin-bottom: 36px; }
.choice-group legend { font-size: 1rem; font-weight: 600; color: var(--primary-deep); margin-bottom: 16px; }
.choice-option { display: flex; align-items: flex-start; gap: 14px; padding: 17px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); margin-bottom: 10px; line-height: 1.6; cursor: pointer; }
.choice-option:hover { background: var(--bg-alt); }
.choice-option:has(input:checked) { border-color: var(--primary-dark); background: var(--primary-soft); }
.choice-option input { appearance: auto; width: 18px; height: 18px; min-width: 18px; margin-top: 4px; accent-color: var(--primary-darker); }
.choice-option span { font-size: .94rem; }
.tool-result { background: var(--bg-alt); padding: 36px; border-top: 3px solid var(--primary-dark); position: sticky; top: 108px; min-width: 0; }
.tool-result h2 { font-size: 1.8rem; line-height: 1.2; letter-spacing: -0.014em; margin: 14px 0 24px; }
.tool-result h3 { font-size: 1rem; margin: 28px 0 14px; }
.tool-result p { color: var(--muted); font-size: .95rem; line-height: 1.75; }
.tool-result .btn { margin-top: 22px; margin-right: 6px; }
.tool-result > .link-arrow { display: block; margin-top: 24px; }
.result-list { padding-left: 20px; color: var(--text); font-size: .9rem; }
.result-list li { margin-bottom: 10px; }
.result-note { border-left: 2px solid var(--primary); padding-left: 18px; margin-top: 25px; }
.result-number { display: block; font-size: clamp(2.3rem,4vw,3.5rem); letter-spacing: -0.024em; color: var(--primary-deep); margin: 24px 0 12px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; line-height: 1.1; }
.result-secondary { display: flex; flex-direction: column; border-block: 1px solid var(--line-strong); padding: 22px 0; margin: 28px 0; gap: 8px; }
.result-secondary span { font-size: .8rem; color: var(--muted); }
.result-secondary strong { font-size: 1.7rem; font-weight: 500; letter-spacing: -0.012em; }
.tool-disclaimer, .tool-result .tool-disclaimer { font-size: 0.8rem; color: var(--muted); margin-top: 30px; line-height: 1.7; }
.tool-diagram { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 34px 0; margin-top: 20px; font: .94rem var(--label); color: var(--primary-darker); }
.tool-diagram span { border-block: 1px solid var(--line-strong); padding: 12px 0; }
.tool-result progress { width: 100%; height: 7px; appearance: none; accent-color: var(--primary-dark); margin: 25px 0; }
.tool-result progress::-webkit-progress-bar { background: var(--line-strong); }
.tool-result progress::-webkit-progress-value { background: var(--primary-dark); }
.page-hero .back-link { display: inline-block; margin-bottom: 28px; font-size: .85rem; }
@media (hover:hover) { .resource-card:hover img { transform: scale(1.025); } }
@media (max-width:900px) { .resource-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .knowledge-grid,.tool-layout { gap: 40px; } .process-steps { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width:640px) {
 .journey-grid,.knowledge-grid,.tool-layout,.resource-grid { grid-template-columns: 1fr; }
 .journey-item,.journey-item + .journey-item { padding: 26px 0; border-left: 0; } .journey-item + .journey-item { border-top: 1px solid var(--line); }
 .journey-icon { float: right; margin: 0 0 12px 16px; }
 .process-steps { gap: 28px 18px; } .process-steps h3 { font-size: 1rem; }
 .knowledge-grid { gap: 36px; } .resource-toolbar { align-items: flex-start; } .resource-filters { gap: 18px; } .resource-filters a { font-size: .82rem; }
 .resource-total { padding-bottom: 14px; } .resource-search { gap: 8px; } .resource-search input { padding: 13px 10px; font-size: .9rem; }
 .resource-art { height: 190px; } .tool-result { position: static; padding: 26px; } .tool-layout { gap: 36px; }
 .tool-directory-row { grid-template-columns: 42px 1fr 20px; gap: 16px; align-items: start; } .tool-symbol { font-size: 2.4rem; } .tool-directory-row h2 { font-size: 1.35rem; }
 .tool-directory-row .sec-kicker { font-size: 0.8rem; } .tool-arrow { font-size: 1.3rem; }
}
@media print {
 .site-header,.site-footer,.sister-band,.skip-link,.tool-result .btn,.tool-result > a,.back-link,.resource-search,footer { display:none !important; }
 .section,.page-hero { padding: 20px 0 !important; } .container { width:100%; max-width:none; padding:0 18px; }
 .tool-layout { display:block; } .tool-result { position:static; background:#fff; padding:20px; margin-top:25px; }
 .choice-group,.tool-result { break-inside: avoid; } .hero-media { display:none; }
 body { font-size:11pt; color:#172b3b; } .form-row { margin-bottom:10px; } .tool-form button { display:none; }
}
.reading-layout { display:grid; grid-template-columns:240px minmax(0,760px); gap:70px; padding-top:64px; align-items:start; }
.reading-layout > * { min-width:0; }
.reading-nav { position:sticky; top:108px; }
.reading-nav nav { display:flex; flex-direction:column; border-top:1px solid var(--line); padding-top:10px; margin-bottom:22px; }
.reading-nav nav a { padding:9px 0; font-size:.8rem; line-height:1.55; color:var(--muted); }
.reading-nav nav a:hover { color:var(--primary-darker); }
.reading-layout .article-body { max-width:none; margin:0; padding:0; }
.reading-layout .page-figure { margin-top:0; }
.reading-layout h2 { scroll-margin-top:110px; }
.article-next { margin-top:50px; padding:30px; border-top:2px solid var(--primary); background:var(--bg-alt); }
.article-next h2 { margin-top:12px; font-size:1.65rem; }
.article-next p { font-size:.95rem; }
.article-next .btn { margin-top:16px; }
.detail-next { display:grid; grid-template-columns:1fr auto; gap:55px; align-items:center; }
.detail-next p:not(.sec-kicker) { color:var(--muted); max-width:65ch; margin-top:18px; }
.detail-next .link-arrow { display:block; margin-top:20px; }
@media (max-width:900px) { .reading-layout { grid-template-columns:minmax(0,1fr); gap:36px; } .reading-nav { position:static; } .reading-nav nav { display:grid; grid-template-columns:1fr 1fr; gap:0 25px; } .detail-next { grid-template-columns:1fr; gap:30px; } }
@media (max-width:640px) { .reading-nav nav { grid-template-columns:1fr; } .reading-layout { padding-top:40px; } }
@media print { .reading-nav,.article-next,.page-footer-nav,.reading-page > .section { display:none; } .reading-layout { display:block; padding-top:20px; } .reading-layout .page-figure { max-width:350px; } }
.hero-media { background: url('/media/hero/asp-hero-poster.jpg') center / cover; }
.motion-paused .clients-track,.motion-paused .flow-path,.motion-paused .node-core { animation-play-state:paused !important; }
@media (prefers-reduced-motion:reduce) { .resource-art img { transition:none; } }
/* Critical homepage copy renders immediately; video playback is decorative. */

/* ============================================================ home v2 ======
   Architecture explorer, sector tiles, FAQ teaser.
   ========================================================================== */
.arch-section .sec-head {
    margin-bottom: 36px;
}
.arch-axis {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    font: 600 0.95rem var(--label);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.arch-nodes {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 34px;
}
.arch-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-height: 176px;
    padding: 20px 18px 18px;
    text-align: left;
    font: inherit;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}
.arch-node svg {
    color: var(--primary-dark);
    margin-bottom: 14px;
    transition: color 0.2s ease;
}
.arch-node-index {
    position: absolute;
    top: 18px;
    right: 18px;
    font: 600 0.95rem var(--label);
    letter-spacing: 0.08em;
    color: var(--muted);
}
.arch-node strong {
    font: 700 1.3rem/1.15 var(--font);
    letter-spacing: -0.004em;
}
.arch-node strong,
.arch-node-name {
    max-width: 100%;
    overflow-wrap: break-word;
}
.arch-node-name {
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--muted);
    transition: color 0.2s ease;
}
.arch-node:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.arch-node[aria-selected="true"] {
    background: var(--primary-deep);
    border-color: var(--primary-deep);
    color: #fff;
    box-shadow: var(--shadow-lg);
}
.arch-node[aria-selected="true"] svg {
    color: var(--accent-soft);
}
.arch-node[aria-selected="true"] .arch-node-name,
.arch-node[aria-selected="true"] .arch-node-index {
    color: rgba(214, 228, 240, 0.8);
}
.arch-node[aria-selected="true"]::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 14px;
    height: 14px;
    background: var(--primary-deep);
    transform: translateX(-50%) rotate(45deg);
}
/* two-way connectors between layers: measurements up, commands down */
.arch-node:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(50% - 7px);
    right: -34px;
    width: 34px;
    height: 14px;
    background:
        repeating-linear-gradient(90deg, var(--primary) 0 5px, transparent 5px 10px) 0 0 / 100% 2px no-repeat,
        repeating-linear-gradient(90deg, var(--accent-soft) 0 5px, transparent 5px 10px) 0 100% / 100% 2px no-repeat;
    animation: arch-dash 1.1s linear infinite;
}
@keyframes arch-dash {
    to {
        background-position: 10px 0, -10px 100%;
    }
}
.arch-signal {
    position: relative;
    height: 3px;
    margin: 26px 0 0;
    background: var(--line);
    border-radius: 3px;
    overflow: hidden;
}
.arch-signal i {
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: arch-travel 5.5s linear infinite;
}
.arch-signal i + i {
    background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
    animation-direction: reverse;
    animation-delay: -2.7s;
}
@keyframes arch-travel {
    from {
        left: -120px;
    }
    to {
        left: 100%;
    }
}
.arch-panels {
    margin-top: 22px;
}
.arch-panel {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding: 34px 36px;
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    animation: arch-in 0.35s ease;
}
html:not(.js) .arch-panel + .arch-panel {
    margin-top: 16px;
}
html.js .arch-panel[hidden] {
    display: none;
}
@keyframes arch-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}
.arch-panel h3 {
    font-size: 1.55rem;
    letter-spacing: -0.008em;
    margin-bottom: 12px;
}
.arch-panel p {
    color: var(--muted);
    margin-bottom: 22px;
    max-width: 56ch;
}
.arch-panel h4 {
    font: 600 0.95rem var(--label);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-darker);
    margin-bottom: 14px;
}
.arch-panel-side {
    border-left: 1px solid var(--line);
    padding-left: 32px;
}
.arch-articles {
    list-style: none;
    display: grid;
    gap: 12px;
}
.arch-articles a {
    display: block;
    font-weight: 600;
    line-height: 1.4;
    color: var(--primary-deep);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.arch-articles li:last-child a {
    border-bottom: 0;
}
.arch-articles a:hover {
    color: var(--primary-dark);
}
.arch-articles a::after {
    content: " →";
    color: var(--primary);
}

/* sector tiles (photo-led) */
.sector-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    list-style: none;
}
.sector-tiles li:first-child {
    grid-column: span 2;
}
.sector-tile {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 240px;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--primary-deep-2);
    color: #fff;
    isolation: isolate;
}
.sector-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: saturate(0.9) brightness(0.82);
    transition:
        transform 0.7s ease,
        filter 0.3s ease;
}
.sector-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(5, 19, 34, 0.92) 0%, rgba(5, 19, 34, 0.15) 62%);
}
.sector-tile-label {
    padding: 20px 22px;
    font: 700 1.25rem/1.2 var(--font);
    letter-spacing: -0.004em;
}
.sector-tile-label::after {
    content: " ↗";
    color: var(--accent-soft);
    font-weight: 400;
}
.sector-tile:hover {
    color: #fff;
}
.sector-tile:hover img {
    transform: scale(1.05);
    filter: saturate(1) brightness(0.92);
}
.sector-tiles li:first-child .sector-tile {
    min-height: 300px;
}
.link-arrow.on-dark {
    color: #fff;
}
.link-arrow.on-dark:hover {
    color: var(--accent-soft);
}

.home-faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(32px, 7vw, 100px);
    align-items: start;
}
.home-faq-grid h2 {
    margin-bottom: 22px;
    max-width: 18ch;
}
.home-faq .page-faq {
    max-width: none;
}
@media (max-width: 1000px) {
    .arch-nodes {
        display: grid;
        grid-auto-flow: column;
        grid-template-columns: none;
        grid-auto-columns: minmax(210px, 1fr);
        gap: 14px;
        overflow-x: auto;
        padding: 4px 2px 12px;
        scroll-snap-type: x proximity;
    }
    .arch-node {
        scroll-snap-align: start;
        min-height: 150px;
    }
    .arch-node:not(:last-child)::after {
        display: none;
    }
    .arch-panel {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 26px 22px;
    }
    .arch-panel-side {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid var(--line);
        padding-top: 22px;
    }
    .sector-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .home-faq-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 560px) {
    .sector-tiles {
        grid-template-columns: 1fr;
    }
    .sector-tiles li:first-child {
        grid-column: auto;
    }
    .sector-tile,
    .sector-tiles li:first-child .sector-tile {
        min-height: 170px;
    }
    .arch-axis {
        display: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .arch-node:not(:last-child)::after,
    .arch-signal i,
    .arch-panel {
        animation: none;
    }
    .sector-tile img {
        transition: none;
    }
}
.motion-paused .arch-node::after,
.motion-paused .arch-signal i {
    animation-play-state: paused !important;
}

.arch-panel .check-list li {
    color: var(--text);
}

/* ===================================================== article & content ===
   Breadcrumbs, article chrome, editorial blocks, diagrams, glossary links. */
.breadcrumbs {
    margin-bottom: 18px;
}
.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 0;
    list-style: none;
    font-size: 0.88rem;
    color: var(--muted);
}
.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}
.breadcrumbs li + li::before {
    content: "/";
    margin: 0 9px;
    color: var(--line-strong);
}
.breadcrumbs a {
    color: var(--muted);
}
.breadcrumbs a:hover {
    color: var(--primary-darker);
}
.breadcrumbs li[aria-current] span {
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 38ch;
}
.page-kicker a {
    color: inherit;
}
.article-hero .page-lead {
    max-width: 62ch;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    list-style: none;
    margin-top: 22px;
    font: 500 1rem var(--label);
    letter-spacing: 0.04em;
    color: var(--muted);
}
.article-meta li + li {
    position: relative;
}
.article-meta li + li::before {
    content: "";
    position: absolute;
    left: -11px;
    top: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--muted);
}
.preview-banner {
    background: #fff4d6;
    color: #6b4a00;
    text-align: center;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 0.9rem;
}
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 400;
    pointer-events: none;
}
.reading-progress i {
    display: block;
    height: 100%;
    width: 0;
    background: var(--primary);
}
.reading-nav nav a {
    border-left: 2px solid var(--line);
    padding: 8px 0 8px 14px;
    transition:
        color 0.15s ease,
        border-color 0.15s ease;
}
.reading-nav nav a.toc-l3 {
    padding-left: 28px;
    font-size: 0.78rem;
}
.reading-nav nav a.is-active {
    color: var(--primary-darker);
    border-left-color: var(--primary);
    font-weight: 600;
}
.reading-nav nav {
    border-top: 0;
    padding-top: 0;
}
.reading-actions {
    display: grid;
    justify-items: start;
    gap: 6px;
    margin-top: 20px;
}
.article-body {
    font-size: 1.06rem;
    line-height: 1.78;
}
.article-body > p:first-of-type:not(.post-meta) {
    font-size: 1.18rem;
    line-height: 1.7;
    color: var(--text);
}
.article-body h2 {
    margin: 2.4em 0 0.7em;
    padding-top: 0.2em;
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
}
.article-body h3 {
    margin: 1.8em 0 0.5em;
    font-size: 1.28rem;
}
.article-body p,
.article-body ul,
.article-body ol {
    margin-bottom: 1.15em;
}
.article-body ul,
.article-body ol {
    padding-left: 1.3em;
}
.article-body li {
    margin-bottom: 0.45em;
}
.article-body li::marker {
    color: var(--primary);
}
.article-body a:not(.btn):not(.sc-card):not(.term) {
    color: var(--primary-darker);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--primary) 45%, transparent);
    text-underline-offset: 3px;
}
.article-body a.term {
    color: inherit;
    text-decoration: underline dotted var(--primary);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
}
.article-body a.term:hover {
    color: var(--primary-darker);
    background: var(--primary-soft);
}
.article-body blockquote {
    margin: 1.6em 0;
    padding: 6px 0 6px 22px;
    border-left: 3px solid var(--primary);
    font-size: 1.15rem;
    color: var(--primary-deep);
}
.article-body figure:not(.dg-figure):not(.page-figure) {
    margin: 2em 0;
}
.article-body figure img {
    border-radius: var(--radius);
}
.article-body figcaption {
    margin-top: 8px;
    font-size: 0.88rem;
    color: var(--muted);
}
.article-body hr {
    border: 0;
    border-top: 1px solid var(--line-strong);
    margin: 2.4em 0;
}
.callout {
    margin: 1.8em 0;
    padding: 20px 24px;
    background: var(--primary-soft);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.callout > :last-child {
    margin-bottom: 0;
}
.callout strong:first-child {
    display: block;
    margin-bottom: 4px;
    font: 700 1.05rem var(--label);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-darker);
}
.callout-warn {
    background: #fff4e6;
    border-left-color: #d9822b;
}
.callout-warn strong:first-child {
    color: #8a4b0b;
}
.table-wrap {
    overflow-x: auto;
    margin: 1.8em 0;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
}
.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
    line-height: 1.5;
}
.table-wrap caption {
    caption-side: top;
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
}
.table-wrap th,
.table-wrap td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}
.table-wrap th {
    background: var(--bg-alt);
    font: 600 0.98rem var(--label);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-deep);
    white-space: nowrap;
}
.table-wrap tr:last-child td {
    border-bottom: 0;
}
.sc-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 2.2em 0;
    padding: 26px 30px;
    background: var(--primary-deep);
    color: #fff;
    border-radius: var(--radius-lg);
}
.sc-cta strong {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 4px;
}
.sc-cta p {
    margin: 0;
    color: #c9dcee;
    max-width: 52ch;
}
.sc-cta .btn {
    flex: 0 0 auto;
    background: #fff;
    color: var(--primary-deep);
}
.sc-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 18px;
    align-items: center;
    margin: 1.4em 0;
    padding: 18px 22px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
}
.sc-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}
.sc-card strong {
    color: var(--primary-deep);
    font-size: 1.08rem;
}
.sc-card span {
    grid-column: 1;
    color: var(--muted);
    font-size: 0.94rem;
}
.sc-card b {
    grid-row: 1 / span 2;
    grid-column: 2;
    color: var(--primary);
    font-size: 1.4rem;
}
.article-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--line-strong);
}
.article-pager a {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
}
.article-pager a:hover {
    border-color: var(--primary);
}
.article-pager span {
    font: 600 0.95rem var(--label);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.article-pager strong {
    font-size: 1rem;
    line-height: 1.35;
}
.pager-next {
    text-align: right;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.related-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 24px 20px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: #fff;
    color: var(--muted);
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}
.related-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.related-card strong {
    color: var(--primary-deep);
    font-size: 1.15rem;
    line-height: 1.3;
}
.related-card span:not(.related-type) {
    font-size: 0.92rem;
    line-height: 1.55;
}
.related-type {
    font: 600 0.95rem var(--label);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-darker);
}
.related-card b {
    margin-top: auto;
    padding-top: 6px;
    color: var(--primary);
    font-size: 1.25rem;
}
.related-articles .section-title-sm,
.related-services .section-title-sm {
    margin-bottom: 26px;
}

/* diagrams (see app/diagrams) */
.dg-figure {
    margin: 2.2em 0;
}
.dg-scroll {
    overflow-x: auto;
    padding: 18px 16px 12px;
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
}
.dg {
    display: block;
    width: 100%;
    min-width: 680px;
    height: auto;
    font-family: var(--font);
}
.dg-hint {
    display: none;
    margin: 6px 0 0;
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}
@media (max-width: 720px) {
    .dg-hint { display: block; }
    .dg-scroll {
        background:
            linear-gradient(to right, #fff 30%, rgba(255,255,255,0)) 0 0 / 28px 100% no-repeat local,
            linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) 100% 0 / 28px 100% no-repeat local,
            linear-gradient(to right, rgba(23,43,59,.14), rgba(23,43,59,0)) 0 0 / 12px 100% no-repeat scroll,
            linear-gradient(to left, rgba(23,43,59,.14), rgba(23,43,59,0)) 100% 0 / 12px 100% no-repeat scroll,
            #fff;
    }
}
.dg-figure figcaption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--muted);
}
.dg-zone rect {
    fill: var(--bg-alt);
    stroke: var(--line-strong);
    stroke-dasharray: 4 5;
}
.dg-z-muted rect {
    fill: #fff;
}
.dg-zone-label {
    font: 600 14px var(--label);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    fill: var(--muted);
}
.dg-node rect {
    stroke-width: 1.5;
}
.dg-n-soft rect {
    fill: #fff;
    stroke: var(--line-strong);
}
.dg-n-muted rect {
    fill: var(--bg-alt);
    stroke: var(--line-strong);
}
.dg-n-primary rect {
    fill: var(--primary-deep);
    stroke: var(--primary-deep);
}
.dg-n-accent rect {
    fill: var(--primary-soft);
    stroke: var(--primary);
}
.dg-n-warn rect {
    fill: #fff4e6;
    stroke: #d9822b;
}
.dg-n-bus-a rect {
    fill: var(--primary);
    stroke: none;
}
.dg-n-bus-b rect {
    fill: var(--accent-soft);
    stroke: none;
}
.dg-label {
    font: 600 16px var(--font);
    fill: var(--text);
}
.dg-sub {
    font: 400 13.5px var(--font);
    fill: var(--muted);
}
.dg-n-primary .dg-label {
    fill: #fff;
}
.dg-n-primary .dg-sub {
    fill: rgba(224, 236, 247, 0.78);
}
.dg-icon {
    stroke: var(--primary);
}
.dg-n-primary .dg-icon {
    stroke: #bfe0ff;
}
.dg-node .dg-icon rect,
.dg-node .dg-icon circle,
.dg-node .dg-icon ellipse {
    fill: none;
    stroke: inherit;
    stroke-width: inherit;
}
.dg-link {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.dg-l-a {
    stroke: var(--primary);
}
.dg-l-b {
    stroke: var(--accent-soft);
}
.dg-l-warn {
    stroke: #d9822b;
}
.dg-l-muted {
    stroke: var(--line-strong);
}
.dg-dash {
    stroke-dasharray: 4 5;
}
.dg-flow {
    stroke-dasharray: 6 6;
    animation: dg-dash 1.4s linear infinite;
}
@keyframes dg-dash {
    to {
        stroke-dashoffset: -24;
    }
}
.dg-arrow {
    fill: var(--primary);
}
.dg-arrow-warn {
    fill: #d9822b;
}
.dg-pill rect {
    fill: #fff;
    stroke: var(--line-strong);
}
.dg-pill text {
    font: 600 13px var(--font);
    fill: var(--text);
}
.dg-pill-warn rect {
    fill: #fff4e6;
    stroke: #d9822b;
}
.dg-pill-warn text {
    fill: #7a4108;
}
.dg-note {
    font: 500 14.5px var(--font);
    fill: var(--muted);
}
.dg-note-strong {
    fill: var(--text);
    font-weight: 700;
}
.dg-badge circle {
    fill: var(--primary);
}
.dg-badge text {
    fill: #fff;
    font: 700 12px var(--font);
}
.motion-paused .dg-flow {
    animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
    .dg-flow {
        animation: none;
    }
}
@media (max-width: 900px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
    .article-pager {
        grid-template-columns: 1fr;
    }
    .reading-progress {
        display: block;
    }
    .sc-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}
@media print {
    .reading-progress,
    .breadcrumbs,
    .related-services,
    .related-articles,
    .article-pager,
    .sc-cta {
        display: none !important;
    }
}

/* glossary */
.glossary-search {
    margin-top: 28px;
}
.glossary-layout {
    display: grid;
    grid-template-columns: 64px minmax(0, 820px);
    gap: 40px;
    align-items: start;
}
.glossary-index {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 2px;
}
.glossary-index a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 36px;
    border-radius: 8px;
    font: 600 1.15rem var(--label);
    color: var(--muted);
}
.glossary-index a:hover {
    background: var(--primary-soft);
    color: var(--primary-darker);
}
.glossary-letter {
    font: 600 2rem var(--label);
    color: var(--primary);
    padding-bottom: 8px;
    margin: 0 0 8px;
    border-bottom: 2px solid var(--primary);
}
.glossary-group {
    margin-bottom: 44px;
}
.glossary-term {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}
.glossary-term:target {
    background: var(--primary-soft);
    margin-inline: -16px;
    padding-inline: 16px;
    border-radius: var(--radius);
}
.glossary-term h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
}
.glossary-short {
    color: var(--text);
    font-weight: 500;
}
.glossary-body {
    color: var(--muted);
    margin-top: 8px;
    font-size: 0.97rem;
}
.glossary-term .link-arrow {
    margin-top: 10px;
    font-size: 0.94rem;
}
@media (max-width: 760px) {
    .glossary-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .glossary-index {
        position: static;
        display: flex;
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   Pages v2: offer pages (services, products, sectors), fact sheets, steps
   ========================================================================== */
.page-hero--offer { padding: 44px 0 52px; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { min-width: 0; }
.page-hero--offer h1 { max-width: 19ch; }
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 30px; }
.page-hero .breadcrumbs { margin-bottom: 18px; }
.reading-layout--single { grid-template-columns: minmax(0, 780px); justify-content: center; }
.preview-banner { margin: 0; padding: 10px 20px; text-align: center; background: #fff3df; color: #6b4a00; font-weight: 600; font-size: 0.92rem; border-bottom: 1px solid #ecd6a6; }

/* side card under the table of contents */
.help-card { margin-top: 26px; padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg-alt); display: grid; gap: 4px; font-size: 0.9rem; }
.help-card strong { color: var(--primary-deep); font-size: 1rem; }
.help-card p { margin: 0 0 6px; color: var(--muted); line-height: 1.5; }
.help-card a { font-weight: 600; overflow-wrap: anywhere; }

/* fact sheet: [[facts:Label|Value~...]] — descriptive, never a statistic */
.sc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 1.8em 0 2.2em; border-top: 2px solid var(--primary-deep); border-bottom: 1px solid var(--line-strong); }
.sc-facts > div { padding: 15px 20px 17px 0; }
.sc-facts > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.sc-facts dt { font: 600 0.88rem var(--label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.sc-facts dd { margin: 0; font-weight: 600; line-height: 1.4; color: var(--primary-deep); overflow-wrap: anywhere; }

/* numbered process: [[steps:Title|Text~...]] */
.sc-steps { list-style: none; counter-reset: step; margin: 1.8em 0 2.2em; padding: 0; }
.sc-steps li { counter-increment: step; position: relative; margin: 0; padding: 2px 0 26px 66px; }
.sc-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -2px; width: 46px; font: 600 1.55rem/1.2 var(--label); color: var(--primary); }
.sc-steps li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 36px; bottom: 6px; width: 1px; background: var(--line-strong); }
.sc-steps li strong { display: block; font-size: 1.1rem; color: var(--primary-deep); line-height: 1.35; }
.sc-steps li span { display: block; margin-top: 3px; color: var(--muted); }

/* link-card grid: [[cards:/a|Title|Text~...]] */
.sc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 1.6em 0 2em; }
.sc-cards .sc-card { margin: 0; align-content: start; }

/* gallery: rows fill edge to edge, so the last row never leaves a hole */
.page-gallery-wrap { padding-bottom: 56px; }
.page-gallery { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 0; }
.page-gallery li { flex: 1 1 240px; min-width: 0; }
.page-gallery li:only-child { flex: 0 1 520px; }
.page-gallery img { width: 100%; height: 200px; aspect-ratio: auto; object-fit: cover; }
.related-services { padding-top: 0; }
/* without a gallery in between, the section heading needs its own space below the article */
.reading-layout + .related-services { padding-top: 64px; }
@media (max-width: 640px) {
    .reading-layout + .related-services { padding-top: 48px; }
    /* small originals two-up instead of one narrow column with a gap on the right */
    ul.page-gallery > li { flex: 1 1 calc(50% - 6px); width: auto; }
    ul.page-gallery img { height: 120px; aspect-ratio: auto; }
}
.related-services .related-card { gap: 10px; }
.back-link { margin-top: 22px; }

@media (max-width: 900px) {
    .hero-split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .hero-figure { order: -1; }
    .hero-figure img { aspect-ratio: 16 / 10; }
    .page-hero--offer { padding: 28px 0 40px; }
    .sc-facts { grid-template-columns: minmax(0, 1fr); }
    .sc-facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
    .sc-facts > div { padding-right: 0; }
    .page-gallery img { height: 160px; }
}
@media (max-width: 560px) {
    .sc-steps li { padding-left: 54px; }
    .sc-steps li::before { width: 38px; font-size: 1.3rem; }
    .sc-steps li:not(:last-child)::after { left: 11px; }
    .page-actions { gap: 12px 20px; }
}

/* wide diagrams use the unused margin right of the reading column */
@media (min-width: 1180px) {
    .reading-layout .dg-figure { margin-right: -88px; }
}

/* page-body list rules must not leak into the shortcode blocks */
.page-body .sc-steps, .article-body .sc-steps { padding-left: 0; margin-left: 0; list-style: none; }
.page-body .sc-steps li, .article-body .sc-steps li { margin: 0; }
.page-body .sc-facts, .article-body .sc-facts { margin-left: 0; }

/* reference list: [[refs:Name|Place|Scope; Scope~...]] */
.page-body .sc-refs, .article-body .sc-refs { list-style: none; margin: 1.6em 0 2em; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 14px; }
.page-body .sc-ref, .article-body .sc-ref { margin: 0; padding: 16px 18px 15px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; }
.sc-ref-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.sc-ref-head strong { color: var(--primary-deep); line-height: 1.3; font-size: 1.02rem; }
.sc-ref-head span { font: 600 0.88rem var(--label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.page-body .sc-ref ul, .article-body .sc-ref ul { list-style: disc; margin: 0; padding-left: 1.2em; }
.page-body .sc-ref ul li, .article-body .sc-ref ul li { margin: 0.35em 0; padding: 0; font-size: 0.9rem; line-height: 1.55; color: var(--text); }
.sc-ref-head strong a { text-decoration: underline; text-underline-offset: 0.2em; }

/* offer pages on phones: the table of contents becomes a jump bar, the help card gives way to the closing CTA */
@media (max-width: 900px) {
    .offer-page .reading-layout { padding-top: 26px; row-gap: 22px; }
    .offer-page .reading-nav { position: static; }
    .offer-page .reading-nav .sec-kicker, .offer-page .help-card { display: none; }
    .offer-page .reading-nav nav { flex-direction: row; flex-wrap: nowrap; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 2px 20px 8px; border-top: 0; scrollbar-width: thin; }
    .offer-page .reading-nav nav a { flex: none; padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-size: 0.82rem; line-height: 1.3; white-space: nowrap; }
    .offer-page .reading-nav nav a.toc-l3 { display: none; }
}

/* hub pages: one card per child page */
.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding: 56px 0 72px; }
.hub-card { display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden; background: #fff; color: var(--text); transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.hub-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--text); }
.hub-card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.hub-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.hub-card:hover .hub-card-img img { transform: scale(1.03); }
.hub-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 22px 24px 22px; }
.hub-card strong { font-size: 1.22rem; line-height: 1.3; color: var(--primary-deep); }
.hub-card-text { color: var(--muted); font-size: 0.96rem; line-height: 1.6; }
.hub-card-more { margin-top: auto; padding-top: 12px; font-weight: 600; font-size: 0.92rem; color: var(--primary-darker); }
@media (max-width: 980px) { .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 40px; } }
@media (max-width: 620px) { .hub-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 32px 0 48px; } }
@media (prefers-reduced-motion: reduce) { .hub-card, .hub-card-img img { transition: none; } .hub-card:hover { transform: none; } }

/* ---------------------------------------------- helpful error page (404/410) */
.error-page--rich { padding: 84px 0 96px; text-align: left; }
.error-page--rich .container { max-width: 820px; }
.error-page--rich .error-code { font-size: 3.4rem; }
.error-page--rich h1 { margin: 10px 0 8px; }
.error-page--rich .error-text { max-width: 56ch; margin-bottom: 26px; }
.error-search { display: flex; gap: 10px; max-width: 560px; margin: 0 0 40px; }
.error-search input { flex: 1; min-width: 0; min-height: 48px; padding: 11px 16px; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; }
.error-search .btn { margin: 0; }
.error-block { margin-top: 34px; }
.error-block h2 { font-size: 1.05rem; margin-bottom: 14px; }
.error-suggest, .error-links { list-style: none; margin: 0; padding: 0; }
.error-suggest { display: grid; gap: 10px; }
.error-suggest a { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 14px 18px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--text); }
.error-suggest a:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.error-suggest strong { color: var(--primary-deep, var(--primary)); line-height: 1.4; }
.error-suggest span { flex: none; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.error-links { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.error-links a { display: inline-block; padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-weight: 600; font-size: 0.92rem; }
.error-links a:hover { border-color: var(--primary); }
@media (max-width: 560px) { .error-page--rich { padding: 48px 0 64px; } .error-search { flex-direction: column; } .error-suggest a { flex-direction: column; gap: 4px; } }

/* section headers on phones: the link drops under the heading instead of pushing the page wider */
@media (max-width: 640px) {
    .sec-head { flex-wrap: wrap; align-items: flex-start; row-gap: 10px; }
    .sec-head .sec-link { margin-left: 0; white-space: normal; }
}

.form-note a { text-decoration: underline; text-underline-offset: 3px; }

/* Scroll-linked entrance for the structured page blocks: pure CSS where the browser supports view timelines,
   plain static content everywhere else (and for reduced motion and print). */
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        /* transform only: text stays fully legible (and measurable by contrast checkers) before it slides into place */
        @keyframes block-rise { from { transform: translateY(18px); } to { transform: none; } }
        @keyframes rail-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
        .sc-steps li, .sc-cards .sc-card, .sc-ref, .hub-card, .related-card, .sc-facts > div {
            animation: block-rise linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 40%;
        }
        .sc-steps li:not(:last-child)::after {
            transform-origin: top;
            animation: rail-grow linear both;
            animation-timeline: view();
            animation-range: entry 10% cover 55%;
        }
    }
}
@media print {
    .sc-steps li, .sc-cards .sc-card, .sc-ref, .hub-card, .related-card, .sc-facts > div, .sc-steps li::after { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* phones: the drawer covers the whole header, so the logo sits above it in white */
@media (max-width: 640px) {
    .site-nav { width: 100%; }
    .site-header.nav-open .brand { position: relative; z-index: 260; }
    .site-header.nav-open .brand img { filter: brightness(0) invert(1); }
    /* footer link lists two-up instead of one very long column */
    .footer-cols { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
    .footer-cols > .footer-brand, .footer-cols > :last-child { grid-column: 1 / -1; }
}

/* customers: small link to the customer-information page (names and logos shown for information) */
.customers-note { margin: 10px 0 0; font-size: 0.78rem; line-height: 1.45; }
.customers-note a { color: rgba(214, 228, 240, 0.7); text-decoration: none; }
.customers-note a:hover, .customers-note a:focus-visible { color: #fff; text-decoration: underline; }
.sc-refs-note { margin: -1em 0 2em; font-size: 0.82rem; line-height: 1.5; }
.sc-refs-note a { color: var(--muted); text-decoration: none; }
.sc-refs-note a:hover, .sc-refs-note a:focus-visible { color: var(--primary-darker); text-decoration: underline; }

/* Physical hierarchy: plant at the bottom, information systems above it. */
.arch--vertical { display: grid; grid-template-columns: minmax(270px, 0.8fr) minmax(0, 1.2fr); gap: 32px; align-items: start; }
.arch--vertical .arch-topology { position: relative; padding-right: 32px; }
.arch--vertical .arch-axis { display: flex; font-size: 0.8rem; letter-spacing: 0; gap: 12px; }
.arch--vertical .arch-nodes { display: flex; flex-direction: column-reverse; gap: 12px; }
.arch--vertical .arch-node { min-height: 94px; padding: 15px 18px 15px 76px; width: 100%; gap: 2px; }
.arch--vertical .arch-node svg { position: absolute; left: 18px; top: 25px; margin: 0; }
.arch--vertical .arch-node-index { position: absolute; right: 14px; top: 12px; font-size: 0.8rem; }
.arch--vertical .arch-node::after, .arch--vertical .arch-node::before { display: none; }
.arch--vertical .arch-signal { position: absolute; top: 38px; right: 8px; bottom: 0; width: 4px; height: auto; margin: 0; overflow: hidden; }
.arch--vertical .arch-signal i { left: 0; top: auto; width: 4px; height: 90px; background: linear-gradient(0deg, transparent, var(--primary)); animation: arch-up 6.5s linear infinite; }
.arch--vertical .arch-signal i + i { background: linear-gradient(180deg, transparent, var(--primary-deep)); animation-direction: reverse; animation-delay: -3.25s; }
.arch--vertical .arch-panels { margin: 38px 0 0; }
.arch--vertical .arch-panel { grid-template-columns: 1fr; gap: 24px; min-height: 518px; padding: 28px; }
.arch--vertical .arch-panel-side { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
.arch--vertical.is-offscreen .arch-signal i { animation-play-state: paused; }
@keyframes arch-up { from { bottom: -90px; } to { bottom: 100%; } }
.engineering-brands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; gap: 18px; padding: 0; margin: 0; }
.engineering-brands li, .engineering-brands a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.engineering-brands li { min-height: 180px; padding: 24px 18px; border-top: 2px solid var(--primary); background: #fff; }
.engineering-brands strong { font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--primary-deep); }
.engineering-brands span { font-size: 0.85rem; color: var(--muted); }
.engineering-brands img { height: 130px; width: 130px; object-fit: contain; }
@media (max-width: 760px) {
    .arch--vertical { grid-template-columns: 1fr; gap: 10px; }
    .arch--vertical .arch-panels { margin-top: 12px; }
    .arch--vertical .arch-panel { min-height: 0; padding: 24px; }
    .engineering-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .arch--vertical .arch-signal i { animation: none; } }

/* The same journey follows measurements up and approved commands down. */
.arch-journey { grid-column: 1 / -1; display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 20px 24px; background: #fff; border-left: 3px solid var(--primary); }
.arch-journey p { margin: 0; max-width: 65ch; line-height: 1.65; }
.arch-journey button { flex: 0 0 auto; font: inherit; padding: 8px 12px; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; }
.arch-axis button { color: inherit; font: inherit; padding: 4px 0; text-align: left; background: transparent; border: 0; cursor: pointer; }
.arch-axis button[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 4px; }
.arch--vertical[data-journey-phase="measurement"] .arch-signal i + i, .arch--vertical[data-journey-phase="command"] .arch-signal i:first-child { opacity: .15; }
.arch--vertical[data-journey-state="paused"] .arch-signal i { animation-play-state: paused; }
@media (max-width: 760px) { .arch-journey { flex-direction: column; gap: 12px; padding: 18px; } }
.arch-journey p { min-height: 3.3em; }
@media (max-width: 760px) { .arch-journey p { min-height: 5em; } }
