/* STUDIOFENCE Phase 5 / LIGHT BRIDGE: transition is a new scene, not an embedded Work page. */
.sf-light-bridge {
  --sf-lb-wash: 0;
  --sf-lb-reveal: 0;
  position: relative;
  isolation: isolate;
  z-index: 2;
  width: 100vw;
  height: 190svh;
  min-height: 1030px;
  margin: -46svh 0 0 calc(50% - 50vw);
  padding: 0;
}
.sf-light-bridge__stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  min-height: 500px;
  overflow: hidden;
  isolation: isolate;
}
.sf-light-bridge__light {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(150deg, #f7f4eeeb 0%, #f7f4ee 63%, #f7f4ee 100%);
  opacity: var(--sf-lb-wash);
  pointer-events: none;
  will-change: opacity;
}
.sf-light-bridge__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: clamp(56px, 8vh, 100px) clamp(30px, 7vw, 115px);
  opacity: var(--sf-lb-reveal);
  transform: translate3d(0, calc((1 - var(--sf-lb-reveal))*30px), 0);
  text-decoration: none;
  color: #222521;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  pointer-events: none;
}
.sf-light-bridge__link:hover { opacity: var(--sf-lb-reveal); }
.sf-light-bridge__link:focus-visible { outline: 2px solid #4d5651; outline-offset: -10px; }
.sf-light-bridge__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(34px, 7vw, 130px);
  width: 100%;
  max-width: 1190px;
}
.sf-light-bridge__copy { min-width: 0; }
.sf-light-bridge__overline {
  margin: 0 0 clamp(25px, 5vw, 56px);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .10em;
  color: #62685f;
}
.sf-light-bridge__title {
  margin: 0;
  font-family: inherit;
  font-size: clamp(78px, 10.2vw, 154px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.084em;
  color: #262923;
}
.sf-light-bridge__statement {
  max-width: 330px;
  margin: clamp(20px, 3vw, 39px) 0 0;
  color: #60645e;
  font-size: clamp(.875rem, 1vw, 1rem);
  letter-spacing: .035em;
  line-height: 2.1;
}
.sf-light-bridge__folio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: min(100%, 370px);
  margin-top: clamp(27px, 4vw, 49px);
  padding: 16px 0 0;
  border-top: 1px solid #bfc3bc;
  font-size: .75rem;
  font-weight: 450;
  line-height: 1.6;
  letter-spacing: .06em;
  color: #3e443d;
}
.sf-light-bridge__arrow { font-size: 23px; font-weight: 300; line-height: .5; }
.sf-light-bridge__photo {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  margin: 0;
}
.sf-light-bridge__photo img {
  display: block;
  width: 100%;
  max-height: min(62svh, 640px);
  height: auto;
  object-fit: contain;
  filter: none !important;
  transform: none !important;
  opacity: 1 !important;
}
.sf-light-bridge.is-ready .sf-light-bridge__link { pointer-events: auto; }
/* A pure white cut between two distinct documents avoids visible header/layout jump. */
html.sf-light-bridge-leaving::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  background: #f8f8f6;
  pointer-events: auto;
  animation: sf-light-bridge-exit .42s cubic-bezier(.25,.1,.25,1) both;
}
@keyframes sf-light-bridge-exit { from { opacity: 0; } to { opacity: 1; } }
/* Existing tablet/mobile overflow-x:hidden created a scroll container and disabled sticky. */
@media (max-width: 860px) {
  html.sf-top-work-page, html.sf-top-work-page body {
    overflow-x: clip !important;
    overflow-y: visible !important;
  }
}
@media (max-width: 760px) {
  .sf-light-bridge {
    height: 174svh;
    min-height: 1000px;
    margin-top: -33svh;
  }
  .sf-light-bridge__stage { min-height: 430px; }
  .sf-light-bridge__link {
    padding: 72px clamp(20px, 6vw, 40px) 58px;
  }
  .sf-light-bridge__grid {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    gap: clamp(20px, 3vh, 35px);
    max-width: 460px;
  }
  .sf-light-bridge__photo { width: 100%; max-width: 390px; }
  .sf-light-bridge__photo img {
    width: 100%;
    max-height: 34svh;
    object-fit: contain;
  }
  .sf-light-bridge__copy { width: 100%; }
  .sf-light-bridge__overline { font-size: .75rem; margin-bottom: 12px; }
  .sf-light-bridge__title { font-size: clamp(64px, 17vw, 93px); }
  .sf-light-bridge__statement { margin-top: 13px; font-size: .875rem; line-height: 1.8; }
  .sf-light-bridge__folio { margin-top: 16px; padding-top: 10px; font-size: .75rem; }
}
@media (max-width:760px) and (max-height:720px) {
  .sf-light-bridge__link { padding-top: 44px; padding-bottom: 30px; }
  .sf-light-bridge__photo img { max-height: 28svh; }
  .sf-light-bridge__grid { gap: 13px; }
  .sf-light-bridge__title { font-size: clamp(59px, 16vw, 78px); }
  .sf-light-bridge__statement { margin-top: 8px; }
  .sf-light-bridge__folio { margin-top: 9px; }
}
/* No-JavaScript fallback: the link remains visible and functional. */
html:not(.sf-light-bridge-js) .sf-light-bridge {
  --sf-lb-wash: 1;
  --sf-lb-reveal: 1;
}
html:not(.sf-light-bridge-js) .sf-light-bridge__link { pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
  .sf-light-bridge { height: auto; min-height: 0; margin-top: 0; }
  .sf-light-bridge__stage { position: relative; height: auto; min-height: 0; }
  .sf-light-bridge__light { opacity: 1 !important; }
  .sf-light-bridge__link {
    position: relative;
    min-height: 75svh;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
  html.sf-light-bridge-leaving::after { animation: none; opacity: 1; }
}

/* The sticky scene retains its original travel when content fits. An
   intrinsically taller scene can scroll to reveal all enlarged text. */
@media(prefers-reduced-motion:no-preference){
 .sf-light-bridge{height:auto;min-height:max(190svh,1030px);}
 .sf-light-bridge__stage{height:auto;min-height:max(100svh,500px);}
 .sf-light-bridge__link{position:relative;min-height:inherit;box-sizing:border-box;}
 @media(max-width:760px){
  .sf-light-bridge{min-height:max(174svh,1000px);}
  .sf-light-bridge__stage{min-height:max(100svh,430px);}
 }
}
