:root {
    --hp-ink: #1c1917;
    --hp-slate: #5c564f;
    --hp-orange: #f58345;
    --hp-orange-soft: #ffb084;
    --hp-sand: #fff4ec;
    --hp-paper: #fffaf6;
    --hp-line: rgba(28, 25, 23, 0.1);
    --hp-ease: cubic-bezier(0.22, 0.8, 0.28, 1);
    --hp-max: 1120px;
    --hp-gutter: 1.25rem;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    /* Keep in sync with auth.css so the logo doesn't shift between pages */
    --epi-inline: max(1.25rem, calc((100vw - 1120px) / 2));
}

body.hp {
    margin: 0;
    min-height: 100vh;
    color: var(--hp-ink);
    background: var(--hp-paper);
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-size: 1.05rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.hp a:not(.hp-btn):not(.hp-brand) {
    color: inherit;
}

.hp img {
    display: block;
    max-width: 100%;
}

.hp-wrap {
    margin-inline: var(--epi-inline);
}

.hp-top {
    position: absolute;
    inset: 0 0 auto;
    z-index: 20;
    padding: 1.75rem 0 1.1rem;
}

.hp-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    /* Same row height as .lp-brand-mark so the logo doesn't jump vertically */
    min-height: 3rem;
}

.hp-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    text-decoration: none;
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: -0.02em;
}

.hp-brand img {
    width: 1.85rem;
    height: auto;
    flex-shrink: 0;
}

.hp-brand span {
    max-width: 14rem;
}

.hp-top-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
    justify-content: flex-end;
}

.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    border: 1.5px solid transparent;
    transition: transform 0.2s var(--hp-ease), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hp-btn:hover {
    transform: translateY(-1px);
}

.hp-btn-solid {
    background: #fff;
    color: var(--hp-ink);
}

.hp-btn-solid:hover {
    background: #fff7f0;
}

.hp-btn-line {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

.hp-btn-line:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.hp-btn-solid-dark {
    background: var(--hp-ink);
    color: #fff;
}

.hp-btn-solid-dark:hover {
    background: #2f2a26;
}

.hp-btn-orange {
    background: var(--hp-orange);
    color: #fff;
}

.hp-btn-orange:hover {
    background: #ef7432;
    color: #fff;
}

.hp-hero {
    position: relative;
    isolation: isolate;
    min-height: min(76vh, 40rem);
    display: grid;
    align-items: start;
    padding: 9.5rem 0 5.75rem;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, #ff9a5f 0%, var(--hp-orange) 42%, #e86a2f 100%);
}

.hp-hero-wash {
    position: absolute;
    inset: -20% -10% -10%;
    background:
        radial-gradient(ellipse 45% 40% at 82% 18%, rgba(255, 255, 255, 0.35), transparent 60%),
        radial-gradient(ellipse 35% 45% at 8% 88%, rgba(255, 214, 180, 0.45), transparent 65%);
    animation: hp-wash 14s ease-in-out infinite alternate;
    z-index: -1;
    pointer-events: none;
}

@keyframes hp-wash {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-2%, 2%, 0) scale(1.05); }
}

.hp-hero-inner {
    max-width: 40rem;
    margin-left: var(--epi-inline);
    margin-right: auto;
    width: min(40rem, calc(100% - (2 * var(--hp-gutter))));
}

.hp-brand-lockup {
    margin: 0 0 1rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.hp-hero h1 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.35rem, 2.6vw, 1.85rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.hp-lede {
    margin: 1rem 0 0;
    max-width: 32rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.08rem;
}

.hp-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.hp-brand-lockup,
.hp-hero h1,
.hp-lede,
.hp-hero-cta {
    opacity: 0;
    transform: translateY(16px);
    animation: hp-rise 0.85s var(--hp-ease) forwards;
}

.hp-hero h1 { animation-delay: 0.08s; }
.hp-lede { animation-delay: 0.16s; }
.hp-hero-cta { animation-delay: 0.24s; }

@keyframes hp-rise {
    to { opacity: 1; transform: none; }
}

.hp-section {
    padding: 5rem 0;
}

.hp-section h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.85rem, 3.4vw, 2.55rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.hp-tools {
    background: var(--hp-ink);
    color: #f7f2ec;
    padding-bottom: 3.5rem;
    overflow: hidden;
}

.hp-tools-head {
    width: min(36rem, calc(100% - (2 * var(--hp-gutter))));
    margin: 0 0 2rem var(--epi-inline);
}

.hp-tools-head h2 {
    color: #fff;
}

.hp-tools-head p {
    margin: 0.7rem 0 0;
    color: rgba(247, 242, 236, 0.62);
}

.hp-reel {
    --reel-pad: var(--epi-inline);
}

.hp-reel-viewport {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0.5rem var(--reel-pad) 1.5rem;
    outline: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.hp-reel-viewport::-webkit-scrollbar {
    display: none;
}

.hp-slide {
    position: relative;
    flex: 0 0 min(920px, calc(100vw - (2 * var(--hp-gutter))));
    scroll-snap-align: center;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.5rem;
    align-items: center;
    min-height: 22rem;
    padding: 2.25rem 2.1rem;
    border: 1px solid rgba(247, 242, 236, 0.12);
    background:
        radial-gradient(ellipse 60% 70% at 88% 20%, rgba(245, 131, 69, 0.18), transparent 60%),
        linear-gradient(160deg, #2a2521 0%, #1c1917 100%);
    opacity: 0.45;
    transform: scale(0.97);
    transition: opacity 0.45s var(--hp-ease), transform 0.45s var(--hp-ease), border-color 0.35s ease;
}

.hp-slide.is-active {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(245, 131, 69, 0.45);
}

.hp-slide-idx {
    margin: 0 0 0.85rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--hp-orange);
}

.hp-slide-copy h3 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.12;
    color: #fff;
}

.hp-slide-copy p:last-child {
    margin: 1rem 0 0;
    max-width: 26rem;
    font-size: 1.05rem;
    color: rgba(247, 242, 236, 0.68);
}

.hp-glyph {
    position: relative;
    height: 12rem;
    display: grid;
    place-items: center;
    color: #f7f2ec;
}

.hp-mark {
    width: min(100%, 15rem);
    height: auto;
    display: block;
}

.hp-reel-bar {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.25rem;
}

.hp-reel-nav {
    appearance: none;
    border: 1px solid rgba(247, 242, 236, 0.22);
    background: transparent;
    color: #fff;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.hp-reel-nav:hover {
    border-color: var(--hp-orange);
    background: rgba(245, 131, 69, 0.12);
}

.hp-reel-ticks {
    display: flex;
    flex: 1;
    gap: 0.4rem;
    align-items: center;
}

.hp-reel-tick {
    appearance: none;
    border: 0;
    height: 0.28rem;
    flex: 1;
    border-radius: 99px;
    background: rgba(247, 242, 236, 0.18);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, transform 0.25s ease;
}

.hp-reel-tick.is-active {
    background: var(--hp-orange);
    transform: scaleY(1.6);
}

.hp-reel-count {
    margin: 0;
    min-width: 4.5rem;
    text-align: right;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    color: rgba(247, 242, 236, 0.55);
}

/* ── Remaining sections ── */

.hp-pillars {
    background: var(--hp-paper);
}

.hp-pillars-lede {
    margin: 0.75rem 0 0;
    max-width: 32rem;
    color: var(--hp-slate);
    font-size: 1.08rem;
}

.hp-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 2.5rem;
    margin-top: 2.75rem;
}

.hp-pillars-grid h3 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--hp-ink);
}

.hp-pillars-grid p {
    margin: 0.7rem 0 0;
    color: var(--hp-slate);
    font-size: 1.02rem;
    max-width: 22rem;
}

.hp-how {
    background: #f2efe8;
}

.hp-how-head {
    margin: 0 0 2.75rem;
}

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

.hp-process li {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 1.25rem 2rem;
    align-items: start;
    padding: 1.65rem 0;
    border-bottom: 1px solid rgba(28, 25, 23, 0.14);
}

.hp-process li:last-child {
    border-bottom: none;
}

.hp-process span {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #d46528;
    padding-top: 0.35rem;
}

.hp-process h3 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.hp-process p {
    margin: 0.55rem 0 0;
    max-width: 36rem;
    color: var(--hp-slate);
    font-size: 1.02rem;
}

.hp-insights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.75rem;
}

.hp-insights-grid a {
    display: flex;
    flex-direction: column;
    padding: 1.35rem 1.4rem 1.45rem;
    border: 1px solid var(--hp-line);
    border-radius: 8px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.hp-insights-date {
    color: var(--hp-slate);
    font-size: 0.92rem;
}

.hp-insights-title {
    margin-top: 0.55rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.hp-insights-grid a:hover .hp-insights-title {
    color: #d46528;
}

.hp-final {
    background: #fff;
}

.hp-final .hp-wrap {
    width: min(40rem, calc(100% - (2 * var(--hp-gutter))));
    margin-left: var(--epi-inline);
    margin-right: auto;
}

.hp-final p {
    margin: 0.85rem 0 0;
    color: var(--hp-slate);
    font-size: 1.08rem;
}

.hp-final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.6rem;
}

.hp-footer {
    border-top: 1px solid var(--hp-line);
    padding: 1.4rem 0 1.8rem;
}

.hp-footer p {
    margin: 0;
    font-size: 0.86rem;
    color: var(--hp-slate);
}

.hp-article-band {
    height: 6.6rem;
    background: linear-gradient(145deg, #ff9a5f 0%, var(--hp-orange) 42%, #e86a2f 100%);
}

.hp-article-main {
    width: min(40rem, calc(100% - 2.5rem));
    margin: 0 auto;
    padding: 3.25rem 0 2rem;
}

.hp-article-pitch {
    color: #fff;
    background: linear-gradient(145deg, #ff9a5f 0%, var(--hp-orange) 42%, #e86a2f 100%);
}

.hp-article-pitch-inner {
    width: min(40rem, calc(100% - 2.5rem));
    margin: 0 auto;
    padding: 2.5rem 0 2.75rem;
}

.hp-article-pitch h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.hp-article-pitch p {
    margin: 0.7rem 0 0;
    max-width: 32rem;
    font-size: 1.05rem;
    line-height: 1.45;
}

.hp-article-pitch .hp-btn {
    margin-top: 1.25rem;
}

.hp-article-kicker {
    margin: 0 0 0.85rem;
    color: var(--hp-orange);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}

.hp-article-main h1 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.1rem, 5vw, 3.15rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.12;
}

.hp-article-sub {
    margin: 1.15rem 0 0;
    color: var(--hp-slate);
    font-size: 1.22rem;
    line-height: 1.45;
}

.hp-article-date {
    margin: 1.15rem 0 0;
    color: var(--hp-slate);
    font-size: 0.95rem;
    line-height: 1.4;
}

.hp-article-body {
    margin-top: 2.25rem;
    font-size: 1.08rem;
}

.hp-article-body p {
    margin: 0 0 1.1rem;
}

.hp-article-body > :last-child {
    margin-bottom: 0;
}

.hp-article-body h2,
.hp-article-body h3 {
    margin: 2.2rem 0 0.7rem;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.hp-article-body h2 { font-size: 1.55rem; }
.hp-article-body h3 { font-size: 1.25rem; }

.hp-article-body a {
    color: #d46528;
    font-weight: 600;
    text-underline-offset: 0.15em;
}

.hp-article-body ul,
.hp-article-body ol {
    margin: 0 0 1.15rem;
    padding-left: 1.25rem;
}

.hp-article-body li { margin: 0.35rem 0; }

.hp-article-body li:last-child { margin-bottom: 0; }

.hp-article-body blockquote {
    margin: 1.4rem 0 1.5rem;
    padding: 0.15rem 0 0.15rem 1rem;
    border-left: 3px solid var(--hp-orange);
    color: var(--hp-slate);
}

.hp-article-body blockquote p { margin: 0; }

.hp-error {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hp-error-main {
    flex: 1;
    width: min(36rem, calc(100% - 2.5rem));
    margin: 0 auto;
    padding: 3.25rem 0 4.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hp-error-main .hp-error-label {
    margin: 0 0 0.45rem;
    max-width: none;
    color: var(--hp-orange);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
}

.hp-error-main .hp-error-code {
    margin: 0;
    max-width: none;
    color: var(--hp-ink);
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(4.5rem, 12vw, 6.5rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 0.9;
}

.hp-error-main h1 {
    margin: 0.75rem 0 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.hp-error-main p {
    margin: 0.85rem 0 0;
    max-width: 32rem;
    color: var(--hp-slate);
    font-size: 1.08rem;
}

.hp-error-main .hp-btn {
    margin-top: 1.6rem;
}

.hp-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--hp-ease), transform 0.7s var(--hp-ease);
}

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

@media (max-width: 900px) {
    .hp-slide {
        grid-template-columns: 1fr;
        min-height: 0;
        flex-basis: min(860px, calc(100vw - 2rem));
        padding: 1.75rem 1.4rem;
    }

    .hp-glyph {
        height: 9rem;
        order: -1;
    }

    .hp-pillars-grid {
        grid-template-columns: 1fr;
    }

    .hp-process li {
        grid-template-columns: 3.25rem 1fr;
        gap: 0.85rem 1rem;
    }

    .hp-section {
        padding: 3.75rem 0;
    }

    .hp-insights-grid {
        grid-template-columns: 1fr;
    }

    .hp-hero {
        min-height: 0;
        padding: 7.5rem 0 4.25rem;
    }

    .hp-article-main { padding-top: 2.4rem; }

    .hp-error-main { padding-top: 2.4rem; }
}

@media (max-width: 600px) {
    .hp-top {
        padding-top: 1.15rem;
        padding-bottom: 0.85rem;
    }

    .hp-brand {
        gap: 0.5rem;
        font-size: 0.82rem;
    }

    .hp-brand img {
        width: 1.55rem;
    }

    .hp-brand span {
        max-width: 7.25rem;
        line-height: 1.15;
    }

    .hp-article-band { height: 5.6rem; }

    .hp-top-actions {
        gap: 0.4rem;
    }

    .hp-top-actions .hp-btn {
        padding: 0.48rem 0.7rem;
        font-size: 0.74rem;
        white-space: nowrap;
    }

    .hp-hero-cta .hp-btn {
        padding: 0.6rem 0.9rem;
        font-size: 0.8rem;
    }

    .hp-reel-count {
        display: none;
    }
}

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

    .hp-reveal,
    .hp-brand-lockup,
    .hp-hero h1,
    .hp-lede,
    .hp-hero-cta,
    .hp-slide,
    .hp-hero-wash {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }

    .hp-slide.is-active {
        opacity: 1;
        transform: none;
    }

    .hp-btn:hover {
        transform: none;
    }
}
