:root {
    /* Brand palette + semantic accents */
    --cmet-primary: #04364a;
    --cmet-secondary: #02c0ff;
    --cmet-academy: #ffd25e;
    --cmet-maritime: #3b7cff;
    --cmet-tech: #74f3c2;

    --neutral-900: #0b1724;
    --neutral-800: #142536;
    --neutral-600: #415364;
    --neutral-300: #c5cdd4;
    --neutral-200: #e2e8ed;
    --neutral-100: #f5f7fa;
    --neutral-000: #ffffff;

    --shadow-soft: 0 8px 24px rgba(4, 54, 74, 0.12);
    --shadow-strong: 0 20px 50px rgba(10, 34, 52, 0.18);

    --font-base: "Space Grotesk", Arial, sans-serif;
    --font-header: "Inter", "Segoe UI", Arial, sans-serif;
    --font-mono: "IBM Plex Mono", Menlo, monospace;

    /* Type scale */
    --fs-body: 1rem;
    --fs-small: 0.88rem;
    --fs-eyebrow: 0.75rem;
    --fs-h1: clamp(2.25rem, 6vw, 3.75rem);
    --fs-h2: clamp(1.75rem, 4vw, 2.75rem);
    --fs-h3: clamp(1.35rem, 3vw, 1.9rem);
    --fs-h4: 1.15rem;

    /* Spacing scale */
    --space-2xs: 0.35rem;
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1.25rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;

    --radius-sm: 0.35rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;

    --container-max: 1100px;
}

/* Base reset + typography */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.site-body {
    margin: 0;
    font-family: var(--font-base);
    font-size: var(--fs-body);
    line-height: 1.7;
    color: var(--neutral-800);
    background: var(--neutral-100);
    min-height: 100vh;
}

body.nav-open {
    overflow: hidden;
}

img, svg, video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Skip link for keyboard users */
.skip-link {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -120%);
    padding: var(--space-xs) var(--space-md);
    background: var(--cmet-secondary);
    color: var(--neutral-900);
    border-radius: var(--radius-sm);
    z-index: 999;
}

.skip-link:focus {
    transform: translate(-50%, 0);
}

.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;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--cmet-secondary);
    outline-offset: 3px;
}

/* Typography + layout helpers */
.eyebrow {
    font-size: var(--fs-eyebrow);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cmet-secondary);
    margin-bottom: var(--space-xs);
}

h1, h2, h3, h4 {
    margin: 0 0 var(--space-sm);
    font-weight: 600;
    color: var(--neutral-900);
    line-height: 1.2;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p {
    margin: 0 0 var(--space-md);
    max-width: 65ch;
    text-wrap: pretty;
}

.max-readable {
    max-width: 720px;
}

.page {
    width: 100%;
    margin-inline: auto;
    /* padding: clamp(2rem, 4vw, 3.5rem) var(--space-md) var(--space-2xl); */
}

main.page {
    max-width: none;
    padding-inline: 0;
}

main.page > section {
    width: 100%;
    padding-inline: var(--space-md);
}

main.page > section > .hero,
main.page > section > .page-hero,
main.page > section > .grid,
main.page > section > .section-header,
main.page > section > .accordion,
main.page > section > .callout,
main.page > section > .contact-card,
main.page > section > .form-card,
main.page > section > .cta-row,
main.page > section > .stack-md,
main.page > section > .feature-figure {
    max-width: none;
    width: 100%;
    margin-inline: 0;
}



.page--narrow {
    width: min(720px, 100%);
}

/* Spacing utility for vertical rhythm */
.stack-md > * + * {
    margin-top: var(--space-md);
}

/* Section backgrounds with 2-tone gradient */
.section-2tone {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, rgba(4, 54, 74, 0.95) 0 55%, rgba(245, 247, 250, 1) 55% 100%);
    color: var(--neutral-000);
}

.section-2tone .page {
    display: grid;
    gap: var(--space-lg);
}

.section-2tone--academy {
    background: linear-gradient(135deg, #221b00 0 55%, var(--cmet-academy) 55% 100%);
    color: var(--neutral-900);
}

.section-2tone--maritime {
    background: linear-gradient(135deg, #02142c 0 55%, var(--cmet-maritime) 55% 100%);
}

.section-2tone--tech {
    background: linear-gradient(135deg, #012e27 0 55%, var(--cmet-tech) 55% 100%);
}

/* Sticky header with mobile drawer */
.site-header {
    font-family: var(--font-header);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(4, 54, 74, 0.9);
    color: var(--neutral-000);
    backdrop-filter: blur(12px);
    box-shadow: none;
    transition: box-shadow 250ms ease, transform 250ms ease;
}

.site-header--scrolled {
    box-shadow: var(--shadow-soft);
}

.site-subheader {
    font-family: var(--font-header);
    background: rgba(3, 18, 46, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-subheader__inner {
    width: min(var(--container-max), 100%);
    margin-inline: auto;
    padding: 0.4rem var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
}

.site-subheader__text {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.9);
}

.site-subheader__text a,
.site-subheader__links a {
    color: #aeefff;
    text-decoration: none;
}

.site-subheader__links {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.78rem;
    font-weight: 600;
}

.site-subheader__links a + a {
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    padding-left: var(--space-sm);
}

.site-header__inner {
    width: min(var(--container-max), 100%);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-md);
}

.site-logo {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
    color: inherit;
}

.site-logo__img {
    display: block;
    width: auto;
    height: clamp(2rem, 4vw, 2.75rem);
}

.nav-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: inherit;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.site-nav {
    position: fixed;
    inset: 0 0 auto auto;
    top: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background: var(--neutral-900);
    color: var(--neutral-000);
    transform: translateX(100%);
    transition: transform 280ms ease;
    padding: var(--space-xl) var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    overflow-y: auto;
    /* box-shadow: -24px 0 40px rgba(0, 0, 0, 0.35); */
}

.site-nav.is-open {
    transform: translateX(0);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(11, 23, 36, 0.45);
    backdrop-filter: blur(1px);
    z-index: 90;
    cursor: pointer;
}

.site-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.nav__link {
    text-decoration: none;
    font-weight: 400;
    padding: var(--space-2xs) 0;
    border-bottom: 2px solid transparent;
    color: inherit;
    transition: border-color 200ms ease, color 200ms ease;
}

.nav__link:hover {
    color: var(--cmet-secondary);
}

.nav__link--active {
    border-color: var(--cmet-secondary);
}

.nav-dropdown details {
    position: relative;
}

.nav-dropdown summary {
    list-style: none;
    cursor: pointer;
}

.nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown__panel {
    margin-top: var(--space-sm);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
}

.nav-dropdown__panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.nav__sublink {
    display: block;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--fs-small);
}

.nav-actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

@media (min-width: 960px) {
    .nav-dropdown__panel {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 240px;
        background: var(--neutral-000);
        color: var(--neutral-900);
        box-shadow: var(--shadow-soft);
        z-index: 200;
        opacity: 0;
        transform: translateY(10px);
        pointer-events: none;
        transition: opacity 180ms ease, transform 180ms ease;
    }
    .nav-dropdown details[open] .nav-dropdown__panel {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .nav__sublink {
        color: var(--neutral-800);
        padding: var(--space-2xs) 0;
    }
    .nav-actions {
        margin-top: 0;
    }
}

@media (max-width: 640px) {
    .site-subheader__inner {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
}

@media (min-width: 960px) {
    .nav-toggle {
        display: none;
    }
    .site-nav {
        position: static;
        height: auto;
        width: auto;
        background: transparent;
        transform: none;
        padding: 0;
        color: inherit;
        flex-direction: row;
        align-items: center;
        gap: var(--space-xl);
        overflow: visible;
    }
    .site-nav__list {
        flex-direction: row;
        gap: var(--space-lg);
        align-items: center;
    }

    .site-nav__list > li {
        display: flex;
        align-items: center;
    }

    .nav-dropdown details {
        display: flex;
        align-items: center;
    }
}

/* Button system */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    border: none;
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease;
    background: var(--cmet-secondary);
    color: var(--neutral-900);
    box-shadow: 0 10px 30px rgba(2, 192, 255, 0.25);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(2, 192, 255, 0.32);
}

.btn:active {
    transform: scale(0.98);
}

.btn--primary {
    box-shadow: 0 10px 30px rgba(2, 192, 255, 0.35);
}

.btn--secondary {
    background: var(--neutral-900);
    color: var(--neutral-000);
    box-shadow: 0 10px 28px rgba(11, 23, 36, 0.26);
}

.btn--ghost {
    background: transparent;
    color: inherit;
    border: 1px solid currentColor;
    box-shadow: none;
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn--small {
    padding: 0.5rem 0.9rem;
    font-size: var(--fs-small);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* Card system */
.card {
    background: var(--neutral-000);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    transition: transform 220ms ease, box-shadow 220ms ease;
    border: 1px solid rgba(20, 37, 54, 0.05);
}

.card--lift:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: var(--fs-small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(2, 192, 255, 0.15);
    color: var(--cmet-secondary);
}

.badge--academy { background: rgba(255, 210, 94, 0.2); color: #9f6c00; }
.badge--maritime { background: rgba(59, 124, 255, 0.2); color: #2b4bff; }
.badge--tech { background: rgba(116, 243, 194, 0.2); color: #11784f; }

/* Grid utilities */
.grid {
    display: grid;
    gap: var(--space-md);
}

.grid--responsive {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.highlight-grid article,
.program-grid article,
.service-grid article,
.lab-grid article {
    background: var(--neutral-000);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-soft);
}

/* Section headers */
.section-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    max-width: 72ch;
}

.section-header__title {
    font-size: var(--fs-h2);
}

.section-header__lede {
    color: var(--neutral-600);
}

/* Icon bullet list */
.icon-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-sm);
}

.icon-list__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-sm);
    align-items: start;
}

.icon-list__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: rgba(2, 192, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

/* Accordion component */
.accordion {
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-200);
    overflow: hidden;
}

.accordion__item + .accordion__item {
    border-top: 1px solid var(--neutral-200);
}

.accordion__trigger {
    width: 100%;
    background: var(--neutral-000);
    border: none;
    padding: var(--space-md);
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.accordion__panel {
    padding: 0 var(--space-md) var(--space-md);
    color: var(--neutral-600);
}

/* Form styling */
.form-card {
    background: var(--neutral-900);
    color: var(--neutral-000);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-strong);
}

.form-grid {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.form-grid__full {
    grid-column: 1 / -1;
}

label span {
    display: block;
    font-size: var(--fs-small);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-2xs);
    color: rgba(255, 255, 255, 0.7);
}

input,
select,
textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
    color: var(--neutral-000);
    font: inherit;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    border-color: var(--cmet-secondary);
    box-shadow: 0 0 0 3px rgba(2, 192, 255, 0.25);
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

textarea {
    resize: vertical;
    min-height: 8rem;
}

.form-note {
    font-size: var(--fs-small);
    color: rgba(255, 255, 255, 0.6);
}

.form-help {
    margin: 0;
    font-size: var(--fs-small);
    color: rgba(255, 255, 255, 0.75);
}

.form-check {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-sm);
    align-items: start;
}

.form-check input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.2rem;
    accent-color: var(--cmet-secondary);
}

.form-check label {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--fs-small);
}

.form-error {
    margin: 0;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    background: rgba(255, 126, 126, 0.2);
    color: #ffcfcf;
    font-size: var(--fs-small);
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.alert {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    background: rgba(255, 210, 94, 0.15);
    color: #7a5200;
}

.alert--error {
    background: rgba(255, 126, 126, 0.2);
    color: #6c1111;
}

/* Contact + callouts */
.contact-card,
.callout {
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    background: linear-gradient(145deg, var(--cmet-primary), var(--neutral-900));
    color: var(--neutral-000);
    box-shadow: var(--shadow-strong);
}

.callout .btn {
    background: var(--neutral-000);
    color: var(--neutral-900);
}

/* Footer */
.site-footer {
    margin-top: var(--space-2xl);
    background: var(--neutral-900);
    color: var(--neutral-100);
    padding: var(--space-2xl) var(--space-md);
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
}

.site-footer__grid {
    width: min(var(--container-max), 100%);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.site-footer__bottom {
    margin-inline: auto;
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--neutral-800);
}

.site-footer__brand {
    display: flex;
    align-items: flex-start;
}

.site-footer__brand .site-logo__img {
    height: 10rem;
    width: auto;
}

.site-footer__credit {
    text-align: center;
    margin: 0;
    font-size: var(--fs-small);
    color: var(--neutral-300);
    padding-bottom: 0px;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-nav a {
    text-decoration: none;
    color: var(--neutral-100);
    font-size: 0.95rem;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    text-decoration-thickness: 0.12em;
}

.footer-nav a:hover {
    color: var(--cmet-secondary);
}

.footer-nav--contact span {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.footer-nav--contact a,
.footer-nav--contact address {
    font-size: 1rem;
    color: var(--neutral-000);
    font-style: normal;
}

.footer-nav--contact a {
    text-decoration: underline;
    text-underline-offset: 0.18em;
    text-decoration-thickness: 0.12em;
}

/* Utility themes for per-business sections */
.theme-academy {
    --cmet-primary: #5c4200;
    --cmet-secondary: var(--cmet-academy);
}

.theme-maritime {
    --cmet-primary: #021c45;
    --cmet-secondary: var(--cmet-maritime);
}

.theme-tech {
    --cmet-primary: #013d34;
    --cmet-secondary: var(--cmet-tech);
}

/* Hero + page hero sections */
.hero,
.page-hero {
    display: grid;
    gap: var(--space-md);
}

.hero {
    align-items: center;
    gap: var(--space-lg);
}

.hero__content {
    display: grid;
    gap: var(--space-sm);
}

.hero__media,
.feature-figure {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: var(--neutral-200);
}

.hero__media img,
.feature-figure img {
    width: 100%;
    min-height: 240px;
    object-fit: cover;
}

.link-quiet {
    color: var(--neutral-000);
    font-weight: 600;
    text-decoration-thickness: 0.12em;
}

main section + section {
    margin-top: var(--space-xl);
}

.hero h1,
.page-hero h1 {
    max-width: 18ch;
}

.hero p,
.page-hero p {
    color: var(--neutral-600);
}

.section-2tone h1,
.section-2tone h2,
.section-2tone h3,
.section-2tone p,
.section-2tone .section-header__lede {
    color: rgba(255, 255, 255, 0.94);
}

.section-2tone--academy h1,
.section-2tone--academy h2,
.section-2tone--academy h3,
.section-2tone--academy p,
.section-2tone--academy .section-header__lede {
    color: var(--neutral-900);
}

/* Responsive tweaks */
@media (min-width: 768px) {
    .site-header__inner {
        padding-inline: var(--space-lg);
    }
    .section-2tone .page {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: center;
    }
    .hero {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    }
}

@media (min-width: 1024px) {
    .page {
        padding-inline: var(--space-lg);
    }
    main.page > section {
        padding-inline: var(--space-lg);
    }
    .section-header {
        margin-bottom: var(--space-sm);
    }
}

/* Solent-inspired visual refinement layer */
.site-header {
    background: #ffffff;
    color: var(--neutral-900);
    border-bottom: 1px solid #d9e2ec;
    backdrop-filter: none;
}

.site-subheader {
    background: #031b44;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.site-subheader__text,
.site-subheader__links {
    color: rgba(255, 255, 255, 0.92);
}

.site-subheader__text a,
.site-subheader__links a {
    color: #ffffff;
    font-weight: 600;
}

.site-subheader__links a {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.72rem;
}

.site-header__inner {
    min-height: 82px;
}

.nav__link {
    font-weight: 400;
    color: #0b1724;
    border-bottom-color: transparent;
}

.nav__link--active {
    border-color: #0a4ea3;
}

.nav__link:hover {
    color: #0a4ea3;
}

.nav-toggle {
    color: #0b1724;
    border-color: #a8b6c5;
    background: #ffffff;
}

.site-nav {
    background: #ffffff;
    color: #0b1724;
    /* box-shadow: -20px 0 40px rgba(2, 20, 44, 0.22); */
}

.nav-dropdown__panel {
    background: #f6f9fc;
    border: 1px solid #d8e3ee;
}

.nav__sublink {
    color: #1f2f43;
}

.nav__sublink:hover {
    color: #0a4ea3;
}

.nav-actions .btn--secondary {
    background: #0a4ea3;
    color: #ffffff;
    box-shadow: none;
}

.hero {
    background: linear-gradient(125deg, #03265b 0 62%, #f5f8fc 62% 100%);
    padding: clamp(1.1rem, 3vw, 2rem);
    box-shadow: var(--shadow-soft);
}

.hero--home {
    background: linear-gradient(118deg, #031c48 0 56%, #0a4ea3 56% 100%);
}

.hero--solid {
    background: #031c48;
}

.hero--home .hero__content {
    padding: clamp(0.65rem, 1.6vw, 1rem) 0;
}

.hero--home .hero__media {
    border-radius: var(--radius-md);
    box-shadow: 0 14px 28px rgba(2, 16, 42, 0.28);
}

.hero--home .hero__media img {
    min-height: 320px;
}

.hero__meta {
    list-style: none;
    margin: var(--space-sm) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-xs);
}

.hero__meta li {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.55rem;
    padding: 0.5rem 0.6rem;
    color: rgba(255, 255, 255, 0.92);
}

.hero__meta strong {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.hero__meta span {
    font-size: 0.76rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.82);
}

.hero .eyebrow,
.hero h1,
.hero p {
    color: var(--neutral-000);
}

.hero .btn--ghost {
    color: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.52);
    background: transparent;
}

.hero__media,
.feature-figure {
    border-radius: var(--radius-md);
}

.hero__media img,
.feature-figure img {
    min-height: 260px;
}

.highlight-grid article,
.program-grid article,
.service-grid article,
.lab-grid article,
.card {
    border-left: 4px solid var(--cmet-secondary);
}



.section-header {
    position: relative;
}

.section-header::after {
    content: '';
    width: 76px;
    height: 3px;
    background: var(--cmet-secondary);
    border-radius: 10px;
}

.accordion {
    background: var(--neutral-000);
}

.accordion__trigger {
    font-size: 1.02rem;
}

.callout {
    background: linear-gradient(135deg, #03265b, #063f6e);
}

.callout--contact-home {
    background:
        radial-gradient(circle at 12% 18%, rgba(126, 228, 255, 0.2), transparent 35%),
        linear-gradient(130deg, #03265b 0%, #063f6e 55%, #0a4ea3 100%);
    border: 1px solid rgba(174, 239, 255, 0.25);
    display: grid;
    gap: var(--space-md);
}

.contact-home__lead {
    max-width: 70ch;
}

.contact-home__details {
    gap: var(--space-sm);
}

.contact-home__card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    backdrop-filter: blur(2px);
}

.contact-home__card p {
    margin-bottom: var(--space-xs);
    color: rgba(255, 255, 255, 0.94);
}

.contact-home__hint {
    font-size: var(--fs-small);
    color: rgba(255, 255, 255, 0.72);
    margin-top: var(--space-xs);
}

.callout--contact-home .link-quiet {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.contact-home__actions .btn {
    min-width: 180px;
}

.callout--contact-home h2,
.callout--contact-home p {
    color: rgba(255, 255, 255, 0.95);
}

.callout--contact-home .section-header::after {
    background: rgba(174, 239, 255, 0.85);
}

.why-cmet .section-header {
    max-width: 78ch;
}

.why-cmet__layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: stretch;
}

.why-cmet__card {
    border-left-color: #1b8dff;
    background: linear-gradient(165deg, #ffffff 0%, #f6faff 100%);
    box-shadow: 0 14px 28px rgba(4, 54, 74, 0.12);
}

.why-cmet__list {
    gap: 0;
}

.why-cmet__list .icon-list__item {
    grid-template-columns: auto 1fr;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
}

.why-cmet__list .icon-list__item + .icon-list__item {
    border-top: 1px solid rgba(20, 37, 54, 0.1);
}

.why-cmet__list .icon-list__icon {
    width: 2.2rem;
    height: 2.2rem;
    background: linear-gradient(145deg, #0a4ea3, #02c0ff);
    color: #ffffff;
    font-weight: 600;
}

.why-cmet__list h3 {
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
    color: #0b1724;
}

.why-cmet__list p {
    margin: 0;
    color: #415364;
    max-width: 52ch;
}

.why-cmet__actions {
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
}

.why-cmet__media-card {
    justify-content: center;
}

.why-cmet__figure {
    position: relative;
    height: 100%;
    min-height: 100%;
}

.why-cmet__figure img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.why-cmet__figure figcaption {
    position: absolute;
    left: var(--space-sm);
    right: var(--space-sm);
    bottom: var(--space-sm);
    margin: 0;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.96);
    background: rgba(3, 27, 68, 0.76);
    backdrop-filter: blur(2px);
}

.team-home .section-header {
    max-width: 80ch;
}

.team-home__layout {
    display: block;
}

.team-home__figure {
    position: relative;
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}

.team-carousel {
    position: relative;
}

.team-carousel__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
}

.team-carousel__viewport:focus-visible {
    outline: 2px solid var(--cmet-secondary);
    outline-offset: 3px;
}

.team-carousel__viewport::-webkit-scrollbar {
    height: 10px;
}

.team-carousel__viewport::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.team-carousel__track {
    display: flex;
}

.team-carousel__slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}

.page--home .team-carousel__slide img,
.page--home .team-home__figure img {
    width: 100%;
    min-height: 0;
    aspect-ratio: 21 / 9;
    object-fit: cover;
}

.team-carousel__slide figcaption,
.team-home__figure figcaption {
    position: absolute;
    left: var(--space-sm);
    right: var(--space-sm);
    bottom: var(--space-sm);
    margin: 0;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.96);
    background: rgba(3, 27, 68, 0.78);
    backdrop-filter: blur(2px);
}

.team-carousel__controls {
    pointer-events: none;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-sm);
}

.team-carousel__btn {
    pointer-events: auto;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(3, 27, 68, 0.72);
    color: rgba(255, 255, 255, 0.96);
    font: inherit;
    font-weight: 700;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.team-carousel__btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.page--home > section + section {
    margin-top: clamp(1.25rem, 2.4vw, 2rem);
}

.page--home > .hero + #about {
    margin-top: 0;
}

.page--home .hero__media img {
    min-height: 0;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.page--home .feature-figure img {
    min-height: 0;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    max-height: 700px;
}

.page--home #vision .card,
.page--home #why-cmet .card,
.page--home #team .card {
    height: 100%;
}

.page--home #why-cmet .feature-figure,
.page--home #team .feature-figure {
    height: 100%;
}

.site-footer {
    background: #031b44;
}

@media (max-width: 768px) {
    .why-cmet__layout {
        grid-template-columns: 1fr;
    }

    .why-cmet__figure img {
        min-height: 240px;
    }

    .page--home .team-carousel__slide img,
    .page--home .team-home__figure img {
        min-height: 240px;
        aspect-ratio: 4 / 3;
    }

    .team-carousel__controls {
        padding: 0 var(--space-xs);
    }

    .team-carousel__btn {
        padding: 0.45rem 0.6rem;
    }

    .hero {
        background: #03265b;
    }
    .hero__media {
        margin-top: var(--space-sm);
    }

    .hero--home .hero__media img {
        min-height: 220px;
        aspect-ratio: 4 / 3;
    }

    .hero__meta {
        grid-template-columns: 1fr;
    }

    .hero--home .hero__content {
        padding: var(--space-md);
    }

    .site-subheader__text {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page,
    .page--home,
    .page--narrow {
        padding-top: var(--space-lg);
        padding-bottom: var(--space-xl);
        padding-inline: var(--space-sm);
    }

    main section + section {
        margin-top: var(--space-lg);
    }

    main.page > section {
        padding-inline: var(--space-sm);
    }

    .hero,
    .page-hero,
    .section-header {
        gap: var(--space-sm);
    }

    .hero h1,
    .page-hero h1 {
        max-width: 100%;
    }

    .hero__media img,
    .feature-figure img {
        min-height: 180px;
        aspect-ratio: 4 / 3;
    }

    .card,
    .form-card,
    .callout,
    .contact-card,
    .accordion__trigger,
    .accordion__panel {
        padding: var(--space-md);
    }

    .grid,
    .form-grid,
    .cta-row {
        gap: var(--space-sm);
    }

    .btn {
        width: 100%;
    }

    .nav-toggle {
        padding: 0.45rem 0.65rem;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .card--lift:hover {
        transform: none;
    }
}

.full-height {
    height: 100%;
}

.full-width {
    width: 100% !important;
}

.no-vert-padding {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.no-horiz-padding {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.no-vert-margin {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.no-horiz-margin {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.text-white {
    color: white;
}

option {
    color: black !important;
}

body.page-under-construction {
    background:
        radial-gradient(circle at 15% 20%, rgba(2, 192, 255, 0.24), transparent 30%),
        radial-gradient(circle at 85% 78%, rgba(10, 78, 163, 0.24), transparent 36%),
        linear-gradient(145deg, #011a42 0%, #03265b 45%, #0852a8 100%);
    color: var(--neutral-000);
}

.page--under-construction {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: var(--space-lg);
}

.under-construction-panel {
    width: min(760px, 100%);
    border-radius: var(--radius-lg);
    padding: clamp(1.4rem, 4vw, 2.75rem);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    box-shadow: 0 20px 48px rgba(1, 9, 24, 0.34);
    text-align: center;
}

.under-construction-logo {
    display: inline-block;
    margin-bottom: var(--space-sm);
}

.under-construction-logo img {
    width: clamp(120px, 18vw, 180px);
    height: auto;
}

.page--under-construction .eyebrow,
.page--under-construction h1,
.page--under-construction p {
    color: var(--neutral-000);
    margin-inline: auto;
}

.under-construction-subtext {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
}

.under-construction-actions {
    justify-content: center;
    margin-top: var(--space-sm);
}

.page--under-construction .btn--ghost {
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--neutral-000);
}

.page--under-construction .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 640px) {
    .under-construction-panel {
        text-align: left;
    }

    .under-construction-actions {
        justify-content: stretch;
    }
}
