:root {
  --ink: #11110f;
  --paper: #ecebe5;
  --acid: #c9ff32;
  --muted: #73736d;
  --line: rgba(17, 17, 15, .18);
  --pad: clamp(20px, 4vw, 68px);
  --header-h: 76px;
  --display: "Manrope", Arial, sans-serif;
  --mono: "DM Mono", "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar { display: none; width: 0; height: 0; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font: 15px/1.55 var(--mono); }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { color: inherit; font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 16px; background: var(--acid); transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: none; }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }

.site-header { position: fixed; z-index: 30; inset: 0 0 auto; min-height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px var(--pad); border-bottom: 1px solid rgba(236,235,229,.16); background: rgba(17,17,15,.9); color: var(--paper); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 12px; width: max-content; }
.brand__mark { display: grid; place-items: center; width: 38px; height: 38px; background: var(--acid); color: var(--ink); font-weight: 500; }
.brand__name { font-size: 10px; line-height: 1.25; letter-spacing: .12em; text-transform: uppercase; }
.site-nav { display: flex; gap: clamp(18px,3vw,48px); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.site-nav a, .language { transition: color .2s, border-color .2s; }
.site-nav a:hover, .site-nav a:focus-visible, .language:hover { color: var(--acid); }
.language { justify-self: end; padding: 9px 12px; border: 1px solid rgba(236,235,229,.35); background: none; cursor: pointer; }
.menu-toggle { display: none; }

.hero { position: relative; height: 100vh; height: 100svh; min-height: 680px; overflow: hidden; background: var(--ink); color: var(--paper); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px); background-size: 9vw 9vw; mask-image: linear-gradient(to bottom,black,transparent 84%); }
.hero__copy { position: absolute; z-index: 2; top: 50%; left: var(--pad); width: min(58%, 920px); transform: translateY(-46%); }
.eyebrow, .section-index { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; color: #b4b4ad; }
.eyebrow > span:first-child { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 5px rgba(201,255,50,.12); }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 500; line-height: .91; letter-spacing: -.065em; }
h1 { max-width: 1000px; font-size: clamp(52px, 6.5vw, 108px); }
h1 em, h2 em { color: var(--acid); font-style: normal; }
:lang(ru) .hero h1, :lang(uk) .hero h1 { font-size: clamp(48px, 5.7vw, 94px); }
.hero__lead { max-width: 650px; margin: 24px 0; color: #b8b8b1; font-family: var(--display); font-size: clamp(16px,1.2vw,20px); line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 21px; border: 1px solid rgba(236,235,229,.32); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; transition: border-color .2s, background .2s, color .2s; }
.button--solid { border-color: var(--acid); background: var(--acid); color: var(--ink); }
.button:hover { border-color: var(--acid); }
.hero__visual { position: absolute; z-index: 1; top: 50%; right: clamp(28px,5vw,90px); width: min(32vw,460px); transform: translateY(-50%); }
.hero__visual img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: contrast(1.12); opacity: .9; }
.hero__badge { position: absolute; z-index: 2; right: -2%; bottom: 8%; display: flex; align-items: flex-start; gap: 24px; width: 200px; padding: 15px; background: var(--acid); color: var(--ink); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.hero__badge span:first-child { font-size: 27px; line-height: 1; }
.hero__meta { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: 22px; display: flex; justify-content: space-between; color: #777771; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.hero__meta p { margin: 0; }

section { padding: clamp(90px,12vw,180px) var(--pad); }
.section-index { display: flex; align-items: center; gap: 14px; margin: 0 0 52px; color: var(--muted); }
.section-index::after { content: ""; width: clamp(32px,5vw,84px); height: 1px; background: currentColor; opacity: .35; }
h2 { font-size: clamp(48px,6.5vw,108px); }
.statement { border-bottom: 1px solid var(--line); }
.statement__body { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: 9vw; align-items: end; }
.statement h2 em, .section-heading h2 em, .process h2 em { color: var(--ink); text-decoration: underline; text-decoration-color: var(--acid); text-decoration-thickness: .12em; text-underline-offset: .08em; }
.statement__body > div > p { margin: 0 0 40px; font-family: var(--display); font-size: clamp(17px,1.4vw,21px); line-height: 1.6; }
.principles { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.principles li { display: grid; grid-template-columns: 42px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.principles li span:first-child { color: var(--muted); }

.stack { background: #d7d6ce; }
.section-heading { display: grid; grid-template-columns: .5fr 1.5fr; gap: 4vw; align-items: start; margin-bottom: 72px; }
.section-heading .section-index { margin: 13px 0 0; }
.stack__grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.stack-card { position: relative; min-height: 270px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 24px; border: 1px solid var(--line); background: rgba(255,255,255,.22); transition: background .3s, color .3s, border-color .3s; }
.stack-card::after { content: ""; position: absolute; right: -35px; bottom: -35px; width: 100px; height: 100px; border: 1px solid currentColor; border-radius: 50%; opacity: .08; transition: transform .45s, opacity .3s; }
.stack-card:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.stack-card:hover::after { opacity: .22; transform: scale(1.65); }
.stack-card__number { position: absolute; top: 12px; right: 18px; color: var(--ink); font-family: var(--display); font-size: 64px; font-weight: 500; line-height: 1; letter-spacing: -.08em; opacity: .07; transition: color .3s, opacity .3s; }
.stack-card:hover .stack-card__number { color: var(--acid); opacity: .24; }
.stack-card__body { position: relative; z-index: 1; margin-top: auto; }
.stack-card h3 { margin: 0 0 14px; font-family: var(--display); font-size: clamp(28px,2.25vw,40px); letter-spacing: -.04em; }
.stack-card h3::after { content: ""; display: block; width: 30px; height: 3px; margin-top: 13px; background: var(--acid); transition: width .3s; }
.stack-card:hover h3::after { width: 62px; }
.stack-card p { max-width: 300px; margin: 0 0 22px; color: #55554f; font-size: 12px; line-height: 1.65; transition: color .3s; }
.stack-card:hover p { color: #bcbcb5; }
.stack-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.stack-card__tags span { padding: 5px 8px; border: 1px solid rgba(17,17,15,.2); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; transition: border-color .3s, color .3s; }
.stack-card:hover .stack-card__tags span { border-color: rgba(201,255,50,.38); color: var(--acid); }

.work { background: var(--ink); color: var(--paper); }
.section-heading--work { grid-template-columns: 1.3fr .7fr; align-items: end; }
.section-heading--work .section-index { margin: 0 0 42px; color: #7d7d76; }
.section-heading--work h2 em { color: var(--acid); text-decoration: none; }
.section-heading--work > p { max-width: 480px; margin: 0 0 8px; color: #aaa9a2; font-family: var(--display); font-size: 18px; line-height: 1.55; }
.projects { display: grid; gap: clamp(80px,10vw,150px); }
.project { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(280px,.55fr); gap: clamp(28px,4vw,72px); align-items: stretch; padding-top: 24px; border-top: 1px solid rgba(236,235,229,.2); }
.project:nth-child(even) { grid-template-columns: minmax(280px,.55fr) minmax(0,1.45fr); }
.project:nth-child(even) .project__image { order: 2; }
.project:nth-child(even) .project__info { order: 1; }
.project__image { position: relative; align-self: start; display: block; overflow: hidden; border: 1px solid rgba(236,235,229,.14); background: #242421; }
.project__image img { display: block; width: 100%; height: auto; min-height: 0; aspect-ratio: auto; object-fit: contain; filter: saturate(.88) contrast(1.03); transition: filter .5s; }
.project:hover .project__image img { filter: saturate(1.08) contrast(1.01); }
.project__image span { position: absolute; z-index: 2; top: 14px; left: 14px; padding: 8px 10px; background: var(--acid); color: var(--ink); font-size: 9px; letter-spacing: .1em; }
.project__info { display: flex; flex-direction: column; justify-content: space-between; padding: 10px 0 4px; }
.project__index { margin: 0 0 28px; color: #81817a; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.project__info h3 { margin: 0 0 24px; font-family: var(--display); font-size: clamp(36px,4.3vw,72px); font-weight: 500; line-height: .95; letter-spacing: -.055em; }
.project__description { max-width: 440px; margin: 0; color: #aaa9a2; font-family: var(--display); font-size: clamp(16px,1.35vw,20px); line-height: 1.55; }
.project__footer { padding-top: 28px; border-top: 1px solid rgba(236,235,229,.2); }
.project__footer p { margin: 0 0 16px; color: #777771; font-size: 10px; text-transform: uppercase; }
.project__footer a { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid rgba(236,235,229,.32); color: var(--paper); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; transition: color .2s, border-color .2s; }
.project__footer a:hover { border-color: var(--acid); color: var(--acid); }

.process { background: var(--acid); }
.process .section-index { color: #4e5b2b; }
.process__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; }
.process__grid ol { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(17,17,15,.35); }
.process__grid li { display: grid; grid-template-columns: 55px 1fr; padding: 20px 0; border-bottom: 1px solid rgba(17,17,15,.35); }
.process__grid li > span { font-size: 11px; }
.process__grid h3 { margin: 0 0 7px; font-family: var(--display); font-size: 25px; letter-spacing: -.03em; }
.process__grid p { max-width: 430px; margin: 0; font-size: 12px; }

.contact { position: relative; min-height: 720px; display: flex; flex-direction: column; padding: clamp(100px,12vw,170px) var(--pad) 28px; overflow: hidden; background: #191917; color: var(--paper); }
.contact__content { position: relative; z-index: 2; width: 100%; max-width: 1050px; }
.contact .section-index { color: #7d7d76; }
.contact h2 { font-size: clamp(52px,7vw,116px); }
.contact h2 em { color: var(--acid); }
.contact__content > p:not(.section-index) { max-width: 570px; margin: 34px 0; color: #aaa9a2; font-family: var(--display); font-size: 18px; }
.contact__email { display: flex; justify-content: space-between; gap: 30px; max-width: 850px; padding: 18px 0; border-top: 1px solid #54544f; border-bottom: 1px solid #54544f; font-size: clamp(13px,1.6vw,22px); transition: color .2s; }
.contact__email:hover { color: var(--acid); }
.contact__portrait { position: absolute; z-index: 1; right: -2%; bottom: 0; width: min(38vw,570px); opacity: .32; filter: grayscale(1) contrast(1.2); cursor: pointer; }
.contact__bottom { position: relative; z-index: 2; width: 100%; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; margin-top: clamp(72px,8vw,120px); padding-top: 18px; border-top: 1px solid #393936; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.contact__bottom p { margin: 0; }
.contact__bottom div { display: flex; gap: 28px; }
.contact__bottom a:hover { color: var(--acid); }

.scroll-progress { position: fixed; z-index: 50; top: 0; left: 0; width: 100%; height: 2px; background: var(--acid); transform: scaleX(0); transform-origin: left center; pointer-events: none; }
.project__image img, .hero__visual img, .contact__portrait img { will-change: transform; }
.stack-card, .project, .process__grid li { will-change: transform, opacity; }

@media (max-width: 1080px) {
  .hero__copy { width: 62%; }
  .hero__visual { right: 3vw; width: min(31vw,390px); }
  .hero__badge { width: 175px; }
  .stack__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project, .project:nth-child(even) { grid-template-columns: 1fr; }
  .project:nth-child(even) .project__image, .project:nth-child(even) .project__info { order: initial; }
  .project__image img { min-height: 0; }
}

@media (min-width: 721px) {
  .contact__content { max-width: 68%; }
}

@media (max-width: 720px) {
  :root { --header-h: 70px; }
  .site-header { grid-template-columns: 1fr auto auto; gap: 12px; }
  .menu-toggle { order: 3; display: grid; width: 39px; height: 39px; place-content: center; gap: 5px; border: 1px solid rgba(236,235,229,.35); background: none; cursor: pointer; }
  .menu-toggle > span:not(.sr-only) { display: block; width: 16px; height: 1px; background: currentColor; transition: transform .2s; }
  .menu-open .menu-toggle > span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-open .menu-toggle > span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }
  .language { order: 2; }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto; display: flex; flex-direction: column; gap: 0; padding: 18px var(--pad) 30px; border-bottom: 1px solid rgba(236,235,229,.2); background: var(--ink); opacity: 0; transform: translateY(-120%); pointer-events: none; transition: transform .3s, opacity .3s; }
  .menu-open .site-nav { opacity: 1; transform: none; pointer-events: auto; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid rgba(236,235,229,.12); font-size: 14px; }

  .hero { height: 100svh; min-height: 700px; }
  .hero__copy { top: 116px; left: var(--pad); width: calc(100% - var(--pad)*2); transform: none; }
  .hero h1, :lang(ru) .hero h1, :lang(uk) .hero h1 { max-width: 92%; font-size: clamp(44px,13vw,72px); }
  .hero__lead { max-width: 88%; font-size: 16px; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__visual { top: auto; right: -20vw; bottom: 12px; width: 72vw; opacity: .44; transform: none; }
  .hero__badge, .hero__meta { display: none; }

  section { padding-top: 95px; padding-bottom: 95px; }
  .section-index { margin-bottom: 34px; }
  .statement__body, .process__grid { grid-template-columns: 1fr; gap: 52px; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 44px; }
  .section-heading .section-index, .section-heading--work .section-index { margin: 0; }
  .stack__grid { grid-template-columns: 1fr; }
  .stack-card { min-height: 245px; }
  .section-heading--work { grid-template-columns: 1fr; }
  .projects { gap: 72px; }
  .project { gap: 24px; }
  .contact { min-height: 760px; }
  .contact__portrait { right: -30vw; width: 80vw; }
  .contact__email { overflow-wrap: anywhere; }
  .contact__bottom { align-items: flex-end; margin-top: 90px; }
  .contact__bottom div { display: none; }
}

@media (max-width: 420px) {
  .brand__name { display: none; }
  .hero__copy { top: 102px; }
  .hero h1, :lang(ru) .hero h1, :lang(uk) .hero h1 { font-size: clamp(40px,12vw,56px); }
  .hero__lead { margin: 18px 0; }
  .button { min-height: 46px; padding: 0 16px; }
  h2 { font-size: clamp(42px,13vw,62px); }
  .contact { min-height: 700px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .scroll-progress { display: none; }
  .project__image img, .hero__visual img, .contact__portrait img, .stack-card, .project, .process__grid li { will-change: auto; }
}
