/* A quiet frame for the work; the media provides the visual focus. */
.portfolio-case .case-intro { padding-top: 24px; }
.portfolio-case .portfolio-back { min-height: 40px; font-size: .875rem; gap: 8px; }
.portfolio-case .case-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 14px 0 24px; }
.portfolio-case .case-heading h1 { margin: 0; font-family: inherit; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 500; line-height: 1.15; letter-spacing: -.04em; }
.portfolio-case .case-heading .portfolio-kicker { margin: 9px 0 0; font-size: .8125rem; letter-spacing: 0; text-transform: none; line-height: 1.5; }
.portfolio-case .case-heading > div:last-child { margin: 0; padding: 0; max-width: none; }
.case-view-nav { display: flex; gap: 24px; min-height: 44px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.case-view-nav a { display: inline-flex; align-items: center; position: relative; padding: 0 2px 13px; min-height: 44px; color: var(--muted); font-size: .9375rem; font-weight: 500; white-space: nowrap; }
.case-view-nav a:hover, .case-view-nav a[aria-selected="true"] { color: var(--ink); }
.case-view-nav a[aria-selected="true"]::after { content: ''; position: absolute; inset: auto 0 -1px; height: 2px; background: currentColor; border-radius: 2px; }
.has-project-viewer [data-case-panel][hidden] { display: none !important; }
.has-project-viewer .case-explore, .has-project-viewer .case-tour { padding-block: 0; }
.has-project-viewer [data-case-panel] > .portfolio-section-heading { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.portfolio-case .case-carousel { width: 100%; aspect-ratio: 1.7; max-height: min(720px, 64svh); border-radius: 10px; background: #eeeee9; }
.portfolio-case .case-carousel .hero-slide[data-fit="contain"] img { padding: 22px 60px; }
.portfolio-case .case-cover figcaption { margin-top: 12px; font-size: .8125rem; line-height: 1.5; }
.portfolio-case .explorer-stage, .portfolio-case .case-explore .explorer-stage { aspect-ratio: 1.7; max-height: min(760px, 72svh); border-radius: 10px; }
.portfolio-case .tour-stage { width: 100%; aspect-ratio: 1.7; max-height: min(760px, 72svh); min-height: 300px; border-radius: 10px; }
.portfolio-case .tour-stage:fullscreen { aspect-ratio: auto; max-height: none; }
.portfolio-case .case-enquiry { margin-top: 38px; padding-block: 26px; gap: 24px; }
.portfolio-case .case-enquiry h2 { font-family: inherit; font-weight: 500; font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.35; letter-spacing: -.025em; }
.portfolio-case .case-enquiry small { display: none; }
.portfolio-case .case-note { margin-block: 14px 46px; padding-top: 18px; gap: 24px; }
.portfolio-case .case-note p:not(.portfolio-kicker) { font-size: .8125rem; line-height: 1.65; max-width: 850px; }
.portfolio-case .model-start p:empty { display: none; }
@media (max-width: 600px) {
  .portfolio-case .case-intro { padding-top: 12px; }
  .portfolio-case .case-heading { padding: 10px 0 18px; gap: 16px; }
  .case-view-nav { margin-bottom: 14px; gap: 26px; }
  .portfolio-case .case-carousel { aspect-ratio: 1.2; max-height: none; }
  .portfolio-case .case-carousel .hero-slide[data-fit="contain"] img { padding: 12px 36px; }
  .portfolio-case .explorer-stage, .portfolio-case .case-explore .explorer-stage { aspect-ratio: .95; max-height: 65svh; }
  .portfolio-case .tour-stage { aspect-ratio: 1; max-height: none; min-height: 320px; }
  .portfolio-case .case-enquiry { flex-direction: row; align-items: center; margin-top: 24px; padding-block: 24px; gap: 18px; }
  .portfolio-case .case-enquiry h2 { max-width: 190px; font-size: 1.125rem; }
  .portfolio-case .case-enquiry .button { white-space: nowrap; }
  .portfolio-case .case-note { margin-bottom: 28px; }
}
