/* Cygnus public site styles. Layered on top of Bootstrap 5. */

:root {
    --cyg-orange: #f57c20;
    --cyg-orange-dark: #dd6b12;
    --cyg-navy: #3a3a3a;
    --cyg-navy-dark: #2c2c2c;
    --cyg-ink: #2f2f2f;
    --cyg-muted: #6b6b6b;
    --cyg-line: #e6e6e6;
    --cyg-surface: #f7f7f7;
    --cyg-nav-height: 4.5rem;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    color: var(--cyg-ink);
    font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

a {
    text-decoration: none;
}

.text-accent {
    color: var(--cyg-orange) !important;
}

.btn-accent {
    background-color: var(--cyg-orange);
    border-color: var(--cyg-orange);
    color: #fff;
}

.btn-accent:hover,
.btn-accent:focus {
    background-color: var(--cyg-orange-dark);
    border-color: var(--cyg-orange-dark);
    color: #fff;
}

.btn-outline-primary {
    --bs-btn-color: var(--cyg-ink);
    --bs-btn-border-color: var(--cyg-ink);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--cyg-orange);
    --bs-btn-hover-border-color: var(--cyg-orange);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--cyg-orange);
    --bs-btn-active-border-color: var(--cyg-orange);
}

.btn-primary {
    --bs-btn-bg: var(--cyg-orange);
    --bs-btn-border-color: var(--cyg-orange);
    --bs-btn-hover-bg: var(--cyg-orange-dark);
    --bs-btn-hover-border-color: var(--cyg-orange-dark);
    --bs-btn-active-bg: var(--cyg-orange-dark);
    --bs-btn-active-border-color: var(--cyg-orange-dark);
}

.btn-outline-light-accent {
    border: 1px solid rgba(255, 255, 255, 0.75);
    color: #fff;
}

.btn-outline-light-accent:hover {
    background-color: var(--cyg-orange);
    border-color: var(--cyg-orange);
    color: #fff;
}

/* ---------------------------------------------------------------- Navbar */

.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1040;
    background-color: #fff;
    border-bottom: 1px solid var(--cyg-line);
}

.site-header .navbar {
    min-height: var(--cyg-nav-height);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.site-logo {
    height: 2.25rem;
    width: auto;
    display: block;
}

.site-logo-light {
    display: none;
}

.site-logo-dark {
    display: block;
}

.site-header .dropdown-item-sub {
    padding-left: 1.85rem;
    font-size: 0.92rem;
    color: var(--cyg-muted);
}

.site-header .navbar-nav .nav-item {
    margin-left: 0.35rem;
    margin-right: 0.35rem;
}

.site-header .nav-link {
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.5rem 1.25rem;
    transition: color 0.2s ease;
    color: var(--cyg-ink);
}

.site-header .navbar-brand {
    color: var(--cyg-ink);
}

.site-header .nav-link:hover,
.site-header .nav-link:focus,
.site-header .nav-link.active {
    color: var(--cyg-orange);
}

.site-header .dropdown-item {
    font-weight: 500;
    padding: 0.55rem 1.1rem;
}

.site-header .dropdown-item:hover,
.site-header .dropdown-item:focus,
.site-header .dropdown-item.active {
    background-color: rgba(245, 124, 32, 0.1);
    color: var(--cyg-orange);
}

.site-header .dropdown-menu {
    border: 1px solid var(--cyg-line);
    border-radius: 0.5rem;
    box-shadow: 0 0.75rem 1.75rem rgba(44, 44, 44, 0.12);
    padding: 0.4rem 0;
    margin-top: 0.35rem;
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 1.25rem;
}

.nav-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--cyg-line);
    border-radius: 2rem;
    overflow: hidden;
    background: #fff;
}

.nav-search input {
    border: 0;
    outline: none;
    width: 8.5rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

.nav-search button {
    border: 0;
    background: transparent;
    color: var(--cyg-muted);
    padding: 0.35rem 0.7rem;
}

.nav-search button:hover {
    color: var(--cyg-orange);
}

.nav-contact {
    white-space: nowrap;
    padding: 0.35rem 0.95rem;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.nav-globe {
    color: var(--cyg-ink);
    font-size: 1.25rem;
    line-height: 1;
}

.nav-globe:hover {
    color: var(--cyg-orange);
}

/* Collapsed mobile menu always needs a readable background. */
@media (max-width: 991.98px) {
    .site-header .navbar-collapse {
        background-color: #fff;
        border: 1px solid var(--cyg-line);
        border-radius: 0.5rem;
        margin-top: 0.5rem;
        padding: 0.75rem;
        box-shadow: 0 0.75rem 1.75rem rgba(44, 44, 44, 0.12);
    }

    .site-header .dropdown-menu {
        border: 0;
        box-shadow: none;
        padding-left: 0.75rem;
    }

    .nav-tools {
        flex-wrap: wrap;
        margin: 0.75rem 0 0;
        padding-top: 0.75rem;
        border-top: 1px solid var(--cyg-line);
    }

    .nav-search input {
        width: 100%;
    }
}

/* ----------------------------------------------------------------- Hero */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
}

.hero-home {
    min-height: clamp(30rem, 82vh, 46rem);
    overflow: hidden;
}

.hero-home picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-home-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (orientation: portrait) {
    .hero-home {
        min-height: 0;
    }

    .hero-home picture {
        height: auto;
    }

    .hero-home-image {
        position: static;
        height: auto;
    }

    .hero-home-content {
        justify-content: center;
        text-align: center;
        padding-bottom: 14%;
    }

    .hero-home-cta {
        background-color: #fff;
        border-color: #fff;
        color: var(--cyg-orange);
    }

    .hero-home-cta:hover,
    .hero-home-cta:focus {
        background-color: var(--cyg-surface);
        border-color: var(--cyg-surface);
        color: var(--cyg-orange-dark);
    }
}

.page-home .hero-home::after {
    display: none;
}

.hero-home-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    padding-bottom: 14%;
}

.hero-home-cta {
    box-shadow: 0 0.35rem 1rem rgba(44, 44, 44, 0.16);
}

#home-products {
    scroll-margin-top: var(--cyg-nav-height);
}

.hero-page {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 2.8 / 1;
    min-height: 0;
    overflow: hidden;
    color: #fff;
}

.hero-page.hero-half {
    aspect-ratio: 5.6 / 1;
}

.hero-page.hero-third {
    aspect-ratio: 8.4 / 1;
}

.hero-page.hero-half .hero-title,
.hero-page.hero-third .hero-title {
    font-size: clamp(1.35rem, 2.6vw, 2.1rem);
    margin-bottom: 0.35rem;
}

.hero-page.hero-half .hero-subtitle,
.hero-page.hero-third .hero-subtitle,
.hero-page.hero-half .hero-overview,
.hero-page.hero-third .hero-overview {
    font-size: 0.92rem;
}

.hero-page-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-page-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
}

.hero-page-content .container {
    width: 100%;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(44, 44, 44, 0.38) 0%, rgba(44, 44, 44, 0.18) 55%, rgba(44, 44, 44, 0.06) 100%);
}

.hero-overlay-light::after {
    background: linear-gradient(90deg, rgba(44, 44, 44, 0.18) 0%, rgba(44, 44, 44, 0.08) 55%, rgba(44, 44, 44, 0.03) 100%);
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffb066;
    margin-bottom: 0.75rem;
}

.hero-title {
    font-weight: 700;
    line-height: 1.15;
    font-size: clamp(1.9rem, 4.4vw, 3.4rem);
}

.hero-page .hero-title {
    font-size: clamp(1.7rem, 3.4vw, 2.75rem);
}

.hero-subtitle {
    max-width: 42rem;
    font-size: clamp(0.98rem, 1.3vw, 1.15rem);
    color: rgba(255, 255, 255, 0.88);
}

.hero-lead {
    max-width: 42rem;
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    font-weight: 600;
    color: #fff;
}

.hero-overview {
    max-width: 48rem;
    font-size: clamp(0.88rem, 1.1vw, 1rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
}

/* -------------------------------------------------------------- Sections */

.section {
    padding: clamp(3rem, 6vw, 5.5rem) 0;
}

.section-tight {
    padding: clamp(2.25rem, 4vw, 3.5rem) 0;
}

.section-alt {
    background-color: var(--cyg-surface);
}

.section-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.home-focus-band {
    background-image: url("../images/bgFocusArea.PNG");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-honors-band {
    background-image: url("../images/bgQualification.PNG");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-honors-band .about-content {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.band-res-pub {
    background-image: url("../images/bgResPub.PNG");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.news-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    margin-top: 2.25rem;
}

.news-pagination a,
.news-pagination span {
    min-width: 2.35rem;
    height: 2.35rem;
    padding: 0 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cyg-line);
    border-radius: 0.4rem;
    color: var(--cyg-ink);
    font-weight: 600;
    font-size: 0.92rem;
    background: #fff;
}

.news-pagination a:hover {
    border-color: var(--cyg-orange);
    color: var(--cyg-orange);
}

.news-pagination .is-current {
    background-color: var(--cyg-orange);
    border-color: var(--cyg-orange);
    color: #fff;
}

.news-pagination .is-disabled {
    color: var(--cyg-muted);
    pointer-events: none;
}

.section-title {
    font-weight: 700;
    font-size: clamp(1.5rem, 2.6vw, 2.15rem);
    margin-bottom: 0.75rem;
}

.section-title::after {
    content: "";
    display: block;
    width: 3rem;
    height: 3px;
    background-color: var(--cyg-orange);
    border-radius: 2px;
    margin: 0.9rem auto 0;
}

.section-title.text-start::after {
    margin-left: 0;
}

.section-intro {
    color: var(--cyg-muted);
    max-width: 46rem;
    margin: 0 auto 2.5rem;
}

/* ---------------------------------------------------------------- Cards */

/* Icon + text tile used for highlights and advantages. */
.feature-tile {
    height: 100%;
    min-height: 14rem;
    padding: 2rem 1.5rem;
    background-color: #fff;
    border: 1px solid var(--cyg-line);
    border-radius: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 124, 32, 0.45);
    box-shadow: 0 0.75rem 1.75rem rgba(15, 40, 65, 0.1);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: rgba(245, 124, 32, 0.12);
    color: var(--cyg-orange);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.feature-icon.has-image {
    overflow: hidden;
    padding: 0;
    background-color: transparent;
}

.feature-icon.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-home .feature-icon.has-image {
    width: 5.25rem;
    height: 5.25rem;
}

.product-highlights .feature-icon {
    width: 6rem;
    height: 6rem;
    padding: 0;
    overflow: hidden;
    background-color: transparent;
}

.product-highlights .feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-tile h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.feature-tile p {
    color: var(--cyg-muted);
    font-size: 0.94rem;
    margin-bottom: 0;
}

.feature-tile-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.feature-tile-link:hover,
.feature-tile-link:focus {
    color: inherit;
}

/* Image + text card that scales slightly on hover. */
.media-card {
    display: block;
    height: 100%;
    background-color: #fff;
    border: 1px solid var(--cyg-line);
    border-radius: 0.75rem;
    overflow: hidden;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.media-card:hover {
    transform: scale(1.03);
    box-shadow: 0 1rem 2rem rgba(15, 40, 65, 0.14);
    color: inherit;
}

.media-card-figure {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #eef3f8;
}

.media-card-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.publication-cover {
    aspect-ratio: 3 / 4;
    background-color: #f1f1f1;
}

.publication-cover img {
    object-fit: contain;
}

.publication-card .media-card-body {
    padding: 1rem;
}

.publication-card .media-card-body h3 {
    font-size: 0.95rem;
    line-height: 1.45;
}

.media-card-body {
    padding: 1.15rem 1.25rem 1.35rem;
}

.media-card-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.media-card-body p {
    color: var(--cyg-muted);
    font-size: 0.92rem;
    margin-bottom: 0;
}

.media-card-meta {
    font-size: 0.8rem;
    color: var(--cyg-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --------------------------------------------------------- Content blocks */

.split-figure img,
.split-figure .about-home-video {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    display: block;
}

.split-figure .about-home-video {
    aspect-ratio: 16 / 9;
    min-height: 18rem;
    object-fit: cover;
    background-color: #111;
}

.lead-paragraph {
    color: var(--cyg-muted);
    font-size: 1.02rem;
    line-height: 1.85;
}

/* Homepage About stats: size cards to content so longer figures stay on one line. */
.home-about-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    column-gap: 1.5rem;
    row-gap: 0.75rem;
    margin-top: 0.5rem;
}

.home-about-stat .fw-bold {
    white-space: nowrap;
}

.home-about-stat-wide {
    flex: 1 1 9.5rem;
    min-width: 9.5rem;
}

.key-point {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    color: var(--cyg-ink);
    font-size: 0.95rem;
    margin-bottom: 0.65rem;
}

.key-point i {
    color: var(--cyg-orange);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.app-block {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    border-bottom: 1px solid var(--cyg-line);
}

.app-block:last-child {
    border-bottom: 0;
}

.app-block-index {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cyg-orange);
}

/* Quote blocks: intentionally sparse text. */
.quote-block {
    background-color: #fff;
    border-left: 4px solid var(--cyg-orange);
    border-radius: 0.5rem;
    padding: clamp(1.75rem, 3vw, 2.75rem);
    box-shadow: 0 0.5rem 1.5rem rgba(15, 40, 65, 0.06);
}

.quote-block p {
    font-size: clamp(0.92rem, 1.15vw, 1.05rem);
    line-height: 1.7;
    color: var(--cyg-ink);
    margin-bottom: 1.25rem;
}

.quote-photo {
    width: 4.25rem;
    height: 4.25rem;
    object-fit: cover;
    border-radius: 50%;
    flex: 0 0 auto;
}

.quote-person {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.quote-author {
    font-weight: 600;
    color: var(--cyg-navy);
}

.quote-org {
    color: var(--cyg-muted);
    font-size: 0.9rem;
}

/* ---------------------------------------------------------------- Tables */

.spec-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

.spec-table th,
.spec-table td {
    border: 1px solid var(--cyg-line);
    padding: 0.8rem 1rem;
    font-size: 0.94rem;
    vertical-align: top;
}

.spec-table thead th {
    background-color: var(--cyg-navy);
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.spec-table tbody tr:nth-child(even) {
    background-color: #f7fafc;
}

.spec-table td[rowspan] {
    vertical-align: middle;
}

.spec-table-kv tbody td:first-child {
    font-weight: 600;
}

.table-scroll {
    overflow-x: auto;
    border-radius: 0.5rem;
}

.product-highlights {
    background-size: cover;
    background-position: center;
    position: relative;
}

.product-highlights::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(247, 247, 247, 0.78);
}

.product-highlights > .container {
    position: relative;
    z-index: 1;
}

.product-spec-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.product-spec-image.is-compact {
    width: auto;
    max-width: 12.5rem;
    max-height: 20rem;
    margin-inline: auto;
}

.product-spec-image.gp-spec-image {
    max-width: 22rem;
    max-height: 34rem;
}

.gp-spec-table .spec-table-kv td {
    font-size: 1.12rem;
    padding: 1.2rem 1.3rem;
    line-height: 1.7;
}

.spec-table-notes {
    margin-top: 0.85rem;
}

.spec-table-notes p {
    margin: 0 0 0.35rem;
    color: var(--cyg-muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.product-ordering {
    padding-top: 0;
}

.product-ordering-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.product-ordering-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(44, 44, 44, 0.38);
}

.product-ordering-banner .container {
    position: relative;
    z-index: 1;
}

.product-ordering-banner .section-title {
    color: #fff;
    margin-bottom: 0;
}

/* ------------------------------------------------------ Detail page layout */

.side-nav {
    position: sticky;
    top: 1.5rem;
    border: 1px solid var(--cyg-line);
    border-radius: 0.75rem;
    background-color: #fff;
    padding: 1rem;
}

.side-nav-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--cyg-muted);
    margin: 0.35rem 0.5rem 0.6rem;
}

.side-nav .nav-link {
    color: var(--cyg-ink);
    border-radius: 0.375rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.93rem;
}

.side-nav .nav-link:hover,
.side-nav .nav-link.active {
    background-color: rgba(245, 124, 32, 0.1);
    color: var(--cyg-orange);
}

.side-nav-children {
    list-style: none;
    padding-left: 0.85rem;
    margin: 0 0 0.45rem;
}

.side-nav-children .nav-link {
    font-size: 0.85rem;
    padding: 0.28rem 0.75rem;
    color: var(--cyg-muted);
}

.article-body h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    scroll-margin-top: 1.5rem;
}

.article-body h3 {
    font-size: 1.12rem;
    font-weight: 650;
    margin: 1.35rem 0 0.7rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* Keep in-body figures from dominating the reading column. */
.article-body figure img {
    max-height: 22rem;
    width: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.article-body .x1-figure img {
    max-height: none;
    width: 100%;
}

.x1-highlights-title {
    font-size: 1.12rem;
    font-weight: 650;
    margin: 1.75rem 0 0;
}

.about-value-icon-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyg-orange);
    font-size: 1.55rem;
}

.workflow-steps {
    list-style: none;
    padding-left: 0;
    margin: 0.75rem 0 1.25rem;
}

.workflow-steps > li {
    margin-bottom: 0.85rem;
}

.workflow-steps p {
    margin: 0.35rem 0 0;
    color: var(--cyg-muted);
}

.workflow-children {
    margin-top: 0.55rem;
    padding-left: 1rem;
    border-left: 2px solid var(--cyg-line);
}

.related-resources-rule {
    border: 0;
    border-top: 1px solid #c5ccd4;
    margin: 2.5rem 0 1.75rem;
}

.publication-scroller {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.85rem;
    scrollbar-color: var(--cyg-orange) rgba(15, 40, 65, 0.12);
}

.publication-track {
    display: flex;
    gap: 1rem;
    width: max-content;
}

.publication-track .publication-card {
    flex: 0 0 16.5rem;
    width: 16.5rem;
}

/* -------------------------------------------------------------- Resources */

.filter-panel {
    border: 1px solid var(--cyg-line);
    border-radius: 0.75rem;
    background-color: #fff;
    padding: 1.25rem;
}

.filter-panel .form-check-label {
    font-size: 0.94rem;
}

.resource-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    border: 1px solid var(--cyg-line);
    border-radius: 0.75rem;
    background-color: #fff;
    padding: 1.15rem 1.25rem;
    height: 100%;
    color: var(--cyg-ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.resource-item:hover {
    border-color: rgba(245, 124, 32, 0.45);
    box-shadow: 0 0.5rem 1.25rem rgba(15, 40, 65, 0.08);
    color: var(--cyg-orange);
}

.resource-icon {
    font-size: 1.6rem;
    color: var(--cyg-orange);
    line-height: 1;
    flex-shrink: 0;
}

.resource-tag {
    display: inline-block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cyg-navy);
    background-color: rgba(18, 60, 99, 0.08);
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    margin-bottom: 0.4rem;
}

/* ------------------------------------------------------------ Back to top */

.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 50%;
    background-color: rgba(90, 100, 110, 0.35);
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.5rem);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
    z-index: 1035;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus {
    background-color: rgba(90, 100, 110, 0.65);
    color: #fff;
}

/* ------------------------------------------------------------ Home popup */

.home-popup {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(8, 20, 32, 0.45);
    opacity: 1;
    transition: opacity 0.35s ease;
    padding: 1rem;
}

.home-popup[hidden] {
    display: none;
}

.home-popup.is-hiding {
    opacity: 0;
}

.home-popup-inner {
    position: relative;
    width: min(34rem, 80vw);
    max-height: 70vh;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1.5rem 3rem rgba(4, 16, 28, 0.4);
}

.home-popup-inner img {
    display: block;
    width: 100%;
    height: auto;
}

.home-popup-link {
    display: block;
    color: inherit;
}

.home-popup-caption {
    display: block;
    padding: 0.85rem 1rem 1rem;
    background: #fff;
    color: var(--cyg-ink);
    font-size: 0.98rem;
    font-weight: 600;
    text-align: center;
}

.home-popup-close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-popup-close:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* ---------------------------------------------------------------- Footer */

.site-footer {
    background-color: var(--cyg-navy-dark);
    color: rgba(255, 255, 255, 0.78);
    padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
}

.site-footer h2,
.site-footer h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #fff;
    margin-bottom: 1rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
    color: var(--cyg-orange);
}

.site-footer a.footer-linkedin {
    display: inline-flex;
    transition: transform 0.2s ease;
}

.site-footer a.footer-linkedin:hover {
    color: rgba(255, 255, 255, 0.78);
    transform: scale(1.18);
}

.site-footer .footer-legal-link {
    padding: 0;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, 0.78);
    font: inherit;
    text-align: left;
}

.site-footer .footer-legal-link:hover {
    color: var(--cyg-orange);
}

.site-footer .footer-logo {
    height: 1.9rem;
    margin-bottom: 1rem;
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 2.25rem;
    padding-top: 1.25rem;
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.55);
}

.tech-article {
    max-width: 64rem;
    margin: 0 auto;
}

.tech-heading {
    max-width: 40rem;
    margin: 0 auto 2rem;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 400;
    line-height: 1.45;
    color: var(--cyg-orange);
}

.tech-article > p {
    color: var(--cyg-muted);
    font-size: 1.02rem;
    line-height: 1.85;
    margin-bottom: 1.15rem;
}

.tech-article p strong {
    color: var(--cyg-ink);
    font-weight: 700;
}

.tech-figure {
    margin: 2rem auto;
}

.tech-figure img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.tech-figure-framed {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--cyg-line);
    border-radius: 0.75rem;
    box-shadow: 0 0.75rem 1.75rem rgba(44, 44, 44, 0.12);
}

.tech-figure-framed img {
    border: 0;
    box-shadow: none;
    border-radius: 0.35rem;
}

.tech-action {
    margin: 1.75rem 0 0;
    text-align: center;
}

.tech-advantages {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2.5rem;
}

.tech-advantage {
    padding: 1.25rem 0;
}

.tech-advantage-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.5rem;
}

.tech-advantage-icon {
    display: block;
    width: 3.25rem;
    height: 3.25rem;
    object-fit: contain;
    margin-bottom: 0;
    flex: 0 0 auto;
}

.tech-advantage h4 {
    margin-bottom: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--cyg-ink);
}

.tech-advantage p {
    margin-bottom: 0;
    color: var(--cyg-muted);
    font-size: 0.98rem;
    line-height: 1.7;
}

@media (max-width: 767.98px) {
    .tech-advantages {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------- About page */

.about-content {
    overflow: hidden;
    background-color: #fff;
    border: 1px solid var(--cyg-line);
    border-radius: 0.75rem;
    box-shadow: 0 0.4rem 1.25rem rgba(44, 44, 44, 0.06);
}

.about-section-block {
    padding: 1.75rem 1.75rem 2rem;
    scroll-margin-top: calc(var(--cyg-nav-height) + 1rem);
}

.about-section-block + .about-section-block {
    border-top: 1px solid var(--cyg-line);
}

.about-section-alt {
    background-color: var(--cyg-surface);
}

.about-subheading {
    margin-bottom: 0.55rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--cyg-ink);
    margin-top: 1.5rem;
}

.about-copy,
.about-value p {
    margin-bottom: 0;
    color: var(--cyg-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.about-value {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1.5rem;
}

.about-value-icon {
    flex: 0 0 3.25rem;
    width: 3.25rem;
    height: 3.25rem;
    object-fit: contain;
}

.about-value-copy {
    min-width: 0;
}

.about-value h4 {
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--cyg-ink);
}

.about-section-image img {
    width: 100%;
}

.milestone-band {
    position: relative;
    overflow: hidden;
    padding: clamp(2.5rem, 5vw, 4.25rem) 0 clamp(2rem, 4vw, 3.25rem);
    scroll-margin-top: var(--cyg-nav-height);
}

.milestone-band-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.milestone-band-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(28, 28, 28, 0.22) 0%, rgba(28, 28, 28, 0.34) 100%);
}

.milestone-band-inner {
    position: relative;
    z-index: 2;
}

.milestone-band-title {
    color: #fff;
    margin-bottom: 1.35rem;
}

.milestone-scroller {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.85rem;
    scrollbar-color: var(--cyg-orange) rgba(255, 255, 255, 0.28);
}

.milestone-scroller:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.milestone-track {
    --card-w: 12.75rem;
    --card-gap: 0.95rem;
    display: grid;
    grid-template-columns: repeat(var(--cols), var(--card-w));
    grid-template-rows: auto auto;
    column-gap: var(--card-gap);
    row-gap: 1.35rem;
    width: max-content;
    max-width: none;
    justify-content: start;
    overflow: hidden;
}

.milestone-card {
    min-width: 0;
    width: auto;
    min-height: 12rem;
    display: flex;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.58);
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 0.7rem;
    padding: 1rem 1.05rem;
    box-shadow: 0 0.45rem 1.25rem rgba(20, 20, 20, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.milestone-year-0.milestone-card { border-color: #e8b339; }
.milestone-year-1.milestone-card { border-color: #3db8c5; }
.milestone-year-2.milestone-card { border-color: var(--cyg-orange); }
.milestone-year-3.milestone-card { border-color: #6b8cff; }
.milestone-year-4.milestone-card { border-color: #d45b9a; }

.milestone-card-text {
    margin: 0;
    color: #1d1d1d;
    font-size: 1.08rem;
    font-weight: 500;
    letter-spacing: 0.012em;
    line-height: 1.55;
}

.milestone-axis-rule {
    height: 2px;
    margin-top: 0.52rem;
    background: rgba(255, 255, 255, 0.88);
    align-self: start;
    pointer-events: none;
}

.milestone-axis-group {
    min-width: 0;
    max-width: 100%;
    position: relative;
    z-index: 1;
    text-align: left;
}

.milestone-axis-dot {
    display: block;
    width: 0.75rem;
    height: 0.75rem;
    margin: 0.15rem 0 0.7rem calc(var(--card-w) / 2 - 0.375rem);
    border-radius: 50%;
    background-color: var(--cyg-orange);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.92);
    position: relative;
    z-index: 1;
}

.milestone-year-0 .milestone-axis-dot { background-color: #e8b339; }
.milestone-year-1 .milestone-axis-dot { background-color: #3db8c5; }
.milestone-year-2 .milestone-axis-dot { background-color: var(--cyg-orange); }
.milestone-year-3 .milestone-axis-dot { background-color: #6b8cff; }
.milestone-year-4 .milestone-axis-dot { background-color: #d45b9a; }

.milestone-axis-label {
    margin: 0;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.4;
    text-align: left;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

@media (max-width: 767.98px) {
    .milestone-track {
        --card-w: 11.5rem;
        --card-gap: 0.8rem;
    }

    .milestone-card {
        min-height: 11.25rem;
        padding: 0.9rem 0.95rem;
    }
}

.legal-modal-dialog {
    height: auto;
    max-height: min(36rem, 62vh);
}

.legal-modal-dialog .modal-content {
    max-height: min(36rem, 62vh);
}

.legal-modal-body p {
    color: var(--cyg-muted);
    line-height: 1.7;
}

.legal-modal-body .legal-updated {
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.legal-modal-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 1.35rem;
    margin-bottom: 0.6rem;
}

.legal-modal-body h4 {
    font-size: 0.98rem;
    font-weight: 700;
    margin-top: 1.1rem;
    margin-bottom: 0.45rem;
}

.legal-modal-body ul {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
    color: var(--cyg-muted);
}

.legal-modal-body li {
    margin-bottom: 0.25rem;
    line-height: 1.6;
}

.support-split-image {
    width: 100%;
    height: 100%;
    min-height: 22rem;
    object-fit: cover;
    border-radius: 0.75rem;
}

.support-service-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    background: #fff;
    border: 1px solid var(--cyg-line);
    border-radius: 0.75rem;
}

.support-service-card + .support-service-card {
    margin-top: 0.85rem;
}

.support-service-card .feature-icon {
    flex: 0 0 auto;
    margin-bottom: 0;
    width: 3.75rem;
    height: 3.75rem;
}

.support-service-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.support-service-card p {
    margin-bottom: 0;
    color: var(--cyg-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.product-ecosystem-image {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 1.5rem;
}

.search-result-item {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--cyg-line);
}

.search-result-item h2 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}

.about-honor-group + .about-honor-group {
    margin-top: 1.5rem;
}

.about-honor-group h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.about-honor-group ul {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--cyg-muted);
}

.about-honor-group li {
    margin-bottom: 0.4rem;
    line-height: 1.55;
}

/* --------------------------------------------------------------- Utility */

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }

    .media-card:hover,
    .feature-tile:hover {
        transform: none;
    }
}
