@font-face {
  font-family: "Hanken Grotesk";
  src: url("assets/fonts/HankenGrotesk-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* Interactive product tours */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.tour-hero {
  padding-block: clamp(58px, 7vw, 96px) clamp(78px, 9vw, 128px);
  background:
    linear-gradient(90deg, transparent 0 49.94%, var(--line) 49.94% 50.06%, transparent 50.06%),
    linear-gradient(var(--map-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--map-grid) 1px, transparent 1px),
    var(--white);
  background-size: 100% 100%, 80px 80px, 80px 80px, auto;
}

.tour-hero .case-breadcrumb {
  margin-bottom: clamp(48px, 7vw, 84px);
}

.tour-hero-grid {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: clamp(54px, 8vw, 120px);
}

.tour-hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(3.4rem, 6.6vw, 7rem);
}

.tour-hero-grid > div:last-child > p {
  max-width: 600px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
}

.tour-hero dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.tour-hero dl div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  padding-block: 13px;
  border-bottom: 1px solid var(--line);
}

.tour-hero dt {
  color: var(--green-text);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tour-hero dd {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 630;
}

.tour-workspace-section {
  padding-block: clamp(72px, 8vw, 120px);
  background: var(--mint);
  border-block: 1px solid var(--line);
}

.tour-workspace-head {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  margin-bottom: 42px;
}

.tour-workspace-head h2 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 4.2vw, 4.8rem);
}

.tour-workspace-head p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.tour-workspace-head > span {
  padding-bottom: 8px;
  color: var(--green-text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.tour-layout {
  display: grid;
  align-items: start;
  grid-template-columns: 276px minmax(0, 1fr);
  gap: 24px;
}

.tour-rail {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 126px);
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--line);
  scrollbar-color: var(--green) var(--scroll-track);
  scrollbar-width: thin;
}

.tour-rail button {
  display: grid;
  width: 100%;
  min-height: 68px;
  align-items: center;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 14px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.tour-rail button:last-child {
  border-bottom: 0;
}

.tour-rail button > span:first-child {
  color: var(--green-text);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 750;
}

.tour-rail button > span:last-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.tour-rail button strong {
  overflow: hidden;
  font-size: 0.86rem;
  font-weight: 680;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tour-rail button small {
  overflow: hidden;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.035em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.tour-rail button[aria-current="step"] {
  color: var(--button-ink);
  background: var(--green-bright);
}

.tour-rail button[aria-current="step"] > span:first-child,
.tour-rail button[aria-current="step"] small {
  color: var(--button-ink);
}

.tour-select-label,
.tour-select {
  display: none;
}

.tour-stage {
  min-width: 0;
}

.tour-preview {
  min-height: 650px;
  overflow: hidden;
  background: #0b0d0c;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-surface);
  box-shadow: var(--shadow-media);
}

.tour-preview:focus-visible {
  outline-offset: 6px;
}

.tour-controls {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  margin-top: 14px;
  background: var(--white);
  border: 1px solid var(--line);
}

.tour-controls button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-weight: 670;
}

.tour-controls button:last-child {
  justify-content: flex-end;
}

.tour-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.tour-controls > span {
  color: var(--green-text);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 760;
}

.tour-provenance {
  max-width: 960px;
  margin: 28px 0 0 300px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.55;
}

.tour-error {
  padding: 18px;
  color: var(--error);
  background: var(--white);
  border: 1px solid var(--error);
}

.tour-next {
  background: var(--white);
}

.tour-next-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  gap: clamp(60px, 9vw, 140px);
}

.tour-next h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5.2vw, 5.3rem);
}

.tour-next-grid > div:last-child > p {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.tour-next-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
}

/* The demo deliberately uses the opposite native app theme. */
:root[data-theme="light"] .tour-app {
  --app-bg: #0b0e0c;
  --app-surface: #111612;
  --app-surface-2: #18201a;
  --app-line: #29352c;
  --app-text: #f3f7f4;
  --app-muted: #9daf9f;
  --app-accent: #47ec8d;
  --app-accent-ink: #03180c;
  --app-shadow: rgba(0, 0, 0, 0.36);
}

:root[data-theme="dark"] .tour-app {
  --app-bg: #f4f7f5;
  --app-surface: #ffffff;
  --app-surface-2: #edf4ef;
  --app-line: #d5e1d9;
  --app-text: #102419;
  --app-muted: #66796e;
  --app-accent: #09a84f;
  --app-accent-ink: #ffffff;
  --app-shadow: rgba(16, 36, 25, 0.12);
}

.tour-app {
  min-height: 650px;
  color: var(--app-text);
  background: var(--app-bg);
  font-size: 13px;
  line-height: 1.4;
}

.tour-app h3,
.tour-app h4,
.tour-app p {
  text-wrap: pretty;
}

.demo-app-topbar {
  display: grid;
  min-height: 58px;
  align-items: center;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  gap: 16px;
  padding: 10px 18px;
  background: var(--app-surface);
  border-bottom: 1px solid var(--app-line);
}

.demo-app-brand {
  color: var(--app-accent);
  font-size: 1rem;
  font-weight: 790;
  letter-spacing: -0.03em;
}

.demo-app-context {
  color: var(--app-muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-app-user {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--app-muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.demo-app-user i,
.demo-app-user img {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  overflow: hidden;
  color: var(--app-accent-ink);
  background: var(--app-accent);
  border-radius: 50%;
  font-size: 0.58rem;
  font-style: normal;
  object-fit: cover;
}

.demo-app-body {
  display: grid;
  min-height: 592px;
  grid-template-columns: 150px minmax(0, 1fr);
}

.demo-app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 12px;
  background: var(--app-surface);
  border-right: 1px solid var(--app-line);
}

.demo-app-sidebar::before {
  margin: 0 8px 10px;
  color: var(--app-muted);
  content: "BEREICHE";
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
}

.demo-app-sidebar span {
  padding: 9px 10px;
  color: var(--app-muted);
  border-radius: 5px;
  font-size: 0.74rem;
  font-weight: 640;
}

.demo-app-sidebar span.is-active {
  color: var(--app-text);
  background: var(--app-surface-2);
  box-shadow: inset 3px 0 var(--app-accent);
}

.demo-app-content {
  min-width: 0;
  padding: 22px;
  overflow: hidden;
}

.demo-screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.demo-screen-header > div > span {
  color: var(--app-muted);
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.demo-screen-header h3 {
  margin: 4px 0 0;
  font-size: clamp(1.25rem, 2.2vw, 2.05rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.demo-screen-header button,
.demo-form-actions button,
.demo-document-workspace button,
.demo-overview-grid button,
.demo-split-editor button,
.demo-onboarding button,
.mobile-form > button {
  min-height: 36px;
  padding: 8px 12px;
  color: var(--app-accent-ink);
  background: var(--app-accent);
  border: 0;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 730;
}

.demo-inline-notice {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  padding: 10px 12px;
  color: var(--app-text);
  background: var(--app-surface-2);
  border: 1px solid var(--app-line);
  border-radius: 6px;
  font-size: 0.7rem;
}

.demo-inline-notice span {
  color: var(--app-accent);
  font-size: 0.58rem;
}

.demo-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.demo-metrics > div {
  min-width: 0;
  padding: 13px;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 7px;
  box-shadow: 0 8px 22px var(--app-shadow);
}

.demo-metrics strong,
.demo-metrics span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-metrics strong {
  margin-bottom: 3px;
  color: var(--app-text);
  font-size: clamp(0.9rem, 1.45vw, 1.22rem);
  letter-spacing: -0.025em;
}

.demo-metrics span {
  color: var(--app-muted);
  font-size: 0.62rem;
}

.demo-list {
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 7px;
}

.demo-list-row {
  display: grid;
  min-height: 52px;
  align-items: center;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--app-line);
}

.demo-list-row:last-child {
  border-bottom: 0;
}

.demo-list-index {
  color: var(--app-accent);
  font-family: var(--font-mono);
  font-size: 0.55rem;
}

.demo-list-row > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.demo-list-row strong,
.demo-list-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-list-row strong {
  font-size: 0.73rem;
}

.demo-list-row > div span,
.demo-list-row small {
  color: var(--app-muted);
  font-size: 0.62rem;
}

.demo-row-arrow {
  color: var(--app-muted);
}

.demo-overview-grid,
.demo-analytics,
.demo-split-editor,
.demo-live-quiz {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(190px, 0.62fr);
  gap: 14px;
}

.demo-overview-grid > section,
.demo-overview-grid > aside,
.demo-analytics > section,
.demo-split-editor > section,
.demo-live-quiz > section,
.demo-live-quiz > aside {
  min-width: 0;
  padding: 16px;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 7px;
}

.demo-overview-grid > section > header,
.demo-analytics section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.demo-overview-grid header span,
.demo-analytics header span {
  color: var(--app-muted);
  font-size: 0.6rem;
}

.demo-overview-grid > section .demo-list {
  border: 0;
}

.demo-overview-grid > aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.demo-overview-grid > aside > span {
  color: var(--app-muted);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
}

.demo-overview-grid > aside > strong {
  margin: 12px 0;
  color: var(--app-accent);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  letter-spacing: -0.06em;
}

.demo-overview-grid > aside p {
  color: var(--app-muted);
  font-size: 0.72rem;
}

.demo-overview-grid > aside button {
  margin-top: auto;
}

.demo-kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(145px, 1fr));
  gap: 10px;
  padding-bottom: 8px;
  overflow-x: auto;
  scrollbar-color: var(--app-accent) var(--app-surface-2);
}

.demo-kanban section {
  min-height: 330px;
  padding: 10px;
  background: var(--app-surface-2);
  border: 1px solid var(--app-line);
  border-radius: 7px;
}

.demo-kanban section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--app-muted);
  font-size: 0.65rem;
}

.demo-kanban section > header span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  background: var(--app-surface);
  border-radius: 50%;
}

.demo-kanban article {
  display: grid;
  gap: 9px;
  padding: 12px;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 6px;
  box-shadow: 0 8px 18px var(--app-shadow);
}

.demo-kanban article small {
  color: var(--app-accent);
  font-family: var(--font-mono);
  font-size: 0.5rem;
}

.demo-kanban article strong {
  font-size: 0.74rem;
  line-height: 1.32;
}

.demo-kanban article p {
  margin: 0;
  color: var(--app-muted);
  font-size: 0.62rem;
}

.demo-kanban article > span {
  width: fit-content;
  padding: 3px 7px;
  color: var(--app-accent);
  background: color-mix(in srgb, var(--app-accent) 13%, transparent);
  border-radius: 999px;
  font-size: 0.56rem;
}

.demo-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 7px;
}

.demo-form label,
.mobile-form label {
  display: grid;
  gap: 6px;
}

.demo-form label > span,
.mobile-form label > span {
  color: var(--app-muted);
  font-size: 0.6rem;
  font-weight: 650;
}

.demo-form input {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  color: var(--app-text);
  background: var(--app-bg);
  border: 1px solid var(--app-line);
  border-radius: 5px;
  font-size: 0.7rem;
}

.demo-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-column: 1 / -1;
  gap: 16px;
  padding-top: 8px;
  color: var(--app-muted);
  font-size: 0.62rem;
}

.demo-chat-layout {
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) minmax(0, 1.45fr);
  gap: 14px;
}

.demo-chat-layout:not(:has(.demo-document-tile)) {
  grid-template-columns: 1fr;
}

.demo-document-tile {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 18px;
  color: var(--app-text);
  background: linear-gradient(145deg, var(--app-surface), var(--app-surface-2));
  border: 1px solid var(--app-line);
  border-radius: 7px;
}

.demo-document-tile > span {
  width: fit-content;
  padding: 4px 7px;
  color: var(--app-accent-ink);
  background: var(--app-accent);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 750;
}

.demo-document-tile small {
  color: var(--app-muted);
  font-size: 0.6rem;
}

.demo-messages,
.mobile-message-thread {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 7px;
}

.demo-messages article,
.mobile-message-thread article {
  max-width: 78%;
  padding: 10px 12px;
  background: var(--app-surface-2);
  border-radius: 4px 10px 10px;
}

.demo-messages article.is-own,
.mobile-message-thread article.is-own {
  align-self: flex-end;
  background: color-mix(in srgb, var(--app-accent) 18%, var(--app-surface));
  border-radius: 10px 4px 10px 10px;
}

.demo-messages article strong,
.mobile-message-thread article strong {
  color: var(--app-accent);
  font-size: 0.62rem;
}

.demo-messages article p,
.mobile-message-thread article p {
  margin: 3px 0;
  font-size: 0.7rem;
}

.demo-messages article small,
.mobile-message-thread article small {
  color: var(--app-muted);
  font-size: 0.54rem;
}

.demo-calendar {
  padding: 16px;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 7px;
}

.demo-calendar > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.demo-calendar > header button {
  width: 32px;
  height: 32px;
  color: var(--app-text);
  background: var(--app-surface-2);
  border: 1px solid var(--app-line);
  border-radius: 5px;
}

.demo-weekdays,
.demo-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.demo-weekdays span {
  padding: 7px;
  color: var(--app-muted);
  font-size: 0.56rem;
  text-align: center;
}

.demo-days > span {
  position: relative;
  min-height: 54px;
  padding: 6px;
  border-top: 1px solid var(--app-line);
  border-left: 1px solid var(--app-line);
  font-size: 0.62rem;
}

.demo-days > span:nth-child(7n) {
  border-right: 1px solid var(--app-line);
}

.demo-days > span:nth-last-child(-n + 7) {
  border-bottom: 1px solid var(--app-line);
}

.demo-days > span.is-today {
  color: var(--app-accent-ink);
  background: var(--app-accent);
}

.demo-days > span.has-event::after {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 5px;
  height: 5px;
  background: var(--app-accent);
  border-radius: 50%;
  content: "";
}

.demo-days small {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: var(--app-muted);
  font-size: 0.48rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-planner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 12px;
}

.demo-planner-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr));
  gap: 8px;
  padding-bottom: 8px;
  overflow-x: auto;
}

.demo-planner-grid article {
  min-height: 260px;
  padding: 12px;
  background: var(--app-surface-2);
  border: 1px solid var(--app-line);
  border-radius: 7px;
}

.demo-planner-grid article small {
  display: block;
  margin-bottom: 52px;
  color: var(--app-muted);
  font-size: 0.58rem;
}

.demo-planner-grid article strong {
  display: block;
  padding: 10px;
  background: var(--app-surface);
  border-left: 3px solid var(--app-accent);
  border-radius: 4px;
  font-size: 0.68rem;
}

.demo-planner-grid article span {
  display: block;
  margin-top: 8px;
  color: var(--app-muted);
  font-size: 0.55rem;
}

.demo-planner > aside {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 7px;
}

.demo-planner > aside i,
.demo-bars i,
.mobile-poll i {
  display: block;
  height: 7px;
  overflow: hidden;
  background: var(--app-surface-2);
  border-radius: 99px;
}

.demo-planner > aside i b,
.demo-bars i b,
.mobile-poll i b {
  display: block;
  height: 100%;
  background: var(--app-accent);
}

.demo-planner > aside span {
  color: var(--app-muted);
  font-size: 0.58rem;
}

.demo-planner > aside hr {
  width: 100%;
  margin: 8px 0;
  border: 0;
  border-top: 1px solid var(--app-line);
}

.demo-planner > aside em {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  background: var(--app-accent);
  border-radius: 50%;
}

.demo-chart {
  display: flex;
  height: 260px;
  align-items: end;
  gap: 7px;
  padding: 20px 8px 0;
  border-bottom: 1px solid var(--app-line);
}

.demo-chart i {
  flex: 1;
  min-width: 7px;
  background: linear-gradient(var(--app-accent), color-mix(in srgb, var(--app-accent) 24%, transparent));
  border-radius: 3px 3px 0 0;
}

.demo-bars {
  display: grid;
  gap: 20px;
  padding-top: 10px;
}

.demo-bar-row > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.demo-bar-row strong {
  font-size: 0.64rem;
}

.demo-bar-row span {
  color: var(--app-muted);
  font-size: 0.57rem;
}

.demo-document-workspace {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.demo-paper {
  position: relative;
  display: flex;
  min-height: 370px;
  flex-direction: column;
  gap: 10px;
  padding: 42px 32px 28px;
  color: #132019;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 18px 40px var(--app-shadow);
}

.demo-paper-mark {
  position: absolute;
  top: 14px;
  right: 14px;
  color: #607168;
  font-family: var(--font-mono);
  font-size: 0.52rem;
}

.demo-paper > strong {
  margin-bottom: 15px;
  font-size: 0.76rem;
}

.demo-paper > i {
  display: block;
  height: 5px;
  background: #dce4df;
}

.demo-paper > b {
  position: absolute;
  right: 32px;
  bottom: 34px;
  padding: 4px 7px;
  color: #075b34;
  border: 1px solid #0aa64f;
  font-size: 0.65rem;
}

.demo-document-workspace > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-document-workspace button {
  align-self: flex-end;
}

.demo-split-editor > section > span,
.demo-live-quiz section > span {
  color: var(--app-accent);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.07em;
}

.demo-split-editor h4,
.demo-live-quiz h4 {
  margin: 15px 0;
  font-size: 1.1rem;
  line-height: 1.25;
}

.demo-split-editor p {
  color: var(--app-muted);
  font-size: 0.7rem;
}

.demo-split-editor mark {
  display: inline;
  color: var(--app-text);
  background: color-mix(in srgb, var(--app-accent) 25%, transparent);
}

.demo-split-editor .demo-list {
  margin-bottom: 14px;
  border: 0;
}

.demo-mindmap {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  background:
    linear-gradient(var(--app-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--app-line) 1px, transparent 1px),
    var(--app-surface);
  background-size: 24px 24px;
  border: 1px solid var(--app-line);
  border-radius: 7px;
}

.demo-mindmap svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--app-accent);
  stroke-opacity: 0.45;
  stroke-width: 2px;
}

.demo-mindmap .node {
  position: absolute;
  z-index: 1;
  padding: 10px 14px;
  background: var(--app-surface-2);
  border: 1px solid var(--app-line);
  border-radius: 6px;
  box-shadow: 0 8px 20px var(--app-shadow);
  font-size: 0.66rem;
  font-weight: 700;
}

.demo-mindmap .node-main { top: 42%; left: 42%; color: var(--app-accent-ink); background: var(--app-accent); }
.demo-mindmap .node-a { top: 14%; left: 12%; }
.demo-mindmap .node-b { top: 14%; right: 12%; }
.demo-mindmap .node-c { bottom: 14%; left: 12%; }
.demo-mindmap .node-d { right: 10%; bottom: 14%; }

.demo-flashcard {
  display: flex;
  min-height: 400px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  background: radial-gradient(circle at top, color-mix(in srgb, var(--app-accent) 12%, transparent), transparent 54%), var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 8px;
}

.demo-flashcard > span {
  color: var(--app-muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
}

.demo-flashcard > strong {
  margin: 48px 0 12px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  letter-spacing: -0.05em;
}

.demo-flashcard > p {
  color: var(--app-muted);
  font-size: 1rem;
}

.demo-flashcard > div {
  display: grid;
  width: min(100%, 560px);
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 34px;
}

.demo-flashcard button,
.demo-live-quiz button {
  min-height: 38px;
  color: var(--app-text);
  background: var(--app-surface-2);
  border: 1px solid var(--app-line);
  border-radius: 5px;
  font-size: 0.63rem;
}

.demo-onboarding {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
}

.demo-onboarding > ol,
.demo-onboarding > div {
  margin: 0;
  padding: 18px;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 7px;
}

.demo-onboarding li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  list-style: none;
  border-bottom: 1px solid var(--app-line);
}

.demo-onboarding li:last-child {
  border-bottom: 0;
}

.demo-onboarding li > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--app-muted);
  background: var(--app-surface-2);
  border-radius: 50%;
  font-size: 0.58rem;
}

.demo-onboarding li.is-done > span,
.demo-onboarding li.is-current > span {
  color: var(--app-accent-ink);
  background: var(--app-accent);
}

.demo-onboarding li strong {
  font-size: 0.68rem;
}

.demo-onboarding li p {
  margin: 2px 0 0;
  color: var(--app-muted);
  font-size: 0.6rem;
}

.demo-onboarding > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 5vw, 60px);
}

.demo-onboarding > div > span {
  color: var(--app-accent);
  font-family: var(--font-mono);
  font-size: 0.6rem;
}

.demo-onboarding > div h4 {
  margin: 18px 0;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.demo-onboarding > div p {
  color: var(--app-muted);
}

.demo-onboarding > div button {
  align-self: flex-start;
  margin-top: 20px;
}

.demo-live-quiz > section > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.demo-live-quiz button {
  padding: 10px;
  text-align: left;
}

.demo-live-quiz aside .demo-list {
  border: 0;
}

.demo-real-image {
  display: flex;
  min-height: 500px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 14px;
  background: var(--app-surface-2);
  border: 1px solid var(--app-line);
  border-radius: 7px;
}

.demo-real-image img {
  width: 100%;
  max-height: 455px;
  object-fit: contain;
  border: 1px solid var(--app-line);
  border-radius: 5px;
  box-shadow: 0 18px 40px var(--app-shadow);
}

.demo-real-image figcaption,
.demo-photo figcaption,
.demo-photo-grid figcaption {
  color: var(--app-muted);
  font-family: var(--font-mono);
  font-size: 0.51rem;
  letter-spacing: 0.04em;
}

/* Mobile Randalo demo */

.tour-stage-mobile .tour-preview {
  display: grid;
  min-height: 860px;
  place-items: center;
  padding: 42px;
  background:
    radial-gradient(circle at 50% 0%, rgba(71, 236, 141, 0.12), transparent 42%),
    #080a09;
}

.tour-app-mobile {
  position: relative;
  width: min(100%, 390px);
  min-height: 760px;
  overflow: hidden;
  border: 6px solid #1d211e;
  border-radius: 36px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

:root[data-theme="dark"] .tour-app-mobile {
  border-color: #d7ded9;
}

.tour-app-mobile::before {
  position: absolute;
  z-index: 4;
  top: 8px;
  left: 50%;
  width: 84px;
  height: 20px;
  background: #080a09;
  border-radius: 99px;
  content: "";
  transform: translateX(-50%);
}

.tour-app-mobile .demo-app-topbar {
  min-height: 54px;
  grid-template-columns: 1fr auto;
  padding: 17px 16px 7px;
}

.tour-app-mobile .demo-app-context,
.tour-app-mobile .demo-app-user > span {
  display: none;
}

.tour-app-mobile .demo-app-user {
  grid-column: 2;
}

.tour-app-mobile .demo-app-body {
  display: block;
  min-height: 636px;
}

.tour-app-mobile .demo-app-content {
  min-height: 636px;
  padding: 14px;
  padding-bottom: 76px;
  overflow-y: auto;
  scrollbar-width: none;
}

.tour-app-mobile .demo-screen-header {
  margin-bottom: 14px;
}

.tour-app-mobile .demo-screen-header h3 {
  font-size: 1.45rem;
}

.tour-app-mobile .demo-screen-header button {
  color: var(--app-text);
  background: transparent;
}

.tour-app-mobile .demo-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.demo-mobile-tabs {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  min-height: 64px;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 6px 10px;
  background: color-mix(in srgb, var(--app-surface) 94%, transparent);
  border-top: 1px solid var(--app-line);
  backdrop-filter: blur(16px);
}

.demo-mobile-tabs span {
  display: grid;
  place-items: center;
  color: var(--app-muted);
  font-size: 0.9rem;
}

.demo-mobile-tabs span.is-active {
  color: var(--app-accent);
}

.demo-mobile-tabs small {
  font-size: 0.48rem;
}

.demo-photo {
  position: relative;
  margin: 0;
}

.demo-photo img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  border-radius: 12px;
}

.demo-photo figcaption {
  position: absolute;
  z-index: 3;
  top: 7px;
  right: 7px;
  bottom: auto;
  left: 7px;
  padding: 5px 7px;
  color: #fff;
  background: rgba(0, 0, 0, 0.66);
  border-radius: 4px;
  text-align: center;
}

.mobile-hero-card {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  border-radius: 18px;
}

.mobile-hero-card .demo-photo,
.mobile-hero-card .demo-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mobile-hero-card .demo-photo::after,
.mobile-full-feed .demo-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 24%, rgba(0, 0, 0, 0.9));
  content: "";
}

.mobile-hero-card > div:last-child {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 28px;
  left: 22px;
  color: #fff;
}

.mobile-hero-card > div:last-child > span {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
}

.mobile-hero-card h4 {
  margin: 12px 0 22px;
  font-size: 2.6rem;
  line-height: 0.94;
}

.mobile-hero-card button {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  color: #08120c;
  background: #47ec8d;
  border: 0;
  border-radius: 8px;
  font-weight: 720;
}

.mobile-hero-card button.is-quiet {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.mobile-full-feed {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  border-radius: 16px;
}

.mobile-full-feed > .demo-photo,
.mobile-full-feed > .demo-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mobile-feed-overlay {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 22px;
  left: 18px;
  color: #fff;
}

.mobile-feed-overlay > span {
  font-size: 0.66rem;
  font-weight: 720;
}

.mobile-feed-overlay h4 {
  margin: 7px 0;
  font-size: 1.75rem;
}

.mobile-feed-overlay p {
  margin: 0 0 16px;
  font-size: 0.72rem;
}

.mobile-feed-overlay button {
  min-height: 36px;
  margin-right: 7px;
  padding: 7px 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 99px;
  font-size: 0.62rem;
}

.mobile-map-canvas {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 28%, transparent 0 12%, var(--app-line) 12.4% 13%, transparent 13.4%),
    linear-gradient(27deg, transparent 46%, var(--app-line) 47% 49%, transparent 50%),
    linear-gradient(117deg, transparent 46%, var(--app-line) 47% 49%, transparent 50%),
    var(--app-surface-2);
  border-radius: 14px;
}

.map-search {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  left: 14px;
  padding: 11px 13px;
  color: var(--app-text);
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 9px;
  box-shadow: 0 7px 18px var(--app-shadow);
  font-size: 0.7rem;
}

.map-pin {
  position: absolute;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--app-accent-ink);
  background: var(--app-accent);
  border: 3px solid var(--app-surface);
  border-radius: 50% 50% 50% 8px;
  font-size: 0.63rem;
  font-weight: 750;
  transform: rotate(-45deg);
}

.map-pin-a { top: 25%; left: 25%; }
.map-pin-b { top: 37%; right: 18%; }
.map-pin-c { top: 52%; left: 44%; }
.map-pin-d { top: 63%; left: 16%; }

.map-sheet {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: grid;
  gap: 6px;
  padding: 16px;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 12px;
  box-shadow: 0 14px 34px var(--app-shadow);
}

.map-sheet span {
  color: var(--app-muted);
  font-size: 0.62rem;
}

.map-sheet button {
  min-height: 38px;
  margin-top: 8px;
  color: var(--app-accent-ink);
  background: var(--app-accent);
  border: 0;
  border-radius: 7px;
  font-size: 0.65rem;
  font-weight: 720;
}

.demo-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.demo-photo-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
}

.demo-photo-grid figure:first-child {
  grid-row: span 2;
}

.demo-photo-grid img {
  width: 100%;
  height: 135px;
  object-fit: cover;
}

.demo-photo-grid figure:first-child img {
  height: 278px;
}

.demo-photo-grid figcaption {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 3px 5px;
  color: #fff;
  background: rgba(0, 0, 0, 0.68);
  border-radius: 3px;
}

.mobile-message-thread {
  min-height: 500px;
}

.mobile-message-box {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 8px 8px 8px 12px;
  color: var(--app-muted);
  background: var(--app-surface-2);
  border: 1px solid var(--app-line);
  border-radius: 99px;
  font-size: 0.62rem;
}

.mobile-message-box button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--app-accent-ink);
  background: var(--app-accent);
  border: 0;
  border-radius: 50%;
}

.mobile-profile-head {
  display: grid;
  align-items: center;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 16px;
}

.mobile-profile-head img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 2px solid var(--app-accent);
  border-radius: 50%;
}

.mobile-profile-head > div {
  display: grid;
  gap: 2px;
}

.mobile-profile-head > div span {
  color: var(--app-muted);
  font-size: 0.62rem;
}

.mobile-profile-head button {
  min-height: 34px;
  padding: 7px 9px;
  color: var(--app-text);
  background: var(--app-surface-2);
  border: 1px solid var(--app-line);
  border-radius: 7px;
  font-size: 0.6rem;
}

.mobile-bio {
  color: var(--app-muted);
  font-size: 0.7rem;
}

.mobile-game-card {
  display: flex;
  min-height: 540px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  background:
    radial-gradient(circle at top right, rgba(71, 236, 141, 0.28), transparent 34%),
    linear-gradient(150deg, #111916, #070a08);
  border: 1px solid #2d3b32;
  border-radius: 18px;
}

.mobile-game-card > span {
  color: #47ec8d;
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.08em;
}

.mobile-game-card h4 {
  margin: 80px 0 24px;
  color: #fff;
  font-size: 2rem;
  line-height: 1.08;
}

.mobile-game-card p,
.mobile-game-card small {
  color: #aebbb3;
}

.mobile-game-card small {
  margin-top: auto;
}

.mobile-poll {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 12px;
}

.mobile-poll h4 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.mobile-poll button {
  display: grid;
  gap: 7px;
  padding: 11px;
  color: var(--app-text);
  text-align: left;
  background: var(--app-surface-2);
  border: 1px solid var(--app-line);
  border-radius: 8px;
}

.mobile-poll button strong {
  color: var(--app-muted);
  font-size: 0.58rem;
}

.mobile-form {
  display: grid;
  gap: 10px;
}

.mobile-form label {
  padding: 11px;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 8px;
}

.mobile-form label strong {
  font-size: 0.7rem;
}

.mobile-bracket {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 12px;
}

.mobile-bracket > span {
  color: var(--app-accent);
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.08em;
}

.mobile-bracket article {
  overflow: hidden;
  background: var(--app-surface-2);
  border: 1px solid var(--app-line);
  border-radius: 8px;
}

.mobile-bracket article > div {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--app-line);
}

.mobile-bracket article > div:last-child {
  border-bottom: 0;
}

@media (hover: hover) and (pointer: fine) {
  .tour-rail button:hover:not([aria-current="step"]),
  .tour-controls button:hover:not(:disabled) {
    color: var(--green-text);
    background: var(--mint-strong);
  }
}

@media (max-width: 1120px) {
  .tour-layout {
    grid-template-columns: 238px minmax(0, 1fr);
  }

  .tour-provenance {
    margin-left: 262px;
  }

  .tour-preview,
  .tour-app {
    min-height: 600px;
  }

  .demo-app-body {
    min-height: 542px;
    grid-template-columns: 126px minmax(0, 1fr);
  }

  .demo-app-content {
    padding: 18px;
  }

  .tour-stage-mobile .tour-preview {
    min-height: 830px;
    padding: 30px;
  }
}

@media (max-width: 860px) {
  .tour-hero {
    background:
      linear-gradient(var(--map-grid) 1px, transparent 1px),
      linear-gradient(90deg, var(--map-grid) 1px, transparent 1px),
      var(--white);
    background-size: 64px 64px;
  }

  .tour-hero-grid,
  .tour-next-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .tour-workspace-head {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 24px;
  }

  .tour-workspace-head > span {
    display: none;
  }

  .tour-select-label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink-soft);
    font-size: 0.75rem;
    font-weight: 670;
  }

  .tour-select {
    display: block;
    width: 100%;
    min-height: 50px;
    margin-bottom: 16px;
    padding: 9px 12px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--field-border);
    border-radius: var(--radius-control);
  }

  .tour-layout {
    grid-template-columns: 1fr;
  }

  .tour-rail {
    display: none;
  }

  .tour-provenance {
    margin-left: 0;
  }

  .demo-app-sidebar {
    display: none;
  }

  .demo-app-body {
    grid-template-columns: 1fr;
  }

  .tour-stage-mobile .tour-preview {
    min-height: 820px;
  }
}

@media (max-width: 600px) {
  .tour-hero {
    padding-top: 44px;
  }

  .tour-hero .case-breadcrumb {
    margin-bottom: 38px;
  }

  .tour-hero h1 {
    font-size: clamp(3rem, 14vw, 4.4rem);
    overflow-wrap: anywhere;
  }

  .tour-workspace-section {
    padding-block: 64px;
  }

  .tour-workspace-head h2 {
    font-size: clamp(2.05rem, 10vw, 3rem);
  }

  .tour-preview,
  .tour-app {
    min-height: 620px;
  }

  .tour-controls {
    grid-template-columns: 1fr 1fr;
  }

  .tour-controls > span {
    display: none;
  }

  .tour-controls button {
    min-height: 52px;
    font-size: 0.82rem;
  }

  .demo-app-topbar {
    grid-template-columns: 1fr auto;
    padding-inline: 12px;
  }

  .demo-app-context {
    display: none;
  }

  .demo-app-content {
    padding: 14px;
  }

  .demo-screen-header button {
    display: none;
  }

  .demo-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-overview-grid,
  .demo-analytics,
  .demo-split-editor,
  .demo-live-quiz,
  .demo-onboarding,
  .demo-document-workspace,
  .demo-chat-layout,
  .demo-planner {
    grid-template-columns: 1fr;
  }

  .demo-overview-grid > aside {
    min-height: 210px;
  }

  .demo-kanban {
    grid-template-columns: repeat(4, 190px);
  }

  .demo-form {
    grid-template-columns: 1fr;
  }

  .demo-planner-grid {
    grid-template-columns: repeat(5, 160px);
  }

  .demo-planner > aside {
    display: none;
  }

  .demo-calendar {
    padding: 10px;
  }

  .demo-days > span {
    min-height: 44px;
  }

  .demo-days small {
    display: none;
  }

  .demo-flashcard {
    min-height: 430px;
    padding: 24px 14px;
  }

  .demo-flashcard > div {
    grid-template-columns: repeat(2, 1fr);
  }

  .demo-real-image {
    min-height: 440px;
    padding: 8px;
  }

  .tour-stage-mobile .tour-preview {
    min-height: 780px;
    padding: 14px 6px;
  }

  .tour-app-mobile {
    width: min(100%, 370px);
    min-height: 736px;
    border-width: 4px;
    border-radius: 28px;
  }

  .tour-app-mobile .demo-app-content {
    min-height: 620px;
  }

  .tour-next-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .tour-next-actions .button {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tour-rail button {
    scroll-behavior: auto;
  }
}

:root {
  color-scheme: light;
  --green: #0aa64f;
  --green-bright: #12c765;
  --green-hover: #20d775;
  --green-dark: #075b34;
  --green-text: #075b34;
  --ink: #08251a;
  --ink-soft: #3b554b;
  --mint: #eff9f2;
  --mint-strong: #dff3e5;
  --line: #c8dbcf;
  --line-dark: #284a3a;
  --white: #ffffff;
  --on-dark: #ffffff;
  --button-ink: #04160e;
  --print-ink: #000000;
  --print-paper: #ffffff;
  --error: #b42318;
  --field-border: #9fb7aa;
  --map-grid: #d8e8dd;
  --map-branch: #8aa798;
  --panel-ink: #08251a;
  --panel-green: #075b34;
  --panel-green-inner: #063e26;
  --panel-muted: #bed0c6;
  --panel-muted-strong: #aec3b8;
  --panel-green-copy: #d9eee1;
  --panel-flow-copy: #c9e3d3;
  --panel-line: rgba(255, 255, 255, 0.24);
  --panel-line-soft: rgba(255, 255, 255, 0.22);
  --mcp-ink: #051d12;
  --mcp-muted: #063d25;
  --footer-ink: #c8d8cf;
  --footer-bg: #051b12;
  --footer-line: #294237;
  --footer-muted: #8fa99c;
  --warning-ink: #5f3f00;
  --warning-bg: #fff7db;
  --warning-line: #e2c05c;
  --device-stage-bg: #f1f5fc;
  --focus-ring: rgba(10, 166, 79, 0.17);
  --error-ring: rgba(180, 35, 24, 0.12);
  --scroll-track: rgba(5, 49, 28, 0.1);
  --shadow-media: 0 26px 70px rgba(4, 61, 31, 0.13);
  --shadow-map: 0 30px 90px rgba(5, 80, 40, 0.08);
  --shadow-paper: 0 18px 42px rgba(4, 30, 17, 0.14);
  --shadow-paper-strong: 0 22px 52px rgba(4, 30, 17, 0.2);
  --shadow-phone: 0 20px 50px rgba(4, 47, 25, 0.22);
  --shadow-nav: 0 22px 40px rgba(5, 49, 28, 0.12);
  --font-body: "Hanken Grotesk", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --radius-control: 6px;
  --radius-surface: 14px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --shell: min(1280px, calc(100% - 48px));
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --green: #35df80;
  --green-bright: #37e486;
  --green-hover: #55ec99;
  --green-text: #74eeaa;
  --ink: #f3f4f6;
  --ink-soft: #b3b3bb;
  --mint: #111113;
  --mint-strong: #19191c;
  --line: #2d2d32;
  --line-dark: #686870;
  --white: #050505;
  --error: #ff8b82;
  --field-border: #686870;
  --map-grid: #242428;
  --map-branch: #62626a;
  --panel-ink: #09090a;
  --panel-green: #0f0f11;
  --panel-green-inner: #17171a;
  --panel-muted: #c7c7cd;
  --panel-muted-strong: #acacb4;
  --panel-green-copy: #e5e5e8;
  --panel-flow-copy: #d2d2d7;
  --mcp-ink: #09090a;
  --mcp-muted: #151517;
  --footer-ink: #d4d4d8;
  --footer-bg: #030303;
  --footer-line: #29292d;
  --footer-muted: #a1a1aa;
  --warning-ink: #ffe29a;
  --warning-bg: #332809;
  --warning-line: #8d6b22;
  --device-stage-bg: #0d0d0f;
  --focus-ring: rgba(53, 223, 128, 0.23);
  --error-ring: rgba(255, 139, 130, 0.18);
  --scroll-track: rgba(255, 255, 255, 0.12);
  --shadow-media: 0 26px 70px rgba(0, 0, 0, 0.42);
  --shadow-map: 0 30px 90px rgba(0, 0, 0, 0.3);
  --shadow-paper: 0 18px 42px rgba(0, 0, 0, 0.36);
  --shadow-paper-strong: 0 22px 52px rgba(0, 0, 0, 0.48);
  --shadow-phone: 0 20px 50px rgba(0, 0, 0, 0.5);
  --shadow-nav: 0 22px 40px rgba(0, 0, 0, 0.42);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-body);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

h1 {
  margin-bottom: 30px;
  font-size: clamp(3.65rem, 7.2vw, 7.4rem);
  font-weight: 650;
}

.hero h1 {
  font-size: clamp(3.65rem, 6.7vw, 6.8rem);
}

h2 {
  margin-bottom: 30px;
  font-size: clamp(2.7rem, 5.1vw, 5.3rem);
  font-weight: 620;
}

h3 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 3.2vw, 3.45rem);
  font-weight: 620;
}

p {
  margin-bottom: 1.2em;
}

::selection {
  color: var(--on-dark);
  background: var(--panel-green);
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: var(--on-dark);
  background: var(--panel-ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section {
  padding-block: clamp(92px, 10vw, 152px);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  color: var(--ink);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  position: relative;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 720;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand small {
  color: var(--green-text);
  font-size: 0.68em;
  font-weight: 720;
  letter-spacing: 0.06em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  fill: var(--green);
}

.brand-mark .brand-route {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: square;
  stroke-width: 3px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(19px, 2.4vw, 34px);
}

.primary-nav > a:not(.button) {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 610;
  text-decoration: none;
}

.primary-nav > a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 2px;
  background: var(--green);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms var(--ease-out);
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 13px 20px;
  color: var(--button-ink);
  background: var(--green-bright);
  border: 1px solid var(--green-bright);
  border-radius: var(--radius-control);
  font-size: 0.96rem;
  font-weight: 730;
  text-decoration: none;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 120ms var(--ease-out);
}

.button-small {
  min-height: 44px;
  padding: 9px 15px;
  font-size: 0.88rem;
}

.button:active {
  transform: scale(0.97);
}

.nav-toggle {
  display: none;
  min-width: 80px;
  min-height: 44px;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-size: 0.92rem;
  font-weight: 670;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.theme-toggle {
  display: none;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 11px;
  color: var(--ink);
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  font-size: 0.82rem;
  font-weight: 680;
  line-height: 1;
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 120ms var(--ease-out);
}

.has-js .theme-toggle {
  display: inline-flex;
}

.theme-toggle:active {
  transform: scale(0.97);
}

.theme-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.theme-icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-icon-sun {
  display: block;
}

.nav-toggle-icon {
  position: relative;
  width: 24px;
  height: 16px;
}

.nav-toggle-icon i {
  position: absolute;
  right: 0;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: top 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.nav-toggle-icon i:first-child {
  top: 3px;
}

.nav-toggle-icon i:last-child {
  top: 11px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:first-child {
  top: 7px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:last-child {
  top: 7px;
  transform: rotate(-45deg);
}

.hero {
  overflow: hidden;
  min-height: calc(100vh - 76px);
  min-height: calc(100svh - 76px);
  padding-block: clamp(54px, 6vw, 96px);
  background: var(--white);
}

.hero-grid {
  display: grid;
  min-height: min(690px, calc(100svh - 220px));
  align-items: center;
  grid-template-columns: minmax(0, 1.02fr) minmax(460px, 0.98fr);
  gap: clamp(50px, 7vw, 112px);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 730px;
}

.system-label,
.case-domain,
.map-caption,
.media-topline,
.diagram-label {
  color: var(--green-text);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.system-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 27px;
}

.system-label::before {
  width: 28px;
  height: 2px;
  background: var(--green);
  content: "";
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: clamp(1.13rem, 1.8vw, 1.35rem);
  line-height: 1.52;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 27px;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 690;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

.hero-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 46px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.83rem;
  list-style: none;
}

.hero-services li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-services li::before {
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
  content: "";
}

.broadcast-showcase {
  position: relative;
  min-width: 0;
}

.broadcast-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  padding: 0 4px 12px;
  color: var(--green-text);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.broadcast-caption span:last-child {
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-weight: 570;
  letter-spacing: 0;
  text-transform: none;
}

.broadcast-laptop {
  position: relative;
  width: 100%;
  transform: translateZ(0);
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.18));
}

.broadcast-lid {
  position: relative;
  z-index: 1;
  padding: clamp(10px, 1.25vw, 15px);
  background: #0a0b0b;
  border: 1px solid #343737;
  border-radius: 20px 20px 11px 11px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.broadcast-camera {
  position: absolute;
  z-index: 4;
  top: 4px;
  left: 50%;
  width: 4px;
  height: 4px;
  background: #37443f;
  border-radius: 50%;
  transform: translateX(-50%);
}

.broadcast-screen {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #050606;
  border: 1px solid #242828;
  border-radius: 9px 9px 5px 5px;
  contain: paint;
}

.broadcast-hud {
  position: absolute;
  z-index: 7;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  min-height: 35px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  color: #f5fff8;
  font-family: var(--font-mono);
  font-size: clamp(0.5rem, 0.8vw, 0.66rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(2, 4, 3, 0.88), rgba(2, 4, 3, 0.18));
}

.broadcast-hud span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #61f49b;
}

.broadcast-hud i {
  width: 6px;
  height: 6px;
  background: #61f49b;
  border-radius: 50%;
  box-shadow: 0 0 11px rgba(97, 244, 155, 0.86);
}

.broadcast-scenes,
.broadcast-scene,
.broadcast-shot-window {
  position: absolute;
  inset: 0;
}

.broadcast-scene {
  z-index: 1;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  background: #0b0e0c;
  transition: opacity 80ms linear, visibility 80ms linear;
}

.broadcast-scene.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
}

.broadcast-shot-window {
  overflow: hidden;
  background: #0b0e0c;
}

.broadcast-shot {
  display: block;
  width: 100%;
  min-height: 100%;
  object-position: top center;
  will-change: auto;
}

.broadcast-scene.is-active .broadcast-shot {
  will-change: transform;
}

.broadcast-shot-order,
.broadcast-shot-plan {
  height: auto;
}

.broadcast-shot-wide {
  height: 100%;
  object-fit: cover;
}

.broadcast-scene.is-active .broadcast-shot-order {
  animation: broadcast-scroll-order 5.8s 0.36s var(--ease-in-out) both;
}

:root[data-theme="dark"] .broadcast-scene.is-active .broadcast-shot-order {
  animation-name: broadcast-scroll-order-long;
}

.broadcast-scene.is-active .broadcast-shot-plan {
  animation: broadcast-scroll-plan 5.8s 0.36s var(--ease-in-out) both;
}

:root[data-theme="dark"] .broadcast-scene.is-active .broadcast-shot-plan {
  animation-name: broadcast-scroll-plan-long;
}

.broadcast-scene.is-active .broadcast-shot-wide {
  animation: broadcast-camera-drift 5.8s 0.22s var(--ease-in-out) both;
}

@keyframes broadcast-scroll-order {
  0%, 14% { transform: translateY(0); }
  78%, 100% { transform: translateY(-12%); }
}

@keyframes broadcast-scroll-order-long {
  0%, 12% { transform: translateY(0); }
  82%, 100% { transform: translateY(-56%); }
}

@keyframes broadcast-scroll-plan {
  0%, 14% { transform: translateY(0); }
  78%, 100% { transform: translateY(-10%); }
}

@keyframes broadcast-scroll-plan-long {
  0%, 14% { transform: translateY(0); }
  78%, 100% { transform: translateY(-24%); }
}

@keyframes broadcast-camera-drift {
  0%, 12% { transform: scale(1.01) translate3d(0, 0, 0); }
  82%, 100% { transform: scale(1.075) translate3d(-1.1%, -1.2%, 0); }
}

.broadcast-scene figcaption {
  position: absolute;
  z-index: 6;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(30px, 5vw, 56px) 15px 14px;
  color: #f5fff8;
  background: linear-gradient(0deg, rgba(2, 4, 3, 0.92), rgba(2, 4, 3, 0));
}

.broadcast-scene figcaption span {
  color: #61f49b;
  font-family: var(--font-mono);
  font-size: clamp(0.52rem, 0.75vw, 0.64rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.broadcast-scene figcaption strong {
  max-width: 68%;
  font-size: clamp(0.76rem, 1.25vw, 1rem);
  line-height: 1.15;
  text-align: right;
}

.broadcast-party-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 28%, rgba(45, 230, 111, 0.31), transparent 31%),
    linear-gradient(130deg, #111313, #18271d 54%, #070807);
}

.broadcast-party-stage::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
}

.broadcast-phone {
  position: absolute;
  display: block;
  height: 91%;
  width: auto;
  object-fit: contain;
  border: 5px solid #0b0c0c;
  border-radius: 18px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.44);
  will-change: auto;
}

.broadcast-scene.is-active .broadcast-phone {
  will-change: transform;
}

.broadcast-phone-front {
  z-index: 3;
  top: 6%;
  left: 24%;
  transform: rotate(-2deg);
}

.broadcast-phone-back {
  z-index: 2;
  top: 12%;
  left: 57%;
  opacity: 0.82;
  transform: rotate(5deg) scale(0.89);
}

.broadcast-scene.is-active .broadcast-phone-front {
  animation: broadcast-phone-front 5.8s var(--ease-in-out) both;
}

.broadcast-scene.is-active .broadcast-phone-back {
  animation: broadcast-phone-back 5.8s var(--ease-in-out) both;
}

@keyframes broadcast-phone-front {
  from { transform: rotate(-3deg) translate3d(0, 2.5%, 0); }
  to { transform: rotate(-1deg) translate3d(0, -1.5%, 0); }
}

@keyframes broadcast-phone-back {
  from { transform: rotate(6deg) scale(0.87) translate3d(0, -1%, 0); }
  to { transform: rotate(4deg) scale(0.92) translate3d(0, 1%, 0); }
}

.broadcast-ai-label {
  position: absolute;
  z-index: 6;
  top: 44px;
  right: 12px;
  padding: 6px 8px;
  color: #06150c;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #61f49b;
  border-radius: 4px;
}

.broadcast-static {
  position: absolute;
  z-index: 12;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 3px),
    repeating-conic-gradient(from 37deg at 52% 46%, #0f0 0 7deg, #00f 7deg 11deg, #f00 11deg 17deg, #020202 17deg 24deg);
  background-size: auto, 7px 7px;
  mix-blend-mode: screen;
}

.broadcast-static i {
  position: absolute;
  right: -10%;
  left: -10%;
  height: 16%;
  opacity: 0.8;
}

.broadcast-static i:nth-child(1) { top: 17%; background: rgba(255, 0, 68, 0.82); }
.broadcast-static i:nth-child(2) { top: 46%; background: rgba(0, 255, 118, 0.72); }
.broadcast-static i:nth-child(3) { top: 71%; background: rgba(25, 83, 255, 0.8); }

.broadcast-showcase.is-switching .broadcast-static {
  opacity: 0.82;
  animation: broadcast-static-flash 430ms steps(2, end) both;
}

.broadcast-showcase.is-switching .broadcast-static i {
  animation: broadcast-static-band 120ms steps(2, end) infinite alternate;
}

@keyframes broadcast-static-flash {
  0% { clip-path: inset(0); transform: translateX(-2%); }
  34% { clip-path: inset(13% 0 3%); transform: translateX(3%); }
  68% { clip-path: inset(2% 0 22%); transform: translateX(-1%); }
  100% { clip-path: inset(0); transform: translateX(0); }
}

@keyframes broadcast-static-band {
  from { transform: translateX(-7%); }
  to { transform: translateX(8%); }
}

.broadcast-progress {
  position: absolute;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
}

.broadcast-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: #61f49b;
  transform: scaleX(0);
  transform-origin: left;
}

.broadcast-showcase[data-playing="true"] .broadcast-progress i {
  animation: broadcast-progress 6.2s linear forwards;
}

@keyframes broadcast-progress {
  to { transform: scaleX(1); }
}

.broadcast-base {
  position: relative;
  width: 108%;
  height: 18px;
  margin-left: -4%;
  background: linear-gradient(180deg, #d4d8d6, #8f9592 62%, #555a58);
  border-radius: 2px 2px 12px 12px;
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.18);
}

.broadcast-base::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 4px;
  background: #353937;
  border-radius: 0 0 50% 50%;
  content: "";
}

.broadcast-base span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 18%;
  height: 5px;
  background: #7b817e;
  border-radius: 0 0 7px 7px;
  transform: translateX(-50%);
}

.broadcast-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.broadcast-toggle,
.broadcast-channels button {
  min-width: 42px;
  min-height: 44px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  cursor: pointer;
}

.broadcast-toggle {
  padding-inline: 14px;
  font-size: 0.78rem;
  font-weight: 720;
}

.broadcast-channels {
  display: flex;
  gap: 6px;
}

.broadcast-channels button {
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 760;
}

.broadcast-channels button.is-active {
  color: var(--button-ink);
  background: var(--green-bright);
  border-color: var(--green);
}

.broadcast-toggle:focus-visible,
.broadcast-channels button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.broadcast-note {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.73rem;
  line-height: 1.45;
}

.system-map {
  position: relative;
  padding: 18px;
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  box-shadow: var(--shadow-map);
}

.system-map::before,
.system-map::after {
  position: absolute;
  width: 17px;
  height: 17px;
  border-color: var(--green);
  content: "";
}

.system-map::before {
  top: -6px;
  left: -6px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.system-map::after {
  right: -6px;
  bottom: -6px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.map-caption,
.map-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.map-caption {
  padding: 2px 4px 14px;
  border-bottom: 1px solid var(--line);
}

.map-caption span:last-child {
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 570;
  letter-spacing: 0;
  text-transform: none;
}

.system-map-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: calc(var(--radius-surface) - 4px);
  contain: paint;
}

.system-map-shader {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 560ms var(--ease-out);
}

.system-map-shader.is-ready {
  opacity: 0.72;
}

:root[data-theme="dark"] .system-map-shader.is-ready {
  opacity: 0.82;
}

.system-map-visual > svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

.map-grid path {
  fill: none;
  stroke: var(--map-grid);
  stroke-width: 1;
}

.map-branches path {
  fill: none;
  stroke: var(--map-branch);
  stroke-width: 1.5;
}

.map-nodes circle {
  fill: var(--white);
  stroke: var(--green-text);
  stroke-width: 2;
}

.signal-route {
  fill: none;
  stroke: var(--green-bright);
  stroke-linecap: square;
  stroke-linejoin: round;
  stroke-width: 6;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: route-draw 1100ms 250ms var(--ease-out) forwards;
}

@keyframes route-draw {
  to { stroke-dashoffset: 0; }
}

.map-hubs rect {
  fill: var(--white);
  stroke: var(--ink);
  stroke-width: 2;
}

.map-hubs text,
.map-labels text {
  fill: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.map-hubs .map-small {
  fill: var(--ink-soft);
  font-size: 11px;
  font-weight: 570;
  letter-spacing: 0;
}

.map-labels text {
  font-size: 10px;
  letter-spacing: 0.06em;
}

.map-legend {
  padding: 14px 4px 2px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.mobile-system-flow {
  display: none;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 7px;
  height: 7px;
  background: var(--white);
  border: 1.5px solid var(--green-text);
  border-radius: 50%;
}

.legend-line {
  width: 22px;
  height: 4px;
  background: var(--green-bright);
}

.proof-band {
  color: var(--on-dark);
  background: var(--panel-green);
}

.proof-band-grid {
  display: grid;
  min-height: 128px;
  align-items: center;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 40px;
}

.proof-band p {
  margin: 0;
}

.proof-band p:first-child {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proof-band p:last-child {
  max-width: 770px;
  font-size: clamp(1.18rem, 2.2vw, 1.75rem);
  line-height: 1.3;
}

.proof-band strong {
  color: var(--green-bright);
  font-weight: 680;
}

.section-heading {
  display: grid;
  align-items: end;
  margin-bottom: clamp(90px, 11vw, 150px);
  grid-template-columns: minmax(0, 0.86fr) minmax(300px, 0.42fr);
  gap: 40px 80px;
}

.section-heading .system-label {
  grid-column: 1 / -1;
  margin-bottom: -8px;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.section-heading > p:last-child {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.case-study {
  position: relative;
  display: grid;
  align-items: center;
  padding-block: clamp(80px, 9vw, 130px);
  border-top: 1px solid var(--line);
  grid-template-areas:
    "index copy media"
    ". engineering engineering";
  grid-template-columns: 70px minmax(300px, 0.84fr) minmax(480px, 1.22fr);
  column-gap: clamp(24px, 4.8vw, 74px);
  row-gap: clamp(52px, 6vw, 88px);
}

.case-study:last-child {
  border-bottom: 1px solid var(--line);
}

.case-reverse {
  grid-template-areas:
    "index media copy"
    ". engineering engineering";
  grid-template-columns: 70px minmax(480px, 1.22fr) minmax(300px, 0.84fr);
}

.randalo-case {
  align-items: start;
  grid-template-areas:
    "index copy"
    "index media"
    ". engineering";
  grid-template-columns: 70px minmax(0, 1fr);
  column-gap: clamp(24px, 4.8vw, 74px);
  row-gap: 46px;
}

.randalo-case .case-copy {
  max-width: 850px;
}

.case-index {
  align-self: start;
  grid-area: index;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 750;
}

.case-index::after {
  display: block;
  width: 1px;
  height: 90px;
  margin: 18px 0 0 9px;
  background: var(--green);
  content: "";
}

.case-copy {
  grid-area: copy;
}

.case-domain {
  margin-bottom: 24px;
}

.case-copy > p:not(.case-domain) {
  color: var(--ink-soft);
  font-size: 1.03rem;
}

.case-features {
  margin: 34px 0 28px;
  border-top: 1px solid var(--line);
}

.case-features > div {
  display: grid;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 98px 1fr;
  gap: 18px;
}

.case-features dt {
  color: var(--green-text);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.case-features dd {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.42;
}

.proof-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.proof-chips li {
  padding: 6px 10px;
  color: var(--green-text);
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  font-size: 0.78rem;
  font-weight: 670;
}

.case-media {
  grid-area: media;
  margin: 0;
}

.media-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 0 2px 12px;
}

.media-topline span:last-child {
  color: var(--ink-soft);
}

.project-image-frame {
  position: relative;
  overflow: hidden;
  background: var(--mint);
  border: 1px solid var(--line);
}

.project-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  color: var(--ink-soft);
  background: var(--mint);
  font-size: 0.85rem;
  text-align: center;
}

.project-image-frame.is-broken .media-fallback {
  display: flex;
}

.case-media figcaption {
  margin-top: 13px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.molderings-stage {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.16fr) minmax(180px, 0.72fr);
  gap: 18px;
  padding: 18px;
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  box-shadow: var(--shadow-media);
}

.molderings-day-plan {
  aspect-ratio: 1191 / 1000;
  background: var(--white);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-paper);
}

.molderings-day-plan img {
  object-fit: contain;
}

.molderings-order {
  width: 94%;
  justify-self: end;
  aspect-ratio: 1191 / 1684;
  background: var(--white);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-paper-strong);
  transform: translateY(18px);
}

.molderings-order img {
  object-fit: contain;
}

:root[data-theme="dark"] .molderings-day-plan {
  aspect-ratio: 1272 / 850;
}

:root[data-theme="dark"] .molderings-order {
  width: 100%;
  aspect-ratio: 768 / 565;
  transform: translateY(28px);
}

.device-stage {
  position: relative;
  min-height: 480px;
  padding: 34px 74px 40px 28px;
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
}

.desktop-shot {
  aspect-ratio: 1.6 / 1;
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-media);
}

.desktop-shot img {
  object-fit: cover;
}

.phone-shot {
  position: absolute;
  z-index: 2;
  right: 19px;
  bottom: 23px;
  width: 23%;
  aspect-ratio: 0.462 / 1;
  background: var(--white);
  border: 5px solid var(--ink);
  border-radius: var(--radius-surface);
  box-shadow: var(--shadow-phone);
}

.phone-shot img {
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-surface);
}

.learning-stage {
  position: relative;
  min-height: 440px;
  padding: 18px;
  background-color: var(--device-stage-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
}

.learning-subjects,
.learning-session {
  background: var(--white);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-media);
}

.learning-subjects {
  width: 82%;
  aspect-ratio: 16 / 9;
}

.learning-session {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 70%;
  aspect-ratio: 119 / 75;
}

.learning-subjects img,
.learning-session img {
  object-fit: cover;
  object-position: top;
}

.randalo-stage {
  position: relative;
  display: grid;
  align-items: flex-start;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 34px 30px;
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
}

.randalo-stage:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

.app-shot {
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 390 / 844;
  background: var(--white);
  border: 5px solid var(--ink);
  border-radius: var(--radius-surface);
  box-shadow: var(--shadow-media);
}

.app-shot img {
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-surface);
}

.app-shot-secondary {
  transform: none;
}

.app-shot-tertiary {
  transform: none;
}

.app-shot-quaternary {
  transform: none;
}

.case-engineering {
  position: relative;
  grid-area: engineering;
  overflow: hidden;
  padding: clamp(28px, 4.2vw, 58px);
  color: var(--on-dark);
  background: var(--panel-ink);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-surface);
}

.case-engineering::before {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(150px, 28%, 360px);
  height: 3px;
  background: var(--green-bright);
  content: "";
}

.engineering-header {
  display: grid;
  align-items: end;
  margin-bottom: clamp(34px, 4vw, 54px);
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.72fr);
  gap: 22px clamp(36px, 6vw, 92px);
}

.engineering-label {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--panel-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 720;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.engineering-label span {
  display: inline-block;
  margin-right: 12px;
  padding: 4px 7px;
  color: var(--button-ink);
  background: var(--green-bright);
  border-radius: var(--radius-control);
}

.engineering-header h4 {
  max-width: 760px;
  margin: 0;
  color: var(--on-dark);
  font-size: clamp(2rem, 3.2vw, 3.45rem);
  font-weight: 710;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.engineering-header > p:last-child {
  margin: 0;
  color: var(--panel-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.engineering-grid {
  display: grid;
  gap: clamp(34px, 4.8vw, 62px);
}

.architecture-artifact {
  min-width: 0;
  margin: 0;
}

.architecture-scroll {
  position: relative;
  min-height: 180px;
  overflow-x: auto;
  padding: 22px 18px;
  background: var(--panel-green-inner);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-control);
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--green-bright) var(--scroll-track);
  scrollbar-width: thin;
}

.architecture-scroll:focus-visible {
  outline: 3px solid var(--green-bright);
  outline-offset: 4px;
}

.architecture-scroll img {
  width: max(100%, 1280px);
  max-width: none;
  height: auto;
}

.architecture-scroll::-webkit-scrollbar {
  height: 8px;
}

.architecture-scroll::-webkit-scrollbar-thumb {
  background: var(--green-bright);
  border-radius: var(--radius-control);
}

.architecture-scroll::-webkit-scrollbar-track {
  background: var(--scroll-track);
}

.architecture-fallback {
  display: none;
  min-height: 136px;
  align-items: center;
  justify-content: center;
  color: var(--panel-muted);
  font-size: 0.84rem;
  text-align: center;
}

.architecture-scroll.is-broken img {
  display: none;
}

.architecture-scroll.is-broken .architecture-fallback {
  display: flex;
}

.architecture-artifact figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 11px;
  color: var(--panel-muted-strong);
  font-size: 0.72rem;
}

.architecture-artifact figcaption::after {
  flex: 0 0 auto;
  color: var(--green-bright);
  font-family: var(--font-mono);
  font-weight: 730;
  letter-spacing: 0.03em;
  content: "Horizontal ziehen  →";
}

.engineering-notes {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.34fr) minmax(300px, 0.72fr);
  gap: clamp(38px, 7vw, 104px);
}

.application-insights h5,
.application-insights h3,
.tech-ledger h5,
.tech-ledger h3 {
  margin: 0 0 22px;
  color: var(--green-bright);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.application-insights ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: insight;
}

.application-insights li {
  display: grid;
  padding: 15px 0;
  border-top: 1px solid var(--panel-line-soft);
  grid-template-columns: 42px minmax(120px, 0.36fr) minmax(0, 1fr);
  gap: 12px 18px;
  counter-increment: insight;
}

.application-insights li:last-child {
  border-bottom: 1px solid var(--panel-line-soft);
}

.application-insights li::before {
  color: var(--green-bright);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 750;
  content: counter(insight, decimal-leading-zero);
}

.application-insights strong {
  color: var(--on-dark);
  font-size: 0.91rem;
  line-height: 1.4;
}

.application-insights span {
  color: var(--panel-muted);
  font-size: 0.84rem;
  line-height: 1.48;
}

.tech-ledger dl {
  margin: 0;
  border-top: 1px solid var(--panel-line-soft);
}

.tech-ledger dl > div {
  padding: 15px 0;
  border-bottom: 1px solid var(--panel-line-soft);
}

.tech-ledger dt {
  margin-bottom: 5px;
  color: var(--panel-muted-strong);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 730;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tech-ledger dd {
  margin: 0;
  color: var(--on-dark);
  font-size: 0.84rem;
  line-height: 1.45;
}

.capabilities {
  background: var(--mint);
}

.capabilities-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(330px, 0.8fr) minmax(480px, 1.1fr);
  gap: clamp(70px, 10vw, 150px);
}

.section-heading.compact {
  display: block;
  margin: 0;
}

.section-heading.compact .system-label {
  margin-bottom: 26px;
}

.section-heading.compact h2 {
  font-size: clamp(2.7rem, 4.8vw, 4.8rem);
}

.section-heading.compact > p:last-child {
  max-width: 520px;
}

.capability-list,
.method-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.capability-list > li {
  display: grid;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  grid-template-columns: 56px 1fr;
  gap: 18px;
}

.capability-list > li:last-child {
  border-bottom: 1px solid var(--line);
}

.capability-list > li > span,
.step-number {
  color: var(--green-text);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 750;
}

.capability-list h3,
.method-steps h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.capability-list p,
.method-steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.48;
}

.method {
  overflow: hidden;
  color: var(--on-dark);
  background: var(--panel-ink);
}

.method-intro {
  display: grid;
  align-items: end;
  margin-bottom: clamp(72px, 9vw, 122px);
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.52fr);
  gap: 30px 80px;
}

.method-intro .system-label {
  grid-column: 1 / -1;
  color: var(--green-bright);
}

.method-intro h2,
.method-intro > p:last-child {
  margin-bottom: 0;
}

.method-intro > p:last-child {
  color: var(--panel-muted);
  font-size: 1.07rem;
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.method-steps li {
  position: relative;
  min-height: 250px;
  padding: 26px 28px 10px;
  border-top: 2px solid var(--green-bright);
  border-right: 1px solid var(--line-dark);
}

.method-steps li:first-child {
  padding-left: 0;
}

.method-steps li:last-child {
  padding-right: 0;
  border-right: 0;
}

.method-steps li::before {
  position: absolute;
  top: -7px;
  left: -1px;
  width: 12px;
  height: 12px;
  background: var(--panel-ink);
  border: 2px solid var(--green-bright);
  border-radius: 50%;
  content: "";
}

.method-steps li:first-child::before {
  left: 0;
}

.step-number {
  display: block;
  margin-bottom: 68px;
  color: var(--green-bright);
}

.method-steps h3 {
  color: var(--on-dark);
}

.method-steps p {
  color: var(--panel-muted-strong);
}

.mcp-section {
  color: var(--on-dark);
  background: var(--panel-green);
}

.mcp-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(320px, 0.86fr) minmax(540px, 1.14fr);
  gap: clamp(60px, 9vw, 130px);
}

.system-label.inverse {
  color: var(--green-bright);
}

.system-label.inverse::before {
  background: var(--green-bright);
}

.mcp-copy h2 {
  font-size: clamp(2.8rem, 4.9vw, 5rem);
}

.mcp-copy > p {
  color: var(--panel-green-copy);
  font-size: 1.05rem;
}

.mcp-principles {
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid var(--panel-line);
  list-style: none;
}

.mcp-principles li {
  position: relative;
  padding: 12px 0 12px 24px;
  border-bottom: 1px solid var(--panel-line);
  font-size: 0.9rem;
}

.mcp-principles li::before {
  position: absolute;
  top: 20px;
  left: 2px;
  width: 8px;
  height: 8px;
  background: var(--green-bright);
  content: "";
}

.mcp-diagram {
  position: relative;
  padding: clamp(30px, 5vw, 58px);
  background: var(--panel-green-inner);
  border: 1px solid var(--panel-line-soft);
  border-radius: var(--radius-surface);
}

.diagram-label {
  margin-bottom: 34px;
  color: var(--green-bright);
}

.diagram-node {
  position: relative;
  z-index: 1;
  padding: 22px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-control);
}

.diagram-node span {
  display: block;
  margin-bottom: 12px;
  color: var(--green-text);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.diagram-node strong {
  display: block;
  margin-bottom: 3px;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.diagram-node small {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.node-mcp {
  color: var(--mcp-ink);
  background: var(--green-bright);
  border-color: var(--green-bright);
}

.node-mcp span,
.node-mcp small {
  color: var(--mcp-muted);
}

.diagram-connector {
  position: relative;
  display: flex;
  height: 66px;
  align-items: center;
  justify-content: center;
  padding-inline: 24px;
  color: var(--panel-flow-copy);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.diagram-connector svg {
  width: 30px;
  height: 54px;
}

.diagram-connector path {
  fill: none;
  stroke: var(--green-bright);
  stroke-width: 2;
}

.diagram-connector span {
  position: absolute;
  left: 24px;
}

.mcp-experience {
  overflow: hidden;
  padding: clamp(22px, 3.5vw, 38px);
  background: var(--panel-green-inner);
  border: 1px solid var(--panel-line-soft);
  border-radius: var(--radius-surface);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.16);
}

.mcp-experience-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--panel-line);
}

.mcp-experience-head span {
  color: var(--green-bright);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mcp-experience-head small {
  max-width: 220px;
  color: var(--panel-muted-strong);
  font-size: 0.69rem;
  line-height: 1.35;
  text-align: right;
}

.mcp-provider-row {
  display: grid;
  margin: 20px 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mcp-provider-row > div {
  display: grid;
  min-width: 0;
  padding: 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-control);
  grid-template-columns: 34px 1fr;
  gap: 1px 10px;
  cursor: default;
}

.mcp-provider-row i {
  display: grid;
  width: 32px;
  height: 32px;
  align-items: center;
  color: var(--button-ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  text-align: center;
  background: var(--green-bright);
  border-radius: 50%;
  grid-row: 1 / 3;
}

.mcp-provider-row strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mcp-provider-row small {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mcp-conversation {
  padding: 17px;
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius-control);
}

.mcp-prompt,
.mcp-answer {
  max-width: 88%;
}

.mcp-prompt {
  margin-left: auto;
  padding: 12px 14px;
  color: #062112;
  background: var(--green-bright);
  border-radius: 12px 12px 3px 12px;
}

.mcp-prompt span,
.mcp-answer > span {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 780;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mcp-prompt p,
.mcp-answer p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.mcp-answer {
  margin-top: 13px;
  padding: 14px;
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: 12px 12px 12px 3px;
}

.mcp-answer > span {
  color: var(--green-text);
}

.mcp-answer ul {
  margin: 12px 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.mcp-answer li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  color: var(--ink-soft);
  font-size: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.mcp-answer li strong {
  color: var(--ink);
  font-family: var(--font-mono);
}

.mcp-demo-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 9px 12px;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 760;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
}

.mcp-source-route {
  display: grid;
  align-items: center;
  margin-top: 18px;
  color: var(--panel-green-copy);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 8px;
}

.mcp-source-route i {
  height: 1px;
  background: var(--green-bright);
}

.mcp-source-route strong {
  padding: 7px 9px;
  color: var(--mcp-ink);
  background: var(--green-bright);
  border-radius: 5px;
}

.mcp-readiness {
  display: grid;
  margin-top: clamp(70px, 8vw, 112px);
  padding-top: clamp(34px, 5vw, 58px);
  border-top: 1px solid var(--panel-line);
  grid-template-columns: minmax(270px, 0.62fr) minmax(560px, 1.38fr);
  gap: 38px clamp(50px, 8vw, 112px);
}

.mcp-readiness .system-label {
  margin-bottom: 18px;
}

.mcp-readiness h3 {
  margin-bottom: 18px;
  color: var(--on-dark);
  font-size: clamp(2rem, 3.3vw, 3.35rem);
}

.mcp-readiness > div > p:last-child {
  color: var(--panel-green-copy);
  font-size: 0.98rem;
}

.mcp-readiness ol {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mcp-readiness li {
  display: grid;
  min-width: 0;
  padding: 18px;
  background: var(--panel-green-inner);
  border: 1px solid var(--panel-line-soft);
  border-radius: var(--radius-control);
  grid-template-columns: 34px 1fr;
  gap: 3px 11px;
}

.mcp-readiness li > span {
  color: var(--green-bright);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 780;
  grid-row: 1 / 3;
}

.mcp-readiness li strong {
  color: var(--on-dark);
  font-size: 0.9rem;
}

.mcp-readiness li small {
  color: var(--panel-muted-strong);
  font-size: 0.72rem;
  line-height: 1.45;
}

.mcp-legal-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px 20px;
  color: var(--panel-green-copy);
  font-size: 0.78rem;
  line-height: 1.55;
  background: var(--panel-green-inner);
  border-left: 3px solid var(--green-bright);
}

.mcp-legal-note strong {
  color: var(--green-bright);
}

.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(320px, 0.78fr) minmax(520px, 1.12fr);
  gap: clamp(70px, 11vw, 160px);
}

.contact-intro {
  position: sticky;
  top: 116px;
}

.contact-intro h2 {
  font-size: clamp(2.8rem, 4.8vw, 4.9rem);
}

.contact-intro > p:not(.system-label):not(.contact-note) {
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 1.07rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 34px 0;
  padding: 25px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-style: normal;
}

.contact-details a {
  min-height: 32px;
  color: var(--green-text);
  font-size: 1.06rem;
  font-weight: 690;
}

.contact-details span {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.contact-note {
  display: flex;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

.contact-note span {
  color: var(--green);
  font-family: var(--font-mono);
}

.contact-form {
  padding: clamp(25px, 4vw, 48px);
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 680;
}

.field label > span,
.required-note span {
  color: var(--green-text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-control);
  outline: 0;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.field textarea {
  min-height: 172px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.field [aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 2px var(--error-ring);
}

.field-hint,
.field-error {
  display: block;
  margin-top: 6px;
  font-size: 0.76rem;
  line-height: 1.4;
}

.field-hint {
  color: var(--ink-soft);
}

.field-error {
  color: var(--error);
  font-weight: 620;
}

.field-error:empty {
  display: none;
}

.checkbox-field {
  display: grid;
  align-items: start;
  grid-template-columns: 24px 1fr;
  gap: 0 10px;
}

.checkbox-field input {
  width: 20px;
  min-height: 20px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.checkbox-field label {
  margin: 0;
  font-weight: 520;
  line-height: 1.45;
}

.checkbox-field .field-error {
  grid-column: 2;
}

.form-submit {
  width: 100%;
  border: 0;
}

.form-status {
  min-height: 1.5em;
  margin: 14px 0 0;
  color: var(--green-text);
  font-size: 0.86rem;
  font-weight: 640;
}

.required-note {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.site-footer {
  padding: 68px 0 24px;
  color: var(--footer-ink);
  background: var(--footer-bg);
}

.footer-row {
  display: grid;
  padding-bottom: 50px;
  grid-template-columns: 1fr 1fr auto;
  gap: 50px;
}

.footer-brand {
  color: var(--on-dark);
}

.footer-brand .brand-route {
  stroke: var(--on-dark);
}

.footer-row > div:first-child p {
  margin: 14px 0 0;
  font-size: 0.88rem;
}

.footer-contact,
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.86rem;
}

.footer-contact a,
.footer-links a {
  min-height: 28px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--footer-line);
  color: var(--footer-muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Legal pages share the same visual system without loading application scripts. */
.legal-page {
  background: var(--mint);
}

.legal-header {
  position: static;
}

.legal-main {
  padding-block: clamp(64px, 9vw, 120px);
}

.legal-copy {
  max-width: 860px;
  padding: clamp(28px, 5vw, 64px);
  background: var(--white);
  border: 1px solid var(--line);
}

.legal-copy > h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.legal-copy > .legal-updated {
  margin-bottom: 54px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.legal-copy .eyebrow {
  margin-bottom: 12px;
  color: var(--green-text);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.legal-copy .legal-meta {
  margin-bottom: 54px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.legal-copy h2 {
  margin: 52px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.1;
}

.legal-copy h3 {
  margin: 30px 0 10px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.legal-copy p,
.legal-copy li,
.legal-copy address {
  color: var(--ink-soft);
}

.legal-copy address {
  font-style: normal;
}

.legal-copy dl > div {
  display: grid;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(150px, 0.4fr) 1fr;
  gap: 20px;
}

.legal-copy dt {
  color: var(--ink);
  font-weight: 680;
}

.legal-copy dd {
  color: var(--ink-soft);
}

.legal-header nav,
.legal-page .site-footer nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.legal-header nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 640;
}

.legal-page .footer-row {
  align-items: center;
  grid-template-columns: 1fr auto;
}

.legal-page .footer-row > p {
  margin: 0;
}

.editorial-note {
  margin: 32px 0;
  padding: 18px 20px;
  color: var(--warning-ink);
  background: var(--warning-bg);
  border: 1px solid var(--warning-line);
  border-top-width: 3px;
  font-size: 0.9rem;
}

@media (hover: hover) and (pointer: fine) {
  .primary-nav > a:not(.button):hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .button:hover {
    background: var(--green-hover);
    border-color: var(--green-hover);
  }

  .text-link:hover {
    color: var(--green-text);
    border-color: var(--green-text);
  }

  .theme-toggle:hover {
    color: var(--green-text);
    background: var(--mint-strong);
    border-color: var(--green-text);
  }
}

@media (max-width: 1120px) {
  :root {
    --shell: min(100% - 40px, 1060px);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.8fr);
    gap: 50px;
  }

  .case-study,
  .case-reverse {
    grid-template-areas:
      "index copy"
      "index media"
      ". engineering";
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .case-copy {
    max-width: 780px;
  }

  .case-media {
    margin-top: 30px;
  }

  .molderings-stage {
    max-width: 850px;
  }

  .randalo-stage {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: clamp(220px, 26vw, 260px);
    justify-content: start;
    padding-bottom: 20px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--green) var(--scroll-track);
    scrollbar-width: thin;
  }

  .theme-toggle {
    min-width: 44px;
    padding-inline: 8px;
  }

  .theme-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .randalo-stage .app-shot {
    scroll-snap-align: start;
    transform: none;
  }

  .capabilities-grid,
  .contact-grid {
    gap: 70px;
  }

  .engineering-notes {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .mcp-grid {
    grid-template-columns: minmax(300px, 0.8fr) minmax(440px, 1fr);
    gap: 60px;
  }
}

@media (max-width: 860px) {
  :root {
    --shell: min(100% - 32px, 760px);
  }

  html {
    scroll-padding-top: 72px;
  }

  .nav-row {
    min-height: 70px;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: -16px;
    left: -16px;
    display: none;
    align-items: stretch;
    padding: 18px 16px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-nav);
  }

  .primary-nav[data-open="true"] {
    display: flex;
    flex-direction: column;
  }

  .primary-nav > a:not(.button) {
    min-height: 48px;
    padding-inline: 4px;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav .button {
    margin-top: 10px;
  }

  .hero {
    min-height: auto;
    padding-top: 70px;
    background: var(--white);
  }

  .hero-grid {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 66px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .system-map {
    max-width: 670px;
  }

  .broadcast-showcase {
    width: min(100%, 670px);
  }

  .proof-band-grid,
  .section-heading,
  .method-intro,
  .capabilities-grid,
  .mcp-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .proof-band-grid {
    min-height: 0;
    padding-block: 32px;
    gap: 12px;
  }

  .section-heading {
    align-items: start;
  }

  .section-heading .system-label,
  .method-intro .system-label {
    grid-column: auto;
  }

  .section-heading .system-label {
    margin-bottom: -14px;
  }

  .section-heading > p:last-child,
  .method-intro > p:last-child {
    max-width: 620px;
  }

  .capabilities-grid,
  .mcp-grid,
  .contact-grid {
    gap: 68px;
  }

  .mcp-readiness {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .engineering-header {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .engineering-label {
    grid-column: auto;
  }

  .method-steps {
    grid-template-columns: 1fr 1fr;
  }

  .method-steps li,
  .method-steps li:first-child,
  .method-steps li:last-child {
    min-height: 230px;
    padding: 24px;
    border-right: 1px solid var(--line-dark);
  }

  .method-steps li:nth-child(2),
  .method-steps li:nth-child(4) {
    border-right: 0;
  }

  .method-steps li:nth-child(n + 3) {
    margin-top: 26px;
  }

  .step-number {
    margin-bottom: 48px;
  }

  .contact-intro {
    position: static;
  }

  .footer-row {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 28px;
    padding-top: 24px;
    border-top: 1px solid var(--footer-line);
  }
}

@media (max-width: 600px) {
  :root {
    --shell: calc(100% - 24px);
  }

  body {
    font-size: 16px;
  }

  .section {
    padding-block: 82px;
  }

  h1 {
    font-size: clamp(3.25rem, 17vw, 4.7rem);
  }

  .hero h1 {
    font-size: clamp(3.25rem, 17vw, 4.7rem);
  }

  h2 {
    font-size: clamp(2.5rem, 13vw, 3.8rem);
  }

  h3 {
    font-size: clamp(1.9rem, 10vw, 2.7rem);
  }

  .brand {
    font-size: 0.98rem;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .hero {
    padding-top: 58px;
  }

  .hero-lead {
    font-size: 1.08rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .hero-actions .button,
  .hero-actions .text-link {
    width: 100%;
    justify-content: space-between;
  }

  .hero-services {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .broadcast-caption {
    font-size: 0.62rem;
  }

  .broadcast-caption span:last-child {
    display: none;
  }

  .broadcast-lid {
    padding: 8px;
    border-radius: 14px 14px 8px 8px;
  }

  .broadcast-camera {
    top: 2px;
    width: 3px;
    height: 3px;
  }

  .broadcast-hud {
    min-height: 28px;
    padding: 6px 8px;
  }

  .broadcast-scene figcaption {
    gap: 10px;
    padding: 30px 10px 9px;
  }

  .broadcast-scene figcaption strong {
    max-width: 70%;
    font-size: 0.68rem;
  }

  .broadcast-phone {
    border-width: 3px;
    border-radius: 11px;
  }

  .broadcast-phone-front {
    left: 18%;
  }

  .broadcast-phone-back {
    left: 55%;
  }

  .broadcast-ai-label {
    top: 34px;
    right: 7px;
    padding: 4px 5px;
    font-size: 0.42rem;
  }

  .broadcast-base {
    height: 13px;
  }

  .broadcast-controls {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
    margin-top: 15px;
  }

  .broadcast-toggle {
    width: 100%;
  }

  .broadcast-channels {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .broadcast-channels button {
    min-width: 0;
    min-height: 48px;
  }

  .broadcast-note {
    font-size: 0.68rem;
  }

  .system-map {
    padding: 11px;
    border-radius: var(--radius-surface);
  }

  .system-map-visual {
    display: none;
  }

  .mobile-system-flow {
    display: grid;
    gap: 0;
    padding: 22px 4px;
  }

  .mobile-flow-node {
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--ink);
    border-radius: var(--radius-control);
  }

  .mobile-flow-node span {
    display: block;
    margin-bottom: 10px;
    color: var(--green-text);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .mobile-flow-node strong,
  .mobile-flow-node small {
    display: block;
  }

  .mobile-flow-node strong {
    font-size: 1.18rem;
    line-height: 1.2;
  }

  .mobile-flow-node small {
    margin-top: 5px;
    color: var(--ink-soft);
    font-size: 0.78rem;
  }

  .mobile-flow-core {
    color: var(--button-ink);
    background: var(--green-bright);
    border-color: var(--green);
  }

  .mobile-flow-link {
    position: relative;
    display: flex;
    height: 60px;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: var(--green-text);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .mobile-flow-link::before {
    position: absolute;
    top: 0;
    bottom: 9px;
    left: 50%;
    width: 2px;
    background: var(--green);
    content: "";
  }

  .mobile-flow-link::after {
    position: absolute;
    bottom: 7px;
    left: calc(50% - 5px);
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--green);
    border-bottom: 2px solid var(--green);
    content: "";
    transform: rotate(45deg);
  }

  .map-caption span:last-child {
    display: none;
  }

  .map-legend {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .section-heading {
    margin-bottom: 70px;
    gap: 32px;
  }

  .case-study,
  .case-reverse {
    padding-block: 60px;
    grid-template-areas:
      "index"
      "copy"
      "media"
      "engineering";
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .case-index {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .case-index::after {
    width: 70px;
    height: 1px;
    margin: 0;
  }

  .case-media {
    margin-top: 16px;
  }

  .case-features > div {
    grid-template-columns: 82px 1fr;
    gap: 10px;
  }

  .case-engineering {
    margin-top: 22px;
    padding: 28px 18px;
  }

  .engineering-header {
    margin-bottom: 34px;
    gap: 18px;
  }

  .engineering-header h4 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .architecture-scroll {
    min-height: 160px;
    padding: 18px 14px;
    scroll-padding-inline: 14px;
  }

  .architecture-scroll img {
    width: 1120px;
  }

  .architecture-artifact figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .engineering-notes {
    gap: 40px;
  }

  .application-insights li {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 5px 12px;
  }

  .application-insights span {
    grid-column: 2;
  }

  .media-topline {
    font-size: 0.7rem;
  }

  .randalo-provenance {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .molderings-stage {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 10px;
    border-radius: var(--radius-surface);
  }

  .molderings-order {
    width: 74%;
    margin-top: -18px;
    transform: none;
  }

  .device-stage {
    min-height: 310px;
    padding: 22px 40px 30px 12px;
    border-radius: var(--radius-surface);
  }

  .phone-shot {
    right: 9px;
    bottom: 14px;
    width: 26%;
    border-width: 3px;
    border-radius: var(--radius-surface);
  }

  .phone-shot img {
    border-radius: var(--radius-control);
  }

  .learning-stage {
    position: static;
    display: grid;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-surface);
  }

  .learning-subjects,
  .learning-session {
    position: static;
    width: 100%;
    margin-top: 0;
  }

  .randalo-stage {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    justify-content: start;
    gap: 12px;
    padding: 24px 18px 20px;
    overflow-x: auto;
    border-radius: var(--radius-surface);
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 18px;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--green) var(--scroll-track);
    scrollbar-width: thin;
  }

  .app-shot {
    width: 100%;
    border-width: 4px;
    border-radius: var(--radius-surface);
    scroll-snap-align: start;
    transform: none;
  }

  .app-shot img {
    border-radius: var(--radius-control);
  }

  .randalo-stage::-webkit-scrollbar {
    height: 7px;
  }

  .randalo-stage::-webkit-scrollbar-thumb {
    background: var(--green);
    border-radius: var(--radius-surface);
  }

  .randalo-stage::-webkit-scrollbar-track {
    background: var(--scroll-track);
    border-radius: var(--radius-surface);
  }

  .capabilities-grid {
    gap: 52px;
  }

  .capability-list > li {
    grid-template-columns: 42px 1fr;
  }

  .method-steps {
    grid-template-columns: 1fr;
  }

  .method-steps li,
  .method-steps li:first-child,
  .method-steps li:last-child {
    min-height: 0;
    margin-top: 0;
    padding: 24px 0 34px;
    border-right: 0;
  }

  .method-steps li + li {
    margin-top: 18px;
  }

  .step-number {
    margin-bottom: 34px;
  }

  .mcp-diagram {
    padding: 24px 16px;
  }

  .mcp-experience {
    padding: 16px;
  }

  .mcp-experience-head small {
    display: none;
  }

  .mcp-provider-row > div {
    padding: 9px 7px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 1px 6px;
  }

  .mcp-provider-row i {
    width: 27px;
    height: 27px;
    font-size: 0.62rem;
  }

  .mcp-provider-row strong {
    font-size: 0.7rem;
  }

  .mcp-provider-row small {
    font-size: 0.55rem;
  }

  .mcp-conversation {
    padding: 11px;
  }

  .mcp-prompt,
  .mcp-answer {
    max-width: 100%;
  }

  .mcp-source-route {
    font-size: 0.62rem;
    gap: 5px;
  }

  .mcp-readiness ol {
    grid-template-columns: 1fr;
  }

  .mcp-legal-note {
    padding: 15px;
  }

  .diagram-node {
    padding: 18px;
  }

  .diagram-connector {
    padding-inline: 12px;
  }

  .diagram-connector span {
    left: 12px;
  }

  .contact-form {
    padding: 22px 16px;
    border-radius: var(--radius-surface);
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-row {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-links {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .legal-copy {
    padding: 25px 18px;
  }

  .legal-header .nav-row {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 12px;
  }

  .legal-header nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .legal-page .footer-row {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .legal-page .site-footer nav {
    flex-wrap: wrap;
  }

  .legal-copy dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 360px) {
  .randalo-stage {
    grid-auto-columns: 86%;
  }

  .hero-services {
    grid-template-columns: 1fr;
  }

  .nav-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .nav-toggle {
    min-width: 48px;
  }

  .case-features > div {
    grid-template-columns: 1fr;
  }

  .mcp-provider-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mcp-provider-row > div:nth-child(3) {
    grid-column: 1 / -1;
  }

  .mcp-provider-row strong,
  .mcp-provider-row small {
    overflow: visible;
    text-overflow: clip;
  }

  .mcp-source-route {
    justify-items: center;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .mcp-source-route i {
    width: 1px;
    height: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .signal-route {
    stroke-dashoffset: 0;
  }

  .system-map-shader {
    display: none;
  }

  .broadcast-static {
    display: none;
  }

  .broadcast-shot,
  .broadcast-phone {
    transform: none !important;
    will-change: auto !important;
  }
}

@media (forced-colors: active) {
  .system-map-shader {
    display: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .contact-form,
  .system-map-shader {
    display: none;
  }

  body {
    color: var(--print-ink);
    background: var(--print-paper);
  }
}

/* Project index and dedicated case-study pages */
.project-index-heading {
  margin-bottom: clamp(60px, 8vw, 104px);
}

.project-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 38px);
}

.project-card {
  min-width: 0;
}

.project-card-link {
  display: grid;
  height: 100%;
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  text-decoration: none;
  transition: border-color 180ms var(--ease-out), transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.project-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 20px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 720;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.project-card-meta span:last-child {
  color: var(--green-text);
}

.project-card-media {
  position: relative;
  min-width: 0;
  height: clamp(280px, 28vw, 390px);
  margin: 0;
  overflow: hidden;
  background: var(--mint);
  border-bottom: 1px solid var(--line);
}

.project-card-media-desktop {
  display: grid;
  padding: clamp(18px, 2.5vw, 34px);
  place-items: center;
}

.project-card-media-desktop .project-image-frame {
  width: 100%;
  height: 100%;
  background: var(--white);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-media);
}

.project-card-media-desktop img {
  object-fit: contain;
  object-position: center top;
  transition: transform 260ms var(--ease-out);
}

.project-card-media-phone {
  display: grid;
  padding: 24px 20px 0;
  place-items: end center;
  background: var(--mint);
}

.project-card-phone-pair {
  display: flex;
  height: calc(100% - 16px);
  align-items: flex-end;
  justify-content: center;
  gap: clamp(12px, 2vw, 24px);
}

.project-card-phone-pair .project-image-frame {
  width: min(38%, 172px);
  aspect-ratio: 390 / 844;
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: var(--radius-surface) var(--radius-surface) 0 0;
  box-shadow: var(--shadow-phone);
}

.project-card-phone-pair .project-image-frame:last-child {
  transform: translateY(18px);
}

.project-card-phone-pair img {
  object-fit: cover;
  object-position: top;
}

.project-card-media-phone figcaption {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 10px;
  left: 12px;
  padding: 7px 9px;
  color: var(--panel-muted);
  background: rgba(9, 9, 10, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-control);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.35;
  text-align: center;
}

.project-card-copy {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: clamp(26px, 3.4vw, 44px);
}

.project-card-copy h3 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3vw, 3.1rem);
}

.project-card-copy > p {
  max-width: 590px;
  margin-bottom: 26px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: auto 0 28px;
  padding: 0;
  list-style: none;
}

.project-card-tags li {
  padding: 6px 9px;
  color: var(--green-text);
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 680;
}

.project-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  color: var(--green-text);
  border-top: 1px solid var(--line);
  font-weight: 730;
}

.project-card-cta span {
  font-size: 1.25rem;
}

.case-page-main {
  overflow: clip;
}

.case-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(46px, 6vw, 82px);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.case-breadcrumb a {
  color: var(--green-text);
}

.case-breadcrumb span[aria-current="page"] {
  color: var(--ink);
}

.project-page-hero {
  padding-block: clamp(64px, 8vw, 118px) clamp(82px, 10vw, 148px);
}

.project-hero-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(330px, 0.82fr) minmax(520px, 1.18fr);
  gap: clamp(48px, 7vw, 104px);
}

.project-hero-copy .system-label {
  margin-bottom: 25px;
}

.project-hero-copy h1 {
  margin-bottom: 30px;
  font-size: clamp(3.25rem, 5.8vw, 6.4rem);
}

.project-hero-lead {
  max-width: 700px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  line-height: 1.52;
}

.project-hero-facts {
  margin: 42px 0 0;
  border-top: 1px solid var(--line);
}

.project-hero-facts > div {
  display: grid;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 112px 1fr;
  gap: 18px;
}

.project-hero-facts dt {
  color: var(--green-text);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 740;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-hero-facts dd {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
}

.project-hero-visual {
  min-width: 0;
  margin: 0;
}

.project-hero-stage {
  display: grid;
  min-height: 520px;
  padding: clamp(18px, 2.7vw, 36px);
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  box-shadow: var(--shadow-map);
  place-items: center;
}

.project-hero-stage .project-image-frame {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--white);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-media);
}

.project-hero-stage img {
  object-fit: contain;
  object-position: center top;
}

.project-hero-stage-phone {
  padding-bottom: 0;
  place-items: end center;
}

.project-hero-stage-phone .project-image-frame {
  width: min(64%, 340px);
  height: auto;
  aspect-ratio: 390 / 844;
  border: 5px solid var(--ink);
  border-bottom: 0;
  border-radius: var(--radius-surface) var(--radius-surface) 0 0;
  box-shadow: var(--shadow-phone);
}

.duempenhof-page .project-hero-stage .project-image-frame {
  aspect-ratio: 2880 / 1600;
}

:root[data-theme="light"] .molderings-page .project-hero-stage .project-image-frame {
  aspect-ratio: 1272 / 850;
}

:root[data-theme="dark"] .molderings-page .project-hero-stage .project-image-frame {
  aspect-ratio: 1191 / 1000;
}

:root[data-theme="light"] .keinbock-page .project-hero-stage .project-image-frame {
  aspect-ratio: 1440 / 900;
}

:root[data-theme="dark"] .keinbock-page .project-hero-stage .project-image-frame {
  aspect-ratio: 1440 / 810;
}

.project-hero-stage-phone img {
  object-fit: cover;
}

.project-hero-visual figcaption,
.project-gallery-figure figcaption {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.5;
}

.project-provenance {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
  padding: 13px 15px;
  color: var(--ink-soft);
  background: var(--mint);
  border-left: 3px solid var(--green);
  font-size: 0.78rem;
}

.project-provenance strong {
  flex: 0 0 auto;
  color: var(--green-text);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-promo {
  padding-block: clamp(86px, 9vw, 136px);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.project-promo-heading {
  display: grid;
  align-items: end;
  margin-bottom: clamp(42px, 6vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  gap: 36px clamp(48px, 8vw, 120px);
}

.project-promo-heading .system-label {
  margin-bottom: 20px;
}

.project-promo-heading h2,
.project-promo-heading p {
  margin-block: 0;
}

.project-promo-heading h2 {
  max-width: 800px;
  font-size: clamp(2.8rem, 5vw, 5.3rem);
}

.project-promo-heading > p {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.project-promo-player {
  color: #ffffff;
}

.project-promo-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050505;
  border: 1px solid #29292e;
  border-radius: var(--radius-surface);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.2);
  isolation: isolate;
}

.project-promo-stage::after {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 48%, rgba(0, 0, 0, 0.7) 100%);
  content: "";
}

.project-promo-scene {
  position: absolute;
  z-index: 1;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease-out);
}

.project-promo-scene.is-active {
  z-index: 2;
  opacity: 1;
}

.promo-scene-film video,
.promo-scene-web > img,
.promo-ambient-image {
  width: 100%;
  height: 100%;
}

.promo-scene-film video {
  display: block;
  background: #050505;
  object-fit: cover;
}

.promo-ambient-image {
  position: absolute;
  inset: 0;
  opacity: 0.58;
  filter: saturate(0.95) brightness(0.72);
  object-fit: cover;
  transform: scale(1.045);
  transition: transform 1800ms var(--ease-in-out), opacity 220ms var(--ease-out);
}

.project-promo-scene.is-active .promo-ambient-image {
  opacity: 0.68;
  transform: scale(1);
}

.promo-scene-phone::after,
.promo-scene-phone-pair::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 52%, transparent 0 20%, rgba(0, 0, 0, 0.55) 74%);
  content: "";
}

.promo-phone-shell {
  position: absolute;
  z-index: 2;
  top: 7%;
  left: 50%;
  height: 82%;
  overflow: hidden;
  aspect-ratio: 390 / 844;
  background: #09090b;
  border: 5px solid #141417;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
  transform: translateX(-50%);
}

.promo-phone-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.08) translateY(1.5%);
  transition: transform 1800ms var(--ease-in-out);
}

.project-promo-scene.is-active .promo-phone-shell img {
  transform: scale(1.03) translateY(-1.5%);
}

.promo-phone-scene-left .promo-phone-shell {
  left: 42%;
}

.promo-phone-scene-right .promo-phone-shell {
  left: 58%;
}

.promo-scene-phone-pair .promo-phone-shell {
  top: 9%;
  height: 78%;
}

.promo-scene-phone-pair .promo-phone-back {
  left: 43%;
  opacity: 0.84;
  transform: translateX(-50%) rotate(-5deg) scale(0.94);
}

.promo-scene-phone-pair .promo-phone-front {
  left: 57%;
  transform: translateX(-50%) rotate(4deg);
}

.promo-scene-web > img {
  display: block;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.04);
  transition: transform 1700ms var(--ease-in-out);
}

.promo-scene-web.is-active > img {
  transform: scale(1);
}

.promo-web-mobile {
  display: none !important;
}

.promo-desktop-surface,
.promo-route-panel {
  overflow: hidden;
  background: #0d0d0f;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

.promo-desktop-surface img,
.promo-route-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

.promo-scene-desktop .promo-desktop-surface {
  position: absolute;
  top: 7%;
  right: 5%;
  bottom: 12%;
  left: 5%;
}

.promo-scene-desktop .promo-desktop-surface img {
  transform: scale(1.035) translateY(0.8%);
  transition: transform 1800ms var(--ease-in-out);
}

.promo-scene-desktop.is-active .promo-desktop-surface img {
  transform: scale(1) translateY(0);
}

.promo-scene-route .promo-route-panel {
  position: absolute;
  top: 50%;
  width: 45%;
  aspect-ratio: 16 / 10;
  transition: transform 1500ms var(--ease-in-out), opacity 220ms var(--ease-out);
}

.promo-route-public {
  left: 4%;
  opacity: 0.72;
  transform: translate(-4%, -50%) scale(0.94);
}

.promo-route-office {
  right: 4%;
  transform: translate(4%, -50%) scale(0.94);
}

.promo-scene-route.is-active .promo-route-public {
  opacity: 1;
  transform: translate(0, -50%) scale(1);
}

.promo-scene-route.is-active .promo-route-office {
  transform: translate(0, -50%) scale(1);
}

.promo-route-line {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  width: 18%;
  padding: 10px 12px;
  color: #d7ffe8;
  background: rgba(5, 5, 5, 0.9);
  border: 1px solid rgba(53, 223, 128, 0.6);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  transform: translate(-50%, -50%);
}

.promo-route-line i {
  position: relative;
  align-self: center;
  height: 1px;
  overflow: visible;
  background: #35df80;
}

.promo-route-line i::after {
  position: absolute;
  top: 50%;
  right: -1px;
  width: 6px;
  height: 6px;
  border-top: 1px solid #35df80;
  border-right: 1px solid #35df80;
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.promo-scene-device-pair .promo-desktop-surface {
  position: absolute;
  top: 9%;
  right: 13%;
  bottom: 15%;
  left: 4%;
}

.promo-mobile-surface {
  position: absolute;
  z-index: 2;
  right: 6%;
  bottom: 8%;
  width: 20%;
  overflow: hidden;
  aspect-ratio: 390 / 844;
  background: #09090b;
  border: 5px solid #151518;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.promo-mobile-surface img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.project-promo-hud {
  position: absolute;
  z-index: 6;
  bottom: 46px;
  left: clamp(18px, 3vw, 38px);
  display: flex;
  align-items: center;
  max-width: calc(100% - 48px);
  gap: 14px;
  pointer-events: none;
}

.project-promo-hud span {
  color: #35df80;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 760;
}

.project-promo-hud strong {
  color: #ffffff;
  font-size: clamp(1rem, 2vw, 1.45rem);
  line-height: 1.12;
}

.project-promo-media-label {
  position: absolute;
  z-index: 6;
  right: 16px;
  bottom: 14px;
  left: 16px;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  line-height: 1.35;
  pointer-events: none;
}

.project-promo-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  padding: 10px;
  color: #ffffff;
  background: #0c0c0e;
  border: 1px solid #29292e;
  border-radius: var(--radius-control);
}

.project-promo-chapters {
  display: flex;
  gap: 6px;
}

.project-promo-chapters button,
.project-promo-toggle {
  min-height: 44px;
  color: #bdbdc5;
  background: #151518;
  border: 1px solid #34343a;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 760;
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 120ms var(--ease-out);
}

.project-promo-chapters button {
  width: 44px;
  padding: 0;
  font-size: 0.68rem;
}

.project-promo-chapters button.is-active {
  color: #04160e;
  background: #35df80;
  border-color: #35df80;
}

.project-promo-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 164px;
  padding: 0 16px;
  font-size: 0.68rem;
  gap: 20px;
}

.project-promo-toggle[aria-pressed="true"] {
  color: #ffffff;
  border-color: #35df80;
}

.project-promo-chapters button:focus-visible,
.project-promo-toggle:focus-visible {
  outline: 3px solid rgba(53, 223, 128, 0.35);
  outline-offset: 2px;
}

.project-promo-note {
  max-width: 940px;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.52;
}

@media (hover: hover) and (pointer: fine) {
  .project-promo-chapters button:hover,
  .project-promo-toggle:hover {
    color: #ffffff;
    border-color: #35df80;
    transform: translateY(-1px);
  }
}

.project-business {
  background: var(--mint);
}

.project-business-intro {
  display: grid;
  align-items: start;
  margin-bottom: clamp(62px, 8vw, 108px);
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1.28fr);
  gap: clamp(48px, 9vw, 140px);
}

.project-business-intro h2 {
  margin: 0;
  font-size: clamp(2.8rem, 4.8vw, 5.1rem);
}

.project-business-intro-copy {
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.project-business-intro-copy p:last-child {
  margin-bottom: 0;
}

.project-value-grid {
  display: grid;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-value-item {
  padding: clamp(28px, 4vw, 50px);
  border-right: 1px solid var(--line);
}

.project-value-item:last-child {
  border-right: 0;
}

.project-value-item > span {
  display: block;
  margin-bottom: 36px;
  color: var(--green-text);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 750;
}

.project-value-item h3 {
  margin-bottom: 16px;
  font-size: clamp(1.65rem, 2.4vw, 2.45rem);
}

.project-value-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.91rem;
}

.project-workflow {
  background: var(--white);
}

.project-section-heading {
  display: grid;
  align-items: end;
  margin-bottom: clamp(56px, 7vw, 96px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.46fr);
  gap: 32px 80px;
}

.project-section-heading .system-label {
  grid-column: 1 / -1;
  margin-bottom: -8px;
}

.project-section-heading h2,
.project-section-heading p {
  margin: 0;
}

.project-section-heading h2 {
  font-size: clamp(2.7rem, 4.8vw, 5rem);
}

.project-section-heading > p:last-child {
  color: var(--ink-soft);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.workflow-step {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-right: 0;
}

.workflow-step:last-child {
  border-right: 1px solid var(--line);
}

.workflow-step > span {
  display: block;
  margin-bottom: 60px;
  color: var(--green-text);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 750;
}

.workflow-step h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.workflow-step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.project-gallery-section {
  background: var(--mint);
}

.project-gallery-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: clamp(44px, 7vw, 100px);
}

.project-gallery-figure {
  min-width: 0;
  margin: 0;
}

.project-gallery-frame {
  display: grid;
  min-height: 440px;
  padding: clamp(16px, 2.5vw, 30px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  box-shadow: var(--shadow-media);
  place-items: center;
}

.project-gallery-frame .project-image-frame {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-control);
}

.project-gallery-frame img {
  object-fit: contain;
  object-position: center top;
}

.project-gallery-frame-phone {
  min-height: 600px;
  padding-bottom: 0;
  place-items: end center;
}

.project-gallery-frame-phone .project-image-frame {
  width: min(64%, 320px);
  height: auto;
  aspect-ratio: 390 / 844;
  border: 5px solid var(--ink);
  border-bottom: 0;
  border-radius: var(--radius-surface) var(--radius-surface) 0 0;
}

:root[data-theme="light"] .molderings-page .project-gallery-frame .project-image-frame {
  aspect-ratio: 768 / 565;
}

:root[data-theme="dark"] .molderings-page .project-gallery-frame .project-image-frame {
  width: min(72%, 520px);
  aspect-ratio: 1191 / 1684;
}

.keinbock-page .project-gallery-frame .project-image-frame {
  aspect-ratio: 16 / 10;
}

.project-gallery-frame-phone img {
  object-fit: cover;
}

.project-insight-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
  counter-reset: detail;
}

.project-insight-list li {
  display: grid;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  counter-increment: detail;
}

.project-insight-list li::before {
  color: var(--green-text);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 750;
  content: counter(detail, decimal-leading-zero);
}

.project-insight-list strong,
.project-insight-list span {
  grid-column: 2;
}

.project-insight-list strong {
  color: var(--ink);
  font-size: 1rem;
}

.project-insight-list span {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.52;
}

.project-randalo-gallery {
  grid-column: 1 / -1;
}

.project-randalo-gallery .randalo-stage {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-randalo-insights {
  width: min(100%, 900px);
  grid-column: 1 / -1;
  justify-self: center;
}

.engineering-header h2 {
  max-width: 760px;
  margin: 0;
  color: var(--on-dark);
  font-size: clamp(2rem, 3.2vw, 3.45rem);
  font-weight: 710;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.project-engineering-wrap {
  padding-block: clamp(88px, 10vw, 150px);
  background: var(--white);
}

.project-engineering-wrap .case-engineering {
  grid-area: auto;
}

.engineering-principles {
  display: grid;
  margin-top: clamp(40px, 5vw, 68px);
  border-top: 1px solid var(--panel-line-soft);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.engineering-principle {
  padding: 24px 24px 0 0;
  border-right: 1px solid var(--panel-line-soft);
}

.engineering-principle + .engineering-principle {
  padding-left: 24px;
}

.engineering-principle:last-child {
  padding-right: 0;
  border-right: 0;
}

.engineering-principle span {
  display: block;
  margin-bottom: 24px;
  color: var(--green-bright);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 740;
}

.engineering-principle h5,
.engineering-principle h3 {
  margin: 0 0 10px;
  color: var(--on-dark);
  font-size: 1.08rem;
}

.engineering-principle p {
  margin: 0;
  color: var(--panel-muted);
  font-size: 0.82rem;
}

.project-end {
  padding-block: clamp(72px, 8vw, 112px);
  background: var(--mint);
}

.project-pagination {
  display: grid;
  margin-bottom: clamp(72px, 8vw, 110px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-pagination a {
  display: grid;
  min-height: 150px;
  padding: 28px;
  color: var(--ink);
  text-decoration: none;
}

.project-pagination a + a {
  border-left: 1px solid var(--line);
  text-align: right;
}

.project-pagination span {
  color: var(--green-text);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-pagination strong {
  align-self: end;
  font-size: clamp(1.35rem, 2.2vw, 2.2rem);
  line-height: 1.1;
}

.project-contact-cta {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
}

.project-contact-cta h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 5.3rem);
}

@media (hover: hover) and (pointer: fine) {
  .project-card-link:hover {
    border-color: var(--green);
    box-shadow: var(--shadow-map);
    transform: translateY(-4px);
  }

  .project-card-link:hover .project-card-media-desktop img {
    transform: scale(1.018);
  }

  .project-pagination a:hover strong {
    color: var(--green-text);
  }
}

@media (max-width: 1120px) {
  .project-hero-grid {
    grid-template-columns: minmax(300px, 0.8fr) minmax(460px, 1.2fr);
    gap: 50px;
  }

  .project-hero-stage {
    min-height: 460px;
  }

  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-step:nth-child(2) {
    border-right: 1px solid var(--line);
  }

  .workflow-step:nth-child(n + 3) {
    border-top: 0;
  }
}

@media (max-width: 860px) {
  .project-card-grid,
  .project-hero-grid,
  .project-business-intro,
  .project-section-heading,
  .project-promo-heading,
  .project-gallery-grid {
    grid-template-columns: 1fr;
  }

  .project-promo-heading {
    gap: 24px;
  }

  .project-card-copy {
    min-height: 0;
  }

  .project-card-tags {
    margin-top: 8px;
  }

  .project-section-heading .system-label {
    grid-column: auto;
  }

  .project-hero-copy {
    max-width: 720px;
  }

  .project-hero-stage {
    min-height: 520px;
  }

  .project-value-grid {
    grid-template-columns: 1fr;
  }

  .project-value-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-value-item:last-child {
    border-bottom: 0;
  }

  .project-gallery-grid {
    gap: 46px;
  }

  .project-gallery-copy {
    max-width: 720px;
  }

  .engineering-principles {
    grid-template-columns: 1fr;
  }

  .engineering-principle,
  .engineering-principle + .engineering-principle {
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--panel-line-soft);
  }

  .engineering-principle:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 600px) {
  .project-card-media {
    height: 300px;
  }

  .project-card-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
  }

  .project-card-copy {
    padding: 24px 18px;
  }

  .project-card-copy h3 {
    font-size: clamp(1.85rem, 10vw, 2.55rem);
  }

  .project-card-media-phone {
    padding-inline: 12px;
  }

  .project-card-phone-pair .project-image-frame {
    width: min(42%, 150px);
    border-width: 3px;
  }

  .case-breadcrumb {
    margin-bottom: 42px;
  }

  .project-page-hero {
    padding-top: 50px;
  }

  .project-hero-copy h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
    overflow-wrap: anywhere;
  }

  .engineering-header h2 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .project-hero-facts > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .project-hero-stage {
    min-height: 300px;
    padding: 10px;
  }

  .project-hero-stage-phone {
    min-height: 460px;
    padding-bottom: 0;
  }

  .project-hero-stage-phone .project-image-frame {
    width: min(78%, 280px);
    border-width: 4px;
  }

  .project-provenance {
    flex-direction: column;
  }

  .project-promo {
    padding-block: 72px;
  }

  .project-promo-heading h2 {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .project-promo-stage {
    aspect-ratio: 4 / 5;
    border-radius: 10px;
  }

  .project-promo-hud {
    bottom: 54px;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .project-promo-hud strong {
    max-width: 260px;
    font-size: 1rem;
  }

  .project-promo-media-label {
    font-size: 0.52rem;
  }

  .project-promo-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .project-promo-chapters {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
  }

  .project-promo-chapters button {
    width: 100%;
    min-height: 48px;
  }

  .project-promo-toggle {
    width: 100%;
    min-height: 48px;
  }

  .promo-phone-shell {
    top: 8%;
    height: 76%;
    border-width: 4px;
    border-radius: 22px;
  }

  .promo-phone-scene-left .promo-phone-shell,
  .promo-phone-scene-right .promo-phone-shell {
    left: 50%;
  }

  .promo-scene-phone-pair .promo-phone-shell {
    top: 12%;
    height: 68%;
  }

  .promo-scene-phone-pair .promo-phone-back {
    left: 39%;
  }

  .promo-scene-phone-pair .promo-phone-front {
    left: 61%;
  }

  .promo-web-desktop {
    display: none !important;
  }

  .promo-web-mobile {
    display: block !important;
    object-fit: cover !important;
    object-position: center top !important;
  }

  .promo-scene-route .promo-route-panel {
    width: 78%;
    aspect-ratio: 16 / 10;
  }

  .promo-route-public {
    top: 28% !important;
    left: 3%;
  }

  .promo-route-office {
    top: 68% !important;
    right: 3%;
  }

  .promo-route-line {
    top: 49%;
    width: 56%;
  }

  .promo-scene-desktop .promo-desktop-surface {
    top: 14%;
    right: 3%;
    bottom: 20%;
    left: 3%;
  }

  .promo-scene-device-pair .promo-desktop-surface {
    top: 15%;
    right: 3%;
    bottom: 34%;
    left: 3%;
  }

  .promo-mobile-surface {
    right: 7%;
    bottom: 8%;
    width: 32%;
    border-width: 4px;
    border-radius: 18px;
  }

  .project-business-intro {
    gap: 32px;
  }

  .project-value-item {
    padding: 30px 0;
  }

  .project-value-item > span {
    margin-bottom: 24px;
  }

  .project-section-heading {
    gap: 28px;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .workflow-step,
  .workflow-step:nth-child(2),
  .workflow-step:nth-child(n + 3),
  .workflow-step:last-child {
    min-height: 0;
    border: 1px solid var(--line);
    border-bottom: 0;
  }

  .workflow-step:last-child {
    border-bottom: 1px solid var(--line);
  }

  .workflow-step > span {
    margin-bottom: 36px;
  }

  .project-gallery-frame {
    min-height: 290px;
    padding: 10px;
  }

  .project-gallery-frame-phone {
    min-height: 510px;
    padding-bottom: 0;
  }

  .project-gallery-frame-phone .project-image-frame {
    width: min(78%, 280px);
    border-width: 4px;
  }

  .project-randalo-gallery .randalo-stage {
    grid-template-columns: none;
  }

  .project-pagination {
    grid-template-columns: 1fr;
  }

  .project-pagination a + a {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .project-contact-cta {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .project-contact-cta .button {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-promo-scene {
    transition-duration: 160ms;
  }

  .project-promo-scene img,
  .project-promo-scene video,
  .promo-route-panel {
    transform: none !important;
    transition: none !important;
  }
}

@media (max-width: 360px) {
  .project-promo-controls {
    padding: 3px;
  }

  .project-promo-chapters {
    gap: 0;
  }

  .project-promo-chapters button {
    min-width: 44px;
    border-radius: 2px;
  }
}

/* Software configurator */

.builder-hero {
  padding-block: clamp(70px, 8vw, 126px);
  background:
    linear-gradient(var(--map-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--map-grid) 1px, transparent 1px),
    var(--white);
  background-size: 80px 80px;
}

.builder-hero > .shell > .system-label {
  margin-bottom: clamp(42px, 6vw, 76px);
}

.builder-hero-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.25fr) minmax(390px, 0.65fr);
  gap: clamp(56px, 8vw, 120px);
}

.builder-hero h1 {
  margin-bottom: 36px;
  font-size: clamp(3.8rem, 7.4vw, 7.6rem);
}

.builder-hero-grid > div:first-child > p {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: clamp(1.12rem, 1.7vw, 1.42rem);
}

.builder-base-card {
  padding: clamp(28px, 4vw, 46px);
  color: var(--on-dark);
  background: var(--panel-ink);
  border-top: 6px solid var(--green-bright);
  box-shadow: var(--shadow-paper-strong);
}

.builder-base-card > span {
  display: block;
  margin-bottom: 18px;
  color: var(--green-bright);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.builder-base-card > strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(2.4rem, 4.8vw, 4.8rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.builder-base-card > strong small {
  color: var(--panel-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
}

.builder-base-card h2 {
  margin-bottom: 28px;
  color: var(--on-dark);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.builder-base-card ul {
  padding: 0;
  margin: 0 0 30px;
  list-style: none;
  border-top: 1px solid var(--panel-line);
}

.builder-base-card li {
  position: relative;
  padding: 12px 0 12px 24px;
  color: var(--panel-green-copy);
  border-bottom: 1px solid var(--panel-line);
  font-size: 0.87rem;
}

.builder-base-card li::before {
  position: absolute;
  top: 13px;
  left: 0;
  color: var(--green-bright);
  content: "✓";
  font-weight: 800;
}

.builder-base-card > p {
  margin: 0;
  color: var(--panel-muted);
  font-size: 0.72rem;
}

.builder-section {
  background: var(--mint);
  border-block: 1px solid var(--line);
}

.builder-heading {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.65fr);
  gap: clamp(50px, 8vw, 120px);
  margin-bottom: 60px;
}

.builder-heading h2 {
  margin-bottom: 24px;
}

.builder-heading > div:first-child > p:last-child {
  max-width: 700px;
  color: var(--ink-soft);
}

.builder-discount-table {
  border-top: 1px solid var(--line);
}

.builder-discount-table > div {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.builder-discount-table span {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.builder-discount-table strong {
  color: var(--green-text);
  font-size: 1.35rem;
}

.builder-presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
}

.builder-presets > span {
  margin: 0 10px 0 2px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 740;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.builder-presets button {
  min-height: 40px;
  padding: 7px 11px;
  color: var(--ink);
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  font-size: 0.74rem;
  font-weight: 670;
}

.builder-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: 24px;
}

.builder-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.builder-module {
  position: relative;
  display: grid;
  min-height: 260px;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr auto;
  gap: 16px 12px;
  padding: 20px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  cursor: pointer;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out), transform 120ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.builder-module.is-selected {
  background: color-mix(in srgb, var(--mint-strong) 70%, var(--white));
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
}

.builder-module-check {
  position: relative;
  grid-column: 1;
  grid-row: 1;
}

.builder-module-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.builder-module-check i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: transparent;
  background: var(--white);
  border: 1px solid var(--field-border);
  border-radius: 4px;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 800;
}

.builder-module-check input:checked + i {
  color: var(--button-ink);
  background: var(--green-bright);
  border-color: var(--green-bright);
}

.builder-module-check input:focus-visible + i {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

.builder-module-number {
  align-self: center;
  grid-column: 3;
  grid-row: 1;
  color: var(--green-text);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 760;
}

.builder-module-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  grid-column: 1 / -1;
  grid-row: 2;
}

.builder-module-copy strong {
  margin-bottom: 10px;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.builder-module-copy > span {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.builder-module-copy small {
  margin-top: auto;
  padding-top: 12px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  line-height: 1.5;
}

.builder-module-price {
  grid-column: 1 / -1;
  grid-row: 3;
  font-size: 1.18rem;
  font-weight: 750;
}

.builder-module-price small {
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 600;
}

.builder-summary {
  position: sticky;
  top: 98px;
  padding: 24px;
  color: var(--on-dark);
  background: var(--panel-ink);
  border-top: 5px solid var(--green-bright);
  box-shadow: var(--shadow-paper-strong);
}

.builder-summary-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.builder-summary-head span {
  color: var(--green-bright);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.builder-summary-head h2 {
  margin: 7px 0 0;
  color: var(--on-dark);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.builder-summary-head button {
  min-height: 36px;
  padding: 7px 9px;
  color: var(--panel-muted);
  background: transparent;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-control);
  font-size: 0.62rem;
}

.builder-selection-list {
  max-height: 158px;
  padding: 0;
  margin: 0 0 18px;
  overflow-y: auto;
  list-style: none;
  border-top: 1px solid var(--panel-line);
  scrollbar-color: var(--green-bright) rgba(255, 255, 255, 0.12);
  scrollbar-width: thin;
}

.builder-selection-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  color: var(--panel-green-copy);
  border-bottom: 1px solid var(--panel-line);
  font-size: 0.68rem;
}

.builder-selection-list li.is-empty {
  color: var(--panel-muted);
}

.builder-selection-list strong {
  flex: 0 0 auto;
  color: var(--on-dark);
  font-size: 0.66rem;
}

.builder-calculation {
  margin: 0;
}

.builder-calculation > div {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--panel-green-copy);
  font-size: 0.72rem;
}

.builder-calculation dd {
  flex: 0 0 auto;
  font-weight: 700;
}

.builder-calculation .builder-discount-row {
  color: var(--green-bright);
}

.builder-discount-row dt span {
  margin-left: 5px;
  padding: 2px 5px;
  color: var(--button-ink);
  background: var(--green-bright);
  border-radius: 3px;
  font-size: 0.58rem;
  font-weight: 800;
}

.builder-calculation .builder-total-row {
  min-height: 62px;
  margin-block: 10px 4px;
  padding-block: 12px;
  color: var(--on-dark);
  border-block: 1px solid var(--panel-line);
  font-size: 0.9rem;
}

.builder-total-row dd {
  color: var(--green-bright);
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  letter-spacing: -0.04em;
}

.builder-discount-message {
  margin: 14px 0;
  padding: 10px;
  color: var(--panel-green-copy);
  background: var(--panel-green-inner);
  border-left: 3px solid var(--green-bright);
  font-size: 0.65rem;
}

.builder-delivery {
  display: grid;
  gap: 2px;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-line);
}

.builder-delivery span,
.builder-delivery small {
  color: var(--panel-muted);
  font-size: 0.6rem;
}

.builder-delivery strong {
  color: var(--on-dark);
  font-size: 1.2rem;
}

.builder-summary > .button {
  width: 100%;
  justify-content: space-between;
}

.builder-fineprint {
  margin: 14px 0 0;
  color: var(--panel-muted);
  font-size: 0.6rem;
  line-height: 1.5;
}

.delivery-section {
  color: var(--on-dark);
  background: #050505;
}

.delivery-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.65fr);
  gap: clamp(54px, 8vw, 120px);
  margin-bottom: 70px;
}

.delivery-heading h2 {
  margin: 0;
  color: var(--on-dark);
}

.delivery-heading > p:last-child {
  align-self: end;
  margin: 0;
  color: #b8c4bd;
  font-size: 1.05rem;
}

.delivery-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  margin: 0 0 70px;
  list-style: none;
  border-top: 1px solid #39423d;
  border-bottom: 1px solid #39423d;
}

.delivery-timeline li {
  min-height: 300px;
  padding: 24px;
  border-right: 1px solid #39423d;
}

.delivery-timeline li:last-child {
  border-right: 0;
}

.delivery-timeline li > span {
  display: block;
  margin-bottom: 90px;
  color: var(--green-bright);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.delivery-timeline h3 {
  margin-bottom: 14px;
  color: var(--on-dark);
  font-size: 1.55rem;
}

.delivery-timeline p {
  margin: 0;
  color: #aebbb3;
  font-size: 0.82rem;
}

.delivery-proof {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.delivery-proof article {
  padding: clamp(26px, 4vw, 46px);
  background: #101211;
  border: 1px solid #39423d;
}

.delivery-proof article > span {
  color: var(--green-bright);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 760;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.delivery-proof h3 {
  max-width: 540px;
  margin: 40px 0 16px;
  color: var(--on-dark);
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.delivery-proof p {
  max-width: 570px;
  color: #aebbb3;
}

.delivery-proof a {
  color: var(--green-bright);
  font-weight: 700;
  text-decoration: none;
}

.builder-scope {
  background: var(--white);
}

.builder-scope-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.75fr);
  gap: clamp(60px, 9vw, 140px);
}

.builder-scope h2 {
  margin: 0;
}

.builder-scope dl {
  margin: 0 0 36px;
  border-top: 1px solid var(--line);
}

.builder-scope dl > div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 24px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}

.builder-scope dt {
  color: var(--green-text);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.builder-scope dd {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

@media (hover: hover) and (pointer: fine) {
  .builder-module:hover {
    border-color: var(--green);
    box-shadow: var(--shadow-map);
    transform: translateY(-2px);
  }

  .builder-presets button:hover,
  .builder-summary-head button:hover {
    color: var(--green-text);
    border-color: var(--green);
  }
}

@media (max-width: 1120px) {
  .builder-hero-grid,
  .builder-heading {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
    gap: 48px;
  }

  .builder-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .builder-modules {
    grid-template-columns: 1fr;
  }

  .delivery-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .delivery-timeline li:nth-child(2) {
    border-right: 0;
  }

  .delivery-timeline li:nth-child(-n + 2) {
    border-bottom: 1px solid #39423d;
  }
}

@media (max-width: 860px) {
  .builder-hero-grid,
  .builder-heading,
  .builder-layout,
  .delivery-heading,
  .builder-scope-grid {
    grid-template-columns: 1fr;
  }

  .builder-summary {
    position: static;
  }

  .delivery-proof {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .builder-hero {
    padding-top: 54px;
    background-size: 64px 64px;
  }

  .builder-hero h1 {
    font-size: clamp(3.1rem, 15vw, 4.6rem);
  }

  .builder-heading > * {
    min-width: 0;
  }

  .builder-heading h2 {
    font-size: clamp(2.4rem, 12vw, 3.35rem);
    overflow-wrap: anywhere;
  }

  .builder-base-card {
    padding: 28px 22px;
  }

  .builder-presets {
    align-items: stretch;
    flex-direction: column;
  }

  .builder-presets > span {
    margin-bottom: 6px;
  }

  .builder-presets button {
    width: 100%;
    min-height: 46px;
    text-align: left;
  }

  .builder-module {
    min-height: 0;
  }

  .builder-summary {
    padding: 22px 18px;
  }

  .delivery-timeline {
    grid-template-columns: 1fr;
  }

  .delivery-timeline li,
  .delivery-timeline li:nth-child(2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #39423d;
  }

  .delivery-timeline li:last-child {
    border-bottom: 0;
  }

  .delivery-timeline li > span {
    margin-bottom: 48px;
  }

  .builder-scope dl > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .builder-scope .button {
    width: 100%;
    justify-content: space-between;
  }
}

.builder-teaser,
.project-tour-callout {
  color: var(--on-dark);
  background: var(--panel-ink);
}

.builder-teaser-grid {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.65fr);
  gap: clamp(60px, 9vw, 140px);
}

.builder-teaser h2 {
  max-width: 840px;
  color: var(--on-dark);
}

.builder-teaser-grid > div > p:not(.system-label) {
  max-width: 700px;
  color: var(--panel-green-copy);
  font-size: 1.06rem;
}

.builder-teaser-grid .button {
  margin-top: 18px;
}

.builder-teaser-facts {
  margin: 0;
  border-top: 1px solid var(--panel-line);
}

.builder-teaser-facts > div {
  display: grid;
  align-items: baseline;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 22px;
  padding-block: 18px;
  border-bottom: 1px solid var(--panel-line);
}

.builder-teaser-facts dt {
  color: var(--green-bright);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.builder-teaser-facts dd {
  color: var(--on-dark);
  font-size: clamp(1.08rem, 1.7vw, 1.42rem);
  font-weight: 690;
}

.builder-teaser-facts small {
  color: var(--panel-muted);
  font-size: 0.62rem;
}

.project-tour-callout {
  padding-block: clamp(66px, 8vw, 110px);
  border-bottom: 1px solid var(--panel-line);
}

.project-tour-callout-grid {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 60px;
}

.project-tour-callout h2 {
  max-width: 900px;
  margin-bottom: 24px;
  color: var(--on-dark);
  font-size: clamp(2.7rem, 5.4vw, 5.4rem);
}

.project-tour-callout p:not(.system-label) {
  max-width: 760px;
  margin: 0;
  color: var(--panel-green-copy);
}

.project-tour-callout .button {
  min-width: 220px;
  justify-content: space-between;
}

@media (max-width: 860px) {
  .builder-teaser-grid,
  .project-tour-callout-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .project-tour-callout .button {
    justify-self: start;
  }
}

@media (max-width: 600px) {
  .builder-teaser-facts > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .builder-teaser .button,
  .project-tour-callout .button {
    width: 100%;
    justify-content: space-between;
  }
}

/* Theme-Auswahl der Randalo-App: sechs Aufnahmen derselben Ansicht. */
.randalo-theme-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 26px;
}

.randalo-theme-card {
  display: flex;
  flex-direction: column;
}

.randalo-theme-label {
  padding-bottom: 10px;
}

@media (max-width: 900px) {
  .randalo-theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
  }
}

@media (max-width: 560px) {
  .randalo-theme-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .randalo-theme-label {
    flex-direction: row;
    align-items: baseline;
  }
}
