.case-page {
  min-width: 320px;
  padding: 0;
  background: var(--ink);
  color: var(--ink);
}

.case-shell {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 0 54px rgba(0, 0, 0, 0.42);
}

.case-hero {
  position: relative;
  isolation: isolate;
  padding: max(28px, env(safe-area-inset-top)) 20px 38px;
  overflow: hidden;
  background: var(--green);
  color: var(--cream);
}

.case-texture,
.case-hero::before,
.case-hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.case-texture {
  z-index: -2;
  opacity: 0.68;
  background-image:
    radial-gradient(circle, rgba(11, 21, 16, 0.78) 0 0.7px, transparent 0.9px),
    radial-gradient(circle, rgba(247, 234, 216, 0.48) 0 0.6px, transparent 0.8px),
    repeating-linear-gradient(101deg, transparent 0 34px, rgba(255, 255, 255, 0.1) 35px, transparent 38px 72px),
    repeating-linear-gradient(4deg, transparent 0 29px, rgba(3, 47, 23, 0.18) 30px, transparent 33px 64px);
  background-size: 5px 5px, 8px 8px, 100% 100%, 100% 100%;
  mix-blend-mode: multiply;
}

.case-hero::before {
  z-index: -1;
  background:
    radial-gradient(ellipse at 13% 35%, transparent 0 27%, rgba(247, 234, 216, 0.09) 27.5%, transparent 29%),
    linear-gradient(108deg, transparent 0 34%, rgba(255, 255, 255, 0.1) 34.4%, transparent 35% 76%, rgba(0, 34, 15, 0.16) 76.4%, transparent 77%);
}

.case-hero::after {
  z-index: 8;
  box-shadow:
    inset 0 0 25px rgba(1, 34, 16, 0.32),
    inset 8px 0 18px rgba(247, 234, 216, 0.08),
    inset -8px 0 18px rgba(0, 24, 11, 0.2);
}

.case-nav {
  position: relative;
  z-index: 9;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 44px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
}

.case-nav a {
  display: grid;
  min-height: 44px;
  align-items: center;
  text-decoration: none;
}

.case-nav a:last-child {
  justify-content: end;
}

.case-nav a:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 3px;
}

.case-heading {
  position: relative;
  z-index: 2;
  display: grid;
  padding-block: 48px 36px;
}

.case-kicker {
  width: max-content;
  max-width: 100%;
  margin: 0 0 20px;
  padding: 8px 12px 7px;
  border: 2px solid var(--ink);
  background: var(--red);
  color: var(--cream);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 4px 5px 0 var(--ink);
  transform: rotate(-1deg);
}

.case-heading h1 {
  margin: 0;
  color: var(--cream);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
  font-size: clamp(5.1rem, 25vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.73;
  text-transform: uppercase;
  -webkit-text-stroke: clamp(2px, 0.75vw, 4px) var(--ink);
  paint-order: stroke fill;
  text-shadow:
    3px 3px 0 var(--ink),
    7px 7px 0 var(--red),
    11px 11px 0 var(--ink);
  transform: rotate(-0.7deg);
}

.case-heading h1 span {
  color: var(--ink);
  -webkit-text-stroke-color: var(--cream);
}

.case-deck {
  max-width: 31rem;
  margin: 34px 0 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(0.94rem, 4.2vw, 1.22rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.16;
  text-wrap: balance;
}

.case-facts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  border: 2px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  box-shadow: 5px 6px 0 var(--ink);
}

.case-facts div {
  min-width: 0;
  padding: 12px 10px 11px;
}

.case-facts div + div {
  border-left: 2px solid var(--ink);
}

.case-facts dt,
.case-facts dd {
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  text-transform: uppercase;
}

.case-facts dt {
  margin-bottom: 6px;
  color: var(--red);
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.case-facts dd {
  font-size: clamp(0.58rem, 2.5vw, 0.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.behance-bridge {
  position: relative;
  padding: 46px 16px 58px;
  background-color: var(--cream);
  background-image:
    radial-gradient(circle, rgba(11, 21, 16, 0.19) 0 0.6px, transparent 0.8px),
    repeating-linear-gradient(7deg, transparent 0 32px, rgba(148, 36, 21, 0.06) 33px, transparent 35px 67px);
  background-size: 6px 6px, 100% 100%;
}

.bridge-label {
  width: max-content;
  margin: 0 0 30px;
  padding: 7px 11px 6px;
  border: 2px solid var(--ink);
  background: var(--red);
  color: var(--cream);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-1.4deg);
}

.behance-preview {
  position: relative;
  z-index: 1;
  margin: 0 3px 34px;
  padding: 8px;
  border: 3px solid var(--ink);
  background: #fff;
  box-shadow: 8px 9px 0 var(--green), 11px 12px 0 var(--ink);
  transform: rotate(0.45deg);
}

.behance-preview img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.behance-preview img + img {
  margin-top: 8px;
}

.preview-tape {
  position: absolute;
  z-index: 2;
  top: -17px;
  width: 62px;
  height: 24px;
  border: 2px solid var(--ink);
  background: var(--red);
  opacity: 0.94;
}

.preview-tape--left {
  left: 14px;
  transform: rotate(-5deg);
}

.preview-tape--right {
  right: 14px;
  transform: rotate(5deg);
}

.behance-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 88px;
  padding: 13px 14px;
  border: 3px solid var(--ink);
  background: var(--red);
  color: var(--cream);
  text-decoration: none;
  box-shadow: 7px 8px 0 var(--ink);
  transform: rotate(-0.45deg);
}

.behance-cta:hover {
  background: var(--green);
}

.behance-cta:active {
  box-shadow: 3px 4px 0 var(--ink);
  transform: translate(4px, 4px) rotate(-0.45deg) scale(0.96);
}

.behance-cta:focus-visible {
  outline: 4px solid var(--green);
  outline-offset: 5px;
}

.behance-mark {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.08em;
  box-shadow: 3px 3px 0 var(--ink);
}

.behance-cta__label {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
  font-size: clamp(1.65rem, 8vw, 3.2rem);
  letter-spacing: -0.035em;
  line-height: 0.85;
  text-transform: uppercase;
  -webkit-text-stroke: 1px var(--ink);
  paint-order: stroke fill;
  text-shadow: 2px 2px 0 var(--ink);
}

.behance-cta__label small {
  display: block;
  margin-top: 7px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
}

.behance-arrow {
  font-family: Arial, sans-serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.case-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 28px 20px max(32px, calc(env(safe-area-inset-bottom) + 20px));
  background: var(--red);
  color: var(--cream);
  text-transform: uppercase;
}

.case-footer p,
.case-footer a {
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.case-footer a {
  display: grid;
  min-height: 44px;
  align-items: center;
  color: var(--cream);
  text-underline-offset: 3px;
}

.case-footer a:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 3px;
}

@media (min-width: 560px) {
  .case-page {
    padding-block: 24px;
  }

  .case-hero {
    padding-inline: 32px;
  }

  .behance-bridge {
    padding: 70px 32px 80px;
  }

  .case-footer {
    padding-inline: 32px;
  }
}

@media (max-width: 349px) {
  .case-heading h1 {
    font-size: 4.75rem;
  }

  .case-nav {
    font-size: 0.62rem;
  }

  .case-facts div {
    padding-inline: 6px;
  }
}
