.hero { position: relative; color: var(--white); overflow: hidden; }
.hero .row { align-items: center; position: relative; z-index: 1; }
.hero h1 { color: var(--white); margin: 0 0 0.4em; background: none; -webkit-text-fill-color: currentColor; }
.hero p  { color: rgba(255, 255, 255, 0.82); }
.hero a.btn { margin-top: 0.5rem; }
.hero .eyebrow.on-dark { margin-bottom: 0.9em; }
.hero--photo { background: var(--grad-hero); padding-block: clamp(48px, 8vw, 104px); }
.hero--photo h1 {
    font-weight: 200;
    font-size: clamp(2.75rem, 6vw, 4.375rem);
    line-height: 1.04;
}
.hero .hero__media {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 60%;
    max-width: none;
    height: auto;
    z-index: 2;
    overflow: hidden;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}
.hero .hero__media figure { position: absolute; inset: 0; margin: 0; }
.hero .hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero--light {
    background: var(--surface-soft);
    color: var(--heading);
    overflow: clip;
    padding-top: calc(var(--header-overlap, 0px) + clamp(48px, 7vw, 104px));
    padding-bottom: clamp(48px, 7vw, 104px);
    h1 {
        color: var(--heading);
        background: none;
        -webkit-text-fill-color: currentColor;
        font-family: var(--type-display);
        font-weight: 700;
        font-size: clamp(2.4rem, 5.2vw, 4.6875rem);
        line-height: 1.04;
        margin: 0 0 0.5em;
    }
    p { color: var(--text-muted); }
    .eyebrow { color: var(--accent-deep); }
    > * { position: relative; z-index: 1; }
}
.hero--light .hero-decor,
.hero--split .hero-decor {
    position: absolute;
    inset: 0;
    z-index: 0;
    margin: 0;
    max-width: none;
    padding-inline: 0;
    pointer-events: none;
}
.hero--light {
    .hero-eyebrow { margin: 0 auto clamp(0.9rem, 1.6vw, 1.4rem); }
    .hero__intro {
        position: relative;
        padding-block: clamp(1.75rem, 3vw, 2.75rem);
        align-items: start;
    }
    .hero__intro::before, .hero__intro::after {
        content: "";
        position: absolute;
        left: var(--page-gutter);
        right: var(--page-gutter);
        height: 0;
        border-top: 1px solid var(--hairline);
        pointer-events: none;
    }
    .hero__intro::before { top: 0; }
    .hero__intro::after { bottom: 0; }
}
@media only screen and (min-width: 993px) {
    .hero--light .hero__intro > *:nth-child(2) {
        border-left: 1px solid var(--hairline);
        padding-left: clamp(1.75rem, 3.5vw, 3.5rem);
    }
}
.hero--light {
    .hero__intro > *:first-child p {
        color: var(--heading);
        font-size: clamp(1.05rem, 1.35vw, 1.25rem);
        line-height: 1.55;
        max-width: var(--hero-intro-measure, none);
        margin: 0 0 1.25rem;
    }
    .hero__intro a.btn { margin-top: 0.25rem; margin-bottom: 0; }
}
.hero-rail {
    display: flex; flex-direction: column;
    .stat { padding-block: clamp(1rem, 1.8vw, 1.6rem); }
    .stat:first-child { padding-top: 0; }
    .stat + .stat { border-top: 1px solid var(--hairline); }
    .num {
        display: block;
        font-family: var(--type-display);
        font-weight: 700;
        color: var(--prime);
        font-size: clamp(1.35rem, 1.9vw, 1.625rem);
        line-height: 1.1;
        margin-bottom: 0.35em;
    }
}
.hero--light .hero-rail p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.4;
    max-width: none;
}
@media only screen and (max-width: 992px) {
    .hero--light .hero__intro.row:not(.no-stack):has(> .col-2-5) > .col-3-5,
    .hero--light .hero__intro.row:not(.no-stack):has(> .col-2-5) > .col-2-5,
    .hero--light .hero__intro.row:not(.no-stack):has(> .col-1-3) > .col-2-3,
    .hero--light .hero__intro.row:not(.no-stack):has(> .col-2-3) > .col-1-3,
    .hero--light .hero__intro.row:not(.no-stack) > .col-1-2 {
        flex: 0 0 100%;
    }
    .hero--light .hero__intro > *:nth-child(2) {
        margin-top: clamp(1.5rem, 3vw, 2rem);
    }
}
.hero--light {
    .hero__frame {
        --hero-frame-max: 62%;
        position: relative;
        padding-block: clamp(1.25rem, 2.2vw, 2rem) clamp(1.5rem, 2.8vw, 2.625rem);
    }
    .hero__frame::before, .hero__frame::after {
        content: "";
        position: absolute;
        left: var(--page-gutter);
        right: var(--page-gutter);
        height: 0;
        border-top: 1px solid var(--hairline);
        pointer-events: none;
    }
    .hero__frame::before { top: 0; }
    .hero__frame::after { bottom: 0; }
    .hero__frame > * { max-width: var(--hero-frame-max); }
    .hero__frame h1 { margin: 0 0 0.55em; }
    .hero__frame :last-child { margin-bottom: 0; }
    .hero__frame p {
        color: var(--text-body);
        font-size: clamp(1.05rem, 1.25vw, 1.1875rem);
        line-height: 1.55;
        margin: 0;
    }
}
@media only screen and (max-width: 760px) {
    .hero--light .hero__frame > * { max-width: none; }
}
.hero-wash {
    position: absolute;
    inset: 0;
    left: 0;
    right: 0;
    max-width: 2400px;
    margin-inline: auto;
    pointer-events: none;
    --wash-strength: 1;
    --wash-speed: 1;
    --wash-y: 0%;
    --wash-core: 38%;
    --wash-travel: 2.5;
    .hw {
        position: absolute;
        border-radius: 50%;
        will-change: transform;
        translate: 0 var(--wash-y);
    }
    .hw1 {
        left: -20%;
        top: -14%;
        width: 64%;
        aspect-ratio: 1063 / 620;
        background: radial-gradient(closest-side,
            var(--blob-a) 0%, var(--blob-a) var(--wash-core), transparent 100%);
        opacity: calc(0.95 * var(--wash-strength));
        animation: washSink calc(16s * var(--wash-speed)) ease-in-out -7s infinite;
    }
    .hw2 {
        left: 34%;
        top: -18%;
        width: 78%;
        aspect-ratio: 1326 / 768;
        background: radial-gradient(closest-side,
            var(--blob-b) 0%, var(--blob-b) var(--wash-core), transparent 100%);
        opacity: calc(1 * var(--wash-strength));
        animation: washDrift calc(21s * var(--wash-speed)) ease-in-out -19s infinite;
    }
    .hw3 {
        left: 2%;
        top: 44%;
        width: 52%;
        aspect-ratio: 1 / 0.72;
        background: radial-gradient(closest-side,
            var(--blob-a) 0%, var(--blob-a) calc(var(--wash-core) * 0.8), transparent 100%);
        opacity: calc(0.82 * var(--wash-strength));
        animation: washRise calc(18s * var(--wash-speed)) ease-in-out -23s infinite;
    }
    .hw4 {
        left: 52%;
        top: 38%;
        width: 66%;
        aspect-ratio: 1 / 0.62;
        background: radial-gradient(closest-side,
            var(--blob-b) 0%, var(--blob-b) calc(var(--wash-core) * 0.8), transparent 100%);
        opacity: calc(0.88 * var(--wash-strength));
        animation: washCircle calc(23s * var(--wash-speed)) ease-in-out -11s infinite;
    }
}
@keyframes washSink {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    15%  { transform: translate3d(calc(4% * var(--wash-travel)), calc(8% * var(--wash-travel)), 0) scale(1.16); }
    30%  { transform: translate3d(calc(10% * var(--wash-travel)), calc(18% * var(--wash-travel)), 0) scale(0.92); }
    45%  { transform: translate3d(calc(2% * var(--wash-travel)), calc(27% * var(--wash-travel)), 0) scale(1.18); }
    60%  { transform: translate3d(calc(-8% * var(--wash-travel)), calc(20% * var(--wash-travel)), 0) scale(0.9); }
    80%  { transform: translate3d(calc(-13% * var(--wash-travel)), calc(8% * var(--wash-travel)), 0) scale(1.12); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes washDrift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    18%  { transform: translate3d(calc(-10% * var(--wash-travel)), calc(9% * var(--wash-travel)), 0) scale(1.2); }
    36%  { transform: translate3d(calc(-22% * var(--wash-travel)), calc(16% * var(--wash-travel)), 0) scale(0.88); }
    54%  { transform: translate3d(calc(-30% * var(--wash-travel)), calc(-4% * var(--wash-travel)), 0) scale(1.18); }
    72%  { transform: translate3d(calc(-18% * var(--wash-travel)), calc(-16% * var(--wash-travel)), 0) scale(0.9); }
    88%  { transform: translate3d(calc(-6% * var(--wash-travel)), calc(-10% * var(--wash-travel)), 0) scale(1.1); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes washRise {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    20%  { transform: translate3d(calc(8% * var(--wash-travel)), calc(-12% * var(--wash-travel)), 0) scale(1.22); }
    40%  { transform: translate3d(calc(17% * var(--wash-travel)), calc(-25% * var(--wash-travel)), 0) scale(0.88); }
    58%  { transform: translate3d(calc(2% * var(--wash-travel)), calc(-35% * var(--wash-travel)), 0) scale(1.18); }
    78%  { transform: translate3d(calc(-13% * var(--wash-travel)), calc(-22% * var(--wash-travel)), 0) scale(0.9); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes washCircle {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    16%  { transform: translate3d(calc(11% * var(--wash-travel)), calc(-9% * var(--wash-travel)), 0) scale(1.15); }
    33%  { transform: translate3d(calc(22% * var(--wash-travel)), calc(2% * var(--wash-travel)), 0) scale(0.9); }
    50%  { transform: translate3d(calc(26% * var(--wash-travel)), calc(16% * var(--wash-travel)), 0) scale(1.2); }
    66%  { transform: translate3d(calc(8% * var(--wash-travel)), calc(24% * var(--wash-travel)), 0) scale(0.92); }
    83%  { transform: translate3d(calc(-9% * var(--wash-travel)), calc(14% * var(--wash-travel)), 0) scale(1.12); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-wash .hw { animation: none; }
}
.hero--split {
    background: var(--surface-soft);
    color: var(--text-body);
    overflow: clip;
    padding-top: calc(var(--header-overlap, 0px) + clamp(56px, 9vw, 160px));
    padding-bottom: clamp(60px, 8vw, 120px);
    h1, h2, h3 { color: var(--heading); }
    > * { position: relative; z-index: 1; }
}
.hero-blobs {
    position: absolute; inset: 0; pointer-events: none;
    .hb { position: absolute; height: auto; will-change: transform; }
    .hb5 { left: -8%;  top: -18%; width: 42vw; animation: heroBlobA 18s ease-in-out infinite; }
    .hb3 { left: -16%; top: 6%;   width: 38vw; animation: heroBlobB 22s ease-in-out infinite; }
    .hb1 { left: 20%;  top: -12%; width: 54vw; animation: heroBlobC 20s ease-in-out infinite; }
    .hb2 { left: 44%;  top: 0%;   width: 54vw; animation: heroBlobA 24s ease-in-out infinite; }
    .hb4 { left: 36%;  top: 18%;  width: 52vw; animation: heroBlobB 17s ease-in-out infinite reverse; }
}
@keyframes heroBlobA {
    0%   { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(7%, -6%) scale(1.12); }
    50%  { transform: translate(-5%, 5%) scale(0.9); }
    75%  { transform: translate(6%, 7%) scale(1.08); }
    100% { transform: translate(0, 0) scale(1); }
}
@keyframes heroBlobB {
    0%   { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(-7%, 5%) scale(0.88); }
    50%  { transform: translate(6%, -7%) scale(1.15); }
    75%  { transform: translate(-5%, -6%) scale(1.04); }
    100% { transform: translate(0, 0) scale(1); }
}
@keyframes heroBlobC {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(-6%, -6%) scale(1.1); }
    66%  { transform: translate(7%, 4%) scale(0.92); }
    100% { transform: translate(0, 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-blobs .hb { animation: none; }
}
.hero--split {
    .hero__intro {
        position: relative;
        padding-top: clamp(1.5rem, 3vw, 2.5rem);
        align-items: start;
    }
    .hero__intro::before {
        content: "";
        position: absolute;
        top: 0;
        left: var(--page-gutter);
        right: var(--page-gutter);
        height: 0;
        border-top: 1px solid var(--hairline);
        pointer-events: none;
    }
    .hero__intro > *:nth-child(2) {
        border-left: 1px solid var(--hairline);
        padding-left: clamp(1.5rem, 3vw, 2.5rem);
    }
    h1 {
        font-family: var(--type-display);
        font-weight: 700;
        font-size: clamp(2.1rem, 4.6vw, 3.4rem);
        line-height: 1.05;
        margin: 0;
        background: none;
        -webkit-text-fill-color: currentColor;
    }
    h1 em { font-style: normal; font-size: 1.2em; }
    .hero__intro p { color: var(--text-muted); }
    .hero__intro a.btn { margin-top: 0.5rem; margin-bottom: 0; }
    .hero__stats {
        position: relative;
        margin-top: clamp(1.5rem, 3vw, 2.5rem);
        padding-block: clamp(1rem, 2vw, 1.5rem);
    }
    .hero__stats::before, .hero__stats::after {
        content: "";
        position: absolute;
        left: var(--page-gutter);
        right: var(--page-gutter);
        height: 0;
        border-top: 1px solid var(--hairline);
        pointer-events: none;
    }
    .hero__stats::before { top: 0; }
    .hero__stats::after { bottom: 0; }
    .hero__stats > * {
        position: relative;
        text-align: center;
        padding-inline: clamp(0.5rem, 1.5vw, 1.25rem);
    }
    .hero__stats > * + * { border-left: 1px solid var(--hairline); }
    .hero__stats h3 {
        display: block;
        font-family: var(--type-display);
        font-weight: 700;
        font-size: clamp(1.1rem, 1.9vw, 1.4rem);
        line-height: 1.1;
        margin: 0 0 0.3em;
    }
    .hero__stats p {
        margin: 0;
        color: var(--text-muted);
        font-size: 0.85rem;
        line-height: 1.35;
    }
}
@media only screen and (max-width: 900px) {
    .hero--split .hero__intro > *:nth-child(2) { border-left: 0; padding-left: 0; }
    .hero--split .hero__stats > * + * { border-left: 0; padding-left: 0; }
}
.hero--text { background: var(--grad-hero); padding-block: clamp(48px, 7vw, 88px); }
.hero--text h1 {
    font-weight: 200;
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    line-height: 1.05;
    max-width: 18ch;
}
.hero--text p { max-width: 44em; }
.hero--center { text-align: center; }
.hero--center .eyebrow { text-align: center; }
.hero--center h1 { max-width: 22ch; margin-inline: auto; }
.hero--center p  { margin-inline: auto; }
.hero--center a.btn { margin-inline: 0.25rem; }
@media only screen and (max-width: 900px) {
    .hero .hero__media { left: 65%; }
}
@media only screen and (max-width: 600px) {
    .hero--photo { padding-top: clamp(32px, 8vw, 64px); }
    .hero .hero__media {
        position: relative;
        left: 0;
        width: 100%;
        height: auto;
        clip-path: none;
        margin-top: 1.5rem;
    }
    .hero .hero__media figure { position: relative; }
    .hero .hero__media img { height: auto; }
}
