/* cyrillic-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/geist-1.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/geist-2.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/geist-3.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/geist-4.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/geist-5.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0e0e0e;
  --ink-2: #161616;
  --bone: #f1f0ec;
  --ash: #8c8c88;
  --line: #262626;
  --gap: 20px;
  --pad: clamp(16px, 2vw, 28px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 15px/1.5 Geist, "Helvetica Neue", Arial, sans-serif;
  color: var(--bone);
  background: var(--ink);
  letter-spacing: -0.005em;
}
img { display: block; max-width: 100%; height: auto; background: var(--ink-2); }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--bone); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ash { color: var(--ash); }

/* page-to-page: a short cross-fade (Chrome, Safari 18+; others navigate as usual) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; padding: 0 var(--pad);
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; color: var(--bone); }
.brand .word { width: 112px; height: 15.1px; display: block; }
.top nav { display: flex; gap: clamp(16px, 2.4vw, 36px); font-size: 13px; letter-spacing: 0.01em; }
.top nav a { color: var(--ash); transition: color .25s var(--ease); padding: 14px 0; border-bottom: 1px solid transparent; }
.top nav a:hover, .top nav a[aria-current], .top nav a[href="/contacts/"] { color: var(--bone); }
.top nav a[aria-current] { border-bottom-color: var(--bone); }

/* one line: who this is */
.wall { padding-top: 12px; }

/* the wall */
.wall {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px var(--gap);
  padding: 0 var(--pad);
}
.tile { display: block; }
.tile-img { display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-2); }
.tile-img img, .tile-img video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); aspect-ratio: auto !important; }
.tile-cap { display: block; padding: 10px 0 0; font-size: 13px; line-height: 1.4; letter-spacing: 0.005em; }
.tile-cap .ash { transition: color .25s var(--ease); }
.tile:hover .tile-cap .ash { color: var(--bone); }

/* one authored moment: the wall settles in on load */
@media (prefers-reduced-motion: no-preference) {
  .tile, .logo { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  .case-hero img, .about-photo img { animation: reveal 1.1s var(--ease) both; }
  @keyframes reveal { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
}

.statement {
  padding: clamp(80px, 12vw, 160px) var(--pad) clamp(40px, 6vw, 80px);
  max-width: 60ch;
  font-size: clamp(18px, 1.7vw, 22px); line-height: 1.4; letter-spacing: -0.01em;
}
.statement p { margin: 0 0 32px; }

.btn {
  display: inline-block; padding: 15px 22px; border: 1px solid var(--bone);
  font-size: 13px; line-height: 1; letter-spacing: 0.01em;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.btn:hover { background: var(--bone); color: var(--ink); }
.btn-fill { background: var(--bone); color: var(--ink); }
.btn-fill:hover { background: #fff; }
.btn-big { padding: 18px 28px; font-size: 15px; margin-bottom: 40px; }
.foot .btn { margin-bottom: 44px; }
.skip { position: absolute; left: var(--pad); top: -60px; z-index: 20; padding: 10px 14px; background: var(--bone); color: var(--ink); font-size: 13px; }
.skip:focus { top: 12px; }
.btn:active { transform: translateY(1px); }

/* case study */
.case, .about, .contact { padding: 0 var(--pad); }
.case-head { padding: clamp(32px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); }
.case-head .ash { margin: 10px 0 0; font-size: 13px; letter-spacing: 0.005em; }
.back { display: inline-block; margin-bottom: 18px; font-size: 13px; color: var(--ash); letter-spacing: 0.005em; }
.back::before { content: "\2190\00a0"; }
.back:hover { color: var(--bone); }
.prev { margin: 0 var(--pad); padding: 0 0 8px; font-size: 13px; }
.prev a { color: var(--ash); } .prev a:hover { color: var(--bone); }
h1 { margin: 0; font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; max-width: 24ch; }
.case-hero { margin: 0; }
.case-hero img { width: 100%; max-height: 88vh; object-fit: cover; aspect-ratio: auto !important; }
.case-text {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px var(--gap);
  padding: clamp(40px, 6vw, 88px) 0 clamp(40px, 6vw, 88px);
}
.case-text .prose { grid-column: 1 / 3; max-width: 62ch; }
.case-text .meta { grid-column: 3; }
.prose { font-size: clamp(15px, 1.15vw, 17px); line-height: 1.55; letter-spacing: 0; }
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { font-size: inherit; font-weight: 500; margin: 2em 0 .5em; }
.prose h2.label { font-size: 13px; font-weight: 400; color: var(--ash); letter-spacing: 0.005em; margin: 2.4em 0 .8em; }
.prose h2:first-child { margin-top: 0; }
.meta { margin: 0; font-size: 13px; line-height: 1.5; display: grid; gap: 14px; align-content: start; letter-spacing: 0.005em; }
.meta dt { color: var(--ash); }
.meta dd { margin: 0; }
.gallery { display: grid; gap: var(--gap); }
.gallery img { width: 100%; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.pair img { aspect-ratio: 4 / 3 !important; object-fit: cover; }

.next {
  display: grid; grid-template-columns: 1fr 2fr; align-items: end; gap: var(--gap);
  margin: clamp(60px, 8vw, 120px) var(--pad) 0; padding: 32px 0 40px; border-top: 1px solid var(--line);
}
.next .ash { font-size: 13px; }
.next-text { display: grid; gap: 10px; align-content: end; padding-bottom: 4px; }
.next-title { font-size: clamp(22px, 2.2vw, 32px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; }
.next-img { aspect-ratio: 16/7; overflow: hidden; }
.next-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto !important; transition: transform .9s var(--ease); }
.next:hover .next-img img { transform: scale(1.03); }

/* logos: one sheet */
.logo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); }
.logo { margin: 0; }
.logo img { width: 100%; }

/* about */
.about-grid { display: grid; grid-template-columns: 2fr 3fr; gap: var(--gap) clamp(40px, 6vw, 96px); align-items: start; }
.about-photo { margin: 0; }
.about-text { padding-top: 4px; max-width: 56ch; }
.about-cols {
  display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 40px clamp(40px, 6vw, 96px);
  margin-top: clamp(48px, 7vw, 104px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line);
  font-size: 15px; line-height: 1.55;
}
.about-cols h2 { margin: 0 0 16px; font-size: 13px; font-weight: 400; color: var(--ash); letter-spacing: 0.005em; }
.plain { list-style: none; margin: 0; padding: 0; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.6; letter-spacing: 0; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 18px; }
.steps li { display: grid; gap: 4px; }
.steps strong { font-weight: 500; font-size: clamp(15px, 1.15vw, 17px); letter-spacing: 0; }
.clients { margin: 0 0 28px; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.6; letter-spacing: 0; text-wrap: pretty; }
.about-strip { margin: clamp(48px, 7vw, 104px) 0 0; }
.about-strip img { width: 100%; aspect-ratio: 21 / 9 !important; object-fit: cover; }

/* contact */
.contact { padding-top: clamp(40px, 8vw, 110px); padding-bottom: clamp(40px, 6vw, 80px); max-width: 1000px; }
.contact-lead { font-size: clamp(15px, 1.15vw, 17px); line-height: 1.55; max-width: 52ch; margin: 20px 0 48px; color: var(--ash); }
.contact-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.way { display: grid; gap: 6px; padding: 22px 0 24px; border-top: 1px solid var(--line); font-size: clamp(17px, 1.5vw, 22px); letter-spacing: -0.01em; line-height: 1.2; word-break: break-word; }
.way .ash { font-size: 13px; letter-spacing: 0.005em; transition: color .25s; }
.way:hover .ash { color: var(--bone); }
.contact-note { margin: 48px 0 0; font-size: 13px; }

/* footer */
.foot { margin-top: clamp(60px, 8vw, 120px); padding: clamp(40px, 6vw, 80px) var(--pad) 40px; border-top: 1px solid var(--line); }
.foot-big { margin: 0 0 32px; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 400; }
.foot-cols { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 24px clamp(40px, 8vw, 120px); font-size: 13px; line-height: 1.75; letter-spacing: 0.005em; }
.foot-cols p { margin: 0; }
.foot-cols a { border-bottom: 1px solid transparent; transition: border-color .25s; }
.foot-cols a:hover { border-color: var(--bone); }

@media (max-width: 1100px) { .logo-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1000px) {
  .wall { grid-template-columns: repeat(2, 1fr); }
  .about-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .case-text { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .pair, .about-strip, .contact-ways, .about-cols { grid-template-columns: 1fr; }
  .next { grid-template-columns: 1fr; gap: 10px; }
  .next-img { margin-top: 14px; aspect-ratio: 16/10; }
  .case-text { grid-template-columns: 1fr; }
  .case-text .prose, .case-text .meta { grid-column: auto; }
  .foot-cols { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}
@media (max-width: 600px) {
  .top { height: 64px; }
  .wall { grid-template-columns: 1fr; gap: 28px; }
  .tile-img { aspect-ratio: 1; }
  .case-hero img { aspect-ratio: 4 / 5 !important; max-height: none; }
  .top nav { font-size: 14px; gap: 18px; }
  .brand .word { width: 100px; height: 13.5px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .intro { font-size: 15px; }
}
@media (max-width: 360px) {
  .top nav { gap: 12px; }
  .brand .word { width: 80px; height: 10.8px; }
}
@media (prefers-reduced-motion: reduce) { .tile-img video { display: none; } }
