/* Opening scene: "depth sandwich" — BARDIA behind, the figure, YOUSEFI (outline) in front. */
.intro { position: relative; background: #07080a; }
.intro__pin { --fh: 100svh; --fb: -4svh; position: relative; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; background: #060709; }
.intro__plate { position: absolute; inset: -4%; z-index: 0; background: url("../assets/img/bardia-plate.jpg?v=44") center / cover no-repeat; opacity: .95; will-change: translate; }
.intro__plate::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 62% at 50% 44%, transparent 0%, rgba(6,7,9,.55) 62%, #060709 100%); }

.intro__word { position: absolute; left: 0; right: 0; top: 24%; z-index: 1; margin: 0; transform: translateY(-50%); text-align: center; pointer-events: none; white-space: nowrap;
  font-family: var(--sans); font-weight: 880; font-stretch: 100%; font-size: clamp(64px, 26vw, 400px); line-height: .9; letter-spacing: -.035em; text-transform: uppercase; will-change: translate; }
.intro__word .w { display: inline-block; overflow: hidden; padding: .03em .04em 0; will-change: transform; }
.intro__word .c { display: inline-block; will-change: transform; }
.intro__word--back { color: #ece8e1; }
.intro__word--front { z-index: 3; top: 60%; color: transparent; -webkit-text-stroke: 1.5px var(--accent); letter-spacing: -.02em; }
.js .intro:not(.is-fit) .intro__word { visibility: hidden; }

.intro__figure { position: absolute; z-index: 2; left: 50%; bottom: var(--fb); height: var(--fh); aspect-ratio: 2 / 3; margin-left: calc(var(--fh) / -3); pointer-events: none; will-change: transform; }
.intro__figure-in { position: absolute; inset: 0; transform-origin: 50% 32%; animation: introLights 2s .1s cubic-bezier(.3, 0, .1, 1) both; will-change: transform, opacity; }
@keyframes introLights { from { opacity: 0; } to { opacity: 1; } }
.intro__photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover;
  -webkit-mask: url("../assets/img/bardia-matte.webp?v=44") center / 100% 100% no-repeat, linear-gradient(#000 88%, transparent 100%); -webkit-mask-composite: source-in;
  mask: url("../assets/img/bardia-matte.webp?v=44") center / 100% 100% no-repeat, linear-gradient(#000 88%, transparent 100%); mask-composite: intersect; }
.intro__figure canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .7s ease; }
.intro.is-live .intro__figure canvas { opacity: 1; }
.intro.is-live .intro__photo { opacity: 0; transition: opacity .1s .7s; }

.intro__shade { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: linear-gradient(180deg, rgba(6,7,9,.5) 0%, transparent 16%, transparent 62%, rgba(6,7,9,.82) 100%); }
.intro__ui { position: absolute; inset: 0; z-index: 5; pointer-events: none; display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(12px, 2vh, 18px); padding: clamp(84px, 11vh, 120px) var(--g) clamp(22px, 4vh, 40px); }
.intro__tags { display: flex; justify-content: flex-start; gap: 10px 22px; flex-wrap: wrap; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #beb5af; }
.intro__tags span + span::before { content: "/"; margin-inline-end: 22px; color: var(--accent); }
.intro__tags span:first-child::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.intro__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.intro__role { max-width: 24ch; margin: 0; font-size: clamp(16px, 1.5vw, 22px); line-height: 1.35; color: #e4ddd5; text-shadow: 0 2px 24px #000; }
.intro__actions { display: flex; align-items: center; gap: 14px 26px; flex-wrap: wrap; pointer-events: auto; }
.intro__btn { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 24px; background: var(--accent); color: #130c08; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; transition: transform .5s var(--ease), background .3s; }
.intro__btn:hover, .intro__btn:focus-visible { background: #ffb07a; transform: translateY(-2px); }
.intro__ghost { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--accent); color: #ece8e1; }
.intro__scroll { position: absolute; z-index: 5; left: 50%; bottom: clamp(14px, 3vh, 28px); translate: -50% 0; font-size: 10px; letter-spacing: .24em; color: #a79d95; text-transform: uppercase; display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.intro__scroll i { width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); animation: introDrip 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes introDrip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.intro__veil { position: absolute; inset: 0; z-index: 6; background: #07080a; opacity: 0; pointer-events: none; }

@media (max-width: 760px) {
  .intro__pin { --fh: 90svh; --fb: 0svh; }
  .intro__word--front { -webkit-text-stroke-width: 1.2px; }
  .intro__scroll { display: none; }
  .intro__bottom { flex-direction: column; align-items: stretch; gap: 14px; }
  .intro__actions { gap: 10px 18px; }
  .intro__btn { flex: 1; justify-content: center; }
  .intro__shade { background: linear-gradient(180deg, rgba(6,7,9,.55) 0%, transparent 16%, transparent 56%, rgba(6,7,9,.9) 92%); }
}
@media (min-width: 761px) and (max-aspect-ratio: 1/1) { .intro__pin { --fh: 88svh; --fb: 0svh; } }
@media (prefers-reduced-motion: reduce) { .intro__scroll i, .intro__figure-in { animation: none; } }

/* old small hero portrait is redundant */
.cut-room__me { display: none !important; }

/* ============================ Story scenes ============================ */
.story { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: clamp(28px, 5vh, 56px); align-items: end; padding: clamp(90px, 17vh, 210px) var(--g); background: #07080a; }
.story__frame { position: relative; margin: 0; overflow: hidden; background: #0c0d11; }
.story__img { position: absolute; inset: -4% 0; width: 100%; height: 108%; max-width: none; object-fit: cover; will-change: transform; }
.story__soft { position: absolute; inset: -6%; width: 112%; height: 112%; max-width: none; object-fit: cover; filter: blur(22px) saturate(.9); opacity: 0; pointer-events: none; }
.story__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(7,8,10,.28), transparent 30%, transparent 62%, rgba(7,8,10,.55)); }
.story__text { display: grid; gap: clamp(18px, 3vh, 30px); align-content: end; }
.story__title { margin: 0; font: 720 clamp(44px, 5.9vw, 112px)/.9 var(--sans); font-stretch: 72%; letter-spacing: -.02em; text-transform: uppercase; }
.story__title em { text-transform: none; font-size: 1.08em; letter-spacing: -.01em; color: var(--accent); }
.story__l { display: block; overflow: hidden; padding-bottom: .09em; margin-bottom: -.09em; }
.story__l > span { display: block; will-change: transform; }
.story__p { margin: 0; max-width: 40ch; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.55; color: #cfc8c0; }
.story__list { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0; padding: 0; list-style: none; }
.story__list li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; color: #beb5af; }

.story--set .story__frame { grid-column: 1 / span 7; aspect-ratio: 1010 / 985; max-height: 86svh; justify-self: start; width: 100%; }
.story--set .story__text { grid-column: 8 / -1; padding-bottom: 6px; }
.story__marks { position: absolute; inset: clamp(14px, 2.2vw, 30px); z-index: 2; pointer-events: none; color: #ece8e1; font-size: 10px; letter-spacing: .2em;
  background:
    linear-gradient(currentColor, currentColor) left top / 26px 1px, linear-gradient(currentColor, currentColor) left top / 1px 26px,
    linear-gradient(currentColor, currentColor) right top / 26px 1px, linear-gradient(currentColor, currentColor) right top / 1px 26px,
    linear-gradient(currentColor, currentColor) left bottom / 26px 1px, linear-gradient(currentColor, currentColor) left bottom / 1px 26px,
    linear-gradient(currentColor, currentColor) right bottom / 26px 1px, linear-gradient(currentColor, currentColor) right bottom / 1px 26px;
  background-repeat: no-repeat; }
.story__marks span { position: absolute; display: inline-flex; align-items: center; gap: 8px; text-shadow: 0 1px 10px rgba(0,0,0,.7); }
.story__marks span:nth-child(1) { left: 16px; top: 14px; }
.story__marks span:nth-child(1)::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: storyRec 1.6s steps(2, jump-none) infinite; }
.story__marks span:nth-child(2) { right: 16px; top: 14px; }
.story__marks span:nth-child(3) { left: 16px; bottom: 14px; }
.story__marks span:nth-child(4) { right: 16px; bottom: 14px; }
.story__marks i { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; translate: -50% -50%; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; opacity: .7; }
@keyframes storyRec { 50% { opacity: .25; } }

.story--room .story__frame { grid-column: 1 / -1; aspect-ratio: 1536 / 800; max-height: 82svh; }
.story--room .story__text { grid-column: 1 / -1; grid-template-columns: subgrid; align-items: end; }
.story--room .story__text > .scene { grid-column: 1 / -1; }
.story--room .story__title { grid-column: 1 / span 7; }
.story--room .story__p { grid-column: 9 / -1; }
.story__cap { position: absolute; z-index: 2; right: clamp(14px, 2.2vw, 30px); bottom: clamp(12px, 2vw, 24px); margin: 0; font-size: 10px; letter-spacing: .2em; color: #d8d0c8; text-shadow: 0 1px 10px rgba(0,0,0,.7); }

@media (max-width: 900px) {
  .story { padding-block: clamp(70px, 11vh, 120px); }
  .story--set .story__frame, .story--set .story__text, .story--room .story__title, .story--room .story__p { grid-column: 1 / -1; }
  .story--set .story__frame { max-height: none; }
  .story--room .story__frame { aspect-ratio: 4 / 3; }
  .story--room .story__img { object-position: 52% 50%; }
  .story__title { font-size: clamp(44px, 13vw, 96px); }
}
@media (prefers-reduced-motion: reduce) { .story__marks span:nth-child(1)::before { animation: none; } }

/* ============================ Film leader (first visit of a session) ============================ */
.leader { display: none; }
.has-leader .leader { display: block; position: fixed; inset: 0; z-index: 500; pointer-events: none; animation: leaderEnd .01s 2.45s forwards; }
.leader__half { position: absolute; left: 0; right: 0; height: 50.5%; background: #050607; }
.leader__half--a { top: 0; animation: leaderUp .95s 1.42s cubic-bezier(.76, 0, .18, 1) forwards; }
.leader__half--b { bottom: 0; animation: leaderDown .95s 1.42s cubic-bezier(.76, 0, .18, 1) forwards; }
.leader__dial { position: absolute; inset: 0; display: grid; place-items: center; color: #ece8e1; animation: leaderFade .22s 1.3s forwards; }
.leader__ring { position: relative; width: min(44vh, 60vw); aspect-ratio: 1; border: 1px solid rgba(236, 232, 225, .3); border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(rgba(236,232,225,.16), rgba(236,232,225,.16)) center / 140% 1px no-repeat, linear-gradient(rgba(236,232,225,.16), rgba(236,232,225,.16)) center / 1px 140% no-repeat; }
.leader__ring::before { content: ""; position: absolute; inset: 9%; border: 1px solid rgba(236, 232, 225, .16); border-radius: 50%; }
.leader__hand { position: absolute; left: 50%; top: 50%; width: 50%; height: 1px; background: var(--accent); box-shadow: 0 0 14px var(--accent); transform-origin: 0 50%; rotate: -90deg; animation: leaderSpin .44s linear 3; }
.leader__ring b { grid-area: 1 / 1; font: 800 min(26vh, 34vw)/1 var(--sans); font-stretch: 72%; letter-spacing: -.03em; opacity: 0; animation: leaderNum .44s linear both; }
.leader__ring b:nth-of-type(2) { animation-delay: .44s; } .leader__ring b:nth-of-type(3) { animation-delay: .88s; }
.leader__tag { position: absolute; font-size: 10px; letter-spacing: .22em; color: #8d8f98; }
.leader__tag--a { left: var(--g); top: 24px; color: #ece8e1; } .leader__tag--b { right: var(--g); top: 24px; }
.leader__tag--c { left: var(--g); bottom: 24px; } .leader__tag--d { right: var(--g); bottom: 24px; }
@keyframes leaderSpin { to { rotate: 270deg; } }
@keyframes leaderNum { 0%, 99% { opacity: 1; } 100% { opacity: 0; } }
@keyframes leaderFade { to { opacity: 0; } }
@keyframes leaderUp { to { transform: translateY(-101%); } }
@keyframes leaderDown { to { transform: translateY(101%); } }
@keyframes leaderEnd { to { visibility: hidden; } }
.has-leader .intro__figure-in { animation-delay: 1.5s; }

/* ============================ Floating call to action ============================ */
.cta-float { position: fixed; z-index: 90; right: var(--g); bottom: clamp(14px, 3vh, 26px); display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px 0 15px; border: 1px solid rgba(255, 106, 31, .6); border-radius: 999px; background: rgba(10, 10, 12, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #ece8e1; font-size: 11px; letter-spacing: .14em;
  opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .6s var(--ease), transform .8s var(--ease), visibility 0s .6s, background .3s, color .3s; }
.cta-float.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.cta-float i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.cta-float:hover, .cta-float:focus-visible { background: var(--accent); color: #130c08; }
.cta-float:hover i, .cta-float:focus-visible i { background: #130c08; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .cta-float { transition: none; } }

/* ============================ Work index: live still ============================ */
.archive-film__live { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.archive-film__live.is-on { opacity: 1; }
.archive-film__still > span { z-index: 1; }

/* ============================ Final card ============================ */
.endcard { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; text-align: center; padding: 18vh var(--g); background: #07080a; isolation: isolate; }
.endcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../assets/img/bardia-plate.jpg?v=44") center / cover no-repeat; opacity: .55; -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000, transparent 78%); mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000, transparent 78%); }
.endcard__bar { position: absolute; left: 0; right: 0; z-index: 2; height: 11vh; height: 11svh; background: #000; }
.endcard__bar--a { top: 0; transform-origin: 50% 0; border-bottom: 1px solid var(--line); }
.endcard__bar--b { bottom: 0; transform-origin: 50% 100%; border-top: 1px solid var(--line); }
.endcard__in { display: grid; justify-items: center; gap: clamp(14px, 2.6vh, 26px); }
.endcard__in .scene { justify-content: center; }
.endcard__title { margin: 0; font: 880 clamp(130px, 31vw, 500px)/.8 var(--sans); font-stretch: 84%; letter-spacing: -.04em; text-transform: uppercase; will-change: transform; }
.endcard__title i { font-style: normal; color: var(--accent); }
.endcard__title .story__l { padding: .04em .04em .06em; }
.endcard__next { margin: 0; font-size: clamp(26px, 3.4vw, 54px); line-height: 1.1; color: #e4ddd5; }
.endcard__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; margin-top: 8px; }
@media (max-width: 760px) { .endcard__bar { height: 7svh; } .endcard__actions { flex-direction: column; align-items: stretch; width: 100%; } .endcard__actions .intro__btn { flex: none; } .endcard__actions .intro__ghost { justify-content: center; } }
