:root {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  color: #f5f5ef;
  background: #091014;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

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

body { overflow: hidden; }

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

button { font: inherit; cursor: pointer; }

a { color: inherit; }

button:focus-visible, a:focus-visible {
  outline: 3px solid #83c9ff;
  outline-offset: 4px;
}

[hidden] { display: none !important; }

::selection { color: #112026; background: #b9edaa; }

.deck {
  display: grid;
  grid-template-rows: 42px minmax(0, 1fr) 44px;
  gap: 14px;
  width: 100%;
  height: 100svh;
  padding: 16px 22px 14px;
}

.deck-header, .deck-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.deck-header { gap: 20px; }

.deck-brand {
  display: inline-flex;
  gap: 17px;
  align-items: center;
  flex: 0 0 auto;
  color: #b1bfc1;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.deck-brand:hover { color: #fff; }

.deck-brand__mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  color: #0a1518;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.08em;
  border-radius: 11px;
  background: #c7e9b7;
}

.deck-header__label {
  color: #6f8588;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-align: center;
  white-space: nowrap;
}

.deck-header__label span { margin: 0 11px; color: #3a5559; }

.fullscreen-button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  flex: 0 0 auto;
  padding: 9px 12px;
  color: #c4d1d0;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #26393e;
  border-radius: 10px;
  background: #102025;
}

.fullscreen-button:hover { background: #1a3035; }

.deck-stage { min-width: 0; min-height: 0; }

.slide {
  --slide-bg: #112125;
  --slide-ink: #f4f7f0;
  --slide-muted: #a9bbb6;
  --slide-accent: #c7e9b7;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: clamp(26px, 3.5vw, 58px) clamp(30px, 4.4vw, 76px);
  color: var(--slide-ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: var(--slide-bg);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.24);
}

.slide::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.7;
  background: radial-gradient(circle at 96% 4%, var(--slide-accent) 0, transparent 34%);
  mix-blend-mode: soft-light;
}

.slide > * { position: relative; z-index: 1; }

.slide:focus { outline: none; }

.slide--intro {
  --slide-bg: #132427;
  --slide-accent: #b9edaa;
  background: radial-gradient(circle at 12% 110%, #1f4140, transparent 55%), #132427;
}

.slide--vla {
  --slide-bg: #ecebe4;
  --slide-ink: #19272e;
  --slide-muted: #536266;
  --slide-accent: #526d70;
}

.slide--mars {
  --slide-bg: #eee5d9;
  --slide-ink: #282321;
  --slide-muted: #675f59;
  --slide-accent: #b77b5a;
}

.slide--amr {
  --slide-bg: #172d38;
  --slide-ink: #f0f6f1;
  --slide-muted: #b7c8c7;
  --slide-accent: #a4dfbd;
  background: radial-gradient(circle at 100% 0, #274e5a, transparent 48%), #172d38;
}

.slide--builds {
  --slide-bg: #dce8e3;
  --slide-ink: #172c30;
  --slide-muted: #526a69;
  --slide-accent: #23645b;
}

.slide__topline {
  display: flex;
  gap: 16px;
  align-items: center;
  width: 100%;
  color: var(--slide-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.slide__number { color: var(--slide-accent); }

.slide__rule { width: 28px; height: 1px; background: currentColor; opacity: 0.55; }

.slide__grid { display: grid; height: 100%; min-height: 0; }

.slide__grid--intro { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(26px, 5vw, 80px); }

.slide__content { display: flex; flex-direction: column; min-height: 0; }

.intro-name {
  margin: auto 0 11px;
  color: var(--slide-accent);
  font-size: clamp(15px, 1.5vw, 21px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.slide h1, .slide h2 { font-weight: 650; letter-spacing: -0.066em; }

.slide h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(48px, 5.45vw, 88px);
  line-height: 0.99;
}

.slide h1 em, .slide h2 em { color: var(--slide-accent); font-style: normal; }

.slide__lead {
  max-width: 570px;
  margin: 24px 0 0;
  color: var(--slide-muted);
  font-size: clamp(15px, 1.34vw, 19px);
  line-height: 1.52;
}

.intro-credentials {
  display: grid;
  gap: 6px;
  max-width: 590px;
  margin-top: 19px;
  color: #d5e6df;
  font-size: clamp(10px, 0.94vw, 13px);
  line-height: 1.35;
}

.intro-credentials b {
  margin-right: 7px;
  color: var(--slide-accent);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.intro-capabilities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  max-width: 560px;
  margin-top: auto;
  padding: 24px 0 16px;
  color: #d7e5df;
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 630;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
}

.intro-location {
  margin: 0;
  color: #91a9a5;
  font-size: 12px;
  font-weight: 550;
}

.intro-location span { margin-right: 6px; color: var(--slide-accent); }

.intro-location a { color: #d1ead2; font-weight: 700; text-decoration: none; }

.intro-location a:hover { text-decoration: underline; text-underline-offset: 3px; }

.intro-visual { position: relative; min-width: 0; min-height: 0; overflow: hidden; border-radius: 13px; background: #879492; }

.intro-visual::after {
  position: absolute;
  inset: 35% 0 0;
  content: "";
  background: linear-gradient(transparent, rgba(8, 24, 27, 0.84));
}

.intro-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 44% center; }

.intro-visual__label { position: absolute; z-index: 1; right: 30px; bottom: 30px; left: 30px; display: grid; gap: 8px; }

.intro-visual__label span { color: #d2e2da; font-size: 10px; font-weight: 800; letter-spacing: 0.18em; }

.intro-visual__label strong { font-size: clamp(24px, 2.6vw, 39px); font-weight: 650; line-height: 1.06; letter-spacing: -0.045em; }

.slide:not(.slide--intro) { display: flex; flex-direction: column; }

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 78px);
  flex: 1;
  min-height: 0;
  padding-top: clamp(28px, 4.1vh, 48px);
}

.project-layout--image-first { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr); }

.project-story { display: flex; flex-direction: column; min-width: 0; min-height: 0; }

.project-story__eyebrow {
  margin: 0 0 13px;
  color: var(--slide-accent);
  font-size: clamp(10px, 0.95vw, 13px);
  font-weight: 800;
  letter-spacing: 0.13em;
}

.project-story__eyebrow span { margin: 0 4px; opacity: 0.55; }

.project-story h2 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(42px, 4.7vw, 72px);
  line-height: 0.98;
}

.project-story__summary {
  max-width: 580px;
  margin: 19px 0 0;
  color: var(--slide-muted);
  font-size: clamp(15px, 1.27vw, 18px);
  line-height: 1.48;
}

.story-points { display: grid; gap: 0; max-width: 620px; margin-top: auto; padding-top: 20px; }

.story-points div { display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding: 9px 0; border-top: 1px solid currentColor; border-color: color-mix(in srgb, var(--slide-ink) 18%, transparent); }

.story-points span { padding-top: 3px; color: var(--slide-accent); font-size: 10px; font-weight: 800; }

.story-points p { margin: 0; font-size: clamp(12px, 1.05vw, 15px); font-weight: 570; line-height: 1.35; }

.project-story__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  font-size: 11px;
  border-top: 1px solid color-mix(in srgb, var(--slide-ink) 30%, transparent);
}

.project-story__footer span { color: var(--slide-muted); }

.project-story__footer b { display: block; margin-bottom: 5px; color: var(--slide-accent); font-size: 9px; letter-spacing: 0.13em; }

.project-story__footer a { font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.project-story__footer a:hover { opacity: 0.7; }

.project-visual {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 13px;
  background: #182a31;
}

.project-visual__image { flex: 1; min-height: 0; overflow: hidden; background: #17232c; }

.project-visual__image img { display: block; width: 100%; height: 100%; object-fit: cover; }

.project-visual--vla img { object-fit: cover; }

.project-visual--mars img { object-position: 42% center; }

.project-visual--amr .project-visual__image { background: #273844; }

.project-visual--amr img { object-fit: cover; }

.project-visual__caption {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 10px 15px 10px 20px;
  color: #eaf4ec;
  background: #183038;
}

.project-visual__caption span { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; }

.project-visual__caption button {
  flex: 0 0 auto;
  padding: 10px 13px;
  color: #142126;
  font-size: 11px;
  font-weight: 800;
  border: 0;
  border-radius: 8px;
  background: #d3efc7;
}

.project-visual__caption button:hover { background: #fff; }

.slide--mars .project-visual__caption { background: #3b2924; }

.slide--mars .project-visual__caption button { color: #3b2924; background: #f5c9a7; }

.builds-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 78px);
  flex: 1;
  min-height: 0;
  padding-top: clamp(28px, 4.1vh, 48px);
}

.builds-story { display: flex; flex-direction: column; min-width: 0; min-height: 0; }

.builds-story h2 { max-width: 560px; margin: 0; font-size: clamp(46px, 4.9vw, 76px); line-height: 0.98; }

.builds-story__links { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: auto; padding-top: 22px; border-top: 1px solid #9fb8b0; }

.builds-story__links a { font-size: 12px; font-weight: 800; text-decoration: none; }

.builds-story__links a:hover { text-decoration: underline; text-underline-offset: 4px; }

.builds-cards { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; min-height: 0; }

.build-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: clamp(18px, 2vw, 29px);
  border: 1px solid rgba(12, 37, 41, 0.17);
  border-radius: 13px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.build-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(19, 56, 52, 0.14); }

.build-card--swift { color: #f2faf1; background: #17333b; }

.build-card--ros { color: #21373b; background: #f3f2e9; }

.build-card__top { display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 10px; font-weight: 800; letter-spacing: 0.14em; }

.build-card__top b { font-size: inherit; }

.build-card__top span { opacity: 0.66; }

.build-card strong { margin-top: 17px; font-size: clamp(24px, 2.4vw, 35px); letter-spacing: -0.055em; }

.build-card p { max-width: 580px; margin: 6px 0 12px; font-size: clamp(12px, 1.05vw, 15px); line-height: 1.42; opacity: 0.78; }

.build-card__proof { margin-top: auto; padding-top: 12px; font-size: 10px; font-weight: 780; letter-spacing: 0.04em; border-top: 1px solid currentColor; opacity: 0.65; }

.deck-footer { gap: 20px; }

.deck-footer__hint { min-width: 210px; color: #71898b; font-size: 11px; white-space: nowrap; }

.deck-footer__hint span { margin: 0 6px; }

.slide-picker { display: flex; gap: 7px; justify-content: center; }

.slide-picker button { display: flex; flex-direction: column; gap: 6px; min-width: 42px; padding: 4px 0; color: #668084; font-size: 10px; font-weight: 760; border: 0; background: none; }

.slide-picker button:hover, .slide-picker button[aria-current="true"] { color: #d6ebdf; }

.slide-picker i { display: block; width: 100%; height: 2px; background: #284147; }

.slide-picker button[aria-current="true"] i { background: #c1e8af; }

.deck-footer__controls { display: flex; gap: 13px; align-items: center; justify-content: flex-end; min-width: 210px; }

.deck-footer__controls button { display: grid; width: 36px; height: 36px; place-items: center; color: #d2e4df; font-size: 18px; border: 1px solid #29434a; border-radius: 9px; background: #112229; }

.deck-footer__controls button:hover:not(:disabled) { background: #1c3740; }

.deck-footer__controls button:disabled { opacity: 0.38; cursor: default; }

.deck-footer__controls span { color: #b6cbc4; font-size: 11px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }

.demo-dialog { width: min(1040px, calc(100vw - 32px)); max-height: calc(100svh - 32px); overflow: hidden; padding: 0; color: #fff; border: 1px solid #40555d; border-radius: 13px; background: #081114; box-shadow: 0 30px 90px #000b; }

.demo-dialog::backdrop { background: rgba(2, 8, 10, 0.83); backdrop-filter: blur(8px); }

.demo-dialog__bar { display: flex; gap: 15px; align-items: center; justify-content: space-between; padding: 12px 17px; }

.demo-dialog__bar strong { font-size: 13px; }

.demo-dialog__bar button { padding: 7px 10px; color: #d5e2df; border: 1px solid #365158; border-radius: 7px; background: #15292f; }

.demo-dialog video { display: block; width: 100%; max-height: calc(100svh - 105px); background: #000; }

@media (max-width: 920px) {
  .slide { overflow-y: auto; }
  .slide__grid--intro { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 25px; }
  .slide h1 { font-size: clamp(42px, 5.5vw, 65px); }
  .project-layout, .project-layout--image-first { gap: 24px; }
  .project-story h2 { font-size: clamp(38px, 4.8vw, 58px); }
  .builds-story h2 { font-size: clamp(40px, 5vw, 62px); }
  .project-visual__caption span { max-width: 165px; line-height: 1.4; }
}

@media (max-width: 700px) {
  .deck { grid-template-rows: 38px minmax(0, 1fr) 50px; gap: 9px; padding: 9px 9px calc(9px + env(safe-area-inset-bottom)); }
  .deck-header { gap: 8px; padding: 0 4px; }
  .deck-brand { gap: 9px; font-size: 11px; }
  .deck-brand__mark { width: 35px; height: 35px; }
  .deck-header__label { display: none; }
  .fullscreen-button { padding: 8px; }
  .fullscreen-button span { display: none; }
  .slide { padding: 25px 22px; border-radius: 12px; }
  .slide__topline { flex-wrap: wrap; gap: 7px 12px; line-height: 1.4; white-space: normal; }
  .slide__rule { display: none; }
  .slide__grid--intro, .project-layout, .project-layout--image-first, .builds-layout { display: flex; flex-direction: column; gap: 28px; height: auto; }
  .intro-name { margin-top: 42px; }
  .slide h1 { font-size: clamp(44px, 10vw, 70px); }
  .slide__lead { font-size: 15px; }
  .intro-credentials { font-size: 12px; }
  .intro-capabilities { margin-top: 35px; }
  .intro-visual { min-height: 290px; }
  .intro-visual img { position: absolute; inset: 0; }
  .project-layout, .builds-layout { flex: 0 0 auto; min-height: auto; padding-top: 34px; }
  .project-layout--image-first .project-story { order: -1; }
  .project-story { flex: 0 0 auto; min-height: auto; }
  .project-story h2 { font-size: clamp(43px, 9vw, 65px); }
  .project-story__summary { font-size: 16px; }
  .story-points { margin-top: 33px; }
  .story-points p { font-size: 14px; }
  .project-visual { flex: 0 0 auto; min-height: 280px; }
  .project-visual__image { min-height: 225px; }
  .builds-story { flex: 0 0 auto; min-height: auto; }
  .builds-story h2 { font-size: clamp(43px, 9vw, 65px); }
  .builds-story__links { margin-top: 30px; }
  .builds-cards { display: flex; flex-direction: column; gap: 14px; }
  .build-card { min-height: 250px; padding: 23px; }
  .build-card strong { font-size: 29px; }
  .build-card p { font-size: 14px; }
  .deck-footer__hint { display: none; }
  .slide-picker { gap: 5px; }
  .slide-picker button { min-width: 30px; }
  .deck-footer__controls { gap: 7px; min-width: auto; }
  .deck-footer__controls button { width: 34px; height: 34px; }
}

@media (max-height: 650px) and (min-width: 701px) {
  .slide { padding-top: 22px; padding-bottom: 22px; }
  .slide h1 { font-size: clamp(44px, 4.8vw, 70px); }
  .project-layout { padding-top: 20px; }
  .project-story h2 { font-size: clamp(38px, 4vw, 60px); }
  .project-story__summary { margin-top: 10px; }
  .story-points { padding-top: 8px; }
  .story-points div { padding: 6px 0; }
  .project-story__footer { margin-top: 7px; padding-top: 8px; }
  .builds-layout { padding-top: 18px; }
  .builds-story h2 { font-size: clamp(38px, 4.2vw, 61px); }
  .build-card { padding: 16px 20px; }
  .build-card strong { margin-top: 8px; }
  .build-card p { margin-bottom: 5px; }
}

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

/* SUI shares the deck controls and adds a mission architecture overview. */
.slide--sui {
  --slide-bg: #211c18;
  --slide-accent: #efb58d;
  --slide-muted: #c1b2a2;
  display: flex;
  flex-direction: column;
  background: linear-gradient(90deg, #211c18f5, #211c18bb), url("/assets/studio-wallpaper-20261005.webp") right / cover;
}
.sui-slide-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(24px, 4vw, 60px); flex: 1; min-height: 0; padding-top: 26px; }
.slide--sui .project-story h2 { font-size: clamp(40px, 4.8vw, 70px); }
.slide--sui .project-story__summary { font-size: clamp(13px, 1.2vw, 17px); }
.slide--sui .story-points { margin-top: 15px; }
.slide--sui .story-points p { font-size: clamp(11px, 1vw, 14px); }
.slide--sui .project-story__footer { border-top-color: #94745266; }
.sui-mission-visual { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 22px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; border: 1px solid #a27d594a; border-radius: 12px; background: #141412bd; backdrop-filter: blur(16px); }
.sui-mission-visual__top { display: flex; justify-content: space-between; gap: 12px; color: #b59b81; font-size: 7px; letter-spacing: 0.08em; }
.sui-mission-visual__wordmark { margin: 18px 0; font-size: clamp(50px, 5vw, 75px); font-weight: 500; line-height: 1; letter-spacing: -0.09em; }
.sui-mission-visual__wordmark > span { color: #efb58d; }
.mission-node { padding: 13px 14px; border: 1px solid #a27d593b; border-radius: 7px; background: #c98d510a; }
.mission-node > span { display: block; color: #b0957b; font-size: 7px; letter-spacing: 0.09em; }
.mission-node > strong { display: block; margin-top: 6px; color: #efd5bb; font-size: 13px; font-weight: 500; }
.mission-node > p { margin: 4px 0 0; color: #ada193; font-size: 9px; }
.mission-node--workers { border-color: #d8a16c66; background: #d8a16c10; }
.mission-connector { padding: 4px; color: #957657; font-size: 12px; text-align: center; }
.sui-mission-visual__command { margin-top: auto; padding-top: 16px; color: #d6b89a; font-size: 11px; }

@media (max-width: 920px) {
  .sui-slide-layout { gap: 22px; }
  .sui-mission-visual { padding: 16px; }
  .sui-mission-visual__top { flex-wrap: wrap; font-size: 6px; }
}
@media (max-width: 700px) {
  .sui-slide-layout { display: flex; flex-direction: column; gap: 28px; min-height: auto; padding-top: 34px; }
  .slide--sui .project-story h2 { font-size: clamp(40px, 9vw, 64px); }
  .slide--sui .project-story__summary { font-size: 15px; }
  .slide--sui .story-points p { font-size: 13px; }
  .sui-mission-visual { flex: 0 0 auto; min-height: 480px; padding: 22px; }
  .mission-node { padding: 16px; }
  .mission-node > strong { font-size: 14px; }
  .sui-mission-visual__wordmark { font-size: 65px; }
  .deck-footer { gap: 8px; }
  .slide-picker { gap: 4px; }
  .slide-picker button { min-width: 24px; }
}
@media (min-width: 701px) and (max-height: 650px) {
  .sui-slide-layout { padding-top: 17px; }
  .slide--sui .project-story h2 { font-size: clamp(35px, 4vw, 55px); }
  .sui-mission-visual__wordmark { margin: 10px 0; font-size: 50px; }
  .mission-node { padding: 9px 12px; }
  .mission-node > strong { margin-top: 3px; font-size: 12px; }
  .mission-node > p { margin-top: 3px; font-size: 8px; }
  .mission-connector { padding: 2px; }
}
