:root {
  --concrete: #E3E2DE;
  --paper: #F5F4F1;
  --ink: #000;
  --graphite: #55544F;
  --mute: #8F8E89;
  --cobalt: #2340D8;
  --magenta: #E4007C;
  --signal: #FF5A1A;
  --serif: "Noto Serif Display", "Times New Roman", serif;
  --sans: "Onest", system-ui, -apple-system, sans-serif;
  --pad: clamp(16px, 3.4vw, 52px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --v: 0;
  --va: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--magenta); color: #fff; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font: 500 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform .3s var(--ease), background-color .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 9px; height: 11px; fill: currentColor; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-line { border: 1px solid rgba(0, 0, 0, .18); background: rgba(255, 255, 255, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--pad);
  transition: color .4s;
}
.top::before {
  content: ""; position: absolute; inset: 0 0 -28px; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--concrete) 35%, rgba(227, 226, 222, 0));
  opacity: 0; transition: opacity .4s, background .4s;
}
.top.scrolled::before { opacity: .92; }
.top.dark::before { background: linear-gradient(#000 35%, rgba(0, 0, 0, 0)); }
.brand { font: 400 23px/1 var(--serif); font-variation-settings: "wdth" 88; letter-spacing: -.01em; text-decoration: none; }
.brand sup { font-size: .55em; vertical-align: .7em; margin-left: 1px; }
.nav {
  display: flex; gap: 2px; padding: 4px;
  background: rgba(255, 255, 255, .5); border: 1px solid rgba(0, 0, 0, .07); border-radius: 999px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background-color .4s, border-color .4s;
}
.nav a { padding: 8px 15px; border-radius: 999px; font-size: 14px; text-decoration: none; transition: background-color .25s, box-shadow .25s; }
.nav a:hover { background: rgba(255, 255, 255, .6); }
.nav a.on { background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.top-right { justify-self: end; display: flex; align-items: center; gap: 10px; }
.top.dark { color: var(--concrete); }
.top.dark .nav { background: rgba(30, 30, 30, .55); border-color: rgba(255, 255, 255, .1); }
.top.dark .nav a:hover { background: rgba(255, 255, 255, .1); }
.top.dark .nav a.on { background: rgba(255, 255, 255, .16); box-shadow: none; }
.top.dark .btn-ink { background: var(--paper); color: var(--ink); }

/* ---------- glitch text: layers driven by scroll speed (main.js sets the vars) ---------- */
.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none;
  opacity: var(--va); mix-blend-mode: multiply;
}
.glitch::before { color: var(--cobalt); transform: translateX(calc(var(--v) * 14px)); clip-path: inset(var(--c1, 30%) 0 var(--c2, 50%) 0); }
.glitch::after { color: var(--magenta); transform: translateX(calc(var(--v) * -11px)); clip-path: inset(var(--c3, 60%) 0 var(--c4, 20%) 0); }
.works .glitch::before, .works .glitch::after, .interview .glitch::before, .interview .glitch::after,
.contact .glitch::before, .contact .glitch::after { mix-blend-mode: screen; }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 2; height: 100svh; min-height: 640px; display: flow-root; overflow-x: clip; }
.hero-pre {
  position: absolute; top: 11.5svh; left: 0; right: 0; text-align: center;
  font-size: 15px; color: var(--graphite);
}
.strike { position: relative; text-decoration: none; color: var(--ink); }
.strike::after {
  content: ""; position: absolute; left: -3%; right: -2%; top: 46%; height: 9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 9' preserveAspectRatio='none'%3E%3Cpath d='M2 6.5C40 2.5 90 5.2 130 3.4 160 2.1 185 4.6 198 2.6' fill='none' stroke='%23E8202A' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  transform: scaleX(0); transform-origin: left; transition: transform .7s .5s var(--ease);
}
.ready .strike::after { transform: scaleX(1); }

.masthead {
  position: absolute; top: 14.5svh; left: 0; right: 0; z-index: 1;
  text-align: center; white-space: nowrap;
  font: 400 9.4vw/.92 var(--serif); letter-spacing: -.035em;
  font-variation-settings: "wdth" var(--wd, 78);
}

.stage {
  position: absolute; left: 50%; bottom: 0; z-index: 2;
  height: min(73svh, 980px); aspect-ratio: 990 / 1251;
  transform: translateX(-50%);
  transform-style: preserve-3d; perspective: 1500px; perspective-origin: 50% 8%;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: grayscale(.85); }
.hero-gl { position: absolute; left: -20%; top: -6%; width: 140%; height: 150%; max-width: none; transform: translateZ(0); pointer-events: none; }
.stage.gl .hero-img { visibility: hidden; }
.ring {
  position: absolute; left: 50%; top: var(--ring-y, 8%); width: 0; height: 0;
  transform-style: preserve-3d;
  transform: rotateX(-11deg) rotateY(var(--spin, 0deg));
}
.ring-card {
  position: absolute; left: calc(var(--cw, 96px) / -2); top: calc(var(--ch, 120px) / -2);
  width: var(--cw, 96px); height: var(--ch, 120px);
  border-radius: 14px; overflow: hidden;
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .45);
  transform: rotateY(var(--a)) translateZ(var(--r, 230px));
}
.ring-card img { width: 100%; height: 100%; object-fit: cover; }

.hero-side { position: absolute; left: var(--pad); top: 33svh; width: 300px; z-index: 3; }
.hero-lead { font-size: 16px; line-height: 1.5; color: var(--graphite); max-width: 30ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.cover {
  position: absolute; z-index: 3; width: 268px; padding: 18px 20px 16px;
  font-size: 14px; line-height: 1.45; color: var(--graphite);
  background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .85); border-radius: 22px;
  box-shadow: 0 22px 50px -26px rgba(0, 0, 0, .4);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.cover-a { left: calc(var(--pad) + 14px); top: 61svh; transform: rotate(-4deg); }
.cover-b { right: calc(var(--pad) + 30px); top: 49svh; width: 304px; display: flex; gap: 14px; transform: rotate(3deg); }
.cover-b img { width: 64px; height: 64px; flex: none; border-radius: 12px; object-fit: cover; }
.cover-kicker { font: 400 22px/1.1 var(--serif); color: var(--ink); margin-bottom: 6px; }
.cover-link { margin-top: 10px; font-size: 13.5px; font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.threads { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.threads path { fill: none; stroke: rgba(0, 0, 0, .28); stroke-width: 1; stroke-dasharray: 2000; stroke-dashoffset: 2000; transition: stroke-dashoffset 1.8s .9s var(--ease); }
.ready .threads path { stroke-dashoffset: 0; }

.badge { position: absolute; right: calc(var(--pad) + 40px); top: 31svh; width: 124px; height: 124px; z-index: 3; }
.badge svg { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.badge text { font: italic 400 15.5px var(--serif); letter-spacing: .02em; fill: var(--ink); }
.badge-star { fill: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

.corner { position: absolute; bottom: 5svh; z-index: 3; max-width: 260px; font-size: 13.5px; line-height: 1.45; color: var(--graphite); }
.corner-l { left: var(--pad); padding-top: 14px; border-top: 1px solid rgba(0, 0, 0, .25); width: 230px; }
.corner-r { right: var(--pad); text-align: left; }
.spark { color: var(--ink); margin-right: 4px; }

/* ---------- phrases (words in space) ---------- */
.voice { position: relative; z-index: 1; height: 340svh; }
.voice-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.voice-gl { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.voice-quotes { position: absolute; inset: 0; pointer-events: none; }
.q {
  position: absolute; left: var(--pad); top: 50%; width: min(36vw, 600px);
  transform: translateY(-50%); text-align: left;
  opacity: 0; transition: opacity .5s;
}
.q:nth-child(even) { left: auto; right: var(--pad); text-align: right; }
.q.on { opacity: 1; }
.q blockquote {
  font: 400 clamp(36px, 4.6vw, 80px)/1.02 var(--serif); letter-spacing: -.025em; font-variation-settings: "wdth" 82;
  text-shadow: 0 0 24px var(--concrete), 0 0 8px var(--concrete);
}
.q .w { color: rgba(0, 0, 0, .16); transition: color .25s; border-radius: 6px; padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.q .w.lit { color: var(--ink); }
.q .w.now { color: #fff; background: var(--magenta); }
.q figcaption { margin-top: 22px; font-size: 14px; color: var(--graphite); }
.q figcaption button {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 6px;
  margin-right: 6px; padding: 5px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500;
}
.q figcaption button::before { content: ""; width: 0; height: 0; border-left: 7px solid #fff; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.voice-hint { position: absolute; left: 0; right: 0; bottom: 4svh; text-align: center; font-size: 13px; color: var(--graphite); }

/* ---------- works ---------- */
.works { position: relative; z-index: 1; background: var(--ink); color: var(--concrete); }
.works-head, .iv-head, .bz-head, .ar-head {
  display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 24px 6vw; align-items: end;
}
.works-head { padding: 22svh var(--pad) 10svh; }
.works-head p, .iv-head p, .bz-head p, .ar-head > p:not(.ar-links) { font-size: 16px; line-height: 1.55; color: var(--mute); max-width: 40ch; }
.h2 { font: 400 clamp(64px, 13vw, 230px)/.86 var(--serif); letter-spacing: -.04em; font-variation-settings: "wdth" 72; }

.works-wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); }
.works-stage { position: sticky; top: 0; height: 100svh; }
.works-gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.works-count { position: absolute; left: var(--pad); bottom: 4.5svh; font: 400 18px var(--serif); color: var(--mute); }
.wc-i { color: var(--concrete); }
.works-list { padding-bottom: 10svh; }
.work { min-height: 100svh; display: flex; align-items: center; padding: 12svh var(--pad) 12svh 2vw; }
.work-img { display: none; }
.work-label { max-width: 460px; }
.work-title { font: 400 clamp(34px, 3.6vw, 60px)/1.02 var(--serif); letter-spacing: -.02em; font-variation-settings: "wdth" 84; }
.work-meta { margin-top: 18px; font-size: 14px; line-height: 1.55; color: var(--mute); }
.work-text { margin-top: 16px; font-size: 16px; line-height: 1.6; color: #D2D1CC; }
.work-src { display: inline-block; margin-top: 20px; font-size: 14px; color: var(--concrete); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .35); }
.work-src:hover { text-decoration-color: currentColor; }
.work-badge { display: inline-flex; align-items: center; gap: 8px; margin: 20px 14px 0 0; font-size: 14px; font-weight: 500; }
.work-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(255, 90, 26, .25); }
.work .btn-paper { margin-top: 20px; }
.perf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
.perf figure { position: relative; }
.perf video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: #111; }
.perf figcaption { margin-top: 6px; font-size: 12.5px; color: var(--mute); }
/* without WebGL the works are a plain list with pictures */
.works:not(.gl) .works-wrap { display: block; }
.works:not(.gl) .works-stage { display: none; }
.works:not(.gl) .work { min-height: 0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 5vw; padding: 8svh var(--pad); }
.works:not(.gl) .work-img { display: block; width: 100%; height: auto; max-height: 86svh; object-fit: contain; }

/* ---------- interview ---------- */
.interview { position: relative; z-index: 1; background: var(--ink); color: var(--concrete); padding: 18svh var(--pad) 18svh; }
.iv-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 4vw; margin-top: 9svh; align-items: start; }
.iv-player { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #111; }
.iv-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.iv-facade { position: absolute; inset: 0; width: 100%; height: 100%; }
.iv-facade img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) contrast(1.05); transition: filter .4s, transform .8s var(--ease); }
.iv-facade::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .14) 0 2px, transparent 2px 4px); opacity: 0; transition: opacity .3s; }
.iv-facade:hover img { filter: none; transform: scale(1.02); animation: jitter .35s steps(2) 2; }
.iv-facade:hover::after { opacity: 1; }
@keyframes jitter { 0% { translate: 0 0; } 25% { translate: -6px 0; } 50% { translate: 4px 1px; } 75% { translate: -2px -1px; } 100% { translate: 0 0; } }
.iv-play {
  position: absolute; left: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 24px 0 20px; border-radius: 999px; background: var(--paper); color: var(--ink);
  font: 500 16px/1 var(--sans);
}
.iv-play svg { width: 13px; height: 16px; fill: var(--ink); }
.iv-play small { font-size: 13px; color: var(--graphite); font-weight: 400; }
.iv-chapters { max-height: min(62vh, 640px); overflow: auto; padding-right: 10px; scrollbar-width: thin; scrollbar-color: #444 transparent; }
.iv-chapters button {
  width: 100%; display: grid; grid-template-columns: 74px 1fr; gap: 12px; text-align: left;
  padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 15.5px; line-height: 1.35; color: #CFCECA;
  transition: color .2s;
}
.iv-chapters time { color: var(--mute); font-variant-numeric: tabular-nums; transition: color .2s; }
.iv-chapters button:hover, .iv-chapters button.on { color: #fff; }
.iv-chapters button:hover time, .iv-chapters button.on time { color: var(--magenta); }

/* ---------- blitz ---------- */
.blitz { position: relative; z-index: 1; padding: 18svh var(--pad); }
.bz-list { margin-top: 6svh; columns: 2; gap: 4vw; font-size: 16px; }
.bz-list li { break-inside: avoid; padding: 8px 0; border-top: 1px solid rgba(0, 0, 0, .12); }
.bz-list span + span::before { content: " или "; color: var(--mute); }
.bz {
  position: relative; margin: 8svh auto 0; max-width: 980px; min-height: 420px;
  padding: clamp(28px, 5vw, 64px); border-radius: 32px; background: var(--paper);
  display: flex; flex-direction: column; justify-content: center; text-align: center;
  box-shadow: 0 30px 80px -50px rgba(0, 0, 0, .45);
}
.bz-step { font-size: 14px; color: var(--mute); font-variant-numeric: tabular-nums; }
.bz-q { margin: 14px auto 0; max-width: 18ch; font: 400 clamp(34px, 4.6vw, 64px)/1.04 var(--serif); letter-spacing: -.02em; font-variation-settings: "wdth" 84; }
.bz-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.bz-opt {
  position: relative; min-width: 200px; height: 68px; padding: 0 30px; border-radius: 999px;
  border: 1px solid var(--ink); font: 400 24px/1 var(--serif); transition: background-color .25s, color .25s, opacity .3s;
}
.bz-opt:hover:not(:disabled) { background: var(--ink); color: #fff; }
.bz-opt:disabled { cursor: default; }
.bz-opt.denis { background: var(--ink); color: #fff; }
.bz-opt.denis::after { content: "Денис"; position: absolute; top: -10px; right: 18px; padding: 3px 9px; border-radius: 999px; background: var(--magenta); color: #fff; font: 500 11.5px/1 var(--sans); }
.bz-opt.no { opacity: .45; }
.bz-opt.no::before {
  content: ""; position: absolute; left: 14%; right: 14%; top: 50%; height: 8px; margin-top: -4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 9' preserveAspectRatio='none'%3E%3Cpath d='M2 6.5C40 2.5 90 5.2 130 3.4 160 2.1 185 4.6 198 2.6' fill='none' stroke='%23E8202A' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.bz-note { min-height: 3em; margin-top: 22px; font-size: 16px; color: var(--graphite); }
.bz-next { margin-top: 8px; }
.bz-score { font: 400 clamp(64px, 10vw, 150px)/.9 var(--serif); letter-spacing: -.04em; }

/* ---------- archive ---------- */
.archive { position: relative; z-index: 1; padding-top: 16svh; }
.ar-head { padding: 0 var(--pad) 6svh; }
.ar-links { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; }
.ar-links a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(0, 0, 0, .3); }
.ar-view { position: relative; height: 94svh; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ar-view.drag { cursor: grabbing; }
.ar-plane { position: absolute; inset: 0; }
.ar-tile {
  position: absolute; left: 0; top: 0; width: var(--tw); height: var(--th);
  border-radius: 10px; overflow: hidden; background: #D0CFCA; will-change: transform;
}
.ar-tile img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ar-tile .src { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; font-weight: 500; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ar-tile.video::after { content: ""; position: absolute; right: 10px; top: 10px; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.ar-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; pointer-events: none;
  padding: 9px 16px; border-radius: 999px; background: rgba(0, 0, 0, .78); color: #fff; font-size: 13px;
  transition: opacity .6s;
}
.ar-view.used .ar-hint { opacity: 0; }

.lb { width: min(1180px, 94vw); max-height: 94vh; padding: 0; border: 0; background: transparent; color: var(--concrete); overflow: visible; }
.lb::backdrop { background: rgba(0, 0, 0, .86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lb[open] { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr); gap: 32px; align-items: center; }
.lb-media { position: relative; }
.lb-media img { width: 100%; max-height: 86vh; object-fit: contain; border-radius: 12px; }
.lb-prev, .lb-next { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 28px; line-height: 1; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-prev[hidden], .lb-next[hidden] { display: none; }
.lb-close { position: absolute; right: -6px; top: -52px; width: 44px; height: 44px; font-size: 34px; line-height: 1; color: #fff; }
.lb-date { font-size: 14px; color: var(--mute); }
.lb-text { margin-top: 10px; font-size: 16px; line-height: 1.55; white-space: pre-line; max-height: 52vh; overflow: auto; }
.lb-link { display: inline-block; margin-top: 18px; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- contact ---------- */
.contact { position: relative; z-index: 1; background: var(--ink); color: var(--concrete); padding: 20svh var(--pad) 14svh; }
.contact-title { font: 400 clamp(60px, 11.5vw, 210px)/.88 var(--serif); letter-spacing: -.04em; font-variation-settings: "wdth" 74; }
.contact-lead { margin-top: 5svh; max-width: 44ch; font-size: 17px; color: var(--mute); }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 5svh; }
.chip {
  display: inline-flex; align-items: center; height: 58px; padding: 0 28px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28); font: 400 22px/1 var(--serif); text-decoration: none;
  transition: background-color .25s, color .25s;
}
.chip:hover { background: var(--concrete); color: var(--ink); }
.contact-links { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin-top: 14svh; }
.contact-links a { display: block; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .2); font: 400 26px/1.1 var(--serif); text-decoration: none; }
.contact-links span { display: block; margin-top: 6px; font: 400 13.5px var(--sans); color: var(--mute); }
.contact-links a:hover span { color: var(--concrete); }

.foot {
  position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  padding: 26px var(--pad) 30px; background: var(--ink); color: var(--mute); font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.foot a { color: var(--concrete); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .3); }

/* ---------- «Глазами Дениса» ---------- */
.eyes {
  position: relative; display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px 0 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .5); border: 1px solid rgba(0, 0, 0, .1); font-size: 14px; font-weight: 500;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background-color .3s, color .3s;
}
.top.dark .eyes { background: rgba(30, 30, 30, .55); border-color: rgba(255, 255, 255, .12); }
.eyes-dot { width: 20px; height: 20px; border-radius: 50%; background: conic-gradient(#E8202A, #FF5A1A, #F5D300, #2BB24C, #2340D8, #E4007C, #E8202A); }
.eyes[aria-pressed="true"] { background: var(--ink); color: #fff; }
.top.dark .eyes[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.eyes-tip {
  position: absolute; right: 0; top: calc(100% + 10px); width: 250px; padding: 10px 12px; border-radius: 12px;
  background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 400; line-height: 1.4; text-align: left;
  opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.eyes:hover .eyes-tip, .eyes:focus-visible .eyes-tip { opacity: 1; transform: none; }
main.deuter { filter: url(#deuter); }
.defs { position: absolute; width: 0; height: 0; }

.drips { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none; }

/* ---------- smaller screens ---------- */
@media (max-width: 1199px) {
  .cover, .threads, .corner { display: none; }
  .masthead { white-space: normal; font-size: clamp(44px, 13.6vw, 150px); top: 13svh; }
  .hero-pre { top: 9.5svh; }
  .stage { --sh: min(68svh, 860px); height: var(--sh); bottom: auto; top: calc(100svh - var(--sh)); }
  .badge { top: calc(94svh - 96px); right: var(--pad); width: 96px; height: 96px; }
  .hero-side { position: relative; left: auto; top: auto; width: auto; padding: 0 var(--pad); margin-top: 100svh; }
  .hero { height: auto; min-height: 0; padding-bottom: 6svh; }
  .hero-side { padding-top: 9svh; }
  .hero-lead { font-size: 18px; max-width: 34ch; }
}
@media (max-width: 860px) {
  .nav, .badge { display: none; }
  .top { grid-template-columns: 1fr auto; }
  .q, .q:nth-child(even) {
    left: 16px; right: 16px; top: auto; bottom: 9svh; width: auto; transform: none; text-align: left;
    padding: 20px 20px 18px; border-radius: 22px;
    background: rgba(239, 238, 234, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  }
  .q blockquote { font-size: clamp(30px, 8.4vw, 44px); text-shadow: none; }
  .voice-hint { display: none; }
  .works-head, .iv-head, .bz-head, .ar-head { grid-template-columns: 1fr; }
  .ar-links { grid-column: auto; }
  .works.gl .works-wrap { display: block; }
  .works.gl .works-stage { height: 56svh; z-index: 2; background: var(--ink); }
  .works.gl .work { min-height: 92svh; align-items: flex-start; padding: 4svh var(--pad) 8svh; }
  .works:not(.gl) .work { grid-template-columns: 1fr; }
  .iv-grid { grid-template-columns: 1fr; }
  .iv-chapters { max-height: none; }
  .bz-list { columns: 1; }
  .bz-opt { min-width: 0; flex: 1 1 140px; font-size: 20px; height: 60px; }
  .lb[open] { grid-template-columns: 1fr; gap: 16px; overflow: auto; }
  .lb-close { right: 0; top: -48px; }
  .contact-links { grid-template-columns: 1fr 1fr; }
  .chip { font-size: 19px; height: 52px; padding: 0 22px; }
  .eyes { padding: 0 10px; }
  .eyes-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .badge svg { animation: none; }
  .glitch::before, .glitch::after { display: none; }
  .strike::after, .threads path { transition: none; }
}
