:root {
  --htw-orange: #f59c00;
  --ink: #1f2328;
  --muted: #5f6b76;
  --line: #d8dee4;
  --soft: #f6f8fa;
  --paper: #ffffff;
  --accent: #0f766e;
  --warn: #9a3412;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #eceff3;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

a {
  color: #075985;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 96px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.logo {
  height: 76px;
  max-width: 390px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.funding-note {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 14px 18px;
  margin-bottom: 24px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.funding-logo {
  width: 62px;
  height: auto;
  flex: 0 0 auto;
}

.funding-note p {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}

.progress-summary {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid var(--line);
  padding: 14px 26px;
  margin-bottom: 28px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.progress-summary__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.progress-summary h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.progress-summary__value {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.progress-bar {
  position: relative;
  width: 100%;
  height: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e9eef3;
}

.progress-bar__fill {
  position: absolute;
  top: 0;
  height: 100%;
}

.progress-bar__fill--done {
  left: 0;
  width: var(--done);
  background: linear-gradient(90deg, #1d9a72 0%, #2fbf71 100%);
}

.progress-bar__fill--progress {
  left: var(--done);
  width: var(--progress);
  background: linear-gradient(90deg, #e2a600 0%, #f3c44c 100%);
}

.progress-bar__fill--planned {
  left: calc(var(--done) + var(--progress));
  width: var(--planned);
  background: linear-gradient(90deg, #cfd8e3 0%, #e9eef3 100%);
}

.progress-bar__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 10px;
  color: #3b2f00;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  pointer-events: none;
}

.progress-bar__label--done {
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.32);
}

.progress-summary__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.progress-summary__meta b {
  color: var(--ink);
}

.cover {
  background: var(--paper);
  border-top: 6px solid var(--htw-orange);
  padding: 42px 46px;
  margin-bottom: 28px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.cover h1 {
  margin: 0 0 18px;
  max-width: 900px;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: 0;
}

.subtitle {
  margin: 0 0 26px;
  max-width: 820px;
  color: var(--muted);
  font-size: 20px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.fact {
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 12px 14px;
}

.fact b {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
}

.toc {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px 26px;
  margin-bottom: 28px;
}

.toc h2 {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 25px;
  line-height: 1.2;
}

.toc > ul {
  margin: 0;
  padding-left: 20px;
  columns: 2;
}

.slide {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 7px solid var(--htw-orange);
  padding: 28px 32px;
  margin: 28px 0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  break-inside: avoid;
}

body.slides-focus-ready .slide {
  transition: filter 220ms ease, opacity 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

body.slides-focus-ready .slide.is-dimmed {
  filter: blur(3px);
  opacity: 0.52;
  transform: scale(0.992);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

body.slides-focus-ready .slide.is-focused {
  filter: none;
  opacity: 1;
  transform: none;
}

.slide.chapter {
  border-left-color: var(--ink);
  background: #fbfbfc;
}

.slide-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.slide-number {
  color: var(--htw-orange);
  font-weight: 700;
  font-size: 14px;
}

.slide-title {
  min-width: 0;
}

.section-title {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.slide h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.2;
}

.slide h3 {
  margin: 22px 0 8px;
  font-size: 17px;
}

.lead {
  font-size: 19px;
  margin: 8px 0 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.process-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin: 20px 0 34px;
}

.process-card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--htw-orange);
  background: linear-gradient(180deg, #fffef8 0%, #ffffff 100%);
  padding: 16px 18px;
  min-height: 100%;
}

.process-card__label {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

.process-card ul {
  margin: 0;
}

.process-card--done {
  border-top-color: var(--accent);
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
}

.process-card--open {
  border-top-color: var(--warn);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}

.process-card--next {
  border-top-color: var(--htw-orange);
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
}

.process-arrow {
  align-self: center;
  color: var(--htw-orange);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.kiss-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin: 18px 0 20px;
}

.kiss-flow__step {
  border: 1px solid var(--line);
  border-top: 4px solid #2563eb;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  padding: 14px 16px;
  min-height: 100%;
}

.kiss-flow__step--accent {
  border-top-color: var(--accent);
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
}

.kiss-flow__kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.kiss-flow__step b {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.2;
}

.kiss-flow__step span:last-child {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.kiss-flow__arrow {
  align-self: center;
  color: var(--htw-orange);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.note,
.message,
.source-box,
.todo {
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 14px 16px;
  margin-top: 16px;
}

.message {
  border-left: 5px solid var(--accent);
  background: #f0fdfa;
  font-size: 19px;
  line-height: 1.45;
}

.todo {
  border-left: 5px solid var(--warn);
  background: #fff7ed;
}

.source-box {
  font-size: 14px;
  color: var(--muted);
}

blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 5px solid var(--accent);
  background: #f0fdfa;
  font-size: 19px;
  line-height: 1.45;
}

ul {
  margin: 8px 0 12px;
  padding-left: 21px;
}

li {
  margin: 5px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 14px;
}

.comparison-summary {
  margin: 16px 0 18px;
}

.comparison-summary .lead {
  margin: 0 0 10px;
  font-size: 16px;
}

.metric-table {
  font-size: 13px;
}

.metric-table th,
.metric-table td {
  padding: 8px 9px;
}

.metric-table th:nth-child(2),
.metric-table td:nth-child(2) {
  width: 18%;
}

.metric-table .metric-value {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.metric-table .route-thumb {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--line);
}

.metric-table tr.is-icp td {
  background: #eefcf8;
}

.metric-table tr.is-icp td:first-child {
  border-left: 5px solid var(--accent);
}

.metric-table .route-thumb--icp {
  border-color: var(--accent);
}

th,
td {
  border: 1px solid var(--line);
  padding: 9px 10px;
  vertical-align: top;
}

th {
  background: var(--soft);
  text-align: left;
}

code,
pre {
  font-family: "Liberation Mono", Consolas, monospace;
}

code {
  background: #eef2f7;
  padding: 1px 4px;
}

pre {
  background: #111827;
  color: #e5e7eb;
  padding: 16px;
  overflow-x: auto;
  font-size: 14px;
}

.asset-placeholder {
  border: 1px dashed #94a3b8;
  background: #f8fafc;
  padding: 16px;
  color: var(--muted);
  margin-top: 14px;
  text-align: center;
  min-height: 180px;
  display: grid;
  place-items: center;
  line-height: 1.45;
}

.media {
  margin: 16px 0;
}

.media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--soft);
}

.media figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.rtk-hardware-image img {
  max-height: 240px;
  object-fit: contain;
}

.image-card {
  margin: 16px 0;
}

.image-card img,
.image-card video {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #ffffff;
}

.image-card img {
  cursor: zoom-in;
}

.image-card figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.image-card img:focus,
.image-card video:focus {
  outline: 3px solid var(--htw-orange);
  outline-offset: 2px;
}

.data-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
  position: relative;
}

.data-source,
.data-flow-target {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 14px 16px;
}

.data-source {
  min-height: 132px;
  position: relative;
}

.data-source::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -28px;
  width: 2px;
  height: 28px;
  background: var(--htw-orange);
}

.data-source-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.data-source b,
.data-flow-target b {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.2;
}

.data-source span:last-child,
.data-flow-target span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.data-flow-target {
  grid-column: 1 / -1;
  margin-top: 28px;
  border-left: 6px solid var(--htw-orange);
  text-align: center;
  background: #fff7e6;
}

.comparison-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fffef8 0%, #ffffff 100%);
  padding: 16px 18px;
  margin: 12px 0;
}

.comparison-panel h3 {
  margin-top: 0;
}

.comparison-figures .image-card {
  margin-top: 6px;
}

.robotaxi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 10px;
}

.robotaxi-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--paper);
}

.robotaxi-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  cursor: zoom-in;
}

.robotaxi-grid figcaption {
  padding: 7px 9px;
  color: var(--muted);
  font-size: 13px;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.vehicle {
  border: 1px solid var(--line);
  background: var(--paper);
}

.vehicle img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.vehicle-image {
  position: relative;
  overflow: hidden;
}

.unavailable-cross {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.vehicle-unavailable.is-visible .unavailable-cross {
  animation: reveal-unavailable-cross 300ms ease-out 3s forwards;
}

.unavailable-cross::before,
.unavailable-cross::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 128%;
  height: 6px;
  background: #e30613;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45);
  transform-origin: center;
}

.unavailable-cross::before {
  transform: translate(-50%, -50%) rotate(36.87deg);
}

.unavailable-cross::after {
  transform: translate(-50%, -50%) rotate(-36.87deg);
}

@keyframes reveal-unavailable-cross {
  to {
    opacity: 1;
  }
}

.vehicle figcaption {
  padding: 12px 13px;
  font-size: 14px;
}

.vehicle figcaption b {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.vehicle figcaption ul {
  margin: 0;
  padding-left: 18px;
}

.vehicle figcaption li {
  margin: 4px 0;
}

.site-footer {
  position: sticky;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px 14px;
  background: linear-gradient(180deg, rgba(236, 239, 243, 0) 0%, rgba(236, 239, 243, 0.92) 26%, rgba(236, 239, 243, 1) 100%);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.site-footer__logo {
  height: 44px;
  width: auto;
  display: block;
}

.site-footer__meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
  color: var(--ink);
}

.site-footer__date {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.site-footer__title {
  font-size: 14px;
  line-height: 1.2;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 8px 12px;
  text-decoration: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.88);
  z-index: 1000;
  overflow: hidden;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-image {
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.35);
  background: #ffffff;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-meta {
  position: absolute;
  left: 18px;
  right: 72px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.4;
  word-break: break-word;
}

@media (max-width: 820px) {
  .cover-grid,
  .data-flow,
  .kiss-flow,
  .robotaxi-grid,
  .vehicle-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .kiss-flow__arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .data-source::after {
    left: 28px;
  }

  .data-flow-target {
    grid-column: 1;
  }

  .toc > ul {
    columns: 1;
  }

  .slide-header,
  .topbar,
  .funding-note,
  .progress-summary,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer__brand,
  .site-footer__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .funding-logo {
    width: 72px;
  }

  .meta {
    text-align: left;
  }

  .progress-summary__header,
  .progress-summary__meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media print {
  body {
    background: #fff;
  }

  .page {
    max-width: none;
    padding: 0;
  }

  .topbar,
  .toc,
  .site-footer {
    display: none;
  }

  .lightbox {
    display: none !important;
  }

  .cover,
  .slide {
    box-shadow: none;
    margin: 0 0 18mm;
    page-break-after: always;
  }

  .slide {
    min-height: auto;
  }

  a {
    color: var(--ink);
    text-decoration: none;
  }
}

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

  .process-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
}
