/* ==========================================================================
   vectora — layout & components (Material Design 3, Expressive)
   Elevation is communicated through tonal surface shifts; color comes
   entirely from the tokens in tokens.css.
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* clear the sticky app bar on anchor jumps */
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--md-sys-color-background);
  color: var(--md-sys-color-on-background);
  font: var(--md-sys-type-body-lg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color var(--md-sys-motion-duration-long) var(--md-sys-motion-easing-standard),
              color var(--md-sys-motion-duration-long) var(--md-sys-motion-easing-standard);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}
@media (max-width: 640px) {
  .container { padding-inline: 16px; }
}

section { padding-block: clamp(64px, 9vw, 120px); }

.eyebrow {
  font: var(--md-sys-type-label-lg);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--md-sys-color-primary);
  margin: 0 0 16px;
}

h1, h2, h3, h4 { margin: 0; font-weight: 500; }
.display-lg { font: var(--md-sys-type-display-lg); letter-spacing: -0.03em; }
.display-sm { font: var(--md-sys-type-display-sm); letter-spacing: -0.02em; }
.title-lg { font: var(--md-sys-type-title-lg); letter-spacing: -0.01em; }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--wide { max-width: 820px; }
.section-head--flush { margin-bottom: 0; }
.section-head p:not(.eyebrow) { color: var(--md-sys-color-on-surface-variant); margin-top: 16px; font: var(--md-sys-type-headline-sm); }
.lead { font: var(--md-sys-type-headline-sm); color: var(--md-sys-color-on-surface-variant); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(calc(-100% - 24px));
  background: var(--md-sys-color-inverse-surface);
  color: var(--md-sys-color-inverse-on-surface);
  padding: 12px 20px;
  border-radius: var(--md-sys-shape-sm);
  z-index: 100;
  transition: transform var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}
.skip-link:focus { transform: none; }

:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}
[tabindex='-1']:focus { outline: none; }

/* ---- Top app bar ------------------------------------------------------------ */
/* The blur lives on a pseudo-element: backdrop-filter on the bar itself
   would become the containing block for the fixed mobile drawer and scrim. */
.app-bar {
  position: sticky;
  top: 0;
  z-index: 50;
}
.app-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in oklab, var(--md-sys-color-surface) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
}
.app-bar.is-elevated::before { background: color-mix(in oklab, var(--md-sys-color-surface-container) 92%, transparent); }

.app-bar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}

.brand {
  font: var(--md-sys-type-title-lg);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--md-sys-color-on-surface);
  border-radius: var(--md-sys-shape-sm);
  padding: 6px 8px;
  margin-inline-start: -8px;
}
/* Wordmark: "vectora" in medium weight, "solutions" in regular. */
.brand-word { font-weight: 400; white-space: nowrap; }
.brand-word b { font-weight: 500; }
.brand-word--sm { font: var(--md-sys-type-title-md); font-weight: 400; color: var(--md-sys-color-on-surface); }

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav__link {
  font: var(--md-sys-type-label-lg);
  text-decoration: none;
  color: var(--md-sys-color-on-surface-variant);
  padding: 10px 14px;
  border-radius: var(--md-sys-shape-full);
  position: relative;
  overflow: hidden;
  transition: color var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard),
              background-color var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}
.nav__link:hover { color: var(--md-sys-color-on-surface); background: color-mix(in oklab, var(--md-sys-color-on-surface) 6%, transparent); }
.nav .btn { margin-inline-start: 8px; }

.nav__toggle {
  display: none;
  border: none;
  background: none;
  padding: 8px;
  border-radius: var(--md-sys-shape-full);
  color: var(--md-sys-color-on-surface);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.theme-toggle, .icon-btn {
  border: none;
  background: none;
  color: var(--md-sys-color-on-surface-variant);
  width: 40px; height: 40px;
  border-radius: var(--md-sys-shape-full);
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  transition: background-color var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}
.theme-toggle:hover, .icon-btn:hover { background: color-mix(in oklab, var(--md-sys-color-on-surface) 8%, transparent); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---- Buttons ------------------------------------------------------------------ */
.btn {
  font: var(--md-sys-type-label-lg);
  letter-spacing: 0.01em;
  border-radius: var(--md-sys-shape-full);
  padding: 10px 22px;
  min-height: 40px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: background-color var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  transition: opacity var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
  z-index: -1;
}
.btn:hover::before { opacity: var(--md-sys-state-hover); }
.btn-lg { font-size: 1rem; padding: 16px 28px; min-height: 56px; }
.btn-filled { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); }
.btn-tonal { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.btn svg { width: 18px; height: 18px; transition: transform var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-emphasized); }
.btn:hover svg { transform: translateX(3px); }
.btn:disabled { opacity: 0.6; cursor: progress; }

/* ---- Reveal-on-scroll -------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--md-sys-motion-duration-extra-long) var(--md-sys-motion-easing-emphasized-decelerate),
              transform var(--md-sys-motion-duration-extra-long) var(--md-sys-motion-easing-emphasized-decelerate);
}
.reveal.is-visible { opacity: 1; transform: none; }
.grid > .reveal:nth-child(2) { transition-delay: 80ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---- Grid & cards ------------------------------------------------------------------- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--md-sys-color-surface-container-low);
  border-radius: var(--md-sys-shape-xl);
  padding: 28px;
}
.card p { color: var(--md-sys-color-on-surface-variant); }
.card--outline {
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline-variant);
}

/* ==================================================================== Hero ===== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 104px);
}

/* -- Hero background: the loss-landscape scene (hero-landscape.js). Masked
   back under the copy so the headline always reads first. -- */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--md-sys-motion-duration-extra-long) var(--md-sys-motion-easing-standard);
  -webkit-mask-image:
    linear-gradient(to right, rgb(0 0 0 / 0.25), rgb(0 0 0 / 0.4) 35%, #000 60%),
    linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, rgb(0 0 0 / 0.25), rgb(0 0 0 / 0.4) 35%, #000 60%),
    linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  mask-composite: intersect;
}
.hero__bg.is-ready { opacity: 1; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 { color: var(--md-sys-color-on-surface); }
.hero h1 em { font-style: normal; color: var(--md-sys-color-primary); }
.hero__subhead {
  font: var(--md-sys-type-headline-sm);
  color: var(--md-sys-color-on-surface-variant);
  max-width: 580px;
  margin: 24px 0 36px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* -- Hero visual: an illustrative sprint card -- */
.hero__visual { display: grid; place-items: center; }
.sprint-card {
  width: min(100%, 400px);
  background: var(--vec-surface-raised);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-xl);
  padding: 24px;
  display: grid;
  gap: 20px;
  box-shadow: 0 16px 40px -24px color-mix(in oklab, var(--md-sys-color-scrim) 35%, transparent);
  animation: hero-loop 16s linear infinite;
}
/* Let the landscape read faintly through the card when it's running. */
.hero__bg.is-ready + .hero__grid .sprint-card {
  background: color-mix(in oklab, var(--vec-surface-raised) 84%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.sprint-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sprint-card__kicker {
  font: var(--md-sys-type-label-md);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--md-sys-color-on-surface-variant);
}
.sprint-card__goal { font: var(--md-sys-type-title-lg); font-size: 1.2rem; color: var(--md-sys-color-on-surface); }

.status-chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--md-sys-shape-sm);
  font: var(--md-sys-type-label-md);
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface-variant);
  animation: hero-chip 16s linear infinite;
}
.status-chip__text {
  display: grid;
  height: 16px;
  overflow: hidden;
  line-height: 16px;
}
.status-chip__text span {
  grid-area: 1 / 1;
  opacity: 0;
  translate: 0 100%;
}
.status-chip__text span:nth-child(1) { animation: hero-word-1 16s infinite; }
.status-chip__text span:nth-child(2) { animation: hero-word-2 16s infinite; }
.status-chip__text span:nth-child(3) { animation: hero-word-3 16s infinite; }
.status-chip__text span:nth-child(4) { animation: hero-word-4 16s infinite; }

@keyframes hero-word-1 { 0%, 14% { opacity: 1; translate: 0 0; } 16%, 100% { opacity: 0; translate: 0 -100%; } }
@keyframes hero-word-2 { 0%, 14% { opacity: 0; translate: 0 100%; } 16%, 29% { opacity: 1; translate: 0 0; } 31%, 100% { opacity: 0; translate: 0 -100%; } }
@keyframes hero-word-3 { 0%, 29% { opacity: 0; translate: 0 100%; } 31%, 83% { opacity: 1; translate: 0 0; } 85%, 100% { opacity: 0; translate: 0 -100%; } }
@keyframes hero-word-4 { 0%, 83% { opacity: 0; translate: 0 100%; } 85%, 98% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 0 -100%; } }
@keyframes hero-chip {
  0%, 84% { background: var(--md-sys-color-surface-container-high); color: var(--md-sys-color-on-surface-variant); }
  86%, 99% { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); }
}

/* Registered properties let a single keyframe drive the segment fill and the
   iteration counter on the hero card. */
@property --prog { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --iter { syntax: '<integer>'; inherits: true; initial-value: 0; }
@keyframes hero-loop {
  0%, 31% { --prog: 0; --iter: 0; }
  84%, 100% { --prog: 13; --iter: 12; }
}

.sprint-card__team { display: flex; align-items: center; flex-wrap: wrap; row-gap: 8px; }
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: var(--md-sys-type-label-sm);
  color: var(--md-sys-color-on-primary-container);
  background: var(--md-sys-color-primary-container);
  border: 2px solid var(--vec-surface-raised);
  margin-inline-end: -8px;
}
.sprint-card__team-label {
  font: var(--md-sys-type-body-sm);
  color: var(--md-sys-color-on-surface-variant);
  margin-inline-start: 18px;
}

.sprint-card__timeline { display: grid; gap: 8px; }
.sprint-card__timeline-row {
  display: flex;
  justify-content: space-between;
  font: var(--md-sys-type-label-md);
  color: var(--md-sys-color-on-surface-variant);
}
.sprint-card__iter b { font-size: 0; }
.sprint-card__iter b::before { counter-reset: iter var(--iter); content: counter(iter); font: var(--md-sys-type-label-md); color: var(--md-sys-color-on-surface); }

.segments {
  display: grid;
  grid-template-columns: 1.4fr repeat(12, 1fr);
  gap: 4px;
}
.segments i {
  height: 6px;
  border-radius: var(--md-sys-shape-full);
  background: var(--md-sys-color-surface-container-highest);
  position: relative;
  overflow: hidden;
}
.segments i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--md-sys-color-primary);
  border-radius: inherit;
  opacity: clamp(0, calc(var(--prog) - var(--i, 0)), 1);
}
.segments i:nth-child(2) { --i: 1; } .segments i:nth-child(3) { --i: 2; } .segments i:nth-child(4) { --i: 3; }
.segments i:nth-child(5) { --i: 4; } .segments i:nth-child(6) { --i: 5; } .segments i:nth-child(7) { --i: 6; }
.segments i:nth-child(8) { --i: 7; } .segments i:nth-child(9) { --i: 8; } .segments i:nth-child(10) { --i: 9; }
.segments i:nth-child(11) { --i: 10; } .segments i:nth-child(12) { --i: 11; } .segments i:nth-child(13) { --i: 12; }
.segments--lg i { height: 12px; border-radius: var(--md-sys-shape-xs); }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__bg {
    -webkit-mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0.12), rgb(0 0 0 / 0.2) 48%, #000 64%, #000 90%, transparent);
    mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0.12), rgb(0 0 0 / 0.2) 48%, #000 64%, #000 90%, transparent);
  }
}
@media (max-width: 480px) {
  .sprint-card { padding: 18px; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* ================================================================ Vendors ===== */
.vendors {
  padding-block: 28px;
  border-block: 1px solid var(--md-sys-color-outline-variant);
  background: var(--md-sys-color-surface);
}
.vendors__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
}
.vendors__label {
  font: var(--md-sys-type-label-lg);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--md-sys-color-on-surface-variant);
}
.vendors__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  flex-wrap: wrap;
}
.vendor {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--md-sys-color-on-surface-variant);
  transition: color var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
}
.vendor:hover { color: var(--md-sys-color-on-surface); }
.vendor__mark { width: 30px; height: 30px; flex-shrink: 0; }
.vendor__mark--icon {
  display: block;
  background: currentColor;
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}
.vendor:first-child .vendor__mark { width: 44px; }
.vendor__name { font: 600 1.375rem/1 var(--vec-font); letter-spacing: -0.02em; }
@media (max-width: 520px) {
  .vendors__row { gap: 16px; }
  .vendors__list { gap: 22px; }
  .vendor { gap: 8px; }
  .vendor__mark { width: 22px; height: 22px; }
  .vendor:first-child .vendor__mark { width: 32px; }
  .vendor__name { font-size: 1.1rem; }
}

/* ================================================================ Problem ===== */
.problem { padding-block: clamp(56px, 7vw, 96px); }

/* =========================================================== How it works ===== */
.how { background: var(--md-sys-color-surface-container-low); }
.how__layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) 1.15fr;
  gap: 24px;
  align-items: start;
}

.how__steps { display: grid; gap: 8px; }
.how-step {
  all: unset;
  box-sizing: border-box;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--md-sys-shape-xl);
  cursor: pointer;
  overflow: hidden;
  color: var(--md-sys-color-on-surface-variant);
  transition: background-color var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard),
              color var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
}
.how-step:hover { background: color-mix(in oklab, var(--md-sys-color-on-surface) 5%, transparent); }
.how-step:focus-visible { outline: 2px solid var(--md-sys-color-primary); outline-offset: 2px; }
.how-step[aria-selected='true'] {
  background: var(--vec-surface-raised);
  color: var(--md-sys-color-on-surface);
}
.how-step__num {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: var(--md-sys-type-label-lg);
  background: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface-variant);
  transition: background-color var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
}
.how-step[aria-selected='true'] .how-step__num {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}
.how-step__body { display: grid; align-content: center; }
.how-step__title { font: var(--md-sys-type-title-md); font-size: 1.0625rem; }
.how-step__desc {
  font: var(--md-sys-type-body-md);
  color: var(--md-sys-color-on-surface-variant);
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  overflow: hidden;
  transition: grid-template-rows var(--md-sys-motion-duration-long) var(--md-sys-motion-easing-emphasized),
              opacity var(--md-sys-motion-duration-long) var(--md-sys-motion-easing-standard),
              margin var(--md-sys-motion-duration-long) var(--md-sys-motion-easing-emphasized);
}
.how-step__desc > span { min-height: 0; overflow: hidden; }
.how-step[aria-selected='true'] .how-step__desc { grid-template-rows: 1fr; opacity: 1; margin-top: 6px; }
.how-step__progress {
  position: absolute;
  left: 20px; right: 20px; bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--md-sys-color-primary);
  transform-origin: left;
  transform: scaleX(0);
  opacity: 0;
}
.how-step[aria-selected='true'] .how-step__progress { opacity: 1; }
.how.is-autoplay .how-step[aria-selected='true'] .how-step__progress {
  animation: step-progress var(--step-dur, 8s) linear forwards;
}
.how.is-autoplay.is-paused .how-step[aria-selected='true'] .how-step__progress { animation-play-state: paused; }
@keyframes step-progress { to { transform: scaleX(1); } }

.how__stage {
  position: relative;
  background: var(--vec-surface-raised);
  border-radius: var(--md-sys-shape-xxl);
  padding: 20px 24px 28px;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.how__stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.how__stage-week {
  font: var(--md-sys-type-label-lg);
  color: var(--md-sys-color-on-surface-variant);
}
.icon-btn .icon-play { display: none; }
.icon-btn[aria-pressed='false'] .icon-play { display: block; }
.icon-btn[aria-pressed='false'] .icon-pause { display: none; }

.scene { position: relative; flex: 1; display: grid; align-content: center; }
.scene[hidden] { display: none; }
.scene.is-active { animation: scene-in var(--md-sys-motion-duration-long) var(--md-sys-motion-easing-emphasized-decelerate); }
@keyframes scene-in { from { opacity: 0; transform: translateY(12px) scale(0.99); } }

.scene__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font: var(--md-sys-type-label-md);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 12px;
}
.scene__hint {
  text-transform: none;
  letter-spacing: 0;
  font: var(--md-sys-type-body-sm);
  color: var(--md-sys-color-primary);
}

/* -- Scene 1: backlog priority sort -- */
.backlog {
  --row: 62px;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  height: calc(var(--row) * 6);
}
.backlog__item {
  position: absolute;
  left: 0; right: 0;
  top: calc(var(--slot, 0) * var(--row));
  height: calc(var(--row) - 10px);
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 14px 0 10px;
  border-radius: var(--md-sys-shape-lg);
  background: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface);
  font: var(--md-sys-type-title-sm);
  transition: top 520ms var(--md-sys-motion-easing-emphasized),
              background-color var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard),
              color var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard),
              opacity var(--md-sys-motion-duration-long) var(--md-sys-motion-easing-standard),
              transform var(--md-sys-motion-duration-medium) var(--md-sys-motion-spring),
              box-shadow var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
}
.backlog__rank {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: var(--md-sys-type-label-md);
  background: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface-variant);
}
.backlog__rank::before { content: '•'; }
.backlog.is-sorted .backlog__rank::before { content: attr(data-rank); }
.backlog__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.backlog__score {
  font: var(--md-sys-type-label-md);
  padding: 4px 10px;
  border-radius: var(--md-sys-shape-full);
  background: var(--md-sys-color-surface-container-lowest);
  color: var(--md-sys-color-on-surface-variant);
  font-variant-numeric: tabular-nums;
}
.backlog__item.is-compare {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  transform: scale(1.02);
  z-index: 2;
}
.backlog__item.is-goal {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  transform: scale(1.03);
  box-shadow: 0 10px 24px -10px color-mix(in oklab, var(--p-40) 60%, transparent);
}
.backlog__item.is-goal .backlog__rank { background: var(--md-sys-color-on-primary); color: var(--md-sys-color-primary); }
.backlog__item.is-goal .backlog__score { background: color-mix(in oklab, var(--md-sys-color-on-primary) 20%, transparent); color: inherit; }
.backlog__item.is-goal .backlog__title::after {
  content: 'Sprint goal';
  margin-left: 10px;
  font: var(--md-sys-type-label-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}
.backlog__item.is-later { opacity: 0.5; }

/* -- Scene 2: sprint design -- */
.design {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.design__goal, .design__dod, .design__team {
  background: var(--md-sys-color-surface-container);
  border-radius: var(--md-sys-shape-xl);
  padding: 18px;
}
.design__goal { grid-column: 1 / -1; background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }
.design__goal .scene__label { color: inherit; opacity: 0.8; }
.design__goal p {
  font: var(--md-sys-type-title-lg);
  clip-path: inset(0 100% 0 0);
}
.scene.is-playing .design__goal p { animation: type-reveal 1.4s steps(28, end) 0.2s forwards; }
@keyframes type-reveal { to { clip-path: inset(0 0 0 0); } }

.design__dod ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.design__dod li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: center;
  font: var(--md-sys-type-body-md);
  color: var(--md-sys-color-on-surface-variant);
}
.design__dod li i, .ship__handoff li i {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 2px solid var(--md-sys-color-outline);
  position: relative;
  transition: background-color 200ms, border-color 200ms;
}
.design__dod li i::after, .ship__handoff li i::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--md-sys-color-on-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z'/%3E%3C/svg%3E") center/contain no-repeat;
  transform: scale(0);
}
.scene.is-playing .design__dod li i { animation: check-box 300ms forwards; }
.scene.is-playing .design__dod li i::after { animation: check-pop 360ms var(--md-sys-motion-spring) forwards; }
.scene.is-playing .design__dod li { animation: check-text 300ms forwards; }
.design__dod li:nth-child(1), .design__dod li:nth-child(1) i, .design__dod li:nth-child(1) i::after { animation-delay: 1.6s !important; }
.design__dod li:nth-child(2), .design__dod li:nth-child(2) i, .design__dod li:nth-child(2) i::after { animation-delay: 2.2s !important; }
.design__dod li:nth-child(3), .design__dod li:nth-child(3) i, .design__dod li:nth-child(3) i::after { animation-delay: 2.8s !important; }
.design__dod li:nth-child(4), .design__dod li:nth-child(4) i, .design__dod li:nth-child(4) i::after { animation-delay: 3.4s !important; }
@keyframes check-box { to { background: var(--md-sys-color-primary); border-color: var(--md-sys-color-primary); } }
@keyframes check-pop { to { transform: scale(1); } }
@keyframes check-text { to { color: var(--md-sys-color-on-surface); } }

.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot {
  font: var(--md-sys-type-label-md);
  padding: 8px 12px;
  border-radius: var(--md-sys-shape-sm);
  border: 1.5px dashed var(--md-sys-color-outline);
  color: var(--md-sys-color-on-surface-variant);
  opacity: 0;
  transform: scale(0.6);
}
.scene.is-playing .slot { animation: slot-in 420ms var(--md-sys-motion-spring) forwards; }
.slot:nth-child(1) { animation-delay: 4.0s !important; }
.slot:nth-child(2) { animation-delay: 4.25s !important; }
.slot:nth-child(3) { animation-delay: 4.5s !important; }
.slot:nth-child(4) { animation-delay: 4.75s !important; }
.slot:nth-child(5) { animation-delay: 5.0s !important; }
.slot:nth-child(6) { animation-delay: 5.25s !important; }
@keyframes slot-in { to { opacity: 1; transform: scale(1); } }

/* -- Scene 3: staffing from the network -- */
.staff {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 16px;
}
.staff__pool, .staff__team {
  background: var(--md-sys-color-surface-container);
  border-radius: var(--md-sys-shape-xl);
  padding: 18px;
}
.staff__pool { display: flex; flex-direction: column; }
.pool {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  justify-items: center;
  align-content: space-evenly;
}
.pool__dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: var(--md-sys-type-label-sm);
  background: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface-variant);
  transition: opacity 300ms, transform 300ms var(--md-sys-motion-spring), background-color 300ms;
  animation: pool-float 5s ease-in-out infinite;
}
.pool__dot:nth-child(3n) { animation-delay: -1.5s; }
.pool__dot:nth-child(3n+1) { animation-delay: -3s; }
@keyframes pool-float { 50% { translate: 0 -3px; } }
.pool__dot.is-scan { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); transform: scale(1.12); }
.pool__dot.is-picked { opacity: 0.18; transform: scale(0.8); }

.roster { display: grid; gap: 8px; }
.roster__row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  font: var(--md-sys-type-title-sm);
  padding: 6px 10px 6px 6px;
  border-radius: var(--md-sys-shape-full);
  background: var(--vec-surface-raised);
  transition: background-color 300ms;
}
.roster__row small { font: var(--md-sys-type-body-sm); color: var(--md-sys-color-on-surface-variant); }
.roster__seat {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px dashed var(--md-sys-color-outline);
  display: grid;
  place-items: center;
  font: var(--md-sys-type-label-sm);
}
.roster__row.is-filled { background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }
.roster__row.is-filled small { color: inherit; opacity: 0.75; }
.roster__row.is-filled .roster__seat {
  border: none;
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  animation: seat-pop 420ms var(--md-sys-motion-spring);
}
@keyframes seat-pop { from { transform: scale(0.5); } }
.flyer {
  position: absolute;
  z-index: 5;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: var(--md-sys-type-label-sm);
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  pointer-events: none;
  box-shadow: 0 8px 18px -6px color-mix(in oklab, var(--p-40) 70%, transparent);
  transition: transform 700ms var(--md-sys-motion-easing-emphasized);
}

/* -- Scene 4: iterations -- */
.iterate { display: grid; gap: 16px; }
.ceremonies { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ceremony {
  font: var(--md-sys-type-label-md);
  padding: 7px 12px;
  border-radius: var(--md-sys-shape-sm);
  border: 1px solid var(--md-sys-color-outline-variant);
  color: var(--md-sys-color-on-surface-variant);
  transition: all 300ms var(--md-sys-motion-easing-standard);
}
.ceremony.is-on {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  border-color: transparent;
}
.iterate__count {
  margin-left: auto;
  font: var(--md-sys-type-label-lg);
  color: var(--md-sys-color-on-surface-variant);
}
.iterate__count b { color: var(--md-sys-color-primary); font-variant-numeric: tabular-nums; }
.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.board__col {
  background: var(--md-sys-color-surface-container);
  border-radius: var(--md-sys-shape-lg);
  padding: 10px;
  min-height: 210px;
}
.board__head {
  display: block;
  font: var(--md-sys-type-label-md);
  color: var(--md-sys-color-on-surface-variant);
  margin: 2px 4px 10px;
}
.board__cards { display: grid; gap: 8px; }
.story {
  background: var(--vec-surface-raised);
  border-radius: var(--md-sys-shape-md);
  padding: 9px 10px;
  font: var(--md-sys-type-body-sm);
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
  display: grid;
  gap: 6px;
  border-left: 3px solid var(--md-sys-color-outline-variant);
}
.story__meta { display: flex; justify-content: space-between; align-items: center; color: var(--md-sys-color-on-surface-variant); font-weight: 400; }
.story__who {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: var(--md-sys-type-label-sm);
  font-size: 0.5625rem;
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}
.board__col[data-col='1'] .story { border-left-color: var(--md-sys-color-outline); }
.board__col[data-col='2'] .story { border-left-color: var(--md-sys-color-primary); }
.board__col[data-col='2'] .story .story__title { text-decoration: line-through; text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); }
.burndown {
  background: var(--md-sys-color-surface-container);
  border-radius: var(--md-sys-shape-lg);
  padding: 12px 14px 14px;
}
.burndown .scene__label { margin-bottom: 8px; }
.burndown svg { width: 100%; height: 56px; display: block; overflow: visible; }
.burndown__ideal { fill: none; stroke: var(--md-sys-color-outline-variant); stroke-width: 1.5; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.burndown__line {
  fill: none;
  stroke: var(--md-sys-color-primary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--burn, 0));
  transition: stroke-dashoffset 600ms var(--md-sys-motion-easing-emphasized);
}

/* -- Scene 5: ship -- */
.ship {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: center;
}
.ship__ring { position: relative; display: grid; place-items: center; }
.ship__ring svg { width: 100%; max-width: 220px; transform: rotate(-90deg); }
.ship__track { fill: none; stroke: var(--md-sys-color-surface-container-highest); stroke-width: 10; }
.ship__arc {
  fill: none;
  stroke: var(--md-sys-color-primary);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.ship__check {
  fill: none;
  stroke: var(--md-sys-color-primary);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transform: rotate(90deg);
  transform-origin: 60px 60px;
}
.scene.is-playing .ship__arc { animation: draw 3s var(--md-sys-motion-easing-emphasized) 0.3s forwards; }
.scene.is-playing .ship__check { animation: draw 500ms var(--md-sys-motion-easing-emphasized-decelerate) 3.3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ship__label {
  position: absolute;
  bottom: -6px;
  font: var(--md-sys-type-label-lg);
  padding: 6px 14px;
  border-radius: var(--md-sys-shape-full);
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  opacity: 0;
  transform: translateY(8px) scale(0.8);
}
.scene.is-playing .ship__label { animation: label-in 500ms var(--md-sys-motion-spring) 3.6s forwards; }
@keyframes label-in { to { opacity: 1; transform: none; } }
.ship__side { display: grid; gap: 20px; }
.ship__timeline .segments { --prog: 0; }
.scene.is-playing .ship__timeline .segments { animation: ship-fill 3s var(--md-sys-motion-easing-emphasized) 0.3s forwards; }
@keyframes ship-fill { to { --prog: 13; } }
.ship__legend {
  display: grid;
  grid-template-columns: 1.4fr 12fr;
  gap: 4px;
  margin-top: 8px;
  font: var(--md-sys-type-body-sm);
  color: var(--md-sys-color-on-surface-variant);
}
.ship__handoff { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ship__handoff li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: center;
  font: var(--md-sys-type-body-md);
  color: var(--md-sys-color-on-surface);
  opacity: 0;
  transform: translateX(-8px);
}
.scene.is-playing .ship__handoff li { animation: label-in 400ms var(--md-sys-motion-easing-emphasized-decelerate) forwards; }
.scene.is-playing .ship__handoff li i { animation: check-box 300ms forwards; }
.scene.is-playing .ship__handoff li i::after { animation: check-pop 360ms var(--md-sys-motion-spring) forwards; }
.ship__handoff li:nth-child(1), .ship__handoff li:nth-child(1) i, .ship__handoff li:nth-child(1) i::after { animation-delay: 4.0s !important; }
.ship__handoff li:nth-child(2), .ship__handoff li:nth-child(2) i, .ship__handoff li:nth-child(2) i::after { animation-delay: 4.35s !important; }
.ship__handoff li:nth-child(3), .ship__handoff li:nth-child(3) i, .ship__handoff li:nth-child(3) i::after { animation-delay: 4.7s !important; }
.ship__handoff li:nth-child(4), .ship__handoff li:nth-child(4) i, .ship__handoff li:nth-child(4) i::after { animation-delay: 5.05s !important; }

/* Static end-state for reduced motion: show every scene's finished frame. */
@media (prefers-reduced-motion: reduce) {
  .design__goal p { clip-path: none; }
  .slot, .ship__handoff li, .ship__label { opacity: 1; transform: none; }
  .ship__arc, .ship__check { stroke-dashoffset: 0; }
  .ship__timeline .segments { --prog: 13; }
}

/* -- Roles -- */
.roles {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px clamp(24px, 5vw, 64px);
  padding: 28px;
  border-radius: var(--md-sys-shape-xxl);
  border: 1px solid var(--md-sys-color-outline-variant);
}
.roles__title {
  font: var(--md-sys-type-label-lg);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 16px;
}
.role-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.role-list li { display: grid; gap: 2px; color: var(--md-sys-color-on-surface-variant); font: var(--md-sys-type-body-md); }
.role-list b { font: var(--md-sys-type-title-md); color: var(--md-sys-color-on-surface); }

@media (max-width: 960px) {
  .how__layout { grid-template-columns: 1fr; }
  .how__steps { grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
  .how__steps::-webkit-scrollbar { display: none; }
  .how-step { scroll-snap-align: start; align-content: start; }
  .how-step__desc { grid-template-rows: 1fr; opacity: 1; margin-top: 6px; }
  .roles { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .how__stage { padding: 16px 14px 20px; border-radius: var(--md-sys-shape-xl); min-height: 0; }
  .how-step { grid-template-columns: 1fr; gap: 10px; padding: 16px; }
  .how__steps { grid-auto-columns: 78%; }
  .backlog { --row: 56px; }
  .backlog__item { font: var(--md-sys-type-body-md); font-weight: 600; gap: 8px; padding-inline: 8px 10px; grid-template-columns: 28px 1fr auto; }
  .backlog__item.is-goal .backlog__title::after { display: none; }
  .design, .staff, .ship { grid-template-columns: 1fr; }
  .board { gap: 6px; }
  .board__col { padding: 6px; min-height: 180px; }
  .story { padding: 7px; font-size: 0.6875rem; }
  .story__meta { display: none; }
  .iterate__count { margin-left: 0; width: 100%; }
  .ship__ring svg { max-width: 160px; }
  .roles { padding: 20px; }
}

/* ================================================================ Network ===== */
.network__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.network__copy .lead { margin-top: 16px; }
.checks { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 16px; }
.checks li {
  position: relative;
  padding-left: 40px;
  color: var(--md-sys-color-on-surface-variant);
}
.checks li b { color: var(--md-sys-color-on-surface); font-weight: 600; }
.checks li::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--md-sys-color-primary-container);
}
.checks li::after {
  content: '';
  position: absolute;
  left: 5px; top: 5px;
  width: 16px; height: 16px;
  background: var(--md-sys-color-on-primary-container);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/contain no-repeat;
}
.network__visual {
  position: relative;
  aspect-ratio: 480 / 440;
  border-radius: var(--md-sys-shape-xxl);
  background: var(--md-sys-color-surface-container-low);
  overflow: hidden;
}
.constellation { width: 100%; height: 100%; display: block; }
.constellation .link { stroke: var(--md-sys-color-outline-variant); stroke-width: 1.2; }
.constellation .link.is-hot { stroke: var(--md-sys-color-primary); stroke-width: 2; }
.constellation .pulse { fill: var(--md-sys-color-primary); }
.constellation .node circle {
  fill: var(--md-sys-color-surface-container-lowest);
  stroke: var(--md-sys-color-outline-variant);
  stroke-width: 1.5;
  transition: fill 400ms, stroke 400ms;
}
.constellation .node text {
  font: 600 10px/1 var(--vec-font);
  fill: var(--md-sys-color-on-surface-variant);
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}
.constellation .node--role circle { fill: var(--md-sys-color-primary-container); stroke: none; }
.constellation .node--role text { fill: var(--md-sys-color-on-primary-container); }
.constellation .node--hub circle { fill: var(--md-sys-color-primary); stroke: none; }
.constellation .node--hub text { fill: var(--md-sys-color-on-primary); font-size: 12px; }
.constellation .node.is-hot circle { stroke: var(--md-sys-color-primary); }

@media (max-width: 900px) {
  .network__grid { grid-template-columns: 1fr; }
}

/* ================================================================== Why ===== */
.why { background: var(--md-sys-color-surface-container-low); }
.compare {
  border-radius: var(--md-sys-shape-xxl);
  background: var(--vec-surface-raised);
  padding: 12px;
  margin-bottom: 16px;
}
.compare__row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  align-items: stretch;
}
.compare__row > span {
  padding: 18px 20px;
  font: var(--md-sys-type-body-lg);
  color: var(--md-sys-color-on-surface-variant);
  border-top: 1px solid var(--md-sys-color-outline-variant);
  display: flex;
  align-items: center;
}
.compare__row--head > span {
  border-top: 0;
  font: var(--md-sys-type-label-lg);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.compare__row > [role='rowheader'] { color: var(--md-sys-color-on-surface); font-weight: 600; }
.compare__row > .is-us {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  font-weight: 600;
  border-top-color: color-mix(in oklab, var(--md-sys-color-on-primary-container) 12%, transparent);
}
.compare__row--head > .is-us { border-radius: var(--md-sys-shape-xl) var(--md-sys-shape-xl) 0 0; color: var(--md-sys-color-on-primary-container); }
.compare__row:last-child > .is-us { border-radius: 0 0 var(--md-sys-shape-xl) var(--md-sys-shape-xl); }
.compare__row > .is-us::before {
  content: '';
  flex: 0 0 18px;
  height: 18px;
  margin-right: 10px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.compare__row--head > .is-us::before { display: none; }

@media (max-width: 760px) {
  .compare { padding: 8px; }
  .compare__row--head { display: none; }
  .compare__row {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 8px;
  }
  .compare__row + .compare__row { border-top: 1px solid var(--md-sys-color-outline-variant); }
  .compare__row > span { border: 0; padding: 0; font: var(--md-sys-type-body-md); justify-content: space-between; gap: 16px; }
  .compare__row > [role='rowheader'] { font: var(--md-sys-type-title-md); margin-bottom: 4px; }
  .compare__row > [role='cell']::before { content: attr(data-label); color: var(--md-sys-color-on-surface-variant); font-weight: 400; flex: none; text-align: left; }
  .compare__row > [role='cell'] { text-align: right; }
  .compare__row > .is-us,
  .compare__row:last-child > .is-us { padding: 10px 12px; border-radius: var(--md-sys-shape-md); margin-top: 4px; }
  .compare__row > .is-us::before {
    content: attr(data-label);
    flex: none;
    width: auto; height: auto;
    margin: 0;
    background: none;
    -webkit-mask: none;
    mask: none;
    color: inherit;
    font-weight: 600;
  }
}

/* ============================================================= Leadership ===== */
.person-card { display: flex; gap: 24px; align-items: flex-start; }
.person-card img {
  width: 96px; height: 96px;
  border-radius: var(--md-sys-shape-xl);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--md-sys-color-surface-container-high);
}
.person-card__focus {
  display: block;
  font: var(--md-sys-type-body-sm);
  color: var(--md-sys-color-primary);
  margin: 2px 0 12px;
}
.person-card__role { margin: 4px 0 0; color: var(--md-sys-color-on-surface); }
@media (max-width: 520px) {
  .person-card { flex-direction: column; }
}

.quote {
  margin: clamp(40px, 5vw, 56px) 0 0;
  padding-left: clamp(20px, 3vw, 32px);
  border-left: 3px solid var(--md-sys-color-primary);
  display: grid;
  gap: 16px;
}
.quote blockquote { margin: 0; font: var(--md-sys-type-headline-sm); font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); max-width: 860px; }
.quote blockquote::before { content: '\201C'; }
.quote blockquote::after { content: '\201D'; }
.quote figcaption { font: var(--md-sys-type-body-md); color: var(--md-sys-color-on-surface-variant); }
.quote figcaption b { color: var(--md-sys-color-on-surface); }

.selected-work { margin-top: 56px; }
.selected-work__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 20px; }
.selected-work__head p { color: var(--md-sys-color-on-surface-variant); font: var(--md-sys-type-body-md); }
.works-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.work-card {
  scroll-snap-align: start;
  background: var(--md-sys-color-surface-container-low);
  border-radius: var(--md-sys-shape-xl);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-height: 200px;
  transition: background-color var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
}
.work-card:hover { background: var(--md-sys-color-surface-container); }
.work-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.work-type {
  font: var(--md-sys-type-label-md);
  padding: 4px 10px;
  border-radius: var(--md-sys-shape-full);
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}
.work-card__ext { width: 18px; height: 18px; color: var(--md-sys-color-on-surface-variant); flex-shrink: 0; }
.work-card h4 {
  font: var(--md-sys-type-title-md);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.work-card__venue { color: var(--md-sys-color-on-surface-variant); font: var(--md-sys-type-body-sm); margin-top: auto; }
.work-card--skeleton { animation: skeleton-pulse 1.4s ease-in-out infinite; }
@keyframes skeleton-pulse { 50% { opacity: 0.5; } }
.works-strip__fallback { color: var(--md-sys-color-on-surface-variant); font: var(--md-sys-type-body-md); }
.works-strip__fallback a { color: var(--md-sys-color-primary); }

/* ==================================================================== FAQ ===== */
.faq { background: var(--md-sys-color-surface-container-low); }
.faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq__list { display: grid; gap: 8px; }
.faq-item {
  background: var(--vec-surface-raised);
  border-radius: var(--md-sys-shape-lg);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font: var(--md-sys-type-title-md);
  font-size: 1.0625rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-radius: inherit;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--md-sys-color-primary); }
.faq-item__icon {
  position: relative;
  width: 24px; height: 24px;
  flex-shrink: 0;
  color: var(--md-sys-color-on-surface-variant);
}
.faq-item__icon::before, .faq-item__icon::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: 12px; height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: currentColor;
}
.faq-item__icon::after { transform: rotate(90deg); transition: transform var(--md-sys-motion-duration-long) var(--md-sys-motion-easing-emphasized); }
.faq-item[open] .faq-item__icon::after { transform: rotate(0deg); }
.faq-item p { padding: 0 24px 22px; color: var(--md-sys-color-on-surface-variant); max-width: 640px; }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } }

/* ================================================================ Contact ===== */
.contact__panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(24px, 5vw, 64px);
  border-radius: var(--md-sys-shape-xxl);
  background: var(--vec-brand-band);
  color: var(--vec-on-brand-band);
  align-items: start;
}
.contact__intro .eyebrow { color: var(--vec-brand-band-accent); }
.contact__intro h2 { color: var(--p-100); }
.contact__intro > p:not(.eyebrow) { margin-top: 16px; font: var(--md-sys-type-headline-sm); opacity: 0.9; }
.next-steps { list-style: none; counter-reset: step; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
.next-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
  min-height: 36px;
  opacity: 0.92;
}
.next-steps li b { color: var(--p-100); }
.next-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -4px;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: var(--md-sys-type-label-lg);
  background: color-mix(in oklab, var(--p-100) 16%, transparent);
  color: var(--p-100);
}
.contact__form {
  background: var(--vec-surface-raised);
  color: var(--md-sys-color-on-surface);
  border-radius: var(--md-sys-shape-xl);
  padding: clamp(20px, 3vw, 32px);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 960px) { .contact__panel { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font: var(--md-sys-type-title-sm);
  color: var(--md-sys-color-on-surface);
}
.field input, .field select, .field textarea {
  width: 100%;
  font: var(--md-sys-type-body-lg);
  padding: 11px 14px;
  min-height: 48px;
  border-radius: var(--md-sys-shape-md);
  border: 1px solid color-mix(in oklab, var(--md-sys-color-outline) 50%, transparent);
  background-color: light-dark(var(--n-100), var(--n-12));
  color: var(--md-sys-color-on-surface);
  transition: border-color var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard),
              box-shadow var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}
.field ::placeholder { color: var(--md-sys-color-on-surface-variant); opacity: 0.6; }
.field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' %3E%3Cpath d='M6 9l6 6 6-6' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  cursor: pointer;
}
/* Required select with the empty "Select…" option reads as a placeholder. */
.field select:invalid { color: color-mix(in oklab, var(--md-sys-color-on-surface-variant) 60%, transparent); }
.field select option { color: var(--md-sys-color-on-surface); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--md-sys-color-outline); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--md-sys-color-primary) 18%, transparent);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--md-sys-color-error); }
.field.is-invalid input:focus, .field.is-invalid select:focus, .field.is-invalid textarea:focus {
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--md-sys-color-error) 18%, transparent);
}
.form-error { color: var(--md-sys-color-error); font: var(--md-sys-type-body-md); margin: -4px 0 16px; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-top: 6px; }
.form-actions .btn { min-height: 48px; padding-inline: 24px; }
.field-hint { font: var(--md-sys-type-body-sm); color: var(--md-sys-color-on-surface-variant); }

/* =============================================================== Snackbar ===== */
.snackbar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  translate: -50% 24px;
  background: var(--md-sys-color-inverse-surface);
  color: var(--md-sys-color-inverse-on-surface);
  padding: 14px 16px 14px 20px;
  border-radius: var(--md-sys-shape-sm);
  font: var(--md-sys-type-body-md);
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: min(460px, calc(100vw - 32px));
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-emphasized),
              translate var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-emphasized-decelerate);
  z-index: 200;
}
.snackbar.is-visible { opacity: 1; translate: -50% 0; pointer-events: auto; }
.snackbar button { background: none; border: none; color: var(--md-sys-color-inverse-primary); font: var(--md-sys-type-label-lg); cursor: pointer; padding: 8px; }

/* ================================================================= Footer ===== */
.site-footer {
  padding-block: 32px;
  color: var(--md-sys-color-on-surface-variant);
  font: var(--md-sys-type-body-sm);
  border-top: 1px solid var(--md-sys-color-outline-variant);
}
.site-footer__row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.site-footer__top { color: var(--md-sys-color-primary); text-decoration: none; font: var(--md-sys-type-label-lg); }
.site-footer__top:hover { text-decoration: underline; }

/* ======================================================= Mobile nav drawer ===== */
@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    height: 100dvh;
    width: min(320px, 84vw);
    flex-direction: column;
    align-items: stretch;
    background: var(--md-sys-color-surface-container-low);
    padding: 88px 16px 24px;
    gap: 4px;
    translate: 100% 0;
    visibility: hidden;
    transition: translate var(--md-sys-motion-duration-long) var(--md-sys-motion-easing-emphasized),
                visibility 0s linear var(--md-sys-motion-duration-long);
    z-index: 40;
    border-radius: var(--md-sys-shape-lg) 0 0 var(--md-sys-shape-lg);
  }
  .nav.is-open { translate: 0 0; visibility: visible; transition-delay: 0s; }
  .nav__link { padding: 16px; font: var(--md-sys-type-title-md); }
  .nav .btn { margin: 16px 0 0; }
  .theme-toggle { align-self: flex-start; margin: 8px 0 0 6px; }
  .nav-scrim {
    position: fixed;
    inset: 0;
    background: color-mix(in oklab, var(--md-sys-color-scrim) 40%, transparent);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
    z-index: 39;
  }
  .nav-scrim.is-open { opacity: 1; pointer-events: auto; }
  .nav__toggle { position: relative; z-index: 41; }
}
@media (min-width: 961px) {
  .nav-scrim { display: none; }
}
