:root{--bg:#ece6db;--panel:#f5f0e7;--ink:#2c2925;--mut:#988e80;--line:#dbd3c5;--accent:#937a59;--dark:#403b35;}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{background:var(--bg);color:var(--ink);font-family:'Inter',system-ui,sans-serif;-webkit-font-smoothing:antialiased;}
[data-lang]{display:none;}
[data-lang].active{display:inline;}
.nav{position:sticky;top:0;z-index:30;display:flex;align-items:stretch;min-height:66px;background:var(--dark);border-bottom:1px solid rgba(255,255,255,.14);padding-left:3vw;}
.nav .logo{display:flex;align-items:center;color:#f3efe7;font-family:'Inter';font-weight:700;font-size:1.05rem;text-transform:uppercase;letter-spacing:.08em;text-decoration:none;white-space:nowrap;padding-right:2.4vw;}
.nav ul{display:flex;list-style:none;align-items:stretch;}
.nav li{display:flex;}
.nav a.link{display:flex;align-items:center;padding:0 1.5rem;color:#a9a094;font-family:'Inter';font-weight:500;font-size:12px;text-transform:uppercase;letter-spacing:.12em;text-decoration:none;border-left:1px solid rgba(255,255,255,.14);transition:color .2s;white-space:nowrap;}
.nav a.link:hover,.nav a.link.active{color:#fff;}
.langs{display:flex;align-items:stretch;margin-left:auto;border-left:1px solid rgba(255,255,255,.14);}
.langs button{padding:0 1rem;background:none;border:none;border-left:1px solid rgba(255,255,255,.14);color:#88806f;font-family:'Inter';font-size:11px;letter-spacing:.1em;cursor:pointer;}
.langs button:first-child{border-left:none;}
.langs button.active{color:#fff;}
.navtoggle{display:none;width:48px;background:none;border:none;border-left:1px solid rgba(255,255,255,.14);flex-direction:column;gap:4px;align-items:center;justify-content:center;cursor:pointer;}
.navtoggle span{display:block;width:20px;height:2px;background:#cfc7b8;transition:transform .25s,opacity .25s;}
.nav.open .navtoggle span:nth-child(1){transform:translateY(6px) rotate(45deg);}
.nav.open .navtoggle span:nth-child(2){opacity:0;}
.nav.open .navtoggle span:nth-child(3){transform:translateY(-6px) rotate(-45deg);}
@media(max-width:1000px){
  .nav ul{display:none;}
  .navtoggle{display:flex;}
  .nav.open ul{display:flex;flex-direction:column;position:absolute;top:100%;left:0;right:0;background:var(--dark);border-top:1px solid rgba(255,255,255,.14);z-index:40;}
  .nav.open ul li{width:100%;}
  .nav.open a.link{width:100%;border-left:none;border-bottom:1px solid rgba(255,255,255,.14);padding:1.05rem 3vw;font-size:13px;}
}
.intro{padding:2.5rem 3vw 1.5rem;}
.intro .kick{font-family:'Inter';font-size:12px;letter-spacing:.3em;text-transform:uppercase;color:var(--accent);margin-bottom:1.2rem;}
.intro h1{font-family:'Inter';font-weight:700;font-size:clamp(3rem,11vw,11rem);letter-spacing:-.04em;line-height:.9;}
.intro p{margin-top:1.5rem;color:var(--mut);max-width:560px;line-height:1.7;font-size:15px;}
.grid{display:grid;grid-template-columns:repeat(3,1fr);overflow:hidden;border-top:1px solid var(--line);}
.cell{position:relative;aspect-ratio:1/1;text-decoration:none;color:inherit;display:block;border-right:1px solid var(--line);border-bottom:1px solid var(--line);}
.cell.img{overflow:hidden;background:var(--line);}
.cell.img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform 1.1s cubic-bezier(.19,1,.22,1),filter 1s ease;filter:grayscale(100%) contrast(1.02);}
.cell.img:hover img{transform:scale(1.05);filter:grayscale(0) contrast(1);}
/* magazine covers: whole cover fits inside the square */
.cell.cover{background:var(--panel);}
.cell.cover img{object-fit:contain;padding:9%;}
/* diplomas page: photo cells a shade darker than the page background */
body.diplomas .cell.img.cover{background:var(--line);}
/* section pages: white background behind the page heading, dark-brown heading (not on home hero) */
body:not(.home) .intro{background:#fff;}
body:not(.home) .intro h1{color:var(--dark);}
body:not(.home) .intro h1 .ol{color:var(--dark);}
/* collaboration page: project names dark brown like the nav bar */
body.collab .cell.txt .name{color:var(--dark);}
/* project data block inside listing tiles (projects.html) */
.cell.txt .tspec{margin-top:.9rem;font-family:'Inter';font-size:13px;line-height:1.45;color:var(--ink);}
.cell.txt .tspec-r{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding:2.5px 0;}
.cell.txt .tspec-k{color:var(--mut);text-transform:uppercase;letter-spacing:.06em;font-size:11px;padding-top:1px;white-space:nowrap;}
.cell.txt .tspec-v{text-align:right;}
/* diplomas page: year labels bold & white, +15% size; on hover (cell turns white) year goes beige like the photo cells */
body.diplomas .cell .big{font-weight:700;color:#fff;font-size:clamp(2.76rem,6.325vw,5.75rem);}
/* hover: cell and year swap colours (beige panel <-> white) */
body.diplomas .cell.txt:hover .big{color:var(--panel);}
/* award title: dark brown like the nav bar, right under the year; meta stays at the bottom */
body.diplomas .cell.txt{justify-content:flex-start;}
body.diplomas .cell.txt .name{color:var(--dark);font-weight:400;}
/* status line (Победитель/Номинант/Лауреат/Гран-При) right after the year, bold */
body.diplomas .cell.txt .stat{font-family:'Inter';font-weight:700;color:var(--dark);font-size:clamp(1rem,1.8vw,1.45rem);line-height:1;margin-top:.5rem;}
body.diplomas .cell.txt .meta{margin-top:auto;}
/* project links inside captions: no underline (links stay clickable) */
body.diplomas .cell.txt .name a,body.diplomas .cell.txt .meta a{text-decoration:none;}
/* project-name links in captions are bold like other project names */
body.diplomas .cell.txt .name a{font-weight:700;}
/* no hover caption under diploma images */
body.diplomas .cell.img .ccap{display:none;}
/* HOME only: black & white, gradually colour on hover (motion kept) */
body.home .cell.img img{filter:grayscale(100%) contrast(1.02);}
body.home .cell.img:hover img{filter:grayscale(0) contrast(1);}
.cell.txt{background:var(--panel);display:flex;flex-direction:column;justify-content:space-between;padding:8%;}
.cell.txt:hover{background:#fff;}
.cell .name{font-family:'Inter';font-weight:700;color:var(--ink);font-size:clamp(1.2rem,2.5vw,2.5rem);line-height:1.0;letter-spacing:-.02em;}
.cell .meta{font-size:12.5px;color:var(--mut);letter-spacing:.02em;}
.cell .meta b{font-weight:700;color:var(--accent);}
.cell .big{font-family:'Inter';font-weight:700;font-size:clamp(2.4rem,5.5vw,5rem);color:var(--accent);line-height:.9;letter-spacing:-.02em;}
.cell .arrow{font-size:1.2rem;color:var(--accent);}
/* section divider row: 3 readable squares (grid lines), big section name fits the left one */
.cell.divc{background:var(--bg);display:flex;align-items:flex-end;padding:7%;transition:background .3s ease;}
.cell.divc.full{grid-column:1/-1;aspect-ratio:auto;min-height:0;padding:2.8rem 3rem 2rem;}
.pr-subhead{grid-column:1/-1;background:var(--dark);padding:.9rem 1.5rem;font-family:'Inter';font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:#cfc7b8;display:flex;justify-content:space-between;align-items:baseline;}
.pr-subhead .cnt{color:#6b6259;font-size:10px;letter-spacing:.1em;}
.cell.divc .dtitle{font-family:'Inter';font-weight:700;font-size:clamp(1.3rem,3vw,2.7rem);color:var(--ink);letter-spacing:-.02em;line-height:1;}
.grid .divc:first-child{border-top:1px solid var(--line);}
/* empty spacer cell between photos (keeps photo, gap, photo, gap) */
.cell.blank{background:var(--panel);transition:background .3s ease;}
.cell.blank:hover{background:#fff;}
/* diploma page: marks a spot where the real scan is still missing */
.cell.missing{background:var(--dark);transition:background .3s ease;}
.cell.missing:hover{background:#544d43;}
.cell.divc:hover{background:#fff;}
.news{background:var(--dark);color:#f3efe7;padding:6vw 3vw;display:grid;grid-template-columns:1fr 1fr;gap:4vw;align-items:center;}
.news .s{font-weight:600;font-size:13px;color:var(--accent);margin-bottom:.5rem;}
.news h2{font-family:'Inter';font-weight:700;font-size:clamp(2.8rem,8vw,8rem);line-height:.9;letter-spacing:-.03em;}
.news label{display:block;font-weight:600;font-size:13px;margin:1.6rem 0 .4rem;color:#cfc7b8;}
.news input{width:100%;background:none;border:none;border-bottom:1px solid rgba(255,255,255,.4);color:#fff;font-size:1.1rem;padding:.5rem 0;outline:none;font-family:'Inter';}
.news .sub{display:flex;justify-content:flex-end;align-items:center;gap:1.1rem;margin-top:2rem;}
.news .sub span{font-family:'Inter';font-weight:600;font-size:1.2rem;}
.news .sub .go{width:66px;height:66px;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.4rem;}
.news .ncopy{margin-top:2.4rem;font-size:13px;color:#b7ad9c;letter-spacing:.02em;line-height:1.6;}
@media(max-width:820px){.news{grid-template-columns:1fr;}}
.foot{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:2vw;padding:3.5rem 3vw 4.5rem;}
.foot h4{color:var(--accent);font-weight:600;font-size:13px;margin-bottom:1rem;}
.foot .brand{font-family:'Inter';font-weight:700;font-size:1.15rem;line-height:1.2;}
.foot .copy{color:var(--mut);font-size:12.5px;margin-top:1rem;line-height:1.6;}
.foot p,.foot a{color:var(--ink);font-size:13.5px;line-height:1.9;text-decoration:none;}
.foot a:hover{color:var(--accent);}
@media(max-width:820px){.grid{grid-template-columns:1fr 1fr;}.foot{grid-template-columns:1fr 1fr;gap:2rem;}}
@media(max-width:540px){.grid{grid-template-columns:1fr;}.cell.txt{aspect-ratio:auto;min-height:42vw;}}

/* ============ carlesfaus-style micro touches (delicate, grid untouched) ============ */
/* 1 — thin large type: big display goes ultralight, small stays dense */
.intro h1{font-weight:700;}
.cell.divc .dtitle{font-weight:700;}
.news h2{font-weight:700;}
/* outline (line-only) text accent — clean, even strokes */
.ol{color:#fff;-webkit-text-stroke:0;font-weight:700;}
.intro h1 .ol{}
.cell .big{font-weight:300;letter-spacing:-.01em;}
/* 2 — photo index numbers + hover caption */
.cidx{position:absolute;top:10px;left:12px;z-index:3;font-family:'Inter';font-size:11px;font-weight:500;letter-spacing:.14em;color:#fff;mix-blend-mode:difference;pointer-events:none;}
.cell.img.cover .cidx{color:var(--mut);mix-blend-mode:normal;}
.ccap{position:absolute;left:0;right:0;bottom:0;z-index:3;padding:15px 13px 13px;font-family:'Inter';font-weight:500;font-size:clamp(.78rem,1.1vw,.95rem);line-height:1.15;letter-spacing:.005em;color:#fff;background:linear-gradient(to top,rgba(22,19,16,.74),rgba(22,19,16,0));transform:translateY(9px);opacity:0;transition:opacity .5s ease,transform .5s cubic-bezier(.19,1,.22,1);pointer-events:none;}
.cell.img:hover .ccap{opacity:1;transform:translateY(0);}
.cell.img.cover .ccap{color:var(--ink);background:linear-gradient(to top,rgba(245,240,231,.92),rgba(245,240,231,0));}
.ccap [data-lang]{display:none;}.ccap [data-lang].active{display:inline;}
.ccap br{display:none;}
/* 3 — header micro-meta: location + live time */
.navmeta{display:flex;align-items:center;gap:.55rem;margin-left:auto;padding:0 1.3rem;border-left:1px solid rgba(255,255,255,.14);font-family:'Inter';font-size:11px;letter-spacing:.16em;color:#88806f;white-space:nowrap;}
.navmeta .nm-time{color:#cfc7b8;font-variant-numeric:tabular-nums;letter-spacing:.1em;}
@media(max-width:760px){.navmeta{display:none;}}
/* 4 — custom cursor dot (fine pointers only) */
@media(hover:hover) and (pointer:fine){
  body.cur-on,body.cur-on a,body.cur-on button,body.cur-on .cell,body.cur-on .langs button{cursor:none;}
  body.cur-on input,body.cur-on textarea{cursor:text;}
}
.cur{position:fixed;top:0;left:0;width:9px;height:9px;border-radius:50%;background:var(--accent);z-index:2000;pointer-events:none;display:flex;align-items:center;justify-content:center;transition:width .32s cubic-bezier(.19,1,.22,1),height .32s cubic-bezier(.19,1,.22,1),background .3s ease,opacity .3s ease;will-change:transform;}
.cur .cur-l{font-size:15px;color:#fff;opacity:0;transform:scale(.5);transition:opacity .25s ease,transform .25s ease;line-height:1;}
.cur.lnk{width:17px;height:17px;}
.cur.big{width:64px;height:64px;background:rgba(147,122,89,.9);}
.cur.big .cur-l{opacity:1;transform:scale(1);}

/* ============ press: online publications (auto-fill grid) ============ */
.onl-wrap{grid-column:1/-1;columns:260px;column-gap:0;background:var(--line);border-bottom:1px solid var(--line);}
.onl-block{background:var(--panel);padding:1.5rem 1.4rem;break-inside:avoid;border-right:1px solid var(--line);border-bottom:1px solid var(--line);transition:background .2s;}
.onl-block:hover{background:#fff;}
.onl-name{font-family:'Inter';font-weight:700;font-size:14px;letter-spacing:-.01em;color:var(--ink);margin-bottom:.75rem;padding-bottom:.5rem;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:baseline;gap:.5rem;}
.onl-all{font-family:'Inter';font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:var(--mut);text-decoration:none;white-space:nowrap;transition:color .2s;}
.onl-all:hover{color:var(--accent);}
.onl-links{list-style:none;}
.onl-links li{margin-bottom:.5rem;line-height:1.35;}
.onl-links a{color:var(--ink);text-decoration:none;font-size:12.5px;border-bottom:1px solid transparent;transition:color .2s,border-color .2s;}
.onl-links a:hover{color:var(--accent);border-color:var(--accent);}
.onl-year{color:var(--mut);font-size:10.5px;margin-left:.4rem;}
/* ============ press: cover items (small cover left + caption right) ============ */
.pr-wrap{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1px;background:var(--line);border-bottom:1px solid var(--line);}
.pr-subhead2{grid-column:1/-1;background:var(--dark);padding:.8rem 1.4rem;font-family:'Inter';font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:#cfc7b8;display:flex;justify-content:space-between;}
.pr-subhead2 .cnt{color:#88806f;}
.pr-it{background:var(--panel);display:flex;gap:1rem;padding:1.2rem 1.4rem;align-items:flex-start;text-decoration:none;transition:background .2s;}
.pr-it:hover{background:#fff;}
.pr-cov{flex:0 0 80px;width:80px;height:108px;overflow:hidden;background:var(--bg);}
.pr-cov img{width:100%;height:100%;object-fit:cover;display:block;}
.pr-cov--contain img{object-fit:contain;background:var(--panel);}
.pr-inf{flex:1;min-width:0;}
.pr-ititle{font-family:'Inter';font-size:13px;font-weight:700;color:var(--ink);line-height:1.2;margin-bottom:.3rem;letter-spacing:-.01em;}
.pr-idate{font-size:11px;color:var(--mut);line-height:1.5;}
.pr-ilink{display:inline-block;margin-top:.45rem;font-size:9.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);text-decoration:none;border-bottom:1px solid var(--line);padding-bottom:1px;transition:border-color .2s;}
.pr-ilink:hover{border-color:var(--accent);}
/* ============ project detail: apax-style data block ============ */
/* data table edge-to-edge: top line on the white/beige boundary, sides at the window edges,
   bottom line sits right on the photos' top edge (single line, no gap) */
.spec-wrap{padding:0;}
.spec{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);border-left:1px solid var(--line);}
.spec-i{border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:13px 16px 14px;display:flex;flex-direction:column;gap:6px;}
.spec-i.empty{padding:0;}
.spec-k{font-family:'Inter';font-size:10px;font-weight:500;letter-spacing:.18em;text-transform:uppercase;color:var(--mut);}
.spec-v{font-size:14px;color:var(--ink);line-height:1.35;}
@media(max-width:820px){.spec{grid-template-columns:repeat(2,1fr);}}
@media(max-width:460px){.spec{grid-template-columns:1fr;}}
.awards-list{padding:0 3vw;display:flex;flex-direction:column;gap:.45rem;margin-top:.4rem;}
.awards-list .awh{font-family:'Inter';font-size:10px;font-weight:500;letter-spacing:.18em;text-transform:uppercase;color:var(--accent);margin-bottom:.3rem;}
.awards-list .aw{font-size:13.5px;color:var(--ink);padding-left:1.1rem;position:relative;line-height:1.4;}
.awards-list .aw:before{content:"—";position:absolute;left:0;color:var(--accent);}
.proj-note{padding:.9rem 3vw 0;color:var(--mut);font-size:13.5px;}
/* пустые примечание/награды не создают зазор между таблицей и фото */
.proj-note:empty,.awards-list:empty{display:none;}
.proj-code{font-family:'Inter';font-size:12px;letter-spacing:.14em;color:var(--accent);margin-top:.4rem;text-transform:uppercase;}
/* clean outline via SVG (CSS -webkit-text-stroke had Chrome artifacts) */
.intro h1 .olsvg{display:block;height:.96em;width:auto;overflow:visible;margin-bottom:.02em;}
.intro h1 .hname{display:block;}

/* Запрос проекта — форма в подвале .news (на всех страницах) */
.news textarea{width:100%;background:none;border:none;border-bottom:1px solid rgba(255,255,255,.4);color:#fff;font-size:1.1rem;padding:.5rem 0;outline:none;font-family:'Inter';resize:vertical;min-height:2.4rem;}
.news form button.sub{width:100%;background:none;border:none;cursor:pointer;color:inherit;font:inherit;}
.news .hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0;}
.news h2 .h2light{font-weight:400;}
