/* ==========================================================================
   Adivo — site styles
   Brand guidelines v3.0. Tokens are copied verbatim from the original
   landing bundle so the hero renders exactly as designed.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------ */
:root {
  /* palette (guide §04) */
  --adivo-blue: #1F4E95;
  --ink: #101011;
  --data-blue: #3F769F;
  --slate: #7A7D83;
  --silver: #B8B9BB;
  --hairline: #E6E7E9;
  --mist: #E8F0F5;
  --frost: #F4F8FA;
  --white: #FFFFFF;
  --adivo-blue-hover: #1A4380;
  --adivo-blue-press: #16396D;
  --ink-2: rgba(16, 16, 17, 0.72);   /* secondary body text, still AA */
  --hero-sky: #3D7FD0;               /* hero fallback behind the video */

  /* type (guide §05) */
  --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --text-label-size: 11px;
  --text-label-tracking: 0.14em;

  /* space + layout (guide §06) */
  --margin-outer: 8%;
  --content-max: 1200px;
  --section-pad: clamp(88px, 10vw, 144px);

  /* motion: calm, functional; fades and small moves, no bounces */
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

/* ---- Base -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; background: #101011; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: #FFFFFF; text-decoration: none; }
a:hover { color: #FFFFFF; text-decoration: none; }
::selection { background: var(--mist); color: var(--ink); }

img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

[hidden] { display: none !important; }

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

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 12px 20px; border-radius: 999px;
  background: var(--white); color: var(--adivo-blue);
  font-size: 14px; font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms var(--ease);
}
.skip-link:focus { transform: none; color: var(--adivo-blue); }

:focus-visible { outline: 2px solid var(--adivo-blue); outline-offset: 3px; }
.on-dark :focus-visible,
.hero :focus-visible,
.site-header:not(.is-light) :focus-visible { outline-color: #FFFFFF; }

/* ==========================================================================
   Header + nav — values match the original landing page exactly at the top.
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  padding: 28px 4%;
  transition: padding 260ms var(--ease);
  pointer-events: none;            /* only the pill itself takes clicks */
}
.site-header.is-scrolled { padding-top: 16px; }

.nav {
  pointer-events: auto;
  box-sizing: content-box;          /* original page had no box-sizing reset: 1280 + padding + border */
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  background: rgba(255, 255, 255, 0.32);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 8px;
  box-shadow: 0 8px 32px rgba(16, 16, 17, 0.10);
  transition: background 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}

.nav-brand {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 9px 22px 9px 14px;
}
.nav-brand img { height: 34px; width: auto; display: block; }
.nav-brand span {
  font-size: 25px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.8); line-height: 1;
  transition: color 240ms var(--ease);
}

.nav-links {
  position: relative; flex: 1; min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}

.nav-indicator {
  position: absolute; top: 50%; transform: translateY(-50%);
  height: 38px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  z-index: 0; pointer-events: none;
  left: 0; width: 0; opacity: 0;
  transition: left 260ms cubic-bezier(.2,0,0,1), width 260ms cubic-bezier(.2,0,0,1), opacity 200ms, background 240ms var(--ease), border-color 240ms var(--ease);
}

.nav-item {
  position: relative; z-index: 1;
  padding: 13px 20px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; white-space: nowrap; line-height: 1;
  color: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  transition: transform 150ms cubic-bezier(.2,0,0,1), color 150ms cubic-bezier(.2,0,0,1), background 240ms var(--ease), border-color 240ms var(--ease);
}
.nav-item:hover { color: #FFFFFF; transform: scale(1.08); }
.nav-cta { flex: none; border: 1px solid transparent; padding: 12px 19px; }
.nav-cta.is-current { background: rgba(255, 255, 255, 0.22); border-color: rgba(255, 255, 255, 0.35); color: #FFFFFF; }

/* Light variant — when the pill floats over a white section */
.site-header.is-light .nav {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(16, 16, 17, 0.08);
  box-shadow: 0 8px 32px rgba(16, 16, 17, 0.08);
}
.site-header.is-light .nav-brand span { color: rgba(16, 16, 17, 0.86); }
.site-header.is-light .nav-item { color: rgba(16, 16, 17, 0.62); }
.site-header.is-light .nav-item:hover { color: var(--ink); }
.site-header.is-light .nav-indicator { background: var(--mist); border-color: rgba(31, 78, 149, 0.16); }
.site-header.is-light .nav-cta.is-current { background: var(--mist); border-color: rgba(31, 78, 149, 0.16); color: var(--adivo-blue); }

/* Compact menu — phones and narrow tablets only */
.nav-menu-btn {
  display: none;
  margin-left: auto; flex: none;
  padding: 13px 20px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1;
  color: #FFFFFF; cursor: pointer;
  transition: background 240ms var(--ease), border-color 240ms var(--ease), color 240ms var(--ease);
}
.site-header.is-light .nav-menu-btn { background: var(--mist); border-color: rgba(31, 78, 149, 0.16); color: var(--ink); }

.mobile-menu {
  pointer-events: auto;
  max-width: 1280px; margin: 10px auto 0;
  display: grid; gap: 2px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid rgba(16, 16, 17, 0.08);
  border-radius: 28px;
  box-shadow: 0 16px 48px rgba(16, 16, 17, 0.16);
  opacity: 0; transform: translateY(-8px); visibility: hidden;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s linear 200ms;
}
.mobile-menu.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
.mobile-menu a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px; border-radius: 20px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink);
}
.mobile-menu a:hover, .mobile-menu a:focus-visible { background: var(--frost); color: var(--ink); }
.mobile-menu a span { color: var(--slate); letter-spacing: 0; }
.mobile-menu .mobile-menu-cta { background: var(--adivo-blue); color: #FFFFFF; margin-top: 6px; }
.mobile-menu .mobile-menu-cta:hover, .mobile-menu .mobile-menu-cta:focus-visible { background: var(--adivo-blue-hover); color: #FFFFFF; }
.mobile-menu .mobile-menu-cta span { color: rgba(255, 255, 255, 0.8); }

/* ==========================================================================
   Hero — exact values from the original landing page
   ========================================================================== */
.hero {
  position: sticky; top: 0; width: 100%;   /* holds still while the next section glides over it */
  height: 100vh; min-height: 640px;
  overflow: hidden;
  background: var(--hero-sky);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}
.hero-video, .sky-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover;
  transform: scale(1.5); transform-origin: center bottom;
}
.hero-content {
  position: relative; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #FFFFFF;
  padding: 0 8%;
}
.hero h1 {
  margin: 0;
  font-size: clamp(44px, 5vw, 68px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.14;
  color: #FFFFFF; text-wrap: balance;
}
.hero-sub {
  margin: 26px 0 0;
  font-size: 18px; font-weight: 400; line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
}
.hero-sub strong { font-weight: 700; }
.hero-actions { display: flex; gap: 16px; margin-top: 42px; align-items: center; }
.hero-kicker {
  margin-top: 30px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.8);
}

/* Pill buttons — the hero's button language, reused site-wide */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 15px; font-weight: 700; line-height: 1.5; letter-spacing: 0;
  border-radius: 999px; white-space: nowrap; cursor: pointer;
  border: 0;
}
.btn-white {
  background: #FFFFFF; color: #1F4E95;
  padding: 15px 30px;
  transition: transform 180ms cubic-bezier(.2,0,0,1), box-shadow 180ms cubic-bezier(.2,0,0,1), background 180ms cubic-bezier(.2,0,0,1);
}
.btn-white:hover { color: #1F4E95; background: #F4F8FA; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16, 16, 17, 0.18); }
.btn-glass {
  background: transparent; color: #FFFFFF;
  padding: 14px 29px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  transition: transform 180ms cubic-bezier(.2,0,0,1), background 180ms cubic-bezier(.2,0,0,1), border-color 180ms cubic-bezier(.2,0,0,1), backdrop-filter 180ms cubic-bezier(.2,0,0,1);
}
.btn-glass:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.95); background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transform: translateY(-2px);
}
.btn-blue {
  background: var(--adivo-blue); color: #FFFFFF;
  padding: 15px 30px;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}
.btn-blue:hover { color: #FFFFFF; background: var(--adivo-blue-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(31, 78, 149, 0.28); }
.btn-blue:active { background: var(--adivo-blue-press); transform: none; box-shadow: none; }
.btn-line {
  background: transparent; color: var(--ink);
  padding: 14px 29px;
  border: 1px solid rgba(16, 16, 17, 0.18);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}
.btn-line:hover { color: var(--ink); border-color: var(--ink); background: var(--frost); transform: translateY(-2px); }
.btn .arrow { transition: transform 180ms var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { position: relative; padding: var(--section-pad) var(--margin-outer); background: var(--white); color: var(--ink); }
.section--frost { background: var(--frost); }
.section--ink { background: var(--ink); color: #FFFFFF; }
.wrap { max-width: var(--content-max); margin: 0 auto; }

/* Light-section links */
.section a:not(.btn), .site-footer a:not(.btn) { color: var(--ink); }

.kicker {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 28px;
  font-size: var(--text-label-size); font-weight: 700;
  letter-spacing: var(--text-label-tracking); text-transform: uppercase;
  color: var(--slate);
}
.kicker-num { color: var(--adivo-blue); }
.kicker::after { content: ""; flex: 0 0 40px; height: 1px; background: var(--hairline); }
.on-dark .kicker { color: rgba(255, 255, 255, 0.72); }
.on-dark .kicker-num { color: #FFFFFF; }
.on-dark .kicker::after { background: rgba(255, 255, 255, 0.28); }

.sec-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px 64px; align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.sec-head .kicker { grid-column: 1 / -1; margin-bottom: 0; }
.display {
  margin: 0;
  font-size: clamp(40px, 4.6vw, 64px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.05;
  text-wrap: balance;
}
.lede {
  margin: 0; max-width: 46ch;
  font-size: 18px; line-height: 1.55; color: var(--ink-2);
}
.on-dark .lede { color: rgba(255, 255, 255, 0.82); }

/* ---- Why Adivo: card row ---- */
.why {
  z-index: 1;
  padding: clamp(56px, 6vw, 88px) 4% clamp(120px, 14vw, 200px);   /* room for an opened card */
  border-radius: var(--r, 36px) var(--r, 36px) 0 0;   /* flattens as it reaches the top */
  /* lift shadow fades in as the sheet starts moving (--lift: 0 at rest) */
  box-shadow: 0 -20px 60px rgba(16, 16, 17, calc(0.10 * var(--lift, 0)));
}
.no-js .why { --lift: 1; }
.why .wrap { max-width: 1298px; }   /* same width as the nav pill */
.vcards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start;
  transition: grid-template-columns 280ms cubic-bezier(.2,0,0,1);
}
/* Hovered card widens like the original (380 → 440px); its neighbours give way. */
@media (min-width: 901px) {
  .vcards[data-open="0"] { grid-template-columns: minmax(0, 1.16fr) minmax(0, .92fr) minmax(0, .92fr); }
  .vcards[data-open="1"] { grid-template-columns: minmax(0, .92fr) minmax(0, 1.16fr) minmax(0, .92fr); }
  .vcards[data-open="2"] { grid-template-columns: minmax(0, .92fr) minmax(0, .92fr) minmax(0, 1.16fr); }
}
/* Cards keep a fixed footprint; an expanded card floats over the space below
   instead of pushing the rest of the page down. */
.vcard { position: relative; will-change: transform, opacity; }
.vcards.is-slotted .vcard { height: var(--slot-h); }
.vcards.is-slotted .vcard-inner { position: absolute; top: 0; left: 0; right: 0; }
.vcard.is-open { z-index: 3; }

/* ---- Card shell (values from "Time Saved Card") ---- */
.vcard-inner {
  display: flex; flex-direction: column;
  background: #FFFFFF; border: 1px solid #E6E7E9; border-radius: 20px; padding: 12px;
  box-shadow: 0 0 0 rgba(16, 16, 17, 0);
  transition: box-shadow 280ms cubic-bezier(.2,0,0,1), transform 280ms cubic-bezier(.2,0,0,1);
}
.vcard.is-open .vcard-inner { box-shadow: 0 16px 40px rgba(16, 16, 17, .10); transform: translateY(-4px); }

.panel {
  background: #F4F8FA; border: 1px solid #E6E7E9; border-radius: 14px;
  padding: 16px 16px 14px 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.panel-head { display: flex; justify-content: space-between; align-items: center; padding-left: 32px; }
.panel-label { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #7A7D83; white-space: nowrap; }
.legend { display: flex; gap: 12px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7A7D83; }
.legend > span { display: flex; align-items: center; gap: 4px; }
.legend i { width: 8px; height: 8px; border-radius: 1px; }
.lg-with { background: #1F4E95; }
.lg-without { border: 1px dashed #7A7D83; }
.stage { position: relative; height: 220px; transition: height 280ms cubic-bezier(.2,0,0,1); }
.vcard.is-open .stage { height: 270px; }
.panel-foot { display: flex; gap: 5px; padding-left: 32px; font-size: 10px; font-weight: 700; color: #7A7D83; }

.vcard-body { position: relative; padding: 24px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.vcard-body h3 { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.body-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.body-row p { margin: 0; font-size: 15px; line-height: 1.5; color: #7A7D83; text-wrap: pretty; }
.vcard-btn {
  flex: none; width: 36px; height: 36px; border: 0; border-radius: 8px;
  background: #E8F0F5; color: #1F4E95;
  font: inherit; font-size: 18px; font-weight: 700; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 160ms cubic-bezier(.2,0,0,1);
}
.vcard-btn:hover { background: #DCE7EF; }

.details { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 280ms cubic-bezier(.2,0,0,1), opacity 200ms cubic-bezier(.2,0,0,1); }
.vcard.is-open .details { grid-template-rows: 1fr; opacity: 1; }
.details > div { overflow: hidden; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #E6E7E9; margin-top: 16px; padding-top: 16px; gap: 16px; }
.stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat-label { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #7A7D83; }
.stat-value { font-size: 22px; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; color: #101011; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-value.is-key { color: #1F4E95; }
.stat-unit { font-size: 12px; color: #7A7D83; }
.details-note { margin: 16px 0 0; font-size: 12px; line-height: 1.5; color: #7A7D83; }

/* ---- Card 1: hours back ---- */
.hc-plot { position: absolute; left: 32px; right: 0; top: 28px; bottom: 0; }
.hc-line { position: absolute; left: 0; right: 0; border-top: 1px solid; pointer-events: none; }
.hc-tick { position: absolute; left: -32px; width: 26px; text-align: right; transform: translateY(50%); font-size: 10px; line-height: 1.5; color: #7A7D83; font-variant-numeric: tabular-nums; pointer-events: none; }
.hc-mark { position: absolute; top: -22px; bottom: 0; border-left: 1px dashed #B8B9BB; pointer-events: none; }
.hc-mark-pill {
  position: absolute; top: -28px; transform: translateX(-50%);
  font-size: 9px; line-height: 1.5; font-weight: 700; letter-spacing: .08em; color: #7A7D83;
  background: #FFFFFF; border: 1px solid #E6E7E9; border-radius: 999px; padding: 2px 6px; white-space: nowrap; pointer-events: none;
}
.hc-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 5px; }
.hc-col { flex: 1; height: 100%; position: relative; cursor: pointer; }
.hc-ghost {
  position: absolute; left: 0; right: 0; bottom: 0;
  border: 1px dashed #B8B9BB; border-bottom: 0; border-radius: 2px 2px 0 0;
  opacity: 0; transition: opacity 200ms;
}
.hc-fill {
  position: absolute; left: 0; right: 0; bottom: 0; border-radius: 2px 2px 0 0;
  transform-origin: bottom;
  transition: height 600ms cubic-bezier(.2,0,0,1), background 160ms, transform 600ms cubic-bezier(.2,0,0,1) var(--d, 0ms);
}
.hc-base { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none; transition: background 200ms; }
.hc-pill {
  position: absolute; transform: translate(-50%, -8px);
  background: #1F4E95; color: #FFFFFF;
  font-size: 11px; line-height: 1.5; font-weight: 700; letter-spacing: .06em;
  padding: 5px 10px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  transition: left 160ms cubic-bezier(.2,0,0,1), bottom 160ms cubic-bezier(.2,0,0,1), opacity 300ms ease 500ms;
}
.hc-months > span { flex: 1; text-align: center; transition: color 160ms; }

/* ---- Card 2: workflow ---- */
.wf-stage { display: flex; flex-direction: column; padding: 4px 4px 0 32px; }
.wf-q { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: #101011; }
.wf-q img { width: 18px; height: auto; }
.wf-box {
  flex: 1; min-height: 0; overflow: hidden;
  padding: 12px 14px; background: #FFFFFF; border: 1px solid #E6E7E9; border-radius: 10px;
  font-size: 13px; line-height: 1.55; color: rgba(16, 16, 17, .72);
  transition: border-color 200ms;
}
.wf-caret { display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -0.15em; background: #1F4E95; animation: wf-blink 1s steps(1) infinite; }
@keyframes wf-blink { 50% { opacity: 0; } }
.wf-run { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; min-height: 34px; }
.run-btn {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border: 0; border-radius: 999px; cursor: pointer;
  background: #1F4E95; color: #FFFFFF; font: inherit; font-size: 12px; font-weight: 700; line-height: 1.4;
  box-shadow: 0 6px 16px rgba(31, 78, 149, .28);
  transition: background 160ms, transform 160ms cubic-bezier(.2,0,0,1), box-shadow 160ms;
}
.run-btn:hover { background: #1A4380; transform: translateY(-1px); }
.run-btn:active { transform: none; }
.run-btn b { font-size: 11px; }
.wf-steps { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.wf-step {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px; border-radius: 999px; white-space: nowrap;
  background: #FFFFFF; border: 1px solid #E6E7E9;
  font-size: 10px; font-weight: 700; letter-spacing: .04em; color: #101011; line-height: 1.4; cursor: pointer;
  opacity: 0; transform: translateY(4px);
  transition: opacity 260ms cubic-bezier(.2,0,0,1), transform 260ms cubic-bezier(.2,0,0,1), background 160ms, color 160ms, border-color 160ms;
}
.wf-step i { font-style: normal; color: #1F4E95; transition: color 160ms; }
.wf-step.is-shown { opacity: 1; transform: none; }
.wf-step.is-sel { background: #1F4E95; border-color: #1F4E95; color: #FFFFFF; }
.wf-step.is-sel i { color: #FFFFFF; }
.wf-foot > span { flex: 1; text-align: left; letter-spacing: .06em; text-transform: uppercase; transition: color 160ms; }
.wf-foot > span.is-sel { color: #101011; }
/* without */
.vcard.is-without .wf-box { border-style: dashed; border-color: #B8B9BB; }
.vcard.is-without .wf-caret { background: #B8B9BB; }
.vcard.is-without .run-btn { background: #B8B9BB; box-shadow: none; cursor: default; transform: none; }
.vcard.is-without .wf-step { border-style: dashed; border-color: #B8B9BB; color: #7A7D83; background: transparent; }
.vcard.is-without .wf-step i { color: #B8B9BB; }

/* ---- Card 3: trace ---- */
.tr-svg { position: absolute; left: 32px; right: 0; top: 8px; bottom: 8px; width: calc(100% - 32px); height: calc(100% - 16px); overflow: visible; }
.tr-svg path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.tr-with .tr-s { stroke: url(#tr-grad); stroke-width: 7; opacity: .55; stroke-dasharray: 1; stroke-dashoffset: 0; transition: opacity 200ms, stroke-width 200ms, stroke-dashoffset 1100ms cubic-bezier(.2,0,0,1); }
.tr-with .tr-s:nth-child(3) { transition-delay: 0ms, 0ms, 90ms; }
.tr-with .tr-s:nth-child(4) { transition-delay: 0ms, 0ms, 180ms; }
.tr-with .tr-s:nth-child(5) { transition-delay: 0ms, 0ms, 270ms; }
.tr-with .tr-out { stroke: #1F4E95; stroke-width: 10; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 500ms cubic-bezier(.2,0,0,1) 900ms, opacity 200ms; }
.tr-stage.has-sel .tr-s { opacity: .14; }
.tr-stage.has-sel .tr-s.is-sel { opacity: 1; stroke-width: 9; }
.tr-without path { stroke: #B8B9BB; stroke-width: 2; stroke-dasharray: 5 5; opacity: 0; transition: opacity 260ms; }
.tr-hits path { stroke: transparent; stroke-width: 26; pointer-events: stroke; cursor: pointer; }
.tr-src {
  position: absolute; left: 32px; transform: translate(-4px, -50%);
  padding: 3px 8px; border-radius: 999px; background: #FFFFFF; border: 1px solid #E6E7E9;
  font-size: 10px; font-weight: 700; letter-spacing: .04em; line-height: 1.4; color: #101011; white-space: nowrap; pointer-events: none;
  transition: opacity 200ms, background 160ms, color 160ms, border-color 160ms;
}
.tr-src.is-sel { background: #1F4E95; border-color: #1F4E95; color: #FFFFFF; }
.tr-stage.has-sel .tr-src:not(.is-sel) { opacity: .45; }
.tr-pill {
  position: absolute; right: 0; top: 50%; transform: translateY(calc(-50% - 22px));
  background: #1F4E95; color: #FFFFFF;
  font-size: 11px; line-height: 1.5; font-weight: 700; letter-spacing: .06em;
  padding: 5px 10px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  transition: opacity 300ms ease 900ms, background 200ms;
}
.tr-foot { justify-content: space-between; letter-spacing: .14em; text-transform: uppercase; }
.vcard.is-without .tr-with { opacity: 0; }
.vcard.is-without .tr-without path { opacity: 1; }
.vcard.is-without .tr-src { border-style: dashed; border-color: #B8B9BB; color: #7A7D83; }
.vcard.is-without .tr-pill { background: #7A7D83; }
.tr-with { transition: opacity 260ms; }

/* Pre-entrance states (JS only; without JS everything shows finished) */
.js .vcard:not(.is-in) .hc-fill { transform: scaleY(0); }
.js .vcard:not(.is-in) .hc-pill,
.js .vcard:not(.is-in) .tr-pill { opacity: 0; }
.js .vcard:not(.is-in) .tr-with .tr-s,
.js .vcard:not(.is-in) .tr-with .tr-out { stroke-dashoffset: 1; }

/* Hero dims a touch as the white sheet covers it (fully transparent at rest) */
.hero-dim { position: absolute; inset: 0; background: #101011; opacity: 0; pointer-events: none; }

/* ---- Mission band ---- */
.mission { text-align: left; }
.mission-quote {
  margin: 0; max-width: 20ch;
  font-size: clamp(36px, 5.2vw, 76px); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.04;
  text-wrap: balance;
}
.mission-note {
  display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 72px); padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.mission-note p { margin: 0; max-width: 52ch; color: rgba(255, 255, 255, 0.72); }
.mission-sign { font-size: var(--text-label-size); font-weight: 700; letter-spacing: var(--text-label-tracking); text-transform: uppercase; color: rgba(255, 255, 255, 0.6); white-space: nowrap; }

/* ---- Roles ---- */
.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--hairline); }
.role { padding: 32px 28px 8px 0; }
.role + .role { padding-left: 28px; border-left: 1px solid var(--hairline); }
.role h3 { margin: 0 0 28px; font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.role dl { margin: 0; display: grid; gap: 20px; }
.role dt {
  margin-bottom: 6px;
  font-size: var(--text-label-size); font-weight: 700; letter-spacing: var(--text-label-tracking);
  text-transform: uppercase; color: var(--slate);
}
.role dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.role dd.value { color: var(--ink); font-weight: 700; }

/* ---- Workflows list ---- */
.flows { border-top: 1px solid var(--ink); }
.flow {
  display: grid; grid-template-columns: 72px minmax(0, 4fr) minmax(0, 6fr) auto;
  align-items: baseline; gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--hairline);
  transition: background 160ms var(--ease), box-shadow 160ms var(--ease);
}
.flow:hover { background: var(--white); box-shadow: -20px 0 0 var(--white), 20px 0 0 var(--white); }
.flow-num { font-size: var(--text-label-size); font-weight: 700; letter-spacing: var(--text-label-tracking); color: var(--slate); transition: color 160ms var(--ease); }
.flow:hover .flow-num { color: var(--adivo-blue); }
.flow h3 { margin: 0; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; }
.flow p { margin: 0; color: var(--ink-2); max-width: 48ch; }
.tag {
  justify-self: end;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--hairline);
  font-size: 10px; font-weight: 700; letter-spacing: var(--text-label-tracking); text-transform: uppercase;
  color: var(--slate); white-space: nowrap;
}
.flows-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  margin-top: 48px;
}
.flows-foot p { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }

/* ---- How it works: the adaptive path ---- */
.path { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 40px; }
.path-track, .path-fill {
  position: absolute; top: 6px; left: 7px; width: calc(75% + 18px); height: 2px; border-radius: 2px;
}
.path-track { background: var(--hairline); }
.path-fill { background: var(--adivo-blue); width: 0; transition: width 1400ms var(--ease) 200ms; }
.path.is-visible .path-fill { width: calc(75% + 18px); }
.step { position: relative; }
.step-dot {
  position: absolute; top: -40px; left: 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--frost); border: 2px solid var(--silver);
  transition: background 300ms var(--ease), border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.path.is-visible .step-dot { background: var(--adivo-blue); border-color: var(--adivo-blue); box-shadow: 0 0 0 6px rgba(31, 78, 149, 0.12); }
.path.is-visible .step:nth-child(3) .step-dot { transition-delay: 200ms; }
.path.is-visible .step:nth-child(4) .step-dot { transition-delay: 640ms; }
.path.is-visible .step:nth-child(5) .step-dot { transition-delay: 1080ms; }
.path.is-visible .step:nth-child(6) .step-dot { transition-delay: 1520ms; }
.step-label {
  margin: 0 0 14px;
  font-size: var(--text-label-size); font-weight: 700; letter-spacing: var(--text-label-tracking);
  text-transform: uppercase; color: var(--adivo-blue);
}
.step h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--ink-2); max-width: 30ch; }

.principles {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  margin-top: clamp(64px, 8vw, 104px); padding-top: 32px;
  border-top: 1px solid var(--hairline);
}
.principles h4 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.principles p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* ---- Q&A ---- */
.qa-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.qa-intro { position: sticky; top: 140px; }
.qa-intro .lede { margin-top: 24px; }
.qa-intro .btn { margin-top: 36px; }
.qa-list { border-top: 1px solid var(--ink); }
.qa-item { border-bottom: 1px solid var(--hairline); }
.qa-q {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  width: 100%; padding: 26px 0;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-size: 19px; font-weight: 700; line-height: 1.35; letter-spacing: -0.005em; color: var(--ink);
}
.qa-q:hover { color: var(--adivo-blue); }
.qa-icon {
  position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--hairline);
  transition: transform 260ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease);
}
.qa-icon::before, .qa-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px;
  background: currentColor; border-radius: 1px;
}
.qa-icon::after { transform: rotate(90deg); transition: transform 260ms var(--ease); }
.qa-item.is-open .qa-icon { background: var(--adivo-blue); border-color: var(--adivo-blue); color: #FFFFFF; transform: rotate(180deg); }
.qa-item.is-open .qa-icon::after { transform: rotate(0deg); }
.qa-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease); }
.qa-item.is-open .qa-a { grid-template-rows: 1fr; }
.qa-a > div { overflow: hidden; }
.qa-a p { margin: 0; padding: 0 56px 28px 0; max-width: 62ch; color: var(--ink-2); }

/* ---- Get access (sky band) ---- */
.access {
  position: relative; overflow: hidden;
  padding: var(--section-pad) var(--margin-outer) calc(var(--section-pad) + 40px);
  background: var(--hero-sky); color: #FFFFFF;
}
.access .sky-video { z-index: 0; }
.access-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start;
}
.access-copy { padding-top: 12px; }
.access-copy .display { color: #FFFFFF; }
.access-copy .lede { margin-top: 24px; color: rgba(255, 255, 255, 0.92); }
.access-points { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 14px; }
.access-points li { display: flex; gap: 14px; align-items: baseline; font-size: 16px; color: rgba(255, 255, 255, 0.92); }
.access-points li::before { content: "→"; color: #FFFFFF; font-weight: 700; }

.card {
  position: relative;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 32px;
  padding: clamp(24px, 3vw, 40px);
  box-shadow: 0 24px 64px rgba(16, 16, 17, 0.18);
  color: var(--ink);
}

/* ---- Form ---- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: var(--text-label-size); font-weight: 700; letter-spacing: var(--text-label-tracking);
  text-transform: uppercase; color: var(--slate);
}
.field label .opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.input {
  width: 100%; min-width: 0; height: 50px;
  padding: 0 20px;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--silver); border-radius: 999px;
  font-size: 16px; line-height: 1.5;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--slate); opacity: 1; }
.input:hover { border-color: var(--slate); }
.input:focus { outline: none; border-color: var(--adivo-blue); box-shadow: 0 0 0 3px rgba(31, 78, 149, 0.16); }
select.input {
  padding-right: 44px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 24px) 50%, calc(100% - 19px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
select.input:invalid { color: var(--slate); }
textarea.input { height: auto; min-height: 112px; padding: 14px 20px; border-radius: 24px; resize: vertical; }
.input[aria-invalid="true"] { border-color: var(--ink); border-width: 2px; padding-left: 19px; }
textarea.input[aria-invalid="true"] { padding: 13px 19px; }
.field-error { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink); }
.field-error::before { content: "× "; }
.field-error:empty { display: none; }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { grid-column: 1 / -1; display: grid; gap: 14px; margin-top: 6px; }
.form-actions .btn { width: 100%; padding-top: 16px; padding-bottom: 16px; }
.form-note { margin: 0; font-size: 13px; color: var(--slate); text-align: center; }
.form-alert {
  grid-column: 1 / -1;
  margin: 0; padding: 14px 18px; border-radius: 16px;
  background: var(--frost); border: 1px solid var(--hairline);
  font-size: 14px; color: var(--ink);
}
.form-alert strong { display: block; margin-bottom: 2px; }
.form-alert[hidden] { display: none; }

.form-success { text-align: left; }
.form-success[hidden] { display: none; }
.success-mark {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--adivo-blue); color: #FFFFFF;
  font-size: 22px; font-weight: 700; line-height: 1;
}
.form-success h3 { margin: 24px 0 10px; font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; }
.form-success p { margin: 0; color: var(--ink-2); }
.success-summary {
  margin: 24px 0 0; padding: 18px 20px; border-radius: 20px;
  background: var(--frost); border: 1px solid var(--hairline);
  display: grid; grid-template-columns: auto 1fr; gap: 6px 18px;
  font-size: 14px;
}
.success-summary dt { color: var(--slate); }
.success-summary dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.success-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.success-actions .btn { padding: 12px 22px; font-size: 14px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--white); color: var(--ink); }
.footer-main {
  display: grid; grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 2fr)) minmax(0, 3fr); gap: 48px;
  box-sizing: content-box;
  padding: 88px var(--margin-outer) 72px;
  max-width: var(--content-max); margin: 0 auto;
}
.footer-sign { display: flex; align-items: center; gap: 14px; }
.footer-sign img { width: 48px; height: auto; }
.footer-sign strong { display: block; font-size: 26px; line-height: 1; font-weight: 700; letter-spacing: -0.01em; }
.footer-sign small {
  display: block; margin-top: 8px;
  font-size: 10px; font-weight: 700; letter-spacing: var(--text-label-tracking); text-transform: uppercase; color: var(--slate);
}
.footer-desc { margin: 28px 0 0; max-width: 34ch; font-size: 15px; color: var(--ink-2); }
.footer-col h4 {
  margin: 6px 0 20px;
  font-size: var(--text-label-size); font-weight: 700; letter-spacing: var(--text-label-tracking);
  text-transform: uppercase; color: var(--slate);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a:not(.btn) { font-size: 15px; color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 220ms var(--ease), color 150ms var(--ease); }
.footer-col a:not(.btn):hover { color: var(--adivo-blue); background-size: 100% 1px; }
.footer-tagline { margin: 6px 0 0; font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.footer-tagline + .btn { margin-top: 24px; }
.footer-bar {
  background: var(--ink); color: rgba(255, 255, 255, 0.64);
  padding: 22px var(--margin-outer);
}
.footer-bar-inner {
  max-width: var(--content-max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px;
}
.site-footer .footer-bar a { color: #FFFFFF; font-weight: 700; }
.site-footer .footer-bar a:hover { color: #FFFFFF; }
.footer-bar a .arrow { display: inline-block; transition: transform 180ms var(--ease); }
.footer-bar a:hover .arrow { transform: translateY(-3px); }

/* ==========================================================================
   Reveal on scroll — calm fades and small moves only
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   404 page
   ========================================================================== */
.notfound {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--margin-outer); background: var(--white); color: var(--ink);
}
.notfound .wrap { width: 100%; }
.notfound img { width: 56px; height: auto; margin-bottom: 48px; }
.notfound .lede { margin-top: 20px; }
.notfound .btn { margin-top: 40px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .vcards { gap: 18px; }
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role:nth-child(3) { padding-left: 0; border-left: 0; }
  .role:nth-child(n+3) { border-top: 1px solid var(--hairline); margin-top: 8px; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .footer-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .access-inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .access-copy { max-width: 640px; }
}

@media (max-width: 900px) {
  .sec-head { grid-template-columns: minmax(0, 1fr); }
  .vcards { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; gap: 20px; }
  .why { --r-max: 28px; }
  .flow { grid-template-columns: 48px minmax(0, 1fr) auto; row-gap: 10px; }
  .flow p { grid-column: 2 / -1; }
  .path { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 0 0 0 44px; }
  .path-track, .path-fill { top: 6px; left: 6px; bottom: 40px; right: auto; width: 2px; height: auto; }
  .path-fill { height: 0; transition: height 1400ms var(--ease) 200ms; }
  .path.is-visible .path-fill { width: 2px; height: calc(100% - 46px); }
  .step-dot { top: 4px; left: -44px; }
  .qa-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .qa-intro { position: static; }
}

/* Compact nav: the full pill needs about 680px */
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-menu-btn { display: inline-flex; }
  .nav { gap: 8px; }
  .nav-brand { padding: 7px 14px 7px 10px; }
  .nav-brand img { height: 30px; }
  .nav-brand span { font-size: 21px; }
  .site-header { padding: 16px 16px; }
}

@media (max-width: 640px) {
  :root { --margin-outer: 20px; }
  .hero-content { padding-bottom: 14vh; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; gap: 12px; }
  .hero-sub { font-size: 17px; }
  .lede { font-size: 17px; }
  .roles { grid-template-columns: minmax(0, 1fr); }
  .role, .role + .role { padding: 28px 0 8px; border-left: 0; }
  .role + .role { border-top: 1px solid var(--hairline); margin-top: 8px; }
  .flow { grid-template-columns: minmax(0, 1fr) auto; padding: 24px 0; row-gap: 8px; }
  .flow-num { grid-row: 1; grid-column: 1; align-self: center; }
  .tag { grid-row: 1; grid-column: 2; }
  .flow h3 { grid-row: 2; grid-column: 1 / -1; }
  .flow p { grid-row: 3; grid-column: 1 / -1; }
  .flow:hover { box-shadow: -12px 0 0 var(--white), 12px 0 0 var(--white); }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .form { grid-template-columns: minmax(0, 1fr); }
  .card { border-radius: 26px; }
  .qa-q { font-size: 17px; padding: 22px 0; }
  .qa-a p { padding-right: 0; }
  .footer-main { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 64px; padding-bottom: 56px; }
  .footer-bar-inner { flex-direction: column; align-items: flex-start; }
  .mission-note { flex-direction: column; align-items: flex-start; }
}

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