/* 3up.works v3-A. Plain CSS, no build. */
@font-face {
  font-family: "Inter Tight";
  src: url("fonts/InterTight.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #fff;
  --fg: #0d0d0d;
  --mute: #7c7c7c;
  --m: 24px;          /* page margin */
  --g: 16px;          /* gutter */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --t-huge: clamp(52px, 8.8vw, 152px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 15px/1.45 "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "ss02" 0, "cv11" 1;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
figure { margin: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- corners HUD ---------- */
.hud {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 20px var(--m) 0; pointer-events: none;
  color: #fff; mix-blend-mode: difference;
}
.hud a, .hud p { pointer-events: auto; }
.hud { transition: transform .55s var(--ease), opacity .35s; }
.hud.hide { transform: translateY(-130%); opacity: 0; }
.hud-logo { display: block; width: clamp(92px, 9.4vw, 140px); }
.hud-logo svg { width: 100%; height: auto; }
.hud-r { display: flex; gap: 28px; align-items: baseline; font-size: 16px; line-height: 1.25; }
.live { display: flex; align-items: flex-start; gap: .3em; line-height: 1.25; white-space: nowrap; font-variant-numeric: tabular-nums; }
.live-t { font-weight: 400; }
.live .colon { animation: blink 2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .4; } }
.roll { display: inline-block; position: relative; height: 1.25em; line-height: 1.25; overflow: hidden; vertical-align: top; }
.roll-i { display: inline-block; transition: transform .6s var(--ease), opacity .6s var(--ease); }
.roll-i.out { transform: translateY(-110%); opacity: 0; }
.roll-i.pre { transform: translateY(110%); opacity: 0; transition: none; }
.lang { display: flex; gap: 10px; }
.lang a { opacity: .45; transition: opacity .2s; }
.lang a[aria-current], .lang a:hover { opacity: 1; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100dvh; min-height: 560px; overflow: hidden; background: #8a9aa6; color: #fff; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; background: linear-gradient(to top, rgba(0,0,0,.32), rgba(0,0,0,0)); pointer-events: none; }
.hero-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.hero-st, .hero-c { position: absolute; z-index: 2; bottom: 22px; font-size: clamp(20px, 2.35vw, 36px); line-height: 1.12; letter-spacing: -.02em; font-weight: 420; text-shadow: 0 1px 18px rgba(0,0,0,.18); }
.hero-st { left: var(--m); max-width: 17.5em; }
.hero-c { right: var(--m); display: flex; flex-direction: column; align-items: flex-end; }
.hero-live { display: none; }
.hero-c a { border-bottom: 1px solid transparent; transition: border-color .2s; }
.hero-c a:hover { border-color: currentColor; }

/* ---------- 12-col grid ---------- */
.g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: var(--g); padding: 0 var(--m); }
@media (min-width: 761px) { .g > * { grid-column: var(--c, auto); grid-row: var(--r, auto); } }

/* ---------- media ---------- */
.box { position: relative; overflow: hidden; background: #f0f0f0; }
.box > video, .box.fit > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.box > img { width: 100%; height: auto; }
.m [data-lb] { cursor: zoom-in; }
.m--v .box > video, .m--i .box > img { transition: transform 1.2s var(--ease); }
.m--v:hover .box > video, .m--i:hover .box > img { transform: scale(1.02); }
figcaption { margin-top: 8px; font-size: 13px; line-height: 1.3; color: var(--mute); }
.m--c .cbox { height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.m--c img { width: auto; max-width: 100%; height: auto; max-height: 100%; object-fit: contain; object-position: bottom center; transition: transform .8s var(--ease); }
.m--c:hover img { transform: translateY(-6px); }

/* reveal */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
  .js .rv.in { opacity: 1; transform: none; }
}

/* ---------- home spreads ---------- */
.cases { padding-top: 120px; }
.sp { row-gap: var(--g); margin-bottom: 150px; align-items: end; }
.sp-t { margin: 0 0 6px; font-size: var(--t-huge); line-height: .86; letter-spacing: -.058em; font-weight: 520; align-self: end; }
.sp-t a { display: inline-block; transition: opacity .25s; }
.sp-t a:hover { opacity: .55; }
.sp .m--c { height: 100%; }
.sp .m--c.h-lg .cbox { height: min(100%, 620px); }
.sp .m--c.h-md { height: 360px; }
.sp .m--c.h-sm { height: 300px; }
.sp-x { align-self: end; padding-bottom: 2px; max-width: 30em; }
.sp-s { font-size: 17px; line-height: 1.35; letter-spacing: -.01em; }
.sp-m { margin-top: 12px; font-size: 13px; line-height: 1.35; color: var(--mute); }
.sp-a { display: inline-flex; gap: 6px; margin-top: 14px; font-size: 15px; font-weight: 500; }
.sp-a span { transition: transform .3s var(--ease); }
.sp-a:hover span { transform: translateX(5px); }
.objs { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--g); padding: 28px 0 8px; }
.objs > img { height: clamp(70px, 9.5vw, 150px); width: auto; max-width: 15%; object-fit: contain; object-position: bottom; cursor: zoom-in; transition: transform .6s var(--ease); }
.objs > img:hover { transform: translateY(-8px) rotate(-2deg); }

/* fill: box takes the row height set by the neighbour */
.m.fill { align-self: stretch; display: flex; flex-direction: column; }
.m.fill .box { flex: 1; min-height: 240px; }
.m.fill .box > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Avito travel: cutout sits beside the film, bottom-aligned */
.sp-avito-travel .m--c { align-self: stretch; }
.sp-paynet .m--c { align-self: stretch; }
.sp-paynet .m--c .cbox { align-items: center; }

/* ---------- AI block ---------- */
.ai { padding-top: 40px; padding-bottom: 170px; row-gap: 48px; align-items: start; }
.ai-t { margin: 0; font-size: clamp(44px, 6.2vw, 104px); line-height: .9; letter-spacing: -.055em; font-weight: 520; }
.ai-l { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: var(--g); font-size: 15px; line-height: 1.42; }
.ai-l li { break-inside: avoid; margin-bottom: 22px; color: #3a3a3a; }
.ai-l b { display: block; font-weight: 560; color: var(--fg); font-size: 17px; margin-bottom: 3px; letter-spacing: -.01em; }
.ai .m { align-self: end; }

/* ---------- footer ---------- */
.ft { padding: 0 var(--m) 20px; }
.ft-c { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 40px; margin-bottom: 40px; }
.ft-k { width: 100%; font-size: 15px; color: var(--mute); }
.ft-mail { font-size: clamp(40px, 7.2vw, 124px); line-height: .95; letter-spacing: -.055em; font-weight: 500; transition: opacity .25s; }
.ft-tg { font-size: clamp(22px, 2.4vw, 36px); letter-spacing: -.03em; transition: opacity .25s; }
.ft-mail:hover, .ft-tg:hover { opacity: .55; }
.ft-logo { display: block; width: 100%; }
.ft-logo svg { width: 100%; height: auto; }
.ft-s { display: flex; justify-content: space-between; gap: 20px; margin-top: 16px; font-size: 13px; color: var(--mute); }

/* ---------- case page ---------- */
.ch { padding: 150px var(--m) 0; }
.ch-back { display: inline-block; font-size: 15px; color: var(--mute); margin-bottom: 18px; transition: color .2s; }
.ch-back:hover { color: var(--fg); }
.ch-t { margin: 0 0 40px; font-size: clamp(60px, 11.4vw, 196px); line-height: .84; letter-spacing: -.062em; font-weight: 520; }
.ch-row { padding: 0; align-items: start; }
.ch-lead { font-size: clamp(22px, 2.15vw, 32px); line-height: 1.18; letter-spacing: -.022em; max-width: 26em; }
.ch-meta { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px var(--g); font-size: 14px; line-height: 1.35; align-content: start; }
.ch-meta dt { color: var(--mute); }
.ch-meta dd { margin: 2px 0 0; }
.film { margin-top: 56px; }
.film .box { background: #111; max-height: 92vh; }
.film-m .box { cursor: zoom-in; }
.film-b { position: absolute; left: var(--m); bottom: 20px; z-index: 2; padding: 9px 14px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--fg); font-size: 14px; font-weight: 500; pointer-events: none; transition: transform .3s var(--ease); }
.film:hover .film-b { transform: translateY(-3px); }
.ch-x { margin: 56px 0 96px; }
.ch-xt p { font-size: 16px; line-height: 1.5; color: #2d2d2d; max-width: 36em; }
.ch-xt p + p { margin-top: 14px; }
.gal { padding: 0 var(--m); }
.row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--g); align-items: end; margin-bottom: var(--g); }
.row > .m { grid-column: span var(--s, 12); }
.row--cast { margin: 88px 0 96px; }
.row--cast .m--c .cbox { height: auto; }
.row--cast .m--c img { max-height: clamp(260px, 34vw, 520px); }
.row--cast figcaption, .objs--big figcaption { text-align: center; }
.lbl { grid-column: 1 / -1; font-size: 15px; color: var(--mute); margin-bottom: 8px; }
.proc { margin: 96px 0; }
.proc .g { padding: 0; align-items: end; }
.things { margin: 40px 0 96px; }
.objs--big { padding: 0; flex-wrap: wrap; justify-content: space-between; }
.objs--big .m--c { flex: 1 1 0; min-width: 0; }
.objs--big .m--c .cbox { height: clamp(110px, 15vw, 240px); }
.nx { display: block; padding: 140px var(--m) 150px; }
.nx-k { display: block; font-size: 15px; color: var(--mute); margin-bottom: 10px; }
.nx-t { display: block; font-size: var(--t-huge); line-height: .86; letter-spacing: -.058em; font-weight: 520; margin-bottom: 22px; transition: opacity .25s; }
.nx:hover .nx-t { opacity: .55; }
.nx-m { display: block; aspect-ratio: 21/9; overflow: hidden; background: #f0f0f0; }
.nx-m video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.nx:hover .nx-m video { transform: scale(1.025); }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 50; background: #0d0d0d; color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .35s var(--ease); }
.lb.on { opacity: 1; }
.lb[hidden] { display: none; }
.lb.light { background: #fff; color: var(--fg); }
.lb-stage { width: 100vw; height: 100vh; height: 100dvh; display: grid; place-items: center; padding: 56px 72px; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb-stage video { width: 100%; height: 100%; }
.lb-x { position: absolute; top: 18px; right: var(--m); font-size: 16px; }
.lb-p, .lb-n { position: absolute; top: 50%; transform: translateY(-50%); font-size: 28px; padding: 20px; opacity: .6; transition: opacity .2s; }
.lb-p:hover, .lb-n:hover { opacity: 1; }
.lb-p { left: 6px; } .lb-n { right: 6px; }
.lb.single .lb-p, .lb.single .lb-n { display: none; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  :root { --m: 12px; --g: 10px; }
  body { font-size: 15px; }
  .hud { padding-top: 14px; }
  .hud-logo { width: 84px; }
  .hud-r { font-size: 14px; gap: 14px; }
  .hud .live { display: none; }
  .hero-st { font-size: 23px; bottom: 18px; right: var(--m); }
  .hero-c { display: none; }
  .hero-live { display: flex; position: absolute; left: var(--m); top: 64px; font-size: 14px; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.2); }
  .g { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .g > * { grid-column: 1 / -1; }
  .cases { padding-top: 64px; }
  .sp { margin-bottom: 96px; }
  .sp-t { font-size: clamp(46px, 13.5vw, 72px); margin-bottom: 4px; }
  .sp > .m--v, .sp > .m--i { order: 1; }
  .sp > .m--c, .sp > .objs { order: 2; }
  .sp > .sp-x { order: 3; }
  .sp .m--c, .sp .m--c.h-md, .sp .m--c.h-sm, .sp .m--c.h-lg { height: 210px; grid-column: span 3; margin-top: 8px; }
  .sp .m--c.h-lg .cbox, .sp .m--c .cbox { height: 100%; }
  .sp-x { grid-column: 1 / -1; }
  .sp.has-solo > .m--c { height: 250px; }
  .sp.has-solo > .sp-x { grid-column: span 3; }
  .sp-paynet > .m--i { grid-column: span 3; }
  .m.fill .box { flex: none; min-height: 0; aspect-ratio: 4 / 5; }
  .sp .m.fill .box { aspect-ratio: 4 / 5; }
  .objs { flex-wrap: wrap; justify-content: center; gap: 18px 22px; }
  .objs > img { height: 74px; max-width: 28%; }
  .ai { padding-bottom: 110px; row-gap: 28px; }
  .ai-l { columns: 1; }
  .ch { padding-top: 110px; }
  .ch-t { font-size: clamp(50px, 15vw, 84px); margin-bottom: 24px; }
  .ch-meta { margin-bottom: 28px; }
  .film { margin-top: 32px; }
  .film-b { left: 10px; bottom: 10px; font-size: 13px; }
  .ch-x { margin: 32px 0 56px; }
  .row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .row > .m { grid-column: 1 / -1; }
  .row > .m--c { grid-column: span 3; }
  .row--cast { margin: 56px 0; }
  .row--cast .m--c img { max-height: 220px; }
  .row--cast .m--c:nth-child(2):last-child, .row--cast .m--c:last-child:nth-child(4) { grid-column: 1 / -1; }
  .proc, .things { margin: 56px 0; }
  .objs--big .m--c { flex: 0 0 calc(33.33% - 16px); }
  .objs--big .m--c .cbox { height: 90px; }
  .nx { padding: 90px var(--m) 100px; }
  .nx-t { font-size: clamp(46px, 13.5vw, 72px); }
  .nx-m { aspect-ratio: 4/3; }
  .ft-mail { font-size: 11.4vw; }
  .ft-s { flex-direction: column; gap: 4px; }
  .lb-stage { padding: 52px 0; }
  .lb-p, .lb-n { top: auto; bottom: 6px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
