/* Accountant site template — glass / brand-tinted dark theme.
   TEMPLATE-OWNED: do not edit per firm. Brand colours come from data.md
   (written into --primary, --accent, --highlight and --bg by the build). */

:root {
  --primary: #7c6cff;
  --accent: #67e8f9;
  --highlight: #5eead4;
  --bg: #080822;

  --bg-2: color-mix(in oklab, var(--bg), var(--primary) 9%);
  --surface: color-mix(in oklab, var(--bg), var(--primary) 22%);
  --panel: color-mix(in oklab, var(--bg), var(--primary) 30%);
  --ink: #eef0ff;
  --tint: color-mix(in oklab, #ffffff 84%, var(--primary));
  --muted: color-mix(in oklab, var(--tint) 70%, var(--bg));
  --faint: color-mix(in oklab, var(--tint) 46%, var(--bg));
  --purple: color-mix(in oklab, var(--primary), #ffffff 30%);
  --p-12: color-mix(in srgb, var(--primary) 12%, transparent);
  --p-22: color-mix(in srgb, var(--primary) 22%, transparent);
  --p-35: color-mix(in srgb, var(--primary) 35%, transparent);
  --p-55: color-mix(in srgb, var(--primary) 55%, transparent);
  --p-80: color-mix(in srgb, var(--primary) 80%, transparent);
  --a-15: color-mix(in srgb, var(--accent) 15%, transparent);
  --a-50: color-mix(in srgb, var(--accent) 50%, transparent);
  --glass: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.24);
  --grad: linear-gradient(120deg, var(--accent) 0%, var(--purple) 45%, var(--primary) 70%, var(--accent) 100%);
  --grad-btn: linear-gradient(135deg, color-mix(in oklab, var(--primary), #fff 12%) 0%, color-mix(in oklab, var(--primary), #000 18%) 55%, color-mix(in oklab, var(--primary), var(--accent) 45%) 100%);
  --orb: radial-gradient(circle at 32% 30%, color-mix(in oklab, var(--accent), #fff 70%) 0%, color-mix(in oklab, var(--accent), #fff 15%) 22%, color-mix(in oklab, var(--primary), #fff 15%) 58%, color-mix(in oklab, var(--primary), #000 45%) 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px -20px color-mix(in srgb, var(--bg) 85%, #000);
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
html[data-motion="calm"] { scroll-behavior: auto; }
body {
  margin: 0;
  background: radial-gradient(1200px 800px at 85% -10%, color-mix(in oklab, var(--bg), var(--primary) 34%) 0%, transparent 60%),
              radial-gradient(900px 700px at -10% 40%, color-mix(in oklab, var(--bg), var(--primary) 22%) 0%, transparent 60%),
              linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font: 400 16px/1.65 var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 600; }
.skip:focus { top: 16px; }

/* ---------- Background layers ---------- */
#network { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.aurora { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.aurora span { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(90px); opacity: .35; mix-blend-mode: screen; }
.aurora span:nth-child(1) { background: color-mix(in oklab, var(--primary), #000 20%); top: -15vmax; right: -10vmax; }
.aurora span:nth-child(2) { background: color-mix(in oklab, var(--primary), #f0f 18%); bottom: -20vmax; left: -15vmax; opacity: .25; }
.aurora span:nth-child(3) { background: color-mix(in oklab, var(--accent), #000 45%); top: 40%; left: 45%; width: 30vmax; height: 30vmax; opacity: .18; }
@keyframes drift { to { transform: translate(-8vmax, 6vmax) scale(1.15); } }

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 60; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Shared ---------- */
.glass {
  background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), var(--shadow);
}
.spot { position: relative; overflow: hidden; isolation: isolate; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--p-22), transparent 45%);
}
.spot:hover::before { opacity: 1; }

.gradient-text { background: var(--grad); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes shimmer { to { background-position: -220% 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  font: 600 .78rem/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--tint);
}
.dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--highlight); box-shadow: 0 0 0 0 color-mix(in srgb, var(--highlight) 60%, transparent); }
@keyframes ping { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.stars { color: #fcd34d; letter-spacing: 2px; }
.muted { color: var(--muted); }

.btn {
  --pad: 12px 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad); border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--font-body); cursor: pointer; white-space: nowrap; color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--lg { --pad: 16px 26px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--grad-btn); color: #fff; box-shadow: 0 10px 30px -8px var(--p-80), inset 0 1px 0 rgba(255,255,255,.3); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px var(--primary), inset 0 1px 0 rgba(255,255,255,.3); }
.btn--glass { background: rgba(255,255,255,.07); border-color: var(--line-strong); color: var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255,255,255,.13); transform: translateY(-2px); }

.icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none;
  background: linear-gradient(145deg, var(--p-35), var(--a-15));
  border: 1px solid var(--line-strong);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--tint); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 14px 0 auto; z-index: 50; }
.nav__inner {
  width: min(1200px, 100% - 32px); margin-inline: auto; position: relative;
  display: flex; align-items: center; gap: 20px; padding: 10px 10px 10px 18px;
  border-radius: 999px; border: 1px solid transparent;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
}
.nav.scrolled .nav__inner, .nav.open .nav__inner {
  background: color-mix(in srgb, var(--surface) 70%, transparent); border-color: var(--line);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 10px 40px -15px rgba(0,0,0,.6);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em; white-space: nowrap; flex: none; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--primary)); color: var(--bg);
  font-weight: 800; font-size: 1.25rem; box-shadow: 0 6px 20px -6px var(--p-80);
}
.brand__logo { height: 38px; width: auto; }
.brand__name em { font-style: normal; color: var(--purple); }
.nav__links { display: flex; gap: 4px; margin-left: auto; flex: none; }
.nav__links a { padding: 9px 13px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: .93rem; white-space: nowrap; transition: color .25s, background .25s; }
.nav__links a:hover, .nav__links a.active { color: var(--ink); background: rgba(255,255,255,.07); }
.nav__cta { flex: none; }
.nav__cta-mobile, .nav__toggle { display: none; }
.nav__back { margin-left: auto; }

/* Compact nav: applied by script whenever the links do not fit (not only on phones) */
.nav--compact .nav__cta { display: none; }
.nav--compact .nav__toggle {
  display: grid; place-content: center; gap: 6px; margin-left: auto; width: 46px; height: 46px; flex: none; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.07); cursor: pointer; backdrop-filter: blur(10px);
}
.nav--compact .nav__toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease); }
.nav--compact.open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav--compact.open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav--compact .nav__links {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; gap: 4px; padding: 14px;
  border-radius: 24px; background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.nav--compact.open .nav__links { opacity: 1; visibility: visible; transform: none; }
.nav--compact .nav__links a { padding: 13px 16px; font-size: 1rem; }
.nav--compact .nav__cta-mobile { display: inline-flex; margin-top: 8px; color: #fff; }
.nav--compact .brand { flex: 0 1 auto; min-width: 0; }
.nav--compact .brand__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nav--measure .nav__links, .nav--measure .nav__inner { transition: none !important; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 90px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero__title { font-size: clamp(2.6rem, 5.6vw, 4.7rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 26px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .word { display: inline-block; }
@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }
.hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 540px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero__proof { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px 34px; }
.hero__proof li { display: grid; gap: 2px; padding-left: 16px; border-left: 2px solid var(--p-55); }
.hero__proof strong { font-family: var(--font-head); font-size: 1.05rem; }
.hero__proof span { color: var(--muted); font-size: .88rem; }
.hero__proof li.proof-team { display: flex; align-items: center; gap: 14px; border-left: 0; padding-left: 0; }
.proof-team > span { display: grid; gap: 2px; }

/* phone stage */
.hero__visual { perspective: 1400px; display: grid; place-items: center; }
.stage { position: relative; width: min(420px, 100%); aspect-ratio: 400 / 520; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.layer { transition: transform .6s var(--ease); }
.swoosh { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 20px 40px var(--p-55)); }
.sw-a1 { stop-color: color-mix(in oklab, var(--primary), #fff 15%); }
.sw-a2 { stop-color: color-mix(in oklab, var(--primary), #000 55%); }
.sw-b1 { stop-color: var(--highlight); stop-opacity: .9; }
.sw-b2 { stop-color: color-mix(in oklab, var(--primary), #000 25%); stop-opacity: .6; }
@keyframes sway { to { transform: rotate(-3deg) translateY(-6px); } }

.phone {
  position: absolute; left: 21%; top: 2%; width: 58%; height: 96%;
  border-radius: 44px; padding: 10px;
  background: linear-gradient(160deg, color-mix(in oklab, var(--primary), #fff 20%) 0%, color-mix(in oklab, var(--primary), #000 25%) 40%, color-mix(in oklab, var(--primary), #000 55%) 100%);
  box-shadow: 0 50px 90px -30px rgba(0,0,0,.85), inset 0 0 0 2px rgba(255,255,255,.25), 0 0 0 1px rgba(0,0,0,.4);
}
.phone__notch { position: absolute; top: 18px; left: 50%; width: 32%; height: 20px; transform: translateX(-50%); background: var(--bg); border-radius: 0 0 14px 14px; z-index: 2; }
.phone__screen {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden; padding: 48px 14px 16px;
  display: flex; flex-direction: column; gap: 14px;
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in oklab, var(--primary), #000 35%) 0%, color-mix(in oklab, var(--primary), var(--bg) 70%) 55%, color-mix(in oklab, var(--primary), var(--bg) 82%) 100%);
}
.screen-card { border-radius: 20px; padding: 18px 16px; display: grid; gap: 10px; background: linear-gradient(150deg, rgba(255,255,255,.22), rgba(255,255,255,.06)); border: 1px solid rgba(255,255,255,.25); }
.screen-card__title { font: 600 clamp(.85rem, 2.1vw, 1.08rem)/1.2 var(--font-head); margin: 0 0 4px; color: #f4f4ff; }
.bar { display: block; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--highlight), transparent); }
.bar--lg { width: 88%; } .bar--md { width: 55%; }
.screen-card__row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.toggle { width: 56%; height: 22px; border-radius: 999px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.25); position: relative; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--highlight); }
.screen-chart { flex: 1; min-height: 70px; display: flex; align-items: flex-end; gap: 8px; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
.screen-chart span { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--accent), var(--primary)); transform-origin: bottom; }
@keyframes grow { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
.screen-tabs { display: flex; justify-content: space-around; padding: 4px 10px 0; }
.screen-tabs span { width: 22px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.25); }
.screen-tabs span:first-child { background: var(--highlight); }

/* Virtual Accountant chat preview inside the phone */
.chat { display: flex; flex-direction: column; gap: 10px; height: 100%; margin-top: -14px; font-size: clamp(.66rem, 1.55vw, .8rem); line-height: 1.35; }
.chat__head { display: flex; align-items: center; gap: 9px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.14); }
.chat__head b { display: block; font: 600 .95em/1.2 var(--font-head); }
.chat__head small { display: flex; align-items: center; gap: 5px; color: var(--tint); font-size: .82em; }
.chat__avatar { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; font: 700 .72rem/1 var(--font-head); color: var(--bg); background: linear-gradient(135deg, var(--accent), var(--primary)); }
.chat__online { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }
.chat__log { flex: 1; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.msg { margin: 0; padding: 8px 11px; border-radius: 14px; max-width: 88%; }
.msg--me { align-self: flex-end; background: var(--grad-btn); color: #fff; border-bottom-right-radius: 4px; }
.msg--va { align-self: flex-start; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); border-bottom-left-radius: 4px; }
.chat__input { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 999px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); color: var(--muted); }
.chat__send { width: 22px; height: 22px; border-radius: 50%; flex: none; background: var(--grad-btn); }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

.orb { display: inline-block; border-radius: 50%; background: var(--orb); box-shadow: 0 8px 24px -6px var(--a-50), inset -4px -6px 12px rgba(0,0,0,.35); flex: none; }
.orb--lg { width: 54px; height: 54px; } .orb--md { width: 38px; height: 38px; } .orb--sm { width: 24px; height: 24px; }

/* floating cards: .fc is the positioned 3D layer, .float-card is the glass card inside it */
.fc { position: absolute; }
.fc--a { left: -12%; top: -4%; --dx: -46px; --dy: -34px; }
.fc--b { right: -6%; top: 22%; --dx: 50px; --dy: -24px; }
.fc--c { left: -8%; bottom: 10%; --dx: -54px; --dy: 30px; }
.fc--d { right: -4%; bottom: 5%; max-width: 230px; --dx: 44px; --dy: 40px; }
.float-card {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--purple) 32%, transparent), var(--p-12));
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 25px 50px -18px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.3);
  font-size: .82rem; line-height: 1.3;
}
.float-card--col { flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 18px; }
.float-card b { display: block; font-family: var(--font-head); font-size: .92rem; }
.float-card small { display: block; color: var(--tint); font-size: .74rem; }
.float-card .big { font-size: 1.25rem; margin: 2px 0; }
.fc--photo { flex-direction: column; align-items: flex-start; gap: 10px; padding: 10px 10px 14px; max-width: 180px; }
.fc--photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }
.fc--photo > div { padding: 0 6px; }
.float-dot { position: absolute; right: 8%; top: 4%; width: 18px; height: 18px; border-radius: 50%; border: 4px solid var(--purple); background: var(--bg); box-shadow: 0 0 20px var(--p-55); }
@keyframes bob { 50% { translate: 0 -12px; } }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; width: 26px; height: 42px; border-radius: 20px; border: 2px solid var(--line-strong); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--accent); }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* people: photos or initials */
.face { border-radius: 50%; object-fit: cover; flex: none; border: 2px solid rgba(255,255,255,.55); box-shadow: 0 8px 20px -6px rgba(0,0,0,.7); }
.face--lg { width: 54px; height: 54px; }
.face--ini, .face-ini { display: grid; place-items: center; font: 700 .9rem/1 var(--font-head); color: #fff; background: var(--orb); text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.faces { display: inline-flex; align-items: center; }
.faces img, .faces .face-ini { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); margin-left: -12px; box-shadow: 0 6px 16px -6px rgba(0,0,0,.7); transition: transform .3s var(--ease); flex: none; }
.faces .face-ini { font-size: .78rem; }
.faces > :first-child { margin-left: 0; }
.faces:hover > * { transform: translateY(-3px); }
.faces--lg img, .faces--lg .face-ini { width: 58px; height: 58px; margin-left: -16px; border-width: 3px; }
.faces--row { display: flex; margin: 4px 0 18px; }

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--line); background: rgba(255,255,255,.03); overflow: hidden; padding: 18px 0; backdrop-filter: blur(6px); }
.ticker__track { display: flex; gap: 28px; width: max-content; font: 600 1.05rem/1 var(--font-head); color: var(--tint); white-space: nowrap; }
.ticker__track i { font-style: normal; color: var(--primary); font-size: .7rem; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section--tight { padding-top: clamp(40px, 6vw, 80px); }
.section__head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section__head h2 { margin-bottom: 18px; }
.section__lead { color: var(--muted); font-size: 1.08rem; }

/* help cards */
.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; transition: transform .45s var(--ease), border-color .45s; }
.card:hover { transform: translateY(-8px); border-color: var(--p-55); }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card--media { padding-top: 0; }
.card__media { margin: 0 -24px 6px; height: 170px; overflow: hidden; position: relative; border-radius: var(--radius) var(--radius) 0 0; }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--panel) 85%, transparent) 100%); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card--media:hover .card__media img { transform: scale(1.07); }
.card--media .icon { margin-top: -44px; position: relative; z-index: 2; background: linear-gradient(145deg, var(--p-80), color-mix(in srgb, var(--accent) 55%, var(--primary))); backdrop-filter: blur(8px); }

/* ---------- Services explorer ----------
   No JS: every category is a stacked card.
   .explorer--tabs:  tabs + one panel at a time (calm motion, or clicking)
   .explorer--story: sticky panel; scrolling through the section steps through the tabs */
.explorer { position: relative; }
.explorer__tabs { display: none; }
.explorer__stack { display: grid; gap: 20px; }
.explorer__steps { display: none; }
.explorer__panel { display: grid; grid-template-columns: 1fr minmax(0, .9fr); align-items: stretch; padding: 0; min-height: 400px; }
.explorer__body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; order: 1; position: relative; z-index: 1; }
.explorer__media { order: 2; position: relative; margin: 0; min-height: 100%; overflow: hidden; border-radius: 0 var(--radius) var(--radius) 0; }
.explorer__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.explorer__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--panel) 90%, transparent) 0%, transparent 40%), linear-gradient(0deg, var(--p-22), transparent 60%); }
.explorer__icon { width: 64px; height: 64px; border-radius: 20px; }
.explorer__icon svg { width: 30px; height: 30px; }
.explorer__panel h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.explorer__panel p { color: var(--muted); font-size: 1.05rem; max-width: 620px; margin: 0; }
.explorer__panel .explorer__note { font-size: .92rem; color: var(--highlight); }
.chips { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 14px; border-radius: 999px; font-size: .88rem; border: 1px solid var(--line-strong); background: rgba(255,255,255,.06); color: var(--tint); }

.explorer--tabs, .explorer--story { display: block; }
.explorer--tabs .explorer__sticky, .explorer--story .explorer__sticky { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: stretch; }
.explorer--tabs .explorer__tabs, .explorer--story .explorer__tabs { display: grid; gap: 10px; align-content: start; position: relative; }
.explorer--tabs .explorer__stack, .explorer--story .explorer__stack { display: grid; view-transition-name: svc-stack; }
.explorer--tabs .explorer__panel, .explorer--story .explorer__panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
.explorer--tabs .explorer__panel.is-active, .explorer--story .explorer__panel.is-active { opacity: 1; visibility: visible; }
.explorer__panel.is-active .explorer__media img { transform: scale(1.04); }
.explorer__panel.is-active .explorer__body > * { animation: panelIn .6s var(--ease) both; }
.explorer__panel.is-active .explorer__body > :nth-child(2) { animation-delay: .05s; }
.explorer__panel.is-active .explorer__body > :nth-child(3) { animation-delay: .1s; }
.explorer__panel.is-active .explorer__body > :nth-child(n+4) { animation-delay: .15s; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }
html[data-motion="calm"] .explorer__panel.is-active .explorer__body > * { animation: none; }

.explorer__tab {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; cursor: pointer;
  padding: 18px 22px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: rgba(255,255,255,.035); color: var(--muted);
  font: 600 1.02rem/1.2 var(--font-head); transition: all .35s var(--ease);
}
.explorer__tab .num { font: 600 .78rem/1 var(--font-body); color: var(--faint); letter-spacing: .06em; }
.explorer__tab:hover { color: var(--ink); border-color: var(--line-strong); transform: translateX(4px); }
.explorer__tab.is-active { color: #fff; border-color: var(--p-55); background: linear-gradient(120deg, var(--p-35), color-mix(in srgb, var(--accent) 8%, transparent)); box-shadow: 0 12px 30px -14px var(--p-80); }
.explorer__tab.is-active .num { color: var(--accent); }
.explorer__progress { display: none; }

.explorer--story { height: calc(var(--n) * 72vh + 28vh); }
.explorer--story .explorer__sticky { position: sticky; top: 104px; }
.explorer--story .explorer__steps { display: block; position: absolute; inset: 0; pointer-events: none; }
.explorer__step { position: absolute; left: 0; width: 1px; top: calc(var(--k) * 100% / var(--n)); height: calc(100% / var(--n)); }

/* ---------- Who we help ---------- */
.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.who { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4.2; border: 1px solid var(--line); isolation: isolate; box-shadow: var(--shadow); }
@media (min-width: 1081px) { .who-grid > .who:nth-child(even) { transform: translateY(28px); } }
.who img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.who::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--panel) 92%, transparent) 82%); transition: background .5s; }
.who:hover img { transform: scale(1.08); }
.who__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; display: grid; gap: 8px; }
.who__tag { justify-self: start; padding: 6px 12px; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .04em; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.who h3 { font-size: 1.25rem; }
.who p { margin: 0; color: var(--tint); font-size: .9rem; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .5s; }
.who:hover p, .who:focus-within p { max-height: 120px; opacity: 1; }
@media (hover: none) { .who p { max-height: none; opacity: 1; } }
html[data-motion="calm"] .who p { max-height: none; opacity: 1; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__copy h2 { margin-bottom: 24px; }
.about__copy p { color: var(--muted); font-size: 1.04rem; }
.about__copy p strong { color: var(--ink); }
.about__copy .btn { margin-top: 12px; }
.about__visual { position: relative; padding: 0 0 40px 30px; }
.about__photo { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 4.4; border: 1px solid var(--line-strong); box-shadow: var(--shadow); position: relative; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, var(--p-22), transparent 45%, color-mix(in srgb, var(--bg) 45%, transparent)); }
.about__founder { position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 14px; border-radius: 20px; background: linear-gradient(150deg, color-mix(in srgb, var(--purple) 32%, transparent), color-mix(in srgb, var(--panel) 60%, transparent)); }
.about__founder img, .about__ini { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; flex: none; }
.about__ini { display: grid; place-items: center; font: 700 1.3rem/1 var(--font-head); background: var(--orb); color: #fff; }
.about__founder b { display: block; font-family: var(--font-head); }
.about__founder small { color: var(--tint); }
.about__chip { position: absolute; right: -14px; top: 26px; display: grid; gap: 2px; padding: 12px 16px; border-radius: 16px; background: linear-gradient(150deg, color-mix(in srgb, var(--purple) 32%, transparent), color-mix(in srgb, var(--panel) 60%, transparent)); }
.about__chip small { color: var(--tint); font-size: .78rem; }
.about__orb { position: absolute; left: 6px; top: -18px; width: 70px; height: 70px; }
.about__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 56px; }
.stat { padding: 26px 24px; display: grid; gap: 8px; align-content: start; transition: transform .45s var(--ease); }
.stat:hover { transform: translateY(-6px); }
.stat b { font: 800 clamp(2.2rem, 4vw, 3rem)/1 var(--font-head); background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat > span:last-child { color: var(--muted); font-size: .9rem; }
.badge-tile { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 14px; padding: 10px 14px; height: 90px; overflow: hidden; }
.badge-tile img { max-height: 100%; width: auto; object-fit: contain; }
.badge-tile--sq { padding: 4px; }
.badge-text {
  display: inline-flex; align-items: center; justify-self: start; min-height: 46px; padding: 10px 16px; border-radius: 14px;
  font: 700 .95rem/1.25 var(--font-head); color: var(--ink);
  background: linear-gradient(135deg, var(--p-35), var(--a-15)); border: 1px solid var(--line-strong);
}
.badge-text--award { color: #fde68a; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.member { padding: 28px 24px; display: flex; flex-direction: column; gap: 18px; transition: transform .45s var(--ease), border-color .45s; }
.member:hover { transform: translateY(-8px); border-color: var(--p-55); }
.member--lead { grid-column: 1 / -1; flex-direction: row; align-items: flex-start; gap: 26px; padding: 32px; }
.avatar {
  width: 100%; aspect-ratio: 5 / 4; flex: none; border-radius: 18px; display: grid; place-items: center; overflow: hidden;
  font: 700 2.4rem/1 var(--font-head); color: #fff; position: relative;
  background: linear-gradient(140deg, color-mix(in oklab, var(--primary), #fff 10%), color-mix(in oklab, var(--primary), #000 30%) 60%, color-mix(in oklab, var(--accent), #000 45%));
  box-shadow: 0 14px 30px -12px var(--p-80), inset 0 1px 0 rgba(255,255,255,.35);
}
.member--lead .avatar { width: 240px; aspect-ratio: 4 / 5; border-radius: 24px; font-size: 3.4rem; }
.avatar--photo { background: linear-gradient(160deg, #e9e9f2, #cfd0e6); }
.avatar--photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .8s var(--ease); }
.member:hover .avatar--photo img { transform: scale(1.05); }
.avatar--mono span { position: relative; z-index: 1; letter-spacing: .02em; }
.avatar--mono::before { content: ""; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: var(--orb); opacity: .35; right: -10%; bottom: -15%; }
.member__role { margin: 0 0 6px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.member h3 { font-size: 1.3rem; }
.member--lead h3 { font-size: 1.7rem; }
.member--lead .member__body { flex: 1; }
.member--lead .member__body p:not([class]) { max-width: 720px; }
.member__creds { margin: 4px 0 12px; font-size: .86rem; color: var(--purple); font-weight: 600; }
.member__body p:not([class]) { color: var(--muted); font-size: .94rem; margin-bottom: 16px; }
.li { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--tint); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); transition: background .25s, border-color .25s; }
.li:hover { background: rgba(255,255,255,.08); border-color: var(--line-strong); }
.li svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Reviews ---------- */
.section--reviews { overflow: hidden; }
.reviews__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.reviews__head h2 { max-width: 620px; }
.reviews__sample { margin: 14px 0 0; display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: .8rem; color: #fde68a; border: 1px solid rgba(253,230,138,.35); background: rgba(253,230,138,.08); }
.rating { padding: 20px 26px; display: grid; gap: 4px; text-align: center; border-radius: 20px; }
.rating b { font: 800 1.3rem/1 var(--font-head); letter-spacing: .04em; }
.rating .stars { font-size: 1.25rem; }
.rating small { color: var(--tint); }
.rating__link { font-size: .85rem; font-weight: 600; color: var(--accent); margin-top: 4px; }
.rating--photo { position: relative; overflow: hidden; isolation: isolate; min-width: 300px; padding: 70px 26px 20px; }
.rating--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.rating--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 15%, transparent), color-mix(in srgb, var(--panel) 92%, transparent) 62%); }
.reviews { display: grid; gap: 22px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.reviews__row { display: flex; gap: 22px; width: max-content; }
.review { width: 380px; flex: none; margin: 0; padding: 26px; display: flex; flex-direction: column; gap: 14px; border-radius: 20px; transition: transform .35s var(--ease), border-color .35s; }
.review:hover { transform: translateY(-6px) rotate(-.5deg); border-color: var(--p-55); }
.review blockquote { margin: 0; flex: 1; color: var(--tint); font-size: .97rem; }
.review figcaption { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .92rem; }
.review figcaption small { margin-left: auto; color: var(--faint); font-weight: 500; }
.ini { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; background: var(--orb); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
/* static / paused / calm: a row you can swipe or scroll through */
.reviews--static .reviews__row,
html[data-motion="calm"] .reviews__row,
.motion-paused .reviews__row {
  width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(16px, calc((100vw - 1200px) / 2)) 14px; scrollbar-width: thin;
}
.reviews--static .review, html[data-motion="calm"] .review, .motion-paused .review { scroll-snap-align: start; }
.reviews--static, html[data-motion="calm"] .reviews, .motion-paused .reviews { mask-image: none; -webkit-mask-image: none; }
.clone { display: none; }

/* ---------- CTA ---------- */
.cta { display: grid; grid-template-columns: 1fr 1.1fr; overflow: hidden; padding: 0; border-radius: 30px; }
.cta__photo { margin: 0; position: relative; min-height: 380px; }
.cta__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, color-mix(in srgb, var(--panel) 95%, transparent) 0%, transparent 45%); }
.cta__body { padding: clamp(28px, 4.5vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.cta__body h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
.cta__body p { color: var(--muted); margin: 0; }
.cta__body .hero__actions { margin: 6px 0 0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact__info h2 { margin-bottom: 16px; }
.contact__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 30px 0 22px; }
.c-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 18px; transition: transform .35s var(--ease), border-color .35s; min-width: 0; }
.c-card:hover { transform: translateY(-4px); border-color: var(--p-55); }
.c-card .icon { width: 44px; height: 44px; border-radius: 14px; }
.c-card .icon svg { width: 20px; height: 20px; }
.c-card > span:last-child { min-width: 0; }
.c-card small { display: block; color: var(--muted); font-size: .78rem; }
.c-card b { display: block; font-size: .95rem; overflow-wrap: anywhere; }
.address { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.address svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2; flex: none; }
.address a { transition: color .2s; }
.address a:hover { color: var(--ink); }
.address__link { display: inline-block; margin-left: 6px; color: var(--accent); font-weight: 600; font-size: .9rem; }

.form { padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; }
.form h3 { font-size: 1.5rem; margin-bottom: 6px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field span { font-size: .84rem; font-weight: 500; color: var(--tint); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 45%, transparent); color: var(--ink); font: 400 .97rem/1.4 var(--font-body);
  transition: border-color .25s, box-shadow .25s, background .25s; resize: vertical;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a7abd8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.field select option { background: var(--surface); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--p-22); background: color-mix(in srgb, var(--bg) 65%, transparent); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #f87171; }
.form__privacy { margin: 0; font-size: .82rem; color: var(--muted); }
.form__privacy a { color: var(--accent); }
.form__status { margin: 0; min-height: 1.4em; font-size: .9rem; color: var(--highlight); }
.form__status.err { color: #fca5a5; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(10px); padding: 70px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 36px; }
.footer__tag { color: var(--muted); margin: 18px 0 22px; max-width: 320px; }
.footer__h { font-size: .95rem; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: .93rem; }
.footer ul a { transition: color .2s; }
.footer ul a:hover { color: var(--ink); }
.footer__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.footer__badges .badge-tile { height: 64px; padding: 8px 12px; }
.footer__badges .badge-text { min-height: 0; font-size: .78rem; padding: 8px 12px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(255,255,255,.04); transition: transform .3s var(--ease), background .3s, border-color .3s; }
.socials a:hover { transform: translateY(-3px); background: var(--p-22); border-color: var(--p-55); }
.socials svg { width: 19px; height: 19px; fill: none; stroke: var(--tint); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.socials .socials--fill svg { fill: var(--tint); stroke: none; }
.footer__base { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: .85rem; }
.footer__base p { margin: 0; max-width: 640px; }
.footer--slim { padding-top: 0; }

/* ---------- Legal page ---------- */
.legal { max-width: 780px; padding: 150px 0 90px; }
.legal h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 12px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2em; display: grid; gap: 10px; }
.legal a { color: var(--accent); }
.legal__updated { font-size: .9rem; }

/* ---------- Motion toggle ---------- */
.motion-toggle {
  position: fixed; left: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; border-radius: 999px; cursor: pointer;
  color: var(--tint); font: 600 .78rem/1 var(--font-body); border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: .72; transition: opacity .25s, background .25s;
}
.motion-toggle:hover, .motion-toggle:focus-visible { opacity: 1; }
.motion-toggle[hidden] { display: none; }
.motion-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.motion-toggle__play { display: none; }
.motion-toggle[aria-pressed="true"] .motion-toggle__play { display: block; }
.motion-toggle[aria-pressed="true"] .motion-toggle__pause { display: none; }
.motion-toggle__label { position: absolute; left: calc(100% + 8px); padding: 6px 10px; border-radius: 8px; white-space: nowrap; background: var(--surface); border: 1px solid var(--line); opacity: 0; pointer-events: none; transition: opacity .2s; }
.motion-toggle:hover .motion-toggle__label, .motion-toggle:focus-visible .motion-toggle__label { opacity: 1; }

/* =====================================================================
   MOTION
   Base state: everything visible and still. Motion is added on top, so a
   page with no JavaScript, or an unsupported browser, still shows everything.
   Levels (data-motion on <html>):
     calm        gentle fades only; no ambient loops, marquees or scroll story
     standard    scroll-linked reveals, hero hand-off, services story, marquees
     expressive  + pointer tilt, cursor spotlight, floating/ambient loops
   ===================================================================== */

/* Hero headline: words rise on load */
html.js:not([data-motion="calm"]) .hero__title .word { animation: rise 1.1s var(--ease) both; animation-delay: calc(.1s + var(--i, 0) * 80ms); }

/* Phone chat plays once when the hero is visible */
html.js:not([data-motion="calm"]) .chat .msg { opacity: 0; }
html.js:not([data-motion="calm"]) .chat.play .msg { animation: msgIn .5s var(--ease) both; animation-delay: calc(.5s + var(--i, 0) * 1.1s); }

/* Ambient loops — standard */
html:not([data-motion="calm"]) .dot { animation: ping 2.2s infinite; }
html:not([data-motion="calm"]) .scroll-cue span { animation: cue 1.8s ease-in-out infinite; }
html:not([data-motion="calm"]) .ticker__track { animation: marquee 50s linear infinite; }
html:not([data-motion="calm"]) .reviews:not(.reviews--static) .reviews__row { animation: marquee 70s linear infinite; }
html:not([data-motion="calm"]) .reviews__row[data-dir="right"] { animation-direction: reverse; animation-duration: 64s; }
html:not([data-motion="calm"]) .reviews__row:hover, html:not([data-motion="calm"]) .reviews__row:focus-within { animation-play-state: paused; }
html:not([data-motion="calm"]):not(.motion-paused) .reviews:not(.reviews--static) .clone, html:not([data-motion="calm"]):not(.motion-paused) .ticker .clone { display: revert; }

/* Ambient loops — expressive only */
html[data-motion="expressive"] .aurora span { animation: drift 26s var(--ease) infinite alternate; }
html[data-motion="expressive"] .aurora span:nth-child(2) { animation-duration: 32s; }
html[data-motion="expressive"] .aurora span:nth-child(3) { animation-duration: 38s; }
html[data-motion="expressive"] .gradient-text { animation: shimmer 8s linear infinite; }
html.js[data-motion="expressive"] .hero__title .word.gradient-text { animation: rise 1.1s var(--ease) both, shimmer 8s linear infinite; animation-delay: calc(.1s + var(--i, 0) * 80ms), 0s; }
html[data-motion="expressive"] .swoosh { animation: sway 9s ease-in-out infinite alternate; }
html[data-motion="expressive"] .float-card { animation: bob 6.5s ease-in-out infinite; }
html[data-motion="expressive"] .fc--b .float-card { animation-delay: -2s; animation-duration: 7s; }
html[data-motion="expressive"] .fc--c .float-card { animation-delay: -1s; }
html[data-motion="expressive"] .fc--d .float-card { animation-delay: -3s; animation-duration: 8s; }
html[data-motion="expressive"] .about__founder, html[data-motion="expressive"] .about__chip, html[data-motion="expressive"] .about__orb { animation: bob 7s ease-in-out infinite; }
html[data-motion="expressive"] .screen-chart span { animation: grow 3.6s var(--ease) infinite alternate; }

/* "Pause motion": freeze everything that moves on its own */
.motion-paused .dot, .motion-paused .scroll-cue span, .motion-paused .ticker__track, .motion-paused .aurora span,
.motion-paused .gradient-text, .motion-paused .swoosh, .motion-paused .float-card, .motion-paused .about__founder,
.motion-paused .about__chip, .motion-paused .about__orb, .motion-paused .screen-chart span { animation-play-state: paused !important; }
.motion-paused .reviews__row { animation: none !important; }
.motion-paused .ticker__track { animation: none !important; flex-wrap: wrap; justify-content: center; width: auto; padding-inline: 16px; row-gap: 12px; }
html[data-motion="calm"] .ticker__track { flex-wrap: wrap; justify-content: center; width: auto; padding-inline: 16px; row-gap: 12px; }

/* Scroll-linked motion (runs off the main thread where supported) */
@keyframes reveal-up { from { opacity: 0; translate: 0 34px; } to { opacity: 1; translate: 0 0; } }
@keyframes reveal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes unmask { from { clip-path: inset(0 0 100% 0); translate: 0 .4em; } to { clip-path: inset(-10% -5% -20% -5%); translate: 0 0; } }
@keyframes progress { to { transform: scaleX(1); } }
@keyframes progress-y { from { scale: 1 0; } to { scale: 1 1; } }
@keyframes hero-visual-exit { to { transform: perspective(1200px) rotateX(16deg) scale(.88) translateY(-30px); opacity: .35; } }
@keyframes hero-copy-exit { to { translate: 0 -40px; opacity: .25; } }
@keyframes drift-apart { to { translate: var(--dx) var(--dy); } }
@keyframes fade-out { to { opacity: 0; } }

@supports (animation-timeline: view()) {
  .scroll-progress { animation: progress linear both; animation-timeline: scroll(root); }

  html:not([data-motion="calm"]) .reveal {
    animation: reveal-up linear both; animation-timeline: view();
    animation-range: entry calc(var(--i, 0) * 6%) entry calc(75% + var(--i, 0) * 6%);
  }
  html[data-motion="calm"] .reveal { animation: reveal-fade linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  html:not([data-motion="calm"]) .unmask { animation: unmask linear both; animation-timeline: view(); animation-range: entry 15% cover 32%; }

  /* hero hand-off: scrolling away tilts the phone, cards drift apart, copy lifts */
  html:not([data-motion="calm"]) .hero { view-timeline: --hero block; }
  html:not([data-motion="calm"]) .hero__visual { animation: hero-visual-exit linear both; animation-timeline: --hero; animation-range: exit 0% exit 90%; }
  html:not([data-motion="calm"]) .hero__copy { animation: hero-copy-exit linear both; animation-timeline: --hero; animation-range: exit 10% exit 100%; }
  html:not([data-motion="calm"]) .fc { animation: drift-apart linear both; animation-timeline: --hero; animation-range: exit 0% exit 80%; }
  html:not([data-motion="calm"]) .scroll-cue { animation: fade-out linear both; animation-timeline: --hero; animation-range: exit 0% exit 20%; }

  /* services story: progress line beside the tabs */
  .explorer--story { view-timeline: --svc block; }
  .explorer--story .explorer__progress { display: block; position: absolute; left: -14px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--line); }
  .explorer--story .explorer__progress i { display: block; height: 100%; border-radius: inherit; background: var(--grad); transform-origin: top; animation: progress-y linear both; animation-timeline: --svc; animation-range: contain 0% contain 100%; }
}

@supports not (animation-timeline: view()) {
  /* Fallback: script adds .in as elements enter. Hidden only when script is running. */
  html.js .reveal { transition: opacity .8s var(--ease), translate .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  html.js:not([data-motion="calm"]) .reveal:not(.in) { opacity: 0; translate: 0 28px; }
  html.js[data-motion="calm"] .reveal:not(.in) { opacity: 0; }
  html.js.jumping .reveal { opacity: 1; translate: 0 0; transition: none; }
}

/* Cross-page fade between the site and the privacy notice */
@view-transition { navigation: auto; }
::view-transition-old(svc-stack), ::view-transition-new(svc-stack) { animation-duration: .45s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .explorer--tabs .explorer__sticky, .explorer--story .explorer__sticky { grid-template-columns: 260px 1fr; }
}
@media (max-width: 960px) {
  .hero { padding-top: 120px; }
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__visual { order: 2; }
  .explorer__panel { grid-template-columns: 1fr; min-height: 0; }
  .explorer__media { order: 0; min-height: 220px; border-radius: var(--radius) var(--radius) 0 0; }
  .explorer__media::after { background: linear-gradient(0deg, color-mix(in srgb, var(--panel) 90%, transparent) 0%, transparent 50%); }
  .about, .contact { grid-template-columns: 1fr; }
  .about__visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .cta { grid-template-columns: 1fr; }
  .cta__photo { min-height: 240px; }
  .cta__photo::after { background: linear-gradient(0deg, color-mix(in srgb, var(--panel) 95%, transparent) 0%, transparent 55%); }
  .member--lead .avatar { width: 200px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 15px; }
  .contact__cards, .form__row { grid-template-columns: 1fr; }
  .member--lead { flex-direction: column; padding: 26px 22px; }
  .member--lead .avatar { width: 100%; aspect-ratio: 5 / 4; }
  .hero__actions .btn { flex: 1 1 100%; }
  .stage { width: 92%; }
  .float-card { padding: 10px 12px; gap: 8px; }
  .float-card b { font-size: .8rem; } .float-card small { font-size: .66rem; }
  .fc--a { left: -2%; } .fc--c { left: -3%; } .fc--b { right: -3%; } .fc--d { right: -2%; max-width: 180px; }
  .fc--photo { max-width: 140px; }
  .orb--lg { width: 38px; height: 38px; }
  .review { width: 290px; padding: 22px; }
  .who { aspect-ratio: 4 / 3.6; }
  .about__visual { padding-left: 0; }
  .about__chip { right: 6px; }
  .rating--photo { min-width: 0; width: 100%; }
  .faces--lg img, .faces--lg .face-ini { width: 48px; height: 48px; }
  .footer__grid { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .unmask, .hero__visual, .hero__copy, .fc, .chat .msg { animation: none !important; opacity: 1 !important; translate: none !important; clip-path: none !important; }
  @view-transition { navigation: none; }
}
