:root{
  --bg:#fff;--text:#050505;--muted:#777;--line:#e5e5e5;--soft:#f7f7f7;
  --max:1680px;--pad:24px;--header:74px;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;background:#fff;}
body{margin:0;background:#fff;color:var(--text);font-family:Helvetica,Arial,sans-serif;font-size:14px;line-height:1.35;-webkit-font-smoothing:antialiased;text-rendering:geometricPrecision;}
a{color:inherit;text-decoration:none;}
a:hover{color:var(--muted);}
.site-header{position:fixed;top:0;left:0;right:0;z-index:50;height:var(--header);display:flex;align-items:flex-start;justify-content:space-between;padding:21px var(--pad);background:linear-gradient(to bottom,rgba(255,255,255,.99),rgba(255,255,255,.92) 72%,rgba(255,255,255,0));}
.brand{display:flex;flex-direction:column;gap:3px;letter-spacing:-.02em;}
.brand-main{font-weight:700;font-size:19px;line-height:1;}
.brand-sub{font-weight:300;font-size:12px;color:var(--muted);letter-spacing:0;}
.nav{display:flex;gap:25px;text-transform:lowercase;font-size:14px;font-weight:400;line-height:1.1;}
.nav a.active{font-weight:700;}
main{padding:calc(var(--header) + 22px) var(--pad) 60px;max-width:var(--max);margin:0 auto;}
.home-main{height:100vh;max-width:none;margin:0;padding:0;background:#fff;overflow:hidden;}
.hero-slide{position:fixed;inset:0;background:#fff;display:flex;align-items:center;justify-content:center;padding:92px 54px 56px;cursor:e-resize;}
.hero-slide img,.hero-slide video{max-width:min(86vw,1380px);max-height:77vh;width:auto;height:auto;object-fit:contain;display:block;mix-blend-mode:multiply;}
.hero-caption{position:fixed;left:var(--pad);bottom:22px;font-size:12px;color:var(--muted);font-weight:400;display:flex;gap:12px;}
.hero-count{position:fixed;right:var(--pad);bottom:22px;font-size:12px;color:var(--muted);font-weight:400;}
.page-title{display:grid;grid-template-columns:1fr auto;gap:32px;align-items:end;margin:20px 0 52px;border-bottom:1px solid var(--line);padding-bottom:14px;}
.page-title h1{margin:0;font-size:clamp(28px,5.2vw,86px);line-height:.92;letter-spacing:-.055em;font-weight:700;}
.page-title p{max-width:420px;margin:0 0 7px;color:var(--muted);font-weight:300;}
.projects-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:34px 22px;}
.project-card{display:block;}
.thumb{aspect-ratio:4/3;background:#fff;border:1px solid transparent;display:flex;align-items:center;justify-content:center;overflow:hidden;margin-bottom:10px;}
.thumb img{width:100%;height:100%;object-fit:contain;display:block;filter:none;transition:transform .35s ease;mix-blend-mode:multiply;}
.project-card:hover .thumb img{transform:scale(1.015);}
.project-meta{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:baseline;font-size:13px;}
.project-meta strong{font-weight:700;letter-spacing:-.01em;}
.project-meta span{font-weight:300;color:var(--muted);}
.project-status{margin-top:3px;font-size:11px;color:var(--muted);font-weight:300;text-transform:uppercase;letter-spacing:.04em;}
.project-layout{display:grid;grid-template-columns:minmax(300px,390px) minmax(0,1fr);gap:54px;align-items:start;}
.project-info{position:relative;align-self:start;padding-bottom:36px;min-width:0;}
.back{display:inline-block;margin-bottom:24px;color:var(--muted);font-size:12px;font-weight:400;}
.project-info h1{font-size:clamp(34px,5vw,76px);line-height:.9;letter-spacing:-.055em;margin:0 0 14px;font-weight:700;}
.facts{display:grid;grid-template-columns:auto 1fr;gap:4px 18px;margin:0 0 32px;font-size:12px;text-transform:uppercase;letter-spacing:.035em;color:var(--muted);}
.facts dt{font-weight:700;color:var(--text);}
.facts dd{margin:0;font-weight:400;}
.description{font-size:14px;line-height:1.58;font-weight:400;color:#222;}
.description p{margin:0 0 1em;}
.description h2{margin:2.1em 0 .65em;font-size:12px;text-transform:uppercase;letter-spacing:.06em;font-weight:700;}
.description ul{margin:.5em 0 1.4em 1.1em;padding:0;}
.description li{margin:.3em 0;}
.description a{text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere;}
.project-media{position:sticky;top:94px;min-width:0;align-self:start;}
.carousel-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:8px;height:32px;margin-bottom:8px;}
.carousel-button{appearance:none;border:0;background:transparent;color:var(--text);font:inherit;font-size:18px;line-height:1;width:34px;height:32px;padding:0;cursor:pointer;border-radius:0;}
.carousel-button:hover{color:var(--muted);}
.carousel-button:focus-visible{outline:1px solid var(--text);outline-offset:1px;}
.carousel-count{min-width:62px;text-align:center;color:var(--muted);font-size:11px;font-weight:400;letter-spacing:.03em;}
.media-slider{display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;overscroll-behavior-inline:contain;min-width:0;}
.media-slider::-webkit-scrollbar{display:none;}
.media-item{flex:0 0 100%;scroll-snap-align:start;scroll-snap-stop:always;margin:0;background:#fff;min-width:0;display:grid;grid-template-rows:minmax(0,1fr) auto;}
.media-frame{height:clamp(440px,68vh,820px);display:flex;align-items:center;justify-content:center;background:#fff;min-width:0;}
.media-item img{max-width:100%;max-height:100%;width:auto;height:auto;display:block;background:#fff;object-fit:contain;mix-blend-mode:multiply;}
.media-item figcaption{margin-top:7px;color:var(--muted);font-size:11px;font-weight:400;min-height:15px;}
.text-page{display:grid;grid-template-columns:minmax(240px,360px) minmax(0,760px);gap:64px;align-items:start;}
.text-page h1{margin:0;font-size:clamp(40px,7vw,110px);line-height:.9;letter-spacing:-.06em;font-weight:700;}
.text-body{font-size:17px;line-height:1.48;font-weight:400;max-width:780px;}
.text-body p{margin:0 0 1.1em;}
.text-body strong{font-weight:700;}
.text-body h2{margin:2.35em 0 .7em;font-size:11px;line-height:1.2;text-transform:uppercase;letter-spacing:.065em;font-weight:700;}
.text-body ul{list-style:none;margin:.35em 0 1.7em;padding:0;}
.text-body li{margin:.34em 0;}
.text-body a{text-decoration:underline;text-underline-offset:4px;overflow-wrap:anywhere;}
.portrait{width:100%;margin-top:32px;background:#fff;}
.portrait img{width:100%;height:auto;display:block;filter:grayscale(1);mix-blend-mode:multiply;}
.contact-lines{font-size:20px;line-height:1.55;font-weight:300;}
.contact-lines a{text-decoration:underline;text-underline-offset:4px;}
.footer{padding:0 var(--pad) 22px;max-width:var(--max);margin:0 auto;color:var(--muted);font-size:11px;font-weight:300;}
@media (max-width:1100px){
  .project-layout{grid-template-columns:minmax(270px,340px) minmax(0,1fr);gap:38px;}
  .media-frame{height:clamp(390px,60vh,680px);}
}
@media (max-width:980px){
  .projects-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .project-layout{grid-template-columns:1fr;gap:34px;}
  .project-info{position:relative;top:auto;max-width:780px;padding-bottom:0;}
  .project-media{position:relative;top:auto;}
  .text-page{grid-template-columns:1fr;gap:30px;}
  .page-title{grid-template-columns:1fr;gap:16px;}
  .hero-slide{padding:90px 20px 58px;}
  .hero-slide img{max-width:94vw;max-height:74vh;}
  .media-frame{height:clamp(360px,58vw,620px);}
}
@media (max-width:700px){
  :root{--pad:16px;--header:66px;}
  .site-header{padding-top:18px;padding-bottom:12px;align-items:flex-start;}
  .brand-main{font-size:17px;}
  .brand-sub{display:none;}
  .nav{gap:12px;font-size:12.5px;font-weight:400;}
  main{padding-top:calc(var(--header) + 18px);}
  .projects-grid{grid-template-columns:1fr;gap:30px;}
  .project-meta{font-size:14px;}
  .project-layout{gap:28px;}
  .project-info h1{font-size:46px;}
  .description{font-size:14px;line-height:1.58;}
  .facts{margin-bottom:24px;}
  .carousel-toolbar{justify-content:space-between;margin:0 0 8px;}
  .carousel-button{width:44px;height:44px;font-size:20px;}
  .carousel-count{font-size:11px;}
  .media-frame{height:clamp(240px,72vw,430px);}
  .media-item figcaption{font-size:10px;margin-top:6px;}
  .text-body{font-size:15px;}
  .contact-lines{font-size:16px;}
  .hero-slide{padding:78px 16px 48px;}
  .hero-slide img{max-width:96vw;max-height:76vh;}
  .hero-caption,.hero-count{bottom:16px;font-size:11px;}
  .page-title{margin-top:8px;margin-bottom:34px;}
}
@media (max-width:380px){
  .nav{gap:9px;font-size:11.5px;}
  .brand-main{font-size:16px;}
  .project-info h1{font-size:42px;}
}

/* Enlarged project image viewer */
.media-item img.is-zoomable{cursor:zoom-in;}
.media-item img.is-zoomable:focus-visible{outline:1px solid var(--text);outline-offset:4px;}
body.lightbox-open{overflow:hidden;}
.lightbox{position:fixed;inset:0;z-index:1000;display:none;background:rgba(255,255,255,.985);color:var(--text);}
.lightbox.is-open{display:block;}
.lightbox-stage{position:absolute;inset:52px 70px 52px;display:flex;align-items:center;justify-content:center;cursor:zoom-out;}
.lightbox-image{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;background:#fff;mix-blend-mode:normal;cursor:default;}
.lightbox-close,.lightbox-nav{position:absolute;z-index:2;appearance:none;border:0;background:transparent;color:var(--text);font-family:Helvetica,Arial,sans-serif;font-weight:400;cursor:pointer;padding:0;}
.lightbox-close{top:18px;right:24px;width:42px;height:42px;font-size:31px;line-height:38px;}
.lightbox-nav{top:50%;transform:translateY(-50%);width:54px;height:54px;font-size:25px;line-height:54px;}
.lightbox-prev{left:12px;}
.lightbox-next{right:12px;}
.lightbox-close:hover,.lightbox-nav:hover{color:var(--muted);}
.lightbox-close:focus-visible,.lightbox-nav:focus-visible{outline:1px solid var(--text);outline-offset:1px;}
.lightbox-caption,.lightbox-count{position:absolute;bottom:18px;font-size:11px;font-weight:400;color:var(--muted);letter-spacing:.02em;}
.lightbox-caption{left:24px;max-width:70vw;}
.lightbox-count{right:24px;}
@media (max-width:700px){
  .lightbox-stage{inset:58px 12px 66px;}
  .lightbox-close{top:8px;right:10px;width:44px;height:44px;font-size:29px;}
  .lightbox-nav{top:auto;bottom:8px;transform:none;width:44px;height:44px;line-height:44px;font-size:20px;}
  .lightbox-prev{left:8px;}
  .lightbox-next{right:8px;}
  .lightbox-caption{left:60px;right:100px;bottom:22px;max-width:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .lightbox-count{right:58px;bottom:22px;}
}
