/* Blue Bear Global Education: site styles.
   Colours come from the original Wix draft; see docs/design-system.md. */

/* ---------- Tokens ---------- */

:root {
    --navy-950: #010f22;
    --navy-900: #011936;
    --navy-800: #0b2545;
    --navy-700: #14325c;
    --blue-600: #0372bc;
    --blue-500: #5a7efc;
    --periwinkle: #89a2ff;
    --periwinkle-100: #e9edff;
    --amber: #ffb81c;
    --amber-hover: #ffc845;
    --amber-soft: #fff4d6;
    --gold: #d5c97d;
    --mist: #e6eef6;
    --mist-soft: #eef3f9;
    --line: #c9d6e6;
    --line-soft: #dde6f1;
    --line-dark: rgba(201, 214, 230, 0.16);
    --slate: #4a5b73;
    --slate-light: #6b7c93;
    --on-dark: #c9d6e6;
    --ink: #011936;
    --paper: #ffffff;

    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
    --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
    --step-1: clamp(1.13rem, 1.06rem + 0.35vw, 1.32rem);
    --step-2: clamp(1.35rem, 1.22rem + 0.65vw, 1.8rem);
    --step-3: clamp(1.75rem, 1.5rem + 1.25vw, 2.5rem);
    --step-4: clamp(2.15rem, 1.7rem + 2.2vw, 3.5rem);
    --step-5: clamp(2.7rem, 1.9rem + 4vw, 5.4rem);

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 1px 2px rgba(1, 25, 54, 0.06), 0 2px 8px rgba(1, 25, 54, 0.05);
    --shadow: 0 2px 6px rgba(1, 25, 54, 0.06), 0 14px 36px rgba(1, 25, 54, 0.09);
    --shadow-lg: 0 24px 60px rgba(1, 25, 54, 0.2);

    --container: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
    --section-y: clamp(72px, 9vw, 136px);
    --header-h: 76px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.65;
    color: var(--slate);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.nav-open {
    overflow: hidden;
}

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

img {
    height: auto;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-optical-sizing: auto;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--ink);
    text-wrap: balance;
}

p {
    margin: 0 0 1em;
    text-wrap: pretty;
}

.nowrap {
    white-space: nowrap;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--blue-600);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

:focus-visible {
    outline: 3px solid var(--amber);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: var(--amber);
    color: var(--navy-900);
}

.icon {
    display: inline-block;
    flex-shrink: 0;
    vertical-align: middle;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -60px;
    left: 16px;
    z-index: 100;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    background: var(--amber);
    color: var(--navy-900);
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s;
}

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

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow {
    max-width: calc(760px + var(--gutter) * 2);
}

.container--wide {
    max-width: calc(1000px + var(--gutter) * 2);
}

/* ---------- Buttons and links ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 24px;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.25s var(--ease),
        background-color 0.2s,
        color 0.2s,
        border-color 0.2s,
        box-shadow 0.25s;
}

.btn .icon {
    transition: transform 0.3s var(--ease);
}

.btn:hover .icon {
    transform: translate(2px, -2px);
}

.btn--primary {
    background: var(--amber);
    color: var(--navy-900);
    box-shadow: 0 8px 24px rgba(255, 184, 28, 0.22);
}

.btn--primary:hover {
    background: var(--amber-hover);
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(255, 184, 28, 0.32);
}

.btn--secondary {
    border-color: var(--navy-900);
    background: transparent;
    color: var(--navy-900);
}

.btn--secondary:hover {
    background: var(--navy-900);
    color: #fff;
}

.hero--night .btn--secondary,
.section--night .btn--secondary,
.cta--night .btn--secondary,
.form-hero .btn--secondary {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.hero--night .btn--secondary:hover,
.section--night .btn--secondary:hover,
.cta--night .btn--secondary:hover {
    border-color: #fff;
    background: #fff;
    color: var(--navy-900);
}

.btn--sm {
    padding: 11px 18px;
    font-size: 0.92rem;
}

.btn--lg {
    padding: 18px 30px;
    font-size: 1.04rem;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.button-row--below {
    margin-top: clamp(32px, 4vw, 48px);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue-600);
    font-weight: 600;
    text-decoration: none;
}

.text-link .icon {
    transition: transform 0.3s var(--ease);
}

.text-link:hover .icon,
.card--link:hover .text-link .icon {
    transform: translateX(4px);
}

.section--night .text-link {
    color: var(--amber);
}

/* ---------- Eyebrows and section heads ---------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--blue-600);
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    line-height: 1.4;
    text-transform: uppercase;
    text-wrap: balance;
}

.eyebrow::before {
    content: "";
    flex-shrink: 0;
    width: 11px;
    height: 11px;
    background: currentColor;
    clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}

.eyebrow--hero,
.section--night .eyebrow,
.cta--night .eyebrow,
.form-hero .eyebrow {
    color: var(--gold);
}

.section-head {
    max-width: 780px;
    margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.section-title {
    font-size: var(--step-4);
}

.section-title em,
.statement__text em,
.cta__title em,
.form-hero__title em {
    color: var(--blue-600);
    font-style: italic;
    font-weight: 500;
}

.section-intro {
    max-width: 40em;
    margin-top: 18px;
    font-size: var(--step-1);
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--navy-900);
    border-bottom: 1px solid transparent;
    transition:
        background-color 0.3s,
        border-color 0.3s,
        box-shadow 0.3s;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line-dark);
    box-shadow: 0 10px 30px rgba(1, 15, 34, 0.25);
}

@supports (backdrop-filter: blur(1px)) {
    .site-header.is-scrolled {
        background: rgba(1, 25, 54, 0.95);
        backdrop-filter: saturate(140%) blur(14px);
    }
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: var(--header-h);
}

/* Logo lockup: the team's emblem plus the wordmark set in Poppins, as in the
   original logo, with "bear" in white for dark backgrounds. */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
    color: #fff;
    text-decoration: none;
}

.brand__emblem {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    object-fit: contain;
    transition: transform 0.6s var(--ease);
}

.brand:hover .brand__emblem {
    transform: rotate(-8deg);
}

.brand__wordmark {
    display: flex;
    flex-direction: column;
    font-family: "Poppins", var(--font-body);
    line-height: 1;
}

.brand__name {
    font-size: 1.62rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #fff;
}

.brand__blue {
    color: #2383f3;
}

.brand__tag {
    margin-top: 6px;
    color: var(--on-dark);
    font-size: 0.56rem;
    font-weight: 500;
    letter-spacing: 0.34em;
    text-transform: uppercase;
}

@media (max-width: 420px) {
    .brand__emblem {
        width: 40px;
        height: 40px;
    }

    .brand__name {
        font-size: 1.42rem;
    }

    .brand__tag {
        font-size: 0.5rem;
    }
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-nav__list {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__link {
    position: relative;
    padding: 6px 0;
    color: var(--on-dark);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.site-nav__link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -2px;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--amber);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
    color: #fff;
}

.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--line-dark);
    border-radius: 12px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.nav-toggle__close,
.nav-toggle[aria-expanded="true"] .nav-toggle__open {
    display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
    display: inline-flex;
}

@media (max-width: 960px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: fixed;
        top: var(--header-h);
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        padding: 8px var(--gutter) 28px;
        border-bottom: 1px solid var(--line-dark);
        background: var(--navy-900);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition:
            opacity 0.25s var(--ease),
            transform 0.35s var(--ease),
            visibility 0s linear 0.35s;
    }

    .site-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition:
            opacity 0.25s var(--ease),
            transform 0.35s var(--ease);
    }

    .site-nav__list {
        flex-direction: column;
        gap: 0;
    }

    .site-nav__link {
        display: block;
        padding: 18px 0;
        border-bottom: 1px solid var(--line-dark);
        font-family: var(--font-display);
        font-size: 1.35rem;
        color: #fff;
    }

    .site-nav__link::after {
        display: none;
    }

    .site-nav__link[aria-current="page"] {
        color: var(--amber);
    }

    .site-nav__cta {
        margin-top: 24px;
    }
}

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

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.hero--night {
    background:
        radial-gradient(1100px 560px at 88% -12%, rgba(90, 126, 252, 0.24), transparent 62%),
        radial-gradient(900px 520px at -12% 112%, rgba(137, 162, 255, 0.13), transparent 60%),
        linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
    color: var(--on-dark);
}

.hero--mist {
    background: linear-gradient(180deg, var(--mist-soft), var(--mist));
}

.hero__sky {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(1.2px 1.2px at 22px 34px, rgba(255, 255, 255, 0.75), transparent 70%),
        radial-gradient(1px 1px at 118px 92px, rgba(255, 255, 255, 0.55), transparent 70%),
        radial-gradient(1.4px 1.4px at 186px 22px, rgba(255, 255, 255, 0.6), transparent 70%),
        radial-gradient(1px 1px at 64px 168px, rgba(255, 255, 255, 0.45), transparent 70%),
        radial-gradient(1.2px 1.2px at 210px 196px, rgba(255, 255, 255, 0.5), transparent 70%),
        radial-gradient(1px 1px at 146px 252px, rgba(213, 201, 125, 0.6), transparent 70%),
        radial-gradient(1px 1px at 40px 300px, rgba(255, 255, 255, 0.4), transparent 70%),
        radial-gradient(1.3px 1.3px at 260px 120px, rgba(255, 255, 255, 0.5), transparent 70%);
    background-size:
        280px 320px,
        280px 320px,
        280px 320px,
        280px 320px,
        280px 320px,
        280px 320px,
        280px 320px,
        280px 320px;
    opacity: 0.55;
    -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}

.hero--mist .hero__sky {
    display: none;
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    padding-block: clamp(72px, 10vw, 144px) clamp(72px, 9vw, 120px);
}

.hero--with-visual .hero__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.hero--orbit .hero__inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
}

.hero__copy {
    max-width: 680px;
}

.hero__title {
    color: #fff;
    font-size: var(--step-5);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.hero__title em {
    color: var(--amber);
    font-style: italic;
    font-weight: 500;
}

.hero--mist .hero__title {
    color: var(--ink);
}

.hero--mist .hero__title em {
    color: var(--blue-600);
}

.hero__intro {
    max-width: 34em;
    margin: 26px 0 38px;
    color: var(--on-dark);
    font-size: var(--step-1);
    line-height: 1.6;
}

.hero--mist .hero__intro {
    color: var(--slate);
}

.hero__intro p {
    margin: 0;
}

.hero--compact .hero__inner {
    padding-block: clamp(56px, 7vw, 104px);
}

.hero--compact .hero__intro {
    margin-bottom: 0;
}

.hero__visual {
    position: relative;
    width: 100%;
}

/* Load-in motion for the hero copy */
.js .hero__copy > * {
    animation: bb-rise 0.9s var(--ease) both;
}

.js .hero__copy > :nth-child(2) {
    animation-delay: 0.08s;
}

.js .hero__copy > :nth-child(3) {
    animation-delay: 0.16s;
}

.js .hero__copy > :nth-child(4) {
    animation-delay: 0.24s;
}

@media (max-width: 900px) {
    .hero--with-visual .hero__inner,
    .hero--orbit .hero__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero__visual {
        max-width: 460px;
        margin-inline: auto;
    }

    .hero--orbit .hero__visual {
        display: none;
    }

    .hero--constellation .hero__inner {
        padding-bottom: 32px;
    }
}

/* ---------- Constellation ----------
   Continuous motion runs on HTML-level layers (transform and opacity only),
   which the browser composites on the GPU without repainting the artwork. */

.sky {
    position: relative;
}

.sky__trails {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    transform-origin: 83.333% 17.241%;
    animation: bb-spin 260s linear infinite;
    will-change: transform;
}

.sky__pulse {
    position: absolute;
    top: 17.241%;
    left: 83.333%;
    width: 22%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 184, 28, 0.32), rgba(255, 184, 28, 0) 65%);
    transform: translate(-50%, -50%);
    animation: bb-pulse 5s ease-in-out infinite;
    pointer-events: none;
    will-change: transform, opacity;
}

.constellation {
    position: relative;
    width: 100%;
    height: auto;
    overflow: visible;
}

.constellation .dust circle {
    fill: #fff;
}

.constellation__line {
    fill: none;
    stroke: rgba(137, 162, 255, 0.7);
    stroke-width: 1.4;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: bb-draw 2.8s 0.5s var(--ease) forwards;
}

.constellation .star {
    fill: #fff;
}

.polaris__spark {
    fill: var(--amber);
}

.polaris__core {
    fill: #fff6dc;
}

.constellation__label {
    fill: var(--gold);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.constellation__label--muted {
    fill: rgba(201, 214, 230, 0.55);
    font-weight: 500;
}

/* ---------- Orbit ---------- */

.orbit {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin-left: auto;
}

.orbit__base {
    width: 100%;
    height: auto;
    overflow: visible;
}

.orbit__rings circle {
    fill: none;
    stroke: rgba(201, 214, 230, 0.16);
    stroke-width: 1;
}

.hero--mist .orbit__rings circle {
    stroke: rgba(1, 25, 54, 0.14);
}

.orbit__layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    animation: bb-spin 46s linear infinite;
    will-change: transform;
}

.orbit__layer--b {
    animation-duration: 70s;
    animation-direction: reverse;
}

.orbit__layer--c {
    animation-duration: 100s;
}

.orbit__moon {
    fill: var(--periwinkle);
}

.orbit__moon--amber {
    fill: var(--amber);
}

.orbit__star {
    fill: var(--amber);
}

/* ---------- Ticker ---------- */

.ticker {
    overflow: hidden;
    background: var(--amber);
    color: var(--navy-900);
}

.ticker__track {
    display: flex;
    width: max-content;
    animation: bb-marquee 46s linear infinite;
}

.ticker:hover .ticker__track {
    animation-play-state: paused;
}

.ticker__group {
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 16px 14px;
    list-style: none;
}

.ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 600;
    white-space: nowrap;
}

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

.section {
    position: relative;
    padding-block: var(--section-y);
    --section-bg: var(--paper);
}

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

.section--light + .section--light {
    padding-top: 0;
}

.section--mist {
    --section-bg: var(--mist-soft);
    background: var(--mist-soft);
}

.section--night {
    --section-bg: var(--navy-900);
    background:
        radial-gradient(900px 480px at 100% 0%, rgba(90, 126, 252, 0.16), transparent 60%),
        linear-gradient(180deg, var(--navy-900), var(--navy-950));
    color: var(--on-dark);
}

.section--night h2,
.section--night h3 {
    color: #fff;
}

.section--night .section-title em,
.section--night .statement__text em {
    color: var(--amber);
}

.section--night .section-intro {
    color: var(--on-dark);
}

/* ---------- Statement ---------- */

.statement {
    overflow: hidden;
}

.statement::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -120px;
    width: 420px;
    height: 420px;
    background: var(--periwinkle);
    opacity: 0.08;
    clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
    transform: translateY(-50%) rotate(12deg);
    pointer-events: none;
}

.section--night.statement::after {
    background: var(--amber);
    opacity: 0.06;
}

.statement__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}

.statement__body {
    padding-top: 34px;
}

.statement__text {
    font-size: var(--step-4);
    line-height: 1.06;
}

.statement__body {
    font-size: var(--step-1);
}

@media (max-width: 860px) {
    .statement__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .statement__body {
        padding-top: 0;
    }
}

/* ---------- Prose (rich text) ---------- */

.prose {
    color: #2c3e57;
    line-height: 1.75;
}

.prose > * {
    margin-top: 0;
    margin-bottom: 0;
}

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

.prose h2 {
    margin-top: 1.9em;
    font-size: var(--step-3);
}

.prose h3 {
    margin-top: 1.6em;
    font-size: var(--step-2);
}

.prose ul,
.prose ol {
    padding-left: 1.3em;
}

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

.prose blockquote {
    margin: 1.8em 0;
    padding: 4px 0 4px 26px;
    border-left: 3px solid var(--amber);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: var(--step-2);
    font-style: italic;
    line-height: 1.4;
}

.prose hr {
    width: 80px;
    margin: 2.4em auto;
    border: 0;
    border-top: 2px solid var(--line);
}

.prose iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: var(--radius);
}

.section--night .prose {
    color: var(--on-dark);
}

.section--night .prose a {
    color: var(--amber);
}

.text-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(24px, 5vw, 80px);
}

.text-section .section-head {
    margin-bottom: 0;
}

@media (max-width: 860px) {
    .text-section {
        grid-template-columns: minmax(0, 1fr);
    }
}

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

.card-grid {
    display: grid;
    gap: clamp(16px, 2vw, 24px);
}

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

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

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

@media (max-width: 1080px) {
    .card-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .card-grid--3 {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .card-grid--2,
    .card-grid--4 {
        grid-template-columns: minmax(0, 1fr);
    }
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--paper);
    transition:
        transform 0.4s var(--ease),
        box-shadow 0.4s var(--ease),
        border-color 0.4s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--line);
    box-shadow: var(--shadow);
}

.section--night .card {
    border-color: var(--line-dark);
    background: linear-gradient(160deg, rgba(20, 50, 92, 0.55), rgba(11, 37, 69, 0.35));
}

.section--night .card:hover {
    border-color: rgba(255, 184, 28, 0.45);
    box-shadow: 0 20px 50px rgba(1, 10, 25, 0.45);
}

.card__icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
    border-radius: 14px;
    background: var(--periwinkle-100);
    color: var(--navy-900);
}

.section--night .card__icon {
    border: 1px solid rgba(137, 162, 255, 0.22);
    background: rgba(137, 162, 255, 0.1);
    color: var(--amber);
}

.card__tag {
    margin: 0;
    color: var(--blue-600);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.section--night .card__tag {
    color: var(--gold);
}

.card__title {
    font-size: var(--step-2);
}

.card--link .card__title {
    font-size: var(--step-3);
}

.card__overlay-link {
    color: inherit;
    text-decoration: none;
}

.card__overlay-link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.card__text {
    margin: 0;
}

.section--night .card__text {
    color: var(--on-dark);
}

.card__cta {
    margin-top: auto;
    padding-top: 10px;
}

.checklist {
    display: grid;
    gap: 10px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.checklist li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.5;
}

.checklist .icon {
    margin-top: 2px;
    color: var(--blue-500);
}

.section--night .checklist .icon {
    color: var(--amber);
}

/* ---------- Journey ---------- */

.journey {
    --journey-gap: clamp(24px, 3vw, 44px);
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--journey-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* The line runs from the first marker to the last one. */
.journey::before {
    content: "";
    position: absolute;
    top: 23px;
    right: calc((100% - 2 * var(--journey-gap)) / 3 - 24px);
    left: 23px;
    height: 2px;
    background: linear-gradient(90deg, var(--blue-500), var(--periwinkle) 50%, var(--amber));
    opacity: 0.55;
}

.journey__step {
    position: relative;
    padding-top: 74px;
}

.journey__marker {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--navy-900);
    color: var(--amber);
    box-shadow: 0 0 0 8px var(--section-bg);
}

.journey__label {
    margin: 0 0 10px;
    color: var(--blue-600);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.journey__title {
    margin-bottom: 12px;
    font-size: var(--step-2);
}

.journey__text {
    margin-bottom: 14px;
}

@media (max-width: 860px) {
    .journey {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .journey::before {
        top: 24px;
        bottom: 24px;
        left: 23px;
        right: auto;
        width: 2px;
        height: auto;
        background: linear-gradient(180deg, var(--blue-500), var(--periwinkle) 50%, var(--amber));
    }

    .journey__step {
        padding: 0 0 0 76px;
    }
}

/* ---------- Contrast ---------- */

.contrast {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.contrast__col {
    padding: clamp(28px, 4vw, 52px);
}

.contrast__col--them {
    background: var(--paper);
}

.contrast__col--us {
    position: relative;
    background:
        radial-gradient(500px 260px at 100% 0%, rgba(255, 184, 28, 0.14), transparent 60%),
        linear-gradient(160deg, var(--navy-800), var(--navy-900));
    color: var(--on-dark);
}

.contrast__title {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 22px;
    font-size: var(--step-2);
}

.contrast__col--them .contrast__title {
    color: var(--slate);
}

.contrast__col--us .contrast__title {
    color: #fff;
}

.contrast__col--us .contrast__title .icon {
    color: var(--amber);
}

.contrast__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.contrast__list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 15px 0;
    border-top: 1px solid var(--line-soft);
    line-height: 1.5;
}

.contrast__col--us .contrast__list li {
    border-top-color: var(--line-dark);
    color: #e6eef6;
}

.contrast__list .icon {
    margin-top: 2px;
}

.contrast__col--them .icon {
    color: #9aa8bb;
}

.contrast__col--us .contrast__list .icon {
    color: var(--amber);
}

@media (max-width: 760px) {
    .contrast {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Matrix (comparison table) ---------- */

.matrix-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}

.matrix {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.97rem;
}

.matrix thead th:first-child {
    width: 26%;
}

.matrix caption {
    padding: 16px;
    text-align: left;
}

.matrix th,
.matrix td {
    padding: 17px 18px;
    border-bottom: 1px solid var(--line-soft);
    text-align: center;
    vertical-align: middle;
}

.matrix thead th {
    background: var(--navy-900);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 600;
}

.matrix thead th:first-child,
.matrix tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    text-align: left;
}

.matrix tbody th {
    background: var(--mist-soft);
    color: var(--ink);
    font-weight: 600;
}

.matrix tbody tr:last-child th,
.matrix tbody tr:last-child td {
    border-bottom: 0;
}

.matrix tbody tr:hover td {
    background: #f8fafd;
}

.matrix__yes {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(90, 126, 252, 0.13);
    color: var(--blue-600);
}

.matrix__no {
    color: #a3b0c2;
}

.matrix__note {
    display: inline-block;
    padding: 4px 11px;
    border: 1px solid #ffe2a0;
    border-radius: 999px;
    background: var(--amber-soft);
    color: var(--navy-800);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
}

.matrix-hint {
    display: none;
    align-items: center;
    gap: 6px;
    margin: -12px 0 14px;
    color: var(--slate-light);
    font-size: 0.85rem;
    font-weight: 500;
}

@media (max-width: 760px) {
    .matrix-hint {
        display: flex;
    }
}

.matrix-note {
    max-width: 52em;
    margin-top: 18px;
    color: var(--slate-light);
    font-size: 0.92rem;
}

/* ---------- FAQ ---------- */

.faq {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(24px, 5vw, 80px);
    align-items: start;
}

.faq__head {
    position: sticky;
    top: calc(var(--header-h) + 32px);
}

.faq__list {
    border-top: 1px solid var(--line);
}

.faq__item {
    border-bottom: 1px solid var(--line);
}

.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: var(--step-1);
    font-weight: 600;
    line-height: 1.3;
    list-style: none;
    text-wrap: balance;
    cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__toggle {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--navy-900);
    transition:
        transform 0.35s var(--ease),
        background-color 0.2s,
        border-color 0.2s;
}

.faq__item summary:hover .faq__toggle {
    border-color: var(--navy-900);
}

.faq__item[open] .faq__toggle {
    border-color: var(--amber);
    background: var(--amber);
    transform: rotate(45deg);
}

.faq__answer {
    max-width: 44em;
    padding-bottom: 26px;
}

@media (max-width: 860px) {
    .faq {
        grid-template-columns: minmax(0, 1fr);
    }

    .faq__head {
        position: static;
    }
}

/* ---------- Call to action ---------- */

.cta {
    padding-block: clamp(32px, 6vw, 88px);
    background: var(--paper);
}

.section--light + .cta {
    padding-top: 0;
}

.cta__panel {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) auto;
    gap: 32px;
    align-items: end;
    overflow: hidden;
    padding: clamp(36px, 6vw, 84px);
    border-radius: var(--radius-lg);
}

.cta--night .cta__panel {
    background:
        radial-gradient(640px 320px at 95% 0%, rgba(90, 126, 252, 0.38), transparent 62%),
        linear-gradient(135deg, var(--navy-800), var(--navy-950));
    color: var(--on-dark);
}

.cta--amber .cta__panel {
    background: linear-gradient(135deg, #ffc23d, var(--amber));
    color: var(--navy-900);
}

.cta--mist .cta__panel {
    background: var(--mist);
}

.cta__title {
    font-size: var(--step-4);
}

.cta--night .cta__title {
    color: #fff;
}

.cta--night .cta__title em {
    color: var(--amber);
}

.cta--amber .cta__title em {
    color: var(--navy-900);
}

.cta__text {
    max-width: 36em;
    margin-top: 18px;
    font-size: var(--step-1);
}

.cta--amber .eyebrow {
    color: var(--navy-800);
}

.cta--amber .btn--primary {
    background: var(--navy-900);
    color: #fff;
    box-shadow: 0 10px 26px rgba(1, 25, 54, 0.25);
}

.cta--amber .btn--primary:hover {
    background: var(--navy-800);
}

.cta__star {
    position: absolute;
    top: -80px;
    right: -70px;
    z-index: -1;
    color: var(--periwinkle);
    opacity: 0.1;
    transform: rotate(14deg);
    pointer-events: none;
}

.cta--amber .cta__star {
    color: #fff;
    opacity: 0.35;
}

@media (max-width: 860px) {
    .cta__panel {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }
}

/* ---------- Articles ---------- */

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

@media (max-width: 960px) {
    .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .article-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.article-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--paper);
    transition:
        transform 0.4s var(--ease),
        box-shadow 0.4s var(--ease);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.article-card__cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background:
        radial-gradient(420px 220px at 85% 0%, rgba(90, 126, 252, 0.4), transparent 62%),
        linear-gradient(135deg, var(--navy-800), var(--navy-950));
}

.article-card__cover--scholarships {
    background:
        radial-gradient(420px 220px at 85% 0%, rgba(255, 184, 28, 0.32), transparent 62%),
        linear-gradient(135deg, var(--navy-800), var(--navy-950));
}

.article-card__cover--careers {
    background:
        radial-gradient(420px 220px at 15% 0%, rgba(137, 162, 255, 0.45), transparent 62%),
        linear-gradient(135deg, var(--navy-700), var(--navy-950));
}

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

.article-card:hover .article-card__cover img {
    transform: scale(1.04);
}

.article-card__pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.2px 1.2px at 20px 30px, rgba(255, 255, 255, 0.7), transparent 70%),
        radial-gradient(1px 1px at 90px 80px, rgba(255, 255, 255, 0.5), transparent 70%),
        radial-gradient(1.2px 1.2px at 150px 20px, rgba(255, 255, 255, 0.6), transparent 70%),
        radial-gradient(1px 1px at 60px 130px, rgba(255, 255, 255, 0.4), transparent 70%);
    background-size: 180px 160px;
    opacity: 0.6;
}

.article-card__mark {
    position: absolute;
    right: 24px;
    bottom: 20px;
    color: var(--amber);
    transition: transform 0.6s var(--ease);
}

.article-card:hover .article-card__mark {
    transform: rotate(45deg) scale(1.1);
}

.article-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 24px 24px 26px;
}

.article-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 0;
    color: var(--slate-light);
    font-size: 0.85rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--periwinkle-100);
    color: var(--navy-800);
    font-size: 0.76rem;
    font-weight: 600;
}

.article-card__title {
    font-size: var(--step-2);
}

.article-card__title a {
    color: inherit;
    text-decoration: none;
}

.article-card__title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.article-card__summary {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.article-card__date {
    margin: auto 0 0;
    color: var(--slate-light);
    font-size: 0.85rem;
}

/* Featured article: the newest piece, shown wide */

.article-feature {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.4s var(--ease),
        box-shadow 0.4s var(--ease);
}

.article-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.article-feature__cover {
    position: relative;
    display: block;
    min-height: 340px;
    overflow: hidden;
    background:
        radial-gradient(420px 220px at 85% 0%, rgba(90, 126, 252, 0.4), transparent 62%),
        linear-gradient(135deg, var(--navy-800), var(--navy-950));
}

.article-feature__cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.article-feature:hover .article-feature__cover img {
    transform: scale(1.03);
}

.article-feature__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: clamp(28px, 4vw, 56px);
}

.article-feature__title {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
    line-height: 1.14;
}

.article-feature__title a {
    color: inherit;
    text-decoration: none;
}

.article-feature__title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.article-feature__summary {
    margin: 0;
    font-size: var(--step-1);
}

.article-feature__meta {
    margin: 0;
    color: var(--slate-light);
    font-size: 0.9rem;
}

.article-feature .text-link {
    margin-top: 6px;
}

.article-feature:hover .text-link .icon {
    transform: translateX(4px);
}

.article-grid--after-feature {
    margin-top: clamp(24px, 3vw, 32px);
}

@media (max-width: 860px) {
    .article-feature {
        grid-template-columns: minmax(0, 1fr);
    }

    .article-feature__cover {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-chip {
    padding: 9px 17px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--navy-800);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition:
        background-color 0.2s,
        border-color 0.2s;
}

.filter-chip:hover {
    border-color: var(--navy-900);
}

.filter-chip[aria-current="true"] {
    border-color: var(--navy-900);
    background: var(--navy-900);
    color: #fff;
}

.empty-state {
    padding: clamp(48px, 8vw, 96px) 24px;
    border: 1.5px dashed var(--line);
    border-radius: var(--radius-lg);
    background: var(--mist-soft);
    text-align: center;
}

.empty-state__icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--navy-900);
    color: var(--amber);
}

.empty-state__title {
    margin-bottom: 12px;
    font-size: var(--step-3);
}

.empty-state p {
    max-width: 34em;
    margin-inline: auto;
}

.pagination {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    margin-top: 48px;
}

/* Article page */

.article-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(56px, 8vw, 112px) 0 clamp(56px, 7vw, 96px);
    background:
        radial-gradient(900px 480px at 90% -10%, rgba(90, 126, 252, 0.22), transparent 62%),
        linear-gradient(180deg, var(--navy-900), var(--navy-950));
    color: var(--on-dark);
}

.article-hero__crumbs {
    color: #9fb0c8;
    font-size: 0.9rem;
}

.article-hero__crumbs a {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
}

.article-hero__title {
    margin: 18px 0 22px;
    color: #fff;
    font-size: var(--step-4);
}

.article-hero__summary {
    color: #e6eef6;
    font-family: var(--font-display);
    font-size: var(--step-2);
    font-weight: 400;
    line-height: 1.38;
}

.article-hero__meta {
    margin-top: 26px;
    color: #9fb0c8;
    font-size: 0.92rem;
}

.article-cover {
    position: relative;
    z-index: 1;
    margin-top: -40px;
}

.article-cover img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* About 65–70 characters per line for comfortable long-form reading */
.article-body {
    max-width: calc(660px + var(--gutter) * 2);
    padding-block: clamp(48px, 7vw, 96px);
    font-size: 1.15rem;
}

.article-cta {
    max-width: calc(660px + var(--gutter) * 2);
}

.article-cta {
    padding-bottom: clamp(56px, 8vw, 104px);
}

.article-cta__panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(28px, 4vw, 48px);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(520px 260px at 100% 0%, rgba(90, 126, 252, 0.34), transparent 62%),
        linear-gradient(135deg, var(--navy-800), var(--navy-950));
    color: var(--on-dark);
}

.article-cta__panel .eyebrow {
    color: var(--gold);
}

.article-cta__title {
    margin-bottom: 12px;
    color: #fff;
    font-size: var(--step-3);
}

.article-cta__title em {
    color: var(--amber);
    font-style: italic;
    font-weight: 500;
}

.article-cta__panel p:not(.eyebrow) {
    max-width: 34em;
    margin: 0 0 26px;
    font-size: var(--step-1);
}

.pull-quote {
    margin: 2.2em 0;
    padding: 30px 32px;
    border-radius: var(--radius);
    background: var(--navy-900);
}

.pull-quote blockquote {
    margin: 0;
    padding: 0;
    border: 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: var(--step-2);
    font-style: italic;
    line-height: 1.4;
}

.pull-quote figcaption {
    margin-top: 14px;
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 600;
}

.callout {
    padding: 24px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--mist-soft);
}

.callout__title {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: var(--step-1);
    font-weight: 600;
}

.callout__title .icon {
    color: var(--amber);
}

.figure {
    margin-inline: 0;
}

.figure img {
    width: 100%;
    border-radius: var(--radius);
}

/* Click-to-play video (see blocks/video.html and site.js) */
.video {
    margin: 0;
}

.video__frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    background: var(--navy-900);
    box-shadow: var(--shadow);
}

.video__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
}

.video__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

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

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

.video__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(1, 15, 34, 0.1) 30%, rgba(1, 15, 34, 0.75) 100%);
}

.video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin: -42px 0 0 -42px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 14px 40px rgba(255, 184, 28, 0.45);
    transition: transform 0.3s var(--ease);
}

.video__play::before {
    content: "";
    margin-left: 6px;
    border-style: solid;
    border-width: 13px 0 13px 22px;
    border-color: transparent transparent transparent var(--navy-900);
}

.video__poster:hover .video__play,
.video__poster:focus-visible .video__play {
    transform: scale(1.07);
}

.video__title {
    position: absolute;
    right: 24px;
    bottom: 20px;
    left: 24px;
    color: #fff;
    font-family: var(--font-display);
    font-size: var(--step-2);
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
}

@media (max-width: 560px) {
    .video__play {
        top: 42%;
        width: 60px;
        height: 60px;
        margin: -30px 0 0 -30px;
    }

    .video__play::before {
        margin-left: 4px;
        border-width: 10px 0 10px 16px;
    }

    .video__title {
        right: 16px;
        bottom: 12px;
        left: 16px;
        font-size: 1.05rem;
    }
}

.video figcaption {
    margin-top: 12px;
    color: var(--slate-light);
    font-size: 0.92rem;
}

.video figcaption a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    text-decoration: none;
}

.more-soon {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin: clamp(28px, 4vw, 44px) 0 0;
    color: var(--slate-light);
    font-size: 0.95rem;
}

.more-soon .icon {
    color: var(--amber);
}

.figure figcaption {
    margin-top: 10px;
    color: var(--slate-light);
    font-size: 0.9rem;
}

/* ---------- Illustrated article blocks ---------- */

/* Blocks that need room run wider than the text column on large screens. */
@media (min-width: 1040px) {
    .article-body .breakout {
        width: 880px;
        margin-left: calc((100% - 880px) / 2);
    }
}

.prose > .compare,
.prose > .steps,
.prose > .minicards,
.prose > .searchterms,
.prose > .ticklist,
.prose > .callout,
.prose > .figure,
.prose > .video,
.prose > .article-faq {
    margin-block: 2.2rem;
}

.article-faq .faq__item summary {
    padding: 20px 0;
}

.article-faq .faq__answer {
    padding-bottom: 22px;
    font-size: 1.05rem;
}

/* Callout lists use the North Star as their bullet. */
.prose .callout ul {
    padding-left: 0;
    list-style: none;
}

.prose .callout li {
    position: relative;
    padding-left: 1.5em;
}

.prose .callout li::before {
    content: "";
    position: absolute;
    top: 0.5em;
    left: 0.1em;
    width: 0.72em;
    height: 0.72em;
    background: var(--amber);
    clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}

/* Comparison: a plain side, an arrow, and a highlighted side. */
.compare {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 16px;
}

.compare__arrow {
    display: grid;
    place-items: center;
    align-self: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--amber);
    color: var(--navy-900);
    box-shadow: var(--shadow);
}

.compare__side {
    padding: clamp(22px, 3vw, 30px);
    border-radius: var(--radius);
    font-size: 1rem;
    line-height: 1.6;
}

.compare__side--plain {
    border: 1px solid var(--line-soft);
    background: var(--mist-soft);
    color: var(--slate);
}

.compare__side--lit {
    background:
        radial-gradient(360px 220px at 100% 0%, rgba(90, 126, 252, 0.32), transparent 62%),
        linear-gradient(135deg, var(--navy-800), var(--navy-950));
    color: var(--on-dark);
    box-shadow: var(--shadow);
}

.compare .compare__label {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 0 12px;
    color: var(--blue-600);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.compare__side--lit .compare__label {
    color: var(--gold);
}

.compare .compare__title {
    margin: 0 0 16px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: var(--step-3);
    font-weight: 600;
    line-height: 1.1;
}

.compare__title em {
    color: var(--blue-600);
    font-style: italic;
    font-weight: 500;
}

.compare__side--lit .compare__title {
    color: #fff;
}

.compare__side--lit .compare__title em {
    color: var(--amber);
}

.compare .compare__quote {
    margin: 0;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px 16px 16px 4px;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-style: normal;
    line-height: 1.6;
}

.compare__side--lit .compare__quote {
    border-color: rgba(255, 184, 28, 0.5);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.compare__quote p {
    margin: 0;
}

.compare .compare__points {
    margin: 0;
    padding: 0;
    list-style: none;
}

.compare .compare__points li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.compare .compare__points li + li {
    margin-top: 8px;
}

.compare__points .icon {
    flex-shrink: 0;
    margin-top: 0.42em;
    color: var(--blue-500);
}

.compare__side--lit .compare__points li {
    color: #fff;
}

.compare__side--lit .compare__points .icon {
    color: var(--amber);
}

.compare .compare__note {
    margin: 14px 0 0;
    font-size: 0.92rem;
}

@media (max-width: 640px) {
    .compare {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .compare__arrow {
        justify-self: center;
        transform: rotate(90deg);
    }
}

/* Steps at a glance: numbered markers joined by a dashed line. */
.steps {
    padding: clamp(24px, 4vw, 40px) clamp(18px, 3vw, 32px);
    border-radius: var(--radius-lg);
    background: var(--mist-soft);
}

.steps .steps__title {
    margin: 0 0 24px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: var(--step-2);
    font-weight: 600;
    text-align: center;
}

.steps .steps__list {
    position: relative;
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps .steps__list::before {
    content: "";
    position: absolute;
    top: 28px;
    right: 12%;
    left: 12%;
    border-top: 2px dashed rgba(90, 126, 252, 0.5);
}

.steps .steps__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    text-align: center;
}

.steps__marker {
    position: relative;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--navy-900);
    box-shadow: 0 0 0 6px var(--mist-soft);
    color: var(--amber);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
}

.steps__number {
    color: var(--blue-600);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.steps__name {
    margin-top: 4px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    text-wrap: balance;
}

.steps__text {
    margin-top: 6px;
    font-size: 0.92rem;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .steps .steps__list {
        grid-auto-flow: row;
        gap: 18px;
    }

    .steps .steps__list::before {
        top: 28px;
        right: auto;
        bottom: 28px;
        left: 27px;
        border-top: 0;
        border-left: 2px dashed rgba(90, 126, 252, 0.5);
    }

    .steps .steps__item {
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr);
        column-gap: 16px;
        align-items: center;
        text-align: left;
    }

    .steps__marker {
        grid-row: 1 / span 2;
        margin-bottom: 0;
    }

    .steps__number,
    .steps__name,
    .steps__text {
        grid-column: 2;
    }

    .steps__number {
        align-self: end;
    }

    .steps__name {
        align-self: start;
    }
}

/* Mini cards: short points side by side, or longer ones stacked. */
.minicards {
    display: grid;
    gap: 14px;
}

.minicards--grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

.minicard {
    position: relative;
    padding: 20px 20px 22px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    font-size: 0.98rem;
    line-height: 1.55;
}

.minicard__icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: var(--periwinkle-100);
    color: var(--blue-600);
}

.minicards .minicard__label {
    margin: 0 0 6px;
    color: var(--blue-600);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.minicards .minicard__title {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
}

.minicards .minicard__text {
    margin: 6px 0 0;
}

.minicards--stack .minicard {
    padding: 22px 24px 24px 30px;
}

.minicards--stack .minicard::before {
    content: "";
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 0;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--amber);
}

.minicards--stack .minicard__title {
    font-family: var(--font-body);
    font-size: 1rem;
}

.minicards--stack .minicard__text {
    margin-top: 10px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: var(--step-1);
    font-style: italic;
    line-height: 1.5;
}

/* A word or phrase for the reader to fill in. */
.blank {
    padding: 0.05em 0.45em;
    border: 1px dashed #d99a00;
    border-radius: 6px;
    background: var(--amber-soft);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.82em;
    font-style: normal;
    font-weight: 600;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* Search terms: a search box, and terms to try in it. */
.searchterms {
    padding: clamp(20px, 3.5vw, 32px);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(420px 200px at 85% 0%, rgba(137, 162, 255, 0.28), transparent 65%),
        var(--mist-soft);
}

.searchterms .searchterms__bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: center;
    margin: 0;
    padding: 14px 22px;
    border: 1px solid var(--line-soft);
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--shadow);
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.4;
}

.searchterms__bar .icon {
    color: var(--blue-600);
}

.searchterms__plus {
    color: var(--slate-light);
    font-weight: 600;
}

.searchterms__term {
    font-weight: 600;
}

.searchterms .searchterms__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.searchterms .searchterms__chips li + li {
    margin-top: 0;
}

.term-chip {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font: 500 0.9rem/1.2 var(--font-body);
    cursor: pointer;
    transition:
        background-color 0.2s,
        border-color 0.2s;
}

.term-chip:hover {
    border-color: var(--blue-500);
}

.term-chip:focus-visible {
    outline: 2px solid var(--blue-500);
    outline-offset: 2px;
}

.term-chip.is-active {
    border-color: var(--amber);
    background: var(--amber);
    color: var(--navy-900);
}

/* Tick list: questions to tick off, with a progress bar. Nothing is saved. */
.ticklist {
    padding: 8px clamp(20px, 3.5vw, 32px) clamp(20px, 3vw, 26px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.3s;
}

.ticklist.is-complete {
    border-color: var(--amber);
}

.ticklist .ticklist__title {
    margin: 18px 0 4px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: var(--step-2);
    font-weight: 600;
}

.ticklist .ticklist__entries {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ticklist .ticklist__entries li + li {
    margin-top: 0;
    border-top: 1px solid var(--line-soft);
}

.ticklist__entry {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.55;
    cursor: pointer;
}

.ticklist__entry input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ticklist__box {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    border: 2px solid var(--blue-500);
    border-radius: 7px;
    background: #fff;
    color: var(--navy-900);
    transition:
        background-color 0.2s,
        border-color 0.2s;
}

.ticklist__box .icon {
    opacity: 0;
    transform: scale(0.6);
    transition:
        opacity 0.2s,
        transform 0.25s var(--ease);
}

.ticklist__entry input:checked + .ticklist__box {
    border-color: var(--amber);
    background: var(--amber);
}

.ticklist__entry input:checked + .ticklist__box .icon {
    opacity: 1;
    transform: none;
}

.ticklist__entry input:focus-visible + .ticklist__box {
    outline: 2px solid var(--blue-500);
    outline-offset: 2px;
}

.ticklist__entry input:checked ~ .ticklist__text {
    color: var(--slate);
}

.ticklist .ticklist__progress {
    display: flex;
    gap: 14px;
    align-items: center;
    margin: 8px 0 0;
    color: var(--slate);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
}

.ticklist .ticklist__progress[hidden] {
    display: none;
}

.ticklist__bar {
    flex: 1;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--mist);
}

.ticklist__bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--amber);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

/* ---------- Forms ---------- */

.form-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(64px, 9vw, 120px) 0 clamp(150px, 16vw, 210px);
    background:
        radial-gradient(1000px 520px at 90% -10%, rgba(90, 126, 252, 0.24), transparent 62%),
        linear-gradient(180deg, var(--navy-900), var(--navy-950));
    color: var(--on-dark);
}

.form-hero--compact {
    padding-bottom: clamp(56px, 7vw, 96px);
}

.form-hero__title {
    max-width: 15ch;
    color: #fff;
    font-size: var(--step-5);
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.form-hero__title em {
    color: var(--amber);
}

.form-hero__intro {
    max-width: 38em;
    margin-top: 24px;
    font-size: var(--step-1);
}

.form-section {
    padding-bottom: var(--section-y);
    background: linear-gradient(180deg, var(--paper), var(--mist-soft));
}

.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
    margin-top: calc(clamp(110px, 12vw, 160px) * -1);
}

.form-card {
    position: relative;
    display: grid;
    gap: 24px;
    padding: clamp(24px, 4vw, 48px);
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow-lg);
}

.form-card__submit {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    padding-top: 8px;
}

.form-note {
    margin: 0;
    color: var(--slate-light);
    font-size: 0.86rem;
}

.form-errors {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: #fef2f2;
    color: #b91c1c;
}

.field {
    display: grid;
    gap: 8px;
}

.field fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.field legend {
    margin-bottom: 10px;
    padding: 0;
}

.field__label {
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 600;
}

.field__req {
    color: #c2410c;
}

.field__help {
    margin: -2px 0 2px;
    color: var(--slate-light);
    font-size: 0.86rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="number"],
.field input[type="date"],
.field input[type="datetime-local"],
.field select,
.field textarea,
.search-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid transparent;
    border-radius: 12px;
    background: var(--mist-soft);
    color: var(--ink);
    font: inherit;
    transition:
        border-color 0.2s,
        background-color 0.2s,
        box-shadow 0.2s;
}

.field select:has(option[value=""]:checked) {
    color: var(--slate-light);
}

.field select option {
    color: var(--ink);
}

.field select {
    padding-right: 46px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23011936' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    appearance: none;
}

.field textarea {
    min-height: 150px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-form input:focus {
    outline: none;
    border-color: var(--blue-500);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(90, 126, 252, 0.15);
}

.field--error input,
.field--error select,
.field--error textarea {
    border-color: #dc2626;
}

.field__error {
    margin: 0;
    color: #b91c1c;
    font-size: 0.87rem;
}

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

.choice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 13px 15px;
    border: 1.5px solid transparent;
    border-radius: 12px;
    background: var(--mist-soft);
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.4;
    cursor: pointer;
    transition:
        border-color 0.2s,
        background-color 0.2s;
}

.choice:hover {
    border-color: var(--line);
}

.choice:has(input:checked) {
    border-color: var(--blue-500);
    background: #fff;
}

.choice input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--navy-900);
}

.hp {
    position: absolute !important;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-aside {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    padding: clamp(26px, 3vw, 40px);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(420px 220px at 100% 0%, rgba(255, 184, 28, 0.14), transparent 62%),
        var(--navy-900);
    color: var(--on-dark);
}

.form-aside__title {
    margin-bottom: 20px;
    color: #fff;
    font-size: var(--step-2);
}

.form-aside__body ol,
.form-aside__body ul {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.form-aside__body ol {
    counter-reset: step;
}

.form-aside__body li {
    position: relative;
    padding-left: 46px;
    line-height: 1.55;
}

.form-aside__body ol li {
    counter-increment: step;
}

.form-aside__body ol li::before,
.form-aside__body ul li::before {
    position: absolute;
    top: -3px;
    left: 0;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 184, 28, 0.14);
    color: var(--amber);
    font-size: 0.9rem;
    font-weight: 700;
}

.form-aside__body ol li::before {
    content: counter(step);
}

.form-aside__body ul li::before {
    content: "\2726";
}

@media (max-width: 900px) {
    .form-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-aside {
        position: static;
    }
}

@media (max-width: 560px) {
    .choice-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Search */

.search-form {
    display: flex;
    gap: 12px;
    max-width: 640px;
    margin-top: 32px;
}

.search-form input {
    background: #fff;
}

.search-count {
    margin-bottom: 28px;
    color: var(--slate-light);
}

.search-results {
    display: grid;
    gap: 16px;
    max-width: 860px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.search-result {
    position: relative;
    padding: 24px 28px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    transition:
        border-color 0.2s,
        box-shadow 0.3s;
}

.search-result:hover {
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.search-result__kind {
    margin: 0 0 6px;
    color: var(--blue-600);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.search-result__title {
    margin-bottom: 8px;
    font-size: var(--step-2);
}

.search-result__title a {
    color: var(--ink);
    text-decoration: none;
}

.search-result__title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.search-result__text {
    margin-bottom: 10px;
}

@media (max-width: 560px) {
    .search-form {
        flex-direction: column;
    }
}

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

.site-footer {
    position: relative;
    overflow: hidden;
    padding: clamp(64px, 8vw, 104px) 0 32px;
    background: var(--navy-950);
    color: #9fb0c8;
}

.footer__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
}

.footer__brand .brand {
    margin-bottom: 20px;
}

.footer__blurb {
    max-width: 30em;
    margin-bottom: 26px;
}

.footer__heading {
    margin-bottom: 18px;
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.footer__links {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer__links a {
    color: var(--on-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.footer__links a:hover {
    color: #fff;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.social-link--soon {
    color: #70829c;
    cursor: default;
}

.social-link small {
    padding: 2px 8px;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    color: #8ea0b8;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer__bottom {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: space-between;
    margin-top: clamp(48px, 7vw, 88px);
    padding-top: 24px;
    border-top: 1px solid var(--line-dark);
    font-size: 0.88rem;
}

.footer__bottom p {
    margin: 0;
}

.footer__wordmark {
    position: absolute;
    right: -0.04em;
    bottom: -0.22em;
    color: rgba(255, 255, 255, 0.035);
    font-family: "Poppins", var(--font-display);
    font-size: clamp(5rem, 17vw, 15rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    white-space: nowrap;
    pointer-events: none;
}

@media (max-width: 900px) {
    .footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .footer__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Scroll reveal ---------- */

.js [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.8s var(--ease),
        transform 0.8s var(--ease);
}

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

/* ---------- Keyframes ---------- */

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

@keyframes bb-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes bb-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes bb-pulse {
    50% {
        opacity: 0.55;
        transform: translate(-50%, -50%) scale(1.18);
    }
}

@keyframes bb-marquee {
    to {
        transform: translateX(-50%);
    }
}

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

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

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