:root {
    --bg: #050b12;
    --bg-soft: #09131e;
    --panel: #0c1a28;
    --panel-2: #102338;
    --line: #20384c;
    --line-strong: #2c5879;
    --text: #edf5fb;
    --muted: #9fb2c3;
    --dim: #71879a;
    --accent: #35c9e2;
    --accent-2: #4f9cff;
    --green: #53d49a;
    --orange: #f2a64b;
    --red: #ef6a6a;
    --shell: 1180px;
    --radius: 18px;
    --shadow: 0 18px 55px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html {
    background: var(--bg);
    color-scheme: dark;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 50% -20%, rgba(42,111,160,.15), transparent 34rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { color: inherit; }
::selection { background: rgba(53,201,226,.28); color: #fff; }

.shell {
    width: min(calc(100% - 40px), var(--shell));
    margin-inline: auto;
}
.skip-link {
    position: absolute;
    left: 12px;
    top: -80px;
    z-index: 9999;
    padding: 10px 14px;
    background: #fff;
    color: #000;
}
.skip-link:focus { top: 12px; }
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5,11,18,.97);
    border-bottom: 1px solid rgba(77,122,154,.25);
}
.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.brand-mark {
    width: 38px; height: 38px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--accent);
    background: #07141f;
}
.brand strong {
    display: block;
    font-size: 17px;
    letter-spacing: .02em;
}
.brand small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.primary-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.primary-nav a {
    text-decoration: none;
    color: #c8d6e2;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}
.primary-nav a:hover,
.primary-nav a:focus-visible {
    color: #fff;
    background: #0d1d2b;
}
.primary-nav .nav-contact {
    border: 1px solid var(--line-strong);
    color: var(--accent);
}
.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--panel);
    cursor: pointer;
}

/* Hero – the only animated element is the matrix canvas */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 690px;
    border-bottom: 1px solid rgba(55,105,140,.28);
    background: #030913;
}
#matrix {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .42;
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3,9,19,.96) 0%, rgba(3,9,19,.82) 48%, rgba(3,9,19,.45) 72%, rgba(3,9,19,.86) 100%),
        linear-gradient(180deg, transparent 70%, #050b12 100%);
    pointer-events: none;
}
.hero-grid {
    position: relative;
    z-index: 2;
    min-height: 690px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
    align-items: center;
    gap: 70px;
    padding-block: 76px;
}
.hero-copy { max-width: 720px; }
.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.hero h1,
.page-hero h1,
.article-header h1 {
    margin: 0;
    font-size: clamp(44px, 7vw, 78px);
    line-height: .98;
    letter-spacing: -.04em;
}
.hero-lead {
    max-width: 760px;
    margin: 26px 0 0;
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.6;
    color: #c2d3e1;
}
.lia-callout {
    width: fit-content;
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid rgba(83,212,154,.45);
    border-radius: 12px;
    background: rgba(14,49,43,.6);
}
.lia-callout strong,
.lia-callout span { display: block; }
.lia-callout strong { font-size: 14px; }
.lia-callout span { color: #b6d6c7; font-size: 13px; }
.status-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--green);
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 19px;
    border: 1px solid transparent;
    border-radius: 9px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
}
.button-primary {
    color: #041018;
    background: var(--accent);
    border-color: var(--accent);
}
.button-primary:hover,
.button-primary:focus-visible { background: #77e4f1; border-color: #77e4f1; }
.button-secondary {
    color: var(--text);
    background: rgba(11,26,40,.84);
    border-color: var(--line-strong);
}
.button-secondary:hover,
.button-secondary:focus-visible { border-color: var(--accent); color: var(--accent); }
.hero-tech {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.hero-tech li,
.tag-cloud span,
.technology-matrix span {
    border: 1px solid var(--line);
    background: rgba(9,24,36,.82);
    border-radius: 999px;
    padding: 6px 10px;
    color: #b9cbd8;
    font-size: 12px;
    font-weight: 650;
}
.hero-profile {
    justify-self: end;
    width: min(100%, 370px);
}
.profile-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: 20px;
    border: 1px solid var(--line-strong);
    background: #02070b;
    box-shadow: var(--shadow);
}
.profile-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.profile-note {
    margin-top: 14px;
    border-left: 3px solid var(--accent);
    padding: 9px 0 9px 14px;
}
.profile-note strong,
.profile-note span { display: block; }
.profile-note strong { font-size: 14px; }
.profile-note span { color: var(--muted); font-size: 12px; }

/* General sections */
.section { padding: 88px 0; }
.section-tight { padding: 70px 0; }
.section-panel {
    border-block: 1px solid rgba(55,105,140,.26);
    background: linear-gradient(180deg, rgba(11,25,39,.86), rgba(7,17,27,.92));
}
.section-heading { max-width: 820px; margin-bottom: 36px; }
.section-heading h2,
.case-intro h2,
.feature-copy h2,
.cta-card h2,
.prose h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -.025em;
}
.section-heading > p:last-child,
.case-intro > p,
.feature-copy > p,
.cta-card p,
.page-lead {
    color: var(--muted);
    font-size: 17px;
}
.two-col-heading {
    max-width: none;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 60px;
    align-items: end;
}
.two-col-heading > p { margin: 0; }
.method-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
}
.method-strip > div {
    min-height: 150px;
    padding: 20px 17px;
    background: #091521;
}
.method-strip span {
    display: block;
    margin-bottom: 24px;
    color: var(--accent);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
}
.method-strip strong { display: block; margin-bottom: 6px; }
.method-strip small { display: block; color: var(--muted); line-height: 1.45; }

.feature-grid {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 54px;
    align-items: center;
}
.feature-grid.reverse .feature-image { order: 2; }
/* Technical infographics need enough rendered width for their labels to be readable without opening a separate tab. */
.diagram-feature {
    grid-template-columns: 1fr;
    gap: 30px;
}
.diagram-feature.reverse .feature-image { order: 0; }
.diagram-feature .feature-copy { max-width: 1000px; }
.feature-image {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #07111a;
}
.feature-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.feature-copy h3 {
    margin: 14px 0;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
}
.project-status {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    color: #bff7dc;
    background: rgba(31,99,72,.35);
    border: 1px solid rgba(83,212,154,.36);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.project-status-planned {
    color: #d8c6ff;
    background: rgba(72,49,113,.36);
    border-color: rgba(151,105,255,.38);
}
.check-list,
.compact-list {
    margin: 22px 0;
    padding: 0;
    list-style: none;
}
.check-list li {
    position: relative;
    padding: 8px 0 8px 26px;
    color: #c4d2dd;
}
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 900;
}
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 800;
}
.text-link:hover,
.text-link:focus-visible { text-decoration: underline; }
.card-grid {
    display: grid;
    gap: 18px;
}
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.info-card,
.mini-card,
.project-card,
.competence-card,
.side-card {
    border: 1px solid var(--line);
    background: rgba(10,24,37,.82);
    border-radius: var(--radius);
}
.info-card { padding: 26px; }
.info-card i { color: var(--accent); font-size: 25px; margin-bottom: 22px; }
.info-card h3 { margin: 0 0 10px; font-size: 19px; }
.info-card p { margin: 0; color: var(--muted); font-size: 14px; }
.center-action { margin-top: 30px; text-align: center; }

/* Page heroes */
.page-hero {
    padding: 92px 0 70px;
    border-bottom: 1px solid rgba(55,105,140,.26);
    background:
        linear-gradient(180deg, rgba(11,33,51,.68), rgba(5,11,18,.95)),
        radial-gradient(circle at 78% 20%, rgba(53,201,226,.14), transparent 26rem);
}
.page-hero h1 { max-width: 980px; }
.page-lead { max-width: 900px; margin: 24px 0 0; }
.page-hero-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 70px;
    align-items: center;
}
.profile-mini {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
}
.profile-mini img {
    width: 86px; height: 100px;
    object-fit: cover;
    object-position: top;
    border-radius: 10px;
}
.profile-mini strong,
.profile-mini span { display: block; }
.profile-mini span { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* Profile */
.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 64px;
}
.prose { max-width: 780px; }
.prose h2 {
    margin: 52px 0 16px;
    font-size: 31px;
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: #bccbd6; font-size: 17px; }
.side-stack { display: grid; align-content: start; gap: 16px; }
.side-card { padding: 23px; }
.side-card h2 {
    margin: 0 0 14px;
    font-size: 17px;
    letter-spacing: -.01em;
}
.side-card p,
.side-card li,
.side-card span { color: var(--muted); font-size: 14px; }
.compact-list li { margin: 8px 0; }
.compact-list.numbered { list-style: decimal; padding-left: 20px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.side-card blockquote {
    margin: 0;
    color: #d9e6ef;
    font-size: 16px;
    line-height: 1.65;
}

/* Competence */
.competence-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.competence-card { padding: 30px; }
.competence-icon {
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    color: var(--accent);
    background: #071522;
}
.competence-card .level {
    margin: 24px 0 7px;
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.competence-card h2 { margin: 0 0 11px; font-size: 24px; }
.competence-card > p:not(.level) { color: var(--muted); }
.technology-matrix {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

/* Projects */
.project-format-section { padding-top: 52px; }
.deployment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.deployment-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(8, 22, 34, .76);
}
.deployment-label {
    display: inline-block;
    margin-bottom: 11px;
    color: var(--green);
    font: 800 11px ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.deployment-card h3 { margin: 0 0 10px; font-size: 19px; }
.deployment-card p { margin: 0; color: var(--muted); font-size: 14px; }
.project-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 18px 0 30px;
}
.project-facts.compact { grid-template-columns: repeat(4, 1fr); }
.project-facts > div {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(5, 17, 27, .62);
}
.project-facts span {
    display: block;
    margin-bottom: 4px;
    color: var(--dim);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.project-facts strong { color: #e8f5fb; font-size: 13px; line-height: 1.45; }
.project-facts code,
.deployment-detail code,
.availability-list code { color: var(--accent); font-size: .92em; }
.deployment-detail {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 34px;
    margin: 18px 0 30px;
    padding: 30px;
    border: 1px solid rgba(53, 201, 226, .28);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(7, 27, 41, .86), rgba(8, 18, 28, .76));
}
.deployment-detail h3 { margin: 0 0 12px; font-size: 24px; }
.deployment-detail p { color: var(--muted); }
.deployment-checks { display: grid; gap: 8px; align-content: start; }
.deployment-checks span {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: #c6d8e4;
    background: rgba(4, 15, 25, .45);
    font-size: 13px;
}
.deployment-checks i { width: 18px; color: var(--green); text-align: center; }
.inline-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 18px 0 4px;
}
.inline-facts span {
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(6, 18, 29, .68);
    font-size: 11px;
}
.status-copy {
    margin-top: 16px;
    padding: 12px 14px;
    border-left: 2px solid var(--orange);
    color: var(--muted);
    background: rgba(57, 38, 17, .18);
    font-size: 13px;
}
.availability-list {
    display: grid;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.availability-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 20px;
    background: rgba(6, 18, 28, .72);
}
.availability-row + .availability-row { border-top: 1px solid var(--line); }
.availability-row > div { display: grid; gap: 3px; }
.availability-row strong { color: var(--text); }
.availability-row span { color: var(--muted); font-size: 13px; }
.availability-status {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 10px !important;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.availability-status.planned { color: #f0c47d; border: 1px solid rgba(240, 167, 67, .35); background: rgba(84, 52, 13, .3); }
.availability-status.development { color: #8eddf0; border: 1px solid rgba(53, 201, 226, .3); background: rgba(12, 67, 80, .28); }
.availability-status.review { color: #8fe0ae; border: 1px solid rgba(71, 212, 133, .3); background: rgba(19, 74, 43, .28); }
.source-note { margin-top: 20px; }
.project-case { scroll-margin-top: 90px; }
.project-kicker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 13px;
}
.case-intro {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 64px;
    align-items: end;
    margin-bottom: 34px;
}
.case-intro > p { margin: 0; }
.case-visual {
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    margin-bottom: 26px;
    background: #06111a;
}
.case-visual img { width: 100%; }
.case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 26px;
}
.case-grid article {
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(10,24,37,.74);
}
.case-grid h3 { margin: 0 0 10px; font-size: 19px; }
.case-grid p,
.case-grid li { color: var(--muted); font-size: 14px; }
.case-grid ul { padding-left: 20px; margin-bottom: 0; }
.case-highlight {
    margin-top: 18px;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr .85fr;
    gap: 40px;
    border: 1px solid rgba(53,201,226,.35);
    border-radius: var(--radius);
    background: rgba(10,38,52,.58);
}
.case-highlight h3 { margin-top: 0; font-size: 24px; }
.case-highlight p { color: #b9cedd; }
.metric-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.metric-list span {
    padding: 13px;
    border: 1px solid rgba(53,201,226,.18);
    background: rgba(4,15,25,.48);
    border-radius: 10px;
    color: var(--muted);
    font-size: 12px;
}
.metric-list strong { display: block; color: var(--accent); margin-bottom: 3px; }
.learning-block { margin-top: 48px; }
.learning-block h3 { font-size: 24px; }
.mini-card { padding: 20px; }
.mini-card strong { display: block; color: var(--accent); margin-bottom: 7px; }
.mini-card span { color: var(--muted); font-size: 13px; }
.note-box {
    margin-top: 28px;
    padding: 22px 24px;
    border-left: 3px solid var(--orange);
    background: rgba(57,38,17,.32);
}
.note-box p { margin: 7px 0 0; color: #d0c2ad; }
.project-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.project-card { padding: 25px; }
.project-version {
    color: var(--green);
    font: 700 11px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.project-card h3 { margin: 8px 0 10px; font-size: 20px; }
.project-card p,
.project-card li { color: var(--muted); font-size: 14px; }
.project-card ul { padding-left: 18px; margin-bottom: 0; }

/* Blog */
.archive-note {
    display: inline-block;
    margin: 18px 0 0;
    color: var(--dim);
    font-size: 13px;
}
.blog-layout {
    display: grid;
    grid-template-columns: 230px minmax(0,1fr);
    gap: 42px;
    align-items: start;
}
.blog-filters {
    position: sticky;
    top: 98px;
    min-width: 0;
}
.blog-filters h2 { margin: 0 0 10px; font-size: 16px; }
.blog-filter-list {
    display: grid;
    gap: 5px;
    max-height: calc(100vh - 170px);
    max-height: calc(100dvh - 170px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-gutter: stable;
    padding-right: 6px;
}
.blog-filter-list::-webkit-scrollbar { width: 8px; }
.blog-filter-list::-webkit-scrollbar-thumb {
    background: rgba(126, 166, 194, .35);
    border-radius: 999px;
}
.blog-filter-list::-webkit-scrollbar-track { background: transparent; }
.blog-filter-hint {
    margin: 9px 4px 0;
    color: var(--dim);
    font-size: 11px;
    line-height: 1.45;
}
.filter-link {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 10px;
    color: var(--muted);
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
}
.filter-link:hover,
.filter-link:focus-visible,
.filter-link.active {
    color: #fff;
    background: var(--panel);
}
.filter-link span { color: var(--dim); }
.selected-category {
    margin-bottom: 18px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
    font-size: 13px;
}
.selected-category strong { color: var(--text); }
.selected-category a { margin-left: auto; color: var(--accent); }
.blog-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 17px;
}
.blog-layout .blog-card-grid { grid-template-columns: repeat(2, 1fr); }
.blog-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(10,24,37,.8);
}
.blog-card-image { display: block; border-bottom: 1px solid var(--line); }
.blog-card-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.blog-card-body { padding: 21px; }
.blog-meta-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--dim);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.blog-meta-line span { color: var(--accent); }
.blog-card h2,
.blog-card h3 {
    margin: 12px 0 10px;
    line-height: 1.3;
}
.blog-card h2 { font-size: 20px; }
.blog-card h3 { font-size: 19px; }
.blog-card h2 a,
.blog-card h3 a { text-decoration: none; }
.blog-card h2 a:hover,
.blog-card h3 a:hover { color: var(--accent); }
.blog-card p {
    margin: 0 0 17px;
    color: var(--muted);
    font-size: 14px;
}

/* Article */
.article-page { padding-bottom: 90px; }
.article-header {
    padding: 70px 0 42px;
    border-bottom: 1px solid rgba(55,105,140,.22);
    background: linear-gradient(180deg, rgba(10,31,48,.78), rgba(5,11,18,.9));
}
.article-header-inner { max-width: 900px; }
.article-back {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 34px;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
}
.article-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 17px;
    color: var(--dim);
    font-size: 12px;
}
.article-meta span { color: var(--accent); font-weight: 800; }
.article-header h1 {
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
}
.article-header p {
    max-width: 800px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 18px;
}
.article-image {
    max-width: 1180px;
    margin-top: 34px;
}
.article-image img {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.article-layout {
    max-width: 1000px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 50px;
    margin-top: 46px;
    align-items: start;
}
.article-content { min-width: 0; }
.article-content > p,
.article-content li {
    color: #bfced9;
    font-size: 16px;
}
.article-content h2 {
    margin: 48px 0 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(60,98,124,.24);
    font-size: 28px;
    line-height: 1.25;
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 { margin-top: 30px; }
.article-content strong { color: #eef7fc; }
.article-content a { color: var(--accent); }
.article-content ul,
.article-content ol { padding-left: 24px; }
.article-content li { margin: 8px 0; }
.article-content pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #020810;
    color: #cdeaf0;
}
.article-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .91em;
}
.article-content p code,
.article-content li code {
    padding: 2px 5px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #07131d;
    color: #c8eff5;
}
.article-author {
    margin-top: 54px;
    padding: 22px 0 0;
    border-top: 1px solid var(--line);
}
.article-author p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.article-aside {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 14px;
}
.article-aside .text-link { display: flex; margin: 9px 0; font-size: 13px; }

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 50px;
    align-items: start;
}
.contact-info { display: grid; gap: 15px; }
.contact-info a { color: var(--accent); }
.contact-form {
    padding: 30px;
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}
.contact-form h2 { margin: 0; font-size: 28px; }
.contact-form > p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.contact-form label { margin-top: 6px; font-size: 13px; font-weight: 800; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #07131d;
    color: var(--text);
    padding: 11px 12px;
    outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.contact-form textarea { resize: vertical; min-height: 160px; }
.honeypot { position: absolute !important; left: -10000px !important; }

/* CV */
.cv-section { padding-top: 50px; }
.cv-sheet {
    max-width: 1000px;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f5f7f9;
    color: #18212a;
}
.cv-top {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    border-bottom: 2px solid #1c5b80;
    padding-bottom: 22px;
}
.cv-top h1 { margin: 0; font-size: 37px; }
.cv-top p { margin: 4px 0 0; color: #38505f; }
.cv-contact { text-align: right; font-size: 13px; color: #425866; }
.cv-contact span { display: block; }
.cv-columns {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 45px;
    margin-top: 30px;
}
.cv-sheet section { margin-bottom: 30px; }
.cv-sheet h2 {
    margin: 0 0 12px;
    color: #164b6c;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.cv-sheet h3 { margin: 14px 0 5px; font-size: 16px; }
.cv-sheet p,
.cv-sheet li { color: #324652; font-size: 13.5px; line-height: 1.55; }
.cv-sheet ul { padding-left: 18px; }

/* CTA */
.section-cta { padding-top: 40px; }
.cta-card {
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    border: 1px solid rgba(53,201,226,.35);
    border-radius: var(--radius);
    background:
        linear-gradient(120deg, rgba(9,42,58,.95), rgba(10,24,37,.96)),
        #0b1c29;
}
.cta-card h2 { max-width: 800px; font-size: 34px; }
.cta-card p { max-width: 820px; margin-bottom: 0; }

/* Footer */
.site-footer {
    margin-top: 70px;
    border-top: 1px solid var(--line);
    background: #03080e;
}
.footer-grid {
    padding-block: 50px 38px;
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 50px;
}
.footer-grid h2 { margin: 0 0 14px; font-size: 14px; }
.footer-grid p { max-width: 450px; color: var(--muted); font-size: 13px; }
.footer-grid a,
.footer-grid span {
    display: block;
    margin: 8px 0;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
}
.footer-grid a:hover,
.footer-grid a:focus-visible { color: var(--accent); }
.footer-brand { color: #fff !important; font-weight: 850; font-size: 18px !important; }
.footer-bottom {
    padding-block: 18px 24px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    border-top: 1px solid rgba(50,79,99,.3);
    color: var(--dim);
    font-size: 11px;
}

/* Focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Responsive */
@media (max-width: 1000px) {
    .primary-nav {
        display: none;
        position: absolute;
        top: 76px;
        left: 20px;
        right: 20px;
        padding: 14px;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #06111a;
        box-shadow: var(--shadow);
        max-height: calc(100vh - 96px);
        max-height: calc(100dvh - 96px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    .primary-nav.open { display: flex; }
    .menu-button { display: grid; place-items: center; }
    .hero-grid { grid-template-columns: 1fr 300px; gap: 35px; }
    .method-strip { grid-template-columns: repeat(3, 1fr); }
    .card-grid.four { grid-template-columns: repeat(2, 1fr); }
    .project-card-grid { grid-template-columns: repeat(2, 1fr); }
    .deployment-grid { grid-template-columns: repeat(2, 1fr); }
    .project-facts,
    .project-facts.compact { grid-template-columns: repeat(2, 1fr); }
    .blog-card-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
    .footer-grid > div:last-child { grid-column: 2 / 4; }
}

@media (max-width: 780px) {
    /* Keep architecture text legible on phones without forcing a new browser tab.
       The page itself stays responsive; only the diagram viewport pans horizontally. */
    .diagram-feature .feature-image,
    .article-image {
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }
    .diagram-feature .feature-image img,
    .article-image img {
        min-width: 900px;
        max-width: none;
    }

    .shell { width: min(calc(100% - 28px), var(--shell)); }
    .section { padding: 64px 0; }
    .hero, .hero-grid { min-height: auto; }
    .hero-grid {
        grid-template-columns: 1fr;
        padding-block: 65px;
    }
    .hero-profile { justify-self: start; width: 250px; }
    .hero h1 { font-size: 52px; }
    .two-col-heading,
    .feature-grid,
    .feature-grid.reverse,
    .page-hero-grid,
    .content-grid,
    .case-intro,
    .case-highlight,
    .deployment-detail,
    .contact-grid,
    .cv-columns,
    .article-layout,
    .blog-layout {
        grid-template-columns: 1fr;
    }
    .feature-grid.reverse .feature-image { order: 0; }
    .competence-grid,
    .case-grid,
    .project-card-grid,
    .deployment-grid,
    .project-facts,
    .project-facts.compact,
    .blog-card-grid,
    .blog-layout .blog-card-grid {
        grid-template-columns: 1fr;
    }
    .method-strip { grid-template-columns: repeat(2, 1fr); }
    .project-kicker { align-items: flex-start; flex-direction: column; }
    .availability-row { align-items: flex-start; flex-direction: column; gap: 10px; }
    .metric-list { grid-template-columns: 1fr; }
    .blog-filters,
    .article-aside { position: static; }
    .blog-filters {
        margin-bottom: 26px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: rgba(7, 19, 29, .55);
    }
    .blog-filters h2 {
        display: block;
        margin-bottom: 10px;
    }
    .blog-filter-list {
        max-height: min(42dvh, 320px);
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 5px;
    }
    .blog-filters .filter-link {
        width: 100%;
        min-height: 44px;
        align-items: center;
        white-space: normal;
        border: 1px solid transparent;
        background: rgba(7, 19, 29, .7);
    }
    .blog-filter-hint { margin-top: 10px; }
    .footer-grid a {
        min-height: 28px;
        padding-block: 3px;
        margin-block: 4px;
    }
    .article-layout { gap: 30px; }
    .article-aside { grid-template-columns: repeat(2, 1fr); }
    .cta-card { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child,
    .footer-grid > div:last-child { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; gap: 6px; }
    .cv-top { flex-direction: column; }
    .cv-contact { text-align: left; }
}

@media (max-width: 520px) {
    .header-inner { min-height: 68px; }
    .primary-nav { top: 68px; }
    .brand small { display: none; }
    .hero-grid { padding-block: 52px; }
    .hero h1 { font-size: 44px; }
    .hero-lead { font-size: 17px; }
    .hero-profile { width: 205px; }
    .method-strip,
    .card-grid.four,
    .article-aside,
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid > div:first-child,
    .footer-grid > div:last-child { grid-column: auto; }
    .page-hero { padding: 70px 0 50px; }
    .page-hero h1,
    .article-header h1 { font-size: 38px; }
    .case-highlight,
    .cta-card,
    .contact-form { padding: 22px; }
    .cv-sheet { padding: 24px; }
}

@media print {
    body { background: #fff; color: #000; }
    .site-header, .site-footer, .print-hide { display: none !important; }
    .cv-section { padding: 0; }
    .cv-sheet {
        width: 100%;
        max-width: none;
        border: 0;
        padding: 0;
        color: #000;
        box-shadow: none;
    }
}

/* v9 knowledge-bank robustness */
.blog-layout > div,
.blog-card-grid {
    min-height: 0;
    height: auto;
    max-height: none;
}
.blog-card-grid { overflow: visible; }
