:root {
  --bg: #f8f6f2;
  --fg: #111;
  --muted: #8a8780;
  --line: rgba(17, 17, 17, .12);
  --g: 20px;            /* gutter */
  --gap: 12px;
  --radius: 20px;
  --ease: cubic-bezier(.76, 0, .24, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --font: "Inter Tight", "Neue Haas Unica Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (max-width: 767px) { :root { --g: 16px; --gap: 8px; --radius: 12px; } }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-home { overflow: hidden; height: 100svh; }
@media (hover: hover) and (pointer: fine) { body, a, button { cursor: none; } }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; text-transform: inherit; background: none; border: 0; padding: 0; letter-spacing: inherit; }
img, video { display: block; width: 100%; height: 100%; object-fit: cover; }
.up { text-transform: uppercase; }

/* ---------- Roll (hover text slide) ---------- */
.roll { display: inline-block; position: relative; overflow: hidden; vertical-align: top; }
.roll > span { display: inline-block; transition: transform .6s var(--ease); }
.roll > span::after {
  content: attr(data-text); position: absolute; left: 0; top: 100%;
}
a:hover .roll > span, button:hover .roll > span, .roll-host:hover .roll > span { transform: translateY(-100%); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
  padding: var(--g); align-items: start;
  color: #fff; mix-blend-mode: difference;
  text-transform: uppercase; pointer-events: none;
}
.header > * { pointer-events: auto; grid-row: 1; }
.header__id { grid-column: 1 / 4; display: flex; flex-direction: column; align-items: flex-start; }
.header__logo { display: flex; gap: .3em; }
.header__contacts { display: flex; flex-direction: column; align-items: flex-start; }
.header__links { grid-column: 4 / 7; }
.header__nav { grid-column: 7 / 10; display: flex; flex-direction: column; align-items: flex-start; }
.header__nav .is-current .roll { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.header__lang { grid-column: 10 / 12; display: flex; gap: 4px; }
.header__lang button { opacity: .4; transition: opacity .3s; text-transform: uppercase; }
.header__lang button.is-active, .header__lang button:hover { opacity: 1; }
.header__slash { opacity: .4; }

.circle {
  grid-column: 12; justify-self: end;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid currentColor; position: relative;
  transition: transform .6s var(--ease);
}
.circle:hover { transform: scale(.9); }
.circle__rot { position: absolute; inset: 0; }
.circle__dot {
  position: absolute; left: 50%; top: 8px; width: 7px; height: 7px; margin-left: -3.5px;
  border-radius: 50%; border: 1px solid currentColor; transition: opacity .3s;
}
.circle__x { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
.circle__x::before, .circle__x::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1px; background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.circle__x::after { transform: translate(-50%, -50%) rotate(-45deg); }
body.menu-open .circle__dot { opacity: 0; }
body.menu-open .circle__x { opacity: 1; }

@media (max-width: 767px) {
  .header__id { grid-column: 1 / 5; }
  .header__links { grid-column: 5 / 7; margin-left: -8px; }
  .header__nav { grid-column: 7 / 10; margin-left: 12px; white-space: nowrap; }
  .header__lang { grid-column: 10 / 12; }
  .circle { width: 38px; height: 38px; }
  .circle__dot { top: 6px; }
}

/* ---------- Overlay ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 40; background: var(--bg);
  clip-path: inset(0 0 100% 0); visibility: hidden;
}
.overlay__inner {
  position: absolute; inset: 0; padding: calc(var(--g) * 6) var(--g) var(--g);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-content: end;
}
.overlay__nav { grid-column: 1 / 6; display: flex; flex-direction: column; align-items: flex-start; }
.big-link { overflow: hidden; font-size: clamp(48px, 8vw, 128px); line-height: .95; letter-spacing: -.04em; font-weight: 400; }
.overlay__index { grid-column: 9 / 13; align-self: end; text-transform: uppercase; }
.overlay__index a { display: grid; grid-template-columns: 32px 1fr auto; padding: 8px 0; border-top: 1px solid var(--line); }
.overlay__index a:last-child { border-bottom: 1px solid var(--line); }
.overlay__index a span:last-child { color: var(--muted); }
.overlay__preview {
  position: fixed; left: 0; top: 0; width: min(220px, 15.5vw); aspect-ratio: 4/5; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.8); transition: opacity .3s, transform .5s var(--ease-out);
  overflow: hidden; z-index: 2;
}
.overlay__preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (max-width: 767px) {
  .overlay__nav { grid-column: 1 / 13; margin-bottom: 40px; }
  .overlay__index { grid-column: 1 / 13; }
  .overlay__preview { display: none; }
}

/* ---------- Media placeholder ---------- */
.ph { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(17,17,17,.45); text-transform: uppercase; }

/* ---------- Intro ---------- */
.intro { position: fixed; inset: 0; z-index: 30; pointer-events: none; display: grid; place-items: center; }
.intro__frame { width: 16vw; min-width: 120px; aspect-ratio: 4/5; overflow: hidden; position: relative; }
.intro__frame > * { position: absolute; inset: 0; }
.intro.is-done { display: none; }

/* ---------- Home: horizontal track ---------- */
.home { position: fixed; inset: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.track { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-38%); height: var(--h); }
.card { position: absolute; left: 0; top: 0; width: var(--w); will-change: transform; }
.card__title { display: flex; justify-content: flex-start; gap: 1.2em; text-transform: uppercase; height: 22px; align-items: flex-start; overflow: hidden; }
.card__title .n { color: var(--muted); }
.card__media { width: 100%; aspect-ratio: 4/5; overflow: hidden; position: relative; clip-path: inset(0 0 0 0); }
.card__inner { position: absolute; inset: 0; transition: transform 1.2s var(--ease-out); }
.card:hover .card__inner { transform: scale(1.03); }
.home__footer {
  position: absolute; left: var(--g); right: var(--g); bottom: var(--g);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); text-transform: uppercase;
}
.home__footer .t1 { grid-column: 1 / 6; }
.home__footer .t2 { grid-column: 6 / 9; color: var(--muted); }
.home__footer .t3 { grid-column: 9 / 13; text-align: right; color: var(--muted); }
.home__progress { position: absolute; left: var(--g); right: var(--g); bottom: calc(var(--g) + 22px); height: 1px; background: var(--line); }
.home__progress i { position: absolute; top: 0; left: 0; height: 1px; background: var(--fg); width: 18%; }
@media (max-width: 767px) {
  .home__footer .t2 { display: none; }
  .home__footer .t3 { grid-column: 6 / 13; }
}

/* ---------- Text reveal ---------- */
.nb { white-space: nowrap; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .08em .22em; margin: 0 -.08em -.22em; }
.w > span { display: inline-block; transform: translateY(130%); }
.is-in .w > span { transform: none; transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 18ms); }
.fade { opacity: 0; transform: translateY(24px); }
.fade.is-in { opacity: 1; transform: none; transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out); }
.mask { clip-path: inset(100% 0 0 0); }
.mask.is-in { clip-path: inset(0 0 0 0); transition: clip-path 1.4s var(--ease); }

/* ---------- Case ---------- */
.sec { align-items: end; }
.sec__media, .sec__cap { grid-column: 1 / 13; }
.sec__cap { display: flex; gap: 2em; }
.sec__media { height: auto; }
.sec--right .sec__media, .sec--right .sec__cap { grid-column: 7 / 13; }
.sec--right .sec__text { grid-column: 1 / 6; grid-row: 1; }
/* the source video has dark pixels along its sides: zoom in just enough to push them out of the frame */
.sec--trim .sec__media { overflow: hidden; }
.sec--trim video { transform: scale(1.012); }
.sec--left .sec__media, .sec--left .sec__cap { grid-column: 1 / 7; }
.sec--left .sec__text { grid-column: 8 / 13; grid-row: 1; }
.sec--center .sec__media, .sec--center .sec__cap { grid-column: 4 / 10; }
.sec--center .sec__text { grid-column: 4 / 10; }
.sec--wide .sec__media, .sec--wide .sec__cap { grid-column: 2 / 12; }
.sec--wide .sec__text { grid-column: 7 / 12; margin-top: 40px; }
.sec--full .sec__media { aspect-ratio: auto; height: 92svh; }
.sec--screen .sec__media { background: transparent; overflow: visible; }
.sec--screen .sec__media .inner { position: absolute; inset: 0; }
.sec--screen .sec__media .inner img { height: 100%; }
.sec--screen .sec__media img { object-fit: contain; }
.sec__group { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: clamp(12px, 3vw, 48px); align-items: center; }
/* phone trios are compact: the middle screen leads, the side ones are smaller */
.sec__group[style*="--cols:3"] { grid-template-columns: 13vw 17vw 13vw; justify-content: center; column-gap: 5vw; align-items: center; }
.sec__gi img { height: auto; object-fit: contain; aspect-ratio: auto 528 / 1100; }
.sec__group[style*="--cols:2"] .sec__gi img { aspect-ratio: auto 1300 / 904; }
/* phone screens drift softly, each on its own rhythm */
.sec__group[style*="--cols:3"] .sec__gi { animation: phone-drift 8s cubic-bezier(.37, 0, .63, 1) infinite alternate; }
.sec__group[style*="--cols:3"] .sec__gi:nth-child(3n+2) { animation-duration: 9.2s; animation-delay: -3.1s; animation-name: phone-drift-alt; }
.sec__group[style*="--cols:3"] .sec__gi:nth-child(3n) { animation-duration: 7.3s; animation-delay: -5.4s; }
@keyframes phone-drift { from { transform: translate(-4px, 0) rotate(-1deg); } to { transform: translate(4px, -12px) rotate(1deg); } }
@keyframes phone-drift-alt { from { transform: translate(4px, -10px) rotate(.8deg); } to { transform: translate(-4px, 2px) rotate(-.8deg); } }
/* trio with a gentler size contrast between the middle and the side screens */
.sec__group.sec__group--soft { grid-template-columns: 15.5vw 17vw 15.5vw; }
/* large staggered trio: big screens set on different levels */
.sec__group.sec__group--large { grid-template-columns: 21vw 23vw 21vw; column-gap: 4vw; align-items: start; }
.sec__group--large .sec__gi:nth-child(1) { margin-top: 6vw; }
.sec__group--large .sec__gi:nth-child(2) { margin-top: 0; }
.sec__group--large .sec__gi:nth-child(3) { margin-top: 9vw; }
/* stepped trio, like bars of a chart: big → medium → small, bottoms on one baseline */
.sec__group.sec__group--stairs { grid-template-columns: 17vw 14.5vw 12vw; column-gap: 5vw; align-items: end; }
/* compact trio: the middle screen is the hero, the side ones are smaller */
.sec__group.sec__group--feature { grid-template-columns: 13vw 17vw 13vw; column-gap: 5vw; align-items: center; }
/* two screens side by side, smaller and top-aligned */
.sec__row:has(.sec__group--pair) { width: 83.333%; }
.sec__group--pair { align-items: start; }
.sec__group--pair .sec__gi img { aspect-ratio: auto; }
/* images and videos in a pair, and UI screens, get the same frame corners as single media */
.sec__group--pair .sec__gi img, .sec__group--pair .sec__gi video, .sec--screen .sec__media img { display: block; width: 100%; border-radius: var(--radius); }
.sec--group .sec__cap { margin-top: clamp(16px, 2vw, 32px); }
.sec__row { grid-column: 1 / 13; justify-self: center; width: 100%; }
.sec__row:has([style*="--cols:3"]) { width: auto; }
.sec--group .sec__text { grid-column: 7 / 13; margin-top: 40px; }
/* horizontal gallery pinned while scrolling */
.sec--gallery .sec__text { grid-column: 7 / 13; margin: 0 0 clamp(16px, 2vw, 32px); }
.gal { position: relative; margin: 0 calc(var(--g) * -1); }
.gal__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.gal__track { display: flex; gap: 2vw; width: max-content; padding: 0 var(--g); will-change: transform; }
.gal__item { flex: 0 0 auto; width: 52vw; border-radius: var(--radius); overflow: hidden; }
.gal__item img { height: auto; aspect-ratio: 1300 / 904; object-fit: cover; }
.deck { position: relative; margin: 0 calc(var(--g) * -1); }
.deck__sticky { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center; padding: 0 var(--g); }
.deck__inner { grid-column: 2 / 12; justify-self: center; display: flex; flex-direction: column; gap: 12px; width: min(100%, calc((100svh - 80px) * 2000 / 1293)); }
.deck__frame { position: relative; aspect-ratio: 2000 / 1293; border-radius: var(--radius); overflow: hidden; }
.deck__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.deck__frame img + img { opacity: 0; }
.deck__inner .gal__foot { padding: 0; }
.gal__foot { display: flex; justify-content: space-between; align-items: baseline; padding: 0 var(--g); text-transform: uppercase; }
.gal__foot .sec__cap { margin: 0; }
.gal__count { color: var(--muted); }
.gal__count span { color: var(--fg); }
.sec--text-top .sec__text { margin: 0 0 clamp(40px, 5vw, 80px); }
.sec--full .sec__text { grid-column: 7 / 13; }

.page { padding: 0 var(--g); }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
.case__hero { min-height: max(100svh, 560px); padding: calc(var(--g) * 3.6) 0 var(--g); }
/* left column of the first screen: the description on top, title and meta at the bottom */
.case__hero-left { grid-column: 1 / 7; grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: 0; }
.case__hero-media {
  grid-column: 7 / 13; grid-row: 1; justify-self: end; align-self: end;
  height: calc(100svh - var(--g) * 4.6); max-width: 100%; aspect-ratio: 4 / 5; overflow: hidden; position: relative;
}
.case__hero-media .inner { position: absolute; inset: 0; }
.case__title {
  margin: 0 0 clamp(40px, 8vh, 96px); font-weight: 400;
  font-size: clamp(44px, 6.4vw, 128px); line-height: .92; letter-spacing: -.045em; text-transform: lowercase;
}
.case__meta { display: grid; grid-template-columns: repeat(6, 1fr); column-gap: var(--gap); text-transform: uppercase; }
.case__meta > div { display: flex; flex-direction: column; gap: 2px; padding-right: 12px; }
.case__meta-a, .case__meta-b { grid-column: span 3; }
.case__meta-b span { white-space: pre-line; }
.case__intro { padding: calc(var(--g) * 1.5) 4vw 0 0; }
.case__lead {
  margin: 0; font-weight: 400;
  font-size: clamp(20px, 2.2vw, 40px); line-height: 1.08; letter-spacing: -.03em;
}
.case__url { display: inline-block; margin-top: 28px; text-transform: uppercase; }
.case__sections { margin-top: clamp(100px, 16vw, 260px); display: flex; flex-direction: column; gap: clamp(80px, 12vw, 200px); }
.sec__media { position: relative; overflow: hidden; width: 100%; background: #e9e5de; }
.sec__media .inner { position: relative; }
.sec__media .inner img, .sec__media .inner video { height: auto; }
.sec--contain .sec__media { background: #0d0d0e; }
.sec--contain .sec__media .inner img, .sec--contain .sec__media .inner video { object-fit: contain; }
.sec__cap { margin-top: 10px; text-transform: uppercase; }
.sec__text { margin: 0; font-size: clamp(18px, 1.7vw, 28px); line-height: 1.15; letter-spacing: -.02em; }
/* longer case story beside a picture: results on top, details at the bottom of the frame */
.sec__story { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; align-self: stretch; }
.sec__stats { display: grid; gap: clamp(24px, 2.6vw, 44px); }
.stat__value { font-size: clamp(36px, 4.4vw, 76px); line-height: 1; letter-spacing: -.04em; }
.stat__label { margin-top: 10px; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.25; letter-spacing: 0; }
.sec__paras { display: grid; gap: 1em; font-size: clamp(16px, 1.25vw, 20px); line-height: 1.25; letter-spacing: -.01em; }
.sec__paras p { margin: 0; }

.next { margin-top: clamp(120px, 18vw, 300px); padding-bottom: var(--g); display: block; }
.next__label { text-transform: uppercase; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.next__title {
  display: block; margin-top: 20px;
  font-size: clamp(56px, 13vw, 240px); line-height: .9; letter-spacing: -.06em; text-transform: lowercase;
}
.next__media { width: clamp(140px, 18vw, 280px); aspect-ratio: 4/5; overflow: hidden; margin: 40px 0 0 auto; }

@media (max-width: 767px) {
  .case__hero { height: auto; min-height: 0; padding-top: calc(var(--g) * 5); }
  .case__hero-media { grid-column: 1 / 13; justify-self: stretch; height: auto; }
  .case__hero-left { grid-column: 1 / 13; grid-row: 2; margin-top: 24px; }
  .case__title { margin-bottom: 40px; }
  .case__hero-left { gap: 40px; }
  .case__intro { padding: 0; }
  .case__meta-b span { white-space: normal; }
  .sec .sec__media, .sec .sec__cap, .sec .sec__text { grid-column: 1 / 13; grid-row: auto; }
  .sec .sec__text { margin-top: 32px; }
  .gal__item { width: 82vw; }
  .deck__sticky { align-items: start; padding-top: 96px; }
  .deck__inner { grid-column: 1 / 13; }
  .deck__frame { aspect-ratio: 1; }  /* tighter crop keeps the laptop screen large */
  .gal__track { gap: 10px; }
  .sec--gallery .sec__text { grid-column: 1 / 13; }
  .sec--full .sec__media { height: 70svh; }
  .sec__group[style*="--cols:3"] { grid-template-columns: 1fr 1.3fr 1fr; column-gap: 10px; }
  .sec__row:has([style*="--cols:3"]) { width: 100%; }
  .sec__group[style*="--cols:2"] { grid-template-columns: 1fr; }
  .sec__row:has(.sec__group--pair) { width: 100%; }
  .sec__group.sec__group--feature { grid-template-columns: 1fr 1.3fr 1fr; column-gap: 10px; }
  .sec__group.sec__group--soft { grid-template-columns: 1fr 1.1fr 1fr; }
  .sec__group.sec__group--stairs { grid-template-columns: 1fr .86fr .72fr; column-gap: 10px; }
  .sec__group.sec__group--large { grid-template-columns: 1fr 1.08fr 1fr; column-gap: 10px; }
  .sec__group--pair { grid-template-columns: 1fr 1fr; }
  .sec--group .sec__text { grid-column: 1 / 13; }
}

/* ---------- About ---------- */
.about { padding-top: calc(var(--g) * 7); padding-bottom: var(--g); }
.about__intro {
  grid-column: 1 / 12; margin: 0; font-weight: 400;
  font-size: clamp(34px, 5.2vw, 96px); line-height: 1; letter-spacing: -.045em;
  text-wrap: balance;  /* even, compact lines: 4 in Russian, 3 in English */
}
/* equal space above and below the content */
.about__row { --body-fs: clamp(18px, 1.8vw, 30px); --tag-fs: clamp(15px, 1.39vw, 20px); padding: clamp(24px, 2.6vw, 40px) 0; border-top: 1px solid var(--line); align-items: start; }
/* empty space under the intro; the round button sits in its bottom-right corner, on the line */
.about__gap { height: clamp(220px, 22vw, 380px); display: flex; justify-content: flex-end; align-items: flex-end; }
.cta {
  width: clamp(120px, 10vw, 170px); aspect-ratio: 1; display: block;
  mix-blend-mode: difference;   /* black-and-white, inverts whatever is behind it — like the header circle */
}
/* floats slowly between the line and the right wall: two sine-like drifts on different rhythms */
.cta__drift { display: block; width: 100%; height: 100%; animation: cta-wall 11s cubic-bezier(.37, 0, .63, 1) infinite alternate; }
.cta__float { display: block; width: 100%; height: 100%; animation: cta-floor 8s cubic-bezier(.37, 0, .63, 1) infinite alternate; }
.cta__body {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  background: #fff; color: #000; border: 1px solid #fff; overflow: hidden;
  transition: scale .7s var(--ease-out), color .5s var(--ease-out);
}
/* the fill that pours out from the centre on hover, turning the disc into an outline */
.cta__body::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #000;
  transform: scale(0); transition: transform .8s var(--ease);
}
/* grain on top, inverted together with the button */
.cta__body::after {
  content: ""; position: absolute; inset: -50%; pointer-events: none; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.4 -.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: cta-grain 1s steps(4) infinite;
}
.cta:hover .cta__body { scale: 1.06; color: #fff; }
.cta:hover .cta__body::before { transform: scale(1); }
.cta__ring, .cta__arrow { position: relative; z-index: 1; }
.cta__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: cta-spin 14s linear infinite; overflow: visible; }
/* pre keeps the trailing space, so the seam dot has the same gap as the middle one */
.cta__ring text { font-family: var(--font); font-size: 9.2px; letter-spacing: .06em; text-transform: uppercase; fill: currentColor; white-space: pre; }
.cta__arrow { font-size: clamp(22px, 2vw, 32px); line-height: 1; transition: transform .6s var(--ease-out); }
.cta:hover .cta__arrow { transform: rotate(-45deg); }
@keyframes cta-grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-6%, 4%); } 50% { transform: translate(5%, -5%); } 75% { transform: translate(-3%, -6%); } 100% { transform: translate(0, 0); } }
@keyframes cta-floor { from { transform: translateY(0) rotate(0); } to { transform: translateY(-52px) rotate(-5deg); } }
@keyframes cta-wall { from { transform: translateX(0); } to { transform: translateX(-42px); } }
@keyframes cta-spin { to { transform: rotate(360deg); } }
/* the tops of the capitals line up with the first line of text, or with the top edge of the tags */
.about__label { grid-column: 1 / 4; text-transform: uppercase; color: var(--muted); line-height: 1; margin-top: calc(var(--body-fs) * .195 - .135em); }
.about__row:has(.about__tags) .about__label { margin-top: -.135em; }
.about__row:has(.about__ul) .about__label { margin-top: calc(var(--tag-fs) * .195 - .135em); }
.about__body { grid-column: 6 / 13; font-size: var(--body-fs); line-height: 1.12; letter-spacing: -.02em; }
.about__body p { margin: 0; }
.about__job-h { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.about__job-h span:last-child { color: var(--muted); white-space: nowrap; }
.about__job p { color: var(--muted); }
/* two even columns of four */
.about__ul { list-style: none; margin: -3px 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto); grid-auto-flow: column; gap: 8px var(--gap); font-size: var(--tag-fs); }
.about__ul li { padding: 3px 0; break-inside: avoid; }
.about__links { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.about__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.about__tags span { border: 1px solid var(--line); border-radius: 6px; padding: .35em .9em .4em; font-size: var(--tag-fs); text-transform: capitalize; }
.about__body a { border-bottom: 1px solid currentColor; }
@media (max-width: 767px) {
  .about__intro { grid-column: 1 / 13; }
  .about__gap { height: 200px; }
  .cta { width: 120px; }
  .about__label, .about__row:has(.about__tags) .about__label, .about__row:has(.about__ul) .about__label { grid-column: 1 / 13; margin: 0 0 16px; }
  .about__body { grid-column: 1 / 13; }
  .about__ul { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
}

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width .5s var(--ease-out), height .5s var(--ease-out), margin .5s var(--ease-out);
}
.cursor__label { color: #000; text-transform: uppercase; font-size: 11px; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.is-big { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.cursor.is-big .cursor__label { opacity: 1; transition-delay: .1s; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Transition clone ---------- */
.clone { position: fixed; z-index: 35; overflow: hidden; pointer-events: none; }
.clone > * { position: absolute; inset: 0; }

body.is-loading .header { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* One even corner radius for every photo/video frame (px, so wide frames don't get stretched ellipses) */
.card__media, .case__hero-media, .next__media, .intro__frame, .clone, .sec:not(.sec--screen) .sec__media { border-radius: var(--radius); }
.about__bio { white-space: pre-line; }
