.case-page { --case-gutter: max(5.325cqw, calc((100% - 1578px) / 2)); background: #12010a; color: var(--section-text); }
.case-canvas { overflow: visible; background: #12010a; }
.case-masthead {
  position: relative;
  display: flex;
  height: 66.666svh;
  min-height: 0;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 150px var(--case-gutter) clamp(70px, 8vw, 112px);
  background: #079880;
  color: #fff;
}
.case-masthead::before { position: absolute; inset: 0; background: url("../assets/case-studies-hero.png?v=6") center 52% / cover no-repeat; content: ""; }
.case-masthead > * { z-index: 1; }
.case-masthead .brand { mix-blend-mode: normal; }
.case-masthead .brand img { filter: brightness(0); }
.case-masthead .say-hi { color: var(--night-ink); mix-blend-mode: normal; }
.case-masthead .say-hi__hi { background: var(--night-ink); color: var(--gold); }
.case-page .primary-nav:not(.is-open) a[aria-current="page"] { color: #9fffe8; }
.case-masthead__copy { position: relative; width: min(100%, 1000px); }
.case-eyebrow { margin: 0 0 var(--hero-eyebrow-gap); color: var(--night-ink); font-size: var(--hero-eyebrow-size); font-weight: var(--hero-eyebrow-weight); letter-spacing: var(--hero-eyebrow-letter-spacing); }
.case-masthead h1 { margin: 0; color: var(--night-ink); font-family: var(--a-hero-headline-font); font-size: var(--a-hero-headline-size); font-weight: var(--a-hero-headline-weight); line-height: var(--a-hero-headline-line-height); letter-spacing: var(--a-hero-headline-letter-spacing); }
.case-masthead h1 em { font-family: var(--serif); font-weight: 400; letter-spacing: -.055em; }
.case-intro { display: grid; grid-template-columns: minmax(140px, .5fr) minmax(0, 1.5fr); align-items: start; gap: clamp(20px, 2.5vw, 36px); padding: var(--section-space-y) var(--case-gutter); background: var(--gold); color: var(--night-ink); }
.case-intro h2 { max-width: 420px; margin: 0; font-size: clamp(32px, 4vw, 54px); font-weight: 600; line-height: 1.05; letter-spacing: -.06em; }
.case-intro p { max-width: 960px; margin: 0; font-size: clamp(24px, 1.95vw, 30px); font-weight: 400; line-height: 1.6; }
.case-prototype { padding: var(--section-space-y) var(--case-gutter); }
.case-prototype__grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(300px, 25vw, 380px); grid-auto-flow: dense; gap: clamp(18px, 2.2vw, 34px); }
/* Keep a 12% inset on each side; card heights leave room for title and details. */
.case-prototype__stage { --case-scroll-offset: 0px; --case-card-inset: clamp(20px, 2.2vw, 30px); --case-card-radius: clamp(18px, 2.4vw, 26px); --case-window-radius: min(var(--case-card-radius), 20px); --case-aperture-radius: clamp(43.2px, 6.3vw, 86.4px); --case-window-ratio: 1.887; --case-window-width: 76cqw; --case-window-height: calc(var(--case-window-width) / var(--case-window-ratio)); --case-window-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%20viewBox='0 0 200 100'%20preserveAspectRatio='none'%3E%3Crect width='200' height='100' rx='20' ry='20' fill='white'/%3E%3C/svg%3E"); --case-plum: #270512; --case-mint: var(--warm-sand); position: relative; grid-column: span 1; grid-row: span 1; width: 100%; min-height: 0; container-type: inline-size; perspective: 900px; transform: none; }
.case-prototype__stage:nth-child(1) { --case-plum: #270512; }
.case-prototype__stage:nth-child(2) { --case-plum: #310615; }
.case-prototype__stage:nth-child(3) { --case-plum: #380716; }
.case-prototype__stage:nth-child(4) { --case-plum: #400818; }
.case-prototype__stage:nth-child(5) { --case-plum: #4c0c1c; }
.case-prototype__stage:nth-child(6) { --case-plum: #310615; }
.case-prototype__stage:nth-child(7) { --case-plum: #400818; }
.case-prototype__stage:nth-child(8) { --case-plum: #270512; }
.case-prototype__stage:nth-child(9) { --case-plum: #4c0c1c; }
.case-prototype__stage:nth-child(10) { --case-plum: #380716; }
.case-prototype__stage:nth-child(11) { --case-plum: #310615; }
.case-prototype__stage:nth-child(12) { --case-plum: #4c0c1c; }
.case-prototype__stage:nth-child(13) { --case-plum: #400818; }
.case-prototype__stage:nth-child(14) { --case-plum: #270512; }
.case-prototype__stage:nth-child(15) { --case-plum: #380716; }
.case-prototype__stage:nth-child(1) { --case-mint: var(--warm-sand); }
.case-prototype__stage:nth-child(2) { --case-mint: var(--warm-sand); }
.case-prototype__stage:nth-child(3) { --case-mint: var(--warm-sand); }
.case-prototype__stage:nth-child(4) { --case-mint: var(--warm-sand); }
.case-prototype__stage:nth-child(5) { --case-mint: var(--warm-sand); }
.case-prototype__stage:nth-child(6) { --case-mint: var(--warm-sand); }
.case-prototype__stage:nth-child(7) { --case-mint: var(--warm-sand); }
.case-prototype__stage:nth-child(8) { --case-mint: var(--warm-sand); }
.case-prototype__stage:nth-child(9) { --case-mint: var(--warm-sand); }
.case-prototype__stage:nth-child(10) { --case-mint: var(--warm-sand); }
.case-prototype__stage:nth-child(11) { --case-mint: var(--warm-sand); }
.case-prototype__stage:nth-child(12) { --case-mint: var(--warm-sand); }
.case-prototype__stage:nth-child(13) { --case-mint: var(--warm-sand); }
.case-prototype__stage:nth-child(14) { --case-mint: var(--warm-sand); }
.case-prototype__stage:nth-child(15) { --case-mint: var(--warm-sand); }
.case-prototype__stage:has(.case-prototype__card--flexoptix),
.case-prototype__stage:has(.case-prototype__card--project-04),
.case-prototype__stage:has(.case-prototype__card--project-17) { --case-window-ratio: .9435; grid-row: span 2; }
.case-prototype__stage:has(.case-prototype__card--bluecouch) { --case-window-ratio: 3.774; grid-column: span 2; }
.case-prototype__stage:has(.case-prototype__card--project-04) { grid-column: 2 / span 1; }
.case-prototype__stage:has(.case-prototype__card--flexoptix),
.case-prototype__stage:has(.case-prototype__card--project-04),
.case-prototype__stage:has(.case-prototype__card--project-17) { --case-window-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%20viewBox='0 0 200 100'%20preserveAspectRatio='none'%3E%3Crect width='200' height='100' rx='20' ry='10' fill='white'/%3E%3C/svg%3E"); }
.case-prototype__stage:has(.case-prototype__card--bluecouch) { --case-window-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%20viewBox='0 0 200 100'%20preserveAspectRatio='none'%3E%3Crect width='200' height='100' rx='10' ry='20' fill='white'/%3E%3C/svg%3E"); }
.case-prototype__card { --case-parallax-strength: 1.12; --case-surface-start: #9fc9bd; --case-surface-mid: #dce6c5; --case-surface-end: #f1d8a0; --case-line: #17493f; --case-accent: #ffcd00; position: absolute; inset: 0; width: 100%; height: 100%; margin-inline: auto; transform: translateY(var(--case-scroll-offset, 0px)) rotateX(calc(var(--card-rotate-x, 0deg) + var(--case-scroll-tilt, 0deg))) rotateY(var(--card-rotate-y, 0deg)); transform-origin: 50% 50%; transform-style: preserve-3d; transition: none; }
.case-prototype__card--aiedn .case-prototype__depth { background-image: linear-gradient(135deg, rgb(184 198 231 / .14), rgb(229 220 232 / .12) 55%, rgb(241 214 174 / .12)), url("https://mir-s3-cdn-cf.behance.net/project_modules/1400_webp/048bc084307655.5d593d84e4ac7.jpg"); }
.case-prototype__card--bluecouch .case-prototype__depth { background-image: linear-gradient(135deg, rgb(169 209 197 / .14), rgb(220 233 211 / .12) 55%, rgb(196 211 226 / .12)), url("https://mir-s3-cdn-cf.behance.net/project_modules/1400_webp/3b868584259143.5d56cf626bbda.jpg"); }
.case-prototype__card--flexoptix .case-prototype__depth { background-image: url("https://mir-s3-cdn-cf.behance.net/project_modules/fs_webp/b8c39c105370769.5f7754109d497.jpg"); }
.case-prototype__card--aiedn .case-prototype__depth { background-image: url("https://mir-s3-cdn-cf.behance.net/project_modules/1400_webp/048bc084307655.5d593d84e4ac7.jpg"); }
.case-prototype__card--bluecouch .case-prototype__depth { background-image: url("https://mir-s3-cdn-cf.behance.net/project_modules/1400_webp/3b868584259143.5d56cf626bbda.jpg"); }
.case-prototype__card--project-04 .case-prototype__depth { background-image: url("https://mir-s3-cdn-cf.behance.net/project_modules/1400_webp/528abb84280725.5d57bfaa94e3e.jpg"); }
.case-prototype__card--project-05 .case-prototype__depth { background-image: url("instingo/assets/screenshot.png"); background-size: cover; background-repeat: no-repeat; background-position: top; }
.case-prototype__card--project-06 .case-prototype__depth { background-image: url("https://mir-s3-cdn-cf.behance.net/project_modules/fs_webp/b8c39c105370769.5f7754109d497.jpg"); }
.case-prototype__card--project-07 .case-prototype__depth { background-image: url("https://mir-s3-cdn-cf.behance.net/project_modules/hd_webp/95874f90661901.5e1d808db318f.jpg"); }
.case-prototype__card--project-08 .case-prototype__depth { background-image: url("https://mir-s3-cdn-cf.behance.net/project_modules/1400_webp/3b868584259143.5d56cf626bbda.jpg"); }
.case-prototype__card--project-09 .case-prototype__depth { background-image: url("https://mir-s3-cdn-cf.behance.net/project_modules/1400_webp/6fa3ed84280725.5d57bfaa9455e.jpg"); }
.case-prototype__card--project-10 .case-prototype__depth { background-image: url("https://mir-s3-cdn-cf.behance.net/project_modules/1400_webp/56da3284307655.5d593d84e3856.jpg"); }
.case-prototype__card--project-11 .case-prototype__depth { background-image: url("https://mir-s3-cdn-cf.behance.net/project_modules/1400_webp/26257a69002139.5b71834b1af49.jpg"); }
.case-prototype__card--project-12 .case-prototype__depth { background-image: url("https://mir-s3-cdn-cf.behance.net/project_modules/1400_webp/d40aa071631607.5d59057d9be62.jpg"); }
.case-prototype__card--project-13 .case-prototype__depth { background-image: url("https://mir-s3-cdn-cf.behance.net/project_modules/max_1200_webp/d63c8a71647823.5bccd65e1e459.jpg"); }
.case-prototype__card--project-14 .case-prototype__depth { background-image: url("https://mir-s3-cdn-cf.behance.net/project_modules/hd_webp/aa5cad71615897.5bcb64edc7246.jpg"); }
.case-prototype__card--project-15 .case-prototype__depth { background-image: url("https://mir-s3-cdn-cf.behance.net/project_modules/hd_webp/62f3bd68218245.5b55b01f5cbc2.jpg"); }
.case-prototype__card--aiedn { --case-surface-start: #b8c6e7; --case-surface-mid: #e5dce8; --case-surface-end: #f1d6ae; --case-line: #2b365c; --case-accent: #d3bd74; }
.case-prototype__card--bluecouch { --case-surface-start: #a9d1c5; --case-surface-mid: #dce9d3; --case-surface-end: #c4d3e2; --case-line: #214a4e; --case-accent: #e3c779; }
.case-prototype__depth { position: absolute; inset: 6px; overflow: hidden; border-radius: calc(var(--case-card-radius) - 6px); background-image: linear-gradient(135deg, rgb(159 201 189 / .16), rgb(220 230 197 / .12) 55%, rgb(241 216 160 / .12)), url("../assets/portfolio-project-1.png"); background-size: cover; background-position: center; transform: translate3d(var(--depth-x, 0px), var(--depth-y, 0px), var(--depth-z, 0px)) rotateX(var(--depth-rotate-x, 0deg)) rotateY(var(--depth-rotate-y, 0deg)); transform-origin: 50% 50%; transition: none; }
.case-prototype__art { display: block; width: 100%; height: 100%; }
.case-prototype__art text { font-family: var(--sans); }
.case-prototype__front { position: absolute; inset: 0; transform: translate3d(var(--front-x, 0px), var(--front-y, 0px), var(--front-z, 0px)) rotateX(var(--front-rotate-x, 0deg)) rotateY(var(--front-rotate-y, 0deg)); transform-origin: 50% 50%; transform-style: preserve-3d; transition: none; }
.case-prototype__paper { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: var(--case-card-radius); background: var(--case-mint); overflow: hidden; -webkit-mask-image: linear-gradient(#000 0 0), var(--case-window-mask); -webkit-mask-size: 100% 100%, var(--case-window-width) var(--case-window-height); -webkit-mask-position: 0 0, 50% 50%; -webkit-mask-repeat: no-repeat; -webkit-mask-composite: xor; mask-image: linear-gradient(#000 0 0), var(--case-window-mask); mask-size: 100% 100%, var(--case-window-width) var(--case-window-height); mask-position: 0 0, 50% 50%; mask-repeat: no-repeat; mask-composite: exclude; }
.case-prototype__stage:has(.case-prototype__card--bluecouch) .case-prototype__paper,
.case-prototype__stage:has(.case-prototype__card--project-17) .case-prototype__paper { -webkit-mask-size: 100% 100%, var(--case-window-width) var(--case-window-height); mask-size: 100% 100%, var(--case-window-width) var(--case-window-height); }
.case-prototype__aperture-shadow { position: absolute; z-index: 1; top: 50%; left: 50%; width: var(--case-window-width); height: var(--case-window-height); border-radius: var(--case-window-radius); box-shadow: inset var(--case-shadow-x, 0px) var(--case-shadow-y, 4px) var(--case-aperture-shadow-blur, 0px) 0 rgb(42 27 18 / var(--case-shadow-opacity, 0)); transform: translate(-50%, -50%); pointer-events: none; }
.case-prototype__copy { position: absolute; z-index: 1; top: var(--case-card-inset); right: var(--case-card-inset); bottom: var(--case-card-inset); left: var(--case-card-inset); display: grid; grid-template-rows: minmax(min-content, 1fr) var(--case-window-height) minmax(min-content, 1fr); align-items: center; color: var(--night-ink); text-align: center; transform: translate3d(var(--case-copy-x, 0px), var(--case-copy-y, 0px), 22px) scale(var(--case-copy-scale, 1)); pointer-events: none; }
.case-prototype__copy-shadow { z-index: 0; color: #2a1b12 !important; transform: translate3d(var(--case-copy-shadow-x, 0px), var(--case-copy-shadow-y, 1.5px), 1px); filter: blur(var(--case-copy-shadow-blur, 0px)); opacity: var(--case-copy-shadow-opacity, 0); }
.case-prototype__copy-shadow .case-prototype__eyebrow,
.case-prototype__copy-shadow h2,
.case-prototype__copy-shadow .case-prototype__details > p { color: #2a1b12 !important; }
.case-prototype__copy-shadow .case-prototype__meta { background: #2a1b12; color: #2a1b12; }
.case-prototype__eyebrow { margin: 0 0 clamp(10px, 1.1vw, 14px); color: var(--night-ink); font-size: clamp(7px, .62vw, 9px); font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.case-prototype__copy h2 a { color: inherit; text-decoration: none; }
.case-prototype__copy h2 { grid-row: 1; margin: 0; color: var(--night-ink); overflow-wrap: break-word; font-size: clamp(18px, 1.5vw, 28px); font-weight: 600; line-height: .95; letter-spacing: -.075em; }
.case-prototype__number { margin: auto 0 0; color: var(--night-ink); font-family: var(--serif); font-size: clamp(36px, 4vw, 72px); line-height: 1; }
.case-prototype__details { display: flex; grid-row: 3; flex-direction: column; align-items: center; gap: 8px; margin-top: 0; text-align: center; }
.case-prototype__details > p { margin: 0; color: var(--night-ink); font-size: clamp(11px, 1.2vw, 17px); line-height: 1.3; letter-spacing: -.04em; }
.case-prototype__meta { display: inline-block; max-width: min(100%, 260px); margin-top: 0; padding: 5px 10px; border-radius: 999px; background: var(--midnight-berry); color: var(--warm-sand); font-size: clamp(8px, .75vw, 10px); font-weight: 700; line-height: 1.2; white-space: normal; }
.case-prototype__caption { position: absolute; z-index: 1; right: 8%; bottom: 10%; margin: 0; color: var(--night-ink); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.case-prototype__card-link { position: absolute; z-index: 2; inset: 0; border-radius: var(--case-card-radius); }
.case-prototype__card-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.case-prototype__paper::before { position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle clamp(150px, 25vw, 270px) at var(--case-pointer-x, var(--case-scroll-light-x, 50%)) var(--case-pointer-y, var(--case-idle-light-y, var(--case-scroll-light-y, 50%))), rgb(255 255 255 / .34), rgb(255 255 255 / .10) 38%, transparent 75%), var(--sunlit-gold); content: ""; opacity: 0; transition: opacity 180ms ease-out; pointer-events: none; }
.case-prototype__stage:focus-within .case-prototype__paper::before { --case-hover-light: 1; opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .case-prototype__stage:hover .case-prototype__paper::before { --case-hover-light: 1; opacity: 1; }
}
.case-prototype__stage:hover .case-prototype__card { z-index: 1; }
.case-prototype__stage:hover .case-prototype__depth { filter: saturate(1.15) contrast(1.05); }
@media (prefers-reduced-motion: reduce) {
  .case-prototype__stage,
  .case-prototype__card,
  .case-prototype__front,
  .case-prototype__depth { transition: none; }
  .case-prototype__front { transform: translateZ(0px); }
  .case-prototype__depth { transform: translateZ(0px); }
  .case-prototype__paper::before { transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  .case-prototype__card { --case-scroll-offset: 0px !important; }
}
@media (max-width: 900px), (max-width: 1280px) and (orientation: portrait) {
  .case-prototype__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-prototype__grid { grid-auto-rows: auto; }
  .case-prototype__stage { --case-card-inset: 18px; --case-aperture-radius: clamp(50.4px, 10.8vw, 86.4px); --case-window-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%20viewBox='0 0 200 100'%20preserveAspectRatio='none'%3E%3Crect width='200' height='100' rx='20' ry='20' fill='white'/%3E%3C/svg%3E"); }
  .case-prototype__aperture-shadow { width: var(--case-window-width); }
  .case-prototype__paper,
  .case-prototype__stage:has(.case-prototype__card--flexoptix) .case-prototype__paper,
  .case-prototype__stage:has(.case-prototype__card--project-05) .case-prototype__paper,
  .case-prototype__stage:has(.case-prototype__card--project-10) .case-prototype__paper { -webkit-mask-size: 100% 100%, var(--case-window-width) var(--case-window-height); -webkit-mask-position: 0 0, 50% 50%; mask-size: 100% 100%, var(--case-window-width) var(--case-window-height); mask-position: 0 0, 50% 50%; }
  .case-prototype__grid > .case-prototype__stage { --case-window-ratio: 1.887; grid-column: auto; grid-row: auto; min-height: 300px; aspect-ratio: 1000 / 800; }
  .case-prototype__grid > .case-prototype__stage:has(.case-prototype__card--flexoptix),
  .case-prototype__grid > .case-prototype__stage:has(.case-prototype__card--project-05),
  .case-prototype__grid > .case-prototype__stage:has(.case-prototype__card--project-10),
  .case-prototype__grid > .case-prototype__stage:has(.case-prototype__card--project-04),
  .case-prototype__grid > .case-prototype__stage:has(.case-prototype__card--project-09) { grid-column: auto; grid-row: auto; }
  .case-prototype__copy h2 { font-size: clamp(18px, 2.5vw, 26px); }
  .case-prototype__stage:last-child { grid-column: auto; width: 100%; }
}
@media (min-width: 601px) and (max-width: 1280px) and (orientation: portrait) {
  .case-prototype__grid > .case-prototype__stage:has(.case-prototype__card--flexoptix),
  .case-prototype__grid > .case-prototype__stage:has(.case-prototype__card--project-04),
  .case-prototype__grid > .case-prototype__stage:has(.case-prototype__card--project-05),
  .case-prototype__grid > .case-prototype__stage:has(.case-prototype__card--project-09),
  .case-prototype__grid > .case-prototype__stage:has(.case-prototype__card--flexoptix),
  .case-prototype__grid > .case-prototype__stage:has(.case-prototype__card--project-04),
  .case-prototype__grid > .case-prototype__stage:has(.case-prototype__card--project-05),
  .case-prototype__grid > .case-prototype__stage:has(.case-prototype__card--project-09),
  .case-prototype__grid > .case-prototype__stage:has(.case-prototype__card--project-10) { --case-window-ratio: 3.774; --case-window-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%20viewBox='0 0 200 100'%20preserveAspectRatio='none'%3E%3Crect width='200' height='100' rx='10' ry='20' fill='white'/%3E%3C/svg%3E"); }
  .case-prototype__grid > .case-prototype__stage:has(.case-prototype__card--flexoptix),
  .case-prototype__grid > .case-prototype__stage:has(.case-prototype__card--project-04),
  .case-prototype__grid > .case-prototype__stage:has(.case-prototype__card--project-05),
  .case-prototype__grid > .case-prototype__stage:has(.case-prototype__card--project-09),
  .case-prototype__grid > .case-prototype__stage:has(.case-prototype__card--project-10) { grid-column: span 2; grid-row: auto; aspect-ratio: 2000 / 800; }
}
@media (max-width: 600px) {
  .case-prototype__grid { grid-template-columns: 1fr; gap: 24px; }
  .case-prototype__stage { aspect-ratio: 1000 / 800; }
  .case-prototype__stage:last-child { grid-column: auto; width: 100%; }
  .case-prototype__eyebrow { margin-bottom: 10px; font-size: clamp(7px, 1.8vw, 9px); letter-spacing: .06em; }
  .case-prototype__copy h2 { font-size: clamp(20px, 6vw, 32px); }
  .case-prototype__details > p { font-size: clamp(10px, 3vw, 14px); }
  .case-prototype__number { font-size: 42px; }
  .case-prototype__meta { margin-top: 0; font-size: clamp(9px, 2.2vw, 11px); }
  .case-prototype__caption { right: 7%; bottom: 8%; font-size: 7px; }
}
.case-endcap { display: flex; min-height: 470px; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 76px var(--case-gutter); background: var(--garnet); color: var(--warm-sand); text-align: center; }
.case-endcap p { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.case-endcap h2 { margin: 0; font-size: clamp(40px, 7vw, 94px); font-weight: 500; line-height: .98; letter-spacing: -.075em; }
.case-endcap h2 strong { font-weight: 700; }
.case-endcap .outro__cta { margin-top: 12px; }
.case-page .site-footer { margin: 0; padding-inline: var(--case-gutter); }
.case-page .site-footer__content { width: min(100%, 1578px); }
@media (max-width: 900px) {
  .case-page { --case-gutter: 5%; }
  .case-masthead { padding: 150px var(--case-gutter) 110px; }
  .case-masthead > .site-header { z-index: 20; }
  .case-masthead > .brand { z-index: 21; }
  .case-masthead h1 { font-size: var(--a-hero-headline-size); }
  .case-intro { grid-template-columns: 1fr; gap: 20px; }
  .case-endcap { min-height: 360px; }
}
@media (max-width: 600px) {
  .case-page { --case-gutter: 5%; }
  .case-masthead { padding: 140px var(--case-gutter) 116px; }
  .case-eyebrow { margin-bottom: var(--hero-eyebrow-gap); font-size: var(--hero-eyebrow-size); }
  .case-masthead h1 { font-size: var(--a-hero-headline-size); }
  .case-endcap { min-height: 300px; padding-inline: var(--case-gutter); }
  .case-endcap h2 { font-size: clamp(40px, 11vw, 60px); }
}

.is-safari .case-prototype__front {
  transform-style: preserve-3d;
}

.is-safari .case-prototype__copy,
.is-safari .case-prototype__copy-shadow {
  transform: translate3d(var(--case-copy-x, 0px), var(--case-copy-y, 0px), 22px) scale(var(--case-copy-scale, 1));
}
.is-safari .case-prototype__copy-shadow { transform: translate3d(var(--case-copy-shadow-x, 0px), var(--case-copy-shadow-y, 1.5px), 1px); }
.is-safari .case-prototype__aperture-shadow { transform: translate(-50%, -50%); }

.is-safari .case-prototype__depth {
  transform: translate3d(var(--depth-x, 0px), var(--depth-y, 0px), var(--depth-z, 0px));
}

.is-safari .case-prototype__stage:hover .case-prototype__depth {
  filter: none;
}



/* Distinct color fields for projects without dedicated artwork. */
.case-prototype__card--project-04 { --case-surface-start: #c9dfd1; --case-surface-mid: #f1e5be; --case-surface-end: #c9dfd1; --case-line: #295449; --case-accent: #ffcd00; }
.case-prototype__card--project-05 { --case-surface-start: #d9c6e4; --case-surface-mid: #f3d3b2; --case-surface-end: #d9c6e4; --case-line: #512b62; --case-accent: #ffcd00; }
.case-prototype__card--project-06 { --case-surface-start: #a9d7ef; --case-surface-mid: #d9f0cd; --case-surface-end: #a9d7ef; --case-line: #244c69; --case-accent: #ffcd00; }
.case-prototype__card--project-07 { --case-surface-start: #f1c5ce; --case-surface-mid: #f6e4c8; --case-surface-end: #f1c5ce; --case-line: #75394c; --case-accent: #ffcd00; }
.case-prototype__card--project-08 { --case-surface-start: #c5d2f4; --case-surface-mid: #e4e8f7; --case-surface-end: #c5d2f4; --case-line: #303d72; --case-accent: #ffcd00; }
.case-prototype__card--project-09 { --case-surface-start: #edc59d; --case-surface-mid: #f4e0bc; --case-surface-end: #edc59d; --case-line: #683d2e; --case-accent: #ffcd00; }
.case-prototype__card--project-10 { --case-surface-start: #bdd9c4; --case-surface-mid: #e5e9c7; --case-surface-end: #bdd9c4; --case-line: #3b5941; --case-accent: #ffcd00; }
.case-prototype__card--project-11 { --case-surface-start: #9fd4d4; --case-surface-mid: #dbe7ee; --case-surface-end: #9fd4d4; --case-line: #23575d; --case-accent: #ffcd00; }
.case-prototype__card--project-12 { --case-surface-start: #e0c8a7; --case-surface-mid: #eadfbf; --case-surface-end: #e0c8a7; --case-line: #55422b; --case-accent: #ffcd00; }
.case-prototype__card--project-13 { --case-surface-start: #e4b89a; --case-surface-mid: #f0d6a8; --case-surface-end: #e4b89a; --case-line: #633c32; --case-accent: #ffcd00; }
.case-prototype__card--project-14 { --case-surface-start: #d5c7ed; --case-surface-mid: #eee0df; --case-surface-end: #d5c7ed; --case-line: #493c69; --case-accent: #ffcd00; }
.case-prototype__card--project-15 { --case-surface-start: #c5d3c4; --case-surface-mid: #e9ddc9; --case-surface-end: #c5d3c4; --case-line: #405347; --case-accent: #ffcd00; }
.case-prototype__card--project-16 { --case-surface-start: #d8b98c; --case-surface-mid: #f0dfbd; --case-surface-end: #b9784d; --case-line: #57351f; --case-accent: #ffcd00; }
.case-prototype__card--project-17 { --case-surface-start: #a9c4c4; --case-surface-mid: #d4e1dc; --case-surface-end: #829da5; --case-line: #29414a; --case-accent: #ffcd00; }
.case-prototype__card--project-18 { --case-surface-start: #8db7b1; --case-surface-mid: #d2dfcf; --case-surface-end: #b8c9d1; --case-line: #24484a; --case-accent: #ffcd00; }
.case-prototype__card--project-19 { --case-surface-start: #bd9d84; --case-surface-mid: #ead9c8; --case-surface-end: #925d58; --case-line: #533638; --case-accent: #ffcd00; }
.case-prototype__card--project-20 { --case-surface-start: #beb4d2; --case-surface-mid: #e6deea; --case-surface-end: #8390b2; --case-line: #393b5a; --case-accent: #ffcd00; }

@media (prefers-reduced-motion: no-preference) {
  .case-prototype__paper::before { opacity: max(var(--case-scroll-light, 0), var(--case-hover-light, 0), var(--case-idle-light, 0)); }
}
