
:root {
  --bg: #11110f;
  --bg-soft: #191916;
  --paper: #eae8e1;
  --paper-muted: #aaa9a1;
  --white: #f5f4ef;
  --text: #171714;
  --muted: #77766f;
  --accent: #d6ff42;
  --line-dark: rgba(255,255,255,.14);
  --line-light: rgba(0,0,0,.13);

  --font-main: "Manrope", sans-serif;
  --font-serif: "Playfair Display", serif;
  --font-mono: "DM Mono", monospace;

  --page-pad: clamp(22px, 6vw, 100px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}

body,
button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img,
iframe {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--accent);
  color: var(--text);
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity .6s ease, visibility .6s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-mark {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -.08em;
}

/* HEADER */

.site-header {
  position: relative;
  z-index: 20;
  height: 88px;
  padding: 0 var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-dark);
  background: var(--bg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -.08em;
}

.brand-name {
  font-size: 13px;
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.main-nav a,
.header-link {
  font-size: 12px;
  color: #c7c6bf;
  transition: color .3s ease;
}

.main-nav a:hover,
.header-link:hover {
  color: var(--accent);
}

.header-link span {
  color: var(--accent);
  margin-left: 5px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line-dark);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  margin: 6px 0;
  background: var(--white);
  transition: transform .3s 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);
}

/* COMMON */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--paper-muted);
}

.section-pad {
  padding: 130px var(--page-pad);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 65px;
}

.section-heading h2,
.profile-heading h2,
.contact-inner h2 {
  margin: 20px 0 0;
  font-size: clamp(38px, 6vw, 78px);
  line-height: .99;
  letter-spacing: -.065em;
  font-weight: 600;
}

.section-heading h2 em,
.profile-heading h2 em,
.contact-inner h2 em {
  color: var(--accent);
  font-family: var(--font-serif);
  font-weight: 500;
}

.section-note {
  margin: 0 0 7px;
  color: var(--paper-muted);
  font-size: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--accent);
  font-size: 12px;
  transition: gap .3s ease;
}

.text-link:hover {
  gap: 28px;
}

.text-link span {
  color: var(--accent);
}

/* HERO */

.hero {
  min-height: 690px;
  padding: 35px var(--page-pad) 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.hero-topline,
.hero-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 40px;
  padding: 65px 0;
}

.hero-pretitle {
  margin: 0 0 28px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-size: clamp(68px, 11vw, 154px);
  line-height: .82;
  letter-spacing: -.09em;
  font-weight: 700;
}

.hero-title-accent {
  color: var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -.075em;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  max-width: 510px;
  margin-top: 55px;
}

.hero-description {
  max-width: 320px;
  margin: 0;
  color: var(--paper-muted);
  font-size: 13px;
  line-height: 1.8;
}

.round-link {
  width: 53px;
  height: 53px;
  flex: 0 0 53px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 22px;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}

.round-link:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(4px);
}

.hero-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(214,255,66,.18);
  border-radius: 50%;
  transform: rotate(-28deg);
}

.orbit-one {
  width: 270px;
  height: 420px;
}

.orbit-two {
  width: 390px;
  height: 270px;
  transform: rotate(35deg);
}

.orbit-three {
  width: 440px;
  height: 440px;
  border-color: rgba(255,255,255,.08);
}

.hero-monogram {
  position: relative;
  z-index: 1;
  font-size: clamp(100px, 15vw, 190px);
  line-height: 1;
  letter-spacing: -.12em;
  font-weight: 800;
  color: rgba(255,255,255,.92);
}

.hero-monogram span {
  color: var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}

.hero-visual-caption {
  position: absolute;
  right: 5%;
  bottom: 8%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--paper-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .15em;
}

.hero-footer {
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
}

.hero-scroll {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--paper-muted);
}

/* PROJECT GRID */

.work-section {
  background: var(--paper);
  color: var(--text);
}

.work-section .eyebrow,
.work-section .section-note {
  color: var(--muted);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 55px 28px;
}

.project-card {
  display: block;
  min-width: 0;
}

.project-card-media {
  position: relative;
  aspect-ratio: 1.28 / 1;
  overflow: hidden;
  background: #22221f;
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.project-card:hover .project-card-media img {
  transform: scale(1.045);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 25px;
  background: linear-gradient(transparent 45%, rgba(0,0,0,.55));
  color: white;
}

.project-card-number {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
}

.project-card-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
  font-size: 20px;
  transition: background .3s ease, color .3s ease;
}

.project-card:hover .project-card-arrow {
  background: var(--accent);
  color: var(--text);
  border-color: var(--accent);
}

.project-card-info {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 19px;
}

.project-card-title {
  margin: 0;
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 600;
  letter-spacing: -.04em;
}

.project-card-meta {
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-card-year {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.loading-text {
  color: var(--muted);
}

/* PROFILE */

.profile-section {
  background: var(--bg-soft);
}

.profile-heading {
  margin-bottom: 65px;
}

.profile-content {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
  gap: clamp(40px, 10vw, 150px);
}

.profile-image-wrap {
  position: relative;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  background: #292923;
  overflow: hidden;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.image-index {
  position: absolute;
  bottom: 18px;
  left: 18px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  color: white;
}

.profile-info {
  max-width: 540px;
}

.profile-info h3 {
  margin: 20px 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -.06em;
}

.profile-text {
  max-width: 450px;
  color: var(--paper-muted);
  font-size: 14px;
  line-height: 1.9;
}

.profile-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin: 45px 0;
  padding: 25px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.profile-meta > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meta-label {
  color: var(--paper-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
}

.meta-value {
  font-size: 13px;
}

/* CONTACT */

.contact-section {
  background: var(--accent);
  color: var(--text);
}

.contact-section .eyebrow {
  color: rgba(0,0,0,.55);
}

.contact-inner {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-top: 40px;
}

.contact-inner h2 {
  font-size: clamp(42px, 7vw, 92px);
}

.contact-inner h2 em {
  color: rgba(0,0,0,.55);
}

.contact-link {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--text);
  font-size: 12px;
  white-space: nowrap;
  transition: gap .3s ease;
}

.contact-link:hover {
  gap: 30px;
}

/* FOOTER */

.site-footer {
  min-height: 100px;
  padding: 25px var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--bg);
}

.footer-copy,
.site-footer > a:last-child {
  color: var(--paper-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
}

/* PROJECT PAGE */

.project-intro {
  padding: 70px var(--page-pad) 55px;
}

.project-back {
  display: inline-flex;
  gap: 12px;
  margin-bottom: 65px;
  color: var(--paper-muted);
  font-size: 11px;
}

.project-back:hover {
  color: var(--accent);
}

.project-kicker {
  margin-bottom: 25px;
}

.project-title {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(46px, 8vw, 108px);
  line-height: .95;
  letter-spacing: -.075em;
  font-weight: 600;
}

.project-title em {
  color: var(--accent);
  font-family: var(--font-serif);
  font-weight: 500;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  margin-top: 55px;
  padding: 25px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.project-meta-item {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.project-meta-label {
  color: var(--paper-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
}

.project-meta-value {
  font-size: 12px;
}

.project-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #080808;
  overflow: hidden;
}

.project-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.project-video-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px var(--page-pad);
  color: var(--paper-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
}

.case-section {
  padding: 100px var(--page-pad);
}

.case-section:nth-child(even) {
  background: var(--bg-soft);
}

.case-section-heading {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: 40px;
  margin-bottom: 45px;
}

.case-section-number {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
}

.case-section-title {
  margin: 0;
  font-size: clamp(30px, 5vw, 58px);
  letter-spacing: -.06em;
  line-height: 1;
}

.case-section-text {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--paper-muted);
  font-size: 13px;
  line-height: 1.8;
}

.case-image {
  width: 100%;
  height: auto;
  background: #242420;
}

.case-image-wrap {
  overflow: hidden;
  background: #242420;
}

.project-source {
  padding: 65px var(--page-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--line-dark);
}

.project-source p {
  color: var(--paper-muted);
  font-size: 12px;
}

.project-source a {
  color: var(--accent);
  font-size: 12px;
}

.project-next {
  padding: 75px var(--page-pad);
  background: var(--paper);
  color: var(--text);
}

.project-next a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.project-next-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.project-next-title {
  margin: 15px 0 0;
  font-size: clamp(32px, 6vw, 65px);
  letter-spacing: -.07em;
}

.project-next-arrow {
  font-size: 38px;
}

/* ANIMATIONS */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.project-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* EMPTY / ERROR */

.project-loading,
.project-error {
  min-height: 50vh;
  padding: 100px var(--page-pad);
  color: var(--paper-muted);
}

.project-error h1 {
  color: var(--white);
  font-size: 42px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 300px;
  }

  .hero {
    min-height: auto;
  }

  .profile-content {
    gap: 50px;
  }

  .contact-inner {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  :root {
    --page-pad: 22px;
  }

  .site-header {
    height: 72px;
  }

  .brand-name {
    font-size: 12px;
  }

  .header-link {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 71px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px var(--page-pad) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line-dark);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: .3s ease;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .hero {
    padding-top: 25px;
  }

  .hero-content {
    padding: 75px 0 40px;
    gap: 25px;
  }

  .hero-title {
    font-size: clamp(62px, 16vw, 100px);
  }

  .hero-bottom {
    margin-top: 35px;
  }

  .hero-visual {
    min-height: 240px;
  }

  .hero-orbit.orbit-three {
    width: 270px;
    height: 270px;
  }

  .hero-scroll,
  .hero-location {
    display: none;
  }

  .section-pad {
    padding-top: 85px;
    padding-bottom: 85px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    margin-bottom: 40px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .project-card-media {
    aspect-ratio: 1.15 / 1;
  }

  .profile-content {
    grid-template-columns: 1fr;
  }

  .profile-image-wrap {
    max-width: 100%;
    width: min(100%, 380px);
  }

  .profile-heading {
    margin-bottom: 40px;
  }

  .profile-meta {
    margin: 30px 0;
  }

  .contact-inner {
    margin-top: 25px;
  }

  .site-footer {
    flex-wrap: wrap;
    min-height: 130px;
  }

  .footer-copy {
    order: 3;
    width: 100%;
  }

  .project-intro {
    padding-top: 45px;
  }

  .project-back {
    margin-bottom: 45px;
  }

  .project-meta {
    gap: 25px;
  }

  .case-section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .case-section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-video-caption {
    flex-direction: column;
  }

  .project-source {
    align-items: start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal,
  .project-card {
    opacity: 1;
    transform: none;
  }
}


/* MULTIPLE CASE IMAGES */

.case-images {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-image-wrap {
  width: 100%;
  overflow: hidden;
  background: #242420;
}

.case-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Анимация блоков кейса */

.case-section.reveal,
.project-intro.reveal,
.project-source.reveal,
.project-next.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .8s cubic-bezier(.22, 1, .36, 1),
    transform .8s cubic-bezier(.22, 1, .36, 1);
}

.case-section.reveal.is-visible,
.project-intro.reveal.is-visible,
.project-source.reveal.is-visible,
.project-next.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 700px) {
  .case-images {
    gap: 14px;
  }
}
