/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/inter-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/inter-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root{
  --paper:#fbfaf7; --band:#f4f2ec; --ink:#15171c; --text:#33373f; --sub:#5c626d;
  --faint:#8a8f9a; --rule:#e7e4dc; --rule-2:#dcd8cf; --accent:#1e5aa0; --accent-ink:#164679;
  --sp:clamp(56px,7vw,100px); --ease:cubic-bezier(.22,1,.36,1); --z-sticky:100;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; scroll-behavior:smooth}
body{margin:0; background:var(--paper); color:var(--text);
  font-family:'Inter',system-ui,sans-serif; font-size:18px; line-height:1.7; letter-spacing:-.003em;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility}
.page{max-width:1160px; margin:0 auto; padding:0 clamp(24px,5vw,64px)}
h1,h2,h3{font-family:'Fraunces',Georgia,serif; color:var(--ink); font-weight:500; line-height:1.12;
  letter-spacing:-.02em; margin:0; text-wrap:balance}
p{margin:0 0 1.1em; text-wrap:pretty}
a{color:var(--accent); text-decoration:none; transition:color .2s var(--ease)}
a:hover{color:var(--accent-ink)}
.sub{color:var(--sub)} .lede{color:var(--text)}
.eyebrow{font-family:'Fraunces',serif; font-weight:600; font-size:.95rem; color:var(--accent); letter-spacing:.01em}

/* header */
header{position:sticky; top:0; z-index:var(--z-sticky); background:rgba(251,250,247,.86);
  backdrop-filter:saturate(1.3) blur(10px); border-bottom:1px solid var(--rule)}
.mast{display:flex; align-items:center; gap:16px 26px; flex-wrap:wrap; padding:16px 0}
.mast a.home{display:flex; align-items:center; gap:13px; color:inherit}
.mast a.home:hover{color:inherit}
.mast .t{font-family:'Fraunces',serif; font-weight:600; font-size:1.04rem; line-height:1.15}
.mast .t small{display:block; font-family:'Inter',sans-serif; font-weight:500; font-size:.66rem;
  letter-spacing:.14em; text-transform:uppercase; color:var(--faint); margin-top:3px}
.nav{margin-left:auto; display:flex; gap:24px; font-size:.93rem; align-items:center}
.nav a{color:var(--sub); position:relative}
.nav a:hover{color:var(--ink)}
.nav a.on{color:var(--ink)}
.nav a.on::after{content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px; background:var(--accent)}
.nav .lang{color:var(--faint); font-size:.82rem; letter-spacing:.02em; padding-left:6px}
.nav .lang a{color:var(--sub)} .nav .lang .cur{color:var(--ink); font-weight:600}

/* hero (home) */
.hero{position:relative; overflow:hidden; padding:clamp(56px,8vw,116px) 0 clamp(48px,6vw,88px)}
.hero-glow{position:absolute; top:-12%; right:-6%; width:min(620px,70vw); height:620px;
  background:radial-gradient(circle,rgba(30,90,160,.10),transparent 62%); pointer-events:none}
.hgrid{position:relative; display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(30px,5vw,70px); align-items:center}
.hero .inst{margin-bottom:20px}
.hero h1{font-size:clamp(2.5rem,5.2vw,4.2rem); font-weight:500; margin-bottom:24px}
.hero .lead{font-size:1.22rem; line-height:1.5; color:var(--sub); max-width:34ch; margin-bottom:30px}
.cta-row{display:flex; gap:12px; flex-wrap:wrap}
.cta{display:inline-flex; align-items:center; gap:9px; background:var(--ink); color:#fff;
  padding:13px 24px; border-radius:999px; font-weight:500; font-size:.98rem; transition:.2s var(--ease)}
.cta:hover{color:#fff; transform:translateY(-1px); box-shadow:0 12px 24px -12px rgba(20,22,27,.5)}
.cta.ghost{background:transparent; color:var(--ink); border:1px solid var(--rule-2)}
.cta.ghost:hover{border-color:var(--ink); box-shadow:none}
.figwrap{position:relative}
.frame{border-radius:20px; overflow:hidden; background:#fff; border:1px solid var(--rule);
  box-shadow:0 2px 4px rgba(20,22,27,.04), 0 40px 80px -42px rgba(20,40,80,.32)}
.viewer{position:relative; width:100%; aspect-ratio:1/1; background:#fff; overflow:hidden}
.viewer canvas{display:block!important}
.viewer-fallback{position:absolute; inset:0; width:100%; height:100%; object-fit:cover}
.frame .cap{padding:14px 18px; border-top:1px solid var(--rule); font-size:.82rem; color:var(--faint)}
.frame .cap a{color:var(--accent)} .frame .cap .hint{color:var(--faint)}
@media(max-width:820px){.hgrid{grid-template-columns:1fr} .hero .lead{max-width:60ch}}

/* subpage head */
.phead{padding:clamp(48px,7vw,96px) 0 clamp(20px,3vw,36px)}
.phead h1{font-size:clamp(2.2rem,4.6vw,3.4rem); font-weight:500; margin:12px 0 20px}
.phead .lead{font-size:1.16rem; color:var(--sub); max-width:66ch}

/* sections */
.section{padding:var(--sp) 0; border-top:1px solid var(--rule)}
.section h2{font-size:clamp(1.7rem,3vw,2.3rem); margin:10px 0 34px; max-width:22ch}
.body p{max-width:70ch}

/* directions grid */
.dirs{display:grid; grid-template-columns:1fr 1fr; gap:0 48px}
.d{padding:22px 0; border-top:1px solid var(--rule)}
.d h3{font-family:'Inter',sans-serif; font-size:1.12rem; font-weight:600; letter-spacing:-.01em; margin:0 0 6px}
.d p{margin:0; color:var(--sub); font-size:.98rem}
@media(max-width:720px){.dirs{grid-template-columns:1fr}}
.more{margin-top:30px}
.more a{font-weight:500; display:inline-flex; gap:7px}
.more a::after{content:"→"; transition:transform .25s var(--ease)}
.more a:hover::after{transform:translateX(4px)}

/* structures gallery */
.grouphead{font-family:'Fraunces',serif; font-size:clamp(1.35rem,2vw,1.7rem); font-weight:600; margin:56px 0 24px}
.grouphead:first-child{margin-top:0}
.gallery{display:grid; grid-template-columns:repeat(auto-fill,minmax(232px,1fr)); gap:clamp(16px,2vw,22px)}
.gallery figure{margin:0; border:1px solid var(--rule); border-radius:16px; overflow:hidden; background:#fff;
  transition:transform .3s var(--ease),box-shadow .3s var(--ease),border-color .3s var(--ease)}
.gallery a{display:block; color:inherit} .gallery a:hover{color:inherit}
.gallery figure:hover{transform:translateY(-4px); border-color:var(--rule-2);
  box-shadow:0 2px 4px rgba(20,22,27,.04),0 26px 46px -30px rgba(20,40,80,.34)}
.gallery .im{aspect-ratio:1/1; width:100%; object-fit:cover; background:#fff; display:block}
.gallery figcaption{padding:14px 16px; border-top:1px solid var(--rule)}
.gallery .cap{font-size:.92rem; color:var(--text); line-height:1.42}
.gallery .pdb{font-family:'Fraunces',serif; font-size:.84rem; color:var(--accent); margin-top:6px}

/* publications */
.pubyear{font-family:'Fraunces',serif; color:var(--ink); font-weight:600; font-size:1.25rem; margin:32px 0 8px}
.pubyear:first-child{margin-top:0}
ul.pubs{list-style:none; margin:0; padding:0}
ul.pubs li{padding:14px 0; border-bottom:1px solid var(--rule); font-size:1rem; color:var(--text); max-width:76ch}
ul.pubs li:last-child{border-bottom:0}
ul.pubs .src{color:var(--faint); font-style:italic}

/* contacts */
.contacts{color:var(--sub); font-size:1.06rem}
.contacts b{font-family:'Fraunces',serif; color:var(--ink); font-weight:600; font-size:1rem}
.contacts div{margin-bottom:16px}
.map{margin-top:26px; border:1px solid var(--rule); border-radius:16px; overflow:hidden}
.map iframe{display:block; width:100%; height:360px; border:0}
.note{color:var(--faint); font-size:.9rem; margin-top:22px; max-width:72ch}

/* footer */
footer{border-top:1px solid var(--rule); background:var(--band); margin-top:var(--sp);
  padding:40px 0 60px; color:var(--faint); font-size:.86rem}
footer .frow{display:flex; justify-content:space-between; gap:16px 30px; flex-wrap:wrap}
footer .legal a{color:var(--sub); margin-right:20px} footer .legal a:last-child{margin-right:0}

/* motion */
@keyframes rise{from{opacity:0; transform:translateY(14px)} to{opacity:1; transform:none}}
.rise{animation:rise .7s var(--ease) both} .rise-2{animation-delay:.09s}
@media (prefers-reduced-motion: reduce){*{animation:none!important; transition:none!important; scroll-behavior:auto}}

/* responsive */
@media(max-width:760px){
  .mast{gap:8px 20px}
  .nav{margin-left:0; width:100%; flex-wrap:wrap; gap:12px 20px; padding-top:4px}
  .nav .lang{margin-left:auto; padding-left:0}
}
@media(max-width:560px){
  .mast .t{font-size:.95rem} .mast .t small{font-size:.62rem}
  .nav{gap:12px 16px; font-size:.9rem}
  .hero h1{font-size:2.15rem} .map iframe{height:280px}
}
