:root {
  --paper: #f3f3f1;
  --white: #ffffff;
  --ink: #1f2226;
  --graphite: #2a2e33;
  --steel: #6a6f75;
  --line: #d8d9d5;
  --red: #e62a0e;
  --red-dark: #bd1f07;
  --display: "Unbounded", "Arial Black", "Segoe UI", sans-serif;
  --body: "Golos Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1360px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.kicker { font-family: var(--body); font-size: 15px; font-weight: 600; color: var(--steel); letter-spacing: 0; line-height: 1.4; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 40; transition: background .3s, box-shadow .3s; }
.header-inner { display: flex; align-items: center; gap: 32px; height: 84px; }
.logo { background: var(--white); padding: 8px 12px; border-radius: 6px; }
.logo img { width: 172px; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--red); }
.menu-btn { font: 500 15px var(--body); background: none; border: 1.5px solid currentColor; border-radius: 999px; padding: 9px 20px; cursor: pointer; color: inherit; }
.site-header.is-over { color: var(--white); }
.site-header.is-solid, .page-inner .site-header { background: rgba(243,243,241,.95); backdrop-filter: blur(10px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.page-inner .logo, .site-header.is-solid .logo { padding-left: 0; background: none; }

/* Full-screen menu */
.menu-overlay { position: fixed; inset: 0; z-index: 35; background: var(--graphite); color: var(--white); display: flex; align-items: flex-end; padding-bottom: 64px; }
.menu-overlay[hidden] { display: none; }
.menu-inner { width: 100%; display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: end; }
.menu-links { display: flex; flex-direction: column; }
.menu-links a { font-family: var(--display); font-size: clamp(34px, 6vw, 76px); line-height: 1.12; text-decoration: none; width: fit-content; }
.menu-links a:hover { color: var(--red); }
.menu-contacts { display: flex; flex-direction: column; gap: 6px; color: #c3c6ca; }
.menu-contacts a { text-decoration: none; color: var(--white); }
.menu-contacts a:hover { text-decoration: underline; }
body.menu-open .site-header { background: none; box-shadow: none; color: var(--white); backdrop-filter: none; }
body.menu-open .nav { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .menu-overlay:not([hidden]) .menu-links a { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
  .menu-overlay:not([hidden]) .menu-links a:nth-child(2) { animation-delay: .04s; }
  .menu-overlay:not([hidden]) .menu-links a:nth-child(3) { animation-delay: .08s; }
  .menu-overlay:not([hidden]) .menu-links a:nth-child(4) { animation-delay: .12s; }
  .menu-overlay:not([hidden]) .menu-links a:nth-child(5) { animation-delay: .16s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Slider */
.slider { position: relative; height: 100vh; min-height: 560px; overflow: hidden; background: var(--ink); color: var(--white); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .slide.is-active img { animation: drift 7s ease-out both; }
}
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
.slider-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,17,19,.78) 0%, rgba(15,17,19,.25) 45%, rgba(15,17,19,.35) 100%); pointer-events: none; }
.slider-slogan { position: absolute; left: 0; right: 0; top: 128px; z-index: 1; }
.slogan { display: flex; align-items: center; gap: 16px; font-family: var(--display); font-weight: 500; font-size: clamp(18px, 2.2vw, 30px); line-height: 1.2; color: var(--white); }
.slogan::before { content: ""; width: 44px; height: 3px; background: var(--red); flex: none; }
.slider-ui { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: 64px; }
.slide-meta { font-size: 15px; color: rgba(255,255,255,.8); }
.slide-title { font-family: var(--display); font-size: clamp(30px, 5vw, 68px); font-weight: 500; line-height: 1.06; margin-top: 10px; max-width: 14em; }
.slide-open { margin-top: 26px; font: 500 15px var(--body); color: var(--white); background: var(--red); border: 0; border-radius: 999px; padding: 13px 24px; cursor: pointer; }
.slide-open:hover { background: var(--red-dark); }
.slider-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.slide-count { font-family: var(--display); font-size: 20px; font-variant-numeric: tabular-nums; }
.slider-arrows { display: flex; gap: 10px; }
.arrow { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7); background: none; color: var(--white); font-size: 28px; line-height: 1; cursor: pointer; }
.arrow:hover { background: var(--white); color: var(--ink); }
.slide-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.18); }
.slide-progress span { display: block; height: 100%; width: 0; background: var(--red); }
.slide-progress span.run { width: 100%; transition: width linear; }

/* Clients */
.clients { background: var(--white); padding: 72px 0; }
.client-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.client-list li { font-family: var(--display); font-size: clamp(18px, 2vw, 26px); padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line); line-height: 1.2; }

/* Statement */
.statement { padding: 120px 0; }
.statement-inner { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: end; }
.statement-big { font-family: var(--display); font-weight: 600; font-size: clamp(44px, 7.4vw, 112px); line-height: .98; letter-spacing: -0.03em; }
.statement-side p { font-size: 18px; color: var(--steel); }
.text-link { display: inline-flex; align-items: baseline; gap: 6px; margin-top: 28px; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 4px; }
.text-link:hover { color: var(--red); }
.count { color: var(--steel); font-weight: 500; }

/* Split */
.split { display: grid; grid-template-columns: repeat(3, 1fr); }
.split-tile { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; color: var(--white); text-decoration: none; background: var(--ink); }
.split-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .4s; opacity: .82; }
.split-tile:hover img { transform: scale(1.04); opacity: .7; }
.split-tile::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(0deg, rgba(15,17,19,.82), transparent); pointer-events: none; }
.split-text { z-index: 1; position: absolute; left: 40px; right: 40px; bottom: 40px; display: flex; flex-direction: column; gap: 10px; }
.split-title { font-family: var(--display); font-size: clamp(24px, 2.6vw, 38px); line-height: 1.05; }
.split-sub { font-size: 15px; color: rgba(255,255,255,.85); }

/* Inner pages */
.inner-main { padding-top: 132px; padding-bottom: 104px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.page-head h1, .about-hero h1 { font-size: clamp(40px, 6vw, 88px); font-weight: 600; letter-spacing: -0.03em; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { font: 500 15px var(--body); color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; cursor: pointer; }
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 28px; }
.card { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; }
.card[hidden] { display: none; }
.card:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.card-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-media img { transform: scale(1.04); }
.card-count { position: absolute; right: 14px; bottom: 14px; font-size: 13px; font-weight: 500; color: var(--white); background: rgba(15,17,19,.55); backdrop-filter: blur(6px); padding: 5px 11px; border-radius: 999px; }
.card-body { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; align-items: baseline; }
.card-title { font-family: var(--display); font-size: clamp(20px, 1.9vw, 26px); line-height: 1.2; }
.card:hover .card-title { color: var(--red); }
.card-meta { font-size: 14px; color: var(--steel); text-align: right; white-space: nowrap; }

/* Clients */
.page-lead { max-width: 30em; color: var(--steel); font-size: 18px; }
.client-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.client-card { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 32px 32px 32px 0; border-bottom: 1px solid var(--line); }
.client-card:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--line); }
.client-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.client-sector { font-size: 14px; font-weight: 600; color: var(--steel); }
.client-name { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.1; }
.client-project { color: var(--steel); }
.client-open { margin-top: 10px; font: 500 15px var(--body); color: var(--ink); background: none; border: 0; border-bottom: 2px solid var(--red); padding: 0 0 4px; cursor: pointer; }
.client-open:hover { color: var(--red); }
.letters { margin-top: 96px; }
.letters h2 { font-size: clamp(26px, 3vw, 40px); margin-bottom: 32px; }
.letter-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 28px; }
.letter-card { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 8px; }
.letter-card:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.letter-thumb { display: block; aspect-ratio: 1 / 1.414; overflow: hidden; background: var(--white); box-shadow: 0 1px 0 var(--line), 0 12px 32px rgba(31,34,38,.10); margin-bottom: 10px; }
.letter-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.letter-card:hover .letter-thumb img { transform: scale(1.03); }
.letter-from { font-family: var(--display); font-size: 19px; line-height: 1.2; }
.letter-card:hover .letter-from { color: var(--red); }
.letter-date { font-size: 14px; color: var(--steel); }
.letter-quote { font-size: 15px; line-height: 1.5; }
.letter-tr { color: var(--steel); font-size: 13px; }
.partners { margin-top: 80px; }
.partners h2 { font-size: clamp(26px, 3vw, 40px); margin-bottom: 24px; }
.partner-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.partner-list li { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 20px 0; border-bottom: 1px solid var(--line); }
.partner-name { font-family: var(--display); font-size: 22px; }
.partner-role { color: var(--steel); }
.brand-note { max-width: 46em; font-size: 18px; color: var(--steel); }
.clients .text-link { margin-top: 32px; }

/* About */
.about-cols { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; margin-top: 44px; align-items: start; }
.about-lead { font-family: var(--display); font-size: clamp(20px, 2.2vw, 30px); line-height: 1.32; }
.tag-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { padding: 8px 16px; border-radius: 999px; background: var(--white); font-size: 15px; font-weight: 500; }
.about-photo { width: 100%; margin-top: 64px; aspect-ratio: 21 / 9; object-fit: cover; }
.process { background: var(--graphite); color: var(--white); padding: 104px 0; margin-top: 104px; }
.process h2, .services h2 { font-size: clamp(30px, 4vw, 52px); }
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.steps li { padding-right: 28px; }
.steps li + li { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.16); }
.step-num { display: block; font-family: var(--display); font-size: 56px; line-height: 1; color: var(--red); margin-bottom: 26px; }
.steps h3 { font-size: 19px; margin-bottom: 12px; }
.steps p { color: #b8bcc1; font-size: 16px; }
.services { padding-top: 104px; }
.service-list { list-style: none; margin: 40px 0 0; padding: 0; columns: 3; column-gap: 40px; border-top: 1px solid var(--line); }
.service-list li { break-inside: avoid; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 500; }

/* Footer */
.site-footer { background: var(--ink); color: var(--white); padding-top: 96px; }
.footer-top { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: end; padding-bottom: 72px; }
.footer-title { font-family: var(--display); font-size: clamp(32px, 4.6vw, 64px); line-height: 1.05; letter-spacing: -0.02em; }
.footer-contacts { display: flex; flex-direction: column; gap: 6px; font-size: 18px; }
.footer-contacts a { text-decoration: none; width: fit-content; }
.footer-contacts a:hover { color: #ff7a63; }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid #3b3f44; padding: 22px 0; color: #9ca1a7; font-size: 14px; }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #15171a; color: var(--white); }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(15,17,19,.9); }
.lb-top { display: flex; align-items: flex-start; gap: 24px; padding: 18px 28px; }
.lb-title { font-family: var(--display); font-size: 18px; }
.lb-meta { color: #9ca1a7; font-size: 14px; margin-top: 2px; }
.lb-scope { color: #c9ccd0; font-size: 14px; margin-top: 4px; max-width: 70em; }
.lb-scope:empty { display: none; }
.lb-count { margin-left: auto; color: #9ca1a7; font-size: 15px; white-space: nowrap; }
.lb-close { font: 500 15px var(--body); color: var(--white); background: rgba(255,255,255,.1); border: 0; border-radius: 999px; padding: 9px 18px; cursor: pointer; }
.lb-close:hover { background: rgba(255,255,255,.2); }
.lb-stage { flex: 1; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 14px; min-height: 0; }
.lb-stage img { height: min(calc(100vh - 230px), 780px); max-width: min(1240px, calc(100vw - 150px)); width: auto; object-fit: contain; }
.lb-nav { flex: 0 0 52px; height: 52px; font-size: 30px; line-height: 1; color: var(--white); background: rgba(255,255,255,.1); border: 0; border-radius: 50%; cursor: pointer; }
.lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 16px 28px 22px; justify-content: safe center; }
.lb-thumbs button { flex: 0 0 72px; height: 52px; padding: 0; border: 0; overflow: hidden; cursor: pointer; opacity: .5; background: none; }
.lb-thumbs button.is-current { opacity: 1; outline: 2px solid var(--white); outline-offset: 2px; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Responsive */
@media (max-width: 1000px) {
  .nav { display: none; }
  .menu-btn { margin-left: auto; }
  .client-list { grid-template-columns: repeat(2, 1fr); }
  .letter-grid { grid-template-columns: repeat(2, 1fr); }
  .statement-inner, .about-cols, .footer-top, .menu-inner { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 48px 0; }
  .steps li:nth-child(3) { border-left: 0; padding-left: 0; }
  .service-list { columns: 2; }
  .split-text { left: 24px; right: 24px; bottom: 28px; }
}
@media (max-width: 680px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .header-inner { height: 70px; }
  .slider-slogan { top: 100px; }
  .logo img { width: 146px; }
  .slider-ui { flex-direction: column; align-items: flex-start; padding-bottom: 44px; }
  .slider-controls { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
  .split { grid-template-columns: 1fr; }
  .split-tile { aspect-ratio: 4 / 3; }
  .split-text { left: 20px; right: 20px; bottom: 24px; }
  .clients { padding: 56px 0; }
  .client-list { grid-template-columns: 1fr 1fr; }
  .client-list li { font-size: 16px; padding: 18px 12px 18px 0; }
  .statement { padding: 80px 0; }
  .project-grid { grid-template-columns: 1fr; gap: 36px; }
  .client-grid { grid-template-columns: 1fr; }
  .client-card, .client-card:nth-child(even) { padding: 24px 0; border-left: 0; }
  .card-body { flex-direction: column; gap: 4px; }
  .card-meta { text-align: left; white-space: normal; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps li, .steps li + li { border-left: 0; padding: 0; }
  .service-list { columns: 1; }
  .about-photo { aspect-ratio: 4 / 3; }
  .inner-main { padding-top: 104px; padding-bottom: 72px; }
  .process { padding: 72px 0; margin-top: 72px; }
  .site-footer { padding-top: 72px; }
  .lb-stage img { max-width: calc(100vw - 24px); height: auto; max-height: calc(100vh - 230px); }
  .lb-nav { display: none; }
  .lb-top { padding: 14px 18px; flex-wrap: wrap; }
  .menu-overlay { padding-bottom: 40px; }
}
