.case-site {
  background: var(--paper);
}

.case-site .site-header {
  background: rgba(7, 17, 31, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.case-site .site-nav a[aria-current="page"]:not(.nav-cta) {
  color: var(--lime);
}

.case-shell {
  width: min(calc(100% - (var(--gutter) * 2)), var(--max-width));
  margin: 0 auto;
}

.case-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.52);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-breadcrumb a {
  color: var(--lime);
}

.case-index-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 24%, rgba(36, 87, 255, 0.34), transparent 28%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--ink);
  background-size: auto, 70px 70px, 70px 70px, auto;
}

.case-index-hero {
  min-height: 76svh;
  padding: clamp(9rem, 15vw, 13rem) var(--gutter) clamp(5rem, 10vw, 9rem);
}

.case-index-hero::after,
.detail-hero::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -45%;
  width: 58vw;
  height: 58vw;
  border: 1px solid rgba(215, 255, 69, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 8vw rgba(215, 255, 69, 0.025),
    0 0 0 16vw rgba(215, 255, 69, 0.018);
  pointer-events: none;
}

.case-index-hero .case-shell,
.detail-hero .case-shell {
  position: relative;
  z-index: 1;
}

.case-index-title {
  max-width: 1200px;
  margin-bottom: 2rem;
  font-size: clamp(4rem, 9.5vw, 10rem);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: -0.08em;
}

.case-index-title em,
.detail-title em {
  color: var(--lime);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.case-index-intro {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 4rem;
  align-items: end;
}

.case-index-intro > p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  line-height: 1.7;
}

.case-index-count {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.case-index-count strong {
  color: var(--lime);
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.8;
  letter-spacing: -0.06em;
}

.case-index-count span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-list-section {
  padding: var(--section-pad) var(--gutter);
}

.case-list-heading {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-end;
  margin-bottom: clamp(3rem, 6vw, 6rem);
}

.case-list-heading h2 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.case-list-heading p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.case-index-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
}

.case-index-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  min-height: 620px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 320ms ease;
}

.case-index-card:hover,
.case-index-card:focus-visible {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.case-card-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(2rem, 5vw, 5rem);
  overflow: hidden;
  background: var(--blue);
}

.analytics-index-card .case-card-visual {
  background: var(--ink);
}

.case-card-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.19) 1px, transparent 1px);
  background-size: 20px 20px;
}

.case-card-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  border: 7px solid var(--white);
  border-radius: 12px;
  box-shadow: 0 30px 70px rgba(7, 17, 31, 0.35);
  transition: transform 350ms ease;
}

.forecast-index-card .case-card-visual img {
  width: min(76%, 470px);
  aspect-ratio: 1 / 0.92;
  object-fit: cover;
  object-position: top;
  transform: rotate(-2deg);
}

.analytics-index-card .case-card-visual img {
  transform: rotate(1deg);
}

.case-index-card:hover .case-card-visual img,
.case-index-card:focus-visible .case-card-visual img {
  transform: rotate(0) scale(1.02);
}

.case-card-marker {
  position: absolute;
  top: 1.4rem;
  left: 1.4rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  font-style: italic;
  font-weight: 800;
}

.case-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 5rem);
}

.case-card-copy .eyebrow {
  margin-bottom: 1rem;
}

.case-card-copy h3 {
  margin-bottom: 1.3rem;
  font-size: clamp(2.5rem, 4.4vw, 5rem);
  font-weight: 680;
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.case-card-copy > p {
  max-width: 600px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.case-card-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.case-card-facts span {
  padding: 0.85rem;
  color: #596474;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.63rem;
  font-weight: 750;
  text-align: center;
}

.case-card-arrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1.2rem;
  color: var(--blue);
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case-card-arrow i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
  font-size: 1rem;
  font-style: normal;
}

.case-method {
  color: var(--white);
  background: var(--blue);
}

.case-method .case-shell {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: clamp(2rem, 8vw, 8rem);
}

.case-method h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.method-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.method-list article {
  min-height: 230px;
  padding: 1.2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.method-list span {
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
}

.method-list h3 {
  margin: 4.4rem 0 0.7rem;
  font-size: 1.1rem;
}

.method-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.57);
  font-size: 0.72rem;
  line-height: 1.6;
}

.detail-hero {
  min-height: 82svh;
  padding: clamp(9rem, 14vw, 12rem) var(--gutter) clamp(4rem, 8vw, 7rem);
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.detail-kicker {
  margin-bottom: 1.2rem;
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-title {
  max-width: 930px;
  margin-bottom: 1.5rem;
  font-size: clamp(3.5rem, 7.6vw, 8rem);
  font-weight: 700;
  line-height: 0.87;
  letter-spacing: -0.075em;
}

.detail-summary {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.63);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.7;
}

.detail-hero-visual {
  position: relative;
  padding: clamp(1rem, 2vw, 2rem);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 26px;
  backdrop-filter: blur(12px);
}

.detail-hero-visual img {
  width: 100%;
  max-height: 510px;
  object-fit: cover;
  object-position: top;
  border-radius: 15px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.forecast-detail .detail-hero-visual img {
  aspect-ratio: 1 / 0.96;
}

.analytics-detail .detail-hero-visual img {
  aspect-ratio: 1.55 / 1;
}

.visual-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
}

.visual-caption span:last-child {
  color: var(--lime);
}

.case-snapshot {
  color: var(--white);
  background: var(--blue);
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.23);
  border-left: 1px solid rgba(255, 255, 255, 0.23);
}

.snapshot-grid article {
  min-height: 170px;
  padding: 1.2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.23);
  border-bottom: 1px solid rgba(255, 255, 255, 0.23);
}

.snapshot-grid span {
  display: block;
  margin-bottom: 2.5rem;
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.snapshot-grid strong {
  display: block;
  max-width: 270px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.case-body {
  padding: var(--section-pad) var(--gutter);
}

.case-section {
  padding: clamp(4rem, 8vw, 8rem) 0;
  border-top: 1px solid var(--line);
}

.case-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.case-section-heading {
  display: grid;
  grid-template-columns: 0.44fr 1.12fr 0.44fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  margin-bottom: clamp(2.5rem, 5vw, 5rem);
}

.case-section-label {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-section-heading h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4.8vw, 5.2rem);
  font-weight: 670;
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.case-section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.75;
}

.case-prose {
  display: grid;
  grid-template-columns: 0.44fr 1.12fr 0.44fr;
  gap: clamp(1.5rem, 5vw, 5rem);
}

.case-prose > div {
  grid-column: 2;
}

.case-prose p {
  color: #4f5968;
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  line-height: 1.8;
}

.case-prose p:first-child {
  color: var(--ink);
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  font-weight: 560;
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.challenge-grid,
.mode-grid,
.engineering-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.challenge-grid article,
.mode-grid article,
.engineering-grid article {
  min-height: 260px;
  padding: 1.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.challenge-grid span,
.mode-grid > article > span,
.engineering-grid span {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.6rem;
  font-weight: 800;
}

.challenge-grid h3,
.mode-grid h3,
.engineering-grid h3 {
  margin: 5rem 0 0.8rem;
  font-size: 1.35rem;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.challenge-grid p,
.mode-grid p,
.engineering-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.65;
}

.architecture-board {
  position: relative;
  padding: clamp(1.3rem, 4vw, 4rem);
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    var(--ink);
  background-size: 28px 28px;
  border-radius: 24px;
}

.architecture-board > p {
  margin-bottom: 2rem;
  color: var(--aqua);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.architecture-flow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: stretch;
}

.architecture-node {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
}

.architecture-node:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -0.7rem;
  z-index: 2;
  color: var(--lime);
}

.architecture-node b {
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.55rem;
}

.architecture-node strong {
  font-size: 0.76rem;
  line-height: 1.35;
}

.architecture-node span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.58rem;
  line-height: 1.45;
}

.architecture-note {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0 0;
  padding-top: 1rem;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.64rem;
}

.architecture-note strong {
  color: var(--lime);
}

.compute-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.compute-card {
  position: relative;
  min-height: 430px;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  overflow: hidden;
  color: var(--white);
  background: var(--blue);
  border-radius: 20px;
}

.compute-card:last-child {
  background: var(--ink);
}

.compute-card > span {
  display: inline-block;
  padding: 0.4rem 0.55rem;
  color: var(--ink);
  background: var(--lime);
  border-radius: 99px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.57rem;
  font-weight: 800;
  text-transform: uppercase;
}

.compute-card h3 {
  max-width: 500px;
  margin: 3.5rem 0 1rem;
  font-size: clamp(2rem, 3.4vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.compute-card > p {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  line-height: 1.7;
}

.compute-card ul {
  display: grid;
  gap: 0.6rem;
  margin: 2rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  list-style: none;
}

.compute-card li {
  position: relative;
  padding-left: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
}

.compute-card li::before {
  content: "↳";
  position: absolute;
  left: 0;
  color: var(--lime);
}

.stage-list {
  counter-reset: stage;
  border-top: 1px solid var(--line);
}

.stage-row {
  counter-increment: stage;
  display: grid;
  grid-template-columns: 0.32fr 0.76fr 0.92fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: clamp(2rem, 5vw, 4.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.stage-row::before {
  content: "0" counter(stage);
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 6rem);
  font-style: italic;
  line-height: 0.8;
}

.stage-row h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.7vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.stage-row > div p {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.7;
}

.stage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.stage-tags span {
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 0.6rem;
  font-weight: 700;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.metric-card {
  min-height: 180px;
  padding: 1.1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-card strong {
  display: block;
  margin-bottom: 2.8rem;
  color: var(--blue);
  font-size: 1.1rem;
}

.metric-card span {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
}

.metric-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.55;
}

.evidence-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(2rem, 5vw, 5rem);
  color: var(--white);
  background: var(--blue);
  border-radius: 22px;
}

.evidence-panel h3 {
  margin-bottom: 1.2rem;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.evidence-panel p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
  line-height: 1.7;
}

.cost-card {
  align-self: stretch;
  padding: 1.5rem;
  color: var(--ink);
  background: var(--lime);
  border-radius: 14px;
}

.cost-card > span {
  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cost-card strong {
  display: block;
  margin: 2.7rem 0 0.6rem;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.85;
  letter-spacing: -0.07em;
}

.cost-card p {
  margin: 0;
  color: rgba(7, 17, 31, 0.68);
}

.cost-card small {
  display: block;
  margin-top: 1rem;
  font-size: 0.58rem;
  line-height: 1.5;
}

.case-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.case-gallery .product-frame {
  align-self: start;
}

.case-gallery .product-frame img {
  width: 100%;
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
  object-position: top;
}

.forecast-gallery .product-frame img {
  aspect-ratio: 1 / 0.83;
}

.analytics-gallery-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 1rem;
}

.analytics-gallery-grid > button:first-child {
  grid-row: span 2;
}

.analytics-gallery-grid .product-frame img {
  width: 100%;
  aspect-ratio: 1.55 / 1;
  object-fit: cover;
  object-position: top left;
}

.analytics-gallery-grid > button:first-child img {
  height: 100%;
  aspect-ratio: auto;
}

.decision-pattern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  color: var(--white);
  background: var(--ink);
  border-radius: 20px;
  overflow: hidden;
}

.decision-pattern article {
  position: relative;
  min-height: 300px;
  padding: clamp(1.4rem, 3vw, 2.8rem);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.decision-pattern article:last-child {
  border-right: 0;
  background: var(--lime);
  color: var(--ink);
}

.decision-pattern span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 850;
}

.decision-pattern article:last-child span {
  color: var(--white);
  background: var(--blue);
}

.decision-pattern h3 {
  margin: 5rem 0 0.8rem;
  font-size: clamp(1.7rem, 3vw, 3rem);
  letter-spacing: -0.05em;
}

.decision-pattern p {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.76rem;
  line-height: 1.65;
}

.decision-pattern article:last-child p {
  color: rgba(7, 17, 31, 0.65);
}

.mode-grid {
  grid-template-columns: repeat(3, 1fr);
}

.mode-grid article {
  min-height: 420px;
}

.mode-grid h3 {
  margin-top: 4rem;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.mode-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.mode-list span {
  color: #566170;
  font-size: 0.65rem;
}

.lineage-table {
  border-top: 1px solid var(--line);
}

.lineage-row {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.2fr;
  gap: 2rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.74rem;
}

.lineage-row:first-child {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lineage-row span:nth-child(2),
.lineage-row span:nth-child(3) {
  color: var(--muted);
}

.case-takeaway {
  padding: clamp(3rem, 8vw, 8rem) var(--gutter);
  color: var(--white);
  background: var(--blue);
}

.case-takeaway blockquote {
  max-width: 1200px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 7rem);
  font-weight: 630;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.case-takeaway blockquote em {
  color: var(--lime);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.next-case {
  padding: clamp(4rem, 8vw, 8rem) var(--gutter);
  color: var(--white);
  background: var(--ink);
}

.next-case a {
  display: grid;
  grid-template-columns: 0.4fr 1.2fr 0.4fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.next-case span {
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.64rem;
  text-transform: uppercase;
}

.next-case h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5.5vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.next-case i {
  justify-self: end;
  color: var(--lime);
  font-size: clamp(2rem, 5vw, 5rem);
  font-style: normal;
}

@media (max-width: 1080px) {
  .case-index-card,
  .detail-hero-grid {
    grid-template-columns: 1fr;
  }

  .case-index-card {
    min-height: auto;
  }

  .case-card-visual {
    min-height: 520px;
  }

  .detail-hero-visual {
    width: min(760px, 100%);
  }

  .architecture-flow {
    grid-template-columns: repeat(4, 1fr);
  }

  .architecture-node:nth-child(4)::after {
    display: none;
  }

  .challenge-grid,
  .engineering-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .case-index-intro,
  .case-method .case-shell,
  .case-section-heading,
  .case-prose,
  .evidence-panel,
  .case-gallery {
    grid-template-columns: 1fr;
  }

  .case-index-count {
    justify-content: flex-start;
    max-width: 300px;
  }

  .case-list-heading {
    display: grid;
  }

  .method-list,
  .mode-grid {
    grid-template-columns: 1fr;
  }

  .method-list article {
    min-height: 190px;
  }

  .snapshot-grid,
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-section-heading > p {
    max-width: 620px;
  }

  .case-prose > div {
    grid-column: 1;
  }

  .compute-grid {
    grid-template-columns: 1fr;
  }

  .stage-row {
    grid-template-columns: 0.25fr 0.75fr;
  }

  .stage-row > div {
    grid-column: 2;
  }

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

  .decision-pattern article {
    min-height: 240px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .analytics-gallery-grid {
    grid-template-columns: 1fr;
  }

  .analytics-gallery-grid > button:first-child {
    grid-row: auto;
  }

  .lineage-row {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .lineage-row span:last-child {
    grid-column: 2;
  }

  .next-case a {
    grid-template-columns: 1fr auto;
  }

  .next-case h2 {
    grid-column: 1;
  }

  .next-case i {
    grid-column: 2;
    grid-row: 1 / 3;
  }
}

@media (max-width: 560px) {
  .case-index-title {
    font-size: 4rem;
  }

  .case-index-hero,
  .detail-hero {
    min-height: auto;
    padding-top: 8.5rem;
  }

  .case-card-visual {
    min-height: 350px;
    padding: 2rem 1rem;
  }

  .case-card-copy {
    padding: 2rem 1.2rem;
  }

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

  .detail-title {
    font-size: 3.7rem;
  }

  .snapshot-grid,
  .challenge-grid,
  .engineering-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .snapshot-grid article {
    min-height: 140px;
  }

  .snapshot-grid span {
    margin-bottom: 1.5rem;
  }

  .architecture-flow {
    grid-template-columns: 1fr;
  }

  .architecture-node {
    min-height: 120px;
  }

  .architecture-node:not(:last-child)::after,
  .architecture-node:nth-child(4)::after {
    top: auto;
    right: 50%;
    bottom: -0.8rem;
    display: block;
    transform: rotate(90deg);
  }

  .architecture-note {
    flex-direction: column;
  }

  .stage-row {
    grid-template-columns: 1fr;
  }

  .stage-row > div {
    grid-column: 1;
  }

  .lineage-row,
  .lineage-row:first-child {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .lineage-row span:last-child {
    grid-column: 1;
  }
}
