/* =========================================================
   ImR Platform — сайт як інструмент
   ========================================================= */
:root {
  --bg: #0b0b0c;
  --bg2: #141416;
  --paper: #efebe4;
  --ink: #0b0b0c;
  --dim: rgba(239, 235, 228, 0.52);
  --line: rgba(239, 235, 228, 0.14);
  --red: #e2321f;
  --red-d: #b9200f;
  --night: #0e1a4d;
  --brass: #e3a93b;
  --f-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --f-sans: 'Manrope', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  --f-wide: 'Unbounded', system-ui, sans-serif;
  --pad: clamp(20px, 4.4vw, 72px);
  --ease: cubic-bezier(0.2, 0.75, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--paper);
  font-family: var(--f-sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* плівкове зерно */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--red); color: var(--ink); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.wrap { max-width: 1480px; margin: 0 auto; padding: 0 var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: -999px; top: 10px; z-index: 400; background: var(--red); color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 10px; }
.mono { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.5; }
.dim { color: var(--dim); }
.center { text-align: center; margin-top: 56px; }
.arr { width: 1.25em; height: 1.25em; flex: none; transition: transform 0.4s var(--ease); }
a:hover .arr, button:hover .arr { transform: translateX(5px); }

.label { color: var(--dim); margin-bottom: 26px; }
.label span { color: var(--red); margin-right: 6px; }
.display {
  font-family: var(--f-serif); font-weight: 300; font-size: clamp(48px, 7.4vw, 128px);
  line-height: 0.92; letter-spacing: -0.025em;
}
.display em { font-style: italic; color: var(--red); }
.sec { padding: clamp(100px, 13vw, 190px) 0; position: relative; }
.sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; margin-bottom: clamp(44px, 6vw, 80px); }

/* buttons & links */
.btn {
  display: inline-flex; align-items: center; gap: 14px; padding: 19px 30px; border-radius: 999px;
  background: var(--paper); color: var(--ink); border: 1px solid transparent;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.35s var(--ease); white-space: nowrap;
}
.btn:hover { background: var(--red); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.link { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid currentColor; }

/* reveal */
.js [data-reveal] { opacity: 0; transform: translateY(48px); transition: opacity 1.1s var(--ease) var(--delay, 0s), transform 1.1s var(--ease) var(--delay, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ===== loader ===== */
.loader { position: fixed; inset: 0; z-index: 500; background: var(--bg); display: grid; place-items: center; transition: transform 1s cubic-bezier(0.8, 0, 0.15, 1); }
.loader.done { transform: translateY(-100%); }
.loader.gone { display: none; }
.loader__in { display: flex; align-items: flex-end; gap: 22px; }
.loader__word { font-family: var(--f-serif); font-style: italic; font-weight: 300; font-size: clamp(90px, 16vw, 220px); line-height: 0.8; }
.loader__n { color: var(--red); font-size: 14px; padding-bottom: 12px; }
.loader__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--red); }

/* ===== cursor ===== */
.cursor { position: fixed; left: 0; top: 0; z-index: 450; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1px solid var(--paper); pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.35s, opacity 0.3s; }
.cursor.on { opacity: 1; }
.cursor.big { width: 76px; height: 76px; margin: -38px 0 0 -38px; background: var(--paper); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ===== header ===== */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px var(--pad); transition: padding 0.4s var(--ease), background 0.4s, backdrop-filter 0.4s;
}
.hdr.scrolled { padding-top: 14px; padding-bottom: 14px; background: rgba(11, 11, 12, 0.9); }
@media (hover: hover) and (pointer: fine) { .hdr.scrolled { background: rgba(11, 11, 12, 0.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); } }
.logo { display: flex; align-items: baseline; gap: 10px; }
.logo em { font-family: var(--f-serif); font-weight: 400; font-size: 32px; line-height: 1; letter-spacing: -0.02em; }
.logo .mono { font-size: 10px; color: var(--dim); }
.nav { display: flex; gap: 30px; }
.nav a { position: relative; padding: 4px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 11px 18px; cursor: pointer; }

.menu {
  position: fixed; inset: 0; z-index: 150; background: var(--red); color: var(--ink);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 110px var(--pad) 40px;
  clip-path: circle(0% at calc(100% - 60px) 40px); transition: clip-path 0.9s cubic-bezier(0.8, 0, 0.15, 1); visibility: hidden;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 60px) 40px); visibility: visible; }
.menu-open .hdr { color: var(--ink); background: transparent; backdrop-filter: none; }
.menu-open .hdr .menu-btn { border-color: rgba(11, 11, 12, 0.3); }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a { display: flex; align-items: baseline; gap: 18px; font-family: var(--f-serif); font-style: italic; font-weight: 300; font-size: clamp(46px, 11vw, 92px); line-height: 1.02; letter-spacing: -0.02em; border-bottom: 1px solid rgba(11, 11, 12, 0.18); padding: 4px 0; }
.menu__nav .mono { font-style: normal; font-size: 12px; }
.menu__foot { margin-top: 32px; }

/* ===== hero ===== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: radial-gradient(120% 80% at 50% 55%, #19191c 0%, var(--bg) 62%); cursor: crosshair; }
.strings { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.hero__title { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.hero__word {
  font-family: var(--f-serif); font-style: italic; font-weight: 300; color: var(--paper);
  font-size: min(44vw, 74vh); line-height: 0.8; letter-spacing: -0.045em; transform: translate(-1%, -3%);
  user-select: none;
}
.hero__tl, .hero__tr { position: absolute; top: clamp(96px, 12vh, 130px); z-index: 3; color: var(--dim); }
.hero__tl { left: var(--pad); }
.hero__tr { right: var(--pad); text-align: right; }
.hero__bl { position: absolute; left: var(--pad); bottom: clamp(28px, 6vh, 56px); z-index: 3; }
.hero__lead { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.15; max-width: 21ch; margin: 0; }
.hero__br { position: absolute; right: var(--pad); bottom: clamp(28px, 6vh, 56px); z-index: 3; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.hint { color: var(--dim); }

.sound { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(11, 11, 12, 0.4); cursor: pointer; transition: border-color 0.3s, background 0.3s, color 0.3s; }
.sound:hover { border-color: var(--paper); }
.sound[aria-pressed='true'] { background: var(--red); border-color: var(--red); color: var(--ink); }
.sound__ico { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound__ico i { width: 2px; height: 30%; background: currentColor; }
.sound[aria-pressed='true'] .sound__ico i { animation: eq 0.9s ease-in-out infinite alternate; }
.sound__ico i:nth-child(2) { animation-delay: -0.3s !important; }
.sound__ico i:nth-child(3) { animation-delay: -0.6s !important; }
.sound__ico i:nth-child(4) { animation-delay: -0.15s !important; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }

/* ===== manifesto ===== */
.manifesto__text { font-family: var(--f-serif); font-weight: 300; font-size: clamp(36px, 5.4vw, 92px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 clamp(64px, 8vw, 120px); max-width: 17ch; }
.manifesto__text .w { opacity: 0.14; transition: opacity 0.5s, color 0.5s; }
.manifesto__text .w.on { opacity: 1; }
.no-js .manifesto__text .w, html:not(.js) .manifesto__text .w { opacity: 1; }
.manifesto__cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.manifesto__p { font-size: clamp(17px, 1.3vw, 20px); color: rgba(239, 235, 228, 0.8); max-width: 54ch; }
.stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.stat { padding: 26px 0 28px; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 20px; }
.stat:nth-child(even) { padding-left: 28px; }
.stat b { display: block; font-family: var(--f-serif); font-weight: 300; font-size: clamp(64px, 7vw, 116px); line-height: 0.9; letter-spacing: -0.03em; }
.stat span { color: var(--dim); }

/* ===== projects / chapters ===== */
.projects__head { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(56px, 7vw, 110px); }
.chs { position: relative; }
.ch {
  position: sticky; top: 0; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  overflow: hidden; border-radius: 28px 28px 0 0;
}
.ch__in { padding: clamp(96px, 12vh, 140px) 0 clamp(48px, 7vh, 80px) var(--pad); display: flex; flex-direction: column; align-items: flex-start; position: relative; z-index: 2; }
.ch__meta { display: flex; gap: 26px; flex-wrap: wrap; opacity: 0.75; }
.ch__big { font-family: var(--f-serif); font-style: italic; font-weight: 300; font-size: clamp(88px, 15vw, 260px); line-height: 0.8; letter-spacing: -0.045em; margin: clamp(24px, 4vh, 48px) 0 18px -0.04em; }
.ch__title { font-family: var(--f-wide); font-weight: 600; font-size: clamp(13px, 1.1vw, 16px); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: clamp(28px, 4vh, 48px); }
.ch__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); margin-bottom: clamp(28px, 4vh, 44px); width: 100%; }
.ch__lead { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.5; margin: 0; }
.tl, .facts { list-style: none; margin: 0; padding: 0; }
.tl li, .facts li { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 11px 0; border-top: 1px solid currentColor; border-color: rgba(11, 11, 12, 0.22); font-size: 15px; line-height: 1.35; }
.tl b, .facts b { font-weight: 600; }
.ch__deco { position: relative; display: grid; place-items: center; }

.ch--kassandra { background: var(--red); color: var(--ink); }
.ch--kassandra .btn { background: var(--ink); color: var(--paper); }
.ch--kassandra .btn:hover { background: var(--paper); color: var(--ink); }
.ring { width: min(29vw, 500px); height: auto; animation: spin 40s linear infinite; will-change: transform; }
.ring text { font-family: var(--f-wide); font-size: 17px; font-weight: 600; letter-spacing: 0.1em; fill: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.eye { position: absolute; width: min(12.5vw, 210px); aspect-ratio: 1; border-radius: 50%; background: var(--ink); display: grid; place-items: center; box-shadow: 0 0 0 10px var(--red), 0 0 0 11px var(--ink); }
.eye span { width: 46%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--ink) 0 34%, var(--paper) 36% 100%); transition: transform 0.25s ease-out; }

.ch--jazz { background: var(--night); color: var(--paper); }
.ch--jazz .ch__big { color: var(--brass); }
.ch--jazz .tl li, .ch--jazz .facts li { border-color: rgba(239, 235, 228, 0.18); }
.ch--jazz .facts .mono { color: var(--brass); }
.ch--jazz .btn { background: var(--brass); color: var(--ink); }
.ch--jazz .btn:hover { background: var(--paper); }
.ch__deco--jazz { align-items: stretch; }
.eq { display: flex; align-items: center; gap: 6px; height: 70%; align-self: center; width: 80%; }
.eq span { flex: 1; height: var(--h); background: var(--brass); border-radius: 3px; transform-origin: center; animation: bar 1.3s ease-in-out infinite alternate; animation-delay: var(--d); opacity: 0.9; will-change: transform; }
.js .ch:not(.vis) .ring, .js .ch:not(.vis) .eq span, .js .ch:not(.vis) .sound__ico i { animation-play-state: paused; }
@keyframes bar { from { transform: scaleY(0.12); } to { transform: scaleY(1); } }
.ch__piano { width: 100%; margin-top: clamp(36px, 5vh, 56px); }
.ch__piano .hint { margin-bottom: 12px; color: var(--brass); }

/* piano */
.piano { position: relative; display: flex; height: clamp(110px, 16vh, 170px); user-select: none; -webkit-user-select: none; touch-action: none; max-width: 980px; }
.key { flex: 1; border: 0; border-right: 1px solid var(--night); background: var(--paper); border-radius: 0 0 8px 8px; cursor: pointer; padding: 0; transition: background 0.12s, transform 0.12s; transform-origin: top; }
.key.on { background: var(--brass); transform: scaleY(0.98); }
.key--b { position: absolute; top: 0; z-index: 2; height: 60%; width: calc(100% / 15 * 0.62); left: calc((var(--i) + 1) * 100% / 15 - 100% / 15 * 0.31); background: var(--ink); border: 0; border-radius: 0 0 6px 6px; }
.key--b.on { background: var(--brass); }

/* ===== shelf (3D books) ===== */
.shelf { position: relative; }
.shelf__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 4vh, 48px); }
.shelf__head { width: 100%; }
.shelf__head .label { margin-bottom: 18px; }
.shelf__track { display: flex; align-items: flex-end; gap: clamp(60px, 8vw, 140px); padding: 0 var(--pad); will-change: transform; width: max-content; }
.shelf__item { flex: none; width: clamp(260px, 25vw, 380px); display: block; }
.shelf__stage { height: clamp(260px, 44vh, 480px); display: flex; align-items: flex-end; justify-content: center; perspective: 1600px; position: relative; margin-bottom: 28px; }
.shelf__stage::after { content: ''; position: absolute; bottom: -18px; left: 12%; right: 12%; height: 30px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.8), transparent); }
.shelf__meta { display: flex; justify-content: space-between; color: var(--dim); border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 10px; }
.shelf__t { font-family: var(--f-serif); font-size: clamp(26px, 2.2vw, 36px); line-height: 1; letter-spacing: -0.01em; margin-bottom: 6px; }
.shelf__s { color: var(--dim); font-size: 15px; }
.shelf__all { flex: none; align-self: center; display: flex; flex-direction: column; gap: 16px; width: 260px; padding: 34px; border: 1px solid var(--line); border-radius: 50%; aspect-ratio: 1; justify-content: center; align-items: center; text-align: center; transition: background 0.4s, color 0.4s; }
.shelf__all em { font-family: var(--f-serif); font-size: 34px; line-height: 1; }
.shelf__all:hover { background: var(--red); color: var(--ink); border-color: var(--red); }

.b3d { --h: 100%; position: relative; height: 92%; aspect-ratio: var(--r); transform-style: preserve-3d; transform: rotateY(-34deg) rotateX(8deg); transition: transform 1s var(--ease); }
.shelf__item:hover .b3d, .bk:hover .b3d { transform: rotateY(-6deg) rotateX(2deg) translateY(-14px); }
.b3d > div { position: absolute; top: 0; height: 100%; }
.b3d__front { left: 0; width: 100%; transform: translateZ(calc(var(--t) / 2)); overflow: hidden; border-radius: 2px 4px 4px 2px; box-shadow: inset 6px 0 10px -6px rgba(0, 0, 0, 0.5); }
.b3d__front img { width: 100%; height: 100%; object-fit: cover; }
.b3d__back { left: 0; width: 100%; transform: translateZ(calc(var(--t) / -2)) rotateY(180deg); background: #1b1b1d; box-shadow: 30px 30px 60px rgba(0, 0, 0, 0.5); }
.b3d__spine { left: calc(var(--t) / -2); width: var(--t); transform: rotateY(-90deg); display: grid; place-items: center; overflow: hidden; background: var(--spine, #222); }
.b3d__spine span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; color: var(--spine-c, var(--paper)); }
.b3d__pages { left: calc(100% - var(--t) / 2); width: var(--t); transform: rotateY(90deg); background: repeating-linear-gradient(90deg, #f4f0e8 0 1px, #d6cfc2 1px 2px); top: 1.5% !important; height: 97% !important; }
.b3d--kassandra { --spine: #a8180c; --spine-c: var(--ink); }
.b3d--jazz { --spine: #08113a; --spine-c: var(--brass); }
.b3d--meta { --spine: #d9d2c4; --spine-c: var(--ink); }

/* typographic covers */
.cv { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 9%; overflow: hidden; container-type: inline-size; }
.cv > span { position: relative; z-index: 1; }
.cv__mono { font-family: var(--f-mono); font-size: max(7px, 4.4cqi); letter-spacing: 0.1em; text-transform: uppercase; }
.cv__big { margin-top: auto; }
.cv--k { background: var(--red); color: var(--ink); }
.cv--k .cv__eye { position: absolute !important; z-index: 0 !important; width: 78%; aspect-ratio: 1; border-radius: 50%; right: -22%; top: 16%; background: radial-gradient(circle, var(--ink) 0 17%, var(--paper) 18% 33%, var(--ink) 34% 100%); }
.cv--k .cv__small { margin-top: auto; font-family: var(--f-serif); font-style: italic; font-size: 11cqi; line-height: 1; }
.cv--k .cv__big { margin-top: 2cqi; font-family: var(--f-wide); font-weight: 800; font-size: 9.2cqi; letter-spacing: -0.03em; text-transform: uppercase; line-height: 1; }
.cv--j { background: var(--night); color: var(--paper); }
.cv--j .cv__disc { position: absolute !important; z-index: 0 !important; width: 130%; aspect-ratio: 1; border-radius: 50%; left: -15%; top: -58%; background: repeating-radial-gradient(circle, var(--brass) 0 1px, transparent 1.5px 7px); opacity: 0.6; }
.cv--j .cv__mono { margin-top: auto; color: var(--brass); margin-bottom: 4cqi; }
.cv--j .cv__big { margin-top: 0; font-family: var(--f-wide); font-weight: 800; font-size: 7.4cqi; line-height: 1.05; text-transform: uppercase; letter-spacing: -0.02em; hyphens: manual; }
.cv--m { background: var(--paper); color: var(--ink); }
.cv--m .cv__staff { position: absolute !important; z-index: 0 !important; left: 0; right: 0; top: 14%; height: 24%; background: repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 25%); }
.cv--m .cv__staff::after { content: ''; position: absolute; width: 13%; aspect-ratio: 1.3; border-radius: 50%; background: var(--red); left: 58%; top: 34%; transform: rotate(-20deg); }
.cv--m .cv__big { font-family: var(--f-serif); font-style: italic; font-weight: 300; font-size: 20cqi; line-height: 0.82; letter-spacing: -0.04em; margin-bottom: 6cqi; }

/* ===== founders ===== */
.founders { background: var(--paper); color: var(--ink); }
.founders .label { color: rgba(11, 11, 12, 0.55); }
.founders .display { margin-bottom: clamp(48px, 6vw, 88px); }
.founders .dim { color: rgba(11, 11, 12, 0.55); }
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 44px); }
.fgrid--2 { grid-template-columns: repeat(2, 1fr); max-width: 980px; }
.fc { display: block; }
.pt { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pt--empty { position: relative; display: grid; place-items: center; background: var(--bg2); color: var(--paper); overflow: hidden; }
.founders .pt--empty { background: #e2ddd3; color: var(--ink); }
.pt__n { font-family: var(--f-serif); font-style: italic; font-weight: 300; font-size: clamp(90px, 11vw, 180px); line-height: 1; opacity: 0.85; transition: transform 0.8s var(--ease); }
.pt__l { position: absolute; left: 16px; bottom: 14px; opacity: 0.5; }
.fc:hover .pt__n { transform: scale(1.08) rotate(-4deg); }
.fc .pt { transition: filter 0.5s; }
.fc__body { padding-top: 22px; }
.fc__name { font-family: var(--f-serif); font-size: clamp(30px, 2.6vw, 42px); line-height: 1; margin: 8px 0 14px; letter-spacing: -0.01em; }
.fc p { color: rgba(11, 11, 12, 0.72); max-width: 40ch; }
.founders--rest .fc p, .inner .fc p { color: inherit; opacity: 0.75; }

/* ===== octet ===== */
.oct { display: flex; gap: 6px; height: clamp(440px, 64vh, 620px); }
.oct__col { position: relative; flex: 1; min-width: 0; overflow: hidden; background: var(--bg2); border-radius: 14px; cursor: pointer; transition: flex 0.8s var(--ease), background 0.5s; }
.oct__col.on { flex: 5.5; background: #1a1a1d; }
.oct__n { position: absolute; top: 16px; left: 16px; z-index: 2; color: var(--dim); }
.oct__col.on .oct__n { color: var(--red); }
.oct__v { position: absolute; left: 50%; bottom: 22px; writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); font-family: var(--f-serif); font-style: italic; font-size: clamp(22px, 1.8vw, 30px); white-space: nowrap; transition: opacity 0.4s; }
.oct__col.on .oct__v { opacity: 0; }
.oct__ph { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s 0.15s; }
.oct__ph .pt { height: 100%; aspect-ratio: auto; background: linear-gradient(160deg, #1d1d21, #111113); }
.oct__ph .pt__n { font-size: clamp(120px, 16vw, 260px); opacity: 0.18; }
.oct__ph .pt__l { display: none; }
.oct__info { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 2; opacity: 0; transform: translateY(16px); transition: opacity 0.5s 0.25s, transform 0.6s 0.25s var(--ease); min-width: 260px; }
.oct__info b { display: block; font-family: var(--f-serif); font-weight: 400; font-size: clamp(30px, 2.6vw, 42px); line-height: 1; margin-bottom: 8px; }
.oct__info .mono { color: var(--red); }
.oct__info p { margin: 10px 0 0; color: rgba(239, 235, 228, 0.75); max-width: 36ch; }
.oct__col.on .oct__ph, .oct__col.on .oct__info { opacity: 1; transform: none; }

/* ===== videos ===== */
.videos { border-top: 1px solid var(--line); }
.vgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 44px); }
.vid { margin: 0; }
.vid figcaption { margin-top: 16px; font-family: var(--f-serif); font-size: 24px; display: flex; gap: 14px; align-items: baseline; }
.vid figcaption .mono { color: var(--red); }
.yt { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 14px; overflow: hidden; background: #111 center / cover no-repeat; cursor: pointer; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt__play { width: 88px; height: 88px; border-radius: 50%; border: 1px solid var(--paper); position: relative; transition: background 0.35s, transform 0.5s var(--ease), border-color 0.35s; }
.yt__play::after { content: ''; position: absolute; left: 36px; top: 30px; border-left: 22px solid var(--paper); border-top: 14px solid transparent; border-bottom: 14px solid transparent; transition: border-color 0.35s; }
.yt:hover .yt__play { background: var(--red); border-color: var(--red); transform: scale(1.1); }
.yt:hover .yt__play::after { border-left-color: var(--ink); }
.yt--empty { cursor: default; background: radial-gradient(80% 90% at 30% 20%, #232327, #121214); }
.yt--empty::before { content: ''; position: absolute; inset: 14px; border: 1px dashed rgba(239, 235, 228, 0.16); border-radius: 8px; }
.yt__tc { position: absolute; left: 26px; bottom: 22px; color: var(--dim); }

/* ===== letter / envelope ===== */
.letter { overflow: hidden; }
.letter .display { margin-bottom: 0; }
.env { --flap: 0; --open: 0; position: relative; width: min(760px, 100%); aspect-ratio: 1.55; margin: clamp(200px, 26vw, 330px) auto 20px; }
.env__back { position: absolute; inset: 0; background: #b9ae9b; border-radius: 6px; }
.env__paper {
  position: absolute; left: 4%; right: 4%; top: 4%; height: 92%; z-index: 2; background: var(--paper); color: var(--ink);
  padding: 5.5% 7%; transform: translateY(calc(var(--open) * -64%)); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25); border-radius: 3px;
}
.env__stamp { display: inline-block; border: 1px solid var(--red); color: var(--red); padding: 5px 10px; margin-bottom: 16px; transform: rotate(-2deg); }
.env__greet { font-family: var(--f-serif); font-style: italic; font-size: clamp(20px, 2.2vw, 28px); margin-bottom: 6px; }
.env__lead { font-family: var(--f-serif); font-size: clamp(19px, 2vw, 27px); line-height: 1.22; margin-bottom: 18px; max-width: 34ch; }
.env__front { position: absolute; inset: 0; z-index: 3; background: linear-gradient(170deg, #ddd4c4, #cfc5b2); clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%); border-radius: 6px; }
.env__flap { position: absolute; left: 0; right: 0; top: 0; height: 58%; z-index: 4; background: linear-gradient(180deg, #e9e2d5, #d8cfbe); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transform: perspective(1200px) rotateX(calc(var(--flap) * 180deg)); }
.env.opened .env__flap { z-index: 1; }
.env__seal { position: absolute; left: 50%; top: 58%; z-index: 5; width: clamp(64px, 9vw, 92px); aspect-ratio: 1; margin: calc(clamp(64px, 9vw, 92px) / -2) 0 0 calc(clamp(64px, 9vw, 92px) / -2); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f05a43, var(--red-d)); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), inset 0 0 0 5px rgba(0, 0, 0, 0.12); transform: scale(calc(1 - var(--flap))); opacity: calc(1 - var(--flap) * 1.4); }
.env__seal em { font-family: var(--f-serif); font-size: clamp(22px, 2.6vw, 30px); color: var(--paper); }

/* ===== birthday ===== */
.bday { background: var(--red); color: var(--ink); }
.bday .label, .bday .label span { color: var(--ink); }
.bday__row { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.bday__date em { font-family: var(--f-serif); font-weight: 300; font-size: clamp(110px, 21vw, 360px); line-height: 0.75; letter-spacing: -0.05em; display: block; }
.bday__count { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(11, 11, 12, 0.3); }
.bday__count div { padding: 18px 0 0; }
.bday__count b { display: block; font-family: var(--f-wide); font-weight: 800; font-size: clamp(36px, 5.4vw, 92px); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.bday__note { margin: 36px 0 0; }

/* ===== footer ===== */
.ftr { padding: clamp(80px, 10vw, 140px) var(--pad) 34px; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.ftr__big { font-family: var(--f-serif); font-weight: 300; font-size: clamp(90px, 19vw, 330px); line-height: 0.8; letter-spacing: -0.05em; margin-bottom: clamp(56px, 7vw, 100px); white-space: nowrap; }
.ftr__big em { color: var(--red); margin-left: 0.06em; }
.ftr__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.ftr__grid .label { margin-bottom: 18px; }
.ftr__tag { font-family: var(--f-serif); font-style: italic; font-size: 24px; line-height: 1.2; max-width: 22ch; }
.ftr__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15.5px; }
.ftr__links a { color: rgba(239, 235, 228, 0.8); transition: color 0.25s; }
.ftr__links a:hover { color: var(--red); }
.ftr__bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); }

/* ===== inner pages ===== */
.phero { padding: clamp(150px, 20vh, 220px) 0 clamp(64px, 9vw, 120px); border-bottom: 1px solid var(--line); }
.phero--kassandra { background: var(--red); color: var(--ink); border: 0; }
.phero--jazz { background: var(--night); border: 0; }
.phero--jazz .phero__t em { color: var(--brass); }
.crumbs { color: inherit; opacity: 0.6; margin-bottom: clamp(40px, 7vw, 90px); }
.crumbs a { border-bottom: 1px solid currentColor; }
.phero__k { opacity: 0.7; margin-bottom: 18px; }
.phero__t { font-family: var(--f-serif); font-weight: 300; font-size: clamp(54px, 9.6vw, 170px); line-height: 0.88; letter-spacing: -0.035em; }
.phero__t em { font-style: italic; display: block; }
.phero:not(.phero--kassandra) .phero__t em { color: var(--red); }

.split { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.split__side { position: sticky; top: 110px; }
.facts--side li { grid-template-columns: 1fr; gap: 4px; border-color: var(--line); padding: 14px 0; }
.facts--side .mono, .facts--inline .mono { color: var(--dim); }
.facts--inline li { border-color: var(--line); grid-template-columns: 130px 1fr; }
.prose { font-size: clamp(17px, 1.3vw, 19.5px); line-height: 1.7; max-width: 66ch; color: rgba(239, 235, 228, 0.86); }
.prose .lead { font-family: var(--f-serif); font-style: italic; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.18; color: var(--paper); margin-bottom: 1.1em; }
.prose__h { font-family: var(--f-serif); font-size: 40px; color: var(--paper); margin: 64px 0 18px; }
.tl--full li { border-color: var(--line); grid-template-columns: 120px 1fr; }
.tl--full .mono { color: var(--red); }
.tl--full p { grid-column: 2; margin: 0; color: var(--dim); font-size: 15.5px; }
.links { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 80px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }

.jam { background: var(--night); }
.jam .hint { color: var(--brass); margin-bottom: 14px; }
.jam .sound { margin-top: 24px; }

.nextp { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(60px, 9vw, 120px) var(--pad); transition: padding 0.5s var(--ease); }
.nextp em { font-family: var(--f-serif); font-weight: 300; font-size: clamp(64px, 12vw, 200px); line-height: 0.85; letter-spacing: -0.04em; flex: 1; }
.nextp .arr { width: clamp(48px, 6vw, 90px); height: auto; }
.nextp--kassandra { background: var(--red); color: var(--ink); }
.nextp--jazz { background: var(--night); }
.nextp--jazz em { color: var(--brass); }
.nextp:hover { padding-left: calc(var(--pad) + 30px); }

.inner .founders { background: var(--bg); color: var(--paper); }
.inner .founders .label, .inner .founders .dim { color: var(--dim); }
.inner .founders .pt--empty { background: var(--bg2); color: var(--paper); }
.inner .split__side .pt--empty { background: var(--bg2); }
.mgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 28px); }
.mc .pt { aspect-ratio: 1; margin-bottom: 16px; border-radius: 12px; }
.mc .pt__n { font-size: clamp(70px, 7vw, 120px); opacity: 0.35; }
.mc h3 { font-family: var(--f-serif); font-size: 28px; line-height: 1; margin: 8px 0 8px; }
.mc p { color: var(--dim); font-size: 15px; }

.books { display: grid; gap: clamp(80px, 10vw, 150px); }
.bk { display: grid; grid-template-columns: minmax(260px, 0.8fr) 1.2fr; gap: clamp(40px, 7vw, 120px); align-items: center; scroll-margin-top: 110px; }
.bk__stage { height: clamp(320px, 52vh, 520px); display: flex; align-items: center; justify-content: center; perspective: 1600px; }
.bk__stage .b3d { height: 86%; }
.bk__t { font-family: var(--f-serif); font-weight: 300; font-size: clamp(42px, 5vw, 80px); line-height: 0.95; letter-spacing: -0.025em; margin: 14px 0 10px; }
.bk__s { font-family: var(--f-serif); font-style: italic; font-size: 24px; color: var(--dim); margin-bottom: 28px; }
.bk .facts { margin-bottom: 28px; }

.sheet { max-width: 820px; margin: 0 auto; background: var(--paper); color: var(--ink); padding: clamp(32px, 7vw, 90px); border-radius: 4px; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5); transform: rotate(-0.6deg); font-size: 18px; line-height: 1.75; }
.sheet__lead { font-family: var(--f-serif); font-size: clamp(26px, 2.8vw, 38px); line-height: 1.2; }
.sheet__sig { font-family: var(--f-serif); font-style: italic; font-size: 30px; margin-top: 48px; color: var(--red); }

/* ===== responsive ===== */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-btn { display: inline-block; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .ch { position: relative; top: auto !important; grid-template-columns: 1fr; min-height: 0; border-radius: 22px 22px 0 0; }
  .ch__in { padding: 90px var(--pad) 64px; }
  .ch__deco { position: absolute; right: -14vw; top: 40px; opacity: 0.25; pointer-events: none; z-index: 0; }
  .ring { width: 70vw; }
  .eye { width: 30vw; }
  .ch__deco--jazz { width: 60vw; height: 260px; right: -6vw; }
  .ch__grid { grid-template-columns: 1fr; }
  .shelf { height: auto !important; }
  .shelf__pin { position: relative; height: auto; padding: clamp(100px, 13vw, 160px) 0; overflow: visible; }
  .shelf__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 30px; transform: none !important; gap: 48px; scrollbar-width: none; }
  .shelf__track::-webkit-scrollbar { display: none; }
  .shelf__item, .shelf__all { scroll-snap-align: center; }
  .shelf__item { width: 72vw; max-width: 340px; }
  .shelf__stage { height: 360px; }
  .manifesto__cols { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split__side { position: static; max-width: 460px; }
  .bk { grid-template-columns: 1fr; }
  .mgrid { grid-template-columns: repeat(3, 1fr); }
  .bday__row { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .hero__tr { display: none; }
  .hero__word { font-size: 52vw; }
  .hero__bl { right: var(--pad); bottom: 120px; }
  .hero__br { left: var(--pad); right: auto; align-items: flex-start; bottom: 30px; }
  .fgrid, .fgrid--2 { grid-template-columns: 1fr; }
  .oct { flex-direction: column; height: auto; }
  .oct__col { flex: none !important; height: 62px; transition: height 0.7s var(--ease); border-radius: 10px; }
  .oct__col.on { height: 380px; }
  .oct__v { writing-mode: horizontal-tb; transform: none; left: 64px; bottom: auto; top: 13px; font-size: 24px; }
  .oct__info { min-width: 0; }
  .vgrid { grid-template-columns: 1fr; }
  .yt__play { width: 66px; height: 66px; }
  .yt__play::after { left: 27px; top: 22px; border-left-width: 17px; border-top-width: 11px; border-bottom-width: 11px; }
  .env { aspect-ratio: 0.9; margin-top: 300px; }
  .env__front { clip-path: polygon(0 0, 50% 26%, 100% 0, 100% 100%, 0 100%); }
  .env__flap { height: 28%; }
  .env__seal { top: 28%; }
  .env__paper { padding: 8% 8%; transform: translateY(calc(var(--open) * -84%)); }
  .env__lead { font-size: 18px; }
  .bday__count { grid-template-columns: repeat(2, 1fr); }
  .mgrid { grid-template-columns: 1fr 1fr; }
  .ftr__grid { grid-template-columns: 1fr; }
  .ftr__bottom { flex-direction: column; }
  .tl li, .facts li, .facts--inline li { grid-template-columns: 96px 1fr; }
  .tl--full li { grid-template-columns: 1fr; }
  .tl--full p { grid-column: 1; }
  .piano { height: 120px; }
  .ch__meta { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== підказки ===== */
.cue { position: absolute; left: 50%; bottom: clamp(26px, 5vh, 48px); z-index: 3; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--dim); pointer-events: none; }
.cue i { width: 1px; height: 42px; background: linear-gradient(var(--paper), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.howto { display: inline-flex; align-items: center; gap: 10px; color: var(--dim); margin-top: 18px; }
.howto::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.shelf .howto { margin-top: 10px; }
.touch .only-fine, .fine .only-touch { display: none; }
@media (max-width: 1000px) { .shelf .only-desk { display: none; } }
@media (min-width: 1001px) { .shelf .only-mob { display: none; } }
@media (max-width: 700px) { .cue { display: none; } }
/* наступний проєкт — без виходу за край на телефоні */
.nextp em { min-width: 0; }
@media (max-width: 700px) {
  .nextp { flex-wrap: wrap; gap: 14px; }
  .nextp .mono { width: 100%; }
  .nextp em { font-size: 15vw; }
  .nextp .arr { width: 40px; }
}

/* ===== пасхалка ===== */
.egg { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; position: relative; }
.egg::after { content: '✦'; position: absolute; right: -16px; top: -2px; font-size: 10px; color: var(--red); opacity: 0; transform: scale(0.4) rotate(-40deg); transition: opacity 0.3s, transform 0.4s var(--ease); }
.egg:hover::after, .egg:focus-visible::after { opacity: 1; transform: none; }
.egg-pop { position: fixed; inset: 0; z-index: 420; display: grid; place-items: center; background: rgba(11, 11, 12, 0.9); opacity: 0; transition: opacity 0.35s; cursor: zoom-out; padding: 24px; }
.egg-pop.on { opacity: 1; }
.egg-card { background: var(--paper); color: var(--ink); padding: 14px 14px 18px; width: min(360px, 82vw); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); transform: translateY(40px) scale(0.6) rotate(-14deg); transition: transform 0.7s cubic-bezier(0.2, 1.4, 0.3, 1); cursor: default; }
.egg-pop.on .egg-card { transform: rotate(-3deg); }
.egg-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #ddd5c6; }
.egg-card figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 12px; }
.egg-card em { font-family: var(--f-serif); font-size: 26px; line-height: 1; }
.egg-card .mono { color: var(--red); font-size: 10px; }
.egg-x { position: absolute; top: 18px; right: 18px; background: var(--bg); border: 1px solid rgba(239, 235, 228, 0.4); color: var(--paper); border-radius: 999px; padding: 10px 16px; cursor: pointer; }
