/* Invisible Robot — 2026 refresh.
   Same brand as the 2021 site: robot yellow, Materialize brown, the dark
   mountain photo. Plain CSS, no framework. */

:root {
  --yellow: #fec20e;
  --yellow-soft: rgba(254, 194, 14, .5);
  --brown: #4e342e;
  --espresso: #1c1411;
  --ink: #0d0c0a;
  --paper: #f3efe7;
  --paper-ink: #2a1e19;
  --paper-muted: #6d5a52;
  --paper-line: rgba(78, 52, 46, .16);
  --light: #f4efe6;
  --light-muted: rgba(244, 239, 230, .62);
  --light-line: rgba(244, 239, 230, .14);

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(6rem, 12vw, 11rem);
}

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

html { -webkit-text-size-adjust: 100%; }
/* Past 1920px wide the whole page grows a little, like a gentle zoom, so a
   big monitor does not show a small page floating in empty space. Every
   size below is in rem, so it all scales together. */
@media (min-width: 1920px) {
  html { font-size: min(calc(100% + (100vw - 1920px) * .005), 1.375rem); }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--light);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--yellow); color: var(--ink); }

h1, h2, h3, blockquote { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* Punctuation that ends a big heading picks up the robot yellow. */
.accent { color: var(--yellow); }

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: .7rem 1.1rem;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 500;
  transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
  border-radius: 2px;
}
.paper :focus-visible { outline-color: var(--brown); }

.wrap {
  width: min(82.5rem, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 200, "GRAD" 0, "opsz" 40;
  font-size: 1.875rem;
  line-height: 1;
}

/* Film grain over everything. Static, so it costs nothing on scroll. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Thin yellow line across the top that fills as you read. */
.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 60;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px max(var(--gutter), (100vw - 82.5rem) / 2);
  transition: transform .6s var(--ease), background-color .5s, backdrop-filter .5s;
  animation: fadeIn 1.2s ease 1.2s backwards;
}
@keyframes fadeIn { from { opacity: 0; } }
.nav.is-solid {
  background: rgba(13, 12, 10, .9);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--light-line);
}
.nav.is-hidden { transform: translateY(-100%); }

.nav__mark img {
  height: 2.125rem;
  width: auto;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .5s, transform .6s var(--ease);
}
.nav.is-solid .nav__mark img { opacity: 1; transform: none; }

.nav__call {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem 1.05rem;
  border: 1px solid var(--yellow-soft);
  border-radius: 999px;
  color: var(--yellow);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  transition: background-color .35s, color .35s, border-color .35s, translate .6s var(--ease);
}
.nav__call:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 rgba(254, 194, 14, .6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(254, 194, 14, 0); }
  100% { box-shadow: 0 0 0 0 rgba(254, 194, 14, 0); }
}

/* ---------- Photo layers (shared by hero, quotes, finale) ---------- */

/* JS sets --k from 1 (framed) to 0 (full width) as a photo section
   arrives, and back up as it leaves. The paper colour shows in the margin. */
.stack, .track, .finale { background: var(--paper); }
.stack__sticky, .track__sticky, .finale > .photo, .finale > .photo__shade {
  clip-path: inset(calc(var(--k, 0) * 8vh) calc(var(--k, 0) * 6vw));
}

.photo, .hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.photo img, .hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 55%;
}
.photo img {
  transform: translate3d(0, calc((var(--t, .5) - .5) * -10%), 0) scale(calc(1.14 + var(--z, 0) * .08));
  will-change: transform;
}
.photo__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 9, 8, .9) 0%, rgba(10, 9, 8, .55) 55%, rgba(10, 9, 8, .35) 100%),
    radial-gradient(120% 90% at 50% 120%, rgba(10, 9, 8, .8), transparent 60%);
}
.photo__shade--even {
  background:
    linear-gradient(180deg, rgba(10, 9, 8, .55), rgba(10, 9, 8, .35) 40%, rgba(10, 9, 8, .7)),
    radial-gradient(90% 70% at 50% 50%, transparent, rgba(10, 9, 8, .6));
}

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

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: grid;
  place-items: center;
  --hp: 0;
}
.hero__media {
  transform: translate3d(0, calc(var(--hp) * 28%), 0);
  will-change: transform;
}
.hero__media img { animation: heroIn 2.6s var(--ease) both; }
@keyframes heroIn {
  from { transform: scale(1.2); filter: brightness(.35); }
  to   { transform: scale(1.05); filter: none; }
}
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 50% 45%, rgba(10, 9, 8, .1), rgba(10, 9, 8, .65)),
    linear-gradient(180deg, rgba(10, 9, 8, .35), transparent 30%, transparent 65%, rgba(10, 9, 8, .85));
  opacity: calc(.85 + var(--hp) * .6);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: min(38rem, 80vw, 72svh);
  transform: translate3d(0, calc(var(--hp) * -18vh), 0) scale(calc(1 - var(--hp) * .08));
  opacity: calc(1 - var(--hp) * 1.4);
  will-change: transform, opacity;
}
.hero__logo img {
  width: 100%;
  height: auto;
  aspect-ratio: 270 / 125;
  animation: logoIn 1.8s var(--ease) .45s both;
}
/* The wipe runs left to right, the way the arrow in the logo points. */
@keyframes logoIn {
  from { clip-path: inset(0 100% 0 0); filter: blur(10px); opacity: 0; transform: translateX(-14px); }
  40%  { opacity: 1; }
  to   { clip-path: inset(0 0 0 0); filter: blur(0); opacity: 1; transform: none; }
}

.hero__foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(20px, 4vh, 40px);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--light-muted);
  opacity: calc(1 - var(--hp) * 3);
  animation: fadeUp 1.2s var(--ease) 1.4s both;
}
.cue {
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  writing-mode: vertical-rl;
}
.cue i {
  position: relative;
  width: 1px;
  height: 56px;
  background: var(--light-line);
  overflow: hidden;
}
.cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--yellow);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
  from { transform: translateY(-100%); }
  to   { transform: translateY(100%); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
}

/* ---------- Paper sections ---------- */

.paper {
  position: relative;
  background: var(--paper);
  color: var(--paper-ink);
  padding-block: var(--section);
}

.index {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: clamp(1.6rem, 3vw, 2.6rem);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--paper-muted);
  font-variant-numeric: tabular-nums;
}
.index::after {
  content: "";
  width: 3.2rem;
  height: 1px;
  background: currentColor;
  opacity: .5;
}

.display {
  font-weight: 500;
  font-size: clamp(2.6rem, 1.2rem + 5.6vw, 6.6rem);
  line-height: .98;
  letter-spacing: -.045em;
  color: var(--paper-ink);
  max-width: 14ch;
}
.display--md {
  font-size: clamp(2.3rem, 1.2rem + 3.6vw, 4.6rem);
  line-height: 1.02;
  max-width: 11ch;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 3.625rem;
  height: 3.625rem;
  border: 1px solid var(--paper-line);
  border-radius: 50%;
  color: var(--brown);
  transition: background-color .45s var(--ease), border-color .45s, color .45s, transform .6s var(--ease), translate .6s var(--ease);
}
a.icon:hover, .svc:hover .icon, .trio__item:hover .icon, .pillar:hover .icon {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
  transform: rotate(-8deg);
}

/* Underline that draws in from the left on hover. */
.ul {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease);
  padding-bottom: 1px;
}
.ul:hover { background-size: 0 1px; background-position: 100% 100%; }

/* Welcome */
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(3.5rem, 8vw, 7rem);
}
.trio__item {
  position: relative;
  padding-top: 2rem;
}
.trio__item::before, .svc::before, .pillar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--paper-line);
  transform-origin: 0 50%;
}
.trio__item p {
  margin-top: 1.6rem;
  font-size: clamp(1.3rem, 1rem + .9vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: -.015em;
  max-width: 17em;
}
.trio__item p a { color: var(--brown); font-weight: 500; }

/* Partners */
.partners__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 6vw, 7rem);
}
.partners__head {
  position: sticky;
  top: 18vh;
  align-self: start;
}
.svc {
  position: relative;
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.5rem;
  padding: clamp(2rem, 3.5vw, 3rem) 0;
}
.svc::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .8s var(--ease);
}
.svc:hover::after, .svc.is-current::after { transform: scaleX(1); }
.svc { scroll-margin-top: 14vh; }
.svc.is-current .icon {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.toc {
  display: grid;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--paper-line);
}
.toc a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--paper-line);
  color: var(--paper-muted);
  font-size: .98rem;
  transition: color .4s, padding-left .6s var(--ease);
}
.toc a span {
  width: 1.8rem;
  font-size: .72rem;
  letter-spacing: .2em;
  font-variant-numeric: tabular-nums;
}
.toc a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--yellow);
  transform: scale(0);
  transition: transform .5s var(--ease);
}
.toc a:hover { color: var(--paper-ink); }
.toc a.is-current { color: var(--paper-ink); padding-left: 1.2rem; }
.toc a.is-current::before { transform: scale(1); }
.svc__side {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.svc__num {
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--paper-muted);
  font-variant-numeric: tabular-nums;
}
.svc h3, .pillar h3 {
  font-size: clamp(1.6rem, 1.1rem + 1.3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.svc ul {
  margin-top: 1.2rem;
  display: grid;
  gap: .55rem;
  color: var(--paper-muted);
}
.svc li {
  position: relative;
  padding-left: 1.6rem;
}
.svc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .82em;
  width: .8rem;
  height: 1px;
  background: var(--brown);
  opacity: .55;
}

/* About */
.statement {
  font-weight: 500;
  font-size: clamp(2.3rem, 1rem + 4.8vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  max-width: 16ch;
}
.statement .fw { transition: opacity .25s linear; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(4rem, 9vw, 8rem);
}
.pillar {
  position: relative;
  padding-top: 2rem;
}
.pillar h3 { margin: 1.6rem 0 1rem; }
.pillar p { color: var(--paper-muted); max-width: 34em; }
.pillar p a { color: var(--paper-ink); font-weight: 500; }

/* ---------- Testimonials, set one: pinned cross-fade ---------- */

.stack {
  position: relative;
  height: 320vh;
}
.stack__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.stack__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}
.rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--light-muted);
  font-variant-numeric: tabular-nums;
}
.rail__count b { display: inline-block; color: var(--yellow); font-weight: 500; }
.rail__count b.tick { animation: tick .7s var(--ease); }
@keyframes tick {
  from { opacity: 0; transform: translateY(70%); }
}
.rail__bar {
  position: relative;
  width: 1px;
  height: 28vh;
  background: var(--light-line);
}
.rail__bar i {
  position: absolute;
  inset: 0;
  background: var(--yellow);
  transform: scaleY(0);
  transform-origin: 50% 0;
}

.stack__stage { display: grid; }
.q {
  grid-area: 1 / 1;
  align-self: center;
  opacity: 0;
  transform: translate3d(0, 48px, 0);
  filter: blur(8px);
  transition: opacity .9s var(--ease), transform 1.2s var(--ease), filter .9s var(--ease);
  pointer-events: none;
}
.q.is-past { transform: translate3d(0, -48px, 0); }
.q.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; }

.q blockquote, .card blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--light);
  letter-spacing: -.01em;
}
.q blockquote {
  font-size: clamp(2rem, 1rem + 3.3vw, 4.4rem);
  line-height: 1.08;
  max-width: 19em;
}
/* The opening mark hangs in the margin so the words line up flush. */
.hang { margin-left: -.42em; }
figcaption {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  margin-top: clamp(1.6rem, 3vw, 2.6rem);
  font-size: .95rem;
}
figcaption strong { color: var(--yellow); font-weight: 500; letter-spacing: .01em; }
figcaption span { color: var(--light-muted); }

/* ---------- Testimonials, set two: sideways track ---------- */

.track {
  position: relative;
  height: 300vh;
}
.track__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.track__row {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(60vw, 51.25rem);
  align-content: center;
  column-gap: clamp(3rem, 8vw, 9rem);
  padding-inline: max(var(--gutter), (100vw - 82.5rem) / 2);
  width: max-content;
  will-change: transform;
}
.card {
  position: relative;
  padding-left: clamp(1.5rem, 3vw, 3rem);
  border-left: 1px solid var(--light-line);
}
.card__mark {
  display: block;
  height: .55em;
  margin-bottom: .2em;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(5rem, 9vw, 9rem);
  line-height: 1;
  color: var(--yellow);
}
.card blockquote {
  font-size: clamp(1.9rem, 1rem + 2.6vw, 3.6rem);
  line-height: 1.1;
}
.track__meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(24px, 6vh, 56px);
  z-index: 2;
}
.track__meter span {
  position: relative;
  display: block;
  height: 1px;
  background: var(--light-line);
}
.track__meter i {
  position: absolute;
  inset: 0;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- Finale ---------- */

.finale {
  position: relative;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  display: grid;
  place-items: center;
  --fp: 0;
}
.finale__inner {
  position: relative;
  z-index: 2;
  width: min(40rem, 76vw, 80svh);
  opacity: calc(var(--fp) * 1.3);
  transform: scale(calc(.86 + var(--fp) * .14));
  will-change: transform, opacity;
}
.finale__logo { width: 100%; height: auto; aspect-ratio: 270 / 125; }

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

.footer {
  background: var(--espresso);
  color: var(--light-muted);
  padding-block: clamp(4.5rem, 9vw, 8rem) 2rem;
}
.footer__call {
  display: inline-flex;
  align-items: center;
  gap: clamp(.8rem, 2vw, 1.6rem);
  color: var(--yellow);
  font-size: clamp(2.4rem, 1rem + 4.2vw, 6rem);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.footer__call .material-symbols-outlined {
  font-size: .62em;
  font-variation-settings: "FILL" 0, "wght" 200, "GRAD" 0, "opsz" 48;
  transition: transform .7s var(--ease);
}
.footer__call:hover .material-symbols-outlined { transform: rotate(-14deg) scale(1.06); }
.footer__call > span:last-child {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .7s var(--ease);
  padding-bottom: .06em;
}
.footer__call:hover > span:last-child { background-size: 100% 2px; }

/* Two ways in, side by side: call, or send a message. */
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem 3rem;
}
.write {
  display: inline-flex;
  align-items: center;
  gap: 1.3rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--light);
  font: inherit;
  font-size: clamp(1.15rem, .9rem + .6vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}
.write__text small {
  display: block;
  margin-bottom: .45rem;
  color: var(--light-muted);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.write:hover .fab { transform: rotate(-8deg) scale(1.06); }

.footer__base {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(3rem, 7vw, 6rem);
  padding-top: 2.4rem;
  border-top: 1px solid var(--light-line);
}
.footer__name {
  margin-bottom: .5rem;
  color: var(--light);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -.01em;
}
.footer__copy {
  margin-top: 1.6rem;
  font-size: .8rem;
  letter-spacing: .02em;
  opacity: .7;
}
.top {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--light-line);
  border-radius: 50%;
  color: var(--light);
  transition: background-color .4s, border-color .4s, color .4s, transform .6s var(--ease), translate .6s var(--ease);
}
.top .material-symbols-outlined { font-size: 1.375rem; }
.top:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); transform: translateY(-4px); }

/* ---------- Round yellow button ---------- */

.fab {
  display: grid;
  place-items: center;
  flex: none;
  width: 4.5rem;
  height: 4.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 12px 32px -12px rgba(254, 194, 14, .55);
  transition: transform .6s var(--ease);
}
.fab .material-symbols-outlined {
  font-size: 1.9rem;
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 40;
}

/* ---------- Message pop-up: the lead survey (js/lead.js) ---------- */

/* A fixed-height panel in the bottom-right corner: a progress line on top,
   the current step in the middle (it scrolls), Back / Next at the bottom. */
.msg {
  /* Undo the browser's centred pop-up box; pin it to the corner. */
  inset: auto clamp(16px, 2vw, 32px) clamp(16px, 2vw, 32px) auto;
  margin: 0;
  width: min(31rem, 100vw - 32px);
  height: min(46rem, 100svh - 32px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--light-line);
  background: var(--espresso);
  color: var(--light);
  font: 400 1rem/1.5 var(--sans);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .7);
  opacity: 0;
  transform: translateY(18px) scale(.97);
  transform-origin: 100% 100%;
  transition: opacity .35s, transform .55s var(--ease), overlay .55s allow-discrete, display .55s allow-discrete;
}
.msg:popover-open { display: flex; flex-direction: column; opacity: 1; transform: none; }
@starting-style {
  .msg:popover-open { opacity: 0; transform: translateY(18px) scale(.97); }
}
.msg :focus-visible { outline-color: var(--yellow); }
.msg [tabindex="-1"]:focus { outline: none; }

.msg__bar { flex: none; height: 2px; background: var(--light-line); }
.msg__bar i {
  display: block;
  height: 100%;
  background: var(--yellow);
  transform: scaleX(var(--p, 1));
  transform-origin: 0 50%;
  transition: transform .6s var(--ease);
}

.msg__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--light-line);
  border-radius: 50%;
  background: var(--espresso);
  color: var(--light-muted);
  cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.msg__close:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.msg__close .material-symbols-outlined { font-size: 1.25rem; }

.msg__form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.msg__form[hidden] { display: none; }
.msg__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 1.7rem 1.9rem 3rem;
  /* No scroll bar. Instead, answers fade out at the bottom edge when there
     is more below. The extra bottom padding keeps the last answer clear of
     the fade once you reach the end. */
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 3rem), transparent);
  mask-image: linear-gradient(#000 calc(100% - 3rem), transparent);
}
.msg__body::-webkit-scrollbar { display: none; }

/* With JavaScript, one step at a time. Without it, all steps stack up. */
.step { display: grid; gap: 1.6rem; }
.step + .step { margin-top: 2.6rem; }
.js .step { margin-top: 0; }
.js .step:not(.is-current) { display: none; }
.js .step.is-current { animation: stepIn .5s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } }

.msg__eyebrow {
  margin-right: 3rem;
  color: var(--yellow);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.msg__title {
  margin: -.6rem 2.5rem 0 0;
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.035em;
}
.msg__lede { color: var(--light-muted); font-size: 1.02rem; }
.msg__note { color: var(--light-muted); font-size: .95rem; margin-top: -.6rem; }

.msg__plan { display: grid; margin-top: .4rem; border-top: 1px solid var(--light-line); }
.msg__plan li {
  display: flex;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--light-line);
  color: var(--light);
  font-size: .98rem;
}
.msg__plan span {
  width: 1.8rem;
  padding-top: .15rem;
  color: var(--light-muted);
  font-size: .72rem;
  letter-spacing: .2em;
  font-variant-numeric: tabular-nums;
}

/* One question */
.ask { margin: 0; padding: 0; border: 0; min-width: 0; }
.ask legend {
  margin-bottom: .8rem;
  padding: 0;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.ask legend em, .field em {
  display: block;
  margin-top: .15rem;
  color: var(--light-muted);
  font-size: .82rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

/* Answers you tap. Short ones are pills; long ones are rows. The real
   radio or checkbox is still there (keyboard, screen readers), just unseen. */
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips--list { flex-direction: column; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; top: 50%; left: 1rem; width: 1px; height: 1px; opacity: 0; }
.chip span {
  display: block;
  padding: .55rem .95rem;
  border: 1px solid var(--light-line);
  border-radius: 999px;
  color: var(--light);
  font-size: .95rem;
  line-height: 1.35;
  transition: background-color .25s, border-color .25s, color .25s;
}
.chip:hover span { border-color: rgba(244, 239, 230, .38); }
.chip input:checked + span { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }

.chips--list .chip span { position: relative; padding: .7rem 1rem .7rem 2.7rem; border-radius: 10px; }
.chips--list .chip span::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  width: .95rem;
  height: .95rem;
  margin-top: -.475rem;
  border: 1px solid rgba(244, 239, 230, .4);
  border-radius: 3px;
  transition: background-color .25s, border-color .25s;
}
.chips--list .chip input[type="radio"] + span::before { border-radius: 50%; }
.chips--list .chip input:checked + span { background: rgba(254, 194, 14, .1); color: var(--light); }
.chips--list .chip input:checked + span::before { background: var(--yellow); border-color: var(--yellow); box-shadow: inset 0 0 0 3px var(--espresso); }

/* "Other": a text box shows once it is ticked. */
.other { display: none; }
.chips:has([data-other]:checked) .other { display: block; }

.msg input:not([type]),
.msg input[type="email"],
.msg input[type="tel"],
.msg textarea {
  width: 100%;
  padding: .5rem 0 .6rem;
  border: 0;
  border-bottom: 1px solid var(--light-line);
  border-radius: 0;
  background: transparent;
  color: var(--light);
  font: 400 1.02rem/1.45 var(--sans);
  resize: vertical;
  transition: border-color .3s;
}
.msg input::placeholder, .msg textarea::placeholder { color: rgba(244, 239, 230, .32); }
.msg input:focus, .msg textarea:focus { outline: none; border-bottom-color: var(--yellow); }
.msg .other { margin-top: .2rem; padding-left: 1rem; }

.fields { display: grid; gap: 1.3rem; }
.field {
  display: grid;
  gap: .1rem;
  color: var(--light-muted);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.field em { margin-top: 0; font-size: .8rem; }

/* Back / Next, stuck to the bottom of the panel */
.msg__nav {
  flex: none;
  padding: 1rem 1.9rem 1.2rem;
  border-top: 1px solid var(--light-line);
}
.msg__buttons { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.msg__back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem .2rem;
  border: 0;
  background: none;
  color: var(--light-muted);
  font: 500 .95rem/1 var(--sans);
  cursor: pointer;
  transition: color .3s;
}
.msg__back:hover { color: var(--light); }
.msg__back .material-symbols-outlined { font-size: 1.2rem; }
.js .msg[data-at="start"] .msg__back { visibility: hidden; }
html:not(.js) .msg__back { display: none; }

.msg__send {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-left: auto;
  padding: .85rem 1.1rem .85rem 1.45rem;
  border: 0;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font: 500 1rem/1 var(--sans);
  cursor: pointer;
}
.msg__send .material-symbols-outlined { font-size: 1.25rem; transition: transform .5s var(--ease); }
.msg__send:hover .material-symbols-outlined { transform: translateX(4px); }

.msg__small { margin-top: .8rem; color: var(--light-muted); font-size: .84rem; }
.msg__small a { color: var(--light); }
.js .msg:not([data-at="end"]) [data-when="end"] { display: none; }

/* Thank-you */
.msg__done { display: grid; align-content: start; justify-items: start; gap: 1.2rem; padding: 3rem 1.9rem 2rem; overflow: auto; }
.msg__done[hidden] { display: none; }
.msg__done .msg__title { margin: 0; }
.msg__done a { color: var(--light); }

/* Cloudflare's spam check, under the contact fields. Usually it passes
   without a click. */
.msg__human { min-height: 65px; }
.msg__error { margin-bottom: .8rem; color: #ff9b85; font-size: .9rem; }
.msg__error[hidden] { display: none; }
.msg__send:disabled { opacity: .6; cursor: progress; }

/* ---------- Reveal states (only when JS is on) ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 44px, 0);
  transition: opacity 1s var(--ease), transform 1.3s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }

.js [data-reveal]::before { transform: scaleX(0); transition: transform 1.4s var(--ease) calc(var(--d, 0) * 110ms + 150ms); }
.js [data-reveal].in::before { transform: scaleX(1); }

/* Words rise out of a mask, one after another. */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .1em;
  margin-bottom: -.1em;
}
.w > span {
  display: inline-block;
  transform: translate3d(0, 108%, 0);
  transition: transform 1.2s var(--ease);
  transition-delay: calc(var(--i) * 70ms);
}
.in .w > span { transform: none; }

/* ---------- Small screens ---------- */

@media (max-width: 960px) {
  .trio, .pillars { grid-template-columns: 1fr; }
  .partners__grid { grid-template-columns: 1fr; }
  .partners__head { position: static; }
  .toc { display: none; }
  .track__row { grid-auto-columns: 82vw; }
}

@media (max-width: 640px) {
  .nav { padding-block: 14px; }
  .nav__mark img { height: 28px; }
  .nav__call { font-size: .82rem; padding: .5rem .9rem; }
  .stack__inner { grid-template-columns: 1fr; align-content: center; gap: 2.2rem; }
  .rail { flex-direction: row; }
  .rail__bar { width: 30vw; height: 1px; }
  .rail__bar i { transform-origin: 0 50%; }
  .svc { grid-template-columns: 1fr; gap: 1rem; }
  .svc__side { flex-direction: row; align-items: center; justify-content: space-between; }
  .hero__foot { letter-spacing: .14em; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .msg {
    inset: auto 0 0 0;
    width: 100%;
    height: min(100svh, 52rem);
    border-inline: 0;
    border-bottom: 0;
    transform: translateY(40px);
  }
  @starting-style {
    .msg:popover-open { transform: translateY(40px); }
  }
  .msg__body, .msg__nav, .msg__done { padding-inline: var(--gutter); }
}

/* ---------- Static layout: reduced motion, or no JavaScript ----------
   The head script adds .motion only when JavaScript runs and the visitor
   has not asked for reduced motion. Without it, the pinned sections turn
   into plain stacked sections and everything is visible. */

html:not(.motion) .hero__inner,
html:not(.motion) .hero__media,
html:not(.motion) .hero__shade,
html:not(.motion) .hero__foot { transform: none; opacity: 1; }
html:not(.motion) .photo img { transform: scale(1.05); }
html:not(.motion) .stack,
html:not(.motion) .track { height: auto !important; }
html:not(.motion) .stack__sticky,
html:not(.motion) .track__sticky { position: relative; height: auto; }
html:not(.motion) .stack__inner { padding-block: var(--section); grid-template-columns: 1fr; }
html:not(.motion) .rail { display: none; }
html:not(.motion) .stack__stage { gap: 4rem; }
html:not(.motion) .q { grid-area: auto; opacity: 1; transform: none; filter: none; }
html:not(.motion) .track__row { grid-auto-flow: row; grid-auto-columns: auto; row-gap: 4rem; width: auto; padding-block: var(--section); transform: none !important; }
html:not(.motion) .card { opacity: 1 !important; }
html:not(.motion) .stack__sticky,
html:not(.motion) .track__sticky,
html:not(.motion) .finale > .photo,
html:not(.motion) .finale > .photo__shade { clip-path: none; }
html:not(.motion) .track__meter { display: none; }
html:not(.motion) .finale__inner { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js [data-reveal]::before, .w > span { opacity: 1; transform: none; }
}
