/* =========================================================
   5DVNS Technologies: multi-page layer (v3, 28 Sep 2026)
   Shared by every page: header links and the Prototypes / Formalism
   dropdowns, the inner-page layout, the footer, and the About /
   Applications / Prototypes / Products / Formalism pages.
   Loaded after style.css and landingstyles.css.
========================================================= */

:root {
    --header-h: 99px;       /* kept in sync by site.js */
    --sticky-top: 0px;      /* header height while the header is showing */
    --page-max: 880px;
    --page-max-wide: 1120px;
    --line: rgba(122, 225, 255, 0.35);
}

html {
    scroll-padding-top: calc(var(--pv-h, 0px) + var(--header-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;  /* About: the section links glide to their section */
    }
}

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

.skip-link {
    position: absolute;
    top: -60px;
    left: 12px;
    z-index: 10001;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--accent);
    color: #0b0f1f;
    font-size: 13px;
    font-weight: 700;
    transition: top 0.15s ease;
}

.skip-link:focus,
.skip-link:hover {
    top: calc(var(--pv-h, 0px) + 12px);
    color: #0b0f1f;
}

/* =========================
   Header: brand link, page links, Formalism dropdown
========================== */

.landing-header a.brand-wrap,
.landing-header a.brand-wrap:hover {
    color: inherit;
    text-decoration: none;
}

.landing-header .landing-logo {
    aspect-ratio: 920 / 909;
}

.landing-header .landing-nav a:focus-visible,
.landing-header a.brand-wrap:focus-visible,
.hamburger:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.landing-header .landing-nav a[aria-current="page"],
.landing-header .landing-nav .nav-dropdown.is-current > .nav-link {
    color: var(--accent);
    background: rgba(122, 225, 255, 0.1);
    border-color: rgba(122, 225, 255, 0.45);
}

/* ---------- Dropdowns (Prototypes, Formalism): hover or keyboard focus opens them ---------- */

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: stretch;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    z-index: 30;
    min-width: 250px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: rgba(8, 15, 30, 0.97);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(122, 225, 255, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
}

/* the last dropdown sits at the right edge of the header: align its menu to the right */
.nav-dropdown:last-child .nav-dropdown-menu {
    left: auto;
    right: 0;
    transform: translateY(-4px);
}

/* keeps the menu open while the pointer crosses the gap under the menu item */
.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
}

.nav-overview {
    display: none;
}

@media (min-width: 901px) {
    .nav-dropdown.open .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
        transition-delay: 0s;
    }

    .nav-dropdown:last-child.open .nav-dropdown-menu,
    .nav-dropdown:last-child:focus-within .nav-dropdown-menu {
        transform: none;
    }
}

@media (hover: hover) and (min-width: 901px) {
    .nav-dropdown:hover .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
        transition-delay: 0s;
    }

    .nav-dropdown:last-child:hover .nav-dropdown-menu {
        transform: none;
    }
}

/* Escape closes a menu that keyboard focus is holding open */
@media (min-width: 901px) {
    .nav-dropdown.is-suppressed .nav-dropdown-menu {
        opacity: 0;
        visibility: hidden;
    }
}

.landing-header .landing-nav .nav-dropdown-menu a {
    display: block;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}

.landing-header .landing-nav .nav-dropdown-menu a:hover {
    background: rgba(122, 225, 255, 0.08);
    border-color: transparent;
    color: var(--text);
}

.landing-header .landing-nav .nav-dropdown-menu a[aria-current="page"] {
    background: rgba(122, 225, 255, 0.1);
    border-color: rgba(122, 225, 255, 0.3);
    color: var(--accent);
}

.nav-sub {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

@media (max-width: 900px) {
    .landing-header .landing-nav {
        max-height: calc(100vh - var(--header-h) - var(--pv-h, 0px));
        overflow-y: auto;
        overscroll-behavior: contain;
        background: rgb(6, 12, 24);
    }

    .nav-dropdown {
        flex-direction: column;
        align-self: stretch;
    }

    .landing-header .landing-nav .nav-dropdown.open > .nav-link {
        border-color: rgba(122, 225, 255, 0.45);
    }

    /* phones: tapping Prototypes or Formalism opens its pages */
    .nav-dropdown-menu,
    .nav-dropdown:last-child .nav-dropdown-menu {
        position: static;
        display: none;
        gap: 6px;
        min-width: 0;
        margin: 8px 0 2px 18px;
        padding: 0 0 0 12px;
        background: none;
        border: 0;
        border-left: 1px solid var(--line);
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: grid;
    }

    .nav-dropdown-menu::before {
        display: none;
    }

    .nav-overview {
        display: list-item;
    }

    .landing-header .landing-nav .nav-dropdown-menu a {
        padding: 8px 12px;
        border-color: var(--border);
        background: rgba(255, 255, 255, 0.04);
        font-size: 11px;
        text-align: left;
        white-space: normal;
    }

    .nav-sub {
        display: none;
    }
}

/* =========================
   Inner pages: layout shell
========================== */

.site-page {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-page > .landing-header {
    position: sticky;
    top: var(--pv-h, 0px);
    z-index: 50;
    background: rgba(7, 13, 27, 0.86);
    transition: transform 0.25s ease;
}

.site-page > .landing-header.is-hidden {
    transform: translateY(-100%);
}


.page {
    flex: 1 0 auto;
    width: 100%;
    padding: 30px 24px 64px;
}

.page-wrap {
    max-width: var(--page-max);
    margin: 0 auto;
}

.page-wrap.is-wide {
    max-width: var(--page-max-wide);
}

/* page heading */

.page-header {
    margin: 0 0 26px;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 12px;
}

.breadcrumb li {
    display: flex;
    gap: 6px;
}

.breadcrumb li + li::before {
    content: "/";
    color: rgba(159, 182, 212, 0.45);
}

.breadcrumb a {
    color: var(--muted);
}

.breadcrumb a:hover {
    color: var(--text);
}

.page-header .eyebrow {
    margin-bottom: 10px;
    color: var(--accent);
}

.page-title {
    margin: 0;
    font-size: clamp(26px, 2.2vw + 14px, 38px);
    line-height: 1.15;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.page-title::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin-top: 16px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.page-lede {
    max-width: 70ch;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.page-actions .ghost {
    font-size: 13px;
    padding: 8px 14px;
}

/* content panel */

.page-panel {
    position: relative;
    padding: 6px 36px;
    background: var(--panel-strong-landing);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(122, 225, 255, 0.06), 0 24px 80px rgba(0, 0, 0, 0.45);
}

.page-panel + .page-panel {
    margin-top: 28px;
}

.page-panel > .section {
    margin: 0;
    padding: 28px 0;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
}

.page-panel > .section:last-child {
    border-bottom: 0;
}

/* long-form text */

.prose p,
.prose li {
    font-size: 15.5px;
    line-height: 1.72;
}

.prose p {
    margin: 0 0 12px;
}

.prose p:last-child {
    margin-bottom: 0;
}

.prose ul,
.prose ol {
    margin: 6px 0 14px;
    padding-left: 22px;
}

.prose li {
    margin: 5px 0;
}

.prose li::marker {
    color: var(--accent);
}

.prose strong {
    color: #ffffff;
}

.prose h2 {
    margin: 4px 0 14px;
    font-size: 23px;
    line-height: 1.25;
}

.prose h3 {
    margin: 26px 0 10px;
    color: var(--text);
    font-size: 17.5px;
    line-height: 1.35;
}

.prose .section > h3:first-child,
.prose .section-heading + h3 {
    margin-top: 4px;
}

.prose .section-heading .eyebrow {
    margin-bottom: 6px;
    color: var(--accent);
}

.prose .section-heading h3 {
    margin: 0 0 12px;
    color: var(--muted);
    font-weight: 600;
}

.prose .about-grid {
    display: block;
    color: inherit;
}

.prose .formula {
    margin: 14px 0;
    padding: 10px 16px;
    overflow-x: auto;
    background: rgba(122, 225, 255, 0.05);
    border-left: 2px solid var(--accent);
    border-radius: 0 8px 8px 0;
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
}

.prose .shift-summary-table {
    width: 100%;
    margin: 14px 0;
    border-collapse: collapse;
    font-size: 14px;
}

.prose .shift-summary-table th,
.prose .shift-summary-table td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    text-align: left;
}

.prose .shift-summary-table th {
    /* the heading row looks like the other rows (client, 28 Sep: the blue copy of this row was removed) */
    background: none;
    color: inherit;
    font-weight: inherit;
}

/* =========================
   Formalism: document tabs, hub cards, previous / next
========================== */

.page-header .formalism-subnav {
    flex-wrap: wrap;
    margin-top: 22px;
    padding: 0;
    overflow: visible;
}

.formalism-subnav a[aria-current="page"] {
    color: var(--accent);
    background: rgba(122, 225, 255, 0.1);
    border-color: rgba(122, 225, 255, 0.45);
}

.doc-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.doc-cards li:first-child {
    grid-column: 1 / -1;
}

.doc-cards a {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    padding: 22px 24px;
    background: var(--panel-strong-landing);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    color: var(--text);
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.doc-cards a:hover,
.doc-cards a:focus-visible {
    border-color: var(--line);
    background: rgba(18, 32, 60, 0.92);
    color: var(--text);
    transform: translateY(-2px);
}

.doc-cards a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.doc-card-kicker {
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.doc-card-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

.doc-card-desc {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.doc-card-more {
    margin-top: auto;
    padding-top: 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}

.doc-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 28px;
}

.doc-pager a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    background: rgba(12, 22, 42, 0.8);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.doc-pager a:hover,
.doc-pager a:focus-visible {
    border-color: var(--line);
    background: rgba(122, 225, 255, 0.06);
    color: var(--text);
}

.doc-pager .is-next {
    grid-column: 2;
    text-align: right;
}

.pager-label {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pager-title {
    font-weight: 600;
}

/* =========================
   Applications: engagement intro + table under the header
========================== */

.intro-block {
    padding: 26px 0 24px;
    border-bottom: 1px solid var(--line);
}

.intro-block .eyebrow {
    margin-bottom: 12px;
    color: var(--accent);
}

.intro-block .eyebrow span {
    color: var(--muted);
}

.prose .chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 16px;
    padding: 0;
    list-style: none;
}

.prose .chip-list li {
    margin: 0;
    padding: 5px 12px;
    background: rgba(122, 225, 255, 0.07);
    border: 1px solid rgba(122, 225, 255, 0.25);
    border-radius: 999px;
    color: var(--text);
    font-size: 13.5px;
    line-height: 1.4;
}

.page-panel--table {
    padding-bottom: 12px;
}

.page .applications-table {
    margin-top: 8px;
}

.page .applications-table thead th {
    top: calc(var(--pv-h, 0px) + var(--sticky-top));
    transition: top 0.25s ease;
}

/* =========================
   Prototypes
========================== */

.proto-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.proto-toc a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 7px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.proto-toc.is-plain a {
    padding: 7px 14px;
}

.proto-toc a:hover,
.proto-toc a:focus-visible {
    background: rgba(122, 225, 255, 0.08);
    border-color: var(--line);
    color: var(--text);
}

.proto-letter {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(150deg, rgba(122, 225, 255, 0.22), rgba(194, 139, 255, 0.22));
    border: 1px solid rgba(122, 225, 255, 0.35);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}

.prototype.page-panel {
    padding: 32px 40px 36px;
}

.prototype-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.prototype-head .proto-letter {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    font-size: 21px;
}

.prototype-head .eyebrow {
    margin: 2px 0 6px;
    color: var(--accent);
}

.prototype-head h2 {
    margin: 0;
    font-size: clamp(21px, 1.2vw + 14px, 28px);
    line-height: 1.25;
    text-wrap: balance;
}

.spec-num {
    margin-right: 8px;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.prose .logic-chain {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 0;
    margin: 14px 0 20px;
    padding: 0;
    list-style: none;
}

.prose .logic-chain li {
    display: inline-flex;
    align-items: center;
    margin: 0;
    line-height: 1.35;
}

.logic-chain li span {
    padding: 7px 12px;
    background: rgba(122, 225, 255, 0.07);
    border: 1px solid rgba(122, 225, 255, 0.3);
    border-radius: 10px;
    color: var(--text);
    font-size: 13.5px;
}

.logic-chain li:not(:last-child)::after {
    content: "\2192";
    content: "\2192" / "";
    margin: 0 10px;
    color: var(--accent);
    font-size: 15px;
}

.logic-chain li:last-child span {
    background: rgba(122, 225, 255, 0.16);
    border-color: rgba(122, 225, 255, 0.55);
}

.media-frame {
    margin: 28px 0 0;
}

.media-frame video,
.media-frame img {
    display: block;
    width: 100%;
    height: auto;
    background: #02070f;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.media-frame video {
    aspect-ratio: 816 / 480;
}

.media-frame a {
    display: block;
    border-radius: 12px;
}

.media-frame a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.media-frame figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

/* =========================
   Products (in preparation)
========================== */

.prose .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 5px 12px;
    background: rgba(122, 225, 255, 0.08);
    border: 1px solid rgba(122, 225, 255, 0.35);
    border-radius: 999px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.status-pill::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(122, 225, 255, 0.8);
}

.coming-soon.section {
    padding: 40px 0 44px;
}

/* =========================
   Responsive
========================== */

@media (max-width: 900px) {
    .page {
        padding: 22px 16px 48px;
    }

    .page-panel {
        padding: 4px 22px;
        border-radius: 14px;
    }

    .prototype.page-panel {
        padding: 24px 22px 28px;
    }
}

@media (max-width: 640px) {
    .page {
        padding: 18px 12px 40px;
    }

    .page-panel {
        padding: 2px 16px;
    }

    .prototype.page-panel {
        padding: 20px 16px 24px;
    }

    .prose p,
    .prose li {
        font-size: 15px;
    }

    .prose h2 {
        font-size: 20px;
    }

    .prototype-head .proto-letter {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .prose .logic-chain {
        flex-direction: column;
        align-items: flex-start;
    }

    .prose .logic-chain li {
        flex-direction: column;
        align-items: flex-start;
    }

    .logic-chain li:not(:last-child)::after {
        content: "\2193";
        content: "\2193" / "";
        margin: 4px 0 0 14px;
    }

    .doc-cards {
        grid-template-columns: 1fr;
    }

    .doc-pager {
        grid-template-columns: 1fr;
    }

    .doc-pager .is-next {
        grid-column: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-page > .landing-header,
    .nav-dropdown-menu,
    .doc-cards a,
    .page .applications-table thead th {
        transition: none;
    }
}

/* =========================
   Home: hero subtitle (was an h4; same look as before)
========================== */

.landing-content .hero .hero-copy .hero-sub {
    margin: 1.33em 0;
    font-size: 1em;
    font-weight: bold;
    line-height: normal;
}

/* small phones: the company name (with BV/SRL) stays on one line */
@media (max-width: 400px) {
    .landing-header .brand-wrap {
        gap: 10px;
    }

    .landing-header .landing-brand-title {
        font-size: 14.5px;
    }
}

/* =========================
   Footer (every page): brand, pages, Formalism, contact
========================== */

.page-footer {
    position: relative;
    z-index: 1;
    background: rgba(6, 12, 24, 0.94);
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 32px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 40px;
}

.footer-logo,
.footer-logo:hover {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}

.footer-logo img {
    width: 52px;
    height: auto;
    aspect-ratio: 920 / 909;
}

.footer-logo-title {
    display: block;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

.footer-logo-sub {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.footer-tagline {
    max-width: 36ch;
    margin: 16px 0 20px;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Social media: brand-coloured round icons (Font Awesome Free brand icons in /icons/) */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.social-link::before {
    content: "";
    width: 18px;
    height: 18px;
    background: #ffffff;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.social-facebook {
    background: #0866ff;
}

.social-facebook::before {
    -webkit-mask-image: url("icons/facebook.svg");
    mask-image: url("icons/facebook.svg");
}

.social-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.social-instagram::before {
    -webkit-mask-image: url("icons/instagram.svg");
    mask-image: url("icons/instagram.svg");
}

.social-linkedin {
    background: #0a66c2;
}

.social-linkedin::before {
    -webkit-mask-image: url("icons/linkedin.svg");
    mask-image: url("icons/linkedin.svg");
}

.social-youtube {
    background: #ff0000;
}

.social-youtube::before {
    width: 20px;
    -webkit-mask-image: url("icons/youtube.svg");
    mask-image: url("icons/youtube.svg");
}

a.social-link:hover,
a.social-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
}

.social-link.is-pending {
    cursor: default;
}

.footer-title {
    margin: 4px 0 16px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.page-footer a {
    color: var(--muted);
}

.page-footer a:hover,
.page-footer a:focus-visible {
    color: var(--text);
}

.page-footer a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.footer-contact li {
    line-height: 1.55;
}

.footer-label {
    display: block;
    margin-bottom: 2px;
    color: rgba(159, 182, 212, 0.72);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 20px;
    margin-top: 40px;
    padding: 18px 0 22px;
    border-top: 1px solid var(--border);
    font-size: 12.5px;
}

.footer-bottom p {
    margin: 0;
}

@media (max-width: 1000px) {
    .footer-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 32px 28px;
    }

    .footer-brand,
    .footer-contact-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .footer-inner {
        padding: 36px 20px 0;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

/* =========================
   Home: the hero fills the first screen, the footer follows below it
========================== */

@media (min-width: 901px) {
    .landing-page {
        position: relative;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .landing-page > .landing-content {
        min-height: calc(100vh - var(--header-h) - var(--pv-h, 0px));
    }
}

/* =========================
   Prototypes overview: two cards
========================== */

.proto-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.proto-cards a {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--panel-strong-landing);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    color: var(--text);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.proto-cards a:hover,
.proto-cards a:focus-visible {
    border-color: var(--line);
    color: var(--text);
    transform: translateY(-2px);
}

.proto-cards a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.proto-cards img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    object-position: top center;
    background: #02070f;
    border-bottom: 1px solid var(--border);
}

.proto-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 20px 22px 22px;
}

.proto-card-body .doc-card-title {
    font-size: 20px;
}

@media (max-width: 760px) {
    .proto-cards {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .proto-cards a,
    .social-link {
        transition: none;
    }
}

/* Applications table: links to the related prototype page */
.page .applications-table .table-link {
    display: block;
    width: fit-content;
    margin-top: 6px;
    color: var(--accent);
    font-weight: 600;
}

.page .applications-table .table-link:hover,
.page .applications-table .table-link:focus-visible {
    color: var(--text);
    text-decoration: underline;
}

/* =========================
   Home: "Request Technical Briefing" form (the original pop-up)
========================== */

.interception-modal-header h2 {
    margin: 0;
    color: var(--accent);
    font-size: 20px;
}

.landing-modal .interception-modal-content:focus {
    outline: none;
}

.landing-modal .interception-modal-close:focus-visible,
.landing-modal .briefing-form input:focus-visible,
.landing-modal .briefing-form .cta:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
