@font-face { font-family: Display; src: url('/portfolio/assets/display.ttf'); font-weight: 700; font-display: swap; }
@font-face { font-family: Body; src: url('/portfolio/assets/body.ttf'); font-weight: 400; font-display: swap; }
@font-face { font-family: Body; src: url('/portfolio/assets/body-bold.ttf'); font-weight: 700; font-display: swap; }
:root { color-scheme: dark; --ink: #101110; --paper: #fbf7f0; --muted: #d3d1ca; --line: #585a54; --gutter: clamp(20px,4.7vw,80px); }
* { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 1rem/1.5 Body, Arial, sans-serif; }
body:has(dialog[open]) { overflow: hidden; }
button, input { font: inherit; }
button, a { color: inherit; }
button, summary { cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #ff9a6a; outline-offset: 3px; }
[hidden] { display: none !important; }
.shell { width: min(1640px,100%); margin-inline: auto; padding-inline: var(--gutter); }
h1, h2, h3 { margin: 0; font-family: Display, sans-serif; font-weight: 700; line-height: 1.02; letter-spacing: -.024em; }
.skip-link { position: absolute; top: 0; left: 12px; z-index: 4; padding: 12px; background: var(--ink); transform: translateY(-130%); }
.skip-link:focus { transform: none; }
.masthead { height: clamp(58px,6vw,80px); display: flex; align-items: center; }
.masthead a, .masthead img { display: block; }
.masthead img { width: clamp(100px,10vw,125px); height: auto; }
.hero { position: relative; display: flex; align-items: flex-end; isolation: isolate; min-height: clamp(290px,42svh,530px); background: #39453b url('/portfolio/films/feature/valley.jpg') center 53%/cover; color: white; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgb(0 0 0 / 23%),rgb(0 0 0 / 23%)),linear-gradient(90deg,rgba(8,19,21,.78),rgba(8,19,21,.25) 63%,transparent 86%),linear-gradient(0deg,rgba(6,14,13,.75),transparent 65%); }
.hero-copy { padding-block: 34px clamp(32px,4vw,60px); }
.hero h1 { font-size: clamp(76px,10.8vw,171px); line-height: .96; }
.hero p { max-width: 46ch; margin: 14px 0 0; font-size: clamp(18px,2.1vw,34px); line-height: 1.24; text-wrap: pretty; }
.studio { padding-top: clamp(20px,3vw,46px); }
.studio figure { max-width: min(1180px,130svh); margin: 0 auto; }
#studio-reel { aspect-ratio: 16/9; overflow: hidden; border-radius: 14px; background: #080a0e url('/portfolio/assets/studio-poster.webp') center/cover; }
.studio figcaption { margin-top: .25rem; color: var(--muted); font-size: .9375rem; }
.studio figcaption summary { width: fit-content; padding-block: 11px; }
.studio figcaption p { margin: 0; }
.library { padding-top: clamp(42px,6vw,90px); padding-bottom: 90px; }
.library h2 { font-size: clamp(46px,5.1vw,76px); }
.filters { display: flex; gap: 7px; flex-wrap: wrap; margin: 22px 0 30px; }
.filters a { display: inline-flex; align-items: center; min-height: 42px; border: 1px solid #717369; border-radius: 10px; padding: 6px 15px; text-decoration: none; font-size: 15px; }
.filters a[aria-current] { color: #141614; background: var(--paper); border-color: var(--paper); }
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(26px,3vw,46px) clamp(14px,1.8vw,28px); align-items: start; }
.project-card { min-width: 0; }
.card-media { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #181a19; }
.card-illustration { display: grid; width: 100%; height: 100%; place-items: center; border: 0; padding: 0; background: transparent; }
.card-illustration img { width: 100%; height: 100%; object-fit: contain; }
.card-illustration:focus-visible { outline-offset: -4px; }
.card-title { font-size: clamp(24px,2.2vw,38px); line-height: 1.09; margin-top: 12px; }
.card-title a { display: flex; justify-content: space-between; align-items: flex-start; gap: .45em; min-height: 44px; text-decoration: none; text-underline-offset: .15em; }
.card-title svg { width: .66em; height: .66em; min-width: 16px; min-height: 16px; flex: none; margin-top: .2em; fill: none; stroke: #c1c3ba; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.card-title a:hover, .card-title a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; }
#project-dialog { width: min(1090px,95vw); max-height: 92dvh; padding: 0; border: 1px solid #565850; border-radius: 16px; background: #131513; color: var(--paper); overscroll-behavior: contain; }
#project-dialog::backdrop { background: rgb(3 5 5 / 88%); }
.dialog-header { position: sticky; top: 0; z-index: 3; background: #131513; border-bottom: 1px solid #373933; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px clamp(16px,2.8vw,36px); }
.dialog-header h2 { font-size: clamp(25px,3.1vw,45px); }
.icon-button { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; background: transparent; border: 1px solid #797b71; border-radius: 9px; }
.icon-button svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.project-stage { background: #080a09; }
.project-stage:has(.scc-film) { display: grid; place-items: center; }
.project-stage > .scc-film { max-width: min(100%,108dvh); }
.image-view { max-height: 67dvh; overflow: auto; text-align: center; }
.image-view button { display: block; margin: auto; border: 0; padding: 0; background: transparent; cursor: zoom-in; }
.image-view button:focus-visible { outline-offset: -3px; }
.image-view img { display: block; max-width: 100%; width: auto; max-height: 66dvh; height: auto; margin: auto; object-fit: contain; }
.image-view.enlarged button { cursor: zoom-out; }
.image-view.enlarged img { max-width: none; max-height: none; }
.case-notes { padding: clamp(17px,2.6vw,32px); }
.case-story { max-width: 77ch; }
.case-story p { margin: 0 0 .85em; line-height: 1.52; }
.case-story p:last-child { margin-bottom: 0; }
.case-material { margin-top: 14px; border-top: 1px solid var(--line); }
.case-material summary { padding: 14px 4px; font-weight: 700; }
.case-material summary::marker { color: var(--paper); }
.case-material figure { margin: 0 0 18px; }
.case-material figcaption { margin-top: 9px; font-size: 15px; color: var(--muted); }
.case-material .image-view { background: #0c0d0c; }
.case-material .scc-film { max-width: min(100%,102dvh); margin-inline: auto; }
.project-embed { display: block; width: 100%; height: clamp(370px,64dvh,780px); border: 0; background: #101110; }
.case-link { display: inline-flex; min-height: 44px; align-items: center; margin-top: 12px; text-underline-offset: 4px; }
.project-paging { display: flex; justify-content: flex-end; gap: 8px; padding: 0 clamp(16px,2.8vw,36px) 18px; }
@media (max-width: 840px) { .grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 580px) {
  .hero { min-height: clamp(272px,38svh,365px); background-position: 64% center; }
  .hero::before { background: linear-gradient(rgb(0 0 0 / 30%),rgb(0 0 0 / 30%)),linear-gradient(0deg,rgba(4,12,12,.84),rgba(6,15,12,.12) 90%); }
  .hero-copy { padding-bottom: 26px; }
  .hero p { font-size: 19px; }
  #studio-reel { border-radius: 9px; }
  .filters { margin: 17px 0 23px; gap: 6px; }
  .filters a { font-size: 14px; padding: 6px 10px; }
  .card-media { border-radius: 9px; }
  .card-title { font-size: clamp(20px,5vw,25px); margin-top: 8px; }
  #project-dialog { width: 96vw; max-height: 94dvh; }
}
@media (max-width: 350px) { .grid { grid-template-columns: 1fr; } }
