.case-page {
  --case-accent: #8c52ff;
  --case-accent-soft: rgba(140, 82, 255, 0.16);
  --case-surface: #151820;
  --case-line: rgba(255, 255, 255, 0.16);
  background: #0b0d10;
}

.case-page main {
  overflow: hidden;
}

.case-page .case-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--case-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.case-page .case-kicker::before {
  width: 28px;
  height: 2px;
  background: currentColor;
  content: "";
}

.case-masthead {
  position: relative;
  padding: clamp(58px, 8vw, 118px) 0 72px;
  border-bottom: 1px solid var(--case-line);
  isolation: isolate;
}

.case-masthead::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(
    circle at 76% 24%,
    var(--case-accent-soft),
    transparent 35%
  );
  content: "";
}

.case-intro-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(520px, 1.28fr);
  gap: clamp(42px, 7vw, 108px);
  align-items: center;
}

.case-title {
  max-width: 640px;
  margin: 0;
  font-size: clamp(3.5rem, 7.5vw, 7.7rem);
  line-height: 0.88;
  letter-spacing: -0.07em;
}

.case-lead {
  max-width: 570px;
  margin: 28px 0 0;
  color: #c4c2bd;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.55;
}

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

.case-page .case-primary {
  border-color: var(--case-accent);
  background: var(--case-accent);
  color: #0b0d10;
}

.case-page .case-primary:hover {
  border-color: color-mix(in srgb, var(--case-accent), white 18%);
  background: color-mix(in srgb, var(--case-accent), white 18%);
}

.case-visual {
  position: relative;
  margin: 0;
}

.case-visual-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--case-line);
  background: #08090b;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.case-visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-visual figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  color: #8f9299;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 56px 0 0;
  border: 1px solid var(--case-line);
  background: rgba(255, 255, 255, 0.02);
}

.case-facts > div {
  min-width: 0;
  padding: 22px 26px;
  border-left: 1px solid var(--case-line);
}

.case-facts > div:first-child {
  border-left: 0;
}

.case-facts dt {
  margin-bottom: 6px;
  color: #858991;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-facts dd {
  margin: 0;
  font-weight: 750;
}

.case-facts a {
  color: var(--case-accent);
  text-underline-offset: 4px;
}

.case-story {
  padding: clamp(74px, 9vw, 132px) 0;
  border-bottom: 1px solid var(--case-line);
}

.case-story-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(50px, 9vw, 140px);
}

.case-story h2,
.case-showcase h2 {
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 0.98;
}

.case-story-copy > p {
  max-width: 720px;
  color: #b5b4b0;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.case-story-copy > p + p {
  margin-top: 20px;
}

.case-story-copy > .case-proof-label {
  margin-top: 44px;
  color: var(--case-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
  border-top: 1px solid var(--case-line);
}

.case-principle {
  padding: 28px 26px 0 0;
}

.case-principle + .case-principle {
  padding-left: 26px;
  border-left: 1px solid var(--case-line);
}

.case-principle span {
  display: block;
  margin-bottom: 24px;
  color: var(--case-accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.case-principle h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.case-principle p {
  margin: 0;
  color: #92959b;
  font-size: 0.84rem;
}

.case-showcase {
  padding: clamp(74px, 9vw, 130px) 0;
  background: var(--case-surface);
}

.case-showcase-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
}

.case-showcase p {
  max-width: 510px;
  color: #aaa9a6;
}

.case-showcase .case-outcomes-label {
  margin: 32px 0 12px;
  color: var(--case-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-outcomes {
  max-width: 510px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-outcomes li {
  position: relative;
  padding: 12px 0 12px 20px;
  border-top: 1px solid var(--case-line);
  color: #e4e1dd;
  font-size: 0.9rem;
  line-height: 1.45;
}

.case-outcomes li::before {
  position: absolute;
  top: 21px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--case-accent);
  content: "";
}

.case-showcase-image {
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--case-lineless, var(--case-line));
  background: #08090b;
}

.case-showcase-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.case-next {
  padding: 34px 0;
  border-bottom: 1px solid var(--case-line);
}

.case-next .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.case-next span {
  color: #8e9198;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-next a {
  color: var(--case-accent);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 750;
  text-decoration: none;
}

/* TP Movies: hoog contrast, vuur en beweging. */
.case-tp {
  --case-accent: #d8a65d;
  --case-accent-soft: rgba(216, 166, 93, 0.18);
  --case-surface: #110e0a;
}

.case-tp .case-visual-frame {
  aspect-ratio: 16 / 10;
  clip-path: polygon(5% 0, 100% 0, 100% 94%, 0 100%, 0 7%);
}

.case-tp .case-visual-frame img {
  object-position: center;
}

.case-tp .case-visual-frame::after {
  position: absolute;
  right: 20px;
  bottom: 18px;
  width: 64px;
  height: 3px;
  background: var(--case-accent);
  box-shadow: -76px 0 0 rgba(255, 255, 255, 0.45);
  content: "";
}

.case-tp .case-title em {
  display: block;
  color: var(--case-accent);
  font-style: normal;
}

.case-tp .case-showcase-image img {
  object-position: top;
}

.case-tp .case-facts {
  border-top: 2px solid var(--case-accent);
  background: linear-gradient(90deg, rgba(216, 166, 93, 0.08), transparent 42%);
}

.case-tp .case-story {
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 11.8%,
      rgba(255, 255, 255, 0.025) 11.8% 11.9%
    ),
    #0b0d10;
}

.case-tp .case-showcase-grid {
  grid-template-columns: 1.3fr 0.7fr;
}

.case-tp .case-showcase-image {
  order: -1;
}

.case-tp-interface {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(30px, 5vw, 70px);
  background:
    linear-gradient(
      90deg,
      transparent 9%,
      rgba(216, 166, 93, 0.9) 9.15% 9.35%,
      transparent 9.5%
    ),
    linear-gradient(
      90deg,
      transparent 88%,
      rgba(216, 166, 93, 0.75) 88.15% 88.35%,
      transparent 88.5%
    ),
    radial-gradient(
      circle at 50% 45%,
      rgba(216, 166, 93, 0.18),
      transparent 38%
    ),
    linear-gradient(145deg, #050505, #171109);
}

.case-tp-interface::before {
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(216, 166, 93, 0.22);
  content: "";
}

.case-tp-interface > div {
  position: relative;
  z-index: 1;
  text-align: center;
}

.case-tp-interface span,
.case-tp-interface em {
  display: block;
  color: var(--case-accent);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.case-tp-interface strong {
  display: block;
  margin: 28px 0;
  color: #f3eadc;
  font-size: clamp(2.4rem, 5vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

/* Legacy Pictures: rustig, redactioneel en cinematografisch. */
.case-legacy {
  --case-accent: #d5aa7b;
  --case-accent-soft: rgba(213, 170, 123, 0.14);
  --case-surface: #181313;
}

.case-legacy .case-masthead {
  background: linear-gradient(110deg, #0c0e11 0 52%, #151011 52% 100%);
}

.case-legacy .case-title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.055em;
}

.case-legacy .case-visual {
  transform: rotate(1.25deg);
}

.case-legacy .case-visual-frame {
  aspect-ratio: 16 / 10;
  border-color: rgba(213, 170, 123, 0.35);
}

.case-legacy .case-visual-frame::after {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(213, 170, 123, 0.16);
  pointer-events: none;
  content: "";
}

.case-legacy .case-facts {
  width: calc(100% - 76px);
  margin-left: 76px;
  border-color: rgba(213, 170, 123, 0.28);
  background: rgba(213, 170, 123, 0.055);
}

.case-legacy .case-story h2,
.case-legacy .case-showcase h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.case-legacy .case-story-copy {
  padding-left: 34px;
  border-left: 1px solid rgba(213, 170, 123, 0.35);
}

.case-legacy .case-showcase-image {
  min-height: 520px;
}

.case-legacy .case-showcase-image img {
  min-height: 520px;
  object-position: center;
}

/* Orange Bear: grafisch, warm en verhalend. */
.case-orange {
  --case-accent: #ff7a24;
  --case-accent-soft: rgba(255, 122, 36, 0.2);
  --case-surface: #16100d;
}

.case-orange .case-masthead::after {
  position: absolute;
  z-index: -1;
  top: 7%;
  right: -4vw;
  color: rgba(255, 122, 36, 0.055);
  font-size: clamp(9rem, 24vw, 26rem);
  font-weight: 850;
  line-height: 0.8;
  content: "OB";
}

.case-orange .case-title {
  text-transform: uppercase;
}

.case-orange .case-title span {
  display: block;
  color: var(--case-accent);
}

.case-orange .case-visual-frame {
  aspect-ratio: 4 / 3;
  border-radius: 42% 4px 4px 4px;
}

.case-orange .case-visual-frame img {
  object-position: center top;
}

.case-orange .case-facts {
  margin-top: 32px;
  border-color: rgba(255, 122, 36, 0.28);
  background: linear-gradient(
    100deg,
    rgba(255, 122, 36, 0.11),
    rgba(255, 122, 36, 0.025)
  );
}

.case-orange .case-principles {
  gap: 12px;
  border-top: 0;
}

.case-orange .case-principle,
.case-orange .case-principle + .case-principle {
  min-height: 210px;
  padding: 26px;
  border: 1px solid rgba(255, 122, 36, 0.2);
  background: rgba(255, 122, 36, 0.045);
}

.case-orange .case-principle:nth-child(2) {
  transform: translateY(18px);
}

.case-orange .case-showcase-image {
  background: url("../img/case-orange-bear.webp") left center / cover no-repeat;
}

@media (max-width: 900px) {
  .case-intro-grid,
  .case-story-grid,
  .case-showcase-grid {
    grid-template-columns: 1fr;
  }

  .case-intro-grid {
    gap: 48px;
  }

  .case-visual {
    max-width: 760px;
  }

  .case-legacy .case-visual {
    transform: rotate(0.6deg);
  }

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

  .case-tp .case-showcase-image {
    order: initial;
  }

  .case-legacy .case-facts {
    width: 100%;
    margin-left: 0;
  }

  .case-legacy .case-story-copy {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 650px) {
  .case-masthead {
    padding-top: 46px;
  }

  .case-title {
    font-size: clamp(3.1rem, 16vw, 5rem);
  }

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

  .case-facts > div,
  .case-facts > div:first-child {
    padding: 18px 20px;
    border-top: 1px solid var(--case-line);
    border-left: 0;
  }

  .case-facts > div:first-child {
    border-top: 0;
  }

  .case-principle,
  .case-principle + .case-principle {
    padding: 24px 0;
    border-top: 1px solid var(--case-line);
    border-left: 0;
  }

  .case-principle span {
    margin-bottom: 12px;
  }

  .case-orange .case-principles {
    gap: 0;
  }

  .case-orange .case-principle,
  .case-orange .case-principle + .case-principle {
    min-height: 0;
    padding: 24px 0;
    border-width: 1px 0 0;
    background: transparent;
    transform: none;
  }

  .case-showcase-image,
  .case-showcase-image img,
  .case-legacy .case-showcase-image,
  .case-legacy .case-showcase-image img {
    min-height: 320px;
  }

  .case-next .container {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .case-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .case-actions .button {
    width: 100%;
  }
}
