@font-face {
  font-family: Oswald;
  src: url("assets/oswald-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  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;
}
@font-face {
  font-family: Oswald;
  src: url("assets/oswald-cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Caveat;
  src: url("assets/caveat-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #0b090a;
  --paper: #f3f1ed;
  --red: #a51d2a;
  --red-on-dark: #ff6b70;
  --display: Oswald, "Arial Narrow", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 4.2vw, 5.75rem);
  --section-space: clamp(4.5rem, 9vw, 10rem);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --vh: 1vh;
}

@supports (height: 1svh) {
  :root { --vh: 1svh; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 1rem/1.55 system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}
h1, h2, p, figure, ol { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

.wrap {
  width: 100%;
  max-width: 100rem;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  z-index: 5;
  top: .5rem;
  left: .5rem;
  padding: .75rem 1rem;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.hero {
  --hero-height: max(35rem, calc(var(--vh) * 100));
  --name-size: clamp(5.5rem, min(11.35vw, calc(var(--vh) * 19.5)), 14.5rem);
  --name-line: .9;
  --hero-foot: clamp(3.8rem, calc(var(--vh) * 7.6), 5.4rem);
  --name-bottom: calc(var(--hero-foot) - 1.5rem);
  --photo-shift: 0px;
  --photo-top: clamp(2.8rem, calc(var(--vh) * 5), 4.5rem);
  --photo-bottom: calc(var(--name-bottom) + var(--name-size) * (var(--name-line) + .15) + .5rem);
  --photo-gap: clamp(.65rem, 2vw, 1.75rem);
  position: relative;
  isolation: isolate;
  min-height: var(--hero-height);
  overflow: hidden;
  overflow: clip;
  background: radial-gradient(ellipse at 50% 40%, #202628, var(--ink) 73%);
}
.hero-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: max(.8rem, env(safe-area-inset-top));
}
.signature {
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  min-height: 44px;
  font: 650 1.8rem/1 var(--display);
  letter-spacing: -.06em;
}
.signature span { color: var(--red-on-dark); }
.hero-header nav {
  display: flex;
  gap: clamp(.95rem, 3vw, 3.25rem);
  align-items: center;
}
.hero-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 170ms ease;
}
.hero-header nav a:hover { color: var(--red-on-dark); }
.nav-arrow { margin-inline-start: .4em; }
.hero-scene {
  position: absolute;
  z-index: -2;
  inset: var(--photo-top) var(--gutter) var(--photo-bottom);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--photo-gap);
  transform: translateY(var(--photo-shift));
}
.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, #0b090a60, transparent 16% 73%, #0b090a4a 88%, var(--ink));
  pointer-events: none;
  content: "";
}
.hero-photo {
  --photo-width: calc((var(--hero-height) - var(--photo-top) - var(--photo-bottom)) * .5625);
  display: block;
  width: min(45rem, var(--photo-width), calc((100% - var(--photo-gap)) / 2));
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6% 97%, transparent),
    linear-gradient(180deg, transparent 5.8%, #000 7.5% 98%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 6% 97%, transparent),
    linear-gradient(180deg, transparent 5.8%, #000 7.5% 98%, transparent);
  mask-composite: intersect;
  clip-path: inset(1px);
}
.hero-meta {
  position: absolute;
  top: 33%;
  inset-inline: 0;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: .8rem;
  color: #f3eeed;
  text-shadow: 0 1px 9px #080708, 0 1px 3px #080708;
  font-size: clamp(.65rem, 1vw, .82rem);
  line-height: 1.6;
  letter-spacing: .105em;
  text-transform: uppercase;
}
.hero-meta p { position: relative; padding-top: .72rem; }
.hero-meta p::before {
  position: absolute;
  top: 0;
  width: 1.65rem;
  height: 1px;
  background: var(--red-on-dark);
  content: "";
}
.hero-meta p:last-child { text-align: right; }
.hero-meta p:last-child::before { right: 0; }
.hero-meta strong { color: var(--paper); font-weight: 650; }

.hero-title {
  position: absolute;
  z-index: 1;
  inset-inline: 0;
  bottom: var(--name-bottom);
  pointer-events: none;
  font: 650 var(--name-size)/var(--name-line) var(--display);
  letter-spacing: -.043em;
  color: #fffdf8;
  text-shadow: 0 2px 22px #0b090a60;
}
.hero-name-static {
  display: block;
  padding: .03em var(--gutter) .12em;
  text-align: center;
  font-size: min(.9em, 9.9vw);
  white-space: nowrap;
}
.marquee { display: none; overflow: hidden; }
.marquee-track { display: flex; width: max-content; }
.marquee-group {
  display: flex;
  flex: none;
  align-items: baseline;
  justify-content: space-between;
  gap: .24em;
  min-width: 100vw;
  padding: .03em .24em .12em .13em;
  white-space: nowrap;
}
.marquee-dash { color: #df535d; font-weight: 500; }

.hero-controls {
  position: absolute;
  z-index: 2;
  inset-inline: 0;
  bottom: max(.8rem, env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero-down {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  color: #d0bdc0;
  font-size: .78rem;
  transition: color 170ms ease;
}
.hero-down:hover { color: var(--paper); }
.hero-down span { color: var(--red-on-dark); font-size: 1.1rem; }
.round-button {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color 170ms ease, border-color 170ms ease, color 170ms ease;
}
.round-button:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.motion-toggle span {
  width: 9px;
  height: 11px;
  border-inline: 2px solid currentColor;
}
.hero.is-paused .motion-toggle span {
  width: 0;
  height: 0;
  margin-left: 2px;
  border: 0;
  border-block: 6px solid transparent;
  border-left: 9px solid currentColor;
}

.display-heading {
  font: 650 clamp(3.65rem, 8vw, 9rem)/1.02 var(--display);
  letter-spacing: -.045em;
}

.about {
  padding-block: clamp(3.25rem, 6.2vw, 6.5rem) calc(clamp(3rem, 6vw, 6.75rem) * .65);
  border-top: 1px solid #ffffff20;
  background: #191617;
  color: #fffdf8;
}
.about-layout {
  display: grid;
  grid-template-columns: min(47%, 35rem) minmax(0, 1fr);
  grid-template-areas: "heading heading" "photos copy";
  gap: clamp(1.4rem, 2.6vw, 2.3rem) clamp(2rem, 6.2vw, 6.25rem);
  align-items: start;
}
.about-header {
  grid-area: heading;
}
.about-label {
  margin-bottom: .7rem;
  color: #cec0c2;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
}
.about-heading {
  font: 650 clamp(2.5rem, 3.45vw, 3rem)/1.02 var(--display);
  letter-spacing: .012em;
  text-wrap: pretty;
}
.about-copy {
  grid-area: copy;
  max-width: 58ch;
  color: #f3eeed;
  font-size: clamp(1rem, 1.35vw, 1.17rem);
  line-height: 1.65;
}
@media (min-width: 721px) {
  .about-copy {
    --copy-inset: clamp(0px, 5.5vw - 48px, 52px);
    justify-self: end;
    width: calc(100% - var(--copy-inset));
    margin-inline-end: var(--copy-inset);
  }
}
.about-copy p + p { margin-top: .9em; }
.about-brand { color: var(--red-on-dark); }
.about-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 clamp(1rem, 2.4vw, 2rem);
  margin-top: clamp(1.6rem, 3.2vw, 2.4rem);
}
.about-signature { color: var(--paper); font: 600 clamp(2rem, 4vw, 3rem)/1.1 Caveat, cursive; }
.about-portal {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  min-height: 44px;
  font-size: .87rem;
  text-decoration: underline;
  text-underline-offset: .25em;
}
.about-portal:hover, .about-portal:focus-visible { color: var(--red-on-dark); }
.about-photos {
  grid-area: photos;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.55rem, 1.2vw, 1rem);
  max-width: 35rem;
}
.about-photos img {
  display: block;
  width: 100%;
  height: auto;
}
.photo-team { --reveal-delay: 115ms; }
.mantra {
  margin-top: clamp(3.2rem, 6.25vw, 6.75rem);
  padding-top: clamp(1rem, 2.4vw, 2.5rem);
  border-top: 1px solid #ffffff38;
  color: var(--red-on-dark);
  font: 600 clamp(1.47rem, 3.81vw, 4.2rem)/1.06 var(--display);
  letter-spacing: -.045em;
}

.projects {
  padding-block: calc(var(--section-space) * .65) var(--section-space);
  background: #110f10;
}
#projects-title { font-size: clamp(2.555rem, 5.6vw, 6.3rem); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem 3rem;
  margin-bottom: clamp(2.25rem, 4.9vw, 4.5rem);
}
.section-head p {
  flex: 0 0 22ch;
  padding-bottom: .33em;
  color: #cec0c2;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
}
.project-list {
  padding: 0;
  border-top: 1px solid #483b3f;
  list-style: none;
}
.project-list li { border-bottom: 1px solid #483b3f; }
.project-link {
  position: relative;
  display: grid;
  grid-template-columns: clamp(1.9rem, 4vw, 4rem) minmax(0, .95fr) minmax(0, 1fr) 2.6rem;
  column-gap: clamp(.65rem, 2vw, 2.25rem);
  align-items: center;
  min-height: 5.7rem;
  padding-block: 1.1rem;
  transition: background-color 180ms ease;
}
.project-link:hover, .project-link:focus-visible { background: #1c1417; }
.project-number { color: var(--red-on-dark); font-size: .8rem; font-variant-numeric: tabular-nums; }
.project-name {
  font-size: clamp(1rem, 1.65vw, 1.52rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.045em;
}
.project-description { max-width: 45ch; color: #c9bbbe; font-size: clamp(.89rem, 1.25vw, 1.025rem); }
.project-arrow {
  justify-self: center;
  font-size: 1.4rem;
  transition: color 180ms ease, transform 180ms ease;
}
.project-link:hover .project-arrow, .project-link:focus-visible .project-arrow {
  color: var(--red-on-dark);
  transform: translate(2px, -2px);
}
.project-preview {
  display: none;
}
@media (hover: hover) and (pointer: fine) and (min-width: 1000px) {
  .preview-ready .project-list { --preview-width: clamp(12rem, 20vw, 20rem); --preview-gap: clamp(1.1rem, 2.8vw, 2.5rem); margin-inline-end: calc(var(--preview-width) + var(--preview-gap)); }
  .project-preview {
    display: block;
    position: absolute;
    inset-inline-start: calc(100% + var(--preview-gap));
    inset-block-start: 50%;
    width: var(--preview-width);
    height: auto;
    aspect-ratio: 420 / 260;
    translate: 0 -50%;
    transform: translateY(6px);
    border: 1px solid #614751;
    background: #161314;
    box-shadow: 0 12px 30px #0009;
    object-fit: cover;
    pointer-events: none;
    opacity: 0;
    transition: opacity 210ms ease, transform 250ms var(--ease-out);
  }
  .project-list li:first-child .project-preview { inset-block-start: 0; translate: 0; }
  .project-list li:last-child .project-preview { inset-block: auto 0; translate: 0; }
  .project-link:is(:hover, :focus-visible) .project-preview.is-loaded { opacity: 1; transform: none; }
}

.contact {
  padding-top: var(--section-space);
  background: #000;
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(18rem, .7fr);
  column-gap: clamp(2rem, 5vw, 6rem);
  align-items: end;
}
.contact h2 { font-size: clamp(3.4rem, 7.4vw, 9rem); }
.contact-intro {
  max-width: 35ch;
  margin-top: 1.35rem;
  color: #ffefec;
  font-size: clamp(1rem, 1.45vw, 1.26rem);
}
.contact-links { position: relative; border-bottom: 1px solid #f2c6bd76; }
.contact-row {
  display: flex;
  align-items: center;
  border-top: 1px solid #f2c6bd76;
}
.contact-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label arrow" "value arrow";
  gap: .12rem .5rem;
  flex: 1;
  align-items: center;
  min-width: 0;
  min-height: 4rem;
  padding-block: .75rem;
  overflow-wrap: anywhere;
  transition: color 170ms ease;
}
.contact-link:hover { color: #fff; }
.contact-link span:not(.contact-label):not([aria-hidden]) { grid-area: value; }
.contact-label {
  grid-area: label;
  color: #ffdbd4;
  font-size: .72rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.contact-link [aria-hidden] { grid-area: arrow; font-size: 1.25rem; }
.contact-telegram {
  margin-block: .5rem;
  padding-inline: .9rem;
  border-radius: 2px;
  background: #fff2ee;
  color: #72111d;
  font-weight: 700;
  transition: background-color 170ms ease;
}
.contact-telegram .contact-label { color: #72111d; }
.contact-telegram:hover, .contact-telegram:focus-visible { background: #fff; color: #72111d; }
.contact-telegram [aria-hidden] { font-size: 1.45rem; }
.copy-button { margin-left: .8rem; }
.copy-icon {
  position: relative;
  width: 10px;
  height: 12px;
  border: 1px solid currentColor;
}
.copy-icon::before {
  position: absolute;
  inset: 2px -4px -4px 2px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
}
.copy-status {
  position: absolute;
  top: 100%;
  margin-top: .35rem;
  color: #ffefec;
  font-size: .83rem;
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 2rem;
  margin-top: clamp(5.25rem, 10vw, 9.5rem);
  padding-block: 1.45rem max(1.45rem, env(safe-area-inset-bottom));
  border-top: 1px solid #f2c6bd76;
  font-size: .72rem;
  font-weight: 620;
  letter-spacing: .07em;
}
.site-footer div span { color: #ffdbd4; }
.back-top {
  display: flex;
  align-items: center;
  gap: .55em;
  min-height: 44px;
  text-align: right;
  letter-spacing: 0;
  font-size: .86rem;
  white-space: nowrap;
}
.back-top:hover { text-decoration: underline; text-underline-offset: .25em; }

@media (prefers-reduced-motion: no-preference) {
  .hero-photo { animation: photo-in 760ms var(--ease-out) both; }
  .hero-run { animation-delay: 100ms; }
  .hero-meta, .hero-controls { animation: meta-in 680ms 210ms var(--ease-out) both; }
  .motion-ready .hero-name-static { display: none; }
  .motion-ready .marquee { display: block; animation: name-in 850ms 160ms var(--ease-out) both; }
  .marquee-track { animation: marquee 25s linear 1.3s infinite; }
  .hero.is-paused .marquee-track, .hero.is-away .marquee-track { animation-play-state: paused; }

  [data-reveal] { transition: opacity 620ms var(--reveal-delay, 0ms) var(--ease-out), translate 620ms var(--reveal-delay, 0ms) var(--ease-out); }
  [data-reveal="pending"]:not(:focus-within) { opacity: 0; translate: 0 18px; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (background-clip: text) {
    .mantra.is-filling {
      background-image: linear-gradient(90deg, var(--red-on-dark) 0 var(--mantra-fill, 0%), #b97579 calc(var(--mantra-fill, 0%) + 7%));
      background-clip: text;
      color: transparent;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .motion-toggle { display: none; }
  .project-link:hover .project-arrow, .project-link:focus-visible .project-arrow { transform: none; }
  .hero-scene { transform: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
@keyframes photo-in { from { opacity: .18; } to { opacity: 1; } }
@keyframes meta-in { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
@keyframes name-in { from { opacity: .1; translate: 0 .1em; } to { opacity: 1; translate: 0 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 950px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr) minmax(16rem, .8fr); }
}
@media (max-width: 720px) {
  .hero {
    --hero-height: max(33rem, calc(var(--vh) * 100));
    --hero-foot: max(4.1rem, calc(env(safe-area-inset-bottom) + 3.4rem));
    --name-size: clamp(2.6rem, min(13.65vw, calc(var(--vh) * 12)), 6.2rem);
    --name-line: 1.045;
    --name-bottom: var(--hero-foot);
  }
  .hero {
    --photo-top: clamp(3.35rem, calc(var(--vh) * 9), 5.25rem);
    --photo-bottom: calc(var(--hero-foot) + var(--name-size) + 3.65rem);
  }
  .hero-scene { inset-inline: max(.6rem, calc(var(--gutter) - .55rem)); }
  .hero-meta {
    top: auto;
    bottom: calc(var(--hero-foot) + var(--name-size) + 1.3rem);
    font-size: clamp(.59rem, 2.5vw, .75rem);
    letter-spacing: .075em;
  }
  .hero-meta p { padding-top: .56rem; }
  .marquee-track { animation-duration: 14s; }
  .hero-name-static { padding-inline: 1rem; font-size: min(.9em, 10.5vw); }
  .signature { font-size: 1.58rem; }
  .hero-header nav a { font-size: .76rem; }

  .display-heading { font-size: clamp(3rem, 11.8vw, 5.65rem); }
  #projects-title { font-size: clamp(2.1rem, 8.26vw, 3.955rem); }
  .about-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "copy" "photos";
    gap: 1.25rem;
  }
  .about-heading { font-size: clamp(1.9rem, 6.45vw, 2.5rem); }
  .mantra { max-width: 100%; text-wrap: balance; }

  .section-head { display: block; }
  .section-head p { margin-top: .85rem; padding: 0; }
  .project-link {
    grid-template-columns: 1.55rem minmax(0, 1fr) 1.7rem;
    grid-template-areas: "number title arrow" ". description arrow";
    gap: .32rem .6rem;
    min-height: 0;
    padding-block: 1.25rem;
  }
  .project-number { grid-area: number; align-self: start; font-size: .76rem; }
  .project-name { grid-area: title; }
  .project-description { grid-area: description; }
  .project-arrow { grid-area: arrow; }
  .project-preview { display: none; }

  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .contact h2 { font-size: clamp(3rem, 12vw, 6rem); }
  .contact-intro { margin-top: .9rem; }
}
@media (max-width: 350px) {
  .hero-header nav { gap: .6rem; }
  .hero-meta { font-size: .58rem; }
  .nav-arrow { display: none; }
}
@media (max-height: 550px) and (min-width: 721px) {
  .hero { --hero-height: 31rem; --name-size: clamp(5rem, 11vw, 7rem); }
}
@media (forced-colors: active) {
  .mantra.is-filling { color: CanvasText; background: none; }
}
