.case-open .identity { display: none; }
.case-open .social-footer { display: none; }
.case-open .footer-fade { height: 72px; }
html[data-route-direction]::view-transition-group(root) { animation-duration: .46s; }
html[data-route-direction]::view-transition-old(root) { animation: case-page-out .24s ease both; mix-blend-mode: normal; }
html[data-route-direction]::view-transition-new(root) { animation: case-page-in .46s cubic-bezier(.22, 1, .36, 1) both; mix-blend-mode: normal; }
html[data-route-direction="back"]::view-transition-new(root) { animation-name: case-page-back; }
@keyframes case-page-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes case-page-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes case-page-back { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.project-case { width: min(760px, calc(100% - 48px)); margin-inline: auto; padding: 122px 0 88px; }
.project-case-header { max-width: 590px; margin: 0 auto; }
.project-case[data-case="leadership-agent"] > .case-body { margin-top: 28px; }
.case-top-controls { position: fixed; z-index: 9; top: max(var(--cabin-unit-top), env(safe-area-inset-top)); left: max(var(--cabin-unit-right), env(safe-area-inset-left)); display: flex; align-items: center; justify-content: center; gap: 6px; width: var(--cabin-unit-width); height: var(--cabin-unit-height); padding: 4px; border: 1px solid color-mix(in srgb, var(--rule) 65%, transparent); border-radius: 28px; background: color-mix(in srgb, var(--card) 58%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 2px 10px #29476308; }
.case-top-controls.has-outline-rail { width: var(--cabin-unit-height); gap: 0; }
.case-top-controls > :is(a, button) { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 50%; text-decoration: none; background: transparent; color: var(--body); cursor: pointer; }
.case-top-controls > :is(a, button):is(:hover, :focus-visible) { background: var(--hover); color: var(--accent-ink); }
.case-top-controls > .case-contents-toggle { padding: 4px; }
.case-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.project-case h1 { margin: 0 0 17px; font-size: clamp(25px, 3vw, 34px); line-height: 1.24; letter-spacing: -.9px; font-weight: 500; }
.case-lede { margin: 0; color: var(--body); font-size: 16px; line-height: 1.75; letter-spacing: -.1px; }
.case-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 28px; margin: 26px 0 0; padding: 24px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.case-facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.case-facts dt { margin-bottom: 5px; color: var(--muted); font: 9px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .8px; }
.case-facts dd { margin: 0; font-size: 12px; line-height: 1.7; color: var(--body); }
.case-contents-rail { position: fixed; z-index: 9; right: max(var(--cabin-unit-right), env(safe-area-inset-right)); top: 35%; display: flex; flex-direction: column; align-items: center; justify-content: space-around; width: 32px; padding: 6px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.case-rail-marker { display: block; flex: none; width: 14px; height: 2px; border-radius: 1px; background: var(--rule); opacity: .65; transition: background-color .16s, opacity .16s; }
.case-rail-marker.is-subsection { width: 10px; }
.case-rail-marker.is-current { background: var(--accent); opacity: 1; }
.case-contents-rail:is(:hover, :focus-visible) .case-rail-marker { opacity: 1; }
.case-contents { position: fixed; inset: auto; top: calc(max(var(--cabin-unit-top), env(safe-area-inset-top)) + var(--cabin-unit-height) + 12px); left: max(var(--cabin-unit-right), env(safe-area-inset-left)); width: min(350px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - max(var(--cabin-unit-top), env(safe-area-inset-top)) - var(--cabin-unit-height) - 32px); overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 12px; border: 1px solid color-mix(in srgb, var(--rule) 65%, transparent); border-radius: 10px; background: var(--card); color: var(--body); box-shadow: 0 6px 24px #00000014, 0 1px 4px #0000000a; }
.case-contents::backdrop { background: transparent; }
.case-contents[data-layout="rail"] { padding: 10px; border-radius: 8px; box-shadow: 0 4px 16px #00000010, 0 1px 3px #00000008; }
.case-contents-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -2px -2px 6px 8px; }
.case-contents-header > span { color: var(--muted); font: 500 11px/1.5 var(--sans); }
.case-contents[data-layout="rail"] .case-contents-header { margin: 2px 6px 8px; }
.case-contents-close { display: grid; place-items: center; flex: none; width: 32px; height: 32px; padding: 7px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.case-contents-close:is(:hover, :focus-visible) { background: var(--hover); color: var(--accent-ink); }
.case-contents-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.case-contents ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.case-contents[data-layout="rail"] ol { gap: 2px; }
.case-contents a { display: block; padding: 7px 8px; border-radius: 6px; text-decoration: none; font-size: 12px; line-height: 1.6; color: var(--body); overflow-wrap: anywhere; }
.case-contents[data-layout="rail"] a { padding: 5px 7px; font-size: 11.5px; line-height: 1.5; }
.case-contents a:is(:hover, :focus-visible) { background: var(--hover); }
.case-contents a:hover { color: var(--accent-ink); }
.case-contents a[aria-current="location"] { color: var(--accent-ink); font-weight: 500; background: var(--hover); }
.case-contents-sub { padding-left: 12px; }
.case-contents-sub a { font-size: 11px; color: var(--muted); }
.case-body > :not(.case-figure) { max-width: 590px; margin-left: auto; margin-right: auto; }
.case-body > hr:first-child { display: none; }
.case-body h2, .case-body h3 { scroll-margin-top: 110px; font-weight: 500; color: var(--ink); }
.case-body h2 { font-size: 21px; line-height: 1.45; letter-spacing: -.45px; margin-top: 52px; margin-bottom: 17px; }
.case-body h3 { font-size: 17px; line-height: 1.5; letter-spacing: -.2px; margin-top: 30px; margin-bottom: 13px; }
.case-body h2 strong, .case-body h3 strong { font-weight: 500; }
.case-body p, .case-body li { color: var(--body); font-size: 15px; line-height: 1.85; }
.case-body p { margin-top: 0; margin-bottom: 18px; }
.case-body strong { font-weight: 600; color: var(--ink); }
.case-body ol, .case-body ul { padding-left: 23px; margin-top: 14px; margin-bottom: 23px; }
.case-body li + li { margin-top: 12px; }
.case-body li::marker { color: var(--muted); font-size: 12px; }
.case-body blockquote { border-left: 2px solid var(--rule); padding: 4px 0 4px 18px; margin-top: 26px; margin-bottom: 27px; }
.case-body blockquote p { font-size: 13px; color: var(--body); margin: 0; line-height: 1.8; }
.case-body blockquote strong { font-size: 12px; }
.case-body hr { border: 0; border-top: 1px solid var(--rule); opacity: .65; margin-top: 35px; margin-bottom: 35px; }
.case-access { max-width: 590px; margin: -5px auto 64px; scroll-margin-top: 110px; }
.case-access-fade { height: 150px; display: flex; flex-direction: column; gap: 18px; overflow: hidden; padding-top: 8px; filter: blur(2px); mask-image: linear-gradient(#0008, #0003 40%, transparent 95%); -webkit-mask-image: linear-gradient(#0008, #0003 40%, transparent 95%); pointer-events: none; user-select: none; }
.case-access-fade i { display: block; height: 9px; flex: none; border-radius: 5px; background: var(--body); opacity: .25; }
.case-access-fade i:nth-child(2) { width: 92%; }
.case-access-fade i:nth-child(3) { width: 97%; }
.case-access-fade i:nth-child(4) { width: 66%; }
.case-access-prompt { max-width: 380px; margin: -16px auto 0; text-align: center; }
.case-access-icon { width: 26px; height: 26px; margin: 0 auto 16px; fill: none; stroke: var(--body); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.case-access-prompt h2 { margin: 0 0 10px; color: var(--ink); font-size: 23px; font-weight: 500; line-height: 1.3; letter-spacing: -.45px; text-wrap: balance; }
.case-access-prompt > p { margin: 0; color: var(--body); font-size: 13px; line-height: 1.7; }
.case-access-form { display: flex; gap: 8px; max-width: 340px; margin: 22px auto 0; }
.case-access-form input { flex: 1; min-width: 0; min-height: 40px; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--card); color: var(--ink); font: 15px/1.4 var(--sans); transition: border-color .16s, box-shadow .16s; }
.case-access-form input::placeholder { color: var(--muted); }
.case-access-form input:focus-visible { outline: none; border-color: color-mix(in srgb, var(--accent) 70%, var(--rule)); box-shadow: 0 0 0 3px var(--accent-soft); }
.case-access-form button { flex: none; min-height: 40px; padding: 0 16px; border: 1px solid var(--rule); border-radius: 10px; background: var(--chip); color: var(--accent-ink); font: 500 11px/1 var(--mono); letter-spacing: 1.3px; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: background-color .16s, color .16s, border-color .16s; }
.case-access-form button:hover:not(:disabled) { background: var(--hover); border-color: color-mix(in srgb, var(--accent) 45%, var(--rule)); color: var(--link-hover); }
.case-access-form :disabled { opacity: .55; cursor: not-allowed; }
.case-access-prompt .case-access-status { margin-top: 12px; color: var(--body); font-size: 12px; }
.case-body a { color: var(--accent-ink); text-underline-offset: 3px; }
.case-body a, .case-media-error { overflow-wrap: anywhere; }
.case-callout { padding: 16px 20px; border: 1px solid var(--rule); border-radius: 10px; background: var(--hover); }
.case-body .case-callout p:last-child { margin-bottom: 0; }
.case-body table { display: block; overflow-x: auto; border-collapse: collapse; margin-block: 24px; font-size: 13px; line-height: 1.7; color: var(--body); }
.case-body th, .case-body td { padding: 10px 12px; border: 1px solid var(--rule); text-align: left; vertical-align: top; }
.case-body th { font-weight: 500; color: var(--ink); background: var(--hover); }
.case-pitch { margin: 36px 0 0; }
.case-pitch-viewport { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--rule); border-radius: 10px; background: var(--card); }
.case-pitch-play { display: grid; place-items: center; position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: var(--card); cursor: pointer; }
.case-pitch-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.case-pitch-play span { position: relative; padding: 11px 18px; border: 1px solid #ffffff80; border-radius: 24px; background: #29261feb; color: #fff; font: 12px/1.5 var(--sans); }
.case-pitch-play:is(:hover, :focus-visible) span { background: var(--accent-on-light); }
.case-pitch-play:focus-visible { outline-offset: -5px; }
.case-pitch-frame { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.case-pitch figcaption { margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.7; text-align: center; }
.case-pitch figcaption a { color: var(--accent-ink); text-underline-offset: 3px; }
.case-video video { display: block; width: 100%; max-width: 100%; height: auto; max-height: 75dvh; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); }
.case-figure { width: 100%; margin: 25px 0 30px; }
.case-hero { margin: 32px 0 0; }
.case-hero + .case-body > h2:first-of-type { margin-top: 32px; }
.case-figure-media { position: relative; border: 1px solid color-mix(in srgb, var(--rule) 65%, transparent); padding: 7px; border-radius: 12px; background: var(--card); box-shadow: 0 2px 6px #1028420d; }
.case-media-open { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 6px; background: #f6f7f9; overflow: hidden; cursor: zoom-in; }
.case-media-open img { display: block; width: 100%; height: auto; }
.case-expand-icon { position: absolute; bottom: 11px; right: 11px; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #ffffff78; border-radius: 50%; background: var(--accent-on-light); backdrop-filter: blur(5px); color: #fff; opacity: 0; transition: opacity .2s; }
.case-media-open:hover .case-expand-icon, .case-media-open:focus-visible .case-expand-icon { opacity: 1; }
.case-figure figcaption { margin-top: 9px; color: var(--muted); font-size: 10px; line-height: 1.7; text-align: center; }
.case-motion { position: absolute; left: 17px; bottom: 17px; min-height: 32px; border: 1px solid #ffffff90; border-radius: 18px; background: #29261fd9; backdrop-filter: blur(8px); color: #fff; padding: 6px 12px; font: 10px/1.5 var(--mono); cursor: pointer; }
.case-motion:is(:hover, :focus-visible, [aria-pressed="true"]) { background: var(--accent-on-light); }
.case-media-error { padding: 10px 12px; font-size: 12px; color: var(--body); background: var(--hover); border-radius: 6px; }
.case-media-missing { display: block; margin-block: 12px; padding: 12px 14px; border: 1px dashed var(--rule); border-radius: 6px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.project-link.is-published { text-decoration: none; }
.project-link.is-published .project-pending { display: none; }
.project-read { margin-left: auto; color: var(--accent-ink); font-size: 15px; opacity: 0; transition: opacity .16s; }
.project-link:is(:hover, :focus-visible:not([data-navigation-focus="pointer"])) .project-read { opacity: 1; }
.case-lightbox { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; padding: 76px 22px 25px; background: transparent; color: #fff; overflow: auto; }
.case-lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.case-lightbox::backdrop { background: #101923e8; backdrop-filter: blur(10px); }
.case-lightbox-toolbar { position: fixed; top: 20px; right: 22px; left: 22px; display: flex; justify-content: flex-end; align-items: center; gap: 8px; z-index: 1; }
.case-lightbox-toolbar button, .case-lightbox-toolbar a { padding: 7px 11px; border: 1px solid #ffffff36; border-radius: 20px; background: #29261fd9; color: #fff; font: 10px/1.6 var(--mono); text-decoration: none; cursor: pointer; }
.case-lightbox-toolbar :is(button, a):is(:hover, :focus-visible, [aria-pressed="true"]) { background: var(--accent-on-light); }
.case-lightbox figure { margin: 0; max-width: 100%; }
.case-lightbox-image { display: block; width: auto; max-width: calc(100vw - 44px); max-height: calc(100dvh - 150px); height: auto; margin: auto; border-radius: 5px; background: #fff; object-fit: contain; }
.case-lightbox figcaption { max-width: 700px; margin: 12px auto 0; font-size: 11px; line-height: 1.7; color: #ffffffa8; text-align: center; }
.case-lightbox[open].is-zoomed { display: block; }
.case-lightbox.is-zoomed figure { max-width: none; width: max-content; margin-inline: auto; }
.case-lightbox.is-zoomed .case-lightbox-image { width: var(--original-width); max-width: none; max-height: none; object-fit: initial; }
.case-lightbox-status { color: #fff; font-size: 12px; text-align: center; }
@media (max-width: 760px) {
  .project-case { width: calc(100% - 40px); padding-top: 98px; }
  .case-body p, .case-body li { font-size: 14px; line-height: 1.8; }
  .case-body h2 { font-size: 19px; margin-top: 38px; }
  .case-body blockquote { padding-left: 13px; }
  .case-facts { grid-template-columns: 1fr; gap: 13px; }
  .case-lede { font-size: 14px; }
  .case-figure-media { padding: 4px; border-radius: 8px; }
  .case-motion { left: 10px; bottom: 10px; font-size: 8px; min-height: 28px; padding: 5px 8px; }
  .case-lightbox { padding-inline: 12px; }
  .case-lightbox-toolbar { left: 10px; right: 10px; top: 15px; gap: 4px; flex-wrap: wrap; }
  .case-lightbox-toolbar button, .case-lightbox-toolbar a { padding: 6px 8px; font-size: 8px; }
  .case-lightbox-image { max-width: calc(100vw - 24px); }
}
@media (prefers-reduced-motion: reduce) {
  .case-expand-icon { transition: none; }
  html::view-transition-old(root), html::view-transition-new(root), html::view-transition-group(root) { animation: none !important; }
}

/* The private story has just replaced the lock, so it arrives rather than appears. */
.case-unlocked > * {
  animation: case-unlocked-rise .6s var(--ease) both;
}
.case-unlocked > :nth-child(2) { animation-delay: .06s; }
.case-unlocked > :nth-child(3) { animation-delay: .12s; }
.case-unlocked > :nth-child(n+4) { animation-delay: .18s; }
@keyframes case-unlocked-rise {
  from { opacity: 0; transform: translateY(14px); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .case-unlocked > * { animation: none; }
}
