@font-face { font-family: "Golos"; font-weight: 400; font-style: normal; src: url(../assets/fonts/golos-text-latin-400-normal.woff2) format("woff2"); font-display: swap; 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; }
@font-face { font-family: "Golos"; font-weight: 400; font-style: normal; src: url(../assets/fonts/golos-text-latin-ext-400-normal.woff2) format("woff2"); font-display: swap; 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Golos"; font-weight: 400; font-style: normal; src: url(../assets/fonts/golos-text-cyrillic-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos"; font-weight: 600; font-style: normal; src: url(../assets/fonts/golos-text-latin-600-normal.woff2) format("woff2"); font-display: swap; 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; }
@font-face { font-family: "Golos"; font-weight: 600; font-style: normal; src: url(../assets/fonts/golos-text-latin-ext-600-normal.woff2) format("woff2"); font-display: swap; 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Golos"; font-weight: 600; font-style: normal; src: url(../assets/fonts/golos-text-cyrillic-600-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos"; font-weight: 900; font-style: normal; src: url(../assets/fonts/golos-text-latin-900-normal.woff2) format("woff2"); font-display: swap; 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; }
@font-face { font-family: "Golos"; font-weight: 900; font-style: normal; src: url(../assets/fonts/golos-text-latin-ext-900-normal.woff2) format("woff2"); font-display: swap; 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Golos"; font-weight: 900; font-style: normal; src: url(../assets/fonts/golos-text-cyrillic-900-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair"; font-weight: 500; font-style: italic; src: url(../assets/fonts/playfair-display-latin-500-italic.woff2) format("woff2"); font-display: swap; 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; }
@font-face { font-family: "Playfair"; font-weight: 500; font-style: italic; src: url(../assets/fonts/playfair-display-latin-ext-500-italic.woff2) format("woff2"); font-display: swap; 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair"; font-weight: 500; font-style: italic; src: url(../assets/fonts/playfair-display-cyrillic-500-italic.woff2) format("woff2"); font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; src: url(../assets/fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); font-display: swap; 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; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; src: url(../assets/fonts/jetbrains-mono-latin-ext-400-normal.woff2) format("woff2"); font-display: swap; 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; src: url(../assets/fonts/jetbrains-mono-cyrillic-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Var"; font-weight: 400 900; font-style: normal; src: url(../assets/fonts/golos-text-latin-wght-normal.woff2) format("woff2"); font-display: swap; 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; }
@font-face { font-family: "Golos Var"; font-weight: 400 900; font-style: normal; src: url(../assets/fonts/golos-text-latin-ext-wght-normal.woff2) format("woff2"); font-display: swap; 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Golos Var"; font-weight: 400 900; font-style: normal; src: url(../assets/fonts/golos-text-cyrillic-wght-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --red: #8B0F14; --cream: #F3EDE4; --black: #111; --ink: #14152A; --bright: #E8252E; --rose: #DE9C97;
  --ease: cubic-bezier(.2,.8,.2,1);
  --sans: "Golos", sans-serif;
  --serif: "Playfair", serif;
  --mono: "JetBrains Mono", monospace;
  --pad: 16px;
}
@media (min-width: 768px) { :root { --pad: 32px; } }
@media (min-width: 1280px) { :root { --pad: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--red); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--red); color: var(--black); font: 400 17px/1.6 var(--sans); position: relative; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
[hidden] { display: none !important; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }

/* Layers inside a section: background and wordmark < paint canvas < text < shade */
[data-trail] { position: relative; padding: 64px var(--pad); }
[data-trail="black"] { background: var(--red); color: var(--cream); }
[data-trail="red"] { background: var(--cream); color: var(--black); }
[data-trail="bright"] { background: var(--ink); color: var(--cream); }
[data-trail] > .wrap { max-width: 1680px; margin: 0 auto; }
.wrap > :not(.wordmark) { position: relative; z-index: 2; }
.paint { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none; }

.stroke { display: none; }

.skip { position: absolute; left: 16px; top: -64px; z-index: 30; padding: 12px 16px; background: var(--cream); color: var(--red); }
.skip:focus { top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
main:focus { outline: none; }

/* Header: equal side columns keep the menu in the exact middle. Two rows on a phone. */
.site-head { position: absolute; inset: 0 0 auto; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0 12px; padding: 12px var(--pad); color: var(--cream); pointer-events: none; }
.site-head > * { pointer-events: auto; }
.brand { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font: 900 24px/1 var(--sans); text-decoration: none; }
/* A short page still fills the screen: its last section grows and the footer stays at the bottom */
body:not(.home), body:not(.home) > main { display: flex; flex-direction: column; }
body:not(.home) { min-height: 100vh; min-height: 100svh; }
body:not(.home) > main, body:not(.home) > main > :last-child { flex: 1 0 auto; }
/* My Work and Let’s talk: the logo pulses to show that it leads to the main page */
@media (prefers-reduced-motion: no-preference) {
  body:not(.home) .brand span { display: inline-block; animation: pulse 2s ease-in-out infinite; }
  body:not(.home) .brand:is(:hover, :focus-visible) span { animation: none; }
}
@keyframes pulse { 0%, 60%, 100% { transform: none; } 30% { transform: scale(1.22); } }
.site-head nav { grid-area: 2 / 1 / auto / -1; justify-self: center; display: flex; align-items: center; gap: 16px; }
.site-head nav a:not(.pill) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; font-size: 16px; text-decoration: none; }
.site-head nav a:not(.pill):hover, .site-head nav a[aria-current] { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.site-head .pill { min-height: 44px; padding: 4px 16px; font-size: 16px; }
.langs { grid-area: 1 / 3; justify-self: end; display: flex; align-items: center; margin-right: -12px; }
.langs button { min-width: 44px; min-height: 44px; padding: 4px; border: 0; background: none; color: inherit; font: 400 16px var(--mono); cursor: pointer; }
.langs button:hover, .langs [aria-pressed="true"] { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
@media (min-width: 768px) {
  .site-head { padding-block: 16px; }
  .site-head nav { grid-area: 1 / 2; gap: 24px; }
}

.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 24px; border-radius: 999px; border: 2px solid var(--cream); background: var(--cream); color: var(--red); font-weight: 600; text-decoration: none; transition: background .2s, color .2s; white-space: nowrap; }
.pill:hover { background: var(--red); color: var(--cream); }
.site-head .pill[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
.pill.red { background: var(--red); border-color: var(--red); color: var(--cream); }
.pill.red:hover { background: var(--cream); color: var(--red); }
[data-trail="black"] .pill:focus-visible, [data-trail="bright"] .pill:focus-visible, .site-head .pill:focus-visible { outline-color: var(--cream); }
[data-trail="red"] .pill:focus-visible { outline-color: var(--black); }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 600; text-underline-offset: 4px; }
.label { font: 400 14px/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 500; }

/* Hero */
.hero { overflow-x: clip; padding-top: 124px !important; padding-bottom: 24px !important; }
.hero > .wrap { max-width: none; }
.hero .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }
.scroll { display: flex; align-items: center; gap: 8px; }
.wordmark { transform: translate3d(0, var(--shift, 0px), 0); container-type: inline-size; margin: 8px calc(var(--pad) * -1) 0; color: var(--black); }
.wordmark .fit { display: block; font: 900 49cqw/.74 var(--sans); white-space: nowrap; text-align: center; margin: 0 -8%; }
.mid { display: grid; gap: 24px; margin-top: -24px; }
.tagline { font: 600 clamp(32px, 4.5vw, 88px)/1.05 var(--sans); letter-spacing: -.02em; }
.tagline > span { display: block; }
.tagline .serif { letter-spacing: 0; font-weight: 500; font-size: 1.05em; }
.pitch { display: grid; gap: 16px; }
.pitch p { max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.scroll { margin-top: 24px; }
@media (min-width: 768px) {
  .hero { padding-top: 84px !important; }
  .mid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; gap: 48px; margin-top: -4.5vw; }
  .pitch { padding-top: 6vw; }
}
@media (prefers-reduced-motion: reduce) {
  .paint { display: none; }
  .wrap > .stroke { display: block; width: 100%; height: 96px; margin-top: 24px; pointer-events: none; }
  .mid { margin-top: 24px; }
  .pitch { padding-top: 0; }
}

/* Sections */
.eyebrow { margin-bottom: 32px; }
.page-title { font: 900 clamp(48px, 11vw, 200px)/1 var(--sans); overflow-wrap: anywhere; }
.page-title > span { display: block; }
.page-title .serif { font-weight: 500; line-height: 1.1; }
.page-head { padding-top: 124px !important; padding-bottom: 48px !important; }
.page-head .wrap { display: grid; gap: 16px; }
@media (min-width: 768px) { .page-head { padding-top: 112px !important; } }
/* Let's talk: the headline fills the first screen, the contacts and the footer fill the second */
.talk .page-head { display: grid; min-height: 100vh; min-height: 100svh; padding-bottom: 24px !important; }
.talk .page-head .wrap { width: 100%; grid-template-rows: auto 1fr auto; align-items: center; }
.talk .page-title { font-size: min(13vw, 30vh); }
.talk .scroll { margin-top: 0; }
.talk main > :last-child { display: grid; align-items: center; min-height: calc(100vh - 32px - .9 * clamp(32px, 5.33vw, 75px)); min-height: calc(100svh - 32px - .9 * clamp(32px, 5.33vw, 75px)); }
.talk .contacts { width: 100%; }
.teaser { display: grid; gap: 24px; justify-items: start; }
.teaser h2 { font: 900 clamp(40px, 8vw, 144px)/1.05 var(--sans); overflow-wrap: anywhere; }

/* Work */
.projects { display: grid; gap: 64px; }
.project { display: grid; gap: 24px; }
.project + .project { border-top: 2px solid var(--black); padding-top: 64px; }
.browser { align-self: start; min-width: 0; overflow: clip; border-radius: 12px; background: var(--black); color: var(--cream); }
.bar { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 2px 8px 2px 16px; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--cream); opacity: .45; }
.address { flex: 1; min-width: 0; margin: 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 64px; min-height: 44px; padding: 4px 12px; border: 0; border-radius: 999px; background: none; color: inherit; font: 600 16px var(--sans); text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; cursor: pointer; }
.bar button:focus-visible { outline-offset: -4px; }
.bar button:not(.tour) .ico { display: none; }
/* The picture is as wide as the view and moves up by its own height minus the view's height. */
.view { position: relative; display: block; aspect-ratio: 16 / 10; overflow: clip; container-type: size; contain: strict; background: var(--ink); color: var(--cream); }
.view > img, .view > video { display: block; width: 100%; height: auto; }
.view > video { height: 100%; object-fit: contain; }
.name { position: absolute; inset: 0; display: grid; place-items: center; padding: 6cqw; text-align: center; font: 900 11cqw/1.05 var(--sans); letter-spacing: -.02em; }
.moves { animation: tour 11.5s infinite paused; will-change: transform; }
.moves.run { animation-play-state: running; }
.paused .moves { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .moves { animation-iteration-count: 1; } }
/* 1 s at the top, 7 s down, 1 s at the bottom, 2.5 s back */
@keyframes tour {
  0%, 8.7% { transform: translate3d(0, 0, 0); animation-timing-function: ease-in-out; }
  69.57%, 78.26% { transform: translate3d(0, calc(100cqh - 100%), 0); animation-timing-function: ease-in-out; }
  100% { transform: translate3d(0, 0, 0); }
}
.work-teaser .projects { width: 100%; gap: 32px; margin-block: 16px; }
.work-teaser .project { grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; }
.work-teaser .project + .project { border: 0; padding: 0; }
.work-teaser .badge { background: var(--cream); color: var(--red); }
.badge { justify-self: start; padding: 4px 12px; background: var(--red); color: var(--cream); }
.info { display: grid; gap: 16px; align-content: start; }
.info h2 { font: 900 clamp(28px, 4vw, 56px)/1.1 var(--sans); overflow-wrap: anywhere; }
.credit { font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; } /* small print: the photo licences ask for the names */
.info h3 { font: 900 28px/1.1 var(--sans); overflow-wrap: anywhere; }
.info ul { display: flex; flex-wrap: wrap; gap: 8px; }
.info li { border: 1px solid; border-radius: 999px; padding: 4px 12px; }
@media (min-width: 768px) { .project { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; } }
@media (min-width: 1024px) { .work-teaser .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Contact and footer */
.contacts { display: grid; gap: 24px; justify-items: start; }
.phone { display: inline-flex; align-items: center; min-height: 48px; font: 900 clamp(32px, 7vw, 120px)/1.1 var(--sans); text-decoration: none; }
.phone:hover { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; }
.mail { display: inline-flex; align-items: center; min-height: 48px; font: italic 500 clamp(22px, 4vw, 64px)/1.3 var(--serif); overflow-wrap: anywhere; text-underline-offset: 8px; text-decoration-thickness: 2px; }
.site-foot { padding-block: 16px; }
/* Logo left, phone and email in the middle, links right. On phones: logo left, the rest in the middle. */
.site-foot .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: center; gap: 0 10px; font-size: 16px; }
.foot-brand { justify-self: start; grid-row: 1 / 4; font: 900 clamp(32px, 5.33vw, 75px)/.9 var(--sans); letter-spacing: -.02em; }
.site-foot.solo .wrap { grid-template-columns: 1fr; }
.solo .foot-brand { justify-self: center; grid-row: auto; }
.socials { display: flex; flex-wrap: wrap; gap: 0 24px; }
.socials a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-underline-offset: 4px; }
@media (min-width: 600px) and (max-width: 899.98px) {
  .site-foot .wrap { grid-template-columns: 1fr auto 1fr; }
  .site-foot .wrap > :not(.foot-brand) { grid-column: 2; }
}
@media (min-width: 900px) {
  .site-foot .wrap { grid-template-columns: 1fr auto auto 1fr; gap: 0 clamp(32px, 5vw, 96px); font-size: inherit; }
  .foot-brand { grid-row: auto; }
  .socials { justify-self: end; }
}
.site-foot a { display: inline-flex; align-items: center; min-height: 44px; }

/* Heading reveal (js/scroll.js) */
.js .rv:not(.in) { opacity: 0; }
.ln { display: block; overflow: clip; padding-block: .14em; margin-block: -.14em; }
.ln > span { display: block; }
.wordmark { overflow: clip; overflow-clip-margin: 4px; }

/* Stacking: js/scroll.js writes --enter, --exit and --p (0 to 1) on every section */
.home { background: var(--black); }
.stack > [data-trail], .home .site-foot { overflow: clip; z-index: 1; }
.stack > [data-trail] { min-height: 100vh; }
.js .stack > [data-trail] { position: sticky; transform: translate3d(0, calc(var(--exit, 0) * var(--vh, 1vh) * -4), 0) scale(calc(1 - .06 * var(--exit, 0))); }
.js .stack > [data-trail] { will-change: transform; }
.js .stack > [data-trail]::after { content: ""; position: absolute; inset: 0; z-index: 5; background: #000; opacity: calc(var(--exit, 0) * .35); pointer-events: none; }
/* Round corners while a section arrives */
.js .stack > [data-trail]:not(.hero) { --c: calc(24px * clamp(0, (1 - var(--enter, 1)) * 12, 1)); clip-path: inset(0 round var(--c) var(--c) 0 0); }
.js .home .site-foot { border-radius: 24px 24px 0 0; min-height: 16vh; z-index: 60; display: grid; }
.js .stack::after { content: ""; display: block; height: 16vh; } /* the footer is never shorter than this */
.js .stack { margin-bottom: -16vh; }
.home .site-foot .wrap { width: 100%; align-content: center; }
.home .site-head { position: absolute; z-index: 3; }
.js .home .site-head { position: sticky; height: 0; padding-block: 0; align-items: flex-start; align-content: flex-start; transform-origin: 50% 50vh; transform: translate3d(0, calc(var(--exit, 0) * var(--vh, 1vh) * -4), 0) scale(calc(1 - .06 * var(--exit, 0))); opacity: calc(1 - var(--exit, 0) * .35); }
.js .home .site-head > :not(nav) { margin-top: 12px; }
@media (min-width: 768px) { .js .home .site-head > * { margin-top: 16px !important; } }
.home .hero { display: grid; }
.home .hero > .wrap { width: 100%; display: flex; flex-direction: column; }
.home .hero .scroll { margin-top: auto; padding-top: 24px; }

/* Marquee */
.stack > .band { min-height: 46vh; padding: 24px 0 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: center; margin-bottom: 30vh; }
.rows { position: relative; z-index: 2; display: grid; gap: 8px; }
.row { display: flex; width: max-content; will-change: transform; font: 900 min(11vw, 16vh)/1.1 var(--sans); white-space: nowrap; letter-spacing: -.01em; }
.run { display: flex; align-items: center; }
.outline { color: transparent; -webkit-text-stroke: 2px var(--cream); }
.star { width: .36em; height: .36em; margin: 0 .28em; background: var(--bright); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.band-foot { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 0 var(--pad); }
.counter { width: 5ch; text-align: right; contain: content; }
.motion { min-width: 64px; min-height: 44px; padding: 4px 0; border: 0; background: none; color: inherit; text-align: left; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
html:not(.js) .motion { display: none; }

/* Design in progress */
.stack > .manifesto { margin-bottom: 150vh; padding-block: 32px; }
.manifesto { --grow: clamp(0, var(--p, 1) / .55, 1); --b2: clamp(0, (var(--p, 1) - .62) / .3, 1); --s: calc(.34 + .66 * var(--grow)); }
.manifesto > .wrap { display: grid; grid-template-rows: auto 1fr auto; min-height: calc(100vh - 64px); gap: 24px; }
.man-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-bottom: 12px; border-bottom: 1px solid rgba(17,17,17,.25); }
.man-main { display: grid; gap: 48px; align-content: center; }
.head-box { align-self: start; position: static; min-width: 0; font: 900 64px/1.04 "Golos Var", var(--sans); letter-spacing: -.02em; contain: layout style; }
.fl { display: block; width: max-content; white-space: nowrap; }
.sel { position: relative; display: block; width: max-content; font-weight: calc(400 + 500 * var(--grow)); transform-origin: 0 0; transform: scale(var(--s)); }
.ml { display: block; overflow: clip; padding: 0 .08em .24em 0; margin-bottom: -.16em; }
.ml > .serif { color: var(--red); letter-spacing: 0; transform: translateY(calc((1 - var(--b2)) * 125%)); }
.frame { --b: calc(2px / var(--s)); --h: calc(10px / var(--s)); position: absolute; inset: -.1em -.16em; opacity: calc(1 - var(--b2)); box-shadow: inset 0 0 0 var(--b) var(--red);
  background: linear-gradient(var(--red), var(--red)) 0 0, linear-gradient(var(--red), var(--red)) 100% 0, linear-gradient(var(--red), var(--red)) 0 100%, linear-gradient(var(--red), var(--red)) 100% 100%; background-size: var(--h) var(--h); background-repeat: no-repeat; }
.inspector { display: none; }
.man-foot { max-width: 64ch; opacity: calc(var(--b2) * 2 - 1); }
.measure .manifesto { --grow: 1 !important; --s: 1 !important; }
.measure .head-box .fl { transform: none; }
.measure .stack > [data-trail], .measure .wordmark { transform: none !important; top: 0 !important; }
.measure .stack > [data-trail] { position: relative !important; }
@media (min-width: 1024px) {
  .man-main { grid-template-columns: minmax(0, 1fr) 248px; align-content: start; }
  .inspector { display: grid; gap: 4px; align-self: start; padding: 16px; background: #fff; border: 1px solid rgba(17,17,17,.25); box-shadow: 0 16px 32px rgba(17,0,2,.12); contain: content; }
  .inspector p { display: flex; justify-content: space-between; gap: 16px; padding: 8px; }
  .inspector .layer { border-bottom: 1px solid rgba(17,17,17,.25); }
  .val { min-width: 9ch; padding: 0 8px; text-align: right; background: var(--red); color: var(--cream); border-radius: 4px; }
  .swatch > :first-child { width: 24px; height: 24px; background: var(--black); }
}

/* What I do: rose. The trail lies above the text here and is drawn in rose with "difference":
   that shows black on the rose, and turns the black text rose, so it stays readable. */
.what[data-trail] { background: var(--rose); color: var(--black); }
.what > .paint { z-index: 3; mix-blend-mode: difference; }
.stack > .what { margin-bottom: 40vh; }
.what > .wrap { display: grid; gap: 32px; align-content: center; min-height: calc(100vh - 128px); }
.what h2 { font: 900 clamp(48px, 12vw, 240px)/1 var(--sans); text-wrap: balance; letter-spacing: -.02em; overflow-wrap: anywhere; }
.what li { border-top: 1px solid; }
.what li a { display: flex; align-items: center; gap: 16px; min-height: 56px; font-weight: 600; text-decoration: none; }
.what li a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 768px) {
  .what > .wrap { grid-template-columns: minmax(0, 1fr) 280px; align-items: end; }
  .what .eyebrow { grid-column: 1 / -1; }
}

/* My work: the footer ends up over the last 16vh, so this leaves 120 px of red above it */
.js .stack > .work-teaser { padding-bottom: calc(16vh + 120px); }
.work-teaser:focus { outline: none; }
.stack .work-teaser :is(a, button) { scroll-margin-bottom: 72px; }

/* Service panels */
.stack > .panel { margin-bottom: 40vh; padding-block: 32px 88px; }
.panel:focus { outline: none; }
.panel { --e: clamp(0, (var(--enter, 1) - .55) / .45, 1); }
.panel > .wrap { display: grid; gap: 24px; align-content: center; min-height: calc(100vh - 120px); }
.panel .copy { display: grid; gap: 16px; align-content: center; }
.panel .copy p { max-width: 46ch; opacity: var(--e); }
.panel h3 { font: 900 clamp(36px, 5.6vw, 112px)/1.1 var(--sans); letter-spacing: -.02em; overflow-wrap: anywhere; clip-path: inset(-10% calc((1 - var(--e)) * 100%) -10% 0); transform: translate3d(calc((1 - var(--e)) * -8vw), 0, 0); }
.figure { position: relative; display: grid; align-items: center; justify-items: center; }
.figure > * { grid-area: 1 / 1; }
.num { font: 900 min(44vh, 58vw)/.8 var(--sans); transform: translate3d(0, calc((1 - var(--e)) * 60%), 0); }
[data-trail="red"] .num { color: var(--red); }
[data-trail="bright"] .num { color: var(--bright); }
.obj { width: min(72%, 56vh); transform: translate3d(0, calc((1 - var(--e)) * 45% - var(--p, 0) * 6%), 0) rotate(calc(-4deg - (1 - var(--e)) * 14deg)) scale(calc(1 - .75 * clamp(0, var(--exit, 0) * 1.7, 1))); }
.art { display: block; width: 100%; height: auto; overflow: visible; }
@media (min-width: 768px) {
  .panel > .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; }
  .num { font-size: min(62vh, 34vw); }
}

/* Bottom bar */
.service-bar { position: fixed; inset: auto 0 0; z-index: 40; display: flex; align-items: center; gap: 8px 32px; padding: 8px var(--pad); color: var(--black); visibility: hidden; opacity: 0; transition: opacity .3s var(--ease), visibility .3s, color .2s; }
.service-bar.solid { background: var(--red); } /* the projects scroll under it */
.service-bar.show { visibility: visible; opacity: 1; }
.service-bar:not([data-tone="red"]) { color: var(--cream); }
.service-bar a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; text-decoration: none; }
.service-bar a[aria-current] { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 3px; }
.service-bar .motion { margin-left: auto; }

/* Panel art. Only moves while its panel is on screen. */
.f-cream { fill: var(--cream); } .f-red { fill: var(--red); } .f-ink { fill: var(--ink); } .f-black { fill: var(--black); } .f-bright { fill: var(--bright); }
.s-black { stroke: var(--black); stroke-width: 4; } .s-cream { stroke: var(--cream); stroke-width: 4; }
.o-black { fill: none; stroke: var(--black); stroke-width: 4; }
.l-cream, .l-black { fill: none; stroke-width: 10; stroke-linecap: round; }
.l-cream { stroke: var(--cream); } .l-black { stroke: var(--black); }
.wire { fill: none; stroke: var(--cream); stroke-width: 4; stroke-dasharray: 2 10; stroke-linecap: round; }
.ring { fill: none; stroke: var(--bright); stroke-width: 4; }
.pointer { transform: translate(300px, 196px); }
.tap { transform: translate(200px, 200px); }
.pk { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .art * { animation-duration: 5s; animation-iteration-count: infinite; animation-timing-function: var(--ease); animation-play-state: paused; }
  .on .art * { animation-play-state: running; }
  .paused .art * { animation-play-state: paused; }
  .d1 { animation-name: d1; } .d2 { animation-name: d2; } .d3 { animation-name: d3; } .d4 { animation-name: d4; } .pointer { animation-name: pointer; }
  .pk1 { animation-name: pk1; } .pk2 { animation-name: pk2; } .pk3 { animation-name: pk3; }
  .art .pk { animation-duration: 2.4s; animation-timing-function: linear; }
  .db .top { animation-name: lid; animation-duration: 2.4s; } .db .led { animation-name: led; animation-duration: 1.2s; }
  .db2 .top { animation-delay: .8s; } .db3 .top { animation-delay: 1.6s; } .db2 .led { animation-delay: .4s; } .db3 .led { animation-delay: .8s; }
  .pk2 { animation-delay: .8s; } .pk3 { animation-delay: 1.6s; }
  .feed { animation-name: feed; } .tap { animation-name: tap; } .ring { animation-name: ring; transform-box: fill-box; transform-origin: center; }
  .rocket { animation-name: rocket; } .flame { animation-name: flame; transform-box: fill-box; transform-origin: 50% 0; } .stars { animation-name: stars; }
  .art .flame { animation-duration: .3s; animation-direction: alternate; } .art .stars { animation-duration: 1.6s; animation-timing-function: linear; }
}
@keyframes d1 { 0% { transform: translateX(-60px); opacity: 0; } 12%, 92% { transform: none; opacity: 1; } 100% { opacity: 0; } }
@keyframes d2 { 0%, 14% { transform: translate(60px, 70px) rotate(8deg); opacity: 0; } 18% { transform: translate(40px, 50px) rotate(6deg); opacity: 1; } 34%, 92% { transform: none; opacity: 1; } 100% { opacity: 0; } }
@keyframes d3 { 0%, 34% { transform: translateY(30px); opacity: 0; } 48%, 92% { transform: none; opacity: 1; } 100% { opacity: 0; } }
@keyframes d4 { 0%, 48% { transform: translateY(30px); opacity: 0; } 60%, 92% { transform: none; opacity: 1; } 100% { opacity: 0; } }
@keyframes pointer { 0%, 14% { transform: translate(360px, 200px); } 34% { transform: translate(310px, 130px); } 56% { transform: translate(150px, 220px); } 74%, 100% { transform: translate(320px, 222px); } }
@keyframes pk1 { 0% { transform: translate(164px, 100px); opacity: 1; } 35% { transform: translate(204px, 92px); } 60% { transform: translate(240px, 74px); opacity: 1; } 80% { transform: translate(276px, 70px); opacity: 1; } 82%, 100% { transform: translate(276px, 70px); opacity: 0; } }
@keyframes pk2 { 0% { transform: translate(276px, 150px); opacity: 1; } 78% { transform: translate(164px, 150px); opacity: 1; } 80%, 100% { transform: translate(164px, 150px); opacity: 0; } }
@keyframes pk3 { 0% { transform: translate(164px, 200px); opacity: 1; } 35% { transform: translate(204px, 208px); } 60% { transform: translate(240px, 226px); opacity: 1; } 80% { transform: translate(276px, 230px); opacity: 1; } 82%, 100% { transform: translate(276px, 230px); opacity: 0; } }
@keyframes lid { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-10px); } 90% { transform: translateY(2px); } }
@keyframes led { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
@keyframes feed { 0%, 14% { transform: none; } 36%, 52% { transform: translateY(-120px); } 72%, 86% { transform: translateY(-150px); } 100% { transform: none; } }
@keyframes tap { 0%, 10% { transform: translate(210px, 236px); } 30%, 48% { transform: translate(206px, 120px); } 62%, 88% { transform: translate(200px, 260px); } 100% { transform: translate(210px, 236px); } }
@keyframes ring { 0%, 66% { transform: scale(.5); opacity: 0; } 68% { transform: scale(.5); opacity: 1; } 84%, 100% { transform: scale(1.8); opacity: 0; } }
@keyframes rocket { 0%, 100% { transform: translate(0, 14px) rotate(0deg); } 25% { transform: translate(-3px, -4px) rotate(-.6deg); } 50% { transform: translate(3px, -16px) rotate(.6deg); } 75% { transform: translate(-2px, 0) rotate(0deg); } }
@keyframes flame { from { transform: scaleY(.7); } to { transform: scaleY(1.1); } }
@keyframes stars { from { transform: translateY(-60px); opacity: 0; } 30%, 70% { opacity: 1; } to { transform: translateY(80px); opacity: 0; } }

@media (max-width: 768px) {
  .stack > .manifesto { margin-bottom: 90vh; }
  .stack > .band, .stack > .panel, .stack > .what { margin-bottom: 24vh; }
  .outline { -webkit-text-stroke-width: 1px; }
  .frame { --h: calc(5px / var(--s)); --b: calc(1px / var(--s)); }
  .service-bar { gap: 0; padding-inline: 8px; }
  .service-bar a { justify-content: center; }
  /* Only the active name shows. All names share one spot, so nothing shifts. */
  .service-bar a > :last-child { position: absolute; left: 236px; right: 8px; line-height: 1.15; opacity: 0; pointer-events: none; }
  .service-bar a[aria-current] > :last-child { opacity: 1; }
  .service-bar .motion { display: none; }
}
@media (max-width: 400px) {
  .service-bar a { min-width: 36px; }
  .service-bar a > :last-child { left: 196px; }
}
/* Phone header: brand and languages on top, My Work under the brand, Let's talk under the languages */
@media (max-width: 767.98px) {
  .site-head { row-gap: 8px; }
  .site-head nav { justify-self: stretch; justify-content: space-between; }
  .hero, .page-head { padding-top: 140px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .stack > .manifesto, .stack > .band, .stack > .panel, .stack > .what { margin-bottom: 0; }
  .js .stack > [data-trail]:not(.hero) { clip-path: none; }
  .row { flex-wrap: wrap; width: auto; padding: 0 var(--pad); }
  .row .run:last-child { display: none; }
  .run { flex-wrap: wrap; }
  .row { font-size: min(7vw, 10vh); }
  .frame { opacity: 1; }
  /* Nothing moves: show each service once, no Pause button or counter */
  .row.outline, .band-foot { display: none; }
}
/* Still band: one even list, a star in front of each service */
@media (prefers-reduced-motion: reduce) {
  .stack > .band { padding-block: 32px; }
  .row { font-size: min(8vw, 10vh); white-space: normal; }
  .row .run { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-auto-flow: row dense; align-items: center; gap: 4px 12px; }
  .run > span { grid-column: 2; }
  .run > .star { grid-column: 1; margin: 0; }
}
/* Desktop: two columns, so the list stays short */
@media (prefers-reduced-motion: reduce) and (min-width: 1024px) {
  .row { font-size: min(4.5vw, 8vh); }
  .row .run { grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); column-gap: 12px; }
  .run > span:nth-of-type(even) { grid-column: 4; }
  .run > .star:nth-of-type(even) { grid-column: 3; margin-left: 32px; }
}
