:root{--page-bg:#172226;--page-fg:#dce8e9}html,body{height:100%;margin:0}body{background:var(--page-bg);color:var(--page-fg);transition:background-color .65s,color .65s}header{position:fixed;inset:0 0 auto;z-index:5;padding:28px 4%;background:none;pointer-events:none}header a,header nav{pointer-events:auto}.brand,.brand span,nav a,nav sup{color:inherit}.brand span{opacity:.6}.brand{font-size:16px}main{padding:0!important}#work{padding:0}#projects{height:100dvh;display:block;overflow-y:auto;scroll-snap-type:y mandatory;scroll-behavior:smooth;overscroll-behavior-y:contain;padding:0;scrollbar-width:none}#projects::-webkit-scrollbar{display:none}.project,.project:first-child,.project:last-child,.project:nth-child(n){width:100%;height:100dvh;min-height:600px;margin:0;padding:100px 10% 90px;display:flex;flex-direction:column;justify-content:center;align-items:stretch;scroll-snap-align:start;scroll-snap-stop:always;position:relative;background:var(--film-bg);color:var(--film-fg);cursor:pointer}.project .image-wrap,.project:first-child .image-wrap,.project:last-child .image-wrap,.project:nth-child(n) .image-wrap{width:min(100%,calc((100dvh - 235px)*1.7778));aspect-ratio:16/9;flex-shrink:0;align-self:center;background:transparent;max-height:calc(100dvh - 235px)}.project .image-wrap img,.cover-loop{object-fit:contain}.project-info{width:min(100%,calc((100dvh - 235px)*1.7778));align-self:center;display:flex;gap:24px;align-items:baseline;padding-top:22px}.project-info h3,.project:nth-child(even) .project-info h3{font-size:clamp(22px,2.5vw,38px);font-weight:300;max-width:none;letter-spacing:-1px;color:inherit}.project-number{color:inherit;opacity:.5;font-size:10px}.play span{border-color:currentColor;color:var(--film-fg);background:transparent;backdrop-filter:blur(8px)}.image-wrap img{transition:none}.project:hover img{transform:none}body[data-preview-view=work]{overflow:hidden}body[data-preview-view=work] footer{display:none}#stills,#about{padding:110px 5% 0}body:not([data-preview-view=work]) footer{margin:80px 5% 0}.snap-hud{position:fixed;bottom:26px;left:4%;right:4%;z-index:5;display:flex;align-items:center;justify-content:space-between;font:10px monospace;letter-spacing:1px;pointer-events:none}.snap-hud .hint{opacity:.55}.snap-actions{display:flex;align-items:center;gap:23px;pointer-events:auto}.snap-actions button{font:22px Arial;padding:8px 6px;color:inherit}.snap-actions button:disabled{opacity:.2;cursor:default}.snap-counter{font:11px monospace;letter-spacing:2px}.preview-mark{font:8px monospace;opacity:.45;letter-spacing:1px;position:fixed;bottom:5px;left:4%;z-index:5}body:not([data-preview-view=work]) .snap-hud{display:none}a:focus-visible,button:focus-visible,.project:focus-visible{outline:1px solid currentColor;outline-offset:-4px}dialog{color:#dce8e9}#modalBody .project-credits dt{color:#93a3a6}#modalBody .project-credits dd{color:#dce8e9}@media(max-width:650px){header{padding:25px 6%;gap:15px}.brand{font-size:12px}.brand span{font-size:6px}nav{font-size:10px;gap:18px}.project,.project:first-child,.project:last-child,.project:nth-child(n){padding:95px 6% 95px;min-height:0}.project .image-wrap,.project:nth-child(n) .image-wrap{width:100%;aspect-ratio:4/3;max-height:65dvh}.project-info{width:100%;gap:14px;padding-top:20px}.project-info h3,.project:nth-child(even) .project-info h3{font-size:25px;line-height:1.1;letter-spacing:-.8px}.snap-hud{left:6%;right:6%;bottom:27px}.snap-hud .hint{max-width:135px;font-size:9px;line-height:1.6}.snap-actions{gap:12px}.snap-counter{font-size:10px}.preview-mark{left:6%;font-size:7px}}@media(prefers-reduced-motion:reduce){body{transition:none}#projects{scroll-behavior:auto}}

/* More editorial: a coloured title leads each frame. */
#projects{scroll-behavior:auto}body{transition:background-color .28s,color .28s}.play{display:none!important}.project,.project:nth-child(n){padding:105px 10% 90px}.project-info{order:-1;width:100%;align-self:flex-start;justify-content:flex-start;align-items:flex-start;gap:18px;margin:0 0 -12px;padding:0;position:relative;z-index:2;transform:translateX(-5%)}.project-info h3,.project:nth-child(even) .project-info h3{color:var(--film-accent);font-size:clamp(32px,4.4vw,68px);letter-spacing:-2.2px;line-height:.98;font-weight:400;max-width:88%}.project-number{padding-top:7px;flex-shrink:0;opacity:.65}.project .image-wrap,.project:nth-child(n) .image-wrap{width:min(85%,calc((100dvh - 300px)*1.7778));max-height:calc(100dvh - 300px);align-self:flex-end}.project:nth-child(3n+2) .project-info{transform:translateX(9%)}.project:nth-child(3n+2) .image-wrap{align-self:flex-start}.project:nth-child(3n) .project-info{transform:translateX(-1%)}.project:nth-child(3n) .image-wrap{align-self:center}.project-info h3{text-wrap:balance}@media(max-width:650px){.project,.project:nth-child(n){padding:110px 6% 100px}.project-info,.project:nth-child(3n+2) .project-info,.project:nth-child(3n) .project-info{width:100%;transform:none;gap:10px;margin-bottom:18px}.project-info h3,.project:nth-child(even) .project-info h3{font-size:clamp(30px,8vw,45px);letter-spacing:-1.2px;max-width:94%}.project .image-wrap,.project:nth-child(n) .image-wrap{width:94%;max-height:55dvh;aspect-ratio:4/3}.project:nth-child(3n+2) .image-wrap{align-self:flex-start}.project-number{font-size:8px;padding-top:5px}}

@font-face{font-family:'Barlow Condensed';src:url('assets/fonts/barlow-condensed-600.ttf') format('truetype');font-weight:600;font-style:normal;font-display:swap}
/* Large, compressed typography and deliberately displaced frames. */
.project,.project:nth-child(n){padding:0;overflow:hidden}.project-info,.project:nth-child(3n+2) .project-info,.project:nth-child(3n) .project-info{position:absolute;left:7%;top:15%;width:85%;display:block;margin:0;padding:0;transform:none;z-index:2;pointer-events:none}.project-number{display:block;font:10px monospace;letter-spacing:1.4px;color:var(--film-fg);padding:0;margin-bottom:18px;opacity:.65}.project-info h3,.project:nth-child(even) .project-info h3{font-family:'Barlow Condensed','Arial Narrow',Arial,sans-serif;font-size:clamp(60px,8.1vw,130px);font-weight:600;font-style:normal;line-height:.87;letter-spacing:-1.8px;white-space:pre-line;text-transform:uppercase;max-width:95%;text-wrap:initial}.project .image-wrap,.project:nth-child(n) .image-wrap{position:absolute;left:25%;top:35%;width:65%;max-height:53dvh;aspect-ratio:16/9;align-self:auto}.project:nth-child(3n+2) .project-info{left:16%;top:17%}.project:nth-child(3n+2) .image-wrap{left:8%;top:40%;width:70%}.project:nth-child(3n) .project-info{left:8%;top:18%}.project:nth-child(3n) .image-wrap{left:30%;top:39%;width:62%}.snap-hud .hint{font-size:9px;letter-spacing:1px;text-transform:uppercase}@media(min-width:1550px){.project .image-wrap,.project:nth-child(n) .image-wrap{width:58%;top:34%;left:31%}.project:nth-child(3n+2) .image-wrap{left:10%;top:39%}.project:nth-child(3n) .image-wrap{left:34%;top:38%}.project-info h3,.project:nth-child(even) .project-info h3{font-size:clamp(105px,8vw,160px)}}@media(max-width:650px){.project-info,.project:nth-child(3n+2) .project-info,.project:nth-child(3n) .project-info{left:6%;top:20%;width:92%}.project-number{font-size:8px;letter-spacing:1px;margin-bottom:14px}.project-info h3,.project:nth-child(even) .project-info h3{font-size:clamp(56px,14.3vw,90px);letter-spacing:-1px;line-height:.9;max-width:100%}.project .image-wrap,.project:nth-child(n) .image-wrap{top:40%;left:16%;width:78%;aspect-ratio:4/3;max-height:40dvh}.project:nth-child(3n+2) .image-wrap{left:6%;top:43%}.project:nth-child(3n) .image-wrap{left:16%;top:43%}.snap-hud .hint{max-width:170px;font-size:8px}}@media(max-height:600px) and (min-width:651px){.project-info,.project:nth-child(n) .project-info{top:20%;left:8%}.project-info h3,.project:nth-child(even) .project-info h3{font-size:clamp(55px,6vw,85px)}.project .image-wrap,.project:nth-child(n) .image-wrap{width:54%;top:31%;left:37%;max-height:54dvh}}

/* Shared composition across every film, with a soft reflection of its cover. */
.project{isolation:isolate}
.project .project-info,.project:nth-child(n) .project-info{left:8%;top:16%;width:86%}
.project .project-info h3,.project:nth-child(n) .project-info h3{font-size:clamp(58px,7.5vw,124px);line-height:.9;letter-spacing:-1.5px;max-width:100%}
.project .image-wrap,.project:nth-child(n) .image-wrap{left:24%;top:39%;width:68%;max-height:49dvh;z-index:1}
.video-ambient{position:absolute;left:18%;top:35%;width:80%;height:57dvh;object-fit:fill;filter:blur(48px) saturate(.7);opacity:.26;mask-image:radial-gradient(ellipse at 50% 48%,#000 12%,transparent 70%);pointer-events:none;z-index:0;transform:translateY(5%)}
@media(min-width:1550px){.project .image-wrap,.project:nth-child(n) .image-wrap{left:29%;width:62%}.video-ambient{left:23%;width:74%}}
@media(max-width:650px){.project .project-info,.project:nth-child(n) .project-info{left:6%;top:20%;width:90%}.project .project-info h3,.project:nth-child(n) .project-info h3{font-size:clamp(48px,12.6vw,80px);letter-spacing:-.8px;line-height:.94}.project .image-wrap,.project:nth-child(n) .image-wrap{left:12%;top:43%;width:82%;max-height:38dvh;aspect-ratio:16/9}.video-ambient{left:3%;top:39%;width:100%;height:43dvh;filter:blur(28px);opacity:.24}}
@media(max-height:600px) and (min-width:651px){.project .project-info,.project:nth-child(n) .project-info{left:8%;top:19%}.project .project-info h3,.project:nth-child(n) .project-info h3{font-size:clamp(50px,6vw,80px)}.project .image-wrap,.project:nth-child(n) .image-wrap{left:37%;top:34%;width:54%;max-height:50dvh}.video-ambient{left:30%;top:30%;width:68%;height:60dvh}}

/* Trim baked-in letterboxing and preserve the actual film format. */
.project .image-wrap,.project:nth-child(n) .image-wrap{aspect-ratio:var(--cover-ratio,1.77778);width:min(68%,calc(49dvh * var(--cover-ratio,1.77778)));max-height:none}
.project .image-wrap>img,.project .image-wrap>.cover-loop{object-fit:cover}
.project .image-wrap>.cover-loop[data-crop]{object-fit:fill}
@media(min-width:1550px){.project .image-wrap,.project:nth-child(n) .image-wrap{width:min(62%,calc(49dvh * var(--cover-ratio,1.77778)))}}
@media(max-width:650px){.project .image-wrap,.project:nth-child(n) .image-wrap{width:min(82%,calc(38dvh * var(--cover-ratio,1.77778)))}}
@media(max-height:600px) and (min-width:651px){.project .image-wrap,.project:nth-child(n) .image-wrap{width:min(54%,calc(50dvh * var(--cover-ratio,1.77778)))}}

/* Quiet, persistent project shortcuts on the right. */
.project-index{position:fixed;right:3%;top:50%;transform:translateY(-50%);z-index:5;display:block;font:10px 'Barlow Condensed',Arial,sans-serif;letter-spacing:.7px;text-transform:uppercase;width:133px}
.project-index ol{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.project-index a{display:flex;align-items:center;gap:10px;padding:7px 0;opacity:.42;transition:opacity .18s,transform .18s;white-space:nowrap}
.project-index a:hover,.project-index a:focus-visible,.project-index a[aria-current=true]{opacity:1;transform:translateX(-4px)}
.project-index a[aria-current=true]::after{content:'';width:4px;height:4px;border-radius:50%;background:currentColor;margin-left:auto}
.index-number{font:8px monospace;opacity:.55;min-width:13px}
.project-index-toggle{display:none}
body:not([data-preview-view=work]) .project-index,body:not([data-preview-view=work]) .project-index-toggle{display:none}
@media(min-width:651px){.project .image-wrap,.project:nth-child(n) .image-wrap{width:min(54%,calc(49dvh * var(--cover-ratio,1.77778)))}.project .project-info,.project:nth-child(n) .project-info{width:71%}}
@media(min-width:651px) and (max-width:1000px){.project-index{right:2.5%;width:104px;font-size:10px}.project-index a{gap:6px;padding:6px 0}.project .image-wrap,.project:nth-child(n) .image-wrap{left:23%;width:min(56%,calc(49dvh * var(--cover-ratio,1.77778)))}}
@media(max-width:650px){.project-index-toggle{display:block;position:fixed;right:6%;top:95px;z-index:7;font:10px monospace;padding:8px 0;text-transform:uppercase;letter-spacing:1px}.project-index{display:none;right:6%;top:134px;transform:none;width:165px;padding:16px;background:var(--page-bg);border:1px solid currentColor;z-index:6;font-size:12px}.project-index.is-open{display:block}.project-index a{padding:7px 0}}
/* Desktop paging is controlled by go(); native re-snapping would undo long jumps. */
@media(min-width:651px){#projects{scroll-snap-type:none!important}}
/* Give the project index more breathing room. */
@media(min-width:651px){.project .image-wrap,.project:nth-child(n) .image-wrap{left:18%}.video-ambient{left:12%}}
@media(min-width:1550px){.project .image-wrap,.project:nth-child(n) .image-wrap{left:23%}.video-ambient{left:17%}}
/* Lower the composition and let the title meet the film's upper edge. */
.project .project-info,.project:nth-child(n) .project-info{top:43%;transform:translateY(-100%);padding-bottom:0}
.project .image-wrap,.project:nth-child(n) .image-wrap{top:44%}
.video-ambient{top:40%}
@media(max-width:650px){.project .project-info,.project:nth-child(n) .project-info{top:44%;transform:translateY(-100%)}.project .image-wrap,.project:nth-child(n) .image-wrap{top:45%}.video-ambient{top:41%}}
@media(max-height:600px) and (min-width:651px){.project .project-info,.project:nth-child(n) .project-info{top:43%}.project .image-wrap,.project:nth-child(n) .image-wrap{top:44%}.video-ambient{top:40%}}
/* More space above the name and navigation. */
header{padding-top:52px}
@media(max-width:650px){header{padding-top:38px}.project-index-toggle{top:108px}.project-index{top:147px}}
/* Give the name a little more presence. */
header .brand{font-size:22px}
@media(max-width:650px){header .brand{font-size:16px}}
/* Theme-coloured graph paper: fine squares with a quiet major grid. */
.project::before{content:'';position:absolute;inset:0;pointer-events:none;z-index:0;color:var(--film-fg);opacity:.16;background-image:linear-gradient(to right,currentColor 1px,transparent 1px),linear-gradient(to bottom,currentColor 1px,transparent 1px),linear-gradient(to right,color-mix(in srgb,currentColor 35%,transparent) 1px,transparent 1px),linear-gradient(to bottom,color-mix(in srgb,currentColor 35%,transparent) 1px,transparent 1px);background-size:100px 100px,100px 100px,20px 20px,20px 20px;background-position:center center}
.project::before{opacity:.045}
/* Keep the major grid only slightly stronger than the fine lines. */
.project::before{opacity:.03;background-image:linear-gradient(to right,color-mix(in srgb,currentColor 45%,transparent) 1px,transparent 1px),linear-gradient(to bottom,color-mix(in srgb,currentColor 45%,transparent) 1px,transparent 1px),linear-gradient(to right,color-mix(in srgb,currentColor 35%,transparent) 1px,transparent 1px),linear-gradient(to bottom,color-mix(in srgb,currentColor 35%,transparent) 1px,transparent 1px)}

/* Reserve two title lines so short headings share the same top edge. */
.project .project-info h3,.project:nth-child(n) .project-info h3{min-height:1.8em}
@media(max-width:650px){.project .project-info h3,.project:nth-child(n) .project-info h3{min-height:1.88em}}
