/* Layout: one calm 1180px column, generous air instead of rules; three type sizes; posters on a 2:3 grid with credits revealed on hover */
:root{
  --bg:#f1f1ef; --fg:#161718; --muted:#76797c; --veil:rgba(14,15,16,.78); --on-veil:#f4f4f2; --accent:#3a55d6;
  --font:"Sora","Helvetica Neue",Arial,sans-serif;
  --s:.875rem; --m:1rem; --l:clamp(1.45rem,3.4vw,2rem);
  --max:1560px; --gap:clamp(4rem,10vw,8rem);
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--bg:#101112;--fg:#e6e6e3;--muted:#8a8e92;--veil:rgba(8,9,10,.82);--on-veil:#f1f1ee;--accent:#93a6ff;color-scheme:dark}}
:root[data-theme="dark"]{--bg:#101112;--fg:#e6e6e3;--muted:#8a8e92;--veil:rgba(8,9,10,.82);--on-veil:#f1f1ee;--accent:#93a6ff;color-scheme:dark}

/* The site's own switch wins over the viewer's theme and the system setting */
:root[data-mode="dark"]{--bg:#101112;--fg:#e6e6e3;--muted:#8a8e92;--veil:rgba(8,9,10,.82);--on-veil:#f1f1ee;--accent:#93a6ff;color-scheme:dark}
:root[data-mode="light"]{--bg:#f1f1ef;--fg:#161718;--muted:#76797c;--veil:rgba(14,15,16,.78);--on-veil:#f4f4f2;--accent:#3a55d6;color-scheme:light}

*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;font-size:clamp(16px,calc(11px + .9vw),24px)}
body{margin:0;background:var(--bg);color:var(--fg);font:300 var(--m)/1.75 var(--font);letter-spacing:.015em;transition:background-color .3s,color .3s}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:10;background:var(--bg)}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
h1,h2,h3,p,ul,ol,dl,dd,figure,blockquote{margin:0;padding:0}
h1,h2,h3{font-weight:400;letter-spacing:.005em;text-wrap:balance}
ul,ol{list-style:none}
::selection{background:var(--fg);color:var(--bg)}
:focus-visible{outline:1.5px solid var(--accent);outline-offset:4px}
.wrap{max-width:var(--max);margin-inline:auto;padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px))}
@media(min-width:720px){.wrap{padding-left:max(40px,env(safe-area-inset-left,0px));padding-right:max(40px,env(safe-area-inset-right,0px))}}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.skip{position:absolute;left:-9999px}.skip:focus{left:16px;top:16px;z-index:20;background:var(--fg);color:var(--bg);padding:.5rem .8rem}
.muted{color:var(--muted)}
.big{font-size:var(--l);line-height:1.4;font-weight:300;letter-spacing:.005em}

/* Header */
.site-header{position:sticky;top:env(safe-area-inset-top,0px);z-index:9;background:var(--bg)}
.bar{display:flex;align-items:center;gap:1rem 2.4rem;padding-block:1.6rem;flex-wrap:wrap}
.mark{font-weight:400;white-space:nowrap}
.nav{display:flex;gap:2rem;margin-left:auto;font-size:var(--s)}
.nav a{color:var(--muted);transition:color .2s}
.nav a:hover,.nav a[aria-current="page"]{color:var(--fg)}
.theme{display:inline-flex;align-items:center;gap:.5rem;background:none;border:0;color:var(--muted);font:300 var(--s)/1 var(--font);letter-spacing:.015em;cursor:pointer;padding:.3rem 0}
.theme:hover{color:var(--fg)}
.theme i{width:12px;height:12px;border-radius:50%;border:1px solid currentColor;background:linear-gradient(90deg,currentColor 50%,transparent 50%)}
@media(max-width:640px){.theme{margin-left:auto;order:2}.nav{order:3;width:100%;margin-left:0;gap:1.6rem}}

main{display:block}
.block{padding-block:var(--gap) 0}

/* Home */
.hero{padding-block:clamp(4rem,12vw,9rem) 0}
.hero .big{max-width:30ch}
.hero .muted{margin-top:2rem;max-width:52ch}
.areas{display:grid;grid-template-columns:1fr;gap:2.2rem 3rem}
@media(min-width:760px){.areas{grid-template-columns:1fr 1fr}}
@media(min-width:1040px){.areas{grid-template-columns:repeat(4,1fr)}}
.areas h3{font-size:var(--m);font-weight:400;margin-bottom:.4rem}
.areas p{font-size:var(--s);color:var(--muted);line-height:1.7}
.head{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;margin-bottom:2.4rem}
.head h2{font-size:var(--l);line-height:1.3;font-weight:300}
.head a{font-size:var(--s);color:var(--muted)}.head a:hover{color:var(--fg)}

/* Tiles */
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media(min-width:720px){.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}}
@media(min-width:1040px){.grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:36px}}
.grid > li{transition:opacity .3s}
.grid > li.out{opacity:0}
.tile{position:relative;display:block;aspect-ratio:2/3;overflow:hidden;background:color-mix(in srgb,var(--fg) 6%,var(--bg));max-width:100%;cursor:default}
a.tile{cursor:pointer}
.tile img{width:100%;height:100%;object-fit:cover;transition:transform .7s cubic-bezier(.2,.7,.2,1)}
.tile .plain{position:absolute;inset:0;display:flex;align-items:flex-end;padding:1.1rem;font-size:var(--l);line-height:1.15;font-weight:300}
.info{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;gap:.15rem;padding:1.1rem;background:var(--veil);color:var(--on-veil);font-size:var(--s);line-height:1.55;opacity:0;transition:opacity .35s}
.info h3{font-size:var(--m);font-weight:400;margin-bottom:.35rem;line-height:1.35}
.info p{opacity:.78}
.info .go{opacity:1;margin-top:.7rem}
.tile:hover .info,.tile:focus .info,.tile:focus-within .info{opacity:1}
.tile:hover img{transform:scale(1.03)}

/* Work filters */
.filters{display:flex;flex-wrap:wrap;gap:.6rem 2.4rem;padding-block:clamp(2.5rem,6vw,4rem) 2.4rem;font-size:var(--s)}
.frow{display:flex;flex-wrap:wrap;gap:.4rem 1.4rem}
.frow button{font:300 var(--s)/1.6 var(--font);letter-spacing:.015em;color:var(--muted);background:none;border:0;padding:0;cursor:pointer;transition:color .2s}
.frow button:hover{color:var(--fg)}
.frow button[aria-pressed="true"]{color:var(--fg)}
.frow.sub button[aria-pressed="true"]{color:var(--accent)}
.empty{color:var(--muted);padding-block:2rem}

/* About */
.about{display:grid;grid-template-columns:1fr;gap:3rem;padding-block:clamp(3rem,8vw,6rem) 0}
@media(min-width:900px){.about{grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:5rem}.about .portrait{position:sticky;top:7rem;align-self:start}}
.portrait img{width:100%;aspect-ratio:4/5;object-fit:cover;filter:grayscale(1)}
.prose{min-width:0}
.prose h1{font-size:var(--l);font-weight:300;margin-bottom:2rem}
.prose p{max-width:60ch}
.prose p+p{margin-top:1.3rem}
.prose .big{max-width:28ch}
.prose h2{font-size:var(--m);font-weight:400;margin:4.5rem 0 1.4rem}
.prose a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;text-decoration-color:var(--accent)}
.prose a:hover{color:var(--accent)}
blockquote{margin-top:4.5rem}
blockquote p{font-size:var(--l);line-height:1.4;max-width:30ch}
blockquote footer{margin-top:1.2rem;font-size:var(--s);color:var(--muted)}
.credits{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:2rem 2.4rem}
.credits h3{font-size:var(--s);color:var(--muted);font-weight:300;margin-bottom:.5rem}
.credits li{font-size:var(--s);line-height:1.9}
.credits li span{color:var(--muted)}
.cases li+li{margin-top:.5rem}
.cases a{text-decoration:none}
.cases a span{color:var(--muted)}

/* Contact */
.contact{padding-block:clamp(4rem,12vw,9rem) 0}
.mail{display:inline-block;font-size:var(--l);line-height:1.3;overflow-wrap:anywhere;user-select:all;transition:color .2s}
.mail:hover{color:var(--accent)}
.copy{display:block;margin-top:.8rem;background:none;border:0;padding:0;color:var(--muted);font:300 var(--s)/1.6 var(--font);letter-spacing:.015em;cursor:pointer}
.copy:hover{color:var(--fg)}
.studio{display:grid;grid-template-columns:1fr;gap:2rem 5rem;padding-top:var(--gap)}
@media(min-width:860px){.studio{grid-template-columns:minmax(0,5fr) minmax(0,7fr)}}
.studio h2{font-size:var(--l);font-weight:300;line-height:1.3}
.studio .muted{margin-top:1rem;max-width:34ch}
.studio .desc p{max-width:58ch}
.kit{margin-top:2rem;font-size:var(--s);display:grid;gap:.3rem}
.kit span{color:var(--muted)}

/* Case studies */
.case-top{padding-block:clamp(3rem,9vw,6.5rem) clamp(2rem,5vw,3rem)}
.case-top h1{font-size:var(--l);font-weight:300;line-height:1.3}
.case-top p{margin-top:.8rem;color:var(--muted);font-size:var(--s);max-width:70ch}
.case-hero img{width:100%;aspect-ratio:16/8;object-fit:cover}
.case-body{padding-block:clamp(3rem,8vw,5rem) 0}
.case-body .prose{max-width:62ch;margin-left:auto;margin-right:0}
@media(max-width:899px){.case-body .prose{margin-left:0}}
.case-body .prose h2:first-child{margin-top:0}
.back{display:inline-block;margin-top:3rem;font-size:var(--s);color:var(--muted)}.back:hover{color:var(--fg)}

/* Footer */
.site-footer{padding-block:var(--gap) 3rem;font-size:var(--s);color:var(--muted)}
.site-footer .bar{justify-content:space-between;padding:0}

@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important}}
.lyric{margin-top:2.4rem;display:grid;gap:1.3rem;max-width:60ch}
.photos{display:grid;gap:16px}
.photos img{width:100%;object-fit:cover}
.photos .wide{aspect-ratio:3/2}
.pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.pair img{aspect-ratio:4/5}
.more{color:var(--muted);font-size:var(--s);transition:color .2s}.more:hover{color:var(--fg)}

/* Load-in: text and images rise softly, staggered */
@keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.hero > *,.lyric > *,.head,.grid > li,.portrait,.prose > *,.contact > *,.studio > *,.photos > *,.case-top > *,.case-hero,.filters{animation:rise .8s cubic-bezier(.2,.7,.2,1) backwards}
.hero > :nth-child(2),.prose > :nth-child(2),.case-top > :nth-child(2),.contact > :nth-child(2){animation-delay:.08s}
.lyric > :nth-child(1){animation-delay:.12s}.lyric > :nth-child(2){animation-delay:.18s}.lyric > :nth-child(3){animation-delay:.24s}.lyric > :nth-child(4){animation-delay:.3s}
.prose > :nth-child(3){animation-delay:.14s}.prose > :nth-child(4){animation-delay:.2s}.prose > :nth-child(n+5){animation-delay:.26s}
.head{animation-delay:.2s}
.grid > li:nth-child(1){animation-delay:.25s}.grid > li:nth-child(2){animation-delay:.31s}.grid > li:nth-child(3){animation-delay:.37s}.grid > li:nth-child(4){animation-delay:.43s}
.grid > li:nth-child(5){animation-delay:.49s}.grid > li:nth-child(6){animation-delay:.55s}.grid > li:nth-child(7){animation-delay:.61s}.grid > li:nth-child(8){animation-delay:.67s}
.grid > li:nth-child(n+9){animation-delay:.72s}
.portrait,.case-hero,.photos > *{animation-duration:1.1s;animation-delay:.1s}
.studio > :nth-child(2){animation-delay:.12s}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important}}
.lyric > :nth-child(5){animation-delay:.36s}
.tile .plain.over{color:#f4f4f2;font-family:"Syne",var(--font);font-weight:800;text-transform:uppercase;letter-spacing:.04em;font-size:clamp(1.6rem,3.6vw,2.6rem);line-height:1;padding:1.2rem;text-shadow:0 2px 18px rgba(0,0,0,.4)}

/* SoundCloud player */
.listen .sc{display:block;width:100%;height:300px;border:0;border-radius:4px}
.listen .sc-link{margin:12px 0 0}
.listen .sc-link a{color:var(--muted, inherit);text-decoration:none}
.listen .sc-link a:hover{text-decoration:underline}
