.website-case-study {
  --case-black: var(--c6-black, #080708);
  --case-raised: var(--c6-black-raised, #111012);
  --case-charcoal: var(--c6-charcoal, #171417);
  --case-oxblood: var(--c6-oxblood, #3b0a0d);
  --case-oxblood-deep: var(--c6-oxblood-deep, #210609);
  --case-red: var(--c6-red, #e64c37);
  --case-red-hot: var(--c6-red-hot, #ff735c);
  --case-white: var(--c6-white, #f4f1eb);
  --case-muted: var(--c6-muted, #c8c0bc);
  --case-dim: var(--c6-dim, #aaa29e);
  --case-rule: var(--c6-rule, rgba(244, 241, 235, 0.2));
  --case-rule-strong: var(--c6-rule-strong, rgba(244, 241, 235, 0.38));
  --case-gutter: var(--c6-gutter, clamp(20px, 4.5vw, 76px));
  min-width: 0;
  overflow: clip;
  background: var(--case-black);
  color: var(--case-white);
  font-family: "Evoza Template Sans", Arial, sans-serif;
}

.website-case-study,
.website-case-study * {
  box-sizing: border-box;
}

.website-case-study :where(h1, h2, h3, p, figure, figcaption, dl, dd) {
  margin: 0;
}

.website-case-study :where(ol, ul) {
  margin: 0;
  padding: 0;
}

.website-case-study a {
  color: inherit;
}

.website-case-study img {
  display: block;
  max-width: 100%;
}

.website-case-study :where(a, button):focus-visible {
  outline: 3px solid var(--case-red-hot);
  outline-offset: 4px;
}

.case-breadcrumbs {
  padding: 0 var(--case-gutter);
  border-bottom: 1px solid var(--case-rule);
  background: var(--case-black);
}

.case-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 54px;
  list-style: none;
}

.case-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  color: var(--case-dim);
  font-size: 0.875rem;
  font-weight: 680;
  line-height: 1.35;
}

.case-breadcrumbs li + li::before {
  margin: 0 10px;
  color: var(--case-red-hot);
  content: "/";
}

.case-breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 4px;
}

.case-breadcrumbs [aria-current="page"] {
  color: var(--case-white);
}

.case-hero {
  position: relative;
  display: grid;
  grid-template-areas:
    "intro proof"
    "details proof";
  grid-template-columns: minmax(330px, 0.82fr) minmax(560px, 1.18fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  column-gap: clamp(42px, 5vw, 84px);
  row-gap: 0;
  min-height: min(800px, calc(100svh - 80px));
  padding: clamp(54px, 5vw, 78px) var(--case-gutter) clamp(64px, 6vw, 96px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 82% 30%, rgba(230, 76, 55, 0.3), transparent 28%),
    linear-gradient(118deg, var(--case-oxblood) 0%, var(--case-oxblood-deep) 56%, var(--case-black) 100%);
}

.case-grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(var(--case-rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--case-rule) 1px, transparent 1px);
  background-size: clamp(52px, 5vw, 86px) clamp(52px, 5vw, 86px);
  opacity: 0.16;
  mask-image: linear-gradient(90deg, #000, transparent 92%);
}

.case-hero-copy,
.case-hero-proof,
.case-hero-details {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.case-hero-intro {
  grid-area: intro;
}

.case-hero-details {
  grid-area: details;
}

.case-eyebrow,
.case-card-label {
  color: var(--case-red-hot);
  font-size: 0.875rem;
  font-weight: 760;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.case-hero h1 {
  max-width: 9ch;
  margin-top: 20px;
  font-size: clamp(4.25rem, 7.4vw, 8rem);
  font-weight: 690;
  letter-spacing: -0.07em;
  line-height: 0.84;
  text-wrap: balance;
  text-transform: uppercase;
}

.case-hero-lead {
  max-width: 46ch;
  margin-top: 28px;
  color: var(--case-muted);
  font-size: clamp(1.0625rem, 1.25vw, 1.25rem);
  line-height: 1.62;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.case-button,
.case-text-link,
.case-result-sources a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 48px;
  font-size: 0.9375rem;
  font-weight: 760;
  line-height: 1.25;
  text-decoration: none;
}

.case-service-link {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 28px var(--case-gutter);
  border-top: 1px solid rgba(8, 7, 8, 0.22);
  background: #e8e2da;
}

.case-service-link a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(8, 7, 8, 0.34);
  color: var(--case-black);
  font-size: var(--c6-type-ui);
  font-weight: 740;
  text-decoration: none;
}

.case-service-link a span {
  color: #762116;
}

.case-button {
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--case-rule-strong);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.case-button-primary {
  border-color: var(--case-red);
  background: var(--case-red);
  color: var(--case-black) !important;
}

.case-button-secondary {
  background: rgba(8, 7, 8, 0.32);
  color: var(--case-white);
}

.case-text-link {
  margin-top: 24px;
  color: #762116 !important;
  text-decoration: underline;
  text-decoration-color: rgba(118, 33, 22, 0.38);
  text-underline-offset: 6px;
}

.case-button span,
.case-text-link span,
.case-result-sources a span {
  flex: 0 0 auto;
}

.case-hero-proof {
  grid-area: proof;
  min-height: clamp(440px, 43vw, 640px);
  perspective: 1600px;
}

.case-device {
  position: absolute;
  overflow: hidden;
  background: var(--case-raised);
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.52);
  transform: perspective(1500px) rotateY(-8deg) rotateX(2deg) rotateZ(-0.8deg);
  transform-origin: 35% 50%;
}

.case-device-desktop {
  top: 7%;
  left: 0;
  width: 82%;
  padding: 31px 7px 7px;
  border: 1px solid var(--case-rule-strong);
}

.case-device-desktop > img,
.case-responsive-shell > img,
.case-device-phone > img,
.case-responsive-phone > img {
  width: 100%;
  height: auto;
}

.case-browser-bar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 10px;
  border-bottom: 1px solid var(--case-rule);
  color: var(--case-dim);
}

.case-browser-bar > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--case-dim);
}

.case-browser-bar > i:first-child {
  background: var(--case-red);
}

.case-browser-bar > small {
  min-width: 0;
  margin-left: auto;
  overflow: hidden;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-device-phone {
  z-index: 3;
  top: 22%;
  right: 0;
  width: clamp(108px, 21%, 156px);
  padding: 19px 5px 5px;
  border: 4px solid var(--case-black);
  border-radius: 20px;
  background: var(--case-black);
}

.case-phone-speaker {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 34%;
  height: 3px;
  border-radius: 99px;
  background: rgba(244, 241, 235, 0.28);
  transform: translateX(-50%);
}

.case-overview,
.case-delivery,
.case-responsive,
.case-related {
  padding: clamp(72px, 7vw, 112px) var(--case-gutter);
}

.case-overview,
.case-responsive {
  background: var(--case-white);
  color: var(--case-black);
}

.case-overview .case-eyebrow,
.case-responsive .case-eyebrow {
  color: #762116;
}

.case-section-heading {
  max-width: 780px;
}

.case-section-heading h2,
.case-delivery h2,
.case-responsive h2 {
  margin-top: 16px;
  font-size: clamp(3.25rem, 6vw, 6.5rem);
  font-weight: 680;
  letter-spacing: -0.065em;
  line-height: 0.9;
  text-wrap: balance;
}

.case-section-heading > p:last-child,
.case-delivery-copy > p:last-child,
.case-responsive-copy > p:last-of-type {
  max-width: 54ch;
  margin-top: 24px;
  color: #514b48;
  font-size: clamp(1.0625rem, 1.2vw, 1.2rem);
  line-height: 1.65;
}

.case-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(8, 7, 8, 0.24);
  background: rgba(8, 7, 8, 0.24);
}

.case-focus-grid article {
  padding: clamp(28px, 4vw, 54px);
  background: #ece7df;
}

.case-focus-grid article:nth-child(even) {
  background: #dfd8cf;
}

.case-focus-grid h2 {
  margin-top: 24px;
  font-size: clamp(2.25rem, 4vw, 4.75rem);
  font-weight: 660;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.case-focus-grid article > p:last-child {
  max-width: 50ch;
  margin-top: 24px;
  color: #514b48;
  font-size: 1rem;
  line-height: 1.65;
}

.case-delivery {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1.18fr);
  align-items: start;
  gap: clamp(44px, 7vw, 112px);
  border-top: 1px solid var(--case-rule);
  background:
    radial-gradient(circle at 76% 28%, rgba(230, 76, 55, 0.2), transparent 28%),
    var(--case-black);
}

.case-delivery h2 {
  max-width: 9ch;
}

.case-delivery-copy > p:last-child {
  color: var(--case-muted);
}

.case-delivery-list {
  border-top: 1px solid var(--case-rule-strong);
  list-style: none;
}

.case-delivery-list li {
  position: relative;
  min-height: 62px;
  padding: 19px 12px 17px 31px;
  border-bottom: 1px solid var(--case-rule);
  color: var(--case-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.case-delivery-list li::before {
  position: absolute;
  top: 26px;
  left: 8px;
  width: 7px;
  height: 7px;
  background: var(--case-red);
  content: "";
  transform: rotate(45deg);
}

.case-responsive {
  display: grid;
  grid-template-areas:
    "intro proof"
    "details proof";
  grid-template-columns: minmax(300px, 0.66fr) minmax(560px, 1.34fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  column-gap: clamp(44px, 6vw, 100px);
  row-gap: 24px;
}

.case-responsive-intro {
  grid-area: intro;
}

.case-responsive-details {
  grid-area: details;
  min-width: 0;
}

.case-responsive-details .case-text-link {
  margin-top: 0;
}

.case-responsive-copy > p:last-of-type {
  color: #514b48;
}

.case-responsive-proof {
  position: relative;
  grid-area: proof;
  min-height: clamp(640px, 58vw, 820px);
}

.case-responsive-proof figure {
  margin: 0;
}

.case-responsive-desktop {
  width: 84%;
}

.case-responsive-shell {
  position: relative;
  padding: 31px 7px 7px;
  overflow: hidden;
  border: 1px solid rgba(8, 7, 8, 0.28);
  background: var(--case-charcoal);
  box-shadow: 0 32px 64px rgba(8, 7, 8, 0.2);
}

.case-responsive-shell .case-browser-bar {
  border-color: rgba(244, 241, 235, 0.2);
}

.case-responsive-mobile {
  position: absolute;
  z-index: 2;
  top: clamp(20px, 5%, 40px);
  right: 0;
  bottom: auto;
  width: clamp(126px, 23%, 186px);
}

.case-responsive-phone {
  position: relative;
  padding: 20px 5px 5px;
  overflow: hidden;
  border: 4px solid var(--case-black);
  border-radius: 22px;
  background: var(--case-black);
  box-shadow: 0 28px 60px rgba(8, 7, 8, 0.3);
}

.case-result-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.case-result-sources a {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(8, 7, 8, 0.3);
  color: #491811;
}

.case-related {
  background: var(--case-black);
}

.case-related .case-section-heading > p:last-child {
  color: var(--case-muted);
}

.case-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(42px, 5vw, 70px);
}

.case-related-card {
  display: grid;
  min-width: 0;
  border: 1px solid var(--case-rule);
  background: var(--case-raised);
  text-decoration: none;
}

.case-related-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--case-rule);
  background: var(--case-charcoal);
}

.case-related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: saturate(0.78) brightness(0.82);
  transition: filter 180ms ease, transform 220ms ease;
}

.case-related-copy {
  display: grid;
  gap: 10px;
  min-height: 162px;
  padding: 22px 24px;
}

.case-related-copy small {
  color: var(--case-red-hot);
  font-size: 0.875rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-related-copy > strong {
  font-size: clamp(1.75rem, 3vw, 3.25rem);
  font-weight: 640;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.case-related-copy > span {
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  color: var(--case-muted);
  font-size: 0.9375rem;
  font-weight: 720;
}

.case-related-copy i {
  color: var(--case-red-hot);
  font-style: normal;
}

@media (hover: hover) and (pointer: fine) {
  .case-button-primary:hover {
    border-color: var(--case-red-hot);
    background: var(--case-red-hot);
  }

  .case-button-secondary:hover,
  .case-result-sources a:hover {
    border-color: var(--case-red-hot);
  }

  .case-related-card:hover .case-related-image img {
    filter: saturate(0.96) brightness(0.96);
    transform: scale(1.015);
  }
}

@media (max-width: 1120px) {
  .case-hero {
    grid-template-areas:
      "intro"
      "proof"
      "details";
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 42px;
    min-height: auto;
  }

  .case-hero-copy,
  .case-hero-details {
    max-width: 760px;
  }

  .case-hero-details .case-actions {
    margin-top: 0;
  }

  .case-hero-proof {
    width: min(100%, 780px);
    margin-inline: auto;
  }

  .case-responsive {
    grid-template-areas:
      "intro"
      "proof"
      "details";
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 40px;
  }

  .case-responsive-copy,
  .case-responsive-details {
    max-width: 760px;
  }

  .case-responsive-proof {
    width: min(100%, 840px);
  }
}

@media (max-width: 900px) {
  .case-delivery {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .case-delivery-copy {
    max-width: 760px;
  }
}

@media (max-width: 700px) {
  .case-breadcrumbs {
    padding-inline: var(--case-gutter);
  }

  .case-breadcrumbs ol {
    min-height: 48px;
  }

  .case-breadcrumbs li {
    font-size: 0.8125rem;
  }

  .case-breadcrumbs li + li::before {
    margin-inline: 7px;
  }

  .case-breadcrumbs li:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .case-hero {
    row-gap: 28px;
    padding: 36px var(--case-gutter) 48px;
  }

  .case-hero h1 {
    max-width: 8.8ch;
    margin-top: 16px;
    font-size: clamp(3.25rem, 15vw, 4.6rem);
    line-height: 0.86;
  }

  .case-hero-lead {
    margin-top: 22px;
  }

  .case-actions {
    display: grid;
    width: 100%;
    margin-top: 24px;
  }

  .case-button {
    width: 100%;
  }

  .case-hero-proof {
    min-height: clamp(310px, 92vw, 390px);
  }

  .case-device-desktop {
    top: 5%;
    width: 79%;
    padding: 27px 5px 5px;
    transform: perspective(1300px) rotateY(-6deg) rotateX(1deg) rotateZ(-0.6deg);
  }

  .case-browser-bar {
    min-height: 23px;
    padding-inline: 7px;
  }

  .case-browser-bar > small {
    font-size: 0.6875rem;
  }

  .case-device-phone {
    top: 21%;
    width: clamp(90px, 24%, 112px);
    padding: 17px 4px 4px;
    border-width: 3px;
    border-radius: 16px;
    transform: perspective(1300px) rotateY(-6deg) rotateX(1deg) rotateZ(-0.6deg);
  }

  .case-overview,
  .case-delivery,
  .case-responsive,
  .case-related {
    padding: 56px var(--case-gutter);
  }

  .website-case-study + .c6-contact {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .case-section-heading h2,
  .case-delivery h2,
  .case-responsive h2 {
    font-size: clamp(2.75rem, 13vw, 4rem);
  }

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

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

  .case-focus-grid h2 {
    margin-top: 18px;
    font-size: clamp(2.25rem, 11vw, 3.25rem);
  }

  .case-focus-grid article > p:last-child {
    margin-top: 18px;
  }

  .case-delivery {
    gap: 36px;
  }

  .case-responsive-proof {
    min-height: clamp(300px, 92vw, 380px);
  }

  .case-responsive {
    row-gap: 28px;
  }

  .case-responsive-desktop {
    width: 88%;
  }

  .case-responsive-mobile {
    width: clamp(106px, 31%, 148px);
  }

  .case-result-sources {
    display: grid;
  }

  .case-result-sources a {
    width: 100%;
  }

  .case-related-grid {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }
}

@media (max-width: 360px) {
  .case-hero {
    padding-top: 34px;
    padding-bottom: 48px;
  }

  .case-hero h1 {
    font-size: clamp(2.9rem, 15vw, 3.45rem);
  }

  .case-hero-proof {
    min-height: 292px;
  }

  .case-overview,
  .case-delivery,
  .case-responsive,
  .case-related {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .website-case-study + .c6-contact {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .case-section-heading h2,
  .case-delivery h2,
  .case-responsive h2 {
    font-size: clamp(2.5rem, 13vw, 3.2rem);
  }

  .case-responsive-proof {
    min-height: 300px;
  }
}

@media (max-width: 700px) {
  .case-service-link {
    display: grid;
    padding: 24px var(--case-gutter);
  }

  .case-service-link a {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-related-image img {
    transition: none;
  }
}

@media (forced-colors: active) {
  .case-grid {
    display: none;
  }

  .case-button,
  .case-device,
  .case-responsive-shell,
  .case-responsive-phone,
  .case-focus-grid,
  .case-delivery-list,
  .case-related-card,
  .case-result-sources a {
    border: 1px solid CanvasText;
  }

  .case-button-primary {
    background: ButtonFace;
    color: ButtonText !important;
  }
}
