@font-face {
  font-family: "General Sans";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("assets/fonts/GeneralSans-Variable.woff2") format("woff2-variations");
}

:root {
  --background: oklch(0.982 0.003 25);
  --crimson: oklch(0.419 0.16 24.9);
  --foreground: oklch(0.205 0.012 25);
  --muted: oklch(0.46 0.018 25);
  --hairline: oklch(0.86 0.012 25);
  --sans: "General Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--background);
  color: var(--foreground);
}

body {
  display: grid;
  place-items: center;
  font-family: var(--sans);
}

button {
  color: inherit;
  font: inherit;
}

button:focus-visible {
  outline: max(2px, 0.3cqmin) solid var(--crimson);
  outline-offset: 0.5cqmin;
}

::selection {
  background: var(--crimson);
  color: var(--background);
}

.stage {
  position: relative;
  width: min(100vw, 177.78vh);
  height: min(56.25vw, 100vh);
  overflow: hidden;
  container-type: size;
  background: var(--background);
  isolation: isolate;
  touch-action: pan-y;
}

.slides,
.slide {
  position: absolute;
  inset: 0;
}

.slide {
  visibility: hidden;
  padding: 8cqmin;
  opacity: 0;
  transition:
    visibility 0s linear 240ms,
    opacity 200ms ease;
}

.slide.is-active {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.slide-content {
  height: 100%;
  opacity: 0;
  transform: translateX(var(--travel, 4cqmin));
  transition:
    opacity 190ms ease,
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.slide.is-active .slide-content {
  opacity: 1;
  transform: translateX(0);
}

.title-layout {
  display: grid;
  place-content: center;
  justify-items: center;
}

.title-layout h1 {
  margin: 0;
  font-family: var(--sans);
  font-size: 12cqmin;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.96;
}

.title-rule {
  width: 9cqmin;
  height: 0.42cqmin;
  margin-top: 3.6cqmin;
  background: var(--crimson);
}

.title-subtitle {
  margin: 3.2cqmin 0 0;
  color: var(--muted);
  font-size: 2.9cqmin;
  font-weight: 450;
  letter-spacing: -0.01em;
}

.section-layout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.thanks-layout {
  display: grid;
  place-content: center;
}

.thanks-layout h2 {
  margin: 0;
  font-size: 7.8cqmin;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.section-lede {
  max-width: 92cqmin;
  margin: 4cqmin 0 0;
  font-size: 4.2cqmin;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-wrap: balance;
}

.section-list {
  margin: 4cqmin 0 0;
  padding: 0;
  list-style: none;
  font-size: 4.2cqmin;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-list li {
  margin-top: 2.4cqmin;
  padding-left: 3.4cqmin;
  border-left: 0.42cqmin solid var(--crimson);
}

.section-sublist {
  margin: 1.6cqmin 0 0;
  padding: 0;
  list-style: none;
  font-size: 3.4cqmin;
  color: var(--muted);
}

.section-list .section-sublist li {
  margin-top: 1.2cqmin;
  border-left: 0.42cqmin solid var(--hairline);
}

/* Motivation bullets step with the talk: only the active one keeps full ink. */
.motivation-layout .section-list > li {
  transition:
    color 200ms ease,
    border-color 200ms ease;
}

.motivation-layout .section-list > li:not(.is-active) {
  border-left-color: var(--hairline);
  color: var(--muted);
}

.background-layout {
  align-items: stretch;
}

.background-steps {
  position: relative;
  flex: 1;
}

.background-step {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 7cqmin;
  opacity: 0;
  pointer-events: none;
  transform: translateY(2cqmin);
  transition:
    opacity 220ms ease,
    transform 280ms ease;
}

.background-step.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.background-text {
  flex: 1;
}

.background-text .section-list {
  margin-top: 0;
}

.background-figure {
  width: 56cqmin;
  flex-shrink: 0;
}

.background-figure text {
  font-size: 13px;
  fill: var(--foreground);
}

.background-figure .figure-mono {
  font-family: var(--mono);
  font-size: 11.5px;
}

.background-figure .figure-muted {
  fill: var(--muted);
  font-size: 12px;
}

.background-figure .figure-line {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
}

.background-figure .figure-arrowcap {
  fill: var(--muted);
}

.background-figure .figure-curve {
  fill: none;
  stroke: var(--foreground);
  stroke-width: 2;
}

.background-figure .figure-space {
  fill: none;
  stroke: var(--hairline);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
}

.background-figure .figure-dot {
  fill: var(--foreground);
}

.background-figure .figure-accent {
  fill: var(--crimson);
}

.background-figure .figure-ghost {
  fill: var(--foreground);
  opacity: 0.3;
}

.background-figure .figure-arrowline {
  fill: none;
  stroke: var(--crimson);
  stroke-width: 2;
}

.background-figure .figure-arrowhead {
  fill: var(--crimson);
}

.building-layout {
  align-items: stretch;
}

.building-figure {
  width: min(120cqmin, 100%);
  margin: auto 0;
  align-self: center;
}

.building-figure text {
  font-size: 17px;
  fill: var(--foreground);
}

.building-figure .figure-box {
  fill: none;
  stroke: var(--foreground);
  stroke-width: 2;
}

.building-figure .figure-link {
  stroke: var(--muted);
  stroke-width: 2;
  stroke-dasharray: 6 6;
}

.building-figure .figure-outline {
  fill: none;
  stroke: var(--foreground);
  stroke-width: 2;
  stroke-linecap: round;
}

.building-figure .figure-hat {
  fill: none;
  stroke: var(--crimson);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.building-figure .chip-body {
  fill: var(--background);
  stroke: var(--crimson);
  stroke-width: 1.8;
}

.building-figure .chip-label {
  font-size: 14px;
  fill: var(--crimson);
}

/* Chips launch beside the plugin, travel the connection, then dock in place. */
.flow-chip {
  opacity: 0;
}

.flow-chip.is-sent {
  opacity: 1;
  animation: chip-flow 1000ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes chip-flow {
  from {
    opacity: 0;
    transform: translate(var(--chip-dx), var(--chip-dy));
  }
  15% {
    opacity: 1;
  }
  70% {
    transform: translate(0, var(--chip-dy));
  }
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-chip.is-sent {
    animation: none;
  }
}

.what-layout {
  align-items: stretch;
}

.what-body {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 7cqmin;
}

.what-body .section-list {
  flex: 1;
  margin-top: 0;
}

.what-shot {
  width: 56cqmin;
  flex-shrink: 0;
  border: 0.16cqmin solid var(--hairline);
}

.results-layout {
  align-items: stretch;
}

.results-line {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 4cqmin;
}

.results-audio,
.results-gif {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8cqmin;
  margin: 0;
}

.results-audio figcaption {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 1.7cqmin;
}

.results-prompt {
  font-size: 2.6cqmin;
  font-weight: 450;
}

.results-gif img {
  width: 52cqmin;
  border: 0.16cqmin solid var(--hairline);
}

.results-arrow {
  color: var(--muted);
  font-size: 5cqmin;
}

.audio-button {
  display: grid;
  width: 9cqmin;
  height: 9cqmin;
  border: 0.18cqmin solid var(--hairline);
  border-radius: 50%;
  padding: 0;
  place-items: center;
  background: var(--background);
  color: var(--crimson);
  cursor: pointer;
  transition: border-color 160ms ease;
}

.audio-button:hover,
.audio-button.is-playing {
  border-color: var(--crimson);
}

.audio-button svg {
  width: 3.2cqmin;
  height: 3.2cqmin;
  fill: currentcolor;
}

.audio-button .icon-pause,
.audio-button.is-playing .icon-play {
  display: none;
}

.audio-button.is-playing .icon-pause {
  display: block;
}

.question-layout {
  position: relative;
}

.research-question {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(125cqmin, 88vw);
  margin: 0;
  font-size: 5.6cqmin;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.16;
  text-align: center;
  transform: translate(-50%, -50%);
  transition: top 300ms ease;
}

.question-layout.has-detail .research-question {
  top: 34%;
}

.question-term {
  transition: color 220ms ease;
}

.question-term.is-active {
  color: var(--crimson);
}

.question-details {
  position: absolute;
  right: 9cqmin;
  bottom: 9cqmin;
  left: 9cqmin;
  height: 18cqmin;
  text-align: center;
}

.question-details article {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(2cqmin);
  transition:
    opacity 220ms ease,
    transform 280ms ease;
}

.question-details article.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.question-details p {
  max-width: 100cqmin;
  margin: 0;
  font-size: 3cqmin;
  line-height: 1.25;
}

.question-details .detail-examples {
  margin-top: 1.5cqmin;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 1.8cqmin;
}

.section-layout h2 {
  max-width: 120cqmin;
  margin: 0;
  font-family: var(--sans);
  font-size: 7.8cqmin;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  text-wrap: balance;
}

.deck-controls {
  position: absolute;
  z-index: 20;
  bottom: 3.2cqmin;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 2.4cqmin;
  transform: translateX(-50%);
}

.deck-nav {
  display: flex;
  align-items: center;
  gap: 1.5cqmin;
}

.progress-tick {
  position: relative;
  width: 3.4cqmin;
  height: 4.2cqmin;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.progress-tick::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 0.48cqmin;
  background: var(--hairline);
  content: "";
  transform: translateY(-50%);
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.progress-tick:hover::before {
  background: var(--muted);
  transform: translateY(-50%) scaleY(1.7);
}

.progress-tick.is-past::before {
  background: var(--foreground);
}

.progress-tick.is-current::before {
  background: var(--crimson);
  transform: translateY(-50%) scaleY(1.7);
}

.icon-button {
  display: grid;
  width: 4.2cqmin;
  height: 4.2cqmin;
  border: 0;
  padding: 0;
  place-items: center;
  background: transparent;
  cursor: pointer;
}

.icon-button {
  color: var(--muted);
  transition: color 160ms ease;
}

.icon-button:hover:not(:disabled) {
  color: var(--crimson);
}

.icon-button:disabled {
  color: var(--hairline);
  cursor: default;
}

.icon-button svg {
  width: 2.4cqmin;
  height: 2.4cqmin;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.8;
}

.slide-count {
  position: absolute;
  z-index: 20;
  right: 6cqmin;
  bottom: 4.1cqmin;
  display: flex;
  gap: 0.6cqmin;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 1.65cqmin;
  font-variant-numeric: tabular-nums;
}

.slide-count b {
  color: var(--foreground);
  font-weight: 500;
}

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

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