/* ═══ Base ═══ */
html {
    scroll-behavior: smooth;
}
body {
    background-color: #111111;
    color: #ffffff;
}

@font-face {
    font-family: 'JosefKPanEuropean';
    src: url("josefkpaneuropean2.otf") format("opentype");
    font-display: swap;
}

:root {
    --brand-bg: #0f141d;
    --brand-surface: #141c29;
    --brand-surface-soft: rgba(255, 255, 255, 0.06);
    --brand-text: #e9edf6;
    --brand-muted: rgba(233, 237, 246, 0.72);
    --brand-accent: #2f6ec4;
    --brand-accent-soft: rgba(47, 110, 196, 0.25);
}

html[data-variant="institutional"] {
    --brand-bg: #0f141d;
    --brand-surface: #141c29;
    --brand-surface-soft: rgba(214, 226, 250, 0.08);
    --brand-text: #e7ecf7;
    --brand-muted: rgba(220, 229, 245, 0.75);
    --brand-accent: #3d73bb;
    --brand-accent-soft: rgba(61, 115, 187, 0.3);
}

html[data-variant="campaign"] {
    --brand-bg: #111018;
    --brand-surface: #18172a;
    --brand-surface-soft: rgba(255, 255, 255, 0.1);
    --brand-text: #f3f0ff;
    --brand-muted: rgba(236, 230, 255, 0.78);
    --brand-accent: #d04b39;
    --brand-accent-soft: rgba(208, 75, 57, 0.33);
}

::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

.theme-toggle-btn {
    position: relative;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: #f8f8f8;
    overflow: hidden;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
}

.theme-toggle-btn:focus-visible {
    outline: 2px solid #1e5aa8;
    outline-offset: 2px;
}

.theme-icon {
    position: absolute;
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.theme-icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-icon-moon {
    opacity: 0;
    transform: rotate(80deg) scale(0.75);
}

html.dark .theme-icon-sun {
    opacity: 0;
    transform: rotate(-80deg) scale(0.75);
}

html.dark .theme-icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

html:not(.dark) .theme-toggle-btn {
    color: #242322;
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.18);
}

html:not(.dark) .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.3);
}
.skip-link {
    position: fixed;
    left: 1rem;
    top: -4rem;
    z-index: 10001;
    background: #1e5aa8;
    color: #ffffff;
    padding: 0.7rem 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    transition: top 0.25s ease;
}
.skip-link:focus {
    top: 1rem;
}
body ::selection {
    background-color: rgba(30, 90, 168, 0.3);
}

.site-nav {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1200;
    --nav-reveal-duration: 620ms;
    --nav-reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 1;
    transform: translateY(0);
    border-bottom: 1px solid transparent;
    transition:
        background-color 0.52s var(--nav-reveal-ease),
        border-color 0.52s var(--nav-reveal-ease),
        box-shadow 0.52s var(--nav-reveal-ease),
        backdrop-filter 0.52s var(--nav-reveal-ease),
        opacity 0.52s var(--nav-reveal-ease),
        transform 0.52s var(--nav-reveal-ease);
    backdrop-filter: blur(10px);
}

.site-nav.nav-at-top {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.site-nav.nav-scrolled {
    background: rgba(8, 14, 26, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.24);
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.site-nav .nav-brand-wrap,
.site-nav .desktop-nav,
.site-nav #mobileMenuBtn {
    visibility: visible;
    transition:
        opacity 0.5s var(--nav-reveal-ease),
        transform 0.62s var(--nav-reveal-ease);
}

.site-nav.nav-at-top .nav-brand-wrap,
.site-nav.nav-at-top .desktop-nav,
.site-nav.nav-at-top #mobileMenuBtn {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-14px);
    pointer-events: none;
}

.site-nav.nav-scrolled .nav-brand-wrap,
.site-nav.nav-scrolled .desktop-nav,
.site-nav.nav-scrolled #mobileMenuBtn {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.site-nav .theme-toggle-btn {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.site-nav.nav-at-top .nav-progress-track {
    opacity: 0;
}

.site-nav .nav-progress-track {
    transition: opacity 0.45s var(--nav-reveal-ease);
}

.nav-brand-text {
    display: inline-flex;
}

.nav-brand-char {
    display: inline-block;
}

.site-nav.brand-reveal .nav-brand-char {
    animation: navBrandSlideBlur 0.6s var(--nav-reveal-ease) both;
    animation-delay: calc(var(--char-index) * 0.032s);
}

.site-nav.nav-reveal .desktop-nav .nav-link,
.site-nav.nav-reveal .desktop-nav .nav-cta,
.site-nav.nav-reveal #mobileMenuBtn {
    animation: navItemReveal var(--nav-reveal-duration) var(--nav-reveal-ease) both;
}

.site-nav.nav-reveal .desktop-nav .nav-link:nth-child(1) { animation-delay: 0.08s; }
.site-nav.nav-reveal .desktop-nav .nav-link:nth-child(2) { animation-delay: 0.13s; }
.site-nav.nav-reveal .desktop-nav .nav-cta { animation-delay: 0.2s; }
.site-nav.nav-reveal #mobileMenuBtn { animation-delay: 0.25s; }

@keyframes navBrandSlideBlur {
    from {
        opacity: 0;
        filter: blur(8px);
        transform: translateX(-12px);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateX(0);
    }
}

@keyframes navItemReveal {
    from {
        opacity: 0;
        filter: blur(10px);
        transform: translateY(-14px) scale(0.985);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1);
    }
}

html:not(.dark) body {
    background: #f4f1e7;
    color: #191919;
}

html:not(.dark) .site-nav {
    background: rgba(244, 241, 231, 0.86) !important;
    border-color: rgba(16, 16, 16, 0.1) !important;
}

html:not(.dark) .site-nav.nav-at-top {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

html:not(.dark) .site-nav.nav-scrolled {
    background: rgba(244, 241, 231, 0.94) !important;
    border-color: rgba(16, 16, 16, 0.16) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

html:not(.dark) #siteNav .text-white,
html:not(.dark) #siteNav .nav-link {
    color: #1e1d1c !important;
}

html:not(.dark) #siteNav .nav-link {
    opacity: 0.84;
}

html:not(.dark) #siteNav .nav-link:hover,
html:not(.dark) #siteNav .nav-link.is-active {
    opacity: 1;
}

html:not(.dark) #siteNav #mobileMenuBtn {
    color: #1e1d1c;
}

html:not(.dark) .nav-progress-track {
    background: rgba(0, 0, 0, 0.08);
}

html:not(.dark) .hero-tone-overlay {
    background: linear-gradient(
        to top,
        rgba(244, 241, 231, 0.95) 0%,
        rgba(244, 241, 231, 0.35) 45%,
        rgba(244, 241, 231, 0.1) 70%,
        rgba(244, 241, 231, 0.05) 100%
    ) !important;
}

html:not(.dark) .hero-heading {
    color: #f5f8ff;
    text-shadow: 0 12px 32px rgba(6, 10, 18, 0.55);
}

html:not(.dark) .hero-heading span {
    color: rgba(209, 223, 247, 0.7) !important;
}

html:not(.dark) .hero-quote {
    color: rgba(227, 237, 252, 0.92) !important;
}

html:not(.dark) .hero-political-bg {
    background:
        radial-gradient(120% 95% at 12% 12%, rgba(99, 151, 217, 0.3) 0%, rgba(10, 24, 45, 0) 58%),
        radial-gradient(95% 120% at 88% 84%, rgba(42, 82, 145, 0.35) 0%, rgba(10, 24, 45, 0) 62%),
        linear-gradient(160deg, #060f1d 0%, #0a1b32 46%, #102746 100%);
}

html:not(.dark) .hero-word-cloud {
    border-color: rgba(178, 205, 237, 0.5);
    background: linear-gradient(120deg, rgba(7, 20, 40, 0.7), rgba(15, 40, 74, 0.55));
}

html:not(.dark) .hero-identity {
    color: #f6f9ff;
}

html:not(.dark) .hero-identity-sub {
    color: rgba(217, 230, 250, 0.94);
}

html:not(.dark) #about {
    background: #ece8df !important;
}

html:not(.dark) #about .text-white,
html:not(.dark) #about h2,
html:not(.dark) #about h3 {
    color: #181818 !important;
}

html:not(.dark) #about .text-gray-400 {
    color: #4a4845 !important;
}

html:not(.dark) #about .border-white\/10 {
    border-color: rgba(23, 22, 20, 0.14) !important;
}

html:not(.dark) section.bg-black,
html:not(.dark) footer#contact {
    background: #e2ddcf !important;
}

html:not(.dark) section.bg-black blockquote,
html:not(.dark) footer#contact .text-white,
html:not(.dark) footer#contact h4,
html:not(.dark) footer#contact .font-serif {
    color: #171717 !important;
}

html:not(.dark) footer#contact .text-gray-500 {
    color: #5c5953 !important;
}

html:not(.dark) footer#contact .text-gray-700 {
    color: #7a7468 !important;
}

html:not(.dark) footer#contact .border-white\/5,
html:not(.dark) footer#contact .border-white\/20 {
    border-color: rgba(17, 17, 17, 0.16) !important;
}

.footer-signature-name {
    margin: 1.15rem auto 0;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    white-space: normal;
    flex-wrap: wrap;
    font-family: 'JosefKPanEuropean', 'Playfair Display', serif;
    font-size: clamp(2rem, 8vw, 3.25rem);
    line-height: 1;
    color: rgba(236, 243, 255, 0.95);
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
}

.quote-signature-name {
    margin-top: 1.4rem;
}

.signature-char {
    display: inline-block;
    opacity: 0;
    filter: blur(5px);
    transform: translate3d(0, 9px, 0) rotate(-4deg);
}

.footer-signature-name.is-writing .signature-char {
    animation: signatureLetterWrite 0.95s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--char-index) * 0.115s);
}

@keyframes signatureLetterWrite {
    from {
        opacity: 0;
        filter: blur(5px);
        transform: translate3d(0, 9px, 0) rotate(-4deg);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
}

html:not(.dark) .footer-signature-name {
    color: #1f2b3f;
    text-shadow: 0 8px 22px rgba(61, 72, 89, 0.2);
}

/* ── DSB Logo under signature ── */
.dsb-logo-wrapper {
    margin: 1.6rem auto 0;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(12px) scale(0.92);
    transition: none;
}

.dsb-logo-wrapper.is-visible {
    animation: dsbLogoReveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dsb-logo {
    width: clamp(130px, 26vw, 220px);
    height: auto;
    opacity: 0.15;
    filter: grayscale(100%) brightness(0.7);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
}

.dsb-logo:hover {
    opacity: 1;
    filter: grayscale(0%) brightness(1);
    transform: scale(1.06);
}

@keyframes dsbLogoReveal {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.92);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Light mode: invert the logo so it's dark */
html:not(.dark) .dsb-logo {
    filter: grayscale(100%) brightness(0.7) invert(1);
}

html:not(.dark) .dsb-logo:hover {
    filter: grayscale(0%) brightness(1) invert(1);
}

html:not(.dark) .mobile-menu {
    background: rgba(246, 242, 233, 0.97);
    border-left-color: rgba(28, 34, 44, 0.15);
    box-shadow: -22px 0 42px rgba(22, 26, 31, 0.15);
}

html:not(.dark) .mobile-nav-link {
    color: rgba(26, 33, 44, 0.92);
    border-color: rgba(17, 24, 36, 0.14);
}

html:not(.dark) .mobile-nav-link:hover,
html:not(.dark) .mobile-nav-link:focus-visible {
    color: #1f4372;
    border-color: rgba(47, 100, 169, 0.5);
}

html:not(.dark) .mobile-nav-cta {
    border-color: rgba(34, 66, 111, 0.34);
    background: rgba(255, 255, 255, 0.55);
    color: #1a355a;
}

html:not(.dark) .mobile-menu-tool-label {
    color: rgba(32, 40, 51, 0.72);
}

html:not(.dark) .mobile-nav-cta:hover {
    background: #2f64a9;
    border-color: #2f64a9;
    color: #ffffff;
}

html:not(.dark) #mobileMenuClose {
    border-color: rgba(17, 24, 36, 0.2);
    background: rgba(0, 0, 0, 0.04);
    color: #1d2430;
}

html:not(.dark) #mobileMenuClose:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(17, 24, 36, 0.33);
}

.nav-link,
.mobile-nav-link {
    position: relative;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.1rem;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand-muted);
}

.hero-kicker::before {
    content: "";
    width: 1.4rem;
    height: 1px;
    background: var(--brand-accent);
}

.hero-political-bg {
    background:
        radial-gradient(120% 95% at 12% 12%, rgba(99, 151, 217, 0.3) 0%, rgba(10, 24, 45, 0) 58%),
        radial-gradient(95% 120% at 88% 84%, rgba(42, 82, 145, 0.35) 0%, rgba(10, 24, 45, 0) 62%),
        linear-gradient(160deg, #060f1d 0%, #0a1b32 46%, #102746 100%);
}

.hero-layout {
    display: grid;
    gap: 2rem;
    align-items: end;
    grid-template-columns: 1fr;
}

.hero-copy {
    padding-top: 2rem;
}

.hero-portrait-stack {
    width: min(100%, 480px);
    justify-self: end;
}

.hero-portrait-wrap {
    position: relative;
    margin-left: auto;
    width: min(100%, 480px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0d1524;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(8, 12, 20, 0.4);
}

.hero-portrait-img {
    display: block;
    width: 100%;
    height: min(78vh, 720px);
    object-fit: cover;
    object-position: center 20%;
}

.hero-word-cloud {
    position: absolute;
    left: 1rem;
    right: 1rem;
    margin: 0 auto;
    width: fit-content;
    max-width: calc(100% - 2rem);
    bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(120deg, rgba(5, 12, 24, 0.72), rgba(9, 25, 48, 0.58));
    backdrop-filter: blur(4px);
}

.hero-contact-links {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}

.hero-identity {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 5vw, 2rem);
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.08;
    color: #f5f8ff;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.35);
    text-align: center;
    text-wrap: balance;
}

.hero-identity-sub {
    font-family: 'Lora', serif;
    font-size: clamp(0.66rem, 2.2vw, 0.86rem);
    text-transform: none;
    letter-spacing: 0.04em;
    color: rgba(220, 232, 250, 0.92);
    text-align: center;
    text-wrap: balance;
}

@media (min-width: 1024px) {
    .hero-identity {
        font-size: clamp(1.7rem, 2.2vw, 2.35rem);
        letter-spacing: 0.08em;
    }
}

html[data-variant="institutional"] .hero-political-bg {
    background:
        radial-gradient(120% 95% at 12% 12%, rgba(99, 151, 217, 0.3) 0%, rgba(10, 24, 45, 0) 58%),
        radial-gradient(95% 120% at 88% 84%, rgba(42, 82, 145, 0.35) 0%, rgba(10, 24, 45, 0) 62%),
        linear-gradient(160deg, #060f1d 0%, #0a1b32 46%, #102746 100%);
}

html[data-variant="institutional"] .hero-portrait-wrap {
    border-color: rgba(255, 255, 255, 0.12);
}

@media (min-width: 1024px) {
    .hero-layout {
        grid-template-columns: minmax(0, 1fr) minmax(340px, 480px);
        gap: clamp(2rem, 4vw, 5rem);
    }

    .hero-copy {
        padding-top: 4rem;
    }
}

@media (max-width: 1023px) {
    .hero-political-bg {
        background:
            radial-gradient(90% 80% at 50% 0%, rgba(99, 151, 217, 0.3) 0%, rgba(9, 17, 31, 0) 58%),
            linear-gradient(180deg, #060f1d 0%, #0c1e35 55%, #122b4c 100%);
    }

    .hero-portrait-stack {
        width: min(100%, 420px);
        justify-self: center;
    }

    .hero-portrait-wrap {
        width: min(100%, 420px);
    }

    .hero-portrait-img {
        height: min(58vh, 540px);
    }

}

.hero-actions {
    margin-top: 2.1rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.hero-primary-cta,
.hero-secondary-cta {
    min-height: 2.8rem;
    padding: 0.8rem 1.3rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.hero-primary-cta {
    background: var(--brand-accent);
    border: 1px solid var(--brand-accent);
    color: #ffffff;
}

.hero-primary-cta:hover {
    transform: translateY(-1px);
}

.hero-secondary-cta {
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.88);
    background: rgba(0, 0, 0, 0.2);
}

.hero-secondary-cta:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.magic-grid-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.28;
}

.magic-grid-overlay::before {
    content: "";
    position: absolute;
    inset: -30%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 56px 56px;
    transform: perspective(900px) rotateX(58deg) translateY(12%);
    transform-origin: center bottom;
    animation: gridPulse 8s ease-in-out infinite;
    mask-image: radial-gradient(ellipse at 50% 70%, rgba(0, 0, 0, 0.9) 30%, transparent 76%);
}

@keyframes gridPulse {
    0%,
    100% {
        opacity: 0.44;
    }
    50% {
        opacity: 0.7;
    }
}

.policy-bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(0.75rem, 1.4vw, 1.2rem);
    background: transparent;
}

#reform {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(120% 85% at 10% 12%, rgba(95, 146, 211, 0.2) 0%, rgba(11, 29, 54, 0) 58%),
        radial-gradient(90% 120% at 88% 86%, rgba(39, 77, 138, 0.28) 0%, rgba(11, 29, 54, 0) 62%),
        linear-gradient(160deg, #0a1a31 0%, #0f2848 46%, #12345d 100%) !important;
}

#reform::before,
#reform::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

#reform::before {
    width: min(50vw, 560px);
    height: min(50vw, 560px);
    top: -160px;
    right: -130px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(134, 181, 241, 0.26) 0%, rgba(134, 181, 241, 0) 72%);
}

#reform::after {
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.065) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.12;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.95) 38%, transparent 88%);
}

.reform-heading {
    position: relative;
}

.reform-overline {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(216, 229, 248, 0.82);
    margin-bottom: 1.15rem;
}

.reform-overline::before,
.reform-overline::after {
    content: "";
    width: 2.1rem;
    height: 1px;
    background: rgba(177, 204, 240, 0.52);
}

.policy-principles-ribbon {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.policy-principle-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(186, 210, 239, 0.36);
    background: linear-gradient(125deg, rgba(164, 196, 236, 0.2), rgba(123, 159, 203, 0.08));
    color: rgba(236, 244, 255, 0.92);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.5rem 0.9rem;
    transition: border-color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.policy-principle-pill:hover {
    border-color: rgba(212, 229, 251, 0.7);
    transform: translateY(-2px);
}

.about-photo-gallery {
    margin-top: 2.2rem;
    margin-bottom: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    padding: 1.2rem;
    border-radius: 0;
}

.about-photo-gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 2.8vw, 1.8rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.about-photo-gallery-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(214, 229, 252, 0.6);
    margin-bottom: 2rem;
}

.about-photo-gallery .timeline-media-card {
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.about-photo-gallery .timeline-media-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.about-shared-media-slot {
    margin: 0.8rem 0 0;
}

.about-photo-gallery .about-shared-media-gallery {
    grid-auto-columns: minmax(220px, 70vw);
}

.journey-timeline {
    position: relative;
    margin-top: 2.2rem;
    display: grid;
    gap: 1.15rem;
}

.timeline-item {
    position: relative;
    padding: 1.7rem 1.4rem 1.7rem 1.7rem;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

/* Blue dot removed */

/* ═══ Timeline logo strip — subtle row of logos at bottom of each article ═══ */
/* ═══ Timeline watermark — large faded logos in bottom-right corner ═══ */
.timeline-watermark {
    position: absolute;
    bottom: -8px;
    right: -8px;
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    pointer-events: none;
    z-index: 0;
}

.timeline-wm-img {
    display: block;
    height: 140px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    opacity: 0.07;
    transition: opacity 0.5s ease;
}

.timeline-wm-img.timeline-wm-white {
    opacity: 0.08;
}

/* When 2 logos, keep same size, just space them */
.timeline-watermark .timeline-wm-img:nth-child(2) {
    height: 140px;
}

/* Ensure text stays above watermark */
.timeline-item > h3,
.timeline-item > p,
.timeline-item > ul {
    position: relative;
    z-index: 1;
}

/* Subtle hover: logos slightly more visible when hovering the card */
.timeline-item:hover .timeline-wm-img {
    opacity: 0.1;
}

.timeline-media-slot {
    margin: 0 0 1.05rem;
    min-width: 0;
    overflow: hidden;
}

.timeline-media-gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(148px, 46vw);
    gap: 0.56rem;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    padding-bottom: 0.35rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(127, 167, 216, 0.42) transparent;
}

.timeline-media-card {
    width: 100%;
    min-width: 0;
    scroll-snap-align: start;
}

.timeline-media-gallery::-webkit-scrollbar {
    height: 6px;
}

.timeline-media-gallery::-webkit-scrollbar-thumb {
    background: rgba(127, 167, 216, 0.42);
}

.timeline-media-gallery img,
.timeline-media-slot img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.timeline-media-placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.45rem;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px dashed rgba(161, 194, 238, 0.5);
    background:
        linear-gradient(140deg, rgba(12, 25, 48, 0.75), rgba(10, 18, 35, 0.62)),
        repeating-linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0.03) 0px,
            rgba(255, 255, 255, 0.03) 10px,
            transparent 10px,
            transparent 20px
        );
    overflow: hidden;
    transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.timeline-media-placeholder:hover {
    border-color: rgba(161, 194, 238, 0.72);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.timeline-media-placeholder::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.timeline-media-icon {
    font-size: 1.55rem;
    color: rgba(201, 223, 255, 0.7);
}

.timeline-media-label {
    font-size: 0.54rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(214, 229, 252, 0.78);
}

.timeline-topic-list {
    display: grid;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.94rem;
    line-height: 1.5;
}

.timeline-topic-list li {
    position: relative;
    padding-left: 1rem;
}

.timeline-topic-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62rem;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 999px;
    background: var(--brand-accent);
}

@media (min-width: 900px) {
    .about-photo-gallery {
        padding: 1.2rem;
    }

    .about-photo-gallery .about-shared-media-gallery {
        display: grid;
        grid-auto-flow: row;
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        max-width: none;
        overflow: visible;
        padding-bottom: 0;
        scroll-snap-type: none;
    }

    .about-photo-gallery .about-shared-media-gallery .timeline-media-card {
        scroll-snap-align: none;
    }

    /* Blue vertical line and padding removed */

    .timeline-item {
        padding: 2rem 2rem 2rem 2.2rem;
    }

    .timeline-media-gallery {
        display: grid;
        grid-auto-flow: row;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 0.7rem;
        max-width: 760px;
        overflow: visible;
        padding-bottom: 0;
        scroll-snap-type: none;
    }

    .timeline-media-card {
        flex: initial;
        min-width: 0;
        scroll-snap-align: none;
    }
}

@media (max-width: 899px) {
    .about-photo-gallery .about-shared-media-gallery {
        grid-auto-columns: 100%;
    }

    .timeline-media-gallery {
        grid-auto-columns: 100%;
    }

    .timeline-wm-img {
        height: 90px !important;
        max-width: 100px;
    }

    .timeline-watermark .timeline-wm-img:nth-child(2) {
        height: 90px !important;
    }

    .timeline-media-card {
        scroll-snap-stop: always;
    }
}

.policy-card {
    position: relative;
    background: rgba(9, 20, 38, 0.78);
    padding: clamp(1.7rem, 3.2vw, 3.4rem);
    border: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
    border-radius: 1rem;
    backdrop-filter: blur(6px);
    box-shadow: 0 20px 45px rgba(2, 6, 14, 0.26);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.policy-card:hover {
    transform: translateY(-4px);
    border-color: rgba(190, 211, 240, 0.35);
    box-shadow: 0 24px 54px rgba(2, 6, 14, 0.38);
}

.policy-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.05), transparent 42%);
    pointer-events: none;
}

.policy-card-kicker {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(201, 221, 247, 0.92);
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 0.9rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(167, 198, 234, 0.28);
    background: rgba(99, 139, 189, 0.16);
}

.policy-card-impact {
    display: flex;
    flex-direction: column;
}

.policy-impact-quote {
    position: relative;
    margin-top: auto;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0.9rem;
    border: 1px solid rgba(188, 212, 243, 0.34);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.1), rgba(116, 153, 204, 0.14));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(1rem, 2.2vw, 1.75rem);
    overflow: hidden;
}

.policy-impact-quote::before {
    content: "“";
    position: absolute;
    top: -0.35rem;
    right: 0.85rem;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 5.5vw, 4.2rem);
    line-height: 1;
    color: rgba(211, 228, 250, 0.28);
}

.policy-impact-quote-text {
    position: relative;
    z-index: 1;
    font-size: clamp(1.04rem, 1.9vw, 1.45rem);
    line-height: 1.42;
    color: rgba(239, 246, 255, 0.92);
}

.priority-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.02);
}

.policy-principles-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.11);
    padding: clamp(1.6rem, 3.1vw, 2.7rem);
    background: rgba(6, 19, 39, 0.52);
    border-radius: 1rem;
    box-shadow: 0 18px 40px rgba(3, 9, 20, 0.24);
}

.policy-principles-lead {
    font-size: clamp(1rem, 2.2vw, 1.28rem);
    line-height: 1.45;
    font-family: 'Lora', serif;
    color: rgba(225, 238, 255, 0.92);
    margin: -0.2rem 0 1.2rem;
}

.policy-principles-list li {
    position: relative;
    padding-left: 1.25rem;
}

.policy-principles-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: rgba(152, 191, 236, 0.9);
    box-shadow: 0 0 0 3px rgba(132, 177, 226, 0.22);
}

.policy-quote-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.11);
    padding: clamp(1.6rem, 3.1vw, 2.4rem);
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    border-radius: 1rem;
    overflow: hidden;
}

.policy-quote-card::before {
    content: "“";
    position: absolute;
    top: -0.45rem;
    right: 1.2rem;
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.4rem, 7vw, 5.4rem);
    line-height: 1;
    color: rgba(206, 224, 248, 0.2);
    pointer-events: none;
}

.policy-quote-card blockquote {
    position: relative;
    z-index: 1;
}

.policy-reveal {
    opacity: 1;
    transform: none;
    filter: none;
}

html.js-ready .policy-reveal {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    filter: blur(6px);
}

html.js-ready .policy-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
    transition: opacity 620ms cubic-bezier(0.22, 1, 0.36, 1), transform 620ms cubic-bezier(0.22, 1, 0.36, 1), filter 620ms ease;
}

.beam-card {
    position: relative;
}

.beam-card::before {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: radial-gradient(circle, var(--brand-accent-soft) 0%, transparent 70%);
    top: -60px;
    left: -60px;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.beam-card:hover::before {
    opacity: 1;
    animation: beamSweep 4s linear infinite;
}

@keyframes beamSweep {
    0% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(120%, 40%, 0);
    }
    100% {
        transform: translate3d(210%, 80%, 0);
    }
}

.policy-marquee {
    overflow: hidden;
    margin-bottom: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    padding: 0.35rem 0;
}

.policy-marquee-track {
    display: flex;
    width: max-content;
    gap: 0.8rem;
    animation: policyMarquee 26s linear infinite;
}

.policy-marquee-track span {
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.83);
    white-space: nowrap;
}

.policy-marquee-track span::after {
    content: "•";
    margin-left: 0.8rem;
    color: var(--brand-accent);
}

@keyframes policyMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (min-width: 1024px) {
    .policy-bento {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: minmax(220px, auto);
    }

    .policy-card-main {
        grid-column: 1 / span 2;
    }

    .policy-card-impact {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .policy-card-security {
        grid-column: 1 / span 2;
    }
}

@media (max-width: 1023px) {
    .policy-marquee {
        display: none;
    }
}

@media (max-width: 767px) {
    .reform-heading > h2 {
        line-height: 1.06;
    }

    .reform-heading > p {
        line-height: 1.5;
    }

    .policy-card {
        padding: 1.2rem;
    }

    .policy-card h3 {
        line-height: 1.25;
        margin-bottom: 0.9rem;
    }

    .policy-card-kicker {
        font-size: 0.6rem;
        letter-spacing: 0.1em;
        margin-bottom: 0.7rem;
        padding: 0.28rem 0.55rem;
    }

    .policy-principles-ribbon {
        gap: 0.45rem;
        margin-top: 1.35rem;
    }

    .policy-principle-pill {
        width: 100%;
        text-align: center;
    }

    .policy-impact-quote {
        margin-top: 1rem;
        aspect-ratio: auto;
        min-height: 210px;
        padding: 1rem;
        overflow: visible;
    }

    .policy-impact-quote::before {
        top: -0.65rem;
        right: 0.45rem;
        font-size: 2.15rem;
    }

    .policy-impact-quote-text {
        font-size: clamp(0.92rem, 4vw, 1.03rem);
        line-height: 1.5;
        text-wrap: balance;
        hyphens: auto;
    }
}

@media (max-width: 380px) {
    .policy-impact-quote {
        min-height: 228px;
    }
}

@media (min-width: 1024px) {
    .policy-topic-list {
        opacity: 0.86;
    }
}

html[data-variant="institutional"] .hero-primary-cta {
    background: linear-gradient(120deg, #2f64a9, #4d83c6);
    border-color: #5c8fd0;
}

html[data-variant="institutional"] .policy-card {
    background: rgba(10, 24, 47, 0.73);
}

html[data-variant="institutional"] .policy-principles-card {
    background: rgba(8, 22, 44, 0.62);
}

html:not(.dark) .hero-secondary-cta {
    border-color: rgba(0, 0, 0, 0.2);
    color: #242322;
    background: rgba(255, 255, 255, 0.36);
}

html:not(.dark) .timeline-item {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(21, 20, 19, 0.14);
}

html:not(.dark) .timeline-item h3,
html:not(.dark) .timeline-item p,
html:not(.dark) .timeline-topic-list {
    color: #1f1d1a !important;
}

html:not(.dark) .timeline-wm-img {
    opacity: 0.06;
}

html:not(.dark) .timeline-wm-img.timeline-wm-white {
    filter: invert(1);
    opacity: 0.07;
}

html:not(.dark) .timeline-item:hover .timeline-wm-img {
    opacity: 0.12;
}

html:not(.dark) .timeline-media-placeholder {
    border-color: rgba(47, 100, 169, 0.42);
    background:
        linear-gradient(140deg, rgba(234, 238, 246, 0.95), rgba(226, 232, 243, 0.88)),
        repeating-linear-gradient(
            -45deg,
            rgba(47, 100, 169, 0.05) 0px,
            rgba(47, 100, 169, 0.05) 10px,
            transparent 10px,
            transparent 20px
        );
}

html:not(.dark) .timeline-media-placeholder::after {
    border-color: rgba(24, 36, 56, 0.1);
}

html:not(.dark) .timeline-media-icon {
    color: rgba(36, 66, 108, 0.72);
}

html:not(.dark) .timeline-media-label {
    color: rgba(30, 52, 84, 0.72);
}

html:not(.dark) .about-photo-gallery {
    border-color: rgba(21, 20, 19, 0.14);
    background: rgba(255, 255, 255, 0.38);
}

html:not(.dark) .about-photo-gallery-title {
    color: #1f1d1a;
}

html:not(.dark) .about-photo-gallery-subtitle {
    color: #4a4845;
}

html:not(.dark) .policy-card {
    border-color: rgba(160, 188, 224, 0.22);
}

html:not(.dark) .policy-principles-card,
html:not(.dark) .policy-quote-card {
    background: rgba(9, 20, 38, 0.56);
    border-color: rgba(160, 188, 224, 0.25);
}

html:not(.dark) .policy-principle-pill {
    border-color: rgba(190, 214, 243, 0.38);
    background: linear-gradient(125deg, rgba(173, 200, 236, 0.2), rgba(119, 156, 202, 0.1));
}

html:not(.dark) .policy-impact-quote {
    border-color: rgba(190, 214, 243, 0.4);
    background: linear-gradient(150deg, rgba(167, 197, 235, 0.2), rgba(106, 146, 197, 0.14));
}

@media (prefers-reduced-motion: reduce) {
    .policy-card,
    .policy-principle-pill {
        transition: none;
    }

    .policy-reveal,
    .policy-reveal.is-visible {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

.nav-link::after,
.mobile-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.5rem;
    height: 1px;
    background: rgba(30, 90, 168, 0.95);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after,
.mobile-nav-link:hover::after,
.mobile-nav-link.is-active::after {
    transform: scaleX(1);
}

.nav-link.is-active,
.mobile-nav-link.is-active {
    color: #ffffff;
}

.nav-cta {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: #ffffff;
}

.nav-cta:hover {
    background: rgba(61, 115, 187, 0.9);
    border-color: rgba(161, 194, 238, 0.75);
    color: #ffffff;
}

html:not(.dark) .nav-cta {
    border-color: rgba(36, 66, 108, 0.32);
    background: rgba(255, 255, 255, 0.38);
    color: #1c2e49;
}

html:not(.dark) .nav-cta:hover {
    background: #2f64a9;
    border-color: #2f64a9;
    color: #ffffff;
}

.nav-cta:focus-visible,
.nav-link:focus-visible,
.mobile-nav-link:focus-visible,
.mobile-nav-cta:focus-visible {
    outline: 2px solid #1e5aa8;
    outline-offset: 2px;
}

.nav-progress-track {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.nav-progress-bar {
    display: block;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #1e5aa8 0%, #7fa7d8 100%);
    transition: width 0.12s linear;
}

.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 8, 16, 0.56);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.26s ease;
    z-index: 56;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(84vw, 336px);
    background: rgba(11, 17, 29, 0.97);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -20px 0 42px rgba(0, 0, 0, 0.38);
    z-index: 60;
    transform: translateX(102%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    padding: calc(0.95rem + env(safe-area-inset-top, 0px)) 1.1rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    backdrop-filter: blur(10px);
}

.mobile-menu::before {
    content: none;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 1.05rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-header > span {
    display: none;
}

#mobileMenuClose {
    padding: 0;
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

#mobileMenuClose .material-symbols-outlined {
    font-size: 1.35rem !important;
    line-height: 1 !important;
}

#mobileMenuClose:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.38);
    transform: translateY(-1px);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.15rem;
}

.mobile-menu-tools {
    margin-top: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.mobile-menu-theme-toggle {
    width: 2.2rem;
    height: 2.2rem;
}

.mobile-menu-tool-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(228, 235, 247, 0.72);
}

.mobile-nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(228, 235, 247, 0.86);
    line-height: 1;
    padding: 1rem 0.1rem 0.92rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
    transform: none;
    border-color: rgba(123, 164, 220, 0.72);
    color: #ffffff;
}

.mobile-nav-link::after {
    bottom: 0.3rem;
    right: auto;
    width: 100%;
    height: 1px;
}

.mobile-nav-cta {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.28rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.19em;
    text-transform: uppercase;
    box-shadow: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mobile-nav-cta:hover {
    transform: none;
    background: rgba(61, 115, 187, 0.9);
    border-color: rgba(161, 194, 238, 0.75);
    color: #ffffff;
}

body.mobile-menu-open {
    overflow: hidden;
}

body.mobile-menu-open .mobile-menu-backdrop {
    opacity: 1;
    pointer-events: auto;
}

body.mobile-menu-open .mobile-menu {
    transform: translateX(0);
}

@media (max-width: 767px) {
    body {
        overflow-x: hidden;
    }

    #siteNav #themeToggleBtn {
        display: none;
    }

    .footer-signature-name {
        font-size: clamp(1.55rem, 11vw, 2.4rem);
    }

    .quote-signature-name {
        margin-top: 1.05rem;
    }

    .hero-political-bg {
        overflow: hidden;
    }

    .hero-layout {
        gap: 1.3rem;
        align-items: start;
    }

    .hero-copy {
        padding-top: 0.75rem;
    }

    .hero-portrait-wrap {
        width: min(100%, 380px);
        margin-right: auto;
        margin-left: auto;
    }

    .hero-portrait-stack {
        width: min(100%, 380px);
    }

    .hero-portrait-img {
        height: clamp(340px, 54vh, 470px);
        object-position: center 14%;
    }

    .hero-word-cloud {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        padding: 0.64rem 0.72rem;
    }
}

@media (max-width: 420px) {
    .hero-portrait-img {
        height: clamp(320px, 52vh, 430px);
        object-position: center 12%;
    }
}

.hero-text-shadow {
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.editorial-spacing {
    letter-spacing: -0.02em;
}
.img-editorial {
    filter: grayscale(40%) contrast(105%);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.img-editorial:hover {
    filter: grayscale(0%) contrast(100%);
}

/* ═══════════════════════════════════════════════
   LOCKSCREEN OVERLAY
   ═══════════════════════════════════════════════ */
body.locked {
    overflow: hidden !important;
}

html.locked-html,
html:has(body.locked) {
    overflow: hidden !important;
}

#lockOverlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    overflow: hidden;
    background:
        radial-gradient(120% 95% at 12% 12%, rgba(99, 151, 217, 0.3) 0%, rgba(10, 24, 45, 0) 58%),
        radial-gradient(95% 120% at 88% 84%, rgba(42, 82, 145, 0.35) 0%, rgba(10, 24, 45, 0) 62%),
        linear-gradient(160deg, #060f1d 0%, #0a1b32 46%, #102746 100%);
    touch-action: none;
    will-change: transform, opacity;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    -webkit-user-select: none;
    user-select: none;
}

#lockOverlay.unlock-up {
    transform: translate3d(0, -22%, 0) scale(1.02);
    opacity: 0;
    filter: blur(14px);
}

#lockOverlay.unlock-down {
    transform: translate3d(0, 22%, 0) scale(1.02);
    opacity: 0;
    filter: blur(14px);
}

#lockOverlay.unlock-fade {
    opacity: 0;
    filter: blur(14px);
}

#lockOverlay.is-hidden {
    display: none;
}

.lock-bg-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.lock-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%) contrast(105%);
}

.lock-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.45) 35%,
        rgba(0, 0, 0, 0.25) 55%,
        rgba(0, 0, 0, 0.55) 100%
    );
}

.lock-vignette {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.lock-noise {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: none;
}

.lock-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    will-change: transform;
    transition: transform 0.15s ease-out;
    z-index: 1;
}

.lock-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4vw, 54px);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.15em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
    text-align: center;
}

.lock-quote {
    font-family: 'Lora', serif;
    font-size: clamp(14px, 2vw, 18px);
    font-style: italic;
    color: rgba(255, 255, 255, 0.65);
    max-width: 40ch;
    text-align: center;
    line-height: 1.65;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 3rem;
}

.lock-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.35);
    transition: opacity 0.3s ease;
}

.lock-hint-text {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.lock-chevron {
    opacity: 0.5;
    animation: lockChevronPulse 2.4s ease-in-out infinite;
}

.lock-chevron-up {
    animation-delay: 0s;
}

.lock-chevron-down {
    animation-delay: 1.2s;
}

@keyframes lockChevronPulse {
    0%, 100% { opacity: 0.25; transform: translateY(0); }
    50% { opacity: 0.65; transform: translateY(-3px); }
}

/* Option B site reveal */
.site-revealing {
    animation: siteReveal 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes siteReveal {
    from { transform: scale(1.02); opacity: 0.98; }
    to { transform: none; opacity: 1; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    #lockOverlay {
        transition: opacity 0.3s ease !important;
    }
    #lockOverlay.unlock-up,
    #lockOverlay.unlock-down {
        transform: none !important;
        opacity: 0;
    }
    .lock-chevron {
        animation: none !important;
    }
    .site-revealing {
        animation: none !important;
    }
}

/* Mobile portrait */
@media (max-width: 640px) {
    .lock-content {
        justify-content: center;
        padding: max(1rem, env(safe-area-inset-top, 1rem)) 1rem max(1.5rem, env(safe-area-inset-bottom, 1.5rem));
    }
    .lock-quote {
        max-width: 90%;
    }
}

/* Landscape phones */
@media (orientation: landscape) and (max-height: 500px) {
    .lock-content {
        justify-content: center;
        padding-bottom: 2rem;
    }
    .lock-name {
        margin-bottom: 0.5rem;
    }
    .lock-quote {
        margin-bottom: 1.5rem;
    }
}

/* ═══════════════════════════════════════════════
   POST-UNLOCK ENTRANCE ANIMATIONS
   ═══════════════════════════════════════════════ */

/* Elements start hidden until entrance is triggered */
.entrance-el {
    opacity: 0;
    filter: blur(4px);
    will-change: transform, opacity;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.entrance-el[data-dir="left"] {
    transform: translate3d(-24px, 0, 0);
}

.entrance-el[data-dir="right"] {
    transform: translate3d(24px, 0, 0);
}

.entrance-el[data-dir="top"] {
    transform: translate3d(0, -16px, 0);
}

.entrance-el[data-dir="bottom"] {
    transform: translate3d(0, 18px, 0);
}

.entrance-el[data-dir="scale"] {
    transform: scale(1.02);
}

/* Active state — floats into final position */
.entrance-el.entered {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
}

.hero-heading.entrance-el:not(.entered) {
    filter: blur(6px);
}

.hero-quote.entrance-el:not(.entered),
.hero-word-cloud.entrance-el:not(.entered) {
    filter: blur(4px);
}

/* Hero background parallax layer */
.hero-parallax-bg {
    transition: none;
    will-change: auto;
}

/* ═══════════════════════════════════════════════
   LOCKSCREEN SPLIT — Portrait + Quote Frame
   ═══════════════════════════════════════════════ */
.lock-split-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border: 0;
    overflow: visible;
    background: transparent;
}

.lock-stage {
    position: relative;
    width: min(85vw, 480px);
    margin-bottom: 2.5rem;
}

.lock-portrait {
    position: absolute;
    inset: 0;
    will-change: transform, opacity;
}

.lock-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    filter: grayscale(40%) contrast(105%);
}

.lock-portrait-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.80) 0%,
        rgba(0, 0, 0, 0.20) 45%,
        transparent 70%
    );
    pointer-events: none;
}

.lock-quote-layer {
    position: absolute;
    bottom: 0.9rem;
    left: 0.9rem;
    right: 0.9rem;
    padding: 0.72rem 0.82rem;
    will-change: transform, opacity;
    z-index: 1;
    text-align: center;
    background: linear-gradient(120deg, rgba(5, 12, 24, 0.72), rgba(9, 25, 48, 0.58));
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(4px);
}

.lock-quote-layer .lock-name {
    margin-bottom: 0.2rem;
    font-size: clamp(1.2rem, 5vw, 2rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.08;
}

.lock-quote-layer .lock-quote {
    margin-bottom: 0;
    margin-inline: auto;
    width: 100%;
    text-align: center;
    font-style: normal;
    letter-spacing: 0.04em;
    color: rgba(220, 232, 250, 0.92);
    font-size: clamp(0.66rem, 2.2vw, 0.86rem);
    line-height: 1.35;
}

@media (max-width: 640px) {
    .lock-stage {
        width: min(88vw, 400px);
        margin-bottom: 1.15rem;
    }
    .lock-split-frame {
        aspect-ratio: auto;
        height: min(68vh, 560px);
    }
    .lock-quote-layer {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        padding: 0.6rem 0.7rem;
    }
    .lock-quote-layer .lock-name {
        font-size: clamp(1rem, 7vw, 1.5rem);
    }
    .lock-quote-layer .lock-quote {
        font-size: clamp(0.62rem, 2.9vw, 0.8rem);
    }
}

/* Very short mobile screens (e.g. iPhone SE, landscape-ish) */
@media (max-width: 640px) and (max-height: 680px) {
    .lock-split-frame {
        height: min(52vh, 380px);
    }
}

@media (min-width: 768px) {
    .mobile-menu,
    .mobile-menu-backdrop {
        display: none;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .policy-marquee-track,
    .magic-grid-overlay::before,
    .beam-card::before {
        animation: none !important;
    }

    .site-nav,
    .nav-progress-bar,
    .mobile-menu,
    .mobile-menu-backdrop {
        transition: none !important;
    }
    .site-nav.nav-reveal .desktop-nav .nav-link,
    .site-nav.nav-reveal .desktop-nav .nav-cta,
    .site-nav.nav-reveal .theme-toggle-btn,
    .site-nav.nav-reveal #mobileMenuBtn,
    .site-nav.brand-reveal .nav-brand-char,
    .footer-signature-name.is-writing .signature-char {
        animation: none !important;
    }
    .signature-char {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }
    .entrance-el {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
    .hero-parallax-bg {
        transform: none !important;
    }
    .lock-portrait,
    .lock-quote-layer {
        transform: none !important;
        opacity: 1 !important;
    }
}
