/* The homepage (public/basis-index.html). A plain static page: no bundle to
   unpack, so the first paint IS the page.
   Tokens sit on :root after landing-theme.css, which still owns the shared
   ones (--ink, --card, --line, --btn, --chip-*, --focus-*) that the process
   cards, the pills and the contact form read.
   ⚠️ Dark mode: --hp-ink is the TEXT colour, so nothing may use it as a fill.
   Solid fills use --hp-solid / --hp-on-solid, which stay dark-on-light in
   both themes. */
:root {
  --bg: #f1f6fa;
  --hp-bg: #f1f6fa; --hp-ink: #0f3557; --hp-mut: #56728a; --hp-body: #2f4e68;
  --hp-tile: #ffffff; --hp-line: #e0e8ef; --hp-soft: #f6f9fc; --hp-seg: #eef3f8; --hp-pic: #ffffff;
  --hp-solid: #0f3557; --hp-on-solid: #ffffff;
  --hp-band: #0f3557; --hp-band-line: rgba(255,255,255,.14); --hp-band-fill: rgba(255,255,255,.07);
  --hp-sky: linear-gradient(180deg, #a9d8f8 0, #c6e5fb 40%, #e2f2fe 74%, #f2faff 100%);
  --hp-cloud: #ffffff; --hp-lift: rgba(15,53,87,.13);
  --hp-c1: linear-gradient(160deg, #dcefff 0, #c4e2fa 100%); --hp-c1-ink: #2478bd;
  --hp-c2: linear-gradient(160deg, #ffe9ee 0, #fbd2dd 100%); --hp-c2-ink: #c9305b;
  --hp-c3: linear-gradient(160deg, #eee8ff 0, #dccefb 100%); --hp-c3-ink: #6d42d8;
  --hp-card-body: #2f4e68; --hp-dot: #ffffff;
  --hp-p1: #fdeff3; --hp-p1-ink: #d43863; --hp-p2: #e8f4fd; --hp-p2-ink: #2378c9;
  --hp-p3: #e9f8f1; --hp-p3-ink: #177a54; --hp-p4: #fff3e2; --hp-p4-ink: #b56d12;
  --hp-panel-body: #42607a;
  --hp-people-sky: linear-gradient(180deg, #e8f6fe 0, #dff1fd 100%); --hp-people-top: #e8f6fe;
  --hp-sea-a: #aee0fb; --hp-sea-b: #9bd3f4; --hp-land: #ffffff; --hp-flag-ring: #ffffff;
  --hp-contact-sky: linear-gradient(180deg, #bfe3fb 0, #e6f5fe 100%); --hp-contact-body: #2a5676;
  --hp-plane-a: #86d1ff; --hp-plane-b: #2c84c8; --hp-plane-c: #a9defd;
}
:root[data-theme="dark"] {
  --bg: #0b161e;
  --hp-bg: #0b161e; --hp-ink: #e9f1f7; --hp-mut: #94aab9; --hp-body: #b8ccd8;
  --hp-tile: #122230; --hp-line: #22384a; --hp-soft: #16293a; --hp-seg: #0d1b27; --hp-pic: #f3f8fc;
  --hp-solid: #1d4364; --hp-on-solid: #ffffff;
  --hp-band: #102536; --hp-band-line: rgba(255,255,255,.12); --hp-band-fill: rgba(255,255,255,.05);
  --hp-sky: linear-gradient(180deg, #16324a 0%, #1d4364 42%, #244b68 80%, #142d40 100%);
  --hp-cloud: rgba(150,200,238,.16); --hp-lift: rgba(0,0,0,.35);
  --hp-c1: linear-gradient(160deg, #173a55 0, #1c4a6e 100%); --hp-c1-ink: #7cc0f0;
  --hp-c2: linear-gradient(160deg, #4a2233 0, #5c2a40 100%); --hp-c2-ink: #f496b0;
  --hp-c3: linear-gradient(160deg, #32275c 0, #3f3175 100%); --hp-c3-ink: #bba3f8;
  --hp-card-body: #c9d9e5; --hp-dot: rgba(255,255,255,.12);
  --hp-p1: #2d1c26; --hp-p1-ink: #f496b0; --hp-p2: #14293c; --hp-p2-ink: #7cc0f0;
  --hp-p3: #142b21; --hp-p3-ink: #6fd2a6; --hp-p4: #30261a; --hp-p4-ink: #eab567;
  --hp-panel-body: #b8ccd8;
  --hp-people-sky: linear-gradient(180deg, #102535 0, #142d40 100%); --hp-people-top: #102535;
  --hp-sea-a: #225478; --hp-sea-b: #1b4463; --hp-land: #3f7296; --hp-flag-ring: #dbe9f4;
  --hp-contact-sky: linear-gradient(180deg, #102535 0, #173650 100%); --hp-contact-body: #b8ccd8;
  --hp-plane-a: #6fb9ea; --hp-plane-b: #2c84c8; --hp-plane-c: #9fd4f6;
}

html { background: var(--hp-bg); overscroll-behavior-y: none; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.hp { margin: 0; font-family: 'Archivo', 'Helvetica Neue', sans-serif; color: var(--hp-ink); background: var(--hp-bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
.hp *, .hp *::before, .hp *::after { box-sizing: border-box; }
.hp a { color: inherit; text-decoration: none; }
.hp input, .hp textarea, .hp button { font-family: inherit; }
.hp-wrap { width: 1200px; max-width: calc(100% - 48px); margin-left: auto; margin-right: auto; }
.hp :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.hp-dot { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--hp-dot); }

/* ---- scroll reveals ---------------------------------------------------
   landing-fx.js's initReveals owns these (opacity + 26px rise, 0.85s). This
   rule only holds the start state between first paint and that script, so
   nothing below the fold flashes in and then hides. The head script drops
   .hp-js again if the module never arrives. */
.hp-js [data-reveal]:not([style*="opacity"]) { opacity: 0; transform: translateY(26px); }
@media (prefers-reduced-motion: reduce) { .hp-js [data-reveal] { opacity: 1 !important; transform: none !important; } }

/* ---- first-load intro: the previous homepage's keyframes, kept ----------
   The sky box opens, the clouds settle inward, the copy rises, then the
   globe arrives on its own canvas. The nav is always there. */
@keyframes heroOpen { from { opacity: 0; transform: scale(.86); border-radius: 72px; } to { opacity: 1; transform: none; border-radius: 34px; } }
@keyframes cloudSettle { from { opacity: 0; transform: scale(1.07); } to { opacity: var(--o, 1); transform: none; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes globeIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
/* Arriving from another page of the site (html.basis-arrived, /basis-theme.js)
   the cross-fade between pages is the entrance, so the hero is simply there.
   The globe keeps its fade: it loads after the page whichever way you came. */
.basis-arrived :is(.hp-sky, .hp-cloud, .hp-h1, .hp-lede, .hp-stat) { animation: none; }
@keyframes intakeSuccessFade { 0% { opacity: 0; } 14% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ckDraw { to { stroke-dashoffset: 0; } }
@keyframes pillDrift { from { transform: translateX(0); } to { transform: translateX(var(--pill-shift, 0px)); } }

/* ---- hero -------------------------------------------------------------- */
.hp-hero { position: relative; }
/* touch-action: a sideways swipe turns the globe, an up-down one still scrolls the page. */
.hp-hero-box { position: relative; overflow: hidden; margin: 16px 16px 0; border-radius: 34px; padding: 144px 0 clamp(240px, 19vw, 280px); touch-action: pan-y; }
.hp-sky { position: absolute; inset: 0; border-radius: 34px; overflow: hidden; background: var(--hp-sky); animation: heroOpen 1.05s cubic-bezier(.22,.7,.2,1) both; }
.hp-cloud { position: absolute; height: 40px; border-radius: 99px; background: var(--hp-cloud); opacity: var(--o, 1); animation: cloudSettle 1.6s cubic-bezier(.2,.65,.2,1) both; }
.hp-sky .hp-cloud:nth-child(1) { right: -50px; top: 210px; width: 270px; height: 42px; animation-delay: .2s; }
.hp-sky .hp-cloud:nth-child(2) { right: 210px; top: 470px; width: 160px; height: 32px; --o: .85; animation-delay: .3s; }
.hp-sky .hp-cloud:nth-child(3) { left: -60px; bottom: 272px; width: 220px; height: 38px; --o: .9; animation-delay: .45s; }
/* The globe's host is taller than the part of it the box shows; the scene is
   framed for a 900px canvas whose horizon crests 486px down, i.e. 210px above
   the box's bottom edge at every width. */
.hp-earth { position: absolute; left: 0; right: 0; bottom: -204px; height: 900px; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 17%, #000 36%); mask-image: linear-gradient(180deg, transparent 0, transparent 17%, #000 36%); }
/* On the canvas, not the host: the globe is built asynchronously, so this
   starts at the moment the canvas is inserted — when the globe arrives. */
.hp-earth canvas { display: block; width: 100%; height: 100%; animation: globeIn 1.15s cubic-bezier(.2,.65,.2,1) backwards; }
.hp-hero-copy { position: relative; z-index: 3; }
.hp-h1 { margin: 0; font-size: clamp(40px, 6.1vw, 88px); line-height: .96; font-weight: 400; letter-spacing: -.045em; color: var(--hp-ink); text-wrap: balance; animation: riseIn .9s cubic-bezier(.2,.65,.2,1) .55s both; }
.hp-lede { margin: clamp(22px, 2.2vw, 32px) 0 0; max-width: 580px; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; letter-spacing: -.01em; font-weight: 400; color: var(--hp-body); text-wrap: pretty; animation: riseIn .9s cubic-bezier(.2,.65,.2,1) .68s both; }
.hp-icons { white-space: nowrap; }
.hp-ic { display: inline-block; width: 1em; height: 1em; margin-right: -.07em; vertical-align: -.17em; }
.hp-ic.w { width: 1.25em; }
.hp-ic svg { display: block; width: 100%; height: 100%; }

.hp-stats { position: relative; z-index: 4; display: grid; grid-template-columns: minmax(0, 1.55fr) repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: -36px; }
.hp-stat { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; height: 128px; padding: 0 26px; border-radius: 26px; background: var(--hp-tile); border: 1px solid var(--hp-line); box-shadow: 0 18px 44px var(--hp-lift); animation: riseIn .9s cubic-bezier(.2,.65,.2,1) both; }
.hp-stat:nth-child(1) { animation-delay: .8s; } .hp-stat:nth-child(2) { animation-delay: .88s; }
.hp-stat:nth-child(3) { animation-delay: .96s; } .hp-stat:nth-child(4) { animation-delay: 1.04s; }
.hp-stat.is-solid { flex-direction: row; align-items: center; gap: 16px; background: var(--hp-solid); border-color: var(--hp-solid); color: var(--hp-on-solid); }
.hp-trust-seal { flex: 0 0 48px; width: 48px; height: 48px; }
.hp-stat p { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.16; letter-spacing: -.025em; }
.hp-stat b { font-size: 54px; font-weight: 500; letter-spacing: -.03em; line-height: 1; color: var(--hp-ink); }
.hp-stat span { margin-top: 7px; font-size: 16px; color: var(--hp-mut); }
.hp-stat-flags { position: absolute; right: 26px; top: 50%; transform: translateY(-50%); display: flex; }
.hp-stat-flags img { flex: none; width: 28px; height: 28px; margin-left: -11px; border-radius: 50%; object-fit: cover; border: 2px solid var(--hp-tile); box-sizing: content-box; box-shadow: 0 0 0 1px var(--hp-line); }
.hp-stat-flags img:first-child { margin-left: 0; }
.hp-stat.has-flags { container-type: inline-size; }
/* The stack shows as many flags as the box has room for beside the number. */
@container (max-width: 309px) { .hp-stat-flags img:nth-child(n+8) { display: none; } }
@container (max-width: 288px) { .hp-stat-flags img:nth-child(n+7) { display: none; } }
@container (max-width: 267px) { .hp-stat-flags img:nth-child(n+6) { display: none; } }
@container (max-width: 246px) { .hp-stat-flags img:nth-child(n+5) { display: none; } }
@container (max-width: 225px) { .hp-stat-flags img:nth-child(n+4) { display: none; } }
@container (max-width: 204px) { .hp-stat-flags img:nth-child(n+3) { display: none; } }
@container (max-width: 183px) { .hp-stat-flags { display: none; } }

/* ---- the three offerings ------------------------------------------------ */
.hp-funnel { margin-top: clamp(72px, 8.3vw, 120px); text-align: center; }
.hp-h2 { margin: 0 auto; max-width: 760px; font-size: clamp(32px, 3.9vw, 56px); font-weight: 500; letter-spacing: -.035em; line-height: 1.02; color: var(--hp-ink); text-wrap: balance; }
.hp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(32px, 3.4vw, 48px); }
.hp-card { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; height: 420px; padding: 34px; border-radius: 30px; background: var(--c); transition: transform .25s ease, box-shadow .25s ease; }
.hp-card:hover, .hp-panel:hover { transform: translateY(-4px); box-shadow: 0 24px 60px var(--hp-lift); }
.hp-card.c1 { --c: var(--hp-c1); --k: var(--hp-c1-ink); } .hp-card.c2 { --c: var(--hp-c2); --k: var(--hp-c2-ink); } .hp-card.c3 { --c: var(--hp-c3); --k: var(--hp-c3-ink); }
.hp-card-big { position: absolute; right: -34px; top: -30px; color: var(--k); opacity: .2; }
.hp-card-pill { position: absolute; left: 34px; top: 34px; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 99px; background: var(--hp-dot); font-size: 14px; font-weight: 700; color: var(--k); }
.hp-card h3 { position: relative; margin: 0; font-size: 34px; font-weight: 600; letter-spacing: -.04em; line-height: 1.05; color: var(--hp-ink); }
.hp-card p { position: relative; margin: 12px 0 0; max-width: calc(100% - 64px); font-size: 18px; line-height: 1.45; color: var(--hp-card-body); }
.hp-card .hp-dot { position: absolute; right: 30px; bottom: 30px; color: var(--k); }

/* ---- the data band ------------------------------------------------------ */
.hp-band { margin: 64px 16px 0; padding: clamp(64px, 6.7vw, 96px) 0 clamp(56px, 6vw, 86px); border-radius: 34px; background: var(--hp-band); color: #fff; overflow: hidden; }
.hp-band-h { margin: 0; max-width: 820px; font-size: clamp(32px, 3.9vw, 56px); font-weight: 500; letter-spacing: -.035em; line-height: 1.03; text-wrap: balance; }
.hp-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(30px, 3vw, 44px); }
.hp-panel { display: block; height: 100%; padding: 32px; border-radius: 30px; background: var(--c); transition: transform .25s ease, box-shadow .25s ease; }
.hp-panel.p1 { --c: var(--hp-p1); --k: var(--hp-p1-ink); } .hp-panel.p2 { --c: var(--hp-p2); --k: var(--hp-p2-ink); }
.hp-panel.p3 { --c: var(--hp-p3); --k: var(--hp-p3-ink); } .hp-panel.p4 { --c: var(--hp-p4); --k: var(--hp-p4-ink); }
.hp-panel-top { display: flex; align-items: center; gap: 14px; }
.hp-panel-ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: var(--hp-dot); color: var(--k); }
.hp-panel h3 { flex: 1; margin: 0; font-size: 29px; font-weight: 600; letter-spacing: -.035em; line-height: 1.1; color: var(--hp-ink); }
.hp-panel .hp-dot { width: 42px; height: 42px; color: var(--k); }
.hp-panel p { margin: 14px 0 0; min-height: 52px; max-width: 460px; font-size: 17px; line-height: 1.5; color: var(--hp-panel-body); }
.hp-pic { margin-top: 20px; height: 244px; padding: 22px; border-radius: 22px; background: var(--hp-pic); overflow: hidden; }
.hp-pic.tight { padding: 12px; }
.hp-pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; border-radius: 10px; }
.hp-pic-mid { display: grid; place-items: center; height: 100%; }
.hp-row { display: flex; align-items: center; gap: 14px; height: 32px; }
.hp-row + .hp-row { margin-top: 12px; }
.hp-row > b { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; }
.hp-row > svg, .hp-vwave svg { flex: 1; min-width: 0; width: 100%; display: block; }
.hp-cams { display: flex; gap: 12px; }
.hp-cam { position: relative; flex: 1; height: 142px; border-radius: 16px; overflow: hidden; }
.hp-cam svg { display: block; }
.hp-vwave { position: relative; margin-top: 14px; }
.hp-vwave i { position: absolute; left: 38%; top: -4px; bottom: -4px; width: 2px; border-radius: 2px; background: #0f3557; }

.hp-custom { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-top: 20px; padding: 34px 40px; border-radius: 26px; background: var(--hp-band-fill); box-shadow: inset 0 0 0 1px var(--hp-band-line); }
.hp-custom h3 { margin: 0; font-size: clamp(26px, 2.4vw, 34px); font-weight: 500; letter-spacing: -.025em; }
.hp-btn-w { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; height: 52px; padding: 0 24px; border-radius: 999px; background: #fff; color: #0f3557 !important; font-size: 16px; font-weight: 600; transition: transform .2s ease, box-shadow .2s ease; }
.hp-btn-w:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,.25); }

/* The pill rows under the band's "Need something else?" bar. */
#basis-process { margin-top: clamp(56px, 5.6vw, 80px); }
.hp-pills { margin-top: clamp(40px, 6vh, 60px); display: flex; flex-direction: column; gap: 10px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); }
[data-pill-row] { display: flex; width: max-content; gap: 10px; animation: pillDrift 70s linear infinite; }
[data-pill-row] > span { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--chip-line); background: var(--chip-bg); color: var(--ink); font-size: .9rem; font-weight: 500; white-space: nowrap; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
[data-pill-row] > span:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(4,20,34,.3); }
[data-pill-row] svg { display: block; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 641px) { [data-pill-mobile] { display: none !important; } }

/* ---- tiles: preferences, people, contact -------------------------------- */
.hp-tiles { display: grid; gap: 20px; margin-top: 20px; }
.hp-tile { position: relative; overflow: hidden; border-radius: 28px; background: var(--hp-tile); border: 1px solid var(--hp-line); }
.hp-prefs { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; padding: 48px 52px; transition: transform .25s ease, box-shadow .25s ease; }
.hp-prefs:hover { transform: translateY(-4px); box-shadow: 0 24px 60px var(--hp-lift); }
/* One link covers the tile; the template buttons sit above it and still work. */
.hp-stretch { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.hp-prefs h2 { margin: 0; max-width: 467px; font-size: clamp(30px, 2.9vw, 42px); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; color: var(--hp-ink); text-wrap: balance; }
.hp-prefs-p { margin: 16px 0 0; font-size: 19px; line-height: 1.5; color: var(--hp-mut); text-wrap: pretty; }
.hp-prefs-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; }
.hp-prefs-foot b { font-size: 30px; font-weight: 500; letter-spacing: -.03em; color: var(--hp-ink); }
.hp-prefs-foot span { font-size: 15px; color: var(--hp-mut); }
.hp-prefs-foot .hp-dot { background: var(--hp-seg); color: var(--hp-ink); }
.hp-demo { position: relative; z-index: 2; pointer-events: none; }
.hp-seg { display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--hp-seg); pointer-events: auto; }
.hp-seg button { all: unset; box-sizing: border-box; cursor: var(--basis-cursor-pointer, pointer); display: flex; align-items: center; justify-content: center; flex: 1; height: 44px; padding: 0 12px; border-radius: 99px; font-size: 15px; font-weight: 600; color: var(--hp-mut); white-space: nowrap; }
.hp-seg button[aria-pressed="true"] { background: var(--hp-tile); color: var(--hp-ink); box-shadow: 0 2px 8px var(--hp-lift); }
.hp-seg button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.hp-demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 14px; margin-top: 14px; }
.hp-ask { padding: 22px; border-radius: 20px; background: var(--hp-soft); }
.hp-cap { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: #7a92a6; }
.hp-ask p { margin: 8px 0 0; min-height: 56px; font-size: 21px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; color: var(--hp-ink); }
.hp-clips { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; min-height: 150px; }
.hp-clip { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 12px; background: var(--hp-tile); }
.hp-clip b { flex: none; display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 15px; color: #fff; font-size: 12px; font-weight: 700; }
.hp-clip svg { flex: 1; min-width: 0; height: 28px; }
.hp-result { padding: 22px; border-radius: 20px; background: var(--hp-solid); color: #fff; }
.hp-result .hp-cap { color: #9fc2de; }
.hp-result b { display: block; margin-top: 14px; font-size: 68px; font-weight: 500; letter-spacing: -.04em; line-height: .9; }
.hp-result span:last-child { display: block; margin-top: 10px; font-size: 15px; color: #c4dbee; }

.hp-people { height: 540px; border: 0; background: var(--hp-people-sky); }
/* The scene is drawn on a fixed 1200x540 stage held to the tile's centre, so a
   narrow screen sees the middle of the same arc instead of a rescaled one. */
.hp-stage { position: absolute; left: 50%; top: 0; width: 1200px; height: 540px; margin-left: -600px; }
.hp-stage > svg { position: absolute; left: 0; top: 0; display: block; }
.hp-sea-a { stop-color: var(--hp-sea-a); } .hp-sea-b { stop-color: var(--hp-sea-b); } .hp-land { fill: var(--hp-land); }
.hp-rings { position: absolute; inset: 0; overflow: hidden; }
.hp-ring { position: absolute; left: 600px; top: 1852px; width: 0; height: 0; will-change: transform; }
.hp-ring span { position: absolute; left: -32px; top: -23px; width: 64px; height: 46px; border-radius: 8px; background: url(/homepage/flags.webp) 0 0 / 640px 414px no-repeat; box-shadow: 0 0 0 3px var(--hp-flag-ring), 0 8px 18px rgba(15,53,87,.18); }
.hp-plane { position: absolute; display: block; }
.hp-plane path:nth-child(1) { fill: var(--hp-plane-a); } .hp-plane path:nth-child(2) { fill: var(--hp-plane-b); } .hp-plane path:nth-child(3) { fill: var(--hp-plane-c); }
.hp-people-fade { position: absolute; inset: 0 0 auto 0; height: 130px; background: linear-gradient(180deg, var(--hp-people-top) 55%, transparent 100%); }
.hp-people h2 { position: relative; margin: 0; padding: 34px 36px 0; font-size: clamp(30px, 3.9vw, 56px); font-weight: 500; line-height: 1.02; letter-spacing: -.035em; color: var(--hp-ink); text-wrap: balance; }

.hp-contact { display: flex; flex-direction: column; align-items: center; text-align: center; border: 0; padding: clamp(64px, 6.7vw, 96px) 24px clamp(68px, 7.2vw, 104px); background: var(--hp-contact-sky); scroll-margin-top: 90px; }
.hp-contact > .hp-cloud { animation: none; }
.hp-contact h2 { position: relative; margin: 0; font-size: clamp(34px, 4.4vw, 64px); font-weight: 500; letter-spacing: -.035em; line-height: 1.06; color: var(--hp-ink); text-wrap: balance; }
.hp-contact > p { position: relative; margin: 18px 0 0; max-width: 480px; font-size: 19px; line-height: 1.5; color: var(--hp-contact-body); text-wrap: pretty; }
#intakeForm { position: relative; display: flex; flex-direction: column; gap: 14px; width: 600px; max-width: 100%; margin-top: 40px; padding: 30px; border-radius: 22px; background: var(--card); box-shadow: 0 24px 64px rgba(23,67,94,.28); text-align: left; }
.hp-form-row { display: flex; gap: 14px; flex-wrap: wrap; }
#intakeForm :is(input, textarea) { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; font-size: .98rem; color: var(--ink); background: var(--card); outline: none; transition: border-color .18s ease, box-shadow .18s ease; }
#intakeForm :is(input, textarea):focus { border-color: #4a90c2; box-shadow: 0 0 0 3px rgba(74,144,194,.18); }
.hp-form-row input { flex: 1 1 200px; width: auto; }
#intakeForm textarea { resize: vertical; min-height: 116px; }
#intakeSubmit { margin-top: 4px; width: 100%; border: none; cursor: var(--basis-cursor-pointer, pointer); font-size: 1rem; font-weight: 600; padding: 16px 30px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); box-shadow: 0 10px 30px rgba(18,41,58,.35); transition: transform .2s ease, box-shadow .2s ease, opacity .3s ease; }
#intakeSubmit:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(18,41,58,.42); }
#intakeSuccess { position: absolute; inset: 0; border-radius: 22px; background: var(--card); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; z-index: 3; }
#intakeSuccess svg { width: 104px; height: 104px; }
#intakeSuccess circle { fill: none; stroke: #1f8f5f; stroke-width: 3; stroke-dasharray: 164; stroke-dashoffset: 164; }
#intakeSuccess path { fill: none; stroke: #1f8f5f; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.hp-end { height: clamp(40px, 4.4vw, 64px); }

/* ---- tablet ------------------------------------------------------------- */
@media (max-width: 1000px) {
  .hp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .hp-stat.is-solid { grid-column: span 2; }
  .hp-cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hp-card { height: 260px; padding: 28px; }
  .hp-card-big svg { width: 190px; height: 190px; }
  .hp-card-pill { left: 28px; top: 28px; }
  .hp-prefs { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 36px; }
}
@media (max-width: 860px) {
  .hp-panels { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

/* ---- phone -------------------------------------------------------------- */
@media (max-width: 640px) {
  .hp-wrap { max-width: calc(100% - 32px); }
  .hp-hero-box { margin: 8px 8px 0; border-radius: 26px; padding: 116px 0 300px; }
  .hp-sky { border-radius: 26px; }
  @keyframes heroOpen { from { opacity: 0; transform: scale(.86); border-radius: 56px; } to { opacity: 1; transform: none; border-radius: 26px; } }
  .hp-sky .hp-cloud:nth-child(1) { top: 86px; width: 150px; height: 28px; }
  .hp-sky .hp-cloud:nth-child(2) { display: none; }
  .hp-sky .hp-cloud:nth-child(3) { width: 140px; height: 28px; }
  .hp-stats { margin-top: -28px; gap: 10px; }
  .hp-stat { height: 104px; padding: 0 18px; border-radius: 20px; }
  .hp-stat.is-solid { grid-column: span 2; height: auto; padding: 18px; }
  .hp-stat p { font-size: 19px; }
  .hp-trust-seal { flex-basis: 40px; width: 40px; height: 40px; }
  .hp-stat b { font-size: 38px; }
  .hp-stat span { font-size: 14px; }
  .hp-stat-flags { right: 14px; }
  .hp-stat-flags img { width: 24px; height: 24px; margin-left: -9px; }
  .hp-card { height: 232px; padding: 24px; border-radius: 24px; }
  .hp-card h3 { font-size: 28px; }
  .hp-card p { font-size: 16px; }
  .hp-card .hp-dot { right: 22px; bottom: 22px; }
  .hp-card-pill { left: 24px; top: 24px; }
  .hp-band { margin: 40px 8px 0; border-radius: 26px; }
  .hp-panel { padding: 22px; border-radius: 24px; }
  .hp-panel h3 { font-size: 23px; }
  .hp-panel p { min-height: 0; font-size: 16px; }
  .hp-panel-ic { width: 40px; height: 40px; border-radius: 13px; }
  .hp-panel .hp-dot { width: 38px; height: 38px; }
  .hp-pic { height: auto; padding: 16px; border-radius: 18px; }
  .hp-pic.tight { padding: 10px; }
  .hp-pic-mid { padding: 14px 0; }
  .hp-pic img { height: auto; }
  .hp-cam { height: 108px; }
  .hp-custom { flex-direction: column; align-items: flex-start; padding: 26px 24px; border-radius: 22px; }
  .hp-btn-w { height: 48px; padding: 0 20px; font-size: 15px; }
  .hp-tiles { gap: 14px; margin-top: 14px; }
  .hp-tile { border-radius: 24px; }
  .hp-prefs { padding: 26px 22px; gap: 26px; }
  .hp-prefs-p { font-size: 17px; }
  .hp-seg button { height: 40px; padding: 0 6px; font-size: 13px; }
  .hp-demo-grid { grid-template-columns: minmax(0, 1fr); }
  .hp-ask { padding: 18px; }
  .hp-ask p { min-height: 50px; font-size: 19px; }
  .hp-clips { min-height: 148px; }
  .hp-result { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 16px 18px; }
  .hp-result .hp-cap { flex-basis: 100%; }
  .hp-result b { margin-top: 6px; font-size: 44px; }
  .hp-result span:last-child { margin-top: 0; }
  .hp-people { height: 430px; }
  .hp-stage { top: -96px; transform: scale(.78); transform-origin: 50% 100%; }
  .hp-people h2 { padding: 26px 22px 0; }
  .hp-people-fade { height: 150px; }
  .hp-contact { padding-left: 16px; padding-right: 16px; }
  .hp-contact > .hp-cloud, .hp-contact > .hp-plane { display: none; }
  #intakeForm { margin-top: 30px; padding: 20px; }
}

/* Motion is decoration; the page must still arrive without it. */
@media (prefers-reduced-motion: reduce) {
  .hp-sky, .hp-cloud, .hp-h1, .hp-lede, .hp-stat, .hp-earth canvas, [data-pill-row] { animation: none !important; }
  .hp-card, .hp-panel, .hp-prefs, .hp-btn-w { transition: none; }
}
