/*
VOICE   quiet, gallery-like; the projects carry the colour
IDEA    the printed portfolio, re-bound as a site: a dark cover, then one cover per project
PICTURE each project card is its own opener — V of glowing stages, terracotta arch, navy arcade, checkerboard, dotted arch
COLOUR  white paper + near-black ink for the frame; each project brings its own field
TYPE    Michroma for the name, Inter Tight for headings and text, Plex Mono for small labels (as in the PDF)
LAYOUT  hero → project grid → about → contact; project pages = cover, facts, then chapters that keep the PDF's per-stage colours
*/
:root{--paper:#f7f6f3;--ink:#161616;--muted:#5d5d62;--rule:#dcdad4;--night:#0d0d0f;--r:10px;
  --sans:'Inter Tight',system-ui,sans-serif;--mono:'IBM Plex Mono',ui-monospace,monospace;--wide:'Michroma','Inter Tight',sans-serif}
*{box-sizing:border-box;min-width:0}
html{scroll-behavior:smooth;scroll-padding-top:72px}
body{margin:0;background:var(--paper);color:var(--ink);font:17px/1.6 var(--sans);overflow-x:clip;-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
button{font:inherit;color:inherit}
:focus-visible{outline:2px solid #2f74e6;outline-offset:3px}
.wrap{max-width:1320px;margin:0 auto;padding:0 max(4vw,18px)}
.mono{font-family:var(--mono);font-size:13px;letter-spacing:.06em}

/* top bar */
.top{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px max(4vw,18px);
  background:rgba(13,13,15,.86);backdrop-filter:blur(10px);color:#ededed}
.brand{font-family:var(--wide);font-size:14px;letter-spacing:.14em;text-decoration:none;white-space:nowrap}
.nav{display:flex;gap:4px;flex-wrap:wrap}
.nav a{text-decoration:none;font-size:15px;padding:10px 12px;border-radius:999px;color:#c9c9ce}
.nav a:hover{color:#fff;background:#ffffff14}

/* home hero */
.hero{background:var(--night);color:#ededed;padding:clamp(48px,8vw,110px) 0 clamp(36px,5vw,64px)}
.hero h1{font-family:var(--wide);font-weight:400;font-size:clamp(34px,6.2vw,84px);line-height:1.05;letter-spacing:.08em;margin:0 0 22px}
.hero p{margin:0;max-width:640px;color:#b5b5ba;font-size:clamp(17px,1.6vw,21px)}
.stages{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;max-width:520px;margin-top:40px}
.stages i{height:6px;display:block}
.hero-row{display:flex;justify-content:space-between;align-items:end;gap:32px;flex-wrap:wrap}
.hero .cta{display:inline-flex;align-items:center;gap:10px;padding:14px 22px;border-radius:999px;background:#ededed;color:#0d0d0f;text-decoration:none;font-weight:600}

/* section headings */
.head{display:flex;justify-content:space-between;align-items:baseline;gap:16px;border-bottom:1px solid var(--ink);padding-bottom:14px;margin-bottom:28px}
.head h2{margin:0;font-size:clamp(28px,3.4vw,44px);line-height:1.05;letter-spacing:-.02em;font-weight:800}
.band{padding:clamp(44px,6vw,88px) 0}

/* project grid */
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(16px,2vw,28px)}
.card{display:flex;flex-direction:column;gap:14px;text-decoration:none}
.card:first-child{grid-column:1/-1}
.card .cover{transition:transform .5s cubic-bezier(.2,.7,.2,1),box-shadow .5s}
.card:hover .cover{transform:translateY(-4px);box-shadow:0 18px 40px -18px rgba(0,0,0,.45)}
.card-meta{display:flex;justify-content:space-between;gap:12px;align-items:baseline}
.card-meta b{font-size:22px;font-weight:600;letter-spacing:-.01em}
.card-meta span{color:var(--muted);font-size:15px;text-align:right}
@media(max-width:760px){.grid{grid-template-columns:minmax(0,1fr)}.card-meta{flex-direction:column;gap:2px}.card-meta span{text-align:left}}

/* ===== covers: one look per project, sized from the cover's own width (cqw) ===== */
.cover{container-type:inline-size;position:relative;overflow:hidden;border-radius:var(--r);aspect-ratio:16/9;background:var(--c-bg);color:var(--c-ink)}
.card:first-child .cover{aspect-ratio:21/9}
.cover .tag{position:absolute;left:5cqw;top:5cqw;font-family:var(--mono);font-size:max(11px,1.25cqw);letter-spacing:.1em;text-transform:uppercase;opacity:.85}
.cover .ttl{position:absolute;left:5cqw;bottom:5cqw;max-width:46cqw}
.cover .ttl h3{margin:0;font-size:max(22px,5.4cqw);line-height:.95;letter-spacing:-.03em;font-weight:900}
.cover .ttl p{margin:1.2cqw 0 0;font-size:max(12px,1.5cqw);line-height:1.35;opacity:.85}
.cover img{object-fit:cover;width:100%;height:100%}
/* Project V */
.cv-pv .v{position:absolute;right:4cqw;top:6cqw;bottom:6cqw;width:52cqw;display:grid;grid-template-columns:repeat(5,1fr);gap:1.6cqw;align-items:start}
.cv-pv .v div{border-radius:.8cqw;overflow:hidden;border:2px solid var(--g);box-shadow:0 0 2.4cqw var(--g),0 0 .6cqw var(--g);height:66%}
.cv-pv .v div:nth-child(2),.cv-pv .v div:nth-child(4){margin-top:8%}
.cv-pv .v div:nth-child(3){margin-top:16%}
.cv-pv .logo{position:absolute;left:5cqw;top:30%;width:34cqw;height:auto;object-fit:contain}
.cv-pv .bar{position:absolute;left:5cqw;top:calc(30% + 9cqw);display:grid;grid-template-columns:repeat(5,1fr);gap:.8cqw;width:34cqw}
.cv-pv .bar i{height:.5cqw;min-height:3px}
.cv-pv .ttl{max-width:36cqw}.cv-pv .ttl h3{display:none}
/* Azao */
.cv-azao .arch{position:absolute;right:6cqw;bottom:0;width:32cqw;height:86%;border-radius:16cqw 16cqw 0 0;overflow:hidden;border:1cqw solid #f0dccd}
.cv-azao .pad{position:absolute;bottom:14%;width:9cqw;height:30cqw;border-radius:999px;overflow:hidden;border:.6cqw solid #f0dccd}
.cv-azao .pad.a{right:40cqw}.cv-azao .pad.b{right:50.5cqw;bottom:24%}
.cv-azao .ttl{max-width:36cqw}.cv-azao .ttl h3{font-size:max(22px,4.8cqw)}
.cv-azao .zebra{position:absolute;left:0;right:0;bottom:0;height:3.2cqw;background:repeating-linear-gradient(115deg,#1d1310 0 1.4cqw,#f0dccd 1.4cqw 2.8cqw)}
.cv-azao .ttl{bottom:8cqw}
/* The Chedi */
.cv-chedi .arcs{position:absolute;right:5cqw;top:9cqw;bottom:8cqw;width:50cqw;display:grid;grid-template-columns:1fr 1.25fr 1fr;gap:2cqw;align-items:end}
.cv-chedi .arcs div{height:82%;border-radius:999px 999px .6cqw .6cqw;overflow:hidden;border:.5cqw solid var(--c-acc)}
.cv-chedi .arcs div:nth-child(2){height:100%}
.cv-chedi .tiles{position:absolute;left:0;right:0;bottom:0;height:4cqw;opacity:.9;
  background:conic-gradient(from 45deg,var(--c-acc) 25%,transparent 0 50%,var(--c-acc) 0 75%,transparent 0) 0 0/4cqw 4cqw}
.cv-chedi .ttl{bottom:9cqw;max-width:37cqw}
/* Vans */
.cv-vans .checks{position:absolute;left:0;right:0;top:0;height:6cqw;background:conic-gradient(#111 25%,#fff 0 50%,#111 0 75%,#fff 0) 0 0/6cqw 6cqw}
.cv-vans .ph{position:absolute;overflow:hidden;border-radius:.8cqw;border:.7cqw solid #fff;box-shadow:0 1.5cqw 3cqw -1cqw rgba(0,0,0,.4)}
.cv-vans .ph.a{right:5cqw;top:12cqw;width:36cqw;aspect-ratio:16/10;transform:rotate(2deg)}
.cv-vans .ph.b{right:25cqw;top:34cqw;width:24cqw;aspect-ratio:16/10;transform:rotate(-4deg)}
.cv-vans .ph.c{right:2cqw;top:38cqw;width:22cqw;aspect-ratio:16/10;transform:rotate(-1deg)}
.cv-vans .yel{position:absolute;left:5cqw;top:13cqw;width:9cqw;height:2.2cqw;background:#f2d21b}
.cv-vans .ttl h3{text-transform:uppercase;font-size:max(24px,7.4cqw);line-height:.95}
.cv-vans .ttl h3 em{font-style:normal;background:var(--c-acc);color:#fff;padding:0 1cqw}
.cv-vans .tag{top:9cqw}
.cv-vans .ttl{max-width:44cqw}
/* Cilantro */
.cv-cilantro .dot{position:absolute;right:7cqw;top:6cqw;bottom:-2cqw;width:34cqw;border:.5cqw dotted var(--c-acc);border-bottom:0;border-radius:17cqw 17cqw 0 0;padding:2.4cqw 2.4cqw 0}
.cv-cilantro .dot div{width:100%;height:100%;border-radius:15cqw 15cqw 0 0;overflow:hidden}
.cv-cilantro .pair{position:absolute;right:44cqw;bottom:6cqw;display:flex;gap:1.2cqw;align-items:center}
.cv-cilantro .pair div{width:13cqw;aspect-ratio:4/3;border-radius:.8cqw;overflow:hidden;border:.4cqw solid #f6f0e2}
.cv-cilantro .pair b{color:var(--c-acc);font-size:max(14px,2.4cqw)}
.cv-cilantro .ttl{bottom:auto;top:13cqw}
/* Amr Amria */
.cv-amria .oak{position:absolute;right:6cqw;top:5cqw;bottom:1.6cqw;width:36cqw;border:1.3cqw solid #c39a68;border-bottom:0;border-radius:18cqw 18cqw 0 0;overflow:hidden;box-shadow:0 2cqw 4cqw -1cqw rgba(80,55,30,.35)}
.cv-amria .plan{position:absolute;right:44cqw;bottom:7cqw;width:13cqw;aspect-ratio:.877;background:#fff;border-radius:.8cqw;padding:.8cqw;box-shadow:0 1.4cqw 3cqw -1cqw rgba(80,55,30,.35)}
.cv-amria .plan img{object-fit:contain}
.cv-amria .oakband{position:absolute;left:0;right:0;bottom:0;height:1.6cqw;background:#c39a68}
.cv-amria .ttl{max-width:36cqw;bottom:auto;top:12cqw}.cv-amria .ttl h3{font-size:max(22px,5cqw)}
.cv-amria .tag{color:#8a5a3c}
/* Room L2-231 */
.cv-ward .rail{position:absolute;left:0;right:0;top:63%;height:5cqw;background:#86a294;box-shadow:inset 0 1.4cqw 0 #9fb7aa,inset 0 -1.2cqw 0 #6f8b7d}
.cv-ward .bays{position:absolute;right:5cqw;top:5cqw;width:50cqw;aspect-ratio:1.34;border-radius:.8cqw;overflow:hidden;box-shadow:0 2cqw 4cqw -1.5cqw rgba(30,45,40,.4)}
.cv-ward .door{position:absolute;right:2.5cqw;bottom:4cqw;width:16cqw;aspect-ratio:1;border:.6cqw solid #fff;border-radius:.8cqw;overflow:hidden;box-shadow:0 1.4cqw 3cqw -1cqw rgba(30,45,40,.4)}
.cv-ward .chips{position:absolute;left:5cqw;top:15cqw;display:flex;flex-direction:column;gap:.9cqw}
.cv-ward .chips span{display:flex;align-items:center;gap:.8cqw;background:#fff;border-radius:999px;padding:.6cqw 1.4cqw .6cqw .7cqw;font-size:max(10px,1.3cqw);width:max-content}
.cv-ward .chips i{width:2cqw;height:2cqw;border-radius:50%}
.cv-ward .chips b{font-family:var(--mono);font-weight:500;color:#4f6d5e}
.cv-ward .ttl{max-width:38cqw}.cv-ward .tag{color:#4f6d5e;max-width:38cqw}
@media(max-width:560px){.cv-ward .chips{display:none}}
/* any new project */
.cv-default .pic{position:absolute;right:0;top:0;bottom:0;width:58%}
.cv-default .pic::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,var(--c-bg),transparent 35%)}
@media(max-width:560px){
  .card:first-child .cover{aspect-ratio:16/10}
  .cover .ttl p{display:none}
}

/* ===== project page ===== */
.p-hero .cover{border-radius:0;aspect-ratio:16/9}
.p-hero .cover .ttl p{display:none}
.chap.solo .wrap{grid-template-columns:minmax(0,1fr)}
.chap.solo .txt{position:static;max-width:none}
.chap.solo .txt>p{max-width:70ch}
.chap.solo .facts{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.p-intro{background:var(--c-bg);color:var(--c-ink);padding:clamp(28px,4vw,56px) 0}
.p-intro .wrap{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:clamp(24px,5vw,80px)}
.p-intro h1{margin:0 0 14px;font-size:clamp(30px,4vw,52px);line-height:1.05;letter-spacing:-.02em;font-weight:800;text-wrap:balance}
.p-intro p{margin:0;font-size:18px;max-width:62ch;opacity:.92}
.meta{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px 22px;align-content:start;border-top:1px solid currentColor;padding-top:16px;margin:0}
.meta dt{font-family:var(--mono);font-size:13px;opacity:.75;padding-top:3px}
.meta dd{margin:0;font-size:16px}
@media(max-width:760px){.p-intro .wrap{grid-template-columns:minmax(0,1fr)}}
.chap-nav{position:sticky;top:58px;z-index:10;background:color-mix(in srgb,var(--paper) 92%,transparent);backdrop-filter:blur(8px);border-bottom:1px solid var(--rule)}
.chap-nav .wrap{display:flex;gap:6px;overflow-x:auto;padding-top:10px;padding-bottom:10px;scrollbar-width:none}
.chap-nav a{flex:none;text-decoration:none;font-size:14px;padding:8px 14px;border-radius:999px;border:1px solid var(--rule);white-space:nowrap;display:flex;gap:8px;align-items:center}
.chap-nav a i{width:9px;height:9px;border-radius:50%;background:var(--dot,var(--ink))}
.chap-nav a:hover{border-color:var(--ink)}

.chap{background:var(--s-bg);color:var(--s-ink);padding:clamp(44px,6vw,96px) 0}
.chap .wrap{display:grid;grid-template-columns:minmax(0,380px) minmax(0,1fr);gap:clamp(24px,4vw,64px);align-items:start}
.chap .txt{position:sticky;top:120px;display:flex;flex-direction:column;gap:18px}
.chap .lab{font-family:var(--mono);font-size:13px;letter-spacing:.06em;opacity:.75}
.marker{display:flex;flex-direction:column;gap:10px}
.marker .segs{display:grid;grid-template-columns:repeat(var(--n),1fr);gap:5px;max-width:260px}
.marker .segs i{height:5px;background:currentColor;opacity:.18}
.marker .segs i.on{background:var(--m);opacity:1}
.marker b{align-self:flex-start;background:var(--m);color:#fff;font-family:var(--mono);font-weight:500;font-size:13px;letter-spacing:.06em;padding:6px 12px;border-radius:4px}
.chap h2{margin:0;font-size:clamp(30px,3.4vw,48px);line-height:1.04;letter-spacing:-.025em;font-weight:800;color:var(--s-acc,inherit);text-wrap:balance}
.chap.big h2{font-size:clamp(36px,4.4vw,60px);text-transform:var(--tt,none)}
.chap p{margin:0;max-width:62ch}
.pts{list-style:none;margin:0;padding:0;counter-reset:p}
.pts li{counter-increment:p;display:grid;grid-template-columns:40px minmax(0,1fr);padding:10px 0;border-top:1px solid color-mix(in srgb,currentColor 22%,transparent);font-size:15px;line-height:1.45}
.pts li::before{content:counter(p,decimal-leading-zero);font-family:var(--mono);font-size:13px;opacity:.7;padding-top:2px}
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:18px 24px}
.facts div{border-top:1px solid currentColor;padding-top:10px}
.facts h4{margin:0 0 6px;font-family:var(--mono);font-weight:400;font-size:13px;letter-spacing:.06em;opacity:.75}
.facts ul{margin:0;padding:0;list-style:none;font-size:15px;line-height:1.45}
.facts li+li{margin-top:4px}
.swatches{display:flex;gap:10px;flex-wrap:wrap}
.swatches span{display:flex;flex-direction:column;gap:6px;font-size:13px;font-family:var(--mono)}
.swatches i{width:64px;height:44px;border-radius:6px;border:1px solid #0001}
@media(max-width:900px){.chap .wrap{grid-template-columns:minmax(0,1fr)}.chap .txt{position:static}}

/* gallery: justified rows, images never cropped */
.gal{display:flex;flex-wrap:wrap;gap:14px}
.gal figure{margin:0;flex:var(--ar) 1 calc(var(--ar) * var(--b,185px));max-width:calc(var(--ar) * 600px);display:flex;flex-direction:column;gap:8px;cursor:zoom-in}
.gal img{width:100%;height:auto;border-radius:var(--r);background:#0000000d}
.gal figure.drw img{background:#fff;padding:2%;box-shadow:inset 0 0 0 1px #0001}
.gal figcaption{font-family:var(--mono);font-size:12.5px;opacity:.75;line-height:1.4}
.gal::after{content:"";flex:10 0 0}
.gal:has(>figure:only-child)::after{display:none}
@media(max-width:560px){.gal figure{flex-basis:100%}}
.cmp{display:flex;flex-direction:column;gap:28px}
.cmp-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
.cmp-row h3{grid-column:1/-1;margin:0;font-size:18px;font-weight:600}
.cmp-row figure{margin:0;cursor:zoom-in}
.cmp-row img{border-radius:var(--r);width:100%;aspect-ratio:4/3;object-fit:cover}
.cmp-row figcaption{font-family:var(--mono);font-size:12.5px;opacity:.75;margin-top:6px}

.next{display:block;text-decoration:none;background:var(--night);color:#ededed;padding:clamp(36px,5vw,64px) 0}
.next .wrap{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}
.next b{font-size:clamp(28px,4vw,56px);letter-spacing:-.02em;font-weight:800}
.next:hover b{text-decoration:underline;text-underline-offset:8px}

/* about */
.about{display:grid;grid-template-columns:minmax(0,340px) minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,4vw,56px);align-items:start}
.about img{border-radius:var(--r);width:100%}
.about h3{margin:0 0 14px;font-size:clamp(30px,3vw,44px);line-height:1;font-weight:800;letter-spacing:-.03em}
.about p{margin:0 0 14px}
.blk{border-top:1px solid var(--ink);padding-top:12px;margin-bottom:28px}
.blk h4{margin:0 0 10px;font-family:var(--mono);font-weight:400;font-size:13px;letter-spacing:.06em;color:var(--muted)}
.exp{display:grid;grid-template-columns:118px minmax(0,1fr);gap:4px 16px;padding:10px 0;border-top:1px solid var(--rule)}
.exp:first-of-type{border-top:0}
.exp span{font-family:var(--mono);font-size:13px;color:var(--muted);padding-top:3px}
.exp b{font-weight:600}.exp small{display:block;color:var(--muted);font-size:15px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips span{border:1px solid var(--ink);border-radius:999px;padding:4px 12px;font-size:14px}
@media(max-width:1000px){.about{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.about>div:first-child{grid-row:span 2}}
@media(max-width:640px){.about{grid-template-columns:minmax(0,1fr)}.about>div:first-child{max-width:340px}}

/* footer */
.foot{background:var(--night);color:#ededed;padding:clamp(48px,6vw,88px) 0 32px}
.foot .wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px}
.foot h2{font-family:var(--wide);font-weight:400;font-size:clamp(26px,3.6vw,48px);letter-spacing:.1em;line-height:1.1;margin:0 0 16px}
.foot p{color:#a3a3a9;margin:0;max-width:46ch}
.crow{display:grid;grid-template-columns:110px minmax(0,1fr);gap:16px;padding:14px 0;border-top:1px solid #2a2a2f;font-size:clamp(16px,1.6vw,20px)}
.crow span{font-family:var(--mono);font-size:12px;letter-spacing:.08em;color:#a3a3a9;padding-top:5px}
.crow a{text-decoration:none;overflow-wrap:anywhere}.crow a:hover{text-decoration:underline}
.small{grid-column:1/-1;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;color:#77777d;font-family:var(--mono);font-size:12px;border-top:1px solid #2a2a2f;padding-top:18px}
@media(max-width:760px){.foot .wrap{grid-template-columns:minmax(0,1fr)}}

/* lightbox */
.lightbox{position:fixed;inset:0;z-index:50;background:rgba(8,8,10,.94);display:flex;align-items:center;justify-content:center;padding:56px 64px}
.lightbox[hidden]{display:none}
.lightbox figure{margin:0;max-width:100%;max-height:100%;display:flex;flex-direction:column;gap:10px;align-items:center}
.lightbox img{max-width:100%;max-height:calc(100vh - 140px);width:auto;border-radius:6px}
.lightbox figcaption{color:#c9c9ce;font-family:var(--mono);font-size:13px;text-align:center}
.lightbox button{position:absolute;background:#ffffff14;border:0;color:#fff;width:48px;height:48px;border-radius:50%;font-size:28px;line-height:1;cursor:pointer}
.lightbox button:hover{background:#ffffff2a}
.lb-x{top:14px;right:14px}.lb-prev{left:10px;top:50%;translate:0 -50%}.lb-next{right:10px;top:50%;translate:0 -50%}
.fade{animation:fade .5s ease both}
@keyframes fade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.fade{animation:none}.card .cover{transition:none}}
.err{padding:80px 0;text-align:center;color:var(--muted)}
.cv-pv .tag,.cv-vans .tag{max-width:40cqw}
@media(max-width:600px){
  .top{padding:10px 14px}.brand{font-size:12px}
  .nav{flex-wrap:nowrap;gap:0}.nav a{padding:10px 8px;font-size:14px}
  .head span{display:none}
  .p-hero .cover{aspect-ratio:16/10}
}
.cv-amria .tag{max-width:44cqw}
@media(max-width:600px){.cv-vans .yel{top:17cqw}}
