/* The whole site: tokens, type, buttons, nav, menus, footer and the violet hero surface. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-v18-latin-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/inter-v18-latin-600.woff2') format('woff2');
}
:root {
  --ink: #1c0f33;
  --ink-2: #3a2d52;
  --ink-3: #5e5373;
  --ink-4: #8a7fa0;
  --line: #e8e2f4;
  --line-2: #d9cff0;
  --paper: #ffffff;
  --mist: #f7f4fd;
  --mist-2: #efe9fc;
  --v100: #ede9fe;
  --v200: #ddd6fe;
  --v300: #c4b5fd;
  --v400: #a78bfa;
  --v500: #8b5cf6;
  --v600: #7c3aed;
  --v700: #6d28d9;
  --v800: #5b21b6;
  --v900: #4c1d95;
  --v950: #2e1065;
  --night: #170a2c;
  --night-2: #22113d;
  --on-night: #f4efff;
  --on-night-2: #d3c8ec;
  --on-night-3: #a99bc9;
  --display: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, Arial, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-exit: cubic-bezier(0.4, 0, 0.6, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 108px;
  /* On html too, so body keeps its own clip. Alone on body it is handed to the viewport, and a finger can
     still pan the page sideways on iOS Safari if anything is wider than the screen. */
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
h4,
p,
ol,
ul,
dl,
dd,
figure,
blockquote {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
img,
svg,
canvas {
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--v600);
  outline-offset: 3px;
  border-radius: 8px;
}
.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 {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
}
.skip:focus {
  top: 16px;
}
.wrap {
  width: min(var(--maxw), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.tnum {
  font-variant-numeric: tabular-nums;
}

/* Type */
.display-1 {
  font: 650 clamp(2.6rem, 1rem + 4.4vw, 5.75rem) / 1.03 var(--display);
  letter-spacing: -0.038em;
}
.display-2 {
  font: 650 clamp(2rem, 1.1rem + 2.3vw, 3.35rem) / 1.08 var(--display);
  letter-spacing: -0.032em;
  color: var(--ink);
  text-wrap: balance;
}
.display-3 {
  font: 650 clamp(1.6rem, 1.1rem + 1.25vw, 2.25rem) / 1.15 var(--display);
  letter-spacing: -0.024em;
  color: var(--ink);
  text-wrap: balance;
}
.lead {
  font-size: clamp(1.125rem, 1rem + 0.35vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* Buttons */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 20px 0 24px;
  border-radius: 14px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 1.0625rem/1 var(--sans);
  letter-spacing: -0.005em;
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  --btn-bg: var(--v800);
}
.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
}
.btn--light:hover {
  --btn-bg: var(--v100);
}
.arrow {
  width: 18px;
  height: 18px;
  flex: none;
  overflow: visible;
}
.arrow path {
  transition: transform 0.35s var(--ease);
}
.btn:hover .arrow path,
.link-arrow:hover .arrow path {
  transform: translate(2px, -2px);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--v800);
}
.link-arrow:hover {
  color: var(--v950);
}

/* Nav */
.nav {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 60;
  width: min(1268px, calc(100% - 48px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 7px 7px 20px;
  border-radius: 20px;
  color: #fff;
  background: rgba(42, 12, 92, 0.26);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition:
    background-color 0.35s var(--ease),
    color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.nav.is-light {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  box-shadow:
    inset 0 0 0 1px rgba(46, 16, 101, 0.08),
    0 10px 30px -18px rgba(46, 16, 101, 0.45);
}
.nav-logo {
  display: flex;
  align-items: center;
  margin-right: auto;
  padding: 6px 0;
  color: #fff;
  transition: color 0.35s var(--ease);
}
.nav.is-light .nav-logo {
  color: var(--v700);
}
.nav-logo svg {
  width: 112px;
  height: 28px;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 2px;
  margin-right: 10px;
}
.nav-links a,
.nav-links button,
.nav-login {
  position: relative;
  z-index: 1;
  padding: 10px 14px;
  color: inherit;
  border-radius: 12px;
  font: 600 0.96875rem/1 var(--sans);
  opacity: 0.88;
  transition:
    background-color 0.2s,
    opacity 0.2s;
}
.nav-links a:hover,
.nav-links button:hover,
.nav-login:hover {
  opacity: 1;
}
.nav:not(.is-enhanced) .nav-links a:hover,
.nav:not(.is-enhanced) .nav-login:hover {
  background: rgba(255, 255, 255, 0.14);
}
.nav.is-light:not(.is-enhanced) .nav-links a:hover,
.nav.is-light:not(.is-enhanced) .nav-login:hover {
  background: var(--mist-2);
}
.nav-login {
  display: none;
}
.nav-cta {
  min-height: 44px;
  padding: 0 16px 0 18px;
  border-radius: 13px;
  font-size: 0.96875rem;
  --btn-bg: #fff;
  --btn-fg: var(--ink);
}
.nav .nav-cta:hover {
  --btn-bg: var(--v100);
}
.nav.is-light .nav-cta {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
}
.nav.is-light .nav-cta:hover {
  --btn-bg: var(--v800);
}
.nav:not(.is-light) :focus-visible {
  outline-color: #fff;
}
.nav-menu-btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 13px;
  font: 600 0.96875rem/1 var(--sans);
  background: rgba(255, 255, 255, 0.14);
}
.nav.is-light .nav-menu-btn {
  background: var(--mist-2);
}
.nav .nav-cta {
  display: none;
}
@media (min-width: 640px) {
  .nav .nav-cta {
    display: inline-flex;
  }
}
@media (min-width: 1000px) {
  .nav-links,
  .nav-login {
    display: flex;
  }
  .nav-menu-btn {
    display: none;
  }
}

/* Nav menus (home.js adds .is-enhanced): one highlight glides between the links, and
   Platform and Case studies open one shared panel that reshapes as you move between them */
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chev {
  display: none;
  width: 10px;
  height: 10px;
  margin-right: -3px;
  opacity: 0.72;
  transition: transform 0.3s var(--ease);
}
.nav.is-enhanced .chev {
  display: block;
}
.nav-trigger[aria-expanded='true'] {
  opacity: 1;
}
.nav-trigger[aria-expanded='true'] .chev {
  transform: rotate(180deg);
}
.nav-pill {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  display: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.16s ease-out,
    background-color 0.35s var(--ease);
}
.nav.is-enhanced .nav-pill {
  display: block;
}
.nav-pill.is-gliding {
  transition:
    transform 0.3s var(--ease),
    width 0.3s var(--ease),
    opacity 0.16s ease-out,
    background-color 0.35s var(--ease);
}
.nav.is-light .nav-pill {
  background: var(--mist-2);
}
.nav-pop {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 2;
  display: none;
  visibility: hidden;
  pointer-events: none;
}
.nav.is-enhanced .nav-pop {
  display: block;
}
.nav-pop.is-open,
.nav-pop.is-closing {
  visibility: visible;
}
.nav-pop.is-open {
  pointer-events: auto;
}
.nav-pop::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 12px;
}
.nav-pop.is-moving {
  transition: transform 0.3s var(--ease);
}
.nav-pop-box {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  color: var(--ink-2);
  box-shadow:
    0 0 0 1px rgba(46, 16, 101, 0.09),
    0 26px 50px -24px rgba(46, 16, 101, 0.5),
    0 8px 18px -12px rgba(46, 16, 101, 0.22);
  transform-origin: var(--origin, 40px 0);
}
.nav-pop.is-moving .nav-pop-box {
  transition:
    width 0.3s var(--ease),
    height 0.3s var(--ease);
}
.nav-pop.is-entering .nav-pop-box {
  animation: pop-in 0.28s var(--ease) both;
}
.nav-pop.is-closing .nav-pop-box {
  animation: pop-out 0.15s var(--ease-exit) forwards;
}
@keyframes pop-in {
  from {
    opacity: 0;
    transform: perspective(900px) rotateX(-12deg) scale(0.96);
  }
}
@keyframes pop-out {
  to {
    opacity: 0;
    transform: scale(0.98);
  }
}
.pop-panel {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.12s var(--ease-exit),
    transform 0.3s var(--ease),
    visibility 0s linear 0.3s;
}
.pop-panel.is-on {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.22s var(--ease) 0.05s,
    transform 0.3s var(--ease);
}
.pop-panel.at-left {
  transform: translateX(-22px);
}
.pop-panel.at-right {
  transform: translateX(22px);
}
.pop-panel.no-anim,
.nav-pop.is-instant .pop-panel,
.nav-pop:not(.is-open):not(.is-closing) .pop-panel {
  transition: none;
}
.pop-platform {
  width: 676px;
}
.pop-cases {
  width: 540px;
}
.pop-grid {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 6px;
  padding: 8px;
}
.pop-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-height: 100%;
  padding: 18px;
  border-radius: 10px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(162deg, #7136df 0%, #5d22b8 46%, #4a1b91 100%);
}
.pop-feature b {
  position: relative;
  font: 650 1.0625rem/1.25 var(--display);
  letter-spacing: -0.012em;
}
.pop-feature > span:not(.pop-art) {
  position: relative;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--on-night-2);
}
.pop-feature .pop-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-weight: 600;
  color: #fff;
}
.pop-more .arrow {
  width: 16px;
  height: 16px;
}
.pop-feature:hover .arrow path,
.pop-foot-link:hover .arrow path {
  transform: translate(2px, -2px);
}
.pop-art {
  position: absolute;
  inset: 0 0 auto 0;
  height: 64%;
  -webkit-mask-image: linear-gradient(#000 62%, transparent);
  mask-image: linear-gradient(#000 62%, transparent);
}
.pop-art svg {
  width: 100%;
  height: 100%;
}
.pop-list {
  display: grid;
  gap: 2px;
  align-content: start;
}
.pop-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 2px;
  padding: 11px 12px;
  border-radius: 10px;
  transition: background-color 0.15s;
}
.pop-item:hover,
.pop-cases-list a:hover,
.pop-foot-link:hover {
  background: var(--mist);
}
.pop-item svg {
  grid-row: 1 / span 2;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  fill: none;
  stroke: var(--v700);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pop-item b,
.pop-cases-list b,
.pop-foot-link b {
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.pop-item span,
.pop-cases-list span,
.pop-foot-link span {
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--ink-3);
}
.pop-foot {
  margin: 0 8px 8px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.pop-foot-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  transition: background-color 0.15s;
}
.pop-foot-link b {
  white-space: nowrap;
}
.pop-foot-link .arrow {
  align-self: center;
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: var(--v700);
}
.pop-cases-list {
  display: grid;
  gap: 2px;
  padding: 8px 8px 6px;
}
.pop-cases-list a {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 1px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background-color 0.15s;
}
.pop-cases-list .pop-num {
  grid-row: 1 / span 2;
  font: 650 2rem/1 var(--display);
  letter-spacing: -0.035em;
  color: var(--v700);
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  padding: 22px 24px 32px;
  background: var(--v900);
  color: #fff;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.25s var(--ease),
    visibility 0s linear 0.25s;
}
.menu.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.25s var(--ease);
}
.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 4px 20px;
}
.menu-top svg {
  width: 112px;
  height: 28px;
}
.menu-close {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.14);
}
.menu-links {
  margin-top: 48px;
  display: grid;
  gap: 6px;
  padding-left: 20px;
}
.menu-links a {
  font: 650 2rem/1.15 var(--display);
  letter-spacing: -0.01em;
}
.menu-foot {
  margin-top: auto;
  display: grid;
  gap: 12px;
  padding-left: 20px;
}
.menu-foot .btn {
  justify-self: start;
}
.menu-foot a.plain {
  font-weight: 600;
  opacity: 0.85;
}

/* Hero: the violet island. The homepage adds its helix and frame; subpages add a shorter head. */
.hero {
  position: relative;
  margin: 12px 12px 0;
  min-height: calc(100vh - 24px);
  min-height: calc(100svh - 24px);
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background-color: var(--v800);
  background-image: radial-gradient(
      ellipse 70% 60% at 25% 30%,
      rgba(167, 139, 250, 0.18) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 50% 50% at 80% 75%,
      rgba(139, 92, 246, 0.12) 0%,
      transparent 60%
    ),
    linear-gradient(
      145deg,
      #4c1d95 0%,
      #5b21b6 25%,
      #6d28d9 50%,
      #5b21b6 75%,
      #3b0764 100%
    );
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--grain);
  background-size: 220px;
  opacity: 0.16;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* Funnel rows: the case-study cards and the study team dashboard */
.bar {
  display: none;
  position: relative;
  height: 8px;
  border-radius: 0 4px 4px 0;
  background: var(--mist-2);
}
.bar i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 0 4px 4px 0;
  background: var(--v600);
  transition: width 0.6s var(--ease);
}
.funnel-row {
  display: grid;
  grid-template-columns: 5.75rem minmax(0, 1fr) 3rem;
  align-items: center;
  gap: 10px;
  padding: 6px 2px;
}
.funnel-row span {
  color: var(--ink-3);
  font-size: 0.8125rem;
}
.funnel-row .bar {
  display: block;
  height: 12px;
}
.funnel-row b {
  font-weight: 600;
  text-align: right;
  color: var(--ink);
}

/* Bullets, surfaces */
.ticks {
  margin-top: 26px;
  display: grid;
  gap: 12px;
  max-width: 33rem;
}
.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-2);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--v700), var(--v700)) 0 0 / 5px 2px no-repeat,
    linear-gradient(var(--v700), var(--v700)) 0 0 / 2px 5px no-repeat,
    linear-gradient(var(--v700), var(--v700)) 100% 0 / 5px 2px no-repeat,
    linear-gradient(var(--v700), var(--v700)) 100% 0 / 2px 5px no-repeat,
    linear-gradient(var(--v700), var(--v700)) 0 100% / 5px 2px no-repeat,
    linear-gradient(var(--v700), var(--v700)) 0 100% / 2px 5px no-repeat,
    linear-gradient(var(--v700), var(--v700)) 100% 100% / 5px 2px no-repeat,
    linear-gradient(var(--v700), var(--v700)) 100% 100% / 2px 5px no-repeat,
    radial-gradient(circle, var(--v700) 2px, transparent 2.5px) 50% 50% / 14px
      14px no-repeat;
}

.card {
  border-radius: 22px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(46, 16, 101, 0.08),
    0 22px 44px -30px rgba(46, 16, 101, 0.45);
}

.stage {
  position: relative;
  min-width: 0;
  padding: clamp(14px, 2.4vw, 32px);
  border-radius: 28px;
  background: var(--mist);
}

/* Results */
.results {
  padding: clamp(80px, 10vw, 140px) 0 clamp(64px, 8vw, 112px);
}
.results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 20px 40px;
  padding-bottom: clamp(32px, 4vw, 52px);
}
.results-head .display-2 {
  max-width: 13em;
}
.ledger li + li {
  border-top: 1px solid var(--line);
}
.ledger a {
  display: grid;
  gap: 10px 28px;
  padding: 30px 8px;
  border-radius: 18px;
  transition: background-color 0.25s;
}
.ledger a:hover {
  background: var(--mist);
}
.ledger .num {
  font: 650 clamp(3rem, 2.2rem + 2.2vw, 4.5rem) / 1 var(--display);
  letter-spacing: -0.042em;
  font-variant-numeric: tabular-nums;
  color: var(--v800);
}
.ledger .what b {
  display: block;
  font: 600 1.1875rem/1.35 var(--sans);
  color: var(--ink);
  text-wrap: balance;
}
.ledger .what span {
  display: block;
  margin-top: 6px;
  color: var(--ink-3);
}
.ledger .mini {
  display: grid;
  gap: 6px;
  align-content: center;
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.ledger .mini .funnel-row {
  grid-template-columns: 5rem minmax(0, 1fr) 2.125rem;
  padding: 0;
}
.ledger .mini .funnel-row b {
  font-size: 0.875rem;
}
.ledger .mini .bar {
  height: 10px;
}
.ledger .mini.facts {
  gap: 4px;
}
.ledger .mini.facts b {
  color: var(--ink);
  font-weight: 600;
}
.ledger .go {
  display: none;
}
@media (min-width: 900px) {
  .ledger a {
    grid-template-columns: 170px minmax(0, 1fr) minmax(220px, 300px) 40px;
    align-items: center;
    padding: 32px 18px;
  }
  .ledger .go {
    display: block;
    justify-self: end;
    color: var(--v800);
  }
  .ledger .go .arrow {
    width: 22px;
    height: 22px;
  }
  .ledger a:hover .go .arrow path {
    transform: translate(2px, -2px);
  }
}

/* Footer */
.foot {
  position: relative;
  margin: 12px;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  color: var(--on-night);
  background: var(--night);
  background-image: linear-gradient(
    175deg,
    #2a1350 0%,
    #1a0b33 50%,
    #140827 100%
  );
}
.foot::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  background-size: 220px;
  opacity: 0.1;
  mix-blend-mode: soft-light;
}
.foot-cta {
  display: grid;
  gap: 28px;
  padding: clamp(72px, 9vw, 120px) 0 clamp(56px, 7vw, 88px);
}
.foot-cta .display-2 {
  color: #fff;
  max-width: 11em;
}
@media (max-width: 520px) {
  .foot-cta .display-2 {
    font-size: 2rem;
  }
}
.foot-cta p {
  color: var(--on-night-2);
  max-width: 30rem;
}
.foot-cta p.foot-mail {
  margin: 0;
}
.foot-cta p a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}
.foot-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
}
@media (min-width: 1000px) {
  .foot-cta {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: 72px;
  }
}
.foot-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 24px;
  padding: 40px 0;
  border-top: 1px solid rgba(196, 181, 253, 0.14);
}
.foot-links h3 {
  font: 600 0.875rem/1.3 var(--sans);
  color: var(--on-night-3);
}
.foot-links ul {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.foot-links a {
  color: var(--on-night-2);
  transition: color 0.2s;
}
.foot-links a:hover {
  color: #fff;
}
.foot-brand p {
  margin-top: 14px;
  max-width: 18rem;
  color: var(--on-night-3);
  font-size: 0.9375rem;
}
.foot-brand svg {
  width: 120px;
  height: 30px;
  color: #fff;
}
@media (min-width: 900px) {
  .foot-links {
    grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr));
  }
}
.foot-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-bottom: 28px;
  font-size: 0.875rem;
  color: var(--on-night-3);
}
.wordmark {
  position: relative;
  width: calc(100% - 2 * var(--gutter));
  margin: 8px auto -2.2%;
  aspect-ratio: 2303 / 570;
  color: rgba(196, 181, 253, 0.16);
}
.wordmark svg,
.wordmark canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.wordmark.has-stipple svg {
  opacity: 0;
}

/* Phones: the shared surfaces sit 8px off the glass */
@media (max-width: 719px) {
  html {
    scroll-padding-top: 84px;
  }

  .hero {
    margin: 8px 8px 0;
    min-height: calc(100vh - 16px);
    min-height: calc(100svh - 16px);
    border-radius: 26px;
  }

  /* Nav: the same 8px margin as every other surface; the action appears once the hero's own button has gone. */
  .nav {
    top: 8px;
    width: calc(100% - 16px);
    padding: 6px 6px 6px 14px;
    border-radius: 16px;
    transition:
      background-color 0.35s var(--ease),
      color 0.35s var(--ease),
      box-shadow 0.35s var(--ease),
      transform 0.32s var(--ease);
  }
  /* In the chapters the bar steps aside on the way down and returns on the way up. */
  .nav-tucked .nav {
    transform: translateX(-50%) translateY(-130%);
  }
  .nav.is-light {
    background: rgba(255, 255, 255, 0.95);
  }
  .nav-menu-btn {
    min-height: 40px;
    padding: 0 13px;
    font-size: 0.875rem;
  }
  .nav.is-light .nav-cta {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin-left: auto;
    padding: 0 12px;
    font-size: 0.875rem;
    animation: navCtaIn 0.35s var(--ease) both;
  }
  @keyframes navCtaIn {
    from {
      transform: translateY(4px);
      opacity: 0;
    }
  }
  .nav.is-light .nav-cta + .nav-menu-btn,
  .nav.is-light .nav-cta ~ .nav-menu-btn {
    margin-left: 0;
  }

  .foot {
    margin: 8px;
    border-radius: 26px;
  }

  /* Footer */
  .foot-cta {
    padding: 44px 0 36px;
  }
  .foot-links {
    gap: 24px 20px;
    padding: 28px 0;
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
  .foot-links > :nth-child(2) {
    grid-row: span 2;
  }
  .foot-brand p {
    max-width: none;
  }
  .foot-links ul {
    margin-top: 8px;
    gap: 4px;
  }
  .foot-links a {
    display: inline-block;
    padding-block: 3px;
  }
}
@media (max-width: 359px) {
  .nav.is-light .nav-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav.is-light .nav-cta {
    animation: none !important;
  }
  .nav-pop .nav-pop-box {
    animation: none !important;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
