:root {
  --accent: #a59984;
  --paper: #f8f5f1;
  --ink: #000;
  --content: 1128px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; color: var(--ink); background: #fff; font-family: "Montserrat", Arial, sans-serif; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.mobile-break { display: none; }
.content-width { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }
.section-title { margin: 0; color: var(--accent); font-size: 26px; font-weight: 400; line-height: 1.2; }

.site-header { position: absolute; z-index: 20; top: 0; left: 0; width: 100%; height: 96px; color: #fff; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; width: min(var(--content), calc(100% - 48px)); height: 100%; margin-inline: auto; }
.site-header__logo { width: 94px; }
.site-header__logo img { width: 94px; height: 19px; }
.desktop-nav { display: flex; align-items: center; gap: 34px; }
.desktop-nav a { font-size: 16px; font-weight: 400; line-height: 20px; white-space: nowrap; transition: color .2s ease; }
.desktop-nav a:hover, .desktop-nav a.is-active { color: #edd0a0; }
.menu-toggle { display: none; width: 40px; height: 40px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.mobile-menu { position: fixed; z-index: 100; inset: 0; display: grid; align-content: center; width: 100%; min-height: 100svh; padding: 96px 21px 40px; color: #fff; background: #000; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.menu-close { position: absolute; top: 24px; right: 24px; width: 40px; height: 40px; padding: 0; border: 0; color: #fff; background: transparent; font-size: 42px; font-weight: 300; line-height: 36px; cursor: pointer; }
.mobile-menu__logo { width: 144px; margin: 0 0 42px 59px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 43px; margin-left: 59px; }
.mobile-menu nav a { font-size: 20px; line-height: 25px; }
.mobile-menu nav a:hover, .mobile-menu nav a.is-active { color: #edd0a0; }

.home-hero { position: relative; height: 900px; overflow: hidden; background: #000; }
.home-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.home-hero__image { position: absolute; left: 50%; bottom: -100px; width: max(100%, 2560px); height: 1306px; max-width: none; object-fit: cover; filter: grayscale(1); transform: translateX(-50%); animation: home-hero-settle 5s cubic-bezier(.22,.61,.36,1) both; }
.home-hero__brand { position: absolute; z-index: 2; top: 350px; left: 50%; display: flex; flex-direction: column; align-items: center; transform: translateX(-50%); color: #fff; text-align: center; }
.home-hero__brand img { width: 429px; height: auto; }
.home-hero__brand p { margin: 43px 0 0; font-size: 40px; font-weight: 300; letter-spacing: 7.2px; line-height: 1.22; white-space: nowrap; }

.projects { padding: 120px 0; }
.projects .section-title, .partners .section-title, .contacts > .section-title { text-align: center; }
.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 41px; }
.project-card { min-width: 0; }
.project-card__image { position: relative; height: 720px; overflow: hidden; background: #000; }
.project-card__image::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.project-card__image img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.project-card__image--highland img { object-position: 19% center; }
.project-card__image--lovo img { object-position: 49% center; }
.project-card__image--artemis img { object-position: 53% center; }
.project-card__image span { position: absolute; z-index: 1; top: 50%; left: 50%; color: #fff; font-size: 16px; line-height: 20px; white-space: nowrap; transform: translate(-50%, -50%); }
.project-card__image img { transition: transform 1.1s cubic-bezier(.22,.61,.36,1); }
.project-card:hover .project-card__image img { transform: scale(1.025); }
.project-card h2 { margin: 32px 0 0; font-size: 20px; font-weight: 400; line-height: 25px; text-align: center; }
.wide-button { width: 100%; height: 60px; margin-top: 79px; border: 0; color: #fff; background: #000; font-size: 20px; cursor: pointer; transition: background .2s ease; }
.wide-button:hover { background: var(--accent); }

.about { height: 660px; color: #fff; background: #000; }
.about__inner { display: grid; grid-template-columns: 456px 1fr; gap: 120px; height: 100%; }
.about__image { height: 660px; overflow: hidden; }
.about__image img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: grayscale(1); opacity: .75; transition: transform 1.4s cubic-bezier(.22,.61,.36,1); }
.about__image:hover img { transform: scale(1.018); }
.about__copy { align-self: start; padding-top: 92px; }
.about__copy p { max-width: 552px; margin: 24px 0 0; font-size: 16px; font-weight: 300; line-height: 28px; }

.partners { padding-top: 120px; }
.partners__viewport { margin-top: 41px; overflow: hidden; }
.partners__track { display: flex; width: max-content; height: 94px; will-change: transform; animation: partner-marquee 48s linear infinite; }
.partners__group { display: flex; flex: 0 0 auto; }
.partner { display: flex; align-items: center; justify-content: center; width: 264px; height: 94px; flex: 0 0 auto; padding: 10px 34px; }
.partner img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: .62; }
.partner--berg img, .partner--vasani img { transform: scale(.86); }
.partner--djia img { transform: scale(.68); }
.partner--italiapaint { overflow: hidden; }
.partner--italiapaint img { clip-path: inset(2px); transform: scale(1.03); }
.partners__viewport:hover .partners__track { animation-play-state: paused; }

.contacts { padding: 114px 0 120px; }
.contacts__card { position: relative; height: 528px; margin-top: 41px; overflow: hidden; color: #fff; background: #000; }
.contacts__mark { position: absolute; top: -61px; right: -12px; width: 631px; height: 651px; max-width: none; }
.contacts__copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 157px 0 0 96px; }
.contacts__copy h3 { margin: 0 0 35px; color: var(--accent); font-size: 26px; font-weight: 400; line-height: 32px; }
.contacts__copy > a:not(.contacts__instagram) { margin-bottom: 13px; font-size: 16px; font-weight: 300; line-height: 20px; }
.contacts__instagram { width: 24px; height: 24px; margin-top: 22px; }
.contacts__instagram img { width: 24px; height: 24px; }

.site-footer { height: 80px; color: #fff; background: #000; }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.site-footer img { width: 94px; height: 19px; }
.site-footer p { margin: 0; font-size: 14px; font-weight: 400; line-height: 17px; }

.process-hero { position: relative; height: 480px; overflow: hidden; color: #fff; background: #000; }
.process-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.process-hero > img { position: absolute; top: 50%; left: 50%; width: max(100%, 2178px); height: 1138px; max-width: none; object-fit: cover; filter: grayscale(1); transform: translate(-50%, -50%); animation: process-hero-settle 5s cubic-bezier(.22,.61,.36,1) both; }
.process-hero h1 { position: absolute; z-index: 1; top: 192px; left: 50%; margin: 0; font-size: 40px; font-weight: 400; line-height: 49px; letter-spacing: 7.2px; white-space: nowrap; transform: translateX(-50%); }
.process-flow { padding: 80px 0; }
.process-flow__list { margin-top: 52px; }
.stage { position: relative; min-height: 281px; padding: 16px 0 0 112px; }
.stage--visualization { min-height: 305px; }
.stage--last { min-height: 217px; }
.stage__icon { position: absolute; top: 15px; left: 0; display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: #f4f3f1; }
.stage__icon img { width: 34px; height: 34px; object-fit: contain; }
.stage:nth-child(2) .stage__icon img, .stage:nth-child(4) .stage__icon img, .stage:nth-child(6) .stage__icon img { transform: scale(.78); }
.stage__copy span { display: block; color: var(--accent); font-size: 20px; font-weight: 700; line-height: 24px; }
.stage__copy h3 { margin: 12px 0 17px; font-size: 30px; font-weight: 400; line-height: 36px; }
.stage__copy p, .services p { margin: 0 0 24px; font-size: 16px; font-weight: 300; line-height: 24px; }
.services { height: 445px; background: var(--paper); }
.services__inner { padding-top: 104px; }
.services__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 32px; }
.services__grid h3 { margin: 0 0 16px; font-size: 30px; font-weight: 400; line-height: 36px; }
.services__grid p { margin: 0; }
.pricing-note { position: relative; height: 384px; overflow: hidden; color: #fff; background: #000; }
.pricing-note::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.8); }
.pricing-note > img { position: absolute; top: 0; left: 50%; width: max(100%, 1940px); height: 991px; max-width: none; object-fit: cover; transform: translateX(-50%); }
.pricing-note__inner { position: relative; z-index: 1; padding-top: 104px; }
.pricing-note__inner p { margin: 32px 0 0; font-size: 16px; font-weight: 300; line-height: 28px; }

.site-header__inner { animation: header-in 1s .12s cubic-bezier(.22,.61,.36,1) both; }
.process-hero h1 { animation: hero-copy-in 1.15s .35s cubic-bezier(.22,.61,.36,1) both; }
.has-motion .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1); transition-delay: var(--reveal-delay, 0ms); }
.has-motion .reveal.is-visible { opacity: 1; transform: translateY(0); }
.has-motion .project-card { animation: project-card-load 1.9s cubic-bezier(.22,.61,.36,1) both; }
.has-motion .project-card:nth-child(2) { animation-delay: 120ms; }
.has-motion .project-card:nth-child(3) { animation-delay: 240ms; }

@keyframes partner-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes home-hero-settle {
  from { opacity: .72; transform: translateX(-50%) scale(1.035); }
  to { opacity: 1; transform: translateX(-50%) scale(1); }
}

@keyframes process-hero-settle {
  from { opacity: .72; transform: translate(-50%, -50%) scale(1.035); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes project-card-load {
  from { opacity: .5; transform: translateY(36px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-copy-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes header-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  .content-width, .site-header__inner { width: calc(100% - 80px); }
  .about__inner { grid-template-columns: 42% 1fr; gap: 7%; }
  .desktop-nav { gap: 24px; }
}

@media (max-width: 780px) {
  .content-width, .site-header__inner { width: calc(100% - 42px); }
  .section-title { font-size: 20px; line-height: 24px; }
  .site-header { height: 88px; }
  .site-header__logo, .desktop-nav { display: none; }
  .site-header__inner { justify-content: flex-end; }
  .menu-toggle { display: block; }
  .mobile-menu__logo { transform: translateY(-29px); }
  .mobile-menu nav { transform: translateY(-14px); }

  .home-hero { height: 658px; }
  .home-hero__image { top: 0; bottom: auto; width: 1404px; height: 658px; object-fit: cover; object-position: center; }
  .home-hero__brand { top: 309px; width: 100%; }
  .home-hero__brand img { width: 245px; }
  .home-hero__brand p { margin-top: 13px; font-size: 16px; letter-spacing: 2.88px; }

  .projects { padding: 40px 0 56px; }
  .projects__grid { display: block; margin-top: 48px; }
  .project-card { margin-bottom: 65px; }
  .project-card:last-child { margin-bottom: 0; }
  .project-card__image { height: 720px; }
  .project-card__image span { font-size: 12px; line-height: 15px; }
  .project-card h2 { margin-top: 32px; font-size: 12px; line-height: 15px; }
  .wide-button { margin-top: 65px; font-size: 12px; }

  .about { height: 1420px; }
  .about__inner { display: block; width: 100%; }
  .about__image { position: relative; left: 50vw; width: 456px; height: 660px; transform: translateX(-50%); }
  .has-motion .about__image.reveal { transform: translate(-50%, 22px); }
  .has-motion .about__image.reveal.is-visible { transform: translate(-50%, 0); }
  .about__copy { width: calc(100% - 42px); margin-inline: auto; padding-top: 56px; }
  .about__copy p { margin-top: 32px; font-size: 16px; line-height: 28px; }

  .partners { padding-top: 56px; }
  .partners__viewport { margin-top: 48px; }
  .partners__track { height: 70px; }
  .partner { width: 198px; height: 70px; padding: 8px 27px; }
  .contacts { padding: 36px 0 56px; }
  .contacts__card { width: 100%; height: 498px; margin-top: 16px; }
  .contacts__mark { top: -56px; right: -228px; width: 631px; height: 651px; }
  .contacts__copy { padding: 233px 0 0 21px; }
  .contacts__copy h3 { margin-bottom: 42px; font-size: 20px; line-height: 24px; }
  .mobile-break { display: initial; }
  .contacts__copy > a:not(.contacts__instagram) { font-size: 12px; line-height: 15px; }
  .contacts__instagram { margin-top: 24px; }

  .site-footer { height: 131px; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; justify-content: flex-start; padding-top: 32px; }
  .site-footer p { margin-top: 29px; font-size: 9px; line-height: 11px; }

  .process-hero { height: 420px; }
  .process-hero > img { width: 980px; height: 512px; }
  .process-hero h1 { top: 193px; font-size: 24px; line-height: 30px; letter-spacing: 4.2px; }
  .process-flow { padding: 54px 0 2px; }
  .process-flow__list { margin-top: 40px; }
  .stage, .stage--visualization, .stage--last { min-height: 0; padding: 8px 0 52px 72px; }
  .stage__icon { top: 4px; width: 52px; height: 52px; }
  .stage__icon img { width: 25px; height: 25px; }
  .stage__copy span { font-size: 16px; line-height: 20px; }
  .stage__copy h3 { margin: 8px 0 14px; font-size: 24px; line-height: 30px; }
  .stage__copy p, .services p { font-size: 14px; line-height: 22px; }
  .services { height: auto; }
  .services__inner { padding-top: 52px; padding-bottom: 52px; }
  .services__grid { grid-template-columns: 1fr; gap: 36px; margin-top: 32px; }
  .services__grid h3 { font-size: 24px; line-height: 30px; }
  .pricing-note { height: auto; min-height: 480px; }
  .pricing-note__inner { padding-top: 64px; padding-bottom: 64px; }
  .pricing-note__inner p { font-size: 14px; line-height: 24px; }
}

@media (max-width: 430px) {
  .project-card__image { height: min(720px, calc((100vw - 42px) * 2)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .partners__track { transform: translateX(0); }
}
