@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-cyrillic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-italic-cyrillic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: dark;
  --ground: #100f0d;
  --paper: #ede6da;
  --muted: #d3cabe;
  --rule: rgba(213, 201, 184, .51);
  --wine: #87464a;
  --serif: "Cormorant Garamond", Baskerville, Georgia, serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--paper); background: var(--ground); font-family: var(--serif); }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #e8c99e; outline-offset: 5px; }
::selection { color: #fff8ee; background: #743d42; }
.wrap { width: min(90.35%, 116rem); margin-inline: auto; }
.ruled { border-top: 1px solid var(--rule); }
section[id], footer[id] { scroll-margin-block-start: 1rem; }
.label, .project-type, .site-nav, .disciplines, .outline-button, .email, .project-pagination {
  font-family: var(--sans);
  font-weight: 400;
  text-transform: uppercase;
}
.label { font-size: clamp(.875rem, .99vw, 1.125rem); line-height: 1.35; letter-spacing: .15em; }
.skip-link {
  position: fixed; inset: .6rem auto auto .6rem; z-index: 20; padding: .8rem 1rem;
  color: var(--ground); background: var(--paper); font: 1rem var(--sans); transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.opening { isolation: isolate; position: relative; }
.opening-image {
  position: absolute; z-index: -1; inset: 0 0 auto; height: 56.25vw; overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 0%, #000 77%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 77%, transparent 100%);
}
.opening-image img, .opening-image video { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.opening-image video { position: absolute; inset: 0; }
@media (prefers-reduced-motion: reduce) { .opening-image video { display: none; } }
.masthead {
  position: absolute; z-index: 2; inset: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: clamp(1.05rem, 1.62vw, 2.2rem);
}
.wordmark {
  display: inline-flex; align-items: baseline; width: max-content; white-space: nowrap;
  color: #f0e9dd; font-family: var(--serif); font-size: clamp(3rem, 4.12vw, 5.3rem);
  font-weight: 400; line-height: .88; letter-spacing: -.042em;
}
.wordmark i { display: inline-block; align-self: center; width: .68em; height: 1px; margin: .23em .035em 0 .06em; background: currentColor; }
.site-nav { align-self: flex-start; display: flex; align-items: center; gap: clamp(1.5rem, 2.75vw, 3.5rem); }
.site-nav a, .email {
  color: var(--paper); font-size: clamp(.83rem, .94vw, 1.08rem);
  letter-spacing: .145em; line-height: 1.4;
  text-decoration: underline solid transparent 1px; text-underline-offset: .36em;
  transition: text-decoration-color .2s ease;
}
.site-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; white-space: nowrap; }
.site-nav a:hover, .email:hover { text-decoration-color: currentColor; }
.hero {
  min-height: clamp(32rem, 44.86vw, 62rem);
  padding: clamp(8.7rem, 11.28vw, 16rem) 0 clamp(4.5rem, 7.5vw, 10rem) .74vw;
}
.hero-copy { width: max-content; max-width: 100%; }
.hero h1 {
  margin: clamp(2.35rem, 2.74vw, 3.5rem) 0 0 -.025em;
  font-size: clamp(5.2rem, 7.28vw, 10rem); font-weight: 400;
  line-height: 1.02; letter-spacing: -.045em;
}
.hero h1 span { display: block; }
.hero h1:lang(ru) { font-size: clamp(4.5rem, 6.7vw, 9.25rem); }
.disciplines {
  display: flex; align-items: center; flex-wrap: wrap; gap: .64em;
  margin-top: clamp(1.2rem, 1.46vw, 2rem);
  color: var(--paper); font-size: clamp(.78rem, .98vw, 1.12rem); line-height: 1.45; letter-spacing: .15em;
}
.disciplines b { color: var(--muted); font-weight: 400; }
.outline-button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 1.65em;
  min-height: 3rem; padding: .94em 1.7em;
  border: 1px solid #c9bcaa; background: rgba(12, 10, 9, .34);
  font-size: clamp(.8rem, .94vw, 1.08rem); line-height: 1.25; letter-spacing: .14em;
  transition: border-color .2s ease, background .2s ease;
}
.outline-button:hover { border-color: #f0e4d3; background: rgba(46, 34, 30, .75); }
.hero-button {
  margin-top: clamp(1.85rem, 2.62vw, 3.2rem); min-width: clamp(17rem, 21.85vw, 27rem);
  min-height: clamp(3rem, 3.25vw, 4rem); padding-inline: 2.15em 1.65em;
  border-color: var(--wine); background: rgba(38, 15, 17, .4);
}
.hero-button:hover { border-color: #ba7477; background: rgba(75, 29, 33, .65); }
.arrow { position: relative; display: inline-block; width: 1.28em; height: 1px; flex: none; background: currentColor; }
.arrow::after {
  position: absolute; content: ""; right: .02em; top: 50%; width: .45em; height: .45em;
  border-top: 1px solid; border-right: 1px solid; transform: translateY(-50%) rotate(45deg);
}

.work { padding-bottom: clamp(2.4rem, 4.35vw, 5.4rem); }
.work-heading { padding-block: clamp(1.45rem, 2.35vw, 2.9rem) clamp(1.25rem, 1.95vw, 2.4rem); }
.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 1.22vw, 1.6rem); }
.work-card { display: block; min-width: 0; }
.poster { width: 100%; aspect-ratio: 9 / 16; overflow: hidden; background: #211d18; }
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .6s ease; }
.work-card h3 {
  margin: clamp(.8rem, 1.1vw, 1.4rem) 0 .28em;
  font-size: clamp(1.15rem, 1.55vw, 2rem); line-height: 1.1; font-weight: 500; letter-spacing: .025em; text-transform: uppercase;
}
.project-type { color: var(--muted); font-size: clamp(.75rem, .83vw, 1rem); line-height: 1.5; letter-spacing: .235em; }
@media (hover: hover) {
  .work-card:hover .poster img { transform: scale(1.035); filter: brightness(1.05); }
  .work-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
}

.approach { display: grid; grid-template-columns: 52% 1fr; column-gap: 8%; align-items: center; padding-block: clamp(2.1rem, 3.1vw, 4.1rem); }
.statement, .creator-copy h3, .invitation {
  font-family: var(--serif); font-size: clamp(2.1rem, 3.9vw, 4.85rem);
  font-weight: 400; line-height: .99; letter-spacing: -.033em;
}
.statement { margin-top: clamp(.8rem, 1.5vw, 1.9rem); }
.statement:lang(ru) { font-size: clamp(2.05rem, 3.52vw, 4.45rem); }
.approach-note {
  position: relative; color: var(--paper); font-size: clamp(1.18rem, 1.93vw, 2.35rem);
  font-weight: 500; line-height: 1.22; letter-spacing: -.013em;
}
.approach-note::before {
  position: absolute; content: ""; left: -9.1%; top: -1%; height: 102%; width: 1px;
  transform: rotate(14deg); background: var(--wine);
}
.creator { padding-block: clamp(2rem, 2.65vw, 3.4rem) clamp(2rem, 3.55vw, 4.4rem); }
.creator-grid { display: grid; grid-template-columns: 52% 1fr; align-items: center; column-gap: 5.6%; margin-top: clamp(.7rem, 1.05vw, 1.3rem); }
.creator-photo { aspect-ratio: 1.91; overflow: hidden; background: #282520; }
.creator-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 63% 45%; }
.creator-copy h3 { font-size: clamp(2.15rem, 4.05vw, 5rem); }
.creator-copy h3:lang(ru) { font-size: clamp(2.05rem, 3.48vw, 4.4rem); }
.creator-copy p {
  max-width: 40ch; margin-top: clamp(1rem, 1.6vw, 2rem);
  color: var(--muted); font-family: var(--serif); font-size: clamp(1.25rem, 1.85vw, 2.3rem);
  font-style: italic; font-weight: 500; line-height: 1.23;
}

.contact { isolation: isolate; position: relative; overflow: hidden; }
.contact-image {
  position: absolute; z-index: -1; inset: 0;
  background-image: linear-gradient(90deg, rgba(13, 12, 10, .25) 0%, transparent 67%), url("assets/images/contact-atrium.webp");
  background-position: center, center 56%; background-size: cover;
}
.contact-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 15, 13, .52), transparent 25%, transparent 69%, rgba(12, 10, 8, .25)); }
.contact-inner { padding-block: clamp(2.25rem, 3.2vw, 4rem) clamp(3.25rem, 5.35vw, 6.7rem); }
.invitation { margin-top: clamp(1rem, 1.55vw, 2rem); font-size: clamp(2.7rem, 4.55vw, 5.7rem); }
.contact-bottom { display: flex; align-items: end; justify-content: space-between; gap: 1.8rem; margin-top: clamp(1.6rem, 2.6vw, 3.3rem); }
.contact-actions { display: flex; align-items: center; gap: clamp(1.1rem, 2.35vw, 3rem); }
.contact-slash { height: clamp(1.75rem, 2.7vw, 3.3rem); width: 1px; transform: rotate(14deg); background: var(--wine); }
.email { font-size: clamp(.78rem, .98vw, 1.2rem); }
.footer-mark { font-size: clamp(2.9rem, 4.3vw, 5.4rem); text-shadow: 0 1px 5px #17120f; }

.project-dialog {
  width: min(56rem, calc(100% - 3rem)); max-width: none; max-height: calc(100dvh - 2.5rem);
  margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain;
  background: #15130f; color: var(--paper); border: 1px solid #706558;
}
.project-dialog::backdrop { background: rgba(6, 5, 4, .87); }
html:has(.project-dialog[open]) { overflow: hidden; }
.viewer { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: center; position: relative; }
.dismiss { position: absolute; z-index: 2; top: .7rem; right: .7rem; margin: 0; }
.close-button { width: 2.75rem; height: 2.75rem; padding: 0; background: #191611e8; border: 1px solid #786e60; font: 300 1.75rem/1 var(--sans); }
.close-button:hover { border-color: var(--paper); }
.viewer-frame { min-width: 0; aspect-ratio: 9 / 16; max-height: calc(100dvh - 2.65rem); justify-self: center; width: 100%; background: #090807; }
.viewer-frame video, .viewer-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.viewer-copy { padding: clamp(1.6rem, 3.7vw, 3.5rem); }
.viewer-copy .label { font-size: .79rem; letter-spacing: .14em; }
.viewer-copy h2 { margin-block: 1rem; font-size: clamp(2.8rem, 4.25vw, 4.5rem); font-weight: 400; line-height: .97; letter-spacing: -.035em; }
.viewer-description { font-size: clamp(1.2rem, 1.65vw, 1.52rem); line-height: 1.35; color: var(--muted); }
.project-pagination { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.1rem; border-top: 1px solid var(--rule); }
.project-pagination button { padding: .95rem 0 .45rem; border: 0; background: none; font-size: .76rem; letter-spacing: .10em; text-transform: uppercase; }
.project-pagination button:hover { text-decoration: underline; text-underline-offset: .3em; }

@media (min-width: 2200px) {
  .opening-image { height: 76rem; }
  .hero { padding-left: 1rem; }
}
@media (max-width: 980px) and (min-width: 701px) {
  .hero { min-height: 32rem; padding-top: 8.4rem; }
  .opening-image { min-height: 35.5rem; }
  .hero h1 { font-size: clamp(4.65rem, 8.8vw, 5.45rem); }
  .hero-copy { max-width: 76%; }
  .disciplines { font-size: .75rem; gap: .4em; }
  .approach-note { font-size: 1.25rem; }
}
@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
  .work-card h3 { font-size: clamp(1.15rem, 2.9vw, 1.5rem); }
}
@media (max-width: 700px) {
  .wrap { width: 89%; }
  .opening { --phone-hero: clamp(37rem, 86svh, 48rem); }
  .opening-image { height: var(--phone-hero); mask-image: none; -webkit-mask-image: none; }
  .opening-image img, .opening-image video { object-position: 68% top; }
  .opening-image::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(12, 11, 9, .35), transparent 20%, transparent 37%, rgba(14, 12, 10, .69) 62%, var(--ground) 100%);
  }
  .masthead { padding-top: 1.25rem; align-items: center; }
  .wordmark { font-size: clamp(2.65rem, 8vw, 3.4rem); }
  .masthead:lang(ru) .wordmark { font-size: clamp(1.65rem, 8vw, 3.4rem); }
  .site-nav { align-self: center; gap: clamp(.6rem, 2.8vw, 1.45rem); }
  .site-nav a { font-size: .76rem; letter-spacing: .10em; }
  .hero { min-height: var(--phone-hero); display: flex; align-items: end; padding: 12rem 0 2.55rem; }
  .hero-copy { width: 100%; }
  .hero h1 { margin-top: 1rem; font-size: clamp(2.75rem, 12.6vw, 5.35rem); line-height: 1.02; letter-spacing: -.04em; }
  .hero h1:lang(ru) { font-size: clamp(2.45rem, 11vw, 4.7rem); }
  .disciplines { max-width: 32rem; margin-top: 1.35rem; column-gap: .46em; row-gap: .2em; font-size: .76rem; letter-spacing: .095em; }
  .hero-button { min-width: 15rem; min-height: 2.9rem; margin-top: 1.5rem; padding-inline: 1.4rem; }
  .work-heading { padding-block: 1.5rem 1.25rem; }
  .approach, .creator-grid { grid-template-columns: 1fr; }
  .approach { gap: 1.6rem; padding-block: 2.25rem; }
  .statement { margin-top: 1rem; font-size: clamp(2rem, 7.2vw, 3rem); }
  .statement:lang(ru) { font-size: clamp(1.95rem, 7vw, 3rem); }
  .approach-note { margin-left: .5rem; padding-left: 1.1rem; font-size: 1.28rem; max-width: 37ch; }
  .approach-note::before { left: 0; top: 3%; height: 95%; transform: rotate(7deg); }
  .creator { padding-block: 2rem 2.25rem; }
  .creator-grid { gap: 1.45rem; }
  .creator-copy h3 { font-size: clamp(2.2rem, 7.5vw, 3.3rem); }
  .creator-copy h3:lang(ru) { font-size: clamp(1.95rem, 7.4vw, 3.2rem); }
  .creator-copy p { margin-top: .9rem; max-width: 34ch; font-size: 1.35rem; }
  .contact-inner { padding-block: 2.2rem 2rem; }
  .contact-image { background-position: center, 67% center; }
  .contact-image::after { background: linear-gradient(90deg, rgba(11, 10, 8, .78), rgba(11, 10, 8, .23) 74%); }
  .invitation { font-size: clamp(2.3rem, 8.5vw, 3.35rem); }
  .contact-bottom { align-items: start; flex-direction: column; gap: 2.4rem; }
  .contact-actions { flex-wrap: wrap; gap: .9rem 1.15rem; }
  .contact-slash { display: none; }
  .email { min-height: 2.75rem; display: inline-flex; align-items: center; }
  .footer-mark { align-self: end; font-size: 2.8rem; }
}
@media (max-width: 530px) {
  .work-grid { grid-template-columns: 1fr; gap: 1.85rem; }
  .work-card h3 { font-size: 1.4rem; }
  .project-type { font-size: .78rem; }
  .project-dialog { width: min(94%, 28rem); max-height: 94dvh; }
  .viewer { display: flex; flex-direction: column; }
  .viewer-frame { max-height: none; width: min(100%, 30.4dvh); }
  .viewer-copy { width: 100%; padding: 1.4rem; }
  .viewer-copy h2 { font-size: 2.8rem; margin-block: .6rem; }
  .project-pagination { margin-top: 1.1rem; }
}
@media (max-width: 360px) {
  .masthead .wordmark { font-size: 2.2rem; }
  .site-nav { gap: .45rem; }
  .site-nav a { font-size: .69rem; letter-spacing: .075em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

.creator-copy .signature { margin-top: clamp(.8rem, 1.2vw, 1.5rem); font-size: clamp(1.1rem, 1.5vw, 1.9rem); font-style: italic; color: var(--paper); }

/* девиз под логотипом */
.wordmark { flex-direction: column; align-items: flex-start; gap: .26em; }
.wordmark .mark { display: inline-flex; align-items: baseline; }
.wordmark .motto { color: var(--muted); font-family: var(--sans); font-size: .15em; letter-spacing: .42em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.wordmark .motto:lang(ru) { font-size: .13em; letter-spacing: .24em; }
.footer-mark .motto { text-shadow: 0 1px 5px #17120f; }
@media (max-width: 700px) { .masthead .wordmark .motto { display: none; } }
