:root {
  --bg: #f4f1ea;
  --paper: #fbf8f1;
  --surface: #ede8dd;
  --surface-strong: #e3dccf;
  --ink: #2a2927;
  --ink-strong: #121312;
  --muted: #6e675e;
  --muted-light: #91887b;
  --line: #d8d0c2;
  --line-strong: #b9ae9d;
  --accent: #263f4b;
  --accent-strong: #111c22;
  --accent-soft: #e4e8e5;
  --accent-line: #9aa9aa;
  --link: #223c4a;
  --sans: Futura, "Futura PT", "Futura Std", "Avenir Next", Avenir, "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, ui-monospace, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(18, 19, 18, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(18, 19, 18, 0.028) 1px, transparent 1px),
    var(--bg);
  background-size: 42px 42px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 248, 241, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(1120px, calc(100% - 48px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.brand {
  margin-right: 28px;
  color: var(--ink-strong);
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.nav a:not(.brand) {
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 500;
}

.nav a:not(.brand):hover,
.nav a.active {
  color: var(--accent);
  text-decoration: none;
}

.nav a.active {
  font-weight: 700;
}

.shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 64px;
  padding: 56px 0 96px;
}

.sidebar {
  position: sticky;
  top: 112px;
  align-self: start;
}

.portrait-wrap {
  width: 124px;
  height: 154px;
  margin-bottom: 16px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 50% / 42%;
  background: var(--paper);
  box-shadow: 0 14px 36px rgba(37, 34, 29, 0.08);
  overflow: hidden;
}

.portrait {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.02);
}

.side-name {
  margin: 0 0 7px;
  color: var(--ink-strong);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.side-role {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.62;
  word-break: keep-all;
}

.side-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13.5px;
}

.side-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: baseline;
  gap: 7px;
}

.side-list svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
  transform: translateY(2px);
}

.side-list a {
  color: inherit;
}

.side-list a:hover {
  color: var(--accent);
  text-decoration: none;
}

.content {
  min-width: 0;
}

.page-hero {
  padding: 6px 0 42px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 44px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
}

h1 {
  margin: 0 0 16px;
  color: var(--ink-strong);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
}

.lead {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.66;
  word-break: keep-all;
}

.lead strong {
  color: var(--ink-strong);
  font-weight: 800;
}

.summary-row {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.summary-row li {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.summary-value {
  display: block;
  color: var(--ink-strong);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.summary-label {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
}

.section {
  margin-top: 54px;
}

.section-title {
  margin: 0 0 18px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-strong);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.case-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 96px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.case-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-line);
}

.case-card:hover {
  border-color: var(--accent-line);
  background: var(--paper);
  box-shadow: 0 14px 30px rgba(37, 34, 29, 0.07);
  transform: translateY(-1px);
  text-decoration: none;
}

.case-eyebrow {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  text-transform: uppercase;
}

.case-title {
  margin: 0;
  color: var(--ink-strong);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  word-break: keep-all;
}

.case-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  word-break: keep-all;
}

.case-link {
  align-self: center;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 0;
  padding-top: 2px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 160ms ease, transform 160ms ease;
}

.case-link span {
  margin-left: 6px;
}

.case-card:hover .case-link {
  color: var(--accent-strong);
  transform: translateX(2px);
}

.pill-row {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.pill-row li {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1;
}

.archive-list {
  display: grid;
  gap: 12px;
}

.archive-item {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 20px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-line);
  border-radius: 8px;
  background: var(--surface);
}

.date {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.archive-title {
  margin: 0;
  color: var(--ink-strong);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.archive-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.case-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: stretch;
}

.case-visual {
  min-height: 310px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 20%, rgba(57, 86, 163, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(57, 86, 163, 0.09), rgba(248, 249, 251, 0.15)),
    #fff;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
}

.visual-line {
  height: 10px;
  border-radius: 999px;
  background: var(--accent-line);
}

.visual-line:nth-child(1) { width: 58%; }
.visual-line:nth-child(2) { width: 82%; }
.visual-line:nth-child(3) { width: 44%; }

.visual-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.visual-chip {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
}

.visual-pipeline {
  display: grid;
  gap: 9px;
}

.visual-pipeline span {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink-strong);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.15;
  box-shadow: 0 8px 18px rgba(37, 34, 29, 0.06);
}

.visual-pipeline span:nth-child(2) { margin-left: 12%; }
.visual-pipeline span:nth-child(3) { margin-left: 24%; }
.visual-pipeline span:nth-child(4) { margin-left: 36%; }
.visual-pipeline span:nth-child(5) { margin-left: 48%; }

.visual-pipeline span::after {
  content: "";
  position: absolute;
  left: calc(100% + 6px);
  top: 50%;
  width: 40px;
  height: 1px;
  background: var(--accent-line);
}

.visual-pipeline span:last-child::after {
  display: none;
}

.visual-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.visual-preview-grid span {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(57, 86, 163, 0.10), transparent 56%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86)),
    var(--surface);
  box-shadow: inset 0 -18px 0 rgba(201, 212, 245, 0.18);
}

.case-photo-hero {
  min-height: 310px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(37, 34, 29, 0.06);
}

.case-photo-hero img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
}

.mobis-case-hero {
  grid-template-columns: 1fr;
}

.mobis-case-hero .lead,
.mobis-case-hero .meta-grid {
  max-width: 760px;
}

.mobis-generated-hero {
  align-self: start;
  min-height: 0;
  background: var(--paper);
}

.mobis-generated-hero img {
  min-height: 0;
  aspect-ratio: 1983 / 793;
  object-fit: cover;
}

.cinematic-hero-figure img {
  aspect-ratio: 16 / 9;
  object-position: center;
}

.twin-hero-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(37, 34, 29, 0.08);
}

.twin-hero-figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 310px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.kiosk-hero-visual {
  position: relative;
  min-height: 310px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(238, 242, 255, 0.92), rgba(255, 255, 255, 0.96) 48%, rgba(244, 247, 252, 0.94)),
    #fff;
  box-shadow: 0 14px 30px rgba(37, 34, 29, 0.06);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
}

.kiosk-hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 49.8%, rgba(57, 86, 163, 0.07) 49.8% 50.2%, transparent 50.2% 100%),
    linear-gradient(0deg, transparent 0 49.8%, rgba(57, 86, 163, 0.07) 49.8% 50.2%, transparent 50.2% 100%);
  pointer-events: none;
}

.kiosk-flowbar,
.kiosk-panel,
.kiosk-caption-row {
  position: relative;
  z-index: 1;
}

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

.kiosk-flowbar span,
.kiosk-caption-row span {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(201, 212, 245, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.kiosk-panel {
  min-height: 190px;
  display: grid;
  grid-template-columns: minmax(116px, 0.96fr) 44px minmax(128px, 1.04fr);
  gap: 10px;
  align-items: center;
  padding: 2px 0;
}

.kiosk-terminal {
  display: grid;
  justify-items: center;
  gap: 7px;
}

.kiosk-screen {
  width: min(146px, 100%);
  min-height: 152px;
  padding: 13px 12px;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 249, 251, 0.88)),
    var(--surface);
  box-shadow: 0 18px 38px rgba(37, 34, 29, 0.10);
}

.screen-row {
  display: block;
  width: 58%;
  height: 7px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: var(--accent-line);
}

.screen-row.wide {
  width: 84%;
}

.kiosk-screen strong {
  display: block;
  margin-top: 26px;
  color: var(--ink-strong);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
}

.kiosk-screen small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.35;
}

.kiosk-stand {
  width: 64px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-line);
}

.kiosk-signal {
  position: relative;
  height: 1px;
  background: var(--accent-line);
}

.kiosk-signal::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -1px;
  width: 9px;
  height: 9px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  transform: rotate(45deg);
}

.kiosk-signal span {
  position: absolute;
  left: 28%;
  top: -3px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--paper);
}

.kiosk-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  min-height: 152px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.kiosk-tile {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(57, 86, 163, 0.16), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.90), rgba(241, 243, 246, 0.92));
}

.kiosk-tile.featured {
  grid-column: 1 / -1;
  min-height: 78px;
  padding: 11px;
}

.kiosk-tile.featured span {
  display: block;
  width: 64%;
  height: 8px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--accent-line);
}

.kiosk-tile.featured strong {
  color: var(--ink-strong);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.kiosk-caption-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.meta-item {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.meta-label {
  display: block;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
}

.meta-value {
  display: block;
  margin-top: 5px;
  color: var(--ink-strong);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

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

.text-block {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.text-block h3 {
  margin: 0 0 8px;
  color: var(--ink-strong);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.text-block p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.58;
  word-break: keep-all;
}

.media-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 14px;
}

.media-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(37, 34, 29, 0.06);
}

.media-card.wide {
  grid-column: 1 / -1;
}

.media-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-card.wide img {
  aspect-ratio: 16 / 8.8;
}

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

.media-card figcaption {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.media-card figcaption span {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

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

.trajectory-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(57, 86, 163, 0.07), transparent 42%),
    var(--surface);
}

.trajectory-year {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.trajectory-card h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.trajectory-meta {
  margin: 8px 0 12px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}

.trajectory-card p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
  word-break: keep-all;
}

.architecture-panel {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(238, 242, 255, 0.92), rgba(255, 255, 255, 0.78)),
    repeating-linear-gradient(90deg, rgba(201, 212, 245, 0.22) 0 1px, transparent 1px 46px),
    #fff;
}

.architecture-image-frame {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(37, 34, 29, 0.06);
}

.architecture-image-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1672 / 941;
  object-fit: cover;
}

.architecture-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.arch-node {
  position: relative;
  min-height: 166px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 28px rgba(37, 34, 29, 0.06);
}

.arch-node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 36px;
  left: calc(100% + 1px);
  width: 10px;
  height: 1px;
  background: var(--accent);
}

.arch-index {
  display: block;
  margin-bottom: 28px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.arch-node h3 {
  margin: 0 0 8px;
  color: var(--ink-strong);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.arch-node p {
  margin: 0;
  color: var(--muted);
  font-size: 12.75px;
  line-height: 1.46;
}

.architecture-loop {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.architecture-loop div {
  padding: 12px;
  border-left: 2px solid var(--accent-line);
  background: rgba(255, 255, 255, 0.58);
}

.architecture-loop span {
  display: block;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

.architecture-loop p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.architecture-disclosure {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.architecture-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 12px 14px 12px 16px;
  border: 1px solid rgba(201, 212, 245, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(238, 242, 255, 0.62)),
    #fff;
  color: var(--ink-strong);
  cursor: pointer;
  list-style: none;
  user-select: none;
  box-shadow: 0 12px 24px rgba(37, 34, 29, 0.045);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.architecture-disclosure summary::-webkit-details-marker {
  display: none;
}

.architecture-disclosure summary::marker {
  content: "";
}

.disclosure-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

.disclosure-title {
  display: block;
  color: var(--ink-strong);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.disclosure-icon {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 8px 18px rgba(37, 34, 29, 0.06);
}

.disclosure-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translate(-50%, -62%) rotate(45deg);
  transition: transform 160ms ease;
}

.architecture-disclosure summary:hover {
  border-color: var(--accent-line);
  background: var(--paper);
  box-shadow: 0 14px 28px rgba(37, 34, 29, 0.06);
  transform: translateY(-1px);
}

.architecture-disclosure[open] .disclosure-icon::before {
  transform: translate(-50%, -35%) rotate(225deg);
}

.architecture-disclosure .architecture-image-frame {
  margin-top: 14px;
}

.twin-pipeline-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(238, 242, 255, 0.86), rgba(255, 255, 255, 0.92)),
    #fff;
  box-shadow: 0 14px 30px rgba(37, 34, 29, 0.05);
}

.pipeline-stage {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.pipeline-stage.virtual {
  border-color: rgba(201, 212, 245, 0.86);
}

.pipeline-stage.physical {
  border-color: rgba(174, 217, 226, 0.86);
}

.pipeline-stage-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.pipeline-label {
  margin: 0 0 7px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

.pipeline-stage-head h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.pipeline-stage-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.pipeline-start-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.76fr);
  gap: 12px;
}

.pipeline-node,
.pipeline-chain {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.pipeline-node {
  padding: 15px;
}

.pipeline-node span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

.pipeline-node strong {
  display: block;
  color: var(--ink-strong);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.pipeline-node p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.pipeline-node.feedback {
  border-color: var(--accent-line);
  background: rgba(238, 242, 255, 0.62);
}

.pipeline-chain {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.pipeline-chain.flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pipeline-chain span {
  position: relative;
  padding: 10px 12px 10px 30px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.pipeline-chain.flow span {
  min-height: 52px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.pipeline-chain.flow span:last-child {
  border-right: 0;
}

.pipeline-chain span:last-child {
  border-bottom: 0;
}

.pipeline-chain span::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  transform: translateY(-50%);
}

.pipeline-evaluation {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(238, 242, 255, 0.86), rgba(255, 255, 255, 0.72)),
    #fff;
}

.pipeline-evaluation > div:first-child > span,
.loss-grid span {
  display: block;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

.pipeline-evaluation strong {
  display: block;
  margin-top: 8px;
  color: var(--ink-strong);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.pipeline-evaluation p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

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

.loss-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.loss-grid p {
  font-size: 12.5px;
  line-height: 1.45;
}

.pipeline-transfer {
  position: relative;
  justify-self: center;
  display: grid;
  place-items: center;
  width: min(360px, 100%);
  min-height: 86px;
  padding: 14px 18px;
  border: 1px solid #f1d788;
  border-radius: 8px;
  background: #fff8df;
  color: var(--ink-strong);
  text-align: center;
  box-shadow: 0 10px 24px rgba(133, 99, 18, 0.08);
}

.pipeline-transfer::before,
.pipeline-transfer::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  height: 14px;
  background: #d7af39;
}

.pipeline-transfer::before {
  top: auto;
  bottom: 100%;
}

.pipeline-transfer::after {
  top: 100%;
}

.pipeline-transfer span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

.pipeline-transfer strong {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.process-list {
  counter-reset: process;
  display: grid;
  gap: 12px;
}

.process-step {
  counter-increment: process;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.process-step:last-child {
  border-bottom: 0;
}

.process-step::before {
  content: counter(process, decimal-leading-zero);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}

.process-step h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

.process-step p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.case-actions .button {
  min-height: 34px;
  padding: 0 11px;
  font-size: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink-strong);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(37, 34, 29, 0.05);
}

.button:hover {
  border-color: var(--accent-line);
  color: var(--accent-strong);
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-strong);
  color: #fff;
}

.site-footer {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 11px;
}

@media (max-width: 900px) {
  body {
    font-size: 15.5px;
  }

  .nav {
    width: min(100% - 24px, 720px);
    height: auto;
    min-height: 68px;
    gap: 11px;
    overflow-x: auto;
  }

  .brand {
    margin-right: 4px;
    font-size: 16px;
  }

  .nav a:not(.brand) {
    font-size: 13.5px;
    white-space: nowrap;
  }

  .shell {
    width: min(100% - 32px, 720px);
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 34px 0 72px;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
  }

  .portrait-wrap {
    width: 96px;
    height: 120px;
    margin: 0;
  }

  .side-list {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: 34px;
  }

  .lead {
    font-size: 16.5px;
    line-height: 1.68;
  }

  .summary-row,
  .portfolio-grid,
  .archive-item,
  .case-hero-layout,
  .meta-grid,
  .text-grid,
  .media-grid,
  .trajectory-grid,
  .architecture-flow,
  .architecture-loop,
  .twin-pipeline-panel {
    grid-template-columns: 1fr;
  }

  .arch-node {
    min-height: 0;
  }

  .arch-node:not(:last-child)::after {
    top: auto;
    left: 30px;
    bottom: -11px;
    width: 1px;
    height: 10px;
  }

  .case-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .side-name {
    font-size: 19px;
  }

  .side-role {
    font-size: 14px;
  }

  .side-list {
    font-size: 13.5px;
  }

  .case-visual {
    min-height: 220px;
  }

  .case-photo-hero,
  .case-photo-hero img {
    min-height: 220px;
  }

  .kiosk-hero-visual {
    min-height: 260px;
  }

  .twin-hero-figure img {
    max-height: 560px;
  }

  .pipeline-transfer {
    min-height: 84px;
  }

  .pipeline-stage-head,
  .pipeline-start-grid,
  .pipeline-evaluation,
  .loss-grid,
  .pipeline-chain.flow {
    grid-template-columns: 1fr;
  }

  .pipeline-chain.flow span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .pipeline-chain.flow span:last-child {
    border-bottom: 0;
  }

  .pipeline-transfer::before,
  .pipeline-transfer::after {
    left: 50%;
    right: auto;
    width: 1px;
    height: 14px;
  }

  .pipeline-transfer::before {
    top: auto;
    bottom: 100%;
  }

  .pipeline-transfer::after {
    top: 100%;
  }

  .kiosk-flowbar {
    grid-template-columns: 1fr;
  }

  .kiosk-panel {
    min-height: 190px;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 12px;
  }

  .kiosk-signal {
    width: 1px;
    height: 24px;
    justify-self: center;
  }

  .kiosk-signal::after {
    top: auto;
    right: -4px;
    bottom: 0;
    transform: rotate(135deg);
  }

  .kiosk-signal span {
    left: -3px;
    top: 8px;
  }

  .visual-pipeline span,
  .visual-pipeline span:nth-child(n) {
    margin-left: 0;
  }

  .visual-pipeline span::after {
    left: 18px;
    top: calc(100% + 3px);
    width: 1px;
    height: 9px;
  }

  .visual-preview-grid span {
    min-height: 54px;
  }
}

@media (max-width: 560px) {
  .side-list {
    grid-template-columns: 1fr;
  }

  .sidebar {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .portrait-wrap {
    width: 82px;
    height: 102px;
  }

  .section-title {
    font-size: 23px;
  }

  h1 {
    font-size: 31px;
  }
}
