/* ==========================================================================
   Valtrivo — site styles
   Brand colours, fonts and spacing live in :root. Change them there.
   ========================================================================== */

/* Fonts are served from this site (no Google requests). Inter and Space Grotesk,
   SIL Open Font License. Latin + Latin Extended only. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/space-grotesk-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/space-grotesk-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/space-grotesk-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/space-grotesk-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/space-grotesk-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/space-grotesk-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #040a16;
  --bg-alt: #07101f;
  --surface: #0b1628;
  --surface-2: #111e34;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);

  --text: #f1f5fb;
  --muted: #a3aec4;
  --faint: #6a7791;

  --brand: #005ffd;
  --brand-2: #00c8ea;
  --brand-soft: #8cc4ff;
  --grad: linear-gradient(115deg, #003ce4 0%, #0090f7 55%, #00c8ea 100%);
  /* Lighter version of the gradient, readable as text on the dark background */
  --grad-text: linear-gradient(115deg, #3d86ff 0%, #1ab0ff 55%, #22d6ee 100%);

  --radius: 16px;
  --radius-lg: 26px;
  --shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font-head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;

  color-scheme: dark;
}

/* Base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.no-scroll { overflow: hidden; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; }
button, input, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
  background: var(--grad); transform-origin: left; transform: scaleX(0);
  box-shadow: 0 0 10px rgba(0, 144, 247, .7);
}

/* Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15.5px; white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease), background-color .2s ease, border-color .2s ease, box-shadow .25s ease, opacity .2s ease;
}
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }

.btn-primary {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--text); color: #040a16;
  box-shadow: 0 10px 30px -10px rgba(0, 95, 253, .65);
}
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(0, 144, 247, .28), transparent);
  transform: skewX(-20deg); transition: left .8s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(0, 95, 253, .85); }
.btn-primary:hover::after { left: 120%; }

.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .07); }

.btn-sm { height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-icon { width: 50px; padding: 0; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn:disabled::after { display: none; }
.btn.is-loading { opacity: .7; pointer-events: none; }

.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-soft); font-weight: 600; }
.text-link .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.text-link:hover { color: #fff; }
.text-link:hover .icon { transform: translateX(4px); }

.link-btn {
  border: 0; background: none; padding: 6px; cursor: pointer;
  color: var(--brand-soft); font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: #fff; }

.icon-tile {
  display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 95, 253, .22), rgba(0, 200, 234, .1));
  border: 1px solid rgba(0, 144, 247, .32); color: var(--brand-soft);
}
.icon-tile .icon { width: 22px; height: 22px; }

/* Header -------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4, 10, 22, .55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(4, 10, 22, .8); }

.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 40px; width: auto; }

.site-menu { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { position: relative; color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s ease; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-links a.is-active::after { transform: scaleX(1); }

.menu-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s; }
.header-phone:hover { color: var(--text); }
.header-phone .icon { width: 17px; height: 17px; color: var(--brand-2); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-2); background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-toggle-bar { width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease); }
.menu-open .nav-toggle-bar:first-of-type { transform: translateY(4px) rotate(45deg); }
.menu-open .nav-toggle-bar:last-of-type { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 1100px) and (min-width: 861px) {
  .nav-links { gap: 22px; }
  .header-phone span { display: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .logo img { height: 34px; }
  .nav-toggle { display: inline-flex; }
  .site-menu {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px;
    padding: 16px var(--gutter) 32px;
    background: var(--bg);
    border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s ease, transform .3s var(--ease), visibility .3s;
  }
  .menu-open .site-menu { opacity: 1; visibility: visible; transform: none; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a {
    display: block; padding: 16px 0; border-bottom: 1px solid var(--line);
    font-family: var(--font-head); font-size: 24px; font-weight: 600; color: var(--text);
  }
  .nav-links a::after { display: none; }
  .menu-open .nav-links li { animation: rise .5s var(--ease) both; }
  .menu-open .nav-links li:nth-child(2) { animation-delay: .04s; }
  .menu-open .nav-links li:nth-child(3) { animation-delay: .08s; }
  .menu-open .nav-links li:nth-child(4) { animation-delay: .12s; }
  .menu-open .nav-links li:nth-child(5) { animation-delay: .16s; }
  .menu-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .menu-actions .btn { height: 54px; font-size: 16px; }
  .header-phone { justify-content: center; height: 54px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text); }
}

/* Hero ---------------------------------------------------------------- */

.hero {
  position: relative; isolation: isolate;
  display: flex; align-items: center;
  min-height: min(900px, calc(100svh - var(--header-h)));
  padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 8vw, 96px);
}

.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; will-change: transform; }
.blob-1 {
  width: 680px; height: 680px; right: -140px; top: -200px;
  background: radial-gradient(circle, rgba(0, 95, 253, .45), transparent 65%);
  animation: drift-1 18s ease-in-out infinite alternate;
}
.blob-2 {
  width: 560px; height: 560px; right: 16%; bottom: -260px;
  background: radial-gradient(circle, rgba(0, 200, 234, .26), transparent 65%);
  animation: drift-2 22s ease-in-out infinite alternate;
}
.blob-3 {
  width: 520px; height: 520px; left: -200px; top: -160px;
  background: radial-gradient(circle, rgba(61, 134, 255, .22), transparent 65%);
  animation: drift-3 26s ease-in-out infinite alternate;
}
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 35%, #000 30%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 35%, #000 30%, transparent 75%);
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 72px); align-items: center; }

.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .18s; }
.hero-copy > :nth-child(4) { animation-delay: .26s; }
.hero-copy > :nth-child(5) { animation-delay: .34s; }

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  color: var(--muted); font-size: 13.5px; font-weight: 500;
}
.eyebrow-pill .dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2);
}
.eyebrow-pill .dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--brand-2);
  animation: ping 2.2s cubic-bezier(0, 0, .2, 1) infinite;
}

.hero-title { margin-top: 22px; font-size: clamp(2.6rem, 5.2vw, 4.3rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; }
.hero-line { display: block; }
.rotator { display: grid; }
.rotator .word {
  grid-area: 1 / 1; white-space: nowrap; padding-bottom: .06em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translateY(.45em); filter: blur(10px);
  transition: opacity .6s var(--ease), transform .7s var(--ease), filter .6s var(--ease);
}
.rotator .word.is-active { opacity: 1; transform: none; filter: none; }
.rotator .word.is-leaving { opacity: 0; transform: translateY(-.45em); filter: blur(10px); }

.lead { margin-top: 22px; max-width: 34rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-trust { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 14.5px; font-weight: 500; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { width: 16px; height: 16px; color: var(--brand-2); stroke-width: 2.6; }

/* Hero visual: browser + phone, tilts with the mouse (main.js sets --rx / --ry) */
.hero-visual { container-type: inline-size; perspective: 1600px; animation: rise 1.1s .2s var(--ease) both; }
.mock {
  position: relative; padding: 0 9cqw 16cqw 0; font-size: clamp(8px, 2.15cqw, 13px);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 5deg)) rotateY(var(--ry, -9deg));
}
.hero-phone {
  position: absolute; right: 0; bottom: 0; width: 32%;
  transform: translateZ(60px);
  animation: float 7s ease-in-out infinite;
}

.toasts { position: absolute; left: -6%; top: 24%; display: grid; transform: translateZ(110px); }
.toast {
  grid-area: 1 / 1; display: flex; align-items: center; gap: .8em;
  padding: .75em 1.2em .75em .75em; border-radius: 1.1em;
  background: rgba(255, 255, 255, .97); color: #0b1628; white-space: nowrap;
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .7);
  opacity: 0; transform: translateY(14px) scale(.95);
  transition: opacity .5s ease, transform .6s var(--ease);
}
/* The next card waits for the previous one to leave, so they never overlap */
.toast.is-in { opacity: 1; transform: none; transition-delay: .3s; }
.toast.is-out { opacity: 0; transform: translateY(-14px) scale(.97); }
.toast-icon { display: grid; place-items: center; width: 2.5em; height: 2.5em; border-radius: .8em; background: var(--grad); color: #fff; }
.toast-icon .icon { width: 1.3em; height: 1.3em; stroke-width: 2.2; }
.toast b { display: block; font-size: 1em; font-weight: 600; }
.toast small { display: block; font-size: .85em; color: #6b7286; }

.float-chip {
  position: absolute; left: 4%; bottom: 4cqw; transform: translateZ(80px);
  display: inline-flex; align-items: center; gap: .5em;
  padding: .7em 1.1em; border-radius: 999px;
  background: rgba(11, 22, 40, .9); border: 1px solid var(--line-2);
  font-size: 1.05em; font-weight: 600; white-space: nowrap;
  box-shadow: var(--shadow);
  animation: float 7s 1.5s ease-in-out infinite;
}
.float-chip .icon { width: 1.2em; height: 1.2em; color: var(--brand-2); stroke-width: 2.4; }

@container (max-width: 520px) {
  .toasts { left: 2%; top: 30%; }
}

@media (max-width: 980px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 640px; }
}

/* Mock UI pieces (browser, phone, app screens) ------------------------- */

.browser {
  border-radius: 1.3em; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, .4);
}
.browser-bar { display: flex; align-items: center; gap: .5em; padding: .9em 1.1em; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.browser-bar > span { width: .75em; height: .75em; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.browser-url {
  margin-left: 1em; flex: 1; max-width: 22em; padding: .35em .9em; border-radius: 999px;
  background: rgba(255, 255, 255, .05); color: var(--faint); font-size: .85em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-body { display: grid; grid-template-columns: 22% 1fr; min-height: 21em; }

.ln { display: block; height: .55em; border-radius: 99px; background: rgba(255, 255, 255, .09); }
.ln.strong { background: rgba(255, 255, 255, .22); height: .8em; }
.ln.xl { height: 1.15em; background: rgba(255, 255, 255, .78); }
.ln.on { background: var(--grad); opacity: .9; }
.w30 { width: 30%; } .w45 { width: 45%; } .w50 { width: 50%; } .w55 { width: 55%; } .w60 { width: 60%; }
.w70 { width: 70%; } .w90 { width: 90%; }

.mock-side { padding: 1.2em 1em; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 1.1em; }
.mock-brand { width: 1.8em; height: 1.8em; border-radius: .55em; background: var(--grad); margin-bottom: .6em; }
.mock-main { padding: 1.2em 1.3em; display: flex; flex-direction: column; gap: 1.2em; min-width: 0; }
.mock-top { display: flex; align-items: center; justify-content: space-between; }
.mock-avatar { width: 1.9em; height: 1.9em; border-radius: 50%; background: linear-gradient(135deg, #ffb27b, #ff6fa7); }

.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8em; }
.kpi { padding: .8em .9em; border-radius: .9em; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: .15em; min-width: 0; }
.kpi span { color: var(--faint); font-size: .8em; }
.kpi b { font-family: var(--font-head); font-size: 1.35em; letter-spacing: -0.02em; }
.kpi em { font-style: normal; color: var(--brand-2); font-size: .78em; font-weight: 600; }

.mock-chart {
  flex: 1; min-height: 8em; display: flex; align-items: flex-end; gap: 4%;
  padding: 1em; border-radius: .9em; background: var(--surface-2); border: 1px solid var(--line);
}
.mock-chart i {
  flex: 1; height: var(--h); border-radius: .35em .35em .15em .15em;
  background: linear-gradient(to top, rgba(0, 95, 253, .35), #005ffd 60%, #0090f7);
  transform-origin: bottom; animation: grow 1.1s var(--ease) both;
  transition: height .9s var(--ease);
}
.mock-chart i:nth-child(n+7) { background: linear-gradient(to top, rgba(0, 144, 247, .35), #0090f7 60%, #00c8ea); }
.mock-chart i:nth-child(2n) { animation-delay: .06s; }
.mock-chart i:nth-child(3n) { animation-delay: .12s; }

.phone {
  aspect-ratio: 9 / 18.5; padding: .55em; border-radius: 2.4em;
  background: #02060e; border: 1px solid var(--line-2);
  box-shadow: var(--shadow), 0 0 60px -10px rgba(0, 95, 253, .45);
}
.phone-screen { position: relative; height: 100%; border-radius: 1.9em; overflow: hidden; padding: 1em .95em; display: flex; flex-direction: column; gap: .75em; }

.app-light { background: #f4f6fb; color: #12131c; }
.app-status { display: flex; justify-content: space-between; align-items: center; font-size: .78em; font-weight: 600; }
.app-status i { width: 1.6em; height: .65em; border-radius: .2em; background: #12131c; opacity: .8; }
.app-hello { display: grid; gap: .1em; }
.app-hello small { color: #6b6f80; font-size: .8em; }
.app-hello b { font-family: var(--font-head); font-size: 1.35em; letter-spacing: -0.02em; }

.app-card { position: relative; padding: .9em; border-radius: 1em; background: var(--grad); color: #fff; display: grid; gap: .15em; }
.app-card small { opacity: .85; font-size: .75em; }
.app-card b { font-size: 1.05em; }
.app-pill { justify-self: start; margin-top: .4em; padding: .2em .65em; border-radius: 99px; background: rgba(255, 255, 255, .25); font-size: .7em; font-weight: 600; }

.app-progress { display: flex; align-items: center; gap: .7em; padding: .7em; border-radius: 1em; background: #fff; box-shadow: 0 2px 8px rgba(18, 19, 28, .06); }
.app-progress svg { width: 2.8em; height: 2.8em; transform: rotate(-90deg); }
.app-progress circle { fill: none; stroke-width: 4.5; }
.app-progress .track { stroke: #e7e8f2; }
.app-progress .fill { stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 94.25; stroke-dashoffset: 26.4; animation: ring 1.6s .6s var(--ease) both; }
.app-progress b { display: block; font-family: var(--font-head); font-size: 1.05em; }
.app-progress small { color: #6b6f80; font-size: .72em; }

.app-row { display: flex; align-items: center; gap: .6em; padding: .55em .7em; border-radius: .8em; background: #fff; }
.app-row i { width: 1.5em; height: 1.5em; border-radius: .45em; background: #e1edff; flex: none; }
.app-row .ln { background: #e2e3ec; flex: none; }
.app-tabs { margin-top: auto; display: flex; justify-content: space-around; padding: .6em .4em .2em; border-top: 1px solid #e7e8f2; }
.app-tabs i { width: 1.1em; height: 1.1em; border-radius: .35em; background: #d9dbe6; }
.app-tabs i.on { background: var(--brand); }

/* Tech strip ---------------------------------------------------------- */

.tech { padding: 8px 0 clamp(24px, 4vw, 40px); }
.tech-title { text-align: center; color: var(--faint); font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding-inline: var(--gutter); }
.marquee {
  margin-top: 20px; display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { flex: none; display: flex; gap: 12px; padding-right: 12px; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .02); color: #cfd6e4; font-weight: 500; font-size: 15px; white-space: nowrap;
}

/* Sections ------------------------------------------------------------ */

.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-head { max-width: 46rem; margin: 0 auto clamp(40px, 6vw, 60px); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.section-head h2 { margin-top: 14px; font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 700; }
.section-head p:not(.eyebrow) { margin-top: 18px; color: var(--muted); font-size: 1.08rem; }
.section-head a { color: var(--brand-soft); text-decoration: underline; text-underline-offset: 3px; }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.checks { display: grid; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; color: #d6dcea; }
.checks .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--brand-2); stroke-width: 2.4; }

/* Services showcase --------------------------------------------------- */

.showcase-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px;
  max-width: 880px; margin: 0 auto 24px;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
}
.showcase-tab {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 14px; border: 0; border-radius: 13px;
  background: transparent; color: var(--muted); font-weight: 600; font-size: 15px; cursor: pointer;
  transition: color .25s, background-color .25s, box-shadow .25s;
}
.showcase-tab .icon { width: 19px; height: 19px; transition: color .25s; }
.showcase-tab:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.showcase-tab[aria-selected="true"] {
  color: var(--text); background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 10px 24px -12px rgba(0, 0, 0, .7);
}
.showcase-tab[aria-selected="true"] .icon { color: var(--brand-2); }
.tab-progress {
  position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
}
.showcase-tab[aria-selected="true"] .tab-progress { transform: scaleX(1); }
.showcase.is-auto .showcase-tab[aria-selected="true"] .tab-progress { animation: fill-x 7s linear both; }
.showcase.is-auto:hover .tab-progress { animation-play-state: paused; }

.showcase-panel {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 56px); align-items: center;
  padding: clamp(22px, 4vw, 48px); border-radius: 28px; overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(0, 95, 253, .16), transparent 60%),
    linear-gradient(180deg, var(--surface), rgba(11, 22, 40, .5));
}
.showcase-panel:not([hidden]) { animation: fade-up .6s var(--ease) both; }
.panel-copy > * { animation: rise .7s var(--ease) both; }
.panel-copy > :nth-child(2) { animation-delay: .06s; }
.panel-copy > :nth-child(3) { animation-delay: .12s; }
.panel-copy > :nth-child(4) { animation-delay: .18s; }
.panel-copy h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.panel-copy > p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
.panel-copy .checks { margin-top: 24px; }
.panel-copy .text-link { margin-top: 28px; }

.panel-visual { position: relative; min-width: 0; }
.vis { position: relative; container-type: inline-size; }
.vis > * { font-size: clamp(7px, 2.05cqw, 12.5px); }

.vis-badge {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: .5em;
  padding: .7em 1.1em; border-radius: 99px;
  background: rgba(11, 22, 40, .92); border: 1px solid var(--line-2);
  font-weight: 600; font-size: 1.05em; white-space: nowrap;
  box-shadow: var(--shadow);
  animation: pop-in .6s .5s var(--ease) both, float 6s 1.1s ease-in-out infinite;
}
.vis-badge .icon { width: 1.2em; height: 1.2em; color: var(--brand-2); }
.vis > .vis-badge { font-size: clamp(9px, 2.2cqw, 13px); }

/* Websites visual */
.site { display: grid; gap: 1.5em; padding: 1.3em 1.5em 1.6em; background: linear-gradient(180deg, #0d1b33, #0a1528); }
.site > * { animation: rise .7s var(--ease) both; animation-delay: calc(var(--d) * 140ms + 150ms); }
.site-nav { display: flex; align-items: center; gap: 1.1em; }
.site-logo { width: 1.7em; height: 1.7em; border-radius: .55em; background: var(--grad); }
.site-nav .ln { width: 3.4em; }
.site-btn { margin-left: auto; width: 5.6em; height: 2em; border-radius: 99px; background: rgba(255, 255, 255, .88); }
.site-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 1.6em; align-items: center; }
.site-hero-copy { display: grid; gap: .75em; }
.site-cta {
  position: relative; justify-self: start; margin-top: .6em; padding: .65em 1.3em; border-radius: 99px;
  background: var(--grad); color: #fff; font-weight: 600; font-size: .95em;
  animation: cta-press 5s 1.2s ease-in-out infinite;
}
.site-cta::after {
  content: ""; position: absolute; inset: -3px; border-radius: inherit; border: 2px solid #22d6ee;
  opacity: 0; animation: cta-ring 5s 1.2s ease-out infinite;
}
.site-hero-img {
  position: relative; aspect-ratio: 5 / 4; border-radius: 1em; overflow: hidden;
  background:
    radial-gradient(60% 60% at 30% 30%, rgba(34, 214, 238, .85), transparent 70%),
    radial-gradient(70% 70% at 80% 80%, rgba(0, 95, 253, .95), transparent 70%),
    #0b1e3d;
}
.site-hero-img i {
  position: absolute; left: 12%; right: 12%; bottom: 12%; height: 26%; border-radius: .7em;
  background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .3);
  animation: float 6s ease-in-out infinite;
}
.site-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; }
.site-cards i { height: 5.2em; border-radius: .9em; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.cursor {
  position: absolute; z-index: 4; width: 2.2em; height: 2.2em;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5));
  animation: cursor-move 5s 1.2s var(--ease) infinite both;
}
.cursor path { fill: #fff; stroke: #040a16; stroke-width: 1.4; stroke-linejoin: round; }
.badge-a { left: -2%; top: 30%; }
.badge-b { right: -1%; bottom: -4%; }

/* Web apps visual */
.vis-app .browser-body { min-height: 0; }
.app-chip { padding: .35em .8em; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); font-size: .8em; }
.line-chart { height: 8.5em; padding: .8em; border-radius: .9em; background: var(--surface-2); border: 1px solid var(--line); }
.line-chart svg { width: 100%; height: 100%; overflow: visible; }
.line-chart .area { fill: url(#area-grad); animation: fade-in 1s .9s both; }
.line-chart .line {
  fill: none; stroke: #22d6ee; stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s .3s var(--ease) forwards;
}
.app-table { display: grid; gap: .5em; }
.app-table > div {
  display: flex; align-items: center; gap: .8em; padding: .55em .8em; border-radius: .7em;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
  animation: rise .6s .5s var(--ease) both;
}
.app-table > div:nth-child(2) { animation-delay: .6s; }
.app-table > div:nth-child(3) { animation-delay: .7s; }
.app-table i { width: 1.4em; height: 1.4em; border-radius: 50%; background: linear-gradient(135deg, #3d86ff, #22d6ee); flex: none; }
.app-table em { margin-left: auto; font-style: normal; font-size: .75em; font-weight: 600; padding: .25em .7em; border-radius: 99px; }
.app-table .ok { background: rgba(0, 200, 234, .15); color: #5fe3f5; }
.app-table .wait { background: rgba(255, 184, 77, .15); color: #ffc46b; }

/* Custom software visual: an automation running step by step */
.vis-flow { padding: .5em 0 3em; }
.flow { width: min(100%, 26em); margin: 0 auto; display: flex; flex-direction: column; }
.vis > .flow { font-size: clamp(8px, 2.7cqw, 14px); }
.node {
  position: relative; display: flex; align-items: center; gap: 1em;
  padding: 1em 1.2em; border-radius: 1.1em;
  background: var(--surface-2); border: 1px solid var(--line);
  animation: node-on 6s infinite; animation-delay: calc(var(--n) * 1.2s);
}
.node-icon { display: grid; place-items: center; width: 2.8em; height: 2.8em; border-radius: .8em; background: rgba(0, 95, 253, .16); color: var(--brand-soft); flex: none; }
.node-icon .icon { width: 1.4em; height: 1.4em; }
.node-text b { display: block; font-size: 1.05em; }
.node-text small { color: var(--faint); font-size: .85em; }
.node-check {
  margin-left: auto; display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%;
  background: rgba(0, 200, 234, .16); color: var(--brand-2);
  opacity: 0; transform: scale(.5);
  animation: check-on 6s infinite; animation-delay: calc(var(--n) * 1.2s);
}
.node-check .icon { width: 1.1em; height: 1.1em; stroke-width: 3; }
.wire { position: relative; height: 2.2em; width: 2px; margin-left: 2.6em; background: var(--line-2); }
.wire i {
  position: absolute; left: 50%; top: 0; width: .6em; height: .6em; margin-left: -.3em; border-radius: 50%;
  background: var(--brand-2); box-shadow: 0 0 10px var(--brand-2);
  opacity: 0; animation: packet 6s infinite; animation-delay: calc(var(--n) * 1.2s + .5s);
}
.badge-c { right: 2%; bottom: 0; }

/* Mobile apps visual */
.vis-mobile { display: flex; justify-content: center; padding: 2% 0 4%; }
.phone-front { position: relative; z-index: 1; width: 44%; animation: rise .8s var(--ease) both, float 7s 1s ease-in-out infinite; }
.phone-back { position: absolute; left: 13%; top: 9%; width: 36%; opacity: .75; transform: rotate(-9deg); animation: back-in .9s .15s var(--ease) both; }
.app-dark { background: linear-gradient(180deg, #102244, #0a1528); padding: 1.6em 1em; display: flex; flex-direction: column; gap: .8em; }
.dark-card { height: 6em; border-radius: 1em; background: var(--grad); }
.dark-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6em; }
.dark-grid i { height: 4em; border-radius: .8em; background: rgba(255, 255, 255, .07); }
.notif {
  position: absolute; left: .5em; right: .5em; top: .5em; z-index: 2;
  display: flex; align-items: center; gap: .6em; padding: .65em .7em; border-radius: 1em;
  background: rgba(255, 255, 255, .95); box-shadow: 0 12px 26px -8px rgba(4, 10, 22, .4);
  animation: notif 6s 1.2s var(--ease) infinite both;
}
.notif-icon { display: grid; place-items: center; width: 2em; height: 2em; border-radius: .6em; background: var(--grad); color: #fff; flex: none; }
.notif-icon .icon { width: 1.1em; height: 1.1em; stroke-width: 2.8; }
.notif b { display: block; font-size: .85em; }
.notif small { display: block; font-size: .72em; color: #6b6f80; }
.ship-bar { display: block; margin-top: .6em; height: .4em; border-radius: 99px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.ship-bar i { display: block; height: 100%; width: 70%; border-radius: inherit; background: #fff; transform-origin: left; animation: fill-x 2.4s .6s var(--ease) both; }

@media (max-width: 900px) {
  .showcase-panel { grid-template-columns: minmax(0, 1fr); }
  .panel-visual { order: -1; }
}
@media (max-width: 640px) {
  .showcase-tabs { grid-template-columns: 1fr 1fr; }
  .showcase-tab { flex-direction: column; gap: 4px; min-height: 66px; padding: 8px 10px; font-size: 14px; line-height: 1.2; }
}
@container (max-width: 460px) {
  .badge-a { left: 2%; }
  .badge-b { right: 2%; }
}

/* Our standard: Buy · Use · Tell. A light runs round the wheel and each
   test lights up as it passes (all CSS, one shared cycle) */
.standard-grid {
  --cycle: 7.5s;
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 88px); align-items: center;
}
.flywheel { position: relative; width: min(100%, 440px); aspect-ratio: 1; margin: 0 auto; }
.fly-ring, .fly-arc { position: absolute; inset: 14%; border-radius: 50%; }
.fly-ring { border: 2px dashed rgba(255, 255, 255, .12); animation: spin 60s linear infinite; }
.fly-arc {
  background: conic-gradient(from var(--angle), transparent 0deg 230deg, rgba(0, 144, 247, .6) 320deg, #22d6ee 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
  filter: drop-shadow(0 0 8px rgba(0, 200, 234, .7));
  animation: spin-angle var(--cycle) linear infinite;
}
.fly-center {
  position: absolute; inset: 33%; border-radius: 50%;
  display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; padding: 6%;
  background: radial-gradient(circle, rgba(0, 95, 253, .28), transparent 72%);
}
.fly-center .icon { width: 30px; height: 30px; color: var(--brand-2); stroke-width: 2.2; animation: nudge-up 2.5s ease-in-out infinite; }
.fly-center b { font-family: var(--font-head); font-size: clamp(18px, 2vw, 24px); }
.fly-center small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.fly-node {
  position: absolute; left: var(--x); top: var(--y); width: 24%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  display: grid; place-content: center; justify-items: center; gap: 4px;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted);
  font-family: var(--font-head); font-weight: 700; font-size: clamp(14px, 1.6vw, 18px);
  animation: fly-node var(--cycle) infinite; animation-delay: calc(var(--k) * var(--cycle) / 3);
}
.fly-node .icon { width: 24px; height: 24px; }

.tests { display: grid; gap: 14px; }
.test {
  display: flex; align-items: flex-start; gap: 18px; padding: 22px 24px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line);
  animation: test-on var(--cycle) infinite; animation-delay: calc(var(--k) * var(--cycle) / 3);
}
.test-num {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px;
  background: rgba(0, 95, 253, .16); color: var(--brand-soft); font-family: var(--font-head); font-weight: 700;
}
.test h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 1.2rem; }
.test h3 em {
  font-style: normal; font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 99px; background: rgba(0, 200, 234, .12); color: var(--brand-2);
}
.test p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.standard-note { margin-top: 22px; padding-left: 16px; border-left: 2px solid var(--brand); color: #d6dcea; font-size: 15.5px; }

@media (max-width: 900px) {
  .standard-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .flywheel { width: min(100%, 360px); }
}
@media (max-width: 520px) {
  .fly-center small { display: none; }
  .fly-node .icon { width: 20px; height: 20px; }
  .test { padding: 18px; gap: 14px; }
}

/* Process: the line fills as you scroll (main.js sets --p and the rail size) */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 44px; --vertical: 0; }
.steps::before, .steps::after {
  content: ""; position: absolute; top: 13px; left: var(--rail-start, 29px); width: var(--rail-len, 0px); height: 2px; border-radius: 2px;
  background: var(--line-2);
}
.steps::after {
  background: var(--grad); box-shadow: 0 0 12px rgba(0, 144, 247, .7);
  transform-origin: left; transform: scaleX(var(--p, 0));
}
.step {
  position: relative; z-index: 1; padding: 28px 24px 30px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .5s ease, opacity .5s ease;
}
.step-dot {
  position: absolute; top: -37px; left: 22px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-alt); border: 2px solid var(--line-2);
  transition: background-color .4s, border-color .4s, box-shadow .4s, transform .4s var(--ease);
}
.step-num {
  font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; line-height: 1;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { margin-top: 22px; font-size: 1.3rem; }
.step p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.js .step:not(.is-on) { opacity: .45; }
.step.is-on { border-color: rgba(0, 144, 247, .35); }
.step.is-on .step-dot { background: var(--brand-2); border-color: var(--brand-2); box-shadow: 0 0 0 6px rgba(0, 200, 234, .16); transform: scale(1.15); }

@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; gap: 14px; padding-top: 0; padding-left: 44px; --vertical: 1; }
  .steps::before, .steps::after { top: var(--rail-start, 29px); left: 13px; width: 2px; height: var(--rail-len, 0px); }
  .steps::after { transform-origin: top; transform: scaleY(var(--p, 0)); }
  .step-dot { top: 22px; left: -37px; }
}

/* Why Valtrivo: VAL · TRI · VO and the six values (main.js lights them up) */
.name-split {
  display: flex; justify-content: center; align-items: flex-start; gap: clamp(8px, 2.6vw, 32px);
  margin: 0 auto clamp(40px, 6vw, 64px);
}
.syllable {
  display: grid; justify-items: center; gap: 14px; padding: 0; border: 0; background: none;
  color: var(--text); cursor: pointer; border-radius: 16px;
}
.syl-letters {
  font-family: var(--font-head); font-weight: 700; line-height: .9; letter-spacing: -0.04em;
  font-size: clamp(3.6rem, 13vw, 9.5rem);
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .2);
  /* The gradient wipes in from the left when a syllable lights up */
  background-image: var(--grad-text); background-repeat: no-repeat; background-size: 0% 100%;
  -webkit-background-clip: text; background-clip: text;
  transition: background-size .7s var(--ease), -webkit-text-stroke-color .4s, filter .5s, transform .5s var(--ease);
}
.syllable:hover .syl-letters { -webkit-text-stroke-color: rgba(255, 255, 255, .45); }
.syllable.is-lit .syl-letters {
  background-size: 100% 100%; -webkit-text-stroke-color: transparent;
  filter: drop-shadow(0 0 28px rgba(0, 144, 247, .45)); transform: translateY(-4px);
}
.syl-words {
  display: grid; justify-items: center; gap: 2px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
  transition: color .4s;
}
.syllable.is-lit .syl-words { color: var(--text); }
.syl-dot { width: 10px; height: 10px; margin-top: clamp(1.6rem, 6vw, 4.4rem); border-radius: 50%; background: var(--grad); opacity: .6; flex: none; }
.values-section.all-lit .syl-letters { background-size: 100% 100%; -webkit-text-stroke-color: transparent; }
.values-section.all-lit .syl-words { color: var(--text); }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value-card {
  position: relative; padding: clamp(24px, 3vw, 32px); border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .4s ease, box-shadow .4s ease, opacity .4s ease, transform .35s var(--ease);
}
.value-card:hover, .js .value-card.is-visible:hover { transform: translateY(-4px); }
.value-tag {
  position: absolute; top: 24px; right: 24px;
  font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--faint);
  transition: color .4s;
}
.value-card .icon-tile { transition: transform .45s var(--ease); }
.value-card:hover .icon-tile { transform: rotate(-8deg) scale(1.08); }
.value-card h3 { margin-top: 20px; font-size: 1.25rem; }
.value-card p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.value-card.is-match { border-color: rgba(0, 144, 247, .5); box-shadow: 0 0 0 1px rgba(0, 144, 247, .15), 0 24px 44px -24px rgba(0, 95, 253, .7); }
.value-card.is-match .value-tag { color: var(--brand-2); }
/* Pointing at a syllable or card fades the others, so the matching values stand out */
.js .values-section.is-focus .values-grid .value-card:not(.is-match) { opacity: .45; }

@media (max-width: 900px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .values-grid { grid-template-columns: 1fr; }
  .syl-words { font-size: 10.5px; letter-spacing: .08em; }
  .syl-dot { width: 7px; height: 7px; }
}

/* Mouse spotlight on cards (main.js sets --mx / --my) */
.spot { position: relative; isolation: isolate; overflow: hidden; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, -200px), rgba(0, 144, 247, .16), transparent 45%);
  opacity: 0; transition: opacity .35s ease;
}
.spot:hover::before { opacity: 1; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }

.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .25s ease, background-color .25s ease; }
.faq details:hover { border-color: var(--line-2); }
.faq details[open] { border-color: rgba(0, 144, 247, .35); background: var(--surface-2); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-size: 1.12rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--muted); transition: transform .35s var(--ease), color .25s; }
.faq details[open]:not(.is-closing) summary .icon { transform: rotate(45deg); color: var(--brand-2); }
.faq-body { overflow: hidden; }
.faq-body p { padding: 0 22px 22px; color: var(--muted); }

@media (max-width: 860px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-grid .section-head { position: static; }
}

/* Contact ------------------------------------------------------------- */

.contact { overflow: hidden; }
.contact-glow {
  position: absolute; left: -10%; right: -10%; bottom: -30%; height: 80%; pointer-events: none;
  background: radial-gradient(50% 60% at 60% 100%, rgba(0, 95, 253, .22), transparent 70%);
}
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }

.contact-side h2 { margin-top: 14px; font-size: clamp(2rem, 4.2vw, 3rem); }
.contact-lead { margin-top: 18px; color: var(--muted); font-size: 1.08rem; }

.meeting-facts { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.meeting-facts li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-size: 14px; color: #d6dcea;
}
.meeting-facts .icon { width: 16px; height: 16px; color: var(--brand-2); }

.methods { margin-top: 28px; display: grid; gap: 12px; }
.method {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .25s, transform .3s var(--ease);
}
.method:hover { border-color: var(--line-2); transform: translateX(4px); }
.method .icon-tile { width: 44px; height: 44px; border-radius: 13px; }
.method-text { min-width: 0; }
.method-text small { display: block; color: var(--faint); font-size: 13px; }
.method-text b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.method-arrow { margin-left: auto; color: var(--faint); transition: transform .25s var(--ease), color .25s; }
.method:hover .method-arrow { color: var(--brand-2); transform: translateX(3px); }

.contact-card {
  position: relative; padding: clamp(16px, 3vw, 30px); border-radius: 28px;
  background: linear-gradient(180deg, rgba(17, 30, 52, .92), rgba(11, 22, 40, .92));
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
/* A light that travels around the card's border */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.contact-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--angle), transparent 0 68%, #0090f7 80%, #22d6ee 88%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-angle 6s linear infinite;
}

.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 16px; background: rgba(4, 10, 22, .6); border: 1px solid var(--line); }
.seg-btn {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; border: 0; border-radius: 12px; background: transparent; cursor: pointer;
  color: var(--muted); font-weight: 600; font-size: 15px; transition: color .25s;
}
.seg-btn .icon { width: 18px; height: 18px; }
.seg-btn:hover, .seg-btn[aria-selected="true"] { color: var(--text); }
.seg-btn[aria-selected="true"] .icon { color: var(--brand-2); }
.seg-pill {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 12px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2), 0 6px 16px -8px rgba(0, 0, 0, .6);
  transition: transform .45s var(--ease);
}
.seg[data-active="message"] .seg-pill { transform: translateX(100%); }

.pane { margin-top: 22px; }
.pane:not([hidden]) { animation: fade-up .45s var(--ease) both; }

/* Booking planner */
.booker-steps { display: flex; gap: 8px; margin-bottom: 22px; }
.booker-steps li {
  flex: 1; display: flex; align-items: center; gap: 8px; padding-bottom: 10px;
  border-bottom: 2px solid var(--line); color: var(--faint); font-size: 13px; font-weight: 600;
  transition: color .3s, border-color .3s;
}
.booker-steps li span {
  display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%;
  border: 1.5px solid currentColor; font-size: 11.5px; transition: background-color .3s, color .3s, border-color .3s;
}
.booker-steps li.is-current { color: var(--text); border-color: var(--brand); }
.booker-steps li.is-done { color: var(--brand-2); border-color: var(--brand-2); }
.booker-steps li.is-done span { background: var(--brand-2); border-color: var(--brand-2); color: var(--bg); }

.booker-step:not([hidden]) { animation: fade-up .45s var(--ease) both; }
.booker-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.booker-label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: #dfe5f1; }
.booker-label .icon { width: 18px; height: 18px; color: var(--brand-2); }
.booker-label small { font-weight: 500; color: var(--faint); font-size: 13px; }
.booker-step > .booker-label { margin: 22px 0 12px; }

.day-nav { display: flex; gap: 6px; }
.icon-btn {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer;
  transition: background-color .2s, border-color .2s, opacity .2s;
}
.icon-btn .icon { width: 18px; height: 18px; }
.icon-btn:hover { background: rgba(255, 255, 255, .06); }
.icon-btn:disabled { opacity: .3; cursor: default; background: transparent; }

.days {
  margin-top: 12px; display: flex; gap: 8px; padding: 3px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.days::-webkit-scrollbar { display: none; }
.day {
  flex: 0 0 calc((100% - 32px) / 5); scroll-snap-align: start;
  display: grid; justify-items: center; gap: 1px; padding: 11px 4px; cursor: pointer;
  border-radius: 14px; border: 1px solid var(--line-2); background: rgba(4, 10, 22, .5); color: var(--muted);
  transition: background-color .2s, border-color .2s, color .2s, transform .25s var(--ease), box-shadow .25s;
}
.day small { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.day b { font-family: var(--font-head); font-size: 22px; line-height: 1.2; color: var(--text); }
.day:hover { border-color: rgba(255, 255, 255, .32); transform: translateY(-2px); }
.day[aria-pressed="true"] {
  background: var(--grad); border-color: transparent; color: rgba(255, 255, 255, .88);
  box-shadow: 0 12px 26px -10px rgba(0, 95, 253, .85);
}
.day[aria-pressed="true"] b { color: #fff; }

.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-height: 212px; overflow-y: auto; padding: 3px; }
.slot {
  height: 42px; border-radius: 11px; cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(4, 10, 22, .5); color: var(--text);
  font-weight: 600; font-size: 14.5px; font-variant-numeric: tabular-nums;
  transition: background-color .2s, border-color .2s, box-shadow .25s, transform .25s var(--ease);
  animation: pop-in .35s var(--ease) both; animation-delay: calc(var(--i) * 18ms);
}
.slot:hover { border-color: var(--brand); transform: translateY(-1px); }
.slot[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(0, 95, 253, .95); }

.booker-foot {
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.booker-summary { color: var(--muted); font-size: 14.5px; }
.booker-summary b { color: var(--text); }

form.booker-step, .message-form { display: grid; gap: 16px; }
.picked {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px;
  background: rgba(0, 95, 253, .1); border: 1px solid rgba(0, 144, 247, .35);
}
.picked .icon-tile { width: 42px; height: 42px; border-radius: 12px; }
.picked-text { min-width: 0; }
.picked-text b { display: block; }
.picked-text small { color: var(--muted); font-size: 13.5px; }
.picked .link-btn { margin-left: auto; }

.booker-frame { display: block; width: 100%; height: 700px; border: 0; border-radius: 16px; background: #fff; }

/* Form fields */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { padding: 0; font-size: 14px; font-weight: 500; color: #d6dcea; }
.field em { font-style: normal; color: var(--faint); }
.field legend { margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  background: rgba(4, 10, 22, .6); border: 1px solid var(--line-2);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 95, 253, .22); }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(4, 10, 22, .6);
  font-size: 14.5px; font-weight: 500; color: #d6dcea;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.choice span .icon { width: 17px; height: 17px; }
.choice:hover span { border-color: rgba(255, 255, 255, .32); }
.choice input:checked + span { background: rgba(0, 95, 253, .22); border-color: var(--brand); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--brand-2); outline-offset: 2px; }

.form-error { color: #ff9c9c; font-size: 14.5px; }
.form-error a { text-decoration: underline; }

/* Success state */
.done { display: grid; justify-items: center; gap: 10px; padding: 26px 8px 10px; text-align: center; }
.done:focus { outline: none; }
.done-check { width: 78px; height: 78px; margin-bottom: 6px; }
.done-check circle {
  fill: rgba(0, 200, 234, .1); stroke: var(--brand-2); stroke-width: 2;
  stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .7s var(--ease) forwards;
}
.done-check path {
  fill: none; stroke: var(--brand-2); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 34; stroke-dashoffset: 34; animation: draw .45s .55s var(--ease) forwards;
}
.done h3 { font-size: 1.6rem; animation: rise .6s .3s var(--ease) both; }
.done p { color: var(--muted); max-width: 26rem; animation: rise .6s .4s var(--ease) both; }
.done-actions { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; animation: rise .6s .5s var(--ease) both; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .slots { grid-template-columns: repeat(3, 1fr); max-height: none; }
  .booker-steps li { font-size: 12px; gap: 6px; }
  .booker-foot .btn { width: 100%; }
  .seg-btn { font-size: 14px; gap: 6px; }
}

/* Footer -------------------------------------------------------------- */

.site-footer { padding: clamp(56px, 8vw, 88px) 0 32px; border-top: 1px solid var(--line); background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand p { margin-top: 16px; max-width: 22rem; color: var(--muted); font-size: 15px; }
.footer-brand .footer-values { margin-top: 10px; color: var(--faint); font-size: 13px; letter-spacing: .02em; }
.footer-brand .btn { margin-top: 22px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.footer-col a { color: var(--muted); font-size: 15px; transition: color .2s ease; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  margin-top: clamp(40px, 6vw, 64px); 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: 14px;
}
.footer-bottom a:hover { color: var(--text); }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }

/* Phone quick actions -------------------------------------------------- */

.mobile-cta { display: none; }
@media (max-width: 860px) {
  .mobile-cta {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
    display: flex; gap: 8px; padding: 8px; border-radius: 22px;
    background: rgba(11, 22, 40, .88); border: 1px solid var(--line-2);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .75);
    transform: translateY(150%); transition: transform .5s var(--ease);
  }
  .mobile-cta.is-shown { transform: none; }
  .mobile-cta .btn { flex: 1; height: 50px; }
  .mobile-cta .btn-icon { flex: 0 0 50px; }
  .site-footer { padding-bottom: 110px; }
}

/* Motion -------------------------------------------------------------- */

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fill-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ring { from { stroke-dashoffset: 94.25; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes spin-angle { to { --angle: 360deg; } }
@keyframes drift-1 { to { transform: translate(-140px, 90px) scale(1.15); } }
@keyframes drift-2 { to { transform: translate(120px, -70px) scale(1.1); } }
@keyframes drift-3 { to { transform: translate(90px, 60px) scale(1.2); } }
@keyframes back-in { from { opacity: 0; transform: rotate(0deg) translateX(30%); } to { opacity: .75; transform: rotate(-9deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes nudge-up { 0%, 100% { transform: none; } 50% { transform: translateY(-4px); } }
@keyframes fly-node {
  0%, 30% {
    color: #fff; border-color: rgba(0, 144, 247, .85); background: #0d2a5e;
    box-shadow: 0 0 0 6px rgba(0, 144, 247, .12), 0 0 40px rgba(0, 144, 247, .5);
    transform: translate(-50%, -50%) scale(1.06);
  }
  40%, 100% { color: var(--muted); border-color: var(--line-2); background: var(--surface-2); box-shadow: none; transform: translate(-50%, -50%); }
}
@keyframes test-on {
  0%, 30% { border-color: rgba(0, 144, 247, .55); background: var(--surface-2); box-shadow: 0 20px 40px -24px rgba(0, 95, 253, .75); }
  40%, 100% { border-color: var(--line); background: var(--surface); box-shadow: none; }
}
@keyframes node-on {
  0%, 100% { border-color: var(--line); box-shadow: none; }
  6%, 55% { border-color: rgba(0, 144, 247, .75); box-shadow: 0 0 0 4px rgba(0, 144, 247, .12), 0 12px 30px -10px rgba(0, 144, 247, .55); }
  70% { border-color: var(--line); box-shadow: none; }
}
@keyframes check-on {
  0%, 4% { opacity: 0; transform: scale(.5); }
  10%, 80% { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: scale(.5); }
}
@keyframes packet {
  0% { top: 0; opacity: 0; }
  3% { opacity: 1; }
  14% { top: 100%; opacity: 1; }
  17%, 100% { top: 100%; opacity: 0; }
}
@keyframes notif {
  0% { transform: translateY(-140%); opacity: 0; }
  8%, 55% { transform: none; opacity: 1; }
  65%, 100% { transform: translateY(-140%); opacity: 0; }
}
@keyframes cursor-move {
  0% { left: 86%; top: 92%; opacity: 0; transform: none; }
  8% { opacity: 1; }
  36% { left: 14%; top: 60%; transform: none; }
  40% { left: 14%; top: 60%; transform: scale(.82); }
  45% { left: 14%; top: 60%; transform: none; }
  75% { left: 60%; top: 34%; opacity: 1; }
  90%, 100% { left: 86%; top: 92%; opacity: 0; }
}
@keyframes cta-press { 0%, 38%, 46%, 100% { transform: none; } 41% { transform: scale(.94); } }
@keyframes cta-ring { 0%, 40% { opacity: 0; transform: none; } 42% { opacity: 1; transform: none; } 60%, 100% { opacity: 0; transform: scale(1.35); } }

/* Scroll reveal: main.js adds .js to <html>, so content stays visible without JavaScript */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .3s ease, background-color .3s ease;
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Headings rise word by word */
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 45ms + 120ms); }
.js .is-visible [data-split] .w > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js [data-split] .w > span { opacity: 1; transform: none; }
  .toast:first-child { opacity: 1; transform: none; }
  .node-check { opacity: 1; transform: none; }
  .line-chart .line, .done-check circle, .done-check path { stroke-dashoffset: 0; }
  .cursor { display: none; }
  .js .step:not(.is-on) { opacity: 1; }
}
