/* ASAProductions · style.css (round 5)
   Components only; every value comes from tokens.css.
   Two rules hold everywhere:
   1. ONE width: every section, the header and the footer sit in .wrap (--container);
      only heroes are full bleed.
   2. ONE rhythm: .section is --section-gap below the one before; a section head is
      --head-gap above its content.
   Few lines: space and surfaces separate things, not borders. No dots in front of text. */

/* ================= base ================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--palette-paper);   /* what shows under the page: the footer colour */
  color: var(--color-text);
  font: var(--weight-text) var(--text-base)/var(--leading-text) var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
legend { padding: 0; }
::selection { background: var(--color-accent); color: var(--color-on-accent); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: var(--gutter); top: -60px; z-index: 300; background: var(--color-accent); color: var(--color-on-accent); padding: 10px 14px; }
.skip:focus { top: 10px; }
.muted { color: var(--color-muted); }
.num { font-variant-numeric: tabular-nums; }

/* the page: everything above the footer. The footer sits under it and is uncovered at the end,
   so only <main> paints a background; around the shrinking call to action you see the footer. */
.page { position: relative; z-index: 2; color: var(--color-text); }
main { position: relative; background: var(--color-bg); padding-bottom: var(--section-gap); }
main:has(> .over) { padding-bottom: 0; }
.hero + .over { margin-top: 55svh; }
.over { position: relative; z-index: 1; background: var(--color-bg); padding-bottom: var(--section-gap); }

/* ONE width and ONE rhythm */
.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-top: var(--section-gap); }
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-5) var(--col-gap); align-items: end; margin-bottom: var(--head-gap); }
.sec-head .label { grid-column: 1 / span 3; align-self: start; padding-top: .55em; }
.sec-head .say { grid-column: 4 / span 6; }
.sec-head__link { grid-column: 10 / -1; justify-self: end; }

/* ================= type ================= */
.h2 { font-size: var(--text-h2); font-weight: var(--weight-mid); line-height: var(--leading-head); letter-spacing: var(--tracking-head); }
.h3 { font-size: var(--text-h3); font-weight: var(--weight-mid); line-height: 1.15; letter-spacing: -0.01em; }
.say { font-size: var(--text-say); font-weight: var(--weight-text); line-height: 1.18; letter-spacing: -0.015em; max-width: 26ch; }
.say--lg { max-width: 22ch; }
.label { font-size: var(--text-sm); font-weight: var(--weight-mid); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--color-muted); }
.label--small { font-size: var(--text-xs); }
.soon-tag { color: var(--color-accent); font-size: var(--text-sm); text-transform: uppercase; letter-spacing: var(--tracking-label); font-weight: var(--weight-mid); }

/* text that rolls up on hover (the copy is aria-hidden) */
.roll { position: relative; display: inline-flex; flex-direction: column; overflow: hidden; height: 1.2em; padding-inline: .06em; margin-inline: -.06em; line-height: 1.2; vertical-align: bottom; }
.roll > span { display: block; transition: transform var(--duration-base) var(--ease-power4); white-space: nowrap; }
a:hover .roll > span, button:hover .roll > span, a:focus-visible .roll > span { transform: translateY(-100%); }
/* small drawn arrows inside text (up, up-right): never typed characters, phones show those as emoji */
.ico { display: inline-block; width: .85em; height: .85em; vertical-align: -.06em; }
.arrow { width: 1em; height: 1em; flex: none; transition: transform var(--duration-base) var(--ease-power4); }
a:hover .arrow { transform: translateX(4px); }

/* ================= controls ================= */
/* buttons (like 3dsap): the label and a round chip with an arrow.
   Nothing moves on hover except inside: the colours swap, the arrow slides out of the chip and a new one slides in. */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: var(--control-h); padding: 5px 5px 5px 20px;
  border: 1px solid var(--color-line-strong); border-radius: 999px;
  color: var(--color-text); background: transparent;
  font-size: var(--text-sm); font-weight: var(--weight-mid); text-transform: uppercase; letter-spacing: var(--tracking-label); line-height: 1;
  white-space: nowrap; cursor: pointer;
  transition: background var(--duration-base) var(--ease-power4), color var(--duration-base) var(--ease-power4), border-color var(--duration-base);
}
.btn__label { display: inline-flex; align-items: center; }
.btn__chip { flex: none; position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: var(--color-accent); color: var(--color-on-accent); transition: background var(--duration-base), color var(--duration-base); }
.btn__arrows { position: relative; width: 14px; height: 14px; }
.btn__arrows svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform var(--duration-base) var(--ease-power4); }
.btn__arrows svg:last-child { transform: translateX(-26px); }
.btn:hover .btn__arrows svg:first-child, .btn:focus-visible .btn__arrows svg:first-child { transform: translateX(26px); }
.btn:hover .btn__arrows svg:last-child, .btn:focus-visible .btn__arrows svg:last-child { transform: none; }
.btn:hover { background: var(--color-text); color: var(--color-bg); border-color: var(--color-text); }
.btn--solid { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); }
.btn--solid .btn__chip { background: var(--palette-black); color: var(--palette-gold); }
.btn--solid:hover { background: var(--color-text); border-color: var(--color-text); color: var(--color-bg); }
.btn--solid:hover .btn__chip { background: var(--color-accent); color: var(--color-on-accent); }
.link { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-sm); font-weight: var(--weight-mid); text-transform: uppercase; letter-spacing: var(--tracking-label); }
.pills { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--head-gap); }
.pill { min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--color-field); font-size: var(--text-sm); color: var(--color-muted); transition: background var(--duration-fast), color var(--duration-fast); }
.pill:hover { color: var(--color-text); }
.pill[aria-pressed="true"] { background: var(--color-accent); color: var(--color-on-accent); }

/* what you get: a quiet numbered list (no ticks, no dots) */
.ticks { display: grid; gap: var(--space-2); counter-reset: tick; }
.ticks li { position: relative; padding-left: 34px; counter-increment: tick; }
.ticks li::before { content: counter(tick, decimal-leading-zero); position: absolute; left: 0; top: .2em; font-size: var(--text-xs); font-variant-numeric: tabular-nums; letter-spacing: var(--tracking-label); color: var(--color-muted); }

/* a list of links with arrows, no lines */
.links { display: grid; gap: var(--space-3); }
.links a { display: inline-flex; align-items: center; gap: var(--space-3); font-size: var(--text-lg); }

/* breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--text-sm); color: var(--color-muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a:hover { color: var(--color-text); }

/* ================= frame ================= */
.grain {
  position: fixed; inset: 0; z-index: 250; pointer-events: none;   /* screen-sized: a bigger layer widens the page on phones */
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { background-position: 0 0; } 20% { background-position: -37px 23px; } 40% { background-position: 29px -41px; }
  60% { background-position: -19px -13px; } 80% { background-position: 43px 31px; } 100% { background-position: 0 0; }
}

.curtain {
  position: fixed; inset: 0; z-index: 260; pointer-events: none;
  display: grid; place-items: center;
  background: var(--palette-black); color: var(--palette-white);
  transform: translateY(101%);
}
.curtain__mark { font-size: clamp(2.5rem, 7vw, 6rem); font-weight: var(--weight-mid); letter-spacing: -0.04em; line-height: 1; overflow: hidden; }
.curtain__mark b { font-weight: var(--weight-head); }
.curtain__mark > span { display: block; }
.js-motion .curtain__mark > span { visibility: hidden; }   /* until the intro moves it (and the fonts are in) */
.is-arriving .curtain { transform: none; }
.curtain .intro-lines { position: absolute; inset: var(--gutter); display: grid; grid-template-columns: 1fr 3fr 1fr; border: 1px solid rgb(241 237 230 / .3); }
.curtain .intro-lines span { border-right: 1px solid rgb(241 237 230 / .3); }
.curtain .intro-lines span:last-child { border-right: 0; }

/* the wordmark: one word, ASA heavier */
.brand { display: inline-flex; align-items: baseline; font-size: 1.375rem; font-weight: var(--weight-text); letter-spacing: -0.035em; line-height: 1; white-space: nowrap; }
.brand b { font-weight: var(--weight-head); }
.brand--lg { font-size: clamp(2rem, 3vw, 2.75rem); }

/* header: a full bar at the top; once you scroll it turns into a floating dark pill.
   The pill holds four links and "Меню", which grows the pill into a mega menu (like 3dsap's card, wider, with photos). */
.hdr { position: fixed; inset: 0 0 auto; z-index: 100; padding-top: 14px; pointer-events: none; }
.hdr__bar {
  pointer-events: auto;
  width: calc(100% - 2 * var(--gutter)); max-width: var(--container); margin-inline: auto;
  color: var(--color-text);
  border-radius: 28px;
  transition: max-width .7s var(--ease-power4), padding .7s var(--ease-power4), background .5s, color .5s, box-shadow .5s;
}
.hdr__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-5); height: 56px; }
.hdr__nav { display: flex; justify-content: center; gap: clamp(16px, 2vw, 32px); font-size: var(--text-sm); font-weight: var(--weight-mid); white-space: nowrap; }
/* the page you are on sits in brackets: ( Работа ). On hover the brackets come in lightly. */
.hdr__nav a { position: relative; display: inline-flex; align-items: center; opacity: .8; transition: opacity var(--duration-fast); }
.hdr__nav a::before, .hdr__nav a::after { font-family: var(--font-serif); font-size: 1.45em; font-weight: 400; line-height: .6; opacity: 0; transition: opacity var(--duration-base), transform var(--duration-base) var(--ease-power4); }
.hdr__nav a::before { content: "("; margin-right: .18em; transform: translateX(-.35em); }
.hdr__nav a::after { content: ")"; margin-left: .18em; transform: translateX(.35em); }
.hdr__nav a:hover, .hdr__nav a[aria-current="page"] { opacity: 1; }
.hdr__nav a:hover::before, .hdr__nav a:hover::after { opacity: .45; transform: none; }
.hdr__nav a[aria-current="page"]::before, .hdr__nav a[aria-current="page"]::after { opacity: 1; transform: none; }
.hdr__end { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-2); }
.hdr__end .lang { margin-right: var(--space-3); }
.lang { display: flex; gap: 8px; font-size: var(--text-xs); font-weight: var(--weight-mid); }
.lang span:not([aria-current]) { opacity: .45; }
.hdr__ig { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; transition: background var(--duration-fast); }
.hdr__ig svg { width: 20px; height: 20px; }
.hdr__ig:hover { background: rgb(128 128 128 / .2); }
.menu-btn { display: inline-flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px 0 18px; line-height: 1; border-radius: 999px; background: rgb(128 128 128 / .18); font-size: var(--text-sm); font-weight: var(--weight-mid); transition: background var(--duration-fast); }
.menu-btn:hover { background: rgb(128 128 128 / .3); }
/* the menu icon: two lines of different length (like a viewfinder's marks); open, they cross into an X */
.menu-btn__icon { position: relative; width: 20px; height: 12px; }
.menu-btn__label { display: flex; align-items: center; }
.menu-btn__label .roll { vertical-align: middle; }
.menu-btn__icon::before, .menu-btn__icon::after { content: ""; position: absolute; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .55s var(--ease-power4), width .55s var(--ease-power4), top .55s var(--ease-power4); }
.menu-btn__icon::before { top: 1px; width: 20px; }
.menu-btn__icon::after { top: 9px; width: 13px; background: var(--palette-gold); }
.menu-btn:hover .menu-btn__icon::after { width: 20px; }
.menu-btn[aria-expanded="true"] .menu-btn__icon::before { top: 5px; width: 18px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon::after { top: 5px; width: 18px; transform: rotate(-45deg); }
/* over the dark heroes at the top: light text with a soft shadow so it never disappears */
[data-page="home"] .hdr:not(.is-pill):not(.is-open) .hdr__bar, [data-page="studio"] .hdr:not(.is-pill):not(.is-open) .hdr__bar { color: var(--palette-white); text-shadow: 0 1px 12px rgb(0 0 0 / .35); }
/* the pill, and the open menu */
.hdr.is-pill .hdr__bar, .hdr.is-open .hdr__bar {
  padding-inline: 24px 8px;
  background: rgb(20 19 17 / .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  color: var(--palette-white); text-shadow: none;
  box-shadow: 0 10px 40px rgb(0 0 0 / .25), inset 0 0 0 1px rgb(255 255 255 / .08);
}
.hdr.is-pill .hdr__bar { max-width: min(1100px, calc(100% - 2 * var(--gutter))); }
.hdr.is-open .hdr__bar { max-width: var(--container); background: rgb(16 15 13 / .96); }
.hdr.is-pill .hdr__ig, .hdr.is-open .hdr__ig { background: rgb(255 255 255 / .08); }
.hdr.is-pill .menu-btn, .hdr.is-open .menu-btn { background: rgb(255 255 255 / .1); }

/* the mega menu: big links (the photo on the right follows the one you point at), services with small photos,
   the latest work, contacts */
.mega { height: 0; overflow: hidden; }
.mega__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-6) var(--col-gap); padding: var(--space-6) 0 var(--space-5); }
.mega__nav { grid-column: 1 / span 5; }
.mega__nav ol { display: grid; }
.mega__link { display: flex; align-items: baseline; gap: var(--space-4); padding: 2px 0; font-size: clamp(1.9rem, 1rem + 1.8vw, 3.1rem); font-weight: var(--weight-mid); letter-spacing: var(--tracking-caps); line-height: 1.08; color: rgb(241 237 230 / .55); transition: color var(--duration-fast), transform var(--duration-base) var(--ease-power4); }
.mega__link:hover, .mega__link:focus-visible { color: var(--palette-white); transform: translateX(10px); }
.mega__link[aria-current="page"] { color: var(--palette-white); }
.mega__link[aria-current="page"] .mega__word::before { content: "("; margin-right: .1em; font-family: var(--font-serif); font-weight: 400; }
.mega__link[aria-current="page"] .mega__word::after { content: ")"; margin-left: .1em; font-family: var(--font-serif); font-weight: 400; }
.mega__no { font-size: var(--text-xs); letter-spacing: 0; color: var(--palette-grey); }
.mega__mid { grid-column: 6 / span 3; display: grid; gap: var(--space-4); align-content: start; }
.mega__svc { display: grid; gap: var(--space-2); margin-bottom: var(--space-4); }
.mega__svc a { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-base); color: rgb(241 237 230 / .8); }
.mega__svc a:hover { color: var(--palette-white); }
.mega__thumb { flex: none; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; }
.mega__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-base) var(--ease-power4); }
.mega__svc a:hover .mega__thumb img { transform: scale(1.15); }
.mega__work { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.mega__work-item { display: grid; gap: 6px; font-size: var(--text-sm); color: rgb(241 237 230 / .75); }
.mega__work-img { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; }
.mega__work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-base) var(--ease-power4); }
.mega__work-item:hover .mega__work-img img { transform: scale(1.06); }
.mega__side { grid-column: 9 / -1; display: grid; grid-template-rows: 1fr auto; gap: var(--space-4); }
.mega__photo { position: relative; border-radius: 16px; overflow: hidden; min-height: 260px; background: var(--palette-coal); }
.mega__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mega__contact { display: grid; gap: 4px; font-size: var(--text-sm); color: rgb(241 237 230 / .75); }
.mega__contact a:hover { color: var(--palette-white); }
.mega__contact .btn { margin-top: var(--space-3); justify-content: space-between; }
.mega-scrim { position: fixed; inset: 0; z-index: 99; background: rgb(0 0 0 / .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .5s; }
.menu-open .mega-scrim { opacity: 1; pointer-events: auto; }

/* footer: paper, under the page, uncovered at the end */
.ftr { position: sticky; bottom: 0; z-index: 1; background: var(--color-bg); color: var(--color-text); }
.ftr__in { min-height: min(100svh, 820px); display: flex; flex-direction: column; padding-top: calc(var(--header-h) + var(--space-7)); padding-bottom: var(--space-5); }
.ftr__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-7) var(--col-gap); }
.ftr__col { grid-column: span 2; }
.ftr__col--lead { grid-column: span 4; display: grid; gap: var(--space-4); align-content: start; }
.ftr__col--lead p { color: var(--color-muted); max-width: 30ch; }
.ftr__col h2 { font-size: var(--text-xs); font-weight: var(--weight-mid); text-transform: uppercase; letter-spacing: var(--tracking-label); margin-bottom: var(--space-4); }
.ftr__col li { color: var(--color-muted); line-height: 1.6; overflow-wrap: anywhere; }
.ftr__col a:hover { color: var(--color-text); }
.ftr__word { margin: auto 0 0; padding-top: var(--space-8); font-weight: var(--weight-head); line-height: .8; letter-spacing: -0.05em; white-space: nowrap; font-size: 11vw; }
.ftr__word span { display: block; width: max-content; padding-right: .06em; background-size: cover; background-position: 50% 40%; -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.ftr__copy { display: flex; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-5); font-size: var(--text-sm); color: var(--color-muted); }
.ftr__copy a { color: var(--color-text); }

/* closing calls to action: a different text on each page, in three looks.
   The section paints the page colour edge to edge, so the footer never shows beside it. */
.cta { position: relative; background: var(--color-bg); padding-bottom: var(--space-8); }
.cta .link { color: var(--palette-white); }
.cta__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-7); }
.cta__title { font-size: clamp(3rem, 1rem + 7vw, 8.5rem); font-weight: var(--weight-mid); line-height: var(--leading-tight); letter-spacing: var(--tracking-caps); text-transform: uppercase; }
.cta__title > span { display: block; }
/* 1. video: the film plays inside the letters */
.cta--video .cta__inner { position: relative; overflow: hidden; border-radius: 28px; aspect-ratio: 16 / 8; min-height: 420px; background: #000; }
.cta__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); filter: brightness(2.2) contrast(1.15) saturate(1.1); }   /* the film is dark: lift it so it reads inside the letters */
.cta__knock { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; background: var(--palette-black); color: #fff; mix-blend-mode: multiply; font-size: clamp(3.5rem, 1rem + 10vw, 12rem); font-weight: var(--weight-head); line-height: .86; letter-spacing: -0.05em; text-transform: uppercase; }
.cta__knock > span { display: block; }
.cta--video .cta__row { justify-content: space-between; margin-top: var(--space-6); }
[data-theme="paper"] .cta--video .cta__inner, [data-theme="paper"] .cta--video .cta__knock { background-color: var(--palette-ink); }
[data-theme="paper"] .cta .link { color: var(--color-text); }
/* 2. viewfinder: a camera's viewfinder over a photo. The photo pulls into focus as you scroll in,
   the frame closes in on the words, REC blinks, the timecode runs (Kris, round 12: replaces the marquee) */
.cta--vf .cta__inner { position: relative; overflow: hidden; border-radius: 28px; min-height: min(78svh, 760px); display: grid; align-items: end; background: var(--palette-black); color: var(--palette-white); isolation: isolate; }
.vf__img { position: absolute; inset: 0; z-index: -2; }
.vf__img img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; }
.cta--vf .cta__inner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(0 0 0 / .35) 0%, rgb(0 0 0 / .1) 40%, rgb(0 0 0 / .72) 100%); }
.vf__ui { position: absolute; inset: clamp(16px, 2.2vw, 32px); pointer-events: none; font-size: var(--text-xs); font-weight: var(--weight-mid); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.vf__c { position: absolute; width: clamp(28px, 4vw, 56px); aspect-ratio: 1; border: 2px solid var(--palette-white); }
.vf__c--tl { left: 0; top: 0; border-width: 2px 0 0 2px; }
.vf__c--tr { right: 0; top: 0; border-width: 2px 2px 0 0; }
.vf__c--bl { left: 0; bottom: 0; border-width: 0 0 2px 2px; }
.vf__c--br { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.vf__rec, .vf__tc, .vf__meta { position: absolute; display: inline-flex; align-items: center; gap: 8px; }
.vf__rec { left: clamp(40px, 5vw, 72px); top: 6px; }
.vf__rec b { width: 9px; height: 9px; border-radius: 50%; background: var(--palette-gold); animation: rec 1.2s steps(2, jump-none) infinite; }
@keyframes rec { 50% { opacity: .15; } }
.vf__tc { right: clamp(40px, 5vw, 72px); top: 6px; }
.vf__meta { bottom: 6px; color: rgb(241 237 230 / .7); }
.vf__meta--l { left: clamp(40px, 5vw, 72px); }
.vf__meta--r { right: clamp(40px, 5vw, 72px); }
.vf__focus { position: absolute; left: 50%; top: 26%; width: clamp(70px, 9vw, 120px); aspect-ratio: 3 / 2; translate: -50% -50%; border: 1.5px solid rgb(241 237 230 / .8); transition: border-color .3s; }
.vf__focus.is-sharp { border-color: var(--palette-gold); }
.vf__body { position: relative; display: grid; gap: var(--space-6); padding: clamp(56px, 7vw, 110px) clamp(40px, 5vw, 72px); }
.cta--vf .cta__title > span { overflow: hidden; padding-bottom: .04em; }
.cta.cta--vf .link { color: var(--palette-white); }
/* 3. quick: a short enquiry right in the CTA */
.cta--quick .cta__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-7) var(--col-gap); align-items: end; padding: var(--space-8) var(--space-7); border-radius: 28px; background: var(--palette-coal); color: var(--palette-white); --color-text: var(--palette-white); --color-muted: var(--palette-grey); --color-field: rgb(241 237 230 / .07); }
[data-theme="paper"] .cta--quick .cta__inner { background: var(--palette-ink); }
.cta--quick .cta__title { grid-column: 1 / span 6; font-size: clamp(2.75rem, 1rem + 5vw, 6.5rem); }
.quick { grid-column: 7 / -1; display: grid; gap: var(--space-5); }
.quick legend, .quick label[for] { font-size: var(--text-sm); font-weight: var(--weight-mid); margin-bottom: var(--space-2); }
.quick__row { display: grid; grid-template-columns: 1fr auto; gap: var(--space-3); align-items: end; }
.quick__note { font-size: var(--text-sm); color: var(--palette-grey); }
.quick__note .link { text-transform: none; letter-spacing: 0; font-weight: var(--weight-text); text-decoration: underline; text-underline-offset: 3px; }

/* the "Виж" circle that follows the pointer over projects */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 240; pointer-events: none;
  width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--palette-gold); color: var(--palette-black);
  font-size: var(--text-xs); font-weight: var(--weight-head); text-transform: uppercase; letter-spacing: var(--tracking-label);
  transform: scale(0); opacity: 0;
}

/* ================= page titles ================= */
.page-hero { padding-top: calc(var(--header-h) + var(--space-8)); display: grid; gap: var(--space-6); }
.page-title { padding-bottom: .1em; font-size: var(--text-page); font-weight: var(--weight-mid); line-height: .86; letter-spacing: -0.045em; text-transform: uppercase; margin-left: -.04em; }
.page-hero__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-6) var(--col-gap); align-items: end; }
.page-hero__text { grid-column: 1 / span 6; color: var(--color-muted); font-size: var(--text-lg); max-width: 46ch; }
.page-hero__nav { grid-column: 9 / -1; display: grid; gap: 4px; }
.page-hero__nav a { display: flex; gap: var(--space-4); font-size: var(--text-lg); text-transform: uppercase; color: var(--color-muted); }
.page-hero__nav a:hover { color: var(--color-text); }
.page-hero__nav .num { font-size: var(--text-xs); padding-top: .4em; }
.page-hero__links { grid-column: 9 / -1; }

/* ================= cards ================= */
/* project card: the caption slides up on hover (Palomino) */
.card { position: relative; display: block; overflow: hidden; background: var(--color-surface); }
.card__media { position: absolute; inset: 0; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-base) var(--ease-power4); }
.card:hover .card__media img { transform: scale(1.08); }
.card::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(to top, rgb(0 0 0 / .6), transparent); pointer-events: none; opacity: .7; transition: opacity var(--duration-base); }
.card__cap { position: absolute; inset: auto 0 0; z-index: 2; padding: 18px 22px; color: var(--palette-white); transform: translateY(100%); transition: transform var(--duration-base) var(--ease-power4); }
.card__cap h3 { font-size: var(--text-lg); font-weight: var(--weight-mid); }
.card__cap p { font-size: var(--text-sm); opacity: .65; padding-top: 2px; }
.card:hover .card__cap, .card:focus-visible .card__cap { transform: none; }
.card:hover::after { opacity: 1; }

/* gear card */
.gear { position: relative; display: flex; flex-direction: column; background: var(--color-surface); }
.gear__img { aspect-ratio: 5 / 4; overflow: hidden; }
.gear__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-base) var(--ease-power4); }
.gear:hover .gear__img img { transform: scale(1.05); }
.gear__body { display: grid; gap: 6px; padding: var(--space-4) var(--space-4) var(--space-5); }
.gear__cat { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--color-muted); }
.gear__name { font-size: var(--text-h3); font-weight: var(--weight-mid); line-height: 1.1; }
.gear__what { color: var(--color-muted); }
.gear__meta { display: flex; flex-wrap: wrap; gap: 4px var(--space-4); margin-top: var(--space-2); font-size: var(--text-sm); color: var(--color-muted); }
.gear__add { margin: auto var(--space-4) var(--space-4); min-height: 42px; border-radius: 999px; background: var(--color-field); font-size: var(--text-sm); font-weight: var(--weight-mid); transition: background var(--duration-fast), color var(--duration-fast); }
.gear__add:hover { background: rgb(241 237 230 / .14); }
.gear__add-off { display: none; }
.gear__add[aria-pressed="true"] { background: var(--color-accent); color: var(--color-on-accent); }
.gear__add[aria-pressed="true"] .gear__add-on { display: none; }
.gear__add[aria-pressed="true"] .gear__add-off { display: inline; }
.gear-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--col-gap); }
/* the gear rail on the home page: scroll sideways, or use the arrows */
.rail { position: relative; }
.rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--col-gap)) / 4); gap: var(--col-gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { scroll-snap-align: start; }
.rail__nav { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-5); }
.rail__nav button { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--color-field); transition: background var(--duration-fast); }
.rail__nav button:hover { background: var(--color-accent); color: var(--color-on-accent); }
.rail__nav button:first-child .arrow { transform: rotate(180deg); }

/* post card */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-7) var(--col-gap); }
.post__link { display: grid; gap: var(--space-4); }
.post__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-surface); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-base) var(--ease-power4); }
.post__link:hover .post__img img { transform: scale(1.05); }
.post__meta { display: flex; gap: var(--space-4); font-size: var(--text-sm); color: var(--color-muted); }
.post__meta span { color: var(--color-accent); }
.post__title { font-size: var(--text-h3); font-weight: var(--weight-mid); line-height: 1.15; }
.post--big .post__link { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--col-gap); align-items: end; }
.post--big .post__img { grid-column: 1 / span 8; aspect-ratio: 3 / 2; }
.post--big .post__body { grid-column: 9 / -1; display: grid; gap: var(--space-4); }
.post--big .post__title { font-size: var(--text-say); }
.post__lede { color: var(--color-muted); }
.blog__feat { margin-bottom: var(--head-gap); }

/* ================= services bits ================= */
.process { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--col-gap); padding-top: var(--space-6); }
.process__line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--color-line); }
.process__fill { position: absolute; inset: 0; background: var(--color-accent); transform-origin: 0 50%; transform: scaleX(0); }
.step { position: relative; display: grid; gap: var(--space-3); align-content: start; color: var(--color-muted); transition: color var(--duration-base); }
.step__mark { position: absolute; top: calc(var(--space-6) * -1 - 3px); left: 0; width: 18px; height: 7px; background: var(--color-line-strong); transition: background var(--duration-base); }
.step__no { font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.step .h3 { color: var(--color-text); }
.step.is-on { color: var(--color-text); }
.step.is-on .step__mark { background: var(--color-accent); }
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.pack { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5); background: var(--color-surface); min-height: 500px; }
.pack__no, .pack__for { color: var(--color-muted); }
.pack .ticks { margin-top: var(--space-3); }
.pack__price { margin-top: auto; font-size: var(--text-h3); }
.pack__price small { font-size: var(--text-sm); color: var(--color-muted); }
.packs-note { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--color-muted); }
.faq-wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-6) var(--col-gap); }
.faq-wrap__side { grid-column: 1 / span 4; display: grid; gap: var(--space-5); align-content: start; }
.faq { grid-column: 6 / -1; display: grid; gap: var(--space-2); }
.faq__item { background: var(--color-surface); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--space-5); padding: 20px 22px; text-align: left; font-size: var(--text-lg); font-weight: var(--weight-mid); }
.faq__icon { position: relative; width: 14px; height: 14px; flex: none; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; background: currentColor; transition: transform var(--duration-base) var(--ease-power4); }
.faq__icon::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0); }
.faq__q[aria-expanded="true"] { color: var(--color-accent); }
.faq__a { height: 0; overflow: hidden; }
.faq__a > div { padding: 0 22px 22px; max-width: var(--measure); color: var(--color-muted); }

/* forms */
.form { display: grid; gap: var(--space-6); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.field { display: grid; gap: var(--space-2); align-content: start; }
.field > label, .field > legend { font-size: var(--text-sm); font-weight: var(--weight-mid); margin-bottom: var(--space-2); }
.field i { font-style: normal; color: var(--color-accent); }
.input { width: 100%; min-height: var(--control-h); padding: 12px 14px; font: inherit; color: var(--color-text); background: var(--color-field); border: 1px solid transparent; border-radius: var(--radius); transition: border-color var(--duration-fast); }
.input::placeholder { color: var(--color-muted); opacity: .8; }
.input:focus { outline: none; border-color: var(--color-accent); }
textarea.input { min-height: 140px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--color-field); font-size: var(--text-sm); cursor: pointer; transition: background var(--duration-fast), color var(--duration-fast); }
.chip span:hover { background: rgb(128 128 128 / .2); }
.chip input:checked + span { background: var(--color-accent); color: var(--color-on-accent); }
.chip input:focus-visible + span { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); }
.form__status { font-size: var(--text-sm); color: var(--color-muted); }

/* ================= home ================= */
.hero { position: sticky; top: 0; z-index: 0; height: 100svh; min-height: 560px; overflow: hidden; color: var(--palette-white); }
.hero__media { position: absolute; inset: 0; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .45) 0%, rgb(0 0 0 / .12) 35%, rgb(0 0 0 / .6) 100%); }
.hero__in { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-top: calc(var(--header-h) + var(--space-6)); padding-bottom: var(--space-6); }
.hero__title { margin-block: auto; font-size: var(--text-hero); font-weight: var(--weight-mid); line-height: var(--leading-tight); letter-spacing: var(--tracking-caps); text-transform: uppercase; }
.hero__line { display: block; overflow: hidden; padding-block: .02em .12em; margin-bottom: -.06em; }
.hero__line > span { display: inline-flex; align-items: center; gap: .16em; }
/* the box in the title (Locomotive's label, with a job): which photo this is, its kind, a link to the project.
   The bottom edge fills in gold until the next photo. */
.badge { flex: none; cursor: pointer; color: inherit; position: relative; display: inline-grid; grid-template-columns: auto auto; align-self: center; border: 2px solid currentColor; font-size: max(11px, .15em); font-weight: var(--weight-head); letter-spacing: 0; line-height: 1; text-transform: uppercase; transition: background var(--duration-fast), color var(--duration-fast); }
.badge__no { display: grid; place-items: center; padding: 0 .6em; border-right: 2px solid currentColor; font-variant-numeric: tabular-nums; overflow: hidden; }
.badge__no > span { display: block; }
.badge__info { display: grid; }
.badge__cat, .badge__go { display: block; padding: .38em .6em; overflow: hidden; white-space: nowrap; }
.badge__cat > span { display: block; }
.badge__go { border-top: 2px solid currentColor; font-size: .62em; letter-spacing: var(--tracking-label); }
.badge__bar { position: absolute; left: -2px; right: -2px; bottom: -2px; height: 3px; background: var(--palette-gold); transform-origin: 0 50%; transform: scaleX(0); }
/* hover: the box fills white, the dividers turn black, but the outer edge stays white (a black edge showed as a thin
   ring round the box and made the gold bar look as if it started outside it: Kris, round 12.1) */
.badge:hover { background: var(--palette-white); color: var(--palette-black); border-color: var(--palette-white); }
.badge__icon { width: 1.4em; height: 1.4em; }
.badge__waves { display: none; }
.badge[aria-pressed="true"] .badge__waves { display: inline; }
.badge[aria-pressed="true"] .badge__mute { display: none; }
.hero__line[data-hl="2"] { text-align: right; }
.hero__line[data-hl="3"] { text-align: right; }
.hero__foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: var(--space-5) var(--col-gap); }
.hero__intro { grid-column: 1 / span 4; font-size: var(--text-lg); line-height: 1.35; max-width: 36ch; }
.hero__btn { grid-column: 11 / -1; justify-self: end; }

/* what we shoot: words and photos running sideways */
.strip { padding-top: var(--section-gap); overflow: hidden; }
.strip__track { display: flex; width: max-content; margin-top: var(--head-gap); will-change: transform; }
.strip__set { display: flex; align-items: center; flex: none; }
.strip__item { display: flex; align-items: center; gap: .35em; padding-right: .35em; font-size: clamp(2.5rem, 1rem + 5vw, 6rem); font-weight: var(--weight-mid); letter-spacing: var(--tracking-caps); text-transform: uppercase; line-height: 1; }
.strip__word { transition: color var(--duration-fast); }
.strip__item:hover .strip__word { color: var(--color-accent); }
.strip__img { display: block; width: 1.55em; height: 1.05em; overflow: hidden; }
.strip__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-base) var(--ease-power4); }
.strip__item:hover .strip__img img { transform: scale(1.12); }

/* selected projects */
.sel { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--col-gap); }
.sel__side { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + var(--space-5)); align-self: start; height: calc(100svh - var(--header-h) - var(--space-7)); display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-6); padding-right: var(--space-6); }
.sel__side .link { align-self: flex-start; }
.sel__grid { grid-column: 5 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--col-gap); }
.sel__grid .card { height: clamp(300px, 32vw, 500px); }
.sel__grid .card:nth-child(1) { grid-column: span 7; }
.sel__grid .card:nth-child(2) { grid-column: span 5; }
.sel__grid .card:nth-child(3) { grid-column: span 5; height: clamp(340px, 38vw, 580px); }
.sel__grid .card:nth-child(4) { grid-column: span 7; height: clamp(340px, 38vw, 580px); }
.sel__grid .card:nth-child(5) { grid-column: 1 / -1; height: clamp(300px, 34vw, 540px); }

/* why us: six tiles, no hover */
.why__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.why__tile { position: relative; display: flex; flex-direction: column; align-items: flex-end; min-height: clamp(190px, 17vw, 240px); padding: 20px; background: var(--color-surface); }
.why__no { position: absolute; left: 20px; top: 18px; color: var(--color-muted); font-size: var(--text-lg); }
.why__big { margin-left: 2.2rem; font-size: clamp(2rem, .9rem + 2.8vw, 4rem); font-weight: var(--weight-mid); letter-spacing: var(--tracking-caps); line-height: .95; color: var(--color-text); text-align: right; text-transform: uppercase; }
.why__small { margin-top: auto; font-size: var(--text-lg); color: var(--color-muted); text-align: right; }
.why__tile.is-soon .why__big { color: var(--color-accent); }

/* services as cards that stack while you scroll */
.stack__cards { display: grid; gap: var(--space-5); }
.stack__card {
  position: sticky; top: calc(var(--header-h) + var(--i) * var(--stack-step));
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--col-gap);
  min-height: min(calc(100svh - var(--header-h) - 120px), 680px);
  padding: 20px; background: var(--color-surface);
  transform-origin: 50% 0;
  box-shadow: 0 -20px 40px rgb(0 0 0 / .25);
  will-change: transform, filter;
}
/* every second card is paper with ink text */
.stack__card:nth-child(even) { background: var(--palette-paper); color: var(--palette-ink); --color-text: var(--palette-ink); --color-muted: var(--palette-stone); --color-bg: var(--palette-paper); }
.stack__card:nth-child(even) .btn--solid:hover { background: var(--palette-ink); border-color: var(--palette-ink); color: var(--palette-paper); }
.stack__media { grid-column: 1 / span 4; position: relative; overflow: hidden; min-height: 320px; }
.stack__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stack__no { position: absolute; left: 20px; top: 16px; z-index: 1; font-size: var(--text-h3); color: var(--palette-white); }
.stack__name { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 1; font-size: clamp(2rem, 1rem + 2.2vw, 3.25rem); font-weight: var(--weight-mid); line-height: .95; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--palette-white); }
.stack__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .55), transparent 50%); }
.stack__body { grid-column: 5 / span 5; display: flex; flex-direction: column; gap: var(--space-6); padding: 4px var(--space-5) 0 0; }
.stack__say { font-size: var(--text-say); line-height: 1.15; letter-spacing: -0.015em; }
.stack__text { margin-top: auto; color: var(--color-muted); font-size: var(--text-lg); max-width: 44ch; }
.stack__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); }
.stack__list { grid-column: 10 / -1; padding-top: 6px; }
.stack__list ul { margin-top: var(--space-4); display: grid; gap: 6px; }
.stack__list li { font-size: var(--text-lg); color: var(--color-muted); line-height: 1.25; }

/* story */
.story { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-7) var(--col-gap); align-items: center; }
.story__text { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: var(--space-7); padding-right: var(--space-6); }
.story__text .link { align-self: flex-start; }
.story__more { color: var(--color-muted); font-size: var(--text-lg); max-width: 46ch; }
.story__img { grid-column: 8 / -1; overflow: hidden; aspect-ratio: 9 / 11; }
.story__img img { width: 100%; height: 115%; object-fit: cover; }

/* studio + partners */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--col-gap); }
.duo__card { display: grid; background: var(--color-surface); }
.duo__img { aspect-ratio: 16 / 10; overflow: hidden; }
.duo__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-base) var(--ease-power4); }
.duo__card:hover .duo__img img { transform: scale(1.05); }
.duo__body { display: grid; gap: var(--space-3); padding: var(--space-5); }

/* ================= portfolio (paper, Tamaki Yoshida) ================= */
.work-hero { min-height: 92svh; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-5); padding-top: var(--header-h); }
.work-hero__text { font-family: var(--font-serif); font-size: var(--text-lg); line-height: 1.3; }
.work-hero__title { padding-bottom: .14em; margin-bottom: -.1em; font-family: var(--font-serif); font-weight: 400; line-height: .82; letter-spacing: -0.02em; white-space: nowrap; font-size: 14vw; }
.work { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--col-gap); }
.work__side { grid-column: 1 / span 3; }
.work__filters { position: sticky; top: calc(var(--header-h) + var(--space-3)); display: grid; gap: var(--space-2); font-family: var(--font-serif); font-size: 1.25rem; }
.work__h { margin-top: var(--space-5); font-family: var(--font-sans); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--color-text); }
.work__h:first-child { margin-top: 0; }
.work__filters button { color: var(--color-muted); transition: color var(--duration-fast); line-height: 1.5; }
.work__filters button:hover { color: var(--color-text); }
.work__filters button[aria-pressed="true"] { color: var(--color-text); font-style: italic; }
.work__filters sup { font-family: var(--font-sans); font-style: normal; font-size: .55em; margin-left: 3px; }
.view { display: flex; gap: var(--space-4); }
.work__main { grid-column: 4 / -1; }
.wgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8) var(--space-6); align-items: start; }
.wcard { display: grid; gap: 12px; transition: opacity .5s; }
.wcard__img { display: block; aspect-ratio: var(--r); overflow: hidden; background: var(--color-surface); }
.wcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-power4); }
.wcard:hover .wcard__img img { transform: scale(1.04); }
.wgrid:hover .wcard:not(:hover) { opacity: .45; }
.wcard__title { font-family: var(--font-serif); font-size: 1.375rem; line-height: 1.15; margin-top: 6px; }
.wcard__meta { display: flex; gap: var(--space-4); font-family: var(--font-serif); font-size: 1rem; color: var(--color-muted); }
.wlist { display: grid; }
.wrow { display: grid; grid-template-columns: 3rem 1fr 10rem 4rem 1.2rem; gap: var(--space-4); align-items: baseline; padding: 10px 0; transition: padding var(--duration-base) var(--ease-power4), opacity .4s; }
.wlist:hover .wrow:not(:hover) { opacity: .4; }
.wrow:hover { padding-left: var(--space-4); }
.wrow__no, .wrow__cat, .wrow__year { color: var(--color-muted); font-size: var(--text-sm); }
.wrow__title { font-family: var(--font-serif); font-size: clamp(1.75rem, 1rem + 1.8vw, 2.75rem); line-height: 1.05; }
.work-empty { padding: var(--space-8) 0; font-family: var(--font-serif); font-size: var(--text-h3); color: var(--color-muted); }
.preview { position: fixed; left: 0; top: 0; z-index: 90; width: 280px; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.8); }
.preview img { width: 100%; height: auto; }

/* ================= project (paper) ================= */
.proj__head { padding-top: calc(var(--header-h) + var(--space-8)); display: grid; gap: var(--space-6); }
.proj__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-5); }
.proj__cat a { color: var(--color-muted); }
.proj__cat a:hover { color: var(--color-text); }
.proj__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.5rem, 1rem + 5vw, 6.5rem); line-height: .95; text-align: center; letter-spacing: -0.01em; padding-bottom: .08em; }
.proj__year { text-align: right; }
.viewer { padding-top: var(--head-gap); }
.viewer__stage { --stage-h: min(72svh, 820px); position: relative; height: var(--stage-h); }
.viewer__slide { position: absolute; inset: 0; display: grid; place-items: center; visibility: hidden; }
.viewer__slide.is-on { visibility: visible; }
.viewer__slide img { max-height: var(--stage-h); width: auto; max-width: min(100%, 1200px); object-fit: contain; cursor: e-resize; }
.viewer__arrow { position: absolute; top: 50%; z-index: 2; width: 30px; height: 60px; margin-top: -30px; color: var(--color-muted); transition: color var(--duration-fast), transform var(--duration-base) var(--ease-power4); }
.viewer__arrow:hover { color: var(--color-text); }
.viewer__arrow--prev { left: 0; }
.viewer__arrow--prev:hover { transform: translateX(-4px); }
.viewer__arrow--next { right: 0; }
.viewer__arrow--next:hover { transform: translateX(4px); }
.viewer__thumbs { display: flex; justify-content: flex-end; gap: 6px; margin-top: var(--space-5); overflow-x: auto; scrollbar-width: none; }
.viewer__thumb { flex: none; height: 84px; aspect-ratio: var(--r); opacity: .45; transition: opacity var(--duration-fast); }
.viewer__thumb img { width: 100%; height: 100%; object-fit: cover; }
.viewer__thumb:hover, .viewer__thumb.is-on { opacity: 1; }
.viewer__bar { display: flex; justify-content: space-between; align-items: center; margin-top: var(--space-4); font-family: var(--font-serif); font-size: 1.125rem; }
.viewer__count { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.viewer__sep { opacity: .5; }
.viewer__index-btn { text-transform: uppercase; letter-spacing: var(--tracking-label); }
.vindex { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--space-5); padding-top: var(--space-6); align-items: end; }
.vindex__item { display: grid; gap: 6px; text-align: left; }
.vindex__item > span:first-child { aspect-ratio: var(--r); overflow: hidden; }
.vindex__item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-base) var(--ease-power4); }
.vindex__item:hover img { transform: scale(1.05); }
.vindex__no { font-family: var(--font-serif); color: var(--color-muted); }
.proj__info { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-7) var(--col-gap); }
.proj__text { grid-column: 1 / span 6; display: grid; gap: var(--space-5); align-content: start; }
.proj__note { font-size: var(--text-sm); color: var(--color-muted); }
.proj__lede { font-family: var(--font-serif); font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); line-height: 1.2; }
.proj__meta { grid-column: 8 / -1; display: grid; gap: var(--space-5); align-content: start; }
.proj__meta > div { display: grid; grid-template-columns: 9rem 1fr; gap: var(--space-4); }
.proj__meta dt { font-size: var(--text-sm); color: var(--color-muted); }
.proj__next { display: grid; gap: var(--head-gap); }
/* the next project: a huge serif name, a photo opens beside it on hover (Locomotive) */
.next { display: flex; justify-content: center; align-items: center; font-family: var(--font-serif); font-size: var(--text-list); line-height: 1; }
.next__name { padding-bottom: .06em; }
.next__img { display: block; width: 0; height: .78em; overflow: hidden; transition: width .7s var(--ease-power4), margin .7s var(--ease-power4); }
.next__img img { width: 1.5em; max-width: none; height: 100%; object-fit: cover; }
.next:hover .next__img, .next:focus-visible .next__img { width: 1.5em; margin-left: .22em; }

/* ================= services ================= */
.svc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-6) var(--col-gap); scroll-margin-top: var(--header-h); }
.svc__side { grid-column: 1 / span 4; grid-row: 1 / span 3; position: sticky; top: calc(var(--header-h) + var(--space-5)); align-self: start; }
.svc__no { color: var(--color-muted); font-size: var(--text-lg); }
.svc__name { margin-top: var(--space-3); font-size: clamp(2.25rem, .7rem + 2.7vw, 4rem); overflow-wrap: anywhere; font-weight: var(--weight-mid); line-height: .92; letter-spacing: var(--tracking-caps); text-transform: uppercase; }
.svc__img { grid-column: 5 / -1; overflow: hidden; aspect-ratio: 3 / 2; }
.svc__img img { width: 100%; height: 115%; object-fit: cover; }
.svc__body { grid-column: 5 / span 4; display: grid; gap: var(--space-5); align-content: start; }
.svc__text { color: var(--color-muted); font-size: var(--text-lg); }
.svc__gets { grid-column: 10 / -1; display: grid; gap: var(--space-4); align-content: start; }
.svc__price { color: var(--color-muted); font-size: var(--text-sm); }
.svc__gets .btn { justify-self: start; }

/* ================= studio ================= */
.bleed { position: sticky; top: 0; z-index: 0; height: 100svh; min-height: 560px; overflow: hidden; color: var(--palette-white); }
.bleed__img { position: absolute; inset: 0; }
.bleed__img img { width: 100%; height: 115%; object-fit: cover; }
.bleed__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .6), rgb(0 0 0 / .1) 60%), linear-gradient(to bottom, rgb(0 0 0 / .35), transparent 25%); }
.bleed__in { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: var(--space-6); }
.bleed__text { margin-top: var(--space-5); max-width: 40ch; font-size: var(--text-lg); }
.studio__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.studio__card > div { overflow: hidden; aspect-ratio: 4 / 5; }
.studio__card img { width: 100%; height: 100%; object-fit: cover; }
.studio__card figcaption { display: flex; gap: var(--space-4); padding-top: var(--space-3); font-size: var(--text-lg); }
.studio__card .num { color: var(--color-muted); font-size: var(--text-sm); padding-top: .25em; }
.studio__ask { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); margin-top: var(--head-gap); }
.soon { overflow: hidden; }
.soon__track { display: flex; width: max-content; }
.soon__track .strip__set span { padding-right: .4em; font-family: var(--font-serif); font-style: italic; font-size: clamp(5rem, 2rem + 14vw, 17rem); line-height: 1; color: var(--color-accent); }
.soon__body { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-5); margin-top: var(--space-6); }

/* ================= rental ================= */
.rent__bar { position: sticky; bottom: var(--space-4); z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-top: var(--space-6); padding: 10px 10px 10px 24px; border-radius: 999px; background: rgb(20 19 17 / .85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--palette-white); box-shadow: 0 10px 40px rgb(0 0 0 / .3); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.trio li { display: grid; gap: var(--space-3); align-content: start; padding: var(--space-5); background: var(--color-surface); }
.trio .num { color: var(--color-muted); font-size: var(--text-sm); }
.trio p { color: var(--color-muted); }

/* ================= about ================= */
.values__list { display: grid; gap: var(--space-6); }
.values__list li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--col-gap); align-items: baseline; }
.values__list .num { grid-column: 1 / span 1; color: var(--color-muted); }
.values__t { grid-column: 2 / span 6; font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.25rem, 1rem + 4vw, 5rem); line-height: 1; }
.values__list p { grid-column: 9 / -1; color: var(--color-muted); font-size: var(--text-lg); }
.team__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--col-gap); }
.member__img { aspect-ratio: 4 / 5; background: var(--color-surface); display: grid; place-items: center; text-align: center; color: var(--color-muted); font-size: var(--text-sm); text-transform: uppercase; letter-spacing: var(--tracking-label); }
.member figcaption { display: flex; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-3); }

/* ================= blog post ================= */
.article__head { padding-top: calc(var(--header-h) + var(--space-8)); display: grid; gap: var(--space-5); }
.article__meta { display: flex; gap: var(--space-4); font-size: var(--text-sm); color: var(--color-muted); }
.article__meta a { color: var(--color-accent); }
.article__title { max-width: 20ch; font-size: clamp(2.5rem, 1rem + 4.4vw, 5.5rem); font-weight: var(--weight-mid); line-height: 1; letter-spacing: var(--tracking-head); }
.article__lede { max-width: 48ch; font-size: var(--text-say); line-height: 1.25; color: var(--color-muted); }
.article__img { margin-top: var(--head-gap); }
.article__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article__body { max-width: calc(720px + 2 * var(--gutter)); padding-top: var(--head-gap); display: grid; gap: var(--space-4); font-size: var(--text-lg); line-height: 1.65; }
.article__body h2 { margin-top: var(--space-6); font-size: var(--text-h3); font-weight: var(--weight-mid); line-height: 1.2; }
.article__body p { color: var(--color-muted); }
.article__note { font-size: var(--text-sm); color: var(--color-muted); }

/* ================= contacts ================= */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-8) var(--col-gap); }
.contact__info { grid-column: 1 / span 5; display: grid; gap: var(--space-6); align-content: start; }
.contact__big { display: grid; gap: var(--space-2); }
.contact__big a { font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); line-height: 1.15; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.contact__big a:hover { color: var(--color-accent); }
.contact__more { display: grid; gap: var(--space-4); }
.contact__more dt { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--color-muted); margin-bottom: 4px; }
.contact__more dd { font-size: var(--text-lg); }
.contact__map { display: grid; gap: var(--space-3); }
.contact__map iframe { width: 100%; aspect-ratio: 16 / 10; border: 0; background: var(--color-surface); filter: grayscale(1) invert(.92) contrast(.9); }
.contact__more dd a:hover { color: var(--color-accent); }
.contact__form { grid-column: 7 / -1; display: grid; gap: var(--space-5); align-content: start; }
.contact__intro { color: var(--color-muted); font-size: var(--text-lg); }
.contact__ref { padding: 12px 16px; background: var(--color-field); color: var(--color-accent); }

/* ================= tablets and phones ================= */
@media (max-width: 1200px) {
  .lang { display: none; }
  .mega__mid { display: none; }
  .mega__nav { grid-column: 1 / span 7; }
  .mega__side { grid-column: 8 / -1; }
  .gear-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail__track { grid-auto-columns: calc((100% - 2 * var(--col-gap)) / 3); }
}
@media (max-width: 1100px) {
  .wgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack__body { grid-column: 5 / -1; padding-right: 0; }
  .stack__list { grid-column: 5 / -1; }
  .ftr__col { grid-column: span 4; }
  .ftr__col--lead { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --gutter: 5vw; --header-h: 72px; }   /* the content is 90% of the screen */
  .hdr__row { height: 52px; grid-template-columns: 1fr auto; }
  .hdr__nav { display: none; }
  .hdr.is-pill .hdr__bar, .hdr.is-open .hdr__bar { padding-inline: 18px 6px; }
  /* the open menu is a sheet that scrolls by itself (the page behind is held) */
  .hdr.is-open .hdr__bar { max-height: calc(100svh - 28px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .hdr.is-open .hdr__bar::-webkit-scrollbar { display: none; }
  .hdr.is-open .hdr__row { position: sticky; top: 0; z-index: 2; background: rgb(16 15 13 / .96); margin-inline: -18px -6px; padding-inline: 18px 6px; }
  .mega__in { grid-template-columns: 1fr; gap: var(--space-5); padding-top: var(--space-4); padding-right: 12px; }   /* the sheet's content: 18 px from both edges */
  .mega__nav, .mega__side { grid-column: 1 / -1; }
  .mega__link { font-size: clamp(1.75rem, 8.5vw, 2.5rem); }
  .mega__photo { display: none; }
  .mega__mid { display: grid; grid-column: 1 / -1; }
  /* services: a rail of photos you swipe sideways; it runs to the sheet's right edge so the next photo peeks in */
  .mega__svc { grid-auto-flow: column; grid-auto-columns: 140px; gap: var(--space-3); margin: 0 -18px var(--space-2) -18px; padding: 0 18px; scroll-padding-left: 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .mega__svc::-webkit-scrollbar { display: none; }
  .mega__svc li { scroll-snap-align: start; }
  .hdr.is-open .hdr__ig { display: none; }   /* room for "Затвори"; Instagram is in the menu */
  .mega__svc a { flex-direction: column; align-items: flex-start; gap: var(--space-2); font-size: var(--text-sm); white-space: nowrap; }
  .mega__svc .mega__thumb { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 12px; }
  .mega__contact { gap: var(--space-2); font-size: var(--text-base); padding-bottom: var(--space-3); }
  .mega__contact .btn { margin-top: var(--space-4); }
  .mega__work { display: none; }
  .mega__mid .label:last-of-type { display: none; }
  .sec-head .label, .sec-head .say, .sec-head__link { grid-column: 1 / -1; justify-self: start; }
  .hero__foot { grid-template-columns: 1fr; }
  .hero__intro { grid-column: 1 / -1; font-size: var(--text-base); }
  .hero__btn { grid-column: 1 / -1; justify-self: start; }
  .sel__side { position: static; height: auto; grid-column: 1 / -1; padding-right: 0; margin-bottom: var(--head-gap); }
  .sel__grid { grid-column: 1 / -1; }
  .sel__grid .card:nth-child(n) { grid-column: 1 / -1; height: 110vw; max-height: 560px; }
  .card__cap { transform: none; }
  .why__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .why__tile { min-height: 170px; padding: 14px; }
  .why__no { left: 14px; top: 12px; font-size: var(--text-sm); }
  .why__big { font-size: clamp(1.4rem, 6.5vw, 2.4rem); margin-left: 1.4rem; }
  .why__small { font-size: var(--text-sm); }
  .stack__card { top: calc(var(--header-h) + var(--i) * 10px); grid-template-columns: 1fr; padding: 14px; min-height: calc(100svh - var(--header-h) - 70px); gap: var(--space-4); align-content: start; }
  .stack__say { font-size: var(--text-h3); }
  .stack__text { margin-top: 0; font-size: var(--text-base); }
  .stack__list { display: none; }   /* a phone card must fit the screen, or the next one covers it before you read it; the list is on Услуги */
  .stack__card { min-height: 0; }
  .stack__media, .stack__body, .stack__list { grid-column: 1 / -1; }
  .stack__media { min-height: 0; aspect-ratio: 16 / 10; }
  .story__text, .story__img { grid-column: 1 / -1; padding-right: 0; }
  .duo { grid-template-columns: 1fr; }
  .rail__track { grid-auto-columns: 78%; }
  .gear-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts { grid-template-columns: 1fr; }
  .post--big .post__img, .post--big .post__body { grid-column: 1 / -1; }
  .ftr__col { grid-column: span 6; }
  .ftr__col:nth-child(2) { grid-column: 1 / -1; }
  .page-hero__text, .page-hero__nav, .page-hero__links { grid-column: 1 / -1; }
  .process { grid-template-columns: 1fr; padding-top: 0; padding-left: var(--space-6); gap: var(--space-6); }
  .process__line { left: 0; top: 0; bottom: 0; right: auto; width: 1px; height: auto; }
  .process__fill { transform-origin: 50% 0; transform: scaleY(0); }
  .step__mark { top: 8px; left: calc(var(--space-6) * -1 - 3px); width: 7px; height: 18px; }
  .packs { grid-template-columns: 1fr; }
  .pack { min-height: 0; }
  .faq-wrap__side, .faq { grid-column: 1 / -1; }
  .work__side, .work__main { grid-column: 1 / -1; }
  .work__filters { position: static; margin-bottom: var(--head-gap); }
  .work__filters ul { display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .wgrid { gap: var(--space-7) var(--space-4); }
  .wrow { grid-template-columns: 2rem 1fr auto; }
  .wrow__cat, .wrow .arrow { display: none; }
  .proj__row { grid-template-columns: 1fr 1fr; }
  .proj__title { grid-column: 1 / -1; grid-row: 1; text-align: left; }
  .viewer__stage { --stage-h: 62svh; }
  .viewer__arrow { display: none; }
  .proj__text, .proj__meta { grid-column: 1 / -1; }
  .proj__meta > div { grid-template-columns: 8rem 1fr; }
  .next { justify-content: flex-start; font-size: clamp(2.5rem, 11vw, 4rem); }
  .svc__side { position: static; grid-row: auto; }
  .svc__side, .svc__img, .svc__body, .svc__gets { grid-column: 1 / -1; }
  .studio__cards { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr; }
  .values__list li { grid-template-columns: 2.5rem 1fr; }
  .values__list .num { grid-column: 1; }
  .values__t, .values__list p { grid-column: 2; }
  .team__grid { grid-template-columns: 1fr 1fr; }
  .contact__info, .contact__form { grid-column: 1 / -1; }
  .form__row { grid-template-columns: 1fr; }
  .rent__bar { border-radius: 24px; flex-wrap: wrap; padding: 12px 12px 12px 18px; }
  .cta--video .cta__inner { aspect-ratio: 4 / 5; min-height: 0; border-radius: 20px; }
  .cta--video .cta__row { justify-content: flex-start; }
  .cta--vf .cta__inner { min-height: 125vw; border-radius: 20px; }
  .vf__meta--r { display: none; }
  .vf__body { padding: 72px 20px 48px; }
  .cta--quick .cta__inner { padding: var(--space-6) var(--space-5); border-radius: 20px; }
  .cta--quick .cta__title, .quick { grid-column: 1 / -1; }
  .quick__row { grid-template-columns: 1fr; }
  .quick__row .btn { justify-self: start; }
}
@media (max-width: 560px) {
  .wgrid { grid-template-columns: 1fr; }
  .gear-grid { grid-template-columns: 1fr; }
}

/* ================= motion: hide only what JS will animate ================= */
.js-motion [data-chars], .js-motion [data-lines], .js-motion [data-hero-fade], .js-motion .hero__line > span { visibility: hidden; }
/* the focus pull: a mosaic canvas over the photo until it is sharp (see main.js) */
.has-pix > img, .has-pix > picture { visibility: hidden; }
.pix { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.js-motion [data-fade] > *, .js-motion [data-fade-in] { opacity: 0; }
.motion-ready [data-chars], .motion-ready [data-lines] { visibility: visible; }
.split-line { overflow: hidden; padding-bottom: .04em; }
.split-char { display: inline-block; will-change: transform; }
.word-blur { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .hero__slide.is-on img { animation: none; }
  .roll > span, .card__media img, .card__cap, .next__img, .hdr__bar { transition: none; }
  .vf__rec b { animation: none; }
}
