:root {
    color-scheme: dark;
    --bg: #030304;
    --surface: rgba(15, 15, 17, 0.68);
    --surface-strong: rgba(24, 24, 27, 0.82);
    --line: rgba(255, 255, 255, 0.12);
    --line-red: rgba(242, 13, 38, 0.36);
    --text: #f7f7f8;
    --muted: #adadb6;
    --soft: #73737c;
    --red: #d90429;
    --red-hot: #d90429;
    --orange: #ff6a1c;
    --green: #27f26c;
    --blue: #2aa8ff;
    --purple: #bb38ff;
    font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 0;
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    min-width: 0;
    min-height: 100dvh;
    margin: 0;
    color: var(--text);
    letter-spacing: 0;
    overflow-x: clip;
    background:
        linear-gradient(90deg, rgba(3, 3, 4, 0.92) 0%, rgba(3, 3, 4, 0.62) 45%, rgba(3, 3, 4, 0.9) 100%),
        linear-gradient(180deg, rgba(3, 3, 4, 0.2) 0%, rgba(3, 3, 4, 0.96) 72%, #030304 100%),
        url("/assets/partners/partners-background-official.png") center top / cover no-repeat,
        #030304;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

body::before {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 74px 74px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.74), transparent 72%);
}

body::after {
    background:
        linear-gradient(120deg, transparent 0 42%, rgba(217, 4, 41, 0.1) 42.2%, transparent 43% 100%);
}

button,
input,
a {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: 16px;
    z-index: 30;
    padding: 10px 14px;
    border-radius: 7px;
    background: var(--red);
    color: white;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-bar {
    position: sticky;
    top: max(12px, env(safe-area-inset-top));
    z-index: 80;
    width: min(1500px, calc(100% - 32px));
    min-width: 0;
    min-height: 86px;
    margin: 16px auto 0;
    padding: calc(10px + env(safe-area-inset-top)) 18px 10px;
    display: grid;
    grid-template-columns: minmax(220px, auto) minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(18px, 3vw, 46px);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(4, 4, 5, 0.9), rgba(18, 5, 8, 0.78));
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.34);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    backdrop-filter: blur(14px) saturate(1.15);
    isolation: isolate;
    animation: rise-in 680ms ease both;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.site-bar.scrolled {
    min-height: 72px;
    margin-top: 10px;
    border-color: rgba(242, 13, 38, 0.22);
    background: rgba(5, 5, 6, 0.76);
    box-shadow: 0 18px 64px rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
}

.brand-link {
    min-width: 0;
    min-height: 52px;
    display: inline-grid;
    align-items: center;
    text-decoration: none;
}

.brand-link img {
    width: clamp(224px, 22vw, 286px);
    max-width: min(42vw, 286px);
    max-height: 66px;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(242, 13, 38, 0.22));
}

.menu-toggle {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: none;
    place-items: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.menu-toggle span {
    width: 19px;
    height: 2px;
    position: absolute;
    border-radius: 999px;
    background: var(--text);
    transition: transform 260ms ease;
}

.menu-toggle span:first-child {
    transform: translateY(-4px);
}

.menu-toggle span:last-child {
    transform: translateY(4px);
}

.menu-open .menu-toggle span:first-child {
    transform: rotate(45deg);
}

.menu-open .menu-toggle span:last-child {
    transform: rotate(-45deg);
}

.site-nav,
.site-actions,
.hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-nav {
    min-width: 0;
    justify-content: center;
}

.site-nav a,
.mobile-nav-primary {
    min-width: 44px;
    min-height: 50px;
    display: inline-grid;
    place-items: center;
    padding: 0 16px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 820;
}

.site-nav a:hover,
.mobile-nav-primary:hover {
    color: var(--text);
}

.nav-primary,
.mobile-nav-primary,
.primary-button,
.secondary-button {
    min-width: 44px;
    min-height: 52px;
    border-radius: 7px;
    color: var(--text);
    font-weight: 880;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.nav-primary,
.mobile-nav-primary,
.primary-button {
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0 24px;
    background: linear-gradient(135deg, var(--red), var(--red-hot));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.mobile-nav-primary {
    display: none;
    width: 100%;
}

.secondary-button {
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.04);
}

.nav-primary:hover,
.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.24);
}

.primary-button.full {
    width: 100%;
}

.partners-page {
    width: min(1320px, calc(100% - 48px));
    min-width: 0;
    margin: 0 auto;
    padding: 42px 0 0;
}

.hero-stage {
    min-width: 0;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
    align-items: stretch;
    gap: 22px;
    animation: section-appear 760ms ease both;
}

.hero-copy,
.hero-media,
.department-card,
.module-grid article,
.support-band {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    animation: rise-in 760ms ease both;
}

.hero-copy {
    min-width: 0;
    min-height: 620px;
    padding: 64px;
    display: grid;
    align-content: center;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.1), transparent 42%),
        radial-gradient(circle at 18% 82%, rgba(242, 13, 38, 0.28), transparent 24rem),
        linear-gradient(180deg, rgba(11, 11, 13, 0.9), rgba(6, 6, 7, 0.78));
}

.hero-copy::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 7px;
    pointer-events: none;
    background:
        linear-gradient(180deg, transparent 0 72%, rgba(242, 13, 38, 0.08)),
        linear-gradient(110deg, transparent 0 56%, rgba(255, 255, 255, 0.08) 56.4%, transparent 57.2% 100%);
    opacity: 0.8;
}

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

.label {
    margin: 0 0 16px;
    color: var(--red-hot);
    font-size: 0.76rem;
    font-weight: 920;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

p {
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.02;
    letter-spacing: 0;
    overflow-wrap: normal;
    word-break: normal;
}

h1 {
    max-width: 720px;
    font-size: 4.5rem;
}

h2 {
    max-width: 780px;
    font-size: 3.25rem;
}

.hero-text,
.system-copy p,
.support-band p {
    max-width: 590px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.65;
}

.hero-actions {
    margin-top: 34px;
    flex-wrap: wrap;
}

.hero-media {
    min-width: 0;
    min-height: 620px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 34%, rgba(242, 13, 38, 0.44), transparent 27rem),
        linear-gradient(145deg, rgba(58, 9, 14, 0.82), rgba(7, 7, 8, 0.9) 60%),
        rgba(8, 8, 9, 0.82);
    animation-delay: 120ms;
}

.hero-media::before {
    content: "";
    position: absolute;
    inset: 10%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transform: rotate(-12deg) scaleX(1.08);
    opacity: 0.72;
}

.symbol-mark {
    width: min(500px, 76%);
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    position: relative;
    z-index: 2;
    opacity: 0.95;
    filter: drop-shadow(0 0 44px rgba(242, 13, 38, 0.72));
    animation: float-mark 6.5s ease-in-out infinite;
}

.command-panel {
    width: min(420px, calc(100% - 48px));
    min-width: 0;
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    z-index: 3;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(3, 3, 4, 0.72);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(10px);
}

.command-panel__top,
.command-panel__grid,
.partners-footer,
.support-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.command-panel__top span,
.command-panel__top strong,
.media-card span,
.module-grid span {
    display: block;
}

.command-panel__top span,
.module-grid span {
    color: var(--soft);
    font-size: 0.8rem;
    font-weight: 840;
}

.command-panel__top strong {
    font-size: 1rem;
}

.command-lines {
    display: grid;
    gap: 8px;
    margin: 18px 0;
}

.command-lines span {
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--red), rgba(255, 255, 255, 0.08));
    transform-origin: left;
    animation: scan-line 2.8s ease-in-out infinite;
}

.command-lines span:nth-child(2) {
    width: 72%;
    animation-delay: 200ms;
}

.command-lines span:nth-child(3) {
    width: 48%;
    animation-delay: 380ms;
}

.command-panel__grid {
    align-items: stretch;
}

.command-panel__grid p {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    color: var(--muted);
    font-size: 0.78rem;
    text-align: center;
}

.command-panel__grid span {
    display: block;
    color: var(--text);
    font-size: 1.35rem;
    font-weight: 920;
}

.hero-orbit {
    width: min(470px, 78%);
    aspect-ratio: 1;
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(242, 13, 38, 0.2);
    border-radius: 50%;
    animation: slow-spin 18s linear infinite;
}

.hero-orbit span {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
    animation: orbit-dot 7s linear infinite;
}

.hero-orbit span:nth-child(1) {
    left: 50%;
    top: -5px;
}

.hero-orbit span:nth-child(2) {
    right: 11%;
    bottom: 17%;
    animation-delay: -2s;
}

.hero-orbit span:nth-child(3) {
    left: 8%;
    bottom: 28%;
    animation-delay: -4s;
}

.department-card p,
.module-grid p {
    color: var(--muted);
    line-height: 1.45;
}

.departments,
.system-grid,
.support-band {
    margin-top: 92px;
    animation: section-appear 760ms ease both;
}

.departments {
    --section-accent: var(--orange);
    animation-delay: 140ms;
}

.system-grid {
    --section-accent: var(--purple);
    animation-delay: 220ms;
}

.support-band {
    --section-accent: var(--blue);
    animation-delay: 300ms;
}

.section-intro {
    max-width: 800px;
    position: relative;
    padding-left: 18px;
}

.section-intro::before,
.system-copy::before,
.support-band::after {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 1px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--section-accent, var(--red)), transparent);
    box-shadow: none;
}

.department-grid {
    min-width: 0;
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.department-card {
    --accent: var(--red);
    min-width: 0;
    min-height: 370px;
    padding: 22px;
    display: grid;
    align-content: end;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, transparent 0 38%, rgba(0, 0, 0, 0.72) 100%),
        radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 55%),
        rgba(10, 10, 12, 0.78);
}

.department-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-top: 1px solid color-mix(in srgb, var(--accent) 58%, transparent);
    opacity: 0.8;
}

.department-card img {
    width: min(220px, 84%);
    height: auto;
    position: absolute;
    left: 50%;
    top: 22px;
    transform: translateX(-50%);
    filter: drop-shadow(0 0 28px var(--accent));
    transition: transform 220ms ease;
}

.department-card:hover img {
    transform: translateX(-50%) translateY(-4px) scale(1.03);
}

.department-card span,
.department-card p {
    min-width: 0;
    position: relative;
    overflow-wrap: anywhere;
}

.department-card span {
    display: block;
    color: var(--text);
    font-size: 1.08rem;
    font-weight: 920;
}

.department-card p {
    margin: 12px 0 0;
    font-size: 0.94rem;
}

.department-card.orange {
    --accent: var(--orange);
}

.department-card.purple {
    --accent: var(--purple);
}

.department-card.green {
    --accent: var(--green);
}

.department-card.blue {
    --accent: var(--blue);
}

.system-grid {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: 18px;
    align-items: start;
}

.system-copy {
    min-width: 0;
    position: sticky;
    top: 22px;
    padding: 8px 0 8px 18px;
}

.system-copy .primary-button {
    margin-top: 26px;
}

.module-grid {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.module-grid article {
    --accent: var(--red);
    min-width: 0;
    min-height: 184px;
    padding: 22px;
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 12rem),
        linear-gradient(155deg, rgba(255, 255, 255, 0.07), transparent 54%),
        rgba(12, 12, 14, 0.7);
}

.module-grid article::before {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: none;
}

.module-grid article > * {
    min-width: 0;
    overflow-wrap: anywhere;
}

.module-grid strong {
    display: block;
    margin-top: 38px;
    font-size: 1.08rem;
}

.module-grid p {
    margin: 9px 0 0;
    font-size: 0.92rem;
}

.module-grid article:nth-child(1) {
    --accent: var(--red);
    animation-delay: 80ms;
}

.module-grid article:nth-child(2) {
    --accent: var(--orange);
    animation-delay: 130ms;
}

.module-grid article:nth-child(3) {
    --accent: var(--purple);
    animation-delay: 180ms;
}

.module-grid article:nth-child(4) {
    --accent: var(--green);
    animation-delay: 230ms;
}

.module-grid article:nth-child(5) {
    --accent: var(--blue);
    animation-delay: 280ms;
}

.module-grid article:nth-child(6) {
    --accent: var(--red-hot);
    animation-delay: 330ms;
}

.support-band {
    min-width: 0;
    padding: 38px;
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle at 82% 50%, rgba(42, 168, 255, 0.22), transparent 20rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.074), rgba(255, 255, 255, 0.026));
}

.support-band::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(42, 168, 255, 0.14), transparent 38%);
}

.support-band::after {
    left: auto;
    right: 0;
    top: 18px;
    bottom: 18px;
}

.support-band > * {
    position: relative;
}

.access-modal[hidden] {
    display: none;
}

.access-modal {
    position: fixed;
    inset: 0;
    z-index: 140;
    min-width: 0;
    min-height: 100dvh;
    padding: calc(24px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));
    display: grid;
    place-items: center;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 24%, rgba(242, 13, 38, 0.24), transparent 26rem),
        rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(18px);
    animation: fade-in 220ms ease both;
}

.modal-card {
    width: min(100%, 390px);
    min-width: 0;
    position: relative;
    z-index: 1;
    padding: 34px 26px 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 0%, rgba(242, 13, 38, 0.2), transparent 16rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.026)),
        #0d0d0f;
    box-shadow: 0 34px 120px rgba(0, 0, 0, 0.66);
    text-align: center;
    animation: modal-in 330ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.modal-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    pointer-events: none;
    border-top: 1px solid rgba(242, 13, 38, 0.42);
}

.modal-close {
    width: 44px;
    height: 44px;
    position: absolute;
    right: 12px;
    top: 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.05);
}

.modal-close::before,
.modal-close::after {
    content: "";
    position: absolute;
    left: 13px;
    top: 21px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
}

.modal-close::before {
    transform: rotate(45deg);
}

.modal-close::after {
    transform: rotate(-45deg);
}

.modal-symbol {
    width: 76px;
    height: 76px;
    margin: 8px auto 18px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(242, 13, 38, 0.44);
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(217, 4, 41, 0.16), rgba(255, 255, 255, 0.03));
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.modal-symbol img {
    width: 60px;
    height: 60px;
    aspect-ratio: 1;
    object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.26));
}

.modal-card h2 {
    font-size: 2rem;
}

.modal-copy {
    margin: 10px 0 22px;
    color: var(--muted);
    line-height: 1.5;
}

.access-console {
    min-width: 0;
    display: grid;
    gap: 12px;
    text-align: left;
}

.access-console h2 {
    font-size: 1.7rem;
}

.access-console label {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 840;
}

.input-frame {
    min-width: 0;
    margin-bottom: 2px;
    padding: 1px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(242, 13, 38, 0.76), rgba(255, 255, 255, 0.12));
}

.input-frame input {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    border: 0;
    border-radius: 7px;
    padding: 0 16px;
    background: #080809;
    color: var(--text);
    outline: none;
}

.access-status {
    min-height: 40px;
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

body.modal-open {
    overflow: hidden;
}

body.modal-open .site-bar {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.partners-footer {
    width: min(1500px, calc(100% - 32px));
    min-width: 0;
    min-height: 0;
    margin: 64px auto 0;
    padding: 36px 0 calc(42px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(220px, 0.7fr) minmax(360px, 1fr);
    gap: 26px;
    align-items: center;
    border-top: 1px solid var(--line);
}

.footer-brand {
    min-width: 0;
    display: inline-grid;
    align-items: center;
    justify-items: start;
    text-decoration: none;
}

.footer-brand img {
    width: clamp(190px, 17vw, 252px);
    max-width: 100%;
    height: auto;
    max-height: 82px;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(242, 13, 38, 0.2));
}

.partners-footer > p {
    max-width: 320px;
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 780;
    line-height: 1.45;
    text-align: left;
    text-transform: uppercase;
}

.footer-links {
    min-width: 0;
    display: grid;
    align-items: center;
    justify-content: flex-end;
    justify-items: end;
    gap: 14px;
}

.footer-links > nav:not(.footer-socials) {
    display: flex;
    justify-content: flex-end;
    gap: 6px 14px;
    flex-wrap: wrap;
}

.footer-links > nav:not(.footer-socials) a {
    min-width: 44px;
    min-height: 38px;
    display: inline-grid;
    place-items: center;
    padding: 0 2px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 820;
}

.footer-links > nav:not(.footer-socials) a:hover {
    color: var(--text);
}

.footer-socials {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.footer-social-button {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(150, 150, 157, 0.28);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    transition: transform 240ms ease, border-color 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.footer-social-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--red);
    opacity: 0;
    transform: scale(0.55);
    transition: opacity 240ms ease, transform 240ms ease;
}

.footer-social-button img {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
    object-fit: contain;
    opacity: 0.78;
    transition: filter 240ms ease, opacity 240ms ease, transform 240ms ease;
}

.footer-social-button:hover,
.footer-social-button:focus-visible {
    border-color: var(--red);
    background: rgba(242, 13, 38, 0.1);
    box-shadow: 0 14px 28px rgba(242, 13, 38, 0.22);
    transform: translateY(-3px);
}

.footer-social-button:hover::before,
.footer-social-button:focus-visible::before {
    opacity: 0.12;
    transform: scale(1);
}

.footer-social-button:hover img,
.footer-social-button:focus-visible img {
    opacity: 1;
    transform: scale(1.08);
}

.footer-links > span {
    color: var(--soft);
    font-size: 0.76rem;
    text-align: right;
}

:focus-visible {
    outline: 3px solid rgba(242, 13, 38, 0.92);
    outline-offset: 3px;
}

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

    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
}

/* Phase 2H.6 system compactness and smoother scroll reveal. */
.system-grid {
    grid-template-columns: minmax(270px, .52fr) minmax(0, 1.48fr);
    gap: clamp(28px, 3.2vw, 46px);
}

.system-copy {
    top: 96px;
    max-width: 420px;
    padding: 8px 0 12px 18px;
}

.system-copy h2 {
    max-width: 8.5em;
    font-size: clamp(2.45rem, 4.1vw, 3.82rem);
    line-height: .99;
}

.system-copy p {
    max-width: 34ch;
    margin-top: 16px;
    font-size: .98rem;
    line-height: 1.48;
}

.module-grid {
    gap: clamp(12px, 1.2vw, 16px);
}

.module-grid article {
    min-height: clamp(206px, 15.5vw, 236px);
    padding: clamp(18px, 1.25vw, 22px);
    border-radius: 8px;
    contain: layout paint style;
}

.module-grid article::before {
    top: -36px;
    right: -34px;
    width: 116px;
    height: 116px;
    opacity: .44;
}

.module-grid article::after {
    right: 22px;
    bottom: 68px;
    width: 40px;
    height: 40px;
    opacity: .26;
}

.module-grid article:nth-child(2)::before,
.module-grid article:nth-child(5)::before {
    bottom: -42px;
}

.module-grid article:nth-child(3)::after,
.module-grid article:nth-child(6)::after {
    width: 34px;
    height: 68px;
}

.module-meta {
    min-height: 54px;
    align-items: flex-start;
}

.module-meta > span:first-child {
    gap: 10px;
    font-size: .86rem;
}

.module-meta > span:first-child::after {
    width: 28px;
    height: 2px;
}

.module-icon {
    width: clamp(52px, 4.2vw, 62px);
    height: clamp(52px, 4.2vw, 62px);
    padding: 7px;
    border-radius: 12px;
}

.module-icon img {
    transform: scale(.82);
}

.module-grid strong {
    max-width: 13ch;
    margin-top: clamp(18px, 2.2vw, 28px);
    font-size: clamp(1.22rem, 1.58vw, 1.55rem);
    line-height: 1.06;
}

.module-grid p {
    max-width: 19ch;
    margin-top: 8px;
    padding-right: 54px;
    font-size: .9rem;
    line-height: 1.38;
}

.module-arrow {
    width: 38px;
    height: 38px;
    right: 16px;
    bottom: 16px;
    padding: 10px;
}

@media (hover: hover) and (pointer: fine) {
    .module-grid article:hover {
        transform: translateY(-3px);
    }

    .module-grid article:hover::before {
        transform: translate3d(-4px, 5px, 0) scale(1.025);
        opacity: .58;
    }

    .module-grid article:hover .module-icon img {
        transform: scale(.86) translateY(-1px);
    }
}

[data-reveal] {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(.992);
    filter: none;
    transition:
        opacity 500ms var(--pp-ease),
        transform 500ms var(--pp-ease);
    will-change: opacity, transform;
}

[data-reveal="card"] {
    transform: translate3d(0, 14px, 0) scale(.992);
    transition-duration: 460ms;
}

.module-grid [data-reveal="card"]::before,
.module-grid [data-reveal="card"]::after {
    opacity: 0;
    transform: translate3d(0, 6px, 0) scale(.96);
    transition:
        opacity 460ms var(--pp-ease),
        transform 460ms var(--pp-ease);
}

.module-grid [data-reveal="card"].is-visible::before {
    opacity: .44;
    transform: none;
}

.module-grid [data-reveal="card"].is-visible::after {
    opacity: .26;
    transform: none;
}

.department-grid [data-reveal="card"]:nth-child(2),
.module-grid [data-reveal="card"]:nth-child(2) { transition-delay: 45ms; }
.department-grid [data-reveal="card"]:nth-child(3),
.module-grid [data-reveal="card"]:nth-child(3) { transition-delay: 90ms; }
.department-grid [data-reveal="card"]:nth-child(4),
.module-grid [data-reveal="card"]:nth-child(4) { transition-delay: 135ms; }
.module-grid [data-reveal="card"]:nth-child(5) { transition-delay: 180ms; }
.module-grid [data-reveal="card"]:nth-child(6) { transition-delay: 225ms; }

@media (max-width: 1180px) {
    .system-copy {
        max-width: 620px;
    }

    .system-copy h2 {
        max-width: 11em;
    }
}

@media (max-width: 980px) {
    .module-grid article {
        min-height: 210px;
    }
}

@media (max-width: 700px) {
    .system-copy h2 {
        font-size: clamp(2.05rem, 9vw, 2.72rem);
    }

    .system-copy p {
        font-size: .94rem;
    }

    .module-grid article {
        min-height: 194px;
    }

    .module-grid strong {
        margin-top: 16px;
        max-width: 18ch;
    }

    .module-grid p {
        max-width: 28ch;
    }
}

@media (max-width: 430px) {
    .module-grid article {
        min-height: 188px;
        padding: 18px;
    }

    .module-icon {
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 980px) {
    .site-bar {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .menu-toggle {
        display: grid;
    }

    .site-nav {
        position: fixed;
        top: calc(96px + env(safe-area-inset-top));
        right: max(14px, env(safe-area-inset-right));
        width: min(360px, calc(100% - 28px - env(safe-area-inset-left) - env(safe-area-inset-right)));
        max-height: calc(100dvh - 112px - env(safe-area-inset-top));
        padding: 18px;
        display: flex;
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        overflow-y: auto;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(8, 8, 9, 0.96);
        box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
        backdrop-filter: blur(10px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-12px) scale(0.96);
        transform-origin: calc(100% - 28px) top;
        transition: opacity 280ms ease, visibility 280ms ease, transform 360ms ease;
    }

    .menu-open .site-nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .site-nav a,
    .mobile-nav-primary {
        width: 100%;
        justify-content: flex-start;
        min-height: 50px;
    }

    .mobile-nav-primary {
        display: grid;
        place-items: center;
        justify-content: center;
    }

    .site-actions {
        display: none;
    }

    .hero-stage {
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .hero-media {
        min-height: 520px;
    }

    .system-copy {
        position: static;
    }

    h1 {
        font-size: 3.65rem;
    }

    h2 {
        font-size: 2.55rem;
    }

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

    .system-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .partners-footer {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 20px;
        text-align: center;
    }

    .footer-brand {
        justify-items: center;
    }

    .partners-footer > p {
        max-width: 520px;
        text-align: center;
    }

    .footer-links {
        width: 100%;
        justify-content: center;
        justify-items: center;
    }

    .footer-links > nav:not(.footer-socials),
    .footer-socials {
        justify-content: center;
    }

    .footer-links > span {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .site-bar,
    .partners-page,
    .partners-footer {
        width: min(100% - 20px, 1200px);
    }

    .site-bar {
        margin-top: 10px;
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 74px;
        padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
    }

    .hero-actions,
    .support-band,
    .partners-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .site-actions {
        display: none;
    }

    .brand-link img {
        width: min(224px, 100%);
        max-width: 100%;
        max-height: 58px;
    }

    .partners-page {
        padding-top: 24px;
    }

    .hero-stage {
        min-height: 0;
    }

    .hero-copy,
    .hero-media,
    .support-band {
        padding: 24px;
    }

    .hero-copy {
        min-height: 500px;
    }

    .hero-media {
        min-height: 500px;
    }

    h1 {
        font-size: 2.85rem;
    }

    h2 {
        font-size: 2rem;
    }

    .department-grid,
    .module-grid {
        grid-template-columns: 1fr;
    }

    .footer-links,
    .footer-links > nav,
    .footer-socials {
        width: 100%;
        justify-content: center;
        justify-items: center;
    }

    .department-card {
        min-height: 330px;
    }

    .module-grid article {
        min-height: 160px;
    }

    .symbol-mark {
        width: min(340px, 76%);
    }

    .command-panel {
        width: auto;
        left: 18px;
        right: 18px;
        bottom: 18px;
    }
}

@media (max-width: 430px) {
    .command-panel__grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .command-panel__grid p {
        padding: 10px 6px;
    }
}

@media (max-width: 360px) {
    h1 {
        font-size: 2.38rem;
    }

    .hero-copy,
    .hero-media,
    .support-band {
        padding: 18px;
    }

    .command-panel {
        left: 14px;
        right: 14px;
    }

    .brand-link img,
    .footer-brand img {
        width: min(190px, 100%);
        max-width: 100%;
    }

    .site-nav a,
    .mobile-nav-primary {
        padding-inline: 12px;
        font-size: 0.9rem;
    }
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes section-appear {
    from {
        opacity: 0;
        transform: translateY(28px);
        filter: saturate(0.82);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: saturate(1);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes float-mark {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes orbit-dot {
    0%,
    100% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(16px, 20px);
    }
    66% {
        transform: translate(-18px, 12px);
    }
}

@keyframes slow-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes scan-line {
    0%,
    100% {
        transform: scaleX(0.74);
        opacity: 0.55;
    }
    50% {
        transform: scaleX(1);
        opacity: 1;
    }
}

/* Phase 2H visual direction: editorial system, restrained materials, and clear motion. */
:root {
    font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ink: #f7f7f9;
    --muted: #b7b7c2;
    --quiet: #81818d;
    --hairline: rgba(255, 255, 255, .14);
    --panel: rgba(14, 15, 19, .78);
}

body {
    background:
        linear-gradient(90deg, rgba(4, 5, 8, .96), rgba(4, 5, 8, .54) 52%, rgba(4, 5, 8, .92)),
        linear-gradient(180deg, rgba(4, 5, 8, .16), rgba(4, 5, 8, .97) 82%, #040508),
        url("/assets/partners/partners-background-official.png") center top / cover no-repeat,
        #040508;
}

.site-nav a,
.mobile-nav-primary,
.nav-primary,
.primary-button,
.secondary-button,
.label,
.department-card span,
.partners-footer > p,
.footer-links > nav:not(.footer-socials) a,
.access-console label {
    font-weight: 600;
}

.label {
    letter-spacing: 0;
}

h1,
h2,
h3 {
    font-weight: 500;
}

.site-bar {
    border-color: rgba(255, 255, 255, .16);
    background: rgba(8, 9, 12, .78);
    box-shadow: 0 18px 52px rgba(0, 0, 0, .28);
}

.nav-primary,
.primary-button {
    box-shadow: 0 14px 34px rgba(242, 13, 38, .2);
}

.nav-primary:active,
.primary-button:active,
.secondary-button:active,
.module-arrow:active,
.modal-close:active {
    transform: scale(.97);
}

.hero-stage {
    gap: 18px;
}

.hero-copy,
.hero-media {
    border-color: rgba(255, 255, 255, .13);
    background-color: var(--panel);
}

.hero-copy {
    padding: 64px 62px;
}

.hero-copy h1 {
    max-width: 9ch;
    font-size: 4.75rem;
    line-height: .98;
}

.hero-text {
    max-width: 46ch;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.58;
}

.hero-media {
    background:
        radial-gradient(circle at 50% 38%, rgba(242, 13, 38, .5), transparent 26rem),
        linear-gradient(145deg, rgba(74, 7, 17, .88), rgba(7, 8, 11, .94) 68%),
        #08090d;
}

.hero-media::before {
    inset: 8%;
    border-color: rgba(255, 255, 255, .11);
}

.hero-orbit {
    border-color: rgba(242, 13, 38, .27);
}

.departments,
.system-grid,
.support-band {
    margin-top: 120px;
}

.section-intro {
    max-width: 56ch;
}

.section-intro h2 {
    font-size: 3.2rem;
    line-height: 1;
}

.department-grid {
    gap: 18px;
}

.department-card {
    border-color: rgba(255, 255, 255, .13);
    box-shadow: 0 22px 54px rgba(0, 0, 0, .24);
}

.department-card span {
    font-size: 1.04rem;
}

.system-grid {
    grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
    gap: 56px;
}

.system-copy {
    padding: 14px 0 14px 20px;
}

.system-copy h2 {
    max-width: 8.5ch;
    font-size: 4.05rem;
    line-height: .96;
}

.system-copy p {
    max-width: 38ch;
    font-size: 1rem;
    line-height: 1.58;
}

.system-copy .primary-button {
    margin-top: 30px;
}

.module-grid {
    gap: 18px;
}

.module-grid article {
    min-height: 224px;
    padding: 22px;
    position: relative;
    overflow: hidden;
    border-color: color-mix(in srgb, var(--accent) 58%, rgba(255,255,255,.14));
    border-radius: 14px;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--accent) 13%, transparent), transparent 55%),
        rgba(10, 11, 15, .84);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .2);
}

.module-grid article::before {
    position: absolute;
    top: -38px;
    right: -30px;
    width: 108px;
    height: 108px;
    margin: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 34%, transparent);
    opacity: .72;
    box-shadow: none;
}

.module-grid article:nth-child(even)::before {
    border-radius: 0 0 0 100%;
}

.module-meta {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.module-meta > span {
    color: #d8d8df;
    font-size: .9rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.module-meta > span::after {
    content: "";
    display: inline-block;
    width: 34px;
    height: 3px;
    margin-left: 12px;
    vertical-align: middle;
    border-radius: 999px;
    background: var(--accent);
}

.module-icon {
    width: 48px;
    height: 48px;
    padding: 12px;
    display: grid;
    place-items: center;
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent) 28%, rgba(255,255,255,.12));
    border-radius: 14px;
    background: color-mix(in srgb, var(--accent) 10%, rgba(255,255,255,.04));
}

.module-icon svg,
.module-arrow svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.module-grid strong {
    margin-top: 28px;
    font-size: 1.24rem;
    font-weight: 600;
}

.module-grid p {
    max-width: 22ch;
    margin-top: 8px;
    font-size: .96rem;
    line-height: 1.45;
}

.module-arrow {
    width: 42px;
    height: 42px;
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 11px;
    display: grid;
    place-items: center;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.module-arrow:hover,
.module-arrow:focus-visible {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 18%, rgba(255,255,255,.06));
    transform: translateY(-2px);
}

.support-band {
    border-color: rgba(255, 255, 255, .13);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)),
        rgba(9, 10, 13, .84);
}

/* Scroll reveal stays compositor-friendly and leaves the hero's existing symbol motion alone. */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 620ms cubic-bezier(.16, 1, .3, 1), transform 620ms cubic-bezier(.16, 1, .3, 1);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

[data-reveal="card"] {
    transition-duration: 560ms;
}

.department-grid [data-reveal="card"]:nth-child(2),
.module-grid [data-reveal="card"]:nth-child(2) { transition-delay: 70ms; }
.department-grid [data-reveal="card"]:nth-child(3),
.module-grid [data-reveal="card"]:nth-child(3) { transition-delay: 140ms; }
.department-grid [data-reveal="card"]:nth-child(4),
.module-grid [data-reveal="card"]:nth-child(4) { transition-delay: 210ms; }
.module-grid [data-reveal="card"]:nth-child(5) { transition-delay: 280ms; }
.module-grid [data-reveal="card"]:nth-child(6) { transition-delay: 350ms; }

@media (max-width: 980px) {
    .hero-copy h1 { font-size: 3.75rem; }
    .system-grid { gap: 36px; }
    .system-copy h2 { font-size: 3.35rem; }
}

@media (max-width: 640px) {
    .hero-copy { padding: 42px 24px 46px; }
    .hero-copy h1 { font-size: 2.9rem; }
    .hero-text { font-size: .98rem; }
    .departments,
    .system-grid,
    .support-band { margin-top: 84px; }
    .section-intro h2 { font-size: 2.45rem; }
    .system-copy { padding: 0 0 8px 14px; }
    .system-copy h2 { font-size: 2.85rem; }
    .module-grid article { min-height: 210px; }
}

@media (max-width: 360px) {
    .hero-copy h1 { font-size: 2.45rem; }
    .system-copy h2 { font-size: 2.45rem; }
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal],
    [data-reveal].is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Phase 2H.5 landing correction: keeps the official symbol animation untouched. */
:root {
    --pp-ease: cubic-bezier(.22, 1, .36, 1);
    --pp-ease-fast: cubic-bezier(.23, 1, .32, 1);
    --pp-card-edge: rgba(255, 255, 255, .13);
    --pp-card-edge-strong: rgba(255, 255, 255, .2);
    --pp-matte: rgba(12, 13, 16, .86);
}

.partners-page {
    width: min(1360px, calc(100% - 48px));
    padding-top: clamp(28px, 4vw, 54px);
}

.site-bar {
    min-height: 76px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .3);
    transition:
        transform 220ms var(--pp-ease-fast),
        background 220ms var(--pp-ease-fast),
        border-color 220ms var(--pp-ease-fast),
        box-shadow 220ms var(--pp-ease-fast);
}

.site-bar.scrolled {
    transform: translateY(-4px);
}

body::after {
    background:
        linear-gradient(120deg, transparent 0 42%, rgba(217, 4, 41, .1) 42.2%, transparent 43% 100%);
}

.section-intro::before,
.system-copy::before {
    width: 1px;
    box-shadow: none;
    opacity: .68;
}

.department-card img {
    filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .34));
}

.partners-footer p {
    text-transform: none;
}

.label {
    color: #ff5a70;
}

.nav-primary,
.mobile-nav-primary,
.primary-button {
    box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
}

.hero-orbit span {
    box-shadow: 0 8px 16px rgba(0, 0, 0, .28);
}

.modal-symbol {
    background: linear-gradient(180deg, rgba(217, 4, 41, .16), rgba(255, 255, 255, .03));
    box-shadow: 0 18px 36px rgba(0, 0, 0, .28);
}

.modal-symbol img {
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .26));
}

.site-nav a,
.mobile-nav-primary,
.nav-primary,
.primary-button,
.secondary-button,
.module-arrow {
    transition:
        transform 160ms var(--pp-ease-fast),
        background 180ms var(--pp-ease-fast),
        border-color 180ms var(--pp-ease-fast),
        color 180ms var(--pp-ease-fast),
        box-shadow 180ms var(--pp-ease-fast);
}

.site-nav a:active,
.mobile-nav-primary:active,
.nav-primary:active,
.primary-button:active,
.secondary-button:active,
.module-arrow:active {
    transform: scale(.975);
}

@media (hover: hover) and (pointer: fine) {
    .site-nav a:hover,
    .mobile-nav-primary:hover,
    .nav-primary:hover,
    .primary-button:hover,
    .secondary-button:hover {
        transform: translateY(-1px);
    }
}

.hero-stage {
    grid-template-columns: minmax(0, .92fr) minmax(390px, 1.08fr);
    gap: clamp(12px, 1.7vw, 22px);
    min-height: clamp(540px, 68vh, 660px);
}

.hero-copy {
    min-height: clamp(540px, 68vh, 660px);
    padding: clamp(38px, 5vw, 68px);
}

.hero-copy h1 {
    max-width: 720px;
    font-size: clamp(3.2rem, 6vw, 5.25rem);
    line-height: .96;
    letter-spacing: 0;
    text-wrap: balance;
}

.hero-text {
    max-width: 48ch;
    margin-top: 22px;
    line-height: 1.52;
}

.hero-actions {
    margin-top: 30px;
}

.hero-media {
    min-height: clamp(540px, 68vh, 660px);
}

.departments,
.system-grid,
.support-band,
.department-card,
.module-grid article {
    animation: none;
}

.departments,
.system-grid,
.support-band {
    margin-top: clamp(72px, 9vw, 120px);
}

.section-intro {
    max-width: 760px;
}

.section-intro h2 {
    max-width: 760px;
    font-size: clamp(2.35rem, 4.25vw, 3.75rem);
    line-height: 1;
    letter-spacing: 0;
    text-wrap: balance;
}

.department-grid {
    gap: clamp(14px, 1.5vw, 20px);
}

.department-card {
    min-height: clamp(300px, 32vw, 382px);
    border-radius: 8px;
    border-color: var(--pp-card-edge);
    background: rgba(11, 12, 15, .82);
    box-shadow: 0 24px 58px rgba(0, 0, 0, .24);
    transition:
        transform 220ms var(--pp-ease-fast),
        border-color 220ms var(--pp-ease-fast),
        box-shadow 220ms var(--pp-ease-fast);
}

.department-card::after {
    opacity: .9;
}

@media (hover: hover) and (pointer: fine) {
    .department-card:hover {
        transform: translateY(-4px);
        border-color: rgba(255, 255, 255, .22);
        box-shadow: 0 30px 76px rgba(0, 0, 0, .32);
    }
}

.system-grid {
    grid-template-columns: minmax(340px, .72fr) minmax(0, 1.28fr);
    gap: clamp(34px, 4.6vw, 64px);
    align-items: start;
}

.system-copy {
    position: sticky;
    top: 108px;
    padding: 12px 0 18px 24px;
}

.system-copy::before {
    opacity: .95;
}

.system-copy h2 {
    max-width: 660px;
    font-size: clamp(3rem, 5.1vw, 4.85rem);
    line-height: .98;
    letter-spacing: 0;
    text-wrap: balance;
}

.system-copy p {
    max-width: 42ch;
    margin-top: 20px;
    font-size: clamp(1rem, 1.05vw, 1.08rem);
    line-height: 1.52;
}

.system-copy .primary-button {
    display: none;
}

.module-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 1.4vw, 20px);
}

.module-grid article {
    --accent: #f2203d;
    min-height: clamp(246px, 18vw, 282px);
    padding: clamp(20px, 1.65vw, 26px);
    border-radius: 8px;
    border-color: color-mix(in srgb, var(--accent) 46%, var(--pp-card-edge));
    background:
        linear-gradient(150deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent 58%),
        linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .018)),
        var(--pp-matte);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .22);
    contain: layout paint;
    transition:
        transform 220ms var(--pp-ease-fast),
        border-color 220ms var(--pp-ease-fast),
        box-shadow 220ms var(--pp-ease-fast),
        background 220ms var(--pp-ease-fast);
}

.module-grid article:nth-child(1) { --accent: #ff3157; }
.module-grid article:nth-child(2) { --accent: #ff9f0a; }
.module-grid article:nth-child(3) { --accent: #9b5cff; }
.module-grid article:nth-child(4) { --accent: #20d979; }
.module-grid article:nth-child(5) { --accent: #26a8ff; }
.module-grid article:nth-child(6) { --accent: #f2203d; }

.module-grid article::before {
    top: -34px;
    right: -26px;
    width: 128px;
    height: 128px;
    border-radius: 0 0 0 100%;
    background: color-mix(in srgb, var(--accent) 36%, transparent);
    opacity: .72;
    box-shadow: none;
    transform: translate3d(0, 0, 0);
    transition: opacity 680ms var(--pp-ease), transform 680ms var(--pp-ease);
}

.module-grid article::after {
    content: "";
    position: absolute;
    right: clamp(42px, 4vw, 64px);
    bottom: clamp(54px, 4.5vw, 72px);
    width: 54px;
    height: 54px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--accent) 18%, transparent);
    opacity: .52;
    transform: rotate(0deg);
    transition: opacity 680ms var(--pp-ease), transform 680ms var(--pp-ease);
}

.module-grid article:nth-child(2)::before,
.module-grid article:nth-child(5)::before {
    border-radius: 100% 0 0 0;
    top: auto;
    bottom: -32px;
}

.module-grid article:nth-child(3)::after,
.module-grid article:nth-child(6)::after {
    width: 42px;
    height: 92px;
}

.module-grid article > * {
    position: relative;
    z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
    .module-grid article:hover {
        transform: translateY(-5px);
        border-color: color-mix(in srgb, var(--accent) 72%, var(--pp-card-edge-strong));
        box-shadow: 0 30px 82px rgba(0, 0, 0, .32);
    }

    .module-grid article:hover::before {
        transform: translate3d(-8px, 8px, 0) scale(1.04);
        opacity: .9;
    }

    .module-grid article:hover .module-icon img {
        transform: scale(.94) translateY(-1px);
    }
}

.module-meta {
    align-items: center;
}

.module-meta > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: rgba(248, 248, 250, .8);
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: 0;
}

.module-meta > span:first-child::after {
    width: 34px;
    height: 3px;
    margin-left: 0;
    background: var(--accent);
}

.module-icon {
    width: clamp(64px, 5.4vw, 78px);
    height: clamp(64px, 5.4vw, 78px);
    padding: 8px;
    border-radius: 14px;
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 30%, rgba(255, 255, 255, .12));
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025)),
        color-mix(in srgb, var(--accent) 13%, rgba(255, 255, 255, .035));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
    overflow: hidden;
}

.module-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: scale(.88);
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .22));
    transition: transform 220ms var(--pp-ease-fast), filter 220ms var(--pp-ease-fast);
}

.module-icon::after {
    content: none;
}

.module-grid strong {
    margin-top: clamp(30px, 4.2vw, 46px);
    max-width: 12ch;
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: 0;
}

.module-grid p {
    max-width: 22ch;
    margin-top: 10px;
    padding-right: 48px;
    font-size: clamp(.96rem, 1vw, 1.02rem);
    line-height: 1.46;
    color: rgba(248, 248, 250, .72);
}

.module-arrow {
    width: 44px;
    height: 44px;
    right: 18px;
    bottom: 18px;
    color: #fff;
    border-color: rgba(255, 255, 255, .18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .035)),
        rgba(20, 22, 28, .74);
    backdrop-filter: blur(16px) saturate(150%);
}

.module-arrow:hover,
.module-arrow:focus-visible {
    border-color: color-mix(in srgb, var(--accent) 78%, #fff);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--accent) 24%, rgba(255, 255, 255, .12)), rgba(255, 255, 255, .04)),
        rgba(20, 22, 28, .76);
    transform: translateY(-2px);
}

.support-band {
    min-height: clamp(270px, 28vw, 360px);
    display: grid;
    place-items: center;
    padding: clamp(48px, 7vw, 86px) clamp(22px, 5vw, 72px);
    text-align: center;
    border-radius: 18px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .078), rgba(255, 255, 255, .018)),
        rgba(9, 10, 13, .86);
    box-shadow: 0 28px 82px rgba(0, 0, 0, .28);
}

.support-band::before {
    inset: auto -5% -36% auto;
    width: min(420px, 55vw);
    height: min(420px, 55vw);
    border-radius: 50% 0 0 0;
    background: linear-gradient(135deg, rgba(242, 32, 61, .24), transparent 68%);
    opacity: .9;
}

.support-band::after {
    top: auto;
    left: 50%;
    bottom: 38px;
    width: min(230px, 48%);
    height: 2px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(242, 32, 61, .95), transparent);
    box-shadow: none;
}

.support-band__content {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    gap: 14px;
    max-width: 720px;
}

.support-band .label {
    margin: 0;
}

.support-band h2 {
    max-width: 700px;
    margin: 0;
    font-size: clamp(2.35rem, 4.7vw, 4.35rem);
    line-height: .98;
    letter-spacing: 0;
    text-wrap: balance;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(32px) scale(.985);
    filter: blur(10px);
    transition:
        opacity 680ms var(--pp-ease),
        transform 680ms var(--pp-ease),
        filter 680ms var(--pp-ease);
    will-change: opacity, transform, filter;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
    filter: none;
}

[data-reveal="card"] {
    transform: translateY(26px) scale(.982);
    transition-duration: 620ms;
}

.module-grid [data-reveal="card"]::before,
.module-grid [data-reveal="card"]::after {
    opacity: 0;
    transform: translateY(10px) scale(.9);
}

.module-grid [data-reveal="card"].is-visible::before,
.module-grid [data-reveal="card"].is-visible::after {
    opacity: .72;
    transform: none;
}

.department-grid [data-reveal="card"]:nth-child(2),
.module-grid [data-reveal="card"]:nth-child(2) { transition-delay: 80ms; }
.department-grid [data-reveal="card"]:nth-child(3),
.module-grid [data-reveal="card"]:nth-child(3) { transition-delay: 160ms; }
.department-grid [data-reveal="card"]:nth-child(4),
.module-grid [data-reveal="card"]:nth-child(4) { transition-delay: 240ms; }
.module-grid [data-reveal="card"]:nth-child(5) { transition-delay: 320ms; }
.module-grid [data-reveal="card"]:nth-child(6) { transition-delay: 400ms; }

@media (max-width: 1180px) {
    .hero-stage {
        grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
    }

    .system-grid {
        grid-template-columns: 1fr;
    }

    .system-copy {
        position: static;
        max-width: 760px;
    }

    .system-copy h2 {
        max-width: 760px;
    }
}

@media (max-width: 980px) {
    .partners-page {
        width: min(100% - 32px, 1360px);
    }

    .hero-stage {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hero-copy,
    .hero-media {
        min-height: clamp(460px, 62vh, 560px);
    }

    .hero-copy h1 {
        font-size: clamp(3rem, 8vw, 4.8rem);
    }

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

@media (max-width: 700px) {
    .partners-page {
        width: min(100% - 22px, 1360px);
    }

    .site-bar {
        min-height: 70px;
    }

    .hero-copy {
        padding: 42px 24px 46px;
    }

    .hero-copy,
    .hero-media {
        min-height: 440px;
    }

    .hero-copy h1 {
        max-width: 11ch;
        font-size: clamp(2.65rem, 12vw, 3.45rem);
    }

    .hero-text {
        max-width: 34ch;
        font-size: .98rem;
    }

    .departments,
    .system-grid,
    .support-band {
        margin-top: 84px;
    }

    .section-intro h2,
    .system-copy h2,
    .support-band h2 {
        font-size: clamp(2.25rem, 10vw, 3rem);
    }

    .system-copy {
        padding-left: 16px;
    }

    .module-grid {
        grid-template-columns: 1fr;
    }

    .module-grid article {
        min-height: 224px;
    }

    .module-grid strong {
        max-width: 18ch;
    }

    .support-band {
        min-height: 260px;
        border-radius: 14px;
    }
}

@media (max-width: 430px) {
    .hero-copy {
        padding: 36px 20px 40px;
    }

    .hero-copy h1 {
        font-size: clamp(2.35rem, 12vw, 3rem);
    }

    .hero-actions {
        align-items: stretch;
    }

    .module-grid article {
        min-height: 216px;
        padding: 20px;
    }

    .module-icon {
        width: 62px;
        height: 62px;
    }

    .module-grid p {
        max-width: 24ch;
    }
}

@media (max-width: 360px) {
    .partners-page {
        width: min(100% - 18px, 1360px);
    }

    .hero-copy h1,
    .system-copy h2,
    .section-intro h2,
    .support-band h2 {
        font-size: 2.25rem;
    }

    .module-grid article {
        min-height: 208px;
    }
}

/* Phase 2H.7 final compact system polish: kept last so legacy landing blocks cannot enlarge it again. */
.system-grid {
    grid-template-columns: minmax(440px, .7fr) minmax(0, 1.3fr);
    gap: clamp(28px, 3vw, 44px);
}

.system-copy {
    top: 88px;
    max-width: 520px;
    padding: 6px 0 10px 18px;
}

.system-copy h2 {
    max-width: 8.7em;
    font-size: clamp(2.45rem, 3.4vw, 3.32rem);
    line-height: 1;
}

.system-copy p {
    max-width: 34ch;
    margin-top: 16px;
    font-size: .98rem;
    line-height: 1.48;
}

.module-grid {
    gap: clamp(12px, 1.15vw, 16px);
}

.module-grid article {
    min-height: clamp(184px, 12vw, 210px);
    padding: clamp(18px, 1.25vw, 22px);
    border-radius: 8px;
    contain: layout paint style;
}

.module-grid article::before {
    top: -36px;
    right: -34px;
    width: 112px;
    height: 112px;
    opacity: .5;
}

.module-grid article::after {
    right: 24px;
    bottom: 58px;
    width: 36px;
    height: 36px;
    opacity: .22;
}

.module-grid article:nth-child(2)::before,
.module-grid article:nth-child(5)::before {
    bottom: -40px;
}

.module-grid article:nth-child(3)::after,
.module-grid article:nth-child(6)::after {
    width: 32px;
    height: 64px;
}

.module-meta {
    display: block;
    min-height: 0;
    padding-right: 70px;
}

.module-meta > span:first-child {
    gap: 10px;
    font-size: .86rem;
}

.module-meta > span:first-child::after {
    width: 28px;
    height: 2px;
}

.module-grid article .module-icon {
    position: absolute;
    top: 18px;
    right: 18px;
    box-sizing: border-box;
    width: clamp(48px, 3.5vw, 56px);
    height: clamp(48px, 3.5vw, 56px);
    padding: 7px;
    border-radius: 12px;
}

.module-icon img {
    transform: scale(.82);
}

.module-grid strong {
    max-width: min(13ch, calc(100% - 76px));
    margin-top: clamp(34px, 2.3vw, 42px);
    font-size: clamp(1.16rem, 1.32vw, 1.42rem);
    line-height: 1.06;
}

.module-grid p {
    max-width: min(19ch, calc(100% - 62px));
    margin-top: 7px;
    padding-right: 0;
    font-size: .87rem;
    line-height: 1.38;
}

.module-grid article > .module-arrow {
    position: absolute;
    left: auto;
    right: 16px;
    bottom: 16px;
    box-sizing: border-box;
    width: 36px;
    height: 36px;
    padding: 9px;
}

@media (hover: hover) and (pointer: fine) {
    .module-grid article:hover {
        transform: translateY(-3px);
    }

    .module-grid article:hover::before {
        transform: translate3d(-4px, 5px, 0) scale(1.025);
        opacity: .62;
    }

    .module-grid article:hover .module-icon img {
        transform: scale(.86) translateY(-1px);
    }
}

[data-reveal] {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(.992);
    filter: none;
    transition: opacity 500ms var(--pp-ease), transform 500ms var(--pp-ease);
    will-change: opacity, transform;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
    filter: none;
}

[data-reveal="card"] {
    transform: translate3d(0, 14px, 0) scale(.992);
    transition-duration: 460ms;
}

[data-reveal="card"]::before,
[data-reveal="card"]::after {
    transform: translate3d(0, 6px, 0) scale(.96);
    transition-duration: 460ms;
}

[data-reveal="card"].is-visible::before,
[data-reveal="card"].is-visible::after {
    transform: none;
}

[data-reveal-delay="1"] { transition-delay: 45ms; }
[data-reveal-delay="2"] { transition-delay: 90ms; }
[data-reveal-delay="3"] { transition-delay: 135ms; }
[data-reveal-delay="4"] { transition-delay: 180ms; }
[data-reveal-delay="5"] { transition-delay: 225ms; }

@media (max-width: 1180px) {
    .system-grid {
        grid-template-columns: 1fr;
    }

    .system-copy {
        max-width: 620px;
    }

    .system-copy h2 {
        max-width: 11em;
    }
}

@media (max-width: 980px) {
    .module-grid article {
        min-height: 190px;
    }
}

@media (max-width: 700px) {
    .system-copy h2 {
        font-size: clamp(2.05rem, 9vw, 2.72rem);
    }

    .system-copy p {
        font-size: .94rem;
    }

    .module-grid article {
        min-height: 184px;
    }

    .module-grid strong {
        max-width: min(18ch, calc(100% - 76px));
        margin-top: 16px;
    }

    .module-grid p {
        max-width: min(26ch, calc(100% - 62px));
    }
}

@media (max-width: 430px) {
    .module-grid article {
        min-height: 180px;
        padding: 18px;
    }

    .module-icon {
        width: 48px;
        height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-nav a,
    .mobile-nav-primary,
    .nav-primary,
    .primary-button,
    .secondary-button,
    .module-arrow,
    .department-card,
    .module-grid article,
    .module-icon img,
    [data-reveal],
    [data-reveal].is-visible {
        transform: none;
        filter: none;
        transition: opacity 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease;
    }

    [data-reveal],
    [data-reveal].is-visible {
        opacity: 1;
    }
}

/* Phase 2H.8 final local reveal and icon polish: visible fallback, animated only after JS arms reveal-ready. */
[data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
}

html.reveal-ready [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(.992);
    filter: none;
    transition: opacity 500ms var(--pp-ease), transform 500ms var(--pp-ease);
    will-change: opacity, transform;
}

html.reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    filter: none;
}

html.reveal-ready .departments[data-reveal],
html.reveal-ready .system-grid[data-reveal],
html.reveal-ready .support-band[data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
    will-change: auto;
}

html.reveal-ready [data-reveal="card"] {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(.992);
    transition-duration: 460ms;
}

html.reveal-ready [data-reveal="card"].is-visible {
    opacity: 1;
    transform: none;
}

html.reveal-ready [data-reveal="card"]::before,
html.reveal-ready [data-reveal="card"]::after {
    transform: translate3d(0, 6px, 0) scale(.96);
    transition-duration: 460ms;
}

html.reveal-ready [data-reveal="card"].is-visible::before,
html.reveal-ready [data-reveal="card"].is-visible::after {
    transform: none;
}

.module-grid article .module-icon {
    box-sizing: border-box;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    width: clamp(62px, 4.2vw, 68px);
    height: auto;
    min-width: 0;
    min-height: 0;
    padding: 8px;
    line-height: 0;
    overflow: clip;
    contain: paint;
}

.module-icon img {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
    transform: scale(.84);
    transform-origin: center;
}

.module-icon::after {
    content: none;
}

@media (hover: hover) and (pointer: fine) {
    .module-grid article:hover .module-icon img {
        transform: scale(.88) translateY(-1px);
    }
}

@media (max-width: 430px) {
    .module-grid article .module-icon {
        width: 62px;
        padding: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.reveal-ready [data-reveal],
    html.reveal-ready [data-reveal].is-visible,
    html.reveal-ready [data-reveal="card"],
    html.reveal-ready [data-reveal="card"].is-visible {
        opacity: 1;
        transform: none;
        filter: none;
        transition: opacity 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease;
    }
}
