/* ── Home landing (global — not scoped) ───────────────────────────────────── */

.home {
    --home-ink: #0e1624;
    --home-navy: #14233a;
    --home-deep: #0a1628;
    --home-turf: #163528;
    --home-gold: #e8c56a;
    --home-gold-soft: #f3e0a8;
    --home-mist: #e8eef5;
    --home-paper: #f6f3ec;
    --home-muted: rgba(14, 22, 36, 0.62);
    --home-line: rgba(14, 22, 36, 0.1);
    --wt: #2e7d32;
    --lr: #6a1b9a;
    --lg: #e65100;
    --rr: #00838f;

    margin: -1.1rem -1.5rem 0;
    color: var(--home-ink);
    font-family: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: var(--home-paper);
    overflow-x: clip;
}

.home--backdrop {
    margin: 0;
}

@media (min-width: 641px) {
    .home {
        margin-left: -2rem;
        margin-right: -1.5rem;
    }
}

.home-inner {
    width: min(1120px, calc(100% - 2.5rem));
    margin-inline: auto;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.home-hero {
    position: relative;
    /* Fill leftover viewport under top-row (~3.5rem) + site ad banner (~6.5rem). */
    min-height: calc(100dvh - 3.5rem - 6.5rem);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    /* ~1in below the banner so copy sits in natural eye line */
    padding: clamp(1.75rem, 3.5vw, 2.5rem) 0 0.85rem;
    padding-top: calc(clamp(1.1rem, 2.8vw, 1.85rem) + 1in);
    background:
        radial-gradient(ellipse 90% 70% at 78% 18%, rgba(232, 197, 106, 0.16), transparent 55%),
        radial-gradient(ellipse 60% 50% at 12% 85%, rgba(22, 53, 40, 0.55), transparent 60%),
        linear-gradient(155deg, var(--home-deep) 0%, var(--home-navy) 48%, var(--home-turf) 100%);
    color: #f7f4ee;
    isolation: isolate;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
    pointer-events: none;
}

.home-hero-visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Tracks fill the stage; horse is a tight transparent crop so the slogan can sit under the four legs. */
.home-hero-visual-stack {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: min(78%, 820px);
    pointer-events: none;
}

.home-hero-horse-stage {
    position: relative;
    width: 100%;
}

.home-hero-tracks {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0.55;
    animation: home-visual-in 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/*
 * Horse was translate(410,210) scale(1.15) in viewBox 820×520.
 * Tight crop (viewBox 30 22 108 118) is overlaid at that spot; slogan flows under the legs.
 */
.home-hero-horse-cluster {
    position: absolute;
    left: 58%;
    top: 45%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    width: min(20rem, 40%);
    max-width: calc(100% - 2rem);
    padding-inline: 0.75rem;
    box-sizing: border-box;
    transform: translateX(-50%);
    animation: home-visual-in 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-hero-horse {
    display: block;
    width: 38%;
    height: auto;
    opacity: 0.9;
}

.home-hero-slogan {
    margin: 0;
    width: 100%;
    max-width: 100%;
    padding-inline: 0.35rem;
    box-sizing: border-box;
    text-align: right;
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-size: clamp(0.88rem, 1.45vw, 1.05rem);
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.01em;
    line-height: 1.35;
    color: rgba(247, 244, 238, 0.6);
    pointer-events: none;
    animation: home-slogan-in 1s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(1.75rem, 4vw, 3.25rem);
    align-items: end;
    width: min(1120px, calc(100% - 2.5rem));
}

.home-hero-copy {
    position: relative;
    z-index: 1;
    width: auto;
    max-width: 34rem;
    animation: home-copy-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-hero-aside {
    position: relative;
    z-index: 1;
    max-width: 36rem;
    padding: 0 0 0.15rem;
    animation: home-copy-in 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.home-hero-aside-label {
    margin: 0 0 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--home-gold);
}

.home-hero-aside p {
    margin: 0 0 0.95rem;
    font-size: 0.98rem;
    line-height: 1.65;
    color: rgba(247, 244, 238, 0.82);
}

.home-hero-aside p:last-child {
    margin-bottom: 0;
}

.home-brand {
    position: relative;
    display: inline-block;
    margin: 0 0 0.85rem;
    padding-right: 2.4em;
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-size: clamp(2.35rem, 5.5vw, 3.35rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #fff;
    text-transform: lowercase;
    font-variant: normal;
    font-feature-settings: "smcp" 0, "c2sc" 0;
}

.home-brand-name {
    position: relative;
    z-index: 1;
}

.home-brand-plus {
    color: var(--home-gold);
}

.home-brand-models {
    position: absolute;
    right: -0.05em;
    top: -0.55em;
    z-index: 0;
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-size: 1.28em;
    font-weight: 700;
    font-style: italic;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--home-gold);
    text-transform: none;
    white-space: nowrap;
    opacity: 0.88;
    transform: rotate(-14deg);
    transform-origin: center center;
    pointer-events: none;
    user-select: none;
}

.home-hero h1 {
    margin: 0 0 1rem;
    max-width: 16ch;
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-size: clamp(1.85rem, 3.8vw, 2.65rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #fff;
}

.home-hero-lede {
    margin: 0 0 1.15rem;
    max-width: 38ch;
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(247, 244, 238, 0.78);
}

.home-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0.65rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.home-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.home-btn-primary {
    background: var(--home-gold);
    color: var(--home-deep);
}

.home-btn-primary:hover {
    background: var(--home-gold-soft);
    color: var(--home-deep);
}

.home-btn-ghost {
    background: transparent;
    border-color: rgba(247, 244, 238, 0.35);
    color: #f7f4ee;
}

.home-btn-ghost:hover {
    border-color: rgba(247, 244, 238, 0.7);
    color: #fff;
}

.home-btn-dark {
    background: var(--home-ink);
    color: #fff;
}

.home-btn-dark:hover {
    background: #1a2740;
    color: #fff;
}

.home-btn-outline {
    background: transparent;
    border-color: rgba(14, 22, 36, 0.22);
    color: var(--home-ink);
}

.home-btn-outline:hover {
    border-color: var(--home-ink);
    color: var(--home-ink);
}

/* ── Sections ─────────────────────────────────────────────────────────────── */

.home-section {
    padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.home-section-label {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(14, 22, 36, 0.45);
}

.home-section h2 {
    margin: 0 0 0.75rem;
    max-width: 18ch;
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 3.2vw, 2.35rem);
    font-weight: 550;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.home-section-intro {
    margin: 0 0 2.25rem;
    max-width: 42ch;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--home-muted);
}

/* ── Models ───────────────────────────────────────────────────────────────── */

.home-models {
    background:
        linear-gradient(180deg, #fff 0%, var(--home-mist) 100%);
}

.home-model-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--home-line);
}

.home-model {
    padding: 1.5rem 1.25rem 1.65rem 0;
    border-bottom: 1px solid var(--home-line);
    animation: home-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-model:nth-child(1) { animation-delay: 0.05s; }
.home-model:nth-child(2) { animation-delay: 0.12s; }
.home-model:nth-child(3) { animation-delay: 0.19s; }
.home-model:nth-child(4) { animation-delay: 0.26s; }

.home-model + .home-model {
    padding-left: 1.35rem;
    border-left: 1px solid var(--home-line);
}

.home-model-swatch {
    width: 2rem;
    height: 3px;
    margin-bottom: 1rem;
    border-radius: 1px;
}

.home-model[data-model="wt"] .home-model-swatch { background: var(--wt); }
.home-model[data-model="lr"] .home-model-swatch { background: var(--lr); }
.home-model[data-model="lg"] .home-model-swatch { background: var(--lg); }
.home-model[data-model="rr"] .home-model-swatch { background: var(--rr); }

.home-model h3 {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.home-model p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--home-muted);
}

/* ── Pipeline ─────────────────────────────────────────────────────────────── */

.home-pipeline {
    background: var(--home-paper);
}

.home-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    counter-reset: home-step;
}

.home-step {
    position: relative;
    padding-top: 0.25rem;
}

.home-step::before {
    counter-increment: home-step;
    content: counter(home-step, decimal-leading-zero);
    display: block;
    margin-bottom: 0.85rem;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--home-gold);
    letter-spacing: 0.04em;
}

.home-step h3 {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.home-step p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--home-muted);
}

/* ── Report ───────────────────────────────────────────────────────────────── */

.home-report {
    background:
        radial-gradient(ellipse 70% 80% at 100% 0%, rgba(232, 197, 106, 0.12), transparent 50%),
        linear-gradient(160deg, var(--home-navy), var(--home-deep));
    color: #f7f4ee;
}

.home-report .home-section-label {
    color: rgba(247, 244, 238, 0.45);
}

.home-report .home-section-intro {
    color: rgba(247, 244, 238, 0.7);
}

.home-report-panel {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: end;
}

.home-compare {
    display: grid;
    gap: 0.65rem;
}

.home-compare-row {
    display: grid;
    grid-template-columns: 7.5rem 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.7rem 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    font-size: 0.88rem;
}

.home-compare-row strong {
    font-weight: 650;
    letter-spacing: 0.01em;
}

.home-compare-bar {
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.home-compare-bar > span {
    display: block;
    height: 100%;
    border-radius: 2px;
    transform-origin: left center;
    animation: home-bar 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.home-compare-row[data-model="actual"] .home-compare-bar > span {
    width: 100%;
    background: var(--home-gold);
}

.home-compare-row[data-model="wt"] .home-compare-bar > span {
    width: 86%;
    background: var(--wt);
}

.home-compare-row[data-model="lr"] .home-compare-bar > span {
    width: 78%;
    background: #b39ddb;
}

.home-compare-row[data-model="lg"] .home-compare-bar > span {
    width: 91%;
    background: var(--lg);
}

.home-compare-row[data-model="rr"] .home-compare-bar > span {
    width: 82%;
    background: var(--rr);
}

.home-compare-hit {
    color: rgba(247, 244, 238, 0.55);
    font-variant-numeric: tabular-nums;
}

.home-report-copy h2 {
    max-width: 14ch;
}

/* ── Closing CTA ──────────────────────────────────────────────────────────── */

.home-close {
    padding: clamp(3rem, 7vw, 4.5rem) 0;
    background: #fff;
    border-top: 1px solid var(--home-line);
}

.home-close-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.home-close h2 {
    margin: 0 0 0.4rem;
    max-width: none;
    font-size: clamp(1.45rem, 2.8vw, 1.9rem);
}

.home-close p {
    margin: 0;
    max-width: 38ch;
    color: var(--home-muted);
}

.home-contact {
    background: #f7f4ee;
    border-top: 1px solid var(--home-line);
}

.home-contact-form {
    margin-top: 1rem;
    max-width: 36rem;
    display: grid;
    gap: 1rem;
}

.home-contact-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.home-contact-field {
    display: grid;
    gap: 0.35rem;
}

.home-contact-field label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(14, 22, 36, 0.72);
}

.home-contact-field input,
.home-contact-field textarea {
    width: 100%;
    border: 1px solid var(--home-line);
    background: #fffdf8;
    color: #0e1624;
    border-radius: 0;
    padding: 0.7rem 0.85rem;
    font: inherit;
    line-height: 1.4;
}

.home-contact-field input:focus,
.home-contact-field textarea:focus {
    outline: 2px solid rgba(232, 197, 106, 0.65);
    outline-offset: 1px;
}

.home-contact-field textarea {
    resize: vertical;
    min-height: 8rem;
}

.home-contact-alert {
    margin: 1.25rem 0 0;
    max-width: 36rem;
    padding: 0.95rem 1.1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    border: 1px solid transparent;
}

.home-contact-alert-ok {
    color: #14532d;
    background: #e8f6ee;
    border-color: #9fd4b0;
}

.home-contact-alert-err {
    color: #7f1d1d;
    background: #fdecec;
    border-color: #efb0b0;
}

.home-contact .home-section-intro a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.home-policy-footer {
    padding: 1.35rem 0 2.25rem;
    background: #f3efe6;
    border-top: 1px solid var(--home-line);
}

.home-hero-disclaimer {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 2.5rem));
    margin-top: auto;
    padding-top: 1.25rem;
}

.home-legal-disclaimer {
    margin: 0;
    max-width: 100%;
}

.home-legal-line {
    margin: 0;
    font-size: 0.65rem;
    line-height: 1.35;
    color: rgba(247, 244, 238, 0.52);
}

.home-legal-line + .home-legal-line {
    margin-top: 0.28rem;
}

.home-legal-line strong {
    font-weight: 700;
    color: rgba(247, 244, 238, 0.78);
    margin-right: 0.35em;
}

.home-policy-disclaimer {
    margin: 0 0 0.85rem;
    max-width: 72ch;
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(14, 22, 36, 0.55);
}

.home-copyright {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(14, 22, 36, 0.72);
    font-weight: 600;
}

/* ── Motion ───────────────────────────────────────────────────────────────── */

@keyframes home-copy-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes home-slogan-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes home-visual-in {
    from {
        opacity: 0;
        transform: translateX(28px) scale(1.02);
    }
    to {
        opacity: 0.92;
        transform: none;
    }
}

@keyframes home-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes home-bar {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-copy,
    .home-hero-tracks,
    .home-hero-horse-cluster,
    .home-hero-slogan,
    .home-model,
    .home-compare-bar > span {
        animation: none !important;
    }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .home-hero-grid {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 1.75rem;
    }

    .home-hero-aside {
        max-width: 40rem;
        padding-top: 0.25rem;
        border-top: 1px solid rgba(247, 244, 238, 0.14);
        padding-top: 1.25rem;
    }

    .home-model-grid,
    .home-steps,
    .home-report-panel {
        grid-template-columns: 1fr 1fr;
    }

    .home-model + .home-model {
        padding-left: 0;
        border-left: none;
    }

    .home-model:nth-child(odd) {
        padding-right: 1rem;
        border-right: 1px solid var(--home-line);
    }

    .home-model:nth-child(even) {
        padding-left: 1rem;
    }

    .home-hero-visual-stack {
        width: min(92%, 560px);
        right: -8%;
    }
}

@media (max-width: 640px) {
    .home {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
    }

    .home-inner {
        width: min(100% - 2rem, 1120px);
    }

    .home-hero {
        min-height: auto;
        padding-top: calc(1.15rem + 0.75in);
        padding-bottom: 0.85rem;
        align-items: stretch;
    }

    .home-hero-disclaimer {
        width: min(100% - 2rem, 1120px);
        margin-top: 1.5rem;
    }

    .home-hero-visual-stack {
        top: 8%;
        bottom: auto;
        width: min(100%, 520px);
        right: 0.75rem;
    }

    .home-hero-tracks {
        opacity: 0.28;
    }

    .home-hero-horse-cluster {
        left: 55%;
        top: 40%;
        width: min(14rem, 70%);
        max-width: calc(100% - 1.5rem);
        gap: 0.35rem;
    }

    .home-hero-horse {
        width: 42%;
        opacity: 0.55;
    }

    .home-hero-slogan {
        font-size: 0.82rem;
    }

    .home-model-grid,
    .home-steps,
    .home-report-panel {
        grid-template-columns: 1fr;
    }

    .home-model:nth-child(odd),
    .home-model:nth-child(even) {
        padding-left: 0;
        padding-right: 0;
        border-right: none;
    }

    .home-compare-row {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
}
