/* An editorial photographic sequence, scoped away from the homepage. */
#benedi-project-case {
  --bc-space: clamp(22px, 4vw, 80px);
  position: fixed; inset: 0; z-index: 10001; overflow: auto;
  overscroll-behavior: contain; touch-action: pan-y;
  background: var(--benedi-beige); color: var(--benedi-brown-deep);
  font: 400 16px/1.5 var(--font-body);
  scrollbar-width: thin; scrollbar-color: var(--benedi-taupe-light) var(--benedi-beige);
}
#benedi-project-case[hidden], .bc-lightbox:not([open]) { display: none; }
.bc-case *, .bc-case *::before, .bc-case *::after { box-sizing: border-box; }
.bc-case a { color: inherit; text-decoration: none; }
.bc-case button { font: inherit; color: inherit; cursor: pointer; }
.bc-case a:focus-visible, .bc-case button:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }
.bc-case h1:focus { outline: none; }
.bc-header { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 20px; padding: 14px var(--bc-space); min-height: 78px; background: var(--benedi-beige); border-bottom: 1px solid #29170f20; }
.bc-header .bp-brand { width: 125px; justify-self: center; }
.bc-header .bp-close { justify-self: end; }
.bc-back { width: fit-content; min-height: 44px; display: flex; align-items: center; gap: 12px; font-size: 13px; }
.bc-back span:last-child { text-decoration: underline; text-underline-offset: 4px; }
.bc-current { position: absolute; overflow: hidden; width: 1px; height: 1px; clip-path: inset(50%); }
.bc-opening { display: grid; grid-template-columns: 1.12fr 1fr; gap: 5vw; align-items: center; padding: 28px var(--bc-space) 60px; min-height: calc(100svh - 78px); }
.bc-opening-copy { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.bc-eyebrow, .bc-small, .bc-image-note { font-size: 11px; letter-spacing: .07em; }
.bc-eyebrow { text-transform: uppercase; margin: 0 0 22px; }
.bc-title, .bc-chapter h2, .bc-acervo h2, .bc-next-link { font-family: "Bodoni BENEDI", serif; font-weight: 400; font-optical-sizing: none; font-variation-settings: "opsz" 11, "wght" 400; font-synthesis: none; letter-spacing: -.035em; }
.bc-title { font-size: clamp(64px, 8.2vw, 176px); line-height: 1.07; margin: 0 0 36px; }
.bc-title > span { display: block; }
/* Masks preserve the type's descenders and the original line boxes. */
.bc-case .bc-motion-word { display: inline-block; white-space: nowrap; vertical-align: bottom; overflow: hidden; padding-block: .16em .25em; margin-block: -.16em -.25em; }
.bc-case .bc-motion-char { display: inline-block; }
.bc-motion-readable { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bc-photo button { overflow: hidden; }
.bc-photo-shutter { position: absolute; inset: -1px; z-index: 2; background: var(--benedi-beige); pointer-events: none; transform-origin: top left; }
.bc-acervo .bc-photo-shutter { background: var(--benedi-brown-deep); }
.bc-opening-bottom { display: flex; flex-direction: column; gap: 28px; max-width: 310px; }
.bc-opening-bottom p { margin: 0; font-size: clamp(17px, 1.35vw, 22px); line-height: 1.45; text-wrap: pretty; }
.bc-text-link { width: fit-content; min-height: 44px; display: inline-flex; align-items: center; gap: 36px; font-size: 13px; text-decoration: underline !important; text-underline-offset: 5px; }
.bc-opening-photo { width: 100%; max-width: 460px; justify-self: center; }
.bc-photo { margin: 0; min-width: 0; }
.bc-photo button { display: block; position: relative; border: 0; padding: 0; background: var(--benedi-sand); width: 100%; }
.bc-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bc-opening-photo .bc-photo { max-width: min(100%, 42svh); margin: auto; }
.bc-image-note { display: flex; justify-content: space-between; gap: 12px; margin: 16px auto 0; max-width: 42svh; font-size: 10px; text-transform: uppercase; }
.bc-image-note span { color: #6b5346; }
.bc-photo-expand { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; display: grid; place-items: center; background: var(--benedi-beige); color: var(--benedi-brown-deep); font-size: 21px; }
.bc-story { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding: 90px var(--bc-space) 120px; border-top: 1px solid #29170f30; scroll-margin-top: 100px; }
.bc-story-text { max-width: 880px; font-size: clamp(24px, 3vw, 48px); line-height: 1.25; letter-spacing: -.045em; margin: 0 0 30px; text-wrap: pretty; }
.bc-small { margin: 0; letter-spacing: .02em; }
.bc-chapter { padding: 0 var(--bc-space) 130px; }
.bc-chapter-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; }
.bc-chapter h2 { font-size: clamp(50px, 6vw, 100px); line-height: 1.2; margin: 0; }
.bc-chapter-heading p { padding-bottom: 8px; }
.bc-diptych { display: grid; grid-template-columns: 1.05fr .65fr; gap: 12vw; align-items: start; }
.bc-photo-minor { padding-top: 26%; }
.bc-acervo { display: grid; grid-template-columns: .8fr 2fr; align-items: start; gap: 6vw; padding: 100px var(--bc-space); background: var(--benedi-brown-deep); color: var(--benedi-beige); }
.bc-acervo-heading { position: sticky; top: 115px; }
.bc-acervo h2 { font-size: clamp(40px, 4vw, 70px); line-height: 1.1; margin: 0 0 30px; }
.bc-contact-sheet { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.bc-contact-sheet .bc-photo:nth-child(even) { margin-top: 60px; }
.bc-contact-single { grid-template-columns: 1fr; width: 75%; justify-self: end; }
.bc-next { display: grid; grid-template-columns: 1fr 220px; align-items: center; gap: 70px; padding: 120px var(--bc-space) 80px; }
.bc-next-link { display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: clamp(44px, 6vw, 96px); line-height: 1.1; margin-bottom: 35px; }
.bc-next-arrow { font: 400 .6em var(--font-body); }
.bc-next-photo img { display: block; width: 100%; height: auto; }
.bc-next-link span:first-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.bc-curtain-label { width: min(90vw, 1400px); padding: 24px; text-align: center; font: 400 clamp(48px, 9vw, 160px)/1.08 "Bodoni BENEDI", serif; font-optical-sizing: none; font-variation-settings: "opsz" 11, "wght" 400; letter-spacing: -.035em; text-wrap: balance; }
.bc-curtain-label[hidden], .bp-curtain-word[hidden] { display: none !important; }
.bc-photo-open { overflow: hidden !important; }
.bc-lightbox { position: fixed; inset: 0; border: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; padding: 20px var(--bc-space) max(20px,env(safe-area-inset-bottom)); background: var(--benedi-brown-deep); color: var(--benedi-beige); }
.bc-lightbox[open] { display: grid; grid-template-rows: 48px minmax(0,1fr) auto; gap: 12px; }
.bc-lightbox::backdrop { background: var(--benedi-brown-deep); }
.bc-lightbox-header, .bc-lightbox-footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.bc-lightbox-header p, .bc-lightbox-footer p { margin: 0; font-size: 12px; }
.bc-lightbox img { width: 100%; height: 100%; object-fit: contain; min-height: 0; touch-action: pan-y pinch-zoom; }
.bc-lightbox-controls { display: flex; gap: 6px; flex: 0 0 auto; }
.bc-lightbox-controls button { border: 1px solid #f4efe64d; background: transparent; width: 48px; height: 48px; font-size: 24px; }
.bc-lightbox-controls button:disabled { opacity: .3; cursor: default; }
.bc-project-link { display: block; }
.bc-home-project-link { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.bc-home-project-link:focus-visible { outline: 2px solid var(--benedi-beige); outline-offset: -6px; box-shadow: inset 0 0 0 8px var(--benedi-brown-deep); }
.bc-project-link .bp-caption::after { content: 'Ver case ↗'; font-size: 10px; white-space: nowrap; }
@media (hover:hover) and (pointer:fine) {
  .bc-project-link:hover .bp-caption span { text-decoration: underline; text-underline-offset: 4px; }
  .bc-photo button:hover .bc-photo-expand { background: var(--benedi-brown-deep); color: var(--benedi-beige); }
}
@media (max-width:1023px) {
  .bc-title { font-size: clamp(54px,8.2vw,100px); }
  .bc-diptych { gap: 7vw; }
  .bc-acervo { grid-template-columns: 1fr 2fr; gap: 28px; }
  .bc-next { grid-template-columns: 1fr 160px; gap: 30px; }
}
@media (max-width:767px) {
  #benedi-project-case { touch-action: pan-y pinch-zoom; }
  .bc-header { grid-template-columns: 1fr 1fr auto; min-height: calc(68px + env(safe-area-inset-top)); padding: max(12px,env(safe-area-inset-top)) var(--bc-space) 10px; gap: 12px; }
  .bc-header .bp-brand { width: 96px; min-height: 44px; display: flex; align-items: center; }
  .bc-case a, .bc-case button { touch-action: manipulation; -webkit-tap-highlight-color: #29170f24; }
  .bc-lightbox { touch-action: pan-y pinch-zoom; }
  .bc-lightbox-controls { gap: 8px; }
  .bc-back { font-size: 12px; gap: 6px; }
  .bc-opening { display: flex; flex-direction: column; gap: 32px; min-height: auto; padding-top: 34px; padding-bottom: 54px; }
  .bc-opening-copy { width: 100%; }
  .bc-eyebrow { font-size: 10px; margin-bottom: 18px; }
  .bc-title { font-size: clamp(52px,15vw,110px); line-height: 1.1; margin-bottom: 20px; }
  .bc-opening-bottom { max-width: none; gap: 12px; }
  .bc-opening-bottom p { font-size: 17px; max-width: 290px; }
  .bc-opening-photo { max-width: 84%; }
  .bc-opening-photo .bc-photo, .bc-image-note { max-width: none; }
  .bc-image-note { font-size: 9px; }
  .bc-story { display: block; padding-top: 52px; padding-bottom: 72px; }
  .bc-story-text { font-size: 27px; margin-bottom: 20px; }
  .bc-chapter { padding-bottom: 64px; }
  .bc-chapter-heading { display: block; margin-bottom: 26px; }
  .bc-chapter h2 { font-size: 48px; margin-bottom: 12px; }
  .bc-diptych { display: flex; flex-direction: column; gap: 36px; }
  .bc-photo-major { width: 90%; }
  .bc-photo-minor { width: 70%; align-self: end; padding-top: 0; }
  .bc-acervo { display: block; padding-top: 56px; padding-bottom: 56px; }
  .bc-acervo-heading { position: static; margin-bottom: 32px; }
  .bc-acervo h2 { font-size: 48px; margin-bottom: 16px; }
  .bc-contact-sheet { gap: 18px; }
  .bc-contact-sheet .bc-photo:nth-child(even) { margin-top: 30px; }
  .bc-contact-single { width: 100%; }
  .bc-next { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 60px; gap: 28px; }
  .bc-next-link { font-size: 45px; margin-bottom: 24px; }
  .bc-next-photo { width: 42%; justify-self: end; }
  .bc-curtain-label { font-size: clamp(44px,13vw,100px); padding: 12px; }
  .bc-lightbox { padding-top: max(12px,env(safe-area-inset-top)); }
  .bc-lightbox-footer { align-items: start; }
  .bc-lightbox-footer p { font-size: 11px; }
}
@media (prefers-reduced-motion:reduce) { .bc-case *, .bc-curtain-label { scroll-behavior: auto !important; } }
