:root {
  --canvas: #f4efe6;
  --paper: #fffdf8;
  --ink: #102a34;
  --muted: #617078;
  --red: #b31b34;
  --red-dark: #801226;
  --green: #0d7a65;
  --amber: #e0a52b;
  --line: #d8d0c3;
  --white: #fff;
  --shadow: 0 24px 70px rgba(16, 42, 52, .18);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --gutter: clamp(1rem, 4vw, 4rem);
  font-family: Inter, "Avenir Next", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 18%, rgba(224, 165, 43, .12), transparent 28rem),
    radial-gradient(circle at 8% 82%, rgba(13, 122, 101, .09), transparent 34rem),
    var(--canvas);
}

button {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  color: var(--white);
  background: var(--ink);
  border-radius: .5rem;
  transform: translateY(-160%);
  transition: transform .2s;
}

.skip-link:focus {
  transform: none;
}

.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto minmax(12rem, 1fr);
  align-items: center;
  width: 100%;
  height: 4.6rem;
  padding: 0 var(--gutter);
  color: var(--ink);
  background: linear-gradient(to bottom, rgba(244, 239, 230, .98), rgba(244, 239, 230, .78) 72%, transparent);
}

.brand,
.icon-button,
.nav-arrow,
.dialog-close {
  border: 0;
  color: inherit;
  background: none;
  cursor: pointer;
}

.brand {
  display: flex;
  gap: .7rem;
  align-items: center;
  justify-self: start;
  padding: .45rem 0;
  color: var(--ink);
  font-size: .75rem;
  letter-spacing: .04em;
}

.brand-mark {
  width: .72rem;
  height: .72rem;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 1rem 0 0 rgba(179, 27, 52, .28);
}

.chapter {
  display: flex;
  gap: .65rem;
  align-items: baseline;
  justify-self: center;
  min-width: 12rem;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.chapter-index {
  color: var(--red);
  font-weight: 800;
}

.chapter-name {
  overflow: hidden;
  max-width: 24rem;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  gap: .35rem;
  justify-self: end;
}

.icon-button {
  display: inline-flex;
  gap: .4rem;
  align-items: center;
  padding: .55rem .65rem;
  border: 1px solid transparent;
  border-radius: .7rem;
  color: var(--ink);
  font-size: .72rem;
  font-weight: 700;
  transition: transform .2s var(--ease), border-color .2s, background .2s;
}

.icon-button:hover {
  border-color: var(--line);
  background: rgba(255, 253, 248, .75);
  transform: translateY(-2px);
}

.annotation-button.is-unavailable {
  visibility: hidden;
  pointer-events: none;
}

.annotation-button[aria-pressed="false"] {
  color: var(--muted);
}

.annotation-button[aria-pressed="false"] svg {
  opacity: .42;
}

.annotation-button.is-demoing {
  animation: annotation-control-nudge 1.3s var(--ease) both;
}

.annotation-shortcut {
  display: inline-flex;
  gap: .24rem;
  align-items: center;
  padding: .16rem .28rem;
  border-radius: .35rem;
  transition: color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}

.annotation-shortcut.is-available {
  color: var(--ink);
  background: rgba(255, 253, 248, .78);
  box-shadow: 0 0 0 1px rgba(16, 42, 52, .12);
  font-weight: 800;
}

.annotation-shortcut.is-demoing {
  animation: annotation-shortcut-nudge 1.3s var(--ease) both;
}

.annotation-coach {
  position: fixed;
  z-index: 45;
  bottom: 4.7rem;
  left: var(--gutter);
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  width: min(28rem, calc(100vw - 2 * var(--gutter)));
  padding: .9rem 1.05rem;
  border: 1px solid rgba(180, 119, 16, .48);
  color: var(--ink);
  background: rgba(255, 253, 248, .96);
  border-radius: 1rem;
  box-shadow: 0 22px 55px rgba(16, 42, 52, .2), 0 0 0 .35rem rgba(224, 165, 43, .12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem) scale(.97);
  transition: opacity .28s var(--ease), transform .4s var(--ease);
}

.annotation-coach.is-visible {
  opacity: 1;
  transform: none;
}

.annotation-coach::after {
  content: "";
  position: absolute;
  bottom: -1.2rem;
  left: 2rem;
  width: 2px;
  height: 1.2rem;
  background: #b47710;
}

.annotation-coach-key {
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border: 1px solid rgba(16, 42, 52, .24);
  color: var(--white);
  background: var(--red);
  border-radius: .75rem;
  box-shadow: 0 .32rem 0 #781124, 0 .55rem 1.2rem rgba(179, 27, 52, .22);
  font-size: 1.8rem;
  font-weight: 900;
}

.annotation-coach.is-visible .annotation-coach-key {
  animation: annotation-key-press .9s var(--ease) 3;
}

.annotation-coach-copy {
  display: grid;
  gap: .12rem;
}

.annotation-coach-copy strong {
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1;
}

.annotation-coach-copy small {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}

.icon-button svg,
.nav-arrow svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.deck {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
}

.deck-grid {
  position: absolute;
  inset: 0;
  opacity: .26;
  background-image:
    linear-gradient(rgba(16, 42, 52, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 42, 52, .09) 1px, transparent 1px);
  background-position: center;
  background-size: clamp(56px, 7vw, 110px) clamp(56px, 7vw, 110px);
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 72%, transparent);
}

.slide-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  width: 100%;
  height: 100%;
  padding: clamp(5.3rem, 10vh, 7.5rem) var(--gutter) clamp(6.6rem, 12vh, 8rem);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(5%);
  transition:
    opacity .36s var(--ease),
    transform .48s var(--ease);
}

.slide::before {
  content: attr(data-number);
  position: absolute;
  right: clamp(1rem, 4vw, 4rem);
  bottom: clamp(5.8rem, 10vh, 7rem);
  z-index: -1;
  color: rgba(16, 42, 52, .045);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(7rem, 18vw, 18rem);
  font-weight: 700;
  line-height: .7;
}

.slide.is-before {
  transform: translateX(-5%);
}

.slide.is-active {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.eyebrow {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  color: var(--red);
  font-size: clamp(.66rem, 1.1vw, .78rem);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
.diagram-big {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

h1 {
  max-width: 10ch;
  margin: .35rem 0 1.25rem;
  font-size: clamp(3.5rem, 8.8vw, 9rem);
  line-height: .82;
  letter-spacing: -.06em;
}

h2 {
  max-width: 15ch;
  margin: .45rem 0 1.1rem;
  font-size: clamp(2.4rem, 5.2vw, 5.9rem);
  line-height: .94;
  letter-spacing: -.045em;
}

.lede {
  max-width: 46rem;
  color: var(--green);
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 650;
  line-height: 1.35;
}

.body-copy {
  max-width: 62ch;
  color: #30464e;
  font-size: clamp(.9rem, 1.2vw, 1.08rem);
  line-height: 1.55;
}

.cover-slide {
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, .8fr);
  gap: clamp(2rem, 7vw, 8rem);
  color: var(--white);
  background: var(--ink);
}

.cover-slide::after {
  content: "";
  position: absolute;
  inset: -18vmax -5vmax auto auto;
  width: 52vmax;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  box-shadow:
    0 0 0 6vmax rgba(179, 27, 52, .28),
    0 0 0 12vmax rgba(255, 255, 255, .045),
    0 0 0 18vmax rgba(224, 165, 43, .055);
  animation: orbit 16s linear infinite;
}

.cover-slide::before {
  color: rgba(255, 255, 255, .035);
}

.cover-copy,
.cover-route {
  position: relative;
  z-index: 2;
}

.cover-slide .eyebrow {
  color: var(--amber);
}

.cover-slide h1 span {
  display: block;
  color: #f6d5d9;
}

.cover-slide .lede {
  margin-top: 2.4rem;
  color: #b8e1d8;
}

.ai-disclosure {
  position: absolute;
  z-index: 3;
  right: clamp(2.5rem, 5vw, 6rem);
  bottom: clamp(5rem, 8vh, 6.5rem);
  display: grid;
  width: min(31rem, 34vw);
  grid-template-columns: 3.2rem 1fr;
  gap: .9rem;
  align-items: center;
  margin: 0;
  padding-top: .9rem;
  border-top: 2px solid var(--amber);
  color: rgba(255, 255, 255, .82);
  font-size: clamp(.95rem, 1.25vw, 1.25rem);
  line-height: 1.3;
}

.ai-disclosure-mark {
  display: grid;
  width: 3.2rem;
  aspect-ratio: 1;
  place-items: center;
  color: var(--ink);
  background: var(--amber);
  border-radius: 50%;
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.ai-disclosure strong {
  color: var(--white);
}

.cover-route {
  align-self: end;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(6, 25, 32, .52);
  backdrop-filter: blur(12px);
}

.route-label {
  display: block;
  margin-bottom: 1rem;
  color: var(--amber);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.route-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .6rem;
}

.route-steps span {
  position: relative;
  padding-top: 1.35rem;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(.7rem, 1vw, .92rem);
}

.route-steps span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: .58rem;
  height: .58rem;
  background: var(--red);
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5);
}

.route-steps span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: .28rem;
  left: .7rem;
  width: calc(100% - .5rem);
  height: 1px;
  background: rgba(255, 255, 255, .28);
}

.screenshot-slide {
  grid-template-columns: minmax(20rem, .88fr) minmax(0, 1.5fr);
  gap: clamp(1.3rem, 3vw, 3.2rem);
}

.slide-copy {
  position: relative;
  z-index: 3;
  align-self: center;
  min-width: 0;
}

.slide-subtitle {
  margin-bottom: .65rem;
  color: var(--green);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.micro-label {
  display: block;
  margin: .1rem 0 .28rem;
  color: var(--red);
  font-size: clamp(.58rem, .7vw, .68rem);
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.action-label {
  margin-top: .7rem;
}

.screenshot-slide .body-copy {
  margin-bottom: .55rem;
  font-size: clamp(.78rem, .93vw, .94rem);
  line-height: 1.42;
}

.why-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .55rem;
  align-items: start;
  margin: .1rem 0 .55rem;
  padding: .48rem .6rem;
  border-left: 3px solid #b47710;
  color: #43575e;
  background: rgba(224, 165, 43, .1);
  border-radius: 0 .42rem .42rem 0;
  font-size: clamp(.63rem, .72vw, .73rem);
  line-height: 1.34;
}

.why-strip strong {
  color: #94620b;
  font-size: .59rem;
  letter-spacing: .085em;
  text-transform: uppercase;
  white-space: nowrap;
}

.concept-list {
  display: grid;
  gap: .34rem;
  margin: .55rem 0 0;
}

.concept-row {
  display: grid;
  grid-template-columns: minmax(5.4rem, .42fr) minmax(0, 1fr);
  gap: .55rem;
  padding-top: .34rem;
  border-top: 1px solid rgba(16, 42, 52, .12);
}

.concept-row dt {
  color: var(--ink);
  font-size: clamp(.66rem, .78vw, .78rem);
  font-weight: 850;
  line-height: 1.3;
}

.concept-row dd {
  margin: 0;
  color: #43575e;
  font-size: clamp(.65rem, .75vw, .76rem);
  line-height: 1.35;
}

.actions {
  display: grid;
  gap: .32rem;
  max-width: 56ch;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: actions;
}

.actions li {
  display: grid;
  grid-template-columns: 1.65rem 1fr;
  gap: .65rem;
  align-items: start;
  color: #30464e;
  font-size: clamp(.69rem, .8vw, .81rem);
  line-height: 1.34;
  counter-increment: actions;
}

.verification {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .55rem;
  align-items: start;
  margin-top: .65rem;
  padding: .55rem .65rem;
  border-left: 3px solid var(--green);
  color: #30464e;
  background: rgba(13, 122, 101, .08);
  border-radius: 0 .42rem .42rem 0;
  font-size: clamp(.65rem, .75vw, .76rem);
  line-height: 1.35;
}

.verification strong {
  color: var(--green);
  font-size: .61rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.actions li::before {
  content: counter(actions, decimal-leading-zero);
  padding-top: .12rem;
  color: var(--red);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.screenshot-shell {
  position: relative;
  align-self: center;
  min-width: 0;
  margin: 0;
  overflow: visible;
  border: 1px solid rgba(16, 42, 52, .18);
  background: var(--paper);
  border-radius: clamp(.8rem, 1.5vw, 1.4rem);
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  gap: .36rem;
  align-items: center;
  height: 2rem;
  padding: 0 .85rem;
  border-bottom: 1px solid var(--line);
}

.window-bar i {
  width: .5rem;
  height: .5rem;
  background: var(--line);
  border-radius: 50%;
}

.window-bar i:first-child {
  background: var(--red);
}

.window-bar i:nth-child(2) {
  background: var(--amber);
}

.window-bar i:nth-child(3) {
  background: var(--green);
}

.screenshot-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 0 0 calc(clamp(.8rem, 1.5vw, 1.4rem) - 1px) calc(clamp(.8rem, 1.5vw, 1.4rem) - 1px);
  background: #edf0f1;
}

.screenshot-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.region-highlight {
  position: absolute;
  z-index: 2;
  display: block;
  border: 2px solid var(--tone);
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 13%, transparent);
  border-radius: .42rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .72) inset, 0 0 0 2px rgba(255, 255, 255, .45);
  pointer-events: none;
  transition: opacity .2s var(--ease), visibility .2s;
}

.region-highlight em {
  position: absolute;
  top: .38rem;
  left: .4rem;
  max-width: calc(100% - .8rem);
  padding: .28rem .45rem;
  overflow: hidden;
  color: var(--white);
  background: var(--tone);
  border-radius: .28rem;
  font-size: clamp(.48rem, .62vw, .64rem);
  font-style: normal;
  font-weight: 850;
  letter-spacing: .035em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tone-red { --tone: var(--red); }
.tone-green { --tone: var(--green); }
.tone-amber { --tone: #b47710; }
.tone-blue { --tone: #245d8f; }

.hotspot {
  --tone: var(--red);
  position: absolute;
  z-index: 3;
  display: block;
  width: 1rem;
  height: 1rem;
  border: 3px solid var(--white);
  background: var(--tone);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--tone), 0 0 0 8px rgba(179, 27, 52, .18);
  transform: translate(-50%, -50%);
  transition: opacity .2s var(--ease), visibility .2s;
}

.hotspot.tone-green {
  box-shadow: 0 0 0 2px var(--tone), 0 0 0 8px rgba(15, 124, 105, .2);
}

.slide.is-active .region-highlight.annotation-flash,
.slide.is-active .hotspot.annotation-flash {
  animation: annotation-important-flash 1s ease-in-out 4;
}

.annotations-hidden .region-highlight,
.annotations-hidden .hotspot {
  visibility: hidden;
  opacity: 0;
}

.annotation-demo:not(.annotations-hidden) .slide.is-active .region-highlight:not(.annotation-flash),
.annotation-demo:not(.annotations-hidden) .slide.is-active .hotspot:not(.annotation-flash) {
  animation: annotation-preview 1.3s var(--ease) both;
}

.hotspot::after {
  content: attr(data-label);
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  width: max-content;
  max-width: 12rem;
  padding: .42rem .6rem;
  color: var(--white);
  background: var(--red);
  border-radius: .35rem;
  font-size: clamp(.55rem, .7vw, .72rem);
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
  transform-origin: left bottom;
}

.hotspot.label-below::after {
  top: 1.1rem;
  bottom: auto;
  transform-origin: left top;
}

.hotspot.label-hidden::after {
  display: none;
}

.diagram-slide {
  grid-template-columns: minmax(16rem, .7fr) minmax(25rem, 1.3fr);
  gap: clamp(2rem, 6vw, 7rem);
}

.diagram-stage {
  position: relative;
  display: grid;
  align-self: center;
  width: 100%;
  min-width: 0;
  min-height: min(56vh, 38rem);
  place-items: center;
}

.brief-principle,
.journey-guidance {
  display: grid;
  gap: .28rem;
  margin-top: 1rem;
  padding: .8rem .9rem;
  border-left: 3px solid var(--green);
  color: #395158;
  background: rgba(13, 122, 101, .08);
  border-radius: 0 .55rem .55rem 0;
  font-size: clamp(.7rem, .85vw, .82rem);
  line-height: 1.4;
}

.brief-principle strong,
.journey-guidance strong {
  color: var(--green);
  font-size: .65rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.decision-board {
  display: grid;
  width: min(100%, 48rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.decision-card {
  display: grid;
  grid-template-columns: 2.35rem 1fr;
  gap: .85rem;
  min-height: 8.2rem;
  align-items: start;
  padding: 1.15rem;
  border: 1px solid rgba(16, 42, 52, .16);
  background: rgba(255, 253, 248, .8);
  border-radius: 1rem;
  box-shadow: 0 14px 34px rgba(16, 42, 52, .08);
  opacity: 0;
  transform: translateY(12px);
}

.decision-card > span {
  display: grid;
  width: 2.35rem;
  aspect-ratio: 1;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 900;
}

.decision-card:nth-child(2) > span { background: #b47710; }
.decision-card:nth-child(3) > span { background: #245d8f; }
.decision-card:nth-child(4) > span { background: var(--green); }

.decision-card strong {
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
}

.decision-card p {
  margin: .35rem 0 0;
  color: var(--muted);
  font-size: clamp(.68rem, .85vw, .82rem);
  line-height: 1.4;
}

.decision-result {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 2.35rem 1fr;
  gap: .85rem;
  align-items: center;
  padding: .95rem 1.15rem;
  color: var(--white);
  background: var(--ink);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
}

.decision-result > span {
  display: grid;
  width: 2.35rem;
  aspect-ratio: 1;
  place-items: center;
  color: var(--ink);
  background: var(--amber);
  border-radius: 50%;
  font-weight: 900;
}

.decision-result > div {
  display: grid;
  gap: .15rem;
}

.decision-result strong {
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
}

.decision-result small {
  color: rgba(255, 255, 255, .68);
  font-size: clamp(.58rem, .75vw, .7rem);
}

.slide.is-active .decision-card,
.slide.is-active .decision-result {
  animation: map-enter .48s var(--ease) forwards;
}

.slide.is-active .decision-card:nth-child(2) { animation-delay: .08s; }
.slide.is-active .decision-card:nth-child(3) { animation-delay: .16s; }
.slide.is-active .decision-card:nth-child(4) { animation-delay: .24s; }
.slide.is-active .decision-result { animation-delay: .34s; }

.data-journey {
  display: grid;
  width: min(100%, 52rem);
  gap: 1rem;
}

.journey-interaction-hint {
  display: flex;
  width: fit-content;
  gap: .45rem;
  align-items: center;
  margin: 0;
  padding: .55rem .8rem;
  border: 1px solid rgba(180, 119, 16, .35);
  color: var(--ink);
  background: rgba(255, 253, 248, .94);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(16, 42, 52, .09);
  font-size: clamp(.64rem, .78vw, .78rem);
}

.journey-interaction-hint > span {
  display: grid;
  width: 1.65rem;
  aspect-ratio: 1;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border-radius: 50%;
  font-size: .9rem;
  font-weight: 900;
}

.journey-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .55rem;
}

.journey-step {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 7.2rem;
  padding: .78rem .65rem .7rem;
  place-content: center;
  border: 2px solid rgba(16, 42, 52, .24);
  color: var(--ink);
  background: rgba(255, 253, 248, .92);
  border-radius: .8rem;
  box-shadow:
    0 4px 0 rgba(16, 42, 52, .12),
    0 12px 28px rgba(16, 42, 52, .09);
  cursor: pointer;
  text-align: left;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}

.slide.is-active .journey-step {
  animation: journey-clickable-pulse .72s var(--ease) both;
}

.slide.is-active .journey-step:nth-child(2) { animation-delay: .1s; }
.slide.is-active .journey-step:nth-child(3) { animation-delay: .2s; }
.slide.is-active .journey-step:nth-child(4) { animation-delay: .3s; }
.slide.is-active .journey-step:nth-child(5) { animation-delay: .4s; }

.journey-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -.55rem;
  color: rgba(16, 42, 52, .34);
  font-weight: 900;
  transform: translate(50%, -50%);
}

.journey-number {
  color: var(--red);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.journey-step strong {
  display: block;
  margin-top: .45rem;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(.82rem, 1.2vw, 1.05rem);
  line-height: 1.05;
}

.journey-cta {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-top: .75rem;
  padding: .28rem .45rem;
  border: 1px solid rgba(13, 122, 101, .26);
  color: var(--green);
  background: rgba(13, 122, 101, .08);
  border-radius: 999px;
  font-size: clamp(.48rem, .58vw, .58rem);
  font-weight: 850;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
}

.journey-step:hover,
.journey-step:focus-visible,
.journey-step.is-active {
  color: var(--white);
  border-color: var(--ink);
  background: var(--ink);
  box-shadow:
    0 4px 0 rgba(224, 165, 43, .7),
    0 16px 36px rgba(16, 42, 52, .2);
  transform: translateY(-4px);
}

.journey-step:hover .journey-number,
.journey-step:focus-visible .journey-number,
.journey-step.is-active .journey-number {
  color: var(--amber);
}

.journey-step:hover .journey-cta,
.journey-step:focus-visible .journey-cta,
.journey-step.is-active .journey-cta {
  border-color: rgba(224, 165, 43, .65);
  color: var(--ink);
  background: var(--amber);
}

.journey-detail {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  align-items: center;
  min-height: 9.5rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(13, 122, 101, .35);
  color: var(--ink);
  background: rgba(13, 122, 101, .08);
  border-radius: 1rem;
}

.journey-detail-index {
  display: grid;
  width: 3rem;
  aspect-ratio: 1;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
  font-size: .76rem;
  font-weight: 900;
}

.journey-detail strong {
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
}

.journey-detail p {
  max-width: 52ch;
  margin: .35rem 0 0;
  color: var(--muted);
  font-size: clamp(.72rem, .95vw, .9rem);
  line-height: 1.42;
}

.test-loop {
  position: relative;
  display: grid;
  width: min(100%, 47rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4.2rem 8rem;
  padding: 1.3rem 2rem;
}

.loop-step {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: .75rem;
  min-height: 7rem;
  align-items: center;
  padding: .9rem 1rem;
  border: 1px solid rgba(36, 93, 143, .24);
  background: rgba(255, 253, 248, .82);
  border-radius: 1rem;
  box-shadow: 0 12px 32px rgba(16, 42, 52, .09);
  opacity: 0;
  transform: scale(.96);
}

.loop-step > span {
  display: grid;
  width: 2.25rem;
  aspect-ratio: 1;
  place-items: center;
  color: var(--white);
  background: #245d8f;
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 900;
}

.loop-step > div {
  display: grid;
  gap: .22rem;
}

.loop-step strong {
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(1rem, 1.45vw, 1.25rem);
}

.loop-step small {
  color: var(--muted);
  font-size: clamp(.58rem, .76vw, .7rem);
  line-height: 1.35;
}

.loop-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 7.7rem;
  aspect-ratio: 1;
  padding: 1rem;
  place-content: center;
  color: var(--white);
  background: var(--red);
  border: 8px solid rgba(255, 253, 248, .92);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(179, 27, 52, .22), var(--shadow);
  text-align: center;
  transform: translate(-50%, -50%);
}

.loop-core strong {
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 1.05rem;
}

.loop-core small {
  margin-top: .25rem;
  color: rgba(255, 255, 255, .76);
  font-size: .55rem;
  line-height: 1.25;
}

.slide.is-active .loop-step {
  animation: loop-enter .45s var(--ease) forwards;
}

.slide.is-active .loop-step:nth-child(2) { animation-delay: .09s; }
.slide.is-active .loop-step:nth-child(3) { animation-delay: .18s; }
.slide.is-active .loop-step:nth-child(4) { animation-delay: .27s; }

.peer-test {
  display: grid;
  gap: .32rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(179, 27, 52, .22);
  background: rgba(179, 27, 52, .07);
  border-radius: .85rem;
}

.peer-test span {
  color: var(--red);
  font-size: .64rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.peer-test strong {
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  line-height: 1.15;
}

.peer-test small {
  color: var(--muted);
  font-size: clamp(.65rem, .8vw, .76rem);
  line-height: 1.4;
}

.field-transition-map {
  display: grid;
  width: min(100%, 48rem);
  gap: .65rem;
}

.transition-heading {
  display: flex;
  gap: .65rem;
  align-items: center;
  color: var(--red);
}

.transition-heading > span:last-child {
  display: grid;
}

.transition-heading strong {
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(1rem, 1.7vw, 1.45rem);
  line-height: 1;
}

.transition-heading small {
  margin-top: .18rem;
  color: var(--muted);
  font-size: clamp(.5rem, .72vw, .65rem);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.designer-mini,
.editor-preview {
  padding: clamp(.8rem, 1.6vw, 1.25rem);
  border: 1.5px solid rgba(36, 93, 143, .58);
  background: rgba(255, 253, 248, .82);
  border-radius: 1.1rem;
  box-shadow: 0 16px 42px rgba(16, 42, 52, .1);
}

.designer-mini-head {
  display: flex;
  gap: .8rem;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: .62rem;
  border-bottom: 1px solid var(--line);
}

.designer-mini-head span {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.designer-mini-head strong {
  color: #245d8f;
  font-size: clamp(.78rem, 1vw, .94rem);
}

.designer-field {
  display: grid;
  grid-template-columns: 1.7rem 1fr auto;
  gap: .65rem;
  align-items: center;
  margin-top: .7rem;
  padding: .72rem .8rem;
  border: 1px solid rgba(16, 42, 52, .15);
  background: var(--paper);
  border-radius: .65rem;
}

.field-lock {
  display: grid;
  width: 1.65rem;
  aspect-ratio: 1;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  font-size: .55rem;
}

.designer-field > span:nth-child(2) {
  display: grid;
}

.designer-field strong {
  font-size: clamp(.72rem, .92vw, .86rem);
}

.designer-field code {
  margin-top: .12rem;
  color: var(--red);
  font-size: clamp(.6rem, .78vw, .72rem);
}

.designer-field small,
.insert-position small {
  color: var(--muted);
  font-size: clamp(.54rem, .7vw, .65rem);
}

.insert-position {
  display: grid;
  grid-template-columns: 1.8rem auto 1fr;
  gap: .65rem;
  align-items: center;
  margin: .45rem 0 0 2.2rem;
}

.insert-position > span {
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  color: var(--green);
  font-size: 1.15rem;
  font-weight: 900;
}

.mock-add-button {
  display: inline-flex;
  width: max-content;
  padding: .55rem .78rem;
  color: var(--white);
  background: var(--green);
  border-radius: .45rem;
  box-shadow: 0 8px 18px rgba(13, 122, 101, .22);
  font-size: clamp(.67rem, .86vw, .8rem);
}

.transition-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .55rem;
  align-items: center;
  color: var(--red);
}

.transition-flow span {
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}

.transition-flow span:last-child {
  background: linear-gradient(90deg, currentColor, transparent);
}

.transition-flow b {
  display: grid;
  width: 2.4rem;
  aspect-ratio: 1;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border-radius: 50%;
  font-size: .58rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.editor-preview {
  border-color: rgba(13, 122, 101, .58);
  background: rgba(13, 122, 101, .07);
}

.editor-preview .transition-heading {
  color: var(--green);
}

.editor-preview .map-index {
  background: var(--green);
}

.editor-choice {
  display: grid;
  margin-top: .75rem;
  padding: .8rem;
  border: 1px solid rgba(13, 122, 101, .22);
  background: rgba(255, 253, 248, .88);
  border-radius: .65rem;
}

.editor-choice > small {
  color: var(--green);
  font-size: .58rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.editor-choice > strong {
  margin-top: .18rem;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(.9rem, 1.4vw, 1.2rem);
}

.editor-choice div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .35rem;
  margin-top: .6rem;
}

.editor-choice i {
  padding: .42rem .3rem;
  border: 1px solid rgba(13, 122, 101, .28);
  color: var(--green);
  background: rgba(13, 122, 101, .06);
  border-radius: .35rem;
  font-size: clamp(.52rem, .68vw, .63rem);
  font-style: normal;
  font-weight: 750;
  text-align: center;
}

.slide.is-active .designer-mini {
  animation: map-enter .45s var(--ease) both;
}

.slide.is-active .editor-preview {
  animation: map-enter .45s .18s var(--ease) both;
}

.containment-map {
  display: grid;
  width: min(100%, 50rem);
  gap: .55rem;
  color: var(--ink);
}

.project-frame,
.records-frame {
  position: relative;
  padding: clamp(.75rem, 1.5vw, 1.15rem);
  border: 1.5px solid rgba(179, 27, 52, .62);
  background: rgba(255, 253, 248, .76);
  border-radius: 1.2rem;
  box-shadow: 0 15px 40px rgba(16, 42, 52, .1);
}

.project-label,
.instrument-label,
.records-label {
  display: flex;
  gap: .6rem;
  align-items: center;
}

.project-label {
  margin-bottom: .65rem;
  color: var(--red);
}

.project-label span:last-child,
.instrument-label span:last-child {
  display: grid;
}

.project-label strong,
.instrument-label strong,
.records-label strong {
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(.9rem, 1.4vw, 1.25rem);
  line-height: 1;
}

.project-label small,
.instrument-label small {
  margin-top: .18rem;
  color: var(--muted);
  font-size: clamp(.5rem, .7vw, .65rem);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.map-index {
  display: grid;
  width: 1.65rem;
  aspect-ratio: 1;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  font-size: .6rem;
  font-weight: 900;
}

.project-label .map-index { background: var(--red); }
.instrument-a .map-index { background: #b47710; }
.instrument-b .map-index { background: var(--green); }

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

.instrument-block {
  padding: .75rem;
  border: 1px solid;
  border-radius: .85rem;
  opacity: 0;
  transform: translateY(10px);
}

.slide.is-active .instrument-block {
  animation: map-enter .48s var(--ease) forwards;
}

.slide.is-active .instrument-b {
  animation-delay: .1s;
}

.instrument-a {
  border-color: rgba(224, 165, 43, .7);
  background: rgba(224, 165, 43, .1);
}

.instrument-b {
  border-color: rgba(13, 122, 101, .65);
  background: rgba(13, 122, 101, .09);
}

.instrument-a .instrument-label {
  color: #9a6810;
}

.instrument-b .instrument-label {
  color: var(--green);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .35rem;
  margin-top: .65rem;
}

.field-unit {
  display: grid;
  min-width: 0;
  padding: .52rem .45rem;
  border: 1px solid rgba(16, 42, 52, .12);
  background: rgba(255, 253, 248, .92);
  border-radius: .48rem;
  text-align: center;
}

.field-unit strong {
  font-size: clamp(.56rem, .8vw, .72rem);
}

.field-unit code {
  overflow: hidden;
  margin-top: .18rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(.48rem, .65vw, .61rem);
  text-overflow: ellipsis;
}

.data-bridge {
  display: flex;
  gap: .65rem;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  color: var(--green);
  font-size: clamp(.58rem, .82vw, .72rem);
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
}

.data-bridge span {
  display: grid;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
  font-size: 1rem;
}

.records-frame {
  padding-top: .72rem;
  border-color: rgba(16, 42, 52, .45);
}

.records-label {
  position: absolute;
  top: -.82rem;
  left: 1rem;
  padding: .15rem .55rem .15rem .15rem;
  color: var(--ink);
  background: var(--canvas);
  border-radius: 2rem;
}

.record-row {
  display: grid;
  grid-template-columns: 3.2rem repeat(2, minmax(0, 1fr));
  gap: .5rem;
  align-items: center;
  min-height: 2rem;
  padding: .32rem 0;
  border-top: 1px solid var(--line);
}

.record-row:first-of-type {
  border-top: 0;
}

.record-row > b {
  color: var(--red);
  font-size: .68rem;
  text-align: center;
}

.record-head {
  padding-top: .55rem;
  border-top: 0;
  color: var(--muted);
  font-size: clamp(.5rem, .66vw, .6rem);
  font-weight: 800;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
}

.value-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .28rem;
}

.value-group i {
  padding: .28rem .2rem;
  border: 1px solid;
  border-radius: .3rem;
  font-size: clamp(.5rem, .65vw, .6rem);
  font-style: normal;
  font-weight: 750;
  text-align: center;
}

.values-a i {
  border-color: rgba(224, 165, 43, .4);
  color: #80580d;
  background: rgba(224, 165, 43, .11);
}

.values-b i {
  border-color: rgba(13, 122, 101, .35);
  color: #075746;
  background: rgba(13, 122, 101, .09);
}

.slide.is-active .records-frame {
  animation: map-enter .48s .22s var(--ease) both;
}

@keyframes map-enter {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes loop-enter {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.state-compass {
  display: grid;
  width: min(100%, 46rem);
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--ink);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.state {
  display: grid;
  min-height: clamp(8rem, 16vw, 13rem);
  padding: clamp(1rem, 2vw, 2rem);
  place-content: center;
  color: var(--ink);
  background: var(--paper);
  text-align: center;
}

.state strong {
  display: block;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(1.4rem, 2.8vw, 2.7rem);
}

.state small {
  display: block;
  max-width: 18rem;
  margin-top: .45rem;
  color: var(--muted);
  line-height: 1.35;
}

.state:nth-child(2) { background: #f6d9dd; }
.state:nth-child(3) { background: #dcedea; }
.state:nth-child(4) { background: #f4e5bc; }

.checklist-path {
  display: grid;
  width: min(100%, 45rem);
  gap: 1rem;
}

.check {
  position: relative;
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: .9rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, .65);
}

.check span {
  display: grid;
  width: 2.5rem;
  aspect-ratio: 1;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
  font-weight: 800;
}

.check strong {
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.8rem);
}

.bottom-nav {
  position: fixed;
  z-index: 30;
  right: var(--gutter);
  bottom: 1.3rem;
  left: var(--gutter);
  display: grid;
  grid-template-columns: auto minmax(12rem, 28rem) auto;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.nav-arrow,
.progress-cluster {
  pointer-events: auto;
}

.nav-arrow {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid rgba(16, 42, 52, .22);
  background: rgba(255, 253, 248, .8);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  transition: transform .2s var(--ease), background .2s;
}

.nav-arrow:hover:not(:disabled) {
  color: var(--white);
  background: var(--red);
  transform: scale(1.06);
}

.nav-arrow:disabled {
  cursor: not-allowed;
  opacity: .28;
}

.progress-cluster {
  display: grid;
  gap: .35rem;
}

.progress-meta {
  display: grid;
  grid-template-columns: 2rem 1fr 2rem;
  gap: .6rem;
  align-items: center;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-align: center;
}

.progress-line {
  height: 1px;
  background: var(--line);
}

.progress-track {
  height: 3px;
  overflow: hidden;
  background: rgba(16, 42, 52, .14);
}

.progress-value {
  display: block;
  width: 4%;
  height: 100%;
  background: var(--red);
  transform-origin: left;
  transition: width .45s var(--ease);
}

.keyboard-hint {
  position: fixed;
  z-index: 30;
  bottom: 1.35rem;
  left: var(--gutter);
  margin: 0;
  color: var(--muted);
  font-size: .66rem;
}

kbd {
  display: inline-grid;
  min-width: 1.35rem;
  height: 1.35rem;
  margin-right: .18rem;
  padding: 0 .28rem;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, .72);
  border-radius: .25rem;
  box-shadow: 0 2px 0 var(--line);
  font-family: inherit;
}

.toc-dialog {
  width: min(92vw, 64rem);
  max-height: min(84dvh, 52rem);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  color: var(--white);
  background: var(--ink);
  border-radius: 1.5rem;
  box-shadow: 0 40px 100px rgba(5, 20, 26, .45);
}

.toc-dialog::backdrop {
  background: rgba(10, 28, 35, .7);
  backdrop-filter: blur(8px);
}

.toc-head {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: start;
  justify-content: space-between;
  padding: 2rem 2rem 1rem;
  background: linear-gradient(var(--ink) 80%, transparent);
}

.toc-head .eyebrow {
  color: var(--amber);
}

.toc-head h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4rem);
}

.dialog-close {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
}

.toc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .15rem 1.5rem;
  padding: .5rem 2rem 2rem;
}

.toc-item {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: .7rem;
  align-items: baseline;
  padding: .68rem 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .11);
  color: rgba(255, 255, 255, .8);
  background: none;
  cursor: pointer;
  text-align: left;
}

.toc-item:hover,
.toc-item[aria-current="true"] {
  color: var(--white);
}

.toc-item[aria-current="true"] .toc-num {
  color: var(--amber);
}

.toc-num {
  color: #de8090;
  font-size: .7rem;
  font-weight: 800;
}

.toc-text {
  overflow: hidden;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toc-note {
  margin: 0;
  padding: 0 2rem 1.5rem;
  color: rgba(255, 255, 255, .55);
  font-size: .72rem;
}

.live-region {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.noscript {
  position: fixed;
  z-index: 100;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  padding: 1rem;
  color: var(--white);
  background: var(--red);
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

@keyframes annotation-preview {
  0%,
  24% {
    visibility: visible;
    opacity: 1;
  }
  42%,
  58% {
    visibility: hidden;
    opacity: 0;
  }
  76%,
  100% {
    visibility: visible;
    opacity: 1;
  }
}

@keyframes annotation-control-nudge {
  0%,
  100% {
    color: var(--ink);
    background: transparent;
    box-shadow: 0 0 0 0 rgba(180, 119, 16, 0);
  }
  36%,
  68% {
    color: var(--ink);
    background: rgba(255, 253, 248, .96);
    box-shadow: 0 0 0 .3rem rgba(180, 119, 16, .18);
  }
}

@keyframes annotation-shortcut-nudge {
  0%,
  100% {
    color: var(--muted);
    background: transparent;
    box-shadow: none;
  }
  36%,
  68% {
    color: var(--ink);
    background: rgba(255, 253, 248, .96);
    box-shadow: 0 0 0 .28rem rgba(180, 119, 16, .16);
  }
}

@keyframes annotation-key-press {
  0%,
  100% {
    box-shadow: 0 .32rem 0 #781124, 0 .55rem 1.2rem rgba(179, 27, 52, .22);
    transform: translateY(0);
  }
  45%,
  62% {
    box-shadow: 0 .08rem 0 #781124, 0 .2rem .55rem rgba(179, 27, 52, .18);
    transform: translateY(.24rem);
  }
}

@keyframes annotation-important-flash {
  0%,
  100% {
    filter: brightness(1);
    opacity: 1;
  }
  45% {
    filter: brightness(1.22) saturate(1.3);
    opacity: .22;
  }
}

@keyframes journey-clickable-pulse {
  0%,
  100% {
    border-color: rgba(16, 42, 52, .24);
  }
  55% {
    border-color: var(--amber);
    box-shadow:
      0 4px 0 rgba(224, 165, 43, .7),
      0 0 0 .38rem rgba(224, 165, 43, .16),
      0 16px 34px rgba(16, 42, 52, .14);
  }
}

@media (max-width: 1280px) {
  .keyboard-hint {
    display: none;
  }
}

@media (max-width: 1040px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .chapter {
    display: none;
  }

  .screenshot-slide,
  .diagram-slide {
    grid-template-columns: minmax(14rem, .72fr) minmax(0, 1.28fr);
    gap: 1.5rem;
  }

  .slide-copy h2 {
    font-size: clamp(2rem, 4.5vw, 3.8rem);
  }

  .concept-row {
    grid-template-columns: 1fr;
    gap: .1rem;
  }

  .decision-board,
  .data-journey,
  .test-loop {
    width: 100%;
  }

  .test-loop {
    gap: 3.6rem 5rem;
    padding-inline: .5rem;
  }

}

@media (max-width: 720px) {
  body {
    overflow: hidden;
  }

  .topbar {
    height: 3.8rem;
  }

  .annotation-coach {
    display: none;
  }

  .brand {
    font-size: .65rem;
  }

  .icon-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .icon-button {
    padding: .5rem;
  }

  .slide {
    align-content: start;
    padding-top: 4.8rem;
    padding-bottom: 5.8rem;
    overflow-y: auto;
  }

  .cover-slide,
  .screenshot-slide,
  .diagram-slide {
    grid-template-columns: 1fr;
  }

  .cover-slide {
    gap: 1rem;
  }

  .cover-slide h1 {
    max-width: 8ch;
    font-size: clamp(3.4rem, 17vw, 5.3rem);
  }

  .cover-slide::after {
    top: 8vh;
    right: -35vmax;
  }

  .cover-route {
    align-self: auto;
    padding: 1rem;
  }

  .ai-disclosure {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    grid-template-columns: 2.7rem 1fr;
    margin-top: 1rem;
    font-size: .9rem;
  }

  .ai-disclosure-mark {
    width: 2.7rem;
  }

  .route-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .route-steps span:nth-child(3)::after {
    display: none;
  }

  .screenshot-slide,
  .diagram-slide {
    gap: 1rem;
  }

  .slide-copy {
    align-self: start;
  }

  .slide-copy h2,
  .diagram-slide h2 {
    max-width: 18ch;
    margin-bottom: .55rem;
    font-size: clamp(2rem, 9vw, 3.2rem);
  }

  .diagram-slide,
  .diagram-slide > * {
    width: 100%;
    min-width: 0;
  }

  .diagram-slide h2 {
    max-width: 11ch;
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .diagram-slide .body-copy {
    font-size: .82rem;
    line-height: 1.45;
  }

  .slide-subtitle,
  .body-copy {
    margin-bottom: .55rem;
  }

  .actions {
    gap: .24rem;
  }

  .actions li {
    grid-template-columns: 1.35rem 1fr;
    gap: .35rem;
    font-size: .72rem;
  }

  .concept-list {
    gap: .2rem;
  }

  .concept-row {
    grid-template-columns: minmax(5rem, .4fr) 1fr;
    gap: .35rem;
    padding-top: .25rem;
  }

  .concept-row dt,
  .concept-row dd,
  .verification {
    font-size: .68rem;
  }

  .why-strip {
    grid-template-columns: 1fr;
    gap: .15rem;
    font-size: .68rem;
  }

  .verification {
    margin-top: .45rem;
    padding: .45rem .55rem;
  }

  .screenshot-shell {
    width: 100%;
  }

  .hotspot {
    width: .72rem;
    height: .72rem;
    border-width: 2px;
    box-shadow: 0 0 0 1px var(--red), 0 0 0 5px rgba(179, 27, 52, .18);
  }

  .hotspot::after {
    display: none;
  }

  .region-highlight {
    border-width: 1.5px;
  }

  .region-highlight em {
    top: .2rem;
    left: .2rem;
    max-width: calc(100% - .4rem);
    padding: .18rem .28rem;
    font-size: .5rem;
  }

  .diagram-stage {
    min-height: 16rem;
  }

  .decision-board {
    grid-template-columns: 1fr;
    gap: .5rem;
  }

  .decision-card {
    min-height: 0;
    padding: .75rem;
  }

  .decision-result {
    grid-column: auto;
    padding: .75rem;
  }

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

  .journey-step {
    min-height: 5.5rem;
  }

  .journey-step::after {
    display: none;
  }

  .journey-detail {
    min-height: 7rem;
    padding: 1rem;
  }

  .test-loop {
    grid-template-columns: 1fr;
    gap: .5rem;
    padding: 0;
  }

  .loop-step {
    min-height: 0;
    padding: .7rem;
  }

  .loop-core {
    position: static;
    width: auto;
    aspect-ratio: auto;
    grid-row: 1;
    border: 0;
    border-radius: .75rem;
    transform: none;
  }

  .field-transition-map {
    gap: .42rem;
  }

  .field-transition-slide .diagram-stage {
    align-self: start;
    min-height: 0;
  }

  .designer-mini,
  .editor-preview {
    padding: .65rem;
  }

  .designer-mini-head {
    align-items: start;
  }

  .designer-field {
    grid-template-columns: 1.5rem 1fr;
    padding: .55rem;
  }

  .designer-field > small {
    display: none;
  }

  .insert-position {
    grid-template-columns: 1.5rem auto;
    margin-left: 1.6rem;
  }

  .insert-position small {
    grid-column: 2;
  }

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

  .containment-map {
    gap: .32rem;
  }

  .project-frame {
    padding: .55rem;
  }

  .project-label {
    margin-bottom: .4rem;
  }

  .instrument-grid {
    grid-template-columns: 1fr;
    gap: .4rem;
  }

  .instrument-block {
    min-width: 0;
    padding: .45rem;
  }

  .instrument-label small,
  .project-label small {
    display: none;
  }

  .field-grid {
    gap: .2rem;
    margin-top: .4rem;
  }

  .field-unit {
    padding: .35rem .2rem;
  }

  .data-bridge {
    min-height: 1.55rem;
    font-size: .48rem;
  }

  .data-bridge span {
    width: 1.25rem;
    height: 1.25rem;
  }

  .record-row {
    grid-template-columns: 2.4rem repeat(2, minmax(0, 1fr));
    gap: .25rem;
    min-height: 1.6rem;
    padding: .18rem 0;
  }

  .state {
    min-height: 7.2rem;
    padding: .7rem;
  }

  .state small {
    font-size: .7rem;
  }

  .checklist-path {
    gap: .25rem;
  }

  .check {
    padding: .6rem .8rem;
  }

  .bottom-nav {
    bottom: .8rem;
    grid-template-columns: auto minmax(8rem, 1fr) auto;
  }

  .toc-list {
    grid-template-columns: 1fr;
  }
}

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

@media print {
  @page {
    size: A4 landscape;
    margin: 0;
  }

  :root {
    color-scheme: light;
  }

  html,
  body {
    width: auto;
    min-height: 0;
    overflow: visible;
    background: var(--canvas);
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .topbar,
  .bottom-nav,
  .keyboard-hint,
  .annotation-coach,
  .toc-dialog,
  .skip-link,
  .live-region {
    display: none !important;
  }

  html.annotations-hidden .region-highlight,
  html.annotations-hidden .hotspot {
    visibility: visible !important;
    opacity: 1 !important;
  }

  .deck,
  .slide-stage {
    width: auto;
    height: auto;
    overflow: visible;
  }

  .deck-grid {
    display: none;
  }

  .slide,
  .slide.is-active,
  .slide.is-before {
    position: relative;
    inset: auto;
    display: grid;
    width: 297mm;
    height: 210mm;
    padding: 17mm 15mm 14mm;
    page-break-after: always;
    break-after: page;
    overflow: hidden;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .slide:last-child {
    page-break-after: auto;
    break-after: auto;
  }

  .cover-slide {
    grid-template-columns: 1.1fr .8fr;
  }

  .screenshot-slide,
  .diagram-slide {
    grid-template-columns: .78fr 1.55fr;
  }

  .slide h1 {
    font-size: 62pt;
  }

  .slide h2 {
    font-size: 34pt;
  }

  .body-copy {
    font-size: 8.6pt;
  }

  .actions li {
    font-size: 7.2pt;
  }

  .concept-row dt,
  .concept-row dd,
  .verification {
    font-size: 6.8pt;
  }

  .screenshot-shell {
    box-shadow: 0 8mm 18mm rgba(16, 42, 52, .14);
  }

  .hotspot::after {
    font-size: 6.5pt;
  }

  .region-highlight em {
    font-size: 5.8pt;
  }

  .instrument-block,
  .slide.is-active .instrument-block,
  .records-frame,
  .slide.is-active .records-frame,
  .designer-mini,
  .slide.is-active .designer-mini,
  .editor-preview,
  .slide.is-active .editor-preview,
  .decision-card,
  .slide.is-active .decision-card,
  .decision-result,
  .slide.is-active .decision-result,
  .loop-step,
  .slide.is-active .loop-step {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .journey-guidance,
  .journey-interaction-hint {
    display: none;
  }

  .journey-step,
  .slide.is-active .journey-step {
    animation: none !important;
  }
}
