.case-study-section {
  padding: 120px 0;
  background: #efe9de;
  border-bottom: 1px solid var(--line);
}

.case-study-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 56px;
}

.case-study-heading h2 {
  max-width: 850px;
}

.case-study-heading > p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.75;
  max-width: 430px;
}

.case-study {
  background: var(--surface);
  border: 1px solid rgba(16, 23, 27, .16);
  box-shadow: 0 28px 80px rgba(17, 28, 33, .07);
}

.case-study-hero {
  display: grid;
  grid-template-columns: 170px minmax(320px, .8fr) minmax(300px, 1.2fr);
  gap: 42px;
  padding: 40px;
  background: var(--teal-deep);
  color: #f7faf9;
}

.case-study-marker {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  padding-right: 24px;
  border-right: 1px solid rgba(255,255,255,.15);
}

.case-study-marker span:first-child {
  color: var(--bronze-light);
  font-family: Georgia, serif;
  font-size: 2.4rem;
  line-height: 1;
}

.case-study-marker span:last-child {
  color: #8fa8ae;
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  line-height: 1.6;
}

.case-study-title > p {
  margin-bottom: 12px;
  color: var(--bronze-light);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.case-study-title h3 {
  max-width: 440px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 3.8vw, 3.7rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.case-study-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.case-study-status span {
  padding: 7px 10px;
  border: 1px solid rgba(214,174,119,.32);
  color: #d5e0e2;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.case-study-summary {
  align-self: end;
  max-width: 620px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.15);
  color: #b7c8cc;
  font-family: Georgia, serif;
  font-size: clamp(1.15rem, 1.8vw, 1.48rem);
  line-height: 1.6;
}

.case-study-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.case-study-metric {
  min-height: 150px;
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
}

.case-study-metric:last-child { border-right: 0; }

.case-study-metric strong {
  color: var(--teal);
  font-family: Georgia, serif;
  font-size: clamp(2.1rem, 3.7vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1;
}

.case-study-metric span {
  color: var(--muted);
  font-size: .76rem;
}

.case-study-context {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.case-study-context > div {
  padding: 42px;
}

.case-study-context > div + div {
  border-left: 1px solid var(--line);
}

.case-study-label {
  display: block;
  margin-bottom: 14px;
  color: var(--bronze);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.case-study-context p,
.case-study-outcome p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.8;
}

.case-study-approach,
.case-study-phases {
  padding: 46px 42px;
  border-bottom: 1px solid var(--line);
}

.case-study-subhead {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: start;
  margin-bottom: 36px;
}

.case-study-subhead h4 {
  max-width: 650px;
  color: var(--teal-deep);
  font-family: Georgia, serif;
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.12;
}

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

.case-study-step {
  min-height: 250px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-study-step > span {
  color: var(--bronze);
  font-family: Georgia, serif;
  font-size: .8rem;
}

.case-study-step h5 {
  margin: 54px 0 12px;
  color: var(--teal-deep);
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.2;
}

.case-study-step p {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.65;
}

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

.phase-row {
  display: grid;
  grid-template-columns: 120px 240px 1fr;
  gap: 28px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.phase-number {
  color: #9d8f7c;
  font-family: Georgia, serif;
}

.phase-row > div {
  display: grid;
  gap: 5px;
}

.phase-row strong {
  color: var(--teal-deep);
  font-size: .95rem;
}

.phase-row > div span {
  color: var(--bronze);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.phase-row p {
  color: var(--muted);
  font-size: .88rem;
}

.case-study-outcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .8fr);
  gap: 0;
}

.case-study-outcome > div {
  padding: 42px;
}

.case-study-outcome > div + div {
  border-left: 1px solid var(--line);
  background: #f6f2ea;
}

.case-study-landscape > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.case-study-landscape > div span {
  padding: 7px 9px;
  background: rgba(16, 51, 60, .065);
  color: var(--teal);
  font-size: .68rem;
  font-weight: 700;
}

.case-study-landscape b {
  color: #aa9273;
  font-weight: 400;
}

.work-case-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--bronze);
  text-decoration: none;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.work-case-link:hover { color: var(--teal); }

@media (max-width: 1050px) {
  .case-study-heading { grid-template-columns: 1fr; gap: 24px; }
  .case-study-hero { grid-template-columns: 110px 1fr; }
  .case-study-summary { grid-column: 2; }
  .case-study-marker { grid-row: 1 / span 2; }
  .case-study-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  .case-study-section { padding: 82px 0; }
  .case-study-hero { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
  .case-study-marker { grid-row: auto; min-height: auto; flex-direction: row; align-items: center; padding: 0 0 18px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .case-study-summary { grid-column: auto; }
  .case-study-metrics { grid-template-columns: 1fr; }
  .case-study-metric { min-height: 112px; border-right: 0; border-bottom: 1px solid var(--line); }
  .case-study-metric:last-child { border-bottom: 0; }
  .case-study-context { grid-template-columns: 1fr; }
  .case-study-context > div { padding: 30px 28px; }
  .case-study-context > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .case-study-approach, .case-study-phases { padding: 36px 28px; }
  .case-study-subhead { grid-template-columns: 1fr; gap: 4px; }
  .case-study-steps { grid-template-columns: 1fr; }
  .case-study-step { min-height: auto; }
  .case-study-step h5 { margin-top: 28px; }
  .phase-row { grid-template-columns: 90px 1fr; }
  .phase-row p { grid-column: 2; }
  .case-study-outcome { grid-template-columns: 1fr; }
  .case-study-outcome > div { padding: 30px 28px; }
  .case-study-outcome > div + div { border-left: 0; border-top: 1px solid var(--line); }
}
