#case-view {
  --line:#ffffff28;
  --muted:#bdb8ad;
  background:#10100f;
  color:#f5f3ec;
  color-scheme:dark;
}
#case-view .case-nav {
  background:#10100f;
  border-color:#ffffff25;
  color:#f5f3ec;
  min-height:58px;
  align-items:center;
}
.case-nav-title { color:#c1bcaf; }
.case-spread {
  display:grid;
  gap:0;
  width:100%;
}
.case-spread.has-featured { grid-template-columns:minmax(0,56fr) minmax(0,44fr); }
.case-spread .case-hero {
  min-height:clamp(490px,56vw,840px);
  align-items:center;
  padding:clamp(28px,4.1vw,74px);
  background:#171716;
}
.case-spread .case-hero::after {
  background:linear-gradient(180deg, #0808081a 0%, #08080836 23%, #08080875 100%),
    linear-gradient(90deg, #080808bc, #08080855 66%, #08080808);
}
.case-spread .case-hero-meta { max-width:66ch; min-width:0; }
.case-spread .case-title {
  font:700 clamp(30px,4.3vw,76px)/.96 "Helvetica Neue",Helvetica,Arial,sans-serif;
  text-transform:uppercase; letter-spacing:-.055em; overflow-wrap:anywhere;
  margin:9px 0 16px;
}
.case-spread .case-title:focus { outline:none; }
.case-spread .case-desc { font-size:clamp(13px,1.15vw,17px); color:#f1ece1; }
.case-roles {
  display:flex; flex-wrap:wrap; gap:6px;
  list-style:none; padding:0; margin:18px 0 0;
}
.case-roles :is(a,span) { display:block; padding:5px 10px; border:1px solid #ffffff66; border-radius:20px; font-size:10px; letter-spacing:.04em; text-transform:uppercase; }
.case-roles a:hover { color:#10100f; background:#f5f3ec; }
.case-featured {
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:0;
  contain:size;
  overflow-y:auto;
  overscroll-behavior-y:contain;
  scrollbar-width:thin;
  scrollbar-color:#837f75 #151513;
}
.case-featured:focus-visible { outline-offset:-4px; }
.case-featured .media-item {
  flex:1 0 auto;
  margin:0;
  width:100%;
  aspect-ratio:16/9;
  height:auto;
  min-height:0;
}
.case-featured .media-item > img { position:absolute; inset:0; }
.case-featured .media-video:focus-visible { outline-offset:-4px; }
.case-featured .media-video:hover .play-dot { transform:scale(1.12); }
.case-featured .play-dot { transition:transform .24s; }
#case-view .case-body { grid-template-columns:minmax(180px,.48fr) minmax(0,1.5fr); gap:35px; max-width:1640px; margin:auto; }
#case-view .case-body .case-media { margin:0; }
#case-view .case-body figure { margin:0; }
#case-view .fact, #case-view .case-next { --line:#ffffff25; --muted:#bdb8ad; }
#case-view .case-next { max-width:1640px; margin:auto; }
@media(max-width:780px) {
  .case-spread.has-featured, #case-view .case-body { grid-template-columns:1fr; }
  .case-spread .case-hero { min-height:clamp(390px,88vw,570px); }
  .case-featured { contain:none; overflow:visible; }
}
.case-technical { margin-top:18px; width:min(100%, 525px); }
.case-technical summary {
  display:inline-flex; align-items:center; gap:18px;
  cursor:pointer; list-style:none;
  border-bottom:1px solid #ffffff80; padding:8px 0;
  font-size:13px; color:#fff;
}
.case-technical summary::-webkit-details-marker { display:none; }
.case-technical summary::after { content:"+"; line-height:1; font-size:17px; font-weight:400; }
.case-technical[open] summary::after { content:"−"; }
.case-technical .case-facts {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:16px;
  max-height:min(28vh, 240px); overflow:auto;
  margin-top:10px; padding:6px 13px;
  background:rgb(10 10 10 / .88); color:#f5f3ec;
  scrollbar-color:#aaa #191919;
}
.case-technical .fact { font-size:12px; overflow-wrap:anywhere; }
#case-view .case-body { display:block; }
#case-view .case-body[hidden] { display:none; }
@media(max-width:420px) {
  .case-technical .case-facts { max-height:250px; }
}
#case-view .case-nav {
  min-height:64px;
  position:sticky;
  top:0;
  z-index:5;
  margin-bottom:-64px;
  padding-block:9px;
  border:0;
  background:linear-gradient(180deg, rgb(0 0 0 / .54), transparent);
  pointer-events:none;
}
.case-nav button { pointer-events:auto; }
#case-view .case-back {
  text-decoration:none;
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  margin-left:-9px;
  font-size:27px;
  line-height:1;
}
.case-menu { display:flex; align-items:center; gap:12px; min-height:44px; font-size:12px; }
.case-menu .menu-icon { width:19px; height:8px; border-block:1px solid currentColor; }
.case-spread .case-hero {
  grid-template-rows:1fr auto;
  min-height:clamp(540px,56vw,840px);
  padding:82px 0 0;
}
.case-spread .case-hero-meta { padding:clamp(20px,4.1vw,74px); max-width:none; }
.case-spread .case-hero::after {
  background:linear-gradient(180deg, rgb(0 0 0 / .15), rgb(0 0 0 / .63)),
    linear-gradient(90deg, rgb(0 0 0 / .56), rgb(0 0 0 / .23));
}
.case-technical {
  width:100%;
  margin:0;
  align-self:end;
  padding:0 clamp(20px,4.1vw,74px);
}
.case-technical summary {
  display:flex;
  width:100%;
  justify-content:space-between;
  border-top:1px solid #ffffff55;
  border-bottom:0;
  padding:15px 0;
}
.case-technical[open] { background:linear-gradient(0deg, rgb(0 0 0 / .72), transparent); }
.case-technical .case-facts {
  background:transparent;
  padding:0 0 16px;
  margin:0;
}
.case-technical[open] .case-facts { animation:technical-rise .24s ease-out both; }
@keyframes technical-rise { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
@media(max-width:780px) {
  .case-spread .case-hero { min-height:clamp(430px,95vw,570px); padding-top:64px; }
}
@media(prefers-reduced-motion:reduce) { .case-technical[open] .case-facts { animation:none; } }
#case-view { display:none; --case-nav-strip:57px; }
#case-view.visible { display:flex; flex-direction:column; }
#case-view .case-nav, #case-view .case-spread, #case-view .case-project-nav { flex-shrink:0; }
.case-spread .case-hero { min-height:calc(100svh - var(--case-nav-strip)); }
.case-spread .case-hero-meta {
  align-self:end;
  justify-self:center;
  padding-bottom:clamp(16px,2vw,32px);
}
.case-project-nav {
  display:flex; justify-content:flex-end;
  min-height:var(--case-nav-strip);
  padding:0 var(--pad);
  border-top:1px solid #ffffff2d;
}
.case-project-nav button { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; column-gap:14px; padding:10px 0; font-size:13px; }
.case-project-nav button span { color:#bdb8ad; font-size:11px; }
.case-project-nav button strong { font-weight:600; }
.case-project-nav button:hover strong { text-decoration:underline; text-underline-offset:4px; }
#case-view:not(:has(.case-project-nav:not([hidden]))) { --case-nav-strip:0px; }
@media(max-width:780px) {
  .case-spread .case-hero { min-height:clamp(400px,95vw,570px); }
}
