/* The last project card opens to the width of the story as it reaches the top. */
body:has(#journey) #work{padding-bottom:0;--gutter:6vw}
.flowGrid:has(.portal){row-gap:clamp(24px,4vw,58px)}
.flowGrid>.card.portal{grid-column:1/-1;position:relative;z-index:2;overflow:visible;margin:0;padding:0;border:0;background:#111310;transform:none;border-radius:0;isolation:auto;box-shadow:none}
.flowGrid>.portal:before{content:'';position:absolute;inset:0 calc(-1 * var(--gutter));background:#111310;z-index:-1}
.portalPanel{--open:1;min-height:clamp(450px,75svh,810px);display:flex;align-items:end;position:relative;isolation:isolate;overflow:hidden;margin-inline:calc(-1 * var(--gutter));padding:clamp(26px,5vw,84px) 7%;color:#fff3da;background:#221a13}
.portalPanel:before{content:'';position:absolute;inset:0;z-index:-2;background:linear-gradient(0deg,#0b0b09ec,transparent 78%),linear-gradient(90deg,#15130d88,transparent 80%),url(/equ-life/media/lantern.webp) center 54%/cover;transform:scale(calc(1.09 - var(--open)*.09))}
.portalCopy{max-width:65%;position:relative;z-index:1}
.portalCopy .eyebrow,.chapters,.permalink{font:12px/1.6 ui-monospace,monospace}.portalCopy .eyebrow{color:#f6dec2}
#work .portalCopy h2{font:700 clamp(50px,7.4vw,120px)/.99 StudioDisplay,Arial,sans-serif;text-transform:uppercase;letter-spacing:-.035em;margin:14px 0}
#work .portalCopy i{font:inherit;color:#ffc89e}.portalCopy p{max-width:440px;color:#eee7d9;line-height:1.55}
.portalCopy .action{display:inline-flex;gap:12px;align-items:center;padding:10px 16px;margin-top:16px;border-radius:14px;background:#f3dfb8;color:#2d261b;min-height:44px;font-size:14px}
.portal .workPreview{inset-inline-end:8%;height:min(60%,350px);top:12%;width:auto;transform:translateY(calc(var(--open)*-8px)) rotate(calc(4deg - var(--open)*4deg));opacity:calc(1 - var(--open)*.72)}
#journey{position:relative;background:#141610;color:#f6f2e9;isolation:isolate}
#journey .chapters{display:flex;position:sticky;inset:68px 0 auto;transform:none;z-index:4;gap:clamp(8px,3vw,50px);justify-content:center;border-block:1px solid #535247;background:#191b17f5}
#journey .chapters a{display:flex;align-items:center;min-height:44px;color:#c6c4b6;padding:5px 9px;border-bottom:2px solid transparent}
#journey .chapters a[aria-current]{color:#f9c594;border-bottom-color:currentColor}
#journey section[id]{scroll-margin-top:50px}
#journey h2{font:700 clamp(48px,5.8vw,96px)/1 StudioDisplay,Arial,sans-serif;text-transform:uppercase}
#journey h2 i{font:inherit}#journey .note{letter-spacing:0}
#journey figure{position:relative;height:auto;margin:0}
#journey .webshot{display:block}#journey figure img{position:static;inset:auto;animation:none;filter:none;transform:none;object-fit:contain;height:auto}
#journey .device figcaption{position:static;display:block}
#journey .device.arrived img{object-fit:cover}
#journey .playlist small{margin-left:0;margin-inline-start:auto}
#journey dialog:not([open]){display:none}#journey dialog[open]{position:fixed;inset:0;margin:auto;max-width:96vw}
#journey .permalink{display:inline-flex;align-items:center;margin-top:14px;min-height:44px;text-decoration:underline;color:#dfd9cc}
#journey .booking .stepbar button{color:#272921}#journey .booking .stepbar [aria-pressed=true]{color:white}
#journey .booking .stepbar{background:#e5ded2}
:lang(ar) #work .portalCopy h2,:lang(ar) #journey h2{font-family:StudioArabic,Arial,sans-serif;line-height:1.3;letter-spacing:0}
:lang(ar) .portalCopy .eyebrow,:lang(ar) #journey :is(.eyebrow,.note,figcaption,.chapters,.permalink){font-family:StudioArabic,Arial,sans-serif;letter-spacing:0}
:lang(ar) #journey #gateText{border-left:0;border-inline-start:2px solid #d7b57b;padding-left:0;padding-inline-start:15px}
@media(min-width:1540px){body:has(#journey) #work{--gutter:92.4px}}
@media(max-width:720px){
 #journey .chapters{top:60px;gap:4px}
 #journey .chapters a{font-size:12px;padding-inline:8px}
 .portalPanel{min-height:clamp(460px,76svh,650px);padding:26px 7%}
 .portalCopy{max-width:100%}.portalCopy p{font-size:14px;max-width:85%}.portal .workPreview{height:29%;top:6%;inset-inline-end:8%}
 #journey h2{font-size:clamp(40px,10vw,62px)}
}
@media(prefers-reduced-motion:no-preference){
 .continuous .portalPanel{clip-path:inset(0 calc((1 - var(--open)) * var(--gutter)) 0 round calc((1 - var(--open)) * 20px))}
 .continuous .scrollVisual{translate:0 calc((1 - var(--reveal,1))*20px);opacity:calc(.68 + var(--reveal,1)*.32)}
 .continuous .forgeRun .intro{translate:0 calc(var(--phase,0)*-12px)}
 .continuous .inFrame{animation:none}
}
#journey .filteredTitle{padding:48px 7% 22px}
#work:has(.portal) + #journey .filteredTitle{display:none}
body:has(#journey) #work:not(:has(.portal)){padding-bottom:36px}
