/*
 * Home v3 fold 1: HERO (#top). Prefix .hv3-. Tokens only (base.css), no hex. Fonts come from skin.css.
 * Calm first screen: left = offer pill, certificate line, H1, quick answer, one row of stats;
 * right = the enquiry console (two questions, one amber button).
 * Desktop one-screen rule: header + hero end exactly at the bottom of the first screen (--hv3-header from hero.js).
 * It is reached by SHOWING LESS on shorter screens (see "Desktop: one screen"), never by shrinking type.
 * Motion: transform, opacity, colour and box-shadow only. The entrance runs only while html.hv3-enter is set
 * (inline script in hero.blade.php, removed again after 1.7s), so text is always visible if animations never run.
 */
@property --hv3-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* ---------- Section shell and background ---------- */
.home-v3 .hv3-hero {
    padding: 24px 0 48px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    isolation: isolate;
}
.home-v3 .hv3-decor { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.home-v3 .hv3-glow { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, var(--brand), transparent); will-change: transform; }
.home-v3 .hv3-glow-a { width: 820px; height: 820px; top: -420px; right: -260px; opacity: .34; animation: hv3DriftA 19s ease-in-out infinite alternate; }
.home-v3 .hv3-glow-b { width: 680px; height: 680px; bottom: -320px; left: -300px; opacity: .2; background: radial-gradient(closest-side, var(--violet), transparent); animation: hv3DriftB 25s ease-in-out infinite alternate; }
.home-v3 .hv3-glow-c { width: 460px; height: 460px; top: 34%; left: 38%; opacity: .13; background: radial-gradient(closest-side, var(--l300), transparent); animation: hv3DriftC 31s ease-in-out infinite alternate; }
.home-v3 .hv3-grid {
    position: absolute; inset: 0; overflow: hidden;
    -webkit-mask-image: radial-gradient(ellipse 70% 62% at 62% 28%, var(--white) 10%, transparent 72%);
            mask-image: radial-gradient(ellipse 70% 62% at 62% 28%, var(--white) 10%, transparent 72%);
}
.home-v3 .hv3-grid::before { /* the pattern repeats every 56px, so a 56px slide loops without a seam */
    content: ''; position: absolute; inset: -56px;
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    animation: hv3Grid 26s linear infinite;
}

/* ---------- Layout (mobile first, DOM order = reading order) ---------- */
.home-v3 .hv3-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
.home-v3 .hv3-copy, .home-v3 .hv3-side { min-width: 0; }

/* ---------- Offer pill ---------- */
.home-v3 .hv3-pill {
    display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-height: 44px; padding: 6px 16px 6px 6px;
    border-radius: var(--r-chip); background: rgba(255, 255, 255, .08);
    color: var(--on-dark); font-size: 14px; font-weight: 500; line-height: 1.35; text-decoration: none;
    transition: background-color var(--t-base) ease, transform var(--t-base) var(--ease);
}
.home-v3 .hv3-pill:hover { background: rgba(255, 255, 255, .14); color: var(--on-dark); }
.home-v3 .hv3-pill-tag { flex: none; padding: 6px 12px; border-radius: var(--r-chip); background: var(--amber); color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.home-v3 .hv3-pill-text { min-width: 0; }
.home-v3 .hv3-pill-arrow { flex: none; color: var(--l300); transition: transform var(--t-base) var(--ease); }
@media (pointer: fine) {
    .home-v3 .hv3-pill:hover { transform: translateY(-1px); }
    .home-v3 .hv3-pill:hover .hv3-pill-arrow { transform: translateX(4px); }
}

/* ---------- Certificate line, H1, quick answer ---------- */
.home-v3 .hv3-copy .hv3-eyebrow {
    display: flex; align-items: center; gap: 12px; margin-top: 18px;
    font-size: 15px; font-weight: 500; line-height: 1.5; letter-spacing: 0; text-transform: none; color: var(--l300);
}
.home-v3 .hv3-copy .hv3-eyebrow::before { content: ''; flex: none; width: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--amber), var(--violet)); }
.home-v3 .hv3-copy > .hv3-eyebrow:first-child { margin-top: 0; }
.home-v3 .hv3-title {
    margin-top: 12px;
    font-size: clamp(2.125rem, 1.2rem + 4.4vw, 3.25rem); line-height: 1.1; font-weight: 600; letter-spacing: -.025em;
    color: var(--on-dark); text-wrap: balance;
}
.home-v3 .hv3-grad { color: var(--l300); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .home-v3 .hv3-grad {
        background: linear-gradient(100deg, var(--l300) 0%, var(--l200) 38%, var(--amber) 100%);
        -webkit-background-clip: text; background-clip: text;
        -webkit-text-fill-color: transparent; color: transparent;
        -webkit-box-decoration-break: clone; box-decoration-break: clone;
    }
}
.home-v3 .hv3-answer { position: relative; margin-top: 20px; max-width: 62ch; padding-left: 20px; }
.home-v3 .hv3-answer::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; border-radius: 2px; background: linear-gradient(to bottom, var(--l300), rgba(212, 190, 255, .15)); transform-origin: top center; }
.home-v3 .hv3-answer-q { display: block; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--on-dark-3); }
.home-v3 .hv3-answer-text { margin-top: 6px; font-size: 16px; line-height: 1.6; color: var(--l100); }

/* ---------- Phone / tablet first-screen action ---------- */
.home-v3 .hv3-mcta { display: grid; gap: 4px; margin-top: 22px; justify-items: center; }
.home-v3 .hv3-mcta .v3-link { color: var(--l300); }

/* ---------- Stats: one quiet row, no dividers ---------- */
.home-v3 .hv3-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; margin: 36px 0 0; }
.home-v3 .hv3-stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; min-width: 0; }
.home-v3 .hv3-stat dd { display: flex; flex-wrap: wrap; white-space: nowrap; align-items: center; gap: 4px 10px; margin: 0; font-size: 26px; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; color: var(--on-dark); transition: transform var(--t-base) var(--ease); }
.home-v3 .hv3-stat dt { font-size: 13px; line-height: 1.4; font-weight: 400; color: var(--on-dark-3); }
.home-v3 .hv3-stars .v3-star { width: 14px; height: 14px; }
@media (pointer: fine) { .home-v3 .hv3-stat:hover dd { transform: translateY(-3px); } }

/* ---------- Console card (white, one slow halo sweep on the border) ---------- */
.home-v3 .hv3-side { margin-top: 40px; scroll-margin-top: 16px; }
.home-v3 .hv3-console {
    --hv3-a: 0deg;
    position: relative; padding: 22px 18px 14px; border: 2px solid transparent; border-radius: var(--r-panel);
    color: var(--ink-2);
    background: var(--white);
    background: linear-gradient(var(--white), var(--white)) padding-box,
                conic-gradient(from var(--hv3-a), rgba(255, 255, 255, .2) 0deg, rgba(255, 255, 255, .2) 200deg, var(--brand) 260deg, var(--violet) 300deg, var(--amber) 330deg, rgba(255, 255, 255, .2) 360deg) border-box;
    box-shadow: 0 44px 90px -40px rgba(31, 3, 45, .95), 0 18px 44px -26px rgba(31, 3, 45, .9);
    animation: hv3Halo 9s linear 700ms 1;
}
.home-v3 .hv3-console-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.home-v3 .hv3-console-title { font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.home-v3 .hv3-step { display: inline-flex; align-items: center; gap: 10px; }
.home-v3 .hv3-step-label { font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--mute); }
.home-v3 .hv3-progress { display: inline-flex; gap: 5px; }
.home-v3 .hv3-progress-seg { position: relative; width: 40px; height: 5px; overflow: hidden; border-radius: 999px; background: var(--l200); }
.home-v3 .hv3-progress-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--brand-grad); transform: scaleX(0); transform-origin: left center; transition: transform 450ms var(--ease); }

/* Route: Foundation -> Practitioner -> certificate. Redraws to match the chosen course. */
.home-v3 .hv3-route { --hv3-dot-x: 288px; display: block; margin-top: 22px; }
.home-v3 .hv3-route[data-end="2"] { --hv3-dot-x: 144px; }
.home-v3 .hv3-route-svg { display: block; width: 100%; height: auto; overflow: visible; }
.home-v3 .hv3-track { fill: none; stroke: var(--l200); stroke-width: 3; stroke-linecap: round; }
.home-v3 .hv3-stop-a { stop-color: var(--brand); }
.home-v3 .hv3-stop-b { stop-color: var(--violet); }
.home-v3 .hv3-seg { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100 101; stroke-dashoffset: 0; transition: stroke-dashoffset 420ms var(--ease); }
.home-v3 .hv3-route[data-end="3"] .hv3-seg-b { transition-delay: 220ms; }
.home-v3 .hv3-route[data-end="1"] .hv3-seg-a { transition-delay: 160ms; }
.home-v3 .hv3-route[data-end="1"] .hv3-seg-a,
.home-v3 .hv3-route[data-end="1"] .hv3-seg-b,
.home-v3 .hv3-route[data-end="2"] .hv3-seg-b { stroke-dashoffset: 100; }
.home-v3 .hv3-node {
    fill: var(--white); stroke: var(--l200); stroke-width: 3;
    transform-box: fill-box; transform-origin: center;
    transition: fill var(--t-base) ease, stroke var(--t-base) ease, transform 320ms var(--ease);
}
.home-v3 .hv3-node-1,
.home-v3 .hv3-route:not([data-end="1"]) .hv3-node-2,
.home-v3 .hv3-route[data-end="3"] .hv3-node-3 { fill: var(--brand); stroke: var(--l100); }
.home-v3 .hv3-route[data-end="3"] .hv3-node-3 { fill: var(--violet); }
.home-v3 .hv3-route[data-end="1"] .hv3-node-1,
.home-v3 .hv3-route[data-end="2"] .hv3-node-2 { transform: scale(1.18); } /* the step your pick ends on */
.home-v3 .hv3-route[data-held="1"] .hv3-node-1 { fill: var(--white); stroke: var(--brand); } /* already held */
.home-v3 .hv3-node-tick { fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity var(--t-base) ease; }
.home-v3 .hv3-route[data-end="3"] .hv3-node-tick { opacity: 1; }
.home-v3 .hv3-dot { opacity: 0; animation: hv3Dot 6s var(--ease) 1800ms 3; }
.home-v3 .hv3-route[data-end="1"] .hv3-dot { display: none; }
.home-v3 .hv3-dot-halo { fill: var(--violet); opacity: .3; }
.home-v3 .hv3-dot-core { fill: var(--white); }
.home-v3 .hv3-route-labels { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; margin-top: 8px; font-size: 13px; font-weight: 500; line-height: 1.35; color: var(--mute); }
.home-v3 .hv3-route-labels > span { transition: color var(--t-base) ease; }
.home-v3 .hv3-route-labels > span:nth-child(2) { text-align: center; }
.home-v3 .hv3-route-labels > span:nth-child(3) { text-align: right; }
.home-v3 .hv3-route-labels > span:nth-child(1),
.home-v3 .hv3-route:not([data-end="1"]) .hv3-route-labels > span:nth-child(2),
.home-v3 .hv3-route[data-end="3"] .hv3-route-labels > span:nth-child(3) { color: var(--ink); font-weight: 600; }
.home-v3 .hv3-route[data-held="1"] .hv3-route-labels > span:nth-child(1) { color: var(--mute); font-weight: 500; }

/* Fieldsets */
.home-v3 .hv3-field { min-width: 0; margin: 26px 0 0; padding: 0; border: 0; }
.home-v3 .hv3-legend { float: left; width: 100%; margin: 0 0 10px; padding: 0; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.home-v3 .hv3-legend + * { clear: both; }
.home-v3 .hv3-levels, .home-v3 .hv3-formats { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }

/* Choices inside the white console (override the dark-surface variant from base.css) */
.home-v3 .v3-ink .hv3-console .v3-choice {
    background: var(--white); border-color: var(--l200); color: var(--ink); box-shadow: none;
    transition: border-color 220ms ease, background-color 220ms ease, box-shadow 260ms ease, transform 200ms var(--ease);
}
.home-v3 .v3-ink .hv3-console .v3-choice:active { transform: scale(.975); }
.home-v3 .v3-ink .hv3-console .v3-choice:has(input:focus-visible) { outline: var(--focus-light); outline-offset: 2px; }

/* Course choices: name, days, and a ring that fills when chosen */
.home-v3 .hv3-level { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 64px; padding: 14px 16px; }
.home-v3 .hv3-level-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding-right: 30px; }
.home-v3 .hv3-level-name { font-size: 15px; font-weight: 600; line-height: 1.4; letter-spacing: -.005em; color: var(--ink); transition: color 220ms ease; }
.home-v3 .hv3-level-days { font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--brand-deep); white-space: nowrap; }
.home-v3 .hv3-level-who { font-size: 13px; line-height: 1.4; color: var(--mute); padding-right: 30px; }
.home-v3 .hv3-level .v3-choice-check { position: absolute; top: 50%; right: 14px; width: 20px; height: 20px; margin: -10px 0 0; border-width: 1.5px; }
.home-v3 .v3-ink .hv3-console .hv3-level:has(input:checked) { background: var(--l100); border-color: var(--brand); box-shadow: 0 0 0 4px rgba(108, 53, 233, .12); }
.home-v3 .hv3-level:has(input:checked) .hv3-level-name { color: var(--brand-deep); }
.home-v3 .hv3-level:has(input:checked) .v3-choice-check { animation: hv3Check 320ms var(--ease); }
@media (pointer: fine) {
    .home-v3 .v3-ink .hv3-console .hv3-level:hover { border-color: var(--l300); background: var(--l50); transform: translateY(-2px); box-shadow: 0 12px 24px -16px rgba(108, 53, 233, .5); }
    .home-v3 .v3-ink .hv3-console .hv3-level:has(input:checked):hover { background: var(--l100); border-color: var(--brand); box-shadow: 0 0 0 4px rgba(108, 53, 233, .12); }
    .home-v3 .hv3-level:hover .v3-choice-check { border-color: var(--brand); }
}

/* Format choices: one highlight slides to the chosen tile (--hv3-fx / --hv3-fy = its column / row) */
.home-v3 .hv3-formats { --hv3-cols: 2; --hv3-rows: 2; --hv3-gap: 12px; --hv3-fx: 0; --hv3-fy: 0; position: relative; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: var(--hv3-gap); }
.home-v3 .hv3-formats::before {
    content: ''; position: absolute; z-index: 0; top: 0; left: 0; pointer-events: none;
    width: calc((100% - (var(--hv3-cols) - 1) * var(--hv3-gap)) / var(--hv3-cols));
    height: calc((100% - (var(--hv3-rows) - 1) * var(--hv3-gap)) / var(--hv3-rows));
    border: 2px solid var(--brand); border-radius: var(--r-choice); background: var(--l100);
    box-shadow: 0 0 0 4px rgba(108, 53, 233, .12);
    opacity: 0; transform: translate(calc(var(--hv3-fx) * (100% + var(--hv3-gap))), calc(var(--hv3-fy) * (100% + var(--hv3-gap))));
    transition: transform 380ms var(--ease), opacity 200ms ease;
}
.home-v3 .hv3-formats:has(input:checked)::before { opacity: 1; }
.home-v3 .hv3-formats:has(.hv3-format:nth-child(2) input:checked) { --hv3-fx: 1; }
.home-v3 .hv3-formats:has(.hv3-format:nth-child(3) input:checked) { --hv3-fy: 1; }
.home-v3 .hv3-formats:has(.hv3-format:nth-child(4) input:checked) { --hv3-fx: 1; --hv3-fy: 1; }
.home-v3 .hv3-format { z-index: 1; gap: 10px; min-height: 52px; padding: 12px 14px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.home-v3 .hv3-format-icon { flex: none; color: var(--mute); transition: color 220ms ease, transform 320ms var(--ease); }
.home-v3 .hv3-format-label { font-size: 14px; line-height: 1.3; transition: color 220ms ease; }
.home-v3 .hv3-format-check { display: none; }
.home-v3 .v3-ink .hv3-console .hv3-format:has(input:checked) { background: transparent; border-color: transparent; box-shadow: none; }
.home-v3 .hv3-format input:checked ~ .hv3-format-icon { color: var(--brand); animation: hv3Icon 420ms var(--ease); }
.home-v3 .hv3-format input:checked ~ .hv3-format-label { color: var(--brand-deep); }
@media (pointer: fine) {
    .home-v3 .v3-ink .hv3-console .hv3-format:hover { border-color: var(--l300); background: var(--l50); transform: none; box-shadow: none; }
    .home-v3 .v3-ink .hv3-console .hv3-format:has(input:checked):hover { background: transparent; border-color: transparent; }
    .home-v3 .hv3-format:hover .hv3-format-icon { color: var(--brand); transform: translateY(-2px); }
}

/* Summary, the one amber button, quiet links */
.home-v3 .hv3-summary { min-height: 22px; margin-top: 18px; font-size: 14px; line-height: 1.55; color: var(--mute); }
.home-v3 .hv3-summary.is-swap { animation: hv3Swap 320ms var(--ease); }
.home-v3 .hv3-cta { margin-top: 12px; min-height: 58px; font-size: 17px; box-shadow: 0 14px 30px -12px rgba(255, 159, 28, .75); }
.home-v3 .hv3-cta[data-cta-state="complete"] .v3-i { animation: hv3Nudge 700ms var(--ease) 1; }
.home-v3 .v3-ink .hv3-console .v3-btn-primary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.home-v3 .v3-ink .hv3-console .v3-link { color: var(--brand-deep); }
.home-v3 .v3-ink .hv3-console a:focus-visible { outline: var(--focus-light); outline-offset: 2px; }
.home-v3 .hv3-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 20px; margin-top: 4px; font-size: 15px; }
.home-v3 .hv3-links .v3-link { font-size: 15px; font-weight: 500; text-decoration-color: var(--l300); }
.home-v3 .hv3-links .v3-link .v3-i { opacity: .9; }

/* ---------- Client logo strip directly under the first screen ---------- */
.home-v3 .hv3-logobar { position: relative; padding: 20px 0 24px; background: linear-gradient(to bottom, var(--ink), var(--ink-2)); border-top: 1px solid rgba(255, 255, 255, .08); }
.home-v3 .hv3-logobar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.home-v3 .hv3-logos-cap { font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-3); }
.home-v3 .hv3-logobar .hv3-logo-row { display: flex; flex: 1; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; margin: 0; }
.home-v3 .hv3-logo-row li { display: flex; align-items: center; min-height: 32px; }
.home-v3 .hv3-logobar .hv3-logo-row li:nth-child(n+5) { display: none; }
.home-v3 .hv3-logo-row img { display: block; width: auto; max-width: 112px; height: 28px; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); opacity: .7; transition: opacity var(--t-base) ease; }
@media (pointer: fine) { .home-v3 .hv3-logo-row li:hover img { opacity: 1; } }

/* ---------- Breakpoints ---------- */
@media (min-width: 360px) {
    .home-v3 .hv3-console { padding: 24px 22px 14px; }
}
@media (min-width: 640px) {
    .home-v3 .hv3-console { padding: 28px 28px 16px; }
    .home-v3 .hv3-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* four format tiles in one row: icon above label */
    .home-v3 .hv3-formats { --hv3-cols: 4; --hv3-rows: 1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .home-v3 .hv3-formats:has(.hv3-format:nth-child(3) input:checked) { --hv3-fx: 2; --hv3-fy: 0; }
    .home-v3 .hv3-formats:has(.hv3-format:nth-child(4) input:checked) { --hv3-fx: 3; --hv3-fy: 0; }
    .home-v3 .hv3-format { flex-direction: column; justify-content: center; gap: 6px; padding: 12px 8px; text-align: center; }
    .home-v3 .hv3-format-label { font-size: 13px; line-height: 1.3; }
    .home-v3 .hv3-stats { gap: 24px 36px; }
}
@media (min-width: 768px) {
    .home-v3 .hv3-hero { padding: 48px 0 64px; }
    .home-v3 .hv3-layout { max-width: 680px; margin: 0 auto; }
    .home-v3 .hv3-stats { grid-template-columns: repeat(4, auto); justify-content: space-between; }
    .home-v3 .hv3-logobar .hv3-logo-row li:nth-child(n+5) { display: flex; }
}

/* Phones and tablets: the headline, the quick answer and Enquire now share the first screen; the console follows */
@media (max-width: 1023px) {
    .home-v3 .hv3-answer-text { line-height: 1.55; }
    .home-v3 .hv3-links { justify-content: center; gap: 0 28px; }
}

/* =====================================================================
 * DESKTOP: ONE SCREEN. Site header + hero end exactly at the bottom of the first screen.
 * --hv3-header is measured by hero.js (about 103px at the top of the page).
 * Type and spacing do not shrink with height. Shorter screens simply show less:
 *   under 800px tall  : the summary line is read out but not shown (the chosen tiles already show the state)
 *   under 920px tall  : no route graphic (the step bar still shows progress)
 *   under 1000px tall : no "who it is for" line on the course choices
 * Under 700px nothing more is hidden or squeezed: the hero just grows past the screen.
 * ===================================================================== */
@media (min-width: 1024px) {
    .home-v3 .hv3-hero {
        min-height: calc(100vh - var(--hv3-header, 103px));
        min-height: calc(100svh - var(--hv3-header, 103px));
        display: flex; align-items: center;
        padding: clamp(16px, 2.2vh, 40px) 0;
    }
    .home-v3 .hv3-hero > .v3-wrap { width: 100%; }
    .home-v3 .hv3-layout { max-width: none; grid-template-columns: minmax(0, 1fr) 532px; align-items: center; column-gap: 48px; }
    .home-v3 .hv3-side { margin-top: 0; }
    .home-v3 .hv3-mcta { display: none; }

    /* left column */
    .home-v3 .hv3-copy { container-type: inline-size; }
    .home-v3 .hv3-pill { min-height: 40px; padding-top: 4px; padding-bottom: 4px; }
    .home-v3 .hv3-copy .hv3-eyebrow { margin-top: 22px; font-size: 16px; }
    .home-v3 .hv3-title { margin-top: 14px; font-size: clamp(2.25rem, 3.4vw, 2.875rem); line-height: 1.1; }
    @supports (width: 1cqi) { .home-v3 .hv3-title { font-size: clamp(2.25rem, 8.3cqi, 3.5rem); } } /* sized from the column, so the two lines always fit */
    .home-v3 .hv3-answer { margin-top: 28px; }
    .home-v3 .hv3-stats { grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 40px; margin-top: 32px; }
    .home-v3 .hv3-stat dt { max-width: 15ch; }

    /* console */
    .home-v3 .hv3-console { padding: 24px 26px 12px; }
    .home-v3 .hv3-field { margin-top: 24px; }
    .home-v3 .hv3-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-v3 .hv3-level-head { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 2px; padding-right: 0; }
    .home-v3 .hv3-level .v3-choice-check { top: auto; bottom: 13px; margin: 0; }
    .home-v3 .hv3-summary { min-height: 44px; } /* room for two lines, so the card never changes height */
    .home-v3 .hv3-cta { margin-top: 12px; }
    /* the phone number is already in the site header */
    .home-v3 .hv3-links a[data-cta="call"] { display: none; }
    .home-v3 .hv3-links { flex-wrap: nowrap; }
}
@media (min-width: 1024px) and (pointer: fine) { .home-v3 .hv3-links .v3-link { min-height: 36px; } }
@media (min-width: 1024px) and (max-height: 999px) {
    .home-v3 .hv3-level-who { display: none; }
}
@media (min-width: 1024px) and (max-height: 919px) {
    .home-v3 .hv3-route { display: none; }
}
@media (min-width: 1024px) and (max-height: 799px) {
    /* still announced to screen readers (aria-live), just not painted */
    .home-v3 .hv3-summary { position: absolute; width: 1px; height: 1px; min-height: 0; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .home-v3 .hv3-cta { margin-top: 20px; }
}
/* Tall screens (1080p and up): the same content, set larger */
@media (min-width: 1200px) and (min-height: 1000px) {
    .home-v3 .hv3-layout { column-gap: 56px; }
    .home-v3 .hv3-copy .hv3-eyebrow { margin-top: 28px; font-size: 17px; }
    .home-v3 .hv3-title { margin-top: 18px; line-height: 1.08; }
    @supports (width: 1cqi) { .home-v3 .hv3-title { font-size: clamp(2.75rem, 9.4cqi, 3.75rem); } } /* three lines */
    .home-v3 .hv3-answer { margin-top: 36px; }
    .home-v3 .hv3-answer-text { font-size: 17px; }
    .home-v3 .hv3-stats { margin-top: 44px; }
    .home-v3 .hv3-stat dd { font-size: 28px; }
    .home-v3 .hv3-console { padding: 32px 32px 18px; }
    .home-v3 .hv3-console-title { font-size: 22px; }
    .home-v3 .hv3-field { margin-top: 28px; }
}
/* Narrow desktops (1024 to 1199px wide) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .home-v3 .hv3-layout { grid-template-columns: minmax(0, 1fr) 460px; column-gap: 36px; }
    .home-v3 .hv3-console { padding: 24px 22px 14px; }
    .home-v3 .hv3-stats { gap: 12px 24px; }
}

/* ---------- Entrance (only while html.hv3-enter is set; see the note at the top) ---------- */
html.hv3-enter .home-v3 .hv3-pill,
html.hv3-enter .home-v3 .hv3-eyebrow,
html.hv3-enter .home-v3 .hv3-title,
html.hv3-enter .home-v3 .hv3-answer,
html.hv3-enter .home-v3 .hv3-mcta,
html.hv3-enter .home-v3 .hv3-stat { animation: hv3In 640ms var(--ease) both; }
html.hv3-enter .home-v3 .hv3-eyebrow { animation-delay: 70ms; }
html.hv3-enter .home-v3 .hv3-title { animation-delay: 140ms; }
html.hv3-enter .home-v3 .hv3-answer { animation-delay: 240ms; }
html.hv3-enter .home-v3 .hv3-answer::before { animation: hv3Line 700ms var(--ease) 360ms both; }
html.hv3-enter .home-v3 .hv3-mcta { animation-delay: 320ms; }
html.hv3-enter .home-v3 .hv3-stat { animation-delay: 380ms; }
html.hv3-enter .home-v3 .hv3-stat:nth-child(2) { animation-delay: 450ms; }
html.hv3-enter .home-v3 .hv3-stat:nth-child(3) { animation-delay: 520ms; }
html.hv3-enter .home-v3 .hv3-stat:nth-child(4) { animation-delay: 590ms; }
html.hv3-enter .home-v3 .hv3-side { animation: hv3Rise 760ms var(--ease) 180ms both; }
html.hv3-enter .home-v3 .hv3-level,
html.hv3-enter .home-v3 .hv3-format { animation: hv3Tile 460ms var(--ease) both; }
html.hv3-enter .home-v3 .hv3-level:nth-child(1) { animation-delay: 420ms; }
html.hv3-enter .home-v3 .hv3-level:nth-child(2) { animation-delay: 470ms; }
html.hv3-enter .home-v3 .hv3-level:nth-child(3) { animation-delay: 520ms; }
html.hv3-enter .home-v3 .hv3-level:nth-child(4) { animation-delay: 570ms; }
html.hv3-enter .home-v3 .hv3-format:nth-child(1) { animation-delay: 620ms; }
html.hv3-enter .home-v3 .hv3-format:nth-child(2) { animation-delay: 670ms; }
html.hv3-enter .home-v3 .hv3-format:nth-child(3) { animation-delay: 720ms; }
html.hv3-enter .home-v3 .hv3-format:nth-child(4) { animation-delay: 770ms; }
html.hv3-enter .home-v3 .hv3-cta { animation: hv3Tile 460ms var(--ease) 840ms both; }
html.hv3-enter .home-v3 .hv3-seg-a { animation: hv3Draw 420ms var(--ease) 480ms backwards; }
html.hv3-enter .home-v3 .hv3-seg-b { animation: hv3Draw 420ms var(--ease) 860ms backwards; }
html.hv3-enter .home-v3 .hv3-node-1 { animation: hv3Node 340ms var(--ease) 480ms backwards; }
html.hv3-enter .home-v3 .hv3-node-2 { animation: hv3Node 340ms var(--ease) 840ms backwards; }
html.hv3-enter .home-v3 .hv3-node-3 { animation: hv3Node 340ms var(--ease) 1200ms backwards; }

/* ---------- Pause the looping layers when off screen or the tab is hidden (motion.js) ---------- */
.home-v3 .hv3-hero.is-offscreen .hv3-glow, .home-v3 .hv3-hero.is-paused .hv3-glow,
.home-v3 .hv3-hero.is-offscreen .hv3-grid::before, .home-v3 .hv3-hero.is-paused .hv3-grid::before,
.home-v3 .hv3-hero.is-offscreen .hv3-dot, .home-v3 .hv3-hero.is-paused .hv3-dot,
.home-v3 .hv3-hero.is-offscreen .hv3-console, .home-v3 .hv3-hero.is-paused .hv3-console { animation-play-state: paused; }

/* ---------- Keyframes (transform, opacity, stroke-dashoffset, one registered angle) ---------- */
@keyframes hv3In { from { opacity: 0; transform: translate3d(0, 18px, 0); } }
@keyframes hv3Rise { from { opacity: 0; transform: translate3d(0, 28px, 0) scale(.975); } }
@keyframes hv3Tile { from { opacity: 0; transform: translate3d(0, 10px, 0) scale(.97); } }
@keyframes hv3Line { from { transform: scaleY(0); } }
@keyframes hv3Halo { to { --hv3-a: 360deg; } }
@keyframes hv3Draw { from { stroke-dashoffset: 100; } }
@keyframes hv3Node { from { transform: scale(.7); } }
@keyframes hv3Dot {
    0% { opacity: 0; transform: translateX(0); }
    6% { opacity: 1; }
    40% { opacity: 1; transform: translateX(var(--hv3-dot-x)); }
    50%, 100% { opacity: 0; transform: translateX(var(--hv3-dot-x)); }
}
@keyframes hv3Swap { from { opacity: .2; transform: translate3d(0, 5px, 0); } }
@keyframes hv3Check { 0% { transform: scale(.5); } 60% { transform: scale(1.16); } 100% { transform: scale(1); } }
@keyframes hv3Icon { 0% { transform: translateY(0) scale(1); } 45% { transform: translateY(-4px) scale(1.14); } 100% { transform: translateY(0) scale(1); } }
@keyframes hv3Nudge { 0%, 100% { transform: translateX(0); } 40% { transform: translateX(6px); } 70% { transform: translateX(-1px); } }
@keyframes hv3Grid { to { transform: translate3d(56px, 56px, 0); } }
@keyframes hv3DriftA { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-90px, 60px, 0) scale(1.1); } }
@keyframes hv3DriftB { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(70px, -50px, 0) scale(1.08); } }
@keyframes hv3DriftC { from { transform: translate3d(-60px, 30px, 0) scale(.9); } to { transform: translate3d(80px, -40px, 0) scale(1.15); } }

/* ---------- Accessibility fallbacks (base.css already switches every animation and transition off for reduced motion) ---------- */
@media (prefers-reduced-motion: reduce) {
    .home-v3 .hv3-dot { display: none; }
    .home-v3 .hv3-glow { will-change: auto; }
}
@media (forced-colors: active) {
    .home-v3 .hv3-grad { background: none; color: CanvasText; -webkit-text-fill-color: CanvasText; }
    .home-v3 .hv3-console { border-color: CanvasText; }
    .home-v3 .hv3-decor { display: none; }
    .home-v3 .hv3-seg { stroke: Highlight; }
    .home-v3 .hv3-progress-fill { background: Highlight; }
    .home-v3 .hv3-formats::before { border-color: Highlight; }
    .home-v3 .hv3-logo-row img { filter: none; opacity: 1; }
}

/* Phones and tablets: the Enquire button comes straight after the headline, so it is inside the first screen on a
   real phone (about 660px of visible height once the browser's own bars are counted). The quick answer follows it. */
@media (max-width: 1023px) {
    .home-v3 .hv3-copy { display: flex; flex-direction: column; align-items: flex-start; }
    .home-v3 .hv3-copy > * { max-width: 100%; }
    .home-v3 .hv3-copy > .hv3-mcta { order: 1; align-self: stretch; margin-top: 20px; }
    .home-v3 .hv3-copy > .hv3-answer { order: 2; align-self: stretch; }
    .home-v3 .hv3-copy > .hv3-stats { order: 3; align-self: stretch; }
}
