/* Y2A admin site. Brand colors and fonts come from tokens.css, generated from brand/brand.json.
   Direction: Rilla's punch. Full-bleed electric yellow, near-black ink, giant condensed caps.
   Motion: ambient loops that start on load. Nothing waits for scroll, and every element's
   resting style is its finished state, so reduced motion (or no animation support) shows it complete. */

:root {
  --panel: color-mix(in oklch, var(--ink) 6%, var(--bg));
  --line: color-mix(in oklch, var(--ink) 12%, var(--bg));
  --ink-2: color-mix(in oklch, var(--ink) 90%, var(--bg));
  --ink-3: color-mix(in oklch, var(--ink) 80%, var(--bg));
  --on-ink: color-mix(in oklch, var(--bg) 96%, var(--ink));
  --on-ink-muted: color-mix(in oklch, var(--bg) 64%, var(--ink));
  --ink-soft: color-mix(in oklch, var(--ink) 78%, var(--brand));
  --brand-deep: color-mix(in oklch, var(--ink) 7%, var(--brand));

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --shadow-color: 50deg 30% 6%;
  --shadow:
    0 1px 2px hsl(var(--shadow-color) / 0.12),
    0 8px 20px -6px hsl(var(--shadow-color) / 0.22),
    0 26px 50px -24px hsl(var(--shadow-color) / 0.35);

  --max: 76rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

@property --sec {
  syntax: "<integer>";
  inherits: false;
  initial-value: 47;
}

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

html {
  scrollbar-color: var(--line) transparent;
  scrollbar-width: thin;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

a {
  color: inherit;
  text-underline-offset: 3px;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.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;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--brand);
  font-weight: 700;
}

.skip:focus {
  top: 1rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.95rem 1.7rem;
  border-radius: 10px;
  background: var(--ink);
  color: var(--brand);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 160ms var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

/* Header */

.site-header {
  background: var(--brand);
  color: var(--ink);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.95rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.logo-small {
  font-size: 1.4rem;
  gap: 0.5rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 650;
  font-size: 0.98rem;
}

.nav a {
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .nav a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
  }
}

/* Hero */

.hero {
  overflow-x: clip;
  padding-block: clamp(1.5rem, 1rem + 2.5vw, 3.5rem) clamp(3.5rem, 2rem + 4vw, 6rem);
  background: var(--brand);
  color: var(--ink);
  text-align: center;
}

.hero .hero-line {
  max-width: none;
}

.hero-line {
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 0.3rem + 9.2vw, 10.5rem);
  line-height: 0.86;
  letter-spacing: 0.004em;
  text-transform: uppercase;
  text-wrap: balance;
}

.ticker {
  margin-block: clamp(1rem, 0.5rem + 1.6vw, 2rem);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
}

@media (prefers-reduced-motion: no-preference) {
  .ticker-track {
    animation: slide 60s linear infinite;
  }
}

@media (hover: hover) and (pointer: fine) {
  .ticker:hover .ticker-track {
    animation-play-state: paused;
  }
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* margin-right instead of gap, so the doubled track is exactly two sets wide and loops seamlessly */
.tk {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 0.55rem;
  width: 16.5rem;
  min-height: 9.75rem;
  margin-right: 1rem;
  padding: 1rem 1.1rem 1.05rem;
  border-radius: 18px;
  text-align: left;
}

.tk-dark {
  background: var(--ink);
  color: var(--on-ink);
}

.tk-light {
  background: var(--bg);
  color: var(--ink);
}

.tk-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.tk-chip {
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tk-dark .tk-chip {
  background: var(--brand);
  color: var(--ink);
}

.tk-light .tk-chip {
  background: var(--ink);
  color: var(--brand);
}

.tk-time {
  font-size: 0.75rem;
  font-weight: 550;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}

.tk-title {
  flex: 1;
  margin: 0;
  font-weight: 650;
  font-size: 1.02rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.tk-foot {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
}

.tk-dot {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--brand);
}

.tk-light .tk-dot {
  background: var(--ink);
}

.tk-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 1.4rem;
}

.tk-wave i {
  width: 4px;
  height: 100%;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleY(var(--h));
}

.tk-steps {
  display: flex;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
}

.tk-steps span {
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--ink-3);
}

.tk-steps span:last-child {
  background: var(--brand);
  color: var(--ink);
}

.hero-foot {
  display: grid;
  justify-items: center;
  gap: 1.4rem;
  margin-top: clamp(1.5rem, 1rem + 1.6vw, 2.75rem);
}

.hero-sub {
  max-width: 30ch;
  margin: 0;
  font-weight: 650;
  font-size: clamp(1.2rem, 0.95rem + 1vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Sections */

.section {
  padding-block: clamp(4.5rem, 3rem + 5vw, 8.5rem);
}

.section-head {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  margin-bottom: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
  text-align: center;
}

.display-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.6rem, 0.8rem + 11.5vw, 13rem);
  line-height: 0.84;
  letter-spacing: 0.004em;
  text-transform: uppercase;
}

.tag {
  margin: 0;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  background: var(--brand);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-lede {
  max-width: 44ch;
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: var(--step-1);
  font-weight: 550;
  line-height: 1.45;
  text-wrap: balance;
}

/* Services bento */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.svc {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  min-width: 0;
  padding: clamp(1.1rem, 0.9rem + 1vw, 1.9rem);
  border-radius: 26px;
  overflow: hidden;
}

.svc-7 {
  grid-column: span 7;
}

.svc-5 {
  grid-column: span 5;
}

.svc-12 {
  grid-column: span 12;
}

.svc-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
}

.svc-yellow {
  background: var(--brand);
  color: var(--ink);
}

.svc-dark {
  background: var(--ink);
  color: var(--on-ink);
}

.svc-light {
  background: var(--panel);
  color: var(--ink);
}

.svc h3 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.15rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.svc-body p {
  max-width: 54ch;
  margin: 0;
  line-height: 1.55;
}

.svc-yellow .svc-body p {
  color: var(--ink-soft);
}

.svc-dark .svc-body p {
  color: var(--on-ink-muted);
}

.svc-light .svc-body p {
  color: var(--muted);
}

.ticks {
  display: grid;
  gap: 0.5rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.ticks li {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.ticks li::before {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--brand);
  transform: translateY(-0.05em);
}

.svc-yellow .ticks li::before,
.svc-light .ticks li::before {
  background: var(--ink);
}

.viz {
  position: relative;
  display: grid;
  place-items: center;
  height: 16rem;
  border-radius: 18px;
  overflow: hidden;
}

.svc-yellow .viz {
  background: var(--brand-deep);
}

.svc-dark .viz {
  background: var(--ink-2);
}

.svc-light .viz {
  background: var(--bg);
}

/* Viz 1: speed to lead. A response clock fills while the seconds count up, then "called back" lands. */

.ripple {
  position: absolute;
  width: 15rem;
  height: 15rem;
  border: 2px solid color-mix(in oklch, var(--ink) 30%, transparent);
  border-radius: 50%;
  opacity: 0.35;
}

.call {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem 1.5rem 1rem 1rem;
  border-radius: 20px;
  background: var(--ink);
  color: var(--on-ink);
  box-shadow: var(--shadow);
}

.ring {
  position: relative;
  width: 5.6rem;
  height: 5.6rem;
  flex: none;
}

.ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring circle {
  fill: none;
  stroke-width: 9;
}

.ring-track {
  stroke: var(--ink-3);
}

.ring-fill {
  stroke: var(--brand);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 22;
}

.ring-time {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  counter-reset: sec var(--sec);
}

.ring-time::after {
  content: "0:" counter(sec, decimal-leading-zero);
}

.call-meta {
  display: grid;
  gap: 0.3rem;
  text-align: left;
}

.mini-chip {
  justify-self: start;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--brand);
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.call-meta strong {
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.called {
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 700;
}

.called::before {
  content: "\2713\00a0";
}

/* Viz 2: call coaching. Live waveform, a playhead that colors what has been heard, tags that land. */

.viz-calls {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

.wave {
  position: relative;
  width: 86%;
  height: 4.6rem;
}

.bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 3px;
}

.bars span {
  flex: 1;
  height: 100%;
  border-radius: 3px;
  background: var(--ink-3);
  transform: scaleY(var(--h));
}

.bars-played span {
  background: var(--brand);
}

.playhead {
  position: absolute;
  inset: -0.5rem 0;
}

.playhead::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2px;
  border-radius: 1px;
  background: var(--on-ink);
}

.lines {
  display: grid;
  gap: 0.3rem;
  width: 86%;
  text-align: left;
}

.line {
  margin: 0;
  overflow: hidden;
  color: var(--on-ink-muted);
  font-size: 0.8rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.line b {
  margin-right: 0.4rem;
  color: var(--on-ink);
  font-weight: 650;
}

.tags {
  display: flex;
  gap: 0.4rem;
  width: 86%;
}

.tags span {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tag-a {
  background: var(--brand);
  color: var(--ink);
}

.tag-b {
  background: var(--on-ink);
  color: var(--ink);
}

/* Viz 3: no-sale follow-up. Each lead's status rolls forward until it's rebooked or sold. */

.viz-follow {
  display: grid;
  place-items: center stretch;
  align-content: center;
  gap: 0.6rem;
  padding: 1rem clamp(1rem, 4%, 2rem);
}

.row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  width: min(100%, 26rem);
  justify-self: center;
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  background: var(--panel);
}

.svc-yellow .row {
  background: var(--bg);
}

.av {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 750;
}

.who {
  min-width: 0;
}

.who b {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
}

.who span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.status {
  height: 1.65rem;
  overflow: hidden;
  border-radius: 999px;
}

.status-track {
  display: flex;
  flex-direction: column;
  transform: translateY(-66.667%);
}

.status-track span {
  display: grid;
  place-items: center;
  height: 1.65rem;
  padding-inline: 0.7rem;
  background: var(--line);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-track .ok {
  background: var(--brand);
}

/* Viz 4: ads measured in sold jobs. An ad feeds a funnel that fills down to the sold jobs it produced. */

.viz-ads {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.4rem;
  padding: 1.25rem 1.6rem;
  place-items: center stretch;
}

.ad {
  display: grid;
  gap: 0.45rem;
  width: 9.5rem;
  padding: 0.55rem;
  border-radius: 14px;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.ad-label {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 650;
}

.ad-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  height: 6.2rem;
  border-radius: 8px;
  overflow: hidden;
}

.ad-photos span {
  display: flex;
  align-items: flex-end;
  padding: 0.3rem;
  color: var(--on-ink);
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ad-photos .before {
  background: repeating-linear-gradient(135deg, var(--ink-3) 0 6px, var(--ink-2) 6px 12px);
}

.ad-photos .after {
  background:
    linear-gradient(to top, color-mix(in oklch, var(--ink) 55%, transparent), transparent 60%),
    repeating-linear-gradient(90deg, color-mix(in oklch, var(--bg) 70%, var(--ink)) 0 10px, color-mix(in oklch, var(--bg) 82%, var(--ink)) 10px 20px);
}

.ad-num {
  justify-self: start;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: var(--ink);
  color: var(--brand);
  font-size: 0.64rem;
  font-weight: 750;
}

.funnel {
  display: grid;
  gap: 0.55rem;
}

.funnel .bar {
  position: relative;
  height: 2.2rem;
}

.funnel .bar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: var(--ink);
  transform: scaleX(var(--w));
  transform-origin: left;
}

.funnel .bar span {
  position: relative;
  z-index: 1;
  padding-left: 0.75rem;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 2.2rem;
}

.funnel .bar-sold::before {
  background: var(--bg);
}

.funnel .bar-sold span {
  color: var(--ink);
}

.funnel .bar em {
  position: absolute;
  top: 50%;
  left: calc(var(--w) * 100% + 0.6rem);
  transform: translateY(-50%);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

/* Viz 5: AI implementation. A call summary writes itself, then lands in the CRM. */

.viz-ai {
  height: auto;
  min-height: 17rem;
  padding: 1.6rem;
}

.svc-light .viz-ai {
  background: var(--ink);
}

.doc-card {
  display: grid;
  gap: 0.55rem;
  width: min(100%, 31rem);
  padding: 1.2rem 1.3rem;
  border-radius: 16px;
  background: var(--bg);
  color: var(--ink);
  text-align: left;
}

.doc-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spark {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 3px;
  background: var(--brand);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.typed {
  min-height: 2.35rem;
  margin: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 9px;
  background: var(--panel);
  font-size: 0.98rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.typed span {
  display: inline-block;
}

.doc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.doc-tags span {
  padding: 0.25rem 0.55rem;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dt-a {
  background: var(--ink);
  color: var(--brand);
}

.dt-b {
  background: var(--brand);
  color: var(--ink);
}

/* How we work: Rilla-style numbered yellow cards (the order is a real sequence). */

.how {
  padding-top: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 25rem;
  padding: clamp(1.25rem, 1rem + 1vw, 1.8rem);
  border-radius: 26px;
  background: var(--brand);
  color: var(--ink);
}

.step-num {
  position: absolute;
  top: 1.3rem;
  right: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.step-viz {
  flex: 1;
  display: grid;
  place-content: center;
  margin: 2rem 0 0.75rem;
}

.step h3 {
  margin: 0;
  font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.step p {
  max-width: 34ch;
  margin: 0;
  color: var(--ink-soft);
  font-weight: 550;
}

.step-viz-1 {
  gap: 0.5rem;
}

.step-viz-1 span {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 0.86rem;
  font-weight: 650;
  box-shadow: var(--shadow);
}

.rec {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--brand);
}

.step-viz-2 {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.6rem;
  height: 8rem;
}

.step-viz-2 i {
  width: 2.3rem;
  height: 100%;
  border-radius: 9px 9px 3px 3px;
  background: var(--ink);
  transform: scaleY(var(--h));
  transform-origin: bottom;
}

.mini-ad {
  display: grid;
  gap: 0.5rem;
  width: 10rem;
  padding: 0.55rem;
  border-radius: 14px;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.mini-ad-photo {
  height: 6rem;
  border-radius: 8px;
  background:
    linear-gradient(to top, color-mix(in oklch, var(--ink) 50%, transparent), transparent 55%),
    repeating-linear-gradient(135deg, var(--ink-3) 0 7px, var(--ink-2) 7px 14px);
}

.mini-ad-live {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-self: start;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--ink);
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 750;
}

.mini-ad-live::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--brand);
}

.step-viz-4 {
  width: 11.5rem;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.step-viz-4 span {
  height: 0.65rem;
  border-radius: 4px;
  background: var(--line);
}

.step-viz-4 span:nth-child(2) {
  width: 70%;
}

.step-viz-4 .hi {
  height: auto;
  padding: 0.3rem 0.5rem;
  background: var(--ink);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* The whole flow: the benefit, last. A pulse runs through every step and each one lights as it passes. */

.flow {
  background: var(--ink);
  color: var(--on-ink);
}

.flow .display-title span {
  color: var(--brand);
}

.flow .section-lede {
  color: var(--on-ink-muted);
}

.pipeline-wrap {
  position: relative;
  max-width: 62rem;
  margin: 0 auto clamp(3rem, 2rem + 3vw, 5rem);
}

.pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.pipeline::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: calc(100% / 12);
  right: calc(100% / 12);
  height: 2px;
  background: var(--ink-3);
  transform: translateY(-50%);
}

.node {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  font-weight: 650;
  text-align: center;
}

.node i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--brand);
}

.node i::after {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--ink);
}

.lane {
  position: absolute;
  top: 1.25rem;
  left: calc(100% / 12);
  right: calc(100% / 12);
  z-index: 2;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.lane-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
}

.lane-dot::after {
  content: "";
  position: absolute;
  top: -8px;
  right: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--on-ink);
  box-shadow: 0 0 0 6px color-mix(in oklch, var(--brand) 40%, transparent);
}

.brace {
  height: 0.9rem;
  margin: 1.6rem calc(100% / 12) 0;
  border: 2px solid var(--brand);
  border-top: 0;
  border-radius: 0 0 6px 6px;
}

.brace-label {
  margin: 0.9rem 0 0;
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.outcomes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.outcome {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  min-height: 21rem;
  padding: clamp(1.4rem, 1rem + 1vw, 2rem);
  border-radius: 26px;
  background: var(--brand);
  color: var(--ink);
}

.arrow {
  width: 3.8rem;
  height: 3.8rem;
}

.outcome h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 1.6rem + 2.6vw, 3.9rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.outcome p {
  max-width: 32ch;
  margin: 0;
  color: var(--ink-soft);
  font-weight: 550;
}

/* Closing band */

.closer {
  overflow: hidden;
  padding-block: clamp(1.4rem, 1rem + 2vw, 3rem);
  background: var(--brand);
  color: var(--ink);
}

.marquee-track {
  display: flex;
  width: max-content;
}

.marquee-track span {
  display: flex;
  align-items: center;
  gap: 0.45em;
  padding-right: 0.45em;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 1rem + 8vw, 9.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-track span::after {
  content: "";
  width: 0.32em;
  height: 0.32em;
  background: var(--ink);
  transform: rotate(45deg);
}

/* Footer: company details and the texting note, small */

.site-footer {
  padding-block: 1.8rem 2rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.foot-id {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.foot-address {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  font-weight: 650;
}

.fine-print {
  max-width: 92ch;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

/* Legal documents */

.doc {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(4rem, 3rem + 4vw, 6rem);
}

.doc .wrap {
  max-width: 50rem;
}

.doc .eyebrow {
  display: inline-block;
  margin: 0;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  background: var(--brand);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.doc h1 {
  margin: 1.1rem 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 1.4rem + 6vw, 6.5rem);
  line-height: 0.88;
  text-transform: uppercase;
  text-wrap: balance;
}

.doc .updated {
  margin: 0 0 2.5rem;
  color: var(--muted);
  font-size: var(--step--1);
}

.doc h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: var(--step-1);
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.doc h2[id] {
  scroll-margin-top: 2rem;
}

.doc p,
.doc li {
  max-width: 68ch;
}

.doc ul {
  padding-left: 1.2rem;
}

.doc li + li {
  margin-top: 0.4rem;
}

.doc .callout {
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--ink);
  border-radius: 0 10px 10px 0;
  background: var(--brand);
}

.doc .callout p {
  margin: 0;
}

.doc .toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0 0 1rem;
  padding: 0 0 1.5rem;
  list-style: none;
  border-bottom: 1px solid var(--line);
  font-size: var(--step--1);
  font-weight: 650;
}

/* Not found */

.missing {
  padding-block: clamp(5rem, 3rem + 8vw, 10rem);
  background: var(--brand);
}

.missing .eyebrow {
  margin: 0;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.missing h1 {
  margin: 1rem 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.4rem, 1rem + 9vw, 9rem);
  line-height: 0.86;
  text-transform: uppercase;
}

.missing p {
  margin: 0 0 2rem;
  font-size: var(--step-1);
  font-weight: 550;
}

/* Motion. Each element's resting style above is its finished state; these loops only run when
   the visitor has not asked for reduced motion. */

@media (prefers-reduced-motion: no-preference) {
  .ripple {
    animation: ripple 3.2s var(--ease-out) infinite;
  }

  .ripple.r2 {
    animation-delay: 1.6s;
  }

  .ring-fill {
    animation: ring-fill 6s var(--ease-out) infinite;
  }

  .ring-time {
    animation: count-up 6s var(--ease-out) infinite;
  }

  .called {
    animation: land-a 6s var(--ease-out) infinite;
  }

  .bars span {
    animation: wave 1.2s ease-in-out infinite alternate;
  }

  .bars span:nth-child(3n) {
    animation-duration: 0.9s;
  }

  .bars span:nth-child(3n + 1) {
    animation-duration: 1.45s;
  }

  .bars-played {
    animation: heard 7s linear infinite;
  }

  .playhead {
    animation: playhead 7s linear infinite;
  }

  .tag-a {
    animation: land-b 7s var(--ease-out) infinite;
  }

  .tag-b {
    animation: land-c 7s var(--ease-out) infinite;
  }

  .status-track {
    animation: status 7.5s var(--ease-in-out) infinite;
  }

  .row:nth-child(2) .status-track {
    animation-delay: -2.5s;
  }

  .row:nth-child(3) .status-track {
    animation-delay: -5s;
  }

  .funnel .bar::before {
    animation: fill-bar 7s var(--ease-out) infinite;
  }

  .funnel .bar:nth-child(2)::before {
    animation-delay: 0.12s;
  }

  .funnel .bar:nth-child(3)::before {
    animation-delay: 0.24s;
  }

  .funnel .bar:nth-child(4)::before {
    animation-delay: 0.36s;
  }

  .funnel .bar em {
    animation: land-d 7s var(--ease-out) infinite;
  }

  .typed .t-1 {
    animation: type-1 9s steps(30, end) infinite;
  }

  .typed .t-2 {
    animation: type-2 9s steps(30, end) infinite;
  }

  .typed .t-3 {
    animation: type-3 9s steps(30, end) infinite;
  }

  .dt-a {
    animation: land-e 9s var(--ease-out) infinite;
  }

  .dt-b {
    animation: land-f 9s var(--ease-out) infinite;
  }

  .rec,
  .mini-ad-live::before {
    animation: blink 1.1s ease-in-out infinite alternate;
  }

  .lane {
    opacity: 1;
  }

  .lane-dot {
    animation: travel 6s linear infinite;
  }

  .node i {
    animation: node-lit 6s var(--ease-out) infinite backwards;
    animation-delay: calc(var(--i) * 0.96s);
  }

  .arrow-down {
    animation: bob-down 1.6s ease-in-out infinite alternate;
  }

  .arrow-up {
    animation: bob-up 1.6s ease-in-out infinite alternate;
  }

  .marquee-track {
    animation: slide 38s linear infinite;
  }
}

@keyframes ripple {
  from {
    transform: scale(0.55);
    opacity: 0.6;
  }
  to {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes ring-fill {
  0% {
    stroke-dashoffset: 100;
  }
  55%,
  100% {
    stroke-dashoffset: 22;
  }
}

@keyframes count-up {
  0% {
    --sec: 0;
  }
  55%,
  100% {
    --sec: 47;
  }
}

@keyframes wave {
  to {
    transform: scaleY(calc(var(--h) * 0.45));
  }
}

@keyframes heard {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes playhead {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes status {
  0%,
  24% {
    transform: translateY(0);
  }
  32%,
  56% {
    transform: translateY(-33.333%);
  }
  64%,
  94% {
    transform: translateY(-66.667%);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes fill-bar {
  0% {
    transform: scaleX(0.04);
  }
  28%,
  88% {
    transform: scaleX(var(--w));
  }
  100% {
    transform: scaleX(0.04);
  }
}

@keyframes type-1 {
  0%,
  4% {
    clip-path: inset(0 100% 0 0);
  }
  20%,
  92% {
    clip-path: inset(0 0 0 0);
  }
  100% {
    clip-path: inset(0 100% 0 0);
  }
}

@keyframes type-2 {
  0%,
  22% {
    clip-path: inset(0 100% 0 0);
  }
  38%,
  92% {
    clip-path: inset(0 0 0 0);
  }
  100% {
    clip-path: inset(0 100% 0 0);
  }
}

@keyframes type-3 {
  0%,
  40% {
    clip-path: inset(0 100% 0 0);
  }
  56%,
  92% {
    clip-path: inset(0 0 0 0);
  }
  100% {
    clip-path: inset(0 100% 0 0);
  }
}

@keyframes blink {
  to {
    opacity: 0.25;
  }
}

/* The dot reaches node i at i x 0.96s, the same moment that node's light-up starts. */
@keyframes travel {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  3% {
    opacity: 1;
  }
  80% {
    transform: translateX(0);
    opacity: 1;
  }
  90%,
  100% {
    transform: translateX(0);
    opacity: 0;
  }
}

@keyframes node-lit {
  0% {
    background: var(--ink-3);
    transform: scale(1);
  }
  5% {
    background: var(--brand);
    transform: scale(1.18);
  }
  12% {
    transform: scale(1);
  }
  60% {
    background: var(--brand);
  }
  75%,
  100% {
    background: var(--ink-3);
  }
}

@keyframes bob-down {
  to {
    transform: translateY(6px);
  }
}

@keyframes bob-up {
  to {
    transform: translateY(-6px);
  }
}

/* "Land" keyframes: an element drops into place at a set moment of its loop and leaves at the end. */
@keyframes land-a {
  0%,
  50% {
    opacity: 0;
    transform: translateY(5px);
  }
  58%,
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes land-b {
  0%,
  34% {
    opacity: 0;
    transform: translateY(5px);
  }
  40%,
  94% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}

@keyframes land-c {
  0%,
  70% {
    opacity: 0;
    transform: translateY(5px);
  }
  76%,
  94% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}

@keyframes land-d {
  0%,
  32% {
    opacity: 0;
    transform: translate(-6px, -50%);
  }
  40%,
  86% {
    opacity: 1;
    transform: translate(0, -50%);
  }
  96%,
  100% {
    opacity: 0;
    transform: translate(0, -50%);
  }
}

@keyframes land-e {
  0%,
  60% {
    opacity: 0;
    transform: translateY(5px);
  }
  66%,
  92% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}

@keyframes land-f {
  0%,
  68% {
    opacity: 0;
    transform: translateY(5px);
  }
  74%,
  92% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}

/* Narrow screens */

@media (max-width: 960px) {
  .svc-7,
  .svc-5 {
    grid-column: span 12;
  }

  .svc-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step {
    min-height: 21rem;
  }

  .outcomes {
    grid-template-columns: minmax(0, 1fr);
  }

  .outcome {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .step {
    min-height: 18rem;
  }
}

@media (max-width: 560px) {
  .nav-optional {
    display: none;
  }

  .nav {
    gap: 1.2rem;
    font-size: 0.92rem;
  }

  .tk {
    width: 14.5rem;
  }

  .viz {
    height: 15rem;
  }

  .viz-ads {
    grid-template-columns: minmax(0, 1fr);
    padding: 1rem 1.1rem;
  }

  .ad {
    display: none;
  }

  .call {
    gap: 0.8rem;
    padding: 0.8rem 1rem 0.8rem 0.8rem;
  }

  .ring {
    width: 4.6rem;
    height: 4.6rem;
  }

  .node {
    gap: 0.55rem;
    font-size: 0.72rem;
  }

  .node i {
    width: 2rem;
    height: 2rem;
  }

  .pipeline::before,
  .lane {
    top: 1rem;
  }
}
