/* ==========================================================================
   Driven Sports Group Inc.
   Static rebuild of drivensportsgroup.com

   Palette and layout follow the original Wix site: black / white / grey,
   oversized light display headings, one shared spacing scale.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
    --black: #000000;
    --ink: #111111;
    --white: #ffffff;
    --paper: #f4f4f4;
    --paper-2: #ebebeb;
    --muted: #6e6e6e;
    --muted-2: #8c8c8c;
    --muted-dark: #a8a8a8;
    --line: #dcdcdc;
    --line-dark: #2e2e2e;

    --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-grotesk: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-hero: "Heebo", "Helvetica Neue", Helvetica, Arial, sans-serif;

    --shell: 1370px;
    --gutter: 24px;
    --header-h: 148px;

    /* One vertical rhythm scale, used everywhere. The original had arbitrary
       gaps that left big holes in the page. */
    --sp-section: clamp(64px, 7vw, 96px);
    --sp-block: clamp(32px, 3.6vw, 52px);
    --sp-tight: clamp(20px, 2vw, 30px);

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --shadow: 0 18px 44px -24px rgba(0, 0, 0, 0.4);
    --shadow-lift: 0 26px 60px -26px rgba(0, 0, 0, 0.52);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

h1, h2, h3, h4, p, figure, ul {
    margin: 0;
}

ul {
    padding: 0;
    list-style: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

::selection {
    background: var(--black);
    color: var(--white);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    padding: 12px 20px;
    background: var(--white);
    color: var(--black);
}

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

/* Present for screen readers and search engines, not for sighted users. */
.visually-hidden-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.shell {
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    padding: var(--sp-section) 0;
}

.section--dark {
    background: var(--black);
    color: var(--white);
}

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

/* --------------------------------------------------------------------------
   Section rule + eyebrow
   -------------------------------------------------------------------------- */
.eyebrow-rule {
    position: relative;
    height: 1px;
    background: var(--line);
    margin-bottom: var(--sp-tight);
}

.eyebrow-rule::before {
    content: "";
    position: absolute;
    left: 0;
    top: -1px;
    width: 115px;
    height: 3px;
    background: var(--black);
}

.section--dark .eyebrow-rule {
    background: var(--line-dark);
}

.section--dark .eyebrow-rule::before {
    background: var(--white);
}

.eyebrow {
    font-family: var(--font-grotesk);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: var(--sp-block);
    color: var(--muted);
}

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

/* Oversized light display heading */
.display {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.6rem, 6.4vw, 6rem);
    line-height: 1.06;
    letter-spacing: -0.025em;
    max-width: 16ch;
    color: var(--white);
}

.section--paper .display,
.section:not(.section--dark) .display {
    color: var(--ink);
}

.display--wide {
    max-width: 19ch;
}

.lede {
    font-size: 17px;
    line-height: 1.62;
    max-width: 64ch;
}

.lede p + p {
    margin-top: 1.15em;
}

.section--dark .lede {
    color: #d6d6d6;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 50;
    background: transparent;
}

.site-header--solid {
    position: relative;
    background: var(--black);
}

.site-header__inner {
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 var(--gutter);
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.brand__mark {
    width: 100%;
    max-width: 452px;
}

.brand__partner {
    width: 168px;
    margin-left: 112px;
}

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

.site-nav a {
    position: relative;
    color: var(--white);
    font-family: var(--font-grotesk);
    font-size: 15px;
    letter-spacing: 0.04em;
    line-height: 1;
    padding: 8px 0;
    transition: color 0.2s var(--ease);
}

/* Underline grows from the left on hover, rather than the link just dimming */
.site-nav a:not(.btn-pill)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s var(--ease);
}

.site-nav a:not(.btn-pill):hover::after,
.site-nav a:not(.btn-pill)[aria-current="page"]::after {
    transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
    color: var(--white);
}

.btn-pill {
    display: inline-block;
    background: var(--white);
    color: var(--black) !important;
    border-radius: 999px;
    padding: 13px 30px !important;
    font-size: 14px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px var(--white);
    transition: background 0.24s var(--ease), color 0.24s var(--ease);
}

.btn-pill:hover {
    background: transparent;
    color: var(--white) !important;
}

/* Compact black bar that drops in once the page is scrolled past the top.
   main.js toggles is-stuck and compensates body padding for in-flow headers. */
.site-header.is-stuck {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 90;
    background: var(--black);
    box-shadow: 0 14px 34px -20px rgba(0, 0, 0, 0.65);
    animation: header-drop 0.35s var(--ease);
}

@keyframes header-drop {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: none;
    }
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    color: var(--white);
    align-items: center;
    justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: relative;
}

.nav-toggle span::before {
    top: -7px;
}

.nav-toggle span::after {
    top: 5px;
}

.nav-toggle[aria-expanded="true"] span {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
    transform: translateY(-5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    background: var(--black);
    color: var(--white);
    overflow: hidden;
}

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

/* Darkened top for header legibility, darkened foot so the section below
   does not start with a hard seam */
.hero__scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.08) 30%, rgba(0, 0, 0, 0) 55%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 34%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 52%);
}

.hero__inner {
    position: relative;
    max-width: var(--shell);
    margin: 0 auto;
    padding: calc(var(--header-h) + 80px) var(--gutter) 120px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero__title {
    font-family: var(--font-hero);
    font-weight: 500;
    font-size: clamp(2.25rem, 4.6vw, 4.25rem);
    line-height: 1.24;
    letter-spacing: -0.005em;
}

/* The three words stack and fade in one after another on load */
.hero__title span {
    display: block;
    opacity: 0;
    transform: translateY(22px);
    animation: hero-word 1s var(--ease) forwards;
}

.hero__title span:nth-child(1) {
    animation-delay: 0.2s;
}

.hero__title span:nth-child(2) {
    animation-delay: 0.65s;
}

.hero__title span:nth-child(3) {
    animation-delay: 1.1s;
}

@keyframes hero-word {
    to {
        opacity: 1;
        transform: none;
    }
}

/* Shorter photo hero used on inner pages */
.hero--page .hero__inner {
    min-height: 560px;
    justify-content: flex-end;
    padding-bottom: 78px;
}

.hero--page .hero__title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    max-width: 16ch;
}

/* Plain heading block for pages with no hero photo */
.page-head {
    padding: var(--sp-section) 0 var(--sp-block);
}

.page-head__title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.5rem, 6.4vw, 5.4rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.page-head__sub {
    margin-top: 20px;
    max-width: 62ch;
    color: var(--muted);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Home: vision split
   -------------------------------------------------------------------------- */
.vision-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
    align-items: stretch;
    gap: clamp(36px, 5vw, 84px);
}

.vision-body__text .lede {
    margin-top: var(--sp-block);
    padding-top: 28px;
    border-top: 1px solid var(--line-dark);
    max-width: 58ch;
}

/* The image fills whatever height the text column needs, no more. The source
   file is square; letting it set its own height left a huge black void. */
.vision-body__media {
    position: relative;
    align-self: stretch;
    overflow: hidden;
    min-height: 420px;
    border-radius: 14px;
    border: 1px solid var(--line-dark);
}

.vision-body__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* The source photo is very dark; lift it so the section is not a void */
    filter: brightness(1.35);
}

/* Why Driven: text beside a framed office photo */
.why-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
    align-items: stretch;
    gap: clamp(36px, 5vw, 84px);
}

.why-grid__text .lede {
    margin-top: var(--sp-block);
    padding-top: 28px;
    border-top: 1px solid var(--line-dark);
    max-width: 58ch;
}

.why-grid__media {
    position: relative;
    align-self: stretch;
    overflow: hidden;
    min-height: 400px;
    border-radius: 14px;
    border: 1px solid var(--line-dark);
}

.why-grid__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   Feature cards (philosophy blocks)
   -------------------------------------------------------------------------- */
.feature {
    background: var(--white);
    border-radius: 16px;
    padding: clamp(34px, 3.4vw, 62px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 4vw, 68px);
    align-items: center;
    box-shadow: var(--shadow);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

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

.feature + .feature {
    margin-top: 26px;
}

.feature__body {
    padding-left: clamp(24px, 3vw, 56px);
    border-left: 2px solid var(--black);
}

.feature--flip .feature__body {
    order: 2;
    border-left: 0;
    border-right: 2px solid var(--black);
    padding-left: 0;
    padding-right: clamp(24px, 3vw, 56px);
}

.feature--flip .feature__media {
    order: 1;
}

.feature__title {
    font-family: var(--font-grotesk);
    font-weight: 500;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    letter-spacing: 0.005em;
    line-height: 1.2;
    margin-bottom: 30px;
}

.feature__text {
    margin-top: 28px;
    max-width: 56ch;
    line-height: 1.6;
    color: #333333;
}

.feature__media {
    overflow: hidden;
    border-radius: 10px;
}

.feature__media img {
    width: 100%;
    transition: transform 0.7s var(--ease);
}

.feature:hover .feature__media img {
    transform: scale(1.035);
}

/* Stat rows */
.stats {
    display: flex;
    flex-direction: column;
}

.stat {
    display: flex;
    align-items: baseline;
    gap: 22px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.stat:last-child {
    border-bottom: 0;
}

.stat__num {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.6rem, 3.6vw, 3.5rem);
    line-height: 1;
    min-width: 118px;
    letter-spacing: -0.03em;
}

.stat__label {
    font-family: var(--font-grotesk);
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

/* The two value lists use the same rows without the numerals */
.rows .stat {
    padding: 15px 0;
}

.rows .stat__label {
    min-width: 0;
    font-size: 16px;
    letter-spacing: 0.1em;
    color: var(--ink);
}

/* --------------------------------------------------------------------------
   Definition strip
   -------------------------------------------------------------------------- */
.definition {
    background: var(--black);
    color: var(--white);
    padding: var(--sp-block) 0 0;
}

.definition__row {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.definition__mark {
    width: 176px;
}

.definition__word {
    font-family: var(--font-grotesk);
    font-size: clamp(1.3rem, 2.2vw, 1.85rem);
    letter-spacing: 0.02em;
    color: var(--muted-dark);
}

.definition__quote {
    font-family: "Times New Roman", Times, serif;
    font-style: italic;
    font-size: clamp(1.05rem, 1.7vw, 1.45rem);
    line-height: 1.5;
    margin-top: 20px;
    padding-bottom: var(--sp-tight);
    border-bottom: 1px solid var(--line-dark);
    color: #e2e2e2;
}

/* --------------------------------------------------------------------------
   Impact block
   -------------------------------------------------------------------------- */
.impact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: clamp(34px, 5vw, 76px);
    align-items: center;
}

.impact__text .lede {
    max-width: 58ch;
}

.impact__media {
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--line-dark);
    background: #050505;
}

.impact__media img {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Services grid
   -------------------------------------------------------------------------- */
.services-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: clamp(36px, 5vw, 76px);
    align-items: start;
    padding-bottom: var(--sp-section);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    counter-reset: service;
    background: var(--line);
    border: 1px solid var(--line);
}

/* Hairline grid rather than floating text blocks: it reads as a service
   list instead of an unstructured wall of paragraphs. */
.service {
    counter-increment: service;
    background: var(--white);
    padding: clamp(26px, 2.4vw, 38px);
    transition: background 0.3s var(--ease);
}

.service:hover {
    background: var(--paper);
}

.service__num {
    display: block;
    font-family: var(--font-grotesk);
    font-size: 13px;
    letter-spacing: 0.2em;
    color: var(--muted-2);
    margin-bottom: 14px;
}

.service__num::before {
    content: counter(service, decimal-leading-zero);
}

.service h3 {
    font-family: var(--font-grotesk);
    font-weight: 700;
    font-size: 19px;
    line-height: 1.3;
    margin-bottom: 16px;
}

.service p {
    color: #3a3a3a;
    font-size: 16px;
    line-height: 1.6;
}

.services-layout__media {
    position: sticky;
    top: 26px;
    overflow: hidden;
    border-radius: 10px;
}

.services-layout__media img {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */
.team-group + .team-group {
    margin-top: var(--sp-section);
}

.team-group__head {
    margin-bottom: var(--sp-tight);
}

.team-group__head .eyebrow-rule {
    margin-bottom: 22px;
}

.team-group__title {
    font-family: var(--font-grotesk);
    font-weight: 700;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    letter-spacing: -0.01em;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* Two-up for the small groups so single cards do not sit alone in a
   three-column track */
.team-grid--pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 860px;
    margin: 0 auto;
}

.team-grid--solo {
    grid-template-columns: minmax(0, 420px);
}

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

/* Cards are buttons: the whole card opens the member's bio modal */
.member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 38px 28px 30px;
    cursor: pointer;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.member:hover {
    border-color: var(--black);
    box-shadow: var(--shadow);
}

.member__media {
    display: block;
    width: 132px;
    height: 132px;
    flex: 0 0 132px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--paper-2);
}

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

.member:hover .member__photo {
    transform: scale(1.07);
}

.member__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.member__name {
    display: block;
    font-family: var(--font-grotesk);
    font-weight: 700;
    font-size: 19px;
    margin-bottom: 8px;
}

.member__role {
    display: block;
    font-size: 15px;
    line-height: 1.45;
    color: var(--muted);
}

.member__cta {
    display: inline-block;
    margin-top: auto;
    padding-top: 18px;
    font-family: var(--font-grotesk);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted-2);
    transition: color 0.3s var(--ease);
}

.member:hover .member__cta {
    color: var(--black);
}

/* Bio modal */
.bio-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--gutter);
}

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

.bio-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}

.bio-modal__panel {
    position: relative;
    width: min(720px, 100%);
    max-height: min(86vh, 760px);
    background: var(--white);
    border-radius: 16px;
    padding: clamp(28px, 4vw, 44px);
    overflow-y: auto;
    box-shadow: var(--shadow-lift);
}

.bio-modal__head {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-right: 96px;
}

.bio-modal__avatar {
    display: block;
    width: 116px;
    height: 116px;
    flex: 0 0 116px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--paper-2);
    border: 1px solid var(--line);
}

.bio-modal__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-modal__name {
    font-family: var(--font-grotesk);
    font-weight: 700;
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    line-height: 1.2;
}

.bio-modal__role {
    margin-top: 8px;
    font-size: 15px;
    color: var(--muted);
}

.bio-modal__text {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 16px;
    line-height: 1.68;
    color: #2f2f2f;
}

.bio-modal__text p + p {
    margin-top: 1.3em;
}

.bio-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 1;
    padding: 8px 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--font-grotesk);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: background 0.24s var(--ease), color 0.24s var(--ease), border-color 0.24s var(--ease);
}

.bio-modal__close:hover {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}

/* --------------------------------------------------------------------------
   News
   -------------------------------------------------------------------------- */
.news-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(290px, 1fr);
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}

.news-rail > * {
    scroll-snap-align: start;
}

.news-rail::-webkit-scrollbar {
    height: 4px;
}

.news-rail::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 4px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 30px;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.card:hover {
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: var(--shadow-lift);
}

.card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--paper-2);
}

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

.card:hover .card__media img {
    transform: scale(1.05);
}

.card__body {
    padding: 26px 26px 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card__date {
    /* HTML keeps the heading first for document order; visually the date
       sits above it like a kicker. */
    order: -1;
    font-family: var(--font-grotesk);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 12px;
}

.card__title {
    font-family: var(--font-grotesk);
    font-weight: 500;
    font-size: 19px;
    line-height: 1.32;
    margin-bottom: 14px;
}

.card__excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 26px;
}

.btn-outline {
    align-self: flex-start;
    margin-top: auto;
    display: inline-block;
    padding: 11px 26px;
    border: 1px solid var(--black);
    border-radius: 999px;
    font-family: var(--font-grotesk);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: background 0.24s var(--ease), color 0.24s var(--ease);
}

.btn-outline:hover {
    background: var(--black);
    color: var(--white);
}

/* Article page */
.article {
    padding: var(--sp-block) 0 var(--sp-section);
}

.article__inner {
    max-width: 720px;
    margin: 0 auto;
}

.article__media {
    max-width: 900px;
    margin: 0 auto var(--sp-block);
    border-radius: 12px;
    overflow: hidden;
}

.article__eyebrow {
    font-family: var(--font-grotesk);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 18px;
    display: block;
}

.article__title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.95rem, 3.6vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.article__date {
    color: var(--muted-2);
    font-family: var(--font-grotesk);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 20px 0 30px;
}

.article__summary {
    font-size: 20px;
    line-height: 1.55;
    color: var(--ink);
    padding-left: 24px;
    border-left: 2px solid var(--black);
    margin-bottom: 36px;
}

.article__body {
    font-size: 17px;
    line-height: 1.68;
    color: #2b2b2b;
}

.article__body p + p {
    margin-top: 1.3em;
}

.article__nav {
    display: flex;
    justify-content: space-between;
    gap: 26px;
    margin-top: var(--sp-block);
    padding-top: 26px;
    border-top: 1px solid var(--line);
    font-size: 15px;
    line-height: 1.4;
}

.article__nav a {
    max-width: 46%;
    color: var(--muted);
    transition: color 0.2s var(--ease);
}

.article__nav a:hover {
    color: var(--black);
}

.article__nav span {
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
    padding-bottom: var(--sp-section);
}

.contact-intro p {
    line-height: 1.6;
    color: var(--muted);
    max-width: 44ch;
}

.contact-details {
    margin-top: var(--sp-block);
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.contact-details h2 {
    font-family: var(--font-grotesk);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 8px;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-details address {
    font-style: normal;
    line-height: 1.55;
}

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

.field {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.field--full {
    grid-column: 1 / -1;
}

.field label {
    font-family: var(--font-grotesk);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.field input,
.field textarea {
    font: inherit;
    font-size: 16px;
    color: var(--black);
    background: var(--white);
    border: 0;
    border-bottom: 1px solid #b5b5b5;
    border-radius: 0;
    padding: 11px 2px;
    width: 100%;
    transition: border-color 0.24s var(--ease);
}

.field textarea {
    min-height: 122px;
    resize: vertical;
    border: 1px solid #b5b5b5;
    border-radius: 6px;
    padding: 13px 14px;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--black);
}

.btn-solid {
    grid-column: 1 / -1;
    justify-self: start;
    background: var(--black);
    color: var(--white);
    border-radius: 999px;
    padding: 16px 48px;
    font-family: var(--font-grotesk);
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px var(--black);
    transition: background 0.24s var(--ease), color 0.24s var(--ease);
}

.btn-solid:hover {
    background: transparent;
    color: var(--black);
}

.form-note {
    grid-column: 1 / -1;
    font-size: 14px;
    color: var(--muted);
}

.form-note a {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--white);
    padding: var(--sp-section) 0 64px;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 340px repeat(3, minmax(0, 1fr));
    gap: 40px;
    align-items: start;
}

.site-footer__logo {
    width: 268px;
}

.site-footer h2 {
    font-family: var(--font-grotesk);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 22px;
}

.site-footer li + li {
    margin-top: 9px;
}

.site-footer a {
    color: #444444;
    transition: color 0.2s var(--ease);
}

.site-footer a:hover {
    color: var(--black);
}

.site-footer ul a {
    position: relative;
}

.site-footer ul a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.26s var(--ease);
}

.site-footer ul a:hover::after {
    transform: scaleX(1);
}

.site-footer address {
    font-style: normal;
    color: #444444;
    line-height: 1.6;
}

.site-footer address a {
    display: inline-block;
    margin-bottom: 6px;
}

.legal {
    margin-top: var(--sp-block);
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted-2);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* Children staggered by index, set from main.js */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
}

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

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

    .reveal,
    .reveal-stagger > * {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero__title span {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .site-header.is-stuck {
        animation: none;
    }

    .feature:hover,
    .card:hover,
    .member:hover {
        transform: none;
    }

    .member:hover .member__photo {
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
    :root {
        --header-h: 120px;
    }

    .brand__mark {
        max-width: 320px;
    }

    .brand__partner {
        width: 130px;
        margin-left: 78px;
    }

    .site-nav {
        gap: 20px;
    }

    .site-nav a {
        font-size: 14px;
    }

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

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

@media (max-width: 900px) {
    :root {
        --header-h: 104px;
    }

    .nav-toggle {
        display: flex;
    }

    .site-header__inner {
        flex-wrap: wrap;
    }

    .site-nav {
        display: none;
        order: 3;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        padding: 8px 0 26px;
    }

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

    .site-nav a {
        font-size: 18px;
        padding: 12px 0;
    }

    .site-nav a:not(.btn-pill)::after {
        display: none;
    }

    .btn-pill {
        margin-top: 12px;
    }

    /* The header needs a solid backdrop once the menu drops down */
    .site-header.is-open {
        position: relative;
        background: var(--black);
    }

    /* When the menu opens from the scrolled-down sticky bar it must stay
       fixed on screen, not jump back to the top of the document. */
    .site-header.is-stuck.is-open {
        position: fixed;
        max-height: 100vh;
        overflow-y: auto;
    }

    .brand__mark {
        max-width: 240px;
    }

    .brand__partner {
        width: 100px;
        margin-left: 58px;
    }

    .hero__inner {
        min-height: 600px;
        padding-top: calc(var(--header-h) + 48px);
        padding-bottom: 110px;
    }

    .hero--page .hero__inner {
        min-height: 400px;
        padding-bottom: 56px;
    }

    .vision-body,
    .why-grid,
    .impact,
    .feature,
    .services-layout,
    .contact-layout,
    .services-grid,
    .team-grid,
    .news-grid,
    .form-grid,
    .prose-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .why-grid__media {
        min-height: 300px;
    }

    .impact__media {
        max-width: 340px;
    }

    .team-grid--pair,
    .team-grid--solo,
    .team-grid--quad {
        grid-template-columns: minmax(0, 1fr);
        max-width: 420px;
        margin: 0 auto;
    }

    .bio-modal__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding-right: 0;
    }

    .bio-modal__avatar {
        width: 96px;
        height: 96px;
        flex-basis: auto;
    }

    .vision-body {
        gap: 30px;
    }

    .vision-body__media {
        min-height: 300px;
        max-height: 380px;
    }

    .feature {
        gap: 30px;
    }

    .feature__body,
    .feature--flip .feature__body {
        order: 1;
        border: 0;
        border-left: 2px solid var(--black);
        padding: 0 0 0 22px;
    }

    .feature--flip .feature__media {
        order: 2;
    }

    .services-grid {
        border-left: 0;
        border-right: 0;
    }

    .services-layout__media {
        position: static;
        max-width: 420px;
    }

    .article__summary {
        font-size: 18px;
    }

    .site-footer__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px;
    }

    .site-footer__logo {
        width: 220px;
    }

    .prose {
        padding-top: var(--sp-block);
    }

    .prose-row {
        gap: 30px;
        padding-bottom: var(--sp-block);
    }

    .prose-row__text,
    .prose-row--flip .prose-row__text {
        order: 1;
    }

    .prose-row__media,
    .prose-row--flip .prose-row__media {
        order: 2;
        max-width: 362px;
    }
}

@media (max-width: 560px) {
    .stat {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .stat__num {
        min-width: 0;
    }

    .site-footer__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .definition__row {
        gap: 16px;
    }

    .definition__mark {
        width: 140px;
    }

    .article__nav {
        flex-direction: column;
        gap: 14px;
    }

    .article__nav a {
        max-width: none;
        text-align: left !important;
    }
}

/* --------------------------------------------------------------------------
   Prose rows (About)
   -------------------------------------------------------------------------- */
.prose {
    max-width: 1144px;
    margin: 0 auto;
    padding: var(--sp-section) var(--gutter) 0;
}

.prose-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 362px;
    gap: clamp(34px, 4vw, 62px);
    align-items: start;
    padding-bottom: var(--sp-section);
}

.prose-row + .prose-row {
    border-top: 1px solid var(--line);
    padding-top: var(--sp-section);
}

/* Media on the left. The column widths swap with the order, otherwise the
   text lands in the narrow image track. */
.prose-row--flip {
    grid-template-columns: 362px minmax(0, 1fr);
}

.prose-row--flip .prose-row__text {
    order: 2;
}

.prose-row--flip .prose-row__media {
    order: 1;
}

.prose-eyebrow {
    font-family: var(--font-grotesk);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 16px;
}

.prose-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2rem, 3.8vw, 3.3rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin-bottom: 32px;
}

.prose-body {
    font-size: 16px;
    line-height: 1.68;
    color: #2f2f2f;
    max-width: 68ch;
}

.prose-body p + p {
    margin-top: 1.35em;
}

.prose-row__media {
    position: sticky;
    top: 26px;
}

.prose-row__media img {
    width: 100%;
    border-radius: 10px;
}

/* These prose rules sit after the main responsive block, so their mobile
   overrides must repeat here to win the cascade. */
@media (max-width: 900px) {
    .prose-row,
    .prose-row--flip {
        grid-template-columns: minmax(0, 1fr);
    }

    .prose-row__media {
        position: static;
    }
}
