:root {
  color-scheme: dark;
  --bg: #080b12;
  --panel: #0e131c;
  --text: #e7eaf0;
  --muted: #aeb6c4;
  --quiet: #8791a2;
  --line: #1b2230;
  --line-bright: #334056;
  --silver: #c3cddb;
  --gold: #d0a15a;
  --blue: #92b8d8;
  --rose: #db6e66;
  --display: "Forum", Georgia, serif;
  --body: "Tenor Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-weight: 400; }
body::after { position: fixed; inset: 0; z-index: 5; content: ""; pointer-events: none; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--silver); outline-offset: 5px; }
.site-header { position: relative; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 96px; padding: 0 clamp(28px, 5.6vw, 80px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 40px; }
.nav a, .header-cta { color: var(--muted); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; transition: color .2s ease; }
.nav a:hover, .header-cta:hover { color: var(--text); }
.wordmark { justify-self: center; padding-left: .5em; font: 400 28px/1 var(--display); letter-spacing: .5em; white-space: nowrap; }
.header-cta { justify-self: end; display: flex; align-items: center; gap: 14px; color: var(--text); border: 1px solid var(--line-bright); min-height: 44px; padding: 0 20px; }
.header-cta span { color: var(--silver); font-size: 15px; }
.menu-toggle, .mobile-menu { display: none; }

.hero { position: relative; isolation: isolate; min-height: 880px; padding: 64px 24px 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; overflow: hidden; text-align: center; background: radial-gradient(ellipse 640px 540px at 50% 38%, rgba(200,215,240,.11), rgba(8,11,18,0) 70%); }
.hero-frame { position: absolute; inset: 48px clamp(28px, 5.6vw, 80px); z-index: -1; border-inline: 1px solid rgba(27,34,48,.7); pointer-events: none; }
.hero-glow { position: absolute; top: 14%; left: 50%; z-index: -1; width: min(58vw, 710px); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(200,215,240,.1), transparent 68%); filter: blur(20px); }
.eyebrow, .eyebrow-small { display: flex; align-items: center; gap: 18px; color: var(--quiet); font-size: 10px; letter-spacing: .32em; text-transform: uppercase; }
.eyebrow span { display: block; width: 35px; height: 1px; background: var(--silver); opacity: .75; }
.hero-mask { width: auto; height: 430px; max-width: 78vw; object-fit: contain; filter: drop-shadow(0 0 36px rgba(190,210,240,.28)); animation: mask-breathe 7s ease-in-out infinite; }
.hero h1 { margin: 0; font: 400 clamp(52px, 6vw, 84px)/1 var(--display); letter-spacing: -.02em; }
.hero h1 em, .section-heading h2 em, .closing-note p em { color: var(--silver); font-style: normal; }
.hero-lede { max-width: 520px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; margin-top: 12px; }
.button { min-height: 54px; padding: 0 30px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.button-light { background: var(--text); color: var(--bg); }
.button-light:hover { background: var(--silver); }
.button-light span { font-size: 16px; }
.button-outline { border: 1px solid var(--line-bright); }
.button-outline:hover { border-color: var(--silver); color: var(--silver); }
.hero-project-index { position: absolute; left: clamp(46px, 7.8vw, 112px); bottom: 66px; display: flex; flex-direction: column; gap: 11px; color: var(--quiet); font-size: 9px; letter-spacing: .17em; text-align: left; text-transform: uppercase; }
.hero-aside { position: absolute; right: clamp(46px, 7.8vw, 112px); bottom: 66px; margin: 0; color: var(--muted); font: 400 22px/1.35 var(--display); text-align: right; }
.scroll-cue { display: none; }

.manifest { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(28px, 5vw, 72px); padding: 104px clamp(32px, 5.6vw, 80px); border-block: 1px solid var(--line); }
.manifest-item { display: flex; flex-direction: column; gap: 17px; }
.roman { color: var(--silver); font: 400 22px/1 var(--display); }
.manifest-item h2 { margin: 0; font: 400 34px/1.08 var(--display); }
.manifest-item p { max-width: 360px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.section-shell { width: min(1440px, 100%); margin: 0 auto; padding: 126px clamp(32px, 5.6vw, 80px); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 36px; margin-bottom: 54px; }
.eyebrow-small { display: block; }
.section-heading h2 { margin: 16px 0 0; font: 400 clamp(48px, 6vw, 72px)/1 var(--display); }
.section-heading > p { max-width: 380px; margin: 0 0 6px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.project-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.project-card { min-height: 620px; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--panel); transition: border-color .25s ease, transform .25s ease; }
.project-card:hover { border-color: var(--line-bright); transform: translateY(-4px); }
.project-art { position: relative; height: 360px; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.project-art::before { position: absolute; inset: 12px; content: ""; border: 1px solid rgba(27,34,48,.8); pointer-events: none; }
.project-number { position: absolute; z-index: 1; top: 23px; left: 25px; color: var(--silver); font: 400 21px/1 var(--display); }
.art-halo { position: absolute; width: 85%; aspect-ratio: 1; border-radius: 50%; filter: blur(12px); }
.project-art img { position: relative; z-index: 1; width: auto; height: 250px; object-fit: contain; filter: grayscale(1) sepia(.5) brightness(.85) contrast(1.1); transition: transform .35s ease; }
.project-card:hover .project-art img { transform: scale(1.04); }
.project-lyutnik .art-halo { background: radial-gradient(circle, rgba(208,161,90,.18), transparent 67%); }
.project-lyutnik .project-number, .project-lyutnik .project-genre { color: var(--gold); }
.project-lyutnik .project-art img { filter: drop-shadow(0 0 12px rgba(208,161,90,.14)); }
.project-dopiche { border-style: dashed; border-color: var(--line-bright); background: rgba(8,11,18,.55); }
.project-dopiche:hover { transform: none; }
.project-dopiche .art-halo { background: radial-gradient(circle, rgba(83,183,204,.16), rgba(170,77,151,.06) 45%, transparent 70%); }
.project-dopiche .project-art img { filter: drop-shadow(0 0 12px rgba(83,183,204,.16)); }
.project-dopiche .project-number, .project-dopiche .project-genre { color: #8ccad2; }
.project-vyasna .art-halo { background: radial-gradient(circle, rgba(119,161,129,.18), transparent 67%); }
.project-vyasna .project-number, .project-vyasna .project-genre { color: #98bda2; }
.project-vyasna .project-art img { filter: drop-shadow(0 0 12px rgba(119,161,129,.16)); }
.project-velia .art-halo { background: radial-gradient(circle, rgba(142,108,174,.18), transparent 67%); }
.project-velia .project-number, .project-velia .project-genre { color: #b49bd0; }
.project-velia .project-art img { filter: drop-shadow(0 0 12px rgba(142,108,174,.18)); }
.coming-soon { position: absolute; z-index: 2; bottom: 22px; left: 24px; padding: 7px 13px; border: 1px solid var(--line-bright); color: var(--muted); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; }
.project-info { flex: 1; padding: 27px 24px 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.project-genre { color: var(--quiet); font-size: 9px; letter-spacing: .2em; line-height: 1.5; text-transform: uppercase; }
.project-info h3 { margin: 0; color: var(--text); font: 400 39px/1 var(--display); }
.project-dopiche .project-info h3 { color: var(--muted); }
.project-info p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.project-dopiche .project-info p { color: var(--quiet); }

.closing-note { min-height: 500px; padding: 100px 24px 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 25px; border-top: 1px solid var(--line); text-align: center; }
.closing-note img { width: auto; height: 58px; opacity: .82; filter: drop-shadow(0 0 18px rgba(190,210,240,.24)); }
.closing-note p { margin: 0; font: 400 clamp(38px, 5vw, 64px)/1.12 var(--display); }
.closing-note > span { width: 58px; height: 1px; background: var(--silver); }
.closing-note small { max-width: 540px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.site-footer { min-height: 112px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 24px; padding: 28px clamp(32px, 5.6vw, 80px); border-top: 1px solid var(--line); color: var(--quiet); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.site-footer .wordmark { justify-self: start; font-size: 21px; }
.site-footer > span { justify-self: center; }
.to-top { justify-self: end; transition: color .2s ease; }
.to-top:hover { color: var(--text); }
@keyframes mask-breathe { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

@media (max-width: 1100px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .project-card { min-height: 580px; }
  .project-art { height: 320px; }
  .project-art img { height: 235px; }
  .manifest { gap: 34px; }
  .hero-project-index { left: 5vw; }
  .hero-aside { right: 5vw; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 72px; }
  .site-header { min-height: 64px; grid-template-columns: 1fr auto; padding: 0 12px 0 20px; }
  .site-header .wordmark { justify-self: start; padding-left: .4em; font-size: 20px; }
  .nav-left, .header-cta { display: none; }
  .menu-toggle { width: 44px; height: 44px; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 0; background: transparent; cursor: pointer; }
  .menu-toggle span { width: 20px; height: 1px; background: var(--text); transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .mobile-menu { position: absolute; z-index: 9; top: 64px; left: 0; right: 0; padding: 10px 20px 18px; display: flex; flex-direction: column; background: rgba(8,11,18,.98); border-bottom: 1px solid var(--line); }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a { display: flex; align-items: center; justify-content: space-between; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
  .mobile-menu a:last-child { border-bottom: 0; }
  .mobile-menu span { color: var(--quiet); font-size: 9px; }
  .hero { min-height: 0; padding: 48px 20px 56px; gap: 19px; background: radial-gradient(ellipse 260px 300px at 50% 28%, rgba(200,215,240,.11), rgba(8,11,18,0) 70%); }
  .hero-frame { display: none; }
  .hero-glow { top: 8%; width: 95vw; }
  .eyebrow { gap: 12px; font-size: 9px; letter-spacing: .24em; }
  .eyebrow span { width: 20px; }
  .hero-mask { height: 285px; max-width: 75vw; filter: drop-shadow(0 0 28px rgba(190,210,240,.35)); }
  .hero h1 { max-width: 380px; font-size: clamp(43px, 12vw, 52px); line-height: 1.03; }
  .hero-lede { max-width: 335px; font-size: 14px; line-height: 1.6; }
  .hero-actions { width: 100%; flex-direction: column; gap: 10px; margin-top: 5px; }
  .button { width: 100%; min-height: 52px; }
  .hero-project-index, .scroll-cue { display: none; }
  .hero-aside { position: static; margin: 14px 0 0; font-size: 20px; text-align: center; }
  .manifest { grid-template-columns: 1fr; gap: 36px; padding: 56px 20px; }
  .manifest-item { gap: 10px; }
  .roman { color: var(--blue); font: 400 11px/1 var(--body); letter-spacing: .2em; }
  .manifest-item h2 { font-size: 30px; }
  .manifest-item p { font-size: 14px; line-height: 1.65; }
  .section-shell { padding: 72px 20px; }
  .section-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 30px; }
  .eyebrow-small { font-size: 10px; letter-spacing: .25em; }
  .section-heading h2 { margin-top: 12px; font-size: 44px; }
  .section-heading > p { font-size: 14px; line-height: 1.65; }
  .project-grid { grid-template-columns: 1fr; gap: 14px; }
  .project-card { min-height: 0; }
  .project-art { height: 260px; }
  .project-art img { height: 190px; }
  .project-art::before { display: none; }
  .project-number { top: 16px; left: 18px; font-size: 20px; }
  .project-info { padding: 22px 20px 24px; gap: 10px; }
  .project-genre { font-size: 10px; letter-spacing: .18em; }
  .project-info h3 { font-size: 36px; }
  .project-info p { font-size: 14px; line-height: 1.6; }
  .coming-soon { bottom: 16px; left: 18px; font-size: 10px; }
  .closing-note { min-height: 420px; padding: 80px 20px; gap: 23px; }
  .closing-note p { font-size: 36px; line-height: 1.15; }
  .closing-note small { font-size: 14px; line-height: 1.65; }
  .site-footer { min-height: 82px; grid-template-columns: 1fr auto; padding: 22px 20px; }
  .site-footer .wordmark { font-size: 20px; }
  .site-footer > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
