/* Isolated prototype styles; loaded only by project-lightbox-prototype.html. */
#work .project[data-open-project] .project-body::after { content: 'Explore project ↗'; }
.project-lightbox {
  --case-ink: #242520;
  --case-paper: #f6f5f0;
  box-sizing: border-box;
  width: min(1440px, calc(100vw - 48px));
  max-width: none;
  height: calc(100dvh - 48px);
  max-height: none;
  padding: 0;
  border: 1px solid #ffffff40;
  border-radius: 28px;
  background: var(--case-paper);
  color: var(--case-ink);
  overflow: hidden;
  box-shadow: 0 30px 100px #0006;
}
.project-lightbox::backdrop { background: #171913b8; backdrop-filter: blur(9px); }
.project-lightbox[open] { animation: case-enter .3s ease-out; }
.case-scroll { height: 100%; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #bbb9ad transparent; }
.case-toolbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 36px; background: #f6f5f0f2; backdrop-filter: blur(16px); border-bottom: 1px solid #24252015; }
.case-wordmark { font-size: 11px; letter-spacing: 1.8px; font-weight: 600; }
.case-wordmark span { color: #77786c; font-weight: 400; }
.case-close { display: inline-flex; align-items: center; gap: 18px; border: 1px solid #24252040; border-radius: 99px; padding: 10px 17px; background: transparent; color: var(--case-ink); font: 12px 'DM Sans',sans-serif; cursor: pointer; transition: background .2s, color .2s; }
.case-close:hover { background: var(--case-ink); color: var(--case-paper); }
.case-content { padding: 0 36px; }
.case-intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; padding: 46px 0 36px; align-items: end; }
.project-lightbox .case-kicker { font-size: 10px; letter-spacing: 1.7px; line-height: 1.5; margin: 0 0 18px; color: #727465; }
.project-lightbox h2 { font-family: 'DM Sans',sans-serif; font-weight: 400; font-size: clamp(38px,5.5vw,78px); line-height: 1.05; letter-spacing: -.065em; margin: 0; }
.case-title-dot { color: #9d9e78; }
.project-lightbox .case-subtitle { font-size: clamp(18px,2vw,25px); line-height: 1.35; letter-spacing: -.7px; margin: 18px 0 0; color: #727465; }
.case-intro-side { max-width: 360px; justify-self: end; }
.case-intro-side p { font-size: 14px; line-height: 1.75; margin: 0 0 22px; color: #727465; }
.case-visit { display: inline-flex; align-items: center; justify-content: space-between; gap: 36px; background: #f3d74b; color: #242520; border: 1px solid transparent; border-radius: 99px; padding: 14px 23px; font-size: 13px; text-decoration: none; transition: background .2s, transform .2s; }
.case-visit:hover { background: #e6c633; transform: translateY(-2px); }
.case-visit span[aria-hidden] { transition: transform .2s; }
.case-visit:hover span[aria-hidden] { transform: translate(2px,-2px); }
.project-lightbox :focus-visible { outline: 2px solid #6d6c32; outline-offset: 4px; }
.project-lightbox figure { margin: 0; }
.case-hero { overflow: hidden; border-radius: 19px; background: #20211e; }
.case-hero img { display: block; width: 100%; height: auto; aspect-ratio: 1440/1000; object-fit: contain; }
.case-hero figcaption { display: flex; justify-content: space-between; gap: 16px; padding: 15px 22px; color: #d9d9ce; font-size: 9px; letter-spacing: 1.4px; }
.case-story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 72px 0; }
.project-lightbox h3 { font-family: 'DM Sans',sans-serif; font-weight: 400; font-size: clamp(28px,4vw,50px); line-height: 1.12; letter-spacing: -.055em; margin: 0; }
.case-story-copy > p { margin: 0 0 18px; font-size: 15px; line-height: 1.8; color: #727465; }
.case-services { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 8px 0 0; margin: 0; }
.case-services li { font-size: 10px; padding: 9px 13px; border: 1px solid #24252026; border-radius: 99px; }
.case-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.case-boutique { padding-top: 0; }
.case-image-frame { border-radius: 18px; overflow: hidden; background: #e8e5dc; }
.case-gallery img { display: block; width: 100%; height: auto; }
.case-gallery figcaption { padding-top: 18px; }
.case-gallery figcaption span { font-size: 9px; letter-spacing: 1.4px; color: #727465; }
.case-gallery figcaption p { font-size: 19px; line-height: 1.4; letter-spacing: -.5px; margin: 8px 0 0; }
.case-footer { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 50px; margin: 65px 0 36px; background: #eae9df; border-radius: 20px; }
@keyframes case-enter { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .project-lightbox { width: calc(100vw - 20px); height: calc(100dvh - 20px); border-radius: 22px; }
  .case-toolbar { padding: 13px 18px; }
  .case-wordmark { font-size: 9px; letter-spacing: 1.1px; }
  .case-wordmark span { display: none; }
  .case-close { padding: 10px 13px; gap: 12px; }
  .case-content { padding: 0 18px; }
  .case-intro { grid-template-columns: 1fr; gap: 23px; padding: 30px 0; }
  .project-lightbox h2 { font-size: clamp(36px,9.5vw,65px); }
  .case-intro-side { max-width: none; justify-self: stretch; }
  .case-intro-side p { margin-bottom: 18px; }
  .project-lightbox .case-subtitle { font-size: 20px; }
  .case-hero { border-radius: 12px; }
  .case-hero figcaption { padding: 12px; font-size: 8px; letter-spacing: .6px; }
  .case-hero figcaption span:last-child { display: none; }
  .case-story { grid-template-columns: 1fr; padding: 40px 0; gap: 22px; }
  .case-gallery { grid-template-columns: 1fr; gap: 30px; }
  .case-boutique { padding-top: 0; }
  .case-footer { flex-direction: column; align-items: start; padding: 28px 22px; margin: 40px 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-lightbox[open] { animation: none; }
  .project-lightbox *, .project-lightbox *::before, .project-lightbox *::after { transition: none !important; }
}
/* Neutralize homepage's global header rules inside the case study. */
.project-lightbox .case-intro { position: static; z-index: auto; width: auto; background: transparent; color: var(--case-ink); }
.project-lightbox .case-footer { color: var(--case-ink); }
.project-lightbox h3 { font-style: normal; }

/* Preserve the full, wider collection capture within the aligned gallery frame. */
.case-collection .case-image-frame { aspect-ratio: 1440 / 1000; background: #000; display: grid; place-items: center; }
.case-collection .case-image-frame img { width: 100%; height: 100%; object-fit: contain; }

/* Existing second-slide capture retains its original wide composition. */
#agabekov-project .case-hero img { aspect-ratio: 1280 / 720; }

#primis-project .case-hero img { aspect-ratio: 1280 / 720; }

.project-lightbox .case-gallery-note { font-size: 14px; line-height: 1.75; letter-spacing: 0; color: #727465; margin-top: 14px; max-width: 480px; }
.case-detail-link { display: inline-flex; gap: 18px; align-items: center; margin-top: 16px; padding-bottom: 6px; border-bottom: 1px solid #24252050; font-size: 12px; transition: border-color .2s; }
.case-detail-link:hover { border-color: #b79a13; }

/* Give the industry archive button more separation from the final client card. */
#clients > .clients-cta { margin-top: 76px; }

#sipc-project .case-hero img { aspect-ratio: 1280 / 720; }
#sipc-project #sipc-title { font-size: clamp(34px, 4vw, 58px); }
@media (max-width: 760px) { #sipc-project #sipc-title { font-size: clamp(30px, 8.3vw, 48px); } }


/* Studio introduction: one clear photograph, with a quiet paper layer behind. */
.studio-portrait {
  position: relative;
  isolation: isolate;
  min-width: 0;
  margin: 0 4px 0 8px;
}
.studio-portrait::before {
  content: '';
  position: absolute;
  inset: 12px 3px -12px -10px;
  background: #eae8df;
  border: 1px solid #deddd3;
  border-radius: 25px;
  transform: rotate(-3deg);
  z-index: -1;
}
.studio-photo-frame {
  margin: 0;
  padding: 10px 10px 0;
  border: 1px solid #e7e6df;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 45px #2425200d;
}
.studio-photo-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
}
.studio-photo-frame figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 8px;
  color: #7c7d72;
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: .2px;
}
.studio-photo-label { display: inline-flex; align-items: center; gap: 8px; color: #36382e; }
.studio-photo-label i { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: #d9bc2f; }
@media (max-width: 760px) {
  .studio-portrait { margin: 0 4px 8px 8px; }
  .studio-photo-frame { padding: 7px 7px 0; border-radius: 20px; }
  .studio-photo-frame img { border-radius: 13px; }
  .studio-photo-frame figcaption { padding: 14px 5px; font-size: 8px; gap: 10px; }
  .studio-portrait::before { border-radius: 21px; inset: 10px 3px -8px -7px; transform: rotate(-2.5deg); }
}

/* About: restore the studio's founding/experience message over the photograph. */
#about .studio-photo-image { position: relative; overflow: hidden; border-radius: 16px; }
#about .studio-photo-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 10%, #11170f1a 28%, #11170fbd 100%); pointer-events: none; }
#about .studio-photo-overlay { position: absolute; z-index: 1; left: 28px; right: 24px; bottom: 28px; color: #fff; text-shadow: 0 1px 12px #0002; }
#about .studio-photo-overlay small { display: block; font-size: 9px; line-height: 1.6; text-transform: uppercase; letter-spacing: 1.2px; }
#about .studio-photo-overlay strong { display: block; margin: 14px 0 18px; font-family: 'DM Sans', Arial, sans-serif; font-size: clamp(48px, 5.5vw, 80px); font-weight: 400; line-height: 1; letter-spacing: -.065em; }
@media (max-width: 760px) {
  #about .studio-photo-image { border-radius: 13px; }
  #about .studio-photo-overlay { left: 20px; right: 16px; bottom: 20px; }
  #about .studio-photo-overlay small { font-size: 8px; letter-spacing: .8px; }
  #about .studio-photo-overlay strong { font-size: clamp(46px, 14vw, 68px); margin: 11px 0 15px; }
}

/* Compact Video Studio invitation, with a prominent play control. */
.video-float { padding: 9px 20px 9px 9px; gap: 13px; background: #f3d74b; border-color: #dec43e; box-shadow: 0 7px 25px #171e1926, 0 1px 3px #171e1914; }
.video-float-icon { position: relative; width: 44px; height: 44px; border-radius: 50%; background: #25281f; color: #f3d74b; transition: transform .25s, box-shadow .25s; }
.video-float-icon svg { width: 22px; height: 22px; margin-left: 2px; }
.video-float-copy { gap: 3px; }
.video-float-kicker { text-transform: uppercase; font-size: 8px; line-height: 1.3; letter-spacing: 1.4px; color: #56502a; }
.video-float-label { font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: -.4px; white-space: nowrap; }
.video-float-arrow { font-size: 20px; margin-left: 9px; transition: transform .25s; }
.video-float:hover { background: #ffe363; box-shadow: 0 12px 30px #171e1930; }
.video-float:hover .video-float-icon { transform: scale(1.04); box-shadow: 0 0 0 4px #25281f12; }
.video-float:hover .video-float-arrow { transform: translate(2px, -2px); }
@media (max-width: 760px) {
  .video-float { padding: 7px 16px 7px 7px; gap: 11px; }
  .video-float-icon { width: 40px; height: 40px; }
  .video-float-kicker { font-size: 7px; letter-spacing: 1.2px; }
  .video-float-label { font-size: 13px; }
  .video-float-arrow { font-size: 18px; margin-left: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .video-float, .video-float-icon, .video-float-arrow { transition: none; }
  .video-float:hover, .video-float:hover .video-float-icon, .video-float:hover .video-float-arrow { transform: none; }
}

/* Keep the longer invitation compact and readable. */
.video-float-kicker { text-transform: none; font-size: 9px; letter-spacing: .1px; white-space: nowrap; }
@media (max-width: 760px) { .video-float-kicker { font-size: 8px; letter-spacing: 0; } }

/* French prototype uses the same layout with localized project actions. */
html[lang="fr"] #work .project[data-open-project] .project-body::after { content: 'Découvrir le projet ↗'; }

/* Prevent Safari input-focus zoom while preserving pinch-to-zoom accessibility. */
@media (max-width: 760px) {
  .client-archive .archive-search input, .client-archive .archive-controls select { font-size: 16px; }
  .client-archive .archive-controls > label:not(.archive-search) { flex: 1 1 0; min-width: 0; }
  .client-archive .archive-controls select { width: 100%; min-width: 0; height: 44px; padding: 0 8px; }
}
