/* Ascend AI Solutions. Version 3.
   Structure and motion follow the reference build. Colours and copy are ours.
   Palette: navy #0F3D6B, sky #4795C8, light sky #B9DAF6, cloud #E8F4FF / #EAF4FD,
   paper #F4F7FA, charcoal #1B1D21. Accent gradient #7FC8F8 to #E8F4FF. */

:root {
  --navy: #0f3d6b;
  --navy-deep: #0a2e52;
  --sky: #4795c8;
  --light: #b9daf6;
  --cloud: #e8f4ff;
  --cloud-2: #eaf4fd;
  --paper: #f4f7fa;
  --char: #1b1d21;
  --char-2: #2a2d33;
  --muted: #5a636e;
  --line: rgba(15, 61, 107, 0.1);
  --line-dark: rgba(255, 255, 255, 0.12);
  --grad-a: #7fc8f8;
  --grad-b: #e8f4ff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Bricolage Grotesque", "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow-soft: 0 26px 60px rgba(15, 61, 107, 0.12);
  --shadow-card: 0 18px 44px rgba(15, 61, 107, 0.1);
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--char);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (min-width: 900px) {
  body { font-size: 18px; }
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, p, ul, ol, figure, blockquote, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

.dark :focus-visible,
.hero :focus-visible,
.closing :focus-visible,
.site-footer :focus-visible,
.nav :focus-visible { outline-color: var(--cloud); }

::selection { background: var(--sky); color: #fff; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 90;
  transform: translateY(-220%);
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--char);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 61, 107, 0.2);
}

.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 900px) {
  .wrap { padding-inline: 40px; }
}

.grad {
  font-style: italic;
  background-image: linear-gradient(100deg, var(--grad-a) 0%, var(--grad-b) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* background-clip: text only paints inside the box, and italic letters lean
     out past it (the big offer 2 lost its foot). Pad the box so the lean is
     painted, and pull the margins back so nothing moves. Net 0.05em stays on
     the right, the gap before a following full stop. */
  padding-inline: 0.15em;
  margin-inline: -0.15em -0.1em;
}

.sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 42ch;
  margin-top: 14px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 12px 10px 24px;
  border: 0;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s;
}

.btn:active { transform: scale(0.975); }

.btn .arrow {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  transition: transform 0.35s var(--ease);
}

.btn:hover .arrow { transform: translateX(3px); }

.btn-white {
  background: #fff;
  color: var(--char);
  box-shadow: 0 14px 30px rgba(4, 20, 38, 0.28);
}

.btn-white .arrow { background: var(--navy); color: #fff; }

.btn-navy {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 12px 26px rgba(15, 61, 107, 0.24);
}

.btn-navy .arrow { background: var(--navy-deep); color: #fff; }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  padding: 10px 24px;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.btn-big { font-size: 17px; padding: 12px 14px 12px 30px; }
.btn-big .arrow { width: 34px; height: 34px; }

/* ---------- floating pill nav ---------- */

.nav-wrap {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding-inline: 12px;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  width: auto;
  max-width: 100%;
  padding: 7px 7px 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(9, 34, 60, 0.14), 0 1px 2px rgba(9, 34, 60, 0.06);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: blur(10px) saturate(1.4);
  white-space: nowrap;
  transition: box-shadow 0.4s var(--ease), background-color 0.4s;
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 38px rgba(9, 34, 60, 0.18);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding-right: 4px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--navy);
}

.logo img { width: 30px; height: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
  color: #3d4650;
}

.nav-links a {
  text-decoration: none;
  padding: 12px 2px;
  border-radius: 6px;
  transition: color 0.25s;
}

.nav-links a:hover { color: var(--navy); }

.btn-nav { font-size: 14px; padding: 7px 7px 7px 17px; min-height: 44px; }
.btn-nav .arrow { width: 26px; height: 26px; }

@media (max-width: 899px) {
  .nav { gap: 12px; padding-left: 12px; }
  .nav-links { display: none; }
  .logo { font-size: 15px; }
  .logo img { width: 26px; }
  .btn-nav { font-size: 13.5px; padding: 6px 6px 6px 14px; }
  .btn-nav .arrow { width: 24px; height: 24px; }
}

/* ---------- scroll progress ---------- */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 70;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--sky), var(--grad-a), var(--cloud));
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 620px;
  min-height: max(620px, 100svh);
  padding: 96px 24px 72px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 80% at 50% 108%, rgba(185, 218, 246, 0.42) 0%, rgba(71, 149, 200, 0) 58%),
    linear-gradient(180deg, #08294a 0%, #0f3d6b 34%, #134f80 64%, #1d6296 88%, #2b7bad 100%);
}

.hero-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 980px;
  margin-inline: auto;
}

.hero .pill {
  margin: 0 auto 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(232, 244, 255, 0.14);
  border: 1px solid rgba(232, 244, 255, 0.22);
  color: var(--cloud);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-align: left;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--grad-a);
  box-shadow: 0 0 0 3px rgba(127, 200, 248, 0.24);
}

.hero h1 {
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  max-width: 980px;
  margin: 0 auto 22px;
  text-shadow: 0 2px 24px rgba(4, 20, 38, 0.18);
}

.hero-lede {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(232, 244, 255, 0.82);
  max-width: 600px;
  margin: 0 auto;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.hero-note {
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(232, 244, 255, 0.66);
}

.cue {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(232, 244, 255, 0.72);
}

.cue span {
  display: inline-block;
  font-size: 15px;
}

@media (min-width: 900px) {
  .cue { left: 40px; bottom: 28px; }
}

/* hero entrance, driven by a load class so no scroll is needed */
html.js .hero [data-hero] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

/* the supporting line is the largest paint on screen, so it never fades in.
   It slides, which still reads as motion and keeps the first paint instant. */
html.js .hero [data-hero="3"] {
  opacity: 1;
  transform: translateY(10px);
}

html.js .hero.is-lit [data-hero] { opacity: 1; transform: none; }
html.js .hero.is-lit [data-hero="1"] { transition-delay: 0.05s; }
html.js .hero.is-lit [data-hero="2"] { transition-delay: 0.13s; }
html.js .hero.is-lit [data-hero="3"] { transition-delay: 0.24s; }
html.js .hero.is-lit [data-hero="4"] { transition-delay: 0.34s; }
html.js .hero.is-lit [data-hero="5"] { transition-delay: 0.43s; }

@media (max-width: 599px) {
  .hero { padding: 92px 20px 64px; }
  .hero .pill { font-size: 12px; padding: 7px 13px; text-align: center; }
  .hero h1 { font-size: clamp(34px, 10.4vw, 46px); line-height: 1.06; }
  .hero-lede { font-size: 15.5px; line-height: 1.55; }
  .hero-note { font-size: 13px; }
  .ctas { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 24px; }
  .ctas .btn { width: 100%; justify-content: space-between; }
  .ctas .btn-ghost { justify-content: center; }
  .cue { display: none; }
}

/* ---------- founder band ---------- */

.founder {
  padding: 56px 0 10px;
  background: var(--paper);
}

.founder-card {
  display: grid;
  gap: 26px;
  align-items: center;
  padding: 18px 18px 30px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 26px 60px rgba(15, 61, 107, 0.1);
}

.founder-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(165deg, var(--navy), var(--sky));
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.founder-body { padding: 4px 10px 0; }

.founder-body h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  letter-spacing: -0.035em;
}

.founder-role {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--sky);
}

.founder-line {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--char);
  max-width: 36ch;
}

.founder-text {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.65;
  color: #3d4650;
  max-width: 62ch;
}

@media (min-width: 900px) {
  .founder { padding: 64px 0 12px; }
  .founder-card {
    grid-template-columns: 300px 1fr;
    gap: 44px;
    padding: 22px 44px 22px 22px;
    border-radius: 34px;
  }
  .founder-body { padding: 0; }
  .founder-body h2 { font-size: 34px; }
  .founder-line { font-size: 20px; max-width: 44ch; }
  .founder-text { font-size: 16.5px; }
}

/* ---------- sticky chapters ---------- */

.chapters {
  position: relative;
  /* clip the sticky panel to the section without creating a scroll container,
     which would break position: sticky */
  overflow: clip;
  background: linear-gradient(180deg, var(--paper) 0%, #ffffff 12%, #ffffff 88%, var(--paper) 100%);
}

.stage {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 100svh;
  margin-bottom: -100svh;
  display: block;
  pointer-events: none;
}

.stage-pin {
  position: relative;
  height: 100%;
  max-width: 1180px;
  margin-inline: auto;
}

.device {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(370px, 38vw, 500px);
  max-width: calc(100% - 48px);
  height: 520px;
  /* The panel mirrors the text block. Translate is transitioned, so the panel
     glides across to the other side as the chapters change. */
  transform: translate(-50%, calc(-50% + var(--exit-y, 0px))) translateX(clamp(150px, 19vw, 252px));
  border-radius: 26px;
  background: #fff;
  border: 1px solid rgba(15, 61, 107, 0.1);
  box-shadow: 0 30px 70px rgba(15, 61, 107, 0.16), 0 4px 10px rgba(15, 61, 107, 0.05);
  overflow: hidden;
  transition: transform 0.9s var(--ease);
  will-change: transform;
}

/* the panel sits on the side the text block is not on */
.stage[data-side="r"] .device {
  transform: translate(-50%, calc(-50% + var(--exit-y, 0px))) translateX(calc(-1 * clamp(150px, 19vw, 252px)));
}

.device-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(15, 61, 107, 0.08);
  background: linear-gradient(180deg, #fbfdff, #f6f9fc);
}

.dots { display: inline-flex; gap: 5px; }

.dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c9d8e6;
}

.dots i:first-child { background: #b9daf6; }
.dots i:nth-child(2) { background: #8fc4ea; }
.dots i:nth-child(3) { background: #4795c8; }

.device-url {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #7a8794;
}

.tag {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(15, 61, 107, 0.14);
  background: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7a89;
}

.screen {
  position: absolute;
  inset: 41px 0 0;
  overflow: hidden;
  padding: 22px 22px 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.99);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
}


.screen.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.scr-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #7a8794;
  margin-bottom: 14px;
}

/* screen 1: filters */
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }

.fchip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 10px;
  background: #f2f8fd;
  border: 1px solid rgba(15, 61, 107, 0.1);
  font-size: 11.5px;
  color: #5a636e;
}

.fchip b { font-weight: 600; color: var(--navy); }

.count-card {
  margin-top: 16px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: linear-gradient(150deg, #0f3d6b, #1a568f 62%, #2b7bad);
  color: #fff;
}

.count {
  font-family: var(--display);
  font-weight: 800;
  font-size: 54px;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.count-label { font-size: 12px; color: rgba(232, 244, 255, 0.78); margin-top: 4px; }

.mini-rows { margin-top: 14px; display: grid; gap: 7px; }

.mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #f7fafd;
  font-size: 11.5px;
  color: #6b7a89;
}

.mini-row b { display: block; font-size: 12.5px; color: #2c3540; font-weight: 600; }

.avi {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  background: #e5f1fc;
}

/* screen 2: list */
.list-rows { display: grid; gap: 9px; }

.list-rows li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border-radius: 13px;
  background: #f7fafd;
  border: 1px solid rgba(15, 61, 107, 0.07);
  font-size: 11.5px;
  line-height: 1.4;
  color: #6b7a89;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.screen-2.is-active .list-rows li { opacity: 1; transform: none; }
.screen-2.is-active .list-rows li:nth-child(1) { transition-delay: 0.12s; }
.screen-2.is-active .list-rows li:nth-child(2) { transition-delay: 0.24s; }
.screen-2.is-active .list-rows li:nth-child(3) { transition-delay: 0.36s; }
.screen-2.is-active .list-rows li:nth-child(4) { transition-delay: 0.48s; }

.list-rows b { display: block; font-size: 13px; color: #2c3540; font-weight: 600; }

.tick {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  background: #d9ecfb;
  position: relative;
}

.tick::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 4.5px;
  width: 6px;
  height: 10px;
  border: solid var(--navy);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

.count-strip {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 12px;
  background: #eef6fd;
  font-size: 12px;
  color: #5a636e;
}

.count-strip b { color: var(--navy); font-weight: 700; }

/* screen 3: thread */
.thread { display: grid; gap: 10px; }

.msg {
  max-width: 88%;
  padding: 11px 13px 9px;
  border-radius: 15px;
  font-size: 12.5px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.screen-3.is-active .msg { opacity: 1; transform: none; }
.screen-3.is-active .msg:nth-child(1) { transition-delay: 0.1s; }
.screen-3.is-active .msg:nth-child(2) { transition-delay: 0.32s; }
.screen-3.is-active .msg:nth-child(3) { transition-delay: 0.56s; }

.msg.out {
  justify-self: start;
  background: #f2f7fc;
  border: 1px solid rgba(15, 61, 107, 0.09);
  border-bottom-left-radius: 5px;
  color: #33404d;
}

.msg.in {
  justify-self: end;
  background: linear-gradient(150deg, #0f3d6b, #1a568f);
  border-bottom-right-radius: 5px;
  color: #fff;
}

.stamp {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  letter-spacing: 0.02em;
  opacity: 0.62;
}

/* screen 4: week */
.week {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 4px;
}

.wk-day {
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #8b97a3;
  padding-bottom: 2px;
}

.wk-cell {
  height: 74px;
  border-radius: 10px;
  background: #f5f9fd;
  border: 1px solid rgba(15, 61, 107, 0.06);
  padding: 5px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.slot {
  display: block;
  width: 100%;
  padding: 6px 3px;
  border-radius: 7px;
  background: #e2eefa;
  font-style: normal;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: var(--navy);
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.screen-4.is-active .slot { opacity: 1; transform: none; }
.screen-4.is-active .slot:not(.is-on) { transition-delay: 0.1s; }

.slot.is-on {
  background: linear-gradient(150deg, #0f3d6b, #2b7bad);
  color: #fff;
  padding: 6px 3px;
  transition-delay: 0.42s;
}

.booked-card {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: 14px;
  background: #eef6fd;
  font-size: 11.5px;
  color: #6b7a89;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease) 0.66s, transform 0.5s var(--ease) 0.66s;
}

.screen-4.is-active .booked-card { opacity: 1; transform: none; }

.booked-card b { display: block; font-size: 13.5px; color: var(--navy); font-weight: 700; }

/* lead in: lets the panel settle before chapter 01 pins */
.chapter-lead { height: 45svh; }

/* chapter text */
.chapter {
  position: relative;
  z-index: 2;
  height: 150vh;
  display: flex;
  padding-inline: 24px;
}

.chapter-text {
  position: sticky;
  top: calc(50vh - 150px);
  align-self: flex-start;
  width: min(460px, 100%);
  margin-left: 0;
  padding-top: 10px;
  /* opacity is driven by scroll position in app.js */
  will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
  .chapter-text { opacity: 1 !important; transform: none !important; }
}

@media (min-width: 1040px) {
  .chapter { padding-inline: 0; align-items: flex-start; }
  .chapter-text {
    margin-left: max(7vw, calc(50vw - 590px));
    margin-right: auto;
  }
  .chapter[data-side="r"] .chapter-text {
    margin-left: auto;
    margin-right: max(7vw, calc(50vw - 590px));
  }
}

.num {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 14px;
}

.chapter h2 {
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}

.chapter p:last-child {
  font-size: 17px;
  line-height: 1.62;
  color: #47525e;
  max-width: 40ch;
}

@media (min-width: 900px) {
  .chapter p:last-child { font-size: 18px; }
}

/* stacked chapter: sticky text card above the panel */
@media (max-width: 1039px) {
  .chapter-lead { height: 0; }
  .chapter { height: 150vh; padding-inline: 16px; }
  .chapter-text {
    top: 72px;
    width: 100%;
    padding: 18px 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(15, 61, 107, 0.08);
    box-shadow: 0 12px 30px rgba(15, 61, 107, 0.1);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  .chapter h2 { font-size: clamp(28px, 8vw, 38px); margin-bottom: 10px; }
  .chapter p:last-child { font-size: 15px; line-height: 1.55; }
  .num { margin-bottom: 8px; }

  /* the panel keeps its own full height sticky track behind the text cards */
  .stage {
    position: absolute;
    inset: 0;
    height: auto;
    margin-bottom: 0;
    padding: 0 16px;
  }
  .stage-pin { display: block; height: 100%; }
  .device {
    position: sticky;
    top: 268px;
    left: auto;
    transform: none !important;
    margin: 0 auto;
    width: min(400px, 100% - 32px);
    height: min(44svh, 370px);
  }
  .screen { inset: 40px 0 0; padding: 16px 16px 18px; }
  .scr-label { margin-bottom: 10px; font-size: 10px; }
  .count { font-size: 40px; }
  .count-card { padding: 12px 15px 12px; margin-top: 10px; }
  .count-label { font-size: 11px; }
  .mini-rows { margin-top: 9px; gap: 6px; }
  .mini-row { padding: 6px 10px; }
  .mini-row:nth-child(3) { display: none; }
  .fchip { font-size: 10.5px; padding: 6px 9px; }
  .list-rows { gap: 7px; }
  .list-rows li { padding: 9px 11px; }
  .msg { font-size: 11.5px; padding: 9px 11px 7px; }
  .wk-cell { height: 56px; }
  .booked-card { margin-top: 10px; padding: 10px 12px; }
}

/* ---------- promise ---------- */

.promise-sec {
  padding: 70px 0;
  background: var(--paper);
}

.promise {
  position: relative;
  overflow: hidden;
  padding: 40px 26px 42px;
  border-radius: 34px;
  background:
    radial-gradient(80% 60% at 88% 4%, rgba(71, 149, 200, 0.34) 0%, rgba(71, 149, 200, 0) 62%),
    linear-gradient(158deg, #14161a 0%, #1b1d21 52%, #0f3d6b 100%);
  color: #fff;
  box-shadow: 0 34px 80px rgba(15, 32, 52, 0.28);
}

.promise::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -90px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 200, 248, 0.24) 0%, rgba(127, 200, 248, 0) 70%);
  pointer-events: none;
}

.pill-dark {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #e8f4ff;
}

.promise-head { margin-top: 22px; }

.promise-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(96px, 15vw, 168px);
  line-height: 0.86;
  letter-spacing: -0.06em;
}

.promise h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  max-width: 15ch;
  margin-top: 10px;
}

.promise-lede {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.78);
  max-width: 46ch;
  position: relative;
  z-index: 1;
}

.promise-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.promise-list li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.74);
}

.promise-list strong {
  display: block;
  color: #fff;
  font-weight: 600;
  font-size: 16.5px;
  margin-bottom: 3px;
}

@media (min-width: 900px) {
  .promise-sec { padding: 100px 0; }
  .promise { padding: 52px 56px 54px; }
  .promise-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px 34px;
    align-items: end;
  }
  .promise h2 { margin-top: 0; max-width: 12ch; }
  .promise-lede { font-size: 18px; }
  .promise-list { grid-template-columns: repeat(3, 1fr); gap: 30px; border-top: 0; margin-top: 34px; }
  .promise-list li { border-bottom: 0; border-top: 1px solid rgba(255, 255, 255, 0.16); padding: 16px 0 0; font-size: 15.5px; }
}

/* ---------- clients ---------- */

.clients {
  padding: 70px 0 34px;
  background: var(--char);
  color: #fff;
  position: relative;
  isolation: isolate;
}

.clients::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(680px 420px at 84% 2%, rgba(71, 149, 200, 0.24) 0%, rgba(71, 149, 200, 0) 68%),
    radial-gradient(560px 380px at 6% 96%, rgba(127, 200, 248, 0.12) 0%, rgba(127, 200, 248, 0) 70%);
}

.clients .pill {
  background: rgba(232, 244, 255, 0.1);
  border-color: rgba(232, 244, 255, 0.2);
  color: #d7ebfd;
}

.clients h2,
.testi h2 {
  font-size: clamp(32px, 4.4vw, 58px);
  margin-top: 20px;
  max-width: 18ch;
}

.clients .sub { color: rgba(232, 244, 255, 0.66); max-width: 46ch; }

.video-grid {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.vcard {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  background: #23262c;
  color: #fff;
  font: inherit;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s;
}

.vcard:hover,
.vcard:focus-visible {
  transform: translateY(-6px) rotate(-0.4deg);
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.44);
  border-color: rgba(127, 200, 248, 0.34);
}

.vcard-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #11161c;
}

.vcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.vcard:hover .vcard-media img,
.vcard:focus-visible .vcard-media img { transform: scale(1.04); }

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  transition: transform 0.35s var(--ease), background-color 0.35s;
}

.play::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 18px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--char);
}

.vcard:hover .play { transform: translate(-50%, -50%) scale(1.06); }

.vcard-copy {
  display: grid;
  gap: 4px;
  padding: 17px 20px 19px;
}

.vcard-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.vcard-sub {
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(232, 244, 255, 0.62);
}

@media (min-width: 700px) {
  .video-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1000px) {
  .clients { padding: 100px 0 50px; }
  .video-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

/* ---------- testimonials ---------- */

.testi {
  padding: 44px 0 70px;
  background: var(--char);
  color: #fff;
}

.quote-grid {
  display: grid;
  gap: 20px;
}

.tcard {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  border-radius: 26px;
  background: linear-gradient(168deg, #23262c 0%, #1d2025 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.tcard blockquote { margin: 0; }

.tcard p {
  font-size: 16.5px;
  line-height: 1.56;
  color: rgba(255, 255, 255, 0.86);
}

.tcard figcaption {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--light);
  letter-spacing: 0.01em;
}

@media (min-width: 900px) {
  .testi { padding: 50px 0 100px; }
  .quote-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .tcard p { font-size: 16px; }
}

/* ---------- figures ---------- */

.figures-sec {
  padding: 70px 0;
  background: var(--paper);
}

.figures {
  display: grid;
  gap: 18px;
}

.figures li {
  padding: 26px 24px 24px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(15, 61, 107, 0.07);
}

.figure-value {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(42px, 6vw, 60px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--navy);
  margin-bottom: 8px;
}

.figure-label {
  font-size: 15.5px;
  line-height: 1.5;
  color: #5a636e;
  max-width: 24ch;
}

.honest {
  margin-top: 26px;
  font-size: 15px;
  line-height: 1.6;
  color: #55616e;
  max-width: 52ch;
}

@media (min-width: 760px) {
  .figures { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .figures-sec { padding: 100px 0; }
  .fit-sec { padding: 0 0 100px; }
  .faq-sec { padding: 100px 0; }
  .closing { padding: 110px 0; }
}

/* ---------- fit ---------- */

.fit-sec {
  padding: 0 0 70px;
  background: var(--paper);
}

.fit {
  display: grid;
  gap: 18px;
}

.fcard {
  padding: 28px 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
}

.fcard-yes { background: linear-gradient(162deg, #eaf4fd 0%, #e2f0fc 100%); }
.fcard-no { background: #fff; }

.fcard h3 {
  font-size: 24px;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.fcard ul { display: grid; gap: 12px; }

.fcard li {
  display: flex;
  gap: 11px;
  font-size: 16px;
  line-height: 1.5;
  color: #3d4650;
}

.fcard li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background-color: var(--navy);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
}

.fcard-yes li::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 6.4 4.7 9 10 3.4' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

.fcard-no li::before {
  background-color: #d3dde6;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M3.4 3.4 8.6 8.6M8.6 3.4 3.4 8.6' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/></svg>");
}

@media (min-width: 860px) {
  .fit { grid-template-columns: 1fr 1fr; gap: 22px; }
  .fcard { padding: 34px 32px; }
  .fcard h3 { font-size: 26px; }
}

/* ---------- faq ---------- */

.faq-sec {
  padding: 70px 0;
  background: #fff;
}

.faq-sec h2 {
  font-size: clamp(32px, 4.4vw, 58px);
  margin-top: 20px;
  max-width: 16ch;
}

.faq {
  display: grid;
  gap: 12px;
  margin-top: 36px;
  max-width: 900px;
}

.faq details {
  border-radius: 22px;
  background: var(--paper);
  border: 1px solid transparent;
  padding: 0 20px;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.faq details[open] {
  background: #eaf4fd;
  border-color: rgba(71, 149, 200, 0.26);
  box-shadow: 0 14px 34px rgba(15, 61, 107, 0.08);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 18px 0;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }

.plus {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 61, 107, 0.1);
  transition: transform 0.32s var(--ease), background-color 0.32s;
}

.plus::before,
.plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--navy);
  border-radius: 2px;
  transform: translate(-50%, -50%);
}

.plus::before { width: 12px; height: 2px; }
.plus::after { width: 2px; height: 12px; transition: opacity 0.32s; }

.faq details[open] .plus { transform: rotate(45deg); }

.faq-body { padding: 0 0 22px; }
.faq-body p { font-size: 15.5px; line-height: 1.65; color: #4b5560; max-width: 62ch; }

@media (min-width: 900px) {
  .faq details { padding: 0 26px; }
  .faq summary { font-size: 17.5px; min-height: 70px; }
  .faq-body p { font-size: 16px; }
}

/* ---------- closing ---------- */

.closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 78px 0;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(100% 70% at 50% 112%, rgba(185, 218, 246, 0.34) 0%, rgba(71, 149, 200, 0) 62%),
    linear-gradient(180deg, #08294a 0%, #0f3d6b 42%, #1d6296 100%);
}

.closing-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }

.closing-inner { position: relative; }

.closing h1,
.closing h2 {
  font-size: clamp(34px, 4.8vw, 66px);
  line-height: 1.03;
  max-width: 20ch;
  margin-inline: auto;
}

.closing .lede {
  margin: 20px auto 30px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(232, 244, 255, 0.8);
  max-width: 44ch;
}

@media (max-width: 599px) {
  .closing { padding: 80px 0; }
  .closing .btn { width: 100%; justify-content: space-between; }
}

/* ---------- thank-you page ---------- */

.thanks-hero .pill { margin-bottom: 22px; }

.thanks-sec {
  padding: 64px 0 84px;
  background: var(--paper);
}

.thanks-sec h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.03em;
}

.thanks-cards {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.thanks-cards li {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(15, 61, 107, 0.07);
}

/* --sky fails 4.5 to 1 on white at this size; same hue, darker */
.thanks-cards .num { color: #2a6f9e; margin-bottom: 10px; }

.thanks-cards h3 {
  font-size: 21px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.thanks-cards p:not(.num) {
  font-size: 16px;
  line-height: 1.55;
  color: #3d4650;
}

.thanks-link {
  margin-top: auto;
  padding-top: 16px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.thanks-wait { margin-top: 56px; }

@media (min-width: 760px) {
  .thanks-sec { padding: 90px 0 110px; }
  .thanks-cards { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .thanks-cards-2 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- footer ---------- */

.site-footer {
  padding: 44px 0 56px;
  background: #121417;
  color: rgba(232, 244, 255, 0.66);
}

.footer-top {
  display: grid;
  gap: 22px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.footer-brand img { width: 40px; height: auto; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  font-size: 14.5px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  transition: color 0.25s;
}

.footer-links a:hover { color: #fff; }

.copyright {
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(232, 244, 255, 0.62);
}

@media (min-width: 760px) {
  .footer-top { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- video dialog ---------- */

.player {
  width: min(980px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #0b0d10;
  color: #fff;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.player::backdrop { background: rgba(8, 20, 34, 0.78); }

.player-bar { display: flex; justify-content: flex-end; padding: 8px 10px; }

.player-close {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--char);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

#player-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

/* ---------- reveals ---------- */

html.js [data-reveal],
html.js [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html.js [data-reveal].is-in,
html.js [data-reveal-group].is-in > * {
  opacity: 1;
  transform: none;
}

html.js [data-reveal-group].is-in > *:nth-child(2) { transition-delay: 0.07s; }
html.js [data-reveal-group].is-in > *:nth-child(3) { transition-delay: 0.14s; }
html.js [data-reveal-group].is-in > *:nth-child(4) { transition-delay: 0.21s; }
html.js [data-reveal-group].is-in > *:nth-child(5) { transition-delay: 0.28s; }
html.js [data-reveal-group].is-in > *:nth-child(6) { transition-delay: 0.35s; }

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: no-preference) {
  .cue span { animation: bob 1.6s ease-in-out infinite; }
}

@keyframes bob {
  50% { transform: translateY(4px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal],
  html.js [data-reveal-group] > *,
  html.js .hero [data-hero] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .device,
  .screen,
  .msg,
  .slot,
  .list-rows li,
  .booked-card { transition: none !important; }
  .vcard:hover,
  .vcard:focus-visible { transform: none; }
  .vcard:hover .vcard-media img,
  .vcard:focus-visible .vcard-media img { transform: none; }
  .btn:hover .arrow { transform: none; }
  .plus, .faq details { transition: none; }
}

@media (forced-colors: active) {
  :focus-visible { outline: 3px solid Highlight; }
  .btn, .player-close, .vcard { border: 1px solid ButtonText; }
}

/* ---------- privacy page ---------- */

.legal-head {
  padding: 150px 0 40px;
  background: linear-gradient(180deg, #0f3d6b 0%, #134f80 55%, #1d6296 100%);
  color: #fff;
}

.pill-legal {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(232, 244, 255, 0.14);
  border: 1px solid rgba(232, 244, 255, 0.22);
  color: var(--cloud);
  font-size: 13px;
  font-weight: 600;
}

.legal-head h1 {
  font-size: clamp(40px, 6vw, 76px);
  margin-top: 20px;
}

.legal-head .lede {
  margin-top: 18px;
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(232, 244, 255, 0.82);
}

.legal-body { padding: 60px 0 100px; background: var(--paper); }

.legal-inner { max-width: 780px; }

.legal-inner h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 40px 0 12px;
  color: var(--navy);
}

.legal-inner h2:first-child { margin-top: 0; }

.legal-inner p,
.legal-inner address {
  font-size: 17px;
  line-height: 1.7;
  color: #3d4650;
  margin-bottom: 14px;
  max-width: 68ch;
}

.legal-inner address { font-style: normal; }

.legal-inner a { color: var(--navy); text-underline-offset: 3px; }

@media (max-width: 599px) {
  .legal-head { padding: 128px 0 36px; }
  .legal-body { padding: 44px 0 80px; }
}

/* the bundled single file has no separate privacy page, so the label sits
   in the footer as plain text there */
.footer-plain {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(232, 244, 255, 0.5);
}
