:root {
  --bg: #f3f0e8;
  --bg-soft: #eae6db;
  --ink: #1a2a1c;
  --ink-soft: #556155;
  --green: #2f4a34;
  --green-hover: #243a28;
  --green-deep: #152018;
  --line: rgba(26, 42, 28, 0.12);
  --cream: #f7f4ed;
  --white: #fffdf8;
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Manrope", "Segoe UI", sans-serif;
  --script: "Caveat", cursive;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

section[id],
#join {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  text-wrap: balance;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}

h1, h2, h3, p, ul, figure, blockquote {
  margin: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 80;
  background: var(--green);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 999px;
}

.skip:focus {
  top: 12px;
}

::selection {
  background: var(--green);
  color: var(--bg);
}

.wrap {
  width: min(1180px, calc(100% - clamp(24px, 5vw, 80px) * 2));
  margin-inline: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.header.is-scrolled {
  background: rgba(243, 240, 232, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 36px;
  height: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 12px;
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 600;
}

.nav a {
  position: relative;
  opacity: 0.82;
  transition: opacity 0.25s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a:hover,
.nav a:focus-visible {
  opacity: 1;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

a.btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--green);
  color: var(--white);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.35s var(--ease), background 0.25s, box-shadow 0.35s;
}

a.btn:visited {
  color: var(--white);
}

a.btn-light:visited {
  color: var(--green);
}

a.btn-ghost:visited {
  color: var(--ink);
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  background: var(--green-hover);
  transform: translateY(-1px);
}

.btn:hover svg,
.btn:focus-visible svg {
  transform: translateX(3px);
}

.btn-sm {
  padding: 11px 18px;
  font-size: 13.5px;
}

a.btn-light,
.btn-light {
  background: var(--white);
  color: var(--green);
}

a.btn-light:visited {
  color: var(--green);
}

a.btn-light:hover,
.btn-light:hover,
a.btn-light:focus-visible,
.btn-light:focus-visible {
  background: var(--bg);
}

a.btn-ghost,
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

a.btn-ghost:visited {
  color: var(--ink);
}

a.btn-ghost:hover,
.btn-ghost:hover,
a.btn-ghost:focus-visible,
.btn-ghost:focus-visible {
  background: var(--bg-soft);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  position: relative;
}

.burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}

.burger span:first-child { top: 16px; }
.burger span:last-child { top: 24px; }

.burger.is-open span:first-child {
  top: 20px;
  transform: rotate(45deg);
}

.burger.is-open span:last-child {
  top: 20px;
  transform: rotate(-45deg);
}

.menu {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 35;
  background: rgba(243, 240, 232, 0.97);
  backdrop-filter: blur(18px);
  place-items: center;
}

.menu.is-open {
  display: grid;
}

.menu[hidden] {
  display: none !important;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  font-size: 28px;
  font-weight: 800;
}

.hero {
  padding: 12px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.hero-copy {
  padding-top: 12px;
}

.kicker {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.kicker::after {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--ink);
  margin-top: 14px;
  opacity: 0.45;
}

.hero h1,
.about-copy h2,
.projects-head h2,
.join h2,
.contacts-copy h2,
.news-box h2,
.banner h2 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.35rem, 4.8vw, 4.55rem);
  max-width: 10ch;
  line-height: 1.02;
}

.lead {
  margin: 22px 0 28px;
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: 16.5px;
}

.hero-visual {
  position: relative;
  height: min(74vh, 720px);
  min-height: 520px;
  overflow: hidden;
  border-radius: 36px 48px 48px 22%;
}

.hero-visual picture,
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual img {
  object-position: 52% 45%;
  transform: scale(1.04);
}

.hero-visual figcaption {
  position: absolute;
  left: 12%;
  bottom: 8%;
  z-index: 2;
  color: var(--white);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: clamp(13px, 1.3vw, 16px);
  line-height: 1.3;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.stats {
  padding: 18px 0 46px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stats article {
  padding: 8px 8px 8px 0;
}

.stats article + article {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.stats h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-transform: uppercase;
}

.stats p {
  margin-top: 8px;
  color: var(--ink-soft);
  max-width: 20ch;
  line-height: 1.4;
}

.banner {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  min-height: 380px;
  color: var(--white);
}

.banner picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.banner picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-copy {
  position: relative;
  z-index: 1;
  min-height: 380px;
  padding: clamp(32px, 4.5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 22px;
  max-width: 34rem;
}

.banner h2 {
  font-size: clamp(1.85rem, 3.4vw, 3.1rem);
  max-width: 11ch;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.banner-logo {
  width: 78px;
  height: auto;
  max-height: 96px;
  object-fit: contain;
  filter: none;
}

.banner-caption {
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.25;
  max-width: 12ch;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 8px 28px rgba(0, 0, 0, 0.35);
}

.banner-photo {
  min-height: 440px;
}

.banner-photo .banner-copy {
  justify-content: flex-end;
}

.project-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.circle-btn {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--white);
  transition: transform 0.35s var(--ease), background 0.25s;
}

.circle-btn svg {
  width: 20px;
  height: 20px;
}

.circle-btn:hover,
.circle-btn:focus-visible {
  transform: scale(1.06);
  background: var(--green-hover);
}

.circle-btn-dark {
  position: static;
  margin-top: auto;
  background: var(--green-deep);
  width: 46px;
  height: 46px;
}

.marquee {
  overflow: hidden;
  padding: 42px 0 18px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 32s linear infinite;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}

.marquee-track span::before {
  content: "·";
  margin-right: 48px;
}

.about {
  padding: 48px 0 20px;
}

.about-top {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 36px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.about-copy h2,
.projects-head h2,
.join h2,
.news-box h2,
.contacts-copy h2 {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  margin-bottom: 18px;
}

.about-copy h2,
.projects-head h2 {
  max-width: 14ch;
}

.join h2 { max-width: 12ch; }
.news-box h2 { max-width: 18ch; }
.contacts-copy h2 { max-width: 16ch; }

.about-copy p,
.news-box p,
.contacts-org {
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: 17px;
}

.about-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.about-mark img {
  width: min(220px, 38vw);
  height: auto;
}

.about-mark ul {
  list-style: none;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.9;
  color: var(--ink-soft);
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 56px 0 28px;
}

.value {
  text-align: center;
  padding: 8px 12px;
}

.value-icon {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
  color: var(--green);
}

.value-icon svg {
  width: 76px;
  height: 76px;
}

.value h3 {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.value p {
  color: var(--ink-soft);
  max-width: 24ch;
  margin-inline: auto;
  line-height: 1.45;
  font-size: 15.5px;
}

.quote {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  align-items: end;
  padding: 36px 0 32px;
}

.quote p {
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.35;
  color: var(--ink);
  max-width: 22ch;
}

.quote p::before {
  content: "«";
}

.quote p::after {
  content: "»";
}

.quote cite {
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  color: var(--ink-soft);
}

.projects {
  padding: 72px 0 20px;
  position: relative;
  overflow: hidden;
}

.projects-head {
  position: relative;
  margin-bottom: 36px;
  max-width: 40rem;
}

.projects-deco {
  position: absolute;
  right: 0;
  top: -12px;
  width: min(620px, 48vw);
  pointer-events: none;
  z-index: 0;
  filter: none;
  box-shadow: none;
}

.projects-head {
  z-index: 1;
}

.projects-deco img {
  width: 100%;
  height: auto;
  display: block;
  filter: none;
  box-shadow: none;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 28px;
}

.project-card {
  background: var(--white);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 18px 40px rgba(26, 42, 28, 0.05);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(26, 42, 28, 0.1);
}

.project-photo {
  height: 210px;
  overflow: hidden;
}

.project-photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

.project-photo img {
  transition: transform 1.1s var(--ease);
}

.project-card:hover .project-photo img {
  transform: scale(1.07);
}

.project-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.project-icon {
  width: 52px;
  height: 52px;
  color: var(--green);
}

.project-icon svg {
  width: 52px;
  height: 52px;
}

.project-body h3 {
  text-transform: uppercase;
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 16ch;
}

.project-body p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.45;
}

.join {
  padding: 28px 0 12px;
}

.join h2 {
  max-width: 14ch;
}

.join > p {
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: 17px;
  margin-bottom: 24px;
}

.news {
  padding: 64px 0 20px;
}

.news-box p {
  max-width: 48ch;
}

.news-box .btn {
  margin-top: 24px;
}

.contacts {
  padding: 48px 0 72px;
}

.contacts-role {
  margin-top: 10px;
  font-weight: 700;
}

.contacts-org {
  margin: 14px 0 22px;
}

.phone {
  display: inline-block;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.contacts-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 24px;
  align-items: center;
}

.footer-nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.25s, color 0.25s;
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  background: var(--green);
  color: var(--white);
}

.footer-slogan {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: right;
  max-width: 14ch;
  line-height: 1.3;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

body.menu-open {
  overflow: hidden;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

@keyframes fade {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@keyframes ken {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

@media (min-width: 981px) {
  .menu {
    display: none !important;
  }
}

@media (max-width: 980px) {
  .nav,
  .header-inner > .btn {
    display: none;
  }

  .burger {
    display: block;
  }

  .hero-grid,
  .about-top,
  .values,
  .quote,
  .projects-grid,
  .stats-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    height: 58vw;
    min-height: 340px;
    border-radius: 36px 36px 36px 28%;
  }

  .hero-visual figcaption {
    left: 24px;
  }

  .stats article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 18px 0 0;
  }

  .banner,
  .banner-copy,
  .banner-photo {
    min-height: 300px;
  }

  .banner h2 {
    max-width: 14ch;
  }

  .about-mark {
    justify-content: flex-start;
  }

  .quote cite {
    text-align: left;
  }

  .projects-deco {
    width: min(320px, 70vw);
    top: 0;
    right: 0;
    opacity: 1;
  }

  .footer-nav,
  .footer-slogan {
    text-align: left;
  }

  .footer-slogan {
    max-width: none;
  }
}

@media (max-width: 640px) {
  :root { --header-h: 72px; }

  .hero {
    padding-top: 8px;
  }

  .hero-grid {
    gap: 22px;
  }

  .banner h2,
  .join h2 {
    font-size: 1.85rem;
  }

  .contacts-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-visual img,
  .reveal {
    opacity: 1;
    transform: none;
  }
}
