@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ruby: #ff6633;
  --ruby-text: #ad3800;
  --tangerine: #f6821f;
  --action-orange: #c45100;
  --mango: #fbad41;
  --blue: #3e74ff;
  --blue-pale: #e0ecff;
  --green: #57cf7d;
  --green-dark: #12523d;
  --green-pale: #e8f8ed;
  --red: #fc3d2e;
  --purple: #941fba;
  --raspberry: #960c3e;
  --ink: #111111;
  --muted: #626262;
  --line: #dfdfdf;
  --surface: #f5f5f3;
  --shadow: 0 18px 55px rgba(14, 11, 8, 0.2);
}

* {
  box-sizing: border-box;
}

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

html {
  background: #171411;
}

body {
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 50%, #38322c 0, #171411 72%),
    #171411;
  font-family: "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.35rem;
  color: #ffffff;
  background: #000000;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.presentation-shell {
  position: relative;
  display: grid;
  width: 100vw;
  height: 100svh;
  place-items: center;
}

.deck {
  position: relative;
  width: min(100vw, calc(100svh * 16 / 9));
  max-height: 100svh;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #ffffff;
  box-shadow: var(--shadow);
  container-type: inline-size;
  isolation: isolate;
}

.slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateX(3%);
  transition:
    opacity 320ms ease,
    transform 420ms cubic-bezier(0.2, 0.75, 0.15, 1),
    visibility 320ms;
}

.slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.slide-background,
.arc-background {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.slide-kicker {
  margin: 0 0 0.55cqw;
  color: var(--ruby-text);
  font-size: clamp(0.62rem, 0.82cqw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.13em;
}

.slide-kicker-light {
  color: var(--ruby-text);
}

/* Slide one */

.slide-overview {
  padding: 3cqw 3.2cqw 2.4cqw;
  color: var(--ink);
}

.overview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.overview-logo {
  width: 18.7cqw;
  max-width: 310px;
  height: auto;
}

.overview-intro {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(15rem, 0.85fr);
  gap: 4cqw;
  align-items: end;
  margin-top: 2.6cqw;
}

.overview-intro h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.15rem, 4.45cqw, 4.85rem);
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.overview-lede {
  max-width: 51ch;
  margin: 1.15cqw 0 0;
  color: #4e4945;
  font-size: clamp(0.82rem, 1.25cqw, 1.35rem);
  line-height: 1.45;
}

.overview-statement {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1cqw;
  align-items: start;
  padding: 1.15cqw 1.25cqw;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 0.9cqw;
  color: #ffffff;
  background: rgba(104, 28, 0, 0.92);
  backdrop-filter: blur(12px);
}

.statement-index {
  display: grid;
  width: 2.1cqw;
  min-width: 1.8rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: var(--ruby-text);
  background: #ffffff;
  font-size: clamp(0.58rem, 0.72cqw, 0.78rem);
  font-weight: 700;
}

.overview-statement p {
  margin: 0;
  font-size: clamp(0.72rem, 1cqw, 1.08rem);
  font-weight: 600;
  line-height: 1.38;
}

.os-map {
  position: absolute;
  right: 3.2cqw;
  bottom: 7.4cqw;
  left: 3.2cqw;
  height: 40.2cqw;
  max-height: 45%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 1.25cqw;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1.1cqw 2.6cqw rgba(104, 40, 0, 0.2);
  backdrop-filter: blur(10px);
}

.os-map-header {
  display: flex;
  min-height: 18%;
  padding: 1cqw 1.25cqw;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e8ddd6;
}

.os-map-header p {
  margin: 0;
  color: var(--ruby-text);
  font-size: clamp(0.55rem, 0.73cqw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.os-map-header span {
  color: #5c5652;
  font-size: clamp(0.52rem, 0.72cqw, 0.78rem);
}

.os-flow {
  display: grid;
  height: 82%;
  padding: 1.2cqw;
  grid-template-columns: 0.85fr 0.16fr 0.88fr 0.16fr 0.94fr 0.16fr 1.18fr 0.16fr 1.72fr;
  gap: 0.32cqw;
  align-items: stretch;
}

.flow-card {
  position: relative;
  display: flex;
  min-width: 0;
  padding: 0.8cqw;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #e4d8d0;
  border-radius: 0.85cqw;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 0.35cqw 1.2cqw rgba(66, 39, 21, 0.07);
}

.slide-overview.is-active .flow-card {
  animation: card-rise 520ms both;
}

.slide-overview.is-active .flow-card:nth-of-type(2) {
  animation-delay: 70ms;
}

.slide-overview.is-active .flow-card:nth-of-type(3) {
  animation-delay: 140ms;
}

.slide-overview.is-active .flow-card:nth-of-type(4) {
  animation-delay: 210ms;
}

.slide-overview.is-active .flow-card:nth-of-type(5) {
  animation-delay: 280ms;
}

.flow-card small,
.flow-card-title small {
  display: block;
  margin-bottom: 0.18cqw;
  color: var(--ruby-text);
  font-size: clamp(0.44rem, 0.55cqw, 0.6rem);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.flow-card strong,
.flow-card-title strong {
  display: block;
  font-size: clamp(0.68rem, 0.95cqw, 1.02rem);
  line-height: 1.2;
}

.flow-card > div > span {
  display: block;
  margin-top: 0.28cqw;
  color: var(--muted);
  font-size: clamp(0.52rem, 0.65cqw, 0.7rem);
  line-height: 1.25;
}

.product-icon {
  width: 4.1cqw;
  max-width: 66px;
  margin-bottom: 0.45cqw;
  overflow: hidden;
}

.product-icon-small {
  width: 2.9cqw;
  max-width: 48px;
  margin: 0;
}

.flow-icon {
  display: grid;
  width: 3.65cqw;
  max-width: 58px;
  margin-bottom: 0.5cqw;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: var(--ruby);
  background: #ffeed8;
}

.flow-icon svg {
  width: 65%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.5;
}

.flow-arrow {
  display: flex;
  align-items: center;
}

.flow-arrow span {
  position: relative;
  display: block;
  width: 100%;
  height: 2px;
  background: var(--tangerine);
}

.flow-arrow span::after {
  position: absolute;
  top: 50%;
  right: -1px;
  width: 0.48cqw;
  height: 0.48cqw;
  border-top: 2px solid var(--tangerine);
  border-right: 2px solid var(--tangerine);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.flow-card-gatekeepers {
  justify-content: space-evenly;
  background: #fff8f0;
}

.flow-card-title {
  display: flex;
  gap: 0.55cqw;
  align-items: center;
  text-align: left;
}

.flow-card-title .flow-icon {
  width: 3.15cqw;
  margin: 0;
}

.gatekeeper-chips {
  display: grid;
  width: 100%;
  gap: 0.35cqw;
  grid-template-columns: 1fr 1fr;
}

.gatekeeper-chips span {
  padding: 0.42cqw 0.2cqw;
  border: 1px solid #f4c696;
  border-radius: 999px;
  color: #8f3d00;
  background: #ffffff;
  font-size: clamp(0.48rem, 0.6cqw, 0.66rem);
  font-weight: 600;
}

.flow-card-services {
  display: grid;
  padding: 0.72cqw;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45cqw;
  background: #fffaf6;
}

.service-item {
  display: flex;
  min-width: 0;
  height: 100%;
  padding: 0.55cqw 0.25cqw;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0.55cqw;
  color: #633516;
  background: #ffffff;
}

.service-item > span {
  margin-top: 0.22cqw;
  font-size: clamp(0.5rem, 0.62cqw, 0.68rem);
  font-weight: 600;
}

.service-icons {
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icons .product-icon + .product-icon {
  margin-left: -0.55cqw;
}

.service-item .flow-icon {
  width: 2.75cqw;
  margin: 0;
}

.overview-footer {
  position: absolute;
  right: 3.2cqw;
  bottom: 2.35cqw;
  left: 3.2cqw;
  display: flex;
  align-items: center;
  color: #3f2b20;
  font-size: clamp(0.54rem, 0.7cqw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.overview-footer i {
  height: 1px;
  margin: 0 0.85cqw;
  flex: 1;
  background: rgba(63, 43, 32, 0.35);
}

/* Slide two */

.slide-deploy {
  padding: 2.55cqw 3cqw 2.1cqw;
  background: #fdfdfc;
}

.arc-background {
  opacity: 0.13;
}

.deploy-header {
  position: relative;
  z-index: 2;
  display: flex;
  height: 15.2%;
  align-items: flex-start;
  justify-content: space-between;
}

.deploy-header h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.85cqw, 3.05rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.deploy-header p:last-child {
  max-width: 63ch;
  margin: 0.48cqw 0 0;
  color: var(--muted);
  font-size: clamp(0.62rem, 0.85cqw, 0.92rem);
  line-height: 1.35;
}

.corner-logo {
  width: 12.6cqw;
  max-width: 205px;
  height: auto;
}

.deploy-workspace {
  position: relative;
  z-index: 1;
  display: grid;
  height: 79.5%;
  grid-template-columns: minmax(15.2rem, 0.86fr) minmax(0, 2.14fr);
  gap: 1.25cqw;
}

.deployment-panel,
.topology-panel {
  min-width: 0;
  min-height: 0;
  border: 1px solid #e4e2df;
  border-radius: 1cqw;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0.55cqw 1.9cqw rgba(39, 30, 22, 0.08);
  backdrop-filter: blur(8px);
}

.deployment-panel {
  display: flex;
  padding: 1.15cqw;
  flex-direction: column;
  overflow: auto;
  scrollbar-width: thin;
}

.mode-row,
.groups-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mode-label,
.mode-badge {
  font-size: clamp(0.5rem, 0.57cqw, 0.62rem);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.mode-label {
  color: #5d5753;
}

.mode-badge {
  padding: 0.34cqw 0.58cqw;
  border-radius: 999px;
  color: #564f4a;
  background: #eae8e6;
}

.mode-badge[data-status="live"] {
  color: var(--green-dark);
  background: var(--green-pale);
}

.mode-badge[data-status="rehearsal"] {
  color: #702d00;
  background: #ffeed8;
}

.mode-badge[data-status="error"] {
  color: #811c16;
  background: #fff0ef;
}

.instance-control {
  margin-top: 0.82cqw;
}

.instance-control label,
.mode-switcher legend,
.groups-heading span {
  color: #2c2927;
  font-size: clamp(0.58rem, 0.7cqw, 0.75rem);
  font-weight: 700;
}

.instance-input-row {
  display: grid;
  margin-top: 0.38cqw;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.35cqw;
}

.instance-input-row input {
  width: 100%;
  min-width: 0;
  padding: 0.65cqw 0.72cqw;
  border: 1px solid #cfcac6;
  border-radius: 0.48cqw;
  color: #211e1c;
  background: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(0.58rem, 0.7cqw, 0.76rem);
}

.instance-input-row input:invalid {
  border-color: var(--red);
}

.icon-button {
  display: grid;
  width: 2.25cqw;
  min-width: 2rem;
  padding: 0;
  place-items: center;
  border: 1px solid #d6d1cd;
  border-radius: 0.48cqw;
  background: #ffffff;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.icon-button:hover {
  border-color: var(--tangerine);
  background: #fff8f0;
}

.icon-button svg {
  width: 1.05cqw;
  min-width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.instance-control > p {
  margin: 0.32cqw 0 0;
  color: #5d5753;
  font-size: clamp(0.5rem, 0.56cqw, 0.61rem);
}

.deploy-button {
  display: flex;
  width: 100%;
  margin-top: 0.78cqw;
  padding: 0.78cqw 0.9cqw;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 0.58cqw;
  color: #ffffff;
  background: var(--action-orange);
  box-shadow: 0 0.35cqw 0.9cqw rgba(246, 130, 31, 0.22);
  font-size: clamp(0.64rem, 0.8cqw, 0.87rem);
  font-weight: 700;
  cursor: pointer;
  transition:
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.deploy-button:hover {
  background: #a94300;
  box-shadow: 0 0.5cqw 1.2cqw rgba(246, 130, 31, 0.3);
  transform: translateY(-1px);
}

.deploy-button:active {
  transform: translateY(0);
}

.deploy-button svg {
  width: 1.15cqw;
  min-width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.window-note {
  display: flex;
  margin-top: 0.58cqw;
  padding: 0.52cqw 0.65cqw;
  flex-direction: column;
  border-left: 3px solid var(--mango);
  color: #615850;
  background: #fff9ef;
}

.window-note strong {
  font-size: clamp(0.5rem, 0.61cqw, 0.66rem);
}

.window-note span {
  margin-top: 0.12cqw;
  font-size: clamp(0.5rem, 0.54cqw, 0.59rem);
  line-height: 1.35;
}

.mode-switcher {
  min-width: 0;
  margin: 0.7cqw 0 0;
  padding: 0;
  border: 0;
}

.segmented-control {
  display: grid;
  margin-top: 0.38cqw;
  padding: 0.19cqw;
  border-radius: 0.52cqw;
  background: #eceae8;
  grid-template-columns: repeat(3, 1fr);
}

.segmented-control button {
  padding: 0.4cqw 0.24cqw;
  border: 0;
  border-radius: 0.38cqw;
  color: #5d5753;
  background: transparent;
  font-size: clamp(0.5rem, 0.61cqw, 0.66rem);
  font-weight: 600;
  cursor: pointer;
}

.segmented-control button[aria-pressed="true"] {
  color: #211e1c;
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(24, 18, 14, 0.11);
}

.observed-groups {
  margin-top: 0.75cqw;
  padding-top: 0.72cqw;
  border-top: 1px solid #e7e3e0;
}

.groups-heading button {
  padding: 0;
  border: 0;
  color: var(--ruby-text);
  background: transparent;
  font-size: clamp(0.5rem, 0.58cqw, 0.64rem);
  font-weight: 600;
  cursor: pointer;
}

.observed-groups ul {
  display: grid;
  margin: 0.42cqw 0 0;
  padding: 0;
  gap: 0.22cqw;
  list-style: none;
}

.observed-groups li {
  display: grid;
  padding: 0.31cqw 0.2cqw;
  grid-template-columns: auto 1fr;
  gap: 0.5cqw;
  align-items: center;
  border-radius: 0.4cqw;
  transition: background 180ms ease;
}

.observed-groups li.is-live {
  background: #f1fbf4;
}

.observed-groups li.is-partial {
  background: #f2f6ff;
}

.group-status {
  width: 0.62cqw;
  min-width: 0.52rem;
  aspect-ratio: 1;
  border: 2px solid #c6c2bf;
  border-radius: 50%;
  background: #ffffff;
}

.is-live > .group-status,
.observed-groups li.is-live .group-status {
  border-color: var(--green);
  background: var(--green);
  box-shadow: inset 0 0 0 2px #ffffff;
}

.observed-groups li.is-partial .group-status {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: inset 0 0 0 2px #ffffff;
}

.observed-groups strong,
.observed-groups small {
  display: block;
}

.observed-groups strong {
  font-size: clamp(0.54rem, 0.61cqw, 0.67rem);
}

.observed-groups small {
  margin-top: 0.06cqw;
  color: #625d59;
  font-size: clamp(0.56rem, 0.58cqw, 0.63rem);
}

.topology-panel {
  position: relative;
  display: flex;
  padding: 1.05cqw 1.18cqw 0.75cqw;
  flex-direction: column;
  overflow: hidden;
}

.topology-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.run-status {
  display: flex;
  gap: 0.58cqw;
  align-items: center;
}

.status-light {
  position: relative;
  display: block;
  width: 0.72cqw;
  min-width: 0.62rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #bdb9b5;
}

.status-light.is-active {
  background: var(--blue);
}

.status-light.is-active::after {
  position: absolute;
  inset: -0.25cqw;
  border: 1px solid var(--blue);
  border-radius: inherit;
  content: "";
  animation: status-pulse 1.8s ease-out infinite;
}

.status-light.is-complete {
  background: var(--green);
}

.status-light.is-complete::after {
  border-color: var(--green);
}

.status-light.is-error {
  background: var(--red);
}

.run-status small,
.run-status strong,
.resource-progress strong,
.resource-progress span {
  display: block;
}

.run-status small {
  color: #5e5955;
  font-size: clamp(0.56rem, 0.58cqw, 0.63rem);
  font-weight: 700;
  letter-spacing: 0.11em;
}

.run-status strong {
  margin-top: 0.09cqw;
  font-size: clamp(0.58rem, 0.72cqw, 0.78rem);
}

.resource-progress {
  text-align: right;
}

.resource-progress strong {
  color: var(--ruby-text);
  font-size: clamp(0.72rem, 0.95cqw, 1.02rem);
}

.resource-progress span {
  color: #5e5955;
  font-size: clamp(0.56rem, 0.58cqw, 0.63rem);
}

.progress-track {
  display: block;
  width: 100%;
  height: 0.24cqw;
  min-height: 3px;
  margin-top: 0.55cqw;
  overflow: hidden;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #e8e5e2;
}

.progress-track::-webkit-progress-bar {
  border-radius: inherit;
  background: #e8e5e2;
}

.progress-track::-webkit-progress-value {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.progress-track::-moz-progress-bar {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.topology-canvas {
  position: relative;
  min-height: 0;
  margin-top: 0.38cqw;
  flex: 1;
}

.topology-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.topology-lines path {
  fill: none;
  stroke: #d8d4d1;
  stroke-dasharray: 7 7;
  stroke-linecap: round;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  transition: stroke 280ms ease;
}

.topology-lines path.is-partial {
  stroke: var(--blue);
}

.topology-lines path.is-live {
  stroke: var(--green);
  stroke-dasharray: 10 5;
  animation: connection-flow 1.8s linear infinite;
}

.resource-node {
  position: absolute;
  top: var(--y);
  left: var(--x);
  z-index: 2;
  display: grid;
  width: 16%;
  min-height: 18%;
  padding: 0.56cqw;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.45cqw;
  align-content: center;
  align-items: center;
  border: 1px solid #d9d5d2;
  border-radius: 0.62cqw;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 0.25cqw 0.75cqw rgba(31, 23, 17, 0.08);
  transition:
    border-color 260ms ease,
    box-shadow 260ms ease,
    background 260ms ease,
    transform 260ms ease;
}

.resource-node-wide {
  width: 19%;
}

.resource-node .node-icon {
  width: 2.55cqw;
  min-width: 1.9rem;
  margin: 0;
  opacity: 0.42;
  filter: grayscale(1);
  transition:
    opacity 260ms ease,
    filter 260ms ease,
    transform 260ms ease;
}

.node-icon-line {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: #88827e;
  background: #f0eeec;
}

.node-icon-line svg {
  width: 66%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.5;
}

.node-copy {
  min-width: 0;
}

.node-copy small,
.node-copy strong,
.node-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-copy small {
  color: #5a5551;
  font-size: clamp(0.56rem, 0.58cqw, 0.63rem);
  font-weight: 700;
  letter-spacing: 0.09em;
}

.node-copy strong {
  margin-top: 0.08cqw;
  font-size: clamp(0.62rem, 0.7cqw, 0.76rem);
}

.node-copy span {
  margin-top: 0.12cqw;
  color: #5e5955;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(0.56rem, 0.58cqw, 0.63rem);
}

.node-state {
  position: absolute;
  right: 0.42cqw;
  bottom: -0.43cqw;
  padding: 0.19cqw 0.38cqw;
  border: 1px solid #d5d1ce;
  border-radius: 999px;
  color: #5d5753;
  background: #ffffff;
  font-size: clamp(0.54rem, 0.56cqw, 0.6rem);
  font-weight: 600;
}

.resource-node.is-partial {
  border-color: var(--blue);
  background: #f6f8ff;
  box-shadow: 0 0.35cqw 1cqw rgba(62, 116, 255, 0.16);
}

.resource-node.is-partial .node-icon {
  opacity: 0.85;
  filter: grayscale(0.15);
}

.resource-node.is-partial .node-state {
  border-color: #a8cbff;
  color: #1640a8;
  background: var(--blue-pale);
}

.resource-node.is-live {
  border-color: var(--green);
  background: #f5fcf7;
  box-shadow: 0 0.42cqw 1.15cqw rgba(87, 207, 125, 0.2);
  transform: translateY(-2px);
}

.resource-node.is-live .node-icon {
  opacity: 1;
  filter: none;
  transform: scale(1.04);
}

.resource-node.is-live .node-state {
  border-color: #9be2b1;
  color: var(--green-dark);
  background: var(--green-pale);
}

.resource-node.is-error {
  border-color: var(--red);
  background: #fff6f5;
}

.resource-node.is-error .node-state {
  color: #861d16;
  background: #ffefed;
}

.resource-node.is-conceptual {
  border-style: dashed;
  border-color: #c5a8d4;
  background: #fcf8fd;
}

.resource-node.is-conceptual .node-icon {
  color: var(--purple);
  background: #f2d6f4;
  opacity: 1;
  filter: none;
}

.resource-node.is-conceptual .node-state {
  border-color: #dfc6e7;
  color: #6e2a80;
  background: #fbf0fc;
}

.topology-legend {
  display: flex;
  padding-top: 0.42cqw;
  gap: 1cqw;
  justify-content: flex-end;
  border-top: 1px solid #ece9e7;
  color: #5c5652;
  font-size: clamp(0.54rem, 0.56cqw, 0.6rem);
}

.topology-legend span {
  display: flex;
  gap: 0.3cqw;
  align-items: center;
}

.topology-legend i {
  display: block;
  width: 0.48cqw;
  min-width: 0.42rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #bdb9b5;
}

.topology-legend .legend-partial {
  background: var(--blue);
}

.topology-legend .legend-live {
  background: var(--green);
}

.bottom-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.55cqw;
  min-height: 5px;
}

/* Presentation controls */

.deck-controls {
  position: fixed;
  z-index: 20;
  bottom: max(0.85rem, env(safe-area-inset-bottom));
  left: 50%;
  display: flex;
  padding: 0.42rem 0.5rem;
  gap: 0.22rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(20, 17, 15, 0.76);
  box-shadow: 0 9px 30px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(13px);
  transform: translateX(-50%);
  transition: opacity 180ms ease;
}

.deck-controls > button {
  display: grid;
  width: 2rem;
  height: 2rem;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: transparent;
  cursor: pointer;
}

.deck-controls > button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
}

.deck-controls > button:disabled {
  opacity: 0.34;
  cursor: default;
}

.deck-controls svg {
  width: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.slide-dots {
  display: flex;
  margin-left: 0.18rem;
  gap: 0.35rem;
}

.slide-dots button {
  position: relative;
  width: 1.15rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition:
    width 180ms ease,
    background 180ms ease;
}

.slide-dots button::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  content: "";
  transform: translate(-50%, -50%);
  transition:
    width 180ms ease,
    background 180ms ease;
}

.slide-dots button.is-current {
  width: 1.45rem;
}

.slide-dots button.is-current::after {
  width: 1.15rem;
  background: var(--mango);
}

.slide-count {
  min-width: 2.45rem;
  margin: 0 0.2rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.7rem;
  text-align: center;
}

.slide-count strong {
  color: #ffffff;
}

.toast {
  position: fixed;
  z-index: 50;
  top: 1.1rem;
  left: 50%;
  max-width: min(90vw, 34rem);
  padding: 0.72rem 1rem;
  border-radius: 0.55rem;
  color: #ffffff;
  background: rgba(16, 14, 12, 0.9);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
  font-size: 0.82rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -1rem);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.screen-reader-status {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(0.9cqw);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes status-pulse {
  0% {
    opacity: 0.7;
    transform: scale(0.65);
  }
  75%,
  100% {
    opacity: 0;
    transform: scale(1.65);
  }
}

@keyframes connection-flow {
  to {
    stroke-dashoffset: -30;
  }
}

@media (max-aspect-ratio: 4 / 3) and (min-width: 821px) {
  .deck-controls {
    bottom: 0.55rem;
  }
}

@media (max-height: 520px) and (min-width: 821px) and (min-aspect-ratio: 2 / 1) {
  body {
    overflow: auto;
    background: #ffffff;
  }

  .presentation-shell {
    display: block;
    width: 100%;
    height: auto;
    min-height: 100svh;
  }

  .deck {
    width: 100%;
    max-height: none;
    overflow: visible;
    aspect-ratio: auto;
    box-shadow: none;
  }

  .slide {
    display: none;
    position: relative;
    inset: auto;
    width: 100%;
    height: 56.25vw;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .slide.is-active {
    display: block;
  }
}

@media (max-width: 820px) {
  body {
    overflow: auto;
    background: #ffffff;
  }

  .presentation-shell {
    display: block;
    width: 100%;
    height: auto;
    min-height: 100svh;
  }

  .deck {
    width: 100%;
    max-height: none;
    overflow: visible;
    aspect-ratio: auto;
    box-shadow: none;
    container-type: normal;
  }

  .slide {
    display: none;
    position: relative;
    inset: auto;
    min-height: 100svh;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .slide.is-active {
    display: block;
  }

  .slide-overview {
    padding: 1.5rem 1.15rem 6rem;
  }

  .overview-logo {
    width: 12.5rem;
  }

  .overview-intro {
    display: block;
    margin-top: 3rem;
  }

  .overview-intro h1 {
    font-size: clamp(2.7rem, 13vw, 4.4rem);
  }

  .overview-lede {
    margin-top: 1.2rem;
    font-size: 1rem;
  }

  .overview-statement {
    margin-top: 1.5rem;
    padding: 1rem;
    gap: 0.75rem;
    border-radius: 0.75rem;
  }

  .statement-index {
    width: 2rem;
  }

  .overview-statement p {
    font-size: 0.9rem;
  }

  .os-map {
    position: relative;
    inset: auto;
    height: auto;
    max-height: none;
    min-height: 0;
    margin-top: 2rem;
    border-radius: 0.9rem;
  }

  .os-map-header {
    display: block;
    padding: 0.9rem;
  }

  .os-map-header p {
    font-size: 0.68rem;
  }

  .os-map-header span {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.7rem;
    line-height: 1.4;
  }

  .os-flow {
    display: grid;
    height: auto;
    padding: 0.9rem;
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .flow-card {
    min-height: 8.2rem;
    padding: 1rem;
    border-radius: 0.75rem;
  }

  .flow-card small,
  .flow-card-title small {
    font-size: 0.6rem;
  }

  .flow-card strong,
  .flow-card-title strong {
    font-size: 0.95rem;
  }

  .flow-card > div > span,
  .gatekeeper-chips span,
  .service-item > span {
    font-size: 0.68rem;
  }

  .product-icon,
  .flow-icon {
    width: 3.8rem;
  }

  .flow-arrow {
    height: 1.5rem;
    justify-content: center;
  }

  .flow-arrow span {
    width: 2px;
    height: 100%;
  }

  .flow-arrow span::after {
    top: auto;
    right: 50%;
    bottom: 0;
    width: 0.42rem;
    height: 0.42rem;
    border: 0;
    border-right: 2px solid var(--tangerine);
    border-bottom: 2px solid var(--tangerine);
    transform: translateX(50%) rotate(45deg);
  }

  .flow-card-title {
    gap: 0.6rem;
  }

  .flow-card-title .flow-icon {
    width: 3rem;
  }

  .gatekeeper-chips {
    margin-top: 0.75rem;
    gap: 0.5rem;
  }

  .gatekeeper-chips span {
    padding: 0.45rem;
  }

  .flow-card-services {
    min-height: 10rem;
    padding: 0.7rem;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }

  .service-item {
    padding: 0.6rem 0.25rem;
    border-radius: 0.5rem;
  }

  .product-icon-small,
  .service-item .flow-icon {
    width: 2.7rem;
  }

  .overview-footer {
    position: relative;
    inset: auto;
    margin-top: 1.3rem;
    font-size: 0.55rem;
  }

  .overview-footer i {
    margin: 0 0.4rem;
  }

  .slide-deploy {
    padding: 1.35rem 1rem 6rem;
  }

  .arc-background {
    position: fixed;
    opacity: 0.09;
  }

  .deploy-header {
    display: block;
    height: auto;
    padding-right: 5.5rem;
  }

  .deploy-header h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .deploy-header p:last-child {
    margin-top: 0.6rem;
    font-size: 0.82rem;
  }

  .corner-logo {
    position: absolute;
    top: 0;
    right: 0;
    width: 5rem;
  }

  .deploy-workspace {
    display: grid;
    height: auto;
    margin-top: 1.5rem;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .deployment-panel,
  .topology-panel {
    border-radius: 0.9rem;
  }

  .deployment-panel {
    padding: 1rem;
    overflow: visible;
  }

  .mode-label,
  .mode-badge,
  .instance-control label,
  .mode-switcher legend,
  .groups-heading span {
    font-size: 0.68rem;
  }

  .mode-badge {
    padding: 0.32rem 0.55rem;
  }

  .instance-control {
    margin-top: 0.85rem;
  }

  .instance-input-row {
    margin-top: 0.35rem;
    gap: 0.35rem;
  }

  .instance-input-row input {
    padding: 0.72rem;
    border-radius: 0.45rem;
    font-size: 0.72rem;
  }

  .icon-button {
    width: 2.5rem;
    border-radius: 0.45rem;
  }

  .icon-button svg {
    width: 1.1rem;
  }

  .instance-control > p,
  .window-note span,
  .groups-heading button,
  .observed-groups small {
    font-size: 0.62rem;
  }

  .deploy-button {
    margin-top: 0.8rem;
    padding: 0.82rem;
    border-radius: 0.5rem;
    font-size: 0.82rem;
  }

  .deploy-button svg {
    width: 1.1rem;
  }

  .window-note {
    margin-top: 0.6rem;
    padding: 0.6rem 0.7rem;
  }

  .window-note strong,
  .segmented-control button,
  .observed-groups strong {
    font-size: 0.68rem;
  }

  .mode-switcher,
  .observed-groups {
    margin-top: 0.85rem;
  }

  .segmented-control {
    margin-top: 0.35rem;
    padding: 0.2rem;
  }

  .segmented-control button {
    padding: 0.48rem 0.3rem;
    border-radius: 0.38rem;
  }

  .observed-groups {
    padding-top: 0.8rem;
  }

  .observed-groups ul {
    margin-top: 0.45rem;
    gap: 0.25rem;
  }

  .observed-groups li {
    padding: 0.4rem 0.3rem;
    gap: 0.55rem;
  }

  .group-status {
    width: 0.65rem;
  }

  .topology-panel {
    padding: 1rem;
  }

  .run-status {
    gap: 0.5rem;
  }

  .status-light {
    width: 0.65rem;
  }

  .run-status small,
  .resource-progress span {
    font-size: 0.6rem;
  }

  .run-status strong {
    font-size: 0.7rem;
  }

  .resource-progress strong {
    font-size: 0.9rem;
  }

  .progress-track {
    height: 4px;
    margin-top: 0.6rem;
  }

  .topology-canvas {
    display: grid;
    height: auto;
    margin-top: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .topology-lines {
    display: none;
  }

  .resource-node,
  .resource-node-wide {
    position: relative;
    inset: auto;
    width: auto;
    min-height: 6.1rem;
    padding: 0.65rem;
    gap: 0.45rem;
    border-radius: 0.6rem;
  }

  .resource-node .node-icon {
    width: 2.6rem;
  }

  .node-copy small {
    font-size: 0.58rem;
  }

  .node-copy strong {
    font-size: 0.75rem;
  }

  .node-copy span,
  .node-state {
    font-size: 0.58rem;
  }

  .node-state {
    right: 0.45rem;
    bottom: -0.45rem;
    padding: 0.22rem 0.4rem;
  }

  .topology-legend {
    margin-top: 1.1rem;
    padding-top: 0.7rem;
    gap: 0.7rem;
    justify-content: flex-start;
    font-size: 0.6rem;
  }

  .topology-legend span {
    gap: 0.28rem;
  }

  .topology-legend i {
    width: 0.48rem;
  }

  .bottom-bar {
    position: fixed;
    height: 5px;
  }

  .deck-controls {
    bottom: max(0.6rem, env(safe-area-inset-bottom));
  }
}

@media (max-width: 460px) {
  .overview-header .slide-kicker {
    display: none;
  }

  .overview-logo {
    width: 10.8rem;
  }

  .flow-card-services,
  .topology-canvas {
    grid-template-columns: 1fr;
  }

  .service-item {
    min-height: 6.5rem;
  }

  .deploy-header {
    padding-right: 0;
    padding-top: 3rem;
  }

  .corner-logo {
    width: 6.5rem;
  }

  .topology-toolbar {
    gap: 0.8rem;
    align-items: flex-start;
  }

  .resource-node,
  .resource-node-wide {
    min-height: 5.7rem;
  }
}

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

@media print {
  body {
    overflow: visible;
    background: #ffffff;
  }

  .presentation-shell,
  .deck {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
    box-shadow: none;
  }

  .deck {
    aspect-ratio: auto;
  }

  .slide,
  .slide.is-active {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    break-after: page;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .deck-controls,
  .toast {
    display: none;
  }
}
