:root {
  --bg: #fff;
  --text: #0f0f0f;
  --muted: #8a8a8a;
  --soft: #f5f5f5;
  --max: 1240px;
  --gap: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section { scroll-margin-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { appearance: none; border: 0; background: none; color: inherit; font: inherit; padding: 0; cursor: pointer; }
.site { width: min(var(--max), calc(100% - 28px)); margin: 0 auto; }
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(16px); }
.nav { width: min(var(--max), calc(100% - 28px)); margin: 0 auto; height: 48px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; line-height: 1; }
.nav__links { display: flex; gap: 16px; color: var(--muted); }
.hero { min-height: 54vh; display: grid; align-content: end; gap: 20px; padding: 56px 0 44px; }
h1 { margin: 0; font-size: clamp(76px, 17vw, 220px); line-height: .78; letter-spacing: -0.115em; font-weight: 500; }
.intro { display: flex; justify-content: space-between; gap: 28px; align-items: end; }
.intro p { margin: 0; max-width: 610px; font-size: clamp(20px, 2.6vw, 36px); line-height: .98; letter-spacing: -0.055em; }
.intro__meta { display: flex; gap: 12px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.work { padding: 34px 0 58px; }
.work__head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 14px; }
.work h2, .clients h2 { margin: 0; font-size: clamp(34px, 5vw, 74px); line-height: .88; letter-spacing: -0.085em; font-weight: 500; }
.controls { display: flex; gap: 7px; }
.control { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; background: var(--soft); color: var(--text); font-size: 16px; line-height: 1; }
.control:hover { background: #ececec; text-decoration: none; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - var(--gap) * 2) / 3); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: start; min-width: 0; display: grid; gap: 10px; }
.media { position: relative; display: block; aspect-ratio: 9 / 13.25; background: var(--soft); overflow: hidden; }
.media img, .media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.placeholder { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; padding: 12px; background: linear-gradient(145deg, rgba(0,0,0,.015), rgba(0,0,0,.075)), var(--soft); color: rgba(15,15,15,.52); font-size: 12px; line-height: 1; text-transform: uppercase; letter-spacing: .04em; }
.placeholder__row { display: flex; justify-content: space-between; gap: 12px; }
.placeholder__index { align-self: center; font-size: clamp(60px, 8vw, 112px); line-height: .8; letter-spacing: -0.1em; color: rgba(15,15,15,.12); }
.info { display: grid; gap: 5px; font-size: 13px; line-height: 1.18; }
.line { display: flex; justify-content: space-between; gap: 12px; }
.line span:last-child { color: var(--muted); text-align: right; white-space: nowrap; }
.stats { color: var(--muted); }
.clients { padding: 34px 0 64px; display: grid; grid-template-columns: 1fr 2fr; gap: 28px; align-items: start; }
.client-list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--muted); font-size: clamp(24px, 3.8vw, 54px); line-height: .9; letter-spacing: -0.07em; }
.contact { min-height: 42vh; padding: 52px 0 64px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; }
.contact h2 { margin: 0; font-size: clamp(64px, 12vw, 158px); line-height: .8; letter-spacing: -0.105em; font-weight: 500; }
.contact__links { display: grid; gap: 8px; justify-items: end; font-size: clamp(20px, 2.4vw, 32px); line-height: .95; letter-spacing: -0.05em; }
footer { padding: 20px 0 26px; color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; gap: 20px; }
@media (max-width: 900px) {
  .intro, .clients, .contact { display: grid; grid-template-columns: 1fr; }
  .intro__meta, .contact__links { justify-items: start; justify-content: start; }
  .rail { grid-auto-columns: calc((100% - var(--gap)) / 2); }
}
@media (max-width: 640px) {
  .site, .nav { width: min(var(--max), calc(100% - 20px)); }
  .nav__links { gap: 9px; font-size: 12px; }
  .hero { min-height: 50vh; padding: 42px 0 34px; }
  .intro { gap: 16px; }
  .work { padding: 30px 0 48px; }
  .rail { grid-auto-columns: 84%; }
  .line { display: grid; gap: 3px; }
  .line span:last-child { text-align: left; }
  .clients { padding: 30px 0 54px; }
  .contact { min-height: 36vh; padding: 44px 0 54px; }
  footer { display: grid; }
}
