/* ==========================================================================
   SmartWOD Landing — design tokens from the SmartWOD app (src/constants/Colors.ts)
   ========================================================================== */

/* ---------- Fonts (Pulp Display self-hosted like in the app, Impact as system font) ---------- */

@font-face {
    font-family: 'Pulp Display';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/PulpDisplayLight.woff2') format('woff2');
}

@font-face {
    font-family: 'Pulp Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/PulpDisplayRegular.woff2') format('woff2');
}

@font-face {
    font-family: 'Pulp Display';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/PulpDisplayMedium.woff2') format('woff2');
}

@font-face {
    font-family: 'Pulp Display';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/PulpDisplaySemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Pulp Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/PulpDisplayBold.woff2') format('woff2');
}

:root {
    /* Brand */
    --ink: #111012;            /* app primary */
    --ink-soft: #1b1b1e;
    --paper: #ffffff;
    --paper-dim: #f6f6f8;
    --brand: #536eff;          /* app highlight */
    --brand-strong: #3e55e8;
    --brand-tint: #eef1ff;

    /* Workout type colors (identical to the apps) */
    --amrap: #eb8b1a;
    --fortime: #536eff;
    --emom: #9c00e5;
    --tabata: #14c38e;
    --mixed: #7b7e7f;

    /* Text */
    --text: #1c1b1e;
    --muted: #55555c;
    --text-inverse: #f5f5f7;
    --muted-inverse: #b9b9c1;

    /* Type scale */
    --font-display: impact, sans-serif;
    --font-body: 'Pulp Display', 'Helvetica Neue', Arial, sans-serif;

    /* Layout */
    --container: 72rem;
    --radius: 1.25rem;
    --radius-sm: 0.75rem;
    --shadow: 0 10px 30px rgba(17, 16, 18, 0.08);
    --shadow-lift: 0 18px 44px rgba(17, 16, 18, 0.14);

    /* Z scale */
    --z-nav: 50;
}

/* ---------- Reset ---------- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
}

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

ul {
    list-style: none;
}

/* ---------- A11y ---------- */

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 100;
    padding: 0.75rem 1.25rem;
    background: var(--ink);
    color: #fff;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

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

/* ---------- Layout helpers ---------- */

.container {
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
}

.container--narrow {
    max-width: 46rem;
}

.section {
    padding: clamp(4rem, 9vw, 7rem) 0;
}

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

.section--dark {
    background: var(--ink);
    color: var(--text-inverse);
}

.section__eyebrow {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 0.5rem;
}

.section--dark .section__eyebrow {
    color: #8fa0ff;
}

.section__title {
    font-family: var(--font-display);
    font-weight: normal;
    font-size: clamp(2.1rem, 4.5vw, 3.25rem);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    max-width: 26ch;
}

.section__lead {
    margin-top: 1rem;
    max-width: 58ch;
    font-size: 1.15rem;
    color: var(--muted);
}

.section--dark .section__lead {
    color: var(--muted-inverse);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    border: 2px solid transparent;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease,
        box-shadow 0.2s ease;
}

.btn--primary {
    background: var(--brand);
    color: #fff;
}

.btn--primary:hover {
    background: var(--brand-strong);
    box-shadow: 0 8px 24px rgba(83, 110, 255, 0.35);
}

.btn--ghost {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}

.btn--ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.btn--small {
    min-height: 2.5rem;
    padding: 0.35rem 1.2rem;
    font-size: 1rem;
}

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

.site-header {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    z-index: var(--z-nav);
}

.nav {
    width: min(100%, var(--container));
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(17, 16, 18, 0.08);
    box-shadow: var(--shadow);
    transition: box-shadow 0.25s ease;
}

.nav--scrolled {
    box-shadow: var(--shadow-lift);
}

.nav__logo img {
    width: 140px;
    height: auto;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.nav__menu a:not(.btn) {
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    color: var(--text);
    transition: color 0.2s ease;
}

.nav__menu a:not(.btn):hover {
    color: var(--brand);
}

.nav__dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav__dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1;
    color: var(--text);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav__dropdown-toggle:hover,
.nav__dropdown.is-open .nav__dropdown-toggle {
    color: var(--brand);
}

.nav__chevron {
    transition: transform 0.2s ease;
}

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

.nav__submenu {
    display: none;
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%);
    min-width: 210px;
    flex-direction: column;
    padding: 0.4rem;
    background: var(--paper);
    border: 1px solid rgba(17, 16, 18, 0.08);
    border-radius: 0.9rem;
    box-shadow: var(--shadow-lift);
    z-index: 30;
}

/* Invisible bridge so the flyout doesn't close in the gap under the toggle */
.nav__submenu::before {
    content: '';
    position: absolute;
    top: -0.75rem;
    left: 0;
    right: 0;
    height: 0.75rem;
}

.nav__dropdown:hover .nav__submenu,
.nav__dropdown.is-open .nav__submenu {
    display: flex;
}

.nav__submenu a:not(.btn) {
    padding: 0.6rem 0.8rem;
    border-radius: 0.6rem;
    white-space: nowrap;
}

.nav__submenu a:not(.btn):hover {
    background: var(--paper-dim);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: 0;
    cursor: pointer;
}

.nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin-inline: auto;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 820px) {
    .nav__toggle {
        display: flex;
    }

    .nav {
        border-radius: 1.4rem;
        flex-wrap: wrap;
    }

    .nav__menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
        padding: 0.5rem 0 0.75rem;
    }

    .nav__menu.is-open {
        display: flex;
    }

    .nav__menu a:not(.btn) {
        padding: 0.8rem 0.5rem;
        border-top: 1px solid rgba(17, 16, 18, 0.06);
    }

    .nav__menu .btn {
        margin-top: 0.75rem;
    }

    .nav__dropdown {
        flex-direction: column;
        align-items: stretch;
    }

    .nav__dropdown-toggle {
        justify-content: space-between;
        width: 100%;
        padding: 0.8rem 0.5rem;
        border-top: 1px solid rgba(17, 16, 18, 0.06);
    }

    .nav__submenu {
        position: static;
        transform: none;
        min-width: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: none;
    }

    .nav__submenu::before {
        display: none;
    }

    .nav__submenu a:not(.btn) {
        padding: 0.7rem 0.5rem 0.7rem 1.4rem;
        border-top: 1px solid rgba(17, 16, 18, 0.06);
        border-radius: 0;
        white-space: normal;
    }

    /* On touch, only an explicit tap (is-open) reveals the submenu — not hover */
    .nav__dropdown:hover .nav__submenu {
        display: none;
    }

    .nav__dropdown.is-open .nav__submenu {
        display: flex;
    }

    .nav__toggle[aria-expanded='true'] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav__toggle[aria-expanded='true'] span:nth-child(2) {
        opacity: 0;
    }

    .nav__toggle[aria-expanded='true'] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

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

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(100svh, 60rem);
    padding: 8.5rem 0 5rem;
    background: var(--ink);
    color: var(--text-inverse);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(17, 16, 18, 0.92) 0%,
        rgba(17, 16, 18, 0.72) 45%,
        rgba(17, 16, 18, 0.35) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    column-gap: clamp(2rem, 6vw, 5rem);
}

.hero__media {
    display: flex;
    justify-content: center;
}

.hero__media img {
    width: min(100%, 27rem);
    height: auto;
}

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

    .hero__media {
        margin-top: 2.75rem;
    }

    .hero__media img {
        width: min(78%, 20rem);
    }
}

.hero__eyebrow {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #8fa0ff;
    margin-bottom: 1rem;
}

.hero__title {
    font-family: var(--font-display);
    font-weight: normal;
    font-size: clamp(3.2rem, 10vw, 6.5rem);
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.hero__sub {
    margin-top: 1.5rem;
    max-width: 36rem;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--muted-inverse);
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.25rem;
}

.hero__stats {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 5vw, 4rem);
    margin-top: clamp(2.5rem, 6vw, 4.5rem);
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero__stats dt {
    font-family: var(--font-display);
    font-weight: normal;
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    line-height: 1;
}

.hero__stats dd {
    margin-top: 0.25rem;
    color: var(--muted-inverse);
    font-size: 0.98rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ---------- App cards ---------- */

.app-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.app-card {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: var(--radius);
    border: 1px solid rgba(17, 16, 18, 0.08);
    background: var(--paper);
    box-shadow: var(--shadow);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.app-card:hover {
    box-shadow: var(--shadow-lift);
    border-color: rgba(83, 110, 255, 0.35);
}

.app-card__head {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.app-card__head img {
    width: 72px;
    height: 72px;
    border-radius: 1.1rem;
    box-shadow: var(--shadow);
}

.app-card h3 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: normal;
    text-transform: uppercase;
    line-height: 1.1;
}

.app-card__tag {
    color: var(--brand);
    font-weight: 600;
    font-size: 0.95rem;
}

.app-card > p {
    color: var(--muted);
}

.checklist li {
    position: relative;
    padding-left: 1.9rem;
    margin-bottom: 0.55rem;
    font-weight: 500;
}

.checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.28rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23536eff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 0.7rem no-repeat;
}

/* ---------- Store buttons ---------- */

.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 3.25rem;
    padding: 0.5rem 1.15rem;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: #fff;
    text-decoration: none;
    line-height: 1.1;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.store-btn:hover {
    background: #2a292d;
    box-shadow: var(--shadow);
}

.store-btn svg {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.store-btn span {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    font-size: 1.05rem;
}

.store-btn small {
    font-size: 0.68rem;
    font-weight: 400;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.store-btn--light {
    background: #fff;
    color: var(--ink);
}

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

/* ---------- Split sections ---------- */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.split--reverse .split__media {
    order: 2;
}

.split__media img {
    margin-inline: auto;
    max-height: 38rem;
    width: auto;
    filter: drop-shadow(0 24px 40px rgba(17, 16, 18, 0.18));
}

.split__text .btn {
    margin-top: 2rem;
}

.split__app-icon {
    width: 56px;
    height: 56px;
    border-radius: 0.9rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.1rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 0.9rem;
    background: var(--brand-tint);
    color: var(--brand);
}

.feature__icon svg {
    width: 1.4rem;
    height: 1.4rem;
}

.feature h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: normal;
    text-transform: uppercase;
}

.feature p {
    color: var(--muted);
}

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

    .split--reverse .split__media {
        order: 0;
    }

    .split__media img {
        max-height: 26rem;
    }
}

/* ---------- Mode chips ---------- */

.mode-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.chip {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.95rem;
    border-radius: 999px;
    color: #fff;
}

.chip--amrap { background: var(--amrap); }
.chip--fortime { background: var(--fortime); }
.chip--emom { background: var(--emom); }
.chip--tabata { background: var(--tabata); color: #06281d; }

/* ---------- Workout types ---------- */

.type-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}

@media (max-width: 1100px) {
    .type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.type-card {
    padding: 1.75rem 1.5rem;
    border-radius: var(--radius);
    background: var(--ink-soft);
    border-top: 4px solid;
}

.type-card--amrap { border-color: var(--amrap); }
.type-card--emom { border-color: var(--emom); }
.type-card--tabata { border-color: var(--tabata); }
.type-card--fortime { border-color: var(--fortime); }
.type-card--mixed { border-color: var(--mixed); }

.type-card h3 {
    font-family: var(--font-display);
    font-weight: normal;
    font-size: 1.7rem;
    letter-spacing: 0.05em;
}

.type-card--amrap h3 { color: #f3a852; }
.type-card--emom h3 { color: #c869f5; }
.type-card--tabata h3 { color: #3fdcae; }
.type-card--fortime h3 { color: #8fa0ff; }
.type-card--mixed h3 { color: #a9acad; }

.type-card__def {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted-inverse);
    margin: 0.15rem 0 0.75rem;
}

.type-card > p:last-child {
    color: var(--muted-inverse);
    font-size: 0.98rem;
}

/* ---------- Testimonials ---------- */

.quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.quote-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.75rem;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid rgba(17, 16, 18, 0.08);
    box-shadow: var(--shadow);
}

.stars {
    color: var(--amrap);
    font-size: 1.1rem;
    letter-spacing: 0.15em;
}

.quote-card blockquote {
    font-size: 1.08rem;
    font-weight: 500;
    line-height: 1.55;
}

.quote-card figcaption {
    margin-top: auto;
    color: var(--muted);
    font-size: 0.92rem;
}

/* ---------- Team ---------- */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.team-card {
    text-align: center;
}

.team-card img {
    width: min(100%, 10.5rem);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    margin-inline: auto;
    box-shadow: var(--shadow);
}

.team-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: normal;
    text-transform: uppercase;
    margin-top: 1rem;
}

.team-card p {
    color: var(--muted);
    font-size: 0.92rem;
}

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

.faq-list {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.faq-list details {
    border: 1px solid rgba(17, 16, 18, 0.1);
    border-radius: var(--radius-sm);
    background: var(--paper);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-list details[open] {
    border-color: rgba(83, 110, 255, 0.45);
}

.faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.3rem;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
}

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

.faq-list summary::after {
    content: '';
    flex-shrink: 0;
    width: 0.85rem;
    height: 0.85rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111012' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 0.25s ease;
}

.faq-list details[open] summary::after {
    transform: rotate(180deg);
}

.faq-list details p {
    padding: 0 1.3rem 1.2rem;
    color: var(--muted);
}

/* ---------- CTA band ---------- */

.cta-band {
    text-align: center;
}

.cta-band .section__title,
.cta-band .section__lead {
    margin-inline: auto;
}

.cta-band__apps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
    gap: 2rem;
    max-width: 50rem;
    margin: 3rem auto 0;
}

.cta-band__app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    background: var(--ink-soft);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-band__app img {
    border-radius: 0.9rem;
}

.cta-band__app h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: normal;
    text-transform: uppercase;
}

.cta-band__app .store-buttons {
    justify-content: center;
    margin-top: 0.25rem;
}

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

.site-footer {
    background: var(--ink);
    color: var(--muted-inverse);
    padding: 4rem 0 2rem;
}

.site-footer__top {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 3rem;
}

.site-footer__brand img {
    filter: invert(1) brightness(1.6);
}

.site-footer__brand p {
    margin-top: 1rem;
}

.site-footer__social {
    display: flex;
    gap: 0.9rem;
    margin-top: 1.25rem;
}

.site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-inverse);
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.site-footer__social a:hover {
    border-color: var(--brand);
    color: #fff;
    background: rgba(83, 110, 255, 0.25);
}

.site-footer__social svg {
    width: 1.25rem;
    height: 1.25rem;
}

.site-footer__nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 2rem;
}

.site-footer__nav h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: normal;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-inverse);
    margin-bottom: 0.9rem;
}

.site-footer__nav a {
    display: block;
    padding: 0.25rem 0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.site-footer__nav a:hover {
    color: #fff;
}

.site-footer__copy {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.88rem;
}

@media (max-width: 720px) {
    .site-footer__top {
        grid-template-columns: 1fr;
    }
}

/* ---------- Reveal animation ---------- */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

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

    .reveal {
        opacity: 1;
        transform: none;
    }
}
