/* =====================================================================
   THE SELECT — base.css (shared by every page)
   reset · layout · type · chrome (grid, grain, nav, menu, footer)
   components (.btn .tag .label .frame .slot .wave .pencil .todo)
   cursor · reveal states · reduced motion
   ===================================================================== */

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
html:not(.reduced) { scroll-behavior: smooth; }
html.is-locked { overflow: hidden; }
body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, figcaption, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video, canvas, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.45;
  hyphens: manual;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color .6s var(--ease-io), color .6s var(--ease-io);
}
::selection { background: var(--accent-fill); color: var(--on-accent); }
[data-theme] { color: var(--fg); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: fixed; left: var(--gutter); top: 8px; z-index: 300;
  padding: 14px 18px; background: var(--accent-fill); color: var(--on-accent);
  font: 500 12px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  transform: translateY(-160%); transition: transform .2s var(--ease-out);
}
.skip:focus-visible, .skip:focus { transform: none; outline-color: var(--ink); }

/* ---------------------------------------------------------------- layout */
.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--col-gap);
}
.sec {
  position: relative;
  padding: var(--section-pad) var(--gutter);
  background: var(--bg);
  color: var(--fg);
  transition: background-color .6s var(--ease-io);
}
.sec-head { margin-bottom: clamp(48px, 7vw, 120px); }
.sec-head__label { display: block; margin-bottom: clamp(20px, 2.4vw, 36px); }
.sec-head__title { max-width: 18ch; }
.sec-head__intro { margin-top: clamp(24px, 3vw, 40px); max-width: 46ch; color: var(--fg-2); }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ------------------------------------------------------------------ type */
/* Display type — Inter Tight, Swiss-poster grotesk.
   Rule: .t-display is UPPERCASE by default (titles, side names, nodes…).
   Add .t-sentence for sentence case (data rendered as written).
   Weight: 700; .t-xl / .t-l / .t-800 → 800. Tracking −.045em; .t-s → −.03em. */
.t-display {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  text-transform: uppercase;
  line-height: var(--display-lh);
  letter-spacing: var(--display-ls);
  text-wrap: balance;
  overflow-wrap: break-word;   /* last-resort guard only */
  font-kerning: normal;
}
.t-sentence { text-transform: none; }
.t-upper { text-transform: uppercase; }
.t-800 { font-weight: 800; }
.t-xl { font-size: var(--fs-d-xl); font-weight: 800; }
.t-l  { font-size: var(--fs-d-l); font-weight: 800; }
.t-m  { font-size: var(--fs-d-m); }
.t-s  { font-size: var(--fs-d-s); line-height: .95; letter-spacing: var(--display-ls-s); }
h1, h2, h3 { text-wrap: balance; }
.t-lead {
  font-size: var(--fs-lead); font-weight: 500; line-height: 1.12;
  letter-spacing: -.012em; text-wrap: balance;
}
.t-body { font-size: var(--fs-body); line-height: 1.45; max-width: 62ch; }
.t-body + .t-body { margin-top: 1em; }
.t-small { font-size: var(--fs-small); line-height: 1.4; }
.t-dim { color: var(--fg-2); }
.label, .t-mono {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.label { color: var(--fg-2); }
.label--fg { color: var(--fg); }
.label--accent { color: var(--accent); }
.hand {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: var(--fs-hand);
  font-weight: 400;
  line-height: .9;
  color: var(--accent);
  letter-spacing: 0;
  text-transform: none;
  transform: rotate(-4deg);
}
:lang(uk) .hand, :lang(uk) mark.todo, :lang(uk) .pencil__note { font-weight: 600; }

/* [[editor's notes]] */
mark.todo {
  background: none;
  color: var(--accent);
  font-family: var(--font-hand);
  font-size: calc(1.32em * var(--hand-scale));
  font-weight: 400;
  line-height: .9;
  letter-spacing: 0;
  text-transform: none;
  font-variation-settings: normal;
  text-decoration: underline wavy var(--accent) 1px;
  text-decoration-skip-ink: none;
  text-underline-offset: .2em;
}
.t-display mark.todo { font-size: .4em; vertical-align: .35em; letter-spacing: 0; }
.label mark.todo, .t-mono mark.todo, .tag mark.todo { font-size: 1.7em; vertical-align: -.1em; }

/* -------------------------------------------------------------- buttons */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 22px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; line-height: 1;
  border: 1px solid var(--fg);
  color: var(--fg);
  overflow: hidden; isolation: isolate;
  transition: color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.btn .icon { width: 16px; height: 16px; flex: none; }
.btn::before {
  content: ''; position: absolute; inset: -1px; z-index: -1;
  background: var(--accent-fill);
  transform: scaleX(0); transform-origin: right center;
  transition: transform .45s var(--ease-snap);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.btn:hover, .btn:focus-visible { color: var(--on-accent); border-color: var(--accent-fill); }
.btn--solid { background: var(--fg); color: var(--bg); }
.btn--solid:hover, .btn--solid:focus-visible { color: var(--on-accent); }
.btn.is-copied { border-color: var(--accent-fill); color: var(--on-accent); }
.btn.is-copied::before { transform: scaleX(1); }

.tag {
  display: inline-flex; align-items: center;
  min-height: 24px; padding: 3px 8px;
  border: 1px solid var(--rule);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; line-height: 1.2;
  color: var(--fg);
  white-space: nowrap;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border: 1px solid var(--rule);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--fg);
  transition: background-color .25s, color .25s, border-color .25s;
}
.chip:hover { border-color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ----------------------------------------------------------- grid + grain */
.grid-overlay {
  position: fixed; inset: 0; z-index: var(--z-grid);
  padding: 0 var(--gutter);
  pointer-events: none;
}
.grid-overlay__inner {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--col-gap);
}
.grid-overlay span {
  border-left: 1px solid var(--grid-line);
  border-right: 1px solid var(--grid-line);
  transform-origin: top center;
}
@media (max-width: 767px) { .grid-overlay span:nth-child(n+5) { display: none; } }

.grain {
  position: fixed; inset: 0; z-index: var(--z-grain);
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  1 0 0 0 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

/* ------------------------------------------------------------------- nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 var(--gutter);
  color: var(--fg);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: background-color .5s var(--ease-io), color .5s var(--ease-io), border-color .5s;
}
.nav.is-scrolled { border-bottom-color: var(--rule); }
.nav__brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; justify-self: start; }
.nav__mono {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  background: var(--fg); color: var(--bg);
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
  letter-spacing: -.04em;
  transition: background-color .45s var(--ease-io), color .45s var(--ease-io);
}
.nav__name { font-weight: 500; font-size: 15px; letter-spacing: -.005em; white-space: nowrap; }
.nav__links ul { display: flex; gap: clamp(4px, 1.2vw, 18px); }
.nav__links a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
}
.nav__links a::after {
  content: ''; position: absolute; left: 6px; right: 6px; bottom: 10px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-snap);
}
.nav__links a:hover::after, .nav__links a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.nav__meta { display: flex; align-items: center; justify-content: flex-end; gap: clamp(12px, 1.6vw, 24px); }
.nav__status, .nav__counter, .nav__cv {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
}
.nav__status { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
a.nav__status:hover { color: var(--accent); }
.nav__dot { position: relative; width: 8px; height: 8px; background: var(--accent); }
.nav__dot::after {
  content: ''; position: absolute; inset: 0; background: var(--accent);
  animation: kt-pulse 1.8s var(--ease-out) infinite;
}
@keyframes kt-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }
.nav__counter { color: var(--fg-2); font-variant-numeric: tabular-nums; }
.nav__counter b { color: var(--fg); font-weight: 500; }
.nav__cv { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 2px; }
.nav__cv .icon { width: 14px; height: 14px; }
.nav__cv:hover { color: var(--accent); }
.nav__menu-btn {
  display: none; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; min-height: 44px; padding: 0 4px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
}
.nav__menu-btn .icon { width: 20px; height: 20px; }

/* EN / UA toggle: two mono boxes, active one filled; 44px hit area */
.lang { display: inline-flex; align-items: center; }
.lang__btn {
  display: inline-grid; place-items: center;
  min-width: 44px; min-height: 44px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em;
}
.lang__box {
  display: inline-grid; place-items: center;
  min-width: 32px; height: 24px; padding: 0 5px;
  border: 1px solid var(--rule);
  transition: background-color .25s, color .25s, border-color .25s;
}
.lang__btn + .lang__btn .lang__box { border-left-color: transparent; }
.lang__btn:hover .lang__box { border-color: var(--fg); }
.lang__btn[aria-pressed="true"] .lang__box { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.lang__btn[aria-pressed="true"] { cursor: default; }
.menu__lang { margin-top: 8px; }

@media (max-width: 1199px) { .nav__status { display: none; } }
@media (min-width: 1024px) and (max-width: 1279px) { .nav__name { display: none; } }
@media (max-width: 1023px) { .nav__lang { display: none; } }
@media (max-width: 1023px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav__links, .nav__cv { display: none; }
  .nav__meta { grid-column: 3; }
  .nav__counter { grid-column: 2; }
  .nav__menu-btn { display: inline-flex; }
}
@media (max-width: 479px) { .nav__name, .nav__menu-txt { display: none; } }

/* ------------------------------------------------------------ mobile menu */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  display: flex; flex-direction: column;
  padding: 0 var(--gutter) 24px;
  background: var(--bg); color: var(--fg);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .5s var(--ease-snap);
  overflow-y: auto;
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu__top { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); flex: none; }
.menu__close { display: grid; place-items: center; width: 44px; height: 44px; }
.menu__list { margin: auto 0; padding: 24px 0; border-top: 1px solid var(--rule); }
.menu__list li { border-bottom: 1px solid var(--rule); overflow: hidden; }
.menu__link {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0 4px;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  letter-spacing: -.045em;
  font-size: clamp(44px, 12.5vw, 104px); line-height: .9;
  transform: translateY(100%); transition: transform .6s var(--ease-out) calc(.12s + var(--i) * .05s), color .2s;
}
.menu.is-open .menu__link { transform: none; }
.menu__link:hover { color: var(--accent); }
.menu__no { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; padding-top: .6em; color: var(--fg-2); }
.menu__foot { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; }
.menu__foot a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------------------------------------------------------------- footer */
.foot {
  position: relative;
  background: var(--bg); color: var(--fg);
  padding: clamp(48px, 8vw, 120px) var(--gutter) 24px;
  overflow-x: clip;
}
.foot__name {
  display: block; white-space: nowrap; line-height: .8;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  letter-spacing: -.045em;
  font-size: 14vw;
  padding-top: .06em;
}
.foot__letters { display: flex; justify-content: space-between; width: 100%; }
.is-measuring .fit__inner { display: inline-block !important; width: auto !important; transform: none !important; }
.is-measuring .foot__letters { display: inline-flex !important; }
.foot__l {
  display: inline-block;
  font-weight: 800;
  transition: font-weight .35s var(--ease-out), color .3s;
}
.foot__l--sp { width: .2em; }
.foot__l:hover { font-weight: 300; color: var(--accent); }
.foot__l:hover + .foot__l, .foot__l:has(+ .foot__l:hover) { font-weight: 550; }
.foot__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin-top: clamp(24px, 3vw, 48px); padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fg-2);
}
.foot__note { color: var(--fg); }
.foot__top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--fg); text-transform: uppercase; letter-spacing: .06em; }
.foot__top .icon { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.foot__top:hover { color: var(--accent); }
.foot__top:hover .icon { transform: translateY(-3px); }

/* ------------------------------------------------------ video controls */
.vctl { position: absolute; left: 8px; bottom: 8px; z-index: 4; display: flex; gap: 0; }
.vctl__btn {
  display: inline-grid; place-items: center; min-height: 32px; min-width: 32px; padding: 0 9px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  color: var(--ink); background: rgba(237, 235, 228, .86); border: 1px solid var(--ink); border-radius: 0;
  cursor: pointer; transition: background-color .2s, color .2s;
}
.vctl__btn + .vctl__btn { border-left-color: transparent; }
.vctl__btn:hover, .vctl__btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.vctl__btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.vctl__btn .icon { width: 12px; height: 12px; }
@media (pointer: coarse), (max-width: 767px) { .vctl__btn { min-height: 44px; min-width: 44px; } }

/* -------------------------------------------------------------- frames */
.frame { position: relative; display: block; margin: 0; }
.frame__media {
  position: relative;
  aspect-ratio: var(--ratio, 16 / 9);
  background: var(--bg-2);
  overflow: hidden;
  container-type: inline-size;
}
.frame__media > img, .frame__media > video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.frame__cap {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-top: 10px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2);
}
.frame__no { color: var(--accent); }
.frame__txt { text-align: right; }

/* placeholder slot */
/* --slot-bg: the slot's own surface; labels sit on it so the hairline
   cross stops behind them. Override per context (e.g. contact sheet). */
.slot {
  --slot-bg: var(--bg-2);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 14% 10%;
  background: var(--slot-bg);
  color: var(--fg-2);
}
.slot__x { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.slot__x path { fill: none; stroke: var(--rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.slot__tag, .slot__ratio {
  position: absolute; z-index: 2;
  padding: 4px 6px;
  background: var(--slot-bg);
  box-shadow: 0 0 0 3px var(--slot-bg);
  font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  line-height: 1.2; color: var(--fg-2);
  white-space: nowrap;
}
.slot__tag { top: 8px; left: 8px; color: var(--accent); max-width: calc(100% - 16px); overflow: hidden; text-overflow: clip; }
.slot__ratio { bottom: 8px; right: 8px; }
.slot__body {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  max-width: 34ch; padding: 12px 14px;
  background: var(--slot-bg);
  text-align: center;
}
.slot__icon .icon { width: 22px; height: 22px; color: var(--fg-2); }
.slot__text {
  font-size: clamp(12px, 4.2cqi, 17px); line-height: 1.3; color: var(--fg);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
  text-wrap: balance;
}
.slot__spec { font-family: var(--font-mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-2); }
@container (max-width: 260px) {
  .slot { padding: 10%; }
  .slot__spec, .slot__ratio { display: none; }
  .slot__text { -webkit-line-clamp: 3; }
  .slot__body { padding: 8px; gap: 6px; }
}
@container (max-width: 150px) {
  .slot__text { display: none; }
}
@container (max-width: 140px) {
  .slot__tag-k { display: none; }
  .slot__tag { top: 6px; left: 6px; }
}

/* audio waveform */
.wave {
  position: absolute; inset: 0;
  display: flex; align-items: center; gap: clamp(10px, 4cqi, 20px);
  padding: 0 clamp(12px, 6cqi, 32px);
  background: var(--bg-2);
}
.wave__play {
  flex: none; display: grid; place-items: center;
  width: 48px; height: 48px;
  background: var(--accent-fill); color: var(--on-accent);
  position: relative; z-index: 2;
}
.wave__play .icon { width: 18px; height: 18px; }
.wave__track { position: relative; flex: 1; height: 56%; }
.wave__bars { width: 100%; height: 100%; }
.wave__track > .wave__bars rect { fill: var(--fg-2); opacity: .55; }
.wave__fill { position: absolute; inset: 0; clip-path: inset(0 100% 0 0); }
.wave__fill rect { fill: var(--accent); }

/* ------------------------------------------------------------ blue pencil */
.has-pencil { position: relative; }
.pencil { position: absolute; z-index: 4; pointer-events: none; color: var(--accent); }
.pencil__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pencil path {
  fill: none; stroke: currentColor; stroke-width: 3.25;
  stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  visibility: hidden;
}
.pencil.is-armed path, .pencil.is-drawn path { visibility: visible; }
.pencil--light path { stroke-width: 2.5; }
.pencil--circle { inset: -16% -12%; }
.pencil--underline { left: -3%; right: -3%; bottom: -.22em; height: .3em; min-height: 10px; }
.pencil--arrow { width: 96px; height: 72px; }
.pencil--cross { inset: -4%; }
.pencil--tick { width: 46px; height: 38px; }
.pencil__note {
  position: absolute; left: 100%; top: -.2em;
  font-family: var(--font-hand); font-size: var(--fs-hand); font-weight: 400;
  line-height: .9; letter-spacing: 0; text-transform: none;
  color: var(--accent); white-space: nowrap;
  opacity: 0; transform: rotate(-5deg) scale(.6); transform-origin: left bottom;
  transition: opacity .3s ease var(--note-delay, 0ms), transform .6s cubic-bezier(.3, 1.6, .5, 1) var(--note-delay, 0ms);
}
.pencil.is-drawn .pencil__note { opacity: 1; transform: rotate(-5deg) scale(1); }

/* ----------------------------------------------------------------- cursor */
.cursor {
  position: fixed; left: 0; top: 0; z-index: var(--z-cursor);
  width: 0; height: 0; pointer-events: none;
  opacity: 0; transition: opacity .25s;
}
.cursor.is-on { opacity: 1; }
.cursor__label {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  min-width: 10px; height: 10px; padding: 0;
  background: var(--blue); color: var(--paper);
  font-family: var(--font-mono); font-size: 0; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  transition: height .3s var(--ease-out), padding .3s var(--ease-out), font-size .2s, transform .2s;
}
.cursor.is-label .cursor__label { height: 30px; padding: 0 12px; font-size: 11px; }
.cursor.is-down .cursor__label { transform: translate(-50%, -50%) scale(.8); }

/* ----------------------------------------------------------------- reveal */
/* generous top padding so uppercase diacritics (Ї, Й) are never clipped */
.line-mask {
  display: block; overflow: hidden;
  padding: .16em 0 .08em; margin: -.16em 0 -.08em;
}
.line-inner {
  display: block;
  transition: transform 1.05s var(--ease-out) calc(var(--i, 0) * 90ms + var(--reveal-delay, 0ms));
}
[data-reveal] {
  transition: opacity .9s var(--ease-out) var(--reveal-delay, 0ms), transform .9s var(--ease-out) var(--reveal-delay, 0ms);
}
[data-reveal="lines"], [data-reveal="mask"] { transition: none; }
html.js:not(.reduced) [data-reveal="lines"]:not(.is-split) { visibility: hidden; }
html.js:not(.reduced) [data-reveal="up"]:not(.is-in),
html.js:not(.reduced) [data-reveal=""]:not(.is-in) { opacity: 0; transform: translateY(28px); }
html.js:not(.reduced) [data-reveal="fade"]:not(.is-in) { opacity: 0; }
html.js:not(.reduced) [data-reveal="lines"]:not(.is-in) .line-inner,
html.js:not(.reduced) [data-reveal="mask"]:not(.is-in) .line-inner { transform: translateY(112%); }

/* ------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .nav__dot::after { display: none; }
}
