/* ==========================================================================
   Brocadesoft design system
   Tokens → reset → typography → layout → components → chrome → footer → responsive
   ========================================================================== */

@font-face {
    font-family: "Archivo";
    src: url("../fonts/archivo-latin-var.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Colour — Aurora: deep navy, azure, cyan, cool gray */
    --indigo-900: #05080F;
    --indigo-800: #0A1122;
    --ink-900: #101A2C;
    --ink-800: #F2F5FA;
    --ink-700: #E7EDF6;
    --paper: #FFFFFF;
    --paper-warm: #F3F6FB;
    --red: #2F6BFF;
    --red-deep: #1D4FD8;
    --cyan: #21D4C4;
    --line-dark: rgba(16, 26, 44, .14);
    --line-light: #E0E7F1;
    --text-dark-bg: #F4F7FC;
    --text-on-dark-muted: rgba(244, 247, 252, .64);
    --text-muted: #5E6A7E;
    --text-on-light: #101A2C;
    --text-on-light-muted: #55617A;

    /* Type */
    --font-sans: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-latin: "Archivo", "Helvetica Neue", Arial, var(--font-sans);

    /* Layout */
    --container-max: 1440px;
    --gutter: 64px;
    --gutter-tablet: 40px;
    --gutter-mobile: 24px;
    --header-height: 88px;
    --section-space: 80px;
    --section-space-tablet: 64px;
    --section-space-mobile: 48px;
    --grid-gap: 24px;

    /* Shape & motion */
    --radius-sm: 4px;
    --radius-pill: 999px;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --duration: .3s;
    --transition: var(--duration) var(--ease);
    --shadow-lg: 0 24px 60px rgba(11, 11, 26, .2);
    --shadow-sm: 0 8px 24px rgba(11, 11, 26, .08);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink-900);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.is-overlay-open {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: 600;
    line-height: 1.22;
    letter-spacing: .02em;
}

p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

input,
select,
textarea {
    font: inherit;
    color: inherit;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

[hidden] {
    display: none !important;
}

::selection {
    background: var(--red);
    color: var(--paper);
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
    border-radius: 2px;
}

/* --------------------------------------------------------------------------
   3. Base typography & utilities
   -------------------------------------------------------------------------- */
.font-latin,
.eyebrow,
.card__meta,
.site-footer__copyright,
.site-footer__phone,
.pagination,
.mega-card__index {
    font-family: var(--font-latin);
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    border: 0;
    word-wrap: normal !important;
}

.skip-link {
    position: fixed;
    top: -120px;
    left: var(--gutter-mobile);
    z-index: 999;
    padding: 12px 20px;
    background: var(--red);
    color: var(--paper);
    font-size: 14px;
    transition: top .2s var(--ease);
}

.skip-link:focus {
    top: 12px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--red);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.eyebrow__line {
    display: inline-block;
    width: 32px;
    height: 2px;
    background: var(--red);
    flex: none;
}

.section--dark .eyebrow,
.site-footer .eyebrow {
    color: var(--red);
}

.section-head {
    max-width: 820px;
    margin-bottom: 64px;
}

.section-head__title {
    font-size: clamp(28px, 3.6vw, 48px);
    line-height: 1.18;
}

.section-head__desc {
    max-width: 62ch;
    margin-top: 18px;
    color: var(--text-on-light-muted);
    font-size: 17px;
    line-height: 1.8;
}

.section-head__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    color: var(--red);
    font-size: 14px;
    font-weight: 500;
}

.section-head__link span {
    transition: transform var(--transition);
}

.section-head__link:hover span {
    transform: translateX(6px);
}

.section--dark .section-head__desc {
    color: var(--text-muted);
}

.section--dark .section-head__link {
    color: var(--ink-900);
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.section--dark .section-head__link span {
    color: var(--red);
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow {
    max-width: 960px;
}

.section {
    padding-block: var(--section-space);
}

.section--light {
    background: var(--paper);
    color: var(--ink-900);
}

.section--warm {
    background: var(--paper-warm);
    color: var(--ink-900);
}

.section--dark {
    background: var(--paper-warm);
    color: var(--ink-900);
}

.section--ink {
    background: var(--paper);
    color: var(--ink-900);
}

.section--flush-top {
    padding-top: 0;
}

.section--flush-bottom {
    padding-bottom: 0;
}

.section--dark .section-head__desc {
    color: var(--text-muted);
}

.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--grid-gap);
}

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

/* --------------------------------------------------------------------------
   5. Buttons, tags and forms
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 13px 28px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .02em;
    line-height: 1.2;
    text-align: center;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--sm {
    min-height: 38px;
    padding: 9px 18px;
    font-size: 13px;
}

.btn--solid {
    background: var(--red);
    color: var(--paper);
}

.btn--solid:hover {
    background: var(--red-deep);
    color: var(--paper);
}

.btn--outline {
    border-color: var(--line-dark);
    color: var(--ink-900);
}

.btn--outline:hover {
    border-color: var(--red);
    color: var(--red);
}

.section--light .btn--outline,
.section--warm .btn--outline {
    border-color: var(--ink-900);
    color: var(--ink-900);
}

.section--light .btn--outline:hover,
.section--warm .btn--outline:hover {
    border-color: var(--red);
    color: var(--red);
}

.btn--light {
    background: var(--paper);
    color: var(--ink-900);
}

.btn--light:hover {
    background: var(--paper-warm);
}

.btn--ghost {
    border-color: var(--line-light);
    color: inherit;
}

.btn--ghost:hover {
    border-color: var(--red);
    color: var(--red);
}

.btn--link {
    min-height: 0;
    padding: 0;
    color: var(--red);
    border: 0;
}

.btn--link:hover {
    color: var(--red-deep);
    transform: none;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border: 1px solid var(--line-light);
    border-radius: var(--radius-pill);
    color: var(--text-on-light-muted);
    font-size: 12px;
    line-height: 1.6;
}

.tag--red {
    border-color: rgba(47, 107, 255, .4);
    color: var(--red);
}

.section--dark .tag {
    border-color: var(--line-dark);
    color: var(--text-muted);
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border: 1px solid var(--line-light);
    border-radius: var(--radius-pill);
    font-size: 14px;
    transition: color var(--transition), border-color var(--transition), background-color var(--transition);
}

.chip:hover,
.chip.is-active {
    border-color: var(--red);
    background: var(--red);
    color: var(--paper);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.field label {
    color: var(--text-on-light-muted);
    font-size: 13px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line-light);
    border-radius: 2px;
    background: var(--paper);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 107, 255, .12);
}

.search-form {
    display: flex;
    gap: 8px;
}

.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid var(--line-light);
    background: var(--paper);
}

.search-form button {
    padding: 0 20px;
    background: var(--red);
    color: var(--paper);
}

/* --------------------------------------------------------------------------
   6. Breadcrumbs, pagination, cards, empty state
   -------------------------------------------------------------------------- */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.breadcrumbs a:hover {
    color: var(--red);
}

.breadcrumbs__sep {
    opacity: .5;
}

.pagination {
    margin-top: 64px;
    font-size: 14px;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line-light);
    color: var(--ink-900);
    transition: color var(--transition), border-color var(--transition), background-color var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    border-color: var(--red);
    background: var(--red);
    color: var(--paper);
}

.section--dark .pagination .page-numbers {
    border-color: var(--line-dark);
    color: var(--ink-900);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--line-light);
    background: var(--paper);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    border-color: rgba(47, 107, 255, .5);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}

.card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--ink-800);
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}

.card:hover .card__media img {
    transform: scale(1.03);
}

.card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 28px;
}

.card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.card__title {
    margin: 12px 0 0;
    font-size: 20px;
    line-height: 1.45;
}

.card__title a {
    transition: color var(--transition);
}

.card__title a:hover {
    color: var(--red);
}

.card__excerpt {
    margin-top: 12px;
    color: var(--text-on-light-muted);
    font-size: 14px;
    line-height: 1.75;
}

.card__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 20px;
    color: var(--red);
    font-size: 13px;
    font-weight: 500;
}

.card__more span {
    transition: transform var(--transition);
}

.card__more:hover span {
    transform: translateX(5px);
}

.section--dark .card {
    border-color: var(--line-dark);
    background: var(--ink-800);
    color: var(--ink-900);
}

.section--dark .card__excerpt {
    color: var(--text-muted);
}

.section--dark .card__more {
    color: var(--ink-900);
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.section--dark .card__more span {
    color: var(--red);
}

.section--dark .card:hover {
    border-color: rgba(47, 107, 255, .6);
}

.empty-state {
    padding: 72px 24px;
    border: 1px dashed var(--line-light);
    text-align: center;
}

.empty-state__title {
    font-size: 22px;
    font-weight: 600;
}

.empty-state__desc {
    max-width: 48ch;
    margin: 12px auto 28px;
    color: var(--text-on-light-muted);
    font-size: 15px;
}

.section--dark .empty-state {
    border-color: var(--line-dark);
}

.section--dark .empty-state__desc {
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   7. Page heroes
   -------------------------------------------------------------------------- */
.page-hero {
    padding: calc(var(--header-height) + 48px) 0 48px;
    background:
        radial-gradient(1200px 480px at 82% -10%, rgba(47, 107, 255, .09), transparent 60%),
        linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
    color: var(--ink-900);
}

.page-hero__title {
    max-width: 22ch;
    font-size: clamp(32px, 4.6vw, 64px);
    line-height: 1.12;
}

.front-placeholder {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 88vh;
    padding: calc(var(--header-height) + 56px) 0 96px;
    overflow: hidden;
    background:
        radial-gradient(900px 540px at 78% 18%, rgba(47, 107, 255, .12), transparent 62%),
        linear-gradient(135deg, var(--paper) 0%, var(--paper-warm) 58%, #FAFAFA 100%);
    color: var(--ink-900);
}

.front-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line-dark) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: .22;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 82%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 82%);
    pointer-events: none;
}

.front-placeholder__inner {
    position: relative;
    z-index: 1;
}

.front-placeholder__title {
    max-width: 18ch;
    font-size: clamp(36px, 6vw, 84px);
    line-height: 1.08;
    letter-spacing: .02em;
}

.front-placeholder__desc {
    max-width: 56ch;
    margin-top: 28px;
    color: var(--text-muted);
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.8;
}

.front-placeholder__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 40px;
}

/* --------------------------------------------------------------------------
   8. Header, brand, primary navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 120;
    height: var(--header-height);
    padding-right: var(--scrollbar-compensation, 0px);
    color: var(--text-dark-bg);
    transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.site-header--overlay {
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    background: rgba(11, 11, 26, .9);
    backdrop-filter: blur(14px);
}

.site-header--solid,
.site-header.is-scrolled,
.site-header.is-mega-open {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    background: rgba(11, 11, 26, .97);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .32);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100%;
}

.brand {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 12px;
    color: inherit;
}

.brand__logo {
    display: block;
    width: 184px;
    height: auto;
}

.brand--footer .brand__logo {
    width: 180px;
}

.brand__mark {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 2px;
    background: var(--red);
}

.brand__mark-page {
    position: absolute;
    top: 8px;
    right: 12px;
    bottom: 8px;
    left: 8px;
    background: var(--paper);
}

.brand__mark-line {
    position: absolute;
    top: 8px;
    right: 6px;
    width: 4px;
    height: 18px;
    background: var(--ink-900);
    opacity: .85;
}

.brand__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.15;
}

.brand__name {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .08em;
}

.brand__latin {
    color: var(--text-muted);
    font-family: var(--font-latin);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .34em;
}

.site-nav {
    margin-inline: auto;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
}

.site-nav__item {
    display: inline-flex;
    align-items: center;
    position: static;
}

.site-nav__item--dropdown {
    position: relative;
}

.site-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .02em;
    white-space: nowrap;
}

.site-nav__link::after {
    content: "";
    position: absolute;
    right: 15px;
    bottom: 2px;
    left: 15px;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--transition);
}

.site-nav__item:hover > .site-nav__link::after,
.site-nav__item.is-open > .site-nav__link::after,
.site-nav__link:focus-visible::after {
    transform: scaleX(1);
}

.site-nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 32px;
    margin-left: -10px;
    color: var(--text-on-dark-muted);
}

.site-nav__chevron {
    width: 15px;
    height: 15px;
    transition: transform var(--transition), color var(--transition);
}

.site-nav__item:hover .site-nav__chevron,
.site-nav__item.is-open .site-nav__chevron {
    color: var(--text-dark-bg);
}

.site-nav__item.is-open .site-nav__chevron {
    transform: rotate(180deg);
}

.header-actions {
    display: flex;
    flex: none;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.header-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    font-size: 14px;
    opacity: .86;
    transition: color var(--transition), opacity var(--transition), background-color var(--transition);
}

.header-action:hover {
    color: var(--red);
    opacity: 1;
}

.header-action--search {
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    border-radius: var(--radius-sm);
}

.header-action--search:hover {
    background: rgba(255, 255, 255, .08);
}

.header-action__icon {
    width: 24px;
    height: 24px;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: inherit;
}

.menu-toggle__icon {
    width: 26px;
    height: 26px;
}

/* --------------------------------------------------------------------------
   9. Mega menu & dropdowns
   -------------------------------------------------------------------------- */
.mega-menu {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    z-index: 110;
    max-height: calc(100vh - var(--header-height));
    padding: 56px 0 64px;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, .1);
    background: var(--indigo-900);
    box-shadow: var(--shadow-lg);
    color: var(--text-dark-bg);
}

.mega-menu__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 56px;
    align-items: start;
}

.mega-menu__inner--products,
.mega-menu__inner--solutions {
    display: block;
}

.mega-products__head,
.mega-solutions__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.mega-products__head .eyebrow,
.mega-solutions__head .eyebrow {
    margin-bottom: 0;
}

.mega-products__head .mega-menu__all,
.mega-solutions__head .mega-menu__all {
    margin-top: 0;
}

.mega-link-list {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 2;
    column-gap: 40px;
}

.mega-link-list li {
    break-inside: avoid;
}

.mega-text-link {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: var(--text-dark-bg);
    font-size: 15px;
    transition: color var(--transition), padding-left var(--transition);
}

.mega-text-link:hover {
    padding-left: 6px;
    color: var(--cyan);
}

.mega-text-link__label {
    min-width: 0;
}

.mega-solution-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(32px, 4vw, 56px);
}

.mega-solution-group h3 {
    margin: 0 0 10px;
    color: var(--text-on-dark-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.mega-solution-group h3 a {
    transition: color var(--transition);
}

.mega-solution-group h3 a:hover {
    color: var(--cyan);
}

@media (max-width: 1199px) {
    .mega-link-list {
        columns: 1;
    }
}

.mega-menu__main {
    min-width: 0;
}

.mega-menu__columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 48px;
}

.mega-menu__col {
    min-width: 0;
}

.mega-menu__link.mega-menu__link--numbered {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.mega-menu__index {
    flex: none;
    width: 24px;
    color: var(--red);
    font-family: var(--font-latin);
    font-size: 12px;
    letter-spacing: .08em;
}

.mega-menu__label {
    min-width: 0;
}

.mega-menu__empty {
    color: var(--text-on-dark-muted);
    font-size: 14px;
}

.mega-menu__col-title {
    margin-bottom: 16px;
    color: var(--text-on-dark-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.mega-menu__col-title a {
    transition: color var(--transition);
}

.mega-menu__col-title a:hover {
    color: var(--red);
}

.mega-menu__links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mega-menu__link {
    display: block;
    padding: 7px 0;
    color: var(--text-dark-bg);
    font-size: 15px;
    transition: color var(--transition), transform var(--transition);
}

.mega-menu__link:hover {
    color: var(--red);
    transform: translateX(4px);
}

.mega-menu__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--text-dark-bg);
    font-size: 13px;
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.mega-menu__more span {
    color: var(--red);
}

.mega-menu__featured {
    padding-left: 48px;
    border-left: 1px solid rgba(255, 255, 255, .1);
}

.mega-menu__featured-label {
    margin-bottom: 14px;
    color: var(--text-on-dark-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.mega-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.mega-card__index {
    color: var(--red);
    font-size: 13px;
    letter-spacing: .08em;
}

.mega-card__title {
    display: block;
    color: var(--text-dark-bg);
    font-size: 16px;
    font-weight: 600;
    transition: color var(--transition);
}

.mega-card__desc {
    display: block;
    margin-top: 4px;
    color: var(--text-on-dark-muted);
    font-size: 13px;
    line-height: 1.6;
}

.mega-card:hover .mega-card__title {
    color: var(--red);
}

.mega-menu__all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    color: var(--text-dark-bg);
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.mega-menu__all span {
    color: var(--red);
    transition: transform var(--transition);
}

.mega-menu__all:hover span {
    transform: translateX(5px);
}

.dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    z-index: 115;
    min-width: 220px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: var(--indigo-800);
    box-shadow: var(--shadow-lg);
    transform: translateX(-50%);
}

.dropdown__link {
    display: block;
    padding: 10px 14px;
    color: var(--text-dark-bg);
    font-size: 14px;
    white-space: nowrap;
    transition: background-color var(--transition), color var(--transition);
}

.dropdown__link:hover {
    background: rgba(255, 255, 255, .08);
    color: var(--red);
}

/* --------------------------------------------------------------------------
   10. Search overlay
   -------------------------------------------------------------------------- */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 96px var(--gutter);
    background: rgba(11, 11, 26, .98);
    color: var(--text-dark-bg);
}

.search-overlay__inner {
    width: min(880px, 100%);
}

.search-overlay__close {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    color: var(--text-dark-bg);
    transition: color var(--transition), border-color var(--transition), transform var(--transition);
}

.search-overlay__close svg {
    width: 24px;
    height: 24px;
}

.search-overlay__close:hover {
    border-color: var(--red);
    color: var(--red);
    transform: rotate(90deg);
}

.search-overlay__field {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.search-overlay__input {
    flex: 1;
    min-width: 0;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--text-dark-bg);
    font-size: clamp(24px, 4vw, 44px);
    font-weight: 500;
    letter-spacing: .01em;
}

.search-overlay__input::placeholder {
    color: rgba(51, 51, 51, .35);
}

.search-overlay__field:focus-within {
    border-bottom-color: var(--red);
}

.search-overlay__input:focus {
    outline: none;
    border-radius: 2px;
    box-shadow: 0 0 0 2px var(--red);
}

.search-overlay__submit {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    color: var(--red);
    transition: transform var(--transition);
}

.search-overlay__submit svg {
    width: 32px;
    height: 32px;
}

.search-overlay__submit:hover {
    transform: translateX(4px);
}

.search-overlay__suggest {
    margin-top: 44px;
}

.search-overlay__suggest-label {
    margin-bottom: 14px;
    color: var(--text-on-dark-muted);
    font-family: var(--font-latin);
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.search-overlay__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.search-overlay__links a {
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: var(--radius-pill);
    color: var(--text-dark-bg);
    font-size: 14px;
    transition: color var(--transition), border-color var(--transition);
}

.search-overlay__links a:hover {
    border-color: var(--red);
    color: var(--red);
}

/* --------------------------------------------------------------------------
   11. Mobile drawer
   -------------------------------------------------------------------------- */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--indigo-900);
    color: var(--text-dark-bg);
}

.drawer__bar {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    color: inherit;
    transition: color var(--transition), border-color var(--transition);
}

.drawer__close svg {
    width: 22px;
    height: 22px;
}

.drawer__close:hover {
    border-color: var(--red);
    color: var(--red);
}

.drawer__body {
    flex: 1;
    padding: 8px var(--gutter-mobile) 48px;
    overflow-y: auto;
}

.drawer__item {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.drawer__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.drawer__link {
    flex: 1;
    padding: 18px 0;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: .02em;
}

.drawer__link:hover {
    color: var(--red);
}

.drawer__toggle {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--text-on-dark-muted);
}

.drawer__toggle svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition), color var(--transition);
}

.drawer__toggle[aria-expanded="true"] svg {
    color: var(--red);
    transform: rotate(180deg);
}

.drawer__sub {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 0 16px;
}

.drawer__sublink {
    display: block;
    padding: 10px 0 10px 16px;
    border-left: 1px solid rgba(255, 255, 255, .12);
    color: var(--text-on-dark-muted);
    font-size: 15px;
    transition: color var(--transition), border-color var(--transition);
}

.drawer__sublink:hover {
    border-color: var(--red);
    color: var(--red);
}

.drawer__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
}

.drawer__search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: var(--text-on-dark-muted);
    font-size: 15px;
}

.drawer__search svg {
    width: 20px;
    height: 20px;
}

.drawer__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 32px;
    color: var(--text-on-dark-muted);
    font-size: 13px;
}

.drawer__meta a {
    color: var(--text-dark-bg);
    font-family: var(--font-latin);
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

/* --------------------------------------------------------------------------
   12. Prose
   -------------------------------------------------------------------------- */
.prose {
    max-width: 78ch;
    color: var(--text-on-light);
    font-size: 17px;
    line-height: 1.9;
    overflow-wrap: break-word;
}

.prose > * + * {
    margin-top: 1.15em;
}

.prose h2 {
    margin-top: 2.2em;
    padding-left: 16px;
    border-left: 3px solid var(--red);
    font-size: clamp(24px, 2.6vw, 32px);
}

.prose h3 {
    margin-top: 1.8em;
    font-size: 20px;
}

.prose h4 {
    margin-top: 1.6em;
    font-size: 18px;
}

.prose ul,
.prose ol {
    margin: .45em 0 1.1em;
    padding-left: 1.5em;
}

.prose ul {
    list-style: disc;
}

.prose ol {
    list-style: decimal;
}

.prose li + li {
    margin-top: .3em;
}

.prose a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose a:hover {
    color: var(--red-deep);
}

.prose strong {
    font-weight: 600;
}

.prose img {
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 1.6em 0;
}

.prose figure {
    margin: 1.6em 0;
}

.prose figcaption {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}

.prose blockquote {
    margin: 1.6em 0;
    padding: 14px 0 14px 24px;
    border-left: 3px solid var(--red);
    background: var(--paper-warm);
    color: var(--text-on-light-muted);
}

.prose table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 1.6em 0;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 15px;
}

.prose th,
.prose td {
    padding: 12px 14px;
    border: 1px solid var(--line-light);
    text-align: left;
    vertical-align: top;
}

.prose th {
    background: var(--paper-warm);
    font-weight: 600;
}

.section--dark .prose,
.section--ink .prose {
    color: var(--ink-900);
}

.section--dark .prose th,
.section--ink .prose th {
    background: var(--ink-700);
}

.section--dark .prose th,
.section--dark .prose td,
.section--ink .prose th,
.section--ink .prose td {
    border-color: var(--line-dark);
}

.section--dark .prose blockquote,
.section--ink .prose blockquote {
    background: var(--ink-800);
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    padding: 96px 0 32px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    background: var(--indigo-900);
    color: var(--text-dark-bg);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
    gap: 56px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.site-footer__brand {
    min-width: 0;
}

.site-footer .brand {
    color: var(--text-dark-bg);
}

.site-footer__intro {
    max-width: 34ch;
    margin-top: 24px;
    color: var(--text-on-dark-muted);
    font-size: 14px;
    line-height: 1.85;
}

.site-footer__title {
    margin-bottom: 20px;
    color: var(--text-dark-bg);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.site-footer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--text-on-dark-muted);
    font-size: 14px;
}

.site-footer__links a {
    transition: color var(--transition), transform var(--transition);
}

.site-footer__links a:hover {
    color: var(--red);
    transform: translateX(3px);
}

.site-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-on-dark-muted);
    font-size: 14px;
    font-style: normal;
    line-height: 1.7;
}

.site-footer__city {
    color: var(--text-dark-bg);
    font-weight: 500;
}

.site-footer__address {
    max-width: 30ch;
}

.site-footer__phone {
    color: var(--text-dark-bg);
    letter-spacing: .04em;
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.site-footer__phone--pending {
    color: var(--text-on-dark-muted);
    font-size: 13px;
    text-decoration: none;
}

.site-footer__offices {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 18px;
    color: var(--text-on-dark-muted);
    font-size: 13px;
}

.site-footer__offices li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 6px;
    border-bottom: 1px dashed rgba(255, 255, 255, .12);
}

.site-footer__office-city {
    color: var(--text-dark-bg);
}

.site-footer__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--text-dark-bg);
    font-size: 13px;
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.site-footer__more span {
    color: var(--red);
    transition: transform var(--transition);
}

.site-footer__more:hover span {
    transform: translateX(5px);
}

.site-footer__contact-fallback {
    max-width: 30ch;
    color: var(--text-on-dark-muted);
    font-size: 14px;
    line-height: 1.8;
}

.site-footer__contact-fallback a {
    color: var(--text-dark-bg);
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-underline-offset: 3px;
}

.site-footer__qr-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.site-footer__qr-img {
    display: block;
    width: 120px;
    height: 120px;
    padding: 10px;
    border-radius: 2px;
    background: var(--paper);
    object-fit: contain;
}

.site-footer__qr::before {
    content: "";
    position: absolute;
    inset: 14px;
    background:
        repeating-linear-gradient(90deg, var(--ink-900) 0 6px, transparent 6px 12px),
        repeating-linear-gradient(0deg, var(--ink-900) 0 6px, var(--paper) 6px 12px);
    opacity: .8;
}

.site-footer__qr-corner {
    position: absolute;
    z-index: 1;
    width: 22px;
    height: 22px;
    border: 4px solid var(--ink-900);
    background: var(--paper);
}

.site-footer__qr-corner--tl {
    top: 8px;
    left: 8px;
}

.site-footer__qr-corner--tr {
    top: 8px;
    right: 8px;
}

.site-footer__qr-corner--bl {
    bottom: 8px;
    left: 8px;
}

.site-footer__qr-label {
    color: var(--text-on-dark-muted);
    font-size: 13px;
    line-height: 1.6;
}

.site-footer__qr-label span {
    color: rgba(245, 245, 255, .45);
    font-size: 12px;
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    padding-top: 24px;
    color: var(--text-on-dark-muted);
    font-size: 12px;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.site-footer__legal a:hover {
    color: var(--red);
}

.site-footer__icp--pending {
    opacity: .7;
}

/* --------------------------------------------------------------------------
   14. Back to top, reveal & motion
   -------------------------------------------------------------------------- */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    background: var(--indigo-800);
    color: var(--text-dark-bg);
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background-color var(--transition);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.back-to-top:hover {
    background: var(--red);
}

html.js [data-reveal] {
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

html.js [data-reveal]:not(.is-revealed) {
    opacity: 0;
    transform: translateY(24px);
}

html.js [data-reveal].is-revealed,
[data-reveal].is-revealed,
html.js.reduce-motion [data-reveal],
html.reduce-motion [data-reveal],
.reduce-motion [data-reveal] {
    opacity: 1;
    transform: none;
}

html.js.reduce-motion [data-reveal],
html.reduce-motion [data-reveal],
.reduce-motion [data-reveal] {
    transition: none;
}

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

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1439px) {
    .mega-menu__inner {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 40px;
    }

    .mega-menu__featured {
        padding-left: 40px;
    }
}

@media (max-width: 1199px) {
    .mega-menu__inner {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .header-action__label {
        display: none;
    }
}

@media (max-width: 1023px) {
    :root {
        --header-height: 72px;
        --gutter: var(--gutter-tablet);
        --section-space: var(--section-space-tablet);
    }

    .site-nav {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 48px 40px;
    }

    .section-head {
        margin-bottom: 48px;
    }

    .page-hero {
        padding: calc(var(--header-height) + 48px) 0 48px;
    }

    .front-placeholder {
        min-height: 78vh;
        padding: calc(var(--header-height) + 48px) 0 72px;
    }
}

@media (max-width: 767px) {
    :root {
        --header-height: 64px;
        --gutter: var(--gutter-mobile);
        --section-space: var(--section-space-mobile);
        --grid-gap: 16px;
    }

    body {
        font-size: 15px;
    }

    .header-cta {
        display: none;
    }

    .header-actions {
        gap: 10px;
    }

    .brand__logo {
        width: 152px;
    }

    .brand__mark {
        width: 30px;
        height: 30px;
    }

    .brand__name {
        font-size: 16px;
    }

    .brand__latin {
        font-size: 8px;
        letter-spacing: .3em;
    }

    .card-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .card__body {
        padding: 22px;
    }

    .section-head {
        margin-bottom: 36px;
    }

    .section-head__desc {
        margin-top: 14px;
        font-size: 15px;
    }

    .section-head__title {
        font-size: clamp(25px, 7vw, 34px);
    }

    .mega-menu,
    .dropdown {
        display: none;
    }

    .site-footer {
        padding-top: 64px;
    }

    .site-footer__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
        padding-bottom: 48px;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-overlay {
        padding: 88px var(--gutter-mobile) 48px;
        align-items: flex-start;
    }

    .search-overlay__close {
        top: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }

    .search-overlay__field {
        gap: 8px;
    }

    .search-overlay__submit {
        width: 44px;
        height: 44px;
    }

    .search-overlay__submit svg {
        width: 26px;
        height: 26px;
    }

    .prose {
        font-size: 16px;
        line-height: 1.85;
    }

    .pagination {
        margin-top: 48px;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }

    .col-3,
    .col-4,
    .col-5,
    .col-6,
    .col-7,
    .col-8,
    .col-9 {
        grid-column: span 12;
    }
}

@media (max-width: 479px) {
    .front-placeholder__title {
        font-size: clamp(32px, 10vw, 44px);
    }

    .front-placeholder__actions .btn {
        flex: 1 1 auto;
    }

    .site-footer__offices li {
        gap: 10px;
    }

    .site-footer__legal {
        gap: 10px 16px;
    }
}
