/* Caps by TCapital Technologies — coming-soon landing
   Palette and type come from the TCapital identity manual and logo artwork (see README). */

@font-face { font-family: "Poppins"; src: url("./assets/fonts/Poppins-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("./assets/fonts/Poppins-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("./assets/fonts/Poppins-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("./assets/fonts/Poppins-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

/* a metric-matched fallback so the page does not shift when Poppins arrives */
@font-face { font-family: "Poppins Fallback"; src: local("Arial"); size-adjust: 112.5%; ascent-override: 93%; descent-override: 31%; line-gap-override: 9%; }

:root {
  /* brand */
  --navy: #19265F;        /* "apital" in the vector logo */
  --navy-deep: #131C4A;   /* one tone step below navy, for surfaces on navy */
  --teal: #106E87;        /* manual: petrol teal */
  --logo-teal: #30738F;   /* the TC mark exactly as drawn in the logo file */
  --turq: #289EAC;        /* manual: turquoise */
  --turq-bright: #42C0C1; /* the logo subtitle colour; the light on navy */
  --ground: #F6F3EE;      /* manual: warm off-white */
  --stone: #EBE6DE;       /* one tone step below the ground */
  --sand: #B4A28A;        /* manual: warm sand */
  --grey: #8B8E90;        /* manual: grey */
  --ink: var(--navy);
  --ink-soft: #3B4372;

  /* type: five steps */
  --t-display: clamp(5.5rem, 14vw, 10.5rem);
  --t-h2: clamp(2.25rem, 4.5vw, 4.25rem);
  --t-statement: clamp(1.3rem, 2.15vw, 2.1rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;

  --bar-h: 76px;
  --m: clamp(20px, 2.8vw, 44px);          /* the one pair of page margins */
  --gap-section: clamp(96px, 12vw, 190px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--t-body)/1.55 "Poppins", "Poppins Fallback", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
h2 { font-size: var(--t-h2); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.statement { font-size: var(--t-statement); font-weight: 400; line-height: 1.3; letter-spacing: -0.015em; }
small { font-size: inherit; }
.defs { position: absolute; }
:focus-visible { outline: 3px solid var(--turq); outline-offset: 3px; }
.features :focus-visible, .soon :focus-visible, .foot :focus-visible, .soon-dialog :focus-visible, .crew :focus-visible, .vs--caps :focus-visible { outline-color: var(--turq-bright); }
::selection { background: var(--turq-bright); color: var(--navy); }

.skip { position: absolute; left: var(--m); top: -80px; z-index: 20; background: var(--navy); color: var(--ground); padding: 12px 18px; }
.skip:focus { top: 12px; }

/* ---------- avatar (colours inherit into every <use>) ---------- */
.avatar { display: block; overflow: visible; }
.avatar--light { --av-base: var(--teal); --av-ring: var(--turq); --av-hi: #7FD6DA; --av-face: var(--navy); --av-face-hi: #2E3E86; --av-eyes: var(--ground); --av-cap: var(--navy); --av-band: var(--turq-bright); --av-beacon: var(--turq); }
.avatar--dark  { --av-base: var(--teal); --av-ring: var(--turq-bright); --av-hi: #A4E6E6; --av-face: var(--navy-deep); --av-face-hi: #27367C; --av-eyes: var(--ground); --av-cap: var(--ground); --av-band: var(--turq-bright); --av-beacon: var(--turq-bright); }
.avatar--onteal { --av-base: #0A5165; }

/* One character from the logo's parts: the C is the rim of the head, the face fills it, the crane beam is the hat.
   It assembles (head lands, rim draws, face and eyes open, hat drops and settles, beacon lights), then idles.
   --av-play pauses it until it is on screen; --av-d delays it. Both inherit into every <use>. */
.avatar[data-assemble] { --av-play: paused; }
.avatar[data-assemble].is-in { --av-play: running; }
.av-base, .av-ring, .av-hi, .av-face, .av-face-hi, .av-hat, .av-eyes path, .av-beacon { animation-play-state: var(--av-play, running); }
.av-base { fill: var(--av-base); transform-box: fill-box; transform-origin: center; animation: av-pop .6s var(--ease) var(--av-d, 0s) both; }
.av-ring { stroke: var(--av-ring); animation: av-draw 1s var(--ease) calc(var(--av-d, 0s) + .2s) both; }
.av-face { fill: var(--av-face); transform-box: fill-box; transform-origin: center; animation: av-pop .55s var(--ease) calc(var(--av-d, 0s) + .5s) both; }
.av-hi { stroke: var(--av-hi); animation: av-fade .5s linear calc(var(--av-d, 0s) + 1.1s) both; }
.av-face-hi { stroke: var(--av-face-hi); animation: av-fade .5s linear calc(var(--av-d, 0s) + 1.1s) both; }
.av-eyes { fill: var(--av-eyes); transform: translate(var(--ex, 0px), var(--ey, 0px)); transition: transform .25s ease-out; }
.av-eyes path { transform-box: fill-box; transform-origin: 50% 60%; animation: av-eye .35s var(--ease) calc(var(--av-d, 0s) + .95s) both, blink 5.5s calc(var(--av-d, 0s) + 2.6s) infinite; }
.av-hat { transform-origin: 120px 76px; animation: av-hat .9s cubic-bezier(.3, 1.5, .5, 1) calc(var(--av-d, 0s) + .85s) both, hat-tip 9s var(--ease) calc(var(--av-d, 0s) + 4s) infinite; }
.av-cap { fill: var(--av-cap); }
.av-band { fill: var(--av-band); }
.av-shade { fill: var(--navy-deep); opacity: .34; }
.av-beacon { fill: var(--av-beacon); animation: av-fade .3s linear calc(var(--av-d, 0s) + 1.7s) both, beacon 2.8s ease-in-out calc(var(--av-d, 0s) + 2s) infinite; }
@keyframes av-draw { from { stroke-dasharray: 350; stroke-dashoffset: 350; } to { stroke-dasharray: 350; stroke-dashoffset: 0; } }
@keyframes av-pop { from { transform: scale(0); } }
@keyframes av-fade { from { opacity: 0; } }
@keyframes av-hat { from { opacity: 0; transform: translate(-60px, -46px) rotate(-18deg); } }
@keyframes av-eye { from { transform: scaleY(0); } }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.12); } }
@keyframes hat-tip { 0%, 80%, 100% { transform: rotate(0); } 86% { transform: rotate(-4deg) translateY(-3px); } 92% { transform: rotate(0); } }
@keyframes beacon { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- the CAPS wordmark: drawn in the logo's monoline geometry: its C ring, its slant in the A ---------- */
.wm { display: block; overflow: visible; --wm-ink: var(--navy); --wm-accent: var(--turq); }
.wm-ink { stroke: var(--wm-ink); }
.wm-bar { fill: var(--wm-accent); stroke: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wm-l, .wm-bar { animation-play-state: var(--wm-play, running); }
.js .wm-c { animation: wm-draw-c 1s var(--ease) calc(var(--wm-d, 0s) + 0s) both; }
.js .wm-a { animation: wm-draw 1s var(--ease) calc(var(--wm-d, 0s) + .15s) both; }
.js .wm-bar { animation: wm-bar .6s var(--ease) calc(var(--wm-d, 0s) + .8s) both; }
.js .wm-p1 { animation: wm-draw .6s var(--ease) calc(var(--wm-d, 0s) + .3s) both; }
.js .wm-p2 { animation: wm-draw .8s var(--ease) calc(var(--wm-d, 0s) + .55s) both; }
.js .wm-s { animation: wm-draw 1s var(--ease) calc(var(--wm-d, 0s) + .45s) both; }
@keyframes wm-draw { from { stroke-dasharray: 420; stroke-dashoffset: 420; } to { stroke-dasharray: 420; stroke-dashoffset: 0; } }
@keyframes wm-draw-c { from { stroke-dasharray: 403; stroke-dashoffset: 403; } to { stroke-dasharray: 403; stroke-dashoffset: 0; } }
@keyframes wm-bar { from { opacity: 0; transform: translateX(-30px); } }

/* ---------- logo lockup ---------- */
.lockup { display: block; overflow: visible; }
.lockup .lg-tc { fill: var(--logo-teal); }
.lockup .lg-ap { fill: var(--navy); }
.lockup .lg-sub { font-family: "Poppins", "Poppins Fallback", sans-serif; font-weight: 300; font-size: 32.6px; fill: var(--turq-bright); }
/* the lockup builds itself: the stem rises, the crane beam swings in and settles, the C turns into place */
.js .lockup .lg-stem { transform-box: fill-box; transform-origin: 50% 100%; animation: lk-stem .55s var(--ease) .15s both; }
.js .lockup .lg-beam { transform-box: fill-box; transform-origin: 28% 100%; animation: lk-beam .9s cubic-bezier(.3, 1.5, .5, 1) .4s both; }
.js .lockup .lg-c { transform-box: fill-box; transform-origin: center; animation: lk-c .8s var(--ease) .55s both; }
.js .lockup .lg-ap { animation: lk-ap .7s var(--ease) .75s both; }
.js .lockup .lg-sub { animation: lk-sub .9s var(--ease) 1.15s both; }
.js .lockup[data-watch]:not(.is-in) * { animation-play-state: paused; }
@keyframes lk-stem { from { transform: scaleY(0); } }
@keyframes lk-beam { from { opacity: 0; transform: translateX(-46px) rotate(-9deg); } }
@keyframes lk-c { from { opacity: 0; transform: rotate(-80deg) scale(.82); } }
@keyframes lk-ap { from { opacity: 0; transform: translateY(16px); } }
@keyframes lk-sub { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.lockup--neg .lg-tc, .lockup--neg .lg-ap, .lockup--neg .lg-sub { fill: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 3px;
  font: 500 1rem/1 "Poppins", "Poppins Fallback", sans-serif; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, transform .15s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn--primary { background: var(--navy); color: var(--ground); }
.btn--primary:hover { background: var(--teal); }
.btn--light { background: var(--turq-bright); color: var(--navy); }
.btn--light:hover { background: var(--ground); }
.btn--ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--ground); }
.btn--ghost-dark { color: var(--ground); box-shadow: inset 0 0 0 2px var(--ground); }
.btn--ghost-dark:hover { background: var(--ground); color: var(--navy); }
.btn--quiet { min-height: 44px; padding: 0 22px; background: var(--stone); color: var(--navy); }
.btn--quiet:hover { background: var(--navy); color: var(--ground); }

/* ---------- top bar: the maker's logo and the language switch, no menu ---------- */
.bar { height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--m); }
.bar-brand { display: block; text-decoration: none; }
.bar-lockup { width: clamp(124px, 11vw, 150px); }
.lang { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; background: var(--stone); border-radius: 4px; }
.lang::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 2px; background: var(--navy); transition: transform .35s var(--ease); }
.lang:has([data-lang="es"][aria-pressed="true"])::before { transform: translateX(100%); }
.lang[hidden] { display: none; }
.lang-btn { position: relative; min-width: 46px; min-height: 38px; border: 0; border-radius: 2px; background: transparent; color: var(--ink-soft); font: 500 var(--t-small)/1 "Poppins", "Poppins Fallback", sans-serif; letter-spacing: .02em; cursor: pointer; transition: background-color .2s, color .2s, transform .15s var(--ease); }
.lang-btn:hover { color: var(--navy); }
.lang-btn:active { transform: scale(.94); }
.lang-btn[aria-pressed="true"] { color: var(--ground); }

/* ---------- shared: every section is a centred column ---------- */
.sec-head { max-width: 46rem; margin: 0 auto clamp(44px, 5.5vw, 80px); text-align: center; }
.sec-head p { margin: 20px auto 0; max-width: 34em; text-wrap: balance; }
.tile > p, .steps p, .services p, .cell p, .facts p, h3 { text-wrap: balance; }

/* ---------- hero: one centred stack that fits the first screen (sizes follow the viewport height) ---------- */
.hero { position: relative; overflow: hidden; min-height: calc(100svh - var(--bar-h)); display: grid; place-items: center; padding: clamp(6px, 1.6svh, 20px) var(--m) clamp(40px, 7svh, 76px); }
.hero-copy { position: relative; z-index: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.intro { font-size: var(--t-small); font-weight: 400; color: #676D8E; letter-spacing: .02em; }
.ell i { font-style: normal; margin-left: .06em; }
.js .ell i { animation: av-fade .25s linear both; }
.js .ell i:nth-child(1) { animation-delay: .35s; }
.js .ell i:nth-child(2) { animation-delay: .5s; }
.js .ell i:nth-child(3) { animation-delay: .65s; }
.wordmark { margin-top: clamp(14px, 3svh, 30px); }
.wordmark .wm { width: min(76vw, 52svh, 560px); --wm-d: .55s; }
.hero-mark { position: relative; width: min(44vw, 26svh, 232px); margin-top: clamp(14px, 3.2svh, 34px); }
.hero-avatar { width: 100%; animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* behind the avatar: the C ring at giant scale, opening upwards to hold the wordmark, two far arcs, and a thin orbit with a satellite */
.hero-rings { position: absolute; z-index: -1; left: 50%; top: 58.3%; width: 667%; aspect-ratio: 1; translate: -50% -50%; overflow: visible; pointer-events: none; }
.rg { fill: none; stroke: var(--stone); stroke-width: 30; transform-origin: 0 0; }
.rg-mid { stroke-dasharray: 602.2 340.3; animation: rg-in-mid 2s var(--ease) .3s both, sway 14s ease-in-out 2.3s infinite; }
.rg-far { stroke-dasharray: 209 733.5; stroke-dashoffset: 104.5; animation: rg-in-far 2.4s var(--ease) .5s both, sway 18s ease-in-out 2.9s infinite; }
.rg-orbit { fill: none; stroke: var(--stone); stroke-width: 2.5; animation: av-fade 1s linear 2s both; }
.rg-sat { fill: var(--turq); transform-origin: 0 0; animation: av-fade .6s linear 2.2s both, spin 16s linear 2.2s infinite; }
@keyframes rg-in-mid { from { stroke-dasharray: 0 942.5; } to { stroke-dasharray: 602.2 340.3; } }
@keyframes rg-in-far { from { opacity: 0; transform: rotate(-24deg); } }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

.promise { margin-top: clamp(18px, 3.6svh, 40px); max-width: 24em; font-size: var(--t-statement); line-height: 1.25; letter-spacing: -0.015em; text-wrap: balance; }
.hero-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 12px; margin-top: clamp(18px, 3.4svh, 36px); }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.55); opacity: .55; } }

.js .hero-copy > * { animation: rise .9s var(--ease) both; }
.js .hero-copy > .wordmark, .js .hero-copy > .hero-mark { animation: none; }
.hero-avatar { --av-d: 1s; }
.js .hero-avatar { animation: float 7s ease-in-out 2.8s infinite; }
.js .hero-copy > .promise { animation-delay: .7s; }
.js .hero-copy > .hero-actions { animation-delay: .85s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* ---------- reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- why Caps is different ---------- */
.different { padding: clamp(56px, 8vw, 120px) var(--m) var(--gap-section); }
.different .statement { max-width: 26em; margin-top: 24px; }
.versus { display: grid; grid-template-columns: 5fr 6fr; gap: 8px; max-width: 1080px; margin: 0 auto; }
.vs { display: flex; flex-direction: column; padding: clamp(26px, 3.2vw, 46px) clamp(18px, 2.6vw, 40px); text-align: center; }
.vs ul { flex: 1; display: grid; grid-auto-rows: 1fr; gap: 6px; }
.vs--generic { background: var(--stone); color: var(--ink-soft); }
.vs--caps { background: var(--navy); color: var(--ground); }
.vs h3 { font-size: var(--t-statement); letter-spacing: -0.025em; margin: 14px 0 20px; }
.vs--generic h3 { color: var(--navy); }
.vs li { display: grid; place-items: center; padding: 14px 16px; border-radius: 2px; text-wrap: balance; }
.vs--generic li { background: #E2DCD2; }
.vs--caps li { background: var(--navy-deep); font-weight: 500; }
.vs-mark { height: 96px; display: flex; align-items: center; justify-content: center; gap: 9px; }
.vs-mark span { width: 14px; height: 14px; border-radius: 50%; background: var(--grey); animation: typing 1.4s ease-in-out infinite; }
.vs-mark span:nth-child(2) { animation-delay: .18s; }
.vs-mark span:nth-child(3) { animation-delay: .36s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-7px); opacity: 1; } }
.vs-avatar { width: 96px; margin: 0 auto; }
.js .vs--caps.is-in li { animation: frag-in .55s var(--ease) both; }
.js .vs--caps.is-in li:nth-child(1) { animation-delay: .5s; }
.js .vs--caps.is-in li:nth-child(2) { animation-delay: .65s; }
.js .vs--caps.is-in li:nth-child(3) { animation-delay: .8s; }
.js .vs--caps.is-in li:nth-child(4) { animation-delay: .95s; }

/* ---------- connected to your systems ---------- */
.connected { padding: var(--gap-section) var(--m) calc(var(--gap-section) * .5); }
.connected .statement { max-width: 27em; margin-top: 24px; }
.hub { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; max-width: 1200px; margin: 0 auto; }
.hub-core { grid-column: 3; grid-row: 1 / span 2; display: grid; justify-items: center; }
.hub-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hub-links path { fill: none; stroke: var(--turq); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: .1 8; vector-effect: non-scaling-stroke; animation: hub-flow 1.6s linear infinite; }
@keyframes hub-flow { to { stroke-dashoffset: -16.2; } }
.hub-avatar { position: relative; width: min(92%, 190px); }
.sys { position: relative; min-height: clamp(150px, 13vw, 184px); padding: 22px 14px; background: var(--stone); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.sys--9 { grid-column: 2 / span 3; min-height: 0; flex-direction: row; gap: 18px; text-align: left; padding: 22px 28px; }
.sys strong { display: block; font-size: 1.0625rem; font-weight: 600; line-height: 1.25; }
.sys small { display: block; margin-top: 3px; font-size: .875rem; color: var(--ink-soft); }
.ic { flex: none; width: 42px; height: 42px; fill: none; stroke: var(--navy); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ic-a { stroke: var(--turq); }
.js .sys.is-in .ic-a { animation: ic-draw .9s var(--ease) calc(var(--d, 0s) + .45s) both; }
@keyframes ic-draw { from { stroke-dasharray: 80; stroke-dashoffset: 80; } to { stroke-dasharray: 80; stroke-dashoffset: 0; } }
/* "Why Caps?": the one place the name is explained, built into the hub. Someone says "Hey, Cap." to the avatar,
   the tiles fall into formation around it, and the line sits on the plinth the whole group stands on. */
.hub-core { align-content: center; gap: 14px; }
.crew-hey { position: relative; z-index: 1; padding: 9px 16px; background: var(--turq-bright); color: var(--navy); border-radius: 4px; font-weight: 500; line-height: 1.3; }
.crew-hey::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -7px; border: 7px solid transparent; border-top-color: var(--turq-bright); border-bottom: 0; }
.js .crew-hey { transform-origin: 50% 100%; animation: sp-bubble .5s cubic-bezier(.3, 1.5, .5, 1) 1.3s both, sp-bob 5s ease-in-out 3s infinite; }
.js .hub-core:has(.hub-avatar:not(.is-in)) .crew-hey { animation-play-state: paused; }
.hub-note { max-width: 1200px; margin: 14px auto 0; font-size: var(--t-small); color: var(--ink-soft); text-align: center; text-wrap: balance; }
.crew { max-width: 1200px; margin: 20px auto 0; padding: clamp(28px, 3.6vw, 52px) clamp(20px, 4vw, 64px); background: var(--navy); color: var(--ground); text-align: center; }
.crew-q { margin-bottom: 10px; font-size: var(--t-small); font-weight: 500; color: var(--turq-bright); letter-spacing: .02em; }
.crew .statement { max-width: 24em; margin: 0 auto; text-wrap: balance; }
.connected:has(.crew.is-in) .hub-avatar { animation: salute 1.3s var(--ease) .5s; }
@keyframes salute { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-9deg) translateY(-4px); } 60% { transform: rotate(3deg); } }
.js .sys[data-reveal]:not(.is-in) { transform: translateY(26px) rotate(var(--tilt, 0deg)); }
.sys--1, .sys--6 { --tilt: -5deg; } .sys--2, .sys--7 { --tilt: 4deg; } .sys--3, .sys--8 { --tilt: -3deg; } .sys--4, .sys--5 { --tilt: 6deg; } .sys--9 { --tilt: -2deg; }

/* ---------- what Caps is ---------- */
.what { padding: calc(var(--gap-section) * .55) var(--m) var(--gap-section); }
.what .statement { max-width: 27em; margin-top: 24px; text-wrap: balance; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; max-width: 68rem; margin: 0 auto; text-align: center; }
.facts h3 { margin: 22px 0 6px; }
.facts p { color: var(--ink-soft); max-width: 19em; margin: 0 auto; }

/* spot illustrations: one per promise, drawn with the avatar's and the logo's parts */
.spot { display: block; width: min(100%, 250px); margin: 0 auto; overflow: visible; }
.sp-floor { fill: var(--stone); }
.sp-side rect:first-child { fill: #DCD5CA; }
.sp-lock { fill: var(--grey); }
.sp-shackle { fill: none; stroke: var(--grey); stroke-width: 4; }
.sp-room { fill: var(--navy); }
.sp-seal { fill: none; stroke: var(--turq); stroke-width: 3; }
.sp-mast, .sp-foot { fill: var(--teal); }
.sp-beam { fill: var(--navy); transform-origin: 46px 34px; }
.sp-cable { fill: none; stroke: var(--navy); stroke-width: 2.5; }
.sp-module { fill: var(--navy); }
.sp-block { fill: #CBBDA9; }
.sp-pulse { fill: none; stroke: var(--turq-bright); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.sp-ok { fill: var(--turq); }
.sp-tick { fill: none; stroke: var(--ground); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sp-win { fill: var(--navy); }
.sp-winbar { fill: var(--teal); }
.sp-dot { fill: var(--ground); }
.sp-msg-a { fill: var(--ground); }
.sp-msg-b { fill: var(--turq-bright); }
.sp-bars { fill: var(--turq-bright); }
.sp-link { fill: none; stroke: var(--turq); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: .1 5.5; }
/* their motion: runs once the pillar scrolls in, then keeps a quiet loop */
.sp-seal, .sp-side, .sp-load, .sp-ok, .sp-ch, .sp-bars rect, .sp-shackle { transform-box: fill-box; transform-origin: center; }
.js .facts li:not(.is-in) .spot * { animation-play-state: paused; }
.js .facts li:not(.is-in) .spot { --av-play: paused; }
.js .sp-seal { animation: sp-draw 1.1s var(--ease) .9s both; }
.js .sp-left { animation: sp-left .8s var(--ease) .3s both; }
.js .sp-right { animation: sp-right .8s var(--ease) .3s both; }
.js .sp-shackle { transform-origin: 50% 100%; animation: sp-shackle .4s var(--ease) 1.3s both; }
.spot--alone { --av-d: .5s; }
.js .sp-load { animation: sp-lower 1.3s cubic-bezier(.3, 1.2, .5, 1) .5s both; }
.js .sp-beam { animation: sp-beam 6s ease-in-out 2s infinite; }
.js .sp-pulse { animation: sp-pulse 2.6s linear 1.9s infinite both; }
.js .sp-ok { animation: av-pop .5s cubic-bezier(.3, 1.6, .5, 1) 1.8s both; }
.js .sp-tick { animation: av-fade .3s linear 2.1s both; }
.spot--where { --av-d: .2s; }
.js .sp-ch1 { animation: sp-bubble .6s cubic-bezier(.3, 1.5, .5, 1) 1s both, sp-bob 5s ease-in-out 2.2s infinite; }
.js .sp-ch2 { animation: sp-bubble .6s cubic-bezier(.3, 1.5, .5, 1) 1.25s both; }
.js .sp-ch3 { animation: sp-bubble .6s cubic-bezier(.3, 1.5, .5, 1) 1.5s both, sp-bob 5s ease-in-out 3.6s infinite; }
.js .sp-link { animation: av-fade .4s linear 1.7s both, sp-flow 1.2s linear 1.7s infinite; }
.js .sp-bars rect { animation: wave 1.3s ease-in-out infinite; }
.js .sp-bars rect:nth-child(2n) { animation-delay: -.45s; }
.js .sp-bars rect:nth-child(3n) { animation-delay: -.9s; }
@keyframes sp-flow { to { stroke-dashoffset: -11.2; } }
@keyframes sp-draw { from { stroke-dasharray: 390; stroke-dashoffset: 390; } to { stroke-dasharray: 390; stroke-dashoffset: 0; } }
@keyframes sp-left { from { opacity: 0; transform: translateX(26px); } }
@keyframes sp-right { from { opacity: 0; transform: translateX(-26px); } }
@keyframes sp-shackle { from { transform: translateY(-5px); } }
@keyframes sp-lower { from { transform: translateY(-34px); } }
@keyframes sp-beam { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-1.8deg); } }
@keyframes sp-pulse { 0% { stroke-dasharray: 0 70; } 45%, 100% { stroke-dasharray: 70 0; } }
@keyframes sp-bubble { from { opacity: 0; transform: scale(.4); } }
@keyframes sp-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }

/* ---------- features ---------- */
.features { background: var(--navy); color: var(--ground); padding: var(--gap-section) var(--m); }
.features .sec-head p { color: #D8DCEC; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 12px; max-width: 1360px; margin: 0 auto; }
.tile { text-align: center; }
.tile--wide { grid-column: span 2; }
.tile-stage { height: clamp(300px, 27vw, 400px); display: grid; place-items: center; padding: 28px; overflow: hidden; margin-bottom: 20px; text-align: left; }
.stage--deep { background: var(--navy-deep); }
.stage--teal { background: var(--teal); }
.stage--turq { background: var(--turq); }
.tile h3 { margin-bottom: 6px; }
.tile > p { color: #D8DCEC; max-width: 30em; margin: 0 auto; }

/* interface fragments */
.ui { width: 100%; max-width: 440px; color: var(--navy); font-size: 15px; line-height: 1.4; }
.ui-title { font-weight: 600; font-size: 13px; margin-bottom: 10px; }
.msg { width: fit-content; max-width: 84%; padding: 10px 14px; margin-top: 8px; border-radius: 4px; }
.msg--me { margin-left: auto; background: var(--turq-bright); }
.msg--caps { background: var(--ground); }
.msg--file { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.msg--file small { font-weight: 400; opacity: .75; }
.file-ico { width: 14px; height: 18px; background: var(--navy); clip-path: polygon(0 0, 65% 0, 100% 28%, 100% 100%, 0 100%); }
.msg--voice { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.wave { display: flex; align-items: center; gap: 3px; height: 22px; }
.wave i { width: 3px; border-radius: 2px; background: var(--navy); height: 40%; animation: wave 1.3s ease-in-out infinite; }
.wave i:nth-child(3n) { height: 90%; animation-delay: -.4s; }
.wave i:nth-child(3n+1) { height: 60%; animation-delay: -.8s; }
.wave i:nth-child(4n) { height: 30%; animation-delay: -.2s; }
@keyframes wave { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.45); } }
.ui-chat { max-width: 660px; font-size: 17px; }

.ui-call { text-align: center; color: var(--ground); max-width: 300px; }
.call-avatar { width: 136px; margin: 0 auto; }
.call-time { margin-top: 10px; font-weight: 500; font-size: 13px; font-variant-numeric: tabular-nums; }
.caption { margin-top: 14px; background: var(--navy-deep); padding: 12px 16px; border-radius: 4px; text-align: left; }

.ui-list, .ui-phone { background: var(--ground); padding: 20px 22px; border-radius: 4px; max-width: 360px; }
.ui-list li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 12px; margin-top: 6px; background: var(--stone); border-radius: 2px; }
.ui-list li span { font-weight: 500; }
.ui-list li small { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.ui-phone .msg--caps { background: var(--stone); }
.ui-list small.ok { display: inline-flex; align-items: center; gap: 7px; color: var(--teal); font-weight: 500; }
.ui-list small.ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--turq); animation: pulse 2.4s ease-in-out infinite; }
.tog { flex: none; width: 34px; height: 20px; border-radius: 10px; background: var(--grey); position: relative; }
.tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--ground); }
.tog--on { background: var(--teal); }
.tog--on::after { left: 17px; }
.ui-work { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 720px; }
.ui-work .ui-list { max-width: none; }
.ui-work li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* fragments play when their tile arrives */
.js .tile.is-in .msg, .js .tile.is-in .ui-list li, .js .tile.is-in .ui-title, .js .tile.is-in .call-time { animation: frag-in .55s var(--ease) both; animation-delay: calc(.35s + var(--n, 0) * .16s); }
.js .tile.is-in .msg--caps { animation-name: frag-in-left; }
.js .tile.is-in .caption { animation: caption 1.6s steps(28) 1.5s both; }
.js .tile.is-in .tog--on::after { animation: tog 0.5s var(--ease) 1.3s both; }
.js .tile.is-in .tog--on { animation: tog-bg .5s linear 1.3s both; }
.call-time::before { animation: pulse 2.4s ease-in-out infinite; }
.call-time::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--turq-bright); }
@keyframes frag-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes frag-in-left { from { opacity: 0; transform: translateX(-18px); } }
@keyframes caption { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes tog { from { transform: translateX(-14px); } }
@keyframes tog-bg { from { background: var(--grey); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js .tile-stage .ui { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes drift { from { translate: 0 22px; } to { translate: 0 -22px; } }
  }
}

/* ---------- how it works ---------- */
.how { padding: var(--gap-section) var(--m) calc(var(--gap-section) * .55); }
.how .sec-head { margin-bottom: clamp(36px, 4.5vw, 64px); }
.how .sec-head p { font-size: var(--t-statement); line-height: 1.3; letter-spacing: -0.015em; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; max-width: 72rem; margin: 0 auto; text-align: center; }
.steps li { position: relative; container-type: inline-size; }
.steps .spot { width: min(100%, 270px); }
.step-n { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; margin: 22px auto 14px; border-radius: 50%; background: var(--navy); color: var(--ground); font-weight: 600; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
/* the path from one step to the next */
.steps li + li .step-n::before { content: ""; position: absolute; top: 50%; right: calc(100% + 12px); width: calc(100cqw - 40px); height: 3px; margin-top: -1.5px; background: radial-gradient(circle, var(--turq) 1.4px, transparent 1.6px) 0 0 / 9px 3px repeat-x; }
.steps h3 { min-height: 2.5em; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; padding: 0 8px; }
.steps p { color: var(--ink-soft); max-width: 24em; margin: 0 auto; padding: 0 8px; }
.sp-leg { fill: var(--grey); }
.sp-node { fill: var(--ground); }
.sp-node--on { fill: var(--turq-bright); }
.sp-arrow { fill: none; stroke: var(--turq-bright); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: .1 5.5; }
.sp-note--a { fill: #CBBDA9; }
.sp-note--b { fill: var(--turq-bright); }
.sp-note--c { fill: var(--ground); }
.sp-tile { fill: #DCD5CA; }
.sp-glyph { fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sp-person { fill: var(--navy); }
.sp-saydot { fill: var(--navy); }
.sp-calring { fill: none; stroke: var(--navy); stroke-width: 4; stroke-linecap: round; }
.sp-day { fill: var(--grey); }
.sp-note, .sp-node, .sp-tiles, .sp-say, .sp-person, .sp-cal { transform-box: fill-box; transform-origin: center; }
.js .steps li:not(.is-in) .spot * { animation-play-state: paused; }
.js .steps li:not(.is-in) .spot { --av-play: paused; }
.js .steps li .step-n::before { animation: path-in .8s var(--ease) 1.1s both, path-flow 1.2s linear infinite; transform-origin: 0 50%; }
@keyframes path-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes path-flow { to { background-position: 9px 0; } }
.js .steps .step-n { animation: none; }
.js .steps li.is-in .step-n { animation: av-pop .5s cubic-bezier(.3, 1.6, .5, 1) calc(var(--d, 0s) + .5s) both; }
.js .sp-node { animation: sp-bubble .5s cubic-bezier(.3, 1.5, .5, 1) both; }
.js .sp-node:nth-of-type(3) { animation-delay: .5s; }
.js .sp-node:nth-of-type(4) { animation-delay: .8s; }
.js .sp-node:nth-of-type(5) { animation-delay: 1.1s; }
.js .sp-arrow { animation: av-fade .4s linear 1.2s both, sp-flow 1.2s linear 1.2s infinite; }
.js .sp-note--a { animation: sp-note .7s cubic-bezier(.3, 1.4, .5, 1) 1.4s both; }
.js .sp-note--b { animation: sp-note .7s cubic-bezier(.3, 1.4, .5, 1) 1.6s both; }
.js .sp-note--c { animation: sp-note .7s cubic-bezier(.3, 1.4, .5, 1) 1.8s both; }
@keyframes sp-note { from { opacity: 0; transform: translate(10px, -22px) rotate(24deg); } }
.spot--study { --av-d: .2s; }
.spot--build { --av-d: 1.3s; }
.js .sp-tiles { animation: sp-bubble .6s cubic-bezier(.3, 1.5, .5, 1) 1.2s both; }
.js .spot--build .sp-link { animation: av-fade .4s linear 1.7s both, sp-flow 1.2s linear 1.7s infinite; }
.spot--grow { --av-d: .2s; }
.js .sp-person { transform-origin: 50% 100%; animation: sp-bubble .6s cubic-bezier(.3, 1.4, .5, 1) .7s both; }
.js .sp-say { transform-origin: 20% 100%; animation: sp-bubble .5s cubic-bezier(.3, 1.5, .5, 1) 1.2s both, sp-bob 5s ease-in-out 2.4s infinite; }
.js .sp-saydot { animation: typing 1.4s ease-in-out 1.6s infinite; }
.js .sp-saydot:nth-of-type(2) { animation-delay: 1.78s; }
.js .sp-saydot:nth-of-type(3) { animation-delay: 1.96s; }
.js .sp-cal { animation: sp-bubble .6s cubic-bezier(.3, 1.5, .5, 1) 1.1s both; }
.js .spot--grow .sp-ok { animation-delay: 1.6s; }
.js .spot--grow .sp-tick { animation-delay: 1.85s; }

/* ---------- tailored to you ---------- */
.tailored { padding: 0 clamp(10px, 1.4vw, 20px); }
.tailored-panel { position: relative; overflow: hidden; background: var(--teal); color: #fff; text-align: center; padding: clamp(56px, 7vw, 110px) calc(var(--m) - clamp(10px, 1.4vw, 20px)) 0; }
.tailored-lead .statement { margin: 24px auto 0; max-width: 25em; text-wrap: balance; }
.fit { margin: clamp(36px, 4vw, 60px) auto 0; max-width: 620px; }
.fit-label { font-weight: 500; margin-bottom: 12px; }
.fit-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.fit-tab { min-height: 46px; padding: 0 20px; border: 0; border-radius: 3px; background: var(--navy); color: #fff; font: 500 var(--t-small)/1 "Poppins", "Poppins Fallback", sans-serif; cursor: pointer; transition: background-color .2s, color .2s, transform .15s var(--ease); }
.fit-tab:hover { background: var(--navy-deep); }
.fit-tab:active { transform: scale(.96); }
.fit-tab[aria-selected="true"] { background: var(--ground); color: var(--navy); }
.fit-tab:focus-visible, .fit-panel:focus-visible { outline-color: #fff; }
.fit-panel { margin-top: 12px; background: var(--ground); color: var(--navy); padding: 14px; border-radius: 4px; font-size: 15px; text-align: left; }
.fit-panel li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 14px; background: var(--stone); border-radius: 2px; }
.fit-panel li + li { margin-top: 6px; }
.fit-panel span { font-weight: 500; }
.fit-panel small { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.js .fit-panel:not([hidden]) li { animation: rise .5s var(--ease) both; }
.js .fit-panel li:nth-child(2) { animation-delay: .07s; }
.js .fit-panel li:nth-child(3) { animation-delay: .14s; }
.fit-note { margin-top: 12px; font-size: var(--t-small); color: #E3F1F4; }
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 28px; max-width: 1280px; margin: clamp(56px, 6vw, 88px) auto 0; }
.services h3 { margin-bottom: 6px; text-wrap: balance; }
.services p { color: #E9F4F6; max-width: 22em; margin: 0 auto; }
.tv { display: block; width: 150px; margin: 0 auto 20px; overflow: visible; }
.tv-box { fill: var(--ground); }
.tv-on { fill: var(--turq-bright); }
.tv-line { fill: none; stroke: var(--ground); stroke-width: 3; stroke-linecap: round; stroke-dasharray: .1 7; }
.tv-check { fill: none; stroke: var(--navy); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.tv-slot { fill: none; stroke: var(--teal); stroke-width: 6; stroke-linecap: round; }
.tv-prong { fill: none; stroke: var(--turq-bright); stroke-width: 6; stroke-linecap: round; }
.tv-head { fill: var(--navy); }
.tv-head.tv-on { fill: var(--turq-bright); }
.tv-band { fill: var(--navy); }
.tv-ring { fill: none; stroke: var(--ground); stroke-width: 4; stroke-linecap: round; }
.tv-days { fill: #D9D2C7; }
.tv-today { fill: var(--turq); transform-box: fill-box; transform-origin: center; }
.tv-people, .tv-plug { transform-box: fill-box; transform-origin: center; }
.js .services li:not(.is-in) .tv * { animation-play-state: paused; }
.js .services li:not(.is-in) .tv { --av-play: paused; }
.tv--3 { --av-d: .3s; }
.js .tv-line { animation: sp-flow 1.2s linear infinite; }
.js .tv-check { animation: ic-draw .6s var(--ease) .7s both; }
.js .tv-plug { animation: tv-plug 1s cubic-bezier(.3, 1.3, .5, 1) .4s both; }
.js .tv-people { animation: rise .7s var(--ease) .8s both; }
.js .tv-today { animation: av-pop .5s cubic-bezier(.3, 1.6, .5, 1) .6s both, tv-beat 2.6s ease-in-out 1.4s infinite; }
@keyframes tv-plug { from { transform: translateX(16px); } to { transform: translateX(-6px); } }
@keyframes tv-beat { 0%, 100% { scale: 1; } 50% { scale: 1.22; } }
.tailored-avatar { width: clamp(210px, 21vw, 300px); aspect-ratio: 1 / .8; overflow: hidden; margin: clamp(48px, 5vw, 72px) auto 0; }

/* ---------- private by design ---------- */
.privacy { padding: calc(var(--gap-section) * .55) var(--m) var(--gap-section); }
.privacy .sec-head p { font-size: var(--t-statement); line-height: 1.3; letter-spacing: -0.015em; max-width: 22em; text-wrap: balance; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 1200px; margin: 0 auto; text-align: center; }
.cell { min-height: clamp(190px, 16vw, 240px); padding: clamp(22px, 2.4vw, 36px); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; }
.cell h3 { font-size: var(--t-statement); letter-spacing: -0.025em; line-height: 1.1; }
.cell p { max-width: 20em; }
.cell--sand { background: #CBBDA9; }
.cell--stone { background: var(--stone); }
.cell--navy { background: var(--navy); color: var(--ground); }

/* ---------- coming soon ---------- */
.soon { overflow: hidden; background: var(--navy-deep); color: var(--ground); padding: clamp(96px, 12vw, 180px) var(--m) 0; text-align: center; }
.soon h2 { font-size: clamp(2.6rem, 6.6vw, 6.5rem); line-height: .98; }
.soon .statement { margin: 24px 0 8px; color: #D8DCEC; }
.soon-avatar { width: min(78vw, 520px); aspect-ratio: 1 / .8; overflow: hidden; margin: clamp(56px, 7vw, 100px) auto 0; }

/* ---------- footer ---------- */
.foot { background: var(--navy); color: var(--ground); padding: clamp(64px, 8vw, 120px) var(--m) 36px; text-align: center; }
.foot-lockup { width: min(78vw, 460px); margin: 0 auto; }
.foot-row { margin-top: clamp(40px, 5vw, 72px); font-size: var(--t-small); }
.foot-note { color: #D8DCEC; }
.foot-copy { margin-top: 6px; }

/* ---------- dialog ---------- */
.soon-dialog { width: min(460px, calc(100vw - 32px)); padding: 40px 36px 36px; border: 0; border-radius: 4px; background: var(--navy); color: var(--ground); box-shadow: 0 30px 80px rgba(10, 14, 40, .5); }
.soon-dialog::backdrop { background: rgba(19, 28, 74, .62); }
.soon-dialog { text-align: center; }
.soon-dialog .avatar { width: 120px; margin: 0 auto; }
.soon-dialog h2 { font-size: 2rem; margin-top: 12px; letter-spacing: -0.03em; }
.soon-dialog p { margin: 12px 0 28px; color: #D8DCEC; }
.soon-dialog[open] { animation: dialog-in .35s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }


/* ---------- application form (switched on with LEADS_FORM_ENABLED in main.js) ---------- */
.apply { width: min(680px, calc(100vw - 24px)); max-height: min(860px, calc(100dvh - 24px)); padding: 0; border: 0; border-radius: 4px; background: var(--ground); color: var(--navy); box-shadow: 0 30px 80px rgba(10, 14, 40, .5); overflow: hidden; }
.apply::backdrop { background: rgba(19, 28, 74, .62); }
.apply[open] { animation: dialog-in .35s var(--ease); }
.apply form { display: flex; flex-direction: column; max-height: inherit; }
.ap-head { display: flex; align-items: center; gap: 12px; padding: 18px 24px 0; }
.ap-head .avatar { width: 46px; flex: none; }
.ap-head h2 { flex: 1; font-size: 1.5rem; letter-spacing: -0.025em; line-height: 1.1; }
.ap-head h2:focus-visible { outline: none; }
.ap-x { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 3px; background: transparent; cursor: pointer; transition: background-color .2s; }
.ap-x:hover { background: var(--stone); }
.ap-x svg { width: 20px; height: 20px; fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; }
.ap-progress { padding: 14px 24px 0; }
.ap-progress[hidden] { display: none; }
.ap-step { font-size: var(--t-small); font-weight: 500; color: var(--teal); }
.ap-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 8px; }
.ap-bar li { height: 5px; background: var(--stone); position: relative; overflow: hidden; }
.ap-bar li::after { content: ""; position: absolute; inset: 0; background: var(--turq); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
.ap-bar li.is-done::after, .ap-bar li.is-now::after { transform: none; }
.ap-bar li.is-done::after { background: var(--navy); }
.ap-body { flex: 1; overflow-y: auto; padding: 22px 24px 8px; overscroll-behavior: contain; }
.ap-panel { border: 0; margin: 0; padding: 0; min-width: 0; }
.ap-panel[hidden] { display: none; }
.ap-panel:not([hidden]) { animation: panel-in .4s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateX(18px); } }
.ap-panel > legend, .ap-panel > h3 { padding: 0; margin-bottom: 18px; font-size: var(--t-statement); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.ap-panel > h3:focus-visible { outline: none; }
.field { margin-bottom: 18px; min-width: 0; }
.field[hidden] { display: none; }
.field label, .phone > legend, .radios > legend, .checks > legend { display: block; padding: 0; margin-bottom: 6px; font-size: var(--t-small); font-weight: 500; }
.field label small, .phone legend small { font-weight: 400; color: var(--ink-soft); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #B3B7C6; border-radius: 3px; background: #fff; color: var(--navy);
  font: 400 1rem/1.4 "Poppins", "Poppins Fallback", sans-serif; transition: border-color .2s; }
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2319265F' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 38px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--navy); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--turq); outline-offset: 1px; border-color: var(--navy); }
.field [aria-invalid="true"] { border-color: #A8281C; }
.hint { margin-top: 6px; font-size: .875rem; color: var(--ink-soft); }
.err { margin-top: 6px; font-size: .875rem; font-weight: 500; color: #A8281C; animation: rise .3s var(--ease); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.checks, .phone, .radios { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; background: var(--stone); border-radius: 3px; font-size: var(--t-small); font-weight: 500; cursor: pointer; transition: background-color .2s; }
.check:hover { background: #E2DCD2; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy); }
.check:has(input:checked) { background: #D5EEF0; }
.check:has(input:focus-visible) { outline: 3px solid var(--turq); outline-offset: 1px; }
.radios { display: flex; flex-wrap: wrap; gap: 6px; }
.radios > legend { width: 100%; float: left; }
.radios .check { flex: 1 1 140px; }
.phone-row { display: grid; grid-template-columns: 120px 1fr; gap: 0 10px; }
.phone-row .field { margin-bottom: 0; }
.phone-row label { font-weight: 400; color: var(--ink-soft); font-size: .875rem; }
.field--consent .check { font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.review { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 2px; margin: 0; }
.review dt, .review dd { margin: 0; padding: 11px 14px; background: var(--stone); font-size: var(--t-small); overflow-wrap: anywhere; }
.review dt { font-weight: 500; color: var(--ink-soft); }
.ap-result { text-align: center; padding: 12px 0 20px; }
.ap-result .avatar { width: 132px; margin: 0 auto 8px; }
.ap-result h3 { margin-bottom: 10px; }
.ap-result p { max-width: 26em; margin: 0 auto; color: var(--ink-soft); }
.ap-result .ap-demo { margin-top: 16px; padding: 10px 14px; background: #D5EEF0; color: var(--navy); font-size: .875rem; font-weight: 500; }
.ap-demo[hidden] { display: none; }
.ap-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 24px 20px; background: var(--ground); }
.ap-req { margin-right: auto; font-size: .875rem; color: var(--ink-soft); }
.ap-req[hidden] { display: none; }
.ap-foot .btn { min-height: 48px; }
.ap-foot .btn[hidden] { display: none; }
.ap-foot .btn:disabled { opacity: .6; cursor: progress; }

/* ---------- tablet ---------- */
@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--wide, .tile:last-child { grid-column: span 2; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 44rem; }
  .hub { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hub-core { grid-column: 1 / -1; grid-row: auto; padding-bottom: 8px; }
  .hub-links { display: none; }
  .hub-avatar { width: 150px; }
  .sys--9 { grid-column: auto; flex-direction: column; text-align: center; gap: 12px; padding: 22px 14px; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  /* a metric-matched fallback so the page does not shift when Poppins arrives */
@font-face { font-family: "Poppins Fallback"; src: local("Arial"); size-adjust: 112.5%; ascent-override: 93%; descent-override: 31%; line-gap-override: 9%; }

:root { --bar-h: 66px; }
  .rg-far, .rg-mid { display: none; }
  .hero { padding-bottom: clamp(28px, 5svh, 56px); }
  .field-row, .check-grid { grid-template-columns: minmax(0, 1fr); }
  .ap-req { display: none; }
  .ap-head h2 { font-size: 1.25rem; }
  .ap-head, .ap-progress, .ap-body { padding-left: 18px; padding-right: 18px; }
  .ap-foot { padding: 12px 18px 16px; }
  .ap-foot .btn { flex: 1; padding: 0 16px; }
  .review { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .review dt { padding-bottom: 0; }
  .review dd { margin-bottom: 2px; padding-top: 2px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .tiles { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .tile--wide, .tile:last-child { grid-column: auto; }
  .tile-stage { height: auto; min-height: 280px; padding: 22px 16px; }
  .ui-work { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .steps li + li .step-n::before { display: none; }
  .steps h3 { min-height: 0; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .versus { grid-template-columns: minmax(0, 1fr); }
  .hub { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .sys { min-height: 132px; padding: 18px 10px; }
  .sys--9 { grid-column: 1 / -1; }
  .fit-panel li { flex-direction: column; align-items: flex-start; gap: 2px; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .cell { min-height: 170px; padding: 18px 14px; }
  .cell p { font-size: var(--t-small); }
}

/* ---------- phones only (≤ 767px). Nothing above 767px is affected by this block. ---------- */
@media (max-width: 767px) {
  /* type and rhythm sized for a phone */
  :root { --t-h2: 1.875rem; --t-statement: 1.125rem; --t-body: 1rem; --gap-section: 68px; --m: 20px; }
  h2 { line-height: 1.06; }
  .sec-head { margin-bottom: 30px; }
  .sec-head p, .different .statement, .connected .statement, .what .statement, .tailored-lead .statement { margin-top: 14px; }
  .statement { line-height: 1.35; }
  .btn { min-height: 50px; padding: 0 16px; }
  .hero-actions { flex-wrap: nowrap; gap: 8px; }
  .hero-actions .btn { white-space: nowrap; }
  .bar-brand { padding: 4px 0; }
  .btn:hover { transform: none; }
  a, button, label { -webkit-tap-highlight-color: transparent; }
  .btn, .lang-btn, .fit-tab { touch-action: manipulation; }
  .btn--primary:hover { background: var(--navy); }
  .btn:active { transform: scale(.97); }
  .lang-btn { min-width: 48px; min-height: 44px; }
  .hero { padding-bottom: calc(clamp(28px, 5svh, 56px) + env(safe-area-inset-bottom, 0px)); }

  /* more than an AI chat: each generic line sits directly on the Caps line that answers it */
  .different { padding-top: 44px; }
  .versus { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 6px; }
  .vs, .vs ul { display: contents; }
  .vs-mark, .vs-avatar { display: none; }
  .vs h3 { margin: 0 0 4px; padding: 12px 8px; display: grid; place-items: center; border-radius: 2px; font-size: .9375rem; letter-spacing: -0.01em; line-height: 1.2; }
  .vs--generic h3 { order: 1; background: var(--stone); }
  .vs--caps h3 { order: 2; background: var(--navy); color: var(--ground); }
  .vs li { grid-column: 1 / -1; padding: 11px 14px; font-size: .9375rem; line-height: 1.35; }
  .vs--generic li { margin-top: 8px; border-radius: 2px 2px 0 0; background: var(--stone); }
  .vs--caps li { border-radius: 0 0 2px 2px; background: var(--navy); }
  .vs--generic li:nth-child(1) { order: 10; } .vs--caps li:nth-child(1) { order: 11; }
  .vs--generic li:nth-child(2) { order: 20; } .vs--caps li:nth-child(2) { order: 21; }
  .vs--generic li:nth-child(3) { order: 30; } .vs--caps li:nth-child(3) { order: 31; }
  .vs--generic li:nth-child(4) { order: 40; } .vs--caps li:nth-child(4) { order: 41; }
  .js .vs li { animation: none; }

  /* tailored to you: one segmented control, three equal parts */
  .tailored-panel { padding-top: 48px; }
  .fit { margin-top: 28px; }
  .fit-label { font-size: .9375rem; text-wrap: balance; }
  .fit-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 3px; background: var(--navy); border-radius: 4px; }
  .fit-tab { min-height: 48px; padding: 6px 4px; border-radius: 2px; font-size: .8125rem; line-height: 1.2; text-wrap: balance; }
  .fit-panel { margin-top: 8px; padding: 8px; font-size: .875rem; }
  .fit-panel li { padding: 10px 12px; }
  .fit-note { font-size: .8125rem; }
  .services { gap: 22px; margin-top: 40px; text-align: left; }
  .services li { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 16px; align-items: center; }
  .services .tv { grid-row: 1 / span 2; width: 84px; margin: 0; }
  .services h3 { align-self: end; margin-bottom: 4px; font-size: 1.0625rem; }
  .services p { align-self: start; margin: 0; max-width: none; font-size: .9375rem; line-height: 1.45; text-wrap: pretty; }
  .tailored-avatar { width: 180px; margin-top: 40px; }

  /* connected to your systems: the crew in one screen, small tiles in three columns under the avatar */
  .hub { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .hub-core { gap: 10px; padding-bottom: 10px; }
  .hub-avatar { width: 104px; }
  .crew-hey { padding: 7px 13px; font-size: .9375rem; }
  .sys { min-height: 0; padding: 14px 4px 12px; gap: 7px; }
  .sys .ic { width: 30px; height: 30px; }
  .sys strong { font-size: .8125rem; line-height: 1.2; }
  .sys small { display: none; }
  .sys--9 { grid-column: auto; flex-direction: column; gap: 7px; padding: 14px 4px 12px; text-align: center; }
  .hub-note { margin-top: 10px; font-size: .8125rem; }
  .crew { margin-top: 14px; padding: 22px 18px 24px; }
  .crew-q { margin-bottom: 6px; }

  /* pillars, capabilities, steps, privacy */
  .what { padding-top: 40px; }
  .facts { gap: 34px; }
  .spot { width: min(100%, 210px); }
  .facts h3 { margin-top: 14px; }
  .tiles { gap: 30px; }
  .tile-stage { min-height: 0; padding: 18px 14px; margin-bottom: 14px; }
  .ui { font-size: 14px; }
  .ui-chat { font-size: 15px; }
  .ui-list, .ui-phone { padding: 14px; }
  .call-avatar { width: 104px; }
  .how .sec-head { margin-bottom: 28px; }
  .steps { gap: 38px; }
  .steps .spot { width: min(100%, 220px); }
  .step-n { width: 34px; height: 34px; margin: 14px auto 8px; font-size: .9375rem; }
  .board { gap: 5px; }
  .cell { min-height: 0; padding: 16px 12px 18px; gap: 6px; justify-content: flex-start; }
  .cell h3 { font-size: 1.0625rem; letter-spacing: -0.015em; line-height: 1.2; }
  .cell p { font-size: .875rem; line-height: 1.45; }

  /* motion on phones: shorter travel, and the purely decorative loops stand still */
  .js [data-reveal] { transform: translateY(14px); transition-duration: .5s; }
  .js .sys[data-reveal]:not(.is-in) { transform: translateY(14px) rotate(calc(var(--tilt, 0deg) * .5)); }
  .js .sp-link, .js .spot--build .sp-link { animation: av-fade .4s linear 1.4s both; }
  .js .tv-line { animation: none; }
  .js .sp-arrow { animation: av-fade .4s linear 1.2s both; }
  .js .sp-beam { animation: none; }
  .hero-avatar, .js .hero-avatar { animation: none; }

  /* closing, footer, dialogs: keep clear of the home indicator */
  .soon { padding-top: 68px; }
  .soon h2 { font-size: 2.25rem; }
  .soon .statement { margin-top: 14px; }
  .soon-avatar { width: 240px; margin-top: 40px; }
  .foot { padding: 48px var(--m) calc(26px + env(safe-area-inset-bottom, 0px)); }
  .foot-lockup { width: 210px; }
  .foot-row { margin-top: 26px; font-size: .8125rem; }
  .soon-dialog { padding: 30px 22px calc(26px + env(safe-area-inset-bottom, 0px)); }
  .soon-dialog h2 { font-size: 1.5rem; }
  .soon-dialog .btn { min-width: 160px; }
  .ap-foot { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}

/* the narrowest phones */
@media (max-width: 360px) {
  .hero-actions .btn { padding: 0 11px; font-size: .875rem; }
  .sys strong { font-size: .75rem; }
  .fit-tab { font-size: .75rem; }
}

/* phones held sideways: keep content out from under the notch */
@media (orientation: landscape) and (max-height: 500px) {
  body { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
