.works-page { background:white; overflow-x:clip; }
.works-page .site-shell { background:white; }
.works-page .site-header.home-nav nav { position:absolute; margin:0; }
.works-hero { height:560px; background:#0b0929; color:#f7f9fe; }
.works-hero-art { position:absolute; inset:0; z-index:-1; overflow:hidden; }
.works-hero-art img { position:absolute; width:max(1920px,100%); height:auto; left:50%; top:0; translate:-50% 0; }
.works-hero-copy { padding-top:184px; display:grid; justify-items:center; text-align:center; gap:24px; }
.works-hero h1 { color:#f7f9fe; }
.works-hero-description, .works-hero .interior-hero-description { color:#c8c5df; }
.works-hero-art::after { content:""; position:absolute; inset:auto 0 0; height:244px; background:linear-gradient(transparent,#000); }
.works-pill { border-radius:20px; background:#1c1833; color:#907ae9; padding:8px 24px; min-height:40px; font:500 16px/24px var(--font-ui); }
.works-heading { text-align:center; }
.works-heading>p { font:500 12px/20px var(--font-ui); color:#4740b5; }
.works-heading h2 { font-size:48px; line-height:56px; font-weight:500; margin-top:32px; }
.works-films { position:relative; isolation:isolate; overflow:hidden; min-height:1440px; background:#000; color:#f7f9fe; padding:96px 0 64px; }
.works-films .works-heading>p { color:#907ae9; }
.film-marquee { position:absolute; z-index:-1; left:50%; top:629px; translate:-50%; white-space:nowrap; color:#ffffff1a; font:500 128px/128px var(--font-ui); letter-spacing:-.04em; }
.film-player { width:min(1512px,88%); aspect-ratio:16/9; margin:84px auto 0; background:#080808; }
.film-player video { display:block; width:100%; height:100%; object-fit:contain; }
.film-tabs { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; margin:24px 20px 0; }
.film-tabs button { border:1px solid #ffffff2b; border-radius:22px; background:transparent; color:#c8c5df; padding:8px 18px; font-size:13px; line-height:22px; cursor:pointer; }
.film-tabs button[aria-selected=true] { background:#f7f9fe; color:#101321; }
.film-details { text-align:center; width:min(800px,84%); margin:48px auto 0; }
.film-details h3 { font-size:20px; line-height:28px; font-weight:400; }
.film-details p { font-size:14px; line-height:22px; color:#c8c5df; margin-top:28px; }
.film-details a { display:inline-block; margin-top:20px; color:#c4b6f4; }
.film-details [hidden] { display:none; }
#film-status:empty { display:none; }
.works-design { background:white; padding:96px 0 146px; }
.works-filters { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin:32px 20px 0; }
.works-filters button { border:1px solid #d3daeb; border-radius:25px; background:#f7f9fe; color:#63708a; font-size:16px; line-height:24px; padding:9px 24px; cursor:pointer; transition:background .35s,color .35s; }
.works-filters button[aria-selected=true] { background:#101321; color:white; border-color:#101321; }
.works-grid { width:min(1368px,84%); margin:78px auto 0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.work-card { position:relative; min-width:0; background:var(--work-background); border-radius:18px; overflow:hidden; container-type:inline-size; }
.work-card[hidden] { display:none; }
.work-action { display:block; position:relative; border:0; background:transparent; color:inherit; padding:0; text-align:left; width:100%; cursor:pointer; }
.works-art { position:relative; overflow:hidden; width:100%; aspect-ratio:678/640; }
.works-art .art-inner { position:relative; transform-origin:top left; }
.work-header { position:absolute; top:4.72cqw; left:4.72cqw; right:4.72cqw; display:flex; align-items:center; gap:12px; pointer-events:none; color:#101321; }
.work-card.dark .work-header { color:white; }
.work-header h3 { font-size:clamp(17px,2.95cqw,20px); line-height:1.4; font-weight:500; }
.work-header p { font:400 clamp(11px,2.06cqw,14px)/20px var(--font-ui); opacity:.5; }
.work-logo { display:flex; align-items:center; justify-content:center; width:40px; height:40px; flex:none; background:white; border-radius:10px; }
.work-logo img[src$="imgFrame32.svg"] { width:23.133px; height:24.025px; }
.work-logo img[src$="img5.svg"] { width:28px; height:28px; }
/* One action cue, anchored at the top right; expansion does not reflow the title. */
.work-header { padding-right:44px; }
.work-arrow { position:absolute; right:0; top:0; display:flex; align-items:center; height:36px; border-radius:10px; background:#e0e4ef; overflow:hidden; transition:background .35s,box-shadow .35s; }
.work-arrow-icon { width:36px; height:36px; flex:none; display:grid; place-items:center; }
.work-arrow-label { max-width:0; opacity:0; overflow:hidden; white-space:nowrap; font-size:14px; line-height:20px; transition:max-width .4s cubic-bezier(.22,1,.36,1),opacity .25s,padding .4s; }
.work-card.dark .work-arrow { background:#202020; }
.work-action:focus-visible .work-arrow-label { max-width:120px; opacity:1; padding-left:12px; }
.work-action:focus-visible .work-arrow { box-shadow:0 3px 12px #00000012; }
@media(hover:hover) and (pointer:fine) {
 .work-action:hover .work-arrow-label { max-width:120px; opacity:1; padding-left:12px; }
 .work-action:hover .work-arrow { box-shadow:0 3px 12px #00000012; }
}
.work-category { position:absolute; left:4.72cqw; bottom:4.72cqw; color:#101321; background:white; border-radius:100px; padding:5px 12px; font-size:clamp(11px,2.06cqw,14px); line-height:22px; box-shadow:0 1px 2px #00000014,0 4px 6px #0000000a; }
.work-action:focus-visible { outline:3px solid #907ae9; outline-offset:-3px; border-radius:18px; }
.work-dialog { position:fixed; inset:0; width:min(1600px,96vw); max-width:none; height:94dvh; max-height:none; margin:auto; border:1px solid #ffffff30; border-radius:20px; background:#100d1a; color:white; padding:0; }
.work-dialog::backdrop { background:#08060ee6; backdrop-filter:blur(8px); }
.work-dialog[open] { display:flex; flex-direction:column; }
.work-dialog-bar,.work-dialog-controls { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 24px; flex:none; }
.work-dialog h2 { font-size:18px; line-height:26px; font-weight:500; }
.work-dialog button { background:#ffffff12; border:1px solid #ffffff30; border-radius:8px; color:inherit; padding:10px 16px; cursor:pointer; }
.work-dialog button:disabled { opacity:.3; cursor:default; }
.work-dialog-stage { flex:1; overflow:auto; min-height:0; padding:16px; }
.work-dialog-stage .work-card { margin:auto; flex:none; }
.work-dialog-stage .work-arrow { display:none; }
.work-dialog-stage .work-action { pointer-events:none; }
@media(max-width:1199px) {
 .works-films { min-height:0; padding:72px 0; }
 .film-player { margin-top:48px; }
 .film-marquee { top:350px; }
 .works-grid { width:90%; gap:20px; }
 .work-header { gap:8px; }
}
@media(max-width:899px) {
 .works-page { --home-wrap:calc(100% - 40px); }
 .works-hero { height:520px; }
 .works-hero-art img { width:1783px; height:520px; left:50%; top:0; object-fit:cover; }
 .works-hero-copy { padding:126px 0 0; gap:18px; }

 .works-pill { font-size:12px; line-height:20px; padding:6px 16px; min-height:32px; }
 .works-heading h2 { font-size:32px; line-height:44px; margin-top:22px; }
 .works-films { padding:64px 0; }
 .film-player { width:100%; margin-top:36px; }
 .film-tabs { gap:8px; margin-top:24px; }
 .film-tabs button { padding:8px 12px; font-size:12px; }
 .film-details { width:calc(100% - 40px); margin-top:32px; }
 .film-details p { margin-top:18px; text-align:left; }
 .film-marquee { font-size:72px; top:230px; }
 .works-design { padding:64px 0; }
 .works-filters { gap:8px; margin-top:28px; }
 .works-filters button { padding:8px 14px; font-size:14px; }
 .works-grid { margin-top:40px; width:calc(100% - 40px); }
 .work-logo { width:32px; height:32px; border-radius:8px; }
 .work-arrow { height:30px; }
 .work-arrow-icon { width:30px; height:30px; }
 .work-dialog { width:100%; height:100dvh; border:0; border-radius:0; }
 .work-dialog-bar,.work-dialog-controls { padding:12px; gap:8px; }
 .work-dialog button { padding:10px; font-size:12px; }
 .work-dialog h2 { font-size:16px; }
}
@media(max-width:699px) { .works-grid { grid-template-columns:1fr; } }
@media(prefers-reduced-motion:reduce) { .work-arrow,.work-arrow-label,.works-filters button { transition:none; } }
/* Centering offsets belong to each artwork layer, not its descendants. */
.works-art * { --wx:0; --wy:0; }
.work-logo img[src$="imgFrame2147259994.png"] { width:40px; height:40px; border-radius:10px; }
@media(max-width:899px) { .work-logo img[src$="imgFrame2147259994.png"] { width:32px; height:32px; border-radius:8px; } }
.work-logo { position:relative; }
.work-logo img[src$="imgImage1801.png"] { width:24px; height:17px; object-fit:cover; }
.work-logo-overlay { position:absolute; left:20%; top:32.5%; }
@media(max-width:899px) { .work-logo-overlay { transform:scale(.8); transform-origin:top left; } }

/* Compact cards keep the icon cue so long project titles remain unobscured. */
@container(max-width:420px) { .work-arrow-label { display:none; } }

.work-poster { margin:0 auto; }
.work-poster img { display:block; height:auto; max-width:none; }

.film-player { position:relative; }
.film-lock { position:absolute; inset:0; z-index:2; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; padding:24px; background:rgba(8,8,16,.88); text-align:center; backdrop-filter:blur(10px); }
.film-lock[hidden] { display:none; }
.film-lock span { font-size:28px; }
.film-lock p { font-size:clamp(16px,2vw,24px); line-height:1.6; color:#f7f9fe; }
