@charset "UTF-8";

:root {
  color-scheme: dark;
  --bg: #070708;
  --surface: #121214;
  --ink: #e6e5e2;
  --secondary: #aaa9a6;
  --muted: #92918d;
  --line: rgba(255,255,255,.13);
  --accent: #e8b547;
  --max: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; padding: 24px; background: #e6e7e8; color: var(--ink); font: 15px/1.65 "Segoe UI",Arial,sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.shell { width: min(calc(100% - 80px),var(--max)); margin-inline: auto; }
.wide-shell { width: calc(100% - 32px); max-width: 1920px; margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }

/* The entire homepage is this one, naturally sized viewport. */
.landing { min-height: calc(100vh - 48px); min-height: calc(100svh - 48px); display: grid; place-items: center; padding: max(28px,env(safe-area-inset-top)) 24px max(28px,env(safe-area-inset-bottom)); }
.landing-intro { width: 100%; max-width: 760px; text-align: center; }
.intro-name { font-size: 12px; color: var(--muted); margin: 0 0 21px; letter-spacing: .01em; }
.landing h1 { font-size: clamp(24px,2.35vw,34px); font-weight: 400; line-height: 1.32; letter-spacing: -.025em; margin: 0; overflow-wrap: anywhere; }
.intro-line { display: block; }
.intro-company { margin: 14px 0 0; font-size: clamp(20px,2vw,28px); font-weight: 400; letter-spacing: -.025em; }
.company-tag { display: inline-block; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; padding: 1px 14px 3px; background: linear-gradient(155deg,rgba(255,255,255,.07),rgba(255,255,255,.015)); }
.company-tag span { color: var(--accent); }
.about-button { display: inline-flex; align-items: center; gap: 22px; margin-top: 32px; padding: 10px 19px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; line-height: 1.5; background: rgba(255,255,255,.035); transition: border-color .25s, background-color .25s; }
.about-button:hover { border-color: rgba(232,181,71,.55); background: rgba(232,181,71,.07); }
.about-button span { color: var(--accent); font-size: 15px; }

/* The information and the work live on their own page. */
.about-intro { padding: 104px 10px 68px; }
.back-link { display: inline-flex; gap: 10px; align-items: center; font-size: 11px; color: var(--muted); }
.back-link:hover { color: var(--ink); }
.about-intro .back-link { margin-bottom: 47px; }
.about-bio { max-width: 720px; }
.about-bio h1 { font-size: 17px; font-weight: 450; letter-spacing: -.015em; margin: 0 0 5px; }
.about-bio p { font-size: 15px; line-height: 1.55; color: var(--secondary); margin: 0; max-width: 680px; }
.profile-links { display: flex; gap: 23px; flex-wrap: wrap; margin-top: 20px; font-size: 11px; color: var(--muted); }
.profile-links a:hover { color: var(--accent); }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 49px 16px; }
.project-card { display: block; min-width: 0; }
.project-cover { position: relative; aspect-ratio: 1.4; overflow: hidden; background: #111; }
.project-cover > img { width: 100%; height: 100%; object-fit: contain;  }

.project-card[data-project="narodnaya-premiya"] .project-cover { background: #020402; }
.project-card[data-project="e1-sup-fest"] .project-cover { background: #a58bd2; }
.project-card[data-project="okna-tv"] .project-cover { background: #10151e; }
.project-card[data-project="money"] .project-cover { background: #f5f5f4; }
.project-open { position: absolute; right: 18px; bottom: 18px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #eee; background: rgba(8,8,9,.8); font-size: 18px; }

.project-heading { display: flex; justify-content: space-between; align-items: start; gap: 25px; padding: 0 12px; margin-top: 15px; }
.project-heading h3 { font-size: 16px; font-weight: 400; letter-spacing: -.02em; line-height: 1.4; margin: 0; }
.project-year { font-size: 10px; color: var(--muted); white-space: nowrap; padding-top: 3px; }
.project-summary { font-size: 12px; line-height: 1.6; color: var(--secondary); max-width: 700px; margin: 7px 12px 0; }
.project-tags { display: flex; gap: 14px; flex-wrap: wrap; font-size: 9px; color: var(--muted); margin: 10px 12px 0; }
.about-details { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; padding: 85px 0 55px; max-width: 1050px; }
.about-details h2 { font-size: 13px; font-weight: 450; margin: 0 0 15px; }
.about-details p { color: var(--secondary); font-size: 13px; line-height: 1.8; margin: 0; }
.about-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 25px; padding-bottom: 30px; font-size: 10px; color: var(--muted); }
.about-footer > div { display: flex; flex-wrap: wrap; gap: 22px; }
.about-footer a:hover { color: var(--ink); }

/* Detailed case pages link directly back to the bio/work page. */
.case-hero { padding: 104px 0 36px; }
.case-hero .back-link { margin-bottom: 51px; }
.eyebrow { font-size: 10px; letter-spacing: .06em; color: var(--muted); margin: 0 0 19px; text-transform: uppercase; }
.case-hero h1 { font-size: clamp(44px,5.5vw,76px); font-weight: 400; line-height: 1.05; letter-spacing: -.05em; margin: 0 0 21px; max-width: 950px; }
.case-subtitle { font-size: 22px; line-height: 1.4; color: var(--secondary); letter-spacing: -.025em; margin: 0 0 35px; max-width: 850px; }
.case-meta { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 30px; border-top: 1px solid var(--line); padding-top: 20px; }
.case-meta dt { font-size: 9px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.case-meta dd { margin: 0; font-size: 12px; }
.case-cover { margin: 0 0 55px; }
.case-cover img { width: 100%; height: auto; border-radius: 3px; }
.case-cover figcaption { font-size: 10px; color: var(--muted); margin-top: 12px; }
.case-intro { display: grid; grid-template-columns: 1fr 2fr; gap: 70px; padding-bottom: 55px; }
.case-intro aside { font-size: 11px; color: var(--muted); }
.text-link { display: inline-flex; gap: 18px; font-size: 12px; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.text-link:hover { color: var(--accent); }
.case-intro aside .text-link { margin-top: 15px; }
.case-intro h2, .case-section h2 { font-size: clamp(27px,3vw,40px); font-weight: 400; letter-spacing: -.035em; line-height: 1.2; margin: 0 0 24px; }
.case-intro p, .case-section > p { font-size: 15px; color: var(--secondary); margin: 0 0 22px; max-width: 830px; }
.case-intro p:last-child { margin-bottom: 0; }
.case-section { padding: 45px 0; border-top: 1px solid var(--line); }
.case-section-label { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 23px; }
.case-section h2 { max-width: 830px; }
.principles { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; margin-top: 35px; }
.principle { border-top: 1px solid var(--line); padding-top: 20px; }
.principle b { color: var(--accent); font-size: 10px; font-weight: 400; }
.principle h3 { font-size: 18px; font-weight: 400; letter-spacing: -.025em; line-height: 1.3; margin: 12px 0; }
.principle p { font-size: 12px; color: var(--secondary); margin: 0; }
.asset-pair { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-top: 35px; }
.asset-panel { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 300px; padding: 26px; background: #111; overflow: hidden; border-radius: 3px; }
.asset-panel img { max-height: 470px; object-fit: contain; }
.asset-panel.sup { background: #a38bd2; }
.asset-panel.award { background: #070a08; }
.asset-panel.wide { grid-column: 1/-1; padding: 0; min-height: 0; }
.asset-panel.wide img { width: 100%; max-height: none; }
.mobile-source { height: 470px; width: 250px; border: 1px solid #696a62; border-radius: 15px; overflow: hidden; }
.mobile-source img { width: 100%; max-height: none; object-fit: initial; }
.asset-caption { font-size: 10px !important; color: var(--muted) !important; margin-top: 14px !important; }
.attribution { border-top: 1px solid var(--line); max-width: 900px; padding-top: 25px; font-size: 11px; color: var(--muted); }
.next-project { display: block; border-top: 1px solid var(--line); padding: 40px 0 55px; margin-top: 40px; }
.next-project > span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 18px; }
.next-project strong { font-size: 37px; font-weight: 400; letter-spacing: -.04em; line-height: 1.2; }
.next-project em { font-style: normal; color: var(--accent); margin-left: 20px; }
.next-project:hover strong { color: var(--accent); }

/* Content enters in staggered groups, changing only sharpness and opacity. */
.reveal-pending { opacity: 0; }
main { opacity: 1; filter: none; }
.motion-enhanced main { transition: opacity .57s ease, filter .57s ease; }
.is-leaving main { opacity: 0; filter: blur(12px); pointer-events: none; }

.site-frame { position: relative; min-height: calc(100svh - 48px); border-radius: 24px; background: var(--bg); padding-bottom: 1px; }
.home-page .site-frame { padding-bottom: 0; }
.site-header { position: fixed; z-index: 30; top: 40px; left: 50%; width: max-content; max-width: calc(100% - 72px); translate: -50% 0; }
.site-nav { display: flex; align-items: center; gap: 18px; padding: 0 6px; border-radius: 24px; background: rgba(7,7,8,.88); font-size: 11px; line-height: 1; white-space: nowrap; }
.site-nav > a { color: #bcbcbc; padding-block: 10px; }
.site-nav > a:hover, .site-nav > a[aria-current] { color: #fff; }
.site-nav .home-mark { color: #bc343b; font-size: 23px; line-height: 1; padding-block: 3px; }
.contacts { position: relative; margin-left: 3px; }
.contacts summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 999px; background: #f2f2f4; color: #17171a; font-size: 11px; }
.contacts summary::-webkit-details-marker { display: none; }
.contacts summary > span:first-child { font-size: 15px; }
.chevron { font-size: 13px; }
.contacts[open] .chevron { color: #9a3035; }
.contacts summary:focus-visible { background: #e8b547; }
.contact-panel { position: absolute; right: 0; top: calc(100% + 12px); min-width: 180px; padding: 7px; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; background: #171719; box-shadow: 0 15px 50px #0008; }
.contact-panel a { display: flex; justify-content: space-between; padding: 13px 10px; border-radius: 9px; font-size: 12px; color: var(--ink); }
.contact-panel a:hover, .contact-panel a:focus-visible { background: #272729; }
.contact-panel span { color: var(--muted); }
.landing h1 { font-size: clamp(25px,2.3vw,34px); line-height: 1.3; letter-spacing: -.015em; }
.intro-company { margin-top: 7px; font-size: clamp(24px,2.2vw,32px); }
.company-tag { padding: 3px 13px 5px; line-height: 1.15; box-shadow: inset 0 0 12px #ffffff08; }
.company-tag .company-symbol { display: inline-grid; place-items: center; width: 20px; height: 21px; border-radius: 5px; margin-right: 3px; color: #171719; background: #e8b547; font: 600 15px/1 Arial,sans-serif; vertical-align: 3px; }
.art-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 45px 16px; padding-bottom: 45px; }
.art-tile figure { margin: 0; }
.art-image { aspect-ratio: 1.25; display: grid; place-items: center; padding: 30px; overflow: hidden; }
.art-image img { width: 100%; height: 100%; max-height: 550px; object-fit: contain; }
.art-image.award { background: #070a08; }
.art-image.sup { background: #a38bd2; }
.art-tile figcaption { display: flex; justify-content: space-between; gap: 20px; padding: 15px 10px 0; font-size: 13px; color: var(--secondary); }
.case-page .site-frame, .about-page .site-frame { padding-bottom: 25px; }

@media (max-width: 900px) {
  .shell { width: calc(100% - 48px); }
  .case-intro { gap: 40px; }
  .about-details { gap: 40px; }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 36px); }
  .wide-shell { width: calc(100% - 20px); }
  .landing { padding-left: 22px; padding-right: 22px; }
  .intro-name { font-size: 11px; margin-bottom: 20px; }
  .landing h1 { font-size: clamp(24px,5.7vw,30px); line-height: 1.35; }
  .intro-company { font-size: 22px; }
  .about-button { margin-top: 28px; font-size: 12px; }
  .about-intro { padding: 96px 3px 48px; }
  .about-intro .back-link { margin-bottom: 36px; }
  .about-bio h1 { font-size: 17px; }
  .about-bio p { font-size: 14px; }
  .profile-links { gap: 18px; margin-top: 18px; font-size: 10px; }
  .work-grid { grid-template-columns: 1fr; gap: 36px; }
  .project-cover { aspect-ratio: 1.25; }
  .project-heading { margin-top: 13px; padding-inline: 8px; }
  .project-heading h3 { font-size: 17px; }
  .project-summary { margin-inline: 8px; font-size: 12px; }
  .project-tags { margin-inline: 8px; }
  .project-open { width: 31px; height: 31px; font-size: 17px; bottom: 12px; right: 12px; }
  .about-details { grid-template-columns: 1fr; gap: 30px; padding-top: 58px; padding-bottom: 40px; }
  .about-details p { font-size: 12px; }
  .about-footer { font-size: 9px; padding-top: 22px; }
  .about-footer > div { gap: 19px; }
  .case-hero { padding-top: 96px; padding-bottom: 25px; }
  .case-hero .back-link { margin-bottom: 35px; font-size: 10px; }
  .case-hero h1 { font-size: clamp(41px,11vw,62px); }
  .case-subtitle { font-size: 19px; margin-bottom: 28px; }
  .case-meta { grid-template-columns: 1fr 1fr; gap: 20px; }
  .case-meta div:nth-child(2) { grid-column: 1/-1; grid-row: 2; }
  .case-meta dd { font-size: 11px; }
  .case-cover { margin-bottom: 35px; }
  .case-intro { grid-template-columns: 1fr; gap: 25px; padding-bottom: 35px; }
  .case-intro h2, .case-section h2 { font-size: 29px; }
  .case-intro p, .case-section > p { font-size: 14px; }
  .case-section { padding: 32px 0; }
  .principles { grid-template-columns: 1fr; gap: 24px; margin-top: 25px; }
  .principle { padding-top: 16px; }
  .principle h3 { font-size: 20px; margin-top: 10px; }
  .principle p { font-size: 13px; }
  .asset-pair { grid-template-columns: 1fr; gap: 15px; margin-top: 28px; }
  .asset-panel { min-height: 250px; padding: 22px; }
  .asset-panel img { max-height: 380px; }
  .asset-panel.wide { grid-column: auto; }
  .mobile-source { width: 230px; height: 400px; }
  .attribution { font-size: 10px; }
  .next-project { padding: 30px 0 35px; margin-top: 30px; }
  .next-project strong { font-size: 31px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .is-leaving main { opacity: 1; filter: none; pointer-events: auto; }
  .reveal-pending { opacity: 1; }


}

@media (max-width: 650px) {
  body { padding: 12px; }
  .site-frame { border-radius: 20px; min-height: calc(100svh - 24px); }
  .landing { min-height: calc(100svh - 24px); padding-inline: 16px; }
  .site-header { top: 26px; max-width: calc(100% - 42px); }
  .site-nav { gap: 12px; font-size: 10px; padding-inline: 0; }
  .site-nav .home-mark { font-size: 20px; }
  .contacts { margin-left: 0; }
  .contacts summary { font-size: 10px; padding: 7px 9px; gap: 3px; }
  .contacts summary > span:first-child { font-size: 13px; }
  .shell { width: calc(100% - 32px); }
  .wide-shell { width: calc(100% - 16px); }
  .landing h1 { font-size: clamp(23px,5.6vw,30px); line-height: 1.3; }
  .intro-company { font-size: 24px; }
  .company-tag .company-symbol { width: 17px; height: 18px; font-size: 13px; vertical-align: 2px; }
  .art-grid { grid-template-columns: 1fr; gap: 34px; }
  .art-image { padding: 20px; }
}
