/* LISB promo story section + lightbox. Live site CSS, Nov 16, 2026. */
.sec.s-story{background:#141210;color:var(--ivory,#f4f0e8)}
.sec.s-story .lead,.sec.s-story p{color:#c9c2b6}
body.pg-index .s-story + #work{padding-top:clamp(64px,8vw,120px)}

.lisb-story-stage{margin:0}
.lisb-story-open{
  position:relative;display:block;width:100%;padding:0;border:0;cursor:pointer;
  aspect-ratio:16/9;overflow:hidden;border-radius:22px;
  background:#0f0e0d;color:inherit;
  border:1px solid rgba(201,162,75,.28);
  box-shadow:0 40px 80px -40px rgba(0,0,0,.85);
  -webkit-tap-highlight-color:transparent;
}
.lisb-story-open:focus-visible{outline:2px solid #c9a24b;outline-offset:4px}
.lisb-story-poster,.lisb-story-teaser{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;
}
.lisb-story-poster{z-index:0}
.lisb-story-teaser{z-index:1}
.lisb-story-open.is-poster-only .lisb-story-teaser{visibility:hidden}
/* Nov 17, 2026: first-play fade only. After the teaser is ready, never re-show the poster layer. */
@media (prefers-reduced-motion: no-preference) {
  .lisb-story-teaser { opacity: 0; }
  .lisb-story-open.is-teaser-ready .lisb-story-teaser {
    opacity: 1;
    transition: opacity 0.35s ease;
  }
}
.lisb-story-open.is-teaser-ready .lisb-story-poster { visibility: hidden; }

.lisb-story-play{
  position:absolute;z-index:2;left:50%;top:50%;transform:translate(-50%,-50%);
  width:84px;height:84px;border-radius:50%;
  display:grid;place-items:center;
  background:#c9a24b;color:#141210;
  box-shadow:0 0 0 8px rgba(201,162,75,.22),0 16px 40px -12px rgba(0,0,0,.7);
  transition:transform .35s cubic-bezier(.2,.7,.1,1),box-shadow .35s ease,background-color .25s ease;
}
.lisb-story-play svg{width:28px;height:28px;margin-left:3px;display:block}
.lisb-story-open:hover .lisb-story-play,
.lisb-story-open:focus-visible .lisb-story-play{
  transform:translate(-50%,-50%) scale(1.06);
  background:#e2c27a;
  box-shadow:0 0 0 10px rgba(201,162,75,.28),0 18px 44px -10px rgba(0,0,0,.75);
}
@media (prefers-reduced-motion: reduce){
  .lisb-story-play{transition:none}
  .lisb-story-open:hover .lisb-story-play,
  .lisb-story-open:focus-visible .lisb-story-play{transform:translate(-50%,-50%)}
}

.lisb-story-meta{
  position:absolute;z-index:2;left:16px;bottom:16px;
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 12px;border-radius:999px;
  background:rgba(20,18,16,.72);color:#f2e8d4;
  border:1px solid rgba(232,200,128,.35);
  font:600 12px/1 "Inter",ui-sans-serif,system-ui,sans-serif;
  letter-spacing:.1em;text-transform:uppercase;
  backdrop-filter:blur(8px);
}
@media (min-width:700px){
  .lisb-story-meta{left:22px;bottom:22px;padding:9px 14px;font-size:12.5px}
  .lisb-story-play{width:96px;height:96px}
  .lisb-story-play svg{width:32px;height:32px;margin-left:4px}
}

.lisb-story-lightbox[hidden]{display:none}
.lisb-story-lightbox{
  position:fixed;inset:0;z-index:2147483600;
  display:flex;align-items:center;justify-content:center;
  padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));
}
.lisb-story-backdrop{position:absolute;inset:0;background:rgba(15,14,13,.9);border:0;padding:0;cursor:pointer}
.lisb-story-panel{
  position:relative;z-index:1;width:min(1120px,100%);
  background:#0f0e0d;border-radius:18px;overflow:hidden;
  border:1px solid rgba(201,162,75,.3);
  box-shadow:0 40px 100px -20px rgba(0,0,0,.8);
}
.lisb-story-dialog-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.lisb-story-close{
  position:absolute;top:8px;right:8px;z-index:2;
  width:44px;height:44px;border:0;border-radius:50%;cursor:pointer;
  background:rgba(20,18,16,.82);color:#f4f0e8;
  display:grid;place-items:center;
  box-shadow:0 0 0 1px rgba(232,200,128,.35);
  -webkit-tap-highlight-color:transparent;
}
.lisb-story-close:focus-visible{outline:2px solid #c9a24b;outline-offset:2px}
.lisb-story-close:hover{background:#141210;color:#e2c27a}
.lisb-story-close svg{width:18px;height:18px;display:block}
.lisb-story-panel video{display:block;width:100%;height:auto;vertical-align:middle;background:#0f0e0d;aspect-ratio:16/9}

body.lisb-story-open-lock{overflow:hidden}

@media (max-width:700px){
  .lisb-story-open{border-radius:16px}
  .lisb-story-play{width:72px;height:72px}
  .lisb-story-play svg{width:24px;height:24px}
  .lisb-story-panel{border-radius:12px}
}

/* How it works page: the live header is dark type for a cream page. Leave a
   header-height band of the page background so it stays readable, and start
   the dark film section below it. */
body.pg-how main{padding-top:78px}

/* Nov 16, 2026: desktop only. Shrink the teaser so the eyebrow, heading,
   subline, and full 16:9 frame fit in one viewport, including the 78px
   fixed header and the section's own padding. Applies to the homepage
   and the How page #story section. Mobile (max-width: 900px) is unchanged. */
@media (min-width: 901px) {
  body.pg-index #story .lisb-story-stage,
  body.pg-how #story .lisb-story-stage {
    --lisb-story-chrome: calc(
      78px
      + clamp(64px, 8vw, 120px)
      + 10rem
      + clamp(40px, 5vw, 64px)
      + 16px
    );
    width: min(100%, calc((100vh - var(--lisb-story-chrome)) * 16 / 9));
    margin-inline: auto;
  }
}
