:root {
  color-scheme: dark;
  --ink-950: #04101a;
  --ink-900: #071722;
  --ink-850: #0a1c29;
  --ink-800: #0d2231;
  --ink-750: #122a3a;
  --steel-500: #577286;
  --steel-400: #7993a5;
  --steel-300: #9cb0be;
  --paper: #f4f7f7;
  --paper-muted: #c9d3d8;
  --teal: #46b7ad;
  --teal-soft: #86d2ca;
  --lime: #c7ef4b;
  --line: rgba(133, 166, 184, 0.2);
  --line-strong: rgba(133, 166, 184, 0.38);
  --surface: rgba(10, 28, 41, 0.88);
  --surface-solid: #0a1c29;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
  --font-sans: "Segoe UI Variable", "Segoe UI", Aptos, Inter, system-ui, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 64px);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  background: var(--ink-950);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 8%, rgba(70, 183, 173, 0.08), transparent 34rem),
    linear-gradient(180deg, #06141f 0%, var(--ink-950) 52%, #06131d 100%);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(109, 146, 166, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 146, 166, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
  pointer-events: none;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  color: inherit;
  font: inherit;
}

button,
[role="button"],
a[href] {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}

::selection {
  background: var(--lime);
  color: var(--ink-950);
}

/* Keep useful copy selectable; suppress accidental selection in controls and artwork. */
.site-header,
button,
[role="button"],
svg[role="img"],
.profile-portrait,
.hero-index,
.section-kicker,
.mono-label,
.scroll-cue,
  .tool-group-index,
  .diagram-caption,
  .workflow-map,
  .sisve-system,
  .swipe-pagination {
  -webkit-user-select: none;
  user-select: none;
}

.media-protected,
.media-protected img,
.media-protected svg {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

.profile-portrait-image {
  pointer-events: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--lime);
  color: var(--ink-950);
  font-weight: 800;
  transform: translateY(-150%);
}

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

.page-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(4, 16, 26, 0.92);
}

@supports (backdrop-filter: blur(14px)) {
  .site-header {
    background: rgba(4, 16, 26, 0.8);
    backdrop-filter: blur(14px);
  }
}

.header-inner {
  display: flex;
  width: min(100%, var(--max));
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--paper);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.brand-mark span {
  color: var(--lime);
}

.brand-copy {
  display: grid;
  line-height: 1.12;
}

.brand-copy strong {
  font-size: 13px;
  letter-spacing: 0.02em;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--steel-300);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--paper-muted);
  font-size: 12px;
  font-weight: 650;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.site-nav a[aria-current="location"] {
  background: rgba(121, 147, 165, 0.11);
  color: var(--paper);
}

.site-nav .lang-link {
  margin-left: 5px;
  border: 1px solid var(--line-strong);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.navigation-backdrop {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 90;
  display: block;
  padding: 0;
  border: 0;
  background: rgba(4, 16, 26, 0.66);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

body.nav-open .navigation-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.container {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(84px, 10vw, 144px);
  border-top: 1px solid var(--line);
}

.section-intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-bottom: clamp(42px, 6vw, 72px);
  align-items: start;
}

.section-kicker,
.mono-label {
  color: var(--teal-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.section-kicker {
  grid-column: span 3;
  padding-top: 12px;
}

.section-heading {
  grid-column: span 6;
  max-width: 16ch;
  font-size: clamp(2.2rem, 4.25vw, 4.35rem);
  font-weight: 690;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.section-lede {
  grid-column: span 3;
  max-width: 34ch;
  padding-top: 10px;
  color: var(--steel-300);
  font-size: 14px;
  line-height: 1.65;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(88vh - var(--header-h));
  min-height: calc(88svh - var(--header-h));
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  padding-block: clamp(42px, 6vh, 72px) 36px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  grid-column: 1 / span 7;
}

.hero-index {
  display: flex;
  margin-bottom: clamp(22px, 4vh, 42px);
  align-items: center;
  gap: 14px;
  color: var(--teal-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-index::before {
  width: 36px;
  height: 1px;
  background: var(--teal);
  content: "";
}

.hero h1 {
  max-width: 8ch;
  font-size: clamp(4.2rem, 7.2vw, 7.1rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.82;
}

.hero-last-name {
  display: block;
  position: relative;
  z-index: 2;
  width: 3.22em;
  height: 0.94em;
  margin-left: clamp(28px, 4vw, 74px);
}

.hero-last-name-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  pointer-events: none;
  user-select: none;
}

.hero-method-cycle {
  display: none;
}

.hero-role {
  max-width: 62ch;
  margin-top: clamp(26px, 4vh, 42px);
  color: var(--paper);
  font-size: clamp(0.82rem, 1.1vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.hero-role span {
  color: var(--teal);
}

.hero-intro {
  max-width: 62ch;
  margin-top: 18px;
  color: var(--paper-muted);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.65;
}

.hero-thought {
  max-width: 48ch;
  margin-top: 17px;
  padding-left: 18px;
  border-left: 2px solid var(--lime);
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  padding: 11px 16px;
  appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--paper-muted);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.button:hover {
  border-color: var(--teal);
  color: var(--paper);
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink-950);
}

.button.primary:hover {
  background: #d7f87a;
}

.button[aria-disabled="true"] {
  opacity: 0.62;
  cursor: not-allowed;
}

.button:disabled {
  opacity: 0.62;
  color: var(--paper-muted);
  cursor: not-allowed;
}

.button:disabled:hover {
  border-color: var(--line-strong);
  color: var(--paper-muted);
  transform: none;
}

.icon-inline {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero-visual {
  position: relative;
  z-index: 1;
  grid-column: 8 / -1;
  align-self: stretch;
  display: flex;
  min-height: 560px;
  align-items: center;
  justify-content: center;
}

.profile-portrait {
  position: relative;
  z-index: 2;
  width: min(72%, 306px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px 18px 18px 4px;
  background: var(--ink-900);
  box-shadow: var(--shadow);
}

.profile-portrait-mobile {
  display: none;
}

.profile-portrait::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 58%, rgba(4, 16, 26, 0.77)),
    linear-gradient(135deg, rgba(70, 183, 173, 0.1), transparent 42%);
  content: "";
  pointer-events: none;
}

.profile-portrait::after {
  position: absolute;
  inset: 9px;
  z-index: 2;
  border: 1px solid rgba(121, 147, 165, 0.16);
  border-radius: 11px 11px 11px 2px;
  content: "";
  pointer-events: none;
}

.profile-portrait-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}

.profile-portrait-meta {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 3;
  display: grid;
  gap: 4px;
}

.profile-portrait-meta strong,
.profile-portrait-meta span {
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.profile-portrait-meta strong {
  color: var(--paper);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.profile-portrait-meta span {
  color: var(--teal-soft);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.hero-system {
  position: absolute;
  inset: 0 -18% 0 -18%;
  z-index: 1;
  width: 136%;
  height: 100%;
  opacity: 0.72;
  pointer-events: none;
}

.hero-system-network {
  opacity: 0.34;
}

.system-cycle-track,
.system-cycle-signal {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.system-cycle-track {
  stroke: rgba(121, 147, 165, 0.38);
  stroke-width: 1px;
}

.system-cycle-signal {
  stroke: var(--lime);
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-dasharray: 0.075 0.925;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 5px rgba(199, 239, 75, 0.24));
}

.hero-cycle-stage {
  opacity: 0.64;
}

.hero-cycle-stage circle {
  fill: var(--ink-900);
  stroke: var(--teal-soft);
  stroke-width: 1.2px;
  vector-effect: non-scaling-stroke;
}

.hero-cycle-stage text {
  fill: var(--teal-soft);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.system-line,
.system-node,
.diagram-line {
  fill: none;
  stroke: var(--steel-500);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.system-line.teal,
.diagram-line.teal {
  stroke: var(--teal);
}

.system-node {
  fill: var(--ink-900);
  stroke: var(--teal);
  stroke-width: 1.2;
}

.system-label {
  fill: var(--steel-300);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.system-label.active {
  fill: var(--lime);
}

.flow-dot {
  fill: var(--lime);
}

.scroll-cue {
  grid-column: 1 / -1;
  display: flex;
  margin-top: 8px;
  align-items: center;
  gap: 12px;
  color: var(--steel-400);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-cue::before {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, var(--teal), transparent);
  content: "";
}

.opening {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.opening-label {
  grid-column: span 3;
}

.opening-copy {
  grid-column: 4 / span 7;
  max-width: 26ch;
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.6vw, 3.7rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.opening-copy em {
  color: var(--teal-soft);
  font-style: normal;
}

.opening-aside {
  grid-column: 11 / span 2;
  color: var(--steel-300);
  font-size: 12px;
  line-height: 1.6;
}

.trajectory-layout {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: clamp(34px, 6vw, 96px);
}

.trajectory-map {
  position: sticky;
  top: calc(var(--header-h) + 30px);
  align-self: start;
  min-height: 520px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(18, 42, 58, 0.7), rgba(7, 23, 34, 0.72));
}

.trajectory-map svg {
  width: 100%;
  height: 420px;
}

.trajectory-map figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--steel-300);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trajectory-list {
  position: relative;
}

.trajectory-list::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 16px;
  width: 1px;
  background: linear-gradient(var(--teal), var(--line), var(--teal));
  content: "";
}

.trajectory-step {
  position: relative;
  display: grid;
  min-height: 200px;
  padding: 0 0 56px 62px;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1.6fr);
  gap: 26px;
}

.trajectory-step:last-child {
  padding-bottom: 0;
}

.trajectory-dot {
  position: absolute;
  top: 7px;
  left: 8px;
  width: 17px;
  height: 17px;
  border: 2px solid var(--ink-950);
  border-radius: 50%;
  background: var(--steel-500);
  box-shadow: 0 0 0 1px var(--line-strong);
  transition: background 250ms ease, box-shadow 250ms ease;
}

.trajectory-step.is-active .trajectory-dot {
  background: var(--lime);
  box-shadow: 0 0 0 1px var(--lime), 0 0 24px rgba(199, 239, 75, 0.26);
}

.trajectory-meta {
  color: var(--steel-300);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.55;
  text-transform: uppercase;
}

.trajectory-content h3 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.trajectory-content p {
  max-width: 58ch;
  color: var(--paper-muted);
  font-size: 14px;
}

.trajectory-tags {
  display: flex;
  margin-top: 18px;
  flex-wrap: wrap;
  gap: 6px;
}

.trajectory-tags span,
.tech-list span,
.case-stack span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--steel-300);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.projects-sequence {
  display: grid;
  gap: 30px;
}

.project {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(13, 34, 49, 0.96), rgba(7, 23, 34, 0.9));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.14);
}

.project::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
  content: "";
  pointer-events: none;
}

.project-feature {
  display: grid;
  min-height: 560px;
  grid-template-columns: 5fr 7fr;
}

.project-copy {
  position: relative;
  z-index: 2;
  display: flex;
  padding: clamp(28px, 4vw, 58px);
  flex-direction: column;
}

.project-copy h3 {
  max-width: 15ch;
  margin-top: 24px;
  font-size: clamp(2rem, 3.35vw, 3.45rem);
  font-weight: 680;
  letter-spacing: -0.055em;
  line-height: 1;
}

.project-copy > p {
  max-width: 58ch;
  margin-top: 22px;
  color: var(--paper-muted);
  font-size: 14px;
}

.project-evidence {
  display: flex;
  margin-top: auto;
  padding-top: 34px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.project-metric {
  display: grid;
  gap: 4px;
}

.project-metric strong {
  color: var(--lime);
  font-size: clamp(1.9rem, 3vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.project-metric span {
  max-width: 24ch;
  color: var(--steel-300);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  line-height: 1.45;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
}

.text-link .icon-inline {
  color: var(--teal-soft);
  transition: transform 160ms ease;
}

.text-link:hover .icon-inline {
  transform: translateX(4px);
}

.project-visual {
  position: relative;
  display: grid;
  min-height: 420px;
  padding: clamp(24px, 4vw, 52px);
  border-left: 1px solid var(--line);
  background:
    linear-gradient(rgba(109, 146, 166, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 146, 166, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
}

.project-visual svg {
  width: 100%;
  max-height: 390px;
}

.mobile-snake {
  display: none;
}

.workflow-map {
  width: 100%;
  max-width: 760px;
  padding: 54px 0 10px;
}

.workflow-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.workflow-grid::before {
  position: absolute;
  top: 50%;
  right: 7%;
  left: 7%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(70, 183, 173, 0.72), transparent);
  content: "";
}

.workflow-node {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 84px;
  padding: 16px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(7, 23, 34, 0.94);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: clamp(0.66rem, 1vw, 0.78rem);
  font-weight: 700;
  line-height: 1.35;
  align-content: center;
  gap: 7px;
}

.workflow-node small,
.sisve-module small {
  color: var(--teal-soft);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.workflow-map-before .workflow-node:nth-child(2n) {
  transform: translateY(10px);
}

.workflow-map-after .workflow-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workflow-outcome {
  grid-column: 1 / -1;
  border-color: rgba(190, 241, 60, 0.82);
  background: linear-gradient(145deg, rgba(190, 241, 60, 0.1), rgba(7, 23, 34, 0.94));
}

.workflow-note {
  margin-top: 20px;
  color: var(--steel-300);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.sisve-system {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 780px;
  isolation: isolate;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "core core"
    "stage-1 stage-2"
    "stage-3 stage-4"
    "return return"
    "stage-5 stage-5";
  gap: 12px;
}

.sisve-route-map {
  position: absolute;
  z-index: 0;
  inset: 72px 0 0;
  width: 100%;
  max-width: none;
  height: calc(100% - 72px);
  overflow: hidden;
  pointer-events: none;
}

.project-visual .sisve-route-map,
.case-diagram .sisve-route-map {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: calc(100% - 72px);
}

.sisve-route-base,
.sisve-route-signal,
.sisve-route-return {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sisve-route-base {
  stroke: rgba(70, 183, 173, 0.38);
  stroke-width: 1.25;
}

.sisve-route-signal {
  stroke: var(--teal-soft);
  stroke-width: 2;
  stroke-dasharray: 0.065 0.935;
}

.sisve-route-return {
  stroke: rgba(186, 243, 61, 0.76);
  stroke-width: 1.35;
  stroke-dasharray: 4 4;
}

.sisve-route-map marker path {
  fill: var(--teal-soft);
}

.sisve-core,
.sisve-module {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  min-height: 94px;
  padding: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(7, 23, 34, 0.96);
  align-content: center;
  gap: 5px;
}

.sisve-core {
  grid-area: core;
  grid-column: 1 / -1;
  min-height: 82px;
  border-color: rgba(190, 241, 60, 0.68);
  background: linear-gradient(90deg, rgba(190, 241, 60, 0.1), rgba(70, 183, 173, 0.08));
  text-align: center;
}

.sisve-core strong {
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.sisve-core span,
.sisve-module span {
  color: var(--steel-300);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  line-height: 1.35;
}

.sisve-module em {
  color: var(--teal-soft);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sisve-module strong {
  color: var(--paper);
  font-size: 0.8rem;
  line-height: 1.25;
}

.sisve-stage-1 {
  grid-area: stage-1;
}

.sisve-stage-2 {
  grid-area: stage-2;
}

.sisve-stage-3 {
  grid-area: stage-3;
}

.sisve-stage-4 {
  grid-area: stage-4;
}

.sisve-stage-5 {
  grid-area: stage-5;
}

.sisve-decision {
  border-color: rgba(190, 241, 60, 0.72);
}

.sisve-analytics {
  min-height: 108px;
  border-color: rgba(70, 183, 173, 0.8);
  background: linear-gradient(110deg, rgba(70, 183, 173, 0.11), rgba(7, 23, 34, 0.96));
}

.sisve-return-note {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px dashed rgba(186, 243, 61, 0.42);
  border-radius: 999px;
  background: rgba(7, 23, 34, 0.94);
  grid-area: return;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.sisve-return-note span,
.sisve-return-note strong {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-transform: uppercase;
}

.sisve-return-note span {
  color: var(--lime);
}

.sisve-return-note strong {
  color: var(--steel-300);
  font-weight: 650;
}

.case-diagram .sisve-system-detailed .sisve-core {
  background: linear-gradient(90deg, #122b2a, #0d2730);
}

.case-diagram .sisve-system-detailed .sisve-module {
  background: #071722;
}

.case-diagram .sisve-system-detailed .sisve-analytics {
  background: linear-gradient(110deg, #0b272c, #071722);
}

.case-diagram .sisve-system-detailed .sisve-return-note {
  background: #071722;
}

.ready .sisve-system-detailed.is-graph-active .sisve-return-note:not(.is-dimmed) {
  animation: sisve-feedback-pulse 3.2s ease-in-out infinite;
}

.ready .is-graph-active .sisve-route-signal {
  animation: sisve-route-flow 7s linear infinite;
}

.ready .is-graph-active .sisve-route-return {
  animation: sisve-return-flow 3.2s linear infinite;
}

@keyframes sisve-route-flow {
  to {
    stroke-dashoffset: -1;
  }
}

@keyframes sisve-return-flow {
  to {
    stroke-dashoffset: 16;
  }
}

@keyframes sisve-feedback-pulse {
  0%,
  100% {
    border-color: rgba(186, 243, 61, 0.34);
    box-shadow: inset 0 0 0 rgba(186, 243, 61, 0);
  }
  50% {
    border-color: rgba(186, 243, 61, 0.72);
    box-shadow: inset 0 0 18px rgba(186, 243, 61, 0.07);
  }
}

.case-diagram .workflow-map {
  max-width: none;
  padding-top: 18px;
}

.case-diagram .workflow-map-after .workflow-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.case-diagram .workflow-map-after .workflow-outcome {
  grid-column: auto;
}

.diagram-viewport-responsive {
  overflow: hidden;
}

.diagram-node {
  fill: var(--ink-850);
  stroke: var(--steel-500);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.diagram-node.active {
  stroke: var(--teal);
}

.diagram-node.lime {
  stroke: var(--lime);
}

.diagram-label {
  fill: var(--paper-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-anchor: middle;
}

.diagram-label.small {
  fill: var(--steel-300);
  font-size: 8px;
}

.diagram-label.tiny {
  fill: var(--steel-400);
  font-size: 6.5px;
}

.diagram-step {
  fill: var(--teal-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-anchor: middle;
}

.diagram-arrow-head {
  fill: var(--teal);
}

.project-pair {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
}

.project-pair .project-copy {
  min-height: 480px;
}

.project-pair .project-visual {
  border-left: 1px solid var(--line);
}

.project-wide {
  display: grid;
  grid-template-columns: 5fr 7fr;
}

.project-wide .project-copy {
  min-height: 420px;
}

.project-wide .project-visual {
  border-left: 1px solid var(--line);
}

.flow-switch {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 4;
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink-950);
  gap: 3px;
}

.flow-switch button {
  min-width: 76px;
  min-height: 34px;
  padding: 7px 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--steel-300);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.flow-switch button[aria-pressed="true"] {
  background: var(--teal);
  color: var(--ink-950);
}

[data-flow-panel] {
  transition: opacity 180ms ease, transform 180ms ease;
}

[data-flow-panel][hidden] {
  display: none;
}

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

.depth-editorial {
  position: relative;
  grid-column: span 7;
  min-height: 560px;
  padding: clamp(30px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.depth-editorial h3 {
  max-width: 16ch;
  margin-top: 18px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.depth-editorial p {
  max-width: 55ch;
  margin-top: 22px;
  color: var(--paper-muted);
  font-size: 14px;
}

.depth-editorial svg {
  width: 100%;
  height: 230px;
}

.spc-controls {
  margin-top: 28px;
  margin-bottom: 10px;
}

.spc-scroll {
  margin-top: 8px;
  overflow: hidden;
}

.spc-diagram {
  display: block;
  width: min(100%, 520px);
  height: auto !important;
  margin-inline: auto;
}

.spc-points circle {
  fill: var(--lime);
  stroke: var(--ink-900);
  stroke-width: 1.5;
}

.spc-histogram rect {
  fill: rgba(70, 183, 173, 0.18);
  stroke: var(--teal);
  stroke-width: 0.7;
}

.spc-panel[aria-hidden="true"] {
  display: none;
}

.depth-rail {
  display: grid;
  grid-column: span 5;
  gap: 20px;
}

.depth-note {
  min-height: 170px;
  padding: 28px;
  border-top: 1px solid var(--line-strong);
  background: rgba(13, 34, 49, 0.54);
}

.depth-note h3 {
  margin-top: 16px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.depth-note p {
  max-width: 55ch;
  margin-top: 11px;
  color: var(--steel-300);
  font-size: 13px;
}

.depth-note .tech-list {
  display: flex;
  margin-top: 17px;
  flex-wrap: wrap;
  gap: 6px;
}

.legacy-panel {
  display: grid;
  grid-column: 1 / -1;
  min-height: 360px;
  grid-template-columns: 5fr 7fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(13, 34, 49, 0.9), rgba(7, 23, 34, 0.82));
}

.legacy-copy {
  padding: clamp(30px, 5vw, 60px);
}

.legacy-copy h3 {
  max-width: 15ch;
  margin-top: 18px;
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.legacy-copy p {
  max-width: 54ch;
  margin-top: 20px;
  color: var(--paper-muted);
  font-size: 14px;
}

.legacy-visual {
  display: grid;
  padding: 34px;
  border-left: 1px solid var(--line);
  background:
    linear-gradient(rgba(109, 146, 166, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 146, 166, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  place-items: center;
}

.legacy-visual svg {
  width: 100%;
  max-height: 280px;
}

.stack-layout {
  display: grid;
  grid-template-columns: minmax(210px, 2.6fr) minmax(0, 9.4fr);
  gap: clamp(26px, 4vw, 56px);
}

.stack-filters {
  display: grid;
  align-content: start;
  gap: 7px;
}

.stack-filter {
  display: grid;
  width: 100%;
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 12px;
}

.stack-filter svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--steel-400);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

.stack-filter span {
  color: var(--paper-muted);
  font-size: 12px;
  font-weight: 720;
}

.stack-filter[aria-pressed="true"] {
  border-color: var(--line-strong);
  border-radius: 9px;
  background: rgba(70, 183, 173, 0.08);
}

.stack-filter[aria-pressed="true"] svg {
  stroke: var(--lime);
}

.stack-filter[aria-pressed="true"] span {
  color: var(--paper);
}

.stack-workspace {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.8fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  align-items: start;
}

.stack-groups {
  min-width: 0;
  padding: clamp(24px, 3vw, 38px);
  border-right: 1px solid var(--line);
}

.tool-group {
  padding-block: 30px;
  border-top: 1px solid var(--line);
}

.tool-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.tool-group:last-child {
  padding-bottom: 0;
}

.tool-group[hidden] {
  display: none;
}

.tool-group-header {
  display: grid;
  margin-bottom: 18px;
  grid-template-columns: 34px 1fr;
  gap: 12px;
}

.tool-group-index {
  padding-top: 3px;
  color: var(--teal-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.tool-group-header h3 {
  color: var(--paper);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  letter-spacing: -0.025em;
}

.tool-group-header p {
  max-width: 58ch;
  margin-top: 5px;
  color: var(--steel-400);
  font-size: 11px;
  line-height: 1.5;
}

.tool-group-overview-actions {
  display: none;
}

.stack-workspace[data-stack-view="all"] {
  grid-template-columns: 1fr;
}

.stack-workspace[data-stack-view="all"] .stack-groups {
  display: grid;
  border-right: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stack-workspace[data-stack-view="all"] .tool-group {
  min-height: 154px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 23, 34, 0.56);
  animation: stack-view-in 220ms ease both;
}

.stack-workspace[data-stack-view="all"] .tool-group:first-child,
.stack-workspace[data-stack-view="all"] .tool-group:last-child {
  padding: 22px;
  border: 1px solid var(--line);
}

.stack-workspace[data-stack-view="all"] .tool-group:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.stack-workspace[data-stack-view="all"] .tool-group-header {
  min-height: 108px;
  margin: 0;
  align-content: start;
}

.stack-workspace[data-stack-view="all"] .tool-group-header h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
}

.stack-workspace[data-stack-view="all"] .tool-grid {
  display: none;
}

.stack-workspace[data-stack-view="all"] .study-group {
  margin: 0;
  border-style: dashed;
  background: rgba(121, 147, 165, 0.035);
}

.stack-workspace[data-stack-view="all"] .tool-group-overview-actions {
  display: flex;
  margin-top: 18px;
  grid-column: 2;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.tool-group-count {
  color: var(--steel-400);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-group-open {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal-soft);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}

.tool-group-open::after {
  margin-left: 8px;
  color: var(--lime);
  content: "→";
}

.tool-group-open:hover {
  color: var(--paper);
}

.stack-workspace:not([data-stack-view="all"]) .tool-group:not([hidden]),
.stack-detail:not([hidden]) {
  animation: stack-view-in 220ms ease both;
}

.stack-detail[hidden] {
  display: none;
}

@keyframes stack-view-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.study-group {
  margin: 6px -14px -14px;
  padding: 24px 14px 14px;
  border: 1px dashed rgba(121, 147, 165, 0.28);
  border-radius: 12px;
  background: rgba(121, 147, 165, 0.035);
}

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

.tool-button {
  position: relative;
  display: grid;
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(7, 23, 34, 0.72);
  color: var(--paper-muted);
  text-align: left;
  cursor: pointer;
  align-content: space-between;
  gap: 8px;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.tool-button:hover,
.tool-button[aria-pressed="true"] {
  border-color: var(--teal);
  background: rgba(70, 183, 173, 0.09);
  color: var(--paper);
  transform: translateY(-2px);
}

.tool-button.is-muted {
  opacity: 0.32;
}

.tool-code {
  color: var(--teal-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.tool-name {
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.tool-status {
  color: var(--steel-400);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stack-detail {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  display: flex;
  min-height: 520px;
  padding: clamp(25px, 3vw, 38px);
  flex-direction: column;
}

.stack-detail-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stack-detail-icon {
  display: grid;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  place-items: center;
}

.stack-detail-discipline {
  max-width: 22ch;
  color: var(--teal-soft);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.45;
  text-transform: uppercase;
}

.stack-detail h3 {
  margin-top: 26px;
  font-size: clamp(1.6rem, 2.7vw, 2.45rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.stack-detail p {
  margin-top: 18px;
  color: var(--paper-muted);
  font-size: 13px;
}

.stack-related {
  display: grid;
  margin-top: 28px;
  gap: 18px;
}

.stack-related div {
  display: grid;
  gap: 6px;
}

.stack-related strong {
  color: var(--steel-300);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stack-related span {
  color: var(--paper);
  font-size: 12px;
  line-height: 1.45;
}

.application-flow {
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.application-flow > strong {
  color: var(--steel-300);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.application-flow-steps {
  display: grid;
  margin-top: 16px;
}

.application-flow-step {
  position: relative;
  display: grid;
  min-height: 39px;
  padding: 2px 0 10px 28px;
  color: var(--paper-muted);
  font-size: 11px;
  line-height: 1.4;
}

.application-flow-step::before {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 2;
  width: 8px;
  height: 8px;
  border: 1px solid var(--teal);
  border-radius: 50%;
  background: var(--ink-900);
  content: "";
}

.application-flow-step::after {
  position: absolute;
  top: 13px;
  bottom: -1px;
  left: 8px;
  width: 1px;
  background: var(--line-strong);
  content: "";
}

.application-flow-step:last-child {
  min-height: 20px;
  padding-bottom: 0;
  color: var(--paper);
}

.application-flow-step:last-child::before {
  border-color: var(--lime);
  background: var(--lime);
}

.application-flow-step:last-child::after {
  display: none;
}

.closing {
  display: grid;
  min-height: 600px;
  padding-block: clamp(80px, 12vw, 160px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}

.closing-copy {
  grid-column: 1 / span 7;
}

.closing-copy h2 {
  max-width: 15ch;
  margin-top: 22px;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.closing-copy p {
  max-width: 58ch;
  margin-top: 24px;
  color: var(--paper-muted);
  font-size: 14px;
}

.closing-links {
  display: grid;
  grid-column: 9 / -1;
  border-top: 1px solid var(--line);
}

.closing-link {
  display: flex;
  min-height: 76px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.closing-link span {
  color: var(--steel-300);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.closing-link strong {
  font-size: 14px;
}

.closing-link .icon-inline {
  color: var(--teal-soft);
}

.closing-share {
  width: 100%;
  appearance: none;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.closing-link:hover,
.closing-link:focus-visible {
  color: var(--paper);
}

.case-share {
  width: 100%;
  margin-top: 14px;
}

.case-share svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.case-seo-fallback {
  display: grid;
  width: min(760px, calc(100% - 40px));
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding-block: 64px;
  align-content: center;
  gap: 22px;
}

.case-seo-fallback h1 {
  max-width: 15ch;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.case-seo-fallback > p:not(.mono-label),
.case-seo-fallback li {
  max-width: 66ch;
  color: var(--paper-muted);
}

.case-seo-fallback ul {
  display: grid;
  margin: 0;
  padding-left: 20px;
  gap: 8px;
}

.case-seo-fallback .button {
  width: max-content;
  margin-top: 8px;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: var(--steel-400);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-inner strong {
  color: var(--paper);
}

/* Case pages */
.case-hero {
  display: grid;
  min-height: 78vh;
  min-height: 78svh;
  padding-block: clamp(56px, 8vw, 110px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  align-items: end;
}

.case-hero-copy {
  grid-column: 1 / span 7;
}

.case-back {
  display: inline-flex;
  margin-bottom: 44px;
  align-items: center;
  gap: 8px;
  color: var(--steel-300);
  font-size: 11px;
  font-weight: 700;
}

.case-back svg {
  transform: rotate(180deg);
}

.case-hero h1 {
  max-width: 13ch;
  margin-top: 24px;
  font-size: clamp(3.1rem, 5.45vw, 6.1rem);
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.case-hero-summary {
  max-width: 62ch;
  margin-top: 28px;
  color: var(--paper-muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.case-hero-aside {
  grid-column: 9 / -1;
}

.case-facts {
  display: grid;
  border-top: 1px solid var(--line);
}

.case-fact {
  display: grid;
  min-height: 76px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 110px 1fr;
  gap: 18px;
}

.case-fact dt {
  color: var(--steel-400);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-fact dd {
  margin: 0;
  color: var(--paper);
  font-size: 12px;
  font-weight: 650;
}

.case-chapter {
  padding-block: clamp(72px, 9vw, 128px);
  border-top: 1px solid var(--line);
}

.chapter-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.chapter-label {
  grid-column: span 3;
}

.chapter-copy {
  grid-column: span 5;
}

.chapter-copy h2 {
  max-width: 14ch;
  font-size: clamp(2.2rem, 4.2vw, 4.2rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.chapter-copy p {
  max-width: 60ch;
  margin-top: 22px;
  color: var(--paper-muted);
  font-size: 14px;
}

.chapter-evidence {
  display: grid;
  grid-column: span 4;
  align-content: start;
  gap: 10px;
}

.evidence-item {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.evidence-item strong {
  display: block;
  color: var(--paper);
  font-size: 13px;
}

.evidence-item span {
  display: block;
  margin-top: 6px;
  color: var(--steel-300);
  font-size: 12px;
}

.case-diagram {
  position: relative;
  min-height: 540px;
  padding: clamp(24px, 4vw, 50px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(109, 146, 166, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 146, 166, 0.055) 1px, transparent 1px),
    linear-gradient(145deg, rgba(13, 34, 49, 0.94), rgba(7, 23, 34, 0.92));
  background-size: 36px 36px, 36px 36px, auto;
}

.case-diagram svg {
  width: 100%;
  height: 440px;
}

.diagram-viewport {
  max-width: 100%;
  overflow: hidden;
}

.diagram-viewport:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

.diagram-controls {
  display: flex;
  min-height: 44px;
  margin-bottom: 16px;
  overflow-x: auto;
  gap: 6px;
  scrollbar-width: thin;
}

.diagram-controls button {
  min-width: max-content;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(4, 16, 26, 0.7);
  color: var(--steel-300);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}

.diagram-controls button[aria-pressed="true"] {
  border-color: var(--teal);
  background: rgba(70, 183, 173, 0.12);
  color: var(--paper);
}

.swipe-pagination {
  display: none;
  min-height: 18px;
  margin: 4px 0 16px;
  justify-content: center;
  align-items: center;
  gap: 7px;
}

.swipe-pagination[hidden] {
  display: none !important;
}

.swipe-hint {
  display: none;
  min-height: 24px;
  margin: -8px 0 18px;
  color: var(--steel-400);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.swipe-hint[hidden] {
  display: none !important;
}

.swipe-hint.is-dismissed {
  opacity: 0;
  transform: translateY(-3px);
}

.swipe-hint-track {
  position: relative;
  width: 42px;
  height: 12px;
}

.swipe-hint-track::before {
  position: absolute;
  top: 50%;
  right: 1px;
  left: 1px;
  height: 1px;
  background: rgba(121, 147, 165, 0.42);
  content: "";
}

.swipe-hint-thumb {
  position: absolute;
  top: 3px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(186, 243, 61, 0.34);
  animation: swipe-hint-motion 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.swipe-gesture-surface.is-swipe-enabled {
  touch-action: pan-y;
  overscroll-behavior-inline: contain;
}

.swipe-gesture-surface.is-swipe-dragging {
  cursor: grabbing;
  -webkit-user-select: none;
  user-select: none;
}

.is-swipeable,
.is-swipeable > button {
  touch-action: pan-y;
}

.is-swipeable {
  overscroll-behavior-inline: contain;
  cursor: grab;
}

.is-swipeable.is-dragging {
  scroll-behavior: auto;
  scroll-snap-type: none;
  cursor: grabbing;
}

.is-swipeable.is-dragging > button {
  pointer-events: none;
}

.swipe-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--steel-500);
  cursor: pointer;
  transition: width 160ms ease, background-color 160ms ease;
}

.swipe-dot[aria-current="true"] {
  width: 22px;
  background: var(--lime);
}

@keyframes swipe-hint-motion {
  0%,
  100% {
    opacity: 0.42;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(35px);
  }
}

.diagram-live-copy {
  min-height: 44px;
  max-width: 78ch;
  margin: 0 0 8px;
  color: var(--paper-muted);
  font-size: 12px;
  line-height: 1.55;
}

.case-diagram [data-layer] {
  transition: opacity 180ms ease, filter 180ms ease;
}

.case-diagram [data-layer].is-dimmed {
  opacity: 0.13;
}

.diagram-caption {
  display: flex;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  justify-content: space-between;
  gap: 24px;
  color: var(--steel-400);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-decision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.decision-card {
  min-height: 250px;
  padding: clamp(24px, 3vw, 38px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.decision-card h3 {
  margin-top: 24px;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}

.decision-card p {
  margin-top: 12px;
  color: var(--steel-300);
  font-size: 13px;
}

.case-result {
  display: grid;
  min-height: 480px;
  padding: clamp(38px, 7vw, 92px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, rgba(70, 183, 173, 0.12), rgba(7, 23, 34, 0.94) 58%);
  grid-template-columns: 5fr 7fr;
  gap: clamp(34px, 7vw, 90px);
  align-items: center;
}

.result-number {
  color: var(--lime);
  font-size: clamp(4rem, 8vw, 8.5rem);
  font-weight: 750;
  letter-spacing: -0.08em;
  line-height: 0.84;
}

.result-number small {
  display: block;
  margin-top: 18px;
  color: var(--steel-300);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.result-copy h2 {
  max-width: 16ch;
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.result-copy p {
  max-width: 58ch;
  margin-top: 22px;
  color: var(--paper-muted);
  font-size: 14px;
}

.result-list {
  display: grid;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  gap: 10px;
}

.result-list li {
  position: relative;
  padding-left: 18px;
  color: var(--paper-muted);
  font-size: 13px;
}

.result-list li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

.case-navigation {
  display: grid;
  margin-top: 50px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-nav-link {
  display: grid;
  min-height: 150px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  align-content: space-between;
}

.case-nav-link span {
  color: var(--steel-400);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-nav-link strong {
  max-width: 28ch;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.confidentiality-note {
  display: flex;
  margin-top: 26px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(121, 147, 165, 0.06);
  align-items: flex-start;
  gap: 12px;
  color: var(--steel-300);
  font-size: 11px;
}

.confidentiality-note svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--teal-soft);
  stroke-width: 1.5;
}

/* Motion */
.js.reveal-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(0.2, 0.75, 0.3, 1);
}

.js.reveal-enabled [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.draw-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  pathLength: 1;
}

.ready .is-graph-active .draw-line {
  stroke-dashoffset: 1;
  animation:
    draw-line 1.45s ease forwards,
    graph-line-breathe 5.6s ease-in-out 1.45s infinite;
}

.is-graph-active .diagram-line:not(.draw-line),
.is-graph-active .system-line:not(.draw-line) {
  animation: graph-line-breathe 5.6s ease-in-out infinite;
}

.is-graph-active .diagram-node.active,
.is-graph-active .diagram-node.lime,
.is-graph-active .system-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: graph-node-breathe 4.8s ease-in-out infinite;
  will-change: transform, opacity;
}

.is-graph-active .diagram-node.lime,
.is-graph-active .system-node:nth-of-type(even) {
  animation-delay: -2.2s;
}

.is-graph-active .flow-dot,
.is-graph-active .diagram-step {
  animation: node-pulse 3.4s ease-in-out infinite;
}

.ready .is-graph-active .system-cycle-signal {
  animation: hero-cycle-trace 8s linear infinite;
}

.ready .is-graph-active .workflow-node,
.ready .is-graph-active .sisve-module,
.ready .is-graph-active .snake-stage {
  animation: component-signal 7s ease-in-out infinite;
  animation-delay: calc(var(--step, 0) * 520ms - 6s);
}

.ready .spc-panel[aria-hidden="false"] .spc-points circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: graph-node-breathe 3.8s ease-in-out infinite;
}

.ready .spc-panel[aria-hidden="false"] .spc-points circle:nth-child(3n) {
  animation-delay: -1.4s;
}

.ready .spc-panel[aria-hidden="false"] .spc-histogram rect {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: histogram-breathe 4.8s ease-in-out infinite;
}

.ready .spc-panel[aria-hidden="false"] .spc-histogram rect:nth-child(2n) {
  animation-delay: -1.8s;
}

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes hero-cycle-trace {
  to {
    stroke-dashoffset: -1;
  }
}

@keyframes hero-mobile-cycle {
  0%,
  22% {
    color: var(--lime);
    opacity: 1;
  }
  25%,
  100% {
    color: var(--steel-400);
    opacity: 0.48;
  }
}

@keyframes node-pulse {
  0%,
  100% {
    opacity: 0.38;
  }
  50% {
    opacity: 1;
  }
}

@keyframes graph-line-breathe {
  0%,
  100% {
    opacity: 0.58;
  }
  50% {
    opacity: 1;
  }
}

@keyframes graph-node-breathe {
  0%,
  100% {
    opacity: 0.78;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.018);
  }
}

@keyframes component-signal {
  0%,
  32%,
  100% {
    border-color: var(--line-strong);
    box-shadow: inset 0 0 0 rgba(70, 183, 173, 0);
  }
  12% {
    border-color: rgba(70, 183, 173, 0.9);
    box-shadow: inset 0 0 24px rgba(70, 183, 173, 0.1);
  }
}

@keyframes snake-flow-right {
  0%, 58% { opacity: 0; transform: translate(-2px, -50%); }
  68% { opacity: 1; }
  88% { opacity: 1; transform: translate(12px, -50%); }
  100% { opacity: 0; transform: translate(12px, -50%); }
}

@keyframes snake-flow-down {
  0%, 58% { opacity: 0; transform: translate(-50%, -2px); }
  68% { opacity: 1; }
  88% { opacity: 1; transform: translate(-50%, 34px); }
  100% { opacity: 0; transform: translate(-50%, 34px); }
}

@keyframes snake-flow-left {
  0%, 58% { opacity: 0; transform: translate(2px, -50%); }
  68% { opacity: 1; }
  88% { opacity: 1; transform: translate(-12px, -50%); }
  100% { opacity: 0; transform: translate(-12px, -50%); }
}

@keyframes histogram-breathe {
  0%,
  100% {
    opacity: 0.58;
    transform: scaleY(0.92);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@media (max-width: 1080px) {
  :root {
    --gutter: clamp(20px, 3.8vw, 42px);
  }

  .site-nav a {
    padding-inline: 7px;
    font-size: 11px;
  }

  .hero-copy {
    grid-column: 1 / span 7;
  }

  .hero-visual {
    grid-column: 8 / -1;
    min-height: 500px;
  }

  .hero h1 {
    font-size: clamp(4rem, 8vw, 6.2rem);
  }

  .section-kicker {
    grid-column: span 2;
  }

  .section-heading {
    grid-column: span 7;
  }

  .section-lede {
    grid-column: span 3;
  }

  .trajectory-layout {
    grid-template-columns: 1fr;
  }

  .trajectory-map {
    position: relative;
    top: auto;
    min-height: 320px;
  }

  .trajectory-map svg {
    height: 240px;
  }

  .project-feature,
  .project-pair,
  .project-wide {
    grid-template-columns: 1fr;
  }

  .project-copy,
  .project-pair .project-copy,
  .project-wide .project-copy {
    min-height: 380px;
  }

  .project-copy h3 {
    max-width: 24ch;
  }

  .project-visual,
  .project-pair .project-visual,
  .project-wide .project-visual {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .stack-layout {
    grid-template-columns: 1fr;
  }

  .stack-filters {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .stack-filter {
    min-width: 190px;
    scroll-snap-align: center;
  }

  .stack-filters::-webkit-scrollbar,
  .diagram-controls::-webkit-scrollbar {
    display: none;
  }

  .swipe-pagination {
    display: flex;
  }
}

@media (max-width: 960px) {
  .section-intro {
    display: block;
  }

  .section-heading {
    max-width: 21ch;
    margin-top: 18px;
  }

  .section-lede {
    max-width: 62ch;
    margin-top: 22px;
    padding-top: 0;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 64px;
  }

  .swipe-hint:not([hidden]) {
    display: flex;
  }

  .site-header {
    backdrop-filter: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: auto;
    z-index: 99;
    display: flex;
    width: min(88vw, 360px);
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    padding: 30px;
    overflow-y: auto;
    border-left: 1px solid var(--line);
    background: var(--ink-900);
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;
    overscroll-behavior: contain;
    transition:
      transform 220ms cubic-bezier(0.2, 0.75, 0.3, 1),
      visibility 220ms ease;
  }

  .site-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav a {
    min-height: 46px;
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
  }

  .site-nav .lang-link {
    margin-top: 12px;
    margin-left: 0;
    border: 1px solid var(--line-strong);
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-block: 62px 40px;
  }

  .hero-copy {
    grid-column: 1 / -1;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(4rem, 15vw, 7rem);
  }

  .hero-visual {
    grid-column: 2 / -2;
    min-height: auto;
    margin-top: 32px;
  }

  .profile-portrait {
    width: min(58vw, 280px);
  }

  .hero-system {
    inset: -7% -18% -7% -18%;
  }

  .scroll-cue {
    margin-top: 40px;
  }

  .section-intro {
    gap: 18px;
  }

  .section-kicker {
    grid-column: 1 / -1;
    padding-top: 0;
  }

  .section-heading {
    max-width: 21ch;
  }

  .section-lede {
    max-width: 62ch;
  }

  .opening-label {
    grid-column: 1 / span 3;
  }

  .opening-copy {
    grid-column: 4 / -1;
  }

  .opening-aside {
    display: block;
    grid-column: 4 / -1;
    margin-top: 18px;
  }

  .project-feature,
  .project-pair,
  .project-wide {
    grid-template-columns: 1fr;
  }

  .project-copy,
  .project-pair .project-copy,
  .project-wide .project-copy {
    min-height: 360px;
  }

  .project-visual,
  .project-pair .project-visual,
  .project-wide .project-visual {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .depth-editorial,
  .depth-rail {
    grid-column: 1 / -1;
  }

  .legacy-panel {
    grid-template-columns: 1fr;
  }

  .legacy-visual {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .stack-workspace {
    grid-template-columns: 1fr;
  }

  .stack-groups {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stack-detail {
    position: relative;
    top: auto;
    min-height: 340px;
  }

  .closing-copy {
    grid-column: 1 / span 8;
  }

  .closing-links {
    grid-column: 9 / -1;
  }

  .case-hero-copy {
    grid-column: 1 / span 8;
  }

  .case-hero-aside {
    grid-column: 9 / -1;
  }

  .chapter-label {
    grid-column: span 2;
  }

  .chapter-copy {
    grid-column: span 6;
  }

  .chapter-evidence {
    grid-column: span 4;
  }

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

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }

  body {
    font-size: 15px;
  }

  .brand-copy {
    display: none;
  }

  .section {
    padding-block: 78px;
  }

  .hero {
    display: flex;
    padding-top: 46px;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-index {
    margin-bottom: 26px;
  }

  .hero h1 {
    font-size: clamp(4rem, 20vw, 5.4rem);
    line-height: 0.84;
  }

  .hero-last-name {
    margin-left: 24px;
  }

  .profile-portrait-mobile {
    display: block;
    width: min(48vw, 184px);
    margin: -8px 10px 28px auto;
  }

  .profile-portrait-mobile .profile-portrait-meta {
    right: 12px;
    bottom: 11px;
    left: 12px;
  }

  .profile-portrait-mobile .profile-portrait-meta strong {
    font-size: 8px;
  }

  .profile-portrait-mobile .profile-portrait-meta span {
    font-size: 7px;
  }

  .hero-method-cycle {
    position: relative;
    display: grid;
    max-width: 340px;
    margin-top: 20px;
    padding-top: 13px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-method-cycle::before {
    position: absolute;
    top: 3px;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(70, 183, 173, 0.8), rgba(121, 147, 165, 0.2));
    content: "";
  }

  .hero-method-step::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: 7px;
    height: 7px;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: var(--ink-950);
    box-shadow: 0 0 9px rgba(199, 239, 75, 0.34);
    content: "";
    transform: translate(-50%, -13px);
  }

  .hero-method-step {
    position: relative;
    overflow: hidden;
    color: var(--steel-400);
    font-family: var(--font-mono);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
    animation: hero-mobile-cycle 8s ease-in-out infinite;
    animation-delay: calc(var(--cycle-step) * 2s - 8s);
  }

  .hero-role {
    margin-top: 24px;
    font-size: 0.78rem;
  }

  .hero-intro {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .button {
    width: 100%;
    padding-inline: 10px;
    text-align: center;
  }

  .hero-visual {
    display: none;
  }

  .section-intro {
    display: block;
  }

  .section-heading {
    max-width: 21ch;
    margin-top: 18px;
    font-size: clamp(2rem, 5.5vw, 2.35rem);
    line-height: 1.02;
  }

  .section-lede {
    max-width: 54ch;
    margin-top: 20px;
    padding: 0;
  }

  .opening {
    display: block;
  }

  .opening-copy {
    margin-top: 24px;
    font-size: clamp(1.7rem, 4.8vw, 2rem);
  }

  .trajectory-map {
    min-height: 290px;
    padding: 18px;
  }

  .trajectory-map svg {
    height: 210px;
  }

  .trajectory-step {
    min-height: 0;
    padding: 0 0 50px 48px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .trajectory-list::before {
    left: 11px;
  }

  .trajectory-dot {
    left: 3px;
  }

  .project-copy,
  .project-pair .project-copy,
  .project-wide .project-copy {
    min-height: 0;
    padding: 28px 24px;
  }

  .project-copy h3 {
    max-width: 24ch;
    font-size: clamp(1.95rem, 5.2vw, 2.15rem);
  }

  .project-evidence {
    margin-top: 34px;
    flex-direction: column;
    align-items: flex-start;
  }

  .project-visual {
    min-height: 350px;
    padding: 18px;
    overflow-x: auto;
    justify-content: flex-start;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .project-visual svg {
    width: 720px;
    min-width: 720px;
    height: auto;
  }

  .project-visual-snake {
    min-height: 0;
    overflow: hidden;
    justify-content: stretch;
  }

  .project-visual-snake > svg,
  .diagram-viewport-snake > svg {
    display: none;
  }

  .diagram-viewport-snake {
    overflow: hidden;
  }

  .mobile-snake {
    display: grid;
    width: 100%;
    max-width: 430px;
    margin-inline: auto;
    padding: 8px 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(108px, auto);
    gap: 38px 14px;
  }

  .snake-stage {
    position: relative;
    z-index: 1;
    display: grid;
    min-width: 0;
    min-height: 108px;
    padding: 14px;
    overflow-wrap: anywhere;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    background: rgba(7, 23, 34, 0.96);
    align-content: center;
    gap: 7px;
  }

  .snake-stage:nth-child(1) { grid-area: 1 / 1; }
  .snake-stage:nth-child(2) { grid-area: 1 / 2; }
  .snake-stage:nth-child(3) { grid-area: 2 / 2; }
  .snake-stage:nth-child(4) { grid-area: 2 / 1; }
  .snake-stage:nth-child(5) { grid-area: 3 / 1; }

  .snake-stage small {
    color: var(--teal-soft);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .snake-stage strong {
    color: var(--paper);
    font-size: clamp(0.72rem, 3.3vw, 0.86rem);
    line-height: 1.25;
  }

  .snake-stage span {
    color: var(--steel-300);
    font-family: var(--font-mono);
    font-size: 8px;
    line-height: 1.45;
    letter-spacing: 0.025em;
  }

  .snake-stage::after {
    position: absolute;
    z-index: -1;
    background: rgba(70, 183, 173, 0.64);
    content: "";
  }

  .snake-stage::before {
    position: absolute;
    z-index: 2;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 10px rgba(186, 243, 61, 0.58);
    content: "";
    opacity: 0;
  }

  .snake-stage:nth-child(1)::after {
    top: 50%;
    left: 100%;
    width: 14px;
    height: 1px;
  }

  .snake-stage:nth-child(1)::before {
    top: 50%;
    left: 100%;
    animation: snake-flow-right 5.2s ease-in-out infinite;
    animation-delay: -4.7s;
  }

  .snake-stage:nth-child(2)::after,
  .snake-stage:nth-child(4)::after {
    top: 100%;
    left: 50%;
    width: 1px;
    height: 38px;
  }

  .snake-stage:nth-child(2)::before,
  .snake-stage:nth-child(4)::before {
    top: 100%;
    left: 50%;
    animation: snake-flow-down 5.2s ease-in-out infinite;
  }

  .snake-stage:nth-child(2)::before { animation-delay: -3.9s; }
  .snake-stage:nth-child(4)::before { animation-delay: -2.3s; }

  .snake-stage:nth-child(3)::after {
    top: 50%;
    right: 100%;
    width: 14px;
    height: 1px;
  }

  .snake-stage:nth-child(3)::before {
    top: 50%;
    right: 100%;
    animation: snake-flow-left 5.2s ease-in-out infinite;
    animation-delay: -3.1s;
  }

  .snake-stage:nth-child(n + 5)::before,
  .snake-stage:nth-child(n + 5)::after {
    content: none;
  }

  .snake-outcome {
    border-color: rgba(186, 243, 61, 0.64);
    background: linear-gradient(145deg, rgba(11, 36, 42, 0.98), rgba(7, 23, 34, 0.96));
  }

  .workflow-map,
  .sisve-system {
    max-width: none;
  }

  .workflow-map {
    padding: 12px 0 4px;
  }

  .workflow-grid,
  .workflow-map-after .workflow-grid,
  .case-diagram .workflow-map-after .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .workflow-node {
    min-height: 76px;
    padding: 12px;
    font-size: 0.68rem;
  }

  .workflow-outcome,
  .case-diagram .workflow-map-after .workflow-outcome {
    grid-column: 1 / -1;
  }

  .workflow-map-before .workflow-node:nth-child(2n) {
    transform: none;
  }

  .workflow-note {
    margin-top: 14px;
    font-size: 0.58rem;
  }

  .sisve-system {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .sisve-core,
  .sisve-analytics {
    grid-column: 1 / -1;
  }

  .sisve-core,
  .sisve-module {
    min-height: 82px;
    padding: 12px;
  }

  .sisve-return-note {
    border-radius: 10px;
    flex-direction: column;
    gap: 2px;
  }

  .flow-switch {
    position: relative;
    top: auto;
    right: auto;
    width: calc(100% - 36px);
    margin: 18px;
  }

  .flow-switch button {
    flex: 1;
  }

  .depth-editorial {
    min-height: 0;
    padding: 28px 24px;
  }

  .depth-editorial h3,
  .legacy-copy h3 {
    font-size: clamp(2rem, 5.5vw, 2.3rem);
  }

  .depth-editorial svg {
    height: auto;
  }

  .spc-scroll .spc-diagram {
    width: 100%;
    min-width: 0;
  }

  .depth-note {
    padding-inline: 22px;
  }

  .legacy-copy {
    padding: 28px 24px;
  }

  .legacy-visual {
    padding: 20px;
  }

  .stack-filter {
    min-width: 165px;
  }

  .stack-groups {
    padding: 18px;
  }

  .stack-workspace[data-stack-view="all"] .stack-groups {
    grid-template-columns: 1fr;
  }

  .stack-workspace[data-stack-view="all"] .tool-group,
  .stack-workspace[data-stack-view="all"] .tool-group:first-child,
  .stack-workspace[data-stack-view="all"] .tool-group:last-child {
    min-height: 0;
    padding: 18px;
  }

  .stack-workspace[data-stack-view="all"] .tool-group:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .stack-workspace[data-stack-view="all"] .tool-group-header {
    min-height: 0;
  }

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

  .tool-button {
    min-height: 92px;
  }

  .closing {
    display: block;
    min-height: 0;
  }

  .closing-copy h2 {
    font-size: clamp(2.35rem, 6.5vw, 3rem);
  }

  .closing-links {
    margin-top: 54px;
  }

  .footer-inner {
    padding-block: 24px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .case-hero {
    display: block;
    min-height: 0;
    padding-block: 56px 72px;
  }

  .case-back {
    margin-bottom: 34px;
  }

  .case-hero h1 {
    font-size: clamp(2.75rem, 8vw, 3.2rem);
  }

  .case-hero-aside {
    margin-top: 48px;
  }

  .case-fact {
    grid-template-columns: 90px 1fr;
  }

  .chapter-layout {
    display: block;
  }

  .chapter-copy {
    margin-top: 24px;
  }

  .chapter-copy h2 {
    font-size: clamp(2.05rem, 5.5vw, 2.3rem);
  }

  .chapter-evidence {
    margin-top: 42px;
  }

  .case-diagram {
    min-height: 0;
    padding: 18px;
    overflow: hidden;
  }

  .diagram-viewport {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .diagram-viewport-responsive {
    overflow: hidden;
  }

  .case-diagram svg {
    width: 820px;
    min-width: 820px;
    height: auto;
  }

  .diagram-controls {
    flex-wrap: nowrap;
    margin-right: 0;
    padding-right: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .diagram-controls button {
    flex: 0 0 auto;
    min-width: max-content;
    scroll-snap-align: center;
  }

  .spc-controls button {
    min-width: 46%;
  }

  .diagram-caption {
    flex-direction: column;
    gap: 6px;
  }

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

  .decision-card {
    min-height: 0;
  }

  .case-result {
    padding: 30px 24px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .draw-line {
    stroke-dashoffset: 0 !important;
  }

  .system-cycle-signal,
  .hero-method-step {
    animation: none !important;
  }

  .hero-method-step {
    opacity: 0.72;
  }
}
