:root {
  --paper: #f5f2ec;
  --paper-2: #efebe2;
  --card: #fdfcf9;
  --ink: #1a1917;
  --muted: #57534b;
  --faint: #8a857b;
  --line: rgba(26, 25, 23, 0.1);
  --accent: #2f6d66;
  --accent-soft: rgba(47, 109, 102, 0.22);
  --shadow: 0 24px 70px rgba(26, 25, 23, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Golos Text", system-ui, sans-serif;
}

body.locked {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(100% - 48px, 1440px);
  margin: 0 auto;
}

.progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 1000;
  width: 0;
  height: 3px;
  background: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 242, 236, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a,
.footer-nav a {
  color: var(--muted);
  font-size: 13.5px;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active,
.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid rgba(26, 25, 23, 0.18);
  border-radius: 999px;
}

.lang-switch button {
  min-width: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 12px;
}

.lang-switch button.active {
  background: var(--ink);
  color: var(--paper);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 15px 30px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-dark {
  background: var(--ink);
  color: var(--paper);
}

.button-dark:hover {
  background: var(--accent);
}

.button-light {
  background: var(--paper);
  color: var(--ink);
}

.button-light:hover {
  background: var(--accent);
  color: var(--paper);
}

.button-outline {
  border: 1px solid rgba(26, 25, 23, 0.25);
}

.button-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(26, 25, 23, 0.14);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
}

.grid-bg {
  position: absolute;
  inset: 0;
  max-width: 1440px;
  margin: 0 auto;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(26, 25, 23, 0.045) 0 1px, transparent 1px 120px);
}

.soft-orbit {
  position: absolute;
  top: -180px;
  right: -120px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--accent-soft), transparent 65%);
  filter: blur(40px);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 100px 0 120px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1,
.section-title,
.contact h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  margin: 0;
}

.hero h1 {
  font-size: clamp(52px, 6.2vw, 96px);
  line-height: 1.02;
}

.hero h1 span,
.hero h1 em {
  display: block;
}

.hero h1 em {
  color: var(--accent);
}

.hero-sub {
  max-width: 540px;
  margin: 28px 0 40px;
  color: var(--muted);
  font-size: 17.5px;
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-facts {
  margin: 48px 0 0;
  color: var(--faint);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.hero-media {
  position: relative;
  min-height: 600px;
}

.featured-frame,
.supporting-frame,
.portrait,
.project-card,
.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.featured-frame {
  position: absolute;
  top: 24px;
  left: 0;
  display: block;
  width: 88%;
  padding: 12px;
  border-radius: 18px;
  text-decoration: none;
  animation: floatA 9s ease-in-out infinite;
}

.featured-frame:hover {
  box-shadow: 0 48px 104px rgba(26, 25, 23, 0.24);
}

.image-cover {
  position: relative;
  margin: 0;
  height: 428px;
  overflow: hidden;
  border-radius: 11px;
}

.image-cover img,
.supporting-frame img,
.portrait img,
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-cover figcaption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 34px 18px 15px;
  background: linear-gradient(to top, rgba(26, 25, 23, 0.78), rgba(26, 25, 23, 0));
  color: var(--paper);
}

.image-cover figcaption span {
  display: block;
  color: rgba(245, 242, 236, 0.72);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.image-cover figcaption strong {
  display: block;
  margin-top: 4px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
}

.arrow {
  position: absolute;
  right: 30px;
  bottom: 28px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 20px;
}

.hero-badge {
  position: absolute;
  top: 0;
  right: 2%;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--accent);
  color: var(--paper);
  text-align: center;
  box-shadow: 0 22px 54px rgba(47, 109, 102, 0.38);
  animation: floatB 7s 0.5s ease-in-out infinite;
}

.hero-badge strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 38px;
  line-height: 0.95;
}

.hero-badge span,
.supporting-frame figcaption {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.supporting-frame {
  position: absolute;
  right: 4%;
  bottom: 6px;
  width: 41%;
  margin: 0;
  padding: 9px;
  border-radius: 15px;
  animation: floatC 8s 1s ease-in-out infinite;
}

.supporting-frame img {
  height: 132px;
  border-radius: 8px;
}

.supporting-frame figcaption {
  padding: 9px 4px 2px;
  color: var(--faint);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  transform: translateX(-50%);
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scroll-cue span:last-child {
  font-size: 15px;
  animation: bounce 1.9s ease-in-out infinite;
}

.section {
  border-top: 1px solid var(--line);
  padding: 110px 0;
}

.section-label,
.micro-label {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.micro-label {
  margin: 0 0 12px;
  color: var(--faint);
  font-size: 12px;
}

.section-title {
  font-size: clamp(36px, 3.4vw, 52px);
  line-height: 1.12;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
}

.about-grid {
  display: grid;
  grid-template-columns: 3fr 8fr;
  gap: 48px;
}

.portrait {
  max-width: 280px;
  margin: 28px 0 0;
  padding: 10px;
  border-radius: 14px;
  box-shadow: none;
}

.portrait img {
  height: 320px;
  border-radius: 8px;
}

.about-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin-top: 32px;
}

.about-copy p,
.service-card p,
.process-step p,
.contact p,
.footer p,
.project-footer p,
.stat p {
  color: var(--muted);
  line-height: 1.65;
}

.about-copy p {
  margin: 0;
  font-size: 15.5px;
}

.chips-area {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 48px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  border: 1px solid rgba(26, 25, 23, 0.16);
  border-radius: 999px;
  background: var(--card);
  padding: 7px 14px;
  font-size: 13px;
}

.chips-accent span {
  border-color: var(--accent-soft);
  background: transparent;
  color: var(--accent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.service-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  border-radius: 20px;
  box-shadow: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover,
.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 18px 44px rgba(26, 25, 23, 0.1);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-top > span:first-child,
.process-step > span {
  color: var(--faint);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 16px;
  font-style: italic;
}

.glyph {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(26, 25, 23, 0.14);
  border-radius: 10px;
  color: var(--accent);
}

.service-card h3,
.project-footer h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
}

.service-card p {
  margin: 8px 0 0;
  font-size: 13.5px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -12px 0 44px;
}

.filters button {
  border: 1px solid rgba(26, 25, 23, 0.18);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 9px 18px;
}

.filters button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

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

.project-card {
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 16px;
  box-shadow: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: var(--paper-2);
  cursor: pointer;
  padding: 0;
}

.project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 25, 23, 0);
  transition: background 0.25s ease;
}

.project-image span {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 1;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(245, 242, 236, 0.96);
  box-shadow: 0 10px 30px rgba(26, 25, 23, 0.3);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.project-image:hover::after {
  background: rgba(26, 25, 23, 0.34);
}

.project-image:hover span {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.project-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 16px 8px 8px;
}

.project-footer h3 {
  font-size: 20px;
  line-height: 1.2;
}

.project-footer p {
  margin: 4px 0 0;
  color: var(--faint);
  font-size: 12.5px;
}

.project-footer > span {
  flex: none;
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  text-transform: uppercase;
}

.note {
  margin: 28px 0 0;
  color: var(--faint);
  font-size: 12.5px;
}

.numbers {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
  padding: 80px 0;
}

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

.stat {
  border-left: 1px solid rgba(26, 25, 23, 0.14);
  padding-left: 28px;
}

.stat strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 76px;
  font-weight: 500;
  line-height: 1;
}

.stat em {
  color: var(--accent);
  font-style: normal;
}

.stat p {
  margin: 12px 0 0;
  font-size: 13.5px;
}

.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.process-grid::before {
  content: "";
  position: absolute;
  inset: 5px 0 auto 0;
  height: 1px;
  background: rgba(26, 25, 23, 0.14);
}

.process-step {
  position: relative;
  padding-top: 32px;
}

.process-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 11px;
  height: 11px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--paper);
}

.process-step h3 {
  margin: 8px 0;
  font-size: 16px;
}

.process-step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.collabs {
  border-top: 1px solid var(--line);
  padding: 100px 0 96px;
}

.collab-head {
  text-align: center;
}

.marquee {
  overflow: hidden;
  margin-top: 44px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee > div {
  display: flex;
  width: max-content;
  gap: 60px;
  animation: marquee 40s linear infinite;
}

.marquee span {
  color: var(--faint);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  white-space: nowrap;
}

.contact {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.contact-glow {
  position: absolute;
  bottom: -220px;
  left: -140px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--accent-soft), transparent 65%);
  filter: blur(50px);
}

.contact-inner {
  position: relative;
  padding: 130px 0;
  text-align: center;
}

.contact h2 {
  max-width: 900px;
  margin-inline: auto;
  font-size: clamp(44px, 4.6vw, 72px);
  line-height: 1.1;
}

.contact p {
  max-width: 540px;
  margin: 28px auto 44px;
  color: rgba(245, 242, 236, 0.65);
  font-size: 16px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.contact-actions span {
  color: rgba(245, 242, 236, 0.5);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 17px;
  font-style: italic;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 5fr 3fr 3fr;
  gap: 32px;
}

.footer p {
  max-width: 340px;
  margin: 10px 0 0;
  color: var(--faint);
  font-size: 13.5px;
}

.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact a,
.footer-contact span {
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: none;
}

.footer-contact span:last-child {
  color: var(--faint);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  color: var(--faint);
  font-size: 12.5px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 56px 40px;
  background: rgba(20, 19, 17, 0.9);
  backdrop-filter: blur(10px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  margin: 0;
  text-align: center;
}

.lightbox img {
  max-width: 88vw;
  max-height: 74vh;
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
}

.lightbox figcaption {
  margin-top: 22px;
  color: var(--paper);
}

.lightbox figcaption strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  font-weight: 500;
}

.lightbox figcaption span {
  display: block;
  margin-top: 5px;
  color: rgba(245, 242, 236, 0.62);
  font-size: 13px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(245, 242, 236, 0.3);
  border-radius: 50%;
  background: rgba(245, 242, 236, 0.08);
  color: var(--paper);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes floatA {
  0%,
  100% {
    transform: translateY(0) rotate(-1.5deg);
  }
  50% {
    transform: translateY(-12px) rotate(-1.5deg);
  }
}

@keyframes floatB {
  0%,
  100% {
    transform: translateY(0) rotate(3deg);
  }
  50% {
    transform: translateY(-12px) rotate(3deg);
  }
}

@keyframes floatC {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-12px) rotate(-3deg);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: translateY(7px);
    opacity: 1;
  }
}

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

@media (max-width: 1100px) {
  .main-nav {
    gap: 20px;
  }

  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 520px;
    max-width: 700px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid::before {
    display: none;
  }
}

@media (max-width: 840px) {
  .shell {
    width: min(100% - 32px, 1440px);
  }

  .header-inner {
    min-height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 64px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    box-shadow: 0 18px 44px rgba(26, 25, 23, 0.14);
    padding: 8px;
  }

  .menu-open .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 14px 12px;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-cta {
    display: none;
  }

  .hero-grid {
    padding: 72px 0 96px;
  }

  .hero h1 {
    font-size: clamp(46px, 12vw, 72px);
  }

  .hero-media {
    min-height: 460px;
  }

  .featured-frame {
    width: 92%;
  }

  .image-cover {
    height: 340px;
  }

  .supporting-frame {
    width: 46%;
  }

  .section,
  .collabs {
    padding: 82px 0;
  }

  .section-head,
  .about-copy,
  .footer-grid {
    display: block;
  }

  .section-head .section-label {
    margin-top: 14px;
  }

  .about-copy p + p {
    margin-top: 18px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    grid-column: auto !important;
  }

  .projects-grid,
  .stats-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav,
  .footer-contact {
    margin-top: 28px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 19px;
  }

  .lang-switch button {
    min-width: 36px;
    padding-inline: 8px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .hero-buttons .button,
  .contact-actions .button {
    width: 100%;
  }

  .hero-media {
    min-height: 390px;
  }

  .image-cover {
    height: 286px;
  }

  .hero-badge {
    padding: 14px 18px;
  }

  .hero-badge strong {
    font-size: 30px;
  }

  .supporting-frame {
    right: 0;
    width: 52%;
  }

  .supporting-frame img {
    height: 104px;
  }

  .portrait {
    max-width: none;
  }

  .contact-inner {
    padding: 96px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
