/* A quiet project page: a centered film, a compact credit line, then three chapters. */
html:has(body.project-detail){background:#000;color-scheme:dark}
body.project-detail{background:#000;color:#f2f2f2;--project-edge:clamp(18px,4vw,64px);--project-header-height:98px;--project-caption-height:96px;--project-col:min(100%,calc((100svh - var(--project-header-height) - var(--project-caption-height) - 24px)*16/9));--p:1;--dk:1}
.project-detail .page{background:transparent}
.project-header{position:sticky;top:0;z-index:50;height:var(--project-header-height);padding:18px 0;background:transparent}
.project-header .nav{position:relative;top:0;margin:0 auto;background:rgba(12,12,12,.8);border-color:#ffffff14;box-shadow:0 8px 30px -20px #0009}
.project-header .panel{background:#111;border:1px solid #ffffff1a}
.project-header :is(.pl,.it-t,.explore){color:#f2f2f2}
.project-header .it-s{color:#a3a3a3}
.project-header .rule{background:#ffffff1a}
.project-page{font-family:'aktiv-grotesk','Aktiv Fallback',Helvetica,Arial,sans-serif;--ink:#f2f2f2;--soft:#aaa;--faint:#929292;--rule:#ffffff26;color:var(--ink)}
.project-page *{box-sizing:border-box}
.project-page a{color:inherit;text-decoration:none}
.project-page :is(a,button,input):focus-visible{outline:2px solid currentColor;outline-offset:5px}
.project-page h1,.project-page h2,.project-page h3,.project-page p{margin:0;font-weight:400}
.project-detail ::selection{background:#f2f2f2;color:#000}
.project-page [hidden]{display:none!important}

/* The player keeps its own ratio; the credit line fits beneath it in the first view. */
.project-opening{padding:12px var(--project-edge) 0;scroll-margin-top:var(--project-header-height)}
.project-media,.project-media-width{width:100%;max-width:var(--project-col);margin:0 auto}
.project-media{position:relative;aspect-ratio:16/9;overflow:hidden;background:#000;isolation:isolate;border-radius:12px}
.project-media video,.project-media iframe{display:block;width:100%;height:100%;object-fit:contain;border:0;background:#000}
.project-site-poster{display:block;width:100%;height:100%;position:relative}
.project-site-poster img{display:block;width:100%;height:100%;object-fit:contain}
.project-site-open{display:grid;place-items:center;position:absolute;bottom:16px;right:16px;width:42px;height:42px;border-radius:50%;background:#0005;color:#fff}
.project-site-open svg{width:18px;height:18px}
.project-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:60px;height:60px;padding:0;border:1px solid #ffffffb3;border-radius:50%;color:#fff;background:#0003;backdrop-filter:blur(6px);cursor:pointer;transition:background .2s,transform .2s}
.project-play:hover{background:#0006;transform:translate(-50%,-50%) scale(1.04)}
.project-play svg{width:22px;height:22px;margin-left:2px}
.project-controls{position:absolute;inset:auto 16px 12px;display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;gap:14px;color:#fff;opacity:0;transition:opacity .2s;isolation:isolate}
.project-controls::before{content:'';position:absolute;inset:-28px -16px -12px;background:linear-gradient(transparent,#0007);z-index:-1;pointer-events:none}
.project-media:is(:hover,:focus-within,.is-paused) .project-controls{opacity:1}
.project-media:not(.has-started) :is([data-project-toggle],.project-seek){visibility:hidden}
.project-control{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;color:inherit;background:transparent;cursor:pointer}
.project-control:hover{background:#ffffff14}
.project-control span,.project-control svg{display:block;width:20px;height:20px}
.project-seek{--played:0%;display:block;width:100%;height:28px;margin:0;background:transparent;appearance:none;cursor:pointer;color:#fff}
.project-seek:disabled{visibility:hidden}
.project-seek::-webkit-slider-runnable-track{height:2px;border-radius:2px;background:linear-gradient(to right,#fff var(--played),#ffffff4d var(--played))}
.project-seek::-moz-range-track{height:2px;border-radius:2px;background:#ffffff4d}
.project-seek::-moz-range-progress{height:2px;background:#fff}
.project-seek::-webkit-slider-thumb{appearance:none;width:8px;height:8px;margin-top:-3px;border:0;border-radius:50%;background:#fff}
.project-seek::-moz-range-thumb{width:8px;height:8px;border:0;border-radius:50%;background:#fff}
.project-media-error{position:absolute;bottom:0;inset-inline:0;padding:18px!important;background:#111;color:#fff;font-size:13px;line-height:1.6}
.project-media-error a{text-decoration:underline}
.project-meta{display:grid;grid-template-columns:32px minmax(140px,1.4fr) repeat(3,minmax(0,1fr));gap:clamp(16px,2.6vw,40px);align-items:start;min-height:var(--project-caption-height);padding:22px 0;font-size:12px;line-height:1.5}
.project-meta h1{font:inherit;letter-spacing:0}
.project-meta-label{display:block;margin-bottom:5px;color:var(--faint);font-size:10px}
.project-back{display:grid;place-items:center;width:32px;min-height:42px}
.project-back svg{width:20px;height:20px;transition:transform .2s}
.project-back:hover svg{transform:translateX(-3px)}

/* Each section shares one small left label and one comfortable reading column. */
.project-editorial{width:100%;max-width:1180px;margin:0 auto;padding:clamp(64px,7vw,108px) 40px clamp(72px,8vw,120px)}
.project-chapter{display:grid;grid-template-columns:180px minmax(0,1fr);gap:clamp(40px,6vw,92px);padding:0 0 60px;margin-bottom:60px;border-bottom:1px solid var(--rule);scroll-margin-top:120px}
.project-chapter-label>span{display:block;margin-bottom:13px;color:var(--faint);font-size:10px;font-variant-numeric:tabular-nums}
.project-chapter-label h2{font:400 14px/1.5 'aktiv-grotesk','Aktiv Fallback',Helvetica,Arial,sans-serif;letter-spacing:-.01em}
.project-overview-copy{max-width:730px}
.project-overview-copy .project-headline{font-size:clamp(27px,2.24vw,36px);line-height:1.2;letter-spacing:-.035em;max-width:25ch}
.project-overview-copy .project-description{margin-top:22px;font-size:16px;line-height:1.8;color:var(--soft);text-wrap:pretty}
.project-result{margin-top:30px;padding-top:25px;border-top:1px solid var(--rule)}
.project-result h3,.project-making-note h3{margin:0 0 12px;font-size:12px;line-height:1.5}
.project-result p,.project-making-note p{font-size:14px;line-height:1.8;color:var(--soft);text-wrap:pretty}
.project-site-link{display:inline-flex;align-items:center;gap:10px;margin-top:24px;font-size:12px}
.project-site-link svg{width:15px;height:15px}
.project-making-copy{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px}
.project-sketch{display:block;width:88px;height:auto;margin-top:24px;color:#91918c;transform:rotate(-5deg)}
.project-sketch-accent{stroke:#78919f}
.project-frame-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:28px}
.project-frame-heading h2{font-size:20px;letter-spacing:-.025em}
.project-frame-heading>p{padding-bottom:3px;font-size:11px;color:var(--faint)}
.project-stills{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.project-still{position:relative;min-width:0;margin:0}
.project-frame-view{display:block;overflow:hidden;border-radius:8px;background:#111}
.project-still img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;transition:opacity .25s}
.project-frame-view:hover img{opacity:.88}
.project-frame-expand,.project-frame-save{display:grid;place-items:center;position:absolute;bottom:10px;width:32px;height:32px;border:1px solid #ffffff50;border-radius:50%;color:#fff!important;background:#0005;backdrop-filter:blur(5px);opacity:0;transition:opacity .2s,background .2s}
.project-frame-expand{left:10px;pointer-events:none}
.project-frame-save{right:10px}
.project-frame-expand svg,.project-frame-save svg{width:15px;height:15px}
.project-still:is(:hover,:focus-within) :is(.project-frame-expand,.project-frame-save){opacity:1}
.project-frame-save:hover{background:#0009}

/* The brief: who it was for, what it had to do, what we delivered, then the facts. */
.project-brief{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;margin-top:36px;padding-top:30px;border-top:1px solid var(--rule)}
.project-brief h4{margin:0 0 12px;font-size:12px;font-weight:400;line-height:1.5;color:var(--ink)}
.project-brief p,.project-brief li{font-size:14px;line-height:1.7;color:var(--soft);text-wrap:pretty}
.project-brief ul{margin:0;padding:0;list-style:none}
.project-brief li{position:relative;padding-left:16px}
.project-brief li::before{content:'';position:absolute;left:0;top:.72em;width:6px;height:1px;background:var(--faint)}
.project-brief li+li{margin-top:6px}
.project-facts{display:flex;flex-wrap:wrap;gap:12px 40px;margin:32px 0 0;padding-top:22px;border-top:1px solid var(--rule)}
.project-facts>div{display:flex;flex-direction:column;gap:5px}
.project-facts dt{font-size:10px;color:var(--faint)}
.project-facts dd{margin:0;font-size:13px;color:var(--ink);font-variant-numeric:tabular-nums}
.project-making-body{display:grid;gap:36px}
.project-set-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.project-set-photos[data-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.project-set-photo{position:relative;min-width:0;margin:0}
.project-set-photo img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:8px;background:#111}
.project-set-photo figcaption{margin-top:10px;font-size:11px;line-height:1.5;color:var(--faint)}

/* Stills open into a simple viewer, with a direct download of the original image. */
.project-lightbox{position:fixed;inset:0;width:min(1480px,calc(100vw - 48px));max-width:none;max-height:none;height:min(940px,calc(100svh - 48px));margin:auto;padding:0;border:1px solid #ffffff26;border-radius:12px;background:#000;color:#fff;overflow:hidden;box-shadow:0 24px 80px #0004}
.project-lightbox[open]{display:grid;grid-template-rows:52px minmax(0,1fr) 56px}
.project-lightbox::backdrop{background:#0009;backdrop-filter:blur(10px)}
.project-lightbox-head,.project-lightbox-foot{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:6px 16px;font-size:11px;line-height:1.5}
.project-lightbox-head>span{color:#bbb;font-variant-numeric:tabular-nums}
.project-lightbox button{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer}
.project-lightbox button:hover{background:#ffffff12}
.project-lightbox button:disabled{opacity:.25;cursor:default}
.project-lightbox svg{width:18px;height:18px}
.project-lightbox-stage{min-height:0;padding:0 16px}
.project-lightbox-stage img{display:block;width:100%;height:100%;object-fit:contain}
.project-lightbox-foot>a,.project-lightbox-foot>div{display:flex;align-items:center;gap:10px}
.project-lightbox-foot>a{min-height:40px}
.project-lightbox-foot [data-frame-next] svg{transform:rotate(180deg)}
html:has(.project-lightbox[open]){overflow:hidden;scrollbar-gutter:stable}

@media(max-width:1100px){.project-header .nav-txt{display:none}.project-chapter{grid-template-columns:150px minmax(0,1fr);gap:40px}.project-making-copy{gap:28px}}
@media(max-width:860px){
  .project-brief{grid-template-columns:1fr;gap:24px}
  body.project-detail{--project-header-height:126px;--project-caption-height:126px;--project-edge:24px}
  .project-header{padding:10px 0}
  .project-header .nav{display:grid;grid-template-columns:1fr auto;grid-template-rows:50px 48px;height:104px;align-items:center}
  .project-header .nav-logo{grid-column:1;grid-row:1}
  .project-header .nav-cta{grid-column:2;grid-row:1;margin:0}
  .project-header .nav-links{position:static;transform:none;display:flex;grid-column:1/-1;grid-row:2;justify-content:center;gap:6px;margin:0;width:100%}
  .project-header .nav .nav-links>.nl,.project-header .nav .nav-links>.dw{display:flex}
  .project-header .nav .nl{font-size:.8125rem;padding:4px 12px;height:40px}
  .project-header .nav .nav-txt{display:none}
  .project-meta{grid-template-columns:28px minmax(0,1fr) minmax(0,1fr);gap:14px 20px;padding-block:18px}
  .project-back{grid-row:1/3;width:28px}
  .project-meta h1{grid-column:2;grid-row:1}
  .project-meta>div:nth-of-type(1){grid-column:3;grid-row:1}
  .project-meta>div:nth-of-type(2){grid-column:2;grid-row:2}
  .project-meta>div:nth-of-type(3){grid-column:3;grid-row:2}
  .project-editorial{padding-inline:32px}
  .project-chapter{grid-template-columns:130px minmax(0,1fr);gap:32px;padding-bottom:42px;margin-bottom:42px}
  /* the frames grid closes its chapter like the others, so the next number does not sit on the stills */
  .project-frames{padding-bottom:42px;margin-bottom:42px;border-bottom:1px solid var(--rule)}
  .project-making-copy{grid-template-columns:1fr;gap:28px}
}
@media(max-width:600px){
  .project-set-photos,.project-set-photos[data-count="2"]{grid-template-columns:1fr 1fr;gap:8px}
  .project-facts{gap:12px 26px}
  body.project-detail{--project-col:100%;--project-edge:20px}
  .project-opening{padding-top:8px}
  .project-play{width:52px;height:52px}
  .project-controls{inset-inline:8px;bottom:6px;gap:8px}
  .project-meta{font-size:11px;gap:14px 12px}
  .project-editorial{padding:48px 20px 64px}
  .project-chapter{grid-template-columns:1fr;gap:26px}
  .project-chapter-label{position:relative}
  .project-chapter-label h2 br{display:initial}
  .project-chapter-label h2{font-size:15px}
  .project-sketch{position:absolute;right:0;top:-8px;width:66px;margin:0}
  .project-overview-copy .project-description{font-size:15px}
  .project-frame-heading{align-items:flex-start;flex-direction:column;gap:12px;margin-bottom:22px}
  .project-stills{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .project-frame-expand,.project-frame-save{opacity:1;width:28px;height:28px;bottom:7px}
  .project-frame-expand{left:7px}.project-frame-save{right:7px}
  .project-lightbox{width:calc(100vw - 20px);height:calc(100svh - 40px)}
  .project-lightbox-stage{padding-inline:8px}
}
@media(max-width:380px){.project-header .nav-links{gap:0;justify-content:space-between}.project-header .nav .nl{font-size:.75rem;padding:4px 8px}}
@media(hover:none){.project-controls{opacity:1}.project-frame-expand,.project-frame-save{opacity:1}}
@media(prefers-reduced-motion:reduce){.project-page *{scroll-behavior:auto!important;transition:none!important}}

/* until the first frame arrives the poster stays up, with a small ring instead of a black screen */
.project-media.is-starting{background:#000 var(--film-poster) center / contain no-repeat}
.project-media.is-starting video{opacity:0}
.project-media.is-starting::after{content:'';position:absolute;left:50%;top:50%;z-index:3;width:34px;height:34px;margin:-17px 0 0 -17px;border-radius:50%;border:2.5px solid rgba(255,255,255,.28);border-top-color:#fff;animation:film-spin .8s linear infinite;pointer-events:none}
@keyframes film-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.project-media.is-starting::after{animation-duration:2.4s}}
