:root {
    --bg: #0b0b0c;
    --surface: #151517;
    --surface-2: #1d1d20;
    --line: #2a2a2e;
    --text: #f4f2ef;
    --muted: #a9a6a1;
    --red: #e0383e;        /* pulled from the logo plume */
    --red-deep: #b8232a;
    --red-ink: #ff6b6f;    /* red for text on dark: 5.9:1 on --bg */

    --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --body: 'Barlow', system-ui, sans-serif;

    --gutter: clamp(1.6rem, 5vw, 6rem);
    --max: 112rem;
    --radius: 1.2rem;
}

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

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    scroll-padding-top: 8rem;
    color-scheme: dark;
    accent-color: var(--red);
    scrollbar-color: #3a3a40 var(--bg);
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 1.7rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
    list-style: none;
}

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: -10rem;
    padding: 1rem 1.6rem;
    background: var(--text);
    color: var(--bg);
    font-weight: 600;
    z-index: 200;
}

.skip-link:focus {
    top: 1rem;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.4rem var(--gutter);
    background: rgb(11 11 12 / 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-family: var(--display);
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.logo img {
    width: 4rem;
    height: 4rem;
    border-radius: 0.8rem;
    box-shadow:
        0 0 10px rgb(224 56 62 / 0.6),
        0 0 24px rgb(224 56 62 / 0.3);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 3.2rem;
}

.site-nav a:not(.btn) {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s ease;
}

.site-nav a:not(.btn):hover {
    color: var(--text);
}

.nav-toggle {
    display: none;
    width: 4.4rem;
    height: 4.4rem;
    background: none;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.nav-toggle span {
    width: 2rem;
    height: 2px;
    background: var(--text);
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.4rem 2.6rem;
    background: var(--red);
    color: #fff;
    border: 2px solid var(--red);
    border-radius: 99rem;
    font-family: var(--display);
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    background: var(--red-deep);
    border-color: var(--red-deep);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}

.btn-ghost:hover {
    background: var(--surface-2);
    border-color: var(--muted);
}

.btn-sm {
    padding: 0.8rem 1.8rem;
    font-size: 1.6rem;
}

/* ---------- Shared section ---------- */

.section,
.hero,
.site-footer {
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--gutter);
    box-sizing: content-box;
}

.section {
    padding-block: clamp(6rem, 10vw, 11rem);
    border-top: 1px solid var(--line);
}

.section-head {
    margin-bottom: 4.8rem;
}

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

h2 {
    font-size: clamp(3.6rem, 6vw, 6rem);
    max-width: 18ch;
}

h3 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

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

.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: clamp(4rem, 6vw, 8rem);
    padding-block: clamp(5rem, 9vw, 10rem);
}

.hero h1 {
    font-size: clamp(5rem, 8.5vw, 9.6rem);
    line-height: 0.92;
    margin-bottom: 2.8rem;
}

.hero h1 em {
    font-style: normal;
    color: var(--red);
}

.lede {
    font-size: clamp(1.7rem, 1.6vw, 1.9rem);
    color: var(--muted);
    max-width: 52ch;
    margin-bottom: 3.6rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.8rem;
    margin-top: 3.2rem;
    font-size: 1.6rem;
    color: var(--muted);
}

.hero-meta li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.hero-meta svg {
    width: 2rem;
    height: 2rem;
    color: var(--red-ink);
    flex-shrink: 0;
}

.hero-meta strong {
    color: var(--text);
    font-weight: 600;
}

.hero-art {
    position: relative;
    justify-self: center;
    width: min(100%, 44rem);
}

.hero-art::before {
    content: "";
    position: absolute;
    inset: 8% -6% -6% 8%;
    border: 2px solid var(--red);
    border-radius: 2.4rem;
}

.hero-art img {
    position: relative;
    width: 100%;
    border-radius: 2.4rem;
    box-shadow:
        0 0 40px rgb(224 56 62 / 0.55),
        0 0 100px rgb(224 56 62 / 0.25);
}

/* ---------- Steps ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6rem;
}

.steps li {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 0;
    align-content: start;
    padding: 2.8rem 2.4rem 3.2rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.step-num {
    display: block;
    font-family: var(--display);
    font-size: 4.4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--red);
    margin-bottom: 2.4rem;
}

.steps h3 {
    margin-bottom: 1rem;
}

.steps p {
    color: var(--muted);
    font-size: 1.6rem;
}

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

#team .section-head {
    text-align: center;
}

#team h2 {
    margin-inline: auto;
}

.team {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 3.2rem 2.4rem;
    text-align: center;
}

.member img {
    width: 100%;
    max-width: 15rem;
    aspect-ratio: 1;
    object-fit: cover;
    margin: 0 auto 1.6rem;
    border-radius: 50%;
    border: 3px solid var(--red);
}

.member h3 {
    font-size: 2.2rem;
}

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

.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
    padding: clamp(2.8rem, 4vw, 4.8rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.card h3 {
    font-size: clamp(3rem, 4vw, 4rem);
}

.card p {
    color: var(--muted);
    max-width: 40ch;
    margin-bottom: 1.2rem;
}

.card .btn {
    margin-top: auto;
}

.card-primary {
    background: linear-gradient(160deg, #2a1012 0%, var(--surface) 70%);
    border-color: #4a1a1d;
}

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

.site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2.4rem;
    padding-block: 4rem 5rem;
    border-top: 1px solid var(--line);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.footer-brand img {
    width: 4.8rem;
    height: 4.8rem;
    border-radius: 0.8rem;
}

.footer-brand strong {
    font-family: var(--display);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.footer-brand p {
    font-size: 1.5rem;
    color: var(--muted);
}

.footer-brand p a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem 2.8rem;
}

.icon-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    color: var(--muted);
    transition: color 0.2s ease;
}

.icon-link:hover {
    color: var(--text);
}

.icon-link svg {
    width: 2rem;
    height: 2rem;
}

/* ---------- Responsive ---------- */

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

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

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

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.8rem var(--gutter) 2.4rem;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        display: none;
    }

    .nav-open .site-nav {
        display: flex;
    }

    .site-nav a:not(.btn) {
        padding: 1.4rem 0;
        font-size: 1.8rem;
        color: var(--text);
        border-bottom: 1px solid var(--line);
    }

    .site-nav .btn {
        margin-top: 2rem;
        justify-content: center;
    }

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

    .hero-art {
        grid-row: 1;
        width: min(55%, 22rem);
        justify-self: start;
    }

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

@media (max-width: 520px) {
    .hero h1 {
        font-size: clamp(4rem, 13vw, 5rem);
    }

    .logo span {
        font-size: 2rem;
    }

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

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

    .hero-actions .btn {
        flex: 1 1 100%;
        justify-content: center;
    }
}

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

    * {
        transition: none !important;
    }
}
