.case-page {
  --case-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --case-ink: #221a16;
  --case-muted: #71645c;
  --case-paper: #f5f1eb;
  --case-white: #fffdf9;
  --case-gold: #b47b43;
  --case-line: #ded4c9;
  margin: 0;
  color: var(--case-ink);
  background: var(--case-paper);
  font-family: var(--case-font);
}

.case-page button,
.case-page input,
.case-page select,
.case-page textarea {
  font-family: var(--case-font);
}

.case-page main {
  overflow: hidden;
}

.case-page h1,
.case-page h2,
.case-page h3,
.case-page p,
.case-page figure,
.case-page dl {
  margin-top: 0;
}

.case-page h1,
.case-page h2,
.case-page h3 {
  font-family: var(--case-font);
}

.case-hero {
  position: relative;
  display: flex;
  min-height: 650px;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #2a1b14;
}

.case-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.case-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 17, 12, 0.94) 0%, rgba(28, 17, 12, 0.8) 38%, rgba(28, 17, 12, 0.18) 74%),
    linear-gradient(180deg, rgba(18, 11, 8, 0.18), rgba(18, 11, 8, 0.48));
}

.case-hero-content {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 148px 0 76px;
}

.case-breadcrumb {
  position: absolute;
  z-index: 2;
  top: 112px;
  left: max(24px, calc((100% - 1240px) / 2));
  display: flex;
  gap: 9px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.88rem;
  font-weight: 750;
}

.case-breadcrumb a {
  color: rgba(255, 255, 255, 0.82);
}

.case-kicker {
  margin-bottom: 18px;
  color: #d6a56e;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.case-hero h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.case-hero-content > p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.75;
}

.case-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.42fr);
  gap: 84px;
  align-items: end;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 106px 0 58px;
}

.case-intro h2,
.case-cta h2 {
  margin-bottom: 0;
  font-size: clamp(2.5rem, 4.5vw, 5rem);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 1;
}

.case-intro > p {
  margin-bottom: 8px;
  color: var(--case-muted);
  line-height: 1.75;
}

.case-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto 46px;
  border-top: 1px solid var(--case-line);
  border-bottom: 1px solid var(--case-line);
}

.case-index a {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border-right: 1px solid var(--case-line);
  transition: background-color 180ms ease;
}

.case-index a:last-child {
  border-right: 0;
}

.case-index a:hover {
  background: var(--case-white);
}

.case-index span {
  color: var(--case-gold);
  font-size: 1rem;
  font-weight: 850;
}

.case-index strong {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-stories {
  width: min(1360px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 120px;
}

.case-story {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(450px, 0.92fr);
  min-height: 760px;
  margin-bottom: 34px;
  scroll-margin-top: 100px;
  overflow: hidden;
  background: var(--case-white);
  border: 1px solid var(--case-line);
  border-radius: 4px;
  box-shadow: 0 22px 58px rgba(56, 38, 27, 0.08);
}

.case-story-reverse {
  grid-template-columns: minmax(450px, 0.92fr) minmax(0, 1.08fr);
}

.case-story-reverse .case-story-media {
  order: 2;
}

.case-story-reverse .case-story-copy {
  order: 1;
}

.case-story-media {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background: #d7c4ae;
}

.case-story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-story-media figure {
  margin: 0;
  overflow: hidden;
}

.case-media-single > img {
  height: 100%;
}

.case-media-trio {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1.3fr 0.7fr;
  gap: 5px;
}

.case-media-trio .case-media-feature {
  grid-column: 1 / -1;
}

.case-media-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  background: #111a2c;
}

.case-story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 5.5vw, 82px);
}

.case-story h2 {
  margin-bottom: 34px;
  font-size: clamp(2.6rem, 4.2vw, 4.8rem);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 0.96;
}

.case-box-type {
  margin-bottom: 34px;
  border-top: 1px solid var(--case-line);
  border-bottom: 1px solid var(--case-line);
}

.case-box-type > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 22px;
  padding: 16px 0;
}

.case-box-type > div + div {
  border-top: 1px solid var(--case-line);
}

.case-box-type dt,
.case-text-block h3 {
  color: var(--case-muted);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-box-type dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.55;
}

.case-text-block {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 25px;
}

.case-text-block h3 {
  margin: 4px 0 0;
}

.case-text-block p {
  margin-bottom: 0;
  color: #544841;
  font-size: 0.98rem;
  line-height: 1.75;
}

.case-view-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding: 18px 0 7px;
  border-top: 1px solid var(--case-line);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-view-link span {
  font-size: 1.1rem;
}

.case-story-navy,
.case-story-sage {
  color: var(--case-ink);
  background: var(--case-white);
  border-color: var(--case-line);
}

.case-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.44fr);
  gap: 86px;
  align-items: end;
  padding: 100px max(24px, calc((100% - 1240px) / 2));
  color: #fff;
  background: #3f281e;
}

.case-cta > div:last-child > p {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.75;
}

.case-cta > div:last-child > a {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 0 20px;
  color: var(--case-ink);
  background: #e5bb7c;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1050px) {
  .case-story,
  .case-story-reverse {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.88fr);
  }

  .case-story-reverse {
    grid-template-columns: minmax(390px, 0.88fr) minmax(0, 1fr);
  }

  .case-story-copy {
    padding: 44px 36px;
  }

  .case-story h2 {
    font-size: clamp(2.5rem, 4.6vw, 3.7rem);
  }
}

@media (max-width: 820px) {
  .case-hero {
    min-height: 720px;
  }

  .case-hero-content {
    padding-top: 138px;
  }

  .case-intro,
  .case-cta {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .case-index a:nth-child(2) {
    border-right: 0;
  }

  .case-index a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--case-line);
  }

  .case-story,
  .case-story-reverse {
    grid-template-columns: 1fr;
  }

  .case-story-reverse .case-story-media,
  .case-story-reverse .case-story-copy {
    order: initial;
  }

  .case-story-media {
    min-height: 72vw;
  }

  .case-story-copy {
    padding: 58px 38px;
  }
}

@media (max-width: 540px) {
  .case-hero {
    min-height: 700px;
  }

  .case-hero-content {
    width: min(100% - 36px, 1240px);
    padding: 126px 0 58px;
  }

  .case-breadcrumb {
    margin-bottom: 48px;
  }

  .case-hero h1 {
    font-size: 3.2rem;
  }

  .case-intro,
  .case-index,
  .case-stories {
    width: min(100% - 32px, 1240px);
  }

  .case-intro {
    padding: 76px 0 46px;
  }

  .case-intro h2,
  .case-cta h2 {
    font-size: 2.65rem;
  }

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

  .case-index a,
  .case-index a:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--case-line);
  }

  .case-index a:last-child {
    border-bottom: 0;
  }

  .case-stories {
    padding-bottom: 78px;
  }

  .case-story {
    min-height: 0;
    margin-bottom: 20px;
  }

  .case-story-media {
    min-height: 96vw;
  }

  .case-media-trio {
    min-height: 124vw;
  }

  .case-media-duo {
    min-height: 108vw;
  }

  .case-story-copy {
    padding: 46px 20px 42px;
  }

  .case-story-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .case-story h2 {
    font-size: 2.75rem;
  }

  .case-box-type > div,
  .case-text-block {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .case-text-block h3 {
    margin-top: 0;
  }

  .case-cta {
    padding: 78px 18px;
  }
}

/* Hero and catalog refinements */
.case-hero {
  display: grid;
  grid-template-columns: minmax(400px, 43%) minmax(0, 57%);
  min-height: 700px;
  align-items: stretch;
  background: #382319;
}

.case-hero > img {
  position: relative;
  inset: auto;
  z-index: 0;
  grid-column: 2;
  grid-row: 1;
  object-position: center;
}

.case-hero-overlay {
  z-index: 1;
  left: 43%;
  background: linear-gradient(90deg, rgba(56, 35, 25, 0.42), transparent 25%);
  pointer-events: none;
}

.case-hero-content {
  display: flex;
  width: auto;
  min-width: 0;
  flex-direction: column;
  grid-column: 1;
  grid-row: 1;
  justify-content: center;
  margin: 0;
  padding: 176px clamp(34px, 5.5vw, 92px) 86px;
  background: #382319;
  border-right: 1px solid rgba(214, 165, 110, 0.22);
}

.case-hero-content::before {
  width: 46px;
  height: 2px;
  margin-bottom: 30px;
  background: #d6a56e;
  content: "";
}

.case-breadcrumb {
  top: 126px;
  left: clamp(34px, 5.5vw, 92px);
}

.case-hero h1 {
  max-width: 480px;
  margin-bottom: 26px;
  font-size: clamp(3.6rem, 5vw, 5.4rem);
  line-height: 0.9;
}

.case-hero-content > p:last-child {
  max-width: 430px;
  font-size: 1.02rem;
  line-height: 1.72;
}

.case-structure-item figure {
  height: 205px;
}

.case-structure-item img {
  padding: 18px;
}

.case-workflow-link {
  min-width: 342px;
  min-height: 60px;
  padding: 0 24px;
  box-shadow: 0 12px 26px rgba(56, 35, 25, 0.16);
  font-size: 0.76rem;
  letter-spacing: 0.095em;
}

.case-workflow-link span {
  font-size: 1rem;
}

@media (max-width: 820px) {
  .case-hero {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(470px, auto) minmax(330px, 62vw);
    min-height: 0;
  }

  .case-hero > img {
    grid-column: 1;
    grid-row: 2;
  }

  .case-hero-overlay {
    top: auto;
    left: 0;
    height: 44%;
    background: linear-gradient(180deg, rgba(56, 35, 25, 0.32), transparent 34%);
  }

  .case-hero-content {
    min-height: 470px;
    grid-column: 1;
    grid-row: 1;
    padding: 162px 34px 70px;
    border-right: 0;
    border-bottom: 1px solid rgba(214, 165, 110, 0.22);
  }

  .case-breadcrumb {
    top: 116px;
    left: 34px;
  }
}

@media (max-width: 540px) {
  .case-hero {
    grid-template-rows: 440px 290px;
  }

  .case-hero-content {
    width: auto;
    min-height: 440px;
    padding: 146px 20px 58px;
  }

  .case-hero-content::before {
    margin-bottom: 24px;
  }

  .case-breadcrumb {
    top: 106px;
    left: 20px;
    margin: 0;
  }

  .case-hero h1 {
    font-size: 3.45rem;
  }

  .case-hero-content > p:last-child {
    font-size: 0.92rem;
  }

  .case-structure-item figure {
    height: 138px;
  }

  .case-structure-item img {
    padding: 9px;
  }

  .case-workflow-link {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 0 18px;
    font-size: 0.69rem;
  }

  .case-workflow-copy {
    padding-top: 118px;
  }
}

/* Light capability section */
.case-advantages {
  margin-top: 96px;
  padding: 104px max(24px, calc((100% - 1240px) / 2)) 112px;
  color: var(--case-ink);
  background:
    radial-gradient(circle at 88% 8%, rgba(214, 166, 104, 0.16), transparent 25%),
    #f1ebe3;
}

.case-advantages .case-section-heading {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
  gap: 20px 80px;
  align-items: end;
  margin-bottom: 54px;
  text-align: left;
}

.case-advantages .case-section-heading .case-kicker {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.case-advantages .case-section-heading h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.case-advantages .case-section-heading > p:last-child {
  margin: 0 0 4px;
  color: var(--case-muted);
}

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

.case-advantage-grid article {
  position: relative;
  min-height: 250px;
  padding: 34px 32px;
  overflow: hidden;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid rgba(93, 70, 55, 0.14);
  box-shadow: 0 14px 34px rgba(56, 38, 27, 0.055);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.case-advantage-grid article:hover {
  border-color: rgba(180, 123, 67, 0.46);
  box-shadow: 0 20px 42px rgba(56, 38, 27, 0.09);
  transform: translateY(-3px);
}

.case-advantage-grid article::after {
  position: absolute;
  top: 27px;
  right: 28px;
  color: rgba(180, 123, 67, 0.52);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.case-advantage-grid article:nth-child(1)::after { content: "01"; }
.case-advantage-grid article:nth-child(2)::after { content: "02"; }
.case-advantage-grid article:nth-child(3)::after { content: "03"; }
.case-advantage-grid article:nth-child(4)::after { content: "04"; }
.case-advantage-grid article:nth-child(5)::after { content: "05"; }
.case-advantage-grid article:nth-child(6)::after { content: "06"; }

.case-advantage-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 34px;
  color: #a96831;
  background: #f4e5d1;
  border-color: rgba(180, 123, 67, 0.34);
}

.case-advantage-grid h3 {
  color: var(--case-ink);
}

.case-advantage-grid p {
  color: var(--case-muted);
}

@media (max-width: 820px) {
  .case-advantages .case-section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .case-advantages .case-section-heading .case-kicker {
    grid-column: auto;
  }

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

@media (max-width: 540px) {
  .case-advantages {
    margin-top: 0;
    padding: 76px 16px 82px;
  }

  .case-advantages .case-section-heading {
    margin-bottom: 36px;
  }

  .case-advantage-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .case-advantage-grid article {
    min-height: 0;
    padding: 28px 24px 30px;
  }

  .case-advantage-icon {
    margin-bottom: 24px;
  }
}

/* Line-art structure gallery and larger workflow copy */
.case-structures {
  background: #f7f3ee;
}

.case-structure-grid {
  gap: 34px 46px;
}

.case-structure-item,
.case-structure-item:hover,
.case-structure-item:focus-visible {
  overflow: visible;
  text-align: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
}

.case-structure-item figure {
  display: flex;
  height: 148px;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.case-box-sketch {
  width: 128px;
  height: 96px;
  fill: none;
  stroke: #2b221e;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  transition: color 180ms ease, transform 180ms ease;
}

.case-structure-item:hover .case-box-sketch,
.case-structure-item:focus-visible .case-box-sketch {
  stroke: #a96831;
  transform: translateY(-3px);
}

.case-structure-item > div {
  min-height: 0;
  padding: 8px 8px 0;
  text-align: center;
}

.case-structure-item h3 {
  margin-bottom: 8px;
  font-size: 1.22rem;
  line-height: 1.25;
}

.case-structure-item p {
  font-size: 0.94rem;
  line-height: 1.5;
}

.case-workflow li {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
}

.case-workflow li > span {
  font-size: 0.75rem;
}

.case-workflow li h3 {
  margin-bottom: 7px;
  font-size: 1.08rem;
}

.case-workflow li p {
  font-size: 0.95rem;
  line-height: 1.62;
}

@media (max-width: 540px) {
  .case-structure-grid {
    gap: 24px 10px;
  }

  .case-structure-item figure {
    height: 118px;
  }

  .case-box-sketch {
    width: 104px;
    height: 80px;
  }

  .case-structure-item > div {
    padding: 4px 4px 0;
  }

  .case-structure-item h3 {
    font-size: 1.05rem;
  }

  .case-structure-item p {
    font-size: 0.82rem;
  }

  .case-workflow li {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 16px;
  }

  .case-workflow li h3 {
    font-size: 1.04rem;
  }

  .case-workflow li p {
    font-size: 0.9rem;
  }
}

/* Full-bleed image hero */
.case-hero {
  position: relative;
  display: flex;
  min-height: 700px;
  align-items: end;
  overflow: hidden;
  background: #352219;
}

.case-hero > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.case-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(41, 25, 18, 0.88) 0%, rgba(41, 25, 18, 0.7) 34%, rgba(41, 25, 18, 0.18) 68%, rgba(41, 25, 18, 0.06) 100%),
    linear-gradient(180deg, rgba(28, 17, 12, 0.18), rgba(28, 17, 12, 0.5));
  pointer-events: none;
}

.case-hero-content {
  position: relative;
  z-index: 2;
  display: block;
  width: min(1240px, calc(100% - 48px));
  min-height: 0;
  margin: 0 auto;
  padding: 176px 0 84px;
  background: transparent;
  border: 0;
}

.case-hero-content::before {
  display: block;
  width: 46px;
  height: 2px;
  margin-bottom: 30px;
  background: #e0b170;
  content: "";
}

.case-breadcrumb {
  top: 126px;
  left: max(24px, calc((100% - 1240px) / 2));
}

.case-hero h1 {
  max-width: 620px;
  color: #fff;
}

.case-hero-content > p:last-child {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 820px) {
  .case-hero {
    display: flex;
    min-height: 720px;
  }

  .case-hero > img {
    position: absolute;
    inset: 0;
    object-position: 54% center;
  }

  .case-hero-overlay {
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    background:
      linear-gradient(90deg, rgba(41, 25, 18, 0.82), rgba(41, 25, 18, 0.35)),
      linear-gradient(180deg, rgba(28, 17, 12, 0.2), rgba(28, 17, 12, 0.68));
  }

  .case-hero-content {
    width: min(100% - 48px, 1240px);
    min-height: 0;
    padding: 170px 0 72px;
    background: transparent;
    border: 0;
  }

  .case-breadcrumb {
    top: 116px;
    left: 24px;
  }
}

@media (max-width: 540px) {
  .case-hero {
    min-height: 700px;
  }

  .case-hero > img {
    object-position: 58% center;
  }

  .case-hero-overlay {
    background:
      linear-gradient(90deg, rgba(41, 25, 18, 0.84), rgba(41, 25, 18, 0.42)),
      linear-gradient(180deg, rgba(28, 17, 12, 0.2), rgba(28, 17, 12, 0.72));
  }

  .case-hero-content {
    width: calc(100% - 40px);
    padding: 156px 0 64px;
  }

  .case-breadcrumb {
    top: 108px;
    left: 20px;
  }

  .case-hero h1 {
    font-size: 3.45rem;
  }
}

/* Supporting content: structures, capabilities and workflow */
.case-section-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.case-section-heading-centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.case-section-heading h2 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
}

.case-section-heading > p:last-child {
  margin: 0 auto;
  color: var(--case-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.case-structures {
  margin: 0 0 96px;
  padding: 96px max(24px, calc((100% - 1240px) / 2));
  background: #eae3da;
}

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

.case-structure-item {
  position: relative;
  overflow: hidden;
  color: var(--case-ink);
  background: #f8f4ee;
  border: 1px solid rgba(93, 70, 55, 0.16);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.case-structure-item:hover,
.case-structure-item:focus-visible {
  border-color: rgba(180, 123, 67, 0.62);
  box-shadow: 0 18px 38px rgba(56, 38, 27, 0.1);
  transform: translateY(-3px);
  outline: none;
}

.case-structure-item figure {
  height: 186px;
  margin: 0;
  overflow: hidden;
  background: #d9cbbb;
}

.case-structure-item img {
  width: 100%;
  height: 100%;
  padding: 16px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 350ms ease;
}

.case-structure-item:hover img {
  transform: scale(1.035);
}

.case-structure-item > div {
  min-height: 124px;
  padding: 22px 44px 20px 20px;
}

.case-structure-item div > span {
  display: block;
  margin-bottom: 10px;
  color: var(--case-gold);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.case-structure-item h3 {
  margin: 0 0 7px;
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.case-structure-item p {
  margin: 0;
  color: var(--case-muted);
  font-size: 0.8rem;
}

.case-structure-item > i {
  position: absolute;
  right: 19px;
  bottom: 22px;
  color: var(--case-gold);
  font-size: 0.9rem;
  font-style: normal;
}

.case-advantages {
  margin-top: 96px;
  padding: 104px max(24px, calc((100% - 1240px) / 2)) 112px;
  color: #fff;
  background: #382319;
}

.case-advantages .case-section-heading > p:last-child {
  color: rgba(255, 255, 255, 0.62);
}

.case-advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  border-left: 1px solid rgba(255, 255, 255, 0.17);
}

.case-advantage-grid article {
  min-height: 270px;
  padding: 34px;
  border-right: 1px solid rgba(255, 255, 255, 0.17);
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.case-advantage-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  color: #d6a668;
  border: 1px solid rgba(214, 166, 104, 0.48);
  border-radius: 50%;
}

.case-advantage-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.case-advantage-grid h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  font-weight: 800;
}

.case-advantage-grid p {
  max-width: 310px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  line-height: 1.72;
}

.case-workflow {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(440px, 0.95fr);
  min-height: 760px;
  margin-bottom: clamp(54px, 6vw, 88px);
  background: #f6f1ea;
}

.case-workflow-media {
  min-height: 760px;
  margin: 0;
  overflow: hidden;
  background: #d8cab9;
}

.case-workflow-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-workflow-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px clamp(32px, 6vw, 96px);
}

.case-workflow-copy > h2 {
  max-width: 600px;
  margin: 0 0 22px;
  font-size: clamp(2.6rem, 4.2vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.case-workflow-intro {
  max-width: 570px;
  margin: 0 0 34px;
  color: var(--case-muted);
  line-height: 1.72;
}

.case-workflow ol {
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--case-line);
}

.case-workflow li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--case-line);
}

.case-workflow li > span {
  padding-top: 3px;
  color: var(--case-gold);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.case-workflow li h3 {
  margin: 0 0 5px;
  font-size: 0.95rem;
  font-weight: 800;
}

.case-workflow li p {
  margin: 0;
  color: var(--case-muted);
  font-size: 0.83rem;
  line-height: 1.55;
}

.case-workflow-link {
  display: inline-flex;
  width: fit-content;
  min-width: 270px;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 0 18px;
  color: #fff;
  background: #382319;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1050px) {
  .case-structure-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .case-workflow-media {
    min-height: 62vw;
  }
}

@media (max-width: 820px) {
  .case-advantages {
    margin-top: 78px;
  }

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

@media (max-width: 540px) {
  .case-section-heading {
    margin-bottom: 34px;
  }

  .case-section-heading h2 {
    font-size: 2.65rem;
  }

  .case-structures {
    margin-bottom: 76px;
    padding: 76px 16px;
  }

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

  .case-structure-item figure {
    height: 128px;
  }

  .case-structure-item img {
    padding: 8px;
  }

  .case-structure-item > div {
    min-height: 128px;
    padding: 18px 28px 18px 14px;
  }

  .case-structure-item h3 {
    font-size: 0.92rem;
  }

  .case-structure-item p {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .case-structure-item > i {
    right: 12px;
    bottom: 18px;
  }

  .case-advantages {
    padding: 78px 16px;
  }

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

  .case-advantage-grid article {
    min-height: 0;
    padding: 28px 24px 30px;
  }

  .case-advantage-icon {
    margin-bottom: 22px;
  }

  .case-workflow-media {
    min-height: 100vw;
  }

  .case-workflow-copy {
    padding: 72px 20px;
  }

  .case-workflow-copy > h2 {
    font-size: 2.7rem;
  }

  .case-workflow-link {
    min-width: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-page *,
  .case-page *::before,
  .case-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Refined card layout based on the original CASE STUDIES page */
.case-stories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: min(1240px, calc(100% - 48px));
  padding-bottom: 72px;
}

.case-story,
.case-story-reverse {
  display: flex;
  min-height: 0;
  flex-direction: column;
  margin: 0;
}

.case-story-reverse .case-story-media,
.case-story-reverse .case-story-copy {
  order: initial;
}

.case-story-media {
  width: 100%;
  height: 410px;
  min-height: 0;
  flex: 0 0 auto;
}

.case-media-trio,
.case-media-duo {
  min-height: 0;
}

.case-story-copy {
  display: flex;
  flex: 1;
  justify-content: flex-start;
  padding: 34px 34px 30px;
}

.case-story h2 {
  margin-bottom: 26px;
  font-size: clamp(2.35rem, 3.4vw, 3.35rem);
  line-height: 0.98;
}

.case-box-type {
  margin-bottom: 26px;
}

.case-box-type > div {
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 18px;
  padding: 13px 0;
}

.case-text-block {
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.case-text-block p {
  font-size: 0.92rem;
  line-height: 1.7;
}

.case-view-link {
  margin-top: auto;
}

@media (max-width: 820px) {
  .case-stories {
    grid-template-columns: 1fr;
  }

  .case-story-media {
    height: min(560px, 78vw);
    min-height: 0;
  }

  .case-story-copy {
    padding: 38px 34px 34px;
  }
}

@media (max-width: 540px) {
  .case-stories {
    width: min(100% - 32px, 1240px);
    gap: 18px;
  }

  .case-story-media,
  .case-media-trio,
  .case-media-duo {
    height: 92vw;
    min-height: 0;
  }

  .case-story-copy {
    padding: 34px 20px 30px;
  }

  .case-story h2 {
    font-size: 2.45rem;
  }

  .case-box-type > div,
  .case-text-block {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

/* Final emphasis overrides */
.case-structure-item figure {
  display: flex;
  height: 148px;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.case-structure-item img {
  padding: 18px;
}

.case-workflow-link {
  min-width: 342px;
  min-height: 60px;
  padding: 0 24px;
  box-shadow: 0 12px 26px rgba(56, 35, 25, 0.16);
  font-size: 0.76rem;
  letter-spacing: 0.095em;
}

.case-workflow-link span {
  font-size: 1rem;
}

.case-structures {
  background: #f7f3ee;
}

.case-structure-grid {
  gap: 34px 46px;
}

.case-structure-item,
.case-structure-item:hover,
.case-structure-item:focus-visible {
  overflow: visible;
  text-align: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
}

.case-box-sketch {
  width: 128px;
  height: 96px;
  fill: none;
  stroke: #2b221e;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  transition: stroke 180ms ease, transform 180ms ease;
}

.case-structure-item:hover .case-box-sketch,
.case-structure-item:focus-visible .case-box-sketch {
  stroke: #a96831;
  transform: translateY(-3px);
}

.case-structure-item > div {
  min-height: 0;
  padding: 8px 8px 0;
  text-align: center;
}

.case-structure-item h3 {
  margin-bottom: 8px;
  font-size: 1.22rem;
  line-height: 1.25;
}

.case-structure-item p {
  font-size: 0.94rem;
  line-height: 1.5;
}

.case-workflow li {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
}

.case-workflow li > span {
  font-size: 0.75rem;
}

.case-workflow li h3 {
  margin-bottom: 7px;
  font-size: 1.08rem;
}

.case-workflow li p {
  font-size: 0.95rem;
  line-height: 1.62;
}

@media (max-width: 540px) {
  .case-structure-item figure {
    height: 118px;
  }

  .case-structure-item img {
    padding: 9px;
  }

  .case-workflow-link {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 0 18px;
    font-size: 0.69rem;
  }

  .case-workflow-copy {
    padding-top: 118px;
  }

  .case-structures {
    padding-top: 126px;
  }

  .case-structure-grid {
    gap: 24px 10px;
  }

  .case-box-sketch {
    width: 104px;
    height: 80px;
  }

  .case-structure-item > div {
    padding: 4px 4px 0;
  }

  .case-structure-item h3 {
    font-size: 1.05rem;
  }

  .case-structure-item p {
    font-size: 0.82rem;
  }

  .case-workflow li {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 16px;
  }

  .case-workflow li h3 {
    font-size: 1.04rem;
  }

  .case-workflow li p {
    font-size: 0.9rem;
  }
}

/* Final light capability treatment */
.case-advantages {
  margin-top: 0;
  padding: 104px max(24px, calc((100% - 1240px) / 2)) 112px;
  color: var(--case-ink);
  background:
    radial-gradient(circle at 88% 8%, rgba(214, 166, 104, 0.16), transparent 25%),
    #f1ebe3;
  border-top: 1px solid rgba(93, 70, 55, 0.12);
}

.case-advantages .case-section-heading {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
  gap: 20px 80px;
  align-items: end;
  margin-bottom: 54px;
  text-align: left;
}

.case-advantages .case-section-heading .case-kicker {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.case-advantages .case-section-heading h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.case-advantages .case-section-heading > p:last-child {
  margin: 0 0 4px;
  color: var(--case-muted);
}

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

.case-advantage-grid article {
  position: relative;
  min-height: 250px;
  padding: 34px 32px;
  overflow: hidden;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid rgba(93, 70, 55, 0.14);
  box-shadow: 0 14px 34px rgba(56, 38, 27, 0.055);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.case-advantage-grid article:hover {
  border-color: rgba(180, 123, 67, 0.46);
  box-shadow: 0 20px 42px rgba(56, 38, 27, 0.09);
  transform: translateY(-3px);
}

.case-advantage-grid article::after {
  position: absolute;
  top: 27px;
  right: 28px;
  color: rgba(180, 123, 67, 0.52);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.case-advantage-grid article:nth-child(1)::after { content: "01"; }
.case-advantage-grid article:nth-child(2)::after { content: "02"; }
.case-advantage-grid article:nth-child(3)::after { content: "03"; }
.case-advantage-grid article:nth-child(4)::after { content: "04"; }
.case-advantage-grid article:nth-child(5)::after { content: "05"; }
.case-advantage-grid article:nth-child(6)::after { content: "06"; }

.case-advantage-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 34px;
  color: #a96831;
  background: #f4e5d1;
  border-color: rgba(180, 123, 67, 0.34);
}

.case-advantage-grid h3 {
  color: var(--case-ink);
}

.case-advantage-grid p {
  color: var(--case-muted);
}

@media (max-width: 820px) {
  .case-advantages .case-section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .case-advantages .case-section-heading .case-kicker {
    grid-column: auto;
  }

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

@media (max-width: 540px) {
  .case-advantages {
    margin-top: 0;
    padding: 76px 16px 82px;
  }

  .case-advantages .case-section-heading {
    margin-bottom: 36px;
  }

  .case-advantage-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .case-advantage-grid article {
    min-height: 0;
    padding: 28px 24px 30px;
  }

  .case-advantage-icon {
    margin-bottom: 24px;
  }
}

/* Refined case-card headings - 2026-08-17 */
.case-page .case-stories .case-story-copy > h2 {
  margin-bottom: 24px;
  font-size: clamp(1.9rem, 2.15vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

@media (max-width: 540px) {
  .case-page .case-stories .case-story-copy > h2 {
    margin-bottom: 20px;
    font-size: clamp(1.75rem, 7.7vw, 2rem);
    letter-spacing: -0.025em;
    line-height: 1.1;
  }
}

/* Case study conversion panel - 2026-08-17 */
.case-project-cta {
  display: grid;
  width: min(1240px, calc(100% - 48px));
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
  margin: 0 auto 96px;
  padding: 46px 50px;
  color: #fff;
  background: #2a1912;
  border: 1px solid rgba(214, 165, 110, 0.32);
  box-shadow: 0 20px 44px rgba(56, 35, 25, 0.12);
}

.case-project-cta h2 {
  max-width: 680px;
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.case-project-cta p {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.94rem;
  line-height: 1.65;
}

.case-project-cta-actions {
  display: grid;
  min-width: 276px;
  gap: 10px;
}

.case-project-cta-actions a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.case-project-cta-primary {
  color: #24160f;
  background: #f2cd88;
  border: 1px solid #f2cd88;
}

.case-project-cta-primary:hover {
  background: #f8dda9;
  border-color: #f8dda9;
}

.case-project-cta-secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.case-project-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.52);
}

@media (max-width: 820px) {
  .case-project-cta {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 36px;
  }

  .case-project-cta-actions {
    min-width: 0;
  }
}

@media (max-width: 540px) {
  .case-project-cta {
    width: min(100% - 32px, 1240px);
    margin-bottom: 76px;
    padding: 34px 22px 24px;
  }

  .case-project-cta h2 {
    font-size: 1.75rem;
  }

  .case-project-cta-actions a {
    min-height: 52px;
    padding: 0 16px;
  }
}

/* Case page keyboard focus - 2026-08-17 */
.case-project-cta-actions a:focus-visible,
.case-workflow-link:focus-visible {
  outline: 3px solid #f2cd88;
  outline-offset: 3px;
}

/* Typography readability audit - 2026-08-18 */
.case-structure-item div>span,.case-box-type dt,.case-text-block h3,.case-workflow li>span,.case-workflow-link,.case-kicker,.case-index strong,.case-structure-item p,.case-view-link,.case-cta>div:last-child>a,.case-project-cta-actions a{font-size:.75rem}
