.system-case { padding-top: var(--header-h); }
.system-case__wrap { margin-inline: auto; width: min(1320px, calc(100% - var(--pad) * 2)); }
.system-case__hero { padding-block: clamp(2rem, 5vw, 5rem) clamp(3rem, 6vw, 6rem); }
.system-case__topline { align-items: center; display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; }
.system-case__back { align-items: center; background: var(--green); border: 1px solid var(--green); border-radius: 999px; display: inline-flex; font-size: 0.875rem; gap: 0.75rem; min-height: 44px; padding: 0.7rem 1.2rem; }
.system-case__back:hover { background: white; border-color: var(--ink); }
.system-case__type { align-items: center; display: flex; flex-wrap: wrap; font-family: "DM Mono", monospace; font-size: 0.875rem; gap: 0.75rem; margin: 0; text-transform: uppercase; }
.system-case__type > span { background: var(--green); border-radius: 50%; height: 8px; width: 8px; }
.system-case__type time { color: var(--muted); }
.system-case__identity { align-items: center; display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; margin-top: clamp(3rem, 6vw, 6rem); }
.system-case__client { display: inline-flex; font-size: 1.125rem; font-weight: 500; max-width: 100%; }
.system-case__client img { height: 108px; max-width: min(100%, 380px); object-fit: contain; object-position: left center; }
.system-case__preview { color: var(--muted); font-size: 0.875rem; margin: 0; }
.system-case h1 { font-size: clamp(3rem, 7vw, 7rem); font-weight: 400; letter-spacing: -0.07em; line-height: 1.02; margin: 2rem 0 0; max-width: 18ch; overflow-wrap: anywhere; }
.system-case__lead { color: var(--muted); font-size: clamp(1.125rem, 1.7vw, 1.5rem); line-height: 1.6; margin: 2rem 0 0; max-width: 55ch; }
.system-case__hero-media { margin-bottom: clamp(3rem, 6vw, 6rem); }
.system-case__chapter { border-top: 1px solid var(--line); display: grid; gap: 2rem clamp(2rem, 6vw, 6rem); grid-template-columns: minmax(80px, 0.24fr) minmax(0, 1fr); padding-block: clamp(3rem, 6vw, 6rem); }
.system-case__chapter-index { align-self: start; font-family: "DM Mono", monospace; font-size: 0.875rem; padding-top: 0.5rem; }
.system-case__chapter-index::before { background: var(--green); content: ""; display: inline-block; height: 6px; margin-right: 0.75rem; vertical-align: middle; width: 6px; }
.system-case__chapter-copy { max-width: 50rem; min-width: 0; }
.system-case h2 { font-size: clamp(2rem, 3.5vw, 3.5rem); font-weight: 400; letter-spacing: -0.055em; line-height: 1.12; margin: 0; overflow-wrap: anywhere; }
.system-case__prose { font-size: 1.125rem; line-height: 1.8; margin-top: 1.5rem; overflow-wrap: anywhere; }
.system-case__prose > :first-child { margin-top: 0; }
.system-case__prose > :last-child { margin-bottom: 0; }
.system-case__prose p { margin-block: 0 1.25rem; }
.system-case__prose a { text-decoration: underline; text-underline-offset: 0.2em; }
.system-case__prose h3 { font-size: 1.5rem; font-weight: 500; line-height: 1.35; }
.system-case__prose ul,
.system-case__prose ol { padding-left: 1.4rem; }
.system-case__prose li + li { margin-top: 0.5rem; }
.system-case__prose img { height: auto; max-width: 100%; }
.system-case__prose pre { max-width: 100%; overflow-x: auto; }
.system-case__chapter-media,
.system-case__comparison { grid-column: 1 / -1; margin-top: 1rem; min-width: 0; }
.system-case__comparison { display: grid; gap: clamp(1rem, 3vw, 3rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.system-case__version { min-width: 0; }
.system-case__version h3 { border-top: 3px solid var(--line); font-size: 1rem; font-weight: 500; margin: 0; padding: 1rem 0; }
.system-case__version--new h3 { border-color: var(--green); }
.case-media { margin: 0; min-width: 0; }
.case-media__surface { background: var(--soft); border: 1px solid var(--line); padding: clamp(0.5rem, 2vw, 1.5rem); }
.case-media__surface > a { display: block; position: relative; }
.case-media__surface img,
.case-media__surface video { display: block; height: auto; max-height: 78svh; object-fit: contain; width: 100%; }
.case-media__expand { align-items: center; background: white; border: 1px solid var(--line); bottom: 0.5rem; display: flex; height: 36px; justify-content: center; position: absolute; right: 0.5rem; width: 36px; }
.case-media__surface > a:hover .case-media__expand { background: var(--green); border-color: var(--green); }
.case-media figcaption { color: var(--muted); font-size: 0.875rem; line-height: 1.65; margin-top: 0.85rem; overflow-wrap: anywhere; }
.system-case__results { display: grid; gap: 2rem; grid-column: 2; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 1rem 0 0; }
.system-case__results > div { border-top: 3px solid var(--green); display: flex; flex-direction: column; min-width: 0; padding-top: 1.3rem; }
.system-case__results dt { font-size: 1rem; order: 1; }
.system-case__results dd { margin-left: 0; overflow-wrap: anywhere; }
.system-case__metric { font-size: clamp(2.4rem, 4.5vw, 4.5rem); letter-spacing: -0.06em; line-height: 1.1; margin-bottom: 0.8rem; order: 0; }
.system-case__metric-context { color: var(--muted); font-size: 0.875rem; line-height: 1.6; margin-top: 0.75rem; order: 2; }
.system-case__closing { align-items: center; border-top: 1px solid var(--ink); display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; padding-block: clamp(3rem, 5vw, 5rem); }
.system-case__closing p { font-size: clamp(1.75rem, 3vw, 3rem); letter-spacing: -0.04em; line-height: 1.2; margin: 0; }
.system-case__closing .button { font-size: 1rem; }
.system-case :focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }

@media (max-width: 720px) {
  .system-case__hero { padding-block: 2rem 3rem; }
  .system-case__identity { margin-top: 3rem; }
  .system-case__client img { height: 84px; }
  .system-case h1 { font-size: clamp(2.8rem, 11vw, 4.5rem); }
  .system-case__chapter { gap: 1.5rem; grid-template-columns: minmax(0, 1fr); padding-block: 3rem; }
  .system-case__chapter-index { padding: 0; }
  .system-case__comparison { gap: 2rem; grid-template-columns: minmax(0, 1fr); }
  .system-case__results { grid-column: 1; }
  .system-case__closing { align-items: flex-start; flex-direction: column; }
  .system-case__closing .button { max-width: 100%; }
}
