/* Landing foundation: sticky header, shared pieces of the illustrations and reveals. */
.landing-site {
  --iguana: #673fb4;
  --iguana-soft: #f6f2fc;
  --stage-text: #f0eee6;
  --stage-muted: #aeb2a6;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}
.landing-site main {
  overflow-x: clip;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Header: compact over the page once scrolled, out of the way while reading. */
.landing-site .site-header {
  position: sticky;
  top: 0;
  max-width: none;
  padding-inline: max(64px, calc((100% - 1312px) / 2));
  transition:
    min-height 320ms var(--ease-out),
    padding 320ms var(--ease-out),
    background-color 320ms,
    border-color 320ms,
    transform 420ms var(--ease-out);
  border-bottom: 1px solid transparent;
}
.landing-site .site-header.is-scrolled {
  min-height: 74px;
  padding-block: 12px;
  background: rgba(245, 243, 237, 0.84);
  border-bottom-color: var(--color-border);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}
.landing-site .site-header.is-scrolled .brand img {
  width: 132px;
}
.landing-site .brand img {
  transition: width 320ms var(--ease-out);
}
.landing-site .site-header.is-hidden {
  transform: translateY(-100%);
}
.landing-site .desktop-nav a {
  position: relative;
}
.landing-site .desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 320ms var(--ease-out);
}
.landing-site .desktop-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Section headings shared by every block. */
.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: 64px;
}
.section-head--split {
  grid-template-columns: 1fr minmax(0, 420px);
  align-items: end;
  gap: 48px;
}
.section-head h2,
.formats-heading h2,
.team-head h2,
.flow-copy h2 {
  font-size: clamp(40px, 5.2vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.section-head > p,
.section-head--split > p {
  max-width: 420px;
  color: var(--color-text-muted);
  font-size: 17px;
}
.eyebrow {
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.feature-number {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Agent faces: initial on the agent colour, with a status dot that breathes while working. */
.face {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  color: #fff;
  background: var(--tone);
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
}
.face i {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--color-surface);
  border-radius: 50%;
  background: var(--color-success);
}
.face[data-state="idle"] i {
  background: #b9bcb2;
}
.motion .face:not([data-state="idle"]) i::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--color-success);
  animation: breathe 2.2s var(--ease-out) infinite;
}
.face--lg {
  width: 64px;
  height: 64px;
  font-size: 28px;
}
.face--lg i {
  width: 16px;
  height: 16px;
  border-width: 3px;
}
.face--xs {
  width: 22px;
  height: 22px;
  font-size: 11px;
}
.is-iguana img,
img.is-iguana {
  border-radius: 6px;
}

/* Example captions under illustrations. */
.stage-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--color-text-muted);
}
.stage-caption span {
  font-style: italic;
}

/* Reveals: only while motion is allowed; without JS or with reduced motion everything is in place. */
.motion [data-reveal] {
  transition:
    opacity 900ms var(--ease-out),
    transform 900ms var(--ease-out),
    filter 900ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.motion [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(6px);
}

@keyframes breathe {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  70%,
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes rise {
  from {
    transform: translateY(105%);
  }
  to {
    transform: none;
  }
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pop {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes press {
  0%,
  100% {
    transform: none;
  }
  40% {
    transform: scale(0.92);
  }
}
@keyframes ring {
  0% {
    box-shadow: 0 0 0 0 rgba(186, 62, 39, 0.5);
  }
  100% {
    box-shadow: 0 0 0 18px rgba(186, 62, 39, 0);
  }
}
