/* 星恒集团 2026 视觉重设计：深海星轨 / 全屏叙事                         */
/* ========================================================================== */

:root {
    --global-scale: 1;
    --bg-gradient-primary: #020b1b;
    --bg-gradient-secondary: #071327;
    --accent-primary: #4d7cff;
    --accent-secondary: #8f7cff;
    --accent-tertiary: #f6ad3c;
    --accent-gradient: #6f7df7;
    --glow-primary: rgba(77, 124, 255, 0.28);
    --glow-secondary: rgba(143, 124, 255, 0.2);
    --text-primary: #f7f9ff;
    --text-secondary: rgba(235, 241, 255, 0.78);
    --text-muted: rgba(219, 228, 248, 0.52);
    --text-placeholder: rgba(219, 228, 248, 0.34);
    --glass-bg: #0b1930;
    --glass-bg-hover: #10213d;
    --glass-border: rgba(145, 170, 220, 0.16);
    --glass-border-hover: rgba(92, 135, 255, 0.5);
    --glass-blur: none;
    --glass-blur-heavy: none;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-full: 999px;
    --shadow-sm: 0 8px 28px rgba(0, 5, 18, 0.2);
    --shadow-md: 0 18px 50px rgba(0, 5, 18, 0.32);
    --shadow-lg: 0 30px 80px rgba(0, 5, 18, 0.46);
    --shadow-glow: 0 0 36px rgba(77, 124, 255, 0.2);
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 64px;
    --container-max: 1200px;
    --container-padding: clamp(24px, 4vw, 64px);
    --navbar-height: 88px;
}

html,
body {
    background: #020b1b;
}

body {
    font-family: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei UI", "PingFang SC", sans-serif;
    font-size: 16px;
    letter-spacing: 0.01em;
    --cosmos-shift-x: 0px;
    --cosmos-shift-y: 0px;
    --cosmos-scale: 1.01;
    --cosmos-rotation: 0deg;
}

.cosmos-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: #020b1b;
}

.cosmos-backdrop-image,
.cosmos-backdrop-wash {
    position: absolute;
    inset: -5%;
}

.cosmos-backdrop-image {
    background: var(--cosmos-background-image, url('assets/hero-starfield.png')) center / cover no-repeat;
    transform: translate3d(var(--camera-x, 0%), var(--camera-y, 0%), 0) scale(var(--camera-scale, 1.08));
    will-change: transform;
}

.cosmos-backdrop-wash {
    background: #020b1b;
    opacity: var(--camera-shade, 0.12);
    will-change: opacity;
}

::selection {
    color: #031126;
    background: #f6ad3c;
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-thumb {
    background: #4d7cff;
    border-radius: 999px;
    box-shadow: none;
}

.scroll-container {
    position: relative;
    z-index: 1;
    background: transparent;
    scroll-padding-top: 0;
    scroll-behavior: auto;
    scroll-snap-type: y proximity;
}

.scroll-container.has-fullpage-motion,
.scroll-container.is-footer-scrolling {
    scroll-snap-type: none;
}

.section {
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(var(--navbar-height) + 38px) var(--container-padding) 42px;
    background: rgba(4, 15, 34, 0.34);
    isolation: isolate;
}

.section::before {
    display: none;
}

.container {
    width: min(100%, var(--container-max));
    margin: auto;
    position: relative;
    z-index: 1;
}

.navbar {
    height: var(--navbar-height);
    padding: 0 clamp(24px, 3.6vw, 56px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: rgba(2, 11, 27, 0.16);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.navbar.scrolled {
    background: rgba(2, 11, 27, 0.94);
    border-bottom-color: rgba(145, 170, 220, 0.12);
}

.nav-brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: #f7f9ff;
    font-size: clamp(22px, 1.6vw, 23px);
    font-weight: 720;
    line-height: 1.25;
    letter-spacing: 0.015em;
    text-decoration: none;
    -webkit-text-fill-color: currentColor;
    background: none;
}

.nav-brand:hover {
    color: #ffffff;
}

.nav-brand-mark,
.nav-brand-logo img {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(22px, 3vw, 48px);
}

.nav-menu a {
    padding: 30px 0 26px;
    color: rgba(245, 248, 255, 0.78);
    font-size: 14px;
    font-weight: 520;
    letter-spacing: 0.06em;
}

.nav-menu a::after {
    height: 2px;
    background: #f6ad3c;
    box-shadow: none;
}

.nav-menu a:hover,
.nav-menu a.active,
.nav-menu a[aria-current="page"] {
    color: #ffffff;
}

.nav-menu a.active::after,
.nav-menu a[aria-current="page"]::after {
    width: 28px;
}

.nav-menu a:focus {
    outline: none;
}

.nav-menu a:focus-visible {
    outline: 1px solid #f6ad3c;
    outline-offset: 6px;
    border-radius: 2px;
}

.section-rail {
    position: fixed;
    right: clamp(18px, 2.2vw, 36px);
    top: 50%;
    z-index: 900;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.section-rail-link {
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    color: rgba(221, 230, 250, 0.34);
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.section-rail-number {
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
}

.section-rail-dot {
    width: 5px;
    height: 5px;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
    transition: width 0.25s ease, height 0.25s ease, background 0.25s ease;
}

.section-rail-link:hover,
.section-rail-link.active {
    color: #ffffff;
    transform: translateX(-2px);
}

.section-rail-link.active .section-rail-dot {
    width: 7px;
    height: 28px;
    border-radius: 999px;
    border-color: #f6ad3c;
    background: #f6ad3c;
}

.section-index {
    display: block;
    margin-bottom: 18px;
    color: #f6ad3c;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.18em;
    font-variant-numeric: tabular-nums;
}

.section-title {
    margin: 0;
    color: #f7f9ff;
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 760;
    line-height: 1.08;
    letter-spacing: -0.035em;
    background: none;
    -webkit-text-fill-color: currentColor;
    text-align: left;
}

.section-title::after {
    display: none;
}

.section-subtitle {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 15px;
    letter-spacing: 0.12em;
    text-align: left;
}

.glass-card {
    border: 1px solid var(--glass-border);
    background: #0b1930;
    box-shadow: var(--shadow-sm);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.glass-card::before,
.card::before,
.company-card::before,
.contact-card-item::before {
    display: none;
}

.hero-section {
    justify-content: center;
    background: rgba(2, 11, 27, 0.08);
}

.hero-content {
    width: min(100%, 1260px);
    max-width: 1260px;
    min-height: calc(100vh - var(--navbar-height) - 80px);
    min-height: calc(100dvh - var(--navbar-height) - 80px);
    margin: auto;
    padding: 42px clamp(8px, 2vw, 26px) 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: clamp(82px, 9vh, 108px);
    text-align: left;
    position: relative;
    z-index: 2;
    transform: translateY(-45px);
}

.hero-content .section-index {
    margin-bottom: 24px;
}

.hero-content h1 {
    width: min(58vw, 720px);
    max-width: 720px;
    margin: 0;
    color: #9a91ff;
    font-size: clamp(86px, 6.4vw, 102px);
    font-weight: 830;
    line-height: 1.1;
    letter-spacing: -0.055em;
    text-align: left;
    background: none;
    -webkit-text-fill-color: currentColor;
    text-shadow: 0 18px 50px rgba(0, 8, 30, 0.42);
}

.hero-content .subtitle {
    margin: 30px 0 0;
    padding-left: 0;
    position: relative;
    color: rgba(245, 248, 255, 0.88);
    font-size: clamp(26px, 1.9vw, 30px);
    font-weight: 360;
    letter-spacing: 0.04em;
}

.hero-content .subtitle::before {
    display: none;
}

.hero-title-line {
    display: block;
    white-space: nowrap;
}

.hero-content .subtitle::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -30px;
    width: 34px;
    height: 1px;
    background: #f6ad3c;
}

.scroll-hint {
    position: absolute;
    left: clamp(8px, 2vw, 26px);
    bottom: clamp(64px, 8vh, 82px);
    margin: 0;
    flex-direction: row;
    gap: 12px;
    color: rgba(232, 238, 252, 0.62);
}

.scroll-hint span {
    font-size: 13px;
    letter-spacing: 0.12em;
}

.scroll-hint svg {
    width: 18px;
    height: 18px;
}

.about-section {
    background: rgba(4, 18, 38, 0.28);
}

.about-wrapper {
    margin-top: clamp(34px, 5vh, 64px);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: clamp(28px, 4vw, 58px);
    align-items: center;
}

.about-image-wrapper {
    min-width: 0;
}

.about-image {
    width: 100%;
    padding: 0;
    aspect-ratio: var(--about-image-ratio, 16 / 9);
    border-radius: 14px;
    background: #061225;
    overflow: hidden;
    transform: translateY(0);
    transition: padding 0.72s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.72s ease,
                transform 0.72s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.72s ease;
}

.about-image::before {
    display: none;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transform: scale(1.08);
    filter: brightness(0.72) saturate(0.78);
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.72s ease;
}

.about-image:hover {
    padding: 18px;
    background: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 26px 70px rgba(0, 5, 18, 0.42);
}

.about-image:hover img {
    object-fit: contain;
    transform: scale(1);
    filter: none;
}

.about-content {
    padding: clamp(30px, 4vw, 52px);
    border-radius: 14px;
    background: #0a1930;
}

.about-content h3,
.contact-info-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: 0.1em;
}

.about-content h3::before,
.contact-info-title::after {
    display: none;
}

.about-content p {
    margin: 22px 0 28px;
    color: var(--text-secondary);
    font-size: clamp(17px, 1.6vw, 22px);
    line-height: 1.9;
}

.companies-section {
    background: rgba(5, 12, 37, 0.3);
}

.company-grid {
    margin-top: clamp(30px, 4.5vh, 52px);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.company-card {
    min-height: 390px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(145, 170, 220, 0.15);
    border-radius: 12px;
    background: #09172c;
    box-shadow: none;
    overflow: hidden;
}

.company-card:hover {
    transform: translateY(-7px);
    border-color: rgba(77, 124, 255, 0.5);
    background: #0d1e38;
    box-shadow: 0 20px 54px rgba(0, 4, 18, 0.34);
}

.company-card-image {
    padding: 22px;
    border-bottom: 1px solid rgba(145, 170, 220, 0.1);
    background: #eef5ff;
}

.company-card-image::after {
    display: none;
}

.company-card-image img,
.company-card-image svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    color: #4d7cff;
}

.company-card-image .company-card-placeholder {
    width: 72px;
    height: 72px;
    margin: auto;
    opacity: 0.46;
}

.company-card:hover .company-card-image img {
    transform: none;
}

.company-card-content {
    flex: 1;
    padding: 26px 24px 24px;
    display: flex;
    flex-direction: column;
}

.company-card-content h3 {
    color: #f7f9ff;
    font-size: 19px;
    line-height: 1.5;
}

.company-card-content p {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.75;
    -webkit-line-clamp: 3;
}

.company-card-content .btn-sm {
    margin-top: auto;
    align-self: flex-start;
}

.business-section {
    background: rgba(2, 17, 40, 0.3);
}

.card-grid {
    margin-top: clamp(34px, 5vh, 62px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.card,
.business-card {
    min-height: 186px;
    padding: 30px;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    border: 1px solid rgba(145, 170, 220, 0.15);
    border-radius: 12px;
    background: #0a1930;
    box-shadow: none;
}

.card:hover,
.business-card:hover {
    transform: translateY(-5px);
    border-color: rgba(77, 124, 255, 0.52);
    background: #0d1e38;
    box-shadow: 0 18px 50px rgba(0, 4, 18, 0.28);
}

.card-icon {
    width: 68px;
    height: 68px;
    margin: 0;
    padding: 9px;
    border: 1px solid rgba(111, 142, 222, 0.22);
    border-radius: 10px;
    background: #061225;
    box-shadow: none;
}

.card:hover .card-icon {
    transform: none;
}

.card-icon img,
.card-icon svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    color: #7d9eff;
}

.card-content h3 {
    color: #f7f9ff;
    font-size: 21px;
    letter-spacing: 0.02em;
}

.card-content p {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.75;
}

.contact-section {
    padding-bottom: 0;
    background: rgba(2, 9, 25, 0.36);
}

.contact-inner {
    min-height: calc(100vh - var(--navbar-height) - 38px);
    min-height: calc(100dvh - var(--navbar-height) - 38px);
}

.contact-main {
    padding-bottom: 28px;
}

.contact-wrapper {
    margin-top: clamp(24px, 3.6vh, 42px);
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
    gap: 34px;
    align-items: stretch;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.contact-card-item {
    min-height: 108px;
    padding: 18px;
    border: 1px solid rgba(145, 170, 220, 0.14);
    border-radius: 10px;
    background: #09172c;
    box-shadow: none;
}

.contact-card-item:hover {
    transform: translateY(-3px);
    border-color: rgba(77, 124, 255, 0.48);
    background: #0d1e38;
}

.contact-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 9px;
}

.contact-card-item:hover .contact-card-icon {
    transform: none;
}

.contact-card-name {
    font-size: 15px;
}

.contact-card-hint {
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 11px;
}

.media-icon-item {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(145, 170, 220, 0.16);
    border-radius: 8px;
    background: #051126;
}

.media-icon-item:hover {
    background: #10213d;
    border-color: rgba(77, 124, 255, 0.48);
}

.btn {
    min-height: 42px;
    padding: 0 22px;
    border: 1px solid rgba(115, 148, 235, 0.42);
    border-radius: 7px;
    color: #edf2ff;
    font-size: 13px;
    font-weight: 620;
    letter-spacing: 0.06em;
    background: #10244a;
    box-shadow: none;
}

.btn::before {
    display: none;
}

.btn:hover {
    transform: translateY(-2px);
    color: #ffffff;
    border-color: #6f91f4;
    background: #173364;
    box-shadow: 0 12px 28px rgba(0, 6, 24, 0.3);
}

.btn-primary {
    color: #081327;
    border-color: #f6ad3c;
    background: #f6ad3c;
}

.btn-primary:hover {
    color: #061225;
    border-color: #ffc467;
    background: #ffc467;
}

.btn-sm {
    min-height: 36px;
    padding: 0 16px;
}

.contact-footer {
    margin-top: auto;
    padding: 15px var(--container-padding);
    border-top: 1px solid rgba(145, 170, 220, 0.12);
    background: #020a18;
}

.footer-inner {
    width: min(100%, var(--container-max));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-links,
.footer-copyright,
.footer-filing {
    color: rgba(220, 229, 249, 0.5);
    font-size: 11px;
}

.modal {
    background: rgba(0, 5, 18, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-content,
.contact-modal .contact-modal-content,
.media-modal .media-modal-content,
.about-modal .about-modal-content,
.company-modal .company-modal-content {
    border: 1px solid rgba(145, 170, 220, 0.2);
    border-radius: 14px;
    background: #0a1930;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    color: rgba(240, 245, 255, 0.72);
    background: #122440;
}

.modal-close:hover {
    color: #ffffff;
    background: #1b3154;
}

.about-detail-item,
.contact-detail-row,
.media-detail-row,
.company-modal-detail-item,
.company-modal-section {
    border-color: rgba(145, 170, 220, 0.13);
}

/* 柔和入场：缩短位移、延长减速尾部，元素像被滚动带入而不是突然弹出。 */
.animate-on-scroll,
.animate-left,
.animate-right,
.animate-scale {
    opacity: 0;
    filter: none;
    transition-property: opacity, transform, filter;
    transition-duration: 1.05s;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}

.animate-on-scroll { transform: translate3d(0, 24px, 0) scale(0.992); }
.animate-left { transform: translate3d(-28px, 10px, 0) scale(0.992); }
.animate-right { transform: translate3d(28px, 10px, 0) scale(0.992); }
.animate-scale { transform: translate3d(0, 18px, 0) scale(0.965); }

.animate-on-scroll.animated,
.animate-left.animated,
.animate-right.animated,
.animate-scale.animated {
    opacity: 1;
    filter: none;
    transform: translate3d(0, 0, 0) scale(1);
}

.animate-delay-1 { transition-delay: 80ms; }
.animate-delay-2 { transition-delay: 150ms; }
.animate-delay-3 { transition-delay: 220ms; }
.animate-delay-4 { transition-delay: 290ms; }

.company-card,
.card,
.business-card,
.contact-card-item,
.btn {
    transition-duration: 0.72s;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.section > .container,
.contact-main > .container {
    transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 1120px) {
    .nav-menu {
        gap: 24px;
    }

    .company-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .company-card {
        min-height: 300px;
    }

}

@media (max-width: 860px) {
    :root {
        --navbar-height: 72px;
        --container-padding: 22px;
    }

    .navbar {
        padding: 0 20px;
        background: rgba(2, 11, 27, 0.9);
        border-bottom-color: rgba(145, 170, 220, 0.12);
    }

    .nav-brand {
        max-width: calc(100vw - 88px);
        font-size: 14px;
    }

    .nav-brand-mark {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        top: var(--navbar-height);
        left: 0;
        right: 0;
        padding: 14px 22px 22px;
        gap: 0;
        border-bottom: 1px solid rgba(145, 170, 220, 0.14);
        background: #030d20;
    }

    .nav-menu a {
        padding: 13px 4px;
    }

    .section-rail {
        display: none;
    }

    .scroll-container {
        scroll-snap-type: y proximity;
    }

    .section {
        min-height: 100svh;
        height: auto;
        padding-top: calc(var(--navbar-height) + 36px);
        overflow: visible;
    }

    .hero-section {
        min-height: 100svh;
        background-position: 62% center;
    }

    .hero-content {
        min-height: calc(100svh - var(--navbar-height) - 64px);
        padding: 34px 0 0;
        transform: none;
    }

    .hero-content h1 {
        width: min(92vw, 640px);
        font-size: clamp(48px, 11vw, 76px);
    }

    .hero-content .subtitle {
        padding-left: 0;
        font-size: 18px;
    }

    .hero-content .subtitle::before {
        display: none;
    }

    .scroll-hint {
        left: 0;
        bottom: 18px;
    }

    .about-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .company-grid,
    .card-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        gap: 22px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .nav-brand span {
        max-width: 230px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hero-content h1 {
        width: 100%;
        font-size: clamp(43px, 13vw, 62px);
        line-height: 1.13;
    }

    .hero-content .subtitle {
        max-width: 280px;
        line-height: 1.7;
    }

    .about-content,
    .card,
    .business-card {
        padding: 24px 20px;
    }

    .company-grid,
    .contact-cards-grid {
        grid-template-columns: 1fr;
    }

    .card,
    .business-card {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 18px;
    }

    .card-icon {
        width: 56px;
        height: 56px;
    }

    .footer-links {
        flex-direction: column;
    }
}

/* ==================== 第二轮动效与版式修复 ==================== */

.nav-brand-mark-inline svg,
.footer-brand-lockup .nav-brand-mark-inline svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-content .subtitle {
    isolation: isolate;
    text-shadow: 0 0 16px rgba(126, 163, 255, 0.2);
}

.hero-content .subtitle::before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: -30px;
    width: 34px;
    height: 1px;
    background: #f6ad3c;
}

.hero-title-outline {
    position: relative;
    width: max-content;
}

.hero-title-outline::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    width: max-content;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1.2px rgba(207, 226, 255, 0.98);
    text-shadow: 0 0 8px rgba(92, 142, 255, 0.92), 0 0 20px rgba(246, 173, 60, 0.58);
    clip-path: inset(0 100% 0 0);
    animation: subtitleOutlineSweep 3.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    pointer-events: none;
}

.hero-content .subtitle::after { display: none; }

@keyframes subtitleOutlineSweep {
    0%, 14% { clip-path: inset(0 100% 0 0); opacity: 0; }
    22% { opacity: 1; }
    58% { clip-path: inset(0 0 0 0); opacity: 1; }
    74%, 100% { clip-path: inset(0 0 0 100%); opacity: 0; }
}

.section > .container,
.contact-section > .contact-inner {
    transform: translate3d(0, var(--section-motion-y, 0), 0) scale(var(--section-motion-scale, 1));
    opacity: var(--section-motion-opacity, 1);
    will-change: transform, opacity;
    transition: none;
}

@media (min-width: 861px) {
    .section {
        height: 100vh;
        height: 100dvh;
        min-height: 100dvh;
    }
}

.animate-on-scroll,
.animate-left,
.animate-right,
.animate-scale {
    filter: none;
    transition-duration: 0.72s;
    transition-property: opacity, transform;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.animate-on-scroll { transform: translate3d(0, 14px, 0); }
.animate-left { transform: translate3d(-18px, 0, 0); }
.animate-right { transform: translate3d(18px, 0, 0); }
.animate-scale { transform: translate3d(0, 10px, 0) scale(0.985); }
.animate-delay-1 { transition-delay: 45ms; }
.animate-delay-2 { transition-delay: 90ms; }
.animate-delay-3 { transition-delay: 135ms; }
.animate-delay-4 { transition-delay: 180ms; }

/* Chapter content shares the backdrop clock instead of triggering a second reveal. */
.section .animate-on-scroll,
.section .animate-left,
.section .animate-right,
.section .animate-scale,
.footer-section .animate-on-scroll {
    opacity: 1;
    transform: none;
    filter: none;
    transition-delay: 0s;
    will-change: auto;
}
.section .animate-on-scroll:not(.card):not(.company-card):not(.business-card),
.section .animate-left,
.section .animate-right,
.section .animate-scale,
.footer-section .animate-on-scroll {
    transition: none;
}

.about-modal-intro {
    padding: 18px 0 24px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(145, 170, 220, 0.18);
    text-align: center;
}
.about-modal-intro h4 { margin: 0 0 12px; color: #f7f9ff; font-size: 16px; }
.about-modal-intro p { margin: 0; color: rgba(235, 241, 255, 0.78); line-height: 1.9; overflow-wrap: anywhere; }
.about-modal-intro h4, .about-modal-intro p { text-align: center; }
.contact-directory-scroll .contact-card-icon, .contact-modal .contact-detail-icon { background: #152d4d; box-shadow: none; }

.about-section .container {
    display: grid;
    align-content: center;
}

.about-wrapper {
    margin-top: clamp(24px, 3.6vh, 42px);
    width: 100%;
    max-width: none;
    padding: 0;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-areas: "visual copy";
    gap: clamp(32px, 4.5vw, 72px);
    align-items: center;
    padding-top: clamp(24px, 3vh, 36px);
    border-top: 1px solid rgba(145, 170, 220, 0.2);
}

.about-image-wrapper {
    grid-area: visual;
    display: flex;
    justify-content: center;
    padding: 0 14px 14px 0;
}

.about-content {
    grid-area: copy;
    min-width: 0;
    position: relative;
    padding: clamp(24px, 2.5vw, 36px);
    border: 1px solid #355e7d;
    border-radius: 4px 18px 4px 18px;
    background: linear-gradient(135deg, #102b43, #08182d 65%);
    box-shadow: inset 0 0 0 5px rgba(84, 177, 218, 0.035), 0 16px 38px rgba(0, 5, 18, 0.2);
}
.about-content::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(#72d9ed, #72d9ed) left top / 28px 2px no-repeat,
        linear-gradient(#72d9ed, #72d9ed) left top / 2px 28px no-repeat,
        linear-gradient(#72d9ed, #72d9ed) right bottom / 28px 2px no-repeat,
        linear-gradient(#72d9ed, #72d9ed) right bottom / 2px 28px no-repeat;
}
.about-content::after {
    content: '';
    position: absolute;
    top: -2px;
    right: 30px;
    width: 58px;
    height: 3px;
    background: #72d9ed;
    box-shadow: -9px 0 0 #102b43, -17px 0 0 #355e7d;
    pointer-events: none;
}
.about-eyebrow, .directory-eyebrow { display: block; color: #8aa3c6; font-size: 10px; font-weight: 500; letter-spacing: 0.16em; line-height: 1.6; }
.about-content h3 { margin: 12px 0 20px; font-size: clamp(24px, 2.6vw, 36px); letter-spacing: 0.04em; font-weight: 500; }
.about-introduction { max-height: clamp(110px, 24vh, 260px); overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #405577 transparent; }
.about-content .about-introduction p { margin: 0; font-size: clamp(15px, 1.25vw, 18px); line-height: 2; color: #bbc9de; overflow-wrap: anywhere; }
.about-content .about-detail-btn { margin-top: 24px; min-height: 46px; padding: 12px 22px; border: 1px solid #ffc66a; border-radius: 6px; background: #f6ad3c; color: #101d30; font-weight: 650; gap: 24px; box-shadow: 0 6px 18px rgba(246, 173, 60, 0.16); }
.about-content .about-detail-btn:hover { background: #ffc66a; color: #101d30; transform: none; }
.about-content .about-detail-btn:focus-visible { outline: 2px solid #f4f8ff; outline-offset: 4px; }

.about-image {
    padding: 0;
    width: 100%;
    height: auto;
    max-height: min(380px, 42vh);
    max-width: 100%;
    border: 1px solid rgba(199, 217, 243, 0.28);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 14px 14px 0 #102b49, 0 24px 48px rgba(0, 5, 18, 0.28);
    transition: border-color 240ms ease;
}

.about-image img,
.about-image svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: none;
    filter: none;
    border-radius: 0;
}

.about-image:hover {
    padding: 0;
    border-color: rgba(199, 217, 243, 0.55);
    background: #ffffff;
    transform: none;
    box-shadow: 14px 14px 0 #102b49, 0 24px 48px rgba(0, 5, 18, 0.28);
}

.about-image:hover img { object-fit: contain; transform: none; filter: none; }

.company-grid {
    margin-top: clamp(22px, 3vh, 34px);
}

.company-card {
    min-height: min(390px, calc(100dvh - 270px));
}

.company-card-image {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.company-card-image img,
.company-card-image svg,
.company-card:hover .company-card-image img,
.company-card:hover .company-card-image svg {
    /* Keep intrinsic image/SVG dimensions from stretching the ratio frame. */
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
    opacity: 1;
    transform: scale(var(--company-image-scale, 1));
    transform-origin: center;
    transition: none;
}

.company-image-empty { color: #8490a0; font-size: 13px; }

/* Buffered loop with side controls, no scrollbar or visible rewind. */
.company-carousel { position: relative; margin-top: clamp(20px, 3vh, 34px); min-width: 0; padding: 0 54px; }
.company-carousel .company-grid {
    position: relative; display: flex; flex-wrap: nowrap; gap: 20px; margin: 0; padding: 8px 4px;
    overflow: hidden; scroll-snap-type: none; scroll-behavior: auto; scrollbar-width: none;
    touch-action: pan-y pinch-zoom; cursor: grab;
}
.company-carousel .company-grid::-webkit-scrollbar { display: none; width: 0; height: 0; }
.company-carousel .company-card {
    flex: 0 0 calc((100% - 40px) / 3); min-width: 0; scroll-snap-align: start; opacity: 1;
    transition: border-color 180ms ease;
}
.company-carousel .company-card:hover { transform: none; box-shadow: none; }
.company-carousel .company-card-image { flex-shrink: 0; }
.company-carousel .company-card-content { min-height: 0; }
.company-carousel .company-card-content h3 { overflow-wrap: anywhere; }
.company-carousel .company-grid.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.company-carousel-position { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.company-carousel > .company-prev, .company-carousel > .company-next { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 1px solid #47698e; border-radius: 50%; background: #132b46; color: #edf5ff; font-size: 21px; cursor: pointer; z-index: 2; }
.company-carousel > .company-prev { left: 0; }
.company-carousel > .company-next { right: 0; }
.company-carousel > button:hover:not(:disabled) { background: #254a70; }
.company-carousel > button:disabled { opacity: .35; cursor: default; }
.company-carousel button:focus-visible, .company-carousel .company-grid:focus-visible { outline: 2px solid #f6ad3c; outline-offset: 2px; }
.has-touch-pages > .companies-section { touch-action: pan-x pan-y pinch-zoom; }
@media (max-width: 1120px) {
    .company-carousel .company-card { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 600px) {
    .company-carousel .company-card { flex-basis: 100%; }
}
@media (max-width: 520px) {
    .company-carousel .company-grid { gap: 14px; }
    .company-carousel { padding: 0 32px; }
    .company-carousel > .company-prev, .company-carousel > .company-next { width: 40px; height: 44px; }
    .company-carousel > .company-prev { left: -10px; }
    .company-carousel > .company-next { right: -10px; }
}

.business-section,
.contact-section {
    padding-top: calc(var(--navbar-height) + 22px);
    padding-bottom: 22px;
    scroll-snap-align: start;
}

.business-section > .container,
.contact-main > .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Six services in two desktop rows; complete descriptions open in a dialog. */
.business-heading { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid #304760; }
.business-heading > div:first-child { min-width: 0; }
.business-heading .section-subtitle { margin-bottom: 0; }
.business-total { display: flex; flex-shrink: 0; align-items: center; gap: 18px; padding-left: 24px; border-left: 1px solid #304760; }
.business-total span { color: #a9bbd3; font-size: 12px; letter-spacing: .12em; }
.business-total strong { color: #e4efff; font-size: clamp(32px, 3.4vw, 48px); font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.business-directory {
    flex: 1; min-height: 0; overflow: hidden; padding: 3px;
}
.business-section .card-grid {
    display: grid; width: 100%; height: 100%; max-height: 560px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 1.8vh, 20px); margin: 0;
}
.business-section .business-card {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto; align-items: start;
    gap: 12px; min-width: 0; min-height: 0; height: 100%;
    padding: clamp(16px, 2vh, 24px);
    border: 1px solid #34506e; border-radius: 12px;
    background: #0b1e35; box-shadow: inset 3px 0 0 #426b90;
    transition: border-color 180ms ease;
}
.business-section .business-card:hover {
    transform: none; border-color: #80bace;
    background: #102940; box-shadow: inset 3px 0 0 #80bace;
}
.business-card-heading {
    display: flex; align-items: center; gap: 12px;
    padding-right: 28px; min-width: 0;
}
.business-section .card-icon {
    width: 44px; height: 44px; flex: 0 0 44px; margin: 0; padding: 0;
    border: 1px solid #3a5b7b; border-radius: 10px; background: #193750; box-shadow: none;
}
.business-section .card-icon img, .business-section .card-icon svg {
    width: 100%; height: 100%; object-fit: contain; border-radius: 9px; color: #a3d5e8;
}
.business-section .card:hover .card-icon { transform: none; }
.business-card-number {
    position: absolute; right: 16px; top: 16px;
    color: #89a7c5; font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: .08em;
}
.business-card-heading h3 {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    margin: 0; min-width: 0; overflow: hidden; overflow-wrap: anywhere;
    color: #f0f5ff; font-size: clamp(16px, 1.45vw, 21px); line-height: 1.45; font-weight: 600;
}
.business-section .business-summary {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
    margin: 0; min-height: 0; overflow: hidden; overflow-wrap: anywhere;
    color: #b5c6da; font-size: 13px; line-height: 1.7; white-space: pre-line;
}
.business-detail-btn {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 24px;
    justify-self: start; align-self: end; min-height: 32px; padding: 6px 12px;
    border: 1px solid #4a7596; border-radius: 6px; background: #234868;
    color: #f4f8ff; font-size: 12px; line-height: 1.5; font-family: inherit; cursor: pointer;
}
.business-detail-btn:hover { background: #315e7e; }
.business-detail-btn:focus-visible { outline: 2px solid #f6ad3c; outline-offset: 3px; }
.business-directory .no-data {
    grid-column: 1 / -1; grid-row: 1 / -1; display: grid; place-items: center;
    margin: 0; border: 1px dashed #35516f; border-radius: 12px; color: #9db4ce;
}
.business-modal-content { max-width: 640px; text-align: left; }
.business-modal-content h3 { padding-right: 28px; overflow-wrap: anywhere; }
.business-modal-content p { margin-top: 22px; color: #b5c6da; line-height: 1.9; white-space: pre-line; overflow-wrap: anywhere; }
.business-modal-content .modal-close { border: 0; background: none; }
@media (min-width: 1025px) and (max-height: 740px) {
    .business-heading { padding-bottom: 12px; margin-bottom: 12px; }
    .business-heading .section-title { font-size: 34px; margin-bottom: 8px; }
    .business-heading .section-subtitle { font-size: 13px; }
    .business-section .business-card { padding: 14px; gap: 9px; }
    .business-section .card-icon { width: 36px; height: 36px; flex-basis: 36px; }
    .business-section .business-summary { -webkit-line-clamp: 2; font-size: 12px; line-height: 1.6; }
}
@media (min-width: 1025px) and (max-height: 600px) {
    .business-heading .section-index { display: none; }
    .business-heading .section-title { font-size: 28px; }
    .business-heading .section-subtitle { display: none; }
    .business-section .business-card { padding: 12px; gap: 6px; }
    .business-card-heading h3 { -webkit-line-clamp: 1; font-size: 15px; }
    .business-section .business-summary { -webkit-line-clamp: 1; }
}
@media (max-width: 1024px), (pointer: coarse) {
    .business-section .card-grid { height: auto; max-height: none; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
    .business-section .business-card { height: auto; min-height: 190px; }
    .business-section .business-summary { display: block; -webkit-line-clamp: unset; overflow: visible; }
}
@media (max-width: 640px) {
    .business-section .card-grid { grid-template-columns: 1fr; }
    .business-total { flex-direction: column-reverse; gap: 8px; padding-left: 14px; }
    .business-total span { font-size: 10px; }
}

.contact-inner,
.contact-main {
    min-height: 0;
    height: 100%;
}

.contact-main { padding: 0; }

.contact-wrapper {
    flex: 1;
    min-height: 0;
    margin-top: clamp(14px, 2vh, 22px);
    gap: 24px;
}

.contact-info {
    min-height: 0;
}

.contact-card-item {
    min-height: 82px;
    padding: 13px 15px;
}

.contact-cards-grid:has(.contact-card-item:nth-child(5)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Two expandable contact directories. */
.contact-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-shrink: 0; }
.contact-section .contact-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-height: 560px; }
.contact-wrapper > .contact-info, .contact-wrapper > .contact-platforms { display: flex; flex-direction: column; min-width: 0; min-height: 0; margin: 0; padding: clamp(18px, 2vw, 28px); border: 1px solid rgba(145, 170, 220, 0.2); border-radius: 16px; background: rgba(6, 20, 39, 0.82); }
.contact-directory-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-shrink: 0; padding-bottom: 20px; margin-bottom: 16px; border-bottom: 1px solid #243955; }
.contact-directory-heading .contact-info-title { display: block; margin: 6px 0 0; color: #edf3ff; font-size: clamp(18px, 1.6vw, 23px); font-weight: 500; }
.directory-count { color: #6f89af; font-size: 26px; font-weight: 300; font-variant-numeric: tabular-nums; }
.contact-directory-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 3px; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #405577 transparent; }
.contact-directory-scroll .contact-cards-grid, .contact-directory-scroll .video-platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 12px; }
.contact-directory-scroll .contact-card-item { width: 100%; min-width: 0; min-height: 100px; padding: 16px; flex-wrap: wrap; align-content: center; text-align: left; color: inherit; font-family: inherit; border-radius: 10px; transition: background-color 180ms ease, border-color 180ms ease; }
.contact-directory-scroll .contact-card-item:hover { transform: none; box-shadow: none; }
.contact-card-content { min-width: 0; overflow-wrap: anywhere; }
.contact-card-item::before { display: none; }
.contact-card-item:focus-visible, [data-directory-scroll]:focus-visible { outline: 2px solid #f6ad3c; outline-offset: 2px; }
.video-platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.contact-platforms .video-platform-card {
    display: flex; align-items: center; justify-content: flex-start; gap: 12px;
    width: 100%; height: auto; min-height: 70px; padding: 12px 14px;
    color: #e4edfc; font-family: inherit; text-align: left;
    border: 1px solid #293d5e; border-radius: 10px; background: #0a1c34;
    transition: background-color 180ms ease, border-color 180ms ease;
}
.video-platform-card:only-child { grid-column: 1 / -1; }
.contact-platforms .video-platform-card:hover { background: #122a49; border-color: #6c8cbe; box-shadow: none; transform: none; }
.video-platform-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 9px; background: #152d4d; }
.video-platform-icon svg { width: 23px; height: 23px; }
.video-platform-copy { display: grid; gap: 3px; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.video-platform-copy strong { font-size: 13px; font-weight: 600; line-height: 1.5; }
.video-platform-copy > span { font-size: 11px; color: #95a9c7; line-height: 1.5; }
.video-platform-action { color: #a9bee0; font-size: 10px; white-space: nowrap; }
.contact-platforms-empty { margin: 0; color: #91a4c1; font-size: 12px; line-height: 1.8; }
.video-platform-card:focus-visible { outline: 2px solid #f6ad3c; outline-offset: 3px; }
.contact-directory-scroll .video-platform-card { min-height: 100px; flex-wrap: wrap; padding: 16px; }
.contact-directory-scroll .video-platform-card:only-child { grid-column: auto; }
.video-platform-action { display: none; }
.has-touch-pages .contact-directory-scroll, .has-touch-pages .about-introduction { flex: none; max-height: none; height: auto; overflow: visible; }
.has-touch-pages .contact-section .contact-wrapper { max-height: none; }
@media (min-width: 861px) and (max-width: 1200px) {
    .contact-directory-scroll .contact-cards-grid, .contact-directory-scroll .video-platform-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .contact-section .contact-wrapper { grid-template-columns: 1fr; max-height: none; }
    .contact-directory-scroll { flex: none; height: auto; overflow: visible; }
}
@media (max-width: 520px) {
    .contact-directory-scroll .contact-cards-grid, .contact-directory-scroll .video-platform-grid { grid-template-columns: 1fr; }
    .contact-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
    .contact-directory-scroll .contact-card-item, .contact-directory-scroll .video-platform-card { min-height: 84px; }
}

/* Two footer rows: links/certifications above, brand/copyright below. */
.footer-section {
    padding: 24px var(--container-padding) max(24px, env(safe-area-inset-bottom));
    height: auto; min-height: 0; scroll-snap-align: end;
    background: #030d1c; border-top: 1px solid rgba(145, 170, 220, 0.14);
}
.footer-section .contact-footer { width: 100%; height: auto; margin: 0; padding: 0; display: block; border: 0; background: transparent; }
.footer-section .footer-shell { margin: 0 auto; padding: 0; }
.footer-top-row { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px 36px; }
.footer-top-row > * { min-width: 0; max-width: 100%; }
.footer-links-row { display: flex; align-items: baseline; gap: 20px; }
.footer-column-title { flex-shrink: 0; color: #6f85a7; font-size: 11px; letter-spacing: 0.08em; }
.footer-section .footer-links-list { display: flex; justify-content: flex-start; flex-wrap: wrap; margin: 0; gap: 8px 20px; }
.footer-section .footer-links-list a,
.footer-link-text { padding: 0; color: #acbdd6; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; text-decoration: none; }
.footer-section .footer-links-list a:hover { color: #f6ad3c; background: transparent; }
.footer-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 24px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(145, 170, 220, 0.1); }
.footer-meta:only-child { margin-top: 0; padding-top: 0; border-top: 0; }
.footer-brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: #d5e0f0; font-size: 14px; letter-spacing: 0.04em; overflow-wrap: anywhere; }
.footer-brand .nav-brand-mark { width: 34px; height: 34px; flex: 0 0 34px; object-fit: contain; }
.footer-brand .nav-brand-mark-inline svg { width: 100%; height: 100%; }
.footer-section .footer-copyright { min-width: 0; margin-left: auto; text-align: right; }
.footer-section .footer-copyright p { margin: 0; color: #879bb9; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.footer-section .footer-filing { justify-content: flex-start; margin: 0; padding: 0; border: 0; gap: 6px 16px; }
.footer-section .footer-filing-item { padding: 3px 0; border: 0; border-radius: 0; background: none; color: #879bb9; font-family: inherit; font-size: 11px; line-height: 1.8; text-align: left; overflow-wrap: anywhere; }
.footer-section a.footer-filing-item:hover,
.footer-section button.footer-filing-item:hover { color: #d6e3fa; background: none; }
.footer-section span.footer-filing-item { cursor: default; }
.footer-section a:focus-visible,
.footer-section button:focus-visible { outline: 2px solid #f6ad3c; outline-offset: 4px; }
@media (max-width: 520px) {
    .footer-section { padding: 22px 22px max(22px, env(safe-area-inset-bottom)); }
    .footer-links-row { align-items: flex-start; flex-direction: column; gap: 8px; }
    .footer-meta { align-items: flex-start; flex-direction: column; gap: 8px; margin-top: 14px; padding-top: 14px; }
    .footer-brand { font-size: 12px; gap: 10px; }
    .footer-section .footer-copyright { width: 100%; text-align: right; }
    .footer-section .footer-links-list a,
    .footer-section button.footer-filing-item,
    .footer-section a.footer-filing-item { display: inline-flex; align-items: center; min-height: 36px; }
}

@media (max-width: 860px) {
    .section > .container,
.contact-section > .contact-inner {
        transform: none;
        opacity: 1;
    }

    .about-wrapper { grid-template-columns: 1fr; grid-template-areas: "visual" "copy"; }
    .about-image-wrapper { padding: 0 10px 10px 0; }
    .about-image, .about-image:hover { width: 100%; height: auto; max-height: none; box-shadow: 10px 10px 0 #102b49, 0 18px 36px rgba(0, 5, 18, 0.24); }
    .about-content { padding: 24px; }
    .about-introduction { max-height: none; overflow: visible; }
    .contact-inner, .contact-main { height: auto; }
}

/* Touch chapters keep native momentum inside the viewport, without scroll chaining. */
@media (max-width: 1024px), (pointer: coarse) {
    .scroll-container.has-touch-pages {
        height: 100vh;
        height: 100dvh;
        overflow-y: hidden;
        scroll-snap-type: none;
        overscroll-behavior-y: none;
    }
    .scroll-container.has-touch-pages > .section {
        display: block;
        height: 100%;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        touch-action: pan-y pinch-zoom;
        -webkit-overflow-scrolling: touch;
        padding-bottom: max(32px, env(safe-area-inset-bottom));
    }
    .has-touch-pages .section > .container,
    .has-touch-pages .contact-inner,
    .has-touch-pages .contact-main,
    .has-touch-pages .contact-main > .container {
        display: block;
        height: auto;
        min-height: 0;
        transform: none;
        opacity: 1;
    }
    .has-touch-pages .hero-content {
        height: auto;
        min-height: 0;
        transform: none;
        padding-top: 34px;
        padding-bottom: 60px;
    }
    .has-touch-pages .business-directory { flex: none; height: auto; overflow: visible; padding-right: 3px; }
    .has-touch-pages > .footer-section {
        max-height: 100%;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        touch-action: pan-y pinch-zoom;
    }
    .has-touch-pages textarea { overscroll-behavior-y: contain; }
}

/* Floating corporate masthead, independently sized from chapter padding. */
.navbar {
    position: fixed; top: 12px; left: 50%; right: auto; transform: translateX(-50%);
    width: min(calc(100% - 48px), 1320px); height: 72px; padding: 0 18px;
    gap: 24px; border: 1px solid #29415f; border-radius: 16px;
    background: #09192d; backdrop-filter: none; -webkit-backdrop-filter: none;
    box-shadow: 0 12px 32px rgba(0, 5, 17, .26); transition: border-color 180ms ease, box-shadow 180ms ease;
}
.navbar.scrolled { background: #09192d; border-color: #3a5473; box-shadow: 0 14px 36px rgba(0, 5, 17, .36); }
.navbar .nav-brand { flex: 1; min-width: 0; max-width: none; gap: 13px; font-size: 17px; font-weight: 600; letter-spacing: .04em; }
.navbar .nav-brand-emblem { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; padding: 4px; border-radius: 12px; border: 1px solid #355270; background: #152c45; }
.navbar .nav-brand-mark { width: 36px; height: 36px; flex-basis: 36px; }
.navbar .nav-brand-name { min-width: 0; max-width: none; overflow: visible; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.navbar .nav-menu { position: static; display: flex; flex-direction: row; flex-shrink: 0; align-items: center; gap: 5px; margin: 0; padding: 5px; border: 1px solid #233a55; border-radius: 12px; background: #061324; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
.navbar .nav-menu a { display: block; padding: 11px 16px; border-radius: 8px; color: #acbed5; font-size: 13px; font-weight: 500; line-height: 1.6; letter-spacing: .04em; transition: background-color 160ms ease, color 160ms ease; }
.navbar .nav-menu a::after { display: none; }
.navbar .nav-menu a:hover { background: #162e49; color: #ffffff; }
.navbar .nav-menu a.active, .navbar .nav-menu a[aria-current="page"] { background: #213e5e; color: #ffffff; box-shadow: inset 0 -2px 0 #7ad5e4; }
.navbar .nav-toggle { display: none; flex: 0 0 44px; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid #355270; border-radius: 10px; background: #152c45; gap: 5px; }
.navbar .nav-toggle span { width: 20px; height: 2px; }
.navbar .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar .nav-toggle.active span:nth-child(2) { opacity: 0; }
.navbar .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.navbar a:focus-visible, .navbar button:focus-visible { outline: 2px solid #f6ad3c; outline-offset: 3px; }
@media (max-width: 1100px) {
    .navbar .nav-toggle { display: flex; }
    .navbar .nav-menu { position: absolute; top: calc(100% + 10px); left: 0; right: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px; border: 1px solid #355270; border-radius: 14px; background: #0b1d33; max-height: calc(100dvh - 110px); overflow-y: auto; overscroll-behavior: contain; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px); transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease; }
    .navbar .nav-menu.active { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
    .navbar .nav-menu li:last-child { grid-column: 1 / -1; }
    .navbar .nav-menu a { min-height: 44px; padding: 12px 16px; background: #112b46; }
}
@media (max-width: 860px) {
    .navbar { top: 8px; width: calc(100% - 24px); height: 60px; padding: 0 10px; gap: 10px; border-radius: 12px; }
    .navbar .nav-brand { gap: 9px; font-size: 13px; letter-spacing: .02em; }
    .navbar .nav-brand-emblem { width: 38px; height: 38px; flex-basis: 38px; padding: 3px; border-radius: 9px; }
    .navbar .nav-brand-mark { width: 30px; height: 30px; flex-basis: 30px; }
    .navbar .nav-menu { max-height: calc(100dvh - 88px); }
}

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